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

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

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


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

 Copyright Google LLC All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.dev/license
*/
/*

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.io/license
*/
/*

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var hz,cr,prp,hEH,fp,ZZ,lZz,Q6,zB,czd,aZd,MpJ,y6,KHH,qME,Az,dmw,rzM,g$H,zEB,yzB,bpE,uwE,GBB,VpJ,Hpz,lB,Opm,KZ,tC,jJr,JC,LHk,SD,Ev,BkM,REz,YB,Gm,Umd,pbE,xIr,mn,Nlw,h6d,lKk,aKp,Fnr,LZ,MD6,fKm,Knp,ZZk,CBH,at,Svr,rCH,EBJ,Xbw,gBk,cH,dId,Fc,vB$,JCw,bZM,ACp,ujd,te,wbH,Gm6,VDE,WnM,mIB,oBk,Lnm,Tlz,R6d,IK$,e6m,$IE,Qa,pHk,l8p,ya,ceB,f8J,MHr,DHp,bm,HZw,Ae,um,Y_,Z8Z,KmZ,qkk,WH,tHw,dH6,JeZ,Skp,Cmm,reH,E_p,XHM,GX,QtB,std,yez,YkH,Rt,H8k,b8B,mHZ,O8E,jtm,UHE,TDZ,$Hp,pzw,xMp,Ne$,h56,MPM,Z66,SUJ,gEM,b6r,to,uKz,wzk,Glp,
XK,Qb,yb,bg,YE,Wz,oM,OU,jMw,TeB,BeH,UMM,$MB,xZ,e5J,NF,hB,l2,c9,xFd,Fhm,Nnz,hDZ,lCp,aC6,Mim,DFd,fCM,qem,fM,DC,ZM6,tiH,dF6,JBp,vZE,C2Z,rBk,EZ6,CM,Si,rn,Ee,gn,gZk,zU,zDr,ABB,nM,uBz,Yez,w96,b2,GUZ,ViB,Whr,AB,oZw,YZ,Lhp,P2p,wn,Bn$,Tnm,RD6,kUz,UFw,iMd,W9,ICw,$F$,H9,eDB,pmw,mh,oy,Oe,ji,x1p,NsB,FMM,LM,lhk,c_r,ah$,TU,kZ,Ue,i2,Iy,$Z,MSE,D1p,fhr,KMM,qTH,Z2M,tS$,d1$,vHB,J_$,STk,r_6,p2,EHw,Xmp,gHp,cm,aR,QRE,nHd,y_k,b2z,uap,YTp,wmk,H2k,m1p,oHr,O2p,jRr,LMM,PkJ,kyp,f2,U1m,i2w,K2,IhH,$1J,et$,pSH,FX$,ter,dcp,vCH,Syk,
rmE,SS,ECd,QGr,nCM,ymm,bHz,Amp,u2r,Yym,wSp,G4H,WXw,HHB,zWZ,mck,oC$,OHM,jGr,LXk,PIJ,Tvd,Bvp,RWk,$cd,iHz,xG6,eWM,pep,hKk,lJ$,cud,FVp,MOm,Nxd,fJp,Hm,oR,jS,KV6,Znm,tOr,Jud,ndE,S_r,CGB,Edz,gdp,rum,wep,AuH,GGd,VOk,WVk,Hnk,mGr,Onp,odr,LVw,PGd,Txp,Bxp,kGw,inM,IJp,$GZ,pwJ,eKE,qdJ,Ztr,Bm,trJ,J9B,CO6,Sdk,r9H,EFB,gFZ,QDH,zaz,xC,sDz,YdM,hm,lI,Wg$,m$H,U$p,hZk,D0,a5k,KWp,DEd,f5d,tm,q5Z,ZfM,dE$,v3z,Jqr,Cbp,S5$,rqr,E3p,g3p,QxE,sxk,zZ6,bfd,gv,sy,u_p,Y5r,w8J,GIJ,VQr,WWk,mEM,Ofp,o3B,mX,Oy,I5$,PS,xpM,T4,BS,Nw6,kC,l3$,
h$H,ZgE,dp6,C1r,S0M,ES6,Xu6,gSM,z$H,ydB,bgm,$C,wud,Wdz,Hgr,mp6,oSw,Og$,VsJ,Y0p,uEM,pn,Adp,jnk,P1d,DfH,q$$,NG,tlZ,vlk,JTd,CKp,S$w,aU,rT6,XZd,Elz,glw,zR$,qG,Y$J,GjZ,uxJ,HoH,OoJ,jcz,dx,ve,Ju,Lip,RRk,Cn,XD,IOM,QZ,pQ6,NgM,lWp,cl6,aWk,zG,MBM,DnE,fWE,q4k,ZNp,tBk,dnH,JlJ,nn,CLm,S4J,Au,wx,XQd,gMd,Q8d,VZ,nMM,ylz,Alr,jO,WfH,HNr,mnw,oMw,ONp,Be,RU,kd,U_,PLk,IU,Tgz,Bgk,RTw,kcw,iNd,IWZ,Unw,eTw,$nB,p7$,hyz,eO,N6M,lIB,xzk,c8H,N$,DzZ,aIr,fIp,KwM,qfH,tqp,Zsk,dzz,C0d,vQJ,r8p,s9J,y8M,A8p,Yfz,VqE,GZd,w7k,WwZ,oQ$,j9J,Osz,
Lwr,T6Z,B6w,Z9,isr,vw,ey6,$z$,p5M,Ct,Sr,xtE,Ed,FTp,hhB,cGE,DtJ,KTm,fxw,jr,qzw,lx6,SzE,rG$,EvJ,kF,X5w,QfZ,zhz,$F,nv$,AGw,bcH,G6$,VzH,WTw,Hcp,ovp,THZ,OcB,LTB,PAE,BHw,k6M,RhE,ick,UtE,c8,Ix$,ehm,pir,h36,tq,dq,l26,c$p,v8,f26,rq,E5,X_,tTM,gq,J$p,s5,CPM,SJr,r$d,EOw,bb,Xiz,Qu6,z3p,nOE,b1B,YJB,Gtm,mW,VTJ,Wck,H1J,m4r,oOd,O1z,juH,Lcp,jQ,Bbw,R3B,ktp,U4d,i1z,I2r,$4m,e3k,pgJ,xBw,F9p,NXw,h9$,ib,vs6,JFr,Ix,$3,eQ,CXw,SbZ,rFp,Esr,Xgw,gsH,QsH,bRM,AFr,uTz,Yb$,wgE,Np,l1,cu,an,fg,Z3,td,VVw,Jd,HRk,Cg,mBB,osz,Ss,ORp,jsr,
L9d,$Bz,pTw,lvM,Duw,MAE,e9p,fvz,Z5J,nJz,SQE,YQ6,EJE,ufE,wTd,zW,VAH,y2,H5d,muJ,O5p,jdd,LOp,Toz,u1,Rnz,kDm,Uuw,i5w,Ivw,$uw,enz,Bop,FJM,N$M,hlz,ww,f$k,KJd,DdH,ZrH,t6J,vLH,JDp,ddH,Q7$,s7k,yDp,ADJ,Rn,WJH,V6k,j76,PzH,T$B,B$d,Rlz,kTB,UdJ,Nf,hgH,c0B,FxZ,xCd,lSz,I$M,M3d,Siw,Kxp,qid,ZQp,bQm,ut$,y0w,HQM,np$,irp,Wxw,fSZ,CTM,A06,aSE,el6,$d$,pt$,N5J,s4p,Sl,egZ,FU6,xNp,NRZ,hxM,ltB,tor,rRz,EwB,uK,gwp,sCw,ARE,bVm,YsE,w2$,WUr,VoH,HVd,ow6,Lo,OVd,jCw,Prz,LUk,Tj,UNw,k7k,Rx6,exd,iV$,pck,$N6,xDr,Rc,FDB,cI6,hcB,lDd,Mww,
DDr,qWp,fDM,ZEZ,JIB,CWz,Eqw,gqr,pN,xM,nqE,yIk,FP,Nn,bEZ,cQ,a8,AIE,Mn,uor,DW,YWJ,wcJ,KN,Gur,VwE,WDJ,HE6,mDw,OEk,oqZ,LDr,BVp,TVw,Rcz,kud,jI6,UD$,$DZ,IDw,PWZ,ec6,p$p,vQ,xgr,NY$,FYJ,hfJ,lXk,aXJ,cfJ,MZZ,CN,fX$,KYd,DgJ,ZP6,tZE,dgM,Sg$,X$$,nVk,uNB,SB,G1H,VZz,rg,WYw,Qd,zc,LY$,XP,yd,Pad,TYz,RfJ,k1z,iPH,$gJ,efz,pWE,xLp,hik,DLB,ard,NaB,frJ,KRJ,YM,MGH,q6d,Vd,ZTp,tGp,dLz,vgM,rHz,JHk,S6p,QEM,ziJ,AHH,bTM,wW6,og$,OTB,LR$,Tad,Bam,k5r,UL$,iTd,$LJ,eip,pkw,NMp,aRH,M0Z,h46,fR$,qRk,Kjm,D8$,ZyH,d8z,v5m,Jaz,CHw,SRp,I8,$M,
xQ,h8,XkB,g5w,z4M,ya6,l0,c7,byr,a9,YRM,wkp,Gap,DI,o5M,PH6,BMr,R4m,kaz,U8r,iym,e4M,Ks,psk,N8r,qz,hmH,aq$,McJ,Did,chz,dip,CMd,vjM,S1E,Xsm,QXH,sXM,Ah6,bip,Ghm,J8,VcZ,WZE,Cs,HiM,Sq,miZ,ojM,Oid,LZB,jXJ,PM6,T8w,B8m,Rm6,pvm,FNd,hVJ,NJz,Iq6,UiM,ck6,M_M,ZFp,t_w,rk6,XvE,g6,g9z,zVm,swm,ykk,YPE,G3J,WNp,HFr,msr,o96,TJB,OFJ,UsH,iFp,$sJ,sf,paE,xhB,F3B,NWw,hUm,ldB,cwr,MtZ,Dhd,A8,K3p,qHZ,ttM,u0,ZqH,vfp,rwJ,GZ,EfM,XaH,gfr,s$$,nfd,Q$$,bqp,waH,Hqw,mhM,P7,ofH,PlB,kkM,Uf,Id$,Uh6,iqp,eUp,xj6,Ftw,ccr,Dj$,MXH,aQH,fQw,q8J,
ZWH,C3k,tXp,S8m,Ezz,rc$,nzB,Acr,Y8$,GiE,mjp,B_J,kiM,UjM,$jr,pxm,FEr,AG,of,qqr,KEw,d7d,vuE,CU$,JnH,SqE,rnM,Oz,cZH,D7m,Z7p,fpz,H5,guJ,QSd,zS$,sSM,iA,nuZ,If,ynk,b7m,An6,u5p,p1,Yq6,VC$,H76,m7J,BBp,kRH,U7H,i7J,$7m,eS6,D2,xoH,FFm,NA$,h2H,leH,cS$,Md6,feB,q9Z,Z4d,S9B,JSk,rSw,ga$,QLz,J$,z2E,sLB,na6,ASd,Y9H,u3d,Gvp,WFH,EJ,moJ,oap,H4p,O4J,jL6,PxH,BAp,TAZ,R2M,LFm,kvE,Uom,i4p,IeM,$op,e2d,pjr,xJB,Fed,l1$,hvk,cYm,MaM,a1p,X4,DJM,qm6,JYB,f1H,CCE,SmE,rYk,Exz,bbr,u8B,YmJ,GNw,Vad,wb,oxw,PC$,BSZ,Gt,ibp,UJm,I1z,Hi,$Jz,
evp,p6E,Fpw,Nmp,h0r,l_r,a_6,Mjr,C$M,tjp,v6H,rAB,SB$,E6z,X6E,Q3Z,s3p,yAZ,AAH,OJ$,P$J,Bm6,R0m,k2M,Uqz,iJJ,$qp,e0J,F_p,NP$,hr$,ly$,cMZ,ayr,MgE,DYk,qo$,ZXw,tgw,iP,$O,eT,pR,dYE,xs,v4d,SoH,XnJ,zrw,yMH,uUm,bXp,kHk,UYw,mYM,PuJ,BPH,YoJ,j0d,AMd,o4H,CuM,Vgm,Q0H,E4B,$Y6,erZ,pL6,n4p,wn$,HX$,FBp,h1d,aEM,fEH,KBE,KR,S76,ChZ,gkE,szH,y5p,A5d,uO$,GMp,WB6,V1p,ok$,jzr,UWw,R1r,Ph6,kME,TFk,ilz,pI$,zF,DQE,c7k,K$6,qZp,tvz,dQr,nR,vem,SZM,r7w,Eez,XIr,A7d,b_J,VK,jV,H_p,mQH,Pg,oep,O_k,jaZ,L$$,PpZ,Tcz,BcZ,RJJ,kpm,UQm,i_B,IVM,
$Qd,eJw,php,TF,xx6,Fod,NKd,hLr,lmp,c6r,amk,MmJ,DxH,fmd,Kop,qNr,Rs,tmE,vo6,Ct6,Eom,QBk,zLr,sBd,y6r,A66,uhw,YNr,GKp,mx6,Wow,ood,Oap,jBz,TKM,iak,Imm,eLw,Dv,x5k,ad,N4w,hb6,f5,lF6,aFB,MhJ,D5p,K5,ZSB,d5M,EcE,rKk,gcp,QKd,C5,SA,zbk,nc6,bSH,AKk,Ytk,wJd,yKJ,GJm,ocp,PiZ,T4$,ro,B4p,Rbd,$5k,kJm,iSz,IFM,G8w,pyp,VR6,WsH,map,OUw,jpz,Lsw,Pck,TE$,BEB,k8m,Uaw,iUp,IYz,$ak,pKk,F8p,lgB,D9M,q2J,tYz,Jj$,n5,Coz,S2B,rj6,E16,XK$,Q1M,zHz,s1k,n1r,yj6,bBd,AjE,uym,Y2H,wK6,GLp,W8k,VYd,o16,j1z,L8$,AZ,Pow,TyM,kLJ,RHz,YJ,IgZ,$96,xrp,
NiH,FqE,pdM,c2p,lT6,Kqk,aT$,od,Drr,CVr,tuZ,drE,vik,J2M,SO$,Eir,r2d,OQ,jA,y2B,gip,nip,sqp,QqE,zsZ,ueJ,YOd,GVm,wdZ,mr6,H$w,jqr,LqJ,Ti$,Bik,PVM,Rsd,UrM,kVw,ITp,ppH,i8,xyJ,FIZ,lf$,ffp,vTr,$J,CRz,Xpw,sFE,zCM,gTJ,QFM,Nd,uCH,yxw,bYk,YE6,GYZ,wpZ,HYd,myE,OY6,jFE,LIJ,PRB,TrM,RCp,kY6,tD,iYr,vl,Ifp,$yH,FrE,N3J,Eu,hGM,csk,dZZ,vtJ,fzJ,tJH,KrB,qGp,rsM,Et6,SGZ,X3H,gt6,nt$,QlM,ysd,b9$,nr,uF$,YG$,w3m,Asp,VJm,GSM,yE,otp,RGp,kS6,UZJ,i9d,IzB,$ZE,Fzk,pEJ,xSp,eGd,hYr,cW6,ajE,fjw,KzJ,Z0M,w$,t7H,dSp,vbz,C7E,SL6,rWH,Eb$,XEB,
QhM,shr,nbd,AWw,b0d,YL6,u0p,wEE,Gxp,V7H,Hl,H0z,i0B,kxw,eYm,pGZ,cpp,akk,MEM,DeB,fkM,K7m,tEd,ded,vmz,Jpp,rpp,Emd,XGp,gm$,Qgm,zOM,sgM,nmw,ypB,bDJ,Ap6,YVH,wGZ,Gdr,W7p,mep,ODd,T0p,PnZ,L7z,jgw,lT,ROZ,kdp,Ue6,iDH,eOk,Ik$,pP6,MC,xb6,$ep,Fk6,Nzk,hqw,lHw,cEk,aHp,fHB,Db6,MWM,qIM,tWM,dbH,vKB,rEH,EKJ,d5,XPz,gKp,QmE,zqM,smd,nKm,bIp,AEm,ui6,YIZ,VWd,GC$,OI6,wPZ,J0,jmw,Wkp,oKm,Tzk,Rq$,$br,iIp,IHz,UbH,kCd,Qm,eqZ,xP$,Fyw,Nfz,hMm,lck,si,nQ,fcp,acJ,cJr,MId,EUH,SrH,DPZ,Cvd,yJH,bwJ,AJz,Oi,uSp,Yrk,wBd,Wy6,mP$,Owk,Lyz,PvE,
TfJ,UPr,k$B,iwH,$Pk,kp,xU6,FCm,NO$,hwM,iT,I4,aMp,fMZ,vGp,rXJ,EGJ,XCH,gGk,Qjr,sjH,yXE,nGH,bd6,AXd,usH,YCM,wCz,G06,VUH,WCZ,Hdd,NN,jjd,mUM,hR,PZw,LCM,TOM,$UE,ewp,UUB,k06,IM$,idp,hAm,lLw,ctr,aLH,Mfm,D_M,fLE,KPM,tfm,qAp,ZKr,d_E,Jt6,SAZ,Erz,grJ,zA$,bKr,AtE,uzd,YAZ,w4k,Dt,Vfz,GQB,fV,WPJ,m_z,ork,OKp,jPJ,RAH,kQM,U_d,iKp,ILm,$_E,eAr,v2,x0J,F1M,NhZ,laH,hP6,c3w,Myd,D0k,faz,q3r,Zup,K1p,S3Z,X1m,gWp,Q5k,zPp,nW$,s5p,uRk,Y3J,w1H,Gfp,W1z,Vyp,m0E,Thz,Pf$,RPz,kfM,U0r,pVE,x2M,FKJ,NCp,crw,lbH,hQd,D2r,KKp,fbM,qhH,AR,ZLk,
t8w,C_Z,JrM,Shp,rrr,ERH,XVZ,zQH,nRp,yrw,bLH,ArB,uWk,Yhm,wVr,V8H,GPE,WKM,m2m,HLM,oRp,OLp,jed,LKp,P_z,BCZ,RQp,kPk,U2m,iLd,Ibp,$2z,pNp,xOz,eQ6,T7,hXM,c1J,aAM,MFd,DOm,K2p,qpJ,J1r,CS6,gAm,zXw,sTB,bzp,A1Z,uvE,YpM,wN$,Gwp,W2M,Hzz,oAp,jTH,PS$,kwM,BLr,TLM,RXk,UOz,$Or,izH,IAw,pFz,NdH,hId,lUk,aUE,M9B,Dkr,Ku6,ZAw,fUB,t9w,dkp,vY6,J4k,CNd,SaE,r4$,EYZ,XFp,Qrw,gYr,zIm,sr$,nYJ,y4$,bAJ,A4d,uHE,Yap,V9z,Wur,wFr,Gsp,oYE,jr$,LuZ,PNp,Td6,Bdp,ksm,Ukk,iAM,IUM,$kB,eIp,pAp,eo,xw$,F6w,xq,N2H,hz6,lPJ,cVk,aPz,M2H,K6w,qnz,g7d,
Sn6,XAE,QYE,E7J,DD,zzz,sYp,yVp,ur6,AVB,YnE,wAm,fE,qD,V2d,W6p,dV,vc,HGp,mwk,L6E,B26,Sw,rV,RzM,kbp,EW,UwB,iG6,IP$,$w6,pXk,xRH,NuJ,M4H,aNr,cgw,DRr,fN$,v8r,ZeM,t4E,qDH,dR6,gV,rgp,E8B,XXw,g8p,QWE,sWB,AgJ,ygM,QY,n8$,V4m,Hep,mRk,o8d,Oem,jWH,TuZ,Bu6,kzz,URr,iem,INH,eu$,p_k,xlE,N7H,hpH,l46,a46,MkE,f4$,KQ$,tkZ,vyE,CQJ,JNd,rNd,Ey$,X_H,gyZ,Q2z,s2M,nyM,yNp,w_E,G9M,VkM,WQZ,mlm,Yq,Gu,wV,oyw,Om$,j2r,LQ$,B7B,T7B,k9z,UlJ,imk,$l6,FaE,hk$,lwr,cip,Wc,awH,DX$,fw6,Z3z,tx6,Hc,mD,Jir,dXE,CsJ,E0w,SlE,XRH,OW,Q6H,zkp,yip,Aik,
jw,YlM,wRE,GqE,VxB,WaM,H3J,mXB,Lad,PsE,Rkr,TZ6,BZw,kqE,UXr,ekp,i3r,$XZ,pD6,xKZ,FbB,lGM,cvw,aGZ,MMk,DK6,dKB,tMw,EIM,QZw,$q,zed,vFE,sZd,nIp,bhZ,uZB,Yxk,oId,Ohk,Ng,jZ6,LbM,PDm,TTk,BTp,kgB,ihJ,Rew,UKd,eeJ,$K$,xAz,F0E,NGM,hF6,lBk,cyr,aBH,Mnw,qcp,dAw,Zvw,vP6,Jym,CYz,c$,Scp,ryJ,Mg,XoB,EPJ,gPd,QbM,sbk,nPp,bv6,Ayr,uXB,YcZ,wok,Vnm,mAH,jb$,TGw,PYp,BGE,RFE,ivZ,cbr,pU6,MK6,D3Z,Kvd,qKM,tKE,d36,vhB,Jbd,C5k,SKJ,rbm,XUH,zjZ,sNr,nhp,ybM,uL$,AbH,VKk,Wvk,HOk,m3M,ohB,jN6,z1,P5d,ba,Btm,krr,U3p,pOm,FGd,cQw,M5m,DVm,KGp,
qwp,Zx6,dVH,JQZ,C4M,ENd,gNk,sVr,zop,QVw,V$,yQZ,nN$,bxH,AQz,u1k,Ywm,wOr,GoE,V5w,Hxk,mVH,oNm,jVZ,TIw,OxB,LGZ,BI6,RoH,kok,UVJ,I6r,$VE,cPB,aop,MLB,Dvz,foz,ZCM,LP,SXM,rPw,En$,XYw,gnr,P$,oG,ugE,Ri,YXE,mv6,HC$,kV,OCE,SeZ;_.x$=function(p,x){if(Error.captureStackTrace)Error.captureStackTrace(this,_.x$);else{var F=Error().stack;F&&(this.stack=F)}p&&(this.message=String(p));x!==void 0&&(this.cause=x)};
hz=function(p){return(p&192)!==128};
cr=function(){throw Error("B");};
prp=function(p,x){x=String.fromCharCode.apply(null,x);return p==null?x:p+x};
hEH=function(p){var x=!1;x=x===void 0?!1:x;if(xm$){if(x&&(FHM?!p.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(p)))throw Error("C");p=(NkH||(NkH=new TextEncoder)).encode(p)}else{for(var F=0,N=new Uint8Array(3*p.length),h=0;h<p.length;h++){var c=p.charCodeAt(h);if(c<128)N[F++]=c;else{if(c<2048)N[F++]=c>>6|192;else{if(c>=55296&&c<=57343){if(c<=56319&&h<p.length){var M=p.charCodeAt(++h);if(M>=56320&&M<=57343){c=(c-55296)*1024+M-56320+65536;N[F++]=c>>18|
240;N[F++]=c>>12&63|128;N[F++]=c>>6&63|128;N[F++]=c&63|128;continue}else h--}if(x)throw Error("C");c=65533}N[F++]=c>>12|224;N[F++]=c>>6&63|128}N[F++]=c&63|128}}p=F===N.length?N:N.subarray(0,F)}return p};
fp=function(p){_.Mm.setTimeout(function(){throw p;},0)};
_.qm=function(p,x){return p.lastIndexOf(x,0)==0};
ZZ=function(p,x){var F=p.length-x.length;return F>=0&&p.indexOf(x,F)==F};
_.tz=function(p){return/^[\s\xa0]*$/.test(p)};
_.vr=function(p,x){return p.indexOf(x)!=-1};
_.Sp=function(p,x){return _.vr(p.toLowerCase(),x.toLowerCase())};
_.rk=function(){var p=_.Mm.navigator;return p&&(p=p.userAgent)?p:""};
lZz=function(p){if(!EM||!Xw)return!1;for(var x=0;x<Xw.brands.length;x++){var F=Xw.brands[x].brand;if(F&&_.vr(F,p))return!0}return!1};
Q6=function(p){return _.vr(_.rk(),p)};
zB=function(){return EM?!!Xw&&Xw.brands.length>0:!1};
czd=function(){return zB()?!1:Q6("Opera")};
aZd=function(){return zB()?!1:Q6("Trident")||Q6("MSIE")};
MpJ=function(){return zB()?lZz("Microsoft Edge"):Q6("Edg/")};
y6=function(){return Q6("Firefox")||Q6("FxiOS")};
_.DmJ=function(){return Q6("Safari")&&!(_.bd()||(zB()?0:Q6("Coast"))||czd()||(zB()?0:Q6("Edge"))||MpJ()||(zB()?lZz("Opera"):Q6("OPR"))||y6()||Q6("Silk")||Q6("Android"))};
_.bd=function(){return zB()?lZz("Chromium"):(Q6("Chrome")||Q6("CriOS"))&&!(zB()?0:Q6("Edge"))||Q6("Silk")};
_.fZB=function(){return Q6("Android")&&!(_.bd()||y6()||czd()||Q6("Silk"))};
KHH=function(p){var x={};p.forEach(function(F){x[F[0]]=F[1]});
return function(F){return x[F.find(function(N){return N in x})]||""}};
qME=function(p){var x=_.rk();if(p==="Internet Explorer"){if(aZd())if((p=/rv: *([\d\.]*)/.exec(x))&&p[1])x=p[1];else{p="";var F=/MSIE +([\d\.]+)/.exec(x);if(F&&F[1])if(x=/Trident\/(\d.\d)/.exec(x),F[1]=="7.0")if(x&&x[1])switch(x[1]){case "4.0":p="8.0";break;case "5.0":p="9.0";break;case "6.0":p="10.0";break;case "7.0":p="11.0"}else p="7.0";else p=F[1];x=p}else x="";return x}var N=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");F=[];for(var h;h=N.exec(x);)F.push([h[1],h[2],h[3]||void 0]);
x=KHH(F);switch(p){case "Opera":if(czd())return x(["Version","Opera"]);if(zB()?lZz("Opera"):Q6("OPR"))return x(["OPR"]);break;case "Microsoft Edge":if(zB()?0:Q6("Edge"))return x(["Edge"]);if(MpJ())return x(["Edg"]);break;case "Chromium":if(_.bd())return x(["Chrome","CriOS","HeadlessChrome"])}return p==="Firefox"&&y6()||p==="Safari"&&_.DmJ()||p==="Android Browser"&&_.fZB()||p==="Silk"&&Q6("Silk")?(x=F[2])&&x[1]||"":""};
_.Zpp=function(p){if(zB()&&p!=="Silk"){var x=Xw.brands.find(function(F){return F.brand===p});
if(!x||!x.version)return NaN;x=x.version.split(".")}else{x=qME(p);if(x==="")return NaN;x=x.split(".")}return x.length===0?NaN:Number(x[0])};
Az=function(){return EM?!!Xw&&!!Xw.platform:!1};
_.tpB=function(){return Az()?Xw.platform==="Android":Q6("Android")};
dmw=function(){return Q6("iPhone")&&!Q6("iPod")&&!Q6("iPad")};
_.wk=function(){return dmw()||Q6("iPad")||Q6("iPod")};
_.v$w=function(){return Az()?Xw.platform==="macOS":Q6("Macintosh")};
_.JzJ=function(){return Az()?Xw.platform==="Windows":Q6("Windows")};
_.Cd6=function(){return Az()?Xw.platform==="Chrome OS":Q6("CrOS")};
_.GB=function(p){return p[p.length-1]};
_.V6=function(p,x,F){x=_.SMH(p,x,F);return x<0?null:typeof p==="string"?p.charAt(x):p[x]};
_.SMH=function(p,x,F){for(var N=p.length,h=typeof p==="string"?p.split(""):p,c=0;c<N;c++)if(c in h&&x.call(F,h[c],c,p))return c;return-1};
rzM=function(p){for(var x=_.Wr,F=typeof p==="string"?p.split(""):p,N=p.length-1;N>=0;N--)if(N in F&&x.call(void 0,F[N],N,p))return N;return-1};
_.oJ=function(p,x){return _.mH(p,x)>=0};
_.E$E=function(p,x){_.oJ(p,x)||p.push(x)};
_.Lp=function(p,x){x=_.mH(p,x);var F;(F=x>=0)&&_.XrJ(p,x);return F};
_.XrJ=function(p,x){Array.prototype.splice.call(p,x,1)};
_.Pr=function(p){var x=p.length;if(x>0){for(var F=Array(x),N=0;N<x;N++)F[N]=p[N];return F}return[]};
_.UM=function(p,x){for(var F=1;F<arguments.length;F++){var N=arguments[F];if(_.TB(N)){var h=p.length||0,c=N.length||0;p.length=h+c;for(var M=0;M<c;M++)p[h+M]=N[M]}else p.push(N)}};
_.QJM=function(p,x,F,N){Array.prototype.splice.apply(p,g$H(arguments,1))};
g$H=function(p,x,F){return arguments.length<=2?Array.prototype.slice.call(p,x):Array.prototype.slice.call(p,x,F)};
zEB=function(p,x){x=x||p;for(var F=0,N=0,h={};N<p.length;){var c=p[N++],M=_.IJ(c)?"o"+_.$$(c):(typeof c).charAt(0)+c;Object.prototype.hasOwnProperty.call(h,M)||(h[M]=!0,x[F++]=c)}x.length=F};
_.n$E=function(p,x,F){F=F||_.sJw;for(var N=0,h=p.length,c;N<h;){var M=N+(h-N>>>1);var f=F(x,p[M]);f>0?N=M+1:(h=M,c=!f)}return c?N:-N-1};
_.pZ=function(p,x,F){if(!_.TB(p)||!_.TB(x)||p.length!=x.length)return!1;var N=p.length;F=F||yzB;for(var h=0;h<N;h++)if(!F(p[h],x[h]))return!1;return!0};
_.sJw=function(p,x){return p>x?1:p<x?-1:0};
yzB=function(p,x){return p===x};
bpE=function(p,x,F){x=Array.prototype.splice.call(p,x,1);Array.prototype.splice.call(p,F,0,x[0])};
uwE=function(p){return AzH[p]||""};
GBB=function(p){if(!YMd)return _.Fj(p);p=wrH.test(p)?p.replace(wrH,uwE):p;p=atob(p);for(var x=new Uint8Array(p.length),F=0;F<p.length;F++)x[F]=p.charCodeAt(F);return x};
VpJ=function(p,x){p.__closure__error__context__984382||(p.__closure__error__context__984382={});p.__closure__error__context__984382.severity=x};
_.NI=function(p){p=Error(p);VpJ(p,"warning");return p};
Hpz=function(p,x){if(p!=null){var F;var N=(F=WHH)!=null?F:WHH={};F=N[p]||0;F>=x||(N[p]=F+1,p=Error(),VpJ(p,"incident"),fp(p))}};
lB=function(p,x,F){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(F===void 0?0:F)&&Symbol.for&&p?Symbol.for(p):p!=null?Symbol(p):Symbol():x};
Opm=function(p,x){MI||_.DK in p||mmp(p,o$p);p[_.DK]|=x};
KZ=function(p,x){MI||_.DK in p||mmp(p,o$p);p[_.DK]=x};
tC=function(p,x){p[_.DK]&=~x};
jJr=function(p){if(4&p)return 512&p?512:1024&p?1024:0};
JC=function(p){Opm(p,34);return p};
LHk=function(p){Opm(p,32);return p};
SD=function(){return typeof BigInt==="function"};
Ev=function(p,x){return x===void 0?p.copyOnWrite!==Pdr&&!!(2&(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.DK]|0)):!!(2&x)&&p.copyOnWrite!==Pdr};
_.yJ=function(p,x){if(p!=null)if(typeof p==="string")p=p?new gl(p,QJ):_.zm();else if(p.constructor!==gl)if(TkM&&p!=null&&p instanceof Uint8Array)p=p.length?new gl(new Uint8Array(p),QJ):_.zm();else{if(!x)throw Error();p=void 0}return p};
BkM=function(p,x){if(typeof x!=="number"||x<0||x>=p.length)throw Error();};
REz=function(p,x,F){x=x&128?0:-1;var N=p.length,h;if(h=!!N)h=p[N-1],h=h!=null&&typeof h==="object"&&h.constructor===Object;for(var c=N+(h?-1:0),M=0;M<c;M++)F(M-x,p[M]);if(h){p=p[N-1];for(var f in p)!isNaN(f)&&F(+f,p[f])}};
YB=function(p){return p&128?bB:void 0};
_.wl=function(p){return p};
Gm=function(p){p.isGuard_doNotManuallySetPrettyPlease=!0;return p};
Umd=function(){var p=kBw;return Gm(function(x){for(var F in p)if(x===p[F]&&!/^[0-9]+$/.test(F))return!0;return!1})};
_.VJ=function(p){var x=p;if(ipk(x)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(x))throw Error(String(x));}else if(IZB(x)&&!Number.isSafeInteger(x))throw Error(String(x));return $mZ?BigInt(p):p=eEm(p)?p?"1":"0":ipk(p)?p.trim()||"0":String(p)};
pbE=function(p,x){if(p.length>x.length)return!1;if(p.length<x.length||p===x)return!0;for(var F=0;F<p.length;F++){var N=p[F],h=x[F];if(N>h)return!1;if(N<h)return!0}};
xIr=function(p){var x=p>>>0;Wb=x;Hb=(p-x)/4294967296>>>0};
mn=function(p){if(p<0){xIr(-p);var x=_.a(Fnr(Wb,Hb));p=x.next().value;x=x.next().value;Wb=p>>>0;Hb=x>>>0}else xIr(p)};
Nlw=function(p,x){var F=x*4294967296+(p>>>0);return Number.isSafeInteger(F)?F:_.ok(p,x)};
h6d=function(p,x){var F=x&2147483648;F&&(p=~p+1>>>0,x=~x>>>0,p==0&&(x=x+1>>>0));p=Nlw(p,x);return typeof p==="number"?F?-p:p:F?"-"+p:p};
_.ok=function(p,x){x>>>=0;p>>>=0;if(x<=2097151)var F=""+(4294967296*x+p);else SD()?F=""+(BigInt(x)<<BigInt(32)|BigInt(p)):(F=(p>>>24|x<<8)&16777215,x=x>>16&65535,p=(p&16777215)+F*6777216+x*6710656,F+=x*8147497,x*=2,p>=1E7&&(F+=p/1E7>>>0,p%=1E7),F>=1E7&&(x+=F/1E7>>>0,F%=1E7),F=x+lKk(F)+lKk(p));return F};
lKk=function(p){p=String(p);return"0000000".slice(p.length)+p};
_.cCH=function(p,x){x&2147483648?SD()?p=""+(BigInt(x|0)<<BigInt(32)|BigInt(p>>>0)):(x=_.a(Fnr(p,x)),p=x.next().value,x=x.next().value,p="-"+_.ok(p,x)):p=_.ok(p,x);return p};
aKp=function(p){if(p.length<16)mn(Number(p));else if(SD())p=BigInt(p),Wb=Number(p&BigInt(4294967295))>>>0,Hb=Number(p>>BigInt(32)&BigInt(4294967295));else{var x=+(p[0]==="-");Hb=Wb=0;for(var F=p.length,N=x,h=(F-x)%6+x;h<=F;N=h,h+=6)N=Number(p.slice(N,h)),Hb*=1E6,Wb=Wb*1E6+N,Wb>=4294967296&&(Hb+=Math.trunc(Wb/4294967296),Hb>>>=0,Wb>>>=0);x&&(x=_.a(Fnr(Wb,Hb)),p=x.next().value,x=x.next().value,Wb=p,Hb=x)}};
Fnr=function(p,x){x=~x;p?p=~p+1:x+=1;return[p,x]};
LZ=function(p){return Array.prototype.slice.call(p)};
_.Pb=function(p,x){throw Error(x===void 0?"unexpected value "+p+"!":x);};
_.Rk=function(p){if(p!=null&&typeof p!=="number")throw Error("I`"+typeof p+"`"+p);return p};
MD6=function(p){if(p==null||typeof p==="number")return p;if(p==="NaN"||p==="Infinity"||p==="-Infinity")return Number(p)};
fKm=function(p){if(p!=null&&typeof p!=="boolean")throw Error("J`"+_.DIZ(p)+"`"+p);return p};
Knp=function(p){if(p==null||typeof p==="boolean")return p;if(typeof p==="number")return!!p};
_.iB=function(p){switch(typeof p){case "bigint":return!0;case "number":return kB(p);case "string":return qvJ.test(p);default:return!1}};
_.$B=function(p){if(!kB(p))throw _.NI("enum");return p|0};
_.eD=function(p){return p==null?p:kB(p)?p|0:void 0};
ZZk=function(p){if(typeof p!=="number")throw _.NI("int32");if(!kB(p))throw _.NI("int32");return p|0};
_.p8=function(p){return p==null?p:ZZk(p)};
_.x_=function(p){if(p==null)return p;if(typeof p==="string"&&p)p=+p;else if(typeof p!=="number")return;return kB(p)?p|0:void 0};
_.tDE=function(p){if(p==null)return p;if(typeof p==="string"&&p)p=+p;else if(typeof p!=="number")return;return kB(p)?p>>>0:void 0};
CBH=function(p){var x=0;x=x===void 0?0:x;if(!_.iB(p))throw _.NI("int64");var F=typeof p;switch(x){case 512:switch(F){case "string":return Fc(p);case "bigint":return String(NH(64,p));default:return dId(p)}case 1024:switch(F){case "string":return vB$(p);case "bigint":return _.VJ(NH(64,p));default:return JCw(p)}case 0:switch(F){case "string":return Fc(p);case "bigint":return _.VJ(NH(64,p));default:return cH(p)}default:return _.Pb(x,"Unknown format requested type for int64")}};
at=function(p){return p==null?p:CBH(p)};
Svr=function(p){if(p[0]==="-")return!1;var x=p.length;return x<20?!0:x===20&&Number(p.substring(0,6))<184467};
rCH=function(p){var x=p.length;return p[0]==="-"?x<20?!0:x===20&&Number(p.substring(0,7))>-922337:x<19?!0:x===19&&Number(p.substring(0,6))<922337};
EBJ=function(p){if(p<0){mn(p);var x=_.ok(Wb,Hb);p=Number(x);return MH(p)?p:x}x=String(p);if(Svr(x))return x;mn(p);return Nlw(Wb,Hb)};
Xbw=function(p){if(rCH(p))return p;aKp(p);return _.cCH(Wb,Hb)};
gBk=function(p){if(Svr(p))return p;aKp(p);return _.ok(Wb,Hb)};
cH=function(p){p=f8(p);MH(p)||(mn(p),p=h6d(Wb,Hb));return p};
_.QkB=function(p){p=f8(p);return p>=0&&MH(p)?p:EBJ(p)};
dId=function(p){p=f8(p);if(MH(p))p=String(p);else{var x=String(p);rCH(x)?p=x:(mn(p),p=_.cCH(Wb,Hb))}return p};
_.z6M=function(p){p=f8(p);if(p>=0&&MH(p))p=String(p);else{var x=String(p);Svr(x)?p=x:(mn(p),p=_.ok(Wb,Hb))}return p};
Fc=function(p){var x=f8(Number(p));if(MH(x))return String(x);x=p.indexOf(".");x!==-1&&(p=p.substring(0,x));return Xbw(p)};
vB$=function(p){var x=f8(Number(p));if(MH(x))return _.VJ(x);x=p.indexOf(".");x!==-1&&(p=p.substring(0,x));return SD()?_.VJ(NH(64,BigInt(p))):_.VJ(Xbw(p))};
JCw=function(p){return MH(p)?_.VJ(cH(p)):_.VJ(dId(p))};
_.skM=function(p){return MH(p)?_.VJ(_.QkB(p)):_.VJ(_.z6M(p))};
_.nBJ=function(p){var x=f8(Number(p));if(MH(x)&&x>=0)return String(x);x=p.indexOf(".");x!==-1&&(p=p.substring(0,x));return gBk(p)};
_.yCw=function(p){var x=f8(Number(p));if(MH(x)&&x>=0)return _.VJ(x);x=p.indexOf(".");x!==-1&&(p=p.substring(0,x));return SD()?_.VJ((0,_.K8)(64,BigInt(p))):_.VJ(gBk(p))};
bZM=function(p,x){x=x===void 0?!1:x;var F=typeof p;if(p==null)return p;if(F==="bigint")return String(NH(64,p));if(_.iB(p))return F==="string"?Fc(p):x?dId(p):cH(p)};
ACp=function(p){if(p==null)return p;var x=typeof p;if(x==="bigint")return String(NH(64,p));if(_.iB(p)){if(x==="string")return Fc(p);if(x==="number")return cH(p)}};
ujd=function(p){if(p==null)return p;var x=typeof p;if(x==="bigint")return String((0,_.K8)(64,p));if(_.iB(p)){if(x==="string")return _.nBJ(p);if(x==="number")return _.QkB(p)}};
_.Z8=function(p){if(typeof p!=="string")throw Error();return p};
te=function(p){if(p!=null&&typeof p!=="string")throw Error();return p};
_.dD=function(p){return p==null||typeof p==="string"?p:void 0};
wbH=function(p,x,F,N){if(p!=null&&typeof p==="object"&&p[Je]===C8)return p;if(!Array.isArray(p))return F?N&2?((p=x[Yvp])||(p=new x,JC(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),p=x[Yvp]=p),x=p):x=new x:x=void 0,x;F=p[_.DK]|0;N=F|N&32|N&2;N!==F&&KZ(p,N);return new x(p)};
Gm6=function(p,x,F){p=x?ZZk(p):_.x_(p);return p==null?F?0:void 0:p|0};
VDE=function(p){return p};
WnM=function(p){return p};
mIB=function(p,x,F,N,h,c){p=wbH(p,N,F,c);h&&(p=HZw(p));return p};
oBk=function(p){return[p,this.get(p)]};
Lnm=function(){return OZ6||(OZ6=new SH(JC([]),void 0,void 0,void 0,jkw))};
Tlz=function(p){var x=PBH(rD);return x?p[x]:void 0};
R6d=function(p,x){var F=PBH(rD),N;MI&&F&&((N=p[F])==null?void 0:N[x])!=null&&Hpz(BlZ,3)};
IK$=function(p,x,F,N,h){N=N===void 0?!1:N;h=h===void 0?!1:h;var c=[],M=p.length,f=4294967295,K=!1,t=!!(x&64),d=t?x&128?0:-1:void 0;if(!(x&1)){var v=M&&p[M-1];v!=null&&typeof v==="object"&&v.constructor===Object?(M--,f=M):v=void 0;if(t&&!(x&128)&&!h){K=!0;var C;f=((C=km6)!=null?C:VDE)(f-d,d,p,v)+d}}C=void 0;for(var X=0;X<M;X++){var Q=p[X];if(Q!=null&&(Q=F(Q,N))!=null)if(t&&X>=f){var b=X-d,A=void 0;((A=C)!=null?A:C={})[b]=Q}else c[X]=Q}if(v)for(var Y in v)M=v[Y],M!=null&&(M=F(M,N))!=null&&(X=+Y,Q=void 0,
t&&!Number.isNaN(X)&&(Q=X+d)<f?c[Q]=M:(X=void 0,((X=C)!=null?X:C={})[Y]=M));C&&(K?c.push(C):c[f]=C);h&&(KZ(c,x&16761025|34),PBH(rD)&&(p=Tlz(p))&&p instanceof UIr&&(c[rD]=iZd(p)));return c};
e6m=function(p){p[0]=$IE(p[0]);p[1]=$IE(p[1]);return p};
$IE=function(p){switch(typeof p){case "number":return Number.isFinite(p)?p:""+p;case "bigint":return(0,_.Ek)(p)?Number(p):""+p;case "boolean":return p?1:0;case "object":if(Array.isArray(p)){var x=p[_.DK]|0;return p.length===0&&x&1?void 0:IK$(p,x,$IE)}if(p[Je]===C8)return pHk(p);if(p instanceof gl){x=p.JSC$6671_value_;if(x==null)p="";else if(typeof x==="string")p=x;else{if(YMd){for(var F="",N=0,h=x.length-10240;N<h;)F+=String.fromCharCode.apply(null,x.subarray(N,N+=10240));F+=String.fromCharCode.apply(null,
N?x.subarray(N):x);x=btoa(F)}else x=_.Xc(x);p=p.JSC$6671_value_=x}return p}if(p instanceof SH)return p=p.size!==0?Array.from(gD.prototype.entries.call(p),e6m):void 0,p;return}return p};
Qa=function(p,x){if(x){km6=x==null||x===VDE||x[xHE]!==FmH?VDE:x;try{return pHk(p)}finally{km6=void 0}}return pHk(p)};
pHk=function(p){p=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return IK$(p,p[_.DK]|0,$IE)};
l8p=function(p){switch(typeof p){case "boolean":return NDH||(NDH=[0,void 0,!0]);case "number":return p>0?void 0:p===0?h8E||(h8E=[0,void 0]):[-p,void 0];case "string":return[0,p];case "object":return p}};
ya=function(p,x,F){p=_.zX(p,x[0],x[1],F?1:2);x!==NDH&&F&&Opm(p,2048);return p};
_.zX=function(p,x,F,N){N=N===void 0?0:N;if(p==null){var h=32;F?(p=[F],h|=128):p=[];x&&(h=h&-16760833|(x&1023)<<14)}else{if(!Array.isArray(p))throw Error("L");h=p[_.DK]|0;4096&h&&!(2&h)&&ceB();if(h&256)throw Error("N");if(h&64)return N!==0||h&4096||KZ(p,h|4096),p;if(F&&(h|=128,F!==p[0]))throw Error("O");a:{F=p;h|=64;var c=F.length;if(c){var M=c-1,f=F[M];if(f!=null&&typeof f==="object"&&f.constructor===Object){x=h&128?0:-1;M-=x;if(M>=1024)throw Error("Q");for(var K in f)c=+K,c<M&&(F[c+x]=f[K],delete f[K]);
h=h&-16760833|(M&1023)<<14;break a}}if(x){K=Math.max(x,c-(h&128?0:-1));if(K>1024)throw Error("R");h=h&-16760833|(K&1023)<<14}}}h|=64;N===0&&(h|=4096);KZ(p,h);return p};
ceB=function(){Hpz(a8$,5)};
f8J=function(p,x){if(typeof p!=="object")return p;if(Array.isArray(p)){var F=p[_.DK]|0;return p.length===0&&F&1?void 0:MHr(p,F,x)}if(p[Je]===C8)return DHp(p);if(p instanceof SH){x=p.arrayState;if(x&2)return p;if(!p.size)return;F=JC(Array.from(gD.prototype.entries.call(p)));if(p.valueCtor)for(p=0;p<F.length;p++){var N=F[p],h=N[1];h==null||typeof h!=="object"?h=void 0:h[Je]===C8?h=DHp(h):Array.isArray(h)?h=MHr(h,h[_.DK]|0,!!(x&32)):h=void 0;N[1]=h}return F}if(p instanceof gl)return p};
MHr=function(p,x,F){if(x&2)return p;!F||8192&x||16&x?p=bm(p,x,F&&!(x&16)):(Opm(p,34),x&4&&Object.freeze(p));return p};
DHp=function(p){var x=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=x[_.DK]|0;return Ev(p,F)?p:bm(x,F)};
bm=function(p,x,F){F!=null||(F=!!(34&x));return IK$(p,x,f8J,F,!0)};
HZw=function(p){var x=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=x[_.DK]|0;if(!Ev(p,F))return p;p=new p.constructor(bm(x,F));tC(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,2);return p};
Ae=function(p){if(p.copyOnWrite!==Pdr)return!1;var x=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;x=bm(x,x[_.DK]|0);tC(x,2);p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=x;p.copyOnWrite=void 0;return!0};
um=function(p){if(!Ae(p)&&Ev(p,p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.DK]|0))throw Error();};
Y_=function(p,x,F,N,h){var c=F+(h?0:-1),M=p.length-1;if(M>=1+(h?0:-1)&&c>=M){var f=p[M];if(f!=null&&typeof f==="object"&&f.constructor===Object)return f[F]=N,x}if(c<=M)return p[c]=N,x;if(N!==void 0){var K;M=((K=x)!=null?K:x=p[_.DK]|0)>>14&1023||536870912;F>=M?N!=null&&(c={},p[M+(h?0:-1)]=(c[F]=N,c)):p[c]=N}return x};
_.Va=function(p,x,F,N,h){var c=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=c[_.DK]|0;N=Ev(p,M)?1:N;h=!!h||N===3;N===2&&Ae(p)&&(c=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M=c[_.DK]|0);p=KmZ(c,x);var f=p===wD?7:p[_.DK]|0,K=qkk(f,M);var t=4&K?!1:!0;if(t){4&K&&(p=LZ(p),f=0,K=GX(K,M),M=Y_(c,M,x,p));for(var d=0,v=0;d<p.length;d++){var C=F(p[d]);C!=null&&(p[v++]=C)}v<d&&(p.length=v);F=(K|4)&-513;K=F&=-1025;K&=-8193}K!==f&&(KZ(p,K),2&K&&Object.freeze(p));return p=Z8Z(p,K,c,
M,x,N,t,h)};
Z8Z=function(p,x,F,N,h,c,M,f){var K=x;c===1||(c!==4?0:2&x||!(16&x)&&32&N)?WH(x)||(x|=!p.length||M&&!(8192&x)||32&N&&!(8192&x||16&x)?2:256,x!==K&&KZ(p,x),Object.freeze(p)):(c===2&&WH(x)&&(p=LZ(p),K=0,x=GX(x,N),Y_(F,N,h,p)),WH(x)||(f||(x|=16),x!==K&&KZ(p,x)));return p};
KmZ=function(p,x,F){p=HH(p,x,F);return Array.isArray(p)?p:wD};
qkk=function(p,x){2&x&&(p|=2);return p|1};
WH=function(p){return!!(2&p)&&!!(4&p)||!!(256&p)};
tHw=function(p){return _.yJ(p,!0)};
dH6=function(p,x){var F=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=F[_.DK]|0;a:{var h=N;N=Ev(p,N);!N&&Ae(p)&&(F=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=F[_.DK]|0);var c=HH(F,x);p=!1;if(c==null){if(N){x=Lnm();break a}c=[]}else if(c.constructor===SH)if(c.arrayState&2&&!N)c=Array.from(gD.prototype.entries.call(c));else{x=c;break a}else Array.isArray(c)?p=!!((c[_.DK]|0)&2):c=[];if(N){if(!c.length){x=Lnm();break a}p||(p=!0,JC(c))}else if(p){p=!1;N=c;N=LZ(N);for(c=0;c<
N.length;c++){var M=N[c]=LZ(N[c]);Array.isArray(M[1])&&(M[1]=JC(M[1]))}c=N}!p&&h&32&&LHk(c);p=new SH(c,void 0,Gm6,Gm6);Y_(F,h,x,p);x=p}return x};
_.mm=function(p,x,F,N){um(p);var h=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=h[_.DK]|0;if(F==null)return Y_(h,c,x),p;var M=F===wD?7:F[_.DK]|0,f=M,K=WH(M),t=K||Object.isFrozen(F);K||(M=0);t||(F=LZ(F),f=0,M=GX(M,c),t=!1);M|=5;var d;K=(d=jJr(M))!=null?d:0;for(d=0;d<F.length;d++){var v=F[d],C=N(v,K);Object.is(v,C)||(t&&(F=LZ(F),f=0,M=GX(M,c),t=!1),F[d]=C)}M!==f&&(t&&(F=LZ(F),M=GX(M,c)),KZ(F,M));Y_(h,c,x,F);return p};
_.Ok=function(p,x,F,N,h){um(p);var c=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Y_(c,c[_.DK]|0,x,(N==="0"?Number(F)===0:F===N)?void 0:F,h);return p};
_.v_Z=function(p,x,F){if(x&2)throw Error();var N=YB(x),h=KmZ(p,F,N),c=h===wD?7:h[_.DK]|0,M=qkk(c,x);if(2&M||WH(M)||16&M)h=LZ(h),c=0,M=GX(M,x),Y_(p,x,F,h,N);M&=-13;M!==c&&KZ(h,M);return h};
JeZ=function(p){if(MI){var x;return(x=p[jH])!=null?x:p[jH]=new Map}if(jH in p)return p[jH];x=new Map;Object.defineProperty(p,jH,{value:x});return x};
Skp=function(p,x,F,N,h){var c=JeZ(p),M=Cmm(c,p,x,F,h);M!==N&&(M&&(x=Y_(p,x,M,void 0,h)),c.set(F,N));return x};
Cmm=function(p,x,F,N,h){var c=p.get(N);if(c!=null)return c;for(var M=c=0;M<N.length;M++){var f=N[M];HH(x,f,h)!=null&&(c!==0&&(F=Y_(x,F,c,void 0,h)),c=f)}p.set(N,c);return c};
reH=function(p,x,F,N,h){p=HH(p,N,h,function(c){return wbH(c,F,!1,x)});
if(p!=null)return p};
E_p=function(p,x,F,N,h,c,M,f){var K=Ev(p,F);c=K?1:c;M=!!M||c===3;K=f&&!K;(c===2||K)&&Ae(p)&&(x=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=x[_.DK]|0);p=KmZ(x,h);var t=p===wD?7:p[_.DK]|0,d=qkk(t,F);if(f=!(4&d)){var v=p,C=F,X=!!(2&d);X&&(C|=2);for(var Q=!X,b=!0,A=0,Y=0;A<v.length;A++){var O=wbH(v[A],N,!1,C);if(O instanceof N){if(!X){var Fw=Ev(O);Q&&(Q=!Fw);b&&(b=Fw)}v[Y++]=O}}Y<A&&(v.length=Y);d|=4;d=b?d&-8193:d|8192;d=Q?d|8:d&-9}d!==t&&(KZ(p,d),2&d&&Object.freeze(p));if(K&&!(8&d||!p.length&&
(c===1||(c!==4?0:2&d||!(16&d)&&32&F)))){WH(d)&&(p=LZ(p),d=GX(d,F),F=Y_(x,F,h,p));N=p;K=d;for(t=0;t<N.length;t++)v=N[t],d=HZw(v),v!==d&&(N[t]=d);K|=8;d=K=N.length?K|8192:K&-8193;KZ(p,d)}return p=Z8Z(p,d,x,F,h,c,f,M)};
XHM=function(p){p==null&&(p=void 0);return p};
GX=function(p,x){return p=(2&x?p|2:p&-3)&-273};
_.g_w=function(p,x,F,N,h){um(p);x=_.Va(p,x,h,2,!0);var c;h=(c=jJr(x===wD?7:x[_.DK]|0))!=null?c:0;x.push(F(N,h));return p};
QtB=function(p,x,F,N,h,c,M){um(p);var f=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;p=E_p(p,f,f[_.DK]|0,F,x,2,!0);if(c&&M)h!=null||(h=p.length-1),BkM(p,h),p.splice(h,c),p.length||tC(p,8192);else{if(c){if(typeof h!=="number"||h<0||h>p.length)throw Error();}else N=N!=null?N:new F;h!=void 0?p.splice(h,c,N):p.push(N);h=F=p===wD?7:p[_.DK]|0;Ev(N)?(F&=-9,p.length===1&&(F&=-8193)):F|=8192;F!==h&&KZ(p,F)}};
std=function(p,x){if(typeof p==="string")return new L8(GBB(p),x);if(Array.isArray(p))return new L8(new Uint8Array(p),x);if(p.constructor===Uint8Array)return new L8(p,!1);if(p.constructor===ArrayBuffer)return p=new Uint8Array(p),new L8(p,!1);if(p.constructor===gl)return x=z8$(p)||new Uint8Array(0),new L8(x,!0,p);if(p instanceof Uint8Array)return p=p.constructor===Uint8Array?p:new Uint8Array(p.buffer,p.byteOffset,p.byteLength),new L8(p,!1);throw Error();};
_.TX=function(){var p=function(){throw Error();};
Object.setPrototypeOf(p,p.prototype);return p};
yez=function(p,x){var F=F===void 0?n_6:F;return new BH(p,x,F)};
YkH=function(p,x,F,N,h){x=b8B(x,N);x!=null&&(F=_.Aep(p,F),h(x,p),_.ucJ(p,F))};
Rt=function(p,x,F,N){var h=N[p];if(h)return h;h={};h.binaryFields=N;h.messageMetadata=l8p(N[0]);var c=N[1],M=1;c&&c.constructor===Object&&(h.extensions=c,c=N[++M],typeof c==="function"&&(h.isMessageSet=!0,wHJ!=null||(wHJ=c),GXp!=null||(GXp=N[M+1]),c=N[M+=2]));for(var f={};c&&Array.isArray(c)&&c.length&&typeof c[0]==="number"&&c[0]>0;){for(var K=0;K<c.length;K++)f[c[K]]=c;c=N[++M]}for(K=1;c!==void 0;){typeof c==="number"&&(K+=c,c=N[++M]);var t=void 0;if(c instanceof BH)var d=c;else d=VHd,M--;c=void 0;
if((c=d)==null?0:c.$$isMsg){c=N[++M];t=N;var v=M;typeof c==="function"&&(c=c(),t[v]=c);t=c}c=N[++M];v=K+1;typeof c==="number"&&c<0&&(v-=c,c=N[++M]);for(;K<v;K++){var C=f[K];t?F(h,K,d,t,C):x(h,K,d,C)}}return N[p]=h};
H8k=function(p){return Array.isArray(p)?p[0]instanceof BH?p:[WmH,p]:[p,void 0]};
b8B=function(p,x){if(p instanceof _.Uk)return p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(p))return ya(p,x,!1)};
mHZ=function(p,x,F,N){var h=F.$$binaryReaderFn;p[x]=N?function(c,M,f){return h(c,M,f,N)}:h};
O8E=function(p,x,F,N,h){var c=F.$$binaryReaderFn,M,f;p[x]=function(K,t,d){return c(K,t,d,f||(f=Rt(o_w,mHZ,O8E,N).messageMetadata),M||(M=jtm(N)),h)}};
jtm=function(p){var x=p[LmE];if(x!=null)return x;var F=Rt(o_w,mHZ,O8E,p);x=F.isMessageSet?function(N,h){return wHJ(N,h,F)}:function(N,h){for(var c=N[_.DK]|0;Pmp(h)&&h.nextWireType_!=4;){var M=h.nextField_,f=F[M];
if(f==null){var K=F.extensions;K&&(K=K[M])&&(K=TDZ(K),K!=null&&(f=F[M]=K))}if(f==null||!f(h,N,M)){K=h;f=K.fieldCursor_;BD6(K);if(K.discardUnknownFields)var t=void 0;else{var d=K.decoder_.cursor_-f;K.decoder_.cursor_=f;t=R8J(K.decoder_,d)}d=K=f=void 0;var v=N;t&&((f=(K=(d=v[rD])!=null?d:v[rD]=new UIr)[M])!=null?f:K[M]=[]).push(t)}}if(h=Tlz(N))h.reviveUnknownFields=F.binaryFields[kXr];c&2048&&JC(N);return!0};
p[LmE]=x;p[kXr]=UHE.bind(p);return x};
UHE=function(p,x,F){var N=this[o_w],h=this[LmE],c=ya(void 0,N.messageMetadata,!1),M=Tlz(p);if(M){var f=!1,K=N.extensions;if(K&&(M==null||i8p(M,function(v,C,X){if(X.length!==0)if(K[C])for(v=_.a(X),C=v.next();!C.done;C=v.next()){C=I86(C.value);try{f=!0,h(c,C)}finally{C.free()}}else F==null||F(p,C,X)}),f)){var t=p[_.DK]|0;
if(t&2&&t&4096)throw Error();var d=YB(t);REz(c,c[_.DK]|0,function(v,C){if(HH(p,v,d)!=null)switch(x==null?void 0:x.resolutionBehavior){case 1:return;default:throw Error();}t=Y_(p,t,v,C,d);delete M[v]})}}};
TDZ=function(p){p=H8k(p);var x=p[0].$$binaryReaderFn;if(p=p[1]){var F=jtm(p),N=Rt(o_w,mHZ,O8E,p).messageMetadata;return function(h,c,M){return x(h,c,M,N,F)}}return x};
$Hp=function(p,x,F){p[x]=F.$$binaryWriterFn};
pzw=function(p,x,F,N){var h,c,M=F.$$binaryWriterFn;p[x]=function(f,K,t){return M(f,K,t,c||(c=Rt(e8M,$Hp,pzw,N).messageMetadata),h||(h=xMp(N)))}};
xMp=function(p){var x=p[FAM];if(!x){var F=Rt(e8M,$Hp,pzw,p);x=function(N,h){return Ne$(N,h,F)};
p[FAM]=x}return x};
Ne$=function(p,x,F){REz(p,p[_.DK]|0,function(N,h){if(h!=null){var c=h56(F,N);c&&c(x,h,N)}});
(p=Tlz(p))&&i8p(p,function(N,h,c){im(x,x.encoder_.end());for(N=0;N<c.length;N++)im(x,z8$(c[N])||new Uint8Array(0))})};
h56=function(p,x){var F=p[x];if(F)return F;if(F=p.extensions)if(F=F[x]){F=H8k(F);var N=F[0].$$binaryWriterFn;if(F=F[1]){var h=xMp(F),c=Rt(e8M,$Hp,pzw,F).messageMetadata;F=p.isMessageSet?GXp(c,h):function(M,f,K){return N(M,f,K,c,h)}}else F=N;
return p[x]=F}};
_.lnp=function(p,x,F){if(Array.isArray(x)){var N=x[_.DK]|0;if(N&4)return x;for(var h=0,c=0;h<x.length;h++){var M=p(x[h]);M!=null&&(x[c++]=M)}c<h&&(x.length=c);F&&(KZ(x,(N|5)&-1537),N&2&&Object.freeze(x));return x}};
_.It=function(p,x,F){return new BH(p,x,F)};
_.cor=function(p,x,F){return new BH(p,x,F)};
_.$_=function(p,x,F){Y_(p,p[_.DK]|0,x,F,YB(p[_.DK]|0))};
MPM=function(p,x,F){x=MD6(x);x!=null&&(_.eH(p,F,1),p=p.encoder_,F=anm||(anm=new DataView(new ArrayBuffer(8))),F.setFloat64(0,+x,!0),Wb=F.getUint32(0,!0),Hb=F.getUint32(4,!0),_.p6(p,Wb),_.p6(p,Hb))};
_.xE=function(p,x,F){x=ACp(x);if(x!=null){switch(typeof x){case "string":DMk(x)}if(x!=null)switch(_.eH(p,F,0),typeof x){case "number":p=p.encoder_;mn(x);fn6(p,Wb,Hb);break;case "bigint":F=BigInt.asUintN(64,x);F=new KAm(Number(F&BigInt(4294967295)),Number(F>>BigInt(32)));fn6(p.encoder_,F.JSC$6728_lo,F.JSC$6728_hi);break;default:F=DMk(x),fn6(p.encoder_,F.JSC$6728_lo,F.JSC$6728_hi)}}};
Z66=function(p,x,F){x=_.x_(x);x!=null&&x!=null&&(_.eH(p,F,0),_.qUd(p.encoder_,x))};
_.dMp=function(p,x,F){tPp(p,F,ujd(x))};
_.vEw=function(p,x,F){x=Knp(x);x!=null&&(_.eH(p,F,0),p.encoder_.JSC$6730_buffer_.push(x?1:0))};
_.Cgp=function(p,x,F){x=_.dD(x);x!=null&&JoZ(p,F,hEH(x))};
SUJ=function(p,x,F,N,h){x=b8B(x,N);x!=null&&(F=_.Aep(p,F),h(x,p),_.ucJ(p,F))};
_.rok=function(p,x,F){x=x==null||typeof x=="string"||x instanceof gl?x:void 0;x!=null&&JoZ(p,F,std(x,!0).buffer)};
_.EEr=function(p,x,F){x=_.x_(x);x!=null&&(x=parseInt(x,10),_.eH(p,F,0),_.qUd(p.encoder_,x))};
_.NM=function(p,x){return function(F,N){var h={treatNewDataAsImmutable:!0};N&&Object.assign(h,N);F=I86(F,void 0,void 0,h);try{var c=new p,M=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;jtm(x)(M,F);var f=c}finally{F.free()}return f}};
_.lg=function(p){return function(x){return Xzw(x,p)}};
gEM=function(p){return function(){return Xzw(this,p)}};
_.QMp=function(p){return Gm(function(x){return x instanceof p&&!Ev(x)})};
_.cz=function(p){return function(x){return z5$(p,x)}};
b6r=function(p,x){return sM$({child:p,origin:x||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:nEM,getPayloadCase:function(F){return F.getPayloadCase()},
createInitMessage:function(F){var N=new MM,h=new yop;F=_.f6(h,1,F);return _.K6(N,5,qM,F)}})};
to=function(p){return{valueOf:p}.valueOf()};
uKz=function(){var p=null;if(!Aop)return p;try{var x=function(F){return F};
p=Aop.createPolicy("goog#html",{createHTML:x,createScript:x,createScriptURL:x})}catch(F){}return p};
wzk=function(){YU6===void 0&&(YU6=uKz());return YU6};
_.vz=function(p){var x=wzk();p=x?x.createScriptURL(p):p;return new de(p)};
_.SP=function(p){if(p instanceof de)return p.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
Glp=function(p){return p.toString().indexOf("`")===-1};
XK=function(p){return new _.EU(VPp,p)};
Qb=function(p){return p instanceof _.EU};
_.n6=function(p){if(Qb(p))return p.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
yb=function(p){return new WAB(function(x){return x.substr(0,p.length+1).toLowerCase()===p+":"})};
bg=function(p,x){x=x===void 0?H6p:x;if(Qb(p))return p;for(var F=0;F<x.length;++F){var N=x[F];if(N instanceof WAB&&N.isValid(p))return XK(p)}};
_.ug=function(p,x){x=x===void 0?H6p:x;return bg(p,x)||Ao};
YE=function(p){var x=window;if(typeof MediaSource!=="undefined"&&p instanceof MediaSource||typeof x.ManagedMediaSource!=="undefined"&&p instanceof x.ManagedMediaSource)return XK(URL.createObjectURL(p));x=p.type;x.toLowerCase()==="application/octet-stream"?x=!0:(x=x.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),x=(x==null?void 0:x.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(x[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(x[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(x[1])||/^font\/[\w-]+$/i.test(x[1])));if(!x)throw Error("da");return XK(URL.createObjectURL(p))};
_.Gl=function(p){for(var x=_.we.apply(1,arguments),F=[p[0]],N=0;N<x.length;N++)F.push(String(x[N])),F.push(p[N+1]);return XK(F.join(""))};
_.oEz=function(p){if(!mMz){a:{var x=document.createElement("a");try{x.href=p}catch(F){p=void 0;break a}p=x.protocol;p=p===":"||p===""?"https:":p}return p}try{x=new URL(p)}catch(F){return"https:"}return x.protocol};
_.Vb=function(p){p instanceof _.EU?p=_.n6(p):p=O6d.test(p)?p:void 0;return p};
Wz=function(p,x){x=_.Vb(x);x!==void 0&&(p.href=x)};
oM=function(p){var x=wzk();p=x?x.createHTML(p):p;return new Hz(p)};
OU=function(p){if(p instanceof Hz)return p.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.jP=function(p,x){p.src=_.SP(x).toString()};
jMw=function(p,x){p.setAttribute("sandbox","");for(var F=0;F<x.length;F++)p.sandbox.supports&&!p.sandbox.supports(x[F])||p.sandbox.add(x[F])};
_.Pgd=function(p,x,F){p.removeAttribute("srcdoc");switch(x){case 0:if(F instanceof de)throw new LAr("TrustedResourceUrl",0);jMw(p,[]);x=_.Vb(F);x!==void 0&&(p.src=x);break;case 1:if(!(F instanceof de))throw new LAr(typeof F,1);jMw(p,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.jP(p,F);break;case 2:if(F instanceof de)throw new LAr("TrustedResourceUrl",2);jMw(p,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
x=_.Vb(F);x!==void 0&&(p.src=x);break;default:_.Pb(x)}};
_.L6=function(p,x,F,N){x=_.Vb(x);return x!==void 0?p.open(x,F,N):null};
_.Pz=function(p){p=p===void 0?document:p;var x,F;p=(F=(x=p).querySelector)==null?void 0:F.call(x,"script[nonce]");return p==null?"":p.nonce||p.getAttribute("nonce")||""};
_.RM=function(p){var x=wzk();p=x?x.createScript(p):p;return new _.Tl(p)};
TeB=function(p){if(p instanceof _.Tl)return p.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
BeH=function(p){var x=_.Pz(p.ownerDocument);x&&p.setAttribute("nonce",x)};
_.kE=function(p,x){p.textContent=TeB(x);BeH(p)};
_.UU=function(p,x){p.src=_.SP(x);BeH(p)};
_.ig=function(p,x){if(p.nodeType===1&&/^(script|style)$/i.test(p.tagName))throw Error("da");p.innerHTML=OU(x)};
_.$E=function(p,x,F,N){if(p.length===0)throw Error("da");p=p.map(function(c){if(c instanceof R56)c=c.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return c});
var h=F.toLowerCase();if(p.every(function(c){return h.indexOf(c)!==0}))throw Error("ea`"+F);
x.setAttribute(F,N)};
_.eP=function(p,x,F){if(x instanceof de)p.href=_.SP(x).toString(),p.rel=F;else{if(klB.indexOf(F)===-1)throw Error("fa`"+F);x=_.Vb(x);x!==void 0&&(p.href=x,p.rel=F)}};
UMM=function(p){return"function"==typeof _.pM&&p instanceof _.pM};
_.i6w=function(p){if(UMM(p))return p.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.InJ=function(p,x){x=_.Vb(x);x!==void 0&&(p.href=x)};
$MB=function(p,x){p&&(x=p.indexOf(x),0<=x&&p.splice(x,1))};
xZ=function(p){return typeof p==="function"};
e5J=function(p){return p instanceof FB||p&&"closed"in p&&xZ(p.remove)&&xZ(p.add)&&xZ(p.unsubscribe)};
NF=function(){};
hB=function(p){p9d(function(){throw p;})};
l2=function(p){return p};
c9=function(){return xFd(_.we.apply(0,arguments))};
xFd=function(p){return p.length===0?l2:p.length===1?p[0]:function(x){return p.reduce(function(F,N){return N(F)},x)}};
Fhm=function(p){var x;return(x=p!=null?p:void 0)!=null?x:Promise};
Nnz=function(p,x){return new ay(function(F){var N=0;return x.schedule(function(){N===p.length?F.complete():(F.next(p[N++]),F.closed||this.schedule())})})};
hDZ=function(p,x){if(!p)throw Error("ga");return new ay(function(F){var N=new FB;N.add(x.schedule(function(){var h=p[Symbol.asyncIterator]();N.add(x.schedule(function(){var c=this;h.next().then(function(M){M.done?F.complete():(F.next(M.value),c.schedule())})}))}));
return N})};
lCp=function(p,x,F){x=x.schedule(function(){try{F.call(this)}catch(N){p.error(N)}},0);
p.add(x)};
aC6=function(p,x){return new ay(function(F){var N;F.add(x.schedule(function(){N=p[cBm]();lCp(F,x,function(){var h=N.next(),c=h.value;h.done?F.complete():(F.next(c),this.schedule())})}));
return function(){var h;return xZ((h=N)==null?void 0:h.return)&&N.return()}})};
Mim=function(p,x){return new ay(function(F){var N=new FB;N.add(x.schedule(function(){var h=p[MF]();N.add(h.subscribe({next:function(c){N.add(x.schedule(function(){return F.next(c)}))},
error:function(c){N.add(x.schedule(function(){return F.error(c)}))},
complete:function(){N.add(x.schedule(function(){return F.complete()}))}}))}));
return N})};
DFd=function(p,x){return new ay(function(F){return x.schedule(function(){return p.then(function(N){F.add(x.schedule(function(){F.next(N);F.add(x.schedule(function(){return F.complete()}))}))},function(N){F.add(x.schedule(function(){return F.error(N)}))})})})};
fCM=function(p){return new TypeError("ha`"+(p!==null&&typeof p==="object"?"an invalid object":"'"+p+"'"))};
qem=function(p,x){if(p!=null){if(xZ(p[MF]))return Mim(p,x);if(Kh$(p))return Nnz(p,x);if(xZ(p==null?void 0:p.then))return DFd(p,x);if(Symbol.asyncIterator&&xZ(p==null?void 0:p[Symbol.asyncIterator]))return hDZ(p,x);if(xZ(p==null?void 0:p[cBm]))return aC6(p,x)}throw fCM(p);};
fM=function(p,x){return x?qem(p,x):DC(p)};
DC=function(p){if(p instanceof ay)return p;if(p!=null){if(xZ(p[MF]))return ZM6(p);if(Kh$(p))return tiH(p);if(xZ(p==null?void 0:p.then))return dF6(p);if(Symbol.asyncIterator&&xZ(p==null?void 0:p[Symbol.asyncIterator]))return vZE(p);if(xZ(p==null?void 0:p[cBm]))return JBp(p)}throw fCM(p);};
ZM6=function(p){return new ay(function(x){var F=p[MF]();if(xZ(F.subscribe))return F.subscribe(x);throw new TypeError("ia");})};
tiH=function(p){return new ay(function(x){for(var F=0;F<p.length&&!x.closed;F++)x.next(p[F]);x.complete()})};
dF6=function(p){return new ay(function(x){p.then(function(F){x.closed||(x.next(F),x.complete())},function(F){return x.error(F)}).then(null,hB)})};
JBp=function(p){return new ay(function(x){for(var F=p[cBm]();!x.closed;){var N=F.next(),h=N.value;N.done?x.complete():x.next(h)}return function(){return xZ(F==null?void 0:F.return)&&F.return()}})};
vZE=function(p){return new ay(function(x){C2Z(p,x).catch(function(F){return x.error(F)})})};
C2Z=function(p,x){var F,N,h,c,M,f;return _.D(function(K){switch(K.nextAddress){case 1:_.KM(K,2,3);var t=p[Symbol.asyncIterator];c=t!==void 0?t.call(p):new SeZ(_.a(p));case 5:return _.q(K,c.next(),8);case 8:N=K.yieldResult;if(N.done){K.jumpTo(3);break}M=N.value;x.next(M);K.jumpTo(5);break;case 3:_.ZC(K);_.tB(K,9);if(!N||N.done||!(h=c.return)){K.jumpTo(9);break}return _.q(K,h.call(c),9);case 9:_.ZC(K,0,0,1);if(F)throw F.error;_.dn(K,10,1);break;case 10:_.dn(K,4);break;case 2:f=_.v9(K);F={error:f};K.jumpTo(3);
break;case 4:x.complete(),_.JB(K)}})};
rBk=function(p,x){return x?Nnz(p,x):tiH(p)};
EZ6=function(p){return xZ(p[p.length-1])?p.pop():void 0};
CM=function(p){var x=p[p.length-1];return x&&xZ(x.schedule)?p.pop():void 0};
Si=function(){var p=_.we.apply(0,arguments),x=CM(p);return x?Nnz(p,x):rBk(p)};
rn=function(p){var x=xZ(p)?p:function(){return p};
return new ay(function(F){return F.error(x())})};
Ee=function(p){return function(x){if(xZ(x==null?void 0:x.lift))return x.lift(function(F){try{return p(F,this)}catch(N){this.error(N)}});
throw new TypeError("ja");}};
gn=function(){return Ee(function(p,x){var F=null;p._refCount++;var N=new XB(x,void 0,void 0,void 0,function(){if(!p||p._refCount<=0||0<--p._refCount)F=null;else{var h=p._connection,c=F;F=null;!h||c&&h!==c||h.unsubscribe();x.unsubscribe()}});
p.subscribe(N);N.closed||(F=p.connect())})};
gZk=function(){var p=X9p;var x=x===void 0?0:x;return Ee(function(F,N){N.add(p.schedule(function(){return F.subscribe(N)},x))})};
zU=function(p){return Ee(function(x,F){var N=0;x.subscribe(new XB(F,function(h){F.next(p.call(void 0,h,N++))}))})};
zDr=function(p){return zU(function(x){return Qyp(x)?p.apply(null,_.se(x)):p(x)})};
ABB=function(p){if(p.length===1){var x=p[0];if(syk(x))return{args:x,keys:null};if(x&&typeof x==="object"&&nZw(x)===yB6)return p=bMk(x),{args:p.map(function(F){return x[F]}),
keys:p}}return{args:p,keys:null}};
nM=function(){var p=_.we.apply(0,arguments),x=CM(p),F=EZ6(p);p=ABB(p);var N=p.args,h=p.keys;if(N.length===0)return fM([],x);x=new ay(uBz(N,x,h?function(c){for(var M={},f=0;f<c.length;f++)M[h[f]]=c[f];return M}:l2));
return F?x.pipe(zDr(F)):x};
uBz=function(p,x,F){F=F===void 0?l2:F;return function(N){Yez(x,function(){for(var h=p.length,c=Array(h),M=h,f=p.map(function(){return!1}),K=!0,t={i$jscomp$260:0};t.i$jscomp$260<h;t={i$jscomp$260:t.i$jscomp$260},t.i$jscomp$260++)Yez(x,function(d){return function(){fM(p[d.i$jscomp$260],x).subscribe(new yq(N,function(v){c[d.i$jscomp$260]=v;
K&&(f[d.i$jscomp$260]=!0,K=!f.every(l2));K||N.next(F(c.slice()))},function(){return--M===0}))}}(t),N)},N)}};
Yez=function(p,x,F){p?F.add(p.schedule(x)):x()};
w96=function(p,x,F,N){var h=[],c=0,M=0,f=!1,K=function(t){c++;DC(F(t,M++)).subscribe(new XB(x,function(d){x.next(d)},void 0,function(){c--;
for(var d={};h.length&&c<N;d={bufferedValue:void 0})d.bufferedValue=h.shift(),K(d.bufferedValue);!f||h.length||c||x.complete()}))};
p.subscribe(new XB(x,function(t){return c<N?K(t):h.push(t)},void 0,function(){f=!0;
!f||h.length||c||x.complete()}));
return function(){h=null}};
b2=function(p,x){var F=F===void 0?Infinity:F;if(xZ(x))return b2(function(N,h){return zU(function(c,M){return x(N,c,h,M)})(DC(p(N,h)))},F);
typeof x==="number"&&(F=x);return Ee(function(N,h){return w96(N,h,p,F)})};
GUZ=function(p){p=p===void 0?Infinity:p;return b2(l2,p)};
ViB=function(){var p=_.we.apply(0,arguments);return GUZ(1)(rBk(p,CM(p)))};
Whr=function(p){return new ay(function(x){DC(p()).subscribe(x)})};
AB=function(p,x,F){if(xZ(F)){var N=F;F=void 0}if(N)return AB(p,x,F).pipe(zDr(N));N=_.a(xZ(p.addEventListener)&&xZ(p.removeEventListener)?HMp.map(function(M){return function(f){return p[M](x,f,F)}}):xZ(p.addListener)&&xZ(p.removeListener)?mFk.map(oZw(p,x)):xZ(p.on)&&xZ(p.off)?OM6.map(oZw(p,x)):[]);
var h=N.next().value,c=N.next().value;return!h&&Kh$(p)?b2(function(M){return AB(M,x,F)})(rBk(p)):new ay(function(M){if(!h)throw new TypeError("ka");
var f=function(){var K=_.we.apply(0,arguments);return M.next(1<K.length?K:K[0])};
h(f);return function(){return c(f)}})};
oZw=function(p,x){return function(F){return function(N){return p[F](x,N)}}};
YZ=function(){var p=_.we.apply(0,arguments),x=CM(p);var F=typeof p[p.length-1]==="number"?p.pop():Infinity;return p.length?p.length===1?DC(p[0]):GUZ(F)(rBk(p,x)):u2};
Lhp=function(p){return p.length===1&&jyB(p[0])?p[0]:p};
P2p=function(){var p=Lhp(_.we.apply(0,arguments));return Ee(function(x,F){var N=[x].concat(_.se(p)),h=function(){if(!F.closed)if(N.length>0){try{var c=DC(N.shift())}catch(f){h();return}var M=new XB(F,void 0,NF,NF);F.add(c.subscribe(M));M.add(h)}else F.complete()};
h()})};
wn=function(p){return Ee(function(x,F){var N=0;x.subscribe(new XB(F,function(h){return p.call(void 0,h,N++)&&F.next(h)}))})};
Bn$=function(){var p=_.we.apply(0,arguments);p=Lhp(p);return p.length===1?DC(p[0]):new ay(Tnm(p))};
Tnm=function(p){return function(x){for(var F=[],N={i$jscomp$263:0};F&&!x.closed&&N.i$jscomp$263<p.length;N={i$jscomp$263:N.i$jscomp$263},N.i$jscomp$263++)F.push(DC(p[N.i$jscomp$263]).subscribe(new XB(x,function(h){return function(c){if(F){for(var M=0;M<F.length;M++)M!==h.i$jscomp$263&&F[M].unsubscribe();F=null}x.next(c)}}(N))))}};
RD6=function(){var p=_.we.apply(0,arguments),x=EZ6(p),F=Lhp(p);return F.length?new ay(function(N){var h=F.map(function(){return[]}),c=F.map(function(){return!1});
N.add(function(){h=c=null});
for(var M={sourceIndex$jscomp$1:0};!N.closed&&M.sourceIndex$jscomp$1<F.length;M={sourceIndex$jscomp$1:M.sourceIndex$jscomp$1},M.sourceIndex$jscomp$1++)DC(F[M.sourceIndex$jscomp$1]).subscribe(new XB(N,function(f){return function(K){h[f.sourceIndex$jscomp$1].push(K);h.every(function(t){return t.length})&&(K=h.map(function(t){return t.shift()}),N.next(x?x.apply(null,_.se(K)):K),h.some(function(t,d){return!t.length&&c[d]})&&N.complete())}}(M),void 0,function(f){return function(){c[f.sourceIndex$jscomp$1]=
!0;
!h[f.sourceIndex$jscomp$1].length&&N.complete()}}(M)));
return function(){h=c=null}}):u2};
kUz=function(p){var x,F,N;return!!p&&typeof p.active==="boolean"&&typeof((x=p.clock)==null?void 0:x.now)==="function"&&((F=p.clock)==null?void 0:F.timeline)!==void 0&&!((N=p.lastMeasurement)==null||!N.timestamp)&&typeof p.equivalentTo==="function"&&typeof p.extrapolateToNow==="function"&&typeof p.extrapolateToTime==="function"&&typeof p.map==="function"&&typeof p.joinWith==="function"};
UFw=function(p){function x(F){return typeof F==="boolean"||typeof F==="string"||typeof F==="number"||F===void 0||F===null}
return x(p)?!0:Array.isArray(p)?p.every(x):typeof p==="object"?Object.keys(p).every(function(F){return typeof F==="string"})&&Object.values(p).every(function(F){return Array.isArray(F)?F.every(x):x(F)}):!1};
iMd=function(p){if(UFw(p))return p;if(kUz(p))return{lastMeasurement:{value:iMd(p.lastMeasurement.value),timestamp:GU(p.lastMeasurement.timestamp,new Vq(0,p.lastMeasurement.timestamp.timeline))},active:p.active};try{return JSON.parse(JSON.stringify(p))}catch(x){}return String(p)};
W9=function(p,x){return function(F){return new ay(function(N){return F.subscribe(function(h){p.timeExecution(x,function(){N.next(h)})()},function(h){p.timeExecution(x,function(){N.error(h)})()},function(){p.timeExecution(x,function(){N.complete()})()})})}};
ICw=function(p,x){var F=!1;return new ay(function(N){var h=p.setTimeout(function(){F=!0;N.next(!0);N.complete()},x);
return function(){F||p.clearTimeout(h)}})};
$F$=function(p){p=p.global;if(p.fetchLater)return p.fetchLater.bind(p)};
H9=function(p){return Ee(function(x,F){var N=null,h=!1,c;N=x.subscribe(new XB(F,void 0,function(M){c=DC(p(M,H9(p)(x)));N?(N.unsubscribe(),N=null,c.subscribe(F)):h=!0}));
h&&(N.unsubscribe(),N=null,c.subscribe(F))})};
eDB=function(p,x,F){return function(N,h){var c=F,M=x,f=0;N.subscribe(new XB(h,function(K){var t=f++;M=c?p(M,K,t):(c=!0,K);h.next(M)},void 0,void 0))}};
pmw=function(p){p=p===void 0?null:p;return Ee(function(x,F){var N=!1;x.subscribe(new XB(F,function(h){N=!0;F.next(h)},void 0,function(){N||F.next(p);
F.complete()}))})};
mh=function(){return Ee(function(p,x){p.subscribe(new XB(x,NF))})};
oy=function(p){return Ee(function(x,F){x.subscribe(new XB(F,function(){return F.next(p)}))})};
Oe=function(p){return p<=0?function(){return u2}:Ee(function(x,F){var N=0;
x.subscribe(new XB(F,function(h){++N<=p&&(F.next(h),p<=N&&F.complete())}))})};
ji=function(p){var x=x===void 0?l2:x;var F;p=(F=p)!=null?F:x1p;return Ee(function(N,h){var c,M=!0;N.subscribe(new XB(h,function(f){var K=x(f);if(M||!p(c,K))M=!1,c=K,h.next(f)}))})};
x1p=function(p,x){return p===x};
NsB=function(p){p=p===void 0?FMM:p;return Ee(function(x,F){var N=!1;x.subscribe(new XB(F,function(h){N=!0;F.next(h)},void 0,function(){return N?F.complete():F.error(p())}))})};
FMM=function(){return new htz};
LM=function(){var p=_.we.apply(0,arguments);return function(x){return ViB(x,Si.apply(null,_.se(p)))}};
lhk=function(p){return Ee(function(x,F){var N=0;x.subscribe(new XB(F,function(h){p.call(void 0,h,N++,x)||(F.next(!1),F.complete())},void 0,function(){F.next(!0);
F.complete()}))})};
c_r=function(){return Ee(function(p,x){var F=[];p.subscribe(new XB(x,function(N){F.push(N);1<F.length&&F.shift()},void 0,function(){for(var N=_.a(F),h=N.next();!h.done;h=N.next())x.next(h.value);
x.complete()},function(){F=null}))})};
ah$=function(p,x){var F=arguments.length>=2;return function(N){return N.pipe(p?wn(function(h,c){return p(h,c,N)}):l2,c_r(),F?pmw(x):NsB(function(){return new htz}))}};
TU=function(p){var x=xZ(p)?p:function(){return p};
return xZ()?Ee(function(F,N){var h=x();(void 0)(h).subscribe(N).add(F.subscribe(h))}):function(F){var N=new P9(F,x);
xZ(F==null?void 0:F.lift)&&(N.lift=F.lift);N.source=F;N.subjectFactory=x;return N}};
kZ=function(p){var x=new Ry(p,void 0,void 0);return function(F){return TU(function(){return x})(F)}};
Ue=function(p,x){return Ee(eDB(p,x,arguments.length>=2))};
i2=function(){var p=_.we.apply(0,arguments),x=CM(p);return Ee(function(F,N){(x?ViB(p,F,x):ViB(p,F)).subscribe(N)})};
Iy=function(p){return Ee(function(x,F){var N=null,h=0,c=!1;x.subscribe(new XB(F,function(M){var f;(f=N)==null||f.unsubscribe();f=h++;DC(p(M,f)).subscribe(N=new XB(F,function(K){return F.next(K)},void 0,function(){N=null;
c&&!N&&F.complete()}))},void 0,function(){(c=!0,!N)&&F.complete()}))})};
$Z=function(p,x){x=x===void 0?!1:x;return Ee(function(F,N){var h=0;F.subscribe(new XB(N,function(c){var M=p(c,h++);(M||x)&&N.next(c);!M&&N.complete()}))})};
MSE=function(p,x,F){var N=xZ(p)||x||F?{next:p,error:x,complete:F}:p;return N?Ee(function(h,c){h.subscribe(new XB(c,function(M){var f;(f=N.next)==null||f.call(N,M);c.next(M)},function(M){var f;
(f=N.error)==null||f.call(N,M);c.error(M)},function(){var M;
(M=N.complete)==null||M.call(N);c.complete()}))}):l2};
D1p=function(){var p=_.we.apply(0,arguments),x=EZ6(p);return Ee(function(F,N){for(var h=p.length,c=Array(h),M=p.map(function(){return!1}),f=!1,K={i$jscomp$273:0};K.i$jscomp$273<h;K={i$jscomp$273:K.i$jscomp$273},K.i$jscomp$273++)DC(p[K.i$jscomp$273]).subscribe(new XB(N,function(t){return function(d){c[t.i$jscomp$273]=d;
f||M[t.i$jscomp$273]||(M[t.i$jscomp$273]=!0,(f=M.every(l2))&&(M=null))}}(K),void 0,NF));
F.subscribe(new XB(N,function(t){f&&(t=[t].concat(_.se(c)),N.next(x?x.apply(null,_.se(t)):t))}))})};
fhr=function(p){var x=[],F=0,N;for(N in p)x[F++]=N;return x};
KMM=function(p,x){for(var F in p)if(p[F]==x)return!0;return!1};
qTH=function(p,x,F){for(var N in p)if(x.call(F,p[N],N,p))return N};
Z2M=function(p){if(!p||typeof p!=="object")return p;if(typeof p.clone==="function")return p.clone();if(typeof Map!=="undefined"&&p instanceof Map)return new Map(p);if(typeof Set!=="undefined"&&p instanceof Set)return new Set(p);if(p instanceof Date)return new Date(p.getTime());var x=Array.isArray(p)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(p)||p instanceof DataView?{}:new p.constructor(p.length),F;for(F in p)x[F]=Z2M(p[F]);return x};
tS$=function(p){var x=arguments.length;if(x==1&&Array.isArray(arguments[0]))return tS$.apply(null,arguments[0]);if(x%2)throw Error("oa");for(var F={},N=0;N<x;N+=2)F[arguments[N]]=arguments[N+1];return F};
d1$=function(p){var x=arguments.length;if(x==1&&Array.isArray(arguments[0]))return d1$.apply(null,arguments[0]);for(var F={},N=0;N<x;N++)F[arguments[N]]=!0;return F};
_.ei=function(p){return new R56(p[0].toLowerCase())};
vHB=function(p){try{return new URL(p,window.document.baseURI)}catch(x){return new URL("about:invalid")}};
J_$=function(p,x){var F=x.createRange();F.selectNode(x.body);p=oM(p);return F.createContextualFragment(OU(p))};
STk=function(p){p=p.nodeName;return typeof p==="string"?p:"FORM"};
r_6=function(p){p=p.nodeType;return p===1||typeof p!=="number"};
p2=function(p,x,F){p.setAttribute(x,F)};
EHw=function(p){return p.parts.map(function(x){var F=x.descriptor;return""+x.url+(F?" "+F:"")}).join(" , ")};
_.xH=function(p){var x=_.we.apply(1,arguments);if(x.length===0)return _.vz(p[0]);for(var F=p[0],N=0;N<x.length;N++)F+=encodeURIComponent(x[N])+p[N+1];return _.vz(F)};
_.Fa=function(p,x){p=_.SP(p).toString();var F=p.split(/[?#]/),N=/[?]/.test(p)?"?"+F[1]:"";return Xmp(F[0],N,/[#]/.test(p)?"#"+(N?F[2]:F[1]):"",x)};
Xmp=function(p,x,F,N){function h(M,f){M!=null&&(Array.isArray(M)?M.forEach(function(K){return h(K,f)}):(x+=c+encodeURIComponent(f)+"="+encodeURIComponent(M),c="&"))}
var c=x.length?"&":"?";N.constructor===Object&&(N=Object.entries(N));Array.isArray(N)?N.forEach(function(M){return h(M[1],M[0])}):N.forEach(h);
return _.vz(p+x+F)};
gHp=function(p){p=p.global;if(p.PendingGetBeacon)return p.PendingGetBeacon};
cm=function(p){return function(x){return x.pipe(QRE(p,TU(new lk)))}};
aR=function(p){return function(x){return x.pipe(QRE(p,kZ(1)))}};
QRE=function(p,x){function F(N){return new ay(function(h){return N.subscribe(function(c){M1(p,function(){return void h.next(c)},3)},function(c){M1(p,function(){return void h.error(c)},3)},function(){M1(p,function(){return void h.complete()},3)})})}
return c9(F,gZk(),x,gn(),F)};
nHd=function(p){var x=ztd(p);return x===null?new Dh(null):x.pipe(zU(function(F){F=F.serialize();if(sRp)F=_.Mm.btoa(F);else{for(var N=[],h=0,c=0;c<F.length;c++){var M=F.charCodeAt(c);M>255&&(N[h++]=M&255,M>>=8);N[h++]=M}F=_.Xc(N)}return F}),Oe(1),aR(p.queue))};
y_k=function(p){var x=x===void 0?{}:x;if(typeof Event==="function")return new Event(p,x);if(typeof document!=="undefined"){var F=document.createEvent("CustomEvent");F.initCustomEvent(p,x.bubbles||!1,x.cancelable||!1,x.detail);return F}throw Error();};
b2z=function(p){return typeof p==="string"?document.getElementById(p):p};
uap=function(p){var x=!1;x=x===void 0?!1:x;if(p.tagName==="IMG"){if(p.complete&&(!p.naturalWidth||!p.naturalHeight))return!0;var F;if(x&&((F=p.style)==null?void 0:F.display)==="none")return!0}var N,h;return A_k.test((N=p.getAttribute("width"))!=null?N:"")&&A_k.test((h=p.getAttribute("height"))!=null?h:"")};
YTp=function(p,x){if(p.tagName==="IMG")return p.naturalWidth&&p.naturalHeight?!0:!1;try{if(p.readyState)var F=p.readyState;else{var N,h;F=(N=p.contentWindow)==null?void 0:(h=N.document)==null?void 0:h.readyState}return F==="complete"}catch(c){return x===void 0?!1:x}};
wmk=function(p){p||(p=function(x,F,N){x.addEventListener(F,N)});
return p};
H2k=function(p,x){var F=Gyp();F=F===void 0?new VSw:F;if(p=b2z(p)){var N=wmk(N);for(var h=!1,c=function(A){h||(h=!0,x(A))},M,f=2,K=0;K<WMr.length;++K)if(WMr[K]===p.tagName){f=3;
M=[p];break}M||(M=p.querySelectorAll(WMr.join(",")));var t=0,d=0,v=!0,C=p=!1;K={};for(var X=0;X<M.length;K={isImg:void 0},X++){var Q=M[X];if(!uap(Q))if(K.isImg=Q.tagName==="IMG",YTp(Q,F.crossDomainLoadedDefault))p=!0,K.isImg&&(v=!0);else{t++;var b=function(A){return function(Y){t--;!t&&v&&c(f);A.isImg&&(Y=Y&&Y.type==="error",d--,Y||(v=!0),!d&&C&&v&&c(f))}}(K);
N(Q,"load",b);K.isImg&&(d++,N(Q,"error",b))}}d===0&&(v=!0);M=null;M=_.Mm.document.readyState==="complete";if(t===0&&!p&&M)f=5;else if(t||!p){N(_.Mm,"load",function(){!F.pendingImagesBlockLoad||!d&&v?c(4):C=!0});
return}c(f)}};
m1p=function(p,x,F){if(p)for(var N=0;p!=null&&N<500&&!F(p);++N)p=x(p)};
oHr=function(p,x){m1p(p,function(F){try{return F===F.parent?null:F.parent}catch(N){}return null},x)};
O2p=function(p,x){if(p.tagName=="IFRAME")x(p);else{p=p.querySelectorAll("IFRAME");for(var F=0;F<p.length&&!x(p[F]);++F);}};
jRr=function(p){return(p=p.ownerDocument)&&(p.parentWindow||p.defaultView)||null};
LMM=function(p,x,F){try{var N=JSON.parse(F.data)}catch(M){}if(typeof N==="object"&&N&&N.type==="creativeLoad"){var h=jRr(p);if(F.source&&h){var c;oHr(F.source,function(M){try{if(M.parent===h)return c=M,!0}catch(f){}});
c&&O2p(p,function(M){if(M.contentWindow===c)return x(N),!0})}}};
PkJ=function(p){return typeof p==="string"?document.getElementById(p):p};
kyp=function(){var p={};return p[0]=_.xH(Tsp,"current"),p[1]=_.xH(Bsp),p[2]=_.xH(Rtw),p};
f2=function(p,x){return p.left===x.left&&p.top===x.top&&p.width===x.width&&p.height===x.height};
U1m=function(p,x){return{left:Math.max(p.left,x.left),top:Math.max(p.top,x.top),width:Math.max(0,Math.min(p.left+p.width,x.left+x.width)-Math.max(p.left,x.left)),height:Math.max(0,Math.min(p.top+p.height,x.top+x.height)-Math.max(p.top,x.top))}};
i2w=function(p,x){return{left:Math.round(p.left+x.x),top:Math.round(p.top+x.y),width:p.width,height:p.height}};
K2=function(p,x,F,N){this.top=p;this.right=x;this.bottom=F;this.left=N};
IhH=function(p,x,F){if(p&&x!==null&&x!=x.top){if(!x.top)return new _.q1(-12245933,-12245933);x=x.top}try{return(F===void 0?0:F)?(new _.q1(x.innerWidth,x.innerHeight)).round():_.t_(x).round()}catch(N){return new _.q1(-12245933,-12245933)}};
$1J=function(p,x,F){try{if(p){if(!x.top)return new K2(-12245933,-12245933,-12245933,-12245933);x=x.top}var N=IhH(p,x,F),h=N.height,c=N.width;if(c===-12245933)return new K2(c,c,c,c);var M=ds(vm(x.document)),f=M.x,K=M.y;return new K2(K,f+c,K+h,f)}catch(t){return new K2(-12245933,-12245933,-12245933,-12245933)}};
et$=function(p){var x;return(x=p.google_tag_data)!=null?x:p.google_tag_data={}};
pSH=function(p){var x,F;return typeof((x=p.navigator)==null?void 0:(F=x.userAgentData)==null?void 0:F.getHighEntropyValues)==="function"};
FX$=function(p){if(!pSH(p))return null;var x=et$(p);if(x.uach_promise)return x.uach_promise;p=p.navigator.userAgentData.getHighEntropyValues(xcB).then(function(F){x.uach!=null||(x.uach=F);return F});
return x.uach_promise=p};
ter=function(p){var x;return NvZ(hWB(l0w(cmB(a0M(Mep(DcZ(f0E(KXr(new qy6,p.architecture||""),p.bitness||""),p.mobile||!1),p.model||""),p.platform||""),p.platformVersion||""),p.uaFullVersion||""),((x=p.fullVersionList)==null?void 0:x.map(function(F){var N=new ZHB;N=_.J_(N,1,F.brand);return _.J_(N,2,F.version)}))||[]),p.wow64||!1)};
dcp=function(p){var x,F;return(F=(x=FX$(p))==null?void 0:x.then(function(N){return ter(N)}))!=null?F:null};
vCH=function(p,x){return new ay(function(F){var N=!1,h=Array(x.length);h.fill(void 0);var c=new Set,M=new Set,f=function(v,C){p.running?(h[C]=v,c.add(C),N||(N=!0,M1(p,function(){N=!1;F.next(_.Pr(h))},1))):F.error(new C2(C))},K=function(v,C){M.add(C);
c.add(C);M1(p,function(){F.error(v)},1)},t=function(v){M.add(v);
M1(p,function(){M.size===x.length&&F.complete()},1)},d=x.map(function(v,C){return v.subscribe(function(X){return void f(X,C)},function(X){return void K(X,C)},function(){return void t(C)})});
return function(){d.forEach(function(v){return void v.unsubscribe()})}})};
Syk=function(p,x,F){function N(){if(x.debugChannel){var A=x.debugChannel,Y=A.next;var O={creativeId:x.debugNames.getName(F),requiredSignals:h,signals:Object.assign({},c),hasPrematurelyCompleted:M,errorMessage:f,erroredSignalKey:K};O={specMajor:2,specMinor:0,specPatch:0,timestamp:GU(x.timeProvider.now(),new Vq(0,x.timeProvider.timeline)),instanceId:x.debugNames.getName(x.symbol),creativeState:O};Y.call(A,O)}}
for(var h=Object.keys(p),c={},M=!1,f=null,K=null,t={},d=new Set,v=[],C=[],X=_.a(h),Q=X.next(),b={};!Q.done;b={key$jscomp$372:void 0},Q=X.next())b.key$jscomp$372=Q.value,Q=p[b.key$jscomp$372],Q instanceof Dh?(t[b.key$jscomp$372]=Q.value,d.add(b.key$jscomp$372),x.debugChannel&&(c[String(b.key$jscomp$372)]=iMd(Q.value))):(Q=Q.pipe(ji(function(A,Y){return kUz(A)||kUz(Y)?!1:A===Y}),zU(function(A){return function(Y){x.debugChannel&&(c[String(A.key$jscomp$372)]=iMd(Y),N());
var O={};return O[A.key$jscomp$372]=Y,O}}(b)),H9(function(A){return function(Y){if(Y instanceof C2)throw new Jmd(String(A.key$jscomp$372));
throw Y;}}(b)),MSE(function(A){return function(){d.add(A.key$jscomp$372)}}(b),function(A){return function(Y){K=String(A.key$jscomp$372);
f=String(Y);N()}}(b),function(A){return function(){d.has(A.key$jscomp$372)||(M=!0,N())}}(b))),C.push(b.key$jscomp$372),v.push(Q));
(p=Object.keys(c).length>0)&&N();X=vCH(x.queue,v).pipe(H9(function(A){if(A instanceof C2)throw new CIr(String(C[A.inputObservableIndex]));throw A;}),zU(function(A){return Object.freeze(Object.assign.apply(Object,[{},
t].concat(_.se(A))))}));
return(v=v.length>0)&&p?YZ(Si(Object.freeze(t)),X):v?X:Si(Object.freeze(t))};
rmE=function(p,x,F,N,h){return p.performanceMonitor.timeExecution.bind(p.performanceMonitor)(733,function(){var c={};try{return x.pipe(H9(function(M){N(Object.assign({},c,{error:M}));return u2}),b2(function(M){try{var f=F(p,M)}catch(t){return N(Object.assign({},c,{error:t instanceof Error?t:String(t)})),u2}var K={};
return Syk(f,p,M.symbol).pipe(MSE(function(t){K=t}),kZ(1),gn()).pipe(h,H9(function(t){N(Object.assign({},K,{error:t}));
return u2}),LM(void 0),zU(function(){return!0}))})).pipe(Ue(function(M){return M+1},0),H9(function(M){N(Object.assign({},c,{error:M}));
return u2}))}catch(M){return N(Object.assign({},c,{error:M})),u2}})()};
SS=function(p){var x=new Map;if(typeof p!=="object"||p===null)return x;Object.values(p).forEach(function(F){F&&typeof F.extrapolateToNow==="function"&&(x.has(F.clock.timeline)||x.set(F.clock.timeline,F.clock.now()))});
return x};
ECd=function(p,x){return typeof p==="string"?encodeURIComponent(p):typeof p==="number"?String(p):Array.isArray(p)?p.map(function(F){return ECd(F,x)}).join(","):p instanceof Vq?p.toString():p&&typeof p.extrapolateToNow==="function"?ECd(p.extrapolateUsingTimestampMap(x).value,x):p===!0?"1":p===!1?"0":p===void 0||p===null?null:p instanceof XSw?gCz(p):[p.top,
p.left,p.top+p.height,p.left+p.width].join()};
QGr=function(p,x){p=Object.entries(p).map(function(F){var N=_.a(F);F=N.next().value;N=N.next().value;N=ECd(N,x);return N===null?"":F+"="+N}).filter(function(F){return F!==""});
return p.length?p.join("&"):""};
nCM=function(p,x){var F=zWZ,N=sGz;x=x===void 0?.01:x;return function(h){x>0&&Math.random()<=x&&(p.global.HTMLFencedFrameElement&&p.global.fence&&typeof p.global.fence.reportEvent==="function"&&p.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),h=Object.assign({},h,{errorMessage:h.error instanceof Error&&h.error.message?h.error.message:String(h.error),errorStack:h.error instanceof Error&&h.error.stack?String(h.error.stack):null,errorName:h.error instanceof
Error&&h.error.name?String(h.error.name):null,errorContext:String(p.performanceMonitor.timedFunctionContext),errorEscapedQueryId:h.escapedQueryId}),F(Object.assign({},h,{payloadMapper:function(){return function(c){try{return N(Object.assign({},c))}catch(M){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),SS(h)).forEach(function(c){p.beaconFactory.makeBeacon(c).sendNow()}))}};
ymm=function(){var p=_.we.apply(0,arguments);return function(x){var F=x.pipe(kZ(1),gn());x=p.map(function(N){return F.pipe(N,LM(!0))});
return nM(x).pipe(Oe(1),mh())}};
bHz=function(){var p=_.we.apply(0,arguments);return function(x){var F=x.pipe(kZ(1),gn());x=p.map(function(N){return F.pipe(N,LM(!0))});
return YZ.apply(null,_.se(x)).pipe(Oe(1),mh())}};
Amp=function(p,x){return function(F){var N=F.pipe(kZ(1),gn());F=N.pipe(p,LM(!0));N=N.pipe(c9(x,kZ(),gn()),LM(!0));F=nM([F,N]);return Bn$(F,N).pipe(Oe(1),mh())}};
u2r=function(p,x,F){F(!0)};
Yym=function(p,x){return c9(Iy(function(F){var N=p(F),h=x(F),c={};return N&&h&&c?new ay(function(M){h(N,c,function(f){M.next(Object.assign({},F,{canEmit:f}));M.complete()});
return function(){}}):rs}),wn(function(F){return F.canEmit}))};
wSp=function(p){var x={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(F){return F.pipe(Iy(function(N){return new ay(function(h){function c(){f.disconnect();K.unsubscribe()}
var M=p.MutationObserver;if(M&&N.ref!==void 0){var f=new M(function(t){h.next(t)});
f.observe(N.ref,x);var K=N.JSC$7196_released.subscribe(c);return c}})}))}};
G4H=function(p){if(p.measurementDeferralState===3)return null;if(p.timeOnScreenReason!==void 0){var x=p.creativeFound===!1?"n":null;if(x!==null)return x}return p.geometricMeasurementErrors instanceof ET?"msf":p.contextValidationErrors instanceof Xa?"c":p.contextVisibilityKnown===!1?"pv":p.geometricMeasurementErrors||p.contextValidationErrors?"x":null};
WXw=function(p,x){return p.replace(VeM,function(F,N){try{var h=_.Q5.get(x,N);if(h==null||h.toString()==null)return F;h=h.toString();if(h==""||!_.tz(h==null?"":String(h)))return encodeURIComponent(h).replace(/%2C/g,",")}catch(c){}return F})};
HHB=function(p,x){var F=Object.assign({},p),N=p.userAgentClientHints;F=(delete F.userAgentClientHints,F);F=p.payloadMapper(F);var h=QGr(F,x);return _.zy(p.urlPrefixes,function(c){var M="";typeof N==="string"&&(M="&"+QGr({uach:N},x));var f={};return WXw(c,(f.VIEWABILITY=h,f))+M})};
zWZ=function(p,x){var F=p.payloadMapper(p),N=QGr(F,x);return N?_.zy(p.urlPrefixes,function(h){h=h.indexOf("?")>=0?h:h+"?";h="?&".indexOf(h.slice(-1))>=0?h:h+"&";return h+N}):p.urlPrefixes};
mck=function(){return c9(wn(function(p){return p!==void 0}),zU(function(p){return p}))};
oC$=function(p){return c9(zU(function(){return!0}),i2(!1),aR(p))};
OHM=function(p){return p.length<=0?u2:nM(p.map(function(x){var F=0;return x.pipe(zU(function(N){return{index:F++,value:N}}))})).pipe(wn(function(x){return x.every(function(F){return F.index===x[0].index})}),zU(function(x){return x.map(function(F){return F.value})}))};
jGr=function(p,x){p.currentState&&(p.previousState=p.currentState);p.currentState=x;p.previousState&&p.previousState.value?(x=Math.max(0,GU(x.timestamp,p.previousState.timestamp)),p.totalTime+=x,p.consecutiveTime+=x):p.consecutiveTime=0;return p};
LXk=function(){return c9(Ue(jGr,{totalTime:0,consecutiveTime:0}),zU(function(p){return p.totalTime}))};
PIJ=function(){return c9(Ue(jGr,{totalTime:0,consecutiveTime:0}),zU(function(p){return p.consecutiveTime}))};
Tvd=function(p,x){return function(F){return OHM(x.map(function(N){return F.pipe(p(N))}))}};
Bvp=function(){var p;return c9(MSE(function(x){return void(p=x.timestamp)}),PIJ(),zU(function(x){return{timestamp:p,
value:Math.round(x)}}))};
RWk=function(p,x){return f2(p.topWindowViewportExternalGeometry,x.topWindowViewportExternalGeometry)&&f2(p.elementGeometry,x.elementGeometry)&&f2(p.exposedViewportLocalGeometry,x.exposedViewportLocalGeometry)&&f2(p.intersectionGeometry,x.intersectionGeometry)&&p.elementGeometrySourceName===x.elementGeometrySourceName&&p.measurementRequests===x.measurementRequests&&p.viewportGeometrySourceName===x.viewportGeometrySourceName&&p.viewportLocalAppOffset.x===x.viewportLocalAppOffset.x&&p.viewportLocalAppOffset.y===
x.viewportLocalAppOffset.y};
$cd=function(p,x){return function(F){return function(N){var h=N.pipe(TU(new lk),gn());N=F.element.pipe(ji());h=h.pipe(zU(function(c){return c.value}));
return nM([N,h,x]).pipe(zU(function(c){var M=_.a(c);c=M.next().value;var f=M.next().value;M=M.next().value;if(c.ref===void 0)var K={top:0,left:0,width:0,height:0};else{K=c.ref.getBoundingClientRect();var t=c.ref,d=p.global,v=new _.sT(0,0),C=n2(_.y5(t));if(k4$(C,"parent")){do{if(C==d)var X=_.A_(t);else X=Ucz(t),X=new _.sT(X.left,X.top);v.x+=X.x;v.y+=X.y}while(C&&C!=d&&C!=C.parent&&(t=C.frameElement)&&(C=C.parent))}K={top:v.y,left:v.x,width:K.width,height:K.height}}K=i2w(K,f.viewportLocalAppOffset);
d=U1m(K,f.exposedViewportLocalGeometry);v=p.timeProvider.now();C=Object;t=C.assign;if(M!==2||p.inCrossDomainIframe||d.width<=0||d.height<=0)var Q=!1;else try{var b=p.document.elementFromPoint(d.left+d.width/2,d.top+d.height/2);Q=b?!iHz(b,c):!1}catch(A){Q=!1}return{timestamp:v,value:t.call(C,{},f,{elementGeometrySourceName:"geo",intersectionGeometry:Q?I0p.intersectionGeometry:d,elementGeometry:K})}}),cm(p.queue))}}};
iHz=function(p,x,F){F=F===void 0?0:F;return p.ref===void 0||x.ref===void 0?!1:p.ref===x.ref||_.uk(x.ref,function(N){return N===p.ref})?!0:x.ref.ownerDocument&&x.ref.ownerDocument.defaultView&&x.ref.ownerDocument.defaultView===x.ref.ownerDocument.defaultView.top?!1:F<10&&x.ref.ownerDocument&&x.ref.ownerDocument.defaultView&&x.ref.ownerDocument.defaultView.frameElement?iHz(p,new YH(x.ref.ownerDocument.defaultView.frameElement),F+1):!0};
xG6=function(p){return function(x){return x.pipe(p.ResizeObserver?eWM(p):pep(p),kZ(1),gn())}};
eWM=function(p){return function(x){return x.pipe(Iy(function(F){var N=p.ResizeObserver;if(!N||F.ref===void 0)return Si(I0p.elementGeometry);var h=(new ay(function(c){function M(){F.ref!==void 0&&f.unobserve(F.ref);f.disconnect();K.unsubscribe()}
if(F.ref===void 0)return c.complete(),function(){};
var f=new N(function(t){t.forEach(function(d){c.next(d)})});
f.observe(F.ref);var K=F.JSC$7196_released.subscribe(M);return M})).pipe(W9(p.performanceMonitor,736),zU(function(c){return c.contentRect}));
return YZ(Si(F.ref.getBoundingClientRect()),h)}),ji(f2))}};
pep=function(p){return function(x){var F=x.pipe(wSp(p)),N=p.onResize;F=YZ(x.pipe(zU(function(){return y_k("resize")})),F,N);
return nM(x,F).pipe(W9(p.performanceMonitor,737),zU(function(h){h=_.a(h).next().value;return h.ref===void 0?void 0:h.ref.getBoundingClientRect()}),mck(),ji(f2))}};
hKk=function(p,x){var F=FVp(p,x).pipe(kZ(1),gn());return function(N){return function(h){h=h.pipe(Iy(function(c){return c.element}),ji());
return nM([F,h]).pipe(Iy(function(c){var M=_.a(c);c=M.next().value;M=M.next().value;return Nxd(p,c.intersectionObserver,xG6(p),c.observations,N,c.flushRecords,M)}),cm(p.queue))}}};
lJ$=function(p){return zU(function(x){return x.value.viewportGeometrySourceName!=="nio"?x:Object.assign({},x,{value:Object.assign({},x.value,{exposedViewportLocalGeometry:ws(p,!0),topWindowViewportExternalGeometry:ws(p,!0)})})})};
cud=function(p,x){return Si(x).pipe(p,zU(function(){return x}))};
FVp=function(p,x){return p.timeProvider.timeline!==aJM?rn(new ET(2)):p.MutationObserver?typeof IntersectionObserver==="undefined"?rn(new ET(0)):(new ay(function(F){var N=new lk,h=new Gy(N.next.bind(N),{threshold:[].concat(_.se(x))});F.next({observations:N.pipe(W9(p.performanceMonitor,735)),intersectionObserver:h,flushRecords:function(c){c=h.takeRecords(c);c.length>0&&N.next(c)}})})).pipe(Oe(1),kZ(1),gn()):rn(new ET(1))};
MOm=function(p){return qem(p.sort(function(x,F){return x.time-F.time}),X9p)};
Nxd=function(p,x,F,N,h,c,M){return new ay(function(f){function K(){Q||(Q=!0,M.ref!==void 0&&x.unobserve(h,M.ref),d.unsubscribe(),X.unsubscribe(),C.unsubscribe(),b.unsubscribe())}
if(M.ref!==void 0){DGH(x,h);x.observe(h,M.ref);var t=new V5({timestamp:p.timeProvider.now(),value:Object.assign({},I0p,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),d=N.pipe(b2(function(A){return MOm(A)}),wn(function(A){return A.target===M.ref}),zU(function(A){return{timestamp:new Vq(A.time,aJM),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:A.rootBounds||Wm,topWindowViewportExternalGeometry:A.rootBounds||ws(p,!0),measurementRequests:v,elementGeometrySourceName:"nio",intersectionGeometry:A.intersectionRect,elementGeometry:A.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:A.isIntersecting,isV2Visible:A.isVisible}}}),TU(t),gn()).subscribe(f),v=new lk,C=v.subscribe(function(){c(h);
f.next({timestamp:p.timeProvider.now(),value:t.value.value});M.ref!==void 0&&(x.unobserve(h,M.ref),x.observe(h,M.ref))}),X=cud(F,M).subscribe(function(){v.next()}),Q=!1,b=M.JSC$7196_released.subscribe(function(){return K()});
return K}})};
fJp=function(p,x){var F=p.getOnBackgrounded().pipe(zU(function(){return"b"}));
return Bn$(x,F).pipe(Oe(1),aR(p.queue))};
Hm=function(p){return function(x){var F;return x.pipe(MSE(function(N){return void(F=N.timestamp)}),zU(function(N){return N.value}),p,zU(function(N){return{timestamp:F,
value:N}}))}};
oR=function(p,x,F){F=F===void 0?function(N,h){return N===h}:F;
return p.timestamp.equals(x.timestamp)&&F(p.value,x.value)};
jS=function(p,x){return x.pipe(zU(function(F){return new OT(p.timeProvider,{timestamp:p.timeProvider.now(),value:F})}))};
KV6=function(p){return function(x){return x.pipe(D1p(p),zU(function(F){var N=_.a(F);F=N.next().value;N=N.next().value;var h=F.value;return{timestamp:F.timestamp,value:h>=1?!0:h<=0?!1:h>=N}}))}};
Znm=function(){return c9(wn(function(p,x){return x>0}),q_$,i2(-1),ji())};
tOr=function(p,x,F){return p?nM([x,F]).pipe(wn(function(N){var h=_.a(N);N=h.next().value;h=h.next().value;return N.timestamp.equals(h.timestamp)}),zU(function(N){var h=_.a(N);
N=h.next().value;h=h.next().value;return N.value>h.value?N:h})):x};
Jud=function(p){return function(x){var F=x.pipe(dGp),N=x.pipe(vdB);return p instanceof ay?p.pipe(Iy(function(h){return tOr(h,F,N)})):tOr(p.value,F,N)}};
ndE=function(p,x,F,N){var h=N.geometryIsOccluded,c=N.exposureThreshold,M=N.wasLargeAdAtRender,f=N.allowLargeAdThreshold,K=N.largeAdExposureThreshold,t=N.mayUseViewportShareExposure,d=N.hasMeasurementStarted;N=N.useIntersectionObserverV2;x=CGB(p,F,x);F=S_r(p,F);N=rum(x,N);var v=Edz(p,h,t,x),C=v.pipe(zU(function(ld){return ld.value}),ji(),aR(p),Ue(function(ld,pp){return Math.max(ld,pp)},0)),X=v.pipe(zU(function(ld){return ld.value}),Znm(),aR(p)),Q=x.pipe(Xe6,zU(function(ld){return ld.value}),Oe(2),
ji(),aR(p));
M=gdp(p,x,M,f);var b=M.pipe(i2(!1),ji(),zU(function(ld){return ld?K:c}));
f=v.pipe(KV6(b),ji(),aR(p));var A=nM([f,x]).pipe(wn(function(ld){var pp=_.a(ld);ld=pp.next().value;pp=pp.next().value;return ld.timestamp.equals(pp.timestamp)}),zU(function(ld){var pp=_.a(ld);
ld=pp.next().value;pp=pp.next().value;return{visible:ld.value,geometry:pp.value.elementGeometry}}),Ue(function(ld,pp){return!pp.visible&&ld.visible?ld:pp},{visible:!1,
geometry:Wm}),zU(function(ld){return ld.geometry}),i2(Wm),aR(p),ji(f2));
t=t instanceof ay?t.pipe(ji(),oy()):rs;b=nM([t,b]).pipe(oy());var Y=x.pipe(wn(function(ld){return ld.value.viewportGeometrySourceName!=="ns"&&ld.value.elementGeometrySourceName!=="ns"}),Ue(function(ld){return ld+1},0),i2(0),aR(p)),O=F.pipe(oy(!0),i2(!1),aR(p));
O=nM([d,O]).pipe(zU(function(ld){var pp=_.a(ld);ld=pp.next().value;pp=pp.next().value;return ld&&!pp}),aR(p));
var Fw=x.pipe(QUr,ji()),R=Fw.pipe(zU(function(ld){return ld.value}),Ue(function(ld,pp){return Math.max(ld,pp)},0),ji(),aR(p));
p=Fw.pipe(zU(function(ld){return ld.value}),Znm(),aR(p));
return{shouldResetExposureSignals:t,shouldResetViewabilitySignals:b,geometrySignals:{readyGeometryWithDefault:x,measurementStrategy:x.pipe(zKB),creativePosition:A.pipe(ji(f2)),visible:f.pipe(ji(oR)),timestampedExposure:v.pipe(ji(oR)),maximumExposure:C,minimumExposure:X,browserSize:x.pipe(sUH,ji(_.pZ)),timestampedScreenShare:Fw,maxScreenShare:R,minScreenShare:p,geometricMeasurementErrors:F,measurementRequests:x.pipe(zU(function(ld){return ld.value.measurementRequests})),
isLargeAd:M,geometryIsOccluded:h,hasMeasurementStarted:d,geometryMeasurable:O,validMeasurementCount:Y,loadTimeExposure:Q,v2VisibilityBitVector:N}}};
S_r=function(p,x){return x.pipe(wn(function(){return!1}),zU(function(F){return F}),H9(function(F){return L2(new Dh(F),p)}))};
CGB=function(p,x,F){return x.pipe(P2p(rs),aR(p)).pipe(ji(function(N,h){return oR(N,h,RWk)}),i2({timestamp:F.now(),
value:I0p}),aR(p))};
Edz=function(p,x,F,N){F=N.pipe(Jud(F),Hm(zU(function(h){return Math.round(h*100)/100})),aR(p));
return x instanceof Dh?F:nM([F,x]).pipe(zU(function(h){var c=_.a(h);h=c.next().value;c=c.next().value;return{timestamp:c.timestamp.maximum(h.timestamp),value:c.value?0:h.value}}),ji(oR),aR(p))};
gdp=function(p,x,F,N){x=[x.pipe(zU(function(h){return h.value.elementGeometry.width*h.value.elementGeometry.height>=242500}))];
F instanceof ay&&x.push(F.pipe(zU(function(h){return!!h})));
F=nM(x);return N?F.pipe(zU(function(h){return h.some(function(c){return c})}),i2(!1),ji(),aR(p)):L2(new Dh(!1),p)};
rum=function(p,x){p=nM([p,x]).pipe(zU(function(h){var c=_.a(h);h=c.next().value;if(c.next().value&&h.value.isIntersecting)return h.value.isV2Visible}),ji());
var F=p.pipe(zU(function(h){return h===void 0?!0:h}),Ue(function(h,c){return h||!c},!1)),N=p.pipe(Ue(function(h,c){return c===void 0?h:c?!1:h!=null?h:!0},void 0),zU(function(h){return!!h}));
return nM([x,RD6(p,F,N)]).pipe(zU(function(h){var c=_.a(h);h=c.next().value;var M=_.a(c.next().value);c=M.next().value;var f=M.next().value;M=M.next().value;var K=0;if(!h)return 0;if(c===void 0)return 16;c&&(K|=1);c||(K|=2);f&&(K|=4);M&&(K|=8);return K}))};
wep=function(p,x,F,N,h){var c=yuz.timeThresholdMs;var M=M===void 0?new bn$(x,N):M;return(new ay(function(f){var K=F.pipe(i2(void 0),Iy(function(){return AuH(h)})).pipe(zU(function(t){var d=t.value;
t=t.timestamp;var v=d.visible;d=d.consecutiveViewTime;var C=d>=c;C||!v?uDd(M):(t=Math.max(0,GU(x.now(),t)),Y_k(M,Math.max(0,c-d-t)));return C}),Ue(function(t,d){return d||t},!1),ji()).subscribe(f);
return function(){M.dispose();K.unsubscribe()}})).pipe($Z(function(f){return!f},!0),aR(p))};
AuH=function(p){return OHM([p,p.pipe(Bvp())]).pipe(zU(function(x){var F=_.a(x);x=F.next().value;F=F.next().value;return{timestamp:x.timestamp,value:{visible:x.value,consecutiveViewTime:F.value}}}),ji(function(x,F){return oR(x,F,function(N,h){return N.consecutiveViewTime===h.consecutiveViewTime&&N.visible===h.visible})}))};
GGd=function(){return c9(PIJ(),Ue(function(p,x){return Math.max(p,x)},0),zU(function(p){return Math.round(p)}))};
VOk=function(p){return c9(KV6(Si(p)),GGd())};
WVk=function(p,x){return x instanceof ay?x.pipe(Iy(function(F){return(F=F?15:null)?rn(new ET(F)):p})):(x=x.value?15:null)?rn(new ET(x)):p};
Hnk=function(p){var x=new ET(13);if(p.length<1)return{chain:u2,capturedErrors:u2};var F=new lk,N=p[0];return{chain:p.slice(1).reduce(function(h,c){return h.pipe(H9(function(M){F.next(M);return c}))},N).pipe(H9(function(h){F.next(h);
return rn(x)}),TU(new lk),gn()),
capturedErrors:F}};
mGr=function(p,x){var F=p.pipe(TU(new lk),gn());return Iy(function(N){return F.pipe(x(N))})};
Onp=function(p,x){if(p.inCrossDomainIframe)return rn(new ET(6));var F=new lk;return YZ(Si({}),x,F).pipe(zU(function(){return{timestamp:p.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:odr(p),topWindowViewportExternalGeometry:ws(p,!0),measurementRequests:F,viewportLocalAppOffset:{x:0,y:0}}}}),cm(p.queue))};
odr=function(p){var x=ws(p,!1);if(!p.inIframe||!jUp(p.global.parent)||p.global.parent===p.global)return x;var F=new Pm(p.global.parent,p.debugChannel);F.beaconFactory=p.beaconFactory;F=odr(F);p=p.global.frameElement.getBoundingClientRect();return U1m(i2w(U1m(F,p),{x:x.left-p.left,y:x.top-p.top}),x)};
LVw=function(p){if(p.prerendering)return 3;var x;return(x={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[p.visibilityState||p.webkitVisibilityState||p.mozVisibilityState||""])!=null?x:0};
PGd=function(p){return p.document.JSC$7207_onVisibilityChange.pipe(zU(function(x){return x==="visible"}),ji(),aR(p.queue))};
Txp=function(p,x,F){var N;return x.pipe(ji(),Iy(function(h){return F.pipe(zU(function(){if(!N){N=!0;try{h.next()}finally{N=!1}}return!0}))}),i2(!1),aR(p.queue))};
Bxp=function(p){return c9(Hm(zU(function(x){return x>=1?!0:x<=0?!1:x>=p})),LXk(),zU(function(x){return Math.round(x)}))};
kGw=function(p,x,F,N,h){var c=RKM;if(c.length>1)for(var M=0;M<c.length-1;M++)if(c[M]<c[M+1])throw Error();M=h.pipe(i2(void 0),Iy(function(){return F.pipe(Bvp())}),ji(),aR(p));
h=h.pipe(i2(void 0),Iy(function(){return F.pipe(GGd())}),ji(),aR(p));
return{totalMeasurementTime:N.pipe(i2(void 0),Iy(function(){return x.pipe(zU(function(f){return{timestamp:f.timestamp,value:!0}}),LXk())}),ji(),aR(p)),
totalUnviewedTime:N.pipe(i2(void 0),Iy(function(){return x.pipe(zU(function(f){return{timestamp:f.timestamp,value:f.value===0}}),LXk())}),ji(),aR(p)),
maxTimeOnScreen:N.pipe(i2(void 0),Iy(function(){return x.pipe(Tvd(VOk,c))}),ji(_.pZ),aR(p)),
timeOnScreen:N.pipe(i2(void 0),Iy(function(){return x.pipe(Tvd(Bxp,c),zU(function(f){return f.map(function(K,t){return t>0?K-f[t-1]:K})}))}),ji(_.pZ),aR(p)),
maxConsecutiveViewTime:h,consecutiveViewTime:M.pipe(ji(oR),aR(p))}};
inM=function(p){var x=!0;x=x===void 0?!1:x;return c9(Iy(function(F){return UGJ(p.document,F,x)}),aR(p.queue))};
IJp=function(p,x,F){var N=F.pipe(zU(function(h){return{value:h,timestamp:p.timeProvider.now()}}),ji(oR));
return x instanceof ay?x.pipe(ji(),Iy(function(h){return h?L2(new Dh({value:!1,timestamp:p.timeProvider.now()}),p.queue):N})):x.value===!1?N:new Dh(!1)};
$GZ=function(p,x,F,N,h,c,M){var f=yuz;x=x instanceof ay?x.pipe(i2(!1),ji()):x;var K=!p.isMobile();F=IJp(p,F,N);p=M.measurableCreative.pipe(oC$(p.queue));return Object.assign({},f,{geometryIsOccluded:F,wasLargeAdAtRender:h,allowLargeAdThreshold:K,mayUseViewportShareExposure:x,hasMeasurementStarted:p,useIntersectionObserverV2:c})};
pwJ=function(p,x,F,N,h,c){var M=1;c=c===void 0?!0:c;M=M===void 0?.01:M;var f=f===void 0?p.timeProvider.intervalObservable(100).pipe(aR(p.queue)):f;return p.performanceMonitor.timeExecution(916,function(){return eKE(p,x.pipe(cm(p.queue)),F.pipe(cm(p.queue)),N,h,c,M,f)})()};
eKE=function(p,x,F,N,h,c,M,f){var K=PGd(p).pipe(zU(function(d){return!d})),t=new x$r(p,[new FgB(p,RKM),
new N1B(p,f)]);f=ymm(haM,l9m);return rmE(p,x,function(d,v){var C=L2(new Dh(v.element),d.queue).pipe(inM(d),aR(d.queue)),X={loadedElement:C,shouldMeasure:C.pipe(oy(!0)),measurableCreative:C.pipe(zU(function(ld){var pp=pp===void 0?Symbol():pp;return Object.freeze({symbol:pp,element:L2(new Dh(ld),d.queue)})})),
creativeSearchResult:L2(new Dh("mue"),d.queue)},Q=new Dh(!1),b=new Dh(!1),A=new Dh(17),Y=new Dh(!1),O=new Dh(!1),Fw=L2(Ty,d.queue);Q=t.buildGeometrySource(X,{inApp:Q,useV2:!1,requestSource:L2(A,d.queue)}).geometrySource;X=$GZ(d,Y,b,K,O,Fw,X);b=ndE(d.queue,d.timeProvider,Q,X);X=b.geometrySignals;Y=b.shouldResetViewabilitySignals;b=kGw(d.queue,X.timestampedExposure,X.visible,b.shouldResetExposureSignals,Y);Y=wep(d.queue,d.timeProvider,Y,X.measurementRequests,X.visible);O=F.pipe(wn(function(ld){return ld===
v.element.ref}),zU(function(){return"ur"}));
Fw=ICw(d.timeProvider,h).pipe(oy("t"));O=fJp(d,YZ(O,Fw));Fw=Txp(d,X.measurementRequests,O.pipe(wn(function(ld){return ld!==null})));
Q=O.pipe(wn(function(ld){return ld!==null}),zU(function(){return LVw(d.global.document)===1}));
var R=c9E(d.document);return Object.assign({},{beaconFactory:new Dh(d.beaconFactory),context:new Dh(d),inferredPingId:new Dh("lidar2"),timeOnScreenPingId:new Dh("lidartos"),binaryContext:new Dh(17),binaryVersion:new Dh(N),requestSource:A,contextValidationErrors:new Dh(d.validate()?null:new Xa),contextVisibilityKnown:new Dh(R),payloadMapper:new Dh(sGz),endOfSessionReason:O,timeOnScreenReason:O,requestMeasurementOnEndOfSession:Fw,hasImpressionFired:a9k,crossDomainIframeState:new Dh(d.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:Ty,inFetchLaterBeaconExperiment:Ty,isTurtlex:Ty,turtlexReportEventData:new Dh(""),reportFencedFrameEvent:rs,isViewableAttributionEnabled:Ty,inViewableAttributionExperiment:new Dh(0),fetchBeaconFactory:rs,supportsPendingBeacon:Ty,supportsFetchLater:Ty,emit:new Dh(u2r),beginToRenderEvent:new Dh(Symbol()),activeViewUnmeasurableEvent:new Dh(Symbol()),activeViewViewableEvent:new Dh(Symbol()),creativeFound:a9k,immediateUrlPrefixes:new Dh(v.immediateUrls),timeOnScreenUrlPrefixes:new Dh(v.timeOnScreenUrls),
cpmavUrls:rs,viewableRelayUrls:rs,measurementDeferralState:new Dh(2),urlSerializer:new Dh(HHB),viewUrlSerializer:new Dh(Mrm),isCreativeLoaded:C.pipe(oC$(d.queue)),pageVisible:K.pipe(zU(function(ld){return!ld})),
eosPageVisible:Q,timestampedExposureHistory:X.timestampedExposure.pipe(Ue(function(ld,pp){ld.push(pp);return ld},[]))},X,{viewable:jS(d,Y),
maxTimeOnScreen:jS(d,b.maxTimeOnScreen),timeOnScreen:jS(d,b.timeOnScreen),maxConsecutiveViewTime:jS(d,b.maxConsecutiveViewTime),consecutiveViewTime:b.consecutiveViewTime.pipe(zU(function(ld){return new OT(d.timeProvider,ld)})),
totalMeasurementTime:jS(d,b.totalMeasurementTime),totalUnviewedTime:jS(d,b.totalUnviewedTime),userAgentClientHints:nHd(d),clientOrderPingCounter:new Dh(new XSw)})},nCM(p,M),bHz(c?Amp(f,D$k):Amp(f,f9z),Kgd))};
qdJ=function(p,x){return(p=(new RegExp("[^#]*[?&]"+x+"=([^&#]*)")).exec(p))?p[1]:null};
Ztr=function(p){var x=_.we.apply(1,arguments).filter(Boolean).join("&");if(!x)return p;var F=p.match(/[?&]adurl=/);return F?p.slice(0,F.index+1)+x+"&"+p.slice(F.index+1):p+(p.indexOf("?")<0?"?":"&")+x};
Bm=function(p,x){return x?"&"+p+"="+encodeURIComponent(x):""};
trJ=function(){try{var p,x;return!!((p=window)==null?0:(x=p.top)==null?0:x.location.href)&&!1}catch(F){return!0}};
_.RR=function(p){p&&typeof p.dispose=="function"&&p.dispose()};
_.d$H=function(p){for(var x=0,F=arguments.length;x<F;++x){var N=arguments[x];_.TB(N)?_.d$H.apply(null,N):_.RR(N)}};
J9B=function(){var p=vFE();p=p===void 0?"bevasrsg":p;return new Promise(function(x){var F=window===window.top?window:trJ()?window:window.top,N=F[p],h;((h=N)==null?0:h.bevasrs)?x(new kH(N.bevasrs)):(N||(N={},N=(N.nqfbel=[],N),F[p]=N),N.nqfbel.push(function(c){x(new kH(c))}))})};
CO6=function(p){var x={c:p.cz,e:p.lqc,mc:p.l3c,me:p.f3E};p.mE&&(x.co={c:p.mE.swO,a:p.mE.dNB,s:p.mE.qdz});return x};
Sdk=function(p){var x,F,N={cz:p.c,lqc:p.e,l3c:(x=p.mc)!=null?x:!1,f3E:(F=p.me)!=null?F:!1};p.co&&(N.mE={swO:p.co.c,dNB:p.co.a,qdz:p.co.s});return N};
r9H=function(p){return function(){var x;return _.D(function(F){if(F.nextAddress==1)return _.q(F,p(),2);x=F.yieldResult;return F.return({f:function(){return x.uTs()},
c:function(N){return x.xiG(N)},
m:function(N){return x.i0(Sdk(N))},
mws:function(N){return x.vy(Sdk(N))}})})}};
EFB=function(p,x){var F=vFE();F=F===void 0?"bevasrsg":F;x={s:function(c){var M;return p.snapshot(Object.assign({},c.c&&{cz:c.c},c.s&&{u38:c.s},{tuh:(M=c.p)!=null?M:!0}))},
e:function(c){var M;return void((M=p.bGf)==null?void 0:M.call(p,c))},
c:function(c,M){return p.vgs(c,M)},
p:p.tL8,l:function(){return p.tsf()},
wpc:x?r9H(x):void 0};var N=window===window.top?window:trJ()?window:window.top,h=N[F];if(h){h.bevasrs=x;if(h.nqfbel!==void 0)for(F=_.a(h.nqfbel),N=F.next();!N.done;N=F.next())N=N.value,N(x);h.nqfbel=void 0}else h={},h=(h.bevasrs=x,h.nqfbel=void 0,h),N[F]=h};
gFZ=function(p){var x=x===void 0?49:x;var F=[];_.UT(p,Xwp,6,_.ik()).forEach(function(N){_.$H(N,2)<=x&&F.push(_.$H(N,1))});
return F};
QDH=function(p){var x=x===void 0?49:x;var F=[];_.UT(p,Xwp,6,_.ik()).forEach(function(N){_.$H(N,2)>x&&F.push(_.$H(N,1))});
return F};
zaz=function(p){p.then(function(){},function(){})};
_.pH=function(p){return{fieldType:1,fieldName:p}};
xC=function(p){return{fieldType:2,fieldName:p}};
_.F2=function(p){return{fieldType:3,fieldName:p}};
sDz=function(){function p(){h[0]=1732584193;h[1]=4023233417;h[2]=2562383102;h[3]=271733878;h[4]=3285377520;d=t=0}
function x(v){for(var C=M,X=0;X<64;X+=4)C[X/4]=v[X]<<24|v[X+1]<<16|v[X+2]<<8|v[X+3];for(X=16;X<80;X++)v=C[X-3]^C[X-8]^C[X-14]^C[X-16],C[X]=(v<<1|v>>>31)&4294967295;v=h[0];var Q=h[1],b=h[2],A=h[3],Y=h[4];for(X=0;X<80;X++){if(X<40)if(X<20){var O=A^Q&(b^A);var Fw=1518500249}else O=Q^b^A,Fw=1859775393;else X<60?(O=Q&b|A&(Q|b),Fw=2400959708):(O=Q^b^A,Fw=3395469782);O=((v<<5|v>>>27)&4294967295)+O+Y+Fw+C[X]&4294967295;Y=A;A=b;b=(Q<<30|Q>>>2)&4294967295;Q=v;v=O}h[0]=h[0]+v&4294967295;h[1]=h[1]+Q&4294967295;
h[2]=h[2]+b&4294967295;h[3]=h[3]+A&4294967295;h[4]=h[4]+Y&4294967295}
function F(v,C){if(typeof v==="string"){v=unescape(encodeURIComponent(v));for(var X=[],Q=0,b=v.length;Q<b;++Q)X.push(v.charCodeAt(Q));v=X}C||(C=v.length);X=0;if(t==0)for(;X+64<C;)x(v.slice(X,X+64)),X+=64,d+=64;for(;X<C;)if(c[t++]=v[X++],d++,t==64)for(t=0,x(c);X+64<C;)x(v.slice(X,X+64)),X+=64,d+=64}
function N(){var v=[],C=d*8;t<56?F(f,56-t):F(f,64-(t-56));for(var X=63;X>=56;X--)c[X]=C&255,C>>>=8;x(c);for(X=C=0;X<5;X++)for(var Q=24;Q>=0;Q-=8)v[C++]=h[X]>>Q&255;return v}
for(var h=[],c=[],M=[],f=[128],K=1;K<64;++K)f[K]=0;var t,d;p();return{reset:p,update:F,digest:N,digestString:function(){for(var v=N(),C="",X=0;X<v.length;X++)C+="0123456789ABCDEF".charAt(Math.floor(v[X]/16))+"0123456789ABCDEF".charAt(v[X]%16);return C}}};
YdM=function(p,x){x=x===void 0?nFH:x;if(!y9p){var F;p=(F=p.navigator)==null?void 0:F.userAgentData;if(!p||typeof p.getHighEntropyValues!=="function"||p.brands&&typeof p.brands.map!=="function")return Promise.reject(Error("ya"));F=(p.brands||[]).map(function(h){var c=new btH;c=_.J_(c,1,h.brand);return _.J_(c,2,h.version)});
A9H(_.Nc(uGB,2,p.mobile),F);y9p=p.getHighEntropyValues(x)}var N=new Set(x);return y9p.then(function(h){var c=uGB.clone();N.has("platform")&&_.J_(c,3,h.platform);N.has("platformVersion")&&_.J_(c,4,h.platformVersion);N.has("architecture")&&_.J_(c,5,h.architecture);N.has("model")&&_.J_(c,6,h.model);N.has("uaFullVersion")&&_.J_(c,7,h.uaFullVersion);return c.serialize()}).catch(function(){return uGB.serialize()})};
hm=function(p,x,F,N){this.initialValue_=p;this.maxValue_=x;this.currBaseValue_=this.currValue_=p;this.randomFactor_=F||0;this.backoffFactor_=N||2};
lI=function(p){this.src=p;this.listeners={};this.typeCount_=0};
Wg$=function(){for(var p;p=wwH.remove();){try{p.fn.call(p.scope)}catch(x){fp(x)}GnM.put(p)}VrH=!1};
_.Htp=function(p){switch(p){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}};
m$H=function(p){switch(p){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""}};
_.oFr=function(){};
U$p=function(p){return{tOv:new Otm(p),errorCount:new jD$(p),eventCount:new LgM(p),yYX:new POp(p),u8k:new T1r(p),gEd:new B1$(p),f6A:new RaH(p),s6H:new knk(p)}};
hZk=function(p,x,F,N){p=itd(I9$($$$(new _.cS(1828,"0"),p),new eap));x.length&&p8M(p,xEM(new FWr,x));N!==void 0&&(p.destinationUrl=N);var h=new NqJ(1828,"","",!1,"",p.build());_.aG(h,p);var c=new Mc({flush:function(M){try{h.flush(M)}catch(f){F(f)}}});
c.addOnDisposeCallback(function(){setTimeout(function(){try{c.snapshotAndFlush()}finally{h.dispose()}})});
c.invocationLimit=1E5;c.flushInterval=3E4;c.JSC$7643_flushTimer.setInterval(3E4);return c};
D0=function(){var p,x,F;return(F=(p=globalThis.performance)==null?void 0:(x=p.now)==null?void 0:x.call(p))!=null?F:Date.now()};
a5k=function(p,x,F){if(p.disable)return new l5p;x=x?gFZ(x):[];if(F)return F.bmM(x),F.share();p={h8:p.h8,nWr:p.rYA,jlc:p.iTe,destinationUrl:p.destinationUrl,oxM:p.oxM,syt:p.syt};F=x;F=F===void 0?[]:F;return new cqd(p,F)};
_.MQM=function(p){if(!p)return null;p=_.fH(p,4);return p===null||p===void 0?null:_.vz(p)};
KWp=function(p,x){return x?DEd(x):p?f5d(p):Promise.resolve()};
DEd=function(p){return new Promise(function(x,F){var N=_.KH("SCRIPT"),h=_.MQM(p);_.UU(N,h);N.onload=function(){_.qc(N);x()};
N.onerror=function(){_.qc(N);F(Error("Ja"))};
(Z0("HEAD")[0]||document.documentElement).appendChild(N)})};
f5d=function(p){return new Promise(function(x){var F=_.KH("SCRIPT");if(p){var N=_.fH(p,6);N=N===null||N===void 0?null:_.RM(N)}else N=null;_.kE(F,N);(Z0("HEAD")[0]||document.documentElement).appendChild(F);_.qc(F);x()})};
tm=function(p,x,F){var N,h=new Promise(function(c){N=setTimeout(c,x)});
return Promise.race([p.finally(function(){return void clearTimeout(N)}),
h.then(F)])};
q5Z=function(p,x){try{return globalThis.sessionStorage.setItem(p,x),!0}catch(F){return!1}};
ZfM=function(p,x,F,N){x=x===void 0?0:x;F=F===void 0?p.length:F;var h=0;for(N&&(h=ZfM(N));x<F;x++)N=typeof p==="string"?p.charCodeAt(x):p[x],h=tQz(31,h)+N|0;return h};
dE$=function(p,x){return[ZfM(p,0,p.length>>1,x),ZfM(p,p.length>>1)]};
v3z=function(p){var x=_.a(dE$(p,dv));p=x.next().value;x=x.next().value;return p.toString(16)+x.toString(16)};
Jqr=function(p,x){var F=dE$(x);p=new Uint32Array(p.buffer);x=p[0];var N=_.a(F);F=N.next().value;N=N.next().value;for(var h=1;h<p.length;h+=2){for(var c=x,M=h,f=F,K=N,t=0;t<22;t++)M=M>>>8|M<<24,M+=c|0,M^=f+38293,c=c<<3|c>>>29,c^=M,K=K>>>8|K<<24,K+=f|0,K^=t+38293,f=f<<3|f>>>29,f^=K;c=[c,M];p[h]^=c[0];h+1<p.length&&(p[h+1]^=c[1])}};
Cbp=function(p,x,F,N,h){var c=(4-(dv.length+F.length)%4)%4,M=new Uint8Array(4+c+dv.length+4+F.length),f=new DataView(M.buffer),K=0;f.setUint32(K,Math.random()*4294967295);K=K+4+c;M.set(dv,K);K+=dv.length;f.setUint32(K,h);M.set(F,K+4);Jqr(M,N);return p.insert(x,function(t){return void globalThis.sessionStorage.removeItem(t)})?q5Z(x,_.Xc(M))?"s":"t":"i"};
S5$=function(p,x){var F=globalThis.sessionStorage.getItem(p);if(!F)return["m"];try{var N=_.Fj(F);Jqr(N,x)}catch(h){return globalThis.sessionStorage.removeItem(p),["c"]}for(x=4;x<7&&N[x]===0;)x++;for(F=0;F<dv.length;F++)if(N[x++]!==dv[F])return globalThis.sessionStorage.removeItem(p),["d"];F=(new DataView(N.buffer)).getUint32(x);return Math.floor(Date.now()/1E3)>=F?(globalThis.sessionStorage.removeItem(p),["e"]):["a",new Uint8Array(N.buffer,x+4)]};
rqr=function(p){return globalThis.TextEncoder?(new TextEncoder).encode(p):_.vS(p)};
E3p=function(p){var x=p,F;return function(){if(x){var N=x;x=void 0;F=N.apply(this,arguments)}return F}};
g3p=function(p){return Gm(function(x){if(x instanceof p)return!0;var F,N,h=x==null?void 0:(F=x.ownerDocument)==null?void 0:(N=F.defaultView)==null?void 0:N[p.name];return X8$(h)&&x instanceof h})};
_.Se=function(p,x,F){_.Jm.call(this);this.JSC$7855_listener_=p;this.JSC$7855_interval_=x||0;this.handler_=F;this.callback_=(0,_.CH)(this.JSC$7857_doAction_,this)};
_.rv=function(p){p=QxE(p);return _.vz(p)};
QxE=function(p){return p===null?"null":p===void 0?"undefined":p};
sxk=function(p){if(p&&p.focus)if(p!==document.activeElement)p.focus();else return zZ6(function(){return _.D(function(x){document.activeElement&&document.activeElement.blur();return x.return(zZ6(function(){p.focus()}))})})};
_.n3$=function(p){var x=x===void 0?5:x;setTimeout(function(){var F;return _.D(function(N){N.nextAddress==1&&(F=document.activeElement);if(N.nextAddress!=5)return(document.activeElement===F||document.activeElement===document.body)&&x>=0&&p?_.q(N,sxk(p),5):N.jumpTo(0);if(document.activeElement===p)return N.return();p=p.parentElement;--x;return N.jumpTo(2)})},15)};
zZ6=function(p){return new Promise(function(x){requestAnimationFrame(function(){x(p())})})};
bfd=function(p){if(_.Ey)p(_.Ey);else{var x;((x=yqZ)!=null?x:yqZ=[]).push(p)}};
gv=function(){!_.Ey&&_.X2&&_.AqZ(_.X2());return _.Ey};
_.AqZ=function(p){_.Ey=p;var x;(x=yqZ)==null||x.forEach(bfd);yqZ=void 0};
_.QH=function(p){_.Ey&&_.Ey.beforeLoadModuleCode(p)};
_.z4=function(){_.Ey&&_.Ey.JSC$8794_setLoaded()};
sy=function(p){return(0,_.Ek)(p)?Number(p):String(p)};
u_p=function(p){this.action=p;this.wfv=!1};
Y5r=function(p,x){u_p.call(this,"set-drive-options");this.appId=p;this.appOrigin=x};
w8J=function(p){u_p.call(this,"visibility");this.visible=p};
GIJ=function(p,x,F){nH.call(this,p,x,F)};
VQr=function(p){yH.call(this,p)};
WWk=function(p){p=p&&p.getWindow()||window;return p.gadgets&&p.gadgets.rpc};
mEM=function(p,x){var F=x&&x.getWindow()||window;if(WWk(x))p();else if(Hfd)Hfd.push(p);else var N=Hfd=[p],h=F.setInterval(function(){if(WWk(x)){F.clearInterval(h);for(var c=0;c<N.length;c++)N[c]();Hfd=null}},100)};
Ofp=function(p,x){var F=new bI(p);_.aG(x,F);var N={passive:!1};x.listen(F,"mousewheel",function(h){return void o3B(p,h)},N).listen(p,"scroll",function(h){return void o3B(p,h)},N)};
o3B=function(p,x){var F;a:{for(F=x.target;F;){if(F.nodeType==1){var N=_.Am(F,"overflowY");if(N=="auto"||N=="scroll")break a}F=F.parentNode}F=null}if(!F||!_.uI(p,F)||F.scrollHeight==F.clientHeight||x.deltaY>0&&Math.abs(F.scrollTop-(F.scrollHeight-F.clientHeight))<=1||x.deltaY<0&&F.scrollTop==0)x.preventDefault(),x.stopPropagation()};
mX=function(p,x,F,N,h,c,M,f,K){f=f===void 0?!1:f;K=K===void 0?!1:K;nH.call(this,void 0,void 0,void 0);nH.call(this,c?c+" picker modal-dialog":"picker modal-dialog",!0,F);_.YC(p,"protocol");this.iframeManager_=new jxH;this.targetId_=wv();this.rpcToken_=wv();p=_.G4(p);_.VH(p,"hostId");F=_.VH(p,"parent");this.useGapi_=!K&&!0||(F==null?void 0:F.includes("onepick.corp.google.com"));f&&_.WS(p,"fv2","true");this.setUrl(p.toString());this.preferredDialogWidth_=N;this.preferredDialogHeight_=h;N!==void 0||
h!==void 0?N=!0:(N=_.VH(_.G4(p.toString()),"hostId"),LW$||(LW$=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),N=!LW$.has(N));this.autoSizeDialog_=N;this.JSC$8048_gadgetsDomHelper_=M||this.JSC$7999_dom_;x&&(M=this.JSC$8048_gadgetsDomHelper_,x=_.VH(_.G4(this.JSC$8050_url_),"grugl")=="true"?Pbp:Tqr,WWk(M)||(M=M||vm(document),N=M.createElement("SCRIPT"),_.UU(N,x),N.type="text/javascript",M.JSC$7225_document_.body.appendChild(N)));
p=p.toString();x=null;M=p.indexOf("/picker?");M>-1?x=p.substring(0,M+8-1):ZZ(p,"/picker")&&(x=p);x&&this.setRelayUrl(x+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(p=this.buttons_,p.JSC$8033_element_=this.buttonEl_,p.render()):_.ig(this.buttonEl_,Bqk),_.HS(this.buttonEl_,!!this.buttons_))};
_.ifJ=function(p){var x=x===void 0?RZw:x;var F=_.$$(p),N=function(c){c=_.a(c);c.next();c=oG(c);return x(F,c)},h=function(c){var M=_.a(c);
c=M.next().value;M=oG(M);return p.apply(c,M)};
return function(){var c=_.we.apply(0,arguments),M=this||_.Mm,f=kIp.get(M);f||(f={},kIp.set(M,f));return _.UEM(f,[this].concat(_.se(c)),h,N)}};
Oy=function(p){var x={};p=p.replace(/\r/g,"").split("\n");for(var F=0;F<p.length;F++){var N=p[F],h=N.indexOf(":");h<0||(x[N.substring(0,h)]=N.substring(h+2,N.length))}return x};
I5$=function(p,x,F){F=F===void 0?function(){}:F;
x=_.a(x);for(var N=x.next();!N.done;N=x.next()){var h=_.a(N.value);N=h.next().value;h=h.next().value;if(N instanceof Array&&N.includes(p)||N===p)return h()}return F()};
_.je=function(p,x,F){F=F===void 0?function(){}:F;
return p?x():F()};
_.eZp=function(p){var x;return((x=$Ep.documentOverride)!=null?x:p).__wizdispatcher};
PS=function(p){var x=_.LH;_.LH=p;return x};
xpM=function(p,x){var F;if((F=p)==null?0:F.isDisposed)throw Error("nb`"+String(p.debugName));for(;p!==void 0;){F=p;if(F.retrieve)return F.retrieve(x,{optional:!0});p=p.parent}return pu6};
T4=function(p){return{"\u0275prov":{providedIn:"root",token:Symbol(p),factory:void 0,value:void 0}}};
BS=function(p){p!==Fdr&&PS(p)};
_.RG=function(p){var x=PS(p);p={};return p[Symbol.dispose]=function(){BS(x)},p};
Nw6=function(p,x){p.disposables||(p.disposables=[]);p.disposables.push(x)};
kC=function(p){var x=_.LH;x&&!x.isDisposed&&(Nw6(x,function(){return void h$H(p)}),p.parent=x)};
l3$=function(p){if(p.disposables){for(var x=_.a(p.disposables),F=x.next();!F.done;F=x.next())F=F.value,F();p.disposables.length=0}};
h$H=function(p){if(!p.isDisposed){p.isDisposed=!0;var x;(x=p[Symbol.dispose])==null||x.call(p);delete p.parent;l3$(p)}};
ZgE=function(p){var x={retrieve:function(F){switch(F.\u0275prov.token){case cdd.\u0275prov.token:var N=p.rootElement;break;case a3M.\u0275prov.token:N=p.modelRootElement;break;case MsJ.\u0275prov.token:N=p.appContext;break;case DpB.\u0275prov.token:N=p.rendererData;break;case f3M.\u0275prov.token:N=p.injectingConstructor;break;case Kd$.\u0275prov.token:N=p.dispatcher}if(N)F=N;else a:{for(N=x.parent;N;){var h=N;if(h.retrieve){F=h.retrieve(F);break a}N=N.parent}N=F.\u0275prov.token;h=q0B[N];h!==void 0?
F=h:(h=F.\u0275prov.providedIn,F.\u0275prov.factory?(F=F.\u0275prov.factory(),N&&h==="root"&&(q0B[N]=F)):F=pu6)}return F}};
kC(x);return x};
dp6=function(p){var x="";var F=_.Mm._F_jsUrl;if(typeof document!=="undefined"&&document&&document.getElementById&&(p=document.getElementById(p))){var N=p.tagName.toUpperCase();if(N=="SCRIPT"||N=="LINK")x=p.src?p.src:p.getAttribute("href")}if(F&&x){if(F!=x)throw Error("tb`"+F+"`"+x);x=F}else x=F||x;if(!tsE(x))throw Error("ub");return x};
C1r=function(){if(!vSp){vSp=!0;try{var p=dp6(_.Mm._F_jsUrl?"":"base-js")}catch(N){return}var x=JdB(Uy(p)),F=Object.keys(x);F.length!==0&&bfd(function(N){for(var h=_.a(F),c=h.next();!c.done;c=h.next()){c=c.value;for(var M=_.a(Object.keys(x[c])),f=M.next();!f.done;f=M.next())N.addExtraEdge(c,f.value)}})}};
S0M=function(p,x,F){var N;return p&&x?p+"__"+x:(N=p!=null?p:x)!=null?N:F};
ES6=function(){var p=Object.assign({},rdk);Object.getOwnPropertyNames(rdk).forEach(function(x){iI[x]!==void 0&&(p[x]=iI[x])});
return p};
Xu6=function(p,x){if(iI.enablePerformanceTiming){var F,N;(N=(F=performance).mark)==null||N.call(F,p+"Start__"+x)}};
gSM=function(p,x){if(iI.enablePerformanceTiming){var F,N;(N=(F=performance).measure)==null||N.call(F,p+"__"+x,p+"Start__"+x)}};
z$H=function(p,x){var F=Object.create(Qnw);F.debugName=x;!_.LH||kC(F);x=PS(F);try{p(F)}finally{BS(x)}return function(){return void h$H(F)}};
ydB=function(p){return snJ(p)&&nSk in p};
bgm=function(p,x){return Object.is(p,x)};
$C=function(p){var x=IG;IG=p;return x};
wud=function(p){if(ee)throw Error("da");if(IG!==null){var x=IG.nextProducerIndex++;Adp(IG);x<IG.producerNode.length&&IG.producerNode[x]!==p&&pn(IG)&&uEM(IG.producerNode[x],IG.producerIndexOfThis[x]);IG.producerNode[x]!==p&&(IG.producerNode[x]=p,IG.producerIndexOfThis[x]=pn(IG)?Y0p(p,IG,x):0);IG.producerLastReadVersion[x]=p.version}};
Wdz=function(p){if(!pn(p)||p.dirty)if(p.dirty||p.lastCleanEpoch!==GWB)(p.producerMustRecompute(p)||VsJ(p))&&p.producerRecomputeValue(p),p.dirty=!1,p.lastCleanEpoch=GWB};
Hgr=function(p){if(p.liveConsumerNode!==void 0){var x=ee;ee=!0;try{for(var F=_.a(p.liveConsumerNode),N=F.next();!N.done;N=F.next()){var h=N.value;h.dirty||(p=void 0,h.dirty=!0,Hgr(h),(p=h.consumerMarkedDirty)==null||p.call(h,h))}}finally{ee=x}}};
mp6=function(){var p;return((p=IG)==null?void 0:p.consumerAllowSignalWrites)!==!1};
oSw=function(p){p&&(p.nextProducerIndex=0);return $C(p)};
Og$=function(p,x){$C(x);if(p&&p.producerNode!==void 0&&p.producerIndexOfThis!==void 0&&p.producerLastReadVersion!==void 0){if(pn(p))for(x=p.nextProducerIndex;x<p.producerNode.length;x++)uEM(p.producerNode[x],p.producerIndexOfThis[x]);for(;p.producerNode.length>p.nextProducerIndex;)p.producerNode.pop(),p.producerLastReadVersion.pop(),p.producerIndexOfThis.pop()}};
VsJ=function(p){Adp(p);for(var x=0;x<p.producerNode.length;x++){var F=p.producerNode[x],N=p.producerLastReadVersion[x];if(N!==F.version)return!0;Wdz(F);if(N!==F.version)return!0}return!1};
Y0p=function(p,x,F){jnk(p);if(p.liveConsumerNode.length===0&&p.producerNode!==void 0)for(var N=0;N<p.producerNode.length;N++)p.producerIndexOfThis[N]=Y0p(p.producerNode[N],p,N);p.liveConsumerIndexOfThis.push(F);return p.liveConsumerNode.push(x)-1};
uEM=function(p,x){jnk(p);if(p.liveConsumerNode.length===1&&p.producerNode!==void 0)for(var F=0;F<p.producerNode.length;F++)uEM(p.producerNode[F],p.producerIndexOfThis[F]);F=p.liveConsumerNode.length-1;p.liveConsumerNode[x]=p.liveConsumerNode[F];p.liveConsumerIndexOfThis[x]=p.liveConsumerIndexOfThis[F];p.liveConsumerNode.length--;p.liveConsumerIndexOfThis.length--;x<p.liveConsumerNode.length&&(F=p.liveConsumerIndexOfThis[x],p=p.liveConsumerNode[x],Adp(p),p.producerIndexOfThis[F]=x)};
pn=function(p){var x,F;return p.consumerIsAlwaysLive||((F=p==null?void 0:(x=p.liveConsumerNode)==null?void 0:x.length)!=null?F:0)>0};
Adp=function(p){p.producerNode!=null||(p.producerNode=[]);p.producerIndexOfThis!=null||(p.producerIndexOfThis=[]);p.producerLastReadVersion!=null||(p.producerLastReadVersion=[])};
jnk=function(p){p.liveConsumerNode!=null||(p.liveConsumerNode=[]);p.liveConsumerIndexOfThis!=null||(p.liveConsumerIndexOfThis=[])};
P1d=function(p){var x=Object.create(Ldd);x.computation=p;p=function(){Wdz(x);wud(x);if(x.value===xd)throw x.error;return x.value};
p[FD]=x;return p};
DfH=function(p){var x=Object.create(Mlw);x.value=p;p=function(){wud(x);return x.value};
p[FD]=x;return p};
q$$=function(p,x){mp6()||fO$(p);if(!p.equal(p.value,x)){p.value=x;p.version++;GWB++;Hgr(p);var F;(F=Ki6)==null||F(p)}};
NG=function(p){var x=$C(null);try{return p()}finally{$C(x)}};
tlZ=function(p){var x={};return x[Zow]=p,x};
_.hu=function(p,x,F){F=F===void 0?"":F;p=DfH(p);var N=p[FD];N.debugName=S0M(x==null?void 0:x.debugName,F,"[signal]");(x==null?void 0:x.equals)!=null&&(N.equal=x.equals);return[p,function(h){Xu6("signalSet",N.debugName);try{if(h&&h[Zow]){var c=h[Zow];mp6()||fO$(N);q$$(N,c(N.value))}else q$$(N,h)}finally{gSM("signalSet",N.debugName)}}]};
vlk=function(p,x){var F=_.a(_.hu(p,void 0,"cPpJzc"));p=F.next().value;F=F.next().value;p[df$]=F;p[lG]=x;return p};
JTd=function(p){return!!p&&typeof p==="object"&&Object.getPrototypeOf(p)===Object.prototype};
CKp=function(p){return typeof p==="function"&&df$ in p&&typeof p[df$]==="function"};
S$w=function(p,x){Object.defineProperty(p,lG,{get:function(){return x}})};
aU=function(p,x){if(ce(p)){var F=p.map(function(c){return aU(c,x)});
S$w(F,x);return F}if(JTd(p)){F={};p=_.a(Object.entries(p));for(var N=p.next();!N.done;N=p.next()){var h=_.a(N.value);N=h.next().value;h=h.next().value;F[N]=aU(h,x)}S$w(F,x);return F}return vlk(p,x)};
rT6=function(p){if(ce(p))return p.map(function(h){return rT6(h)});
if(JTd(p)){var x={};p=_.a(Object.entries(p));for(var F=p.next();!F.done;F=p.next()){var N=_.a(F.value);F=N.next().value;N=N.next().value;x[F]=rT6(N)}return x}return CKp(p)?p():p};
XZd=function(){var p={height:0,width:0};if(!JTd(p))throw Error("Gb");var x=Symbol("Hb");return[aU(p,x),function(F,N){if(F[lG]===x)if(typeof N==="function"){var h=[].concat(_.se(rT6(F)));N=N(h)||h;Elz(F,[].concat(_.se(N)))}else Elz(F,N);else throw Error("Ib");}]};
Elz=function(p,x){if(CKp(p))p[df$](x);else if(ce(p)&&ce(x))x=aU(x,p[lG]),p.length=0,p.push.apply(p,_.se(x));else if((JTd(p)||ce(p))&&(ce(x)||typeof x==="object"&&x!==null)){x=_.a(Object.entries(x));for(var F=x.next();!F.done;F=x.next()){var N=_.a(F.value);F=N.next().value;N=N.next().value;var h=p,c=h[F];Object.hasOwn(p,F)?Elz(c,N):h[F]=aU(N,p[lG])}}else throw Error("Jb");};
glw=function(p){return Object.create(Object.assign({},MG,p))};
zR$=function(){var p;return(p=QcB)!=null?p:QcB=glw({consumerAllowSignalWrites:!0})};
_.Kn=function(p,x,F){F=F===void 0?"":F;p=P1d(p);var N=p[FD];N.debugName=S0M(x==null?void 0:x.debugName,F,"[computed]");(x==null?void 0:x.equals)!=null&&(N.equal=x.equals);return p};
qG=function(p){var x=$C(sc6);try{p()}finally{$C(x)}};
Y$J=function(p){if(!p.isDisposed){switch(p.effectType){case nlZ:yT$.schedule(p);break;case bow:ATr.schedule(p);break;default:_.Pb(p.effectType)}p.hasRun||uxJ()}};
GjZ=function(p){wZJ.push(p);return function(){var x=wZJ.indexOf(p);x!==-1&&wZJ.splice(x,1)}};
uxJ=function(){for(var p=_.a(Vlp),x=p.next();!x.done;x=p.next())x.value.flush()};
HoH=function(p){for(var x=_.a(p),F=x.next();!F.done;F=x.next()){var N=F.value;for(F=[N];N.parent!==void 0;)N=N.parent,Wir(N)&&p.has(N)&&F.push(N);for(;F.length>0;){N=_.wl(F.pop());try{N.run()}finally{p.delete(N)}}}};
OoJ=function(p){mfH--;if(p)olM.length=0;else if(!(mfH>0))for(;olM.length>0;){p=olM.shift();if(!p)throw Error("Kb");try{p()}catch(x){fp(x)}}};
jcz=function(p){var x=p.component;var F=p.debugInstance;p=p.fn;var N,h=(N=x.debugName)!=null?N:x.name;ZJ.push({name:F?h+" ("+F+")":h,isReactive:x.componentType!==tu});x=p();ZJ.pop();return x};
dx=function(){return ZJ[ZJ.length-1]};
ve=function(){var p=ZJ[ZJ.length-1];return p?p.isReactive:!1};
Ju=function(p,x){x=x===void 0?{}:x;var F=ZJ.length;x.stack&&(ZJ=[].concat(_.se(x.stack)));try{return p()}catch(c){p=c;Lip(p);if(p!==PK$){TjJ=ZJ.slice();x=[];for(var N=_.LH;N;){var h=void 0;x.push((h=N.debugName)!=null?h:"[context]");h=void 0;N=(h=N.parent)!=null?h:null}Bjp=x.reverse()}PK$=p;throw p;}finally{F=ZJ.length-F,F>0&&ZJ.splice(-F)}};
Lip=function(p){var x=ZJ;if(x.length!==0&&!p.componentStack){var F=x.slice(-20).reverse().map(function(N){return N.name}).join(" > ");
F=p.message+"\n\nComponent stack: "+F;try{p.componentStack=x.slice(),iI.enableComponentStacksInErrorMessages&&(p.stack&&(p.stack=p.stack.replace(p.message,F)),p.message=F)}catch(N){}}};
RRk=function(p,x,F){x=Object.create(x);x.componentStack=ZJ.slice();x.effectFn=p;F&&(x.debugName=F);kC(x);return x};
Cn=function(p,x,F){F=F===void 0?3:F;var N,h;var c=(h=(N=TjJ)==null?void 0:N.slice())!=null?h:[];var M,f;N=(f=(M=Bjp)==null?void 0:M.slice())!=null?f:[];x={componentStack:c,contextTrace:N,errorSeverity:F,featureFlags:ES6(),tagName:x};return[p,x]};
_.SO=function(p,x){p=RRk(p,kjE,x);x=IG;if(Wir(x)&&x.effectType===bow){var F;(F=iI.handleError)==null||F.call.apply(F,[iI].concat(_.se(Cn(Error("qb")))))}Y$J(p)};
_.rx=function(p,x){p=RRk(p,Ufr,x);Y$J(p)};
_.E_=function(p){var x=_.LH;if(x){var F=ZJ.slice();Nw6(x,function(){var N=$C(zR$());try{Ju(function(){return void p()},{stack:F})}finally{$C(N)}})}};
XD=function(p,x){var F={};(x===void 0||x)&&kC(F);x=PS(F);try{p(F)}finally{BS(x)}return function(){return void h$H(F)}};
_.gx=function(p){return typeof p==="function"?p():(p==null?0:p[ioE])?p.get():p};
IOM=function(p){if(_.LH)throw Error("ob");XD(p,!1)};
QZ=function(p,x){p=PS(p);try{return NG(x)}finally{BS(p)}};
pQ6=function(p,x,F){if(Object.hasOwnProperty.call($fz,p)&&(p=$fz[p],Object.hasOwnProperty.call(p,x)&&(p=p[x],p instanceof Array))){for(var N=null,h=!1,c=0,M=p.length;c<M;++c){var f=p[c],K=f.contingentAttribute;if(!K)return f.contract;N===null&&(N={});K=Object.hasOwnProperty.call(N,K)?N[K]:N[K]=F(K);if(K===f.requiredValue)return f.contract;K==null&&(h=!0)}if(h)return null}x=eRr[x];return typeof x==="number"?x:null};
NgM=function(p,x,F){var N=null;(p=xn6[p])&&(N=p[x]);return typeof N!=="number"&&((p=xn6["*"])&&(N=p[x]),typeof N!=="number")?!1:!0===FfJ[N][String(F).toLowerCase()]};
lWp=function(p,x){x=pQ6(p.toLowerCase(),x,function(){var N;(N=iI.handleError)==null||N.call.apply(N,[iI].concat(_.se(Cn(Error("Pb"),p.toLowerCase()))))});
if(x===null)return null;var F;return(F=hTH[x])!=null?F:null};
cl6=function(p,x,F){if(F===null||F===void 0)return F;p=lWp(p,x);return p===null?F:p(x,F)};
aWk=function(){};
zG=function(p,x){for(;p.length>x;)p.pop()};
MBM=function(p){p=Array(p);zG(p,0);return p};
DnE=function(p,x,F){if(F==null)p.removeAttribute(x);else{var N;(N=x.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":x.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?p.setAttributeNS(N,x,F):p.setAttribute(x,F)}};
fWE=function(p,x,F){p[x]=F};
q4k=function(p,x,F){p=p.style;if(typeof F==="string")p.cssText=F;else{p.cssText="";for(var N in F)if(KfE.call(F,N)){x=p;var h=N,c=F[N];h.indexOf("-")>=0?x.setProperty(h,c):x[h]=c}}};
ZNp=function(p,x,F){var N=typeof F;N==="object"||N==="function"?p[x]=F:DnE(p,x,F)};
tBk=function(){var p=new aWk;p[s_.default]=ZNp;p.style=q4k;return p};
dnH=function(p,x,F,N){(N[x]||N[s_.default])(p,x,F)};
JlJ=function(p,x,F){x=new vMH(x,F);return p.__incrementalDOMData=x};
nn=function(p,x){if(p.__incrementalDOMData)return p.__incrementalDOMData;var F=p.nodeType===1?p.localName:p.nodeName,N=p.nodeType===1?p.getAttribute("key"):null;x=JlJ(p,F,p.nodeType===1?N||x:null);if(p.nodeType===1&&(p=p.attributes,F=p.length)){N=x._attrsArr||(x._attrsArr=MBM(F*2));for(var h=0,c=0;h<F;h+=1,c+=2){var M=p[h],f=M.value;N[c]=M.name;N[c+1]=f}}return x};
CLm=function(p,x,F,N,h){return x==F&&N==h};
S4J=function(p){for(var x=yZ,F=Au();F!==p;){var N=F.nextSibling;x.removeChild(F);uG.deleted.push(F);F=N}};
Au=function(){return Yd?Yd.nextSibling:yZ.firstChild};
wx=function(){Yd=Au()};
XQd=function(p,x,F){wx();var N;a:{if(N=Yd){do{var h=N,c=p,M=x,f=nn(h,M);if(rl$(h,c,f.nameOrCtor,M,f.key))break a}while(x&&(N=N.nextSibling))}N=null}N||(p==="#text"?(F=GG.createTextNode(""),JlJ(F,"#text",null),p=F):(N=GG,h=yZ,typeof p==="function"?N=new p:N=(h=p==="svg"?"http://www.w3.org/2000/svg":p==="math"?"http://www.w3.org/1998/Math/MathML":h==null||nn(h).nameOrCtor==="foreignObject"?null:h.namespaceURI)?N.createElementNS(h,p):N.createElement(p),JlJ(N,p,x),p=N,F&&p.setAttribute("nonce",F)),uG.created.push(p),
N=p);F=N;if(F!==Yd){if(EME.indexOf(F)>=0)for(p=yZ,x=F.nextSibling,N=Yd;N!==null&&N!==F;)h=N.nextSibling,p.insertBefore(N,x),N=h;else yZ.insertBefore(F,Yd);Yd=F}};
gMd=function(p,x,F){XQd(p,x,F);yZ=Yd;Yd=null;return yZ};
Q8d=function(){S4J(null);Yd=yZ;yZ=yZ.parentNode};
VZ=function(){Yd=yZ.lastChild};
nMM=function(p,x){x=x===void 0?{}:x;var F=x.matches===void 0?CLm:x.matches;return function(N,h,c){var M=uG,f=GG,K=EME,t=We,d=He,v=Yd,C=yZ,X=rl$;GG=N.ownerDocument;uG=new zT6(N);rl$=F;We=[];He=[];Yd=null;var Q=yZ=N.parentNode,b,A=s8k.call(N);if((b=A.nodeType===11||A.nodeType===9?A.activeElement:null)&&N.contains(b)){for(A=[];b!==Q;)A.push(b),b=b.parentNode||(Q?b.host:null);Q=A}else Q=[];EME=Q;try{return p(N,h,c)}finally{N=uG,mV&&N.deleted.length>0&&mV(N.deleted),GG=f,uG=M,rl$=X,We=t,He=d,Yd=v,yZ=C,
EME=K}}};
ylz=function(p,x,F,N){oU.push(dnH);oU.push(p);oU.push(x);oU.push(F);oU.push(N)};
Alr=function(p,x,F){var N=He;x=x._attrsArr||(x._attrsArr=MBM(N.length));for(var h=!x.length||!1,c=0;c<N.length;c+=2){var M=N[c];if(h)x[c]=M;else if(x[c]!==M)break;var f=N[c+1];if(h||x[c+1]!==f)x[c+1]=f,ylz(p,M,f,F)}if(c<N.length||c<x.length){for(c=h=c;c<x.length;c+=2)O_[x[c]]=x[c+1];for(c=h;c<N.length;c+=2)h=N[c],M=N[c+1],O_[h]!==M&&ylz(p,h,M,F),x[c]=h,x[c+1]=M,delete O_[h];zG(x,N.length);for(var K in O_)ylz(p,K,void 0,F),delete O_[K]}p=bNp;bNp=F=oU.length;for(K=p;K<F;K+=5)(0,oU[K])(oU[K+1],oU[K+
2],oU[K+3],oU[K+4]);bNp=p;zG(oU,p);zG(N,0)};
jO=function(p){XQd("#text",null);var x=Yd;var F=nn(x);if(F.text!==p){F=F.text=p;for(var N=1;N<arguments.length;N+=1)F=(0,arguments[N])(F);x.data!==F&&(x.data=F)}};
WfH=function(p,x,F){if(F===!1&&uPk.has(x))DnE(p,x,null);else if(x!=="idomKey"&&x!=="skip"&&x!=="skipchildren"&&x!=="children"&&x!=="el"){if(x.startsWith("on"))if(x[2]===":"){if(F===void 0||F===null){var N;(N=iI.handleError)==null||N.call.apply(N,[iI].concat(_.se(Cn(Error("Vb`"+x),p.tagName))));p[x]=void 0;return}if(typeof F!=="object"||F===null)throw Error("Wb`"+x+"`"+typeof F);if(typeof F.getFn!=="function")throw Error("Xb`"+x+"`"+Object.keys(F));var h=F.getFn(0),c=x.slice(3);if((N=ve())&&p["on"+
c]===void 0)p.addEventListener(c,h),_.E_(function(){return void p.removeEventListener(c,h)});
else if(N||!Y4J.includes(c))p["on"+c]=h}else{wQk(p,x,F);return}else if(x.startsWith("data-")&&typeof F==="string")try{F=GcJ(F)}catch(M){F="zSoyz"}typeof F!=="function"||p._disposeEffects!=null?(iI.enableAttributeSanitization&&(F=cl6(p.tagName,x,F)),x==="style"?VB6(p,x,F):x.startsWith("prop:")?(x=x.slice(5),p[x]=F):wQk(p,x,F)):(p._signalProps||(p._signalProps=[]),p._signalValues||(p._signalValues=[]),p._signalProps.push(x))}};
HNr=function(p,x,F){F=(F===void 0?{}:F).isReactive;if(x==null?0:x.el){var N=x.el;if(typeof N==="function")N(p);else{var h;(h=N.onRender)==null||h.call(N,p);p._disposeRef||(p._disposeRef=function(){var c;(c=N.onUnmount)==null||c.call(N);delete p._disposeRef},F&&_.E_(function(){var c;
return void((c=p._disposeRef)==null?void 0:c.call(p))}))}}};
mnw=function(p){return snJ(p)&&Ln in p};
oMw=function(p){return mnw(p)?p[Ln].flattened:p};
ONp=function(p,x){var F=_.we.apply(2,arguments),N;x=(N=x)!=null?N:{};N={};return N.type=p,N.props=x,N.children=F,N[Pe]=!0,N};
_.TG=function(p){return p.children};
Be=function(p){var x=j8$!==ONp;j8$=p?Lfd:ONp;return x};
RU=function(p){return _.IJ(p)?"nodeType"in p:!1};
kd=function(){return document.createTextNode("")};
U_=function(p){p=document.createTextNode(String(p));p._isSignalTextNode=!0;return p};
PLk=function(p){var x=document.createElement("div");if(!(p instanceof Hz)){if(p.contentKind!==iG)throw Error("Tb");p=oM(p.toString())}_.ig(x,p);p=_.a(x.childNodes);for(var F=p.next();!F.done;F=p.next())F.value._isSafeOrSanitizedHtmlNode=!0;return x};
IU=function(p){p=typeof p;return p==="string"||p==="number"||p==="boolean"};
Tgz=function(p){return p instanceof de||Qb(p)||"function"==typeof _.pM&&p instanceof _.pM||!1};
Bgk=function(p,x){var F=p.parentElement;if(!F)return x;F.replaceChild(x,p);return x};
RTw=function(p,x){var F=p[0].parentElement;if(F)if(p[0].previousSibling||p[p.length-1].nextSibling){F.insertBefore(x,p[0]);for(var N=p.length-1;N>=0;N--)F.removeChild(p[N])}else F.textContent="",F.appendChild(x);return x};
kcw=function(p,x){if(p[0].parentElement)for(var F=p[0].parentElement,N=x.length,h=p.length,c=N,M=0,f=0,K=p[h-1].nextSibling,t=null;M<h||f<c;)if(p[M]===x[f])M++,f++;else{for(;p[h-1]===x[c-1];)h--,c--;if(h===M)for(var d=c<N?f?x[f-1].nextSibling:x[c-f]:K;f<c;){var v=x[f++];F.insertBefore(v,d)}else if(c===f)for(;M<h;)d=p[M],t&&t.has(d)||F.removeChild(d),M++;else if(p[M]===x[c-1]&&x[f]===p[h-1])d=p[--h].nextSibling,F.insertBefore(x[f++],p[M++].nextSibling),F.insertBefore(x[--c],d),p[h]=x[c];else{if(!t)for(t=
new Map,d=f;d<c;)t.set(x[d],d++);d=t.get(p[M]);if(d==null)F.removeChild(p[M]),M++;else if(f<d&&d<c){v=M;for(var C=1,X=void 0;++v<h&&v<c&&(X=t.get(p[v]))!=null&&X===d+C;)C++;if(C>d-f)for(v=p[M];f<d;)F.insertBefore(x[f++],v);else F.replaceChild(x[f++],p[M++])}else M++}}return x};
iNd=function(p){if(Array.isArray(p)){if(p.length>1)throw Error("fc`"+p.length+"`"+p.map(Unw).join(", "));p=p[0]}if(p==null)return null;if(!(p instanceof _.Tl)){var x,F;if((x=window)==null?0:(F=x.trustedTypes)==null?0:F.isScript(p))throw Error("ec");if(String(p).trim().length===0)return null;throw Error("gc`"+Unw(p));}return p};
IWZ=function(p){if(Array.isArray(p)){if(p.length>1)throw Error("hc`"+p.length+"`"+p.map(Unw).join(", "));p=p[0]}if(p==null)return null;if(!UMM(p)){if(String(p).trim().length===0)return null;throw Error("ic`"+Unw(p));}return p};
Unw=function(p){return"("+typeof p+") "+(p!=null&&typeof p==="object"?p.constructor.name:typeof p)+" "+p};
eTw=function(p,x){return $nB(p,x)};
$nB=function(p,x){function F(){h=!1;mfH++;var c=N[0],M=N[Ln].flattened,f=Be(!0);try{var K=p(),t=p7$(c,K,N);Array.isArray(t)||(N[Ln].flattened=[t]);var d=N[Ln].flattened;if(M&&(!Array.isArray(M)||M.length!==0)){var v=Array.isArray(M)?M[0]:M,C=v[$d],X=v._disposeEffects;v._disposeEffects=void 0;v=Array.isArray(d)?d[0]:d;v[$d]=C;v[$d]&&(v[$d].numNodes=v===d?1:d.length);v._disposeEffects=X}N[0]=t;OoJ(!1)}catch(Q){throw OoJ(!0),Q;}finally{Be(f)}}
var N=xzk(),h=!0;_.SO(function(){(Fwp==null?0:Fwp.logger)&&!h?Fwp.logger.logGraft(N[0],F):F()},x);
return N};
p7$=function(p,x,F){for(;typeof x==="function";)x=x();if(x!=null&&x[Pe]){var N,h,c;(c=iI.handleError)==null||c.call.apply(c,[iI].concat(_.se(Cn(Error("jc`"+((N=x.type)==null?void 0:N.TAG_NAME)),(h=x.type)==null?void 0:h.TAG_NAME))))}if(p==null)return x==null?kd():IU(x)?U_(x):Tgz(x)?U_(x.toString()):RU(x)?x:x.length===0?kd():N6M(x,F);if(RU(p)){if(x==null)return Bgk(p,kd());if(IU(x))return hyz(p,x);if(Tgz(x))return hyz(p,x.toString());if(RU(x))return Bgk(p,x);if(x.length===0)return Bgk(p,kd());x=N6M(x,
F);kcw([p],F[Ln].flattened);return x}p=eO(p);if(x==null)return RTw(p,kd());if(IU(x))return RTw(p,U_(x));if(Tgz(x))return RTw(p,U_(x.toString()));if(RU(x))return kcw(p,[x])[0];if(x.length===0)return RTw(p,kd());x=N6M(x,F);kcw(p,F[Ln].flattened);return x};
hyz=function(p,x){p.nodeType===Node.TEXT_NODE?p.textContent!==String(x)&&(p.textContent=String(x)):p=Bgk(p,U_(x));return p};
eO=function(p,x,F){return lIB(p,x!=null?x:[],F===void 0?!1:F)};
N6M=function(p,x){var F=eO(p,void 0,!0);if(F.length===0)return kd();x[Ln].flattened=F;return p};
lIB=function(p,x,F,N,h){x=x===void 0?[]:x;F=F===void 0?!1:F;h=h===void 0?-1:h;if(p==null)return x;if(p instanceof pt)return p=p.render(),lIB(p,x,F,N,h);if(RU(x)&&x.nodeType===Node.ELEMENT_NODE)switch(x.tagName){case "SCRIPT":F=iNd(p);F!==null&&_.kE(x,F);return;case "STYLE":F=IWZ(p);F!==null&&(x.textContent=_.i6w(F));return}IU(p)&&(p=U_(p),N&&F&&(N[h]=p));if(p!=null&&p.contentKind===iG||p instanceof Hz){F=PLk(p);F=Array.from(F.childNodes);F=_.a(F);for(p=F.next();!p.done;p=F.next())c8H(x,p.value);return x}Tgz(p)&&
(p=U_(p.toString()),N&&F&&(N[h]=p));if(RU(p))return c8H(x,p);if(Array.isArray(p)){for(var c=0;c<p.length;c++)lIB(p[c],x,F,p,c);return x}if(typeof p==="function"){p=$nB(p,"qmF2ne")[0];if(Array.isArray(p)){F=_.a(p);for(p=F.next();!p.done;p=F.next())c8H(x,p.value);return x}N&&F&&(N[h]=p);return c8H(x,p)}if(p!=null&&p[Pe]){N=Be(!0);h=j8$;try{c=h.apply(null,[p.type,p.props].concat(_.se(p.children)))}finally{Be(N)}return lIB(c,x,F)}var M;(M=iI.handleError)==null||M.call.apply(M,[iI].concat(_.se(Cn(Error("kc")))));
return x};
xzk=function(p){var x={};x=Object.assign([],(x[Ln]={flattened:[]},x));if(!p)return x;x[0]=N6M(p,x);return x};
c8H=function(p,x){Array.isArray(p)?p.push(x):p.appendChild(x);return p};
N$=function(p){if(!iI.enableLazyTsx)return p;if(Array.isArray(p)){for(var x=0;x<p.length;x++)p[x]=N$(p[x]);return p}return p instanceof pt?(p=p.render(),N$(p)):p};
DzZ=function(p,x){var F,N,h=aIr(p),c=function(X){N=X;X=Be(!0);var Q=$C(h9);Xu6("render",h);try{F=N$(p(x))}finally{gSM("render",h),$C(Q),Be(X)}};
c=iI.enableContextPerComponent?z$H(c,h):XD(c,iI.alwaysTrackContexts||!!_.LH);ydB(N);if(!x.renderedFromIdom){var M=PS(N);try{return MqE(p,x,F),F}finally{BS(M)}}!mnw(F)&&Array.isArray(F)&&(F=xzk(F));var f=oMw(F);M=Array.isArray(f)?f[0]:f;var K=!1;if(M){var t,d=(t=x==null?void 0:x.idomKey)!=null?t:p;t=f!==M;M._disposeEffects=c;var v=M[$d]||{},C=mnw(F)?F:v.sourceDynamicRange;Object.assign(v,{key:d,numNodes:t?f.length:1,context:N,higherOrder:!!M[$d],sourceDynamicRange:C});M[$d]=v}else K=!0;(function(){var X=
PS(N);try{MqE(p,x,f)}finally{BS(X)}})();
K&&c();return F};
aIr=function(p){var x,F;return(F=(x=p.debugName)!=null?x:p.name)!=null?F:"[component]"};
fIp=function(p){var x={},F;for(F in p)x={prev$jscomp$24:void 0,next$jscomp$25:void 0},x.prev$jscomp$24=lO[F],x.next$jscomp$25=p[F],lO[F]=function(N){return function(){var h=_.we.apply(0,arguments);N.prev$jscomp$24.apply(null,_.se(h));N.next$jscomp$25.apply(null,_.se(h))}}(x)};
KwM=function(){if(ve())throw Error("lc");return cw};
qfH=function(p,x){if(!p.__unmounted&&x){p.__unmounted=!0;try{p.didUnmount()}catch(h){var F,N;(N=iI.handleError)==null||N.call.apply(N,[iI].concat(_.se(Cn(h,(F=p.JSC$8117___type)==null?void 0:F.TAG_NAME))))}lO.didUnmount(p);p.el=null;x.__instance&&delete x.__instance}};
tqp=function(p,x,F){p._signalProps!=null&&p._disposeEffects==null&&((F===void 0?0:F)?p._disposeEffects=XD(function(){return void Zsk(p,x)},iI.alwaysTrackContexts||!!_.LH):Zsk(p,x))};
Zsk=function(p,x){_.SO(function(){for(var F=p._signalProps,N=p._signalValues,h=0;h<F.length;h++){var c=F[h],M=x[c]();N[h]!==M&&(N[h]=M,WfH(p,c,M))}},"e3YVbb")};
dzz=function(p,x,F){var N,h=[];p._disposeEffects=XD(function(){_.SO(function(){var c=F();if(c===null||c===void 0)c="";if(IU(c)||c===null)N!=null||(N=document.createTextNode("")),N.parentNode!==p&&(N._isSignalTextNode=!0,p.insertBefore(N,x)),N.textContent=String(c);else if(c!=null&&c.contentKind===iG||c instanceof Hz){for(var M=h.length>0?h[h.length-1].nextSibling:x,f=_.a(h),K=f.next();!K.done;K=f.next())p.removeChild(K.value);c=PLk(c);h=Array.from(c.childNodes);c=_.a(h);for(f=c.next();!f.done;f=c.next())p.insertBefore(f.value,
M)}else throw K=(f=(M=dx())==null?void 0:M.name)!=null?f:"unknown",Error("ac`"+K+"`"+typeof c);},"VvDgC")},iI.alwaysTrackContexts||!!_.LH)};
C0d=function(p,x){var F=_.we.apply(2,arguments);x!=null||(x={});return!iI.enableLazyTsx||dx()!=null&&!ve()?vQJ(p,x,F):new J86(p,x,F)};
vQJ=function(p,x,F){if(p===_.TG)return F;if(typeof p==="function")return dx()&&!ve()&&(x.renderedFromIdom=!0),jcz({component:p,debugInstance:x.debugInstance,fn:function(){var c=Sf6(p,x,F);if(c)return c;F.length>0&&(x.children=F.length===1?F[0]:F);c=x;if(p.componentType!==tu)var M=!1;else{c||(c={});var f=new aD(c,p),K=$C(h9);try{M=f.render(c)}finally{$C(K)}M instanceof HTMLElement&&(M.__instance=f,f.el=M,f.JSC$8117___type=p,p.TAG_NAME=M.tagName.toLowerCase(),lO.didPatch(f))}return M===!1?DzZ(p,x):
M}});
var N=r8p(p,x),h;for(h in x)WfH(N,h,x[h]);tqp(N,x);eO(F,N);HNr(N,x,{isReactive:!0});EQE(N,x);return N};
r8p=function(p,x){p=(X7H.has(p.toLowerCase())?0:gQM.has(p.startsWith("svg:")?p.replace("svg:",""):p))?document.createElementNS("http://www.w3.org/2000/svg",p.startsWith("svg:")?p.replace("svg:",""):p):Q9B(p,x)||document.createElement(p);p[zyZ]=!0;return p};
s9J=function(p){if(p){var x;(x=p._disposeRef)==null||x.call(p);var F;(F=p._disposeEffects)==null||F.call(p);p.__instance&&p.__instance instanceof M$&&(x=p.__instance,qfH(x,p),x instanceof aD&&x.disposeEffects());for(x=0;x<p.childNodes.length;x++)s9J(p.childNodes[x])}};
y8M=function(p){nQM.push(p)===1&&requestAnimationFrame(function(){setTimeout(function(){var x=[].concat(_.se(nQM));nQM=[];x=_.a(x);for(var F=x.next();!F.done;F=x.next()){F=F.value;try{for(var N=0;N<F.length;N++)s9J(F[N])}catch(h){N=F=void 0,(N=(F=iI).handleError)==null||N.call.apply(N,[F].concat(_.se(Cn(h))))}}})})};
_.Z=function(p,x){return j8$.apply(null,[p,x].concat(_.se(_.we.apply(2,arguments))))};
A8p=function(){var p=document.body.firstElementChild;window.ng||p.__ngContext__||(p.__ngContext__={},p.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=bsp)};
_.D9=function(p){var x=p.cond;if(x===void 0)return p.else&&p.else();var F=_.Kn(function(){return!!x()},void 0,"y0Xknf"),N=function(){var h=x();
if(!h){var c;(c=iI.handleError)==null||c.call.apply(c,[iI].concat(_.se(Cn(ubz.nonNullableCondIsNull()))))}return h};
return eTw(function(){var h=F(),c;XD(function(){var M=$C(h9);try{c=N$(h?p.then(N):p.else&&p.else())}finally{$C(M)}},!0);
return c},p.debugInstance)};
Yfz=function(p){return _.D9(p)};
_.ft=function(p){return p.keyBy==="INDEX"?w7k(p):GZd(p)};
VqE=function(p){p=_.a(p);for(var x=p.next();!x.done;x=p.next()){var F=void 0;(F=x.value)==null||F()}};
GZd=function(p){var x=p.keyBy===void 0||p.keyBy==="REFERENCE",F=x?function(d){return d}:p.keyBy,N=[],h=[],c=[],M=[],f=[],K=[],t=!0;
_.E_(function(){VqE(M)});
return eTw(function(){var d=p.each(),v=d.length;if(v===0){if(N.length===0&&!t)return c;VqE(M);N=d;h=[];for(d=0;d<N.length;d++)h.push(F(N[d]));c=[];M=[];f=[];K=[];p.fallback&&(M[0]=WwZ(function(){c[0]=N$(p.fallback())}));
t=!1;return c}for(var C=new Hsw,X=N.length-1;X>=0;X--)C.push(h[X],X);X=Array(v);for(var Q=Array(v),b=Array(v),A=Array(v),Y=Array(x?0:v),O={i$jscomp$486:0};O.i$jscomp$486<v;O={i$jscomp$486:O.i$jscomp$486,item$jscomp$105:void 0,key$jscomp$517:void 0},O.i$jscomp$486++){O.item$jscomp$105=d[O.i$jscomp$486];O.key$jscomp$517=F(O.item$jscomp$105);var Fw=C.pop(O.key$jscomp$517);Fw!=null?(b[O.i$jscomp$486]=c[Fw],Q[O.i$jscomp$486]=h[Fw],X[O.i$jscomp$486]=M[Fw],A[O.i$jscomp$486]=f[Fw],x||(Y[O.i$jscomp$486]=K[Fw]),
qG(function(R){return function(){A[R.i$jscomp$486](R.i$jscomp$486);if(!x)Y[R.i$jscomp$486](R.item$jscomp$105)}}(O)),delete M[Fw]):X[O.i$jscomp$486]=WwZ(function(R){return function(){var ld=_.a(_.hu(R.i$jscomp$486,void 0,"g4fKif")),pp=ld.next().value;
ld=ld.next().value;A[R.i$jscomp$486]=ld;Q[R.i$jscomp$486]=R.key$jscomp$517;if(x)b[R.i$jscomp$486]=N$(p.children(R.item$jscomp$105,pp));else{var Kp=_.a(_.hu(R.item$jscomp$105,void 0,"Ile0Kc"));ld=Kp.next().value;Kp=Kp.next().value;Y[R.i$jscomp$486]=Kp;b[R.i$jscomp$486]=N$(p.children(ld,pp))}}}(O))}VqE(M);
N=d;h=Q;c=b;M=X;f=A;K=Y;t=!1;return b},p.debugInstance)};
w7k=function(p){var x=[],F=[],N=[],h=[],c=!1;_.E_(function(){for(var M=_.a(h),f=M.next();!f.done;f=M.next())f=f.value,f()});
return eTw(function(){var M=p.each();c&&M.length>0&&(h.pop()(),x.pop(),c=!1);for(var f=Array(M.length),K={i$jscomp$487:0};K.i$jscomp$487<M.length;K={i$jscomp$487:K.i$jscomp$487},K.i$jscomp$487++)if(K.i$jscomp$487<x.length)x[K.i$jscomp$487]!==M[K.i$jscomp$487]&&(qG(function(d){return function(){return void F[d.i$jscomp$487](M[d.i$jscomp$487])}}(K)),x[K.i$jscomp$487]=M[K.i$jscomp$487]),f[K.i$jscomp$487]=N[K.i$jscomp$487];
else{var t=WwZ(function(d){return function(){x[d.i$jscomp$487]=M[d.i$jscomp$487];var v=_.a(_.hu(M[d.i$jscomp$487],void 0,"C53T8b")),C=v.next().value;v=v.next().value;F[d.i$jscomp$487]=v;f[d.i$jscomp$487]=N$(p.children(C,d.i$jscomp$487))}}(K));
h[K.i$jscomp$487]=t}for(;x.length>M.length;)x.pop(),h.pop()(),F.pop();M.length===0&&!c&&p.fallback&&(K=WwZ(function(){f[0]=N$(p.fallback())}),h[0]=K,c=!0);
return N=f},p.debugInstance)};
WwZ=function(p){var x=_.LH;return XD(function(F){var N=$C(h9);try{F.parent=x,p(F)}finally{$C(N)}},!1)};
_.Kt=function(p){return p};
_.mzB=function(p){return{isDefault:!0,children:p.children}};
_.q$=function(p){var x=oQ$(p),F=_.Kn(function(){return Osz(x)},void 0,"BHmkEe");
return eTw(function(){var N=F(),h;XD(function(){var c=$C(h9);try{h=N$(N())}finally{$C(c)}});
return h},p.debugInstance)};
oQ$=function(p){p=p.children;return Array.isArray(p)?p:[p]};
j9J=function(p){var x=p.props;p=p.getChildren()[0];return x.when?{when:x.when,children:p}:{isDefault:!0,children:p}};
Osz=function(p){var x=function(){return null};
p=_.a(p);for(var F=p.next();!F.done;F=p.next())if(F=F.value,F!=null&&F[Pe]&&(F=F.type===_.mzB?{isDefault:!0,children:F.children[0]}:{when:F.props.when,children:F.children[0]}),F instanceof pt&&(F=j9J(F)),F.isDefault)x=F.children;else if(F.when())return F.children;return x};
Lwr=function(p){var x=null,F;return{value:null,onRender:function(N){if(F&&N!==F){var h;(h=x)==null||h();F._disposeRef=void 0}F=N;x=p(N)||null},
onUnmount:function(){var N;(N=x)==null||N();x=null}}};
T6Z=function(p){var x=KwM();if(x==null)throw P0p.PRIMITIVE_INVALID_HOOK_CALL();var F=x.hookCounter++;x.hooks||(x.hooks=[]);var N=x.hooks;N[F]||(N[F]={key:p,host:x});if(p!==N[F].key){var h,c;p=((h=x.JSC$8117___type)==null?void 0:h.name)||((c=x.functionComponent)==null?void 0:c.name);throw P0p.OUT_OF_ORDER_HOOK_CALL(p);}return N[F]};
B6w=function(p,x){return!p||p.length!==(x==null?void 0:x.length)||p.some(function(F,N){return F!==x[N]})};
Z9=function(p,x){var F=T6Z("onChange"),N=KwM();B6w(F.deps,x)&&(F.deps=x,F.pendingEffect=p,N.__syncEffects||(N.__syncEffects=[]),N.__syncEffects.push(F))};
isr=function(p,x){var F;x!=null?F=x:F=_.eZp(document).getAppContext();F.get(Ryz).JSC$25212_getEventTarget().dispatchEvent(new kZ6(Uzd,p,iG))};
_.t9=function(p,x){var F=F===void 0?{enableDevtools:!1}:F;var N=Ju(function(){var h=$C(h9);try{return XD(function(){var c=_.eZp(_.y5(p)),M;var f=ZgE({appContext:F.appContext||(c==null?void 0:(M=c.getOptionalAppContext)==null?void 0:M.call(c)),dispatcher:c});c=PS(f);f=Be(!0);mfH++;try{eO(x(),p),OoJ(!1)}catch(K){throw OoJ(!0),K;}finally{Be(f),BS(c)}},!1)}finally{$C(h)}});
p[IIB]=!0;F.legacyTriggerSoyRendererEvents&&isr(p,F.appContext);return function(){p.textContent="";N();p[IIB]=!1}};
_.d1=function(p){if(Wir(IG)){var x;(x=iI.handleError)==null||x.call.apply(x,[iI].concat(_.se(Cn(Error("$b")))))}var F=_.LH,N=ZJ.slice();Promise.resolve().then(function(){F&&!F.isDisposed&&Ju(function(){var h=PS(F);try{p()}finally{BS(h)}},{stack:N})})};
vw=function(p,x){Z9(function(){return NG(p)},x)};
_.J9=function(p){ve()?_.d1(function(){NG(p)}):Z9(function(){return NG(p)},[])};
ey6=function(p){var x=[].concat(_.se(p));p.length=0;p=_.a(x);for(x=p.next();!x.done;x=p.next()){x=x.value;$z$(x);var F=x.pendingEffect;x.pendingEffect=null;if(F=F==null?void 0:F())x.pendingCleanup=F}};
$z$=function(p){var x=p.pendingCleanup;p.pendingCleanup=null;x==null||x()};
p5M=function(p,x){if(ve())return p();var F=T6Z("useMemoInternal");B6w(F.deps,x)&&(F.deps=x,F.value=p());return F.value};
Ct=function(p,x){return p5M(p,x)};
Sr=function(p){return p5M(p,[])};
xtE=function(){var p=_.we.apply(0,arguments),x=Sr(function(){return p.map(function(F){return _.hu(F,void 0,"iAOe9b")})});
vw(function(){for(var F=0;F<p.length;F++)(0,x[F][1])(p[F])},p);
return x.map(function(F){return _.a(F).next().value})};
Ed=function(p){return Sr(function(){return{value:p}})};
_.XG=function(p,x){if(!p)return null;p=Object.keys(p);p=_.a(p);for(var F=p.next();!F.done;F=p.next()){F=F.value;var N=F.toLowerCase();if(N.indexOf(x,N.length-x.length)>-1)return F}return null};
_.zn=function(){var p=arguments,x=_.QL;p.length>1?x[p[0]]=p[1]:p.length===1&&Object.assign(x,p[0])};
_.sd=function(p,x){return p in _.QL?_.QL[p]:x};
_.nt=function(p,x){return!!_.sd(p,x)};
FTp=function(p){var x=_.QL.EXPERIMENT_FLAGS;return x?x[p]:void 0};
hhB=function(p){NHJ.forEach(function(x){return x(p)})};
_.bO=function(p){return p&&window.yterr?function(){try{return p.apply(this,arguments)}catch(x){_.yL(x)}}:p};
_.yL=function(p){var x=_.A9("yt.logging.errors.log");x?x(p,"ERROR",void 0,void 0,void 0,void 0,void 0):(x=_.sd("ERRORS",[]),x.push([p,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.zn("ERRORS",x));hhB(p)};
_.uO=function(p,x,F,N,h){var c=_.A9("yt.logging.errors.log");c?c(p,"WARNING",x,F,N,void 0,h):(c=_.sd("ERRORS",[]),c.push([p,"WARNING",x,F,N,void 0,h]),_.zn("ERRORS",c))};
cGE=function(p,x){x=p.split(x);for(var F={},N=0,h=x.length;N<h;N++){var c=x[N].split("=");if(c.length===1&&c[0]||c.length===2)try{var M=lx6(c[0]||""),f=lx6(c[1]||"");if(M in F){var K=F[M];Array.isArray(K)?_.UM(K,f):F[M]=[K,f]}else F[M]=f}catch(C){var t=C,d=c[0],v=String(cGE);t.args=[{key:d,value:c[1],query:p,method:ax6===v?"unchanged":v}];Mzz.hasOwnProperty(d)||_.uO(t)}}return F};
DtJ=function(p){var x=[];_.Q5.forEach(p,function(F,N){var h=_.YF(N);_.w1(Array.isArray(F)?F:[F],function(c){c==""?x.push(h):x.push(h+"="+_.YF(c))})});
return x.join("&")};
_.Gn=function(p){p.charAt(0)==="?"&&(p=p.substring(1));return cGE(p,"&")};
_.VL=function(p){return p.indexOf("?")!==-1?(p=(p||"").split("#")[0],p=p.split("?",2),_.Gn(p.length>1?p[1]:p[0])):{}};
_.Ww=function(p,x){return fxw(p,x||{},!0)};
KTm=function(p,x){return fxw(p,x||{},!1)};
fxw=function(p,x,F){var N=p.split("#",2);p=N[0];N=N.length>1?"#"+N[1]:"";var h=p.split("?",2);p=h[0];h=_.Gn(h[1]||"");for(var c in x)if(F||!_.Q5.containsKey(h,c))h[c]=x[c];return _.Hw(p,h)+N};
jr=function(p){if(!x)var x=window.location.href;var F=_.mg(p)[1]||null,N=_.oD(p);return F&&N?Od(p,x):N?_.oD(x)===N&&(Number(_.mg(x)[4]||null)||null)===(Number(_.mg(p)[4]||null)||null):!0};
_.Zck=function(p){p=qzw(p);return p===null?!1:p[0]==="com"&&p[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
qzw=function(p){p=_.oD(p);return p!==null?p.split(".").reverse():null};
lx6=function(p){return p&&p.match(tzp)?p:Tn(p)};
_.Bw=function(p){return new dtZ(p)};
_.J=function(){vvz||(vvz=new JGd);return vvz};
SzE=function(p){var x=_.RD,F,N;_.D(function(h){F=_.J();return(N=F.resolve(_.Bw(x)))?(p(N),h.return(Promise.resolve(N))):h.return(F.resolve(new CAB(x)).then(function(c){p(c);return c}))})};
_.S=function(p){p=kF(p);return typeof p==="string"&&p==="false"?!1:!!p};
_.Ud=function(p,x){p=kF(p);return p===void 0&&x!==void 0?x:Number(p||0)};
rG$=function(p){p=kF(p);return Array.isArray(p)?_.zy(p,function(x){return Number(x||0)}):[Number(p||0)]};
_.iO=function(p){p=kF(p);return p!==void 0?String(p):""};
_.ID=function(p){p=kF(p);return Array.isArray(p)?_.zy(p,function(x){return String(x||"")}):[String(p||"")]};
EvJ=function(){return _.sd("EXPERIMENTS_TOKEN","")};
kF=function(p){return _.sd("EXPERIMENT_FLAGS",{})[p]};
X5w=function(){for(var p=[],x=_.sd("EXPERIMENTS_FORCED_FLAGS",{}),F=_.a(Object.keys(x)),N=F.next();!N.done;N=F.next())N=N.value,p.push({key:N,value:String(x[N])});F=_.sd("EXPERIMENT_FLAGS",{});N=_.a(Object.keys(F));for(var h=N.next();!h.done;h=N.next())h=h.value,h.startsWith("force_")&&x[h]===void 0&&p.push({key:h,value:String(F[h])});return p};
QfZ=function(){if(!gvM)return null;var p=gvM();return"open"in p?p:null};
zhz=function(p){switch($F(p)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
$F=function(p){return p&&"status"in p?p.status:-1};
_.er=function(p,x){typeof p==="function"&&(p=_.bO(p));return window.setTimeout(p,x)};
_.pf=function(p,x){typeof p==="function"&&(p=_.bO(p));return window.setInterval(p,x)};
_.x3=function(p){window.clearTimeout(p)};
nv$=function(p){p=_.VL(p);for(var x=_.a(sf$),F=x.next();!F.done;F=x.next())if(p[F.value]!==void 0)return!0;return!1};
AGw=function(p,x,F,N,h,c,M,f){F=F===void 0?"GET":F;N=N===void 0?"":N;f=f===void 0?!1:f;var K=QfZ();if(!K)return null;var t=function(){(K&&"readyState"in K?K.readyState:0)===4&&x&&_.bO(x)(K)};
"onloadend"in K?K.addEventListener("loadend",t,!1):K.onreadystatechange=t;_.S("debug_forward_web_query_parameters")&&(p=yGJ(p,window.location.search));K.open(F,p,!0);c&&(K.responseType=c);M&&(K.withCredentials=!0);F=F==="POST"&&(window.FormData===void 0||!(N instanceof FormData));if(h=bcH(p,h))for(var d in h)K.setRequestHeader(d,h[d]),"content-type"===d.toLowerCase()&&(F=!1);F&&K.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(f&&"setAttributionReporting"in XMLHttpRequest.prototype){p=
{eventSourceEligible:!0,triggerEligible:!1};try{K.setAttributionReporting(p)}catch(v){_.uO(v)}}K.send(N);return K};
bcH=function(p,x){x=x===void 0?{}:x;var F=jr(p),N=_.sd("INNERTUBE_CLIENT_NAME"),h=_.S("web_ajax_ignore_global_headers_if_set"),c;for(c in uJk){var M=_.sd(uJk[c]),f=c==="X-Goog-AuthUser"||c==="X-Goog-PageId";c!=="X-Goog-Visitor-Id"||M||(M=_.sd("VISITOR_DATA"));var K;if(!(K=!M)){if(!(K=F||(_.oD(p)?!1:!0))){K=p;var t;if(t=_.S("add_auth_headers_to_remarketing_google_dot_com_ping")&&c==="Authorization"&&(N==="TVHTML5"||N==="TVHTML5_UNPLUGGED"||N==="TVHTML5_SIMPLY"))t=qzw(K),t=t===null?!1:t[1]==="google"?
!0:t[2]==="google"?t[0]==="au"&&t[1]==="com"?!0:t[0]==="uk"&&t[1]==="co"?!0:!1:!1;t&&(K=_.F_(K)||"",K=K.split("/"),K="/"+(K.length>1?K[1]:""),t=K==="/pagead");K=t?!0:!1}K=!K}K||h&&x[c]!==void 0||N==="TVHTML5_UNPLUGGED"&&f||(x[c]=M)}"X-Goog-EOM-Visitor-Id"in x&&"X-Goog-Visitor-Id"in x&&delete x["X-Goog-Visitor-Id"];if(F||!_.oD(p))x["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(F||!_.oD(p)){try{var d=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(v){}d&&(x["X-YouTube-Time-Zone"]=
d)}document.location.hostname.endsWith("youtubeeducation.com")||!F&&_.oD(p)||(x["X-YouTube-Ad-Signals"]=DtJ(Yzm()));return x};
_.w5H=function(p,x){var F=_.oD(p);_.S("debug_handle_relative_url_for_query_forward_killswitch")||!F&&jr(p)&&(F=document.location.hostname);var N=_.F_(p);N=(F=F&&(F.endsWith("youtube.com")||F.endsWith("youtube-nocookie.com")))&&N&&N.startsWith("/api/");if(!F||N)return p;var h=_.Gn(x),c={};_.w1(sf$,function(M){h[M]&&(c[M]=h[M])});
return KTm(p,c)};
G6$=function(p,x){x.method="POST";x.postParams||(x.postParams={});return _.NE(p,x)};
VzH=function(p,x){var F=_.sd("XSRF_FIELD_NAME"),N;x.headers&&(N=x.headers["Content-Type"]);return!x.excludeXsrf&&(!_.oD(p)||x.withCredentials||_.oD(p)===document.location.hostname)&&x.method==="POST"&&(!N||N==="application/x-www-form-urlencoded")&&!(x.postParams&&x.postParams[F])};
_.NE=function(p,x){var F=x.format||"JSON";p=WTw(p,x);var N=Hcp(p,x),h=!1,c=mtd(p,function(K){if(!h){h=!0;f&&_.x3(f);var t=zhz(K),d=null,v=400<=K.status&&K.status<500,C=500<=K.status&&K.status<600;if(t||v||C)d=ovp(p,F,K,x.convertToSafeHtml);t&&(t=OcB(F,K,d));d=d||{};v=x.context||_.Mm;t?x.onSuccess&&x.onSuccess.call(v,K,d):x.onError&&x.onError.call(v,K,d);x.onFinish&&x.onFinish.call(v,K,d)}},x.method,N,x.headers,x.responseType,x.withCredentials);
N=x.timeout||0;if(x.onTimeout&&N>0){var M=x.onTimeout;var f=_.er(function(){h||(h=!0,c.abort(),_.x3(f),M.call(x.context||_.Mm,c))},N)}return c};
WTw=function(p,x){x.includeDomain&&(p=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+p);var F=_.sd("XSRF_FIELD_NAME");if(x=x.urlParams)x[F]&&delete x[F],p=_.Ww(p,x);return p};
Hcp=function(p,x){var F=_.sd("XSRF_FIELD_NAME"),N=_.sd("XSRF_TOKEN"),h=x.postBody||"",c=x.postParams;VzH(p,x)&&(c||(c={}),c[F]=N);(_.S("ajax_parse_query_data_only_when_filled")&&c&&Object.keys(c).length>0||c)&&typeof h==="string"&&(h=_.Gn(h),_.Q5.extend(h,c),h=x.postBodyFormat&&x.postBodyFormat==="JSON"?JSON.stringify(h):_.hq(h));c=h||c&&!_.Q5.isEmpty(c);!jfM&&c&&x.method!=="POST"&&(jfM=!0,_.yL(Error("Fc")));return h};
ovp=function(p,x,F,N){var h=null;switch(x){case "JSON":try{var c=F.responseText}catch(M){throw N=Error("Gc"),N.params=p,_.uO(N),M;}p=F.getResponseHeader("Content-Type")||"";c&&p.indexOf("json")>=0&&(c.substring(0,5)===")]}'\n"&&(c=c.substring(5)),h=JSON.parse(c));break;case "XML":if(p=(p=F.responseXML)?LTB(p):null)h={},_.w1(p.getElementsByTagName("*"),function(M){h[M.tagName]=PAE(M)})}N&&THZ(h);
return h};
THZ=function(p){if(_.IJ(p))for(var x in p)x==="html_content"||ZZ(x,"_html")?p[x]=oM(p[x]):THZ(p[x])};
OcB=function(p,x,F){if(x&&x.status===204)return!0;switch(p){case "JSON":return!!F;case "XML":return Number(F&&F.return_code)===0;case "RAW":return!0;default:return!!F}};
LTB=function(p){return p?(p=("responseXML"in p?p.responseXML:p).getElementsByTagName("root"))&&p.length>0?p[0]:null:null};
PAE=function(p){var x="";_.w1(p.childNodes,function(F){x+=F.nodeValue});
return x};
BHw=function(p){if(p.name==="JavaException")return!0;p=p.stack;return p.includes("chrome://")||p.includes("chrome-extension://")||p.includes("moz-extension://")};
_.lb=function(p){_.Jm.call(this);this.JSC$8289_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!p};
k6M=function(p,x){var F=p.length,N=0,h=function(){return p.charCodeAt(N++)};
do{var c=RhE(h);if(c===Infinity)break;var M=c>>3;switch(c&7){case 0:c=RhE(h);if(M===x)return c;break;case 1:if(M===x)return;N+=8;break;case 2:c=RhE(h);if(M===x)return p.substr(N,c);N+=c;break;case 5:if(M===x)return;N+=4;break;default:return}}while(N<F)};
RhE=function(p){var x=p(),F=x&127;if(x<128)return F;x=p();F|=(x&127)<<7;if(x<128)return F;x=p();F|=(x&127)<<14;if(x<128)return F;x=p();return x<128?F|(x&127)<<21:Infinity};
ick=function(p,x,F,N){if(p)if(Array.isArray(p)){var h=N;for(N=0;N<p.length&&!(p[N]&&(h+=UtE(N,p[N],x,F),h>500));N++);N=h}else if(typeof p==="object")for(h in p){if(p[h]){var c=h;var M=p[h],f=x,K=F;c=typeof M!=="string"||c!=="clickTrackingParams"&&c!=="trackingParams"?0:(M=k6M(atob(M.replace(/-/g,"+").replace(/_/g,"/")),2))?UtE(c+".ve",M,f,K):0;N+=c;N+=UtE(h,p[h],x,F);if(N>500)break}}else F[x]=c8(p),N+=F[x].length;else F[x]=c8(p),N+=F[x].length;return N};
UtE=function(p,x,F,N){F+="."+p;p=c8(x);N[F]=p;return F.length+p.length};
c8=function(p){try{return(typeof p==="string"?p:String(JSON.stringify(p))).substr(0,500)}catch(x){return"unable to serialize "+typeof p+" ("+x.message+")"}};
Ix$=function(p){switch(p){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}};
_.ME=function(p,x,F,N,h){_.ax.set(p,x,{maxAge:F,path:"/",domain:N===void 0?"youtube.com":N,secure:h===void 0?!1:h})};
_.$tE=function(p,x,F){_.ax.remove(p,x===void 0?"/":x,F===void 0?"youtube.com":F)};
_.D5=function(){if(_.S("embeds_web_enable_cookie_detection_fix")){if(!_.Mm.navigator.cookieEnabled)return!1}else if(!_.ax.isEnabled())return!1;if(!_.ax.isEmpty())return!0;_.S("embeds_web_enable_cookie_detection_fix")?_.ax.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.ax.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.ax.get("TESTCOOKIESENABLED")!=="1")return!1;_.ax.remove("TESTCOOKIESENABLED");return!0};
ehm=function(){var p=_.Mm.navigator;return p?p.connection:void 0};
pir=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(p){}};
_.FcB=function(){var p=ehm();if(p){var x=x46[p.type||"unknown"]||"CONN_UNKNOWN";p=x46[p.effectiveType||"unknown"]||"CONN_UNKNOWN";x==="CONN_CELLULAR_UNKNOWN"&&p!=="CONN_UNKNOWN"&&(x=p);if(x!=="CONN_UNKNOWN")return x;if(p!=="CONN_UNKNOWN")return p}};
h36=function(){var p=ehm();if(p!=null&&p.effectiveType)return NbB.hasOwnProperty(p.effectiveType)?NbB[p.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.Kf=function(){try{return _.ff(),!0}catch(p){return!1}};
_.ff=function(p){if(_.sd("DATASYNC_ID")!==void 0)return _.sd("DATASYNC_ID");throw new _.qE("Datasync ID not set",p===void 0?"unknown":p);};
_.Z5=function(p){this.mechanism=p};
tq=function(p){this.mechanism=p};
dq=function(p){this.storage_=p;this.cachedIsStorageAvailable_=null};
l26=function(){var p=null;try{p=_.Mm.localStorage||null}catch(x){}dq.call(this,p)};
c$p=function(){var p=null;try{p=_.Mm.sessionStorage||null}catch(x){}dq.call(this,p)};
v8=function(p,x){this.mechanism_=p;this.JSC$8391_prefix_=x+"::"};
_.a2$=function(p){var x=new l26;return x.isAvailable()?p?new v8(x,p):x:null};
_.MTd=function(p){var x=new c$p;return x.isAvailable()?p?new v8(x,p):x:null};
f26=function(){var p;return(p=D4z())==null?void 0:p.get("LAST_RESULT_ENTRY_KEY",!0)};
_.SQ=function(p){Kcw||(_.Jq?_.Jq.logError(p):(_.Cf.push({type:"ERROR",payload:p}),_.Cf.length>10&&_.Cf.shift()))};
rq=function(p,x){Kcw||(_.Jq?_.Jq.logEvent(p,x):(_.Cf.push({type:"EVENT",eventType:p,payload:x}),_.Cf.length>10&&_.Cf.shift()))};
E5=function(p){if(p.indexOf(":")>=0)throw Error("Nc");};
X_=function(p){return p.substr(0,p.indexOf(":"))||p};
tTM=function(){return(qJ$||Z16)&&gq("applewebkit")&&!gq("version")&&(!gq("safari")||gq("gsa/"))};
gq=function(p){var x=_.rk();return x?x.toLowerCase().indexOf(p)>=0:!1};
J$p=function(p,x,F,N){x=X_(x);var h=p instanceof Error?p:Error("Oc`"+p);if(h instanceof Qz)return h;p={objectStoreNames:F,dbName:x,dbVersion:N};if(h.name==="QuotaExceededError")return new Qz("QUOTA_EXCEEDED",p);if(_.zI&&h.name==="UnknownError")return new Qz("QUOTA_MAYBE_EXCEEDED",p);if(h instanceof d4w)return new Qz("MISSING_INDEX",Object.assign({},p,{objectStore:h.objectStore,index:h.index}));if(h.name==="InvalidStateError"&&vO$.some(function(c){return h.message.includes(c)}))return new Qz("EXECUTE_TRANSACTION_ON_CLOSED_DB",
p);
if(h.name==="AbortError")return new Qz("UNKNOWN_ABORT",p,h.message);h.args=[Object.assign({},p,{name:"IdbError",originalName:h.name})];h.level="WARNING";return h};
s5=function(p,x,F){var N=f26();return new Qz("IDB_NOT_SUPPORTED",{context:{caller:p,publicName:x,version:F,hasSucceededOnce:N==null?void 0:N.hasSucceededOnce}})};
CPM=function(p){if(!p)throw Error();throw p;};
SJr=function(p){return p};
r$d=function(p,x,F){var N=function(){try{p.removeEventListener("success",h),p.removeEventListener("error",c)}catch(M){}},h=function(){x(p.result);
N()},c=function(){F(p.error);
N()};
p.addEventListener("success",h);p.addEventListener("error",c)};
EOw=function(p){return new Promise(function(x,F){r$d(p,x,F)})};
bb=function(p){return new nf(new yz(function(x,F){r$d(p,x,F)}))};
Xiz=function(p,x){return new nf(new yz(function(F,N){var h=function(){var c=p?x(p):null;c?c.then(function(M){p=M;h()},N):F()};
h()}))};
Qu6=function(p,x,F){return new Promise(function(N,h){var c=x!==void 0?self.indexedDB.open(p,x):self.indexedDB.open(p);var M=F.blocked,f=F.blocking,K=F.terminated,t=F.upgrade,d=F.closed,v,C=function(){v||(v=new Aq(c.result,{closed:d}));return v};
c.addEventListener("upgradeneeded",function(X){try{if(X.newVersion===null)throw Error("Tc");if(c.transaction===null)throw Error("Uc");X.dataLoss&&X.dataLoss!=="none"&&rq("IDB_DATA_CORRUPTED",{reason:X.dataLossMessage||"unknown reason",dbName:X_(p)});var Q=C(),b=new gOJ(c.transaction);t&&t(Q,function(A){return X.oldVersion<A&&X.newVersion>=A},b);
b.done.catch(function(A){h(A)})}catch(A){h(A)}});
c.addEventListener("success",function(){var X=c.result;f&&X.addEventListener("versionchange",function(){f(C())});
X.addEventListener("close",function(){rq("IDB_UNEXPECTEDLY_CLOSED",{dbName:X_(p),dbVersion:X.version});K&&K()});
N(C())});
c.addEventListener("error",function(){h(c.error)});
M&&c.addEventListener("blocked",function(){M()})})};
z3p=function(p,x,F){F=F===void 0?{}:F;return Qu6(p,x,F)};
_.Y3=function(p,x){x=x===void 0?{}:x;var F,N,h,c;return _.D(function(M){if(M.nextAddress==1)return _.KM(M,2),F=self.indexedDB.deleteDatabase(p),N=x,(h=N.blocked)&&F.addEventListener("blocked",function(){h()}),_.q(M,EOw(F),4);
if(M.nextAddress!=2)return _.ub(M,0);c=_.v9(M);throw J$p(c,p,"",-1);})};
nOE=function(p,x){var F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,_.wq(suJ,x),2);F=N.yieldResult;return N.return(_.GI(F,["databases"],{enableRetries:!0,mode:"readwrite"},function(h){var c=h.objectStore("databases");return c.get(p.actualName).then(function(M){if(M?p.actualName!==M.actualName||p.publicName!==M.publicName||p.userIdentifier!==M.userIdentifier:1)return c.put(p).then(function(){})})}))})};
_.Vz=function(p,x){var F;return _.D(function(N){if(N.nextAddress==1)return p?_.q(N,_.wq(suJ,x),2):N.return();F=N.yieldResult;return N.return(F.delete("databases",p))})};
_.y$6=function(p,x){var F,N;return _.D(function(h){return h.nextAddress==1?(F=[],_.q(h,_.wq(suJ,x),2)):h.nextAddress!=3?(N=h.yieldResult,_.q(h,_.GI(N,["databases"],{enableRetries:!0,mode:"readonly"},function(c){F.length=0;return W8(c.objectStore("databases"),{},function(M){p(M.getValue())&&F.push(M.getValue());return M.continue()})}),3)):h.return(F)})};
b1B=function(p,x){return _.y$6(function(F){return F.publicName===p&&F.userIdentifier!==void 0},x)};
YJB=function(){var p,x,F,N;return _.D(function(h){switch(h.nextAddress){case 1:p=f26();if((x=p)==null?0:x.hasSucceededOnce)return h.return(!0);var c;if(c=A$m)c=/WebKit\/([0-9]+)/.exec(_.rk()),c=!!(c&&parseInt(c[1],10)>=600);c&&(c=/WebKit\/([0-9]+)/.exec(_.rk()),c=!(c&&parseInt(c[1],10)>=602));if(c||_.H8)return h.return(!1);try{if(F=self,!(F.indexedDB&&F.IDBIndex&&F.IDBKeyRange&&F.IDBObjectStore))return h.return(!1)}catch(M){return h.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return h.return(!1);
_.KM(h,2);N={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.q(h,nOE(N,u4B),4);case 4:return _.q(h,_.Vz("yt-idb-test-do-not-use",u4B),5);case 5:return h.return(!0);case 2:return _.v9(h),h.return(!1)}})};
Gtm=function(){if(wi$!==void 0)return wi$;Kcw=!0;return wi$=YJB().then(function(p){Kcw=!1;var x;if((x=D4z())!=null&&x.expiringStorage_){var F;x={hasSucceededOnce:((F=f26())==null?void 0:F.hasSucceededOnce)||p};var N;(N=D4z())==null||N.set("LAST_RESULT_ENTRY_KEY",x,2592E3,!0)}return p})};
mW=function(){return _.A9("ytglobal.idbToken_")||void 0};
_.O5=function(){var p=mW();return p?Promise.resolve(p):Gtm().then(function(x){(x=x?u4B:void 0)&&_.ox("ytglobal.idbToken_",x);return x})};
VTJ=function(p){if(!_.Kf())throw p=new Qz("AUTH_INVALID",{dbName:p}),_.SQ(p),p;var x=_.ff();return{actualName:p+":"+x,publicName:p,userIdentifier:x}};
Wck=function(p,x,F,N){var h,c,M,f,K,t;return _.D(function(d){switch(d.nextAddress){case 1:return c=(h=Error().stack)!=null?h:"",_.q(d,_.O5(),2);case 2:M=d.yieldResult;if(!M)throw f=s5("openDbImpl",p,x),_.S("ytidb_async_stack_killswitch")||(f.stack=f.stack+"\n"+c.substring(c.indexOf("\n")+1)),_.SQ(f),f;E5(p);K=F?{actualName:p,publicName:p,userIdentifier:void 0}:VTJ(p);_.KM(d,3);return _.q(d,nOE(K,M),5);case 5:return _.q(d,z3p(K.actualName,x,N),6);case 6:return d.return(d.yieldResult);case 3:return t=
_.v9(d),_.KM(d,7),_.q(d,_.Vz(K.actualName,M),9);case 9:_.ub(d,8);break;case 7:_.v9(d);case 8:throw t;}})};
H1J=function(p,x,F){F=F===void 0?{}:F;return Wck(p,x,!1,F)};
m4r=function(p,x,F){F=F===void 0?{}:F;return Wck(p,x,!0,F)};
oOd=function(p,x){x=x===void 0?{}:x;var F,N;return _.D(function(h){if(h.nextAddress==1)return _.q(h,_.O5(),2);if(h.nextAddress!=3){F=h.yieldResult;if(!F)return h.return();E5(p);N=VTJ(p);return _.q(h,_.Y3(N.actualName,x),3)}return _.q(h,_.Vz(N.actualName,F),0)})};
O1z=function(p,x,F){p=p.map(function(N){return _.D(function(h){return h.nextAddress==1?_.q(h,_.Y3(N.actualName,x),2):_.q(h,_.Vz(N.actualName,F),0)})});
return Promise.all(p).then(function(){})};
juH=function(p){var x=x===void 0?{}:x;var F,N;return _.D(function(h){if(h.nextAddress==1)return _.q(h,_.O5(),2);if(h.nextAddress!=3){F=h.yieldResult;if(!F)return h.return();E5(p);return _.q(h,b1B(p,F),3)}N=h.yieldResult;return _.q(h,O1z(N,x,F),0)})};
Lcp=function(p,x){x=x===void 0?{}:x;var F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,_.O5(),2);if(N.nextAddress!=3){F=N.yieldResult;if(!F)return N.return();E5(p);return _.q(N,_.Y3(p,x),3)}return _.q(N,_.Vz(p,F),0)})};
jQ=function(p,x){return PPZ(p,x)};
Bbw=function(p){return _.wq(Tbm(),p)};
R3B=function(p,x,F,N){var h,c,M;return _.D(function(f){switch(f.nextAddress){case 1:return h={config:p,hashData:x,timestamp:N!==void 0?N:(0,_.Lf)()},_.q(f,Bbw(F),2);case 2:return c=f.yieldResult,_.q(f,c.clear("hotConfigStore"),3);case 3:return _.q(f,c.put("hotConfigStore",h),4);case 4:return M=f.yieldResult,f.return(M)}})};
ktp=function(p,x,F,N,h){var c,M,f;return _.D(function(K){switch(K.nextAddress){case 1:return c={config:p,hashData:x,configData:F,timestamp:h!==void 0?h:(0,_.Lf)()},_.q(K,Bbw(N),2);case 2:return M=K.yieldResult,_.q(K,M.clear("coldConfigStore"),3);case 3:return _.q(K,M.put("coldConfigStore",c),4);case 4:return f=K.yieldResult,K.return(f)}})};
U4d=function(p){var x,F;return _.D(function(N){return N.nextAddress==1?_.q(N,Bbw(p),2):N.nextAddress!=3?(x=N.yieldResult,F=void 0,_.q(N,_.GI(x,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(h){return _.P8(h.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(c){F=c.getValue()})}),3)):N.return(F)})};
i1z=function(p){var x,F;return _.D(function(N){return N.nextAddress==1?_.q(N,Bbw(p),2):N.nextAddress!=3?(x=N.yieldResult,F=void 0,_.q(N,_.GI(x,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(h){return _.P8(h.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(c){F=c.getValue()})}),3)):N.return(F)})};
I2r=function(){return _.D(function(p){return _.q(p,juH("ytGcfConfig"),0)})};
$4m=function(){return"INNERTUBE_API_KEY"in _.QL&&"INNERTUBE_API_VERSION"in _.QL};
_.TI=function(){return{innertubeApiKey:_.sd("INNERTUBE_API_KEY"),innertubeApiVersion:_.sd("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.sd("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.sd("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.sd("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.sd("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.sd("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.sd("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.sd("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.nt("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.nt("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.sd("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.luZ=function(p){var x={client:{hl:p.innertubeContextHostLanguage,gl:p.innertubeContextGeoLocation,clientName:p.innertubeContextClientName,clientVersion:p.innertubeContextClientVersion,configInfo:p.innertubeContextClientConfigInfo}};navigator.userAgent&&(x.client.userAgent=String(navigator.userAgent));var F=_.Mm.devicePixelRatio;F&&F!=1&&(x.client.screenDensityFloat=String(F));F=EvJ();F!==""&&(x.client.experimentsToken=F);F=X5w();F.length>0&&(x.request={internalExperimentFlags:F});e3k(p,void 0,x);
pgJ(void 0,x);xBw(void 0,x);F9p(p,void 0,x);NXw(void 0,x);_.S("start_client_gcf")&&h9$(void 0,x);_.sd("DELEGATED_SESSION_ID")&&!_.S("pageid_as_header_web")&&(x.user={onBehalfOfUser:_.sd("DELEGATED_SESSION_ID")});!_.S("fill_delegate_context_in_gel_killswitch")&&(p=_.sd("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(x.user=Object.assign({},x.user,{serializedDelegationContext:p}));p=_.sd("INNERTUBE_CONTEXT");var N;if(_.S("enable_persistent_device_token")&&(p==null?0:(N=p.client)==null?0:N.rolloutToken)){var h;
x.client.rolloutToken=p==null?void 0:(h=p.client)==null?void 0:h.rolloutToken}N=Object;h=N.assign;p=x.client;F={};for(var c=_.a(Object.entries(_.Gn(_.sd("DEVICE","")))),M=c.next();!M.done;M=c.next()){var f=_.a(M.value);M=f.next().value;f=f.next().value;M==="cbrand"?F.deviceMake=f:M==="cmodel"?F.deviceModel=f:M==="cbr"?F.browserName=f:M==="cbrver"?F.browserVersion=f:M==="cos"?F.osName=f:M==="cosver"?F.osVersion=f:M==="cplatform"&&(F.platform=f)}x.client=h.call(N,p,F);return x};
e3k=function(p,x,F){p=p.innertubeContextClientName;if(p==="WEB"||p==="MWEB"||p===1||p===2)if(x){F=_.B8(x,cFr,96)||new cFr;var N=aup();N=Object.keys(MVw).indexOf(N);N=N===-1?null:N;N!==null&&_.Rx(F,3,N);_.f6(x,96,F)}else F&&(F.client.mainAppWebInfo=(N=F.client.mainAppWebInfo)!=null?N:{},F.client.mainAppWebInfo.webDisplayMode=aup())};
pgJ=function(p,x){var F=_.A9("yt.embedded_player.embed_url");F&&(p?(x=_.B8(p,DBm,7)||new DBm,_.J_(x,4,F),_.f6(p,7,x)):x&&(x.thirdParty={embedUrl:F}))};
xBw=function(p,x){var F;if(_.S("web_log_memory_total_kbytes")&&((F=_.Mm.navigator)==null?0:F.deviceMemory)){var N;F=(N=_.Mm.navigator)==null?void 0:N.deviceMemory;p?_.k3(p,95,at(F*1E6)):x&&(x.client.memoryTotalKbytes=""+F*1E6)}};
F9p=function(p,x,F){if(p.appInstallData)if(x){var N;F=(N=_.B8(x,U5,62))!=null?N:new U5;_.J_(F,6,p.appInstallData);_.f6(x,62,F)}else F&&(F.client.configInfo=F.client.configInfo||{},F.client.configInfo.appInstallData=p.appInstallData)};
NXw=function(p,x){var F=_.FcB();F&&(p?_.Rx(p,61,fu$[F]):x&&(x.client.connectionType=F));_.S("web_log_effective_connection_type")&&(F=h36())&&(p?_.Rx(p,94,K9k[F]):x&&(x.client.effectiveConnectionType=F))};
_.tVE=function(p,x,F){F=F===void 0?{}:F;var N={};_.sd("EOM_VISITOR_DATA")?N={"X-Goog-EOM-Visitor-Id":_.sd("EOM_VISITOR_DATA")}:N={"X-Goog-Visitor-Id":F.visitorData||_.sd("VISITOR_DATA","")};if(x&&x.includes("www.youtube-nocookie.com"))return N;x=F.authorization||_.sd("AUTHORIZATION");x||(p?x="Bearer "+_.A9("gapi.auth.getToken")().access_token:(qbJ.instance||(qbJ.instance=new qbJ),p=ZRd(),_.S("pageid_as_header_web")||delete p["X-Goog-PageId"],N=Object.assign({},N,p)));x&&(N.Authorization=x);return N};
h9$=function(p,x){var F=dBw();if(F){var N=F.coldConfigData,h=F.coldHashData;F=F.hotHashData;if(p){var c;x=(c=_.B8(p,U5,62))!=null?c:new U5;N=_.J_(x,1,N);_.J_(N,3,h).setHotHashData(F);_.f6(p,62,x)}else x&&(x.client.configInfo=x.client.configInfo||{},N&&(x.client.configInfo.coldConfigData=N),h&&(x.client.configInfo.coldHashData=h),F&&(x.client.configInfo.hotHashData=F))}};
ib=function(p){for(var x=p.length;--x>=0;)p[x]=0};
vs6=function(p,x,F,N,h){this.static_tree=p;this.extra_bits=x;this.extra_base=F;this.elems=N;this.max_length=h;this.has_stree=p&&p.length};
JFr=function(p,x){this.dyn_tree=p;this.max_code=0;this.stat_desc=x};
Ix=function(p,x){p.pending_buf[p.pending++]=x&255;p.pending_buf[p.pending++]=x>>>8&255};
$3=function(p,x,F){p.bi_valid>16-F?(p.bi_buf|=x<<p.bi_valid&65535,Ix(p,p.bi_buf),p.bi_buf=x>>16-p.bi_valid,p.bi_valid+=F-16):(p.bi_buf|=x<<p.bi_valid&65535,p.bi_valid+=F)};
eQ=function(p,x,F){$3(p,F[x*2],F[x*2+1])};
CXw=function(p,x){var F=0;do F|=p&1,p>>>=1,F<<=1;while(--x>0);return F>>>1};
SbZ=function(p,x,F){var N=Array(16),h=0,c;for(c=1;c<=15;c++)N[c]=h=h+F[c-1]<<1;for(F=0;F<=x;F++)h=p[F*2+1],h!==0&&(p[F*2]=CXw(N[h]++,h))};
rFp=function(p){var x;for(x=0;x<286;x++)p.dyn_ltree[x*2]=0;for(x=0;x<30;x++)p.dyn_dtree[x*2]=0;for(x=0;x<19;x++)p.bl_tree[x*2]=0;p.dyn_ltree[512]=1;p.opt_len=p.static_len=0;p.last_lit=p.matches=0};
Esr=function(p){p.bi_valid>8?Ix(p,p.bi_buf):p.bi_valid>0&&(p.pending_buf[p.pending++]=p.bi_buf);p.bi_buf=0;p.bi_valid=0};
Xgw=function(p,x,F){Esr(p);Ix(p,F);Ix(p,~F);pg.arraySet(p.pending_buf,p.window,x,F,p.pending);p.pending+=F};
gsH=function(p,x,F,N){var h=x*2,c=F*2;return p[h]<p[c]||p[h]===p[c]&&N[x]<=N[F]};
QsH=function(p,x,F){for(var N=p.heap[F],h=F<<1;h<=p.heap_len;){h<p.heap_len&&gsH(x,p.heap[h+1],p.heap[h],p.depth)&&h++;if(gsH(x,N,p.heap[h],p.depth))break;p.heap[F]=p.heap[h];F=h;h<<=1}p.heap[F]=N};
bRM=function(p,x,F){var N=0;if(p.last_lit!==0){do{var h=p.pending_buf[p.d_buf+N*2]<<8|p.pending_buf[p.d_buf+N*2+1];var c=p.pending_buf[p.l_buf+N];N++;if(h===0)eQ(p,c,x);else{var M=xS[c];eQ(p,M+256+1,x);var f=z9w[M];f!==0&&(c-=ssJ[M],$3(p,c,f));h--;M=h<256?FE[h]:FE[256+(h>>>7)];eQ(p,M,F);f=nsB[M];f!==0&&(h-=yFr[M],$3(p,h,f))}}while(N<p.last_lit)}eQ(p,256,x)};
AFr=function(p,x){var F=x.dyn_tree,N=x.stat_desc.static_tree,h=x.stat_desc.has_stree,c=x.stat_desc.elems,M,f=-1;p.heap_len=0;p.heap_max=573;for(M=0;M<c;M++)F[M*2]!==0?(p.heap[++p.heap_len]=f=M,p.depth[M]=0):F[M*2+1]=0;for(;p.heap_len<2;){var K=p.heap[++p.heap_len]=f<2?++f:0;F[K*2]=1;p.depth[K]=0;p.opt_len--;h&&(p.static_len-=N[K*2+1])}x.max_code=f;for(M=p.heap_len>>1;M>=1;M--)QsH(p,F,M);K=c;do M=p.heap[1],p.heap[1]=p.heap[p.heap_len--],QsH(p,F,1),N=p.heap[1],p.heap[--p.heap_max]=M,p.heap[--p.heap_max]=
N,F[K*2]=F[M*2]+F[N*2],p.depth[K]=(p.depth[M]>=p.depth[N]?p.depth[M]:p.depth[N])+1,F[M*2+1]=F[N*2+1]=K,p.heap[1]=K++,QsH(p,F,1);while(p.heap_len>=2);p.heap[--p.heap_max]=p.heap[1];M=x.dyn_tree;K=x.max_code;N=x.stat_desc.static_tree;h=x.stat_desc.has_stree;c=x.stat_desc.extra_bits;var t=x.stat_desc.extra_base,d=x.stat_desc.max_length,v,C=0;for(v=0;v<=15;v++)p.bl_count[v]=0;M[p.heap[p.heap_max]*2+1]=0;for(x=p.heap_max+1;x<573;x++){var X=p.heap[x];v=M[M[X*2+1]*2+1]+1;v>d&&(v=d,C++);M[X*2+1]=v;if(!(X>
K)){p.bl_count[v]++;var Q=0;X>=t&&(Q=c[X-t]);var b=M[X*2];p.opt_len+=b*(v+Q);h&&(p.static_len+=b*(N[X*2+1]+Q))}}if(C!==0){do{for(v=d-1;p.bl_count[v]===0;)v--;p.bl_count[v]--;p.bl_count[v+1]+=2;p.bl_count[d]--;C-=2}while(C>0);for(v=d;v!==0;v--)for(X=p.bl_count[v];X!==0;)N=p.heap[--x],N>K||(M[N*2+1]!==v&&(p.opt_len+=(v-M[N*2+1])*M[N*2],M[N*2+1]=v),X--)}SbZ(F,f,p.bl_count)};
uTz=function(p,x,F){var N,h=-1,c=x[1],M=0,f=7,K=4;c===0&&(f=138,K=3);x[(F+1)*2+1]=65535;for(N=0;N<=F;N++){var t=c;c=x[(N+1)*2+1];++M<f&&t===c||(M<K?p.bl_tree[t*2]+=M:t!==0?(t!==h&&p.bl_tree[t*2]++,p.bl_tree[32]++):M<=10?p.bl_tree[34]++:p.bl_tree[36]++,M=0,h=t,c===0?(f=138,K=3):t===c?(f=6,K=3):(f=7,K=4))}};
Yb$=function(p,x,F){var N,h=-1,c=x[1],M=0,f=7,K=4;c===0&&(f=138,K=3);for(N=0;N<=F;N++){var t=c;c=x[(N+1)*2+1];if(!(++M<f&&t===c)){if(M<K){do eQ(p,t,p.bl_tree);while(--M!==0)}else t!==0?(t!==h&&(eQ(p,t,p.bl_tree),M--),eQ(p,16,p.bl_tree),$3(p,M-3,2)):M<=10?(eQ(p,17,p.bl_tree),$3(p,M-3,3)):(eQ(p,18,p.bl_tree),$3(p,M-11,7));M=0;h=t;c===0?(f=138,K=3):t===c?(f=6,K=3):(f=7,K=4)}}};
wgE=function(p){var x=4093624447,F;for(F=0;F<=31;F++,x>>>=1)if(x&1&&p.dyn_ltree[F*2]!==0)return 0;if(p.dyn_ltree[18]!==0||p.dyn_ltree[20]!==0||p.dyn_ltree[26]!==0)return 1;for(F=32;F<256;F++)if(p.dyn_ltree[F*2]!==0)return 1;return 0};
Np=function(p,x,F){p.pending_buf[p.d_buf+p.last_lit*2]=x>>>8&255;p.pending_buf[p.d_buf+p.last_lit*2+1]=x&255;p.pending_buf[p.l_buf+p.last_lit]=F&255;p.last_lit++;x===0?p.dyn_ltree[F*2]++:(p.matches++,x--,p.dyn_ltree[(xS[F]+256+1)*2]++,p.dyn_dtree[(x<256?FE[x]:FE[256+(x>>>7)])*2]++);return p.last_lit===p.lit_bufsize-1};
l1=function(p,x){p.msg=hd[x];return x};
cu=function(p){for(var x=p.length;--x>=0;)p[x]=0};
an=function(p){var x=p.state,F=x.pending;F>p.avail_out&&(F=p.avail_out);F!==0&&(pg.arraySet(p.output,x.pending_buf,x.pending_out,F,p.next_out),p.next_out+=F,x.pending_out+=F,p.total_out+=F,p.avail_out-=F,x.pending-=F,x.pending===0&&(x.pending_out=0))};
fg=function(p,x){var F=p.block_start>=0?p.block_start:-1,N=p.strstart-p.block_start,h=0;if(p.level>0){p.strm.data_type===2&&(p.strm.data_type=wgE(p));AFr(p,p.l_desc);AFr(p,p.d_desc);uTz(p,p.dyn_ltree,p.l_desc.max_code);uTz(p,p.dyn_dtree,p.d_desc.max_code);AFr(p,p.bl_desc);for(h=18;h>=3&&p.bl_tree[GFJ[h]*2+1]===0;h--);p.opt_len+=3*(h+1)+5+5+4;var c=p.opt_len+3+7>>>3;var M=p.static_len+3+7>>>3;M<=c&&(c=M)}else c=M=N+5;if(N+4<=c&&F!==-1)$3(p,x?1:0,3),Xgw(p,F,N);else if(p.strategy===4||M===c)$3(p,2+(x?
1:0),3),bRM(p,Mp,D3);else{$3(p,4+(x?1:0),3);F=p.l_desc.max_code+1;N=p.d_desc.max_code+1;h+=1;$3(p,F-257,5);$3(p,N-1,5);$3(p,h-4,4);for(c=0;c<h;c++)$3(p,p.bl_tree[GFJ[c]*2+1],3);Yb$(p,p.dyn_ltree,F-1);Yb$(p,p.dyn_dtree,N-1);bRM(p,p.dyn_ltree,p.dyn_dtree)}rFp(p);x&&Esr(p);p.block_start=p.strstart;an(p.strm)};
Z3=function(p,x){p.pending_buf[p.pending++]=x};
td=function(p,x){p.pending_buf[p.pending++]=x>>>8&255;p.pending_buf[p.pending++]=x&255};
VVw=function(p,x){var F=p.max_chain_length,N=p.strstart,h=p.prev_length,c=p.nice_match,M=p.strstart>p.w_size-262?p.strstart-(p.w_size-262):0,f=p.window,K=p.w_mask,t=p.prev,d=p.strstart+258,v=f[N+h-1],C=f[N+h];p.prev_length>=p.good_match&&(F>>=2);c>p.lookahead&&(c=p.lookahead);do{var X=x;if(f[X+h]===C&&f[X+h-1]===v&&f[X]===f[N]&&f[++X]===f[N+1]){N+=2;for(X++;f[++N]===f[++X]&&f[++N]===f[++X]&&f[++N]===f[++X]&&f[++N]===f[++X]&&f[++N]===f[++X]&&f[++N]===f[++X]&&f[++N]===f[++X]&&f[++N]===f[++X]&&N<d;);
X=258-(d-N);N=d-258;if(X>h){p.match_start=x;h=X;if(X>=c)break;v=f[N+h-1];C=f[N+h]}}}while((x=t[x&K])>M&&--F!==0);return h<=p.lookahead?h:p.lookahead};
Jd=function(p){var x=p.w_size,F;do{var N=p.window_size-p.lookahead-p.strstart;if(p.strstart>=x+(x-262)){pg.arraySet(p.window,p.window,x,x,0);p.match_start-=x;p.strstart-=x;p.block_start-=x;var h=F=p.hash_size;do{var c=p.head[--h];p.head[h]=c>=x?c-x:0}while(--F);h=F=x;do c=p.prev[--h],p.prev[h]=c>=x?c-x:0;while(--F);N+=x}if(p.strm.avail_in===0)break;h=p.strm;F=p.window;c=p.strstart+p.lookahead;var M=h.avail_in;M>N&&(M=N);M===0?F=0:(h.avail_in-=M,pg.arraySet(F,h.input,h.next_in,M,c),h.state.wrap===
1?h.adler=W9r(h.adler,F,M,c):h.state.wrap===2&&(h.adler=dw(h.adler,F,M,c)),h.next_in+=M,h.total_in+=M,F=M);p.lookahead+=F;if(p.lookahead+p.insert>=3)for(N=p.strstart-p.insert,p.ins_h=p.window[N],p.ins_h=(p.ins_h<<p.hash_shift^p.window[N+1])&p.hash_mask;p.insert&&!(p.ins_h=(p.ins_h<<p.hash_shift^p.window[N+3-1])&p.hash_mask,p.prev[N&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=N,N++,p.insert--,p.lookahead+p.insert<3););}while(p.lookahead<262&&p.strm.avail_in!==0)};
HRk=function(p,x){for(var F;;){if(p.lookahead<262){Jd(p);if(p.lookahead<262&&x===0)return 1;if(p.lookahead===0)break}F=0;p.lookahead>=3&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+3-1])&p.hash_mask,F=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);F!==0&&p.strstart-F<=p.w_size-262&&(p.match_length=VVw(p,F));if(p.match_length>=3)if(F=Np(p,p.strstart-p.match_start,p.match_length-3),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=3){p.match_length--;
do p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+3-1])&p.hash_mask,p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart;while(--p.match_length!==0);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else F=Np(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(F&&(fg(p,!1),p.strm.avail_out===0))return 1}p.insert=p.strstart<2?p.strstart:2;return x===4?(fg(p,
!0),p.strm.avail_out===0?3:4):p.last_lit&&(fg(p,!1),p.strm.avail_out===0)?1:2};
Cg=function(p,x){for(var F,N;;){if(p.lookahead<262){Jd(p);if(p.lookahead<262&&x===0)return 1;if(p.lookahead===0)break}F=0;p.lookahead>=3&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+3-1])&p.hash_mask,F=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);p.prev_length=p.match_length;p.prev_match=p.match_start;p.match_length=2;F!==0&&p.prev_length<p.max_lazy_match&&p.strstart-F<=p.w_size-262&&(p.match_length=VVw(p,F),p.match_length<=5&&(p.strategy===1||p.match_length===3&&
p.strstart-p.match_start>4096)&&(p.match_length=2));if(p.prev_length>=3&&p.match_length<=p.prev_length){N=p.strstart+p.lookahead-3;F=Np(p,p.strstart-1-p.prev_match,p.prev_length-3);p.lookahead-=p.prev_length-1;p.prev_length-=2;do++p.strstart<=N&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+3-1])&p.hash_mask,p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart);while(--p.prev_length!==0);p.match_available=0;p.match_length=2;p.strstart++;if(F&&(fg(p,!1),p.strm.avail_out===0))return 1}else if(p.match_available){if((F=
Np(p,0,p.window[p.strstart-1]))&&fg(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return 1}else p.match_available=1,p.strstart++,p.lookahead--}p.match_available&&(Np(p,0,p.window[p.strstart-1]),p.match_available=0);p.insert=p.strstart<2?p.strstart:2;return x===4?(fg(p,!0),p.strm.avail_out===0?3:4):p.last_lit&&(fg(p,!1),p.strm.avail_out===0)?1:2};
mBB=function(p,x){for(var F,N,h,c=p.window;;){if(p.lookahead<=258){Jd(p);if(p.lookahead<=258&&x===0)return 1;if(p.lookahead===0)break}p.match_length=0;if(p.lookahead>=3&&p.strstart>0&&(N=p.strstart-1,F=c[N],F===c[++N]&&F===c[++N]&&F===c[++N])){for(h=p.strstart+258;F===c[++N]&&F===c[++N]&&F===c[++N]&&F===c[++N]&&F===c[++N]&&F===c[++N]&&F===c[++N]&&F===c[++N]&&N<h;);p.match_length=258-(h-N);p.match_length>p.lookahead&&(p.match_length=p.lookahead)}p.match_length>=3?(F=Np(p,1,p.match_length-3),p.lookahead-=
p.match_length,p.strstart+=p.match_length,p.match_length=0):(F=Np(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++);if(F&&(fg(p,!1),p.strm.avail_out===0))return 1}p.insert=0;return x===4?(fg(p,!0),p.strm.avail_out===0?3:4):p.last_lit&&(fg(p,!1),p.strm.avail_out===0)?1:2};
osz=function(p,x){for(var F;;){if(p.lookahead===0&&(Jd(p),p.lookahead===0)){if(x===0)return 1;break}p.match_length=0;F=Np(p,0,p.window[p.strstart]);p.lookahead--;p.strstart++;if(F&&(fg(p,!1),p.strm.avail_out===0))return 1}p.insert=0;return x===4?(fg(p,!0),p.strm.avail_out===0?3:4):p.last_lit&&(fg(p,!1),p.strm.avail_out===0)?1:2};
Ss=function(p,x,F,N,h){this.good_length=p;this.max_lazy=x;this.nice_length=F;this.max_chain=N;this.func=h};
ORp=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 pg.Buf16(1146);this.dyn_dtree=new pg.Buf16(122);this.bl_tree=new pg.Buf16(78);cu(this.dyn_ltree);cu(this.dyn_dtree);cu(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new pg.Buf16(16);this.heap=new pg.Buf16(573);cu(this.heap);this.heap_max=this.heap_len=0;this.depth=new pg.Buf16(573);cu(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};
jsr=function(p,x){if(!p||!p.state||x>5||x<0)return p?l1(p,-2):-2;var F=p.state;if(!p.output||!p.input&&p.avail_in!==0||F.status===666&&x!==4)return l1(p,p.avail_out===0?-5:-2);F.strm=p;var N=F.last_flush;F.last_flush=x;if(F.status===42)if(F.wrap===2)p.adler=0,Z3(F,31),Z3(F,139),Z3(F,8),F.gzhead?(Z3(F,(F.gzhead.text?1:0)+(F.gzhead.hcrc?2:0)+(F.gzhead.extra?4:0)+(F.gzhead.name?8:0)+(F.gzhead.comment?16:0)),Z3(F,F.gzhead.time&255),Z3(F,F.gzhead.time>>8&255),Z3(F,F.gzhead.time>>16&255),Z3(F,F.gzhead.time>>
24&255),Z3(F,F.level===9?2:F.strategy>=2||F.level<2?4:0),Z3(F,F.gzhead.os&255),F.gzhead.extra&&F.gzhead.extra.length&&(Z3(F,F.gzhead.extra.length&255),Z3(F,F.gzhead.extra.length>>8&255)),F.gzhead.hcrc&&(p.adler=dw(p.adler,F.pending_buf,F.pending,0)),F.gzindex=0,F.status=69):(Z3(F,0),Z3(F,0),Z3(F,0),Z3(F,0),Z3(F,0),Z3(F,F.level===9?2:F.strategy>=2||F.level<2?4:0),Z3(F,3),F.status=113);else{var h=8+(F.w_bits-8<<4)<<8;h|=(F.strategy>=2||F.level<2?0:F.level<6?1:F.level===6?2:3)<<6;F.strstart!==0&&(h|=
32);F.status=113;td(F,h+(31-h%31));F.strstart!==0&&(td(F,p.adler>>>16),td(F,p.adler&65535));p.adler=1}if(F.status===69)if(F.gzhead.extra){for(h=F.pending;F.gzindex<(F.gzhead.extra.length&65535)&&(F.pending!==F.pending_buf_size||(F.gzhead.hcrc&&F.pending>h&&(p.adler=dw(p.adler,F.pending_buf,F.pending-h,h)),an(p),h=F.pending,F.pending!==F.pending_buf_size));)Z3(F,F.gzhead.extra[F.gzindex]&255),F.gzindex++;F.gzhead.hcrc&&F.pending>h&&(p.adler=dw(p.adler,F.pending_buf,F.pending-h,h));F.gzindex===F.gzhead.extra.length&&
(F.gzindex=0,F.status=73)}else F.status=73;if(F.status===73)if(F.gzhead.name){h=F.pending;do{if(F.pending===F.pending_buf_size&&(F.gzhead.hcrc&&F.pending>h&&(p.adler=dw(p.adler,F.pending_buf,F.pending-h,h)),an(p),h=F.pending,F.pending===F.pending_buf_size)){var c=1;break}c=F.gzindex<F.gzhead.name.length?F.gzhead.name.charCodeAt(F.gzindex++)&255:0;Z3(F,c)}while(c!==0);F.gzhead.hcrc&&F.pending>h&&(p.adler=dw(p.adler,F.pending_buf,F.pending-h,h));c===0&&(F.gzindex=0,F.status=91)}else F.status=91;if(F.status===
91)if(F.gzhead.comment){h=F.pending;do{if(F.pending===F.pending_buf_size&&(F.gzhead.hcrc&&F.pending>h&&(p.adler=dw(p.adler,F.pending_buf,F.pending-h,h)),an(p),h=F.pending,F.pending===F.pending_buf_size)){c=1;break}c=F.gzindex<F.gzhead.comment.length?F.gzhead.comment.charCodeAt(F.gzindex++)&255:0;Z3(F,c)}while(c!==0);F.gzhead.hcrc&&F.pending>h&&(p.adler=dw(p.adler,F.pending_buf,F.pending-h,h));c===0&&(F.status=103)}else F.status=103;F.status===103&&(F.gzhead.hcrc?(F.pending+2>F.pending_buf_size&&an(p),
F.pending+2<=F.pending_buf_size&&(Z3(F,p.adler&255),Z3(F,p.adler>>8&255),p.adler=0,F.status=113)):F.status=113);if(F.pending!==0){if(an(p),p.avail_out===0)return F.last_flush=-1,0}else if(p.avail_in===0&&(x<<1)-(x>4?9:0)<=(N<<1)-(N>4?9:0)&&x!==4)return l1(p,-5);if(F.status===666&&p.avail_in!==0)return l1(p,-5);if(p.avail_in!==0||F.lookahead!==0||x!==0&&F.status!==666){N=F.strategy===2?osz(F,x):F.strategy===3?mBB(F,x):rw[F.level].func(F,x);if(N===3||N===4)F.status=666;if(N===1||N===3)return p.avail_out===
0&&(F.last_flush=-1),0;if(N===2&&(x===1?($3(F,2,3),eQ(F,256,Mp),F.bi_valid===16?(Ix(F,F.bi_buf),F.bi_buf=0,F.bi_valid=0):F.bi_valid>=8&&(F.pending_buf[F.pending++]=F.bi_buf&255,F.bi_buf>>=8,F.bi_valid-=8)):x!==5&&($3(F,0,3),Xgw(F,0,0),x===3&&(cu(F.head),F.lookahead===0&&(F.strstart=0,F.block_start=0,F.insert=0))),an(p),p.avail_out===0))return F.last_flush=-1,0}if(x!==4)return 0;if(F.wrap<=0)return 1;F.wrap===2?(Z3(F,p.adler&255),Z3(F,p.adler>>8&255),Z3(F,p.adler>>16&255),Z3(F,p.adler>>24&255),Z3(F,
p.total_in&255),Z3(F,p.total_in>>8&255),Z3(F,p.total_in>>16&255),Z3(F,p.total_in>>24&255)):(td(F,p.adler>>>16),td(F,p.adler&65535));an(p);F.wrap>0&&(F.wrap=-F.wrap);return F.pending!==0?0:1};
L9d=function(p){if(!(this instanceof L9d))return new L9d(p);p=this.options=pg.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},p||{});p.raw&&p.windowBits>0?p.windowBits=-p.windowBits:p.gzip&&p.windowBits>0&&p.windowBits<16&&(p.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new PXM;this.strm.avail_out=0;var x=this.strm;var F=p.level,N=p.method,h=p.windowBits,c=p.memLevel,M=p.strategy;if(x){var f=1;F===-1&&(F=6);h<0?(f=0,h=-h):h>15&&
(f=2,h-=16);if(c<1||c>9||N!==8||h<8||h>15||F<0||F>9||M<0||M>4)x=l1(x,-2);else{h===8&&(h=9);var K=new ORp;x.state=K;K.strm=x;K.wrap=f;K.gzhead=null;K.w_bits=h;K.w_size=1<<K.w_bits;K.w_mask=K.w_size-1;K.hash_bits=c+7;K.hash_size=1<<K.hash_bits;K.hash_mask=K.hash_size-1;K.hash_shift=~~((K.hash_bits+3-1)/3);K.window=new pg.Buf8(K.w_size*2);K.head=new pg.Buf16(K.hash_size);K.prev=new pg.Buf16(K.w_size);K.lit_bufsize=1<<c+6;K.pending_buf_size=K.lit_bufsize*4;K.pending_buf=new pg.Buf8(K.pending_buf_size);
K.d_buf=K.lit_bufsize;K.l_buf=3*K.lit_bufsize;K.level=F;K.strategy=M;K.method=N;if(x&&x.state){x.total_in=x.total_out=0;x.data_type=2;F=x.state;F.pending=0;F.pending_out=0;F.wrap<0&&(F.wrap=-F.wrap);F.status=F.wrap?42:113;x.adler=F.wrap===2?0:1;F.last_flush=0;if(!TXE){N=Array(16);for(c=M=0;c<28;c++)for(ssJ[c]=M,h=0;h<1<<z9w[c];h++)xS[M++]=c;xS[M-1]=c;for(c=M=0;c<16;c++)for(yFr[c]=M,h=0;h<1<<nsB[c];h++)FE[M++]=c;for(M>>=7;c<30;c++)for(yFr[c]=M<<7,h=0;h<1<<nsB[c]-7;h++)FE[256+M++]=c;for(h=0;h<=15;h++)N[h]=
0;for(h=0;h<=143;)Mp[h*2+1]=8,h++,N[8]++;for(;h<=255;)Mp[h*2+1]=9,h++,N[9]++;for(;h<=279;)Mp[h*2+1]=7,h++,N[7]++;for(;h<=287;)Mp[h*2+1]=8,h++,N[8]++;SbZ(Mp,287,N);for(h=0;h<30;h++)D3[h*2+1]=5,D3[h*2]=CXw(h,5);BXp=new vs6(Mp,z9w,257,286,15);R9p=new vs6(D3,nsB,0,30,15);kFM=new vs6([],UBB,0,19,7);TXE=!0}F.l_desc=new JFr(F.dyn_ltree,BXp);F.d_desc=new JFr(F.dyn_dtree,R9p);F.bl_desc=new JFr(F.bl_tree,kFM);F.bi_buf=0;F.bi_valid=0;rFp(F);F=0}else F=l1(x,-2);F===0&&(x=x.state,x.window_size=2*x.w_size,cu(x.head),
x.max_lazy_match=rw[x.level].max_lazy,x.good_match=rw[x.level].good_length,x.nice_match=rw[x.level].nice_length,x.max_chain_length=rw[x.level].max_chain,x.strstart=0,x.block_start=0,x.lookahead=0,x.insert=0,x.match_length=x.prev_length=2,x.match_available=0,x.ins_h=0);x=F}}else x=-2;if(x!==0)throw Error(hd[x]);p.header&&(x=this.strm)&&x.state&&x.state.wrap===2&&(x.state.gzhead=p.header);if(p.dictionary){var t;typeof p.dictionary==="string"?t=iRr(p.dictionary):IuJ.call(p.dictionary)==="[object ArrayBuffer]"?
t=new Uint8Array(p.dictionary):t=p.dictionary;p=this.strm;c=t;M=c.length;if(p&&p.state)if(t=p.state,x=t.wrap,x===2||x===1&&t.status!==42||t.lookahead)x=-2;else{x===1&&(p.adler=W9r(p.adler,c,M,0));t.wrap=0;M>=t.w_size&&(x===0&&(cu(t.head),t.strstart=0,t.block_start=0,t.insert=0),F=new pg.Buf8(t.w_size),pg.arraySet(F,c,M-t.w_size,t.w_size,0),c=F,M=t.w_size);F=p.avail_in;N=p.next_in;h=p.input;p.avail_in=M;p.next_in=0;p.input=c;for(Jd(t);t.lookahead>=3;){c=t.strstart;M=t.lookahead-2;do t.ins_h=(t.ins_h<<
t.hash_shift^t.window[c+3-1])&t.hash_mask,t.prev[c&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=c,c++;while(--M);t.strstart=c;t.lookahead=2;Jd(t)}t.strstart+=t.lookahead;t.block_start=t.strstart;t.insert=t.lookahead;t.lookahead=0;t.match_length=t.prev_length=2;t.match_available=0;p.next_in=N;p.input=h;p.avail_in=F;t.wrap=x;x=0}else x=-2;if(x!==0)throw Error(hd[x]);this._dict_set=!0}};
$Bz=function(p,x){x=x||{};x.gzip=!0;x=new L9d(x);x.push(p,!0);if(x.err)throw x.msg||hd[x.err];return x.result};
pTw=function(p,x){var F=e9p();F&&F.publish.call(F,p.toString(),p,x)};
lvM=function(p,x,F){var N=e9p();if(!N)return 0;var h=N.subscribe(p.toString(),function(c,M){var f=_.A9("ytPubsub2Pubsub2SkipSubKey");f&&f==h||(f=function(){if(xum[h])try{if(M&&p instanceof FOp&&p!=c)try{var K=p.dataClass,t=M;if(!t.args||!t.version)throw Error("Wc");try{if(!K.version_){var d=new K;K.version_=d.version}var v=K.version_}catch(C){}if(!v||t.version!=v)throw Error("Xc");try{M=Reflect.construct(K,_.Pr(t.args))}catch(C){throw C.message="yt.pubsub2.Data.deserialize(): "+C.message,C;}}catch(C){throw C.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+p.toString()+": "+C.message,C;}x.call(F||window,M)}catch(C){_.yL(C)}},NoJ[p.toString()]?_.A9("yt.scheduler.instance")?_.E0.addLowPriorityJob(f):_.er(f,0):f())});
xum[h]=!0;hnp[p.toString()]||(hnp[p.toString()]=[]);hnp[p.toString()].push(h);return h};
Duw=function(){var p=cZH,x=lvM(avr,function(F){p.apply(void 0,arguments);MAE(x)});
return x};
MAE=function(p){var x=e9p();x&&(typeof p==="number"&&(p=[p]),_.w1(p,function(F){x.unsubscribeByKey(F);delete xum[F]}))};
e9p=function(){return _.A9("ytPubsub2Pubsub2Instance")};
fvz=function(p,x,F){F=F===void 0?{sampleRate:.1}:F;Math.random()<Math.min(.02,F.sampleRate/100)&&pTw("meta_logging_csi_event",{timerName:p,timelineData:x})};
_.KOr=function(p){return p?(p=p.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.RM(p):null:null};
_.XE=function(p){return p?(p=p.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.vz(p):null:null};
Z5J=function(){qQ6||(qQ6=_.XE(_.sd("WORKER_SERIALIZATION_URL")));return qQ6||void 0};
_.dud=function(){var p=Z5J();tAJ||p===void 0||(tAJ=new Worker(_.SP(p),void 0));return tAJ};
_.vJJ=function(){return typeof Worker==="function"&&Z5J()?!0:!1};
_.rZw=function(){if(_.vJJ()&&!JZk){var p=function(F){F=F.data;if(F.op==="gzippedGelBatch"){var N=C8B.get(F.key);N&&(SQE(F.gzippedBatch,N.latencyPayload,N.url,N.options,N.sendFn),C8B.delete(F.key))}},x=_.dud();
x&&(x.addEventListener("message",p),x.onerror=function(){C8B.clear()},JZk=!0)}};
nJz=function(p,x,F,N,h){h=h===void 0?!1:h;var c={startTime:(0,_.Lf)(),ticks:{},infos:{}};if(gw)try{var M=EJE(x);if(M!=null&&(M>XT$||M<gJZ))N(p,F);else{if(_.S("gzip_gel_with_worker")&&(_.S("initial_gzip_use_main_thread")&&!QdH||!_.S("initial_gzip_use_main_thread"))){JZk||_.rZw();var f=_.dud();if(f&&!h){C8B.set(znp,{latencyPayload:c,url:p,options:F,sendFn:N});f.postMessage({op:"gelBatchToGzip",serializedBatch:x,key:znp});znp++;return}}var K=$Bz(sdz(x));SQE(K,c,p,F,N)}}catch(t){_.uO(t),N(p,F)}else N(p,
F)};
SQE=function(p,x,F,N,h){QdH=!1;var c=(0,_.Lf)();x.ticks.gelc=c;Q2++;_.S("disable_compression_due_to_performance_degredation")&&c-x.startTime>=yZw&&(b5p++,_.S("abandon_compression_after_N_slow_zips")?Q2===_.Ud("compression_disable_point")&&b5p>AZr&&(gw=!1):gw=!1);ufE(x);N.headers||(N.headers={});N.headers["Content-Encoding"]="gzip";N.postBody=p;N.postParams=void 0;h(F,N)};
YQ6=function(p){var x=x===void 0?!1:x;var F=F===void 0?!1:F;var N=(0,_.Lf)(),h={startTime:N,ticks:{},infos:{}},c=x?_.A9("yt.logging.gzipForFetch",!1):!0;if(gw&&c){if(!p.body)return p;try{var M=F?p.body:typeof p.body==="string"?p.body:JSON.stringify(p.body);c=M;if(!F&&typeof M==="string"){var f=EJE(M);if(f!=null&&(f>XT$||f<gJZ))return p;F=x?{level:1}:void 0;c=$Bz(sdz(M),F);var K=(0,_.Lf)();h.ticks.gelc=K;if(x){Q2++;if((_.S("disable_compression_due_to_performance_degredation")||_.S("disable_compression_due_to_performance_degradation_lr"))&&
K-N>=yZw)if(b5p++,_.S("abandon_compression_after_N_slow_zips")||_.S("abandon_compression_after_N_slow_zips_lr")){x=b5p/Q2;var t=AZr/_.Ud("compression_disable_point");Q2>0&&Q2%_.Ud("compression_disable_point")===0&&x>=t&&(gw=!1)}else gw=!1;ufE(h)}}p.headers=Object.assign({},{"Content-Encoding":"gzip"},p.headers||{});p.body=c;return p}catch(d){return _.uO(d),p}}else return p};
EJE=function(p){try{return(new Blob(p.split(""))).size}catch(x){return _.uO(x),null}};
ufE=function(p){_.S("gel_compression_csi_killswitch")||!_.S("log_gel_compression_latency")&&!_.S("log_gel_compression_latency_lr")||fvz("gel_compression",p,{sampleRate:.1})};
wTd=function(){this.blockSize=-1};
zW=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var p=1;p<this.blockSize;++p)this.pad_[p]=0;this.total_=this.inbuf_=0;this.reset()};
VAH=function(p){p=Object.assign({},p);delete p.Authorization;var x=GDB();if(x){var F=new zW;F.update(_.sd("INNERTUBE_API_KEY"));F.update(x);p.hash=_.Xc(F.digest(),3)}return p};
y2=function(){WOE||(WOE=new _.s0("yt.innertube"));return WOE};
H5d=function(p,x,F,N){if(N)return null;N=y2().get("nextId",!0)||1;var h=y2().get("requests",!0)||{};h[N]={method:p,request:x,authState:VAH(F),requestTime:Math.round((0,_.Lf)())};y2().set("nextId",N+1,86400,!0);y2().set("requests",h,86400,!0);return N};
muJ=function(p){var x=y2().get("requests",!0)||{};delete x[p];y2().set("requests",x,86400,!0)};
O5p=function(p){var x=y2().get("requests",!0);if(x){for(var F in x){var N=x[F];if(!(Math.round((0,_.Lf)())-N.requestTime<6E4)){var h=N.authState,c=VAH(_.tVE(!1));_.Q5.equals(h,c)&&(h=N.request,"requestTimeMs"in h&&(h.requestTimeMs=Math.round((0,_.Lf)())),oJp(p,N.method,h,{}));delete x[F]}}y2().set("requests",x,86400,!0)}};
jdd=function(p){var x;return(p=p==null?void 0:(x=p.error)==null?void 0:x.code)&&p>=400&&p<=599?!1:!0};
LOp=function(p){var x;p=p==null?void 0:(x=p.error)==null?void 0:x.code;return!(p!==400&&p!==415)};
Toz=function(){if(P8M)return P8M();var p={};P8M=jQ("LogsDatabaseV2",{objectStores:(p.LogsRequestsStore={addedAtVersion:2},p),shared:!1,upgrade:function(x,F,N){F(2)&&b1(x,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});F(3);F(5)&&(N=N.objectStore("LogsRequestsStore"),N.JSC$8450_wrapped.indexNames.contains("newRequest")&&N.JSC$8450_wrapped.deleteIndex("newRequest"),Ad(N,"newRequestV2",["status","interface","timestamp"]));F(7)&&x.JSC$8435_wrapped.objectStoreNames.contains("sapisid")&&x.JSC$8435_wrapped.deleteObjectStore("sapisid");
F(9)&&x.JSC$8435_wrapped.objectStoreNames.contains("SWHealthLog")&&x.JSC$8435_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return P8M()};
u1=function(p){return _.wq(Toz(),p)};
Rnz=function(p,x){var F,N,h,c;return _.D(function(M){if(M.nextAddress==1)return F={startTime:(0,_.Lf)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.q(M,u1(x),2);if(M.nextAddress!=3)return N=M.yieldResult,h=Object.assign({},p,{options:JSON.parse(JSON.stringify(p.options)),interface:_.sd("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.q(M,N.put("LogsRequestsStore",h),3);c=M.yieldResult;F.ticks.tc=(0,_.Lf)();Bop(F);return M.return(c)})};
kDm=function(p,x){var F,N,h,c,M,f,K,t;return _.D(function(d){if(d.nextAddress==1)return F={startTime:(0,_.Lf)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.q(d,u1(x),2);if(d.nextAddress!=3)return N=d.yieldResult,h=_.sd("INNERTUBE_CONTEXT_CLIENT_NAME",0),c=[p,h,0],M=[p,h,(0,_.Lf)()],f=IDBKeyRange.bound(c,M),K="prev",_.S("use_fifo_for_networkless")&&(K="next"),t=void 0,_.q(d,_.GI(N,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(v){return _.P8(v.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:f,direction:K},function(C){C.getValue()&&(t=C.getValue(),p==="NEW"&&(t.status="QUEUED",C.update(t)))})}),3);
F.ticks.tc=(0,_.Lf)();Bop(F);return d.return(t)})};
Uuw=function(p,x){var F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,u1(x),2);F=N.yieldResult;return N.return(_.GI(F,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(h){var c=h.objectStore("LogsRequestsStore");return c.get(p).then(function(M){if(M)return M.status="QUEUED",c.put(M).then(function(){return M})})}))})};
i5w=function(p,x,F,N){F=F===void 0?!0:F;var h;return _.D(function(c){if(c.nextAddress==1)return _.q(c,u1(x),2);h=c.yieldResult;return c.return(_.GI(h,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(M){var f=M.objectStore("LogsRequestsStore");return f.get(p).then(function(K){return K?(K.status="NEW",F&&(K.sendCount+=1),N!==void 0&&(K.options.compress=N),f.put(K).then(function(){return K})):nf.resolve(void 0)})}))})};
Ivw=function(p,x){var F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,u1(x),2);F=N.yieldResult;return N.return(F.delete("LogsRequestsStore",p))})};
$uw=function(p){var x,F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,u1(p),2);x=N.yieldResult;F=(0,_.Lf)()-2592E6;return _.q(N,_.GI(x,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(h){return W8(h.objectStore("LogsRequestsStore"),{},function(c){if(c.getValue().timestamp<=F)return c.delete().then(function(){return c.continue()})})}),0)})};
enz=function(){_.D(function(p){return _.q(p,juH("LogsDatabaseV2"),0)})};
Bop=function(p){_.S("nwl_csi_killswitch")||fvz("networkless_performance",p,{sampleRate:1})};
_.xdw=function(p){return _.wq(plm(),p)};
FJM=function(p){var x,F;_.D(function(N){if(N.nextAddress==1)return _.q(N,_.xdw(p),2);x=N.yieldResult;F=(0,_.Lf)()-2592E6;return _.q(N,_.GI(x,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(h){return W8(h.objectStore("SWHealthLog"),{},function(c){if(c.getValue().timestamp<=F)return c.delete().then(function(){return c.continue()})})}),0)})};
N$M=function(p){var x;return _.D(function(F){if(F.nextAddress==1)return _.q(F,_.xdw(p),2);x=F.yieldResult;return _.q(F,x.clear("SWHealthLog"),0)})};
_.YS=function(p,x,F,N,h,c,M){h=h===void 0?"":h;c=c===void 0?!1:c;M=M===void 0?!1:M;if(p)if(F&&!gq("cobalt"))_.uO(new _.qE("Legacy referrer-scrubbed ping detected")),p&&hlz(p,void 0,{scrubReferrer:!0});else if(h)AGw(p,x,"POST",h,N);else if(_.sd("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||N||M)AGw(p,x,"GET","",N,void 0,c,M);else{b:{try{c:{var f=new l$p({url:p});if(qdJ(f.JSC$7336_url_,"dsh")==="1")var K=null;else{var t=qdJ(f.JSC$7336_url_,"ae");if(t==="1"){var d=qdJ(f.JSC$7336_url_,"adurl");if(d)try{K={version:3,
directUrl:decodeURIComponent(d),asyncUrl:Ztr(f.JSC$7336_url_,"act=1","ri=1",cDM(f))};break c}catch(Q){}}K=t==="2"?{version:4,directUrl:Ztr(f.JSC$7336_url_,"dct=1","suid="+f.suid_,""),asyncUrl:Ztr(f.JSC$7336_url_,"act=1","ri=1","suid="+f.suid_)}:null}}if(K){var v=_.F_(p);var C=!(!v||!v.endsWith("/aclk")||_.YC(p,"ri")!=="1");break b}}catch(Q){}C=!1}if(C){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(p,"")){var X=!0;break b}}catch(Q){}X=!1}X?(x&&x(),F=!0):F=!1}else F=
!1;F||hlz(p,x)}};
hlz=function(p,x,F){F=F===void 0?{}:F;var N=new Image,h=""+a$m++;M6p[h]=N;N.onload=N.onerror=function(){x&&M6p[h]&&x();delete M6p[h]};
F.scrubReferrer&&(N.referrerPolicy="no-referrer");N.src=p};
ww=function(p,x){DdH(p,x==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
f$k=function(p){var x;return((x=document.featurePolicy)==null?0:x.allowedFeatures().includes("attribution-reporting"))?p+"&nis=6":p+"&nis=5"};
KJd=function(p){if(!p)return!1;try{var x;if(((x=_.Gn(p))==null?void 0:x.asm)==="4")return!0}catch(F){_.yL(F)}return!1};
DdH=function(p,x){x?(p=f$k(p),_.YS(p,void 0,void 0,void 0,"",!0,!0)):_.YS(p)};
ZrH=function(){qu6||(qu6=new _.s0("yt.offline"));return qu6};
t6J=function(p){if(_.S("offline_error_handling")){var x=ZrH().get("errors",!0)||{};x[p.message]={name:p.name,stack:p.stack};p.level&&(x[p.message].level=p.level);ZrH().set("errors",x,2592E3,!0)}};
vLH=function(p,x,F,N){N=N===void 0?!1:N;x=_.S("web_fp_via_jspb")?Object.assign({},x):x;_.S("use_cfr_monitor")&&ddH(p,x);if(_.S("use_request_time_ms_header"))x.headers&&jr(p)&&(x.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Lf)())));else{var h;if((h=x.postParams)==null?0:h.requestTimeMs)x.postParams.requestTimeMs=Math.round((0,_.Lf)())}F&&Object.keys(x).length===0?_.YS(p):x.compress?x.postBody?(typeof x.postBody!=="string"&&(x.postBody=JSON.stringify(x.postBody)),nJz(p,x.postBody,
x,_.NE,N)):nJz(p,JSON.stringify(x.postParams),x,G6$,N):_.NE(p,x)};
JDp=function(p,x){_.S("use_event_time_ms_header")&&jr(p)&&(x.headers||(x.headers={}),x.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.Lf)())));return x};
_.Sud=function(){Czr||(Czr=new _.GW({logOfflineErrors:!0,enablePolling:!0}));return Czr};
ddH=function(p,x){var F=x.onError?x.onError:function(){};
x.onError=function(h,c){V2().requestComplete(p,!1);F(h,c)};
var N=x.onSuccess?x.onSuccess:function(){};
x.onSuccess=function(h,c){V2().requestComplete(p,!0);N(h,c)}};
_.rDr=function(){return _.oD(document.location.toString())!=="www.youtube-nocookie.com"};
_.gLr=function(){return _.A9("ytNetworklessLoggingInitializationOptions")?_.ELw.isNwlInitialized:_.XlM};
Q7$=function(p,x){if(_.S("polymer_on_demand_shady_dom")){var F;var N=(F=p.__shady_native_firstElementChild)!=null?F:p.firstElementChild}else N=p.firstElementChild;for(;N;){if(p=x(N)?N:Q7$(N,x))return p;N=N.nextElementSibling}return null};
s7k=function(){var p=document;if("visibilityState"in p)return p.visibilityState;var x=zlk+"VisibilityState";if(x in p)return p[x]};
_.nLz=function(p,x){var F;Wu(p,function(N){F=x[N];return!!F});
return F};
_.on=function(p){var x=yDp(p);x?x.focus():_.Hu(p)};
yDp=function(p){return(p=Q7$(p,function(x){return _.O0(x)?brE(x)&&!!x.offsetParent:!1}))?p:null};
_.Hu=function(p,x){p.hasAttribute("tabindex")||p.setAttribute("tabindex","-1");p.focus(x)};
ADJ=function(p,x,F,N){N=N===void 0?{}:N;p.addEventListener&&(x!="mouseenter"||"onmouseenter"in document?x!="mouseleave"||"onmouseenter"in document?x=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(x="MozMousePixelScroll"):x="mouseout":x="mouseover");return _.Q5.findKey(Pu,function(h){var c=typeof h[4]==="boolean"&&h[4]==!!N,M=_.IJ(h[4])&&_.IJ(N)&&_.Q5.equals(h[4],N);return!!h.length&&h[0]==p&&h[1]==x&&h[2]==F&&(c||M)})};
_.Bu=function(p,x,F,N){N=N===void 0?{}:N;if(!p||!p.addEventListener&&!p.attachEvent)return"";var h=ADJ(p,x,F,N);if(h)return h;h=++uYd.count+"";var c=!(x!="mouseenter"&&x!="mouseleave"||!p.addEventListener||"onmouseenter"in document);var M=c?function(f){f=new TW(f);if(!_.uk(f.relatedTarget,function(K){return K==p},!0))return f.currentTarget=p,f.type=x,F.call(p,f)}:function(f){f=new TW(f);
f.currentTarget=p;return F.call(p,f)};
M=_.bO(M);p.addEventListener?(x=="mouseenter"&&c?x="mouseover":x=="mouseleave"&&c?x="mouseout":x=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(x="MozMousePixelScroll"),Yuw()||typeof N==="boolean"?p.addEventListener(x,M,N):p.addEventListener(x,M,!!N.capture)):p.attachEvent("on"+x,M);Pu[h]=[p,x,F,M,N];return h};
_.GTH=function(p,x,F){var N=N===void 0?{}:N;var h=_.Bu(p,x,function(){_.wlE(h);F.apply(p,arguments)},N)};
_.wlE=function(p){p&&(typeof p=="string"&&(p=[p]),_.w1(p,function(x){if(x in Pu){var F=Pu[x],N=F[0],h=F[1],c=F[3];F=F[4];N.removeEventListener?Yuw()||typeof F==="boolean"?N.removeEventListener(h,c,F):N.removeEventListener(h,c,!!F.capture):N.detachEvent&&N.detachEvent("on"+h,c);delete Pu[x]}}))};
Rn=function(p){this.callback_=p;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(p=0;p<4;p++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.Bu(window,"mousemove",(0,_.CH)(this.onMouseMove_,this));this.timerId_=_.pf((0,_.CH)(this.checkPosition_,this),25)};
WJH=function(){var p={};var x=p.preferMobileEvents===void 0?!1:p.preferMobileEvents;p=p.enableScrollEventListener===void 0?!0:p.enableScrollEventListener;if(_.A9("_lact",window)==null){var F=parseInt(_.sd("LACT"),10);F=isFinite(F)?Date.now()-Math.max(F,0):-1;_.ox("_lact",F,window);_.ox("_fact",F,window);F==-1&&_.kS();_.Bu(document,"keydown",_.kS);_.Bu(document,"keyup",_.kS);_.Bu(document,"mousedown",_.kS);_.Bu(document,"mouseup",_.kS);x?_.Bu(window,"touchmove",function(){V6k("touchmove",200)},{passive:!0}):
(_.Bu(window,"resize",function(){V6k("resize",200)}),p&&_.Bu(window,"scroll",function(){V6k("scroll",200)}));
new Rn(function(){V6k("mouse",100)});
_.Bu(document,"touchstart",_.kS,{passive:!0});_.Bu(document,"touchend",_.kS,{passive:!0})}};
V6k=function(p,x){Hr6[p]||(Hr6[p]=!0,_.E0.addLowPriorityJob(function(){_.kS();Hr6[p]=!1},x))};
_.kS=function(){_.A9("_lact",window)==null&&WJH();var p=Date.now();_.ox("_lact",p,window);_.A9("_fact",window)==-1&&_.ox("_fact",p,window);(p=_.A9("ytglobal.ytUtilActivityCallback_"))&&p()};
_.U0=function(){var p=_.A9("_lact",window);return p==null?-1:Math.max(Date.now()-p,0)};
_.es=function(p,x,F){var N=_.i1();if(N&&x){var h=N.subscribe(p,function(){var c=arguments,M=function(){In[h]&&x.apply&&typeof x.apply=="function"&&x.apply(F||window,c)};
try{_.mdM[p]?M():_.er(M,0)}catch(f){_.yL(f)}},F);
In[h]=!0;$S[p]||($S[p]=[]);$S[p].push(h);return h}return 0};
_.oLJ=function(p){var x=_.i1();x&&(typeof p==="number"?p=[p]:typeof p==="string"&&(p=[parseInt(p,10)]),_.w1(p,function(F){x.unsubscribeByKey(F);delete In[F]}))};
_.Ord=function(p,x){var F=_.i1();F&&F.publish.apply(F,arguments)};
_.LJE=function(p){var x=_.i1();if(x)if(x.clear(p),p)j76(p);else for(var F in $S)j76(F)};
_.i1=function(){return _.Mm.ytPubsubPubsubInstance};
j76=function(p){$S[p]&&(p=$S[p],_.w1(p,function(x){In[x]&&delete In[x]}),p.length=0)};
PzH=function(){var p,x;return"h5vcc"in po&&((p=po.h5vcc.traceEvent)==null?0:p.traceBegin)&&((x=po.h5vcc.traceEvent)==null?0:x.traceEnd)?1:"performance"in po&&po.performance.mark&&po.performance.measure?2:0};
T$B=function(p){var x=PzH();switch(x){case 1:po.h5vcc.traceEvent.traceBegin("YTLR",p);break;case 2:po.performance.mark(p+"-start");break;case 0:break;default:_.Pb(x,"unknown trace type")}};
B$d=function(p){var x=PzH();switch(x){case 1:po.h5vcc.traceEvent.traceEnd("YTLR",p);break;case 2:x=p+"-start";var F=p+"-end";po.performance.mark(F);po.performance.measure(p,x,F);break;case 0:break;default:_.Pb(x,"unknown trace type")}};
Rlz=function(p){var x,F;(F=(x=window).onerror)==null||F.call(x,p.message,"",0,0,p)};
kTB=function(p){if(_.S("web_lifecycle_error_handling_killswitch"))return p();try{return p()}catch(x){Rlz(x)}};
UdJ=function(p){return[p.auth===void 0?"undefined":p.auth,p.isJspb===void 0?"undefined":p.isJspb,p.cttAuthInfo===void 0?"undefined":p.cttAuthInfo,p.tier===void 0?"undefined":p.tier].join("/")};
_.r=function(p,x){if(p)return p[x.name]};
_.xl=function(p){return p};
Nf=function(){var p=_.A9("yt.logging.ims");p||(p=new Fx,_.ox("yt.logging.ims",p));return p};
hgH=function(p,x){if(p.endpoint==="log_event"){irp(p);var F=I$M(p),N=$d$(p.payload)||"",h=el6(N),c=200;if(h){if(h.enabled===!1&&!_.S("web_payload_policy_disabled_killswitch"))return;c=pt$(h.tier);if(c===400){xCd(p,x);return}}hT[F]=!0;F={cttAuthInfo:F,isJspb:!1,tier:c};Nf().storePayload(F,p.payload);FxZ(x,!1,F,N5J(N))}};
c0B=function(p,x,F){if(x.endpoint==="log_event"){irp(void 0,x);var N=I$M(x,!0),h=el6(p),c=200;if(h){if(h.enabled===!1&&!_.S("web_payload_policy_disabled_killswitch"))return;c=pt$(h.tier);if(c===400){lSz(p,x,F);return}}hT[N]=!0;N={cttAuthInfo:N,isJspb:!0,tier:c};Nf().storePayload(N,Qa(x.payload));FxZ(F,!0,N,N5J(p))}};
FxZ=function(p,x,F,N){x=x===void 0?!1:x;N=N===void 0?!1:N;p&&(lK=new p);p=_.Ud("tvhtml5_logging_max_batch_ads_fork")||_.Ud("tvhtml5_logging_max_batch")||_.Ud("web_logging_max_batch")||100;var h=(0,_.Lf)(),c=aSE(x,F.tier),M=c.lastDebounceQueueFromLogTimeMs;N&&(c.useVideoStatsEndPoint=!0);N=0;F&&(N=Nf().getSequenceCount(F));var f=function(){M3d({writeThenSend:!0},x,F.tier)};
N>=1E3?f():N>=p?DCw||(DCw=fSZ(function(){f();DCw=void 0},0)):h-M>=10&&(Kxp(x,F.tier),c.lastDebounceQueueFromLogTimeMs=h)};
xCd=function(p,x){if(p.endpoint==="log_event"){_.S("more_accurate_gel_parser")&&Nf().storePayload({isJspb:!1},p.payload);irp(p);var F=I$M(p),N=new Map;N.set(F,[p.payload]);var h=$d$(p.payload)||"";x&&(lK=new x);return new _.cZ(function(c,M){lK&&lK.isReady()?qid(N,lK,c,M,{bypassNetworkless:!0},!0,N5J(h)):c()})}};
lSz=function(p,x,F){if(x.endpoint==="log_event"){irp(void 0,x);var N=I$M(x,!0),h=new Map;h.set(N,[Qa(x.payload)]);F&&(lK=new F);return new _.cZ(function(c){lK&&lK.isReady()?ZQp(h,lK,c,{bypassNetworkless:!0},!0,N5J(p)):c()})}};
I$M=function(p,x){var F="";if(p.dangerousLogToVisitorSession)F="visitorOnlyApprovedKey";else if(p.cttAuthInfo){if(x===void 0?0:x){x=p.cttAuthInfo.token;F=p.cttAuthInfo;var N=new t3J;F.videoId?N.setVideoId(F.videoId):F.playlistId&&ac(N,2,dCJ,te(F.playlistId));vp6[x]=N}else x=p.cttAuthInfo,F={},x.videoId?F.videoId=x.videoId:x.playlistId&&(F.playlistId=x.playlistId),J0J[p.cttAuthInfo.token]=F;F=p.cttAuthInfo.token}return F};
M3d=function(p,x,F){p=p===void 0?{}:p;x=x===void 0?!1:x;new _.cZ(function(N,h){var c=aSE(x,F),M=c.useVideoStatsEndPoint;c.useVideoStatsEndPoint=!1;CTM(c.queueTimer);CTM(c.queueMaxTimer);c.queueMaxTimer=0;lK&&lK.isReady()?F===void 0&&_.S("enable_web_tiered_gel")?Siw(N,h,p,x,300,M):Siw(N,h,p,x,F,M):(Kxp(x,F),N())})};
Siw=function(p,x,F,N,h,c){var M=lK;F=F===void 0?{}:F;N=N===void 0?!1:N;h=h===void 0?200:h;c=c===void 0?!1:c;var f=new Map,K=new Map,t={isJspb:N,cttAuthInfo:void 0,tier:h},d={isJspb:N,cttAuthInfo:void 0};if(N){x=_.a(Object.keys(hT));for(h=x.next();!h.done;h=x.next())h=h.value,K=_.S("enable_web_tiered_gel")?Nf().smartExtractMatchingEntries({keys:[t,d],sizeLimit:1E3}):Nf().extractMatchingEntries({isJspb:!0,cttAuthInfo:h}),K.length>0&&f.set(h,K),(_.S("web_fp_via_jspb_and_json")&&F.writeThenSend||!_.S("web_fp_via_jspb_and_json"))&&
delete hT[h];ZQp(f,M,p,F,!1,c)}else{f=_.a(Object.keys(hT));for(t=f.next();!t.done;t=f.next())t=t.value,d=_.S("enable_web_tiered_gel")?Nf().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:t,tier:h},{isJspb:!1,cttAuthInfo:t}],sizeLimit:1E3}):Nf().extractMatchingEntries({isJspb:!1,cttAuthInfo:t}),d.length>0&&K.set(t,d),(_.S("web_fp_via_jspb_and_json")&&F.writeThenSend||!_.S("web_fp_via_jspb_and_json"))&&delete hT[t];qid(K,M,p,x,F,!1,c)}};
Kxp=function(p,x){p=p===void 0?!1:p;x=x===void 0?200:x;var F=function(){M3d({writeThenSend:!0},p,x)},N=aSE(p,x),h=N===r0$||N===EpE?5E3:Xtp;
_.S("web_gel_timeout_cap")&&!N.queueMaxTimer&&(h=fSZ(function(){F()},h),N.queueMaxTimer=h);
CTM(N.queueTimer);h=_.sd("LOGGING_BATCH_TIMEOUT",_.Ud("web_gel_debounce_ms",1E4));_.S("shorten_initial_gel_batch_timeout")&&gpM&&(h=Q4k);h=fSZ(function(){_.Ud("gel_min_batch_size")>0?Nf().getSequenceCount({cttAuthInfo:void 0,isJspb:p,tier:x})>=zg$&&F():F()},h);
N.queueTimer=h};
qid=function(p,x,F,N,h,c,M){h=h===void 0?{}:h;var f=Math.round((0,_.Lf)()),K=p.size,t=s4p(M);p=_.a(p);var d=p.next();for(M={};!d.done;M={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},d=p.next()){var v=_.a(d.value);d=v.next().value;v=v.next().value;M.batchRequest=_.Q5.unsafeClone({context:_.luZ(x.config_||_.TI())});if(!_.TB(v)&&!_.S("throw_err_when_logevent_malformed_killswitch")){N();break}M.batchRequest.events=v;
(v=J0J[d])&&np$(M.batchRequest,d,v);delete J0J[d];M.dangerousLogToVisitorSession=d==="visitorOnlyApprovedKey";y0w(M.batchRequest,f,M.dangerousLogToVisitorSession);bQm(h);M.onSuccess$jscomp$3=function(C){_.S("start_client_gcf")&&_.E0.addLowPriorityJob(function(){return _.D(function(X){return _.q(X,A06(C),0)})});
K--;K||F()};
M.networkFailures=0;M.onError$jscomp$5=function(C){return function(){C.networkFailures++;if(h.bypassNetworkless&&C.networkFailures===1)try{oJp(x,t,C.batchRequest,ut$({writeThenSend:!0},C.dangerousLogToVisitorSession,C.onSuccess$jscomp$3,C.onError$jscomp$5,c)),gpM=!1}catch(X){_.yL(X),N()}K--;K||F()}}(M);
try{oJp(x,t,M.batchRequest,ut$(h,M.dangerousLogToVisitorSession,M.onSuccess$jscomp$3,M.onError$jscomp$5,c)),gpM=!1}catch(C){_.yL(C),N()}}};
ZQp=function(p,x,F,N,h,c){N=N===void 0?{}:N;var M=Math.round((0,_.Lf)()),f={value:p.size},K=new Map([].concat(_.se(p)));K=_.a(K);for(var t=K.next();!t.done;t=K.next()){var d=_.a(t.value).next().value,v=p.get(d);t=new Yi6;var C=x.config_||_.TI(),X=new Mf,Q=new wtB;_.J_(Q,1,C.innertubeContextHostLanguage);_.J_(Q,2,C.innertubeContextGeoLocation);_.Rx(Q,16,C.innertubeContextClientNameFieldNumber);_.J_(Q,17,C.innertubeContextClientVersion);if(C.innertubeContextClientConfigInfo){var b=C.innertubeContextClientConfigInfo,
A=new U5;b.coldConfigData&&_.J_(A,1,b.coldConfigData);b.appInstallData&&_.J_(A,6,b.appInstallData);b.coldHashData&&_.J_(A,3,b.coldHashData);b.hotHashData&&A.setHotHashData(b.hotHashData);_.f6(Q,62,A)}(b=_.Mm.devicePixelRatio)&&b!=1&&_.k3(Q,65,_.Rk(b));b=EvJ();b!==""&&_.J_(Q,54,b);b=X5w();if(b.length>0){A=new GOB;for(var Y=0;Y<b.length;Y++){var O=new DO;O.setKey(b[Y].key);ac(O,2,V36,te(b[Y].value));fo(A,15,DO,O)}_.f6(X,5,A)}e3k(C,Q);pgJ(X);xBw(Q);F9p(C,Q);NXw(Q);_.S("start_client_gcf")&&h9$(Q);_.sd("DELEGATED_SESSION_ID")&&
!_.S("pageid_as_header_web")&&(C=new Ko,_.J_(C,3,_.sd("DELEGATED_SESSION_ID")));!_.S("fill_delegate_context_in_gel_killswitch")&&(b=_.sd("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(A=_.B8(X,Ko,3)||new Ko,C=X,b=_.J_(A,18,b),_.f6(C,3,b));C=Q;b=_.a(Object.entries(_.Gn(_.sd("DEVICE",""))));for(A=b.next();!A.done;A=b.next())Y=_.a(A.value),A=Y.next().value,Y=Y.next().value,A==="cbrand"?_.J_(C,12,Y):A==="cmodel"?_.J_(C,13,Y):A==="cbr"?_.J_(C,87,Y):A==="cbrver"?_.J_(C,88,Y):A==="cos"?_.J_(C,18,
Y):A==="cosver"?_.J_(C,19,Y):A==="cplatform"&&_.Rx(C,42,Ix$(Y));X.setClient(Q);_.f6(t,1,X);if(Q=vp6[d])a:{if(_.fH(Q,qf(Q,dCJ,1)))X=1;else if(Q.getPlaylistId())X=2;else break a;_.f6(t,4,Q);Q=t.getContext()||new Mf;C=_.B8(Q,Ko,3)||new Ko;b=new ZO;b.setToken(d);_.Rx(b,1,X);fo(C,12,ZO,b);_.f6(Q,3,C)}delete vp6[d];d=d==="visitorOnlyApprovedKey";Wxw()||_.tT(t,2,M);!d&&(X=_.sd("EVENT_ID"))&&(Q=HQM(),C=new mCm,_.J_(C,1,X),_.tT(C,2,Q),_.f6(t,5,C));bQm(N);if(_.S("jspb_serialize_with_worker")&&(X=_.dud())&&
N.writeThenSend){_.opp.set(OQJ,{client:x,resolve:F,networklessOptions:N,isIsolated:h,useVSSEndpoint:c,dangerousLogToVisitorSession:d,requestsOutstanding:f});X.postMessage({op:"gelBatchToSerialize",batchRequest:Qa(t),clientEvents:v,key:OQJ});OQJ++;break}if(v){X=[];for(Q=0;Q<v.length;Q++)try{X.push(new dj(v[Q]))}catch(Fw){_.yL(new _.qE("Transport failed to deserialize "+String(v[Q])))}v=X}else v=[];v=_.a(v);for(X=v.next();!X.done;X=v.next())fo(t,3,dj,X.value);v={startTime:(0,_.Lf)(),ticks:{},infos:{}};
t=t.serialize();v.ticks.geljspc=(0,_.Lf)();_.S("log_jspb_serialize_latency")&&fvz("gel_jspb_serialize",v,{sampleRate:.1});_.j4r(t,x,F,N,h,c,d,f)}};
_.j4r=function(p,x,F,N,h,c,M,f){N=N===void 0?{}:N;f=f===void 0?{value:0}:f;c=s4p(c);N=ut$(N,M,function(K){_.S("start_client_gcf")&&_.E0.addLowPriorityJob(function(){return _.D(function(t){return _.q(t,A06(K),0)})});
f.value--;f.value||F()},function(){f.value--;
f.value||F()},h);
N.headers["Content-Type"]="application/json+protobuf";N.postBodyFormat="JSPB";N.postBody=p;oJp(x,c,"",N);gpM=!1};
bQm=function(p){_.S("always_send_and_write")&&(p.writeThenSend=!1)};
ut$=function(p,x,F,N,h){p={retry:!0,onSuccess:F,onError:N,networklessOptions:p,dangerousLogToVisitorSession:x,bypassMonitoring:!!h,headers:{},postBodyFormat:"",postBody:"",compress:_.S("compress_gel")||_.S("compress_gel_lr")};Wxw()&&(p.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Lf)())));return p};
y0w=function(p,x,F){Wxw()||(p.requestTimeMs=String(x));_.S("unsplit_gel_payloads_in_logs")&&(p.unsplitGelPayloadsInLogs=!0);!F&&(x=_.sd("EVENT_ID"))&&(F=HQM(),p.serializedClientEventId={serializedEventId:x,clientCounter:String(F)})};
HQM=function(){var p=_.sd("BATCH_CLIENT_COUNTER")||0;p||(p=Math.floor(Math.random()*65535/2));p++;p>65535&&(p=1);_.zn("BATCH_CLIENT_COUNTER",p);return p};
np$=function(p,x,F){if(F.videoId)var N="VIDEO";else if(F.playlistId)N="PLAYLIST";else return;p.credentialTransferTokenTargetId=F;p.context=p.context||{};p.context.user=p.context.user||{};p.context.user.credentialTransferTokens=[{token:x,scope:N}]};
irp=function(p,x){var F=_.iO("il_payload_scraping")==="enable_il_payload_scraping";if(!_.A9("yt.logging.transport.enableScrapingForTest"))if(F)Lxm=[],_.ox("yt.logging.transport.enableScrapingForTest",!0),_.ox("yt.logging.transport.scrapedPayloadsForTesting",Lxm),_.ox("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.ox("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.ox("yt.logging.transport.scrapeClientEvent",!0);else return;F=_.A9("yt.logging.transport.scrapedPayloadsForTesting");var N=_.A9("yt.logging.transport.payloadToScrape");x&&(x=_.A9("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(x.payload)())&&F.push(x);x=_.A9("yt.logging.transport.scrapeClientEvent");if(N&&N.length>=1)for(var h=0;h<N.length;h++)if(p&&p.payload[N[h]])if(x)F.push(p.payload);else{var c=void 0;F.push(((c=p)==null?void 0:c.payload)[N[h]])}_.ox("yt.logging.transport.scrapedPayloadsForTesting",
F)};
Wxw=function(){return _.S("use_request_time_ms_header")||_.S("lr_use_request_time_ms_header")};
fSZ=function(p,x){return _.S("transport_use_scheduler")===!1?_.er(p,x):_.S("logging_avoid_blocking_during_navigation")||_.S("lr_logging_avoid_blocking_during_navigation")?_.vZ(_.E0,function(){if(_.PTd().currentState==="none")p();else{var F={};_.PTd().install((F.none={callback:p},F))}},x):_.vZ(_.E0,p,x)};
CTM=function(p){_.S("transport_use_scheduler")?_.E0.cancelJob(p):_.x3(p)};
A06=function(p){var x,F,N,h,c,M,f,K,t,d;return _.D(function(v){return v.nextAddress==1?(N=(x=p)==null?void 0:(F=x.responseContext)==null?void 0:F.globalConfigGroup,h=_.r(N,T56),M=(c=N)==null?void 0:c.hotHashData,f=_.r(N,B5H),t=(K=N)==null?void 0:K.coldHashData,(d=_.J().resolve(_.Bw(JT)))?M?h?_.q(v,Rgp(d,M,h),2):_.q(v,Rgp(d,M),2):v.jumpTo(2):v.return()):t?f?_.q(v,kOm(d,t,f),0):_.q(v,kOm(d,t),0):v.jumpTo(0)})};
aSE=function(p,x){x=x===void 0?200:x;return p?x===300?r0$:UCp:x===300?EpE:iQ$};
el6=function(p){if(_.S("enable_web_tiered_gel")){p=IS$[p||""];var x,F,N,h=_.J().resolve(_.Bw(JT))==null?void 0:(x=$Cz())==null?void 0:(F=x.loggingHotConfig)==null?void 0:(N=F.eventLoggingConfig)==null?void 0:N.payloadPolicies;if(h)for(x=0;x<h.length;x++)if(h[x].payloadNumber===p)return h[x]}};
$d$=function(p){p=Object.keys(p);p=_.a(p);for(var x=p.next();!x.done;x=p.next())if(x=x.value,IS$[x])return x};
pt$=function(p){switch(p){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}};
N5J=function(p){return p==="gelDebuggingEvent"};
s4p=function(p){return(p===void 0?0:p)&&_.S("vss_through_gel_video_stats")?"video_stats":"log_event"};
Sl=function(p,x,F,N){N=N===void 0?{}:N;var h={},c=Math.round(N.timestamp||(0,_.Lf)());h.eventTimeMs=c<Number.MAX_SAFE_INTEGER?c:0;h[p]=x;p=_.U0();h.context={lastActivityMs:String(N.timestamp||!isFinite(p)?-1:p)};N.sequenceGroup&&!_.S("web_gel_sequence_info_killswitch")&&(p=h.context,x=N.sequenceGroup,x={index:egZ(x),groupKey:x},p.sequence=x,N.endOfSequence&&delete Co[N.sequenceGroup]);(N.sendIsolatedPayload?xCd:hgH)({endpoint:"log_event",payload:h,cttAuthInfo:N.cttAuthInfo,dangerousLogToVisitorSession:N.dangerousLogToVisitorSession},
F)};
egZ=function(p){Co[p]=p in Co?Co[p]+1:0;return Co[p]};
_.E$=function(p,x,F){F=F===void 0?{}:F;var N=rj;_.nt("ytLoggingEventsDefaultDisabled",!1)&&rj===rj&&(N=null);Sl(p,x,N,F)};
_.Xx=function(){if(_.S("web_fp_via_jspb")){var p=!0;p=p===void 0?!1:p;var x=p26;p26=[];if(x){x=_.a(x);for(var F=x.next();!F.done;F=x.next())F=F.value,p?Sl(F.payloadName,F.payload,rj,F.options):_.E$(F.payloadName,F.payload,F.options)}M3d(void 0,!0);if(!_.S("web_fp_via_jspb_and_json"))return}M3d(void 0,!1)};
FU6=function(p,x){var F;if((F=x)==null?0:F.componentStack)return x;if(p=p.componentStack)x||(x={}),x.componentStack=xNp(p);return x};
xNp=function(p){return p.slice(0,void 0).map(function(x){return x.name}).join(" > ")};
NRZ=function(){_.w1(_.sd("ERRORS")||[],function(p){_.zj.apply(null,p)});
_.zn("ERRORS",[])};
_.s$=function(p){_.zj(p)};
_.no=function(p){_.zj(p,"WARNING")};
hxM=function(p){p instanceof Error?_.zj(p):(p=_.IJ(p)?JSON.stringify(p):String(p),p=new _.qE(p),p.name="RejectedPromiseError",_.no(p))};
ltB=function(p,x,F,N,h,c){x=x===void 0?"Unknown file":x;F=F===void 0?0:F;var M=!1,f=FTp("log_window_onerror_fraction");if(f&&Math.random()<f)M=!0;else{f=document.getElementsByTagName("script");for(var K=0,t=f.length;K<t;K++)if(f[K].src.indexOf("/debug-")>0){M=!0;break}}M&&(M=!1,h?M=!0:(typeof p==="string"?f=p:ErrorEvent&&p instanceof ErrorEvent?(M=!0,f=p.message,x=p.filename,F=p.lineno,N=p.colno):(f="Unknown error",x="Unknown file",F=0),h=new _.qE(f),h.name="UnhandledWindowError",h.message=f,h.fileName=
x,h.lineNumber=F,isNaN(N)?delete h.columnNumber:h.columnNumber=N),_.S("wiz_enable_component_stack_propagation_killswitch")||(c=FU6(h,c)),c&&_.yj(h,c),M?_.zj(h):_.no(h))};
_.zj=function(p,x,F,N,h,c,M,f){c=c===void 0?{}:c;c.name=F||_.sd("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=N||_.sd("INNERTUBE_CONTEXT_CLIENT_VERSION");F=c;x=x===void 0?"ERROR":x;M=M===void 0?!1:M;x=x===void 0?"ERROR":x;M=M===void 0?!1:M;if(p&&(p.hasOwnProperty("level")&&p.level&&(x=p.level),_.S("console_log_js_exceptions")&&(N=[],N.push("Name: "+p.name),N.push("Message: "+p.message),p.hasOwnProperty("params")&&N.push("Error Params: "+JSON.stringify(p.params)),p.hasOwnProperty("args")&&N.push("Error args: "+
JSON.stringify(p.args)),N.push("File name: "+p.fileName),N.push("Stacktrace: "+p.stack),N=N.join("\n"),window.console.log(N,p)),!(cRB>=5))){N=[];h=_.a(atp);for(c=h.next();!c.done;c=h.next()){c=c.value;try{c()&&N.push(c())}catch(A){}}N=[].concat(_.se(MoE),_.se(N));var K=DNZ(p);h=K.message||"Unknown Error";c=K.name||"UnknownError";var t=K.stack||p.stacktrace||"Not available";if(t.startsWith(c+": "+h)){var d=t.split("\n");d.shift();t=d.join("\n")}d=K.lineNumber||"Not available";K=K.fileName||"Not available";
var v=0;if(p.hasOwnProperty("args")&&p.args&&p.args.length)for(var C=0;C<p.args.length&&!(v=ick(p.args[C],"params."+C,F,v),v>=500);C++);else if(p.hasOwnProperty("params")&&p.params){var X=p.params;if(typeof p.params==="object")for(C in X){if(X[C]){var Q="params."+C,b=c8(X[C]);F[Q]=b;v+=Q.length+b.length;if(v>500)break}}else F.params=c8(X)}if(N.length)for(C=0;C<N.length&&!(v=ick(N[C],"params.context."+C,F,v),v>=500);C++);navigator.vendor&&!F.hasOwnProperty("vendor")&&(F["device.vendor"]=navigator.vendor);
C={message:h,name:c,lineNumber:d,fileName:K,stack:t,params:F,sampleWeight:1};F=Number(p.columnNumber);isNaN(F)||(C.lineNumber=C.lineNumber+":"+F);if(p.level==="IGNORED")p=0;else a:{p=ftr();F=_.a(p.messageWeights);for(N=F.next();!N.done;N=F.next())if(N=N.value,C.message&&C.message.match(N.messageRegExp)){p=N.weight;break a}p=_.a(p.callbackWeights);for(F=p.next();!F.done;F=p.next())if(F=F.value,F.callback(C)){p=F.weight;break a}p=1}C.sampleWeight=p;p=_.a(KUJ);for(F=p.next();!F.done;F=p.next())if(F=
F.value,F.patternsForType[C.name])for(h=_.a(F.patternsForType[C.name]),N=h.next();!N.done;N=h.next())if(c=N.value,N=C.message.match(c.regexp)){C.params["params.error.original"]=N[0];h=c.groups;c={};for(d=0;d<h.length;d++)c[h[d]]=N[d+1],C.params["params.error."+h[d]]=N[d+1];C.message=F.messageFn(c);break}C.params||(C.params={});p=ftr();C.params["params.errorServiceSignature"]="msg="+p.messageWeights.length+"&cb="+p.callbackWeights.length;C.params["params.serviceWorker"]="false";_.Mm.document&&_.Mm.document.querySelectorAll&&
(C.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new bK(qsp,"sample")).constructor!==bK&&(C.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(C);if(C.sampleWeight!==0&&!ZVz.has(C.message)){if(M&&_.S("web_enable_error_204"))tor(x===void 0?"ERROR":x,C);else{x=x===void 0?"ERROR":x;x==="ERROR"?(dNw.publish("handleError",C),_.S("record_app_crashed_web")&&vwE===0&&C.sampleWeight===1&&(vwE++,M={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.S("report_client_error_with_app_crash_ks")||(M.systemHealth={crashData:{clientError:{logMessage:{message:C.message}}}}),_.E$("appCrashed",M)),JRZ++):x==="WARNING"&&dNw.publish("handleWarning",C);if(_.S("kevlar_gel_error_routing")){M=x;f=f===void 0?{}:f;b:{p=_.a(CrB);for(F=p.next();!F.done;F=p.next())if(gq(F.value.toLowerCase())){p=!0;break b}p=!1}if(p)f=void 0;else{F={stackTrace:C.stack};C.fileName&&(F.filename=C.fileName);p=C.lineNumber&&C.lineNumber.split?C.lineNumber.split(":"):[];p.length!==
0&&(p.length!==1||isNaN(Number(p[0]))?p.length!==2||isNaN(Number(p[0]))||isNaN(Number(p[1]))||(F.lineNumber=Number(p[0]),F.columnNumber=Number(p[1])):F.lineNumber=Number(p[0]));p={level:"ERROR_LEVEL_UNKNOWN",message:C.message,errorClassName:C.name,sampleWeight:C.sampleWeight};M==="ERROR"?p.level="ERROR_LEVEL_ERROR":M==="WARNING"&&(p.level="ERROR_LEVEL_WARNNING");F={isObfuscated:!0,browserStackInfo:F};f.pageUrl=window.location.href;f.kvPairs=[];_.sd("FEXP_EXPERIMENTS")&&(f.experimentIds=_.sd("FEXP_EXPERIMENTS"));
N=_.sd("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!FTp("web_disable_gel_stp_ecatcher_killswitch")&&N)for(h=_.a(Object.keys(N)),c=h.next();!c.done;c=h.next())c=c.value,f.kvPairs.push({key:c,value:String(N[c])});if(N=C.params)for(h=_.a(Object.keys(N)),c=h.next();!c.done;c=h.next())c=c.value,f.kvPairs.push({key:"client."+c,value:String(N[c])});N=_.sd("SERVER_NAME");h=_.sd("SERVER_VERSION");N&&h&&(f.kvPairs.push({key:"server.name",value:N}),f.kvPairs.push({key:"server.version",value:h}));f={errorMetadata:f,
stackTrace:F,logMessage:p}}f&&(_.E$("clientError",f),(M==="ERROR"||_.S("errors_flush_gel_always_killswitch"))&&_.Xx())}_.S("suppress_error_204_logging")||tor(x,C)}try{ZVz.add(C.message)}catch(A){}cRB++}}};
tor=function(p,x){var F=x.params||{};p={urlParams:{a:"logerror",t:"jserror",type:x.name,msg:x.message.substr(0,250),line:x.lineNumber,level:p,"client.name":F.name},postParams:{url:_.sd("PAGE_NAME",window.location.href),file:x.fileName},method:"POST"};F.version&&(p["client.version"]=F.version);if(p.postParams){x.stack&&(p.postParams.stack=x.stack);x=_.a(Object.keys(F));for(var N=x.next();!N.done;N=x.next())N=N.value,p.postParams["client."+N]=F[N];if(F=_.sd("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(x=
_.a(Object.keys(F)),N=x.next();!N.done;N=x.next())N=N.value,p.postParams[N]=F[N];(F=_.sd("LAVA_VERSION"))&&(p.postParams["lava.version"]=F);F=_.sd("SERVER_NAME");x=_.sd("SERVER_VERSION");F&&x&&(p.postParams["server.name"]=F,p.postParams["server.version"]=x)}_.NE(_.sd("ECATCHER_REPORT_HOST","")+"/error_204",p)};
_.Ssr=function(p,x){x=x===void 0?"ERROR":x;var F=F===void 0?{}:F;var N=_.A9("ytbin.polymer.shared.lib.tampering.info");N&&(N=N())&&(F["params.tamperingInfo"]=N.sort().join(","));_.zj(p,x,void 0,void 0,!0,F)};
_.yj=function(p){var x=_.we.apply(1,arguments);p.args||(p.args=[]);Array.isArray(p.args)&&p.args.push.apply(p.args,_.se(x))};
rRz=function(p){p.level="IGNORED"};
EwB=function(p,x){MoE.push(p);x();MoE.pop()};
uK=function(p,x){for(var F in x)x.hasOwnProperty(F)&&(p=_.AT(p,F,x[F]));return p};
_.X2k=function(p,x,F){F=F===void 0?!1:F;if(!p)return null;if(p.adInfoDialogEndpoint||p.backstageImageUploadEndpoint||p.confirmDialogEndpoint||p.clientActionEndpoint||p.createBackstagePostDialogEndpoint||p.createCommentReplyDialogEndpoint||p.flowEndpoint||p.guideBuilderEndpoint||p.liveChatDialogEndpoint||p.modalEndpoint||p.openPopupAction||p.shareEndpoint||p.shareEntityEndpoint||p.showLiveChatItemEndpoint||p.subscriptionManagerEndpoint||p.unlimitedCreateFamilyEndpoint||p.unlimitedFamilyFlowEndpoint||
p.updateCommentDialogEndpoint||p.updateCommentReplyDialogEndpoint||p.userFeedbackEndpoint||p.videoEditorEndpoint||p.ypcCancelSurveyEndpoint)return x=_.Ud("polymer_report_client_url_requested_rate"),!F&&Math.random()<x&&_.no(new _.qE("urlForEndpoint used on client endpoint",p)),null;var N=_.Ud("polymer_report_missing_web_navigation_endpoint_rate");if(p.liveChatEndpoint||p.liveChatReplayEndpoint)N=0;if(!p.commandMetadata&&!p.clickTrackingParams&&Math.random()<N){var h={},c;for(c in p)h[c]="1";_.no(new _.qE("Missing navigation data",
h))}h="";if(p.commandMetadata&&p.commandMetadata.webCommandMetadata&&p.commandMetadata.webCommandMetadata.url)h=p.commandMetadata.webCommandMetadata.url;else if(p.searchEndpoint)Math.random()<N&&_.no(new _.qE("Should not manually handle search",p)),h="/results?search_query="+encodeURIComponent(p.searchEndpoint.query).replace(/%20/g,"+"),p.searchEndpoint.params&&(h+="&sp="+p.searchEndpoint.params);else if(p.watchEndpoint)Math.random()<N&&_.no(new _.qE("Should not manually handle watch",p)),h="/watch?v="+
p.watchEndpoint.videoId,p.watchEndpoint.playlistId&&(h+="&list="+p.watchEndpoint.playlistId),p.watchEndpoint.index&&(h+="&index="+p.watchEndpoint.index),p.watchEndpoint.startTimeSeconds&&(h+="&t="+p.watchEndpoint.startTimeSeconds);else if(p.browseEndpoint)N=p.browseEndpoint.browseId,(c=p.browseEndpoint.canonicalBaseUrl)?h=c:N&&(h=N.substr(0,2),h=h==="FE"?N==="FEwhat_to_watch"?"/":N==="FEmy_videos"?"/my_videos":"/feed/"+N.substr(2):h==="VL"?"/playlist?list="+N.substr(2):"/channel/"+N),h&&p.browseEndpoint.query&&
(h=uK(h+"/search",{query:p.browseEndpoint.query})),h&&p.browseEndpoint.params&&(h=uK(h,{params:p.browseEndpoint.params}));else{if(p.urlEndpoint)return p.urlEndpoint.url;p.signInEndpoint?(h="https://accounts.google.com/ServiceLogin",N={},_.Q5.extend(N,x||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),x=N):p.uploadEndpoint?h="//www.youtube.com/upload":p.liveChatEndpoint?(h=p.liveChatEndpoint,N=_.Q5.clone(h),_.IJ(h.continuation)&&(c=Object.keys(h.continuation)[0],
N.continuation=h.continuation[c].continuation),h=uK("/youtubei/v1/live_chat/get_live_chat",N)):p.liveChatReplayEndpoint?(h=_.Q5.clone(p.liveChatReplayEndpoint),h.currentPlayerState&&(_.Q5.extend(h,h.currentPlayerState),delete h.currentPlayerState),h=uK("/youtubei/v1/live_chat/get_live_chat_replay",h)):p.liveChatItemContextMenuEndpoint?h=uK("/youtubei/v1/live_chat/get_item_context_menu",p.liveChatItemContextMenuEndpoint):p.liveChatPurchaseMessageEndpoint?h=uK("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
p.liveChatPurchaseMessageEndpoint):p.openSuperStickerBuyFlowCommand?h=uK("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",p.openSuperStickerBuyFlowCommand):p.videoEditEndpoint?h=uK("/edit",{video_id:p.videoEditEndpoint.videoId}):p.liveDashboardEndpoint?h=p.liveDashboardEndpoint.videoId?uK("/live_dashboard",{v:p.liveDashboardEndpoint.videoId}):"/live_dashboard":p.signalNavigationEndpoint&&p.signalNavigationEndpoint.signal&&p.signalNavigationEndpoint.signal==="WEBCAM"?h="/webcam":p.getPdgBuyFlowCommand&&
(h=uK(p.getPdgBuyFlowCommand.buyflowApiPath,{params:p.getPdgBuyFlowCommand.params}))}return h||F?uK(h,x||{}):(_.no(new _.qE("Error: Can't construct url for endpoint","keys:"+Object.keys(p).sort().join(","),p)),null)};
gwp=function(p){if(p){if(p.browseEndpoint)return!!p.browseEndpoint.nofollow;if(p.watchEndpoint)return!!p.watchEndpoint.nofollow;if(p.urlEndpoint)return!!p.urlEndpoint.nofollow}return!1};
_.zxH=function(p,x){var F=x+p,N=QCm.get(F);if(N)return N;p=x+"-"+p.replace(/([A-Z])/g,"-$1").toLowerCase();QCm.set(F,p);return p};
sCw=function(p){var x=_.XG(p,"action")||_.XG(p,"command")||_.XG(p,"endpoint");if(!x)return null;x=_.zxH(x,"yt");_.r(p,_.Yl)&&(x+="-"+_.r(p,_.Yl).signal.toLowerCase().replace(/_/g,"-"));return x};
ARE=function(p){try{var x=Object.keys(p)}catch(h){return[]}for(var F=0;F<x.length;F++){var N=x[F];if(nwk.test(N)||yRZ.test(N))return bVm(p[N])}return[]};
bVm=function(p){return p.command?[p.command]:p.onExecutionAction?[p.onExecutionAction]:p.onResponseReceivedCommand?[p.onResponseReceivedCommand]:p.updateFlowCommand?[p.updateFlowCommand]:p.clientActions?p.clientActions:p.action?[p.action]:p.actions||p.commands||p.onResponseReceivedActions||p.onResponseReceivedCommands||p.onResponseReceivedEndpoints||[]};
YsE=function(p,x){x=x===void 0?!1:x;var F=_.J().resolve(_.Bw(wj));F||(F=new u6H,_.J().addProvider({provide:wj,useValue:F}));return F&&p&&!_.Q5.isEmpty(p)?F.getUrl(p,x):""};
w2$=function(p,x,F){F=F===void 0?"":F;if(x){p.data=x;var N=YsE(x);N?(Wz(p,N),gwp(x)||!jr(N)?p.rel="nofollow":p.removeAttribute("rel"),_.r(x,_.Gj)&&_.r(x,_.Gj).target==="TARGET_NEW_WINDOW"?p.target="_blank":F?p.target=F:p.removeAttribute("target")):(p.removeAttribute("href"),p.removeAttribute("rel"),p.removeAttribute("target"))}};
_.mi=function(p,x){var F=_.LH;if(ve())G7p(p,function(){var c=_.we.apply(0,arguments);QZ(F,function(){x.apply(null,_.se(c))})});
else{var N=_.Vj.getInstance(),h=Ed(x);Z9(function(){h.value=x});
_.J9(function(){var c={},M=_.WZ(N,(c[p]=function(){var f=_.we.apply(0,arguments);QZ(F,function(){h.value.apply(h,_.se(f))})},c));
return function(){var f={};_.HZ(N,(f[p]="",f),M)}})}};
_.oc=function(p){return ve()?VoH(p):WUr(p)};
_.O$=function(p){return ve()?VoH(p):WUr(p)};
WUr=function(p){return Sr(function(){return VoH(p)})};
VoH=function(p){var x=Lwr(function(F){x.value&&x.value===F||(x.__count=x.__count?x.__count+1:1);x.value=F;var N=function(){var h=$C(null);try{return p==null?void 0:p(F)}finally{$C(h)}}();
return function(){N==null||N();x.value=null}});
return x};
HVd=function(p){var x=_.LH,F=ZJ.slice();return{getFn:function(){return function(N){x.isDisposed||Ju(function(){return NG(function(){return p(N)})},{stack:F})!==!0&&N.stopPropagation()}}}};
_.jl=function(p,x,F){if(ve())mNk(p,x,function(h){var c=$C(null);try{F(h)}finally{$C(c)}});
else{var N=Ed(F);Z9(function(){N.value=F});
_.J9(function(){var h=p.value;if(h){var c=function(M){N.value(M)};
h.addEventListener(x,c,void 0);return function(){h?h.removeEventListener(x,c,void 0):ow6(p)}}ow6(p)})}};
ow6=function(p){var x;(x=iI.handleError)==null||x.call.apply(x,[iI].concat(_.se(Cn(P0p.LOG_NULL_EL_REF_VALUE(),p.__expectedTagName,2))))};
Lo=function(p){if(typeof p.children==="function")return p.children(),null;p=_.a(p.children);for(var x=p.next();!x.done;x=p.next())x=x.value,x();return null};
OVd=function(p){var x;return((x=p.prototype)==null?void 0:x.render)===void 0};
jCw=function(p){p=p.items.map(p.children);return p.length>0&&typeof p[0]==="string"?p.join(""):p};
Prz=function(p,x,F){F=F===void 0?!1:F;Ju(function(){return LUk(p,x,F)})};
LUk=function(p,x,F){F=((F===void 0?0:F)?TRp:PZ)(p,function(){Tj(x)});
return F===null?p:F};
Tj=function(p){if(p!==void 0&&p!==null)if(p instanceof pt)for(var x=yZ;Au()!=null&&zyZ in Au()&&x.contains(Au());)wx();else if(Array.isArray(p))for(x=_.a(p),p=x.next();!p.done;p=x.next())Tj(p.value);else if(p instanceof de||"function"==typeof _.pM&&p instanceof _.pM)jO(p.toString());else if(RU(p)){if(Au()!==p){var F,N;x=(N=(F=dx())==null?void 0:F.name)!=null?N:"unknown";throw Error("dc`"+p.tagName+"`"+x);}wx()}else if(p!=null&&p.contentKind===iG||p instanceof Hz)for(x=PLk(p),x=Array.from(x.childNodes),
x=_.a(x),p=x.next();!p.done;p=x.next())yZ.appendChild(p.value),wx();else if(Qb(p)&&(p=p.toString()),F=typeof p,F==="boolean"||F==="number"||F==="string")jO(p);else if(typeof p==="function"){x=yZ;var h=Au();h&&(h._isSignalTextNode||h._isSafeOrSanitizedHtmlNode)||dzz(x,h,p);wx()}else if(p.type===jCw)Tj(p.type(Object.assign({},p.props,{children:p.children[0]})));else{lO.beforeVisit(p);if(typeof p.type==="string"){a:{p.__open||gMd(p.type,p.props.idomKey);h=yZ;for(x in p.props)if(p.props[x]!==BRm){var c=
p.props[x];F=He;F.push(x);F.push(c)}x=iI.attributes;x=x===void 0?BZ:x;c=yZ;F=nn(c);Alr(c,F,x);tqp(h,p.props,!0);if((p.props.skip||p.props.skipchildren)&&yZ.hasChildNodes())VZ();else{if(p.type==="style"&&IWZ(p.children)===null){VZ();x=void 0;break a}Tj(p.children)}Q8d();p.__open&&(p.__open=!1);HNr(h,p.props);x=h}return x}if(p.type===_.TG)Tj(p.children);else if(!Rx6(p)){x=p;try{k7k(x)}catch(M){p=M,(c=iI.handleError)==null||c.call.apply(c,[iI].concat(_.se(Cn(p,(h=x.type)==null?void 0:h.TAG_NAME))))}x.__open&&
(Q8d(),x.__open=!1)}}};
UNw=function(p,x){var F;OVd(p)?F=new aD(x,p):F=new p(x);F.JSC$8117___type=p;F.__updateContext={nextState:F.state,isForced:!1};return F};
k7k=function(p){var x=p.type,F=x.TAG_NAME;if(x===Lo)p.props.children=p.children,x(p.props);else{p.children.length>0&&(p.props.children=p.children);var N;(N=p.props).idomKey||(N.idomKey=x);if(F){var h=gMd(F,p.props.idomKey);p.__open=!0;var c=h.__instance}c||(c=UNw(x,p.props),c.props=null,h&&(h.__instance=c,c.el=h));var M;F=((M=c.__updateContext)!=null?M:{nextState:c.state,isForced:!1}).nextState;c.__updateContext=void 0;x.getDerivedStateFromProps&&(F=x.getDerivedStateFromProps(p.props,F));c.props=
p.props;c.state=F;M=function(){var f=c;lO.beforeRender(f);var K=f.render(f.props);lO.afterRender(f,K);K?(f.props.idomKey&&(K.props.idomKey=f.props.idomKey),f=K):f=void 0;if(K=f)if(K.__open=p.__open,f=Tj(K),p.__open=K.__open,!x.TAG_NAME)if(f)x.TAG_NAME=f.tagName.toLowerCase(),f.__instance=c,c.el=f;else{var t;if((t=c.hooks)==null?0:t.length){var d;(d=iI.handleError)==null||d.call.apply(d,[iI].concat(_.se(Cn(Error("jd")))))}}c.didPatch();lO.didPatch(c)};
(F=c.functionComponent)?jcz({component:F,debugInstance:c.props.debugInstance,fn:M}):M()}};
Rx6=function(p){var x=p.type;if(!OVd(x)||x===Lo||x.componentType===tu)return!1;p.props.children=p.children.length>1?p.children:p.children[0];var F,N=(F=p.props.idomKey)!=null?F:p.type,h;if(Au()&&((h=Au()[$d])==null?void 0:h.key)===N){var c=Au(),M=c[$d];if(!M)throw Error("cc`"+c.tagName);var f;(f=M.updateSignalsFromIdomProps)==null||f.call(M,p.props);iV$(M);return!0}if(Itm.has(x.name))throw f=x.name,x=(M=(c=dx())==null?void 0:c.name)!=null?M:"unknown",Error("bc`"+f+"`"+x);Sf6(p.type,p.props,p.children);
p.props.renderedFromIdom=!0;(f=jcz({component:p.type,debugInstance:p.props.debugInstance,fn:function(){return DzZ(p.type,p.props)}}))&&$N6(f);
return!0};
exd=function(p){for(var x=0;x<eO(p).length;x++)wx()};
iV$=function(p){var x=pck();if(x)exd(x);else for(var F=0;F<p.numNodes;F++)(x=pck())?exd(x):wx()};
pck=function(){var p;return(p=Au()[$d])==null?void 0:p.sourceDynamicRange};
$N6=function(p){p=oMw(p);p=Array.isArray(p)?p:[p];p=_.a(p);for(var x=p.next();!x.done;x=p.next())yZ.insertBefore(x.value,Au()),wx()};
xDr=function(p){var x=KwM(),F=Sr(function(){return{value:typeof p==="function"?p():p}});
return[F.value,function(N){if(cw!==null){var h;(h=iI.handleError)==null||h.call.apply(h,[iI].concat(_.se(Cn(Error("kd")))))}F.value=typeof N==="function"?N(F.value):N;x.__updateContext={nextState:x.state,isForced:!0};N=PS(x.effectContext);h=Be(!1);try{if(x.el){var c,M={},f=(M.props=x.props,M.type=x.JSC$8117___type,M.children=(c=x.props.children)!=null?c:[],M[Pe]=!0,M);try{Prz(x.el,f,!0)}catch(d){var K,t;(t=iI.handleError)==null||t.call.apply(t,[iI].concat(_.se(Cn(d,(K=x.JSC$8117___type)==null?void 0:
K.TAG_NAME))))}}}finally{Be(h),BS(N)}}]};
Rc=function(p,x){var F=_.LH,N=function(h){QZ(F,function(){x(h)})};
window.addEventListener(p,N,void 0);_.E_(function(){window.removeEventListener(p,N,void 0)})};
_.U$=function(p,x){var F=_.LH;_.J9(function(){var N,h=(N=x.observer)!=null?N:_.J().resolve(kl);if(N=p.value){var c=FDB(N),M=[];x.showOption&&M.push(h.observe(N,function(){QZ(F,function(){x.visibilityCallback(!0)})},x.showOption));
x.hideOption&&M.push(h.observe(N,function(){QZ(F,function(){x.visibilityCallback(!1)})},x.hideOption));
x.prescanOption&&x.prescanCallback&&M.push(h.observe(N,function(){QZ(F,function(){x.prescanCallback()})},x.prescanOption));
var f;c.visibilityMonitorKeys=((f=c.visibilityMonitorKeys)!=null?f:[]).concat(M)}})};
FDB=function(p){var x;return(x=p.polymerController)!=null?x:p};
_.iK=function(p){p.componentType=tu};
cI6=function(p,x){var F=NVZ;return _.Z(_.TG,null,_.je(iI.enableLazyTsx,function(){return _.Z(hcB,{id:F,value:p,children:x})},function(){var N=lDd(F,p);
kC(N);N=PS(N);try{return x()}finally{BS(N)}}))};
hcB=function(p){var x=p.children;p=lDd(p.id,p.value);kC(p);p=PS(p);try{return _.Z(_.TG,null,N$(x()))}finally{BS(p)}};
lDd=function(p,x){return Object.assign(Object.create(aDp),{id:p,contextValue:x})};
Mww=function(p){var x,F=_.LH;_.SO(function(){var N=PS(F),h=Be(!x);try{if(x)Prz(x,p.children(),!0);else if(x=N$(p.children()),!(x instanceof Element))throw Error("ld");}finally{Be(h),BS(N)}});
return x};
DDr=function(p){var x,F=XD(function(){var N=Be(!0);try{x=eO(p())}finally{Be(N)}},!1);
return[x,F]};
qWp=function(p,x,F){fDM(p,x);p[x][KDZ].unshift(F)};
fDM=function(p,x){if(!p[x]||!p[x][KDZ]){var F=p[x],N=F?[F]:[];p[x]=function(){for(var h=_.a(N),c=h.next();!c.done;c=h.next())c.value.apply(this,arguments)};
p[x][KDZ]=N}};
ZEZ=function(p){if(!p)return[];var x=[];p=_.a(p);for(var F=p.next();!F.done;F=p.next())F=F.value,Array.isArray(F)?x.push.apply(x,_.se(ZEZ(F))):x.push(F);return x};
_.$l=function(p,x){if(p&&twE.test(p)||p==="//")return p;if(dDB===void 0){dDB=!1;try{var F=new URL("b","http://a");F.pathname="c%20d";dDB=F.href==="http://a/c%20d"}catch(N){}}x||(x=document.baseURI||window.location.href);if(dDB)try{return(new URL(p,x)).href}catch(N){return p}Ic||(Ic=document.implementation.createHTMLDocument("temp"),Ic.base=Ic.createElement("base"),Ic.head.appendChild(Ic.base),Ic.anchor=Ic.createElement("a"),Ic.body.appendChild(Ic.anchor));Ic.base.href=x;Ic.anchor.href=p;return Ic.anchor.href||
p};
JIB=function(p,x){return p.replace(vqp,function(F,N,h,c){return N+"'"+_.$l(h.replace(/["']/g,""),x)+"'"+c})};
CWz=function(p){return p.substring(0,p.lastIndexOf("/")+1)};
Eqw=function(){SWw=!1;for(var p=el.length,x=0;x<p;x++){var F=el[x];if(F)try{F()}catch(N){setTimeout(function(){throw N;})}}el.splice(0,p);
rIZ+=p};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(p){console.log("["+p.is+"]: registered")};
gqr=function(p){XcE.push(p)};
pN=function(p){return QIH[p]||(QIH[p]=p.indexOf("-")<0?p:p.replace(zcE,function(x){return x[1].toUpperCase()}))};
xM=function(p){return QIH[p]||(QIH[p]=p.replace(sIE,"-$1").toLowerCase())};
nqE=function(p,x){var F=x.parentInfo&&nqE(p,x.parentInfo);if(F)for(p=F.firstChild,F=0;p;p=p.nextSibling){if(x.parentIndex===F++)return p}else return p};
yIk=function(p,x){p=p._methodHost||p;return function(F){if(p[x])p[x](F,F.detail);else console.warn("listener method `"+x+"` not defined")}};
FP=function(p){return p.indexOf(".")>=0};
Nn=function(p){var x=p.indexOf(".");return x===-1?p:p.slice(0,x)};
bEZ=function(p,x){return p.indexOf(x+".")===0};
cQ=function(p,x){return x.indexOf(p+".")===0};
a8=function(p,x,F){return x+F.slice(p.length)};
AIE=function(p,x){return p===x||bEZ(p,x)||cQ(p,x)};
Mn=function(p){if(Array.isArray(p)){for(var x=[],F=0;F<p.length;F++)for(var N=p[F].toString().split("."),h=0;h<N.length;h++)x.push(N[h]);return x.join(".")}return p};
uor=function(p){return Array.isArray(p)?Mn(p).split("."):p.toString().split(".")};
DW=function(p,x,F){x=uor(x);for(var N=0;N<x.length;N++){if(!p)return;p=p[x[N]]}F&&(F.path=x.join("."));return p};
YWJ=function(p,x,F){var N=uor(x),h=N[N.length-1];if(N.length>1){for(x=0;x<N.length-1;x++)if(p=p[N[x]],!p)return;p[h]=F}else p[x]=F;return N.join(".")};
wcJ=function(p,x,F){var N=p[x];if(!N)N=p[x]={};else if(!p.hasOwnProperty(x)&&(N=p[x]=Object.create(p[x]),F))for(var h in N)for(p=N[h],x=N[h]=Array(p.length),F=0;F<p.length;F++)x[F]=p[F];return N};
KN=function(p,x,F,N,h,c){if(x){var M=!1,f=fN++,K;for(K in F){var t=h?Nn(K):K;if(t=x[t])for(var d=0,v=t.length,C=void 0;d<v&&(C=t[d]);d++)C.info&&C.info.lastRun===f||h&&!Gur(K,C.trigger)||(C.info&&(C.info.lastRun=f),C.fn(p,K,F,N,C.info,h,c),M=!0)}return M}return!1};
Gur=function(p,x){if(x){var F=x.name;return F==p||!(!x.structured||!bEZ(F,p))||!(!x.wildcard||!cQ(F,p))}return!0};
VwE=function(p,x,F,N,h){x=typeof h.method==="string"?p[h.method]:h.method;F=h.property;x?x.call(p,p.__data[F],N[F]):h.dynamicFn||console.warn("observer method `"+h.method+"` not defined")};
WDJ=function(p,x,F,N){F={value:F,queueProperty:!0};N&&(F.path=N);(0,_.qn)(p).dispatchEvent(new CustomEvent(x,{detail:F}))};
HE6=function(p,x,F,N,h,c){c=(N=(c?Nn(x):x)!=x?x:null)?DW(p,N):p.__data[x];N&&c===void 0&&(c=F[x]);WDJ(p,h.eventName,c,N)};
mDw=function(p,x,F,N,h){F=p.__data[x];ZW&&(F=ZW(F,h.attrName,"attribute",p));p._propertyToAttribute(x,h.attrName,F)};
OEk=function(p){var x=p.constructor.__orderedComputedDeps;if(!x){x=new Map;for(var F=p.__computeEffects,N=oqZ(p),h=N.counts,c=N.ready,M=N.total;N=c.shift();)x.set(N,x.size),(N=F[N])&&N.forEach(function(f){f=f.info.methodInfo;--M;--h[f]===0&&c.push(f)});
M!==0&&console.warn("Computed graph for "+p.localName+" incomplete; circular?");p.constructor.__orderedComputedDeps=x}return x};
oqZ=function(p){var x=p.__computeInfo,F={};p=p.__computeEffects;var N=[],h=0,c;for(c in x){var M=x[c];h+=F[c]=M.args.filter(function(K){return!K.literal}).length+(M.dynamicFn?1:0)}for(var f in p)x[f]||N.push(f);
return{counts:F,ready:N,total:h}};
LDr=function(p,x,F,N,h){x=jI6(p,x,F,N,h);if(x===tl)return!1;h=h.methodInfo;if(p.__dataHasAccessor&&p.__dataHasAccessor[h])return p._setPendingProperty(h,x,!0);p[h]=x;return!1};
BVp=function(p,x,F,N,h,c,M){F.bindings=F.bindings||[];N={kind:N,target:h,parts:c,literal:M,isCompound:c.length!==1};F.bindings.push(N);N.target&&N.kind!="attribute"&&N.kind!="text"&&!N.isCompound&&N.parts[0].mode==="{"&&(F=N.parts[0],c=F.negate,N.listenerEvent=F.event||xM(h)+"-changed",N.listenerNegate=c);h=x.nodeInfoList.length;for(F=0;F<N.parts.length;F++){var f=N.parts[F];f.compoundIndex=F;c=p;M=x;var K=N,t=f,d=h;if(!t.literal)if(K.kind==="attribute"&&K.target[0]==="-")console.warn("Cannot set attribute "+
K.target+' because "-" is not a valid attribute starting character');else for(f=t.dependencies,K={index:d,binding:K,part:t,evaluator:c},t=0;t<f.length;t++)d=f[t],typeof d=="string"&&(d=PWZ(d),d.wildcard=!0),c._addTemplatePropertyEffect(M,d.rootProperty,{fn:TVw,info:K,trigger:d})}};
TVw=function(p,x,F,N,h,c,M){M=M[h.index];var f=h.binding,K=h.part;c&&K.source&&x.length>K.source.length&&f.kind=="property"&&!f.isCompound&&M.__isPropertyEffectsClient&&M.__dataHasAccessor&&M.__dataHasAccessor[f.target]?(F=F[x],x=a8(K.source,f.target,x),M._setPendingPropertyOrPath(x,F,!1,!0)&&p._enqueueClient(M)):(x=h.evaluator._evaluateBinding(p,K,x,F,N,c),x!==tl&&(f.isCompound&&(F=M.__dataCompoundStorage[f.target],F[K.compoundIndex]=x,x=F.join("")),f.kind==="attribute"||f.target!=="textContent"&&
(f.target!=="value"||M.localName!=="input"&&M.localName!=="textarea")||(x=x==void 0?"":x),K=x,ZW&&(K=ZW(K,f.target,f.kind,M)),f.kind=="attribute"?p._valueToNodeAttribute(M,K,f.target):(f=f.target,M.__isPropertyEffectsClient&&M.__dataHasAccessor&&M.__dataHasAccessor[f]?M.__readOnly&&M.__readOnly[f]||M._setPendingProperty(f,K)&&p._enqueueClient(M):p._setUnmanagedPropertyToNode(M,f,K))))};
Rcz=function(p,x,F){if(F.listenerEvent){var N=F.parts[0];p.addEventListener(F.listenerEvent,function(h){var c=F.target,M=N.source,f=N.negate,K=h.detail,t=K&&K.path;t?(M=a8(c,M,t),h=K&&K.value):h=h.currentTarget[c];x.__readOnly&&x.__readOnly[M]||!x._setPendingPropertyOrPath(M,f?!h:h,!0,!!t)||K&&K.queueProperty||x._invalidateProperties()})}};
kud=function(p,x,F,N,h,c){c=x.static||c&&(typeof c!=="object"||c[x.methodName]);h={methodName:x.methodName,args:x.args,methodInfo:h,dynamicFn:c};for(var M=0,f=void 0;M<x.args.length&&(f=x.args[M]);M++)f.literal||p._addPropertyEffect(f.rootProperty,F,{fn:N,info:h,trigger:f});c&&p._addPropertyEffect(x.methodName,F,{fn:N,info:h});return h};
jI6=function(p,x,F,N,h){N=p._methodHost||p;var c=N[h.methodName];if(c)return p=p._marshalArgs(h.args,x,F),p===tl?tl:c.apply(N,p);h.dynamicFn||console.warn("method `"+h.methodName+"` not defined")};
UD$=function(p){for(var x="",F=0;F<p.length;F++)x+=p[F].literal||"";return x};
$DZ=function(p){if(p=p.match(/([^\s]+?)\(([\s\S]*)\)/)){var x={methodName:p[1],static:!0,args:iEJ};return p[2].trim()?IDw(p[2].replace(/\\,/g,"&comma;").split(","),x):x}return null};
IDw=function(p,x){x.args=p.map(function(F){F=PWZ(F);F.literal||(x.static=!1);return F},this);
return x};
PWZ=function(p){p=p.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var x={name:p,value:"",literal:!1},F=p[0];F==="-"&&(F=p[1]);F>="0"&&F<="9"&&(F="#");switch(F){case "'":case '"':x.value=p.slice(1,-1);x.literal=!0;break;case "#":x.value=Number(p),x.literal=!0}x.literal||(x.rootProperty=Nn(p),x.structured=FP(p),x.structured&&(x.wildcard=p.slice(-2)==".*",x.wildcard&&(x.name=p.slice(0,-2))));return x};
ec6=function(p,x,F){p=DW(p,F);p===void 0&&(p=x[F]);return p};
p$p=function(p,x,F,N){N={indexSplices:N};dg&&!p._overrideLegacyUndefined&&(x.splices=N);p.notifyPath(F+".splices",N);p.notifyPath(F+".length",x.length);dg&&!p._overrideLegacyUndefined&&(N.indexSplices=[])};
vQ=function(p,x,F,N,h,c){p$p(p,x,F,[{index:N,addedCount:h,removed:c,object:x,type:"splice"}])};
xgr=function(p){p=JIB((p.body?p.body:p).textContent,p.baseURI);var x=document.createElement("style");x.textContent=p;return x};
NY$=function(p){p=p.trim().split(/\s+/);for(var x=[],F=0;F<p.length;F++)x.push.apply(x,_.se(FYJ(p[F])));return x};
FYJ=function(p){var x=Jl.import(p);if(!x)return console.warn("Could not find style data in module named",p),[];if(x._styles===void 0){p=[];p.push.apply(p,_.se(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(x)));var F=x.querySelector("template");F&&p.push.apply(p,_.se(hfJ(F,x.assetpath)));x._styles=p}return x._styles};
hfJ=function(p,x){if(!p._styles){for(var F=[],N=p.content.querySelectorAll("style"),h=0;h<N.length;h++){var c=N[h],M=c.getAttribute("include");M&&F.push.apply(F,_.se(NY$(M).filter(function(f,K,t){return t.indexOf(f)===K})));
x&&(c.textContent=JIB(c.textContent,x));F.push(c)}p._styles=F}return p._styles};
lXk=function(p){return(p=Jl.import(p))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(p):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(p){var x=[];p=p.querySelectorAll("link[rel=import][type~=css]");for(var F=0;F<p.length;F++){var N=p[F];if(N.import){var h=N.import;if((N=N.hasAttribute("shady-unscoped"))&&!h._unscopedStyle){var c=xgr(h);c.setAttribute("shady-unscoped","");h._unscopedStyle=c}else h._style||(h._style=xgr(h));x.push(N?h._unscopedStyle:h._style)}}return x};
aXJ=function(p){p=p.trim().split(/\s+/);for(var x="",F=0;F<p.length;F++)x+=cfJ(p[F]);return x};
cfJ=function(p){var x=Jl.import(p);if(x&&x._cssText===void 0){var F=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(x),N=x.querySelector("template");N&&(F+=MZZ(N,x.assetpath));x._cssText=F||null}x||console.warn("Could not find style data in module named",p);return x&&x._cssText||""};
MZZ=function(p,x){var F="";p=hfJ(p,x);for(x=0;x<p.length;x++){var N=p[x];N.parentNode&&N.parentNode.removeChild(N);F+=N.textContent}return F};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(p){var x="";p=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(p);for(var F=0;F<p.length;F++)x+=p[F].textContent;return x};
CN=function(p,x){return{index:p,removed:[],addedCount:x}};
fX$=function(p,x,F,N){var h=0,c=0,M=0,f=0,K=Math.min(x-h,N-c);if(h==0&&c==0)a:{for(M=0;M<K;M++)if(p[M]!==F[M])break a;M=K}if(x==p.length&&N==F.length){f=p.length;for(var t=F.length,d=0;d<K-M&&DgJ(p[--f],F[--t]);)d++;f=d}h+=M;c+=M;x-=f;N-=f;if(x-h==0&&N-c==0)return[];if(h==x){for(x=CN(h,0);c<N;)x.removed.push(F[c++]);return[x]}if(c==N)return[CN(h,x-h)];K=h;M=c;N=N-M+1;f=x-K+1;x=Array(N);for(t=0;t<N;t++)x[t]=Array(f),x[t][0]=t;for(t=0;t<f;t++)x[0][t]=t;for(t=1;t<N;t++)for(d=1;d<f;d++)if(p[K+d-1]===
F[M+t-1])x[t][d]=x[t-1][d-1];else{var v=x[t-1][d]+1,C=x[t][d-1]+1;x[t][d]=v<C?v:C}K=x.length-1;M=x[0].length-1;N=x[K][M];for(p=[];K>0||M>0;)K==0?(p.push(2),M--):M==0?(p.push(3),K--):(f=x[K-1][M-1],t=x[K-1][M],d=x[K][M-1],v=t<d?t<f?t:f:d<f?d:f,v==f?(f==N?p.push(0):(p.push(1),N=f),K--,M--):v==t?(p.push(3),K--,N=t):(p.push(2),M--,N=d));p.reverse();x=void 0;K=[];for(M=0;M<p.length;M++)switch(p[M]){case 0:x&&(K.push(x),x=void 0);h++;c++;break;case 1:x||(x=CN(h,0));x.addedCount++;h++;x.removed.push(F[c]);
c++;break;case 2:x||(x=CN(h,0));x.addedCount++;h++;break;case 3:x||(x=CN(h,0)),x.removed.push(F[c]),c++}x&&K.push(x);return K};
KYd=function(p,x){return fX$(p,p.length,x,x.length)};
DgJ=function(p,x){return p===x};
ZP6=function(p){if(p instanceof qgM)return p.value;throw Error("Cd`"+p);};
tZE=function(p,x){for(var F in x)F===null?p.style.removeProperty(F):p.style.setProperty(F,x[F])};
dgM=function(p,x){return(p=window.getComputedStyle(p).getPropertyValue(x))?p.trim():""};
Sg$=function(p){requestAnimationFrame(function(){vV$?vV$(p):(JfB||(JfB=new Promise(function(x){Cap=x}),document.readyState==="complete"?Cap():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Cap()})),JfB.then(function(){p&&p()}))})};
X$$=function(p){rfd=p&&p.shimcssproperties?!1:EVB||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
nVk=function(p){if(!(gVw.indexOf(p)>-1)&&p!=="touchend"&&Qi$&&zfz&&sik)return{passive:!0}};
uNB=function(p){for(var x=yfp?["click"]:gVw,F=0,N;F<x.length;F++)N=x[F],p?(bPH.length=0,document.addEventListener(N,AfH,!0)):document.removeEventListener(N,AfH,!0)};
SB=function(p){var x=p.type;return gVw.indexOf(x)>-1?x==="mousemove"?(x=p.buttons===void 0?1:p.buttons,p instanceof window.MouseEvent&&!Yg6&&(x=w$B[p.which]||0),!!(x&1)):(p.button===void 0?0:p.button)===0:!1};
G1H=function(p){if(p.type==="click"){if(p.detail===0)return!0;var x=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p);if(!x.nodeType||x.nodeType!==Node.ELEMENT_NODE)return!0;x=x.getBoundingClientRect();var F=p.pageX;p=p.pageY;return!(F>=x.left&&F<=x.right&&p>=x.top&&p<=x.bottom)}return!1};
VZz=function(p,x,F){p.movefn=x;p.upfn=F;document.addEventListener("mousemove",x);document.addEventListener("mouseup",F)};
rg=function(p){document.removeEventListener("mousemove",p.movefn);document.removeEventListener("mouseup",p.upfn);p.movefn=null;p.upfn=null};
WYw=function(p,x){for(var F=document.elementFromPoint(p,x),N=F;N&&N.shadowRoot&&!window.ShadyDOM;){var h=N;N=N.shadowRoot.elementFromPoint(p,x);if(h===N)break;N&&(F=N)}return F};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(p){var x=HPB(p);return x.length>0?x[0]:p.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(p){var x=p.type,F=p.currentTarget.__polymerGestures;if(F&&(F=F[x])){if(!p.__polymerGesturesHandled&&(p.__polymerGesturesHandled={},x.slice(0,5)==="touch")){var N=p.changedTouches[0];x==="touchstart"&&p.touches.length===1&&(mgw=N.identifier);if(mgw!==N.identifier)return;Qi$||(x==="touchstart"||x==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p)}N=
p.__polymerGesturesHandled;if(!N.skip){for(var h=0,c;h<E4.length;h++)c=E4[h],F[c.name]&&!N[c.name]&&c.flow&&c.flow.start.indexOf(p.type)>-1&&c.reset&&c.reset();for(h=0;h<E4.length;h++)c=E4[h],F[c.name]&&!N[c.name]&&(N[c.name]=!0,c[x](p))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(p){var x=p.changedTouches[0],F=p.type;if(F==="touchstart")oV$=x.clientX,OP$=x.clientY,jip=!1;else if(F==="touchmove"&&!jip){jip=!0;F="auto";for(var N=HPB(p),h=0,c;h<N.length;h++)if(c=N[h],c.__polymerGesturesTouchAction){F=c.__polymerGesturesTouchAction;break}N=!1;h=Math.abs(oV$-x.clientX);x=Math.abs(OP$-x.clientY);p.cancelable&&(F==="none"?N=!0:F==="pan-x"?N=x>h:F==="pan-y"&&(N=h>x));N?p.preventDefault():
XP("track")}};
Qd=function(p,x,F){return gg[x]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p,x,F),!0):!1};
zc=function(p,x,F){return gg[x]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p,x,F),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(p,x,F){var N=gg[x],h=N.deps,c=N.name,M=p.__polymerGestures;M||(p.__polymerGestures=M={});for(var f=0,K,t;f<h.length;f++)K=h[f],yfp&&gVw.indexOf(K)>-1&&K!=="click"||((t=M[K])||(M[K]=t={_count:0}),t._count===0&&p.addEventListener(K,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,nVk(K)),t[c]=(t[c]||0)+1,t._count=(t._count||0)+1);p.addEventListener(x,F);N.touchAction&&_.s4(p,N.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(p,x,F){var N=gg[x],h=N.deps;N=N.name;var c=p.__polymerGestures;if(c)for(var M=0,f,K;M<h.length;M++)f=h[M],(K=c[f])&&K[N]&&(K[N]=(K[N]||1)-1,K._count=(K._count||1)-1,K._count===0&&p.removeEventListener(f,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,nVk(f)));p.removeEventListener(x,F)};
LY$=function(p){E4.push(p);for(var x=0;x<p.emits.length;x++)gg[p.emits[x]]=p};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(p){for(var x=0,F;x<E4.length;x++){F=E4[x];for(var N=0,h;N<F.emits.length;N++)if(h=F.emits[N],h===p)return F}return null};
_.s4=function(p,x){Qi$&&p instanceof HTMLElement&&nN.run(function(){p.style.touchAction=x});
p.__polymerGesturesTouchAction=x};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(p,x,F){x=new Event(x,{bubbles:!0,cancelable:!0,composed:!0});x.detail=F;(0,_.qn)(p).dispatchEvent(x);x.defaultPrevented&&(p=F.preventer||F.sourceEvent)&&p.preventDefault&&p.preventDefault()};
XP=function(p){p=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p);p.info&&(p.info.prevent=!0)};
yd=function(p,x,F,N){x&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x,p,{x:F.clientX,y:F.clientY,sourceEvent:F,preventer:N,prevent:function(h){return XP(h)}})};
Pad=function(p,x,F){if(p.prevent)return!1;if(p.started)return!0;F=Math.abs(p.y-F);return Math.abs(p.x-x)>=5||F>=5};
TYz=function(p,x,F){if(x){var N=p.moves[p.moves.length-2],h=p.moves[p.moves.length-1],c=h.x-p.x,M=h.y-p.y,f=0;if(N){var K=h.x-N.x;f=h.y-N.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(x,"track",{state:p.state,x:F.clientX,y:F.clientY,dx:c,dy:M,ddx:K,ddy:f,sourceEvent:F,hover:function(){return WYw(F.clientX,F.clientY)}})}};
RfJ=function(p,x,F){var N=Math.abs(x.clientX-p.x),h=Math.abs(x.clientY-p.y),c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(F||x);!c||BYm[c.localName]&&c.hasAttribute("disabled")||!(isNaN(N)||isNaN(h)||N<=25&&h<=25||G1H(x))||p.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c,"tap",{x:x.clientX,y:x.clientY,sourceEvent:x,preventer:F})};
k1z=function(p,x,F,N,h){var c;h&&(c=typeof F==="object"&&F!==null)&&(N=p.__dataTemp[x]);N=N!==F&&(N===N||F===F);c&&N&&(p.__dataTemp[x]=F);return N};
iPH=function(){if(bL&&!Al){if(!Ug$){Ug$=!0;var p=document.createElement("style");p.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(p)}return!0}return!1};
$gJ=function(){return IXZ};
efz=function(p,x){IXZ=p;Object.setPrototypeOf(p,x.prototype);new x;IXZ=null};
pWE=function(p,x){for(var F=0;F<x.length;F++){var N=x[F];if(!!p!=!!N.__hideTemplateChildren__)if(N.nodeType===Node.TEXT_NODE)p?(N.__polymerTextContent__=N.textContent,N.textContent=""):N.textContent=N.__polymerTextContent__;else if(N.localName==="slot")if(p)N.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.qn)((0,_.qn)(N).parentNode).replaceChild(N.__polymerReplaced__,N);else{var h=N.__polymerReplaced__;h&&(0,_.qn)((0,_.qn)(h).parentNode).replaceChild(N,h)}else N.style&&(p?(N.__polymerDisplay__=
N.style.display,N.style.display="none"):N.style.display=N.__polymerDisplay__);N.__hideTemplateChildren__=p;N._showHideChildren&&N._showHideChildren(p)}};
xLp=function(p){return(p=p.__dataHost)&&p._methodHost||p};
hik=function(p,x,F){var N=F.mutableData?FRm:uL;YM.mixin&&(N=YM.mixin(N));var h=function(){return N.apply(this,arguments)||this};
_.E(h,N);h.prototype.__templatizeOptions=F;h.prototype._bindTemplate(p);NaB(h,p,x,F);return h};
DLB=function(p,x,F,N){var h=F.forwardHostProp;if(h&&x.hasHostProps){var c=p.localName=="template",M=x.templatizeTemplateClass;if(!M){if(c){var f=F.mutableData?lr$:cH6;M=function(){return f.apply(this,arguments)||this};
_.E(M,f);M=x.templatizeTemplateClass=M}else{var K=p.constructor;M=function(){return K.apply(this,arguments)||this};
_.E(M,K);M=x.templatizeTemplateClass=M}var t=x.hostProps,d;for(d in t)M.prototype._addPropertyEffect("_host_"+d,M.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:ard(h)}),M.prototype._createNotifyingProperty("_host_"+d);wg&&N&&MGH(x,F,N)}p.__dataProto&&Object.assign(p.__data,p.__dataProto);if(c)efz(p,M),p.__dataTemp={},p.__dataPending=null,p.__dataOld=null,p._enableProperties();else{Object.setPrototypeOf(p,M.prototype);x=x.hostProps;for(var v in x)v="_host_"+v,v in p&&(x=p[v],delete p[v],p.__data[v]=
x)}}};
ard=function(p){return function(x,F,N){p.call(x.__templatizeOwner,F.substring(6),N[F])}};
NaB=function(p,x,F,N){var h=F.hostProps||{},c;for(c in N.instanceProps){delete h[c];var M=N.notifyInstanceProp;M&&p.prototype._addPropertyEffect(c,p.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:frJ(M)})}if(N.forwardHostProp&&x.__dataHost)for(var f in h)F.hasHostProps||(F.hasHostProps=!0),p.prototype._addPropertyEffect(f,p.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:KRJ()})};
frJ=function(p){return function(x,F,N){p.call(x.__templatizeOwner,x,F,N[F])}};
KRJ=function(){return function(p,x,F){p.__dataHost._setPendingPropertyOrPath("_host_"+x,F[x],!0,!0)}};
YM=function(p,x,F){if(Gc&&!xLp(p))throw Error("Id");F=F||{};if(p.__templatizeOwner)throw Error("Jd");p.__templatizeOwner=x;var N=(x?x.constructor:uL)._parseTemplate(p),h=N.templatizeInstanceClass;h||(h=hik(p,N,F),N.templatizeInstanceClass=h);var c=xLp(p);DLB(p,N,F,c);F=function(){return h.apply(this,arguments)||this};
_.E(F,h);F.prototype._methodHost=c;F.prototype.__dataHost=p;F.prototype.__templatizeOwner=x;F.prototype.__hostProps=N.hostProps;return F};
MGH=function(p,x,F){F=F.constructor._properties;p=p.propertyEffects;x=x.instanceProps;for(var N in p)if(!(F[N]||x&&x[N]))for(var h=p[N],c=0;c<h.length;c++){var M=h[c].info.part;if(!M.signature||!M.signature.static){console.warn("Property '"+N+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
q6d=function(p,x){for(var F;x;)if(F=x.__dataHost?x:x.__templatizeInstance)if(F.__dataHost!=p)x=F.__dataHost;else return F;else x=(0,_.qn)(x).parentNode;return null};
Vd=function(p){return p.localName==="slot"};
ZTp=function(){for(var p=WQ.prototype,x="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),F={},N=0;N<x.length;F={method$jscomp$32:void 0},N++)F.method$jscomp$32=x[N],p[F.method$jscomp$32]=function(h){return function(){return this.node[h.method$jscomp$32].apply(this.node,arguments)}}(F)};
tGp=function(p,x){for(var F={},N=0;N<x.length;F={name$jscomp$377:void 0},N++)F.name$jscomp$377=x[N],Object.defineProperty(p,F.name$jscomp$377,{get:function(h){return function(){return this.node[h.name$jscomp$377]}}(F),
configurable:!0})};
dLz=function(){for(var p=WQ.prototype,x=["textContent","innerHTML","className"],F={},N=0;N<x.length;F={name$jscomp$378:void 0},N++)F.name$jscomp$378=x[N],Object.defineProperty(p,F.name$jscomp$378,{get:function(h){return function(){return this.node[h.name$jscomp$378]}}(F),
set:function(h){return function(c){this.node[h.name$jscomp$378]=c}}(F),
configurable:!0})};
vgM=function(){HQ=document.documentElement.getAttribute("dir");HQ=document.documentElement.getAttribute("dir");for(var p=0;p<mf.length;p++){var x=mf[p];x.__autoDirOptOut||x.setAttribute("dir",HQ)}};
rHz=function(){o8=!0;requestAnimationFrame(function(){o8=!1;JHk(Cqw);setTimeout(function(){for(var p=0,x=O4.length;p<x;p++)S6p(O4.shift())})})};
JHk=function(p){for(;p.length;)S6p(p.shift())};
S6p=function(p){var x=p[0],F=p[1];p=p[2];try{F.apply(x,p)}catch(N){setTimeout(function(){throw N;})}};
_.EgB=function(p,x,F){o8||rHz();Cqw.push([p,x,F])};
_.jB=function(p,x,F){o8||rHz();O4.push([p,x,F])};
QEM=function(p,x){x=x===void 0?!1:x;if(!XW6||!ggZ||!XW6.handlesDynamicScoping)return null;var F=ggZ.ScopingShim;if(!F)return null;var N=F.scopeForNode(p),h=(0,_.qn)(p).getRootNode(),c=function(M){if((0,_.qn)(M).getRootNode()===h){var f=Array.from(XW6.nativeMethods.querySelectorAll.call(M,"*"));f.push(M);for(M=0;M<f.length;M++){var K=f[M];if((0,_.qn)(K).getRootNode()===h){var t=F.currentScopeForNode(K);t!==N&&(t!==""&&F.unscopeNode(K,t),F.scopeNode(K,N))}}}};
c(p);return x?(x=new MutationObserver(function(M){for(var f=0;f<M.length;f++)for(var K=M[f],t=0;t<K.addedNodes.length;t++){var d=K.addedNodes[t];d.nodeType===Node.ELEMENT_NODE&&c(d)}}),x.observe(p,{childList:!0,
subtree:!0}),x):null};
ziJ=function(){document.body.removeAttribute("unresolved")};
AHH=function(p){var x=p=p.replace(sEr,"").replace(ngw,""),F=new yHk;F.start=0;F.end=x.length;for(var N=F,h=0,c=x.length;h<c;h++)if(x[h]==="{"){N.rules||(N.rules=[]);var M=N,f=M.rules[M.rules.length-1]||null;N=new yHk;N.start=h+1;N.parent=M;N.previous=f;M.rules.push(N)}else x[h]==="}"&&(N.end=h+1,N=N.parent||F);return bTM(F,p)};
bTM=function(p,x){var F=x.substring(p.start,p.end-1);p.parsedCssText=p.cssText=F.trim();p.parent&&(F=x.substring(p.previous?p.previous.end:p.parent.start,p.start-1),F=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(F),F=F.replace(uVk," "),F=F.substring(F.lastIndexOf(";")+1),F=p.parsedSelector=p.selector=F.trim(),p.atRule=F.indexOf("@")===0,p.atRule?F.indexOf("@media")===0?p.type=4:F.match(Y6$)&&(p.type=7,p.keyframesName=p.selector.split(uVk).pop()):F.indexOf("--")===
0?p.type=1E3:p.type=1);if(F=p.rules)for(var N=0,h=F.length,c=void 0;N<h&&(c=F[N]);N++)bTM(c,x);return p};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(p){return p.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var x=arguments[1],F=6-x.length;F--;)x="0"+x;return"\\"+x})};
wW6=function(p,x,F){F=F===void 0?"":F;var N="";if(p.cssText||p.rules){var h=p.rules;if(h&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(h))for(var c=0,M=h.length,f=void 0;c<M&&(f=h[c]);c++)N=wW6(f,x,N);else x?x=p.cssText:(x=p.cssText,x=x.replace(G5w,"").replace(VGw,""),x=x.replace(WRd,"").replace(HTr,"")),(N=x.trim())&&(N="  "+N+"\n")}N&&(p.selector&&(F+=p.selector+" {\n"),F+=N,p.selector&&(F+="}\n\n"));return F};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(p){p=p[0];return!!p&&!!p.selector&&p.selector.indexOf("--")===0};
og$=function(p){if(p=mL$[p])p._applyShimCurrentVersion=p._applyShimCurrentVersion||0,p._applyShimValidatingVersion=p._applyShimValidatingVersion||0,p._applyShimNextVersion=(p._applyShimNextVersion||0)+1};
OTB=function(p){return p._applyShimCurrentVersion===p._applyShimNextVersion};
LR$=function(p){p._applyShimValidatingVersion=p._applyShimNextVersion;p._validating||(p._validating=!0,jEp.then(function(){p._applyShimCurrentVersion=p._applyShimNextVersion;p._validating=!1}))};
Tad=function(p){if(!p)return"";typeof p==="string"&&(p=AHH(p));return wW6(p,Pqw)};
Bam=function(p){!p.__cssRules&&p.textContent&&(p.__cssRules=AHH(p.textContent));return p.__cssRules||null};
k5r=function(p,x,F,N){if(p){var h=!1,c=p.type;if(N&&c===4){var M=p.selector.match(Rip);M&&(window.matchMedia(M[1]).matches||(h=!0))}c===1?x(p):F&&c===7?F(p):c===1E3&&(h=!0);if((p=p.rules)&&!h)for(h=0,c=p.length,M=void 0;h<c&&(M=p[h]);h++)k5r(M,x,F,N)}};
UL$=function(p,x){var F=p.indexOf("var(");if(F===-1)return x(p,"","","");a:{var N=0;var h=F+3;for(var c=p.length;h<c;h++)if(p[h]==="(")N++;else if(p[h]===")"&&--N===0)break a;h=-1}N=p.substring(F+4,h);F=p.substring(0,F);p=UL$(p.substring(h+1),x);c=N.indexOf(",");if(c===-1)return x(F,N.trim(),"",p);h=N.substring(0,c).trim();N=N.substring(c+1).trim();return x(F,h,N,p)};
iTd=function(p){if(BQ!==void 0)return BQ;if(p.__cssBuild===void 0){var x=p.getAttribute("css-build");if(x)p.__cssBuild=x;else{a:{x=p.localName==="template"?p.content.firstChild:p.firstChild;if(x instanceof Comment&&(x=x.textContent.trim().split(":"),x[0]==="css-build")){x=x[1];break a}x=""}if(x!==""){var F=p.localName==="template"?p.content.firstChild:p.firstChild;F.parentNode.removeChild(F)}p.__cssBuild=x}}return p.__cssBuild||""};
$LJ=function(p,x,F,N){for(var h=x._noAccessors,c=Object.getOwnPropertyNames(x),M=0;M<c.length;M++){var f=c[M];if(!(f in N))if(h)p[f]=x[f];else{var K=Object.getOwnPropertyDescriptor(x,f);K&&(K.configurable=!0,Object.defineProperty(p,f,K))}}for(var t in IrB)x[t]&&(F[t]=F[t]||[],F[t].push(x[t]))};
eip=function(p,x,F){x=x||[];for(var N=p.length-1;N>=0;N--){var h=p[N];h?Array.isArray(h)?eip(h,x):x.indexOf(h)<0&&(!F||F.indexOf(h)<0)&&x.unshift(h):console.warn("behavior is null, check for missing or 404 import")}return x};
pkw=function(p,x){for(var F in x){var N=p[F],h=x[F];p[F]=!("value"in h)&&N&&"value"in N?Object.assign({value:N.value},h):h}};
NMp=function(p,x,F){var N={},h=function(){return x.apply(this,arguments)||this};
_.E(h,x);h._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(M)for(var K=0,t;K<M.length;K++)t=M[K],t.properties&&this.createProperties(t.properties),t.observers&&this.createObservers(t.observers,t.properties);p.properties&&this.createProperties(p.properties);p.observers&&this.createObservers(p.observers,p.properties);this._prepareTemplate()}else x._finalizeClass.call(this)};
h.prototype.created=function(){x.prototype.created.call(this);var K=N.created;if(K)for(var t=0;t<K.length;t++)K[t].call(this)};
h.prototype._registered=function(){var K=h.prototype;if(!K.hasOwnProperty("__hasRegisterFinished")){K.__hasRegisterFinished=!0;x.prototype._registered.call(this);bL&&f(K);K=Object.getPrototypeOf(this);var t=N.beforeRegister;if(t)for(var d=0;d<t.length;d++)t[d].call(K);if(t=N.registered)for(d=0;d<t.length;d++)t[d].call(K)}};
h.prototype._applyListeners=function(){x.prototype._applyListeners.call(this);var K=N.listeners;if(K)for(var t=0;t<K.length;t++){var d=K[t];if(d)for(var v in d)this._addMethodEventListenerToNode(this,v,d[v])}};
h.prototype._ensureAttributes=function(){var K=N.hostAttributes;if(K)for(var t=K.length-1;t>=0;t--){var d=K[t],v;for(v in d)this._ensureAttribute(v,d[v])}x.prototype._ensureAttributes.call(this)};
h.prototype.ready=function(){x.prototype.ready.call(this);var K=N.ready;if(K)for(var t=0;t<K.length;t++)K[t].call(this)};
h.prototype.attached=function(){x.prototype.attached.call(this);var K=N.attached;if(K)for(var t=0;t<K.length;t++)K[t].call(this)};
h.prototype.detached=function(){x.prototype.detached.call(this);var K=N.detached;if(K)for(var t=0;t<K.length;t++)K[t].call(this)};
h.prototype.attributeChanged=function(K,t,d){x.prototype.attributeChanged.call(this);var v=N.attributeChanged;if(v)for(var C=0;C<v.length;C++)v[C].call(this,K,t,d)};
_.R8.Object.defineProperties(h,{properties:{configurable:!0,enumerable:!0,get:function(){var K={};if(M)for(var t=0;t<M.length;t++)pkw(K,M[t].properties);pkw(K,p.properties);return K}},
observers:{configurable:!0,enumerable:!0,get:function(){var K=[];if(M)for(var t=0,d;t<M.length;t++)d=M[t],d.observers&&(K=K.concat(d.observers));p.observers&&(K=K.concat(p.observers));return K}}});
if(F){Array.isArray(F)||(F=[F]);var c=x.prototype.behaviors;var M=eip(F,null,c);h.prototype.behaviors=c?c.concat(F):M}var f=function(K){if(M)for(var t=M,d=0;d<t.length;d++)$LJ(K,t[d],N,x86);$LJ(K,p,N,Fj6)};
bL||f(h.prototype);h.generatedFrom=p;return h};
aRH=function(p){var x=typeof p!=="string"?p:{is:p,notifyObserversOnUndefined:!0};x.fastInit===void 0&&(x.fastInit=!0);return function(F){if(!x.disableInheritanceCheck&&Object.getPrototypeOf(F.prototype).constructor!==_.kM)throw Error("Nd");var N=F.prototype;N.is=x.is;qWp(N,"created",function(){this.hostElement=this;this.polymerController=this});
h46(N,F,x.fastInit);x.notifyObserversOnUndefined&&(N._overrideLegacyUndefined=!0);if(lRJ)for(var h=_.a(Object.getOwnPropertyNames(N)),c=h.next();!c.done;c=h.next()){c=c.value;var M=Object.getOwnPropertyDescriptor(N,c);M.enumerable===!1&&(M.enumerable=!0,Object.defineProperty(N,c,M))}if("template"in F)var f=function(){return F.template};
else x.template!==void 0&&(f=x.template);if(f!==void 0){var K;Object.defineProperty(N,"_template",{get:function(){K===void 0&&(K=f());return K},
set:function(t){K=t},
configurable:!0,enumerable:!0})}Polymer(N);F[cap]=N}};
M0Z=function(p){p=p===void 0?{}:p;p.fastInit===void 0&&(p.fastInit=!0);return function(x){if(!p.disableInheritanceCheck&&Object.getPrototypeOf(x.prototype).constructor!==U4)throw Error("Od");h46(x.prototype,x,p.fastInit)}};
h46=function(p,x,F){F=F===void 0?!1:F;D8$(x);F?qWp(p,"created",function(){this.disableEnforceFastDefaultValuesCheck||fR$(x,this)}):qWp(p,"ready",function(){for(var N={},h=_.a(ZEZ(this.behaviors)),c=h.next();!c.done;c=h.next())c=c.value,c.properties&&Object.assign(N,Kjm(this,c.properties));
Object.assign(N,Kjm(this,this.properties));fR$(x,this);h=_.a(Object.keys(N));for(c=h.next();!c.done;c=h.next())c=c.value,this[c]=N[c]})};
fR$=function(p,x){if(lRJ){p=new p;for(var F=_.a(Object.getOwnPropertyNames(p)),N=F.next();!N.done;N=F.next())N=N.value,x[N]=p[N];for(F=x;F&&F!==Object.prototype;F=Object.getPrototypeOf(F)){N=_.a(Object.getOwnPropertyNames(F));for(var h=N.next();!h.done;h=N.next())h=h.value,p.hasOwnProperty(h)||Object.defineProperty(p,h,qRk(x,h))}}else p.apply(x)};
qRk=function(p,x){return{get:function(){var F=p[x];return F instanceof Function?F.bind(p):F},
set:function(F){p[x]=F}}};
Kjm=function(p,x){if(!x)return{};for(var F={},N=_.a(Object.keys(x)),h=N.next();!h.done;h=N.next())if(h=h.value,!x[h].readOnly){var c=p[h];c!==void 0&&(F[h]=c)}return F};
D8$=function(p){var x=new p;p=p.prototype.properties||{};for(var F=_.a(Object.keys(p)),N=F.next();!N.done;N=F.next())if(N=N.value,x.hasOwnProperty(N)){var h=p[N];typeof h==="function"&&(p[N]=h={type:h});x[N]!=null&&h.type===Object&&(h.type=ZyH(x[N].constructor))}};
ZyH=function(p){for(var x=_.a(t0H),F=x.next();!F.done;F=x.next())if(F=F.value,p===F)return F;return Object};
d8z=function(p){return function(x,F){x.behaviors=x.behaviors||[];x.behaviors.push(p||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",x,F).prototype:void 0));Object.defineProperty(x,F,{get:function(){return this},
enumerable:!0,configurable:!0})}};
v5m=function(p){p=p===void 0?{}:p;return function(x,F){x.properties=x.properties||{};p.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?p.type=ZyH(Reflect.getMetadata("design:type",x,F)):p.type=String);var N=p,h=x.properties[F];x.properties[F]=h?Object.assign({},h,N):N}};
Jaz=function(p){return function(x,F){x.listeners=x.listeners||{};x.listeners[p]=F}};
CHw=function(){var p=_.we.apply(0,arguments);if(p.length===0)throw Error("Pd");return function(x,F){x.observers=x.observers||[];x.observers.push(F+"("+p.join(",")+")")}};
SRp=function(){var p=_.we.apply(0,arguments);return function(x,F,N){var h=Object.getOwnPropertyDescriptor(x,F).get,c="__compute__"+F;Object.defineProperty(x,c,{value:h,enumerable:!0});x.properties=x.properties||{};h=x.properties[F];h||(h={},x.properties[F]=h);h.computed=c+"("+p.join(",")+")";N.get=void 0}};
_.iL=function(p,x,F){_.Jm.call(this);this.JSC$9059_id_=null;this.usingListeners_=!1;this.JSC$9059_listener_=p;this.handler_=F;this.JSC$9059_win_=x||window;this.callback_=(0,_.CH)(this.JSC$9061_doAction_,this)};
I8=function(p){this.range_=p};
$M=function(p){this.range_=p};
xQ=function(p,x,F){_.Jm.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=p;this.scrollTimer_=new _.eB(50);this.JSC$9138_eventHandler_=new _.ps(this);this.scrollDelta_=new _.sT;this.containerIsActuallyContent_=p.tagName==="BODY"||p.tagName==="HTML";this.containerBounds_=rap(p);this.containerIsActuallyContent_&&(p=_.t_(),this.containerBounds_.height=p.height,this.containerBounds_.width=p.width);this.margin_=x||0;if(x){if(x=this.containerBounds_.clone(),p=this.margin_){var N=
Math.min(p,x.height*.25);x.top+=N;x.height-=2*N;p=Math.min(p,x.width*.25);x.left+=p;x.width-=2*p}}else x=this.containerBounds_;this.scrollBounds_=x;F||this.JSC$9138_eventHandler_.listen(_.y5(this.containerNode_),"mousemove",this.JSC$9140_onMouseMove);this.JSC$9138_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9140_onTick_)};
_.Fb=function(p){this.mechanism=p};
h8=function(p,x){this.JSC$9236_key_=p;this.JSC$9236_value_=x};
XkB=function(p){if(p>=55296&&p<=57343||p>1114111)return"\ufffd";p in E5p&&(p=E5p[p]);var x="";p>65535&&(p-=65536,x+=String.fromCharCode(p>>>10&1023|55296),p=56320|p&1023);return x+=String.fromCharCode(p)};
g5w=function(p,x){return p<x?1:-1};
z4M=function(){return function(p){return p.charAt(1)==="#"?p.charAt(2)==="X"||p.charAt(2)==="x"?XkB(parseInt(p.substr(3),16)):XkB(parseInt(p.substr(2),10)):Qvz[p.slice(1,-1)]}};
ya6=function(p){return p.slice(1,p.length-1).trim().replace(sv$,function(x){return n56[x]||" "})};
l0=function(p){return p===32||p===9};
c7=function(p,x){return x<p.length?p.charCodeAt(x):-1};
byr=function(p){for(;p;){if(p._lastLineBlank)return!0;var x=p.type;if(x==="list"||x==="item")p=p._lastChild;else break}return!1};
a9=function(p){if(Aa$.test(p)){var x=1,F=0,N=0;for(p[F]=="|"&&F++;F<p.length;){switch(p[F]){case "|":N=1;break;case " ":break;case "\t":break;default:N&&(N=0,x++)}F++}return unp.test(p)?-x:x}return 0};
YRM=function(p){return p=="table"||p=="row"||p=="cell"};
wkp=function(){return new Mz("document",[[1,1],[0,0]])};
Gap=function(){};
DI=function(){var p={safe:!1};p=p||{};p.softbreak=p.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=p};
o5M=function(p,x){var F="";if(p)if(p=p.toLowerCase(),p===" "||V0p.test(p))F="space";else if(Wjr.test(p))F="esc";else if(p.length==1){if(!x||Hyp.test(p))F=p}else F=m8p.test(p)?p.replace("arrow",""):p=="multiply"?"*":p;return F};
PH6=function(p,x){var F=p.hasModifiers;if(x.key)F=o5M(x.key,F);else if(x.detail&&x.detail.key)F=o5M(x.detail.key,F);else{F=x.keyIdentifier;var N="";F&&(F in Oyr?N=Oyr[F]:jvE.test(F)?(F=parseInt(F.replace("U+","0x"),16),N=String.fromCharCode(F).toLowerCase()):N=F.toLowerCase());(F=N)||(F=x.keyCode,N="",Number(F)&&(F>=65&&F<=90?N=String.fromCharCode(32+F):F>=112&&F<=123?N="f"+(F-112+1):F>=48&&F<=57?N=String(F-48):F>=96&&F<=105?N=String(F-96):N=Ljp[F]),F=N);F=F||""}return F===p.key&&(!p.hasModifiers||
!!x.shiftKey===!!p.shiftKey&&!!x.ctrlKey===!!p.ctrlKey&&!!x.altKey===!!p.altKey&&!!x.metaKey===!!p.metaKey)};
BMr=function(p){return p.length===1?{combo:p,key:p,event:"keydown"}:p.split("+").reduce(function(x,F){var N=F.split(":");F=N[0];N=N[1];F in TMJ?(x[TMJ[F]]=!0,x.hasModifiers=!0):(x.key=F,x.event=N||"keydown");return x},{combo:p.split(":").shift()})};
R4m=function(p){return p.trim().split(" ").map(function(x){return BMr(x)})};
kaz=function(p,x){if(p&&p.fn){var F=p.fn;p.fn=function(){try{F.apply(this,arguments)}catch(N){if(N instanceof fs)console.warn("Argument '"+N.arg+"'"+(x?" for method '"+x+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw N;}}}return p};
U8r=function(){var p=_.we.apply(0,arguments);return p.length===0?function(x){return x}:p.length===1?p[0]:p.reduce(function(x,F){return function(){return x(F.apply(null,_.se(_.we.apply(0,arguments))))}})};
iym=function(){var p=_.we.apply(0,arguments);return function(x){return function(F,N){F=x(F,N);var h=function(){throw Error("ze");},c={getState:F.getState,
dispatch:function(M){return h.apply(null,[M].concat(_.se(_.we.apply(1,arguments))))}};
N=p.map(function(M){return M(c)});
h=U8r.apply(null,_.se(N))(F.dispatch);return Object.assign({},F,{dispatch:h})}}};
e4M=function(p){Object.keys(p).forEach(function(x){var F=p[x];if(typeof F(void 0,{type:IRZ})==="undefined")throw Error("Ae`"+x);if(typeof F(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+$8d()})==="undefined")throw Error("Be`"+x+"`"+IRZ);})};
Ks=function(p){for(var x=Object.keys(p),F={},N=0;N<x.length;N++){var h=x[N];typeof p[h]==="function"&&(F[h]=p[h])}var c=Object.keys(F);try{e4M(F)}catch(f){var M=f}return function(f,K){f=f===void 0?{}:f;if(M)throw M;for(var t=!1,d={},v=0;v<c.length;v++){var C=c[v],X=f[C],Q=(0,F[C])(X,K);if(typeof Q==="undefined")throw f=K&&K.type,Error("Ce`"+(f?'"'+String(f)+'"':"(unknown type)")+"`"+C);d[C]=Q;t=t||Q!==X}return(t=t||c.length!==Object.keys(f).length)?d:f}};
psk=function(p,x,F){function N(){if(d)throw Error("De");return f}
function h(X){if(typeof X!=="function")throw Error("Ee`"+typeof X);if(d)throw Error("Fe");var Q=!0;t===K&&(t=K.slice());t.push(X);return function(){if(Q){if(d)throw Error("Ge");Q=!1;t===K&&(t=K.slice());var b=t.indexOf(X);t.splice(b,1);K=null}}}
function c(X){if(typeof X!=="object"||X===null)var Q=!1;else{for(Q=X;Object.getPrototypeOf(Q)!==null;)Q=Object.getPrototypeOf(Q);Q=Object.getPrototypeOf(X)===Q}if(!Q)throw Error("He`"+typeof X);if(typeof X.type==="undefined")throw Error("Ie");if(d)throw Error("Je");try{d=!0,f=M(f,X)}finally{d=!1}Q=K=t;for(var b=0;b<Q.length;b++)(0,Q[b])();return X}
if(typeof x==="function"&&typeof F==="function"||typeof F==="function"&&typeof arguments[3]==="function")throw Error("Ke");typeof x==="function"&&typeof F==="undefined"&&(F=x,x=void 0);if(typeof F!=="undefined"){if(typeof F!=="function")throw Error("Le`"+typeof F);return F(psk)(p,x)}if(typeof p!=="function")throw Error("Me`"+typeof p);var M=p,f=x,K=[],t=K,d=!1;c({type:IRZ});var v={},C=(v.dispatch=c,v.subscribe=h,v.getState=N,v.replaceReducer=function(X){if(typeof X!=="function")throw Error("Ne`"+
typeof X);M=X;c({type:xiE});return C},v[FZZ]=function(){var X={};
return X.subscribe=function(Q){function b(){Q.next&&Q.next(N())}
if(typeof Q!=="object"||Q===null)throw new TypeError("Oe`"+typeof Q);b();return{unsubscribe:h(b)}},X[FZZ]=function(){return this},X},v);
return C};
N8r=function(p){function x(){h&&(h=!1,p());c&&N()}
function F(){requestAnimationFrame(x)}
function N(){var f=Date.now();if(h){if(f-M<2)return;c=!0}else h=!0,c=!1,setTimeout(F,20);M=f}
var h=!1,c=!1,M=0;return N};
qz=function(p){return typeof p==="number"?p:parseFloat(p)||0};
hmH=function(p){return _.we.apply(1,arguments).reduce(function(x,F){return x+qz(p["border-"+F+"-width"])},0)};
_.g=function(p,x){x=OU(oM(x));p.innerHTML=x};
aq$=function(p){var x=lqp;x||(x=chz(),x=lqp=_.Q5.transpose(x));x=x[p];return typeof x==="string"?x:_.ZI(p)};
McJ=function(p){p=String(p).toLowerCase();var x=chz()[p];return typeof x==="string"?x:_.t8(p)};
Did=function(p){p=p.toLowerCase();p=chz()[p];return typeof p==="string"?p:null};
chz=function(){if(!fqM){for(var p=Object.assign({},KZM),x=_.a(q1p),F=x.next();!F.done;F=x.next())F=F.value,p[F.toLowerCase()]=F;fqM=p}return fqM};
dip=function(p,x){var F=window.customElements;return F&&F.get(p)||Zid[p]===!0?2:x.name==="HTMLUnknownElement"?1:x.name==="HTMLElement"&&tcz.test(p)?3:0};
CMd=function(p,x){switch(x){case "innerHTML":return vjM(p)===1?2:null;case "textContent":return p=vjM(p),p===1||p===6?1:null;default:var F,N;return(N=(F=Jhk[p.localName])==null?void 0:F[x])!=null?N:null}};
vjM=function(p){var x=p.localName,F=dip(x,p.constructor);switch(F){case 0:case 1:return S1E(x,p);case 3:case 2:return 1;default:_.Pb(F,"got an unknown element classification")}};
S1E=function(p,x){var F=Object.hasOwnProperty.call(rhE,p)?rhE[p]:null;return F!==null?F:Object.hasOwnProperty.call(Ejr,p)&&x instanceof SVGElement?Ejr[p]:null};
Xsm=function(p,x){return x};
QXH=function(p){return(p=p.split(gjZ,2))?{url:p[0],metadata:p[1]}:null};
sXM=function(p){var x=String(p.url).replace(zmk,encodeURIComponent);if(p=p.metadata){zmk.lastIndex=0;if(zmk.test(p))return null;x+=" "+p}return x};
Ah6=function(p){function x(t){var d=t.localName;if(!t.getAttribute("is")&&dip(d,t.constructor)===2){var v;return(v=K)!=null?v:K=document.createElement("polyresinuncustomized")}(t=f[d])||(t=f[d]=document.createElement(d));return t}
var F=p.reportHandler||void 0,N=p.safeTypesBridge||njZ,h=/^$/;if(p=p.allowedIdentifierPrefixes){p=_.a(p);for(var c=p.next();!c.done;c=p.next())h=new RegExp(h.source+"|^"+_.yhz(c.value))}F&&F(!1,"initResin",null);var M=bip(h,N,F),f={},K=null;return function(t,d,v){var C=t.nodeType;if(C!==Node.ELEMENT_NODE){if(C===Node.TEXT_NODE){d=t.parentElement;v=!d;if(d&&d.nodeType===Node.ELEMENT_NODE){C=d.localName;var X=dip(C,d.constructor);switch(X){case 0:case 1:d=S1E(C,d);v=d===1||d===6;break;case 3:case 2:v=
!0;break;default:_.Pb(X,"got an unknown element classification")}}if(v)return function(Y){return""+N(Y,"STRING",Y)}}return function(Y){if(!Y&&Y!==document.all)return Y;
F&&F(!0,"Failed to sanitize "+(t.parentElement&&t.parentElement.nodeName)+" #text node to value "+Y,t.parentElement);return d6}}var Q=t.localName;
C=x(t);var b=null;switch(v){case "attribute":if(McJ(d)in C)break;return function(Y){return Y};
case "property":if(d in C){b=CMd(C,d);break}if((X=Did(d))&&X in C)break;return function(Y){return Y};
default:_.Pb(v,"got an unknown resin type, expected either 'property' or 'attribute'")}var A=v==="attribute"?d.toLowerCase():aq$(d);b||(b=pQ6(Q,A,function(Y){var O=t.getAttribute(Y);return!O||/[\[\{]/.test(Y)?null:O}));
return function(Y){var O=v7,Fw=null;if(!Y&&Y!==document.all)return Y;if(b!=null){var R=M[b],ld=R.safeType;Fw=R.safeReplacement;ld&&(O=N(Y,ld,v7));O===v7&&(R.filterString?(O=String(N(Y,"STRING",Y)),O=R.filterString(Q,A,O)):R.filterRaw&&(O=R.filterRaw(Q,A,Y,t)),O===Fw&&(O=v7))}O===v7&&(O=Fw||d6,F&&F(!0,"Failed to sanitize attribute of <"+Q+">: <"+Q+" "+A+'="'+Y+'">',t));return O}}};
bip=function(p,x,F){return[,{filterRaw:function(N,h,c){return c},
filterString:void 0,safeReplacement:void 0,safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:void 0,safeType:"HTML"},{filterRaw:void 0,filterString:void 0,safeReplacement:uqp,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:uqp,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:d6,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:Y1p,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(N,h,c){c=
String(c).toLowerCase();return NgM(N,h,c)?c:d6},
safeReplacement:d6,safeType:void 0},,{filterRaw:void 0,filterString:function(N,h,c){return p.test(c)?c:d6},
safeReplacement:d6,safeType:"CONSTANT"},{filterRaw:function(N,h,c,M){if(typeof c==="string")var f=(f=c.match(wsz))?f.map(QXH).filter(Boolean):[];else if(Array.isArray(c))f=c;else return uqp;var K=f;f=[];var t=[],d={};if(Array.isArray(K))for(var v=0,C=K.length;v<C;++v){var X=K[v],Q=X&&X.url;if(Q){var b=x(Q,"URL",d);if(b){var A=b!==d;(A?f:t).push({url:A?b:Q,metadata:X.metadata})}}}else t.push(K);K=t.length?JSON.stringify(t):null;t=v7;if(f.length){if(!Array.isArray(f))throw Error();t=f.map(sXM).filter(Boolean).join(" , ")||
v7}K&&F&&F(!0,"Failed to sanitize attribute value of <"+N+">: <"+N+" "+h+'="'+c+'">: '+K,M);return t===v7?uqp:t},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
Ghm=function(p){var x=Ah6(p);return function(F,N,h,c){return c||c===document.all?x(F,N,h)(c):c}};
J8=function(p,x){function F(){function h(f,K,t){for(K=Reflect.getMetadata("parameters",f)||[];K.length<=t;)K.push(null);K[t]=K[t]||[];K[t].push(M);Reflect.defineMetadata(K,f);return f}
var c=_.we.apply(0,arguments);if(this instanceof F)return N.apply(this,c),this;var M=new (Function.prototype.bind.apply(F,[null].concat(_.se(c))));h.annotation=M;return h}
var N=VcZ(x);F.prototype.toString=function(){return"@"+p};
return F.annotationCls=F};
VcZ=function(p){return function(){var x=_.we.apply(0,arguments),F=this;p.forEach(function(N,h){h=x[h];if(Array.isArray(N))F[N[0]]=h&&h!==void 0?h:N[1];else for(var c in N)F[c]=h&&h[c]!==void 0?h[c]:N[c]})}};
WZE=function(p){return p!==void 0&&p!==null};
Cs=function(p){if(typeof p==="string")return p;if(p===void 0||p===null)return""+p;if(p.overriddenName)return p.overriddenName;if(p.name)return p.name;p=p.toString();var x=p.indexOf("\n");return x===-1?p:p.substring(0,x)};
HiM=function(p){p.__forward_ref__=HiM;p.toString=function(){return Cs(this())};
return p};
Sq=function(p){return typeof p==="function"&&p.hasOwnProperty("__forward_ref__")&&p.__forward_ref__===HiM?p():p};
miZ=function(p){return p?p.map(function(x){return new (Function.prototype.bind.apply(x.type.annotationCls,[null].concat(_.se(x.args?x.args:[]))))}):[]};
ojM=function(p){for(var x=[],F=0;F<p.length;++F){if(x.indexOf(p[F])>-1){x.push(p[F]);break}x.push(p[F])}return x};
Oid=function(p){return p.length>1?" ("+ojM(p.slice().reverse()).map(function(x){return Cs(x.token)}).join(" -> ")+")":""};
LZB=function(p,x,F,N){if(N){var h=Error("Ve``"+(N instanceof Error?N.message:N));h.ngOriginalError=N}else h=Error();h.addKey=jXJ;h.keys=[x];h.injectors=[p];h.constructResolvingMessage=F;h.message=h.constructResolvingMessage();h.ngOriginalError=N;return h};
jXJ=function(p,x){this.injectors.push(p);this.keys.push(x);this.message=this.constructResolvingMessage()};
PM6=function(p,x){return LZB(p,x,function(){return"No provider for "+Cs(this.keys[0].token)+"!"+Oid(this.keys)})};
T8w=function(p,x){return LZB(p,x,function(){return"Cannot instantiate cyclic dependency!"+Oid(this.keys)})};
B8m=function(p,x,F){return LZB(p,F,function(){var N=Cs(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+N+"!"+Oid(this.keys)+"."},x)};
Rm6=function(p,x){for(var F=[],N=0,h=x.length;N<h;N++){var c=x[N];c&&c.length!=0?F.push(c.map(Cs).join(" ")):F.push("?")}return Error("Ze`"+Cs(p)+"`"+F.join(", ")+"`"+Cs(p))};
pvm=function(p){var x=void 0,F=void 0;if(p&&p.useClass!==void 0){x=p.useClass;var N=Sq(p.useClass);var h=khH.factory(N);N=UiM(N)}else p&&p.useExisting!==void 0?(h=function(c){return c},N=[iid(r6.get(Sq(p.useExisting)))]):p&&p.useFactory!==void 0?(h=p.useFactory,N=Iq6(p.useFactory,p.deps)):(F=p.useValue,h=function(){return p.useValue},N=$id);
return new emH(h,N,x,F)};
FNd=function(p){return new xsw(r6.get(Sq(p.provide)),[pvm(p)],p.multi)};
hVJ=function(p){p=NJz(p,[]).map(FNd);for(var x=new Map,F=0;F<p.length;F++){var N=p[F],h=x.get(N.key.id);if(h){if(N.multiProvider!==h.multiProvider)throw Error("af`"+h+"`"+N);if(N.multiProvider)for(var c=0;c<N.resolvedFactories.length;c++)h.resolvedFactories.push(N.resolvedFactories[c]);else x.set(N.key.id,N)}else h=void 0,N.multiProvider?h=new xsw(N.key,N.resolvedFactories.slice(),N.multiProvider):h=N,x.set(N.key.id,h)}return Array.from(x.values())};
NJz=function(p,x){p.forEach(function(F){if(F instanceof l7k)x.push({provide:F,useClass:F});else if(F&&typeof F=="object"&&F.provide!==void 0)x.push(F);else if(F instanceof Array)NJz(F,x);else throw Error("Ye`"+F);});
return x};
Iq6=function(p,x){if(x){var F=x.map(function(N){return[N]});
return x.map(function(N){return ck6(p,N,F)})}return UiM(p)};
UiM=function(p){var x=khH.parameters(p);if(!x)return[];if(x.some(function(F){return F==null}))throw Rm6(p,x);
return x.map(function(F){return ck6(p,F,x)})};
ck6=function(p,x,F){var N=null,h=!1;if(!Array.isArray(x))return x instanceof a7p?M_M(x.token,h,null):M_M(x,h,null);for(var c=null,M=0;M<x.length;++M){var f=x[M];if(f instanceof l7k)N=f;else if(f instanceof a7p)N=f.token;else if(f instanceof Ds6)h=!0;else if(f instanceof f7d||f instanceof KNp)c=f}N=Sq(N);if(N!=null)return M_M(N,h,c);throw Rm6(p,F);};
M_M=function(p,x,F){return new qPm(r6.get(Sq(p)),x,F)};
ZFp=function(p,x){for(var F=Array(p.providers.length),N=0;N<p.providers.length;++N){var h=N;if(N<0||N>=p.providers.length)throw Error("$e`"+N);F[h]=x(p.providers[N])}return F};
t_w=function(p){return typeof p==="function"&&khH.parameters(p).every(function(x){return!!x})};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(p){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(p)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(p){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(p)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(p,x){var F,N;if(p.contains(x))return!0;p=_.Ef(p).querySelectorAll("content,slot");for(F=0;F<p.length;++F){var h=_.Ef(p[F]).getDistributedNodes();for(N=0;N<h.length;++N)if(h[N].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(h[N],x))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(p){p.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(p)&&p.preventDefault();p.targetTouches&&(p=p.targetTouches[0],ds6=p.pageX,v9$=p.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 p=0,x=Xb.length;p<x;p++)document.addEventListener(Xb[p],_._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 p=0,x=Xb.length;p<x;p++)document.removeEventListener(Xb[p],_._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(p){var x=_.Ef(p).rootTarget;p.type!=="touchmove"&&JkJ!==x&&(JkJ=x,CEE=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Ef(p).path));if(!CEE.length)return!0;if(p.type==="touchstart")return!1;p=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(p);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(CEE,p.deltaX,p.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(p){for(var x=[],F=p.indexOf(SPE),N=0;N<=F;N++)if(p[N].nodeType===Node.ELEMENT_NODE){var h=p[N],c=h.style;c.overflow!=="scroll"&&c.overflow!=="auto"&&(c=window.getComputedStyle(h));c.overflow!=="scroll"&&c.overflow!=="auto"||x.push(h)}return x};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(p,x,F){if(x||F)for(var N=Math.abs(F)>=Math.abs(x),h=0;h<p.length;h++){var c=p[h];if(N?F<0?c.scrollTop>0:c.scrollTop<c.scrollHeight-c.clientHeight:x<0?c.scrollLeft>0:c.scrollLeft<c.scrollWidth-c.clientWidth)return c}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(p){var x={deltaX:p.deltaX,deltaY:p.deltaY};"deltaX"in p||("wheelDeltaX"in p&&"wheelDeltaY"in p?(x.deltaX=-p.wheelDeltaX,x.deltaY=-p.wheelDeltaY):"wheelDelta"in p?(x.deltaX=0,x.deltaY=-p.wheelDelta):"axis"in p?(x.deltaX=p.axis===1?p.detail:0,x.deltaY=p.axis===2?p.detail:0):p.targetTouches&&(p=p.targetTouches[0],x.deltaX=ds6-p.pageX,x.deltaY=v9$-p.pageY));return x};
rk6=function(p){this.element=p;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
XvE=function(p){this.element=p;this.color=window.getComputedStyle(p).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");_.Ef(this.waveContainer).appendChild(this.wave);E9B(this)};
g6=function(p,x){for(var F in p)if(F.toLowerCase()===x.toLowerCase())return p[F]};
g9z=function(p,x){for(var F in p)if(F.toLowerCase()===x.toLowerCase()){delete p[F];break}};
zVm=function(p){p=_.Q5.clone(p);for(var x=0;x<Qwm.length;++x){var F=Qwm[x],N=g6(p,F);N&&(p["X-Goog-Upload-Header-"+F]=N,g9z(p,F))}return p};
swm=function(p){p=_.Q5.clone(p);g9z(p,"X-Goog-Upload-Status")};
ykk=function(p){return n9M.some(function(x){return x.test(p)})};
YPE=function(p,x){var F;var N=(F=p.formContent)==null?void 0:F.locale;F=N==null?void 0:N.split("-")[0];N=N&&bF6.includes(N)?N:F&&bF6.includes(F)?F:void 0;N=(N!=null?N:"en").replaceAll("-","_").toLowerCase();var h;p=((h=p.initializationData)==null?0:h.useNightlyRelease)?"nightly":"live";var c;return(x==null?0:(c=x.getEnableAlohaBinarySplit)==null?0:c.call(x))?_.xH(AkE,p):_.xH(up$,p,N)};
G3J=function(p,x,F,N){if(wvw)return wvw;var h=YPE(p,N);return wvw=x.feedbackV2GlobalObject?Promise.resolve(x.feedbackV2GlobalObject):new Promise(function(c,M){var f=_.KH("SCRIPT");_.UU(f,h);f.onload=function(){x.feedbackV2GlobalObject?c(x.feedbackV2GlobalObject):M(Error("df"))};
f.onerror=function(){M(Error("ef`"+h.toString()))};
F.body.appendChild(f)})};
WNp=function(p,x,F,N){if(V_$)return V_$;var h=YPE(p,N);return V_$=x.feedbackV2GlobalObject?Promise.resolve(x.feedbackV2GlobalObject):new Promise(function(c,M){var f=_.KH("SCRIPT");_.UU(f,h);f.onload=function(){x.feedbackV2GlobalObject?c(x.feedbackV2GlobalObject):M(Error("df"))};
f.onerror=function(){M(Error("ef`"+h.toString()))};
F.body.appendChild(f)})};
HFr=function(p,x,F,N,h){h=h===void 0?!0:h;var c,M,f,K,t;return _.D(function(d){switch(d.nextAddress){case 1:return c=Date.now(),_.q(d,G3J(p,F,N,x),2);case 2:M=d.yieldResult;if(!(h||((K=p.initializationData)==null?0:K.useNightlyRelease)||((t=p.initializationData)==null?0:t.isLocalServer))){f=M.initializeFeedbackClient(p,c,x);d.jumpTo(3);break}return _.q(d,M.initializeFeedbackClientAsync(p,c,x),4);case 4:f=d.yieldResult;case 3:return f.initiateAloha(),d.return(f)}})};
msr=function(p,x,F,N){var h,c,M;return _.D(function(f){if(f.nextAddress==1)return h=Date.now(),_.q(f,WNp(p,F,N.document,x),2);if(f.nextAddress!=3)return c=f.yieldResult,_.q(f,c.initializeFeedbackClientAsync(p,h,x,N),3);M=f.yieldResult;M.initiateAloha();return f.return(M)})};
o96=function(p,x,F){var N=!0;N=N===void 0?!0:N;var h,c,M,f,K,t,d,v,C,X;return _.D(function(Q){h=F||_.Mm;if((c=x)==null?0:(f=(M=c).getEnableAlohaBinarySplit)==null?0:f.call(M)){K=h;if(K.isFormOpened)throw t=Error("ff"),t.name="DuplicateFormError",t;K.isFormOpened=!0;p.callbacks=p.callbacks||{};d=p.callbacks.onClose||function(){};
p.callbacks.onClose=function(b){K.isFormOpened=!1;d(b)};
try{return Q.return(msr(p,x,K,h))}catch(b){throw K.isFormOpened=!1,b;}}else{v=h;if(v.isFormOpened)throw C=Error("ff"),C.name="DuplicateFormError",C;v.isFormOpened=!0;p.callbacks=p.callbacks||{};X=p.callbacks.onClose||function(){};
p.callbacks.onClose=function(b){v.isFormOpened=!1;X(b)};
try{return Q.return(HFr(p,x,v,h.document,N))}catch(b){throw v.isFormOpened=!1,b;}}_.JB(Q)})};
TJB=function(p,x){return _.D(function(F){return F.return(new Promise(function(N){var h=OFJ(x!=null?x:"")+"/aloha_form_properties?productId="+p;jw6(h,function(c){c=c.target;var M=null;try{var f=JSON,K=f.stringify;if(c.JSC$7652_xhr_){var t=c.JSC$7652_xhr_.responseText;t.indexOf(")]}'\n")==0&&(t=t.substring(5));var d=(0,_.QR)(t)}else d=void 0;M=z5$(LNJ,K.call(f,d))}catch(v){K=new LNJ,d=PEp(),d=_.zZ(d,13,!1),d=_.zZ(d,14,!0),d=_.zZ(d,15,!0),d=_.zZ(d,20,!1),M=_.f6(K,1,d)}N(M)},"GET","",{},2E3,!0)}))})};
OFJ=function(p){return ykk(p)?p:"https://www.google.com/tools/feedback"};
UsH=function(p){p=p.match(new RegExp(BJp,"gi"))||[];p=_.a(p);for(var x=p.next();!x.done;x=p.next()){x=x.value;a:{var F=_.a(RVH);for(var N=F.next();!N.done;N=F.next())if(N.value.test(x)){F=!1;break a}F=!0}if(!F)a:{F=_.a(k3k);for(N=F.next();!N.done;N=F.next())if(N.value.test(x)){F=!0;break a}F=!1}if(F)return!0}return!1};
iFp=function(p){switch(p){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"}};
$sJ=function(p){if(window.crypto&&window.crypto.getRandomValues)try{var x=Array(p),F=new Uint8Array(p);window.crypto.getRandomValues(F);for(var N=0;N<x.length;N++)x[N]=F[N];return x}catch(c){}x=Array(p);for(F=0;F<p;F++){N=Date.now();for(var h=0;h<N%23;h++)x[F]=Math.random();x[F]=Math.floor(Math.random()*256)}if(I7$)for(F=1,N=0;N<I7$.length;N++)x[F%p]^=x[(F-1)%p]/4^I7$.charCodeAt(N),F++;return x};
sf=function(p){p=$sJ(p);for(var x=[],F=0;F<p.length;F++)x.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(p[F]&63));return x.join("")};
paE=function(p){p&&_.E$("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:eVp,clientScreenNonce:p})};
xhB=function(p){return _.sd("client-screen-nonce-store",{})[p===void 0?0:p]};
F3B=function(p,x){x=x===void 0?0:x;var F=_.sd("client-screen-nonce-store");F||(F={},_.zn("client-screen-nonce-store",F));F[x]=p};
NWw=function(p){p=p===void 0?0:p;return p===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+p};
hUm=function(p){return _.sd(NWw(p===void 0?0:p))};
_.yR=function(p){return(p=hUm(p===void 0?0:p))?new _.ns({veType:p,youtubeData:void 0,jspbYoutubeData:void 0}):null};
ldB=function(){var p=_.sd("csn-to-ctt-auth-info");p||(p={},_.zn("csn-to-ctt-auth-info",p));return p};
cwr=function(){return Object.values(_.sd("client-screen-nonce-store",{})).filter(function(p){return p!==void 0})};
_.b0=function(p){p=xhB(p===void 0?0:p);if(!p&&!_.nt("USE_CSN_FALLBACK",!0))return null;p||(p="UNDEFINED_CSN");return p?p:null};
MtZ=function(p){for(var x=_.a(Object.values(adZ)),F=x.next();!F.done;F=x.next())if(_.b0(F.value)===p)return!0;return!1};
Dhd=function(p,x,F){var N=ldB();(F=_.b0(F))&&delete N[F];x&&(N[p]=x)};
A8=function(p){return ldB()[p]};
_.fdB=function(p,x,F,N){F=F===void 0?0:F;if(p!==xhB(F)||x!==_.sd(NWw(F)))if(Dhd(p,N,F),F3B(p,F),_.zn(NWw(F),x),x=function(){setTimeout(function(){paE(p)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(x)}catch(h){x()}else x()};
K3p=function(p,x){x=x===void 0?"":x;var F=[],N;for(N in p)if(p.hasOwnProperty(N)){var h=x!==""?x+"."+N:N;typeof p[N]==="object"?F.push.apply(F,_.se(K3p(p[N],h))):F.push([h,p[N]])}F.sort();return F};
_.YQ=function(p){var x=_.we.apply(1,arguments);if(!u0(p)||x.some(function(N){return!u0(N)}))throw Error("gf");
x=_.a(x);for(var F=x.next();!F.done;F=x.next())qHZ(p,F.value)};
qHZ=function(p,x){for(var F in x)if(u0(x[F])){if(F in p&&!u0(p[F]))throw Error("hf");F in p||(p[F]={});qHZ(p[F],x[F])}else if(ZqH(x[F])){if(F in p&&!ZqH(p[F]))throw Error("jf");F in p||(p[F]=[]);ttM(p[F],x[F])}else p[F]=x[F];return p};
ttM=function(p,x){x=_.a(x);for(var F=x.next();!F.done;F=x.next())F=F.value,u0(F)?p.push(qHZ({},F)):ZqH(F)?p.push(ttM([],F)):p.push(F);return p};
u0=function(p){return typeof p==="object"&&!Array.isArray(p)};
ZqH=function(p){return typeof p==="object"&&Array.isArray(p)};
vfp=function(p){for(var x=_.a(Object.entries(dhr)),F=x.next();!F.done;F=x.next())if(F=_.a(F.value),F.next(),F=F.next().value,F==="SLI_STATUS_"+p)return F;return"SLI_STATUS_UNKNOWN"};
_.w6=function(p,x,F,N){return Jwm(p,x,function(){return new _.ClZ(p,x,F,N)})};
_.SHm=function(){return _.w6("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
rwJ=function(){return _.w6("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
GZ=function(){return _.w6("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
EfM=function(){return _.w6("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
XaH=function(){return _.w6("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
gfr=function(){return _.w6("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
s$$=function(p){p&&(p.dataset?p.dataset[Q$$()]="true":_.$E([_.ei(zUw)],p,"data-loaded","true".toString()))};
nfd=function(p){return p?p.dataset?p.dataset[Q$$()]:p.getAttribute("data-loaded"):null};
Q$$=function(){return ywH.loaded||(ywH.loaded="loaded".replace(/\-([a-z])/g,function(p,x){return x.toUpperCase()}))};
_.VR=function(p,x,F){bqp(p,x,F===void 0?null:F)};
_.uQw=function(p,x){p&&x&&(p=""+_.$$(x),(p=Awp[p])&&_.oLJ(p))};
bqp=function(p,x,F){F=F===void 0?null:F;var N=_.YHm(p),h=document.getElementById(N),c=h&&nfd(h),M=h&&!c;c?x&&x():(x&&(c=_.es(N,x),x=""+_.$$(x),Awp[x]=c),M||(h=waH(p,N,function(){nfd(h)||(s$$(h),_.Ord(N),_.er(function(){_.LJE(N)},0))},F)))};
waH=function(p,x,F,N){N=N===void 0?null:N;var h=_.KH("SCRIPT");h.id=x;h.onload=function(){F&&setTimeout(F,0)};
h.onreadystatechange=function(){switch(h.readyState){case "loaded":case "complete":h.onload()}};
N&&h.setAttribute("nonce",N);_.UU(h,_.rv(p));p=document.getElementsByTagName("head")[0]||document.body;p.insertBefore(h,p.firstChild);return h};
_.YHm=function(p){var x=document.createElement("a");Wz(x,p);return"js-"+W7(x.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.W3r=function(){var p=_.Q5.clone(Gkm),x;return(new _.cZ(function(F,N){p.onSuccess=function(h){zhz(h)?F(new Vtm(h)):N(new _.H7("Request failed, status="+$F(h),"net.badstatus",h))};
p.onError=function(h){N(new _.H7("Unknown request error","net.unknown",h))};
p.onTimeout=function(h){N(new _.H7("Request timed out","net.timeout",h))};
x=_.NE("//googleads.g.doubleclick.net/pagead/id",p)})).thenCatch(function(F){if(F instanceof _.mw){var N;
(N=x)==null||N.abort()}return _.o9(F)})};
Hqw=function(p){var x=_.sd("INNERTUBE_HOST_OVERRIDE");x&&(p=String(x)+String(_.Of(p)));return p};
mhM=function(p){var x={};_.S("json_condensed_response")&&(x.prettyPrint="false");return p=KTm(p,x)};
_.jq=function(p){return jr(p)?"same-origin":"include"};
_.Ls=function(p){return jr(p)?"same-origin":"cors"};
P7=function(p,x,F){F=F===void 0?{}:F;p={method:x===void 0?"POST":x,mode:_.Ls(p),credentials:_.jq(p)};x={};for(var N=_.a(Object.keys(F)),h=N.next();!h.done;h=N.next())h=h.value,F[h]&&(x[h]=F[h]);Object.keys(x).length>0&&(p.headers=x);return p};
_.TZ=function(p,x){x=x===void 0?{}:x;return"service:"+p+"/"+Object.keys(x).sort().map(function(F){return F+":"+x[F]}).join("/")};
ofH=function(p){var x,F,N,h;p=(x=_.r(p,_.B7))==null?void 0:(F=x.watchEndpointSupportedOnesieConfig)==null?void 0:(N=F.html5PlaybackOnesieConfig)==null?void 0:(h=N.commonConfig)==null?void 0:h.url;if(!p)return[];x=new _.R9(p);return x.JSC$7886_domain_?["https://"+x.JSC$7886_domain_+"/generate_204"]:[]};
_.L3d=function(){return Oqd()||tTM()||j$d&&gq("version/")?!0:_.sd("EOM_VISITOR_DATA")?!1:!0};
PlB=function(p){var x=p.docid||p.video_id||p.videoId||p.id;if(x)return x;x=p.raw_player_response;x||(p=p.player_response)&&(x=JSON.parse(p));return x&&x.videoDetails&&x.videoDetails.videoId||null};
_.BW6=function(p){a:{var x="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(x="EMBEDDED_PLAYER_MODE_PFL");var F=p.raw_embedded_player_response;if(!F&&(p=p.embedded_player_response))try{F=JSON.parse(p)}catch(h){break a}if(F)b:for(var N in TW$)if(TW$[N]==F.embeddedPlayerMode){x=TW$[N];break b}}return x==="EMBEDDED_PLAYER_MODE_PFL"};
_.RUz=function(){if(_.S("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("nf");if(!_.L3d())return Error("of");var p=_.sd("PLAYER_VARS",{});if(_.Q5.get(p,"privembed",!1)=="1")return Error("pf");if(_.BW6(p))return Error("qf")};
kkM=function(p){return p.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Uf=function(p){return!isNaN(Number(p))&&!_.tz(p)};
_.I9=function(p,x,F,N){N=N===void 0?!0:N;var h=_.sd("VALID_SESSION_TEMPDATA_DOMAINS",[]),c=_.oD(window.location.href);c&&h.push(c);c=_.oD(p);if(_.oJ(h,c)||!c&&_.qm(p,"/"))if(h=document.createElement("a"),Wz(h,p),p=h.href)if(p=_.Of(p),p=_.i0(p))N&&!x.csn&&(x.itct||x.ved)&&(x=Object.assign({csn:_.b0()},x)),F?(F=parseInt(F,10),isFinite(F)&&F>0&&Uh6(p,x,F)):Uh6(p,x)};
Id$=function(p){var x=_.sd("VALID_SESSION_TEMPDATA_DOMAINS",[]),F=_.oD(window.location.href);F&&x.push(F);F=_.oD(p);if(!(_.oJ(x,F)||!F&&_.qm(p,"/")))return null;p=_.Of(p);(p=_.i0(p))?(p=iqp(p),p=(p=_.ax.get(p,void 0)||null)?_.Gn(p):{}):p=null;return p};
Uh6=function(p,x,F){p=iqp(p);x=x?_.hq(x):"";F=F||5;_.L3d()&&_.ME(p,x,F)};
iqp=function(p){for(var x=_.a($hw),F=x.next();!F.done;F=x.next())p=_.$Q(p,F.value);return"ST-"+W7(p).toString(36)};
eUp=function(p,x){p.commandMetadata&&_.r(p.commandMetadata,_.eq)&&_.r(p.commandMetadata,_.eq).url&&(p=_.VL(_.r(p.commandMetadata,_.eq).url).adurl)&&_.Zck(p)&&_.I9(_.Of(p),{encoded_ad_playback_context:x})};
_.pqp=function(p){if(p.requestFullscreen)p=p.requestFullscreen(void 0);else if(p.webkitRequestFullscreen)p=p.webkitRequestFullscreen();else if(p.mozRequestFullScreen)p=p.mozRequestFullScreen();else if(p.msRequestFullscreen)p=p.msRequestFullscreen();else if(p.webkitEnterFullscreen)p=p.webkitEnterFullscreen();else return Promise.reject(Error("sf"));return p instanceof Promise?p:Promise.resolve()};
_.xv=function(p){var x;_.nLz(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.pc()==p&&(x=document):x=p;if(x&&(p=_.nLz(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],x))){p.call(x)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.pc=function(){var p=p===void 0?!1:p;var x=_.nLz(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(p)for(;x&&x.shadowRoot;)x=x.shadowRoot.fullscreenElement;return x?x:null};
_.FJ=function(p,x){x=x===void 0?!0:x;p.addEventListener("wheel",xj6);p.overscrollConfig={cooldown:x}};
_.Nt=function(p){p.overscrollConfig=void 0;p.removeEventListener("wheel",xj6)};
xj6=function(p){var x=p.deltaY,F=p.target,N=null;if(window.Polymer&&window.Polymer.Element){if(F=p.path||p.composedPath&&p.composedPath()){F=_.a(F);for(var h=F.next();!h.done&&(h=h.value,!Ftw(h,x));h=F.next())if(h.overscrollConfig){N=h;break}}}else for(;F&&!Ftw(F,x);){if(F.overscrollConfig){N=F;break}F=F.parentElement}N&&(x=N.overscrollConfig,x.cooldown?(N=p.deltaY,F=x.lastDeltaY||0,x.lastDeltaY=N,h=x.lastStopped||0,F&&h&&F>0==N>0?Math.abs(F)>=Math.abs(N)?(N=h+1200,F=!1):(N=h+600,F=!0):(N=Date.now()+
600,F=!0),N>Date.now()&&(p.preventDefault(),F&&(x.lastStopped=Date.now()))):p.preventDefault())};
Ftw=function(p,x){return x<0&&p.scrollTop>0||x>0&&p.scrollTop<p.scrollHeight-p.clientHeight-1?(p=getComputedStyle(p).overflowY,p=="auto"||p=="scroll"):!1};
_.hG=function(p,x,F,N){N||(N={bubbles:!0,cancelable:!1,composed:!0});F!==null&&F!==void 0&&(N.detail=F);x=new CustomEvent(x,N);p.dispatchEvent(x);return x};
_.lA=function(p,x,F,N){x=new N_w(x,!(N===void 0||!N),F);_.hG(p,"yt-action",x);return x.returnValue};
_.Mt=function(p,x,F){return _.lA(p,x,F,!0)};
_.Dx=function(p,x,F){return _.lA(p,x,F)[0]};
_.Kc=function(p,x,F,N){x&&x.length&&x.forEach(function(h){var c=sCw(h);c&&(_.S("handle_service_request_actions")&&h.commandMetadata&&h.commandMetadata.webCommandMetadata&&h.commandMetadata.webCommandMetadata.sendPost?_.fc(F?F:p,[h]):_.Mt(p,c,[h,F,N]))})};
_.fc=function(p,x){var F=[p];x&&F.push.apply(F,x);x=_.lA(p,"yt-service-request",F);return x.length>0&&(x=x[0],_.hG(p,"yt-service-request-sent",x),x&&x.ajaxPromise)?(x.ajaxPromise.then(function(N){_.hG(p,"yt-service-request-completed",N)},function(N){_.hG(p,"yt-service-request-error",{error:N,
params:F})},p),x.ajaxPromise):_.qt()};
_.tG=function(p,x){if(_.S("handle_service_request_actions"))_.Kc(x,p,x);else{p=_.a(p);for(var F=p.next();!F.done;F=p.next()){F=F.value;var N=void 0;((N=_.r(F,_.Zx))==null?0:N.commands)?_.tG(_.r(F,_.Zx).commands,x):(N=void 0,((N=_.r(F,_.dH))==null?0:N.actions)?_.tG(_.r(F,_.dH).actions,x):(N=void 0,((N=_.r(F.commandMetadata,_.eq))==null?0:N.sendPost)?_.fc(x,[F]):_.Kc(x,[F],x)))}}};
_.lQw=function(p,x,F){x=x===void 0?{}:x;typeof x==="function"&&(x={callback:x});F||x._c&&x._c.jsl&&x._c.jsl.h||_.Q5.extend(x,{_c:{jsl:{h:_.sd("GAPI_HINT_PARAMS")}}});(x.gapiHintOverride||_.sd("GAPI_HINT_OVERRIDE"))&&(F=_.VL(document.location.href).gapi_jsh)&&_.Q5.extend(x,{_c:{jsl:{h:F}}});h_d(p,x)};
_.JG=function(p,x,F){x=x===void 0?{}:x;p=(p=p in v5?v5[p]:F)||"";F={};for(var N in x){F={key$jscomp$782:F.key$jscomp$782};F.key$jscomp$782=N;var h=function(c){return function(){return String(x[c.key$jscomp$782])}}(F);
p=p.replace(new RegExp("\\$\\{"+F.key$jscomp$782+"\\}","gi"),h);p=p.replace(new RegExp("\\$"+F.key$jscomp$782,"gi"),h)}return p};
_.Cc=function(p,x){return ccr(p in v5?v5[p]:{},x)};
ccr=function(p,x){var F=_.sd("I18N_PLURAL_RULES");F||(F=function(N){return N==1?"one":"other"});
return(p=p["case"+x]||p[F(x)])?p.replace("#",x.toString()):x+""};
Dj$=function(p){var x=aQH(p),F=document.getElementById(x),N=F&&nfd(F);N||F&&!N||(F=MXH(p,x,function(){if(!nfd(F)){s$$(F);_.Ord(x);var h=_.Sz(_.LJE,x);_.er(h,0)}}))};
MXH=function(p,x,F){var N=document.createElement("link");N.id=x;N.onload=function(){F&&setTimeout(F,0)};
p=_.rv(p);_.eP(N,p,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(N);return N};
aQH=function(p){var x=_.KH("A");Wz(x,XK(p));return"css-"+W7(x.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.Ktd=function(p){var x=fQw();p!==x&&(x=_.rH(),!_.S("web_autonav_allow_off_by_default")&&p||_.Ez(0,141,!0),_.Ez(0,140,!p),x.save())};
fQw=function(){var p=_.rH();return _.S("web_autonav_allow_off_by_default")&&!p.getFlag(141)&&_.sd("AUTONAV_OFF_BY_DEFAULT")?!1:!p.getFlag(140)};
q8J=function(p,x){var F,N;p=((F=p.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(N=F.videoAuthorizationToken)==null?void 0:N.credentialTransferTokens)||[];for(F=0;F<p.length;++F)if(p[F].scope===x)return p[F].token||void 0};
ZWH=function(p){for(var x=0,F=0;F<p.length;F++)x=x*31+p.charCodeAt(F),F<p.length-1&&(x%=0x800000000000);return x%1E5};
_.XJ=function(p){return _.A9("ytcsi."+(p||"")+"data_")||tXp(p)};
_.djk=function(p){p=_.XJ(p);p.metadata||(p.metadata={});return p.metadata};
_.vzd=function(p){p=_.XJ(p);p.tick||(p.tick={});return p.tick};
_.gH=function(p){p=_.XJ(p);if(p.gel){var x=p.gel;x.gelInfos||(x.gelInfos={});x.gelTicks||(x.gelTicks={})}else p.gel={gelTicks:{},gelInfos:{}};return p.gel};
_.JcB=function(p){p=_.gH(p);p.gelInfos||(p.gelInfos={});return p.gelInfos};
C3k=function(p){var x=_.XJ(p).nonce;x||(x=sf(16),_.XJ(p).nonce=x);return x};
tXp=function(p){var x={tick:{},info:{}};_.ox("ytcsi."+(p||"")+"data_",x);return x};
S8m=function(){var p=_.A9("ytcsi.debug");p||(p=[],_.ox("ytcsi.debug",p),_.ox("ytcsi.reference",{}));return p};
_.Qp=function(p){p=p||"";var x=rc$();if(x[p])return x[p];var F=S8m(),N={timerName:p,info:{},tick:{},span:{},jspbInfo:[]};F.push(N);return x[p]=N};
Ezz=function(p){p=p||"";var x=rc$();x[p]&&delete x[p];var F=S8m(),N={timerName:p,info:{},tick:{},span:{},jspbInfo:[]};F.push(N);x[p]=N};
rc$=function(){var p=_.A9("ytcsi.reference");if(p)return p;S8m();return _.A9("ytcsi.reference")};
_.gzE=function(p){return Xq$[p]||"LATENCY_ACTION_UNKNOWN"};
nzB=function(p,x,F){F=F===void 0?{}:F;var N=!1;_.nt("ytLoggingEventsDefaultDisabled",!1)&&(N=!0);N=N?null:rj;F=F===void 0?{}:F;var h=Math.round(F.timestamp||(0,_.Lf)());_.tT(x,1,h<Number.MAX_SAFE_INTEGER?h:0);h=new Q_Z;if(F.lact)_.tT(h,1,isFinite(F.lact)?F.lact:-1);else if(F.timestamp)_.tT(h,1,-1);else{var c=_.U0();_.tT(h,1,isFinite(c)?c:-1)}if(F.sequenceGroup&&!_.S("web_gel_sequence_info_killswitch")){c=F.sequenceGroup;var M=egZ(c),f=new z_p;f.setIndex(M);_.J_(f,1,c);_.f6(h,3,f);F.endOfSequence&&
delete s_$[F.sequenceGroup]}_.f6(x,33,h);(F.sendIsolatedPayload?lSz:c0B)(p,{endpoint:"log_event",payload:x,cttAuthInfo:F.cttAuthInfo,dangerousLogToVisitorSession:F.dangerousLogToVisitorSession},N)};
_.sz=function(){return(_.S("csi_use_time_origin")||_.S("csi_use_time_origin_tvhtml5"))&&_.z6.timeOrigin?Math.floor(_.z6.timeOrigin):_.z6.timing.navigationStart};
_.yc$=function(p,x){_.nc("_start",p,x)};
_.yp=function(p,x){if(!_.S("web_csi_action_sampling_enabled")||!_.XJ(x).actionDisabled){var F=_.Qp(x||"");_.YQ(F.info,p);p.loadType&&(F=p.loadType,_.djk(x).loadType=F);_.YQ(_.JcB(x),p);F=C3k(x);x=_.XJ(x).cttAuthInfo;bWr().info(p,F,x)}};
Acr=function(){var p,x,F,N;return((N=_.J().resolve(_.Bw(JT))==null?void 0:(p=$Cz())==null?void 0:(x=p.loggingHotConfig)==null?void 0:(F=x.csiConfig)==null?void 0:F.debugTicks)!=null?N:[]).map(function(h){return Object.values(h)[0]})};
_.nc=function(p,x,F){if(!_.S("web_csi_action_sampling_enabled")||!_.XJ(F).actionDisabled){var N=C3k(F),h;if(h=_.S("web_csi_debug_sample_enabled")&&N){(_.J().resolve(_.Bw(JT))==null?0:$Cz())&&!u7p&&(u7p=!0,_.nc("gcfl",(0,_.Lf)(),F));var c,M,f;h=(_.J().resolve(_.Bw(JT))==null?void 0:(c=$Cz())==null?void 0:(M=c.loggingHotConfig)==null?void 0:(f=M.csiConfig)==null?void 0:f.debugSampleWeight)||0;if(c=h!==0)b:{c=Acr();if(c.length>0)for(M=0;M<c.length;M++)if(p===c[M]){c=!0;break b}c=!1}c?(h=ZWH(N)%h!==0,
_.XJ(F).debugTicksExcludedLogged||(c={},c.debugTicksExcluded=h,_.yp(c,F)),_.XJ(F).debugTicksExcludedLogged=!0):h=!1}if(!h){p[0]!=="_"&&Y8$(p,F,x);h=_.Qp(F||"");h.tick[p]=x||(0,_.Lf)();if(h.callback&&h.callback[p])for(h=_.a(h.callback[p]),c=h.next();!c.done;c=h.next())c=c.value,c();h=_.gH(F);h.gelTicks&&(h.gelTicks[p]=!0);c=_.vzd(F);h=x||(0,_.Lf)();_.S("log_repeated_ytcsi_ticks")?p in c||(c[p]=h):c[p]=h;c=_.XJ(F).cttAuthInfo;p==="_start"?bWr().baseline(N,x,c):bWr().tick(p,N,x,c);_.wqd(F);return h}}};
Y8$=function(p,x,F){if(_.z6.mark)if(p.startsWith("mark_")||(p="mark_"+p),x&&(p+=" ("+x+")"),F===void 0||_.S("web_csi_disable_alt_time_performance_mark"))_.z6.mark(p);else{F=_.S("csi_use_performance_navigation_timing")||_.S("csi_use_performance_navigation_timing_tvhtml5")?F-_.z6.timeOrigin:F-(_.z6.timeOrigin||_.z6.timing.navigationStart);try{_.z6.mark(p,{startTime:F})}catch(N){}}};
GiE=function(){var p,x=(p=_.z6.getEntriesByType)==null?void 0:p.call(_.z6,"mark");x&&x.forEach(function(F){if(F.name.startsWith("mark_")){var N;(N=_.z6.clearMarks)==null||N.call(_.z6,F.name)}})};
_.VX$=function(){switch(s7k()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.Wtk=function(p){var x={},F=function(c,M,f){M=M.match("_rid")?M.split("_rid")[0]:M;typeof f==="number"&&(f=JSON.stringify(f));c.requestIds?c.requestIds.push({endpoint:M,id:f}):c.requestIds=[{endpoint:M,id:f}]};
p=_.a(Object.entries(p));for(var N=p.next();!N.done;N=p.next()){var h=_.a(N.value);N=h.next().value;h=h.next().value;switch(N){case "GetBrowse_rid":F(x,N,h);break;case "GetGuide_rid":F(x,N,h);break;case "GetHome_rid":F(x,N,h);break;case "GetPlayer_rid":F(x,N,h);break;case "GetSearch_rid":F(x,N,h);break;case "GetSettings_rid":F(x,N,h);break;case "GetTrending_rid":F(x,N,h);break;case "GetWatchNext_rid":F(x,N,h);break;case "yt_red":x.isRedSubscriber=!!h;break;case "yt_ad":x.isMonetized=!!h}}return x};
mjp=function(p,x,F,N,h,c){if(!_.S("web_csi_action_sampling_enabled")||!_.XJ(c).actionDisabled){var M=_.gH(c);if(M.gelSpans)M.gelSpans[p]=!0;else{var f={};M.gelSpans=(f[p]=!0,f)}HWp++;p={spanName:p,spanLengthUsec:String(Math.round(x*1E3)),spanNonce:HWp};N&&(p.spanInfo=N);h&&(p.parentSpanNonce=h);F&&(p.spanStartTimeUsec=String(Math.round(F*1E3)));_.Qp(c||"").span[String(p.spanName)]=p;F=_.gH(c);F.gelSpans||(F.gelSpans={});_.YQ(F.gelSpans,p);F=C3k(c);c=_.XJ(c).cttAuthInfo;bWr().span(p,F,c);return p.spanNonce}};
_.ozE=function(p){var x=_.bA("aft",p);if(x)return x;x=_.sd((p||"")+"TIMING_AFT_KEYS",["ol"]);for(var F=x.length,N=0;N<F;N++){var h=_.bA(x[N],p);if(h)return h}return NaN};
_.OWp=function(p,x){_.ox("ytglobal.timing"+(x||"")+"ready_",p)};
_.bA=function(p,x){if(p=_.vzd(x)[p])return typeof p==="number"?p:p[p.length-1]};
_.wqd=function(p){var x=_.bA("_start",p),F=_.ozE(p),N=!j_p;x&&F&&N&&(pTw(LtM,new P3Z(Math.round(F-x),p)),j_p=!0)};
B_J=function(p){tXp(p);T_J();GiE();p||(_.sd("TIMING_ACTION")&&_.zn("PREVIOUS_ACTION",_.sd("TIMING_ACTION")),_.zn("TIMING_ACTION",""))};
_.R_E=function(p){p=p===void 0?{}:p;_.bO(function(){AG();Ezz();B_J();_.OWp(!1);p.cttAuthInfo&&(_.XJ().cttAuthInfo=p.cttAuthInfo);_.zn("TIMING_AFT_KEYS",[]);p.isHot?_.uA({loadType:"hot"}):_.uA({loadType:"warm"});_.zn("TIMING_ACTION","");delete _.sd("TIMING_INFO",{}).yt_lt;_.bO(_.yc$)(p.startTime,void 0)})()};
_.Yv=function(p,x,F,N){x=x===void 0?{}:x;_.bO(function(){var h=F?F:p;kiM(h);var c=x.sampleRate;if(!_.S("web_csi_action_sampling_enabled")||c===void 0||c<=1)c=!1;else{var M=C3k(h);c=ZWH(M)%c!==0}c&&(_.XJ(h).actionDisabled=!0);_.Qp(h||"").info.actionType=p;x.cttAuthInfo&&(_.XJ(h).cttAuthInfo=x.cttAuthInfo);_.zn(h+"TIMING_ACTION",p);_.bO(_.yc$)(x.startTime,h);c={actionType:N||_.gzE(p)};x.logPreviousAction&&(c.previousAction=_.gzE(_.sd("TIMING_ACTION")));(M=_.b0())&&M!=="UNDEFINED_CSN"&&(c.clientScreenNonce=
M);_.uA(c,h);_.OWp(!0,h)})()};
kiM=function(p){_.bO(function(){AG(p);Ezz(p);B_J(p)})()};
UjM=function(){_.bO(function(){var p=[],x;for(x in _.A9("ytcsi.".slice(0,-1)))x.endsWith("data_")&&p.push(x.slice(0,-5));p=_.a(p);for(x=p.next();!x.done;x=p.next())kiM(x.value);AG()})()};
_.IQZ=function(p){return _.bO(function(){return _.iWH("_start",p)})()};
_.uA=function(p,x,F){_.bO(_.yp)(p,x,F===void 0?!1:F)};
_.wH=function(p,x,F){return _.bO(_.nc)(p,x,F)};
$jr=function(p,x,F,N){var h=(0,_.Lf)();return function(c,M){var f=void 0;x&&c?f=Object.assign({},x,c):x?f=x:c&&(f=c);c=(0,_.Lf)()-h;_.bO(mjp)(p,c,h,f,M||F,N)}};
_.iWH=function(p,x){return _.bO(function(){var F=_.vzd(x);return p in F})()};
pxm=function(p){if(!_.S("universal_csi_network_ticks"))return"";p=_.F_(p)||"";for(var x=Object.keys(e_M),F=0;F<x.length;F++){var N=x[F];if(p.includes(N))return N}return""};
FEr=function(p){if(!_.S("universal_csi_network_ticks"))return function(){};
var x=e_M[p];return x?(_.G6(x),function(){var F=_.S("universal_csi_network_ticks")?(F=x7p[p])?_.G6(F):!1:!1;return F}):function(){}};
_.G6=function(p,x,F){return _.bO(function(){if(_.iWH(p,F))return!1;_.wH(p,x,F);return!0})()};
_.Vp=function(p,x,F){_.bO(function(){if(!_.IQZ(F)||_.iWH(p,F))return!1;_.wH(p,x,F);return!0})()};
_.W5=function(p){return _.bO(_.bA)(p,void 0)};
AG=function(p){_.IQZ(p)&&_.wH("aa",void 0,p)};
_.apd=function(p,x,F,N,h,c,M,f,K){var t=NBw();f=new _.ns({veType:x,youtubeData:c,jspbYoutubeData:f});c=H5({},t);h&&(c.cttAuthInfo=h);h={csn:t,pageVe:f.getAsJson()};_.S("expectation_logging")&&K&&K.screenCreatedLoggingExpectations&&(h.screenCreatedLoggingExpectations=K.screenCreatedLoggingExpectations);F&&F.visualElement?(h.implicitGesture={parentCsn:F.clientScreenNonce,gesturedVe:F.visualElement.getAsJson()},M&&(h.implicitGesture.gestureType=M)):F&&_.no(new _.qE("newScreen() parent element does not have a VE - rootVe",
x));N&&(h.cloneCsn=N);p?Sl("screenCreated",h,p,c):_.E$("screenCreated",h,c);pTw(avr,new hSZ(t));mT.clear();lp$.clear();cn$.clear();return t};
of=function(p,x,F,N,h){_.MCB(p,x,F,[N],h===void 0?!1:h)};
_.MCB=function(p,x,F,N,h){h=h===void 0?!1:h;for(var c=H5({cttAuthInfo:A8(x)||void 0},x),M=_.a(N),f=M.next();!f.done;f=M.next()){f=f.value;var K=f.getAsJson();(_.Q5.isEmpty(K)||!K.trackingParams&&!K.veType)&&_.no(Error("tf"));if(_.S("no_client_ve_attach_unless_shown")){var t=D7m(f,x);if(K.veType&&!lp$.has(t)&&!cn$.has(t)&&!h){if(!_.S("il_attach_cache_limit")||mT.size<1E3){mT.set(t,[p,x,F,f]);return}_.S("il_attach_cache_limit")&&mT.size>1E3&&_.no(new _.qE("IL Attach cache exceeded limit"))}f=D7m(F,
x);mT.has(f)?fpz(F,x):cn$.set(f,!0)}}N=N.filter(function(d){d.csn!==x?(d.csn=x,d=!0):d=!1;return d});
F={csn:x,parentVe:F.getAsJson(),childVes:_.zy(N,function(d){return d.getAsJson()})};
x==="UNDEFINED_CSN"?Oz("visualElementAttached",c,F):p?Sl("visualElementAttached",F,p,c):_.E$("visualElementAttached",F,c)};
qqr=function(p,x,F,N,h){KEw(p,x,F,h)};
KEw=function(p,x,F,N){Z7p(F,x);var h=H5({cttAuthInfo:A8(x)||void 0},x);F={csn:x,ve:F.getAsJson(),eventType:1};N&&(F.clientData=N);x==="UNDEFINED_CSN"?Oz("visualElementShown",h,F):p?Sl("visualElementShown",F,p,h):_.E$("visualElementShown",F,h)};
d7d=function(p,x,F,N){Z7p(F,x);var h=H5({cttAuthInfo:A8(x)||void 0},x);F={csn:x,ve:F.getAsJson(),eventType:4};N&&(F.clientData=N);x==="UNDEFINED_CSN"?Oz("visualElementShown",h,F):p?Sl("visualElementShown",F,p,h):_.E$("visualElementShown",F,h)};
vuE=function(p,x,F,N,h){var c=(N=N===void 0?!1:N)?16:8;N=H5({cttAuthInfo:A8(x)||void 0,endOfSequence:N},x);F={csn:x,ve:F.getAsJson(),eventType:c};h&&(F.clientData=h);x==="UNDEFINED_CSN"?Oz("visualElementHidden",N,F):p?Sl("visualElementHidden",F,p,N):_.E$("visualElementHidden",F,N)};
CU$=function(p,x,F,N,h){JnH(p,x,F,void 0,N,h)};
JnH=function(p,x,F,N,h){Z7p(F,x);N=N||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var c=H5({cttAuthInfo:A8(x)||void 0},x);F={csn:x,ve:F.getAsJson(),gestureType:N};h&&(F.clientData=h);x==="UNDEFINED_CSN"?Oz("visualElementGestured",c,F):p?Sl("visualElementGestured",F,p,c):_.E$("visualElementGestured",F,c)};
SqE=function(p,x,F,N){var h=H5({cttAuthInfo:A8(x)||void 0},x);F={csn:x,ve:F.getAsJson(),clientData:N};x==="UNDEFINED_CSN"?Oz("visualElementStateChanged",h,F):p?Sl("visualElementStateChanged",F,p,h):_.E$("visualElementStateChanged",F,h)};
rnM=function(){var p=$sJ(16);for(var x=[],F=0;F<p.length;F++)x.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(p[F]&63));return x.join("")};
Oz=function(p,x,F){Eup.push({payloadName:p,payload:F,jspbPayload:void 0,options:x});Xxp||(Xxp=Duw())};
cZH=function(p){if(Eup){for(var x=_.a(Eup),F=x.next();!F.done;F=x.next())F=F.value,F.payload&&(F.payload.csn=p.csn,_.E$(F.payloadName,F.payload,F.options));Eup.length=0}Xxp=0};
D7m=function(p,x){return""+p.getAsJson().veType+p.getAsJson().veCounter+x};
Z7p=function(p,x){if(_.S("no_client_ve_attach_unless_shown")){var F=D7m(p,x);lp$.set(F,!0);fpz(p,x)}};
fpz=function(p,x){p=D7m(p,x);mT.has(p)&&(x=mT.get(p)||[],of(x[0],x[1],x[2],x[3],!0),mT.delete(p))};
H5=function(p,x){_.S("log_sequence_info_on_gel_web")&&(p.sequenceGroup=x);return p};
_.jz=function(p,x,F){_.bO(of)(void 0,p,x,F)};
_.Lc=function(p,x){_.bO(qqr)(void 0,p,x,void 0,void 0,void 0)};
_.P5=function(p,x,F){_.bO(function(){_.w1(x,function(N){d7d(void 0,p,N,F)})})()};
_.T6=function(p,x,F,N){_.bO(function(){_.w1(x,function(h){vuE(void 0,p,h,F,N)})})()};
_.B5=function(p,x,F){_.bO(CU$)(void 0,p,x,F,void 0)};
_.Rf=function(p,x,F,N){_.bO(JnH)(void 0,p,x,F,N,void 0)};
_.kv=function(p,x,F){_.bO(SqE)(void 0,p,x,F,void 0)};
guJ=function(p,x){Uz.set(p,x)};
QSd=function(p,x){var F=Object.keys(p);p=new _.qE("[Command Handler] "+x,{filteredCommandNames:F,originalCommand:p});_.zj(p)};
zS$=function(p,x){QSd(p,x+" was called but not set")};
sSM=function(p){return function(){return new p}};
iA=function(p){return function(){return _.J().resolve(p)}};
nuZ=function(p,x){var F=_.r(p,_.Yl);if(F&&(F=x[F.signal]))return F();p=_.a(Object.keys(p));for(F=p.next();!F.done;F=p.next())if(F=F.value,x[F]&&(F=x[F]))return F()};
If=function(p,x,F,N){return{browseEndpoint:{browseId:p},commandMetadata:{webCommandMetadata:{url:x,rootVe:F,webPageType:N===void 0?"WEB_PAGE_TYPE_BROWSE":N}}}};
ynk=function(p,x,F){var N=x=x===void 0?0:x;F=F===void 0?0:F;var h=F-N;return _.$v(p,"PPSV",void 0,void 0,(h>600?0:h<60||F<=0||N/F>.9)?0:x)};
_.$v=function(p,x,F,N,h){var c="/watch?v="+p;p={videoId:p};x&&(p.playlistId=x,c+="&list="+x);N&&(c+="&pp="+N);h&&(p.startTimeSeconds=h,c+="&t="+h+"s");x={watchEndpoint:p,commandMetadata:{webCommandMetadata:{url:c,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};F&&(x.clickTrackingParams=F);N&&(_.r(x,_.B7).playerParams=N);return x};
b7m=function(p){return{browseEndpoint:{browseId:"VL"+p},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+p,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
An6=function(p){if(p){var x;if(p){var F=(x=_.r(p.commandMetadata,_.eq))==null?void 0:x.url;x=!(!F||F==="/service_ajax")}else x=!1;if(x)return p;var N;if(p=(N=_.r(p,_.Zx))==null?void 0:N.commands)for(N=_.a(p),p=N.next();!p.done;p=N.next())if(p=An6(p.value))return p}};
_.ez=function(p){return{runs:[{text:p}]}};
u5p=function(p,x){return p&&x?{runs:[{text:p,navigationEndpoint:x}]}:void 0};
p1=function(p){return p?_.ez(p):void 0};
_.xO=function(p){return p?{simpleText:p}:void 0};
_.F4=function(p){var x=p.type;p=p.payload;x={type:x};p!==void 0&&(x.payload=p);return x};
Yq6=function(p,x,F){for(var N=Object.assign({},p),h=_.a(Object.keys(x)),c=h.next();!c.done;c=h.next()){c=c.value;var M=p[c],f=x[c];if(f===void 0)delete N[c];else if(M===void 0)N[c]=f;else if(Array.isArray(f)&&Array.isArray(M))N[c]=F?[].concat(_.se(M),_.se(f)):f;else if(!Array.isArray(f)&&_.IJ(f)&&!Array.isArray(M)&&_.IJ(M))N[c]=Yq6(M,f,F);else if(typeof f===typeof M)N[c]=f;else return x=new _.qE("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:c,originalValue:M,updateValue:f}),
_.zj(x),p}return N};
VC$=function(p){if(!p.length)return"";try{if(wxr)return wxr.decode(p);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(p)}catch(M){}for(var x=0,F=[],N=p.length;x<N;){for(var h=0;h<1024&&x<N;){var c=p[x++];if(c<128)GRJ[h++]=c;else{if(c<224)c=(c&31)<<6|p[x++]&63;else if(c<240)c=(c&15)<<12|(p[x++]&63)<<6|p[x++]&63;else{if(h+1===1024){--x;break}c=(c&7)<<18|(p[x++]&63)<<12|(p[x++]&63)<<6|p[x++]&63;c-=65536;GRJ[h++]=55296|c>>10;c=56320|c&1023}GRJ[h++]=c}}c=String.fromCharCode.apply(String,
GRJ);h<1024&&(c=c.substring(0,h));F.push(c)}return F.join("")};
H76=function(p,x){var F;if((F=WEm)==null?0:F.encodeInto)return x=WEm.encodeInto(p,x),x.read<p.length?p.length*4:x.written;for(var N=F=0;N<p.length;N++){var h=p.charCodeAt(N);h<128?x[F++]=h:(h<2048?x[F++]=h>>6|192:((h&64512)===55296&&N+1<p.length&&(p.charCodeAt(N+1)&64512)===56320?(h=65536+((h&1023)<<10)+(p.charCodeAt(++N)&1023),x[F++]=h>>18|240,x[F++]=h>>12&63|128):x[F++]=h>>12|224,x[F++]=h>>6&63|128),x[F++]=h&63|128)}return F};
m7J=function(p,x){p=new Uint8Array(p);x&&p.set(x);return p};
_.h$=function(p){p=new ou$(new O7Z([_.Fj(decodeURIComponent(p))]));if(jSr(p,2)){var x=N4(p);var F=p.pos;F=p.arrayView.getDataView(F===void 0?0:F,x===void 0?-1:x);F=new Uint8Array(F.buffer,F.byteOffset,F.byteLength);p.pos+=x;x=F}else x=void 0;x=x?VC$(x):void 0;p=jSr(p,4)?N4(p):void 0;F=LEk[p];if(typeof F==="undefined")throw p=new _.qE("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:p}),_.zj(p),p;return{entityTypeFieldNumber:p,entityType:F,entityId:x}};
_.au=function(p,x,F){F=F===void 0?0:F;var N=new PUz;if(WEm)p=WEm.encode(p);else{var h=new Uint8Array(Math.ceil(p.length*1.2)),c=H76(p,h);h.length<c&&(h=new Uint8Array(c),c=H76(p,h));h.length>c&&(h=h.subarray(0,c));p=h}p!==void 0&&(lP(N,18),h=p.length,lP(N,h),ci(N,h),N.buf.set(p,N.pos),N.pos+=h);p=TBd[x];if(typeof p==="undefined")throw F=new _.qE("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:x}),_.zj(F),F;p!==void 0&&(lP(N,32),lP(N,p));lP(N,40);lP(N,1);x=new Uint8Array(N.buf.buffer,
N.buf.byteOffset,N.pos);return encodeURIComponent(_.Xc(x,F))};
BBp=function(p){p=p.key||p.id;if(!p)throw Error("wf");return p};
kRH=function(p,x){p=p===void 0?{}:p;return RSJ(p,x)};
U7H=function(p,x,F,N){if(N===void 0)return N=Object.assign({},p[x]||{}),F=(delete N[F],N),N={},Object.assign({},p,(N[x]=F,N));var h={},c={};return Object.assign({},p,(c[x]=Object.assign({},p[x],(h[F]=N,h)),c))};
i7J=function(p,x,F,N,h){var c=p[x];if(c==null||!c[F])return p;N=Yq6(c[F],N,h==="REPEATED_FIELDS_MERGE_OPTION_APPEND");h={};c={};return Object.assign({},p,(c[x]=Object.assign({},p[x],(h[F]=N,h)),c))};
_.M4=function(p,x,F){return p[x]?p[x][F]||null:null};
$7m=function(){if(IpJ)return IpJ();var p={};IpJ=jQ("PersistentEntityStoreDb",{objectStores:(p.EntityStore={addedAtVersion:1},p.EntityAssociationStore={addedAtVersion:2},p),shared:!1,upgrade:function(x,F){F(1)&&Ad(b1(x,"EntityStore",{keyPath:"key"}),"entityType","entityType");F(2)&&(x=b1(x,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),Ad(x,"byParentEntityKey","parentEntityKey"),Ad(x,"byChildEntityKey","childEntityKey"))},
version:3});return IpJ()};
eS6=function(p){return _.wq($7m(),p)};
D2=function(p){return window.Int32Array?new Int32Array(p):Array(p)};
xoH=function(p){return _.wq(pfJ(),p)};
FFm=function(p){return new f1("WRONG_DATA_TYPE",{encoderVersion:p})};
NA$=function(p){return p instanceof Error?new f1("UNKNOWN_ENCODE_ERROR",{originalMessage:p.message}):new f1("UNKNOWN_ENCODE_ERROR")};
h2H=function(p){return p instanceof Error?new f1("UNKNOWN_DECODE_ERROR",{originalMessage:p.message}):new f1("UNKNOWN_DECODE_ERROR")};
leH=function(p,x){p=p instanceof f1?p:x(p);_.zj(p);throw p;};
cS$=function(p){p=(new TextEncoder).encode(p).subarray(0,16);var x=new Uint8Array(16);x.set(p);return x};
Md6=function(p){var x=aew[p];if(x)return x;_.no(new _.qE("Entity model not found.",{entityType:p}))};
_.K1=function(){Do$||(Do$=feB());return Do$};
feB=function(){var p,x,F;return _.D(function(N){if(N.nextAddress==1)return _.KM(N,2),_.q(N,_.O5(),4);if(N.nextAddress!=2){p=N.yieldResult;if(!p||!_.Kf()||typeof _.Mm.BroadcastChannel==="undefined")return N.return();x=new KFk;return N.return(new Z2(p,x))}F=_.v9(N);F instanceof Error&&_.zj(F);return N.return()})};
_.t$=function(p,x){var F;return _.D(function(N){if(N.nextAddress==1){F=p.mutations;if(!F||F.length<=0)return N.return();x&&x.dispatch(_.F4({type:"ENTITY_LOADED",payload:F}));return _.q(N,q9Z(F),2)}F.length=0;_.JB(N)})};
q9Z=function(p){var x;return _.D(function(F){return F.nextAddress==1?_.q(F,_.K1(),2):(x=F.yieldResult)?_.q(F,_.db(x,"readwrite",function(N){for(var h={},c=_.a(p),M=c.next(),f={};!M.done;f={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},M=c.next())f.mutation$jscomp$4=M.value,f.mutation$jscomp$4.entityKey&&Z4d(f.mutation$jscomp$4)&&(f.mutationEntityType$jscomp$3=(0,_.Q5.getAnyKey)(f.mutation$jscomp$4.payload),M=void 0,f.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(M=function(K){return function(){return _.td6(N,
K.mutation$jscomp$4.payload[K.mutationEntityType$jscomp$3],K.mutationEntityType$jscomp$3)}}(f)),f.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(M=function(K){return function(){return doB(N,K.mutation$jscomp$4.entityKey)}}(f)),f.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(M=function(K){return function(){return va$(N,K.mutation$jscomp$4.entityKey,K.mutation$jscomp$4.payload[K.mutationEntityType$jscomp$3],K.mutationEntityType$jscomp$3)}}(f)),M&&(h[f.mutation$jscomp$4.entityKey]=
h[f.mutation$jscomp$4.entityKey]?h[f.mutation$jscomp$4.entityKey].then(M):M()));
return nf.all(Object.values(h))}),0):F.return()})};
Z4d=function(p){var x;p=(x=p.options)==null?void 0:x.persistenceOption;return p==="ENTITY_PERSISTENCE_OPTION_PERSIST"||p==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
S9B=function(p,x){var F,N;_.D(function(h){if(h.nextAddress==1)return _.q(h,_.K1(),2);if(h.nextAddress!=3)return(F=h.yieldResult)?_.q(h,_.db(F,"readonly",function(c){var M={},f=Object.keys(x).map(function(K){var t=x[K]?[].concat(_.se(x[K])):[];return JSk(c,K,t,M)});
return nf.all(f).then(function(){return M})}),3):h.return();
N=h.yieldResult;Object.keys(N).length>0&&p.dispatch(CxE(N));_.JB(h)})};
JSk=function(p,x,F,N){return vi(p,x,F).then(function(h){N[x]=rSw(F,h)})};
rSw=function(p,x){if(x.length!==p.length)throw Error("zf");return x.reduce(function(F,N,h){F[p[h]]=N;return F},{})};
ga$=function(p){var x=p.filter(function(h){var c;return(h==null?void 0:(c=h.transferEntity)==null?void 0:c.transferState)==="TRANSFER_STATE_COMPLETE"}).length,F=p.filter(function(h){var c;
return(h==null?void 0:(c=h.transferEntity)==null?void 0:c.transferState)==="TRANSFER_STATE_FAILED"}).length,N=p.filter(function(h){var c;
return(h==null?void 0:(c=h.transferEntity)==null?void 0:c.transferState)&&Eap.includes(h.transferEntity.transferState)});
if(!(x||N!=null&&N.length))return 0;x=_.XfH(N)+x;p=p.length-F;return p===0?0:Math.round(x*100/p)/100};
_.XfH=function(p){var x=[];x=x.concat.apply(x,_.se(p.filter(function(c){return c.streamEntity}).map(function(c){var M=Object.assign({},c.streamEntity),f,K=(f=c.transferEntity)==null?void 0:f.transferState;
M.streamsProgress=M.streamsProgress||[];M.streamsProgress=M.streamsProgress.map(function(t){var d=Object.assign({},t);d.numBytesDownloaded=K==="TRANSFER_STATE_COMPLETE"?t.numTotalBytes:t.numBytesDownloaded;return d});
return M}).map(function(c){return c.streamsProgress})));
var F=p=0;x=_.a(x);for(var N=x.next();!N.done;N=x.next()){var h=N.value;N=Number(h.numBytesDownloaded);h=Number(h.numTotalBytes);F+=isNaN(N)?0:N;p+=isNaN(h)?0:h}return p===0?0:Math.round(F*100/p)/100};
QLz=function(p){if(!p||!p.expirationTimestamp||!p.action)return!1;var x=(0,_.Lf)()/1E3;return Number(p.expirationTimestamp)>=x};
J$=function(p){return p&&p.expirationTimestamp&&p.action?QLz(p)&&p.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.C1=function(p){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(p||"TRANSFER_STATE_UNKNOWN")};
z2E=function(p){var x=new PUz;if(p!==void 0){var F=Math.ceil(Math.log2(p.length*4+2)/7);F=F===void 0?2:F;lP(x,10);x.submessagePosStack.push(x.pos);x.submessagePosStack.push(F);x.pos+=F;ci(x,p.length*1.2);F=H76(p,x.buf.subarray(x.pos));x.pos+F>x.buf.length&&(ci(x,F),F=H76(p,x.buf.subarray(x.pos)));x.pos+=F;p=x.submessagePosStack.pop();F=x.submessagePosStack.pop();for(var N=x.pos-F-p;p--;){var h=p?128:0;x.view.setUint8(F++,N&127|h);N>>=7}}x=new Uint8Array(x.buf.buffer,x.buf.byteOffset,x.pos);return(new TextDecoder("utf-8")).decode(x)};
_.ST=function(p){var x=0;p=_.a(p);for(var F=p.next(),N={};!F.done;N={transferState$jscomp$3:void 0},F=p.next()){var h=F.value,c=void 0;F=(c=h.streamEntity)!=null?c:{};c=void 0;N.transferState$jscomp$3=(c=h.transferEntity)==null?void 0:c.transferState;c=h=void 0;((h=F)==null?0:(c=h.streamsProgress)==null?0:c.length)&&F.streamsProgress.forEach(function(M){return function(f){f=Number(M.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?f.numTotalBytes:f.numBytesDownloaded);isFinite(f)&&(x+=f)}}(N))}return x};
sLB=function(p){return p.some(function(x){var F;if(!(x==null?0:(F=x.transferEntity)==null?0:F.transferState)){var N;return!(x==null?0:(N=x.policyEntity)==null?0:N.action)||x.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return Eap.includes(x.transferEntity.transferState)})};
na6=function(p,x){if(!x)return!1;if(_.S("of_pb_en_po_ks"))return!0;var F;p=(F=_.M4(p,"offlineVideoPolicy",_.au(x,"offlineVideoPolicy")))!=null?F:void 0;return!!p&&J$(p)};
_.b4p=function(p){var x=["TRANSFER_STATE_COMPLETE"];x=x===void 0?ySw:x;return p.filter(function(F){var N,h;return x.includes((h=(N=F.transferEntity)==null?void 0:N.transferState)!=null?h:"TRANSFER_STATE_UNKNOWN")})};
ASd=function(p,x){if(x){var F,N=(F=_.M4(p,"playbackData",_.au(x,"playbackData")))!=null?F:null,h;F=(h=_.M4(p,"transfer",_.au(x,"transfer")))!=null?h:null;var c;h=(c=_.M4(p,"offlineVideoStreams",_.au(x,"offlineVideoStreams")))!=null?c:null;var M;p=(M=_.M4(p,"offlineVideoPolicy",_.au(x,"offlineVideoPolicy")))!=null?M:null;if(N||F||h||p)return{playbackDataEntity:N,transferEntity:F,streamEntity:h,policyEntity:p}}};
_.rb=function(p){var x=p.playbackData;if(!x)return[];var F=[];x=_.a(Object.keys(x));for(var N=x.next();!N.done;N=x.next()){var h=N.value;if(!u3d(p,_.h$(h).entityId)&&(N=ASd(p,_.h$(h).entityId))){var c=void 0,M=void 0;h=(M=Number((c=_.M4(p,"playbackData",h))==null?void 0:c.streamDownloadTimestampSeconds))!=null?M:(0,_.Lf)();F.push({entity:N,streamDownloadTimestamp:h})}}return F.sort(function(f,K){var t=f.streamDownloadTimestamp,d=K.streamDownloadTimestamp;return d===t?f.entity.streamEntity&&!K.entity.streamEntity?
1:-1:d-t}).map(function(f){return f.entity})};
Y9H=function(p){return _.b4p(_.rb(p))};
_.wf$=function(p){return _.rb(p).filter(function(x){var F;if(((F=x.policyEntity)==null?0:F.action)&&x.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var N;if((N=x.transferEntity)==null?0:N.transferState){var h;return Eap.includes((h=x.transferEntity)==null?void 0:h.transferState)}return!0})};
u3d=function(p,x){var F;return((F=_.M4(p,"downloadStatusEntity",_.au(x,"downloadStatusEntity")))==null?void 0:F.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
Gvp=function(p){var x;if(p==null?0:(x=p.playbackDataEntity)==null?0:x.key)return _.h$(p.playbackDataEntity.key).entityId;var F;if(p==null?0:(F=p.transferEntity)==null?0:F.key)return _.h$(p.transferEntity.key).entityId;var N;if(p==null?0:(N=p.streamEntity)==null?0:N.key)return _.h$(p.streamEntity.key).entityId;var h;if(p==null?0:(h=p.policyEntity)==null?0:h.key)return _.h$(p.policyEntity.key).entityId};
WFH=function(p){var x=new Set,F;p=(F=p.mainDownloadsListEntity)==null?void 0:F[Vdp];var N;if(!(p==null?0:(N=p.downloads)==null?0:N.length))return x;var h;p==null||(h=p.downloads)==null||h.forEach(function(c){(c==null?0:c.videoItem)&&x.add(c.videoItem)});
return x};
EJ=function(p,x){if(x){var F=_.M4(p,"mainVideoEntity",_.au(x,"mainVideoEntity")),N=_.M4(p,"downloadStatusEntity",_.au(x,"downloadStatusEntity")),h=_.M4(p,"ytMainChannelEntity",_.au(x,"ytMainChannelEntity")),c={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};p=ASd(p,x);N=(N==null?void 0:N.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.S("woffle_render_failed_download_state_ks")&&(N==null?void 0:N.downloadState)==="DOWNLOAD_STATE_FAILED";!p&&N&&(p=c);if(p&&F&&
h)return Object.assign({},{videoEntity:F,channelEntity:h},p)}};
moJ=function(p,x){return H4p(p,x)==="TRANSFER_STATE_COMPLETE"&&na6(p,x)};
oap=function(p,x){if(!x)return!1;var F;p=(F=_.M4(p,"playbackData",_.au(x,"playbackData")))!=null?F:void 0;return!!p&&!!p.playerResponseJson};
H4p=function(p,x){if(!x)return"TRANSFER_STATE_UNKNOWN";var F=_.M4(p,"transfer",_.au(x,"transfer"));if(F){var N;return(N=F.transferState)!=null?N:"TRANSFER_STATE_UNKNOWN"}F=_.M4(p,"offlineOrchestrationActionWrapperEntity",_.au(x,"offlineOrchestrationActionWrapperEntity"));p=_.M4(p,"mainVideoEntity",_.au(x,"mainVideoEntity"));return F||p?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
O4J=function(p,x){if(!x)return"TRANSFER_STATE_UNKNOWN";if(p=_.M4(p,"transfer",_.au(x,"transfer"))){var F;return(F=p.transferState)!=null?F:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
jL6=function(p,x){return x&&(p=_.M4(p,"videoPlaybackPositionEntity",_.au(x,"videoPlaybackPositionEntity")),p==null?0:p.lastPlaybackPositionSeconds)?Number(p.lastPlaybackPositionSeconds):0};
PxH=function(p,x){return LFm(p).some(function(F){var N;return(F==null?void 0:(N=F.mainPlaylistEntity)==null?void 0:N.playlistId)===x})};
BAp=function(p,x,F){var N=TAZ(p,x);if(!N.length)return[];x=[];N=_.a(N);for(var h=N.next();!h.done;h=N.next()){h=h.value;var c=EJ(p,h);F&&H4p(p,h)!=="TRANSFER_STATE_COMPLETE"||c&&x.push(c)}return x};
TAZ=function(p,x){if(!x)return[];var F=_.au(x,"mainPlaylistEntity"),N;x=(N=p.mainPlaylistEntity)==null?void 0:N[F];N=[];if(x==null||!x.videos)return N;x=_.a(x.videos);for(F=x.next();!F.done;F=x.next()){F=F.value;var h=void 0,c=void 0,M=void 0,f=(h=p)==null?void 0:(c=h.mainPlaylistVideoEntity)==null?void 0:(M=c[F])==null?void 0:M.video;f&&(F=_.h$(f).entityId)&&N.push(F)}return N};
R2M=function(p,x){if(x){var F=_.M4(p,"mainPlaylistEntity",_.au(x,"mainPlaylistEntity")),N=_.M4(p,"mainPlaylistDownloadStateEntity",_.au(x,"mainPlaylistDownloadStateEntity"));p=_.M4(p,"ytMainChannelEntity",_.au(x,"ytMainChannelEntity"));if(N&&F)return Object.assign({},{mainPlaylistEntity:F,mainPlaylistDownloadStateEntity:N},!!p&&{channelEntity:p})}};
LFm=function(p){return kvE(p).sort(function(x,F){return F.addedTimestampMillis-x.addedTimestampMillis}).map(function(x){return x.downloadedPlaylistEntities})};
kvE=function(p){var x=p.mainPlaylistDownloadStateEntity,F=[];if(!x)return F;for(var N=_.a(Object.keys(x)),h=N.next();!h.done;h=N.next()){var c=h.value;h=R2M(p,_.h$(c).entityId);var M=void 0;c=Number((M=x[c])==null?void 0:M.addedTimestampMillis);M=isNaN(c)?(0,_.Lf)():c;h!==void 0&&F.push({downloadedPlaylistEntities:h,addedTimestampMillis:M})}return F};
Uom=function(p){var x,F=(x=p.mainPlaylistVideoEntity)!=null?x:{};return new Set(LFm(p).reduce(function(N,h){N=N===void 0?[]:N;var c,M;h==null||(c=h.mainPlaylistEntity)==null||(M=c.videos)==null||M.forEach(function(f){var K;(f=(K=F[f])==null?void 0:K.video)&&N.push(f)});
return N},[]))};
i4p=function(p){return"downloadedMusicPlaylistEntities"in p};
IeM=function(p){return"mainPlaylistEntity"in p&&"mainPlaylistDownloadStateEntity"in p};
$op=function(p){return"videoEntity"in p&&"channelEntity"in p};
e2d=function(p){var x=p.musicPlaylistDownloadMetadataEntity,F=[];if(!x)return F;for(var N=_.a(Object.keys(x)),h=N.next();!h.done;h=N.next()){h=h.value;a:{var c=p,M=_.h$(h).entityId;if(M){var f=_.M4(c,"musicPlaylist",_.au(M,"musicPlaylist"));c=_.M4(c,"musicPlaylistDownloadMetadataEntity",_.au(M,"musicPlaylistDownloadMetadataEntity"));if(f&&c){f={musicPlaylistEntity:f,musicPlaylistDownloadStateEntity:c};break a}}f=void 0}c=void 0;h=Number((c=x[h])==null?void 0:c.addedTimestampMillis);h=isNaN(h)?(0,_.Lf)():
h;f!==void 0&&F.push({downloadedMusicPlaylistEntities:f,addedTimestampMillis:h})}return F};
pjr=function(p){var x=new Set;p=_.a(p);for(var F=p.next();!F.done;F=p.next())if(F=F.value,"musicPlaylistEntity"in F&&"musicPlaylistDownloadStateEntity"in F){F=_.a(F.musicPlaylistEntity.tracks);for(var N=F.next();!N.done;N=F.next())x.add(N.value)}return x};
xJB=function(p,x){if(x){var F=_.M4(p,"musicTrack",_.au(x,"musicTrack")),N=_.M4(p,"musicArtist",_.au(x,"musicArtist"))||{};if((p=ASd(p,x))&&F&&N)return Object.assign({},{musicTrackEntity:F,musicArtistEntity:N},p)}};
Fed=function(p){var x=p.musicTrackDownloadMetadataEntity,F=[];if(!x)return[];x=_.a(Object.keys(x));for(var N=x.next();!N.done;N=x.next()){var h=N.value;N=xJB(p,_.h$(h).entityId);var c=void 0;h=Number((c=_.M4(p,"musicTrackDownloadMetadataEntity",h))==null?void 0:c.addedTimestampMillis);c=isNaN(h)?(0,_.Lf)():h;N!==void 0&&F.push({downloadedMusicEntities:N,addedTimestampMillis:c})}return F};
l1$=function(p,x){if(!x)return[];if(Object.values(NSE).includes(x))return hvk(p,x);x=_.au(x,"musicPlaylist");var F;p=(F=p.musicPlaylist)==null?void 0:F[x];F=[];if(p==null||!p.tracks)return F;p=_.a(p.tracks);for(x=p.next();!x.done;x=p.next())(x=_.h$(x.value).entityId)&&F.push(x);return F};
hvk=function(p,x){var F=new Set,N=e2d(p).map(function(c){return c.downloadedMusicPlaylistEntities});
N=pjr(N);N=_.a(N);for(var h=N.next();!h.done;h=N.next())(h=_.h$(h.value).entityId)&&F.add(h);return cYm(p).downloadedMusicEntities.filter(function(c){var M;if((M=c.musicTrackEntity)!=null&&M.videoId){c=c.musicTrackEntity;if(M=x==="PPOM"?!0:!F.has(c.videoId))b:switch(c=c.musicVideoType,x){case "PPSE":M=c==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:M=c!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}c=M}else c=!1;return c}).map(function(c){var M;
return(M=c.musicTrackEntity)==null?void 0:M.videoId})};
cYm=function(p){var x=Fed(p).sort(function(F,N){return N.addedTimestampMillis-F.addedTimestampMillis}).map(function(F){return"downloadedMusicEntities"in F?F.downloadedMusicEntities:i4p(F)?F.downloadedMusicPlaylistEntities:{}});
p=e2d(p).sort(function(F,N){return N.addedTimestampMillis-F.addedTimestampMillis}).map(function(F){return"downloadedMusicEntities"in F?F.downloadedMusicEntities:i4p(F)?F.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:x,downloadedMusicPlaylistEntities:p}};
MaM=function(p,x){x=_.sd("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?l1$(p,x):TAZ(p,x);if(!x.length)return"TRANSFER_STATE_UNKNOWN";x=x.map(function(F){return O4J(p,F)});
return a1p(x)};
a1p=function(p){var x=new Set(p);if(x.has("TRANSFER_STATE_FAILED")&&x.size===1)return"TRANSFER_STATE_FAILED";x.delete("TRANSFER_STATE_FAILED");if(x.has("TRANSFER_STATE_UNKNOWN")&&x.size===1)return"TRANSFER_STATE_PRE_TRANSFER";x.delete("TRANSFER_STATE_UNKNOWN");if(x.has("TRANSFER_STATE_PRE_TRANSFER")&&x.size===1||x.size===0)return"TRANSFER_STATE_PRE_TRANSFER";p=x.has("TRANSFER_STATE_TRANSFERRING");x=x.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return p||x?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
X4=function(p){var x=p.mainVideoDownloadStateEntity,F=[];if(!x)return[];x=_.a(Object.keys(x));for(var N=x.next();!N.done;N=x.next()){var h=N.value;if(!u3d(p,_.h$(h).entityId)){N=EJ(p,_.h$(h).entityId);var c=void 0,M=void 0;h=(M=Number((c=_.M4(p,"mainVideoDownloadStateEntity",h))==null?void 0:c.addedTimestampMillis))!=null?M:(0,_.Lf)();N!==void 0&&F.push({downloadedVideoEntities:N,addedTimestampMillis:h})}}return F};
DJM=function(p){return X4(p).sort(function(x,F){return F.addedTimestampMillis-x.addedTimestampMillis}).map(function(x){return x.downloadedVideoEntities})};
_.KeJ=function(p){var x=Uom(p),F=_.gb(p),N=WFH(p),h=X4(p).filter(function(M){var f,K;if((M==null?void 0:(f=M.downloadedVideoEntities)==null?void 0:(K=f.transferEntity)==null?void 0:K.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var t,d;M=M==null?void 0:(t=M.downloadedVideoEntities)==null?void 0:(d=t.videoEntity)==null?void 0:d.key;return _.S("kevlar_use_library_entity")?M&&(N.has(M)||F[M]):M&&!x.has(M)}),c=kvE(p).filter(function(M){return MaM(p,M.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.se(h),_.se(c)).sort(function(M,f){return f.addedTimestampMillis-M.addedTimestampMillis}).map(function(M){return f1H(M)})};
qm6=function(p,x){if(x&&na6(p,x)){var F,N,h=(N=(F=_.M4(p,"playbackData",_.au(x,"playbackData")))!=null?F:void 0)==null?void 0:N.playerResponseJson;if(h){try{var c=JSON.parse(h);var M=_.M4(p,"transfer",_.au(x,"transfer")),f=jL6(p,x);f&&(c=Object.assign({},c,{playerConfig:Object.assign({},c.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+f*1E3}}})}));c.cotn=M==null?void 0:M.cotn}catch(K){}return c}}};
_.dJp=function(p){var x,F,N;p=(N=(F=((x=p.downloadsPageViewConfigurationEntity)!=null?x:{})[Zbw])==null?void 0:F.smartDownloadsOptInBannerVisibility)!=null?N:{};var h;return(h=_.r(p,taJ))!=null?h:{}};
_.gb=function(p){var x,F,N;p=(N=(F=((x=p.mainDownloadsListEntity)!=null?x:{})[_.vxd])==null?void 0:F.downloads)!=null?N:[];x={};F=_.a(p);for(N=F.next();!N.done;N=F.next())p=void 0,x[(p=N.value.videoItem)!=null?p:""]=!0;return x};
JYB=function(p){var x=_.gb(p);if(Object.keys(x).length===0)return!1;var F=p.mainVideoEntity;if(!F)return!0;F=_.a(Object.keys(F));for(var N=F.next();!N.done;N=F.next()){N=N.value;var h=_.h$(N).entityId;if(x[N]&&!u3d(p,h))return!1}return!0};
_.Qr=function(p){var x=_.gb(p);return X4(p).sort(function(F,N){return F.addedTimestampMillis-N.addedTimestampMillis}).map(function(F){return F.downloadedVideoEntities}).filter(function(F){var N;
return(F=F==null?void 0:(N=F.videoEntity)==null?void 0:N.key)&&!!x[F]})};
f1H=function(p){return"downloadedVideoEntities"in p?p.downloadedVideoEntities:"downloadedPlaylistEntities"in p?p.downloadedPlaylistEntities:{}};
CCE=function(p){var x=_.gb(p),F=Uom(p),N=X4(p).filter(function(h){var c,M;return(h=h==null?void 0:(c=h.downloadedVideoEntities)==null?void 0:(M=c.videoEntity)==null?void 0:M.key)&&!x[h]&&!F.has(h)});
p=kvE(p);return[].concat(_.se(N),_.se(p)).sort(function(h,c){return c.addedTimestampMillis-h.addedTimestampMillis}).map(function(h){return f1H(h)})};
_.zt=function(p){if(!_.S("kevlar_use_library_entity"))return CCE(p);var x=X4(p).filter(function(N){var h,c;if(h=N=N==null?void 0:(h=N.downloadedVideoEntities)==null?void 0:(c=h.videoEntity)==null?void 0:c.key){var M,f,K;h=((f=(M=p.mainDownloadsListEntity)==null?void 0:M[Vdp])==null?0:(K=f.downloads)==null?0:K.length)?WFH(p).has(N):!1}return h}),F=kvE(p);
return[].concat(_.se(x),_.se(F)).sort(function(N,h){return h.addedTimestampMillis-N.addedTimestampMillis}).map(function(N){return f1H(N)})};
SmE=function(p){var x=_.gb(p),F=Uom(p);return DJM(p).filter(function(N){var h;return(N=N==null?void 0:(h=N.videoEntity)==null?void 0:h.key)&&!x[N]&&!F.has(N)})};
rYk=function(p){if(!_.S("kevlar_use_library_entity"))return SmE(p);var x=_.gb(p),F=WFH(p);return DJM(p).filter(function(N){var h;return(N=N==null?void 0:(h=N.videoEntity)==null?void 0:h.key)&&!x[N]&&F.has(N)})};
Exz=function(p,x){x=_.au(x,"settingEntity");var F,N,h;return!!((h=(N=((F=p.settingEntity)!=null?F:{})[x])==null?void 0:N.settingOptionValue)!=null?h:{}).boolValue};
_.sJ=function(p){var x=_.Qr(p);if(sLB(x))return 0;var F=[];x=_.a(x);for(var N=x.next();!N.done;N=x.next()){N=N.value;var h=void 0,c=void 0;if((h=N)==null?0:(c=h.videoEntity)==null?0:c.key)h=_.h$(N.videoEntity.key).entityId,N=p,h=_.au(h,"mainVideoDownloadStateEntity"),N=_.M4(N,"mainVideoDownloadStateEntity",h),(N=Number(N==null?void 0:N.addedTimestampMillis))&&F.push(N)}return Math.max.apply(Math,_.se(F))};
_.n1=function(p){return p.ui.richGridMiniMode};
_.yr=function(p){return p.ui.richGridItemsPerRow};
_.Xjd=function(p){return p.ui.richGridSlimItemsPerRow};
_.gxp=function(p){return p.ui.guideIsExpanded};
_.bP=function(p){return p.ui.miniplayerIsActive};
_.QOd=function(p){return p.ui.singleOptionSurveyIsActive};
_.A$=function(p){return p.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.zv$=function(p){return p.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.sOE=function(p){return p.ui.inlinePreviewIsActive};
_.nxm=function(p){return p.ui.inlinePreviewIsEnabled};
_.yYZ=function(p){return p.ui.miniplayerPlaybackState};
bbr=function(p){return p.ui.isOnline};
_.AYd=function(p){return p.ui.frostedGlassMode};
_.uP=function(p,x){return H4p(p.entities,x)};
_.YO=function(p,x){return MaM(p.entities,x)};
u8B=function(p,x){var F;if(x){var N;p=(N=_.M4(p.entities,"offlineVideoPolicy",_.au(x,"offlineVideoPolicy")))==null?void 0:N.action}else p=void 0;return(F=p)!=null?F:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
YmJ=function(p,x){var F;x?(p=_.M4(p.entities,"offlineVideoPolicy",_.au(x,"offlineVideoPolicy")),p=Number(p==null?void 0:p.expirationTimestamp)):p=void 0;return(F=p)!=null?F:0};
_.wjE=function(p){return _.rb(p.entities).length};
GNw=function(p,x){return EJ(p.entities,x)};
Vad=function(p,x){return R2M(p.entities,x)};
wb=function(p,x){return(p=EJ(p.entities,x))?_.XfH([p]):0};
_.WeZ=function(p,x){var F=_.sd("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(F){var N=p.entities;var h=l1$(N,x);if(h.length){var c=[];h=_.a(h);for(var M=h.next();!M.done;M=h.next())(M=xJB(N,M.value))&&c.push(M);N=c}else N=[]}else N=BAp(p.entities,x);var f;if(F){var K=p.entities;x?(x=_.au(x,"musicPlaylist"),K=(f=K.musicPlaylist)==null?void 0:f[x],f=K!=null&&K.tracks?K.tracks.length:0):f=0}else f=p.entities,x?(x=_.au(x,"mainPlaylistEntity"),f=(K=f.mainPlaylistEntity)==null?void 0:K[x],f=f!=null&&f.videos?
f.videos.length:0):f=0;return N.length!==f?0:N?ga$(N):0};
_.HbH=function(p){return p.download.isLeaderTab};
_.mJB=function(p,x,F){if(!x&&F){var N=p.entities;if(F){var h=z2E(F),c,M;x=(M=(c=_.M4(N,"offlineabilityEntity",_.au(h,"offlineabilityEntity")))==null?void 0:c.addToOfflineButtonState)!=null?M:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else x="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else c=p.entities,x?(M=z2E(x),x=(h=(N=_.M4(c,"offlineabilityEntity",_.au(M,"offlineabilityEntity")))==null?void 0:N.addToOfflineButtonState)!=null?h:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):x="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return x};
oxw=function(p,x){p=p.entities;if(x){x=z2E(x);var F,N;x=(N=(F=_.M4(p,"offlineabilityEntity",_.au(x,"offlineabilityEntity")))==null?void 0:F.addToOfflineButtonState)!=null?N:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else x="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return x};
_.ObZ=function(p){var x=p.entities;p=bbr(p);var F=Exz(x,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.S("kevlar_modern_downloads_page")&&F)var N=!1;else{var h,c;x=(c=(h=((N=x.downloadsPageViewConfigurationEntity)!=null?N:{})[Zbw])==null?void 0:h.smartDownloadsOptInBannerVisibility)!=null?c:{};N=p?!!x.visibleWithConnection:!!x.visibleWithoutConnection}return N};
_.jOz=function(p){return Exz(p.entities,"SMART_DOWNLOADS_ENABLED")};
_.Lep=function(p){return JYB(p.entities)};
PC$=function(p){return _.Qr(p.entities).every(function(x){var F;return(x==null?void 0:(F=x.transferEntity)==null?void 0:F.transferState)&&!Eap.includes(x.transferEntity.transferState)})};
_.TSM=function(p,x){return u3d(p.entities,x)};
BSZ=function(p,x){if(x){var F,N;p=(N=(F=_.M4(p.entities,"downloadStatusEntity",_.au(x,"downloadStatusEntity")))==null?void 0:F.downloadState)!=null?N:"DOWNLOAD_STATE_UNKNOWN"}else p="DOWNLOAD_STATE_UNKNOWN";return p};
Gt=function(p,x){return jL6(p.entities,x)};
ibp=function(p){p=_.Rvr(p);var x=p.hours===void 0?0:p.hours,F=p.minutes===void 0?0:p.minutes,N=p.seconds===void 0?0:p.seconds,h=x>0;p=[];h&&(x=_.kN6(x),p.push(x));x=h;x=x===void 0?!1:x;F=(["af","be","lt"].includes(_.Vr)||x)&&F<10?UJm().format(F):(new Intl.NumberFormat("en-u-nu-latn")).format(F);p.push(F);F=UJm().format(N);p.push(F);F=":";"da fi id si sr sr-Latn".split(" ").includes(_.Vr)&&(F=".");return p.join(F)};
_.Rvr=function(p){var x=p.hours||0,F=p.minutes||0,N=p.seconds||0;x=N+F*60+x*3600+(p.days||0)*86400+(p.weeks||0)*604800+(p.months||0)*2629800+(p.years||0)*31557600;if(x<=0)return{hours:0,minutes:0,seconds:0};p=x;x=Math.floor(p/3600);p%=3600;F=Math.floor(p/60);N=Math.floor(p%60);return{hours:x,minutes:F,seconds:N}};
_.kN6=function(p){p=(new Intl.NumberFormat("en-u-nu-latn")).format(p);var x=["fr"],F="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(_.Vr)?p.replace(",","\u00a0"):x.includes(_.Vr)?p.replace(",","\u202f"):F.includes(_.Vr)?p.replace(",","."):p};
UJm=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
I1z=function(p){try{return(new _.Wi(5)).format(p)}catch(x){}};
Hi=function(p){return{thumbnailOverlayDownloadingRenderer:{state:p}}};
$Jz=function(p){if(p=I1z(p))return{thumbnailOverlaySidePanelRenderer:{text:_.ez(p),icon:{iconType:"PLAYLISTS"}}}};
evp=function(){var p=_.JG("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.ez(p),icon:{iconType:"PLAY_ALL"}}}};
p6E=function(p){p=_.mc(p,2);return _.Vr!=="ru"&&_.Vr!=="es_419"&&_.Vr!=="es-419"&&_.Vr!=="es"&&_.Vr!=="es_US"&&_.Vr!=="es-US"&&_.Vr!=="fr"&&_.Vr!=="pl"&&_.Vr!=="it"&&_.Vr!=="nl"&&_.Vr!=="uk"&&_.Vr!=="fr_CA"&&_.Vr!=="fr-CA"||p===""?p:p[0].toLocaleUpperCase()+p.substring(1)};
Fpw=function(p){return function(x){var F=p(),N=_.mc(x,F.dateFormat);x=_.mc(x,F.timeFormat);var h=xqz.DATETIMEFORMATS[F.joinerStyle];h=h.replace(/'(?!')/g,"");h=h.replace("{0}",x);h=h.replace("{1}",N);return F.capitalize(h)}};
Nmp=function(p){return p?typeof p.seconds==="string"&&(p.nanos===void 0||typeof p.nanos==="number"):!1};
h0r=function(p){return new Date(Number(p.seconds)*1E3+(p.nanos||0)*1E-6)};
_.mc=function(p,x){if(typeof p.getTime==="function")p={date:p};else if(Nmp(p))p={date:h0r(p)};else if(typeof Nmp(p.timestamp)&&typeof p.i18nInternalSecondsEastOfUtc==="number")p={date:h0r(p.timestamp),timeZone:ou(-p.i18nInternalSecondsEastOfUtc/60)};else throw Error("Af`"+JSON.stringify(p));var F=p;p=F.date;F=F.timeZone;x=l_r(x).format(p,F);_.Vr==="zh-TW"&&(p=F?Number(l_r("H").format(p,F)):p.getHours(),x=p<5?x.replace("\u4e0a\u5348","\u51cc\u6668"):p<8?x.replace("\u4e0a\u5348","\u65e9\u4e0a"):p<12?
x.replace("\u4e0a\u5348","\u4e0a\u5348"):p<13?x.replace("\u4e0b\u5348","\u4e2d\u5348"):p<19?x.replace("\u4e0b\u5348","\u4e0b\u5348"):x.replace("\u4e0b\u5348","\u665a\u4e0a"));return x};
l_r=function(p){if(cAp.has(p))return cAp.get(p);var x=a_6(p);x=Mjr(x);DqJ!==!0&&(DqJ=!0);f_d=!0;f_d=!1;x=new OJ(x,xqz);cAp.set(p,x);return x};
a_6=function(p){return(new OJ(p,xqz)).patternParts_.map(function(x){return x.type===0?"'"+x.text+"'":x.text}).join("")};
Mjr=function(p){return _.Vr==="en"||_.Vr==="es_US"||_.Vr==="es-US"?p:p.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(x,F,N){return"H".repeat(F.length)+N})};
C$M=function(p,x){Kpz||(_.jT=_.qBz,Kpz=new ZJm);var F=Kpz;a:if(p=tjp(p),x=tjp(x||new Date),p>x)F=p.getTime()-x.getTime()>6048E5?_.mc(p,1):dqp(p);else{for(var N=0;v6H(p,12*(N+1))<x;)++N;if(N>0)F=F.format(-N,0);else{for(N=0;v6H(p,N+1)<x;)++N;if(N>0)F=F.format(-N,2);else{p=x.getTime()-p.getTime();x=_.a(JAM);for(N=x.next();!N.done;N=x.next()){N=N.value;var h=N.unit,c=Math.floor(p/N.unitDuration);if(c>=(N.threshold===void 0?1:N.threshold)){F=F.format(-c,h);break a}}F=F.format(-0,7)}}}return F};
tjp=function(p){if(typeof p.getTime==="function")return p;if(Nmp(p))return h0r(p);throw Error("Bf`"+JSON.stringify(p));};
v6H=function(p,x){for(var F=0,N;;++F)if(N=new Date(p.getFullYear(),p.getMonth()+x,p.getDate()-F,p.getHours(),p.getMinutes(),p.getSeconds()),N.getMonth()===(p.getMonth()+x)%12)return N};
_.L1=function(p){return{runs:[{text:p}]}};
_.Pi=function(p){if(p&&p.simpleText)return p.simpleText;var x="";if(p&&p.runs)for(var F=0;F<p.runs.length;F++)p.runs[F].text&&(x+=p.runs[F].text);return x};
rAB=function(p,x,F,N){return p.videoEntity&&!p.policyEntity&&F!=="DOWNLOAD_STATE_FAILED"?[Hi("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:J$(p.policyEntity)&&x!=="TRANSFER_STATE_FAILED"&&x!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?x==="TRANSFER_STATE_PAUSED_BY_USER"?[Hi("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.C1(x)?[Hi("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:p.videoEntity.lengthSeconds?SB$(p.videoEntity.lengthSeconds,N):[]:
[Hi("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
SB$=function(p,x){var F=[{thumbnailOverlayTimeStatusRenderer:{text:_.ez(ibp({seconds:p})),style:"DEFAULT"}}];x&&(p=x<=0||p<=0?0:x>=p?100:Math.ceil(x*100/p),p>0&&F.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:p}}));return F};
E6z=function(p,x,F,N,h){if(x==="TRANSFER_STATE_UNKNOWN"||!p)return{};if(_.C1(x)||x==="TRANSFER_STATE_PRE_TRANSFER")var c=[Hi("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var M,f;if(x==="TRANSFER_STATE_COMPLETE"&&((M=p.mainPlaylistEntity)==null?0:(f=M.videos)==null?0:f.length)){if(_.S("web_modern_collections_v2")){var K;var t=(c=p.mainPlaylistEntity)==null?void 0:(K=c.videos)==null?void 0:K.length;c=(c=I1z(t))?{thumbnailOverlayBottomPanelRenderer:{text:_.ez(c),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var d;c=$Jz((t=p.mainPlaylistEntity)==null?void 0:(d=t.videos)==null?void 0:d.length)}var v;c=[evp(),Object.assign({},(v=c)!=null?v:{})]}else c=[]}v=c;a:if(x==="TRANSFER_STATE_PRE_TRANSFER")F=p1(_.JG("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(x==="TRANSFER_STATE_TRANSFER_IN_QUEUE")F=p1(_.JG("WAITING_TO_DOWNLOAD"));else if(_.C1(x))F=Math.floor(F*100).toString(),F=p1(_.JG("DOWNLOADING_PERCENT",{percent:F},"Downloading... "+F+"%"));else{if(N&&(_.S("playlist_is_offline_selector_killswitch")&&
(h=_.J().resolve(_.GW).isNetworkAvailable()),h)){F=u5p(_.JG("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),b7m(N));break a}F=void 0}x=x==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.JG("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},v.length?{thumbnailOverlays:v}:{},F?{viewPlaylistText:F}:{viewPlaylistText:_.L1("")},x.length?{badges:x}:{})};
X6E=function(p,x,F,N,h,c){if(x==="TRANSFER_STATE_UNKNOWN"||!p)return{};if(N==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var M=rAB(p,x,N);if(p.videoEntity&&!p.policyEntity&&N!=="DOWNLOAD_STATE_FAILED"){var f=_.JG("WAITING_TO_DOWNLOAD");if(f)return{shortViewCountText:_.L1(f),publishedTimeText:void 0,thumbnailOverlays:M}}if(!J$(p.policyEntity)){c=p.policyEntity&&!QLz(p.policyEntity)?_.JG("DOWNLOAD_EXPIRED",{},"Download expired"):
_.JG("TRANSFER_FAILED",{},"Download failed");var K;if((K=p.policyEntity)==null?0:K.shortMessageForDisabledAction)c=p.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:p1(c),publishedTimeText:void 0,thumbnailOverlays:M}}if(x==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.L1(_.JG("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:M};if(x==="TRANSFER_STATE_FAILED"||x==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.L1(_.JG("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:M};if(x==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(K=_.JG("WAITING_TO_DOWNLOAD"),N==="DOWNLOAD_STATE_PAUSED"&&(K=_.JG("DOWNLOAD_PAUSED",{},"Download paused")),K))return{shortViewCountText:_.L1(K),publishedTimeText:void 0,thumbnailOverlays:M};if(_.C1(x))return p=Math.floor(F*100).toString(),{shortViewCountText:_.L1(_.JG("DOWNLOADING_PERCENT",{percent:p},"Downloading... "+p+"%")),publishedTimeText:void 0,thumbnailOverlays:M};x=void 0;p.videoEntity.publishedTimestampMillis&&
(x=new Date,h&&(x=new Date(h)),x=p1(C$M(new Date(Number(p.videoEntity.publishedTimestampMillis)),x)));h=[];_.S("kevlar_woffle_badge_killswitch")||(h=[{metadataBadgeRenderer:{label:_.JG("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var t;p=p1((t=p.videoEntity.localizedStrings)==null?void 0:t.viewCount);return Object.assign({},c?{shortViewCountText:void 0}:{shortViewCountText:p},c?{}:{publishedTimeText:x},{badges:h,thumbnailOverlays:M})};
Q3Z=function(p,x){p=p===void 0?g6p:p;switch(x.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:x.payload.playlistId,inviteLinkURL:x.payload.inviteLinkUrl};default:return p}};
s3p=function(p,x){p=p===void 0?z0m:p;switch(x.type){case "SET_CURRENT_FORM_ID":return x=x.payload.formId,p.currentFormId===x?p:{currentFormId:x,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var F=x.payload;x=F.groupId;F=F.command;if(p.currentFormId){var N=Object.assign({},p.commandsMap);N[x]=F;p=Object.assign({},p,{commandsMap:N})}return p;case "RESET_COMMAND_MAP":return Object.assign({},p,{commandsMap:{}});default:return p}};
yAZ=function(p,x){p=p===void 0?n6w:p;switch(x.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},p,{guideIsExpanded:x.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},p,{scrollAtTop:x.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},p,{guideIsVisibleButNotPersistent:x.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},p,{miniplayerIsActive:x.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},p,{singleOptionSurveyIsActive:x.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},p,{slimlineSurveyRatingSelectedIndex:x.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},p,{richGridMiniMode:x.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},p,{richGridItemsPerRow:x.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},p,{richGridSlimItemsPerRow:x.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},p,{richGridContainerWidth:x.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},p,{richGridStyle:x.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},p,{currentPageType:x.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},p,{inlinePreviewIsActive:x.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},p,{inlinePreviewIsEnabled:x.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},p,{darkModeIsEnabled:x.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
p,{miniplayerPlaybackState:x.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},p,{tabGesturesIsActive:x.payload});case "SET_ONLINE_STATUS":return Object.assign({},p,{isOnline:x.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},p,{chipBarIsSticky:x.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},p,{frostedGlassMode:x.payload});default:return p}};
AAH=function(p,x){p=p===void 0?bJ6:p;switch(x.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},p,{transcription:x.payload});case "SET_OVERLAY_STATE":return Object.assign({},p,{overlay:x.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return p}};
OJ$=function(){return Ks(Object.assign({},{continuation:uAp,entities:kRH,download:YBm,reportChannelAbuse:w6p,share:G2Z,talkToRecs:Vjp,ui:yAZ,voiceSearch:AAH,watch:Wpd,ypc:HJr,shorts:mq$,radioButtonGroup:s3p,collabInviteLink:Q3Z},o6M))};
P$J=function(){return _.S("web_player_entities_middleware")?new Tt(OJ$(),[j3k,Lp6]):new Tt(OJ$(),[j3k])};
_.Bi=function(){Tmk||(Tmk=P$J());return Tmk};
Bm6=function(p,x,F){if(p.length)return{titleText:_.ez(x!=null?x:_.JG("DOWNLOADS",void 0,"Downloads")),contents:p.map(function(N){var h=N.videoEntity;N={videoId:h.videoId,title:p1(h.title),shortBylineText:p1(N.channelEntity.title),thumbnail:h.thumbnail};var c=h.videoId?Gt(_.Bi().getState(),h.videoId):0;h.videoId&&F?N.navigationEndpoint=_.$v(h.videoId,F,void 0,void 0,c):h.videoId&&(N.navigationEndpoint=ynk(h.videoId,c,h.lengthSeconds));h.lengthSeconds&&(N.thumbnailOverlays=SB$(h.lengthSeconds,c));return{playlistPanelVideoRenderer:N}}),
totalVideos:p.length}};
R0m=function(p){return(p=(0,_.Q5.getValueByKeys)(p,"playlistId"))?{playlistId:p}:null};
k2M=function(){return{}};
Uqz=function(p,x){return new _.cZ(function(F,N){p.then(function(h){if(h){if(h=x(h))return F(h);N()}},N)})};
iJJ=function(p){var x,F,N,h=(x=p.contents)==null?void 0:(F=x.twoColumnWatchNextResults)==null?void 0:(N=F.autoplay)==null?void 0:N.autoplay,c,M,f;x=(c=p.contents)==null?void 0:(M=c.twoColumnWatchNextResults)==null?void 0:(f=M.playlist)==null?void 0:f.playlist;return h&&x&&x.playlistId?{rawResponse:p,autoplayRenderer:h,playlistPanelRenderer:x,playlistId:x.playlistId}:null};
$qp=function(p){var x=x===void 0?"UNKNOWN_INTERFACE":x;if(p.length===1)return p[0];var F=I_M[x];if(F){F=new RegExp(F);for(var N=_.a(p),h=N.next();!h.done;h=N.next())if(h=h.value,F.exec(h))return h}var c=[];Object.entries(I_M).forEach(function(M){var f=_.a(M);M=f.next().value;f=f.next().value;x!==M&&c.push(f)});
F=new RegExp(c.join("|"));p.sort(function(M,f){return M.length-f.length});
N=_.a(p);for(h=N.next();!h.done;h=N.next())if(h=h.value,!F.exec(h))return h;return p[0]};
_.Ru=function(p){return"/youtubei/v1/"+$qp(p)};
_.kO=function(p){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:p}}}}};
_.UJ=function(p){return _.kO(_.L1(p))};
e0J=function(p,x){var F={mode:"NORMAL"};p&&(F.autoplayVideo=p.navigationEndpoint,F.nextButtonVideo=p.navigationEndpoint);x&&(F.previousButtonVideo=x.navigationEndpoint);return F};
F_p=function(p,x,F){if(!F||!F.sets)return{sets:[e0J(p,x)]};var N=F.sets.find(function(M){return M.mode==="NORMAL"}),h=(0,_.Q5.unsafeClone)(F);
if(!N)return h.sets.push(e0J(p,x)),h;if(!p)return F;N=_.Q5.getValueByKeys.apply(null,[N].concat(_.se(pnd)));var c=_.Q5.getValueByKeys.apply(null,[p].concat(_.se(xYB)));if(N===c)return F;h.sets=h.sets.filter(function(M){return M.mode!=="NORMAL"});
h.sets.push(e0J(p,x));return h};
NP$=function(p){return!!p.playlistPanelVideoRenderer&&!p.playlistPanelVideoRenderer.unplayableText};
hr$=function(p){return!!p.playlistPanelVideoRenderer&&!!p.playlistPanelVideoRenderer.title};
ly$=function(p,x){if(x.contents&&!(p>=x.contents.length)&&(p=x.contents.slice(p).find(NP$)))return p.playlistPanelVideoRenderer};
cMZ=function(p,x){if(x.contents)return(x=x.contents.find(function(F){return!!F.playlistPanelVideoRenderer&&F.playlistPanelVideoRenderer.videoId===p}))?x.playlistPanelVideoRenderer:void 0};
ayr=function(p,x){return x.contents?x.contents.findIndex(function(F){return!!F.playlistPanelVideoRenderer&&F.playlistPanelVideoRenderer.videoId===p}):-1};
MgE=function(p,x){return x.contents?x.contents.findIndex(function(F){return!!F.playlistPanelVideoRenderer&&F.playlistPanelVideoRenderer.playlistSetVideoId===p}):-1};
DYk=function(p,x){p.contents&&x!==-1&&p.contents.splice(x,1).length===1&&p.totalVideos!==void 0&&(--p.totalVideos,delete p.videoCountText)};
_.fyp=function(p){var x=[];if(!p||!p.contents)return x;p=_.a(p.contents);for(var F=p.next();!F.done;F=p.next())F=F.value,F.playlistPanelVideoRenderer&&F.playlistPanelVideoRenderer.videoId&&x.push(F.playlistPanelVideoRenderer.videoId);return x};
_.K_$=function(p){if(p&&p.contents)return(p=p.contents.find(function(x){return!!x.playlistPanelVideoRenderer&&!!x.playlistPanelVideoRenderer.selected})||p.contents[p.currentIndex])?p.playlistPanelVideoRenderer:void 0};
qo$=function(p,x,F,N,h,c,M){h=h===void 0?!1:h;c=c===void 0?!1:c;M=M===void 0?!1:M;if(p.contents&&p.contents.length!==0){N&&(p.contents=p.contents.filter(N));N=p.contents.length;for(var f=0;f<N;f++){var K=p.contents[f].playlistPanelVideoRenderer;K&&(f===x?(c&&delete K.menu,K.indexText=_.L1("\u25b6")):h||p.isInfinite||K.indexText===void 0?delete K.indexText:K.indexText=_.L1((f+1+F).toString()))}p.currentIndex=x+F;M&&(delete p.videoCountText,p.totalVideos=N)}};
ZXw=function(p){var x=document.body;var F=F===void 0?function(f){return f}:F;
var N,h=null;p=_.a(p);for(N=p.next();!N.done;N=p.next()){var c=N.value;N=document.createElement("div");h||(h=N);var M=c[0];c=c[1];M&&(N.id=F(M));if(c)for(M=_.a(c),c=M.next();!c.done;c=M.next())N.classList.add(F(c.value));x.appendChild(N);x=N}return[h,x]};
tgw=function(p,x){for(var F="",N=0;N<x;N++)F+=p.charAt(Math.floor(Math.random()*p.length));return F};
iP=function(p){return tgw("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",p)};
$O=function(p){return tgw("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",p)};
eT=function(p){return tgw("0123456789",p)};
pR=function(){var p=performance.now(),x=new Date;var F="2."+x.getFullYear()+String(x.getMonth()+1).padStart(2,"0")+String(x.getDate()).padStart(2,"0");for(var N,h=Math.floor(Math.random()*11)+15,c=[],M=0;M<h;M++)c.push(Math.floor(Math.random()*26476865)+24547720);N=c.join(",");var f=iP(10),K=iP(100),t=iP(102),d=iP(106),v=iP(108),C=iP(11),X=iP(1140),Q=iP(123),b=iP(14),A=iP(16),Y=iP(1900),O=iP(23),Fw=iP(26),R=iP(34),ld=iP(397),pp=iP(44),Kp=iP(5),sM=iP(72),np=iP(74),Jz=iP(75),Y$=iP(88),xB=iP(91),qI=
"rr1---sn-ntq7ynle rr2---sn-q4fl6nlz rr3---sn-q4fl6ns6 rr3---sn-q4fl6nsl rr3---sn-q4fl6ndz rr1---sn-ntqe6nel rr3---sn-q4fl6nd7 rr4---sn-5hne6nsy rr3---sn-q4fl6nz7 rr4---sn-q4fl6ns6 rr3---sn-q4fl6n6s rr4---sn-q4flrnek rr1---sn-q4fl6nsd rr3---sn-5hneknek rr3---sn-q4fl6nsk rr5---sn-5hneknee rr3---sn-q4fl6nsy rr4---sn-5hneknek rr3---sn-hgn7yn7e rr1---sn-5hne6nzk".split(" ");var RJ=qI[Math.floor(Math.random()*qI.length)];var Ik=(new Date("2010-01-01")).getTime();var vb=(new Date(Ik+Math.random()*((new Date).getTime()-
Ik))).toISOString().split("T")[0];for(var CZ,sk=[],Ov=0;Ov<4;Ov++)sk.push(Math.floor(Math.random()*100));CZ=sk.join(".");var Xj=Number(eT(5)),AC=Number(eT(6)),Jo=Number(eT(7)),Bz=Number(eT(9)),aJ=eT(1),he=eT(10),Bb=eT(16),PH=eT(19),dl=eT(2),nZ=eT(20),ep=eT(21),jp=eT(3),fZ=eT(4),Uv=eT(5),FK=eT(6),uB=eT(7),ot=eT(8),zl=eT(9);var LN=tgw("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",27352);var aM=[$O(5),$O(5),$O(5)].join("%2C"),bk=[eT(3),eT(5),eT(5)].join("%2C"),kQ=$O(0),gs=$O(1),
Lt=$O(10),r1=$O(108),sU=$O(11),PQ=$O(12),Kg=$O(13),md=$O(14),Pw=$O(15),Zh=$O(16),Tc=$O(17),Cp=$O(18),ud=$O(19),Hr=$O(2),ZK=$O(20),lm=$O(22),hC=$O(23),ak=$O(24),Tm=$O(266),rl=$O(3),re=$O(30),IR=$O(34),sv=$O(35),hl=$O(36),lL=$O(4),IM=$O(40),N1=$O(43),qp=$O(47),Iu=$O(5),OM=$O(6),D8=$O(7),C6=$O(75),Zn=$O(8),h_=$O(80),mM=$O(9),ge="https://www."+$O(12)+".com",Bc={},RI={},PL={},Ckd={},TM={},sn={},nG={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:N}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:F},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+$O(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",
value:F},{key:"client.name",value:"WEB"},{key:"client.fexp",value:N}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:ep+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+$O(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:IM,ypcGetOfflineUpsellEndpoint:{params:h_}},trackingParams:sv+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},contextParams:"Q0FFU0FnZ0M="},
streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+bk+"&mn="+aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=video%2Fmp4&ns="+ak+"&cnr="+dl+"&ratebypass=yes&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&c=WEB&txp="+uB+"&n="+A+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:AC,width:640,height:360,lastModified:Bb,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:uB,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+bk+"&mn="+
aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=video%2Fmp4&ns="+ak+"&cnr="+dl+"&ratebypass=yes&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&c=WEB&txp="+uB+"&n="+A+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+r1+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:AC,width:1280,
height:720,lastModified:Bb,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:uB,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&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="+bk+"&mn="+aM+"&ms="+
aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=video%2Fmp4&ns="+ak+"&gir="+rl+"&clen="+zl+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+K+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:Jo,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:jp,end:fZ},lastModified:Bb,contentLength:zl,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Jo,approxDurationMs:uB},{itag:248,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&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="+bk+"&mn="+aM+"&ms="+aM+"&mv="+
gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=video%2Fwebm&ns="+ak+"&gir="+rl+"&clen="+zl+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/webm; codecs="vp9"',bitrate:Jo,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:jp,end:fZ},lastModified:Bb,contentLength:zl,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Jo,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uB},{itag:399,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&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="+
bk+"&mn="+aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=video%2Fmp4&ns="+ak+"&gir="+rl+"&clen="+zl+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+K+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:Jo,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:jp,end:fZ},lastModified:Bb,contentLength:zl,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:Jo,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uB},{itag:136,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&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="+
bk+"&mn="+aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=video%2Fmp4&ns="+ak+"&gir="+rl+"&clen="+zl+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Jo,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:jp,end:fZ},lastModified:Bb,contentLength:zl,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:AC,approxDurationMs:uB},{itag:247,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&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="+bk+"&mn="+
aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=video%2Fwebm&ns="+ak+"&gir="+rl+"&clen="+zl+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/webm; codecs="vp9"',bitrate:Jo,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:jp,end:fZ},lastModified:Bb,contentLength:zl,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:AC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uB},{itag:398,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&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="+
bk+"&mn="+aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=video%2Fmp4&ns="+ak+"&gir="+rl+"&clen="+zl+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:Jo,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:jp,end:fZ},lastModified:Bb,contentLength:zl,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:AC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uB},{itag:135,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&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="+
bk+"&mn="+aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=video%2Fmp4&ns="+ak+"&gir="+rl+"&clen="+ot+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:AC,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:jp,end:fZ},lastModified:Bb,contentLength:ot,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:AC,approxDurationMs:uB},{itag:244,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&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="+bk+"&mn="+
aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=video%2Fwebm&ns="+ak+"&gir="+rl+"&clen="+ot+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+r1+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/webm; codecs="vp9"',bitrate:AC,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:jp,end:fZ},lastModified:Bb,contentLength:ot,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:AC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uB},{itag:397,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&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="+
bk+"&mn="+aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=video%2Fmp4&ns="+ak+"&gir="+rl+"&clen="+ot+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+K+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:AC,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:jp,end:fZ},lastModified:Bb,contentLength:ot,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:AC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uB},{itag:134,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&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="+
bk+"&mn="+aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=video%2Fmp4&ns="+ak+"&gir="+rl+"&clen="+ot+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:AC,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:jp,end:fZ},lastModified:Bb,contentLength:ot,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:AC,highReplication:!0,approxDurationMs:uB},{itag:243,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&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="+
bk+"&mn="+aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=video%2Fwebm&ns="+ak+"&gir="+rl+"&clen="+ot+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/webm; codecs="vp9"',bitrate:AC,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:jp,end:fZ},lastModified:Bb,contentLength:ot,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:AC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uB},{itag:396,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&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="+
bk+"&mn="+aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=video%2Fmp4&ns="+ak+"&gir="+rl+"&clen="+ot+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:AC,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:jp,end:fZ},lastModified:Bb,contentLength:ot,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:AC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uB},{itag:133,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&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="+
bk+"&mn="+aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=video%2Fmp4&ns="+ak+"&gir="+rl+"&clen="+ot+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:AC,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:jp,end:fZ},lastModified:Bb,contentLength:ot,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:AC,approxDurationMs:uB},{itag:242,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&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="+bk+"&mn="+
aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=video%2Fwebm&ns="+ak+"&gir="+rl+"&clen="+ot+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/webm; codecs="vp9"',bitrate:AC,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:jp,end:fZ},lastModified:Bb,contentLength:ot,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:AC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uB},{itag:395,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&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="+
bk+"&mn="+aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=video%2Fmp4&ns="+ak+"&gir="+rl+"&clen="+ot+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:AC,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:jp,end:fZ},lastModified:Bb,contentLength:ot,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:AC,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uB},{itag:160,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&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="+
bk+"&mn="+aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=video%2Fmp4&ns="+ak+"&gir="+rl+"&clen="+ot+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:AC,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:jp,end:fZ},lastModified:Bb,contentLength:ot,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Xj,approxDurationMs:uB},{itag:278,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&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="+bk+"&mn="+
aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=video%2Fwebm&ns="+ak+"&gir="+rl+"&clen="+ot+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/webm; codecs="vp9"',bitrate:AC,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:jp,end:fZ},lastModified:Bb,contentLength:ot,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Xj,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uB},{itag:394,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&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="+
bk+"&mn="+aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=video%2Fmp4&ns="+ak+"&gir="+rl+"&clen="+ot+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+K+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Xj,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:jp,end:fZ},lastModified:Bb,contentLength:ot,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Xj,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:uB},{itag:140,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
bk+"&mn="+aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=audio%2Fmp4&ns="+ak+"&gir="+rl+"&clen="+ot+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:AC,
initRange:{start:"0",end:"631"},indexRange:{start:jp,end:fZ},lastModified:Bb,contentLength:ot,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:AC,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:uB,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+bk+"&mn="+aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+
dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=audio%2Fwebm&ns="+ak+"&gir="+rl+"&clen="+uB+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'audio/webm; codecs="opus"',bitrate:Xj,initRange:{start:"0",end:"265"},indexRange:{start:jp,
end:fZ},lastModified:Bb,contentLength:uB,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Xj,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:uB,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+bk+"&mn="+aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=audio%2Fwebm&ns="+
ak+"&gir="+rl+"&clen="+uB+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+d+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'audio/webm; codecs="opus"',bitrate:Xj,initRange:{start:"0",end:"265"},indexRange:{start:jp,end:fZ},lastModified:Bb,contentLength:uB,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Xj,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:uB,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+RJ+".googlevideo.com/videoplayback?expire="+he+"&ei="+O+"&ip="+CZ+"&id=o-AF"+N1+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+bk+"&mn="+aM+"&ms="+aM+"&mv="+gs+"&mvi="+aJ+"&pl="+dl+"&initcwndbps="+uB+"&siu="+aJ+"&spc="+pp+"&vprv="+aJ+"&svpuc="+aJ+"&mime=audio%2Fwebm&ns="+ak+"&gir="+rl+"&clen="+ot+"&dur="+ot+"&lmt="+Bb+"&mt="+he+"&fvip=3&keepalive="+rl+"&c=WEB&txp="+
uB+"&n="+Zh+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+K+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+v,mimeType:'audio/webm; codecs="opus"',bitrate:AC,initRange:{start:"0",end:"265"},indexRange:{start:jp,end:fZ},lastModified:Bb,contentLength:ot,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:AC,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:uB,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="+zl+"&docid="+C+"&ei="+O+"&feature="+f+"&fexp="+kQ+"&ns="+Hr+"&plid="+A+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+gs+"&el="+Lt+"&len="+fZ+"&of="+lm+
"&uga="+dl+"&vm="+Tm},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+zl+"&docid="+C+"&ei="+O+"&feature="+f+"&fexp="+kQ+"&ns="+Hr+"&plid="+A+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+gs+"&el="+Lt+"&len="+fZ+"&of="+lm+"&uga="+dl+"&vm="+Tm},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+zl+"&docid="+C+"&ei="+O+"&feature="+f+"&fexp="+kQ+"&ns="+Hr+"&plid="+A+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
gs+"&el="+Lt+"&len="+fZ+"&of="+lm+"&uga="+dl+"&vm="+Tm},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+O+"&m="+Y$+"&oid="+lm+"&plid="+A+"&pltype="+D8+"&ptchn="+lm+"&ptk="+b+"&video_id="+C},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+zl+"&docid="+C+"&ei="+O+"&event="+md+"&feature="+f+"&fexp="+kQ+"&ns="+Hr+"&plid="+A+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+gs},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+C+"&ei="+O+"&feature="+
f+"&len="+fZ+"&ns="+Hr+"&plid="+A+"&ver="+aJ,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+C+"&caps="+rl+"&opi="+zl+"&xoaf="+aJ+"&hl="+Hr+"&ip="+CZ+"&ipbits="+aJ+"&expire="+he+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+CZ+"&key="+rl+"&lang="+Kp,name:{simpleText:ud},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+C+"&caps="+rl+"&opi="+zl+"&xoaf="+aJ+"&hl="+Hr+"&ip="+CZ+"&ipbits="+aJ+"&expire="+he+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+CZ+"&key="+rl+"&kind="+rl+"&lang="+Hr,name:{simpleText:ZK},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:sU,title:Zh,lengthSeconds:"1155",keywords:[sU,sU,Lt,ZK],
channelId:ak,isOwnerViewing:!1,shortDescription:sU,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+C+"/hqdefault.jpg?sqp=-oaymwE"+hl+"G&rs="+IR,width:168,height:94},{url:"https://i.ytimg.com/vi/"+C+"/hqdefault.jpg?sqp=-oaymwE"+hl+"G&rs="+IR,width:196,height:110},{url:"https://i.ytimg.com/vi/"+C+"/hqdefault.jpg?sqp=-oaymwE"+hl+"G&rs="+R,width:246,height:138},{url:"https://i.ytimg.com/vi/"+C+"/hqdefault.jpg?sqp=-oaymwE"+hl+"G&rs="+R,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
C+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:uB,author:Kg,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:uB,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+lm+"/featured_channel.jpg?v="+Zn,width:40,height:40}]},trackingParams:sv+"=",navigationEndpoint:{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{url:"/channel/"+ak,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ak}},channelName:Kg,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Zn}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ak,showPreferences:!1,subscribedButtonText:{runs:[{text:Iu}]},unsubscribedButtonText:{runs:[{text:Tc}]},trackingParams:sv+"=",unsubscribeButtonText:{runs:[{text:D8}]},serviceEndpoints:[{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[ak],params:Zn}},{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:IM,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:sv+"=",dialogMessages:[{runs:[{text:lL},{text:D8},{text:Pw}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:OM}]},serviceEndpoint:{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ak],params:Zn}},accessibility:{label:ZK},trackingParams:sv+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:md}]},accessibility:{label:md},trackingParams:sv+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:mM}},unsubscribeAccessibility:{accessibilityData:{label:ZK}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:ot},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ak],params:Zn}},unsubscribeCommand:{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ak],params:Zn}},addToWatchLaterCommand:{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:sU,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:sU}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+C+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+hl+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
C+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+sU,width:1280,height:720},title:{simpleText:OM},description:{simpleText:Kg},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+ZK,externalChannelId:ak,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:uB,category:"Travel & Events",publishDate:vb,ownerChannelName:Kg,uploadDate:vb}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:Cp},trackingParams:sv+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:IM,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:sv+"="}}],headerText:{simpleText:Tc},icon:{infoCardIconRenderer:{trackingParams:sv+"="}},closeButton:{infoCardIconRenderer:{trackingParams:sv+"="}},trackingParams:sv+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:sv+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+sU+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:LN,interpreterSafeUrl:(Bc.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+re+".js",Bc),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:Kg},{text:ud,bold:!0}]},endpoint:{clickTrackingParams:IM,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:sv+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:D8}]},actionButton:{buttonRenderer:{text:{runs:[{text:Lt}]},navigationEndpoint:{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+C,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
C,target:"TARGET_NEW_WINDOW"}},trackingParams:sv+"="}},trackingParams:sv+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+sM+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+sM+"=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:uB,endMs:uB,title:{accessibility:{accessibilityData:{label:D8}},simpleText:Tc},metadata:{simpleText:OM},callToAction:{simpleText:mM},dismiss:{simpleText:Iu},endpoint:{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{url:"/channel/"+ak,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ak}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Kg}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ak,showPreferences:!1,
subscribedButtonText:{runs:[{text:Zh}]},unsubscribedButtonText:{runs:[{text:Pw}]},trackingParams:sv+"=",unsubscribeButtonText:{runs:[{text:Kg}]},serviceEndpoints:[{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ak],params:Zn}},{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:IM,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:sv+
"=",dialogMessages:[{runs:[{text:Pw},{text:Zh},{text:Kg}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:PQ}]},serviceEndpoint:{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ak],params:Zn}},accessibility:{label:ud},trackingParams:sv+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:PQ}]},
accessibility:{label:Pw},trackingParams:sv+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:Pw}},unsubscribeAccessibility:{accessibilityData:{label:PQ}}}},trackingParams:sv+"=",isSubscribe:!0,id:nZ}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+C+"/hqdefault.jpg?sqp=-oaymwE"+hl+"G&rs="+R,width:168,height:94},{url:"https://i.ytimg.com/vi/"+C+"/hqdefault.jpg?sqp=-oaymwE"+hl+"G&rs="+IR,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+C+"/hqdefault.jpg?sqp=-oaymwE"+hl+"G&rs="+R,width:246,height:138},{url:"https://i.ytimg.com/vi/"+C+"/hqdefault.jpg?sqp=-oaymwE"+hl+"G&rs="+R,width:336,height:188},{url:"https://i.ytimg.com/vi/"+C+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:uB,endMs:uB,title:{accessibility:{accessibilityData:{label:OM}},simpleText:sU},metadata:{simpleText:Pw},endpoint:{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
sU,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:sU,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+RJ+".googlevideo.com/videoplayback?source=youtube&oeis="+aJ+"&c=WEB&oad="+fZ+"&ovd="+fZ+"&oaad="+Uv+"&oavd="+Uv+"&ocs="+jp+"&oewis="+aJ+"&oputc="+aJ+"&ofpcc="+aJ+"&siu="+aJ+"&msp="+aJ+"&odepv="+aJ+
"&id=o-AF"+N1+"&ip="+CZ+"&initcwndbps="+uB+"&mt="+he+"&oweuc="+kQ}}}}},trackingParams:sv+"=",id:nZ,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:ud}},simpleText:OM},style:"DEFAULT"}}]}}],startMs:uB,trackingParams:sv+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:aJ,offsetEndMilliseconds:Uv},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+zl+";dc_trk_cid="+zl+";dc_dbm_token="+v+";ord="+he+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+aJ+";dc_rui="+aJ+";dc_exteid="+nZ+";dc_av="+jp+";dc_sk="+aJ+";dc_ctype="+dl+";dc_ref=http://www.youtube.com/video/"+sU+";dc_pubid="+aJ+";dc_btype=23?gclid="+xB+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
X+"____________"+Q+"AxAA&sigh="+sU+"&cid="+Fw+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+aJ+"&ns="+aJ+"&event="+aJ+"&device="+aJ+"&content_v="+C+"&el="+Lt+"&ei="+O+"&devicever="+F+"&bti="+uB+"&format="+FK+"&break_type="+aJ+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+aJ+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+CZ+"&slot_pos="+aJ+"&slot_len="+aJ+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+bk+"&ad_len="+Uv+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
sU+"&aqi="+O+"&ad_rmp="+aJ+"&sli="+aJ}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+C+"&cid="+Fw+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+C+"&cid="+Fw+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+
aJ+";etm1="+aJ+";eid1="+dl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+C+"&cid="+Fw+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+FK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
X+"____________"+Q+"AxAA&sigh="+C+"&cid="+Fw+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+dl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+C+"&cid="+Fw+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+C+"&cid="+Fw+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+dl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+C+"&cid="+Fw+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+uB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+C+"&cid="+Fw+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
X+"____________"+Q+"AxAA&sigh="+C+"&cid="+Fw+"&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"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&ctype="+jp+"&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"+
X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_engaged_view&ctype="+jp+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+FK+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
zl+";dc_trk_cid="+zl+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+aJ+";ord="+zl+";dc_rui="+aJ+";dc_exteid="+PH+";dc_av="+aJ+";dc_sk="+aJ+";dc_ctype="+dl+";dc_pubid="+aJ+";dc_btype=3?gclid="+xB+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+C+"&cid="+Fw+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+dl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+"&sig="+hC+"&ad_cpn=[AD_CPN]&id="+OM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+OM+"&dc_pubid="+aJ+"&dc_exteid="+nZ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+C+"&cid="+Fw+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+"&sig="+hC+"&ad_cpn=[AD_CPN]&id="+OM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+aJ},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+OM+"&avm="+aJ+"&dc_pubid="+aJ+"&dc_exteid="+
nZ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+C+"&cid="+Fw+"&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="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+dl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
t+"&sig="+hC+"&ad_cpn=[AD_CPN]&id="+OM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+aJ},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+OM+"&dc_pubid="+aJ+"&dc_exteid="+nZ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+dl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+FK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+dl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+FK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+C+"&cid="+Fw+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+dl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:IM,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+
jp+"&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/"+C+"/mqdefault.jpg",width:320,height:180}]},trackingParams:sv+"="},trackingParams:sv+
"=",templatedCountdown:{templatedAdText:{text:D8,isTemplated:!0,trackingParams:sv+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Zn,isTemplated:!1,trackingParams:sv+"="},trackingParams:sv+"="}},trackingParams:sv+"=",skipOffsetMilliseconds:5E3}},trackingParams:sv+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:OM},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:sv+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Pw,isTemplated:!1,trackingParams:sv+"="},trackingParams:sv+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:ud,isTemplated:!0,trackingParams:sv+"="}},trackingParams:sv+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:IM,openPopupAction:{popup:{aboutThisAdRenderer:{url:(RI.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Y+"&hl="+Hr+"&origin=www.youtube.com&ata_theme="+lL,RI),trackingParams:sv+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:sv+"="}},hoverText:{runs:[{text:ZK}]},trackingParams:sv+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+qp+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:sv+"="},headline:{text:lL,isTemplated:!1,trackingParams:sv+"="},description:{text:Zh,
trackingParams:sv+"="},actionButton:{buttonRenderer:{text:{simpleText:PQ},navigationEndpoint:{clickTrackingParams:IM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+zl+";dc_trk_cid="+zl+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+aJ+";ord="+zl+";dc_rui="+aJ+";dc_exteid="+nZ+";dc_av="+aJ+";dc_sk="+aJ+";dc_ctype="+dl+";dc_pubid="+aJ+";dc_btype=3?gclid="+xB+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:sv+"="}},startMs:aJ,trackingParams:sv+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:lL},elementId:ud}},elementId:Cp,trackingParams:sv+"=",legacyInfoCardVastExtension:Iu,sodarExtensionData:{siub:lL,bgub:md,scs:OM,bgp:Cp},externalVideoId:sU,adLayoutLoggingData:{serializedAdServingDataEntry:OM},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+qp+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:sv+"="},
headline:{text:PQ,isTemplated:!1,trackingParams:sv+"="},description:{text:Kg,isTemplated:!1,trackingParams:sv+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:ZK},navigationEndpoint:{clickTrackingParams:IM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+zl+";dc_trk_cid="+zl+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+aJ+";ord="+zl+";dc_rui="+aJ+";dc_exteid="+
nZ+";dc_av="+aJ+";dc_sk="+aJ+";dc_ctype="+dl+";dc_pubid="+aJ+";dc_btype=3?gclid="+xB+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+
aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:sv+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:sv+"="}},navigationEndpoint:{clickTrackingParams:IM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+zl+";dc_trk_cid="+
zl+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+aJ+";ord="+zl+";dc_rui="+aJ+";dc_exteid="+nZ+";dc_av="+aJ+";dc_sk="+aJ+";dc_ctype="+dl+";dc_pubid="+aJ+";dc_btype=3?gclid="+xB+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+C+"&cid="+Fw+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+
Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:sv+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:sv+"="},abandonCommands:{commands:[{clickTrackingParams:IM,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+C+"&cid="+Fw+"&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="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+
aJ+"="+aJ+";etm1="+aJ+";eid1="+dl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:IM,commandExecutorCommand:{commands:[{clickTrackingParams:IM,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+C+"&cid="+Fw+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:Iu,isTemplated:!1,trackingParams:sv+
"="},trackingParams:sv+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:PQ},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+C+"&cid="+Fw+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+uB+";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="+zl+";dc_trk_cid="+zl+";ord="+he+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+aJ+";dc_rui="+aJ+";dc_exteid="+nZ+";dc_av="+jp+";dc_sk="+aJ+";dc_ctype="+dl+";dc_ref=http://www.youtube.com/video/"+sU+";dc_pubid="+aJ+";dc_btype=23?gclid="+xB+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+X+"____________"+Q+"AxAA&sigh="+sU+"&cid="+Fw+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+aJ+"&ns="+aJ+"&event="+aJ+"&device="+aJ+"&content_v="+C+"&el="+Lt+"&ei="+O+"&devicever="+F+"&bti="+uB+"&format="+FK+"&break_type="+aJ+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+aJ+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+CZ+"&slot_pos="+aJ+"&slot_len="+aJ+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
bk+"&ad_len="+Uv+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+sU+"&aqi="+O+"&ad_rmp="+aJ+"&sli="+aJ}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+sU+"&cid="+Fw+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+sU+"&cid="+Fw+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+dl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+sU+"&cid="+Fw+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+FK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+sU+"&cid="+Fw+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+dl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+sU+"&cid="+
Fw+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+sU+"&cid="+Fw+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+dl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
X+"____________"+Q+"AxAA&sigh="+sU+"&cid="+Fw+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+uB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+sU+"&cid="+Fw+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+sU+"&cid="+Fw+"&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"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&ctype="+jp+"&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"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_engaged_view&ctype="+jp+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+FK+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+sU+"&cid="+Fw+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+dl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+"&sig="+hC+"&ad_cpn=[AD_CPN]&id="+
OM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+OM+"&dc_pubid="+aJ+"&dc_exteid="+nZ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+sU+"&cid="+Fw+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+
"&sig="+hC+"&ad_cpn=[AD_CPN]&id="+OM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+aJ},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+OM+"&avm="+aJ+"&dc_pubid="+aJ+"&dc_exteid="+nZ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+sU+"&cid="+Fw+"&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="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+dl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+t+"&sig="+hC+"&ad_cpn=[AD_CPN]&id="+OM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+aJ},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+OM+"&dc_pubid="+aJ+"&dc_exteid="+nZ+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+dl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+FK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+dl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+FK+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+sU+"&cid="+Fw+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+dl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+
jp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&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/"+C+"/mqdefault.jpg",width:320,height:180}]},trackingParams:sv+"="},trackingParams:sv+"=",templatedCountdown:{templatedAdText:{text:ud,isTemplated:!0,trackingParams:sv+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:lL,isTemplated:!1,trackingParams:sv+"="},trackingParams:sv+"="}},
trackingParams:sv+"=",skipOffsetMilliseconds:5E3}},trackingParams:sv+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:sU},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:sv+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:ud,isTemplated:!1,trackingParams:sv+"="},trackingParams:sv+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Zn,
isTemplated:!0,trackingParams:sv+"="}},trackingParams:sv+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:IM,openPopupAction:{popup:{aboutThisAdRenderer:{url:(PL.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Y+"&hl="+Hr+"&origin=www.youtube.com&ata_theme="+lL,PL),trackingParams:sv+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:sv+"="}},hoverText:{runs:[{text:Tc}]},trackingParams:sv+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+np+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:sv+"="},headline:{text:lL,isTemplated:!1,trackingParams:sv+"="},description:{text:md,trackingParams:sv+"="},actionButton:{buttonRenderer:{text:{simpleText:mM},navigationEndpoint:{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:sv+"="}},startMs:aJ,trackingParams:sv+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Lt},elementId:mM}},elementId:ud,trackingParams:sv+"=",legacyInfoCardVastExtension:PQ,sodarExtensionData:{siub:Iu,bgub:D8,scs:OM,bgp:Lt},externalVideoId:sU,adLayoutLoggingData:{serializedAdServingDataEntry:Lt},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+np+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:sv+"="},headline:{text:Tc,
isTemplated:!1,trackingParams:sv+"="},description:{text:md,isTemplated:!1,trackingParams:sv+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Pw},navigationEndpoint:{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:sv+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:sv+"="}},navigationEndpoint:{clickTrackingParams:IM,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
X+"____________"+Q+"AxAA&sigh="+sU+"&cid="+Fw+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+
aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:sv+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:sv+"="},abandonCommands:{commands:[{clickTrackingParams:IM,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+sU+"&cid="+Fw+"&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="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+aJ+"="+aJ+";etm1="+aJ+";eid1="+dl+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:IM,commandExecutorCommand:{commands:[{clickTrackingParams:IM,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+sU+"&cid="+Fw+"&label=video_card_endcap_impression"}],
pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:PQ,isTemplated:!1,trackingParams:sv+"="},trackingParams:sv+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:md},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+sU+"&cid="+Fw+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+aJ+";dc_exteid="+nZ+";met="+aJ+";ecn"+
aJ+"="+aJ+";etm1="+aJ+";eid1="+uB+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:lL}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:mM}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Uv,offsetEndMilliseconds:FK},hideCueRangeMarker:!0}},
renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+dl+"&token=ALHj"+ld+"&index="+aJ+"&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="+F+"&m_pos_ms="+Uv}},adSlotLoggingData:{serializedSlotAdServingDataEntry:OM}}},
{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:FK,offsetEndMilliseconds:FK},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+jp+"&token=ALHj"+ld+"&index="+aJ+"&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="+
F+"&m_pos_ms="+FK}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Iu}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:FK,offsetEndMilliseconds:FK},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+jp+"&token=ALHj"+ld+"&index="+aJ+"&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="+
F+"&m_pos_ms="+FK}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ud}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:FK,offsetEndMilliseconds:FK},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+jp+"&token=ALHj"+ld+"&index="+aJ+"&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="+
F+"&m_pos_ms="+FK}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Iu}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:FK,offsetEndMilliseconds:dl},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+jp+"&token=ALHj"+ld+"&index="+aJ+"&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="+
F+"&m_pos_ms="+FK}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Cp}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:dl,offsetEndMilliseconds:dl},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+O+"&m_pos="+dl+"&token=ALHj"+ld+"&index="+aJ+"&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="+
F+"&m_pos_ms="+dl}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Tc}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Kg,isTemplated:!1,trackingParams:sv+"="},description:{text:sU,isTemplated:!1,trackingParams:sv+"="},actionButton:{buttonRenderer:{text:{simpleText:Kg},navigationEndpoint:{clickTrackingParams:IM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
zl+";dc_trk_cid="+zl+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+aJ+";ord="+zl+";dc_rui="+aJ+";dc_exteid="+nZ+";dc_av="+aJ+";dc_sk="+aJ+";dc_ctype="+dl+";dc_pubid="+aJ+";dc_btype=3?gclid="+xB+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:sv+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+qp+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:sv+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Jz+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:sv+"="},navigationEndpoint:{clickTrackingParams:IM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+zl+";dc_trk_cid="+zl+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+aJ+";ord="+zl+
";dc_rui="+aJ+";dc_exteid="+nZ+";dc_av="+aJ+";dc_sk="+aJ+";dc_ctype="+dl+";dc_pubid="+aJ+";dc_btype=3?gclid="+xB+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:sv+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:IM,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Ckd.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Y+"&hl="+Hr+"&origin=www.youtube.com&ata_theme="+lL,Ckd),trackingParams:sv+"="}},popupType:"DIALOG"}},trackingParams:sv+"="}},hoverText:{runs:[{text:OM}]},trackingParams:sv+"="}},adVideoId:sU,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+C+"&cid="+Fw+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:PQ},associatedCompositePlayerBytesLayoutId:Zh}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:lL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Tc,isTemplated:!1,trackingParams:sv+"="},description:{text:Cp,isTemplated:!1,trackingParams:sv+"="},actionButton:{buttonRenderer:{text:{simpleText:Zn},navigationEndpoint:{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+
Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:sv+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+np+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:sv+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+C6+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:sv+"="},navigationEndpoint:{clickTrackingParams:IM,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+
aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:sv+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:IM,openPopupAction:{popup:{aboutThisAdRenderer:{url:(TM.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Y+"&hl="+Hr+"&origin=www.youtube.com&ata_theme="+lL,TM),trackingParams:sv+"="}},popupType:"DIALOG"}},trackingParams:sv+"="}},
hoverText:{runs:[{text:Kg}]},trackingParams:sv+"="}},adVideoId:sU,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+sU+"&cid="+Fw+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:ZK},associatedCompositePlayerBytesLayoutId:Zh}},adSlotLoggingData:{serializedSlotAdServingDataEntry:lL}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:lL,
isTemplated:!1,trackingParams:sv+"="},description:{text:md,isTemplated:!1,trackingParams:sv+"="},actionButton:{buttonRenderer:{text:{simpleText:Iu},navigationEndpoint:{clickTrackingParams:IM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+zl+";dc_trk_cid="+zl+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+aJ+";ord="+zl+";dc_rui="+aJ+";dc_exteid="+nZ+";dc_av="+aJ+";dc_sk="+aJ+";dc_ctype="+
dl+";dc_pubid="+aJ+";dc_btype=3?gclid="+xB+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+
R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:sv+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+qp+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:sv+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Jz+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:sv+
"="},navigationEndpoint:{clickTrackingParams:IM,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+zl+";dc_trk_cid="+zl+";dc_dbm_token="+v+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+aJ+";ord="+zl+";dc_rui="+aJ+";dc_exteid="+nZ+";dc_av="+aJ+";dc_sk="+aJ+";dc_ctype="+dl+";dc_pubid="+aJ+";dc_btype=3?gclid="+xB+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+Q+"AxAA&ase=2&num="+aJ+"&cid="+Fw+"&ad_cpn=%5BAD_CPN%5D&sig="+R+"&adurl="+ge+"&label=video_click_to_advertiser_site&ctype="+jp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:sv+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:IM,openPopupAction:{popup:{aboutThisAdRenderer:{url:(sn.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Y+"&hl="+Hr+"&origin=www.youtube.com&ata_theme="+lL,sn),trackingParams:sv+"="}},popupType:"DIALOG"}},trackingParams:sv+
"="}},hoverText:{runs:[{text:ZK}]},trackingParams:sv+"="}},adVideoId:sU,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+Q+"AxAA&sigh="+C+"&cid="+Fw+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:OM},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:Zh}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Iu}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:re,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:re,command:{innertubeCommand:{clickTrackingParams:IM,ypcGetOfflineUpsellEndpoint:{params:h_}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:sv+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:he,nanos:Bz}}}},tCw=JSON.stringify(nG),yA=performance.now()-p;return{objectRepresentation:nG,jsonRepresentation:tCw,generationTime:yA}};
dYE=function(p,x){if(p===x)return!0;if(!p||!x||typeof p!==typeof x)return!1;if(p instanceof Array&&x instanceof Array){if(p.length!==x.length)return!1;for(var F=0;F<p.length;F++)if(!dYE(p[F],x[F]))return!1;return!0}if(typeof p==="object"&&typeof x==="object"&&p&&x){for(F in p)if(!(F in x&&dYE(p[F],x[F])))return!1;for(var N in x)if(!(N in p))return!1;return!0}return!1};
xs=function(p,x,F,N){if(p===x)return!0;if(Array.isArray(p)&&Array.isArray(x)){if(p.length!==x.length)return!1;for(var h=0;h<p.length;h++)if(!xs(p[h],x[h],F,N))return!1;return!0}if(p instanceof Set||x instanceof Set){if(p instanceof Set&&x instanceof Set){if(p.size!==x.size)return!1;N=_.a(p.values());for(h=N.next();!h.done;h=N.next())if(!x.has(h.value))return!1;return!0}return!1}if(p instanceof Function){if(N)return!0;p.name===""&&_.zj(Error("Ff"),"ERROR");return!1}if(p instanceof Date&&x instanceof
Date)return p.getTime()===x.getTime();if(p instanceof Object&&x instanceof Object){if(v4d(p)&&v4d(x))try{return p.equals(x)}catch(M){_.zj(Error("Gf`"+M),"ERROR")}h=Object.getOwnPropertyNames(p).filter(function(M){return F?p[M]!==void 0:!0});
var c=Object.getOwnPropertyNames(x).filter(function(M){return F?x[M]!==void 0:!0});
if(h.length!==c.length)return!1;h=_.a(h);for(c=h.next();!c.done;c=h.next())if(c=c.value,!xs(p[c],x[c],F,N))return!1;return!0}return!1};
v4d=function(p){p=Object.getPrototypeOf(p).equals;return p instanceof Function&&p.length===1};
SoH=function(){return _.D(function(p){if(p.nextAddress==1)return JM$!==2?p.jumpTo(2):_.q(p,CuM(),3);p.nextAddress!=2&&(JM$=p.yieldResult);return p.return(JM$)})};
XnJ=function(){return _.D(function(p){if(p.nextAddress==1)return _.S("ab_pl_man")?rMZ!==2?p.jumpTo(2):_.q(p,E4B(),3):p.return(1);p.nextAddress!=2&&(rMZ=p.yieldResult);return p.return(rMZ)})};
zrw=function(){return _.D(function(p){if(p.nextAddress==1)return _.S("ab_fk_sk_cl")?g46!==2?p.jumpTo(2):_.q(p,Q0H(),3):p.return(1);p.nextAddress!=2&&(g46=p.yieldResult);return p.return(g46)})};
yMH=function(){return _.D(function(p){if(p.nextAddress==1)return _.S("ab_det_apb_b")?s0k!==2?p.jumpTo(2):_.q(p,n4p(),3):p.return(1);p.nextAddress!=2&&(s0k=p.yieldResult);return p.return(s0k)})};
uUm=function(){var p;return _.D(function(x){if(x.nextAddress==1)return _.q(x,Promise.all([SoH(),yMH(),XnJ(),zrw()]),2);if(x.nextAddress!=3)return bXp()?x.return(!0):_.q(x,AMd(),3);p=x.yieldResult;return x.return(p===0)})};
bXp=function(){var p=[];p.push(YoJ());_.S("disable_enf_isd")||p.push(wn$());p.push(JM$);p.push(s0k);p.push(rMZ);p.push(g46);if(_.S("ab_det_el_h")){var x=p.push;GHp===2&&(GHp=Vgm(ZXw(W_J)));x.call(p,GHp)}_.S("ks_det_gpbl")||p.push(HX$());_.S("ks_get_o_pp")||p.push(mYM());_.S("ab_deg_unex_thr")||p.push(o4H());p.push(OX$);_.S("ab_det_sc_inj_enf")&&p.push(j0d());p.push(L_m);_.S("ab_det_pp_ov")&&p.push(PuJ(TPp));_.S("ab_det_apm")&&p.push(BPH());return _.S("debug_sk_em_precheck")?!0:p.includes(0)};
kHk=function(){var p=[].concat(_.se(Rrz));try{var x=pR();p.push({jsonRepresentation:x.jsonRepresentation,objectRepresentation:x.objectRepresentation})}catch(F){p=[].concat(_.se(Rrz))}return p};
UYw=function(){var p=["adPlacements","adSlots"];try{return p.filter(function(){return!0}).length!==p.length?0:1}catch(x){return 0}};
mYM=function(){if(UYw()===0)return 0;var p=pR(),x=p.objectRepresentation,F=(0,_.Q5.unsafeClone)(x),N=[];if(x&&typeof x==="object")for(var h in x)N.push(h);else return 4;p=p.objectRepresentation.adPlacements;if(!(p&&p.length>0))return 4;try{if(!dYE(N,Object.getOwnPropertyNames(x)))return 0}catch(c){return 0}return dYE(F,x)?1:0};
PuJ=function(p){var x=Object.getOwnPropertyNames(Object.prototype);p=_.a(p);for(var F=p.next();!F.done;F=p.next()){F=iXH(F.value);for(var N=_.a(x),h=N.next();!h.done;h=N.next())if(F===h.value)return 0}return 1};
BPH=function(){for(var p=IyM,x=0;x<p.length;x++){var F=p[x];var N=F[1];if(F[0]!==null){F=F[0];for(var h={},c=0;c<F.length;c++){var M=F[c];if(c===0)h[M]=N;else{var f={};f[M]=h;h=f}}N=h}F=[];F.push(N);if(F.length===0)return 0}return 1};
YoJ=function(){for(var p=_.a(kHk()),x=p.next();!x.done;x=p.next()){var F=x.value;x=F.jsonRepresentation;F=F.objectRepresentation;try{var N=JSON.parse(x);if(!xs(N,F,!1,!1))return 0}catch(h){return 0}}return 1};
j0d=function(){try{var p=_.ID("ab_det_sc_inj_val");p.length===1&&p[0]===""&&(p=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var x=document.querySelectorAll("script"),F=_.a(x),N=F.next();!N.done;N=F.next())for(var h=N.value,c=_.a(p),M=c.next();!M.done;M=c.next()){var f=M.value;x=void 0;if((x=h.textContent)==null?0:x.includes(f))return 0}}catch(K){return 4}return 1};
AMd=function(){var p,x,F,N,h,c,M;return _.D(function(f){switch(f.nextAddress){case 1:_.KM(f,2),p=_.a(Rrz),x=p.next();case 4:if(x.done)return f.return(1);N=F=x.value;h=N.jsonRepresentation;c=N.objectRepresentation;return _.q(f,(new Response(h,{status:200})).json(),7);case 7:M=f.yieldResult;if(!xs(M,c,!1,!1))return f.return(0);x=p.next();f.jumpTo(4);break;case 2:return _.v9(f),f.return(4)}})};
o4H=function(){try{btoa("abc")}catch(p){return 0}return 1};
CuM=function(){var p,x,F,N,h,c,M,f,K,t,d;return _.D(function(v){switch(v.nextAddress){case 1:_.KM(v,2),p=_.a(kHk()),x=p.next();case 4:if(x.done)return v.return(1);N=F=x.value;h=N.jsonRepresentation;c=N.objectRepresentation;M=btoa(h);f="data:application/json;base64,"+M;K=new Request(f);Object.defineProperty(K,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(K,"method",{get:function(){return"POST"}});
Object.defineProperty(K,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(K,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(K,"body",{get:function(){return new ReadableStream}});
return _.q(v,fetch(K),7);case 7:return t=v.yieldResult,_.q(v,t.json(),8);case 8:d=v.yieldResult;if(!xs(d,c,!1,!1))return v.return(0);x=p.next();v.jumpTo(4);break;case 2:return _.v9(v),v.return(4)}})};
Vgm=function(p){var x=_.a(p);p=x.next().value;x=x.next().value;try{var F=document.createElement("div");document.body.appendChild(F);var N=getComputedStyle(F).display;document.body.removeChild(F);if(N==="none")return 4;var h=getComputedStyle(x).display==="none"?0:1;document.body.removeChild(p);return h}catch(c){return 4}};
Q0H=function(){var p,x,F;return _.D(function(N){p=new _.FT;x=document.createElement("button");x.classList.add("ytp-ad-skip-button");x.style.opacity="0";x.style.height="0px";x.style.width="0px";x.style.padding="0px";x.style.border="none";F=function(){x.parentElement&&x.parentElement.removeChild(x)};
x.onclick=function(){p.resolve(0);F()};
document.body.appendChild(x);setTimeout(function(){F();p.resolve(1)},50);
return N.return(p.promise)})};
E4B=function(){var p,x,F,N,h,c,M;return _.D(function(f){p=new _.FT;x=document.createElement("ytd-player");try{document.body.prepend(x)}catch(K){return f.return(4)}F=function(){x.parentElement&&x.parentElement.removeChild(x)};
x.getElementsByTagName("div").length>0?N=x.getElementsByTagName("div")[0]:(N=document.createElement("div"),x.appendChild(N));h=document.createElement("div");N.appendChild(h);c=document.createElement("video");M=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});c.src=_.n6(YE(M));c.ontimeupdate=function(){F();p.resolve(0)};
h.appendChild(c);c.classList.add("html5-main-video");setTimeout(function(){h.classList.add("ad-interrupting")},200);
setTimeout(function(){F();p.resolve(1)},5E3);
return f.return(p.promise)})};
$Y6=function(p,x){var F,N;return _.D(function(h){switch(h.nextAddress){case 1:F=[],N=0;case 2:if(!(N<3)){h.jumpTo(4);break}return _.q(h,fetch(p,{cache:"no-store",method:x}).then(function(c){F.push(c.status)}).catch(function(){F.push(-1)}),3);
case 3:N++;h.jumpTo(2);break;case 4:return h.return(F)}})};
erZ=function(p){return p.domainLookupStart===0&&p.domainLookupEnd===0&&p.connectStart===0&&p.connectEnd===0};
pL6=function(p,x,F){F=F===void 0?"GET":F;var N,h,c,M,f,K,t,d,v,C;return _.D(function(X){if(X.nextAddress==1)return _.q(X,Promise.all([$Y6(p,F),$Y6(x,F)]),2);N=X.yieldResult;h=_.a(N);c=h.next().value;M=h.next().value;f=c;K=M;if(Math.min.apply(Math,_.se(K))!==Math.max.apply(Math,_.se(K))||Math.min.apply(Math,_.se(f))!==Math.max.apply(Math,_.se(f)))return X.return(2);if(Math.min.apply(Math,_.se(K))===Math.min.apply(Math,_.se(f)))return X.return(1);d=(t=performance.getEntriesByName(p))==null?void 0:t[0];
C=(v=performance.getEntriesByName(x))==null?void 0:v[0];return d&&C?erZ(C)?X.return(1):erZ(d)?X.return(0):X.return(1):X.return(2)})};
n4p=function(){var p;return _.D(function(x){var F=[];var N;var h,c,M;(h=N=(h=pR().objectRepresentation.streamingData)==null?void 0:(c=h.formats)==null?void 0:(M=c[0])==null?void 0:M.url)&&h&&!N.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(h=h.replace("initcwndbps","ctier=L&initcwndbps"),N={testUrl:h,baseUrl:N,method:"GET"}):N=void 0;N&&F.push(N);_.S("ab_net_tp_e")&&F.push({testUrl:_.Mm.location.origin+"/ad_companion",baseUrl:_.Mm.location.origin+"/generate_204",method:"OPTIONS"});if(_.S("ad_net_pb_ab")){var f;
b:{N=/api\/stats\/ads/;var K,t,d,v;h=(f=pR().objectRepresentation.adPlacements)==null?void 0:(K=f[0])==null?void 0:(t=K.adPlacementRenderer)==null?void 0:(d=t.renderer)==null?void 0:(v=d.linearAdSequenceRenderer)==null?void 0:v.linearAds;if(h!=null&&h.length&&(f=_.r(h[0],xWm))&&(f=f.pings,f!=null&&f.impressionPings))for(K=[].concat(_.se(f.impressionPings)),f.progressPings&&(K=[].concat(_.se(K),_.se(f.progressPings))),f=_.a(K),K=f.next();!K.done;K=f.next())if(K=K.value,K.baseUrl&&N.test(K.baseUrl)){f=
K.baseUrl.replace("https://www.youtube.com","");break b}f=void 0}f&&F.push({testUrl:_.Mm.location.origin+f,baseUrl:_.Mm.location.origin+"/feed/download",method:"GET"})}if(_.S("ad_net_pb_pbp")){var C;b:{f=/api\/stats\/qoe/;if(K=pR().objectRepresentation.playbackTracking){t=[];t.push(K==null?void 0:(C=K.videostatsPlaybackUrl)==null?void 0:C.baseUrl);var X;t.push(K==null?void 0:(X=K.videostatsDelayplayUrl)==null?void 0:X.baseUrl);var Q;t.push(K==null?void 0:(Q=K.videostatsWatchtimeUrl)==null?void 0:
Q.baseUrl);var b;t.push(K==null?void 0:(b=K.ptrackingUrl)==null?void 0:b.baseUrl);var A;t.push(K==null?void 0:(A=K.qoeUrl)==null?void 0:A.baseUrl);var Y;t.push(K==null?void 0:(Y=K.atrUrl)==null?void 0:Y.baseUrl);C=_.a(t);for(X=C.next();!X.done;X=C.next())if((X=X.value)&&f.test(X)){C=X.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}C=void 0}C&&F.push({testUrl:_.Mm.location.origin+C,baseUrl:_.Mm.location.origin+"/feed/download",method:"GET"})}F=F.length!==0?F[Math.floor(Math.random()*
F.length)]:void 0;return(p=F)?x.return(pL6(p.testUrl,p.baseUrl,p.method)):x.return(4)})};
wn$=function(){return _.sd("ISDSTAT",2)};
HX$=function(){if(_.Mm.pdE===void 0||_.Mm.pdE===null||typeof _.Mm.pdE!=="function")return 2;try{return _.Mm.pdE()===!0?0:1}catch(p){return 0}};
FBp=function(p){switch(p){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Pb(p,"unknown result type")}};
_.NFp=function(p,x){var F=Number(_.sd("CATSTAT",0));if(x.oQr===void 0)return F;x=x.oQr;p=FBp(p);return F&~(3<<x)|p<<x};
h1d=function(p){var x,F;if((p=(x=p.auxiliaryUi)==null?void 0:(F=x.messageRenderers)==null?void 0:F.bkaEnforcementMessageViewModel)&&p.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return p};
_.hF=function(){if(!NB){NB=new Mc(new lEB);var p=_.Ud("client_streamz_web_flush_count",-1);p!==-1&&(NB.invocationLimit=p)}return NB};
aEM=function(){for(var p=_.a(Object.values(_.c5r)),x=p.next();!x.done;x=p.next())x=x.value,x.isAsync&&x.oQr&&_.zn("CATSTAT",_.NFp(2,x))};
_.MB=function(p,x){p=_.lX("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",p);(x===void 0?0:x)?_.M1B(p,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.cg(_.as(),p,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
fEH=function(){if(!DWB){if(Polymer.Base){var p=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{p.apply(this,arguments)}catch(v){_.yL(v)}};
var x=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{x.apply(this,arguments)}catch(v){_.yL(v)}};
var F=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{F.apply(this,arguments)}catch(v){_.yL(v)}};
var N=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{N.apply(this,arguments)}catch(v){_.yL(v)}};
var h=Polymer.Base._listen,c=new WeakMap;Polymer.Base._listen=function(v,C,X){var Q=function(){try{X.apply(this,arguments)}catch(b){_.yL(b)}};
c.set(X,Q);h.call(this,v,C,Q)};
var M=Polymer.Base._unlisten;Polymer.Base._unlisten=function(v,C,X){M.call(this,v,C,c.get(X))}}if(Polymer.Async){var f=Polymer.Async,K=f._atEndOfMicrotask;
f._atEndOfMicrotask=function(){try{K.apply(f,arguments)}catch(v){_.yL(v)}}}if(Polymer.RenderStatus){var t=Polymer.RenderStatus,d=t.afterNextRender;
t.afterNextRender=function(v,C,X){d.call(t,v,function(){try{C.apply(this,arguments)}catch(Q){_.yL(Q)}},X)}}DWB=!0}};
_.q7B=function(p){var x=p?_.F_(p):"";if(x){if(x.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(x.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(x.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(x.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(x.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(x.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";x=x.toLowerCase();if(x==="/")return"home";if(x===
"/channel_memberships")return"channel-memberships-shopfront";if(x.indexOf("/feed/trending")===0)return"trending";if(x.indexOf("/feed/explore")===0)return"explore";if(x.indexOf("/live")===0)return"live";if(x.indexOf("/results")===0)return"search";if(x.indexOf("/sports")===0)return"sports";if(x.indexOf("/fashion")===0||x.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(x))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(x))return"learning";
if(x.indexOf("/channel/")===0||x.indexOf("/user/")===0||x.indexOf("/gaming")===0||x.indexOf("/post/")===0)return"channel";if(KBE(p))return"show";if(x==="/playlist"||x.indexOf("/playlist/")===0||x==="/view_play_list"||x.indexOf("/view_play_list/")===0||x.indexOf("/show/")===0)return"playlist";if(x==="/feed/history"||x.indexOf("/feed/history/")===0)return"history";if(x==="/new")return"labs";if(x==="/feed/subscriptions")return"subscriptions";if(x.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(x==="/history_controls")return"standalone";if(x.indexOf("/account")===0||x==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(x.indexOf("/paid_memberships")===0||x.indexOf("/refund")===0||x.indexOf("/purchases")===0||x.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(x.indexOf("/product")===0)return"yts-products";if(x.indexOf("/premium")===0||x.indexOf("/musicpremium")===0)return x.indexOf("/premium/offers")===0||x.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(x===
"/cart/checkout"||x==="/cart")return"ypc-checkout";if(x.indexOf("/feed/downloads")===0||x.indexOf("/redeem")===0||x.indexOf("/reporthistory")===0)return"browse";if(x.indexOf("/hashtag")===0)return"hashtag-landing-page";if(x.indexOf("/handle")===0)return"handle";if(x.indexOf("/source")===0)return"audio-pivot";if(x.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(x.indexOf("/playables")===0)return"playables";if(x.indexOf("/create/live/join")===0)return"open-in-app";if(x.indexOf("/shorts")===
0)return"shorts";if(x.indexOf("/feed/channels")===0)return"subscriptions-channels";(x=p?_.F_(p):"")&&x.indexOf("/watch")===0&&_.S("web_watch_enable_learning_journey")?(p=_.VL(p),p=!!p.list&&p.list.indexOf("LJPP")===0):p=!1;if(p)return"learning-journey-watch"}};
KBE=function(p){var x=p?_.F_(p):"";if(!x)return!1;x=x.toLowerCase();return x.indexOf("/show/")===0||x.indexOf("/playlist")===0&&(p=_.VL(p),p.list&&p.list.indexOf("EL")===0)?!0:!1};
KR=function(p){var x="unknown",F;var N=((F=_.r(p==null?void 0:p.commandMetadata,_.eq))==null?void 0:F.webPageType)||"";N?(F=N.toLowerCase(),F.startsWith("web_page_type_")&&(F=F.slice(14))):F=N;F&&Zlz[F.toUpperCase()]?x=Zlz[F.toUpperCase()]:_.r(p,_.Du)||_.r(p,t1p)?x="browse":_.r(p,_.fR)?x="search":_.r(p,_.B7)&&(x="watch");x==="unknown"&&_.no(Error("If`"+JSON.stringify({clickTrackingParams:p==null?void 0:p.clickTrackingParams,commandMetadata:p==null?void 0:p.commandMetadata,allEndpointKeys:Object.keys(p||
[])})));return x};
_.tF=function(p){if(!_.dWE||p)_.dWE=_.t_();return _.dWE};
_.vkM=function(p){return!!_.r(p,_.B7)||!!_.r(p,_.dX)&&_.S("kevlar_enable_shorts_prefetch")};
_.J5B=function(p,x){p=_.r(p,_.B7)||_.r(p,_.dX);return"v"+p.videoId+(p.playlistId?"-pl"+p.playlistId:"")+(x?"-an1":"")+(p.params?"-pr"+p.params:"")};
S76=function(p){var x=_.Ud("web_pbj_log_warning_rate",0);x=x>0&&Math.random()<x;if(!_.r(p,_.dX))return x&&_.no(Error("Lf")),!1;var F;return _.S("shorts_controller_retrieve_seedless_sequence_v2")&&((F=_.r(p,_.dX))==null?void 0:F.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:ChZ(p)?!0:(x&&_.no(Error("Mf")),!1)};
ChZ=function(p){var x=(_.r(p,_.B7)||_.r(p,_.dX)).videoId;if(!x||!r5d.test(x))return!1;var F;return(p=(F=_.r(p.commandMetadata,_.eq))==null?void 0:F.url)&&(p.includes(x)||p.startsWith("/clip"))?!0:!1};
_.XLH=function(){var p=_.rH();return p.getFlag(192)?p.getFlag(190):!(_.S("web_watch_cinematics_disabled_by_default")||_.S("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&Ekp())};
_.vg=function(p,x,F){var N={};N.currentUrl=x;N.vis=p.vis!==void 0?p.vis:0;N.splay=!1;x=_.rH();N.autoCaptionsDefaultOn=x.getFlag(66);x.getFlag(141)?x.getFlag(140)?N.autonavState="STATE_OFF":N.autonavState="STATE_ON":N.autonavState="STATE_NONE";N.html5Preference="HTML5_PREF_WANTS";isNaN(_.sd("STS"))||(N.signatureTimestamp=_.sd("STS"));p.autonav&&(N.autoplay=!0,N.autonav=!0);p.mutedAutoplay&&(N.autoplay=!0,N.mutedAutoplay=!0);p.inlinePlayback&&(N.autoplay=!0,N.autonav=!1,N.isInlineUnmutedPlayback=!!p.inlineUnmuted);
N.referer=F;N.lactMilliseconds=p.lact!==void 0?p.lact.toString():"-1";_.S("enable_unknown_lact_fix_on_html5")&&N.lactMilliseconds==="-1"&&_.no(new _.qE("Unknown LACT is set in playbackContext.",{"lact in tempData":p.lact||"undefined",autonav:p.autonav||"undefined"}));p={};x.getFlag(194)&&(p.hasShownAmbientMode=!0);x.getFlag(192)&&(p.hasToggledOffAmbientMode=!0);_.XLH()&&(p.watchAmbientModeEnabled=!0);N.watchAmbientModeContext=p;return N};
gkE=function(p){var x={},F=p.pbis||0;F&&(x.playbackBeginsInSeconds=F);p.prefetch_reason&&p.prefetch_reason==="hc_pbis"&&(x.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return x};
_.QzZ=function(p){var x=new JF(_.sd("ONE_PICK_URL",""));x.urlParamMap_.set("hostId",p);(p=_.sd("GAPI_LOCALE"))&&x.urlParamMap_.set("hl",p);(p=_.sd("SESSION_INDEX"))&&x.urlParamMap_.set("authuser",p);(p=_.sd("DELEGATED_SESSION_ID"))&&x.urlParamMap_.set("groupId",p);return x};
szH=function(){var p=_.J(),x=p.resolve(_.CR);p=p.resolve(_.SV);return new z1p(x,p)};
y5p=function(p){if(window.IntersectionObserver)return new nkk(p,400);throw new TypeError("Vf");};
A5d=function(){var p=Hammer.TouchAction,x=p.prototype.preventDefaults;p.prototype.preventDefaults=function(F){var N=this.actions.indexOf("pan-down")>-1;if(!N)return x.call(this,F);if(!blr){var h=F.srcEvent;F=F.direction;var c;if((c=this.manager)==null?0:c.session.prevented)h.preventDefault();else if(N&&F&Hammer.DIRECTION_DOWN)return this.preventSrc(h)}}};
uO$=function(p){if(!p||p.size===0)return Hammer.DIRECTION_ALL;if(p.size===2){if(p.has("up")&&p.has("down"))return Hammer.DIRECTION_VERTICAL;if(p.has("right")&&p.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(p.size===1){if(p.has("up"))return Hammer.DIRECTION_UP;if(p.has("down"))return Hammer.DIRECTION_DOWN;if(p.has("right"))return Hammer.DIRECTION_RIGHT;if(p.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.wLp=function(){return Y7m?Promise.resolve(Y7m):new Promise(function(p,x){var F=self.indexedDB.open("swpushnotificationsdb");F.onerror=x;F.onsuccess=function(){var N=F.result;if(N.objectStoreNames.contains("swpushnotificationsstore"))Y7m=N,p(Y7m);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.wLp()};
F.onupgradeneeded=GMp})};
GMp=function(p){p=p.target.result;p.objectStoreNames.contains("swpushnotificationsstore")&&p.deleteObjectStore("swpushnotificationsstore");p.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
WB6=function(p){var x=V1p(),F;return _.D(function(N){switch(N.nextAddress){case 1:return _.KM(N,2),_.q(N,p.match(x,{cacheName:"yt-appshell-assets"}),4);case 4:F=N.yieldResult;_.ub(N,3);break;case 2:_.v9(N);case 3:return N.return(F)}})};
V1p=function(){var p=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?HlJ.registration.scope:mW6;p.endsWith("/")&&(p=p.slice(0,-1));return p+"/app_shell_home"};
ok$=function(p){p.map(function(x){return x.source}).join("|")};
_.OlE=function(p){return _.D(function(x){return x.return(WB6(p))})};
jzr=function(){var p=window.caches,x;return _.D(function(F){if(F.nextAddress==1)return _.q(F,_.OlE(p),2);x=F.yieldResult;return F.return(!!x)})};
UWw=function(){_.D(function(p){if(p.nextAddress==1){if(LBp)return p.jumpTo(0);LBp=!0;if(_.S("enable_system_health_primes_monitoring"))return _.pf(Ph6,3E4),TFk(),p.return();if(!(Math.random()<_.Ud("web_system_health_fraction")))return p.jumpTo(0);BFp={heightPixels:screen.height,widthPixels:screen.width};rX&&!isNaN(rX.jsHeapSizeLimit)&&(BFp.memoryTotalKbytes=String(Math.round(rX.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(BFp.devicePixelRatio=window.devicePixelRatio);return _.q(p,R1r(),4)}_.pf(Ph6,
3E4);return _.q(p,kME(),0)})};
R1r=function(){return _.D(function(p){if(p.nextAddress==1)return Eb.intersectionObserverPresent="IntersectionObserver"in window,Eb.serviceWorkerPresent="serviceWorker"in navigator,Eb.webSharePresent="share"in navigator,Eb.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Eb.cacheStoragePresent="caches"in window,Eb.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Eb.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Eb.webkitTemporaryStoragePresent="webkitTemporaryStorage"in XT&&XT.webkitTemporaryStorage&&"queryUsageAndQuota"in XT.webkitTemporaryStorage,Eb.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.q(p,Gtm(),2);Eb.indexedDbPresent=p.yieldResult;Eb.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Eb.broadcastChannelPresent="BroadcastChannel"in window;Eb.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Eb.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Eb.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.JB(p)})};
Ph6=function(){var p=9E4+Math.random()*2E3;_.U0()>p||(_.S("enable_system_health_primes_monitoring")?TFk():kME())};
kME=function(){var p;return _.D(function(x){if(x.nextAddress==1)return _.q(x,ilz(),2);p=x.yieldResult;_.E$("systemHealthCaptured",p);_.JB(x)})};
TFk=function(){var p={metric:{}},x=IEE();x.networkEvents.length&&(p.metric.networkEvents=$WZ(x));_.E$("systemHealthCaptured",p)};
ilz=function(){var p,x,F,N,h,c,M,f,K,t;return _.D(function(d){switch(d.nextAddress){case 1:p={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)};x=window.screen;_.S("enable_is_extended_monitoring")&&x&&"isExtended"in x&&(p.isExtended=!!x.isExtended);F={metric:{staticContext:BFp,dynamicContext:p,webMetric:e1J,webApiSupport:Eb}};
if(N=_.b0())F.csn=N;rX&&(F.metric.webMetric.currentHeapKbytes=Math.round(rX.usedJSHeapSize/1E3));window.matchMedia&&(F.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,F.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,F.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in XT&&typeof XT.getBattery==="function")){d.jumpTo(2);break}return _.q(d,XT.getBattery(),3);case 3:if(h=
d.yieldResult)F.metric.dynamicContext.chargingStatus=h.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(F.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Eb.storageEstimatePresent)return _.q(d,navigator.storage.estimate(),8);if(!Eb.webkitTemporaryStoragePresent){d.jumpTo(5);break}return _.q(d,pI$(),7);case 7:c=d.yieldResult;d.jumpTo(5);break;case 8:c=d.yieldResult;case 5:return F.metric.dynamicContext.deviceStorageQuotaMbytes=((M=c)==null?0:M.quota)?String(Math.round(c.quota/
1048576/10)*10):"-1",F.metric.dynamicContext.deviceStorageUsageMbytes=((f=c)==null?0:f.usage)?String(Math.round(c.usage/1048576/10)*10):"-1",K=F.metric.dynamicContext,_.q(d,jzr(),9);case 9:return K.hasAppShell=d.yieldResult,t=IEE(),t.networkEvents.length&&(F.metric.networkEvents=$WZ(t)),d.return(F)}})};
pI$=function(){return new Promise(function(p){var x;Eb.webkitTemporaryStoragePresent&&(x=XT.webkitTemporaryStorage)!=null&&x.queryUsageAndQuota?XT.webkitTemporaryStorage.queryUsageAndQuota(function(F,N){p({usage:F,quota:N})}):p(void 0)})};
_.gX=function(p){p&=16777215;p=[(p&16711680)>>16,(p&65280)>>8,p&255];return xQM(p[0],p[1],p[2])};
_.QK=function(p){p=[(p&16711680)>>>16,(p&65280)>>>8,p&255,(p&4278190080)>>>24];var x=_.F$d(p,function(F){return F==(F&255)});
p[3]=(p[3]/255).toFixed(3);if(!x)throw Error("Wf`"+p.join(","));return"rgba("+p.join(",")+")"};
_.NcE=function(p){return[(p&16711680)>>>16,(p&65280)>>>8,p&255]};
_.hJp=function(p){p=p.map(function(x){x/=255;return x<=.03928?x/12.92:Math.pow((x+.05)/1.05,2.4)});
return p[0]*.2126+p[1]*.7152+p[2]*.0722};
zF=function(p,x){p=_.NcE(p);return"rgba("+p[0]+", "+p[1]+", "+p[2]+", "+x+")"};
_.lVM=function(){try{return!!self.localStorage}catch(p){return!1}};
DQE=function(){if(c7k())_.no(Error("Xf"));else{var p=document.createElement("iframe");p.style.display="none";var x=x===void 0?window.location.href:x;var F=_.XE(_.sd("PERSIST_IDENTITY_IFRAME_URL"));x=F?F:(new URL(x)).host.indexOf("studio")===0?_.xH(aVE,"persist_identity"):_.xH(MvH,"persist_identity");_.Pgd(p,1,x);p.id="persist_identity";var N;(N=document.body)==null||N.appendChild(p)}};
c7k=function(){var p=fVE;p||(p=document.querySelector("#persist_identity"));return p};
K$6=function(){var p=!1;try{p=!!window.sessionStorage.getItem("session_logininfo")}catch(x){p=!0}return(_.sd("INNERTUBE_CLIENT_NAME")==="WEB"||_.sd("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&p};
qZp=function(p,x){if(!K$6())return!1;x||(x=_.sd("LOGIN_INFO"));return x?(p.session_logininfo=x,!0):!1};
tvz=function(p,x){p=p===void 0?!1:p;if((x===void 0||!x)&&Z_J!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.nt("LOG_STICKINESS",!1)){x=_.b0();var F=_.yR(),N={identityStickinessData:{initialState:Z_J}};x&&F&&_.kv(x,F,N)}if(x=c7k())if(F=x.src?(new URL(x.src)).origin:"*",p){var h;(h=x.contentWindow)==null||h.postMessage({action:"clear"},F)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(p=window.sessionStorage.getItem("session_logininfo"))){var c;(c=x.contentWindow)==null||c.postMessage({loginInfo:p},F)}};
_.sb=function(p){p=p===void 0?!0:p;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.zn("LOGIN_INFO",""),p&&window.sessionStorage.setItem("from_switch_account","1"),tvz(!0,p)}catch(x){}};
dQr=function(p){p&&(p.startsWith("https://accounts.google.com/AddSession")?_.sb():p.startsWith("https://accounts.google.com/ServiceLogin")?_.sb():p.startsWith("https://myaccount.google.com")&&_.G4(p).getPath().endsWith("/youtubeoptions")&&_.sb())};
nR=function(p,x){dQr(p);if(_.nt("LOGGED_IN",!0)&&K$6()){var F=Id$(p);F==null&&(F={});qZp(F,x)&&_.I9(p,F)}};
vem=function(){function p(x){for(x=x.target;x&&x.nodeName!=="A";)if(x=x.parentNode,!(x&&x instanceof HTMLElement))return;if(x&&!x.hasAttribute("download")&&x.getAttribute("rel")!=="external"&&x.href)return x.href}
document.addEventListener("mousedown",function(x){x.button!==0&&(x=p(x))&&nR(x)});
document.addEventListener("click",function(x){(x=p(x))&&nR(x)})};
SZM=function(){var p=new J7m;try{if(_.nt("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(f){p.increment(5,!1);return}if(_.sd("LOGIN_INFO")){var x=CpE?CpE:window.location;_.sd("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&DQE();var F=Id$(x.href);F==null&&(F={});var N=F.session_logininfo,h=Number(window.sessionStorage.getItem("stickiness_reload")),c=N===_.sd("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
h>=2||c)h>=2?p.increment(2,c):c?p.increment(7,c):window.sessionStorage.getItem("session_logininfo")||(p.increment(3,c),Z_J="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.sd("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.sd("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))p.increment(4,c),window.sessionStorage.removeItem("stickiness_reload");
else if(h<2){window.sessionStorage.setItem("stickiness_reload",String(h+1));var M=x.href;M=_.$Q(M,"sttick");nR(M,window.sessionStorage.getItem("session_logininfo"));M=_.Ww(M,{sttick:h});p.increment(h,c);_.InJ(x,M)}}else p.increment(6,!1)}else _.sb(!1)}catch(f){}};
_.yK=function(p,x,F,N,h){x=x===void 0?{}:x;F=F===void 0?"":F;N=N===void 0?window:N;p=_.Hw(p,x);nR(p);F=_.ug(p+F,h);_.InJ(N.location,F)};
r7w=function(p){if(p.urlEndpoint){if(p=_.VL(p.urlEndpoint.url),p.adurl)return Tn(p.adurl)}else if(p.watchEndpoint)return"//www.youtube.com/watch?v="+p.watchEndpoint.videoId;return null};
Eez=function(p){if(!p||!p.reportingPings)return null;var x={};p.reportingPings.forEach(function(F){F.pingType in x?x[F.pingType].push(F.url):x[F.pingType]=[F.url]});
return{adpings:DtJ(x)}};
_.AF=function(p){p=p===void 0?!1:p;var x=_.rH(),F="USER_INTERFACE_THEME_LIGHT";x.getFlag(165)?F="USER_INTERFACE_THEME_DARK":x.getFlag(174)?F="USER_INTERFACE_THEME_LIGHT":_.bX()&&(F="USER_INTERFACE_THEME_DARK");return p?F:XIr()||F};
_.gew=function(){return!_.S("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.bX=function(){return _.gew()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.uX=function(){var p=_.rH();return _.gew()&&!p.getFlag(165)&&!p.getFlag(174)};
XIr=function(){var p=p===void 0?window.location.href:p;if(_.S("kevlar_disable_theme_param"))return null;var x=_.F_(p);if(_.Qad(x))return"USER_INTERFACE_THEME_DARK";try{var F=_.VL(p).theme;return zJB.get(F)||null}catch(N){}return null};
_.Qad=function(p){return _.S("enable_dark_theme_only_on_shorts")?!(p==null||!p.startsWith("/shorts/")):!1};
_.y7z=function(p,x,F,N,h){x=x===void 0?!1:x;F=F===void 0?!1:F;var c=_.sd("INNERTUBE_CONTEXT");if(!c)return _.zj(Error("ag")),{};c=(0,_.Q5.unsafeClone)(c);_.S("web_no_tracking_params_in_shell_killswitch")||delete c.clickTracking;c.client||(c.client={});var M=c.client;M.clientName==="MWEB"&&M.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(M.clientFormFactor=_.sd("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");M.screenWidthPoints=window.innerWidth;M.screenHeightPoints=window.innerHeight;M.screenPixelDensity=
Math.round(window.devicePixelRatio||1);M.screenDensityFloat=window.devicePixelRatio||1;M.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());M.userInterfaceTheme=_.AF();if(!x){var f=_.FcB();f&&(M.connectionType=f);_.S("web_log_effective_connection_type")&&(f=h36())&&(c.client.effectiveConnectionType=f)}var K;if(_.S("web_log_memory_total_kbytes")&&((K=_.Mm.navigator)==null?0:K.deviceMemory)){var t;K=(t=_.Mm.navigator)==null?void 0:t.deviceMemory;c.client.memoryTotalKbytes=""+K*1E6}x&&N&&!_.S("web_it_context_set_original_url_ks")&&
(M.originalUrl=saz(_.Mm.location.href,N).toString());_.S("web_gcf_hashes_innertube")&&(f=dBw())&&(t=f.coldConfigData,K=f.coldHashData,f=f.hotHashData,c.client.configInfo=c.client.configInfo||{},t&&(c.client.configInfo.coldConfigData=t),K&&(c.client.configInfo.coldHashData=K),f&&(c.client.configInfo.hotHashData=f));t=_.VL(_.Mm.location.href);!_.S("web_populate_internal_geo_killswitch")&&t.internalcountrycode&&(M.internalGeo=t.internalcountrycode);!_.S("web_populate_client_screen_killswitch")&&h&&(M.clientScreen=
h);M.clientName==="MWEB"||M.clientName==="WEB"?(M.mainAppWebInfo={graftUrl:N||_.Mm.location.href},_.S("kevlar_woffle")&&_.Ys.instance&&(N=_.Ys.instance,M.mainAppWebInfo.pwaInstallabilityStatus=!N.appInstalledEventFired&&N.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),M.mainAppWebInfo.webDisplayMode=aup(),M.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):M.clientName==="TVHTML5"&&(!_.S("web_lr_app_quality_killswitch")&&
(N=_.sd("LIVING_ROOM_APP_QUALITY"))&&(M.tvAppInfo=Object.assign(M.tvAppInfo||{},{appQuality:N})),N=_.sd("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(M.tvAppInfo=Object.assign(M.tvAppInfo||{},{certificationScope:N}));!_.S("web_populate_time_zone_itc_killswitch")&&(N=pir())&&(M.timeZone=N);(N=EvJ())?M.experimentsToken=N:delete M.experimentsToken;M=X5w();N=_.neH();N=(0,_.Q5.getValues)(N.tokenJars);c.request=Object.assign({},c.request,{internalExperimentFlags:M,consistencyTokenJars:N});!_.S("web_prequest_context_killswitch")&&
(M=_.sd("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(c.request.externalPrequestContext=M);N=_.rH();M=N.getFlag(58);N=N.get("gsml","");c.user=Object.assign({},c.user);M&&(c.user.enableSafetyMode=M);N&&(c.user.lockedSafetyMode=!0);_.S("warm_op_csn_cleanup")?F&&(x=_.b0())&&(c.clientScreenNonce=x):!x&&(x=_.b0())&&(c.clientScreenNonce=x);p&&(c.clickTracking={clickTrackingParams:p});if(p=_.A9("yt.mdx.remote.remoteClient_"))c.remoteClient=p;_.wX.getInstance().setLocationOnInnerTubeContext(c);try{var d=Yzm(),
v=d.bid;delete d.bid;c.adSignalsInfo={params:[],bid:v};for(var C=_.a(Object.entries(d)),X=C.next();!X.done;X=C.next()){var Q=_.a(X.value),b=Q.next().value,A=Q.next().value;d=b;v=A;p=void 0;(p=c.adSignalsInfo.params)==null||p.push({key:d,value:""+v})}var Y,O;if(((Y=c.client)==null?void 0:Y.clientName)==="TVHTML5"||((O=c.client)==null?void 0:O.clientName)==="TVHTML5_UNPLUGGED"){var Fw=_.sd("INNERTUBE_CONTEXT");Fw.adSignalsInfo&&(c.adSignalsInfo.advertisingId=Fw.adSignalsInfo.advertisingId,c.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",c.adSignalsInfo.limitAdTracking=Fw.adSignalsInfo.limitAdTracking)}}catch(R){_.zj(R)}return c};
_.GF=function(){return{isShellLoad:_.nt("IS_SHELL_LOAD",!1)}};
A7d=function(){navigator.serviceWorker.getRegistrations().then(function(p){p.forEach(b_J)})};
b_J=function(p){p&&_.ump(YZZ,p.scope)};
_.ump=function(p,x){x={scope:x||_.iO("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.SP(p),x)};
VK=function(p,x,F,N){if(x&&x.serializedYpcCujLoggingParams){if(F){var h={};h.transactionErrorType=F;N&&(h.errorMessage=N);x.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:h}}}F={};F.ypcCujContext=x;p=_.lX("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",p,F);_.cg(_.as(),p,"FLOW_TYPE_YPC_ACQUISITION")}};
_.wIZ=function(p,x,F,N){var h={};h.serializedTransactionFlowLoggingParams=x;F&&(h.errorType=F);N&&(h.errorMessage=N);_.E$(p,h);_.Xx()};
_.GpB=function(p){p&&_.wIZ("transactionFlowStarted",p)};
_.Vvp=function(p){p&&_.wIZ("transactionFlowCancelled",p)};
_.Wg=function(p,x,F){x&&_.wIZ("transactionFlowFailed",x,p,F)};
_.Hg=function(){this.megabloxUrl_=null};
_.m9=function(p){try{var x=W$6==null?void 0:W$6.composedPath(p)}catch(F){x=p.composedPath?p.composedPath():[]}return x&&x.length>0?x:p.composedPath?p.composedPath():[]};
_.os=function(p){return _.m9(p)[0]};
_.Ob=function(p){if(!(p instanceof Element))return null;p=p.classList?Array.from(p.classList):void 0;if(!p)return null;var x=p.indexOf("style-scope");return x>-1&&x+1<p.length?p[x+1]:null};
jV=function(p){if(!(p instanceof HTMLElement))return null;var x=p&&(p.$$||p.polymerController)?p.tagName.toLowerCase():null;return x?x:_.Ob(p)};
H_p=function(p,x){return p.replace(/[^a-z]*[^\s]+/g,function(F){return F+".style-scope."+x})};
mQH=function(p,x){return x?p.split(",").map(function(F){return H_p(F.trim(),x)}).join(", "):p};
_.LR=function(p){var x,F,N,h;return(h=(N=(F=(x=p.root)!=null?x:p.shadowRoot)!=null?F:p.__shady_native_shadowRoot)!=null?N:p.__shady_shadowRoot)!=null?h:p};
Pg=function(p){return p instanceof ShadowRoot?ShadowRoot:p instanceof DocumentFragment?DocumentFragment:p instanceof Document?Document:HTMLElement};
oep=function(p){var x,F,N;return(N=(F=(x=p.parentElement)!=null?x:p.__shady_native_parentElement)!=null?F:p.__shady_parentElement)!=null?N:null};
O_k=function(p){var x,F,N;return(N=(F=(x=p.parentNode)!=null?x:p.__shady_native_parentNode)!=null?F:p.__shady_parentNode)!=null?N:null};
jaZ=function(p){var x,F,N;return(N=(F=(x=p.__shady_parentNode)!=null?x:p.__shady_native_parentNode)!=null?F:p.parentNode)!=null?N:null};
L$$=function(p){var x,F;return(F=(x=O_k(p))!=null?x:p.host)!=null?F:null};
PpZ=function(p){var x,F,N;return(N=(F=(x=p.nextSibling)!=null?x:p.__shady_native_nextSibling)!=null?F:p.__shady_nextSibling)!=null?N:null};
Tcz=function(p){var x,F,N;return(N=(F=(x=p.previousSibling)!=null?x:p.__shady_native_previousSibling)!=null?F:p.__shady_previousSibling)!=null?N:null};
BcZ=function(p){var x,F,N;return(N=(F=(x=p.nextElementSibling)!=null?x:p.__shady_native_nextElementSibling)!=null?F:p.__shady_nextElementSibling)!=null?N:null};
RJJ=function(p){var x,F,N;return(N=(F=(x=p.previousElementSibling)!=null?x:p.__shady_native_previousElementSibling)!=null?F:p.__shady_previousElementSibling)!=null?N:null};
kpm=function(p){var x,F,N;return new Set([].concat(_.se((x=p.children)!=null?x:[]),_.se((F=p.__shady_native_children)!=null?F:[]),_.se((N=p.__shady_children)!=null?N:[])))};
UQm=function(p){var x,F,N;return new Set([].concat(_.se((x=p.childNodes)!=null?x:[]),_.se((F=p.__shady_native_childNodes)!=null?F:[]),_.se((N=p.__shady_childNodes)!=null?N:[])))};
i_B=function(p){if(!p)return null;var x=_.Ob(p);if(!x){var F;return(F=Node.prototype.getRootNode)==null?void 0:F.call(p)}x=x.toUpperCase();for(p=oep(p);p&&p.tagName!==x;)p=oep(p);return p?_.LR(p):null};
IVM=function(p){for(;p&&!(p instanceof HTMLElement);)p=L$$(p);return p};
$Qd=function(p){var x=IVM(p);return p===x?_.Ob(p):x?jV(x):null};
eJw=function(p){return(p=IVM(p))?jV(p):null};
php=function(p){if(p instanceof Comment)return!1;if(p instanceof Text){var x,F;if(((F=(x=p.textContent)==null?void 0:x.trim())!=null?F:"")==="")return!1}return!0};
TF=function(p,x,F){var N=x(p);for(F=F===void 0?eJw(p):F;N&&($Qd(N)!==F||!php(N));)p=N,N=x(p);return N};
xx6=function(p,x,F){if(!x)return null;p=eJw(p);return $Qd(x)===p&&php(x)?x:TF(x,F,p)};
Fod=function(p){return TF(p,jaZ,_.Ob(p))};
NKd=function(p){return TF(p,BcZ)};
hLr=function(p){return TF(p,PpZ)};
lmp=function(p){return TF(p,RJJ)};
c6r=function(p){return TF(p,Tcz)};
amk=function(p){return xx6(p,p.firstChild||p.__shady_native_firstChild||p.__shady_firstChild||null,PpZ)};
MmJ=function(p){var x,F,N;var h=(N=(F=(x=p.firstElementChild)!=null?x:p.__shady_native_firstElementChild)!=null?F:p.__shady_firstElementChild)!=null?N:null;return xx6(p,h,BcZ)};
DxH=function(p){var x,F,N;var h=(N=(F=(x=p.lastChild)!=null?x:p.__shady_native_lastChild)!=null?F:p.__shady_lastChild)!=null?N:null;return xx6(p,h,Tcz)};
fmd=function(p){var x,F,N;var h=(N=(F=(x=p.lastElementChild)!=null?x:p.__shady_native_lastElementChild)!=null?F:p.__shady_lastElementChild)!=null?N:null;return xx6(p,h,RJJ)};
Kop=function(p){var x=eJw(p);return Array.from(UQm(p)).filter(function(F){return $Qd(F)===x})};
qNr=function(p){var x=jV(p);return Array.from(kpm(p)).filter(function(F){return _.Ob(F)===x})};
_.Bg=function(p,x,F){if(p instanceof HTMLElement&&_.Ob(p)===F){var N=Array.from(p.classList).indexOf("style-scope");if(N===-1)p.classList.add("style-scope"),p.classList.add(x);else if(!(N+1>=p.classList.length)){N=p.classList[N+1];var h,c;p==null||(h=p.classList)==null||(c=h.replace)==null||c.call(h,N,x)}}if(p instanceof HTMLElement||p instanceof DocumentFragment)for(h=_.a(kpm(p)),c=h.next();!c.done;c=h.next())_.Bg(c.value,x,F);return p};
Rs=function(p,x){if(p instanceof HTMLElement&&_.Ob(p)===x){var F=Array.from(p.classList).indexOf("style-scope");F===-1||F+1>=p.classList.length||p.classList.remove("style-scope",p.classList[F+1])}if(p instanceof HTMLElement||p instanceof DocumentFragment){F=_.a(p.children);for(var N=F.next();!N.done;N=F.next())Rs(N.value,x)}return p};
_.Zak=function(p,x){return Pg(p).prototype.appendChild.call(p,x)};
tmE=function(p,x){if(p===x)return!0;p=UQm(p);return Array.from(p).some(function(F){return tmE(F,x)})};
_.n=function(p,x){if(p instanceof ks)return p;(x==null?0:x.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(p,"ownerDocument")&&Object.defineProperty(p,"ownerDocument",{get:function(){return window.document}});
return new ks(p)};
vo6=function(){var p=ks.prototype,x=[].concat(_.se(dxm?[]:["getRootNode"]),["setAttribute","removeAttribute"]);x=_.a(x);for(var F=x.next(),N={};!F.done;N={method$jscomp$48:void 0},F=x.next())N.method$jscomp$48=F.value,p[N.method$jscomp$48]=function(h){return function(){return this.host[h.method$jscomp$48].apply(this.host,arguments)}}(N)};
Ct6=function(){var p=ks.prototype,x=[].concat(_.se(dxm?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.se(J6k?[]:["querySelector","querySelectorAll"]));x=_.a(x);for(var F=x.next(),N={};!F.done;N={method$jscomp$49:void 0},F=x.next())N.method$jscomp$49=F.value,p[N.method$jscomp$49]=function(h){return function(){return this.root[h.method$jscomp$49].apply(this.root,arguments)}}(N)};
Eom=function(){var p=ks.prototype,x=[].concat(_.se(SNd?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.se(r6M?[]:["parentNode"]));x=_.a(x);for(var F=x.next(),N={};!F.done;N={prop$jscomp$62:void 0},F=x.next())N.prop$jscomp$62=F.value,Object.defineProperty(p,N.prop$jscomp$62,{get:function(h){return function(){return this.host[h.prop$jscomp$62]}}(N),
configurable:!0})};
QBk=function(){var p=ks.prototype,x=["activeElement"].concat(_.se(SNd?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.se(XhH?[]:["children"]),_.se(gow?[]:["lastChild"]));x=_.a(x);for(var F=x.next(),N={};!F.done;N={prop$jscomp$63:void 0},F=x.next())N.prop$jscomp$63=F.value,Object.defineProperty(p,N.prop$jscomp$63,{get:function(h){return function(){return this.root[h.prop$jscomp$63]}}(N),
configurable:!0})};
zLr=function(){for(var p=ks.prototype,x=_.a(["innerHTML","textContent"]),F=x.next(),N={};!F.done;N={prop$jscomp$64:void 0},F=x.next())N.prop$jscomp$64=F.value,Object.defineProperty(p,N.prop$jscomp$64,{get:function(h){return function(){return this.root[h.prop$jscomp$64]}}(N),
set:function(h){return function(c){this.root[h.prop$jscomp$64]=c}}(N),
configurable:!0})};
sBd=function(p){var x=ks.prototype;p=_.a(Object.entries(p));for(var F=p.next(),N={};!F.done;N={fn$jscomp$359:void 0},F=p.next()){var h=_.a(F.value);F=h.next().value;h=h.next().value;N.fn$jscomp$359=h;x[F]=function(c){return function(){return c.fn$jscomp$359.apply(null,[this.host.node||this.host].concat(_.se(arguments)))}}(N)}};
y6r=function(){for(var p=ks.prototype,x=_.a(Object.entries(nok)),F=x.next(),N={};!F.done;N={fn$jscomp$360:void 0},F=x.next()){var h=_.a(F.value);F=h.next().value;h=h.next().value;N.fn$jscomp$360=h;Object.defineProperty(p,F,{get:function(c){return function(){return c.fn$jscomp$360.apply(null,[this.host.node||this.host].concat(_.se(arguments)))}}(N),
configurable:!0})}};
_.Ub=function(p){return p instanceof baH||p instanceof Document?p:new baH(p)};
A66=function(){for(var p=baH.prototype,x=_.a("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),F=x.next(),N={};!F.done;N={method$jscomp$50:void 0},F=x.next())N.method$jscomp$50=F.value,p[N.method$jscomp$50]=function(h){return function(){return HTMLElement.prototype[h.method$jscomp$50].call.apply(HTMLElement.prototype[h.method$jscomp$50],[this.node].concat(_.se(arguments)))}}(N)};
uhw=function(){for(var p=baH.prototype,x=_.a("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),F=x.next(),N={};!F.done;N={prop$jscomp$65:void 0},F=x.next())N.prop$jscomp$65=F.value,Object.defineProperty(p,N.prop$jscomp$65,{get:function(h){return function(){var c;return(c=this.node["__shady_native_"+h.prop$jscomp$65])!=null?c:this.node[h.prop$jscomp$65]}}(N),
configurable:!0})};
_.iX=function(p,x,F){F===void 0&&(F=!p.classList.contains(x));F?p.classList.add(x):p.classList.remove(x)};
_.Is=function(p,x,F){F===void 0&&(F=!p.hasAttribute(x));if(x==="class")throw Error("eg");F?_.Ub(p).setAttribute(x,""):_.Ub(p).removeAttribute(x)};
YNr=function(p){return(p.localName!=="slot"?[]:(0,_.$s)(p).assignedNodes({flatten:!0})).filter(function(x){return x.nodeType===Node.ELEMENT_NODE})};
_.whp=function(p){return(p=_.n(p).querySelector("slot"))&&p.localName==="slot"?YNr(p):[]};
_.eV=function(p,x){window.ShadyCSS&&window.ShadyCSS.styleSubtree(p,x)};
GKp=function(p,x){var F=x.bind(p);return function(N){F(N,N.detail)}};
_.p5=function(p,x){var F=Vmp.get(p);F||(F=new WeakMap,Vmp.set(p,F));if(F.has(x))return F.get(x);if(_.S("web_fi_listen_disable_bound_fn_helper")){var N=x.bind(p);p=function(h){N(h,h==null?void 0:h.detail)}}else p=GKp(p,x);
F.set(x,p);return p};
mx6=function(p,x){Wow(p);p.created[Had].push(x)};
Wow=function(p){if(!p.created||!p.created[Had]){var x=p.created,F=x?[x]:[];p.created=function(){for(var N=_.a(F),h=N.next();!h.done;h=N.next())h.value.apply(this)};
p.created[Had]=F}};
ood=function(p){return function(){var x=_.we.apply(0,arguments);return function(F,N,h){p.apply(null,_.se(x))(F,N,h)}}};
Oap=function(){return function(){var p=_.we.apply(0,arguments);return function(x,F,N){d8z.apply(null,_.se(p))(x,F,N)}}};
_.u=function(p){return Oap()(p)};
_.w=function(){return ood(SRp).apply(null,_.se(_.we.apply(0,arguments)))};
_.V=function(p){return _.S("pbcm_fi_listen_decorators")?jBz(p):ood(Jaz)(p)};
jBz=function(p){return function(x,F){mx6(x,function(){var N=this[F],h=_.S("web_fi_listen_disable_bound_fn_helper")?function(c){N(c,c.detail)}.bind(this):GKp(this,N);
LoH.has(p)?Qd(this.hostElement,p,h):this.hostElement.addEventListener(p,h)})}};
_.W=function(){return ood(CHw).apply(null,_.se(_.we.apply(0,arguments)))};
_.H=function(p){p=p===void 0?{}:p;return ood(v5m)(p)};
_.xJ=function(p){if(p.hostElement&&p!==p.hostElement){var x=_.Ef(p.hostElement);x=p.renderIdom?x:x.shadowRoot}x||(p=p.root,x=p instanceof Node?_.Ef(p):null);return x};
_.Ff=function(p){return PtH?TKM(p):function(x,F){Object.defineProperty(x,F,{get:function(){var N;return(N=_.xJ(this))==null?void 0:N.querySelector(p)},
enumerable:!0,configurable:!0})}};
TKM=function(p){return function(x,F){Object.defineProperty(x,F,{get:function(){var N,h=(N=_.n(this.hostElement))==null?void 0:N.querySelector(p);if(h)return h;var c;N=(c=this.is)!=null?c:"yt-undefined-target";BKJ!=null||(BKJ=Date.now());(W7(N)+BKJ)%100>_.Ud("pbcm_fi_query_decorators_fallback_logging_pct")||(RLp!=null||(RLp=new kKd),Ux6.has(N)||(Ux6.add(N),RLp.increment(N)));var M;return(M=_.xJ(this))==null?void 0:M.querySelector(p)},
enumerable:!0,configurable:!0})}};
_.Nu=function(p){return PtH?iak(p):function(x,F){Object.defineProperty(x,F,{get:function(){var N;return(N=_.xJ(this))==null?void 0:N.querySelectorAll(p)},
enumerable:!0,configurable:!0})}};
iak=function(p){return function(x,F){Object.defineProperty(x,F,{get:function(){var N,h=(N=_.n(this.hostElement))==null?void 0:N.querySelectorAll(p);if(h==null?0:h.length)return h;var c;return(c=_.xJ(this))==null?void 0:c.querySelectorAll(p)},
enumerable:!0,configurable:!0})}};
Imm=function(p){return function(x){if(![_.kM,_.m].includes(Object.getPrototypeOf(x.prototype).constructor))throw Error("fg");aRH(Object.assign({},typeof p!=="string"?p:{is:p,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(x)}};
_.l8=function(){var p=p===void 0?{}:p;return function(x){if(![U4,_.hZ].includes(Object.getPrototypeOf(x.prototype).constructor))throw Error("gg");M0Z(Object.assign({},p,{disableInheritanceCheck:!0}))(x)}};
eLw=function(p,x){$xw[p]!=null||($xw[p]=new Set);$xw[p].add(x)};
_.cT=function(){var p=_.W.apply(null,_.se(_.we.apply(0,arguments)));return function(x,F){eLw(x.is,F);p(x,F)}};
Dv=function(p,x,F){if(ad(p)&&!pJB.has(x)){x=x.replace(/^JSC\$[\d]+_/,"");x=x.replace(/\.\d+(\.|$)/g,function(c,M){return".#"+M});
Mu[p]!=null||(Mu[p]={});var N,h;(N=Mu[p])[h=x]!=null||(N[h]=new Set);Mu[p][x].has(F)||(Mu[p][x].add(F),_.E$("polymerPropertyAccessEvent",{componentName:p,propertyName:x,accessType:F}))}};
x5k=function(){return _.S("polymer_property_access_logging_debug")||_.S("polymer_enable_property_access_logging")};
ad=function(p){if(_.S("polymer_property_access_logging_debug"))return!0;if(!_.S("polymer_enable_property_access_logging"))return!1;FLp||(FLp=Date.now());return(W7(p)+FLp)%100<_.Ud("polymer_property_access_logging_percent")};
N4w=function(p,x){return ad(x)&&p.hostElement.loggingStatus?new Proxy(p,{get:function(F,N,h){if(F.hostElement.loggingStatus.bypassProxyController)return F[N];F.hostElement.loggingStatus.isExternalGet=!0;var c=F[N];F.hostElement.loggingStatus.isExternalGet=!1;if(c instanceof Function)return function(){var M=_.we.apply(0,arguments);try{return F.hostElement.loggingStatus.currentExternalCall=N,Dv(x,N,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),c.apply(this===h?F:this,M)}finally{F.hostElement.loggingStatus.currentExternalCall=
void 0}};
Dv(x,N,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return c},
set:function(F,N,h){if(F.hostElement.loggingStatus.bypassProxyController)return F[N]=h,!0;F.hostElement.loggingStatus.isRendererStamper?Dv(x,N,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):F.hostElement.loggingStatus.isDeclarativeExternal||Dv(x,N,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{F.hostElement.loggingStatus.currentExternalSet=N,F[N]=h}finally{F.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):p};
hb6=function(p,x){p&&p.loggingStatus&&!p.loggingStatus.isDeclarativeExternal&&!p.loggingStatus.isExternalGet&&p.loggingStatus.currentExternalSet!==x&&Dv(p.tagName.toLowerCase(),x,"PROPERTY_ACCESS_GET_INTERNAL")};
f5=function(p,x,F){p&&(F||p.loggingStatus&&!p.loggingStatus.isInitializing&&!p.loggingStatus.isDefiningPropertyAccessor&&p.loggingStatus.currentExternalSet!==x)&&Dv(p.tagName.toLowerCase(),x,"PROPERTY_ACCESS_SET_INTERNAL")};
lF6=function(){return{_definePropertyAccessor:function(p,x){var F=this,N=F.hostElement.loggingStatus;N&&(N.isDefiningPropertyAccessor=!0);var h=F[p];h!==void 0&&(F.__data?F._setPendingProperty(p,h):(F.__dataProto!=null||(F.__dataProto={}),F.__dataProto[p]=h));N&&(N.isDefiningPropertyAccessor=!1);Object.defineProperty(this,p,{get:function(){hb6(F.hostElement,p);return this.__data[p]},
set:function(c){x||this._setPendingProperty(p,c,!0)&&this._invalidateProperties()}})},
created:function(){var p=this._setPendingProperty.bind(this);this._setPendingProperty=function(x,F,N){f5(this.hostElement,x);return p.apply(this,[x,F,N])}}}};
aFB=function(p){x5k()&&_.u(cKE.prototype)(p.prototype,"__templateBindingLoggingBehavior")};
MhJ=function(p,x){if(x.resolvedFactories.length!==p.resolvedFactories.length)return!0;x=_.a(x.resolvedFactories.entries());for(var F=x.next();!F.done;F=x.next()){var N=_.a(F.value);F=N.next().value;N=N.next().value;if(N.providerClass){if(N.providerClass!==p.resolvedFactories[F].providerClass)return!0}else if(N.providerValue){if(N.providerValue!==p.resolvedFactories[F].providerValue)return!0}else if(N.factory!==p.resolvedFactories[F].factory)return!0}return!1};
D5p=function(p,x){p=_.a(p);for(var F=p.next();!F.done;F=p.next())if(F=F.value,F.constructor===Array)D5p(F,x);else{var N=x;N.has(F)||(F.inject&&N.add(F),F.behaviors&&D5p(F.behaviors,N))}};
K5=function(p,x){var F=p[x];p[x]=function(){var N=_.we.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(F)return F.apply(this,N)}};
ZSB=function(){_.qu.Class=function(F,N){F=fFm(F,N);K5(F.prototype,"created");return F};
K5(Zv.prototype,"_initializeProperties");K5(_.tZ.prototype,"_initializeProperties");if(KLr)K5(qtB,"created");else{var p=function(){K5(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))p();else{var x=customElements.define;customElements.define=function(F,N,h){x.call(customElements,F,N,h);F==="tp-yt-iron-list"&&(p(),customElements.define=x)}}}};
d5M=function(p,x){p.prototype.behaviors=p.prototype.behaviors||[];p.prototype.behaviors.unshift(thE.InjectBehavior);p.prototype.provide=x};
_.JZ=function(p){return function(x){if(!p.disableElementRegistration){p.noInjection||d5M(x,p.providers);var F=x.prototype;F.__templateHelpers||d8z(vT.prototype)(F,"__templateHelpers");F=p.is;vcH||(vcH=Date.now());(W7(F)+vcH)%100<_.Ud("polymer_log_prop_change_observer_percent")&&d8z(JK6.prototype)(x.prototype,"__propertyObserverObserver");x.prototype.behaviors=x.prototype.behaviors||[];x.prototype.behaviors.unshift(_.CiB.YtHostElementBehavior);aFB(x);Imm({is:p.is,notifyObserversOnUndefined:p.notifyObserversOnUndefined!==
!1,fastInit:p.fastInit,template:p.template,disableEnforceFastDefaultValuesCheck:!0})(x)}}};
_.L=function(p){return _.JZ({is:p.is,template:p.template,disableElementRegistration:p.disableElementRegistration,cssBuildOptOut:p.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
EcE=function(p,x){if(StE){p=new p;for(var F=_.a(Object.getOwnPropertyNames(p)),N=F.next();!N.done;N=F.next())N=N.value,x[N]=p[N];for(F=x;F&&F!==Object.prototype;F=Object.getPrototypeOf(F)){N=_.a(Object.getOwnPropertyNames(F));for(var h=N.next();!h.done;h=N.next())h=h.value,p.hasOwnProperty(h)||Object.defineProperty(p,h,rKk(x,h))}}else p.apply(x)};
rKk=function(p,x){return{get:function(){var F=p[x];return F instanceof Function?F.bind(p):F},
set:function(F){p[x]=F}}};
gcp=function(p,x){for(var F=p._noAccessors,N=_.a(Object.getOwnPropertyNames(p)),h=N.next();!h.done;h=N.next())if(h=h.value,!XJz.has(h))if(F)x[h]=p[h];else{var c=Object.getOwnPropertyDescriptor(p,h);c&&(c.configurable=!0,Object.defineProperty(x,h,c))}};
QKd=function(p,x,F){return function(N){if(F){var h=F();N.model=h}if(p[x])p[x](N,N.detail)}};
C5=function(p){var x=[];if(typeof p==="string")p.length>0&&x.push.apply(x,_.se(p.split(".")));else{p=_.a(p);for(var F=p.next();!F.done;F=p.next())F=F.value,typeof F==="string"?x.push.apply(x,_.se(F.split("."))):x.push(F)}return x};
SA=function(p,x){if(x[x.length-1]!=="*"&&x[x.length-1]!=="splices"){for(var F=0;F<x.length;F++){if(!p)return;p=p[x[F]]}return p}};
zbk=function(p,x){if(p.length>x.length)return!1;for(var F=0;F<p.length;F++)if(p[F]!==x[F])return!1;return!0};
nc6=function(p,x,F){if(x.type==="compute"){var N=x.getter.bind(F);var h=x.args}else N=function(){return F[x.method.methodName].apply(F,_.se(_.we.apply(0,arguments)))},h=x.method.args;
sKz(p,x.propertyKey,N,h,x.value)};
bSH=function(p,x){if(x.readOnly){var F=Object.getOwnPropertyDescriptor(p.model,x.propertyKey);Object.defineProperty(p.model,x.propertyKey,{get:F.get,set:function(){}});
p.model[yKJ(x.propertyKey)]=F.set}};
AKk=function(p,x,F){if(F){var N=x.propertyKey,h=x.selector;x=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.se(x.selectorArgs.map(function(c){return{type:"path",path:c}})));
sKz(p,N,function(c){var M=_.we.apply(1,arguments);return h.apply(null,[F.getState()].concat(_.se(M)))},x)}};
Ytk=function(p,x,F){var N=_.ZI(x.propertyKey)+"-changed";u$k(p,function(h){var c={value:h.value,queueProperty:!0};h.path.split(".").length>1&&(c.path=h.path);F.dispatchEvent(new CustomEvent(N,{detail:c}))},[{type:"wildcard",
path:x.propertyKey}])};
wJd=function(p,x,F){u$k(p,function(){F[x.method.methodName].apply(F,_.se(_.we.apply(0,arguments)))},x.method.args)};
yKJ=function(p){return"_set"+(p.charAt(0).toUpperCase()+p.slice(1))};
GJm=function(){var p,x=XD(function(F){p=F},!1);
return[p,x]};
ocp=function(p){p=p.trim().replace(Vhp,",").replace(WLk,"$1");var x=p[0];x==="-"&&(x=p[1]);if(x>="0"&&x<="9")return{type:"literal",value:Number(p)};if(x==="'"||x==='"')return{type:"literal",value:p.slice(1,-1)};if(x=p.match(HSJ)){x=x[1];var F=m56[x];if(F)return{type:F,path:p.slice(0,-(x.length+1))}}return{type:"path",path:p}};
PiZ=function(p){var x=p.match(OSM);if(x)return p={methodName:x[1],args:jKZ},x[2].trim()&&(x=x[2].replace(LL$,"&comma;").split(","),p.args=x.map(ocp)),p};
T4$=function(p,x,F){x=_.ZI(x);var N=ZW;N&&(F=N(F,x,"attribute",p));ro(p,F,x)};
ro=function(p,x,F){x=B4p(x);x===void 0?p.removeAttribute(F):p.setAttribute(F,x)};
B4p=function(p){switch(typeof p){case "object":if(p instanceof Date)return p.toString();if(p){var x=window.trustedTypes?window.trustedTypes.isHTML(p)||window.trustedTypes.isScript(p)||window.trustedTypes.isScriptURL(p):void 0;if(x)return p;try{return JSON.stringify(p)}catch(F){_.no(Error("Cg`"+p))}}break;case "boolean":return p?"":void 0;default:return p!==null&&p!==void 0?p.toString():void 0}};
Rbd=function(p){if(p===void 0)throw Error("Dg");return p};
$5k=function(p,x,F,N){var h=kJm(N);if(h.length){N=F;var c="property";U5r.test(F)?c="attribute":F[F.length-1]==="$"&&(F=F.slice(0,-1),c="attribute");var M=iSz(h);M&&c==="attribute"&&(F==="class"&&p.hasAttribute("class")&&(M+=" "+p.getAttribute(F)),ro(p,M,F));c==="attribute"&&N==="disable-upgrade$"&&p.setAttribute("disable-upgrade","");p.localName==="input"&&N==="value"&&p.setAttribute("value","");p.removeAttribute(N);c==="property"&&(F=_.t8(F));x=Rbd(x);IFM(x,c,F,h);return!0}return F.slice(0,3)===
"on-"?(p.removeAttribute(F),(c=x).events!=null||(c.events=[]),x.events.push({name:F.slice(3),value:N}),!0):F==="id"?(x.id=N,!0):!1};
kJm=function(p){for(var x=[],F=0,N;(N=ebk.exec(p))!==null;){N.index>F&&x.push({type:"literal",value:p.slice(F,N.index)});var h=N[1][0];F=!!N[2];N=N[3].trim();if(h==="{")throw Error("Eg");(h=PiZ(N))?x.push({type:"method",negate:F,signature:h}):x.push({type:"path",negate:F,path:N});F=ebk.lastIndex}F&&F<p.length&&(p=p.substring(F))&&x.push({type:"literal",value:p});return x};
iSz=function(p){for(var x="",F=0;F<p.length;F++){var N=p[F];N.type==="literal"&&(x+=N.value)}return x};
IFM=function(p,x,F,N){p.bindings!=null||(p.bindings=[]);p.bindings.push({kind:x,target:F,parts:N})};
G8w=function(p,x,F){var N=!1;if(p.localName==="template"){N=F;var h=x.stripWhitespace;h=pyp(p,h===void 0?!1:h);var c=p.content.ownerDocument.createDocumentFragment();h.content=c;c.appendChild(p.content);N&&(N.templateInfo=h);N=!0}else p.localName==="slot"&&(x.hasInsertionPoint=!0);if(p.firstChild&&(h=F,p.localName!=="script"&&p.localName!=="style")){c=0;for(var M=p.firstChild;M;){var f=M;if(f.localName==="template"){var K=f.getAttribute("is");if((M=K==="dom-if")||K==="dom-repeat"){f.removeAttribute("is");
K=f.ownerDocument.createElement("ps-"+K);f.parentNode.replaceChild(K,f);K.appendChild(f);var t=Array.from(f.attributes);t=_.a(t);for(var d=t.next();!d.done;d=t.next())d=d.value,M?xaz.has(d.name)&&ro(K,d.value,d.name):YYk.has(d.name)?ro(K,d.value,d.name):wyw.has(d.name),f.removeAttribute(d.name);M=K}else M=f}if(M.nodeType===Node.TEXT_NODE){f=void 0;K=p;for(t=M;((f=t.nextSibling)==null?void 0:f.nodeType)===Node.TEXT_NODE;)d=void 0,(d=t).textContent!=null||(d.textContent=""),t.nextSibling.textContent&&
(t.textContent+=t.nextSibling.textContent),K.removeChild(t.nextSibling);if(x.stripWhitespace&&M.textContent&&!M.textContent.trim()){p.removeChild(M);M=M.nextSibling;continue}}G8w(M,x,{parentIndex:c,parentInfo:h});M.parentNode&&c++;M=M.nextSibling}}var v;if((v=p.hasAttributes)==null?0:v.call(p)){v=F=Rbd(F);h=!1;c=Array.from(p.attributes);c=_.a(c);for(f=c.next();!f.done;f=c.next())f=f.value,h=$5k(p,v,f.name,f.value)||h;N=h||N}p.nodeType===Node.TEXT_NODE&&(v=kJm(p.textContent),v.length&&(p.textContent=
iSz(v)||" ",F=Rbd(F),IFM(F,"text","textContent",v),N=!0));F&&N&&(F.infoIndex=x.nodeInfoList.push(F)-1)};
pyp=function(p,x){x={nodeInfoList:[],stripWhitespace:(x===void 0?!1:x)||p.hasAttribute("strip-whitespace")};G8w(p.content,x);return x};
VR6=function(p){Object.assign(p,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
WsH=function(p,x){for(;p;){var F=p.signals[x];if(F)return F;p=p.parentScope}};
map=function(p,x,F,N){x.signalCache!=null||(x.signalCache={});var h=x.signalCache[F];if(!h){var c=F.split("."),M=WsH(N,c[0]);if((M==null?void 0:M.type)==="signal")h=function(){var C=M.type==="mutable"?M.signal.getWithPath([]):M.getter();return{rootWasDefined:C!==void 0,value:SA(C,c.slice(1))}};
else if((M==null?void 0:M.type)==="mutable"){var f=M.signal,K=M.signal.getPathMutationSignal(c.slice(1));h=function(){var C=QZ(p.owner,function(){return f.getWithPath([])}),X,Q=(X=K())==null?void 0:X.value;
return{rootWasDefined:C!==void 0,value:Q}}}else{var t,d;
N=_.S("web_polysi_immutable_root_fix_killswitch")?!((t=p.options)==null?0:(d=t.immutableProps)==null?0:d.has(c[0])):!HUz(p,c[0]);if(c.length>1&&N){var v=p.getPathMutationSignal(c);h=function(){var C=QZ(p.owner,function(){return p.getWithPath([c[0]])}),X,Q=(X=v())==null?void 0:X.value;
return{rootWasDefined:C!==void 0,value:Q}}}else h=function(){var C=p.getWithPath(c);
return{rootWasDefined:C!==void 0,value:C}}}x.signalCache[F]=h}return h()};
OUw=function(p,x,F,N,h,c){x=x.parts.map(function(f,K){if(f.type==="literal"){F.partWasDefined!=null||(F.partWasDefined=[]);var t;(t=F.partWasDefined)[K]||(t[K]=f.value!==void 0);return f.value}var d;if(f.type==="method"){var v,C=(v=(d=F.partWasDefined)==null?void 0:d[K])!=null?v:!1;C||(C=f.signature.args.every(function(b){return b.type==="literal"}));
var X=!1,Q=!0;d=f.signature.args.map(function(b){if(b.type==="literal")return b.value;if(b.type!=="path")throw Error("Fg`"+b.type);var A=map(p,F,b.path,h);b=A.value;A=A.rootWasDefined;X||(X=A);Q&&(Q=A);return b});
C||(C=c===1?Q:X);F.partWasDefined!=null||(F.partWasDefined={});F.partWasDefined[K]=C;if(!C)return;d=(K=map(p,F,f.signature.methodName,h).value)&&typeof K==="function"?K.apply(N,d):void 0}else v=map(p,F,f.path,h),d=v.value,F.partWasDefined!=null||(F.partWasDefined={}),(C=F.partWasDefined)[K]||(C[K]=d!==void 0||v.rootWasDefined);f.negate&&(d=!d);return d});
if(x.length===1){var M;return((M=F.partWasDefined)==null?0:M[0])?x[0]:o26}return x.join("")};
jpz=function(p){return typeof p==="object"&&!!p&&"notifyPath"in p&&"canNotifyPath"in p};
Lsw=function(p){return typeof p==="object"&&!!p&&"notifyPath"in p};
Pck=function(p){return"polymerController"in p};
TE$=function(p,x){x=""+C5(x)[0];if(jpz(p))return p.canNotifyPath(x);if(Pck(p)&&jpz(p.polymerController))return p.polymerController.canNotifyPath(x);if(Lsw(p)){var F;return!((F=p.properties)==null||!F[x])}if(Pck(p)&&Lsw(p.polymerController)){var N;return!((N=p.polymerController.properties)==null||!N[x])}return!1};
BEB=function(p,x,F){jpz(p)||Lsw(p)?p.notifyPath(x,F):Pck(p)&&(jpz(p.polymerController)||Lsw(p.polymerController))&&p.polymerController.notifyPath(x,F)};
k8m=function(p,x,F){if(F!==o26){p.kind==="attribute"||p.target!=="textContent"&&(p.target!=="value"||x.localName!=="input"&&x.localName!=="textarea")||(F=F===void 0?"":F);var N,h=(N=RdB.Polymer)==null?void 0:N.sanitizeDOMValue;h&&(F=h(F,p.target,p.kind,x));if(p.kind==="attribute"){p=p.target;if(p==="class"||p==="name"||p==="slot")x=(0,_.$s)(x);ro(x,F,p)}else if(p=p.target,F!==x[p]||typeof F==="object")x.loggingStatus&&(x.loggingStatus.isDeclarativeExternal=!0,Dv(x.localName,p,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
x[p]=F,x.loggingStatus&&(x.loggingStatus.isDeclarativeExternal=!1)}};
Uaw=function(p,x,F,N,h){var c=x.parts[0];if(x.parts.length!==1||c.type!=="path"||!TE$(F,x.target))return!1;var M=_.a(c.path.split(".")),f=M.next().value,K=oG(M);if(!_.S("web_polysi_immutable_root_fix_killswitch")&&HUz(p,f))return!1;M=WsH(h,f);if((M==null?void 0:M.type)==="signal")return!1;N.signalCache!=null||(N.signalCache={});h=N.signalCache[c.path];var t;h=(t=h)==null?void 0:t().value;if((h==null?void 0:h.path)!==void 0){N=C5(h.path);var d=C5(c.path);N=[x.target].concat(_.se(N.slice(d.length-1)));
BEB(F,N,c.negate?!h.value:h.value);return!0}var v;M?v=M.signal:v=EQ(p,f);var C=v.getChangeRecordSignal(K),X=!1;h=function(){if(!X){var b=QZ(p.owner,function(){return v.getWithPath([])});
X||(X=b!==void 0)}return{value:C(),rootWasDefined:X}};
N.signalCache[c.path]=h;N.partWasDefined!=null||(N.partWasDefined={});f=h();(d=N.partWasDefined)[0]||(d[0]=f.rootWasDefined);var Q=QZ(p.owner,function(){return v.getWithPath(K)});
N.partWasDefined[0]&&QZ(p.owner,function(){return void k8m(x,F,c.negate?!Q:Q)});
return!0};
iUp=function(p,x,F,N,h,c,M){if(!Uaw(p,x,F,N,c)){var f=OUw(p,x,N,h,c,M);QZ(p.owner,function(){return void k8m(x,F,f)})}};
IYz=function(p,x,F,N,h,c,M){F=_.a(F);for(var f=F.next(),K={};!f.done;K={infoIndex:void 0},f=F.next()){f=f.value;var t=f.bindings;K.infoIndex=f.infoIndex;f=f.parentInfo;if(t){t=_.a(t);for(var d=t.next(),v={};!d.done;v={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},d=t.next()){v.b$jscomp$254=d.value;if(K.infoIndex===void 0)throw Error("Gg");v.bindingCtx$jscomp$4={};p.effect(function(C,X){return function(){h&&!h()||iUp(p,C.b$jscomp$254,x[X.infoIndex],C.bindingCtx$jscomp$4,N,c,M)}}(v,K))}}f&&IYz(p,
x,[f],N,h,c,M)}};
$ak=function(p,x){p=(x.parentInfo?$ak(p,x.parentInfo):p).firstChild;for(var F=0;p;p=p.nextSibling)if(x.parentIndex===F++)return p;throw Error("Hg");};
pKk=function(p,x,F,N){p=document.importNode(p.content,!0);p.__noInsertionPoint=!(N==null?0:N.hasInsertionPoint);for(var h=Array(x.length),c={},M=0;M<x.length;M++){var f=x[M],K=$ak(p,f);h[M]=K;f.id&&(c[f.id]=K);if(f.templateInfo){var t=K.parentElement;t&&(t.templateInfo=f.templateInfo,t.parentSignalProxy=F,t.eventListenerHost=N.eventListenerHost,t.stampingEnabled=N.enabledSignal,t.parentScope=N.scope)}t=void 0;if((t=f.events)==null?0:t.length)for(t=0;t<f.events.length;t++){var d=f.events[t];edH(N.eventListenerHost,
K,d.name,d.value,N.getModel)}}IYz(F,h,x,N.thisCtx,N.enabledSignal,N.scope,N.methodInvocationRequirement);return{root:p,nodes:h,nodesById:c}};
F8p=function(p,x){p=p();var F;(F=x96.ShadyCSS)==null||F.prepareTemplate(p,x);x=pyp(p);return{template:p,nodeInfoList:x.nodeInfoList,hasInsertionPoint:x.hasInsertionPoint}};
lgB=function(){NyZ=!1;for(var p=Xf.length,x=0;x<p;x++){var F=Xf[x];if(F)try{F()}catch(N){Promise.resolve().then(function(){throw N;})}}Xf.splice(0,p);
hHH+=p};
D9M=function(p){NyZ||(NyZ=!0,cjd.textContent=(ag$++).toString());Xf.push(p);return MYE++};
_.zD=function(p,x,F){go++;p=x?new fgr(go,p,x,F):new K8M(go,p);Qg.set(go,p);return go};
q2J=function(p){(p=Qg.get(p))&&p.cancel()};
tYz=function(p,x){p=ZB6.get(p);return p?(x=p.get(x))?x:null:null};
_.sQ=function(p,x,F,N){var h=tYz(p,x);if(!h){h=new d9p;var c=ZB6.get(p);c||(c=new Map,ZB6.set(p,c));c.set(x,h)}p=F.bind(p);h.run(p,N,void 0)};
_.v1H=function(p,x){var F;(F=tYz(p,x))==null||F.cancel()};
Jj$=function(p){var x;(x=tYz(p,"doRender"))==null||x.flush()};
n5=function(p){var x;return(x=p.hostElement)!=null?x:p};
Coz=function(p){var x=p.indexOf(".");return x===-1?p:p.slice(0,x)};
S2B=function(p,x,F,N,h,c){c=(h=(N=c?Coz(x):x)?x:null)?p.get(h):p.__data[x];h&&c===void 0&&(c=F[x]);_.hG(p.hostElement,kkM(N)+"-changed",{value:c,queueProperty:!0,path:h!=null?h:void 0},{bubbles:!1,composed:!1})};
rj6=function(p,x){p.__isReflecting=!0;T4$(p.hostElement,x,p.__data[x]);p.__isReflecting=!1};
E16=function(p){if(p._onIronRequestResizeNotifications){var x=p._onIronRequestResizeNotifications.bind(p);p._onIronRequestResizeNotifications=function(F){_.os(F)!==p.hostElement&&x(F)}}p._ariaActiveAttributeChanged&&(p._ariaActiveAttributeChanged=p._ariaActiveAttributeChanged.bind(p.hostElement));
p._activeChanged&&(p._activeChanged=function(F){p.toggles?ro(p.hostElement,F?"true":"false",p.ariaActiveAttribute):p.hostElement.removeAttribute(p.ariaActiveAttribute);p._changedButtonState()});
p._asyncClick&&(p._asyncClick=function(){_.zD(function(){p.hostElement.click()},1)});
!p.keyEventTarget||p.keyEventTarget instanceof EventTarget||(p.keyEventTarget=n5(p.keyEventTarget));p._disabledChanged&&(p._disabledChanged=p._disabledChanged.bind(p.hostElement));p._observeItems&&(p._observeItems=function(F){var N=n5(F);return _.Ef(N).observeNodes(function(h){p._updateItems();p._updateSelected();_.hG(N,"iron-items-changed",h,{bubbles:!1,cancelable:!1})})});
p._updateItems&&p._updateItems===_.yg._updateItems&&(p._updateItems=function(){var F=_.Ef(p.hostElement).queryDistributedElements(p.selectable||"*");F=Array.prototype.filter.call(F,p._bindFilterItem);p._setItems(F)});
p._computeKeyboardClass&&(p._computeKeyboardClass=function(F){_.iX(p.hostElement,"keyboard-focus",F)});
p.ensureRipple&&(p.ensureRipple=function(F){if(p.hasRipple&&!p.hasRipple()){if(!p._createRipple)return;p._ripple=p._createRipple();p._ripple.noink=p.noink;var N=p._rippleContainer||p.hostElement;N&&_.n(N).appendChild(p._ripple)}var h;if(F&&((h=p._ripple)==null?0:h.uiDownAction)){N=_.n(p._rippleContainer||p.hostElement);var c;h=(c=F.composedPath())==null?void 0:c[0];N.contains(h)&&p._ripple.uiDownAction(F)}});
p._updateMultiselectable&&(p._updateMultiselectable=function(F){F?p.hostElement.setAttribute("aria-multiselectable","true"):p.hostElement.removeAttribute("aria-multiselectable")})};
XK$=function(p,x,F){F=_.a(F);for(var N=F.next();!N.done;N=F.next())EcE(N.value.constructor,p);EcE(x.constructor,p)};
Q1M=function(p,x){p=_.a(p);for(var F=p.next();!F.done;F=p.next())if(F=F.value,F.type==="signal"){var N=F.propertyKey;if(x.hasOwnProperty(N)&&x[N]!=null&&F.attributeType===Object){a:{N=x[N].constructor;for(var h=_.a(g1Z),c=h.next();!c.done;c=h.next())if(c=c.value,N===c){N=c;break a}N=Object}F.attributeType=N}}};
zHz=function(){};
s1k=function(p){var x;return(x=p.hostElement)!=null?x:p};
n1r=function(){throw Error("Lg");};
yj6=function(p,x){p.constructor.prototype.useSignals=!0;var F=new p.constructor;XK$(F,p,x.behaviors);Q1M(x.reactiveSchemas,F);F={};for(var N=_.a(x.reactiveSchemas),h=N.next();!h.done;h=N.next())h=h.value,h.type==="signal"&&(F[h.propertyKey]=h.attributeType);var c={copyPropertiesToProto:n1r,didRegister:!1,typesForSignals:F},M=["disable-upgrade"].concat(_.se(x.observedAttributes)),f=function(K){b8.call(this,p,x,c,K)};
_.E(f,b8);_.R8.Object.defineProperties(f,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return M}}});
c.copyPropertiesToProto=function(){for(var K=0;K<x.behaviors.length;K++)gcp(x.behaviors[K],f.prototype);gcp(p,f.prototype)};
x.legacyOptimizations||c.copyPropertiesToProto();f.prototype.is=p.is;return f};
bBd=function(p,x){if(Object.getPrototypeOf(x.prototype).constructor!==_.m)throw Error("Mg");x.prototype.is=p.is;return yj6(x.prototype,p)};
AjE=function(p){return p.type==="compute"||p.type==="computeWithMethod"};
uym=function(p){for(var x=p.reactiveSchemas.filter(AjE),F=new Map,N=new Map,h=new Map,c=_.a(x),M=c.next();!M.done;M=c.next())M=M.value,F.set(M.propertyKey,M),N.set(M.propertyKey,[]),h.set(M.propertyKey,0);c=0;x=_.a(x);for(M=x.next();!M.done;M=x.next()){M=M.value;for(var f=_.a(M.type==="computeWithMethod"?M.method.args:M.args),K=f.next();!K.done;K=f.next())K=K.value,K.type!=="literal"&&(K=K.path.split(".")[0],N.has(K)&&(N.get(K).push(M.propertyKey),h.set(M.propertyKey,h.get(M.propertyKey)+1),c++))}M=
[].concat(_.se(N.keys())).filter(function(t){return h.get(t)===0});
for(x=[];M.length;)for(f=M.shift(),x.push(F.get(f)),f=_.a(N.get(f)),K=f.next();!K.done;K=f.next())K=K.value,h.set(K,h.get(K)-1),c--,h.get(K)===0&&M.push(K);F=p.reactiveSchemas.filter(function(t){return!AjE(t)});
p.reactiveSchemas=[].concat(_.se(F),_.se(x))};
Y2H=function(p,x){if(x.properties)for(var F=_.a(Object.entries(x.properties)),N=F.next();!N.done;N=F.next()){var h=_.a(N.value);N=h.next().value;h=h.next().value;p.properties[N]=typeof h==="function"?{type:h}:h}x.observers&&p.observers.push.apply(p.observers,_.se(x.observers));x.disabledPolySiReactions&&p.disabledPolySiReactions.push.apply(p.disabledPolySiReactions,_.se(x.disabledPolySiReactions))};
wK6=function(p,x){for(var F=x.length-1;F>=0;F--){var N=x[F];Array.isArray(N)?wK6(p,N):p.indexOf(N)<0&&p.unshift(N)}};
GLp=function(p,x){p.reactiveSchemas=p.reactiveSchemas.filter(function(F){return F.type==="observe"&&x.includes(F.method.methodName)||AjE(F)&&x.includes(F.propertyKey)?!1:!0})};
W8k=function(p,x){var F=x.prototype,N,h,c={is:p.is,reactiveSchemas:[],observedAttributes:[],behaviors:[thE.InjectBehavior,vT.prototype],disableElementRegistration:p.disableElementRegistration,provide:(N=p.providers)!=null?N:[],reactivityMode:p.reactivityMode,signalProperties:(h=F.signalProperties)!=null?h:[]};"template"in x?c.templateGetter=function(){return x.template}:p.getTemplate&&(c.templateGetter=p.getTemplate);
F.behaviors&&wK6(c.behaviors,F.behaviors);VYd(c,x);return c};
VYd=function(p,x){for(var F=x.prototype,N={properties:{},observers:[],disabledPolySiReactions:[]},h=_.a(p.behaviors),c=h.next();!c.done;c=h.next())Y2H(N,c.value);Y2H(N,F);if(p.signalProperties)for(F=_.a(p.signalProperties),h=F.next();!h.done;h=F.next())delete N.properties[h.value];F=_.a(Object.entries(N.properties));for(h=F.next();!h.done;h=F.next()){c=_.a(h.value);h=c.next().value;c=c.next().value;var M=void 0;if((M=p.signalProperties)==null||!M.includes(h)){M=void 0;var f=p,K=c.type;if(!K)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{K=Reflect.getMetadata("design:type",x,h);for(var t=_.a(HBM),d=t.next();!d.done;d=t.next())if(d=d.value,K===d){K=d;break a}K=Object}else K=String;c.computed||c.selector||(f.reactiveSchemas.push({type:"signal",propertyKey:h,value:c.value,attributeType:K,readOnly:c.readOnly}),f.observedAttributes.push(_.ZI(h)));c.reflectToAttribute&&f.reactiveSchemas.push({type:"reflect",propertyKey:h});if(c.computed){K=PiZ(c.computed);if(!K)throw Error("Ng");f.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:h,method:K,value:c.value})}c.observer&&f.reactiveSchemas.push({type:"observe",method:{methodName:c.observer,args:[{type:"path",path:h}]}});c.notify&&f.reactiveSchemas.push({type:"notify",propertyKey:h});c.selector&&f.reactiveSchemas.push({type:"redux",propertyKey:h,selector:c.selector,selectorArgs:(M=c.selectorArgs)!=null?M:[]})}}m9d&&uym(p);x=_.a(N.observers);for(h=x.next();!h.done;h=x.next())F=p,h=h.value,(c=PiZ(h))?F.reactiveSchemas.push({type:"observe",method:c}):console.log('Warning: unable to parse observe declaration: "'+
h+'"');GLp(p,N.disabledPolySiReactions)};
o16=function(p,x){for(var F=0;F<x.length;F++){var N=x[F],h=void 0;(h=N).showHideApi!=null||(h.showHideApi={});h=void 0;!!p!==!((h=N.showHideApi)==null||!h.hideTemplateChildren)&&(N.nodeType===Node.TEXT_NODE?p?(N.showHideApi.polymerTextContent=N.textContent,N.textContent=""):(h=void 0,N.textContent=(h=N.showHideApi.polymerTextContent)!=null?h:null):N instanceof Element&&N.localName==="slot"?p?(N.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.$s)((0,_.$s)(N).parentNode).replaceChild(N.showHideApi.polymerReplaced,
N)):(h=N.showHideApi.polymerReplaced)&&(0,_.$s)((0,_.$s)(h).parentNode).replaceChild(N,h):N instanceof HTMLElement&&N.style&&(p?(N.showHideApi.polymerDisplay=N.style.display,N.style.display="none"):N.style.display=N.showHideApi.polymerDisplay));N.showHideApi.hideTemplateChildren=p;N.showHideChildren&&N.showHideChildren(p)}};
j1z=function(){if(!OBE){var p=document.createElement("style");p.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(p);OBE=!0}};
L8$=function(p,x){return QZ(p,function(){for(var F={},N=x,h=new Set;N;){for(var c=_.a(Object.entries(N.signals)),M=c.next();!M.done;M=c.next()){var f=_.a(M.value);M=f.next().value;f=f.next().value;h.has(M)||(h.add(M),F[M]=f.type==="mutable"?f.signal.getWithPath([]):f.getter())}N=N.parentScope}return F})};
AZ=function(){return _.S("disable_hidden_dom_if_using_stamper")||_.S("creator_disable_hidden_dom_if_using_stamper")};
Pow=function(){var p=!1,x=_.a(_.hu(!0,void 0,"UQbJQc")),F=x.next().value,N=x.next().value;return[function(){return p?!1:F()},
function(){p=!0;N(!1)}]};
TyM=function(p,x){var F=_.u8().getState();return x?p.apply(null,[F].concat(_.se(x))):p(F)};
kLJ=function(){if(Byz)return Byz;var p=_.a(_.hu(0,void 0,"lnJfId")),x=p.next().value,F=p.next().value;_.u8().subscribe(function(){RHz(F)});
return Byz=x};
RHz=function(p){_.S("delay_redux_signal_update_killswitch")?p(tlZ(function(x){return x+1})):U9H||(U9H=!0,Promise.resolve().then(function(){p(tlZ(function(x){return x+1}));
U9H=!1}))};
_.u8=function(){return iBH.getAppStore()};
YJ=function(p,x){return iBH.getSelectFn()(p,x)};
_.wo=function(p){iBH.getDispatchFn()(p)};
IgZ=function(p,x){var F={},N;for(N in p)F[N]=x(p[N],N);return F};
_.GD=function(p,x){return function(){var F;return(F=_.gx(p))!=null?F:x}};
_.Vg=function(p,x){var F=Object.assign({},p),N;for(N in x)x.hasOwnProperty(N)&&(F[N]=_.GD(p[N],x[N]));return F};
$96=function(p,x,F){p instanceof Element&&(F.debugName||(F.debugName="<"+p.tagName.toLowerCase()+(p.tagName.includes("-")?">":"."+p.className+">")),_.S("ytwiz_enable_debug_component_props")&&(p.debugProps||(p.debugProps=IgZ(x,function(N){return function(){return N()}}))))};
_.mO=function(p,x){var F=function(N){var h={stack:[],error:void 0,hasError:!1};try{var c=eHw={};var M=_.WT(h),f;if(((f=F)==null?0:f.idomCompat)&&N.renderedFromIdom){M==null||M.attr("idomCompat",!0);var K,t=typeof F.idomCompat==="object"?(K=F)==null?void 0:K.idomCompat.callbacks:{},d=_.a(pdM(N,t,F.debugName)),v=d.next().value;d.next();var C=d.next().value,X=xrp(p,v);c.privateValue=X;eHw=void 0;$96(X,v,F);M==null||M.attr("debugName",F.debugName);var Q=oMw(X),b=Array.isArray(Q)?Q[0]:Q;b[$d]||(b[$d]=
{});b[$d].updateSignalsFromIdomProps=C;return X}var A=IgZ(N,FqE);var Y=xrp(p,A);c.privateValue=Y;eHw=void 0;$96(Y,A,F);M==null||M.attr("debugName",F.debugName);return Y}catch(O){h.error=O,h.hasError=!0}finally{_.HT(h)}};
F.debugName=x===void 0?"":x;return F};
xrp=function(p,x){p=p(x);return N$(p)};
NiH=function(p,x){p[x]||(p=new _.qE("IDOM interop setter undefined. Key:",x),_.zj(p))};
FqE=function(p,x){return x==="children"||typeof p==="function"||p===void 0?p:function(){return _.gx(p)}};
pdM=function(p,x,F){var N={},h={},c={},M={},f;for(f in p){M={key$jscomp$880:M.key$jscomp$880};M.key$jscomp$880=f;var K=p[M.key$jscomp$880];if(M.key$jscomp$880==="children")N[M.key$jscomp$880]=K;else if(typeof K==="function")M.key$jscomp$880 in x||K.length>0?(c[M.key$jscomp$880]=K,N[M.key$jscomp$880]=function(d){return function(){return c[d.key$jscomp$880].apply(c,_.se(_.we.apply(0,arguments)))}}(M)):N[M.key$jscomp$880]=K;
else if(!(p[M.key$jscomp$880]===void 0&&M.key$jscomp$880 in x)){var t=_.a(_.hu(p[M.key$jscomp$880],{debugName:"__cwis:"+F+":"+M.key$jscomp$880},"lEtjrb"));K=t.next().value;t=t.next().value;N[M.key$jscomp$880]=K;h[M.key$jscomp$880]=t}}return[N,h,function(d){var v={},C;for(C in d)v={key$jscomp$881:v.key$jscomp$881,val$jscomp$117:void 0},v.key$jscomp$881=C,v.val$jscomp$117=d[v.key$jscomp$881],v.key$jscomp$881!=="children"&&(typeof v.val$jscomp$117==="function"?v.key$jscomp$881 in x?c[v.key$jscomp$881]=
v.val$jscomp$117:v.val$jscomp$117.length>0&&(c[v.key$jscomp$881]=v.val$jscomp$117,_.no(new _.qE("Callback detected that was not set in the idomCompat callbacks map. Key:",v.key$jscomp$881))):v.key$jscomp$881 in x&&v.val$jscomp$117===void 0||(NiH(h,v.key$jscomp$881),qG(function(X){return function(){h[X.key$jscomp$881](X.val$jscomp$117)}}(v))))}]};
c2p=function(p,x,F){var N=NMp(p.prototype,hsM,p.prototype.behaviors);N.prototype.is=x;N.prototype.localName=x;F&&lT6(N,F);return function(h){h&&(N.prototype.hostElement=h);var c=new N;c.root=c;c.hostElement=h;return c}};
lT6=function(p,x){var F;Object.defineProperty(p.prototype,"_template",{get:function(){F===void 0&&(F=x());return F},
set:function(N){F=N},
configurable:!0,enumerable:!0})};
Kqk=function(p,x,F,N){function h(){if(!X){for(var Q=new Set,b=_.a(d),A=b.next();!A.done;A=b.next()){A=A.value;for(var Y=_.a(Object.getOwnPropertyNames(A)),O=Y.next();!O.done;O=Y.next()){O=O.value;var Fw=void 0,R=(Fw=Object.getOwnPropertyDescriptor(A,O))==null?void 0:Fw.value;R&&R instanceof Function&&!od(O)&&Q.add(O)}}b=_.a(Object.entries(Object.getOwnPropertyDescriptors(p.prototype)));for(A=b.next();!A.done;A=b.next())Y=_.a(A.value),A=Y.next().value,Y=Y.next().value,Y.value instanceof Function&&
!od(A)&&Q.add(A);X=Q}return X}
aT$(p,x,N==null?void 0:N.providers);h46(p.prototype,p,!0);var c=c2p(p,x,F),M,f=(M=p.prototype.properties)!=null?M:{},K,t,d=(t=(K=p.prototype.behaviors)==null?void 0:K.flat(Infinity))!=null?t:[];F=_.a(d);for(M=F.next();!M.done;M=F.next())f=Object.assign({},M.value.properties,f);var v=[].concat(_.se(MuJ),_.se(Object.keys(f).map(function(Q){return _.ZI(Q)}))),C=!1,X;
return{ctor:function(Q,b){var A=c(Q),Y,O;Q=[].concat(_.se((Y=N==null?void 0:N.allowedProps)!=null?Y:[]),_.se((O=N==null?void 0:N.allowedPropsFromBehaviors)!=null?O:[]));A.allowedProps=Q.length>0?Q:void 0;Y={};O=_.a(v);for(Q=O.next();!Q.done;Q=O.next())Q=Q.value,Y[Q]=_.t8(Q);A.__dataAttributes=Y;var Fw=A.ready.bind(A);A.ready=function(){b.beforeReady();Fw();if(ad(x)&&!C){var R=A.__templateInfo;if(R==null?0:R.hostProps){R=_.a(Object.keys(R.hostProps));for(var ld=R.next();!ld.done;ld=R.next())Dv(x,ld.value,
"PROPERTY_ACCESS_GET_INTERNAL")}C=!0}};
A._overrideLegacyUndefined=!0;return A},
props:f,observedAttributes:v,getInitialMethods:h,getPropsToForwardBeforeRegister:function(){for(var Q=[],b=new Set,A=_.a(Object.keys(f)),Y=A.next();!Y.done;Y=A.next())Y=Y.value,Q.push([Y,f[Y].readOnly]),b.add(Y);A=h();Y=_.a(Object.keys(Object.getOwnPropertyDescriptors(p.prototype)));for(var O=Y.next();!O.done;O=Y.next())O=O.value,!Drr(O)||A.has(O)||b.has(O)||(Q.push([O,!1]),b.add(O));b=_.a(fTp);for(A=b.next();!A.done;A=b.next())Q.push([A.value,!0]);return Q},
getPropsToForwardBeforeReady:function(Q){for(var b=[],A=_.a(Object.entries(Q)),Y=A.next();!Y.done;Y=A.next()){var O=_.a(Y.value);Y=O.next().value;O=O.next().value;if(Drr(Y)&&!(O instanceof Function)&&(b.push([Y,!1]),ad(x))){var Fw=O=void 0;(Fw=(O=Q)._createPropertyAccessor)==null||Fw.call(O,Y)}}return b},
shouldForwardProp:Drr,shouldLog:ad}};
aT$=function(p,x,F){d5M(p,F);p.prototype.behaviors.unshift(qOm);if(x5k()){if(ad(x)){var N;(N=p.prototype).behaviors!=null||(N.behaviors=[]);p.prototype.behaviors.unshift(lF6())}aFB(p)}_.u(vT.prototype)(p.prototype,"__templateHelpers")};
od=function(p){return Z$z.has(p)||p.startsWith("__compute__")};
Drr=function(p){return!od(p)&&!p.startsWith("_")&&!p.endsWith("_")};
CVr=function(p,x){function F(){var C=K();C=_.a(C);for(var X=C.next();!X.done;X=C.next()){var Q=_.a(X.value);X=Q.next().value;Q=Q.next().value;tuZ(v.prototype,X,Q)}N=!0}
var N=!1,h=p.ctor,c=p.getInitialMethods,M=p.observedAttributes,f=p.getPropsToForwardBeforeReady,K=p.getPropsToForwardBeforeRegister,t=p.shouldForwardProp,d=p.shouldLog,v=function(){var C=HTMLElement.call(this)||this;C.didForwardDynamicProps=!1;C.loggingStatus={};N||F();C.inst=h(C,{beforeReady:function(){C.didForwardDynamicProps||(C.forwardDynamicProps(),C.didForwardDynamicProps=!0)}});
C.controllerProxy=N4w(C.inst,x);C.forwardMethods();return C};
_.E(v,HTMLElement);v.prototype.forwardMethods=function(){for(var C=this,X=_.a(this.inst.getExtraMethodsToForward()),Q=X.next(),b={};!Q.done;b={method$jscomp$60:void 0},Q=X.next()){var A=_.a(Q.value);Q=A.next().value;A=A.next().value;b.method$jscomp$60=A;this[Q]=function(Y){return function(){return Y.method$jscomp$60.call.apply(Y.method$jscomp$60,[C.inst].concat(_.se(_.we.apply(0,arguments))))}}(b)}X=_.a(c());
for(b=X.next();!b.done;b=X.next())b=b.value,t(b)&&drE(this,b),d(x)&&!od(b)&&vik(this.inst,b)};
v.prototype.forwardDynamicProps=function(){var C=f(this.inst);C=_.a(C);for(var X=C.next();!X.done;X=C.next()){var Q=_.a(X.value);X=Q.next().value;Q=Q.next().value;tuZ(this,X,Q);d(x)&&!od(X)&&J2M(this.inst,X)}};
v.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
v.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
v.prototype.attributeChangedCallback=function(C,X,Q){this.inst.attributeChangedCallbackWrapper(C,X,Q)};
_.R8.Object.defineProperties(v.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return x}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.R8.Object.defineProperties(v,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return M}}});
customElements.define(x,v)};
tuZ=function(p,x,F){p.hasOwnProperty(x)||Object.defineProperty(p,x,{get:function(){var N,h=((N=p.is)!=null?N:p.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||Dv(h,x,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,N=this.polymerController[x],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,N},
set:function(N){if(!F){var h,c=((h=p.is)!=null?h:p.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||Dv(c,x,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=x,this.loggingStatus.bypassProxyController=!0,this.polymerController[x]!==N&&(h={},this.polymerController.setProperties((h[x]=N,h)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
drE=function(p,x,F){var N=p.polymerController;p[x]=function(){var h=_.we.apply(0,arguments);p.loggingStatus.currentExternalCall=x;p.loggingStatus.bypassProxyController=!0;var c,M=((c=p.is)!=null?c:p.tagName).toLowerCase();Dv(M,x,"PROPERTY_ACCESS_CALL_EXTERNAL");var f;c=(f=F!=null?F:N[x])==null?void 0:f.call.apply(f,[N].concat(_.se(h)));p.loggingStatus.currentExternalCall=void 0;p.loggingStatus.bypassProxyController=!1;return c}};
vik=function(p,x){var F=p.hostElement,N=p[x];p[x]=function(){var h=_.we.apply(0,arguments);if(F.loggingStatus.currentExternalCall!==x){var c,M=((c=F.is)!=null?c:F.tagName).toLowerCase();Dv(M,x,"PROPERTY_ACCESS_CALL_INTERNAL")}return N==null?void 0:N.apply(p,h)}};
J2M=function(p,x){var F=Object.getOwnPropertyDescriptor(p,x);F&&!F.get&&Object.defineProperty(p,x,{get:function(){hb6(p.hostElement,x);return F.value},
set:function(N){f5(p.hostElement,x);F.value=N}})};
SO$=function(p){return _.S("poly_si_dom_repeat_detached_fix_killswitch")||p.tagName!=="PS-DOM-REPEAT"?p.tagName==="DOM-REPEAT":!0};
Eir=function(p,x){var F=r2d(p);p instanceof Element&&F.unshift(p);p=_.a(F.filter(SO$));for(var N=p.next();!N.done;N=p.next()){N=_.a(N.value.__instances);for(var h=N.next();!h.done;h=N.next())if(h=h.value,h.root){h=Array.from(h.root.children);h=_.a(h);for(var c=h.next();!c.done;c=h.next())F.push.apply(F,_.se(Eir(c.value,x)))}}return F.filter(function(M){return M.usePatchedLifecycles&&M.lifecycleIsConnected===x})};
r2d=function(p){var x=null;p instanceof Element?x=Element.prototype.querySelectorAll:p instanceof DocumentFragment&&(x=DocumentFragment.prototype.querySelectorAll);return x?Array.from(x.call(p,"*")):[]};
OQ=function(p){NG(function(){for(var x=_.a(Eir(p,!1)),F=x.next();!F.done;F=x.next()){F=F.value;F.lifecycleIsConnected=!0;try{var N=void 0,h=void 0,c=void 0,M=void 0;(N=(M=F.polymerController)!=null?M:F)==null||(c=(h=N).connectedCallback)==null||c.call(h)}catch(f){_.zj(f)}}})};
jA=function(p){NG(function(){for(var x=_.a(Eir(p,!0)),F=x.next();!F.done;F=x.next()){F=F.value;F.lifecycleIsConnected=!1;try{var N=void 0,h=void 0,c=void 0,M=void 0;(N=(M=F.polymerController)!=null?M:F)==null||(c=(h=N).disconnectedCallback)==null||c.call(h)}catch(f){_.zj(f)}}})};
y2B=function(){if(!Xd$){Xd$=!0;var p=[Node];L5&&p.push(L5.Wrapper);var x=Node.prototype.insertBefore,F=Node.prototype.removeChild;p=_.a(p);for(var N=p.next(),h={};!N.done;h={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},N=p.next())N=N.value,h.nativeInsertBefore=N.prototype.insertBefore,N.prototype.insertBefore=function(M){return function(f,K){if(f instanceof DocumentFragment){var t=Array.from(f.children);f=M.nativeInsertBefore.call(this,f,K);
if(this.isConnected&&M.nativeInsertBefore===x)for(K=_.a(t),t=K.next();!t.done;t=K.next())OQ(t.value);return f}t=f instanceof Element&&f.isConnected;K=M.nativeInsertBefore.call(this,f,K);t&&jA(f);this.isConnected&&OQ(f);return K}}(h),h.nativeAppendChild=N.prototype.appendChild,N.prototype.appendChild=function(M){return function(f){if(f instanceof DocumentFragment){var K=Array.from(f.children);
f=M.nativeAppendChild.call(this,f);if(this.isConnected){K=_.a(K);for(var t=K.next();!t.done;t=K.next())OQ(t.value)}return f}K=f instanceof Element&&f.isConnected;t=M.nativeAppendChild.call(this,f);K&&jA(f);this.isConnected&&OQ(f);return t}}(h),h.nativeRemoveChild=N.prototype.removeChild,N.prototype.removeChild=function(M){return function(f){var K=f instanceof Element&&f.isConnected,t=M.nativeRemoveChild.call(this,f);
K&&F===M.nativeRemoveChild&&jA(f);return t}}(h),h.nativeReplaceChild=N.prototype.replaceChild,N.prototype.replaceChild=function(M){return function(f,K){if(f instanceof DocumentFragment){var t=Array.from(f.children);
f=M.nativeReplaceChild.call(this,f,K);if(this.isConnected)for(jA(K),K=_.a(t),t=K.next();!t.done;t=K.next())OQ(t.value);return f}t=f instanceof Element&&f.isConnected;var d=this.isConnected,v=M.nativeReplaceChild.call(this,f,K);d&&jA(K);t&&jA(f);d&&OQ(f);return v}}(h);
p=[Element];L5&&p.push(L5.Wrapper);p=_.a(p);N=p.next();for(h={};!N.done;h={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},N=p.next())N=N.value,N.prototype.before=gip(N.prototype.before),N.prototype.after=gip(N.prototype.after),h.nativeReplaceWith=N.prototype.replaceWith,N.prototype.replaceWith=function(M){return function(){var f=_.we.apply(0,arguments),K=_.a(QqE(f)),t=K.next().value,
d=K.next().value;K=this.isConnected;M.nativeReplaceWith.apply(this,f);f=_.a(d);for(d=f.next();!d.done;d=f.next())jA(d.value);if(K)for(jA(this),t=_.a(t),K=t.next();!K.done;K=t.next())K=K.value,K instanceof Element&&OQ(K)}}(h),h.nativeRemove=N.prototype.remove,N.prototype.remove=function(M){return function(){var f=this.isConnected;
M.nativeRemove.call(this);f&&jA(this)}}(h),h.nativeInsertAdjacentElement=N.prototype.insertAdjacentElement,N.prototype.insertAdjacentElement=function(M){return function(f,K){var t=K.isConnected;
f=M.nativeInsertAdjacentElement.call(this,f,K);t&&jA(K);f.isConnected&&OQ(f);return f}}(h),h.nativeSetAttribute=N.prototype.setAttribute,N.prototype.setAttribute=function(M){return function(f,K){var t=zsZ(this);
if(!t.usePatchedLifecycles)return M.nativeSetAttribute.call(this,f,K);var d=this.getAttribute(f);M.nativeSetAttribute.call(this,f,K);K=this.getAttribute(f);sqp(t,f,d,K)}}(h),h.nativeRemoveAttribute=N.prototype.removeAttribute,N.prototype.removeAttribute=function(M){return function(f){var K=zsZ(this);
if(!K.usePatchedLifecycles)return M.nativeRemoveAttribute.call(this,f);var t=this.getAttribute(f);M.nativeRemoveAttribute.call(this,f);t!==null&&sqp(K,f,t,null)}}(h),h.nativeToggleAttribute=N.prototype.toggleAttribute,N.prototype.toggleAttribute=function(M){return function(f,K){var t=zsZ(this);
if(!this.usePatchedLifecycles)return M.nativeToggleAttribute.call(this,f,K);var d=this.getAttribute(f),v=d!==null;K=M.nativeToggleAttribute.call(this,f,K);K!==v&&sqp(t,f,d,K?"":null);return K}}(h);
p=[Document,DocumentFragment,Element,ShadowRoot];L5&&p.push(L5.Wrapper);p=_.a(p);for(h=p.next();!h.done;h=p.next())h=h.value,h.prototype.prepend=gip(h.prototype.prepend),h.prototype.append=gip(h.prototype.append);(L5==null?void 0:L5.noPatch)===!0&&nip();document.readyState==="complete"?OQ(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&OQ(document.body)});
var c=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");c&&c.get&&c.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:c.enumerable,configurable:!0,get:c.get,set:function(M){M||jA(this);c.set.call(this,M);return M}})}};
gip=function(p){return function(){var x=_.we.apply(0,arguments),F=_.a(QqE(x)),N=F.next().value;F=F.next().value;p.apply(this,x);x=_.a(F);for(F=x.next();!F.done;F=x.next())jA(F.value);if(this.isConnected)for(N=_.a(N),x=N.next();!x.done;x=N.next())x=x.value,x instanceof Element&&OQ(x)}};
nip=function(){for(var p=_.a(b$J),x=p.next();!x.done;x=p.next()){x=x.value.prototype;for(var F=_.a(A2k),N=F.next();!N.done;N=F.next()){N=N.value;var h=Object.getOwnPropertyDescriptor(x,N);h&&Object.defineProperty(x,"__shady_native_"+N,h)}}};
sqp=function(p,x,F,N){var h,c;if((h=p.polymerController)==null?0:(c=h.observedAttributes)==null?0:c.includes(x))if(p=p.polymerController,p.attributeChangedCallbackWrapper)p.attributeChangedCallbackWrapper.call(p,x,F,N);else{var M;(M=p.attributeChangedCallback)==null||M.call(p,x,F,N)}};
QqE=function(p){var x=[],F=[];p=_.a(p);for(var N=p.next();!N.done;N=p.next())N=N.value,N instanceof Element&&N.isConnected&&F.push(N),N instanceof DocumentFragment?x.push.apply(x,_.se(Array.from(N.children))):x.push(N);return[x,F]};
zsZ=function(p){return!(p instanceof Element)&&p.node instanceof Element?p.node:p};
ueJ=function(p,x){var F=x?["children"].concat(_.se(x)):["children"];x=[];F=_.a(F);for(var N=F.next();!N.done;N=F.next()){var h=N.value;if(p.hasOwnProperty(h)){N=p[h];N=typeof N==="function"?N():N;N=N$(Array.isArray(N)?N:[N]).flat();if(h!=="children"){h=kkM(h);for(var c=_.a(N),M=c.next();!M.done;M=c.next())M=M.value,M instanceof Element&&M.setAttribute("slot",h)}x.push(N)}}x.length===0?p=[]:(p=N$(_.Z("div",null,x)),p=Array.from(p.childNodes));return p};
YOd=function(p,x,F){var N={};_.SO(function(){var h={},c;for(c in x)if(x.hasOwnProperty(c)){var M=void 0,f=void 0;if(!(((M=F.slotProps)==null?0:M.includes(c))||c==="children"||((f=F.callbackProps)==null?0:f.includes(c))||c==="ref")&&(M=_.gx(x[c]),N[c]!==M)){N[c]=M;f=void 0;var K=(f=p.hostElement)!=null?f:p;if(c==="className"||c==="id")K[c]=M;h[c]=M}}qG(function(){if(p.setProperties)p.setProperties(h);else for(var t=_.a(Object.entries(h)),d=t.next();!d.done;d=t.next()){var v=_.a(d.value);d=v.next().value;
v=v.next().value;p[d]=v}})})};
GVm=function(p,x,F,N){var h=ueJ(F,N.slotProps),c=_.S("web_wcw_disable_slot_host_shady_dom_wrap")?p:(0,_.$s)(p);h=_.a(h);for(var M=h.next();!M.done;M=h.next())c.appendChild(M.value);YOd(x,F,N);N=_.a(N.callbackProps||[]);h=N.next();for(c={};!h.done;c={kebabEventName:void 0,eventListener:void 0},h=N.next())M=h=h.value,String(h).substring(0,2)==="on"&&F[M]?(c.kebabEventName=kkM(String(h).substring(2)),c.eventListener=F[M],p.addEventListener(c.kebabEventName,c.eventListener),_.E_(function(d){return function(){p.removeEventListener(d.kebabEventName,
d.eventListener)}}(c))):x[M]=F[M];
if(F.ref){F=_.a(wdZ(F.ref));var f=F.next().value,K=F.next().value,t=x.attached.bind(x);x.attached=function(){f(p);t()};
_.E_(function(){K()})}};
wdZ=function(p){if(typeof p==="function"){var x;return[function(F){x=p(F)},
function(){var F;(F=x)==null||F()}]}if(!p.onRender||!p.onUnmount)throw Error("Rg");
return[p.onRender,p.onUnmount]};
mr6=function(p,x,F,N,h){N=N===void 0?{}:N;var c=VuB,M=!1;c?(M=!0,VuB=void 0):(Wqd=x,c=document.createElement(x),Wqd=void 0);var f=c;f.usePatchedLifecycles=!0;f.lifecycleIsConnected=!1;c.loggingStatus={};var K=H$w(p,x,c,N,h);_.E_(function(){f.lifecycleIsConnected&&(f.lifecycleIsConnected=!1,K.disconnectedCallback())});
M||GVm(c,K,F,N);return c};
H$w=function(p,x,F,N,h){h=h===void 0?Kqk:h;oid[x]!=null||(oid[x]=h(p,x,N==null?void 0:N.getTemplate,N));var c=oid[x],M=c.ctor;h=c.getInitialMethods;var f=c.getPropsToForwardBeforeReady;p=c.getPropsToForwardBeforeRegister;N=c.shouldForwardProp;var K=c.observedAttributes,t=c.shouldLog,d=M(F,{beforeReady:function(){var v=d;v._takeAttributes?v._takeAttributes():v.setPropertiesFromInitialAttributeValues&&v.setPropertiesFromInitialAttributeValues();v=_.a(f(F.polymerController));for(var C=v.next();!C.done;C=
v.next()){var X=_.a(C.value);C=X.next().value;X=X.next().value;tuZ(F,C,X);t(x)&&!od(C)&&J2M(F.polymerController,C)}F.polymerController=N4w(d,x)}});
F.polymerController=d;F.polymerController.observedAttributes=K;c=_.a(d.getExtraMethodsToForward());for(M=c.next();!M.done;M=c.next())K=_.a(M.value),M=K.next().value,K=K.next().value,drE(F,M,K);h=_.a(h());for(c=h.next();!c.done;c=h.next())c=c.value,N(c)&&drE(F,c),t(x)&&!od(c)&&vik(d,c);p=_.a(p());for(N=p.next();!N.done;N=p.next())h=_.a(N.value),N=h.next().value,h=h.next().value,tuZ(F,N,h);return d};
jqr=function(p,x){return PT===x?(p.isInert=!0,PT="",!0):O$m===x?(p.isInert=!0,O$m="",!0):!1};
LqJ=function(p){var x=TD;TD=p;return x};
Ti$=function(p){if(BT.has(p))O$m=p;else if(Rd.has(p)&&TD&&PVM(TD)===p){var x;(x=TD)._numRenders!=null||(x._numRenders=0);TD._numRenders++;if(TD._numRenders>1)throw Error("Sg");return TD}};
Bik=function(p){BT.has(PVM(p))?O$m=PVM(p):Rd.has(PVM(p))&&TD!==p&&(p._isInert=!0)};
PVM=function(p){var x;return(x=p==null?void 0:p.tagName.toLowerCase())!=null?x:""};
Rsd=function(p,x){if(p.componentType===tu)throw Error("Tg");Rd.add(x);var F=function(){var N=HTMLElement.call(this)||this;N.is=x;if(Wqd===x)return N.isInert=!0,N;N.createElement();return N};
_.E(F,HTMLElement);F.prototype.createElement=function(){if(!this.isInert){VuB=this;var N=_.a(DDr(function(){return _.Z(p,null)})).next().value;
VuB=void 0;VR6(this);return N}};
customElements.define(x,F)};
UrM=function(p,x,F,N,h){p.prototype.is=x;(N==null?0:N.useSink)?kVw(p,x,F,N,h):(F=Kqk(p,x,F,N),CVr(F,x));return p};
kVw=function(p,x,F,N,h){y2B();var c=_.mO(function(M){return mr6(p,x,M,Object.assign({},N,{getTemplate:F}),h)},"a");
Rsd(c,x);return c};
ITp=function(p){return!i$H.has(p)};
ppH=function(p,x,F,N){function h(){if(!v){for(var C=new Set($rE),X=_.a(c.behaviors),Q=X.next();!Q.done;Q=X.next()){Q=Q.value;for(var b=_.a(Object.getOwnPropertyNames(Q)),A=b.next();!A.done;A=b.next()){A=A.value;var Y=void 0,O=(Y=Object.getOwnPropertyDescriptor(Q,A))==null?void 0:Y.value;O&&O instanceof Function&&C.add(A)}}X=_.a(Object.entries(Object.getOwnPropertyDescriptors(p.prototype)));for(Q=X.next();!Q.done;Q=X.next())b=_.a(Q.value),Q=b.next().value,b=b.next().value,b.value instanceof Function&&
C.add(Q);v=C}return v}
var c=W8k({is:x,disableElementRegistration:!1,getTemplate:F,providers:N==null?void 0:N.providers,reactivityMode:N==null?void 0:N.reactivityMode},p);if((N==null?0:N.allowedProps)||(N==null?0:N.allowedPropsFromBehaviors)){var M,f;c.allowedProps=[].concat(_.se((M=N.allowedProps)!=null?M:[]),_.se((f=N.allowedPropsFromBehaviors)!=null?f:[]))}var K=bBd(c,p);x=K.observedAttributes;var t={};F=_.a(c.reactiveSchemas);for(N=F.next();!N.done;N=F.next())if(N=N.value,N.type==="signal")t[N.propertyKey]={readOnly:N.readOnly},
N.readOnly&&(t[yKJ(N.propertyKey)]={readOnly:!0});else if(N.type==="compute"||N.type==="computeWithMethod"||N.type==="redux")t[N.propertyKey]={readOnly:!0};var d=c.reactiveSchemas.length,v;return{ctor:function(C,X){C=new K(C);C.beforeReady=X.beforeReady;return C},
props:t,observedAttributes:x,getInitialMethods:h,getPropsToForwardBeforeRegister:function(){for(var C=[],X=new Set,Q=_.a(es6),b=Q.next();!b.done;b=Q.next())b=b.value,C.push([b,b!=="observers"&&b!=="properties"]),X.add(b);Q=_.a(Object.keys(t));for(b=Q.next();!b.done;b=Q.next())b=b.value,C.push([b,t[b].readOnly]),X.add(b);Q=h();b=_.a(Object.keys(Object.getOwnPropertyDescriptors(p.prototype)));for(var A=b.next();!A.done;A=b.next())A=A.value,!ITp(A)||Q.has(A)||X.has(A)||(C.push([A,!1]),X.add(A));C.push(["allowedProps",
!0]);return C},
getPropsToForwardBeforeReady:function(C){var X=[];C=_.a(Object.keys(C));for(var Q=C.next();!Q.done;Q=C.next()){Q=Q.value;var b=h();ITp(Q)&&!b.has(Q)&&X.push([Q,!1])}C=_.a(c.reactiveSchemas.slice(d));for(Q=C.next();!Q.done;Q=C.next())Q=Q.value,Q.type!=="compute"&&Q.type!=="computeWithMethod"&&Q.type!=="redux"&&Q.type!=="signal"||X.push([Q.propertyKey,Q.type==="signal"?Q.readOnly:!0]);return X},
shouldForwardProp:ITp,shouldLog:ad}};
_.P=function(p,x,F,N){var h,c,M=(c=(h=N)==null?void 0:h.mode)!=null?c:0;N!=null||(N={});var f;(f=N).reactivityMode!=null||(f.reactivityMode=0);M===1&&_.ID("creator_poly_si_disable_list").includes(x)&&(M=2);return M===1?UrM(p,x,F,Object.assign({},N,{useSink:!0}),ppH):UrM(p,x,F,Object.assign({},N,{useSink:M===2}))};
_.kJ=function(){return function(p,x,F,N){var h,c,M=(c=(h=N)==null?void 0:h.mode)!=null?c:2;N!=null||(N={});var f;(f=N).reactivityMode!=null||(f.reactivityMode=0);if(M===0)throw Error("Ug`"+M);return kVw(p,x,F,N,M===1?ppH:void 0)}};
_.UQ=function(p){return _.S("creator_poly_si_killswitch")?!1:_.S("force_all_poly_si_batches")&&(p==="poly_si_all_on_test_check"||p==="creator_poly_si_batch_050"?0:p)||document.documentElement.hasAttribute("use-signals")?!0:!p||_.S(p+"_holdback_enabled")&&_.S("kevlar_polysi_holdback")?!1:_.S(p)};
i8=function(p){return p?p.icon?p.icon.iconType.toLowerCase():p.customThumbnail?"member":"":""};
xyJ=function(p){if(!p)return"";p=_.a(p);for(var x=p.next();!x.done;x=p.next())if((x=x.value)&&x.liveChatAuthorBadgeRenderer&&(x=i8(x.liveChatAuthorBadgeRenderer))&&x!=="verified")return x;return""};
FIZ=function(p,x){if(!p)return null;var F;return((F=p.find(function(N){return N&&N.liveChatAuthorBadgeRenderer?i8(N.liveChatAuthorBadgeRenderer)===x:!1}))==null?void 0:F.liveChatAuthorBadgeRenderer)||null};
_.M$r=function(p){var x=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;p=Nrw(p);x=Nrw(x);var F=hCd(p.hex);x=hCd(x.hex);var N=x[0]/255;var h=x[1]/255,c=x[2]/255,M=Math.max(N,h,c),f=Math.min(N,h,c),K=0,t=0,d=.5*(M+f);M!=f&&(M==N?K=60*(h-c)/(M-f):M==h?K=60*(c-N)/(M-f)+120:M==c&&(K=60*(N-h)/(M-f)+240),t=0<d&&d<=.5?(M-f)/(2*d):(M-f)/(2-2*d));N=[Math.round(K+360)%360,t,d];F=lf$(F,x);for(p=cxE(p.hex);F<4.5;){p=N[2]>=.5?p.darker((4.5-F)/2):p.brighter((4.5-F)/2);F=p.toString();
h=afp(F);if(!h.length)throw Error("Rd`"+F);F=h;F=lf$(F,x)}return p.hex()};
lf$=function(p,x){p=_.hJp(p);x=_.hJp(x);return(Math.max(p,x)+.05)/(Math.min(p,x)+.05)};
_.Id=function(p){return"#"+("000000"+(p&16777215).toString(16)).slice(-6)};
_.Dyz=function(p){for(var x=0,F=0;F<p.length;F++)x=p.charCodeAt(F)+((x<<5)-x);p="#";for(F=0;F<3;F++)p+=("00"+(x>>F*8&255).toString(16)).slice(-2);return p};
ffp=function(p){p=(p||"").split(":");p.length===1&&p.unshift("yt-icons");p[1]=p[1].toLowerCase();return p};
vTr=function(p,x){var F=(x=x===void 0?!1:x)?KIZ:qEd,N=x?ZYJ:t$B;p.getIconNames().forEach(function(h){h=x?h:h.substring(h.indexOf(":")+1);p.name==="yt-icons"?dym.add(h):h.includes("-filled")?F.add(h):N.add(h)})};
$J=function(p,x,F,N){F=F===void 0?!1:F;N=N===void 0?!1:N;var h,c,M;return _.D(function(f){if(f.nextAddress==1)return _.q(f,JxB,2);if(N)return f.return(dym.has(p));h=F?KIZ:qEd;c=F?ZYJ:t$B;return x?(M=p.includes("-filled")?p:p.concat("-filled"),f.return(h.has(M))):f.return(c.has(p))})};
_.rx$=function(p){if(CRz(p))return p;var x=p=p.toLowerCase();(p=SEM.get(p))&&(x=p);return x};
_.eA=function(p){if(CRz(p))return p.toString();var x=ET6.get(p);if(x)return x;x=p.toLowerCase();var F="yt-icons",N=x.replace(/_/g,"-");switch(p){case "MY_CHANNEL":x="account_circle";break;case "ADD_TO_LIBRARY":x="add";break;case "ALERT_WARN_RED":x="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":x="person_music";break;case "BLOCK_USER":x="block";break;case "CAPTIONS":x="closed_caption";break;case "CLOSED_CAPTION":F="av";x="closed-caption";break;case "COLLECTION":F="maps";x="layers";break;case "CONTACT":F=
"icons";x="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":F="ytcp-icons";x=N.split("creator-studio-")[1];break;case "DISMISSAL":x="close";break;case "DO_NOT_DISTURB":x="block";break;case "DOGFOOD":F="icons";x="pets";break;case "DRAFT":x="paper_corner_folded";break;
case "EMPTY_LIKE":x="like_outline";break;case "EXIT_APP":x="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":x=N;break;case "GAMES":F="ytg";x="my-games";break;case "GO_TO_PAGE":x="arrow-forward";break;case "GROUP":F="social";break;case "HIDE":x="not_interested";break;case "INPUT_COMPONENT":F="icons";x="settings-input-component";break;case "KIDS_BLOCK":x="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":F="ytg";x="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":F=
"ytg";x="membership-post-purchase";break;case "MULTIVIEW":x="screen_multi_view";break;case "MY_LOCATION":F="maps";x=N;break;case "NOTIFICATIONS_INBOX":x="NOTIFICATIONS";break;case "NEXT":x="chevron_right";break;case "OFFLINE":x="power-settings-new";break;case "PAUSE":F="miniplayer";break;case "PAYMENT":F="icons";break;case "PHONE_DOWNLOAD":x="phone_download";break;case "PREMIUM_STANDALONE":F="yt-logos";x="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":F="yt-logos";x="premium_standalone_cairo";
break;case "QUESTION_ANSWER":x="question_answer";break;case "REDEEM":F="icons";x="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":x="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":x="library_add";break;case "SCHOOL":F="yt-sys-icons";x="creator_academy";break;case "SETTINGS_LIGHT":x="settings_applications";break;case "SETTINGS_MATERIAL":x="settings";break;case "SEARCH_HISTORY":x="watch_history";break;case "SHOPPING_BAG":x="bag";break;case "SOCIAL":case "PEOPLE":F=
"yt-icons";x="people";break;case "STAFF_PICK":F="ytg";x="spotlight";break;case "START_DVR":x="add";break;case "STOP_DVR":F="av";x="stop";break;case "TAB_LIKED":x="like";break;case "TAB_INBOX":x="mail";break;case "TERMS_OF_SERVICE":F="icons";x="description";break;case "TRENDING":x="fire";break;case "UNBLOCK_USER":x="remove";break;case "UNPLUGGED_DARK_THEME":F="image";x="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":x="live";break;case "UNPLUGGED_SPORTS":F="ytu";x="visibility-off";break;
case "VIDEOS":F="av";x="play-circle-filled";break;case "YOUTUBE":F="yt-logos";x="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":F="yt-logos-ext";x="yt-logo-red-updated";break;case "YOUTUBE_LOGO":F="yt-logos-ext";x="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":F="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":F="shorts";x=N;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":F="yt-sys-icons";x="youtube_improve_tv";break;case "OUTLINE_BAG":F=
"yt-sys-icons";x="bag";break;case "QUEUE_PLAY_LAST":F="yt-sys-icons";x="list_queue_last";break;case "SLASH_CIRCLE_LEFT":x="slash_circle_left";break;case "SPEED_1_POINT_2X":x="1_point_2x";break;case "SPEED_1_POINT_5X":x="1_point_5x";break;case "SPEED_1_POINT_8X":x="1_point_8x";break;case "SPEED_POINT_2X":x="point_2x";break;case "SPEED_POINT_5X":x="point_5x";break;case "SPEED_POINT_8X":x="point_8x";break;case "SPEED_1X":x="1x";break;case "SPEED_2X":x="2x";break;case "OUTLINE_CLOCK_HALF_CIRCLE":F="yt-sys-icons";
x="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":F="yt-sys-icons";x="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":F="yt-sys-icons",x="tic_tac_toe"}x=F+":"+x;ET6.set(p,x);return x};
CRz=function(p){var x;_.S("kevlar_use_wil_icons")?x=!!_.J().resolve(_.pr).resolveIcon({iconName:p.toString()}):x=!1;return x};
_.FY=function(p,x,F,N){F=F===void 0?{}:F;N=N===void 0?!1:N;F===null&&(F={});var h=_.ID("kevlar_command_handler_command_banlist");h=_.a(h);for(var c=h.next();!c.done;c=h.next())if(c=p?p.hasOwnProperty(c.value):void 0,c)return!1;h=_.r(p.commandMetadata,_.eq);return N&&h!=null&&h.url?!1:!x.disableCommandHandlerOverride&&_.xL.instance?(N=_.xL.instance,F.form||(F.form={element:x}),F.form.element||(F.form.element=x),!F.clickedVisualElement&&x.visualElement&&(F.clickedVisualElement=x.visualElement),N.resolveCommand(p,
F),!0):!1};
Xpw=function(p,x){p=Nd(p);for(var F=_.a(p.visibilityMonitorKeys||[]),N=F.next();!N.done;N=F.next())x.unobserveByKey(N.value);p.visibilityMonitorKeys=void 0};
sFE=function(p,x){if(_.b0()){if(_.S("kevlar_vimio_use_shared_monitor"))gTJ(p,x.data);else if(!gTJ(p,x.data))return;var F=x.data,N=QFM(F);if(_.S("enable_client_ve_spec_logging"))Xpw(p,x.observer);else{var h=Nd(p);h.trackedParams&&h.trackedParams!==N&&Xpw(p,x.observer)}h=Nd(p);!F||h.data&&h.data===F||(h.data=F);zCM(p,x);h.trackedParams=N}};
zCM=function(p,x){var F=x.observer;if(!F&&_.S("web_skip_missing_vimio_observer")){var N,h;_.no(new _.qE("VisibilityObserver is not defined.",p.tagName,p.trackedParams,(N=x.data)==null?void 0:N.trackingParams,(h=x.data)==null?void 0:h.loggingDirectives))}else{var c=x.layer,M=x.visibilityCallback||function(){},f=x.prescanCallback,K=Nd(p);
N=[];x.showOption&&N.push(F.observe(p,function(){x.skipLogging&&x.skipLogging()||_.hD().reportShown(K,void 0,c);M(!0)},x.showOption));
x.hideOption&&N.push(F.observe(p,function(){_.hD().reportHidden(K,void 0,c);M(!1)},x.hideOption));
x.prescanOption&&f&&N.push(F.observe(p,function(){f()},x.prescanOption));
K.visibilityMonitorKeys=N}};
gTJ=function(p,x){p=Nd(p);if(p.visualElement&&!x)return!0;if(!x)return!1;var F=!1;if(_.S("enable_client_ve_spec_logging")){var N,h;F=!!((N=x.loggingDirectives)==null?0:(h=N.clientVeSpec)==null?0:h.uiType)}N=QFM(x);if(!N&&!F)return!1;_.S("mweb_component_visibility_logging")&&(p.veContainer||(p.veContainer={}),p.veContainer.trackingParams=N);if(p.trackedParams&&p.trackedParams===N)return!1;var c;if(_.S("enable_client_ve_spec_logging")&&((c=p.visualElement)==null?0:c.isClientVe())){var M;c=(M=p.visualElement)==
null?void 0:M.getAsJspb();var f,K,t,d;if(_.$H(c,2)===((f=x.loggingDirectives)==null?void 0:(K=f.clientVeSpec)==null?void 0:K.uiType)&&_.$H(c,3,-1)===((t=x.loggingDirectives)==null?void 0:(d=t.clientVeSpec)==null?void 0:d.elementIndex))return!1}if(_.S("enable_client_ve_spec_logging")){var v,C;!p.visualElement&&((v=x.loggingDirectives)==null?0:(C=v.clientVeSpec)==null?0:C.uiType)&&(f=x.loggingDirectives.clientVeSpec,x=f.uiType,M=f.elementIndex,f=f.clientYoutubeData,p.visualElement=_.lz(_.cl(),{veType:x,
elementIndex:M,clientYouTubeData:f}))}return!0};
QFM=function(p){if(p==null?0:p.rendererContext){var x=_.r(p.rendererContext,_.nTM);if(x==null?0:x.loggingDirectives)return x.loggingDirectives.trackingParams}return(p==null?0:p.loggingDirectives)?p.loggingDirectives.trackingParams:p==null?void 0:p.trackingParams};
Nd=function(p){var x;return(x=p.polymerController)!=null?x:p};
uCH=function(p){_.hD();if(_.bO(a7().JSC$10299_elementShouldLogGesture).bind(a7())(p,4)){yxw(p);var x=bYk(p);Axp.set(p,x)}};
yxw=function(p){Axp.has(p)&&(Axp.get(p).cancel("untrack hover element"),Axp.delete(p))};
bYk=function(p){var x,F=[],N=!1,h=new _.cZ(function(c,M){Md(p,"mouseenter",_.bO(function(){var f,K,t;return _.D(function(d){if(d.nextAddress==1)return x=(0,_.Lf)(),f=YE6(p),F.push(f),K=wpZ(p,function(){N=!0;M(Error("Vg"))}),_.q(d,f,2);
if(d.nextAddress!=3)return K&&D$(K),t=GYZ(p),F.push(t),_.q(d,t,3);c();_.JB(d)})}))});
h.then(function(){var c=(0,_.Lf)()-x;c=Math.round(c);if(!(500>c||6E5<=c)){var M=p.getScreenLayer?p.getScreenLayer():void 0;M=_.b0(M)||"";var f=V$6(_.hD(),p);_.Rf(M,p.visualElement?p.visualElement:_.fr(f),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:c}})}uCH(p)},function(){Kr&&(Kr(),Kr=null);
N&&(yxw(p),uCH(p))});
return h};
YE6=function(p){var x;return(new _.cZ(function(F,N){Kr=function(){N(Error("Wg"))};
x=_.E0.debounce(_.bO(function(){D$(h);F()}),1,100);
var h=_.qd(p,"mousemove",x)})).thenCatch(function(){var F=_.E0.cancelDebouncedJobMap.get(x);
F&&_.E0.cancelJob(F)})};
GYZ=function(p){var x;return(new _.cZ(function(F,N){Kr=function(){N(Error("Xg"))};
x=Md(p,"mouseleave",_.bO(function(){F()}))})).thenCatch(function(){D$(x)})};
wpZ=function(p,x){return Md(p,"mouseleave",_.bO(x))};
HYd=function(p){WIE&&_.Z$.cancel(WIE);WIE=_.Z$.run(function(){_.hG(p,"yt-visibility-refresh");WIE=0})};
myE=function(p){p=Number(p);return"rgba("+[p>>16&255,p>>8&255,p&255,(p>>24&255)/255].join()+")"};
OY6=function(p){if(!p)return!1;if(_.r(p,_.oT6))return!0;var x;if(p=(x=_.r(p,_.Zx))==null?void 0:x.commands)for(x=_.a(p),p=x.next();!p.done;p=x.next())if(_.r(p.value,_.oT6))return!0;return!1};
jFE=function(p){var x=!0;x=x===void 0?!0:x;if(!p.useSignals&&!p.experimentalPropertiesChanged||_.S("experimental_templating_behavior_nopatch_killswitch")){var F=p._propertiesChanged;p._propertiesChanged=function(N,h,c){x?p.debounceRender():p.doRender();F&&F.call(p,N,h,c)}}};
LIJ=function(p,x){if(p.useSignals||p.experimentalPropertiesChanged)if(_.S("experimental_templating_behavior_nopatch_killswitch"))p.experimentalPropertiesChanged=function(){};
else return;var F=new Set,N=[p].concat(_.se(p.behaviors));N=_.a(N);for(var h=N.next();!h.done;h=N.next()){h=h.value;for(var c in h.properties)F.has(c)||(p._addPropertyEffect(c,"function",x),F.add(c))}};
PRB=function(){var p=Polymer.Element,x=p._prepareTemplate;p._prepareTemplate=function(){x.call(this);var F=this.prototype;if(F.experimentalTemplatingInUse&&F.experimentalTemplatingInUse()&&F.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.zj(Error("Yg"));else{F=this.template.content.childNodes;for(var N=F.length-1;N>=0;N--){var h=F[N];h.nodeName!=="STYLE"&&h.nodeName!=="LINK"&&h.nodeName!=="SCRIPT"&&h.nodeName!=="#comment"&&h.remove()}}}};
TrM=function(p){var x=!0;x=x===void 0?!0:x;PRB();var F=p.ready;p.ready=function(){this._template=null;F.call(this)};
LIJ(p,x?p.debounceRender:p.doRender)};
RCp=function(p,x,F){if(F===null||F===void 0)return F;var N=pQ6(p.tagName.toLowerCase(),x,function(){throw Error("Pb");});
if(N===null)return F;N=Brw[N];var h;if((h=N.isUnwrappable)==null?0:h.call(N,F)){if(N.unwrap)return N.unwrap(F);throw Error("ah");}return N.filterString?N.filterString(p.tagName,x,String(F)):F};
kY6=function(p,x,F){var N=x[x.length-1]!=="$",h=RCp(p,x,F);if(N)if(typeof h==="function"&&x.startsWith("reactiveon")&&x===x.toLowerCase()){var c=_.LH;fWE(p,x.slice(8),function(M){QZ(c,function(){h(M)})})}else p[x]=h;
else F=h==null?null:String(h),DnE(p,x.slice(0,-1),F)};
tD=function(p){UyB.length===0&&requestAnimationFrame(function(){setTimeout(function(){var x=UyB.slice();UyB.length=0;x=_.a(x);for(var F=x.next();!F.done;F=x.next()){F=F.value;try{F()}catch(N){_.o9(N)}}})});
UyB.push(p)};
iYr=function(p){if(p){var x=p.component;if(x){var F;x==null||(F=x.events)==null||F.publish("DISCONNECTED");var N;x==null||(N=x.onDisconnected)==null||N.call(x)}var h,c;(h=p.__spec)==null||(c=h.didUnmount)==null||c.call(h);for(x=0;x<p.childNodes.length;x++)iYr(p.childNodes[x])}};
vl=function(p,x,F){var N=x&&x.key,h=We;h[0]=p;h[1]=N;h[2]=void 0;for(var c in x)x.hasOwnProperty(c)&&(p=x[c],N=He,N.push(c),N.push(p));x=We;a:{if(c=We[2])for(p=0;p<c.length;p+=2)if(c[p]==="nonce"){c=c[p+1];break a}c=""}c=gMd(x[0],x[1],c);p=nn(c);N=x[2];if(!p.staticsApplied&&(p.staticsApplied=!0,N&&N.length))if((h=p._attrsArr)&&h.length){for(h=0;h<N.length;h+=2)d$[N[h]]=h+1;h=p._attrsArr||(p._attrsArr=MBM(0));for(var M=0,f=0;f<h.length;f+=2){var K=h[f],t=h[f+1],d=d$[K];d?N[d]===t&&delete d$[K]:(h[M]=
K,h[M+1]=t,M+=2)}zG(h,M);for(var v in d$)dnH(c,v,N[d$[v]],BZ),delete d$[v]}else for(v=0;v<N.length;v+=2)dnH(c,N[v],N[v+1],BZ);Alr(c,p,BZ);zG(x,0);F&&F(yZ);Q8d()};
Ifp=function(p){var x=p.toString().toLowerCase();return function(F,N){vl(x,F,N)}};
$yH=function(p){var x=JD,F,N=(F=p.hostProps)!=null?F:p.config;x.getHostProps&&(N=x.getHostProps(p));vl(x.tagName,N,function(h){var c=!1;p.ref&&(p.ref.value=h);if(!h.component){var M=new x(h,p);c=!0;h.component=M;M.events.publish("CONNECTED")}h.component.willReceiveProps&&p!==h.component.props&&h.component.willReceiveProps(p);h.component.props=p;if(h.data!==p.data||p)h.data=p.data||p;if(c){M=h.component;var f={stack:[],error:void 0,hasError:!1};try{_.WT(f,_.RG(M.owner));var K=$C(h9);try{M.render()}finally{$C(K)}}catch(v){f.error=
v,f.hasError=!0}finally{_.HT(f)}}else h.component.patchInternal();h.component.events.publish("UPDATED");if(c){var t,d;(d=(t=h.component).onMounted)==null||d.call(t)}})};
_.Cr=function(p,x,F){F===void 0?delete p[x.name]:p[x.name]=F};
_.S6=function(p){var x={androidIncludeFontPadding:!1},F=0,N=[],h=[],c=[];if(p.simpleText)return x.content=p.simpleText,x;if(p.runs===void 0)return x.content="",x;p=_.a(p.runs);for(var M=p.next();!M.done;M=p.next()){M=M.value;var f=M.text,K=void 0,t=(K=f)==null?void 0:K.length;if(f&&t){N.push(f);if(M.bold||M.italics||M.strikethrough||M.underline||M.textColor!=null&&M.textColor!==0||M.deemphasize){f=h;K=f.push;var d={startIndex:F,length:t};M.bold&&(d.weightLabel="FONT_WEIGHT_MEDIUM");M.italics&&(d.italic=
!0);M.strikethrough&&(d.strikethrough="LINE_STYLE_SINGLE");M.underline&&(d.underline="LINE_STYLE_SINGLE");M.textColor!=null&&M.textColor!==0?document.documentElement.hasAttribute("dark")?d.fontColor=M.darkModeTextColor||M.textColor:d.fontColor=M.textColor:M.deemphasize&&(document.documentElement.hasAttribute("dark")?d.fontColor=parseInt("ff"+eCp("#aaa").substring(1),16):d.fontColor=parseInt("ff"+eCp("#606060").substring(1),16));K.call(f,d)}M.navigationEndpoint&&(f=c,K=f.push,d={startIndex:F,length:t,
onTap:{innertubeCommand:M.navigationEndpoint}},M.loggingDirectives&&_.Cr(d,p3E,M.loggingDirectives),K.call(f,d));F+=t}}x.content=N.join("");x.styleRuns=h.length?h:void 0;x.commandRuns=c.length?c:void 0;return x};
FrE=function(p){if(p==null||!p.runs)return!0;p=_.a(p.runs);for(var x=p.next();!x.done;x=p.next())if(x=x.value,x.bracket||x.errorUnderline||x.deemphasize||_.r(x,r$)||_.r(x,xZ6))return!1;return!0};
N3J=function(p,x){return function(F){var N=x.unit;if(N!==F)throw Error("dh`"+p+"`"+N+"`"+F);return x}};
Eu=function(p){if(!((p==null?0:p.value)&&(p==null?0:p.unit)))return"";switch(p.unit){case "DIMENSION_UNIT_FRACTION":var x="%";break;default:x="px"}p=p.value;x==="%"&&(p*=100);return""+p+x};
hGM=function(p){try{return p()}catch(x){_.no(x)}};
_.g$=function(p){var x=_.r(p,_.XY);if(x)return x;if((x=_.r(p,lzB))&&x.commands)return csk(x.commands);if((x=_.r(p,azJ))&&x.commands)return csk(x.commands);if((p=_.r(p,MJm))&&p.identifier&&p.command&&(DZJ||(DZJ=[]),!DZJ.includes(p.identifier)))return DZJ.push(p.identifier),_.r(p.command,_.XY)};
csk=function(p){if(p.length!==0){var x=[];p=_.a(p);for(var F=p.next();!F.done;F=p.next())(F=_.g$(F.value))&&x.push(F);return{commandExecutorCommand:{commands:x}}}};
_.zT=function(p){var x=p.defaultTarget,F=p.elementConfig,N=p.elementsCommand,h=p.skipOnClick,c=p.forceNewState,M=p.additionalCommandArgs,f=p.innertubeCommand||_.g$(N);if(f){p={};var K=fzJ(f);N=K.navigatingCommand;K=K.href;N&&K?(p.href$=K,KrB(p,N,K,x),_.S("web_atagconfig_pointerdown")&&qGp(p,N),c&&(p["force-new-state$"]=!0)):(p.role$="button",p.href$="javascript:void(0);");_.r(f,Z9H)&&(p["aria-haspopup$"]=!0);h||(p.onclick=function(t){if(tJH(t)){var d=Object.assign({},{form:{element:t.target,event:t}},
M);t.preventDefault();_.QE(f,d)}});
return Object.assign({},F,p)}};
dZZ=function(p){if(p.length){if(p.length===1)return p[0];var x={};_.Cr(x,_.Zx,{commands:p});return x}};
vtJ=function(p){return p&&p.href$!=="javascript:void(0);"};
fzJ=function(p){var x,F=((x=_.r(p,_.Zx))==null?void 0:x.commands)||[p];p=_.a(F);for(x=p.next();!x.done;x=p.next()){x=x.value;var N=void 0,h=void 0;F=(h=_.r((N=x)==null?void 0:N.commandMetadata,_.eq))==null?void 0:h.url;_.S("web_remove_web_navigation_endpoint_data")||(N=void 0,F=F||((N=_.r(x,Js6))==null?void 0:N.url));if(F&&F!=="/service_ajax"){if(N=bg(F,Cyr))return p=_.n6(N),{navigatingCommand:x,href:p};_.no(new _.qE("AttributedString URL could not be sanitized",F))}}return{}};
tJH=function(p){return p.button!==void 0?p.button===0&&!(p.shiftKey||p.altKey||p.metaKey||p.ctrlKey):!(p.shiftKey||p.altKey||p.metaKey||p.ctrlKey)};
KrB=function(p,x,F,N){F=!jr(F);var h,c,M;if((h=_.r(x,_.Du))!=null&&h.nofollow||(c=_.r(x,_.B7))!=null&&c.nofollow||(M=_.r(x,_.Gj))!=null&&M.nofollow||F)p.rel$="nofollow";var f;x=((f=_.r(x,_.Gj))==null?void 0:f.target)==="TARGET_NEW_WINDOW"?"_blank":N===void 0?"":N;p.target$=x};
qGp=function(p,x){x.clickTrackingParams&&(p.params={itct:x.clickTrackingParams});p.onpointerdown=function(F){SGZ(F)};
p._data=x};
rsM=function(p){(p.loggingUrls||[]).forEach(function(x){ww(x.baseUrl,x.attributionSrcMode)})};
Et6=function(p){p.currentTarget._data&&rsM(p.currentTarget._data)};
SGZ=function(p){var x=p.currentTarget;p=hGM(function(){return x.href});
var F=x.params;p&&_.I9(p,F||{},8,!0)};
X3H=function(p,x){if(x=_.r(x,_.Gj))(x==null?void 0:x.target)==="TARGET_NEW_WINDOW"&&(p.target="_blank"),x.nofollow&&(p.rel="nofollow")};
gt6=function(p){p=_.r(p==null?void 0:p.commandMetadata,_.eq);return(p==null?0:p.url)?p.url:null};
_.su=function(p,x){(p=_.g$(p))&&_.QE(p,x)};
_.QE=function(p,x){SzE(function(F){x?F.resolveCommand(p,x):F.resolveCommand(p)})};
nt$=function(p,x){var F=["yt-core-attributed-string__link"];x!=null&&x.noLinkColor||((x==null?0:x.isOverlay)?F.push("yt-core-attributed-string__link--overlay-call-to-action-color"):F.push("yt-core-attributed-string__link--call-to-action-color"),(x==null?0:x.linkInheritColor)&&F.push("yt-core-attributed-string--link-inherit-color"));F={className:F.join(" "),tabindex$:"0"};var N=p.onTap||p.onLongPress;if(!N)return F;var h=QlM(p);h&&(F["aria-label$"]=h);x=_.zT({elementsCommand:N,elementConfig:F,skipOnClick:!(x==
null||!x.skipOnClick),forceNewState:!0});p.onLongPress&&(N=new zGr(function(){var c=_.g$(p.onLongPress);c&&_.J().resolve(_.RD).resolveCommand(c)}),x&&sl$(N,x));
return x||F};
QlM=function(p){var x,F;return(x=p.onTapOptions)==null?void 0:(F=x.accessibilityInfo)==null?void 0:F.accessibilityLabel};
ysd=function(p){var x=p;p<=16777215&&(x+=parseInt("ff000000",16));return _.QK(x)};
b9$=function(p){var x=p.isDarkTheme;var F=p.extension;p=p.runColor;var N=void 0;if(F=F==null?void 0:F.colorMap){x=x?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";F=_.a(F);for(var h=F.next();!h.done;h=F.next())if(h=h.value,x===h.key){N=h.value;break}}N==null&&p&&(N=p);if(N)return ysd(N)};
nr=function(p){var x=p.config;var F=p.image;var N=p.imageConfig;var h=p.imageWrapperConfig;var c=p.run;var M=p.tag;var f=p.textLength;var K=p.startIndex===void 0?0:p.startIndex;p=p.length;K===void 0&&(K=0);c={run:c,startIndex:K,endIndex:p!==void 0?K+p:f,tag:M};F&&(c.image=F);N&&(c.imageConfig=N);h&&(c.imageWrapperConfig=h);x&&(c.config=x);return c};
uF$=function(p,x){var F=[];F.push("yt-core-attributed-string");(x==null?0:x.className)&&F.push(x==null?void 0:x.className);(x==null?0:x.ellipsisTruncate)?F.push("yt-core-attributed-string--ellipsis-truncate"):(x==null?0:x.noWrap)?F.push("yt-core-attributed-string--white-space-no-wrap"):(x==null?0:x.noPreWrap)||F.push("yt-core-attributed-string--white-space-pre-wrap");(x==null?0:x.linkInheritColor)&&F.push("yt-core-attributed-string--link-inherit-color");p.alignment&&F.push(Asp(p.alignment));p.lineBreakMode&&
F.push("yt-core-attributed-string--word-wrapping");return F.join(" ")};
YG$=function(p){if(p.weight)return p.weight;switch(p.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}};
w3m=function(p){switch(p){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"}};
Asp=function(p){switch(p){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"}};
VJm=function(p,x,F){var N=x;p.content&&F&&(F=p.content.indexOf("\n"),F!==-1&&(N=Math.min(x,F)));if(!p.content||p.content.length<=N)x=p;else if(p.attachmentRuns||p.commandRuns||p.decorationRuns||p.styleRuns||p.paragraphStyleRuns){x=yE(p.content,N);F=N;var h=p.attachmentRuns;if(h){var c=[];h=_.a(h);for(var M=h.next();!M.done;M=h.next())M=Object.assign({},M.value),M.startIndex===void 0||M.startIndex>=F||(M.length||(M.length=0),M.length+M.startIndex>F&&(M.length=F-M.startIndex),c.push(M));F=c}else F=
void 0;c=GSM(N,p.commandRuns);h=N;var f=p.decorationRuns;if(f){M=[];f=_.a(f);for(var K=f.next();!K.done;K=f.next()){K=K.value;var t=_.r(K.textDecorator,bz);if(t&&t.startIndex!==void 0&&!(t.startIndex>=h)){K=Object.assign({},K,{textDecorator:{highlightTextDecorator:Object.assign({},t)}});t=_.r(K.textDecorator,bz);if(!t.length||t.length+t.startIndex>h)t.length=h-t.startIndex;M.push(K)}}h=M}else h=void 0;M=GSM(N,p.styleRuns);if(f=p.paragraphStyleRuns)for(p=[],f=_.a(f),K=f.next();!K.done;K=f.next()){var d=
K.value;K=Object.assign({},d);if(!(K.startIndex===void 0||K.startIndex>=N)){if(!K.length||K.length+K.startIndex>N)K.length=N-K.startIndex;t=[];var v=void 0,C=void 0;if((v=d)==null?0:(C=v.listGroup)==null?0:C.listItems)for(d=_.a(d.listGroup.listItems),v=d.next();!v.done;v=d.next())if(v=Object.assign({},v.value),!(v.startIndex===void 0||v.startIndex>=N)){if(!v.length||v.length+v.startIndex>N)v.length=N-v.startIndex;t.push(v)}t.length>0&&(K.listGroup||(K.listGroup={}),K.listGroup=Object.assign({},K.listGroup,
{listItems:t}));p.push(K)}}else p=void 0;x={content:x,attachmentRuns:F,commandRuns:c,decorationRuns:h,styleRuns:M,paragraphStyleRuns:p}}else x=Object.assign({},p,{content:yE(p.content,N)});return x};
GSM=function(p,x){if(x){var F=[];x=_.a(x);for(var N=x.next();!N.done;N=x.next())if(N=Object.assign({},N.value),!(N.startIndex===void 0||N.startIndex>=p)){if(!N.length||N.length+N.startIndex>p)N.length=p-N.startIndex;F.push(N)}return F}};
yE=function(p,x){var F=x,N;if(N=F>0)N=p.charCodeAt(F-1),N=N>=55296&&N<=56319;N&&(F=p.charCodeAt(F),N=F>=56320&&F<=57343);N&&--x;return p.substring(0,x)};
otp=function(p,x,F){F=F===void 0?Wrw:F;if(p){var N=_.J().resolve(kl);N||_.S("mweb_no_observer_killswitch")?sFE(p,{data:x,observer:N,visibilityCallback:F,hideOption:H9J,showOption:mZB,layer:p.layer}):_.no(new _.qE("Warning: monitorVisibility called with null observer",p.tagName,x==null?void 0:x.loggingDirectives,x==null?void 0:x.trackingParams))}else _.no(new _.qE("Warning: monitorVisibility called with null element",x==null?void 0:x.loggingDirectives,x==null?void 0:x.trackingParams,x==null?void 0:
x.rendererContext))};
RGp=function(p,x){var F=[],N=p.content.length,h,c=(h=_.J().resolve(_.Bw(_.AD)))==null?void 0:h();if(p.paragraphStyleRuns){h=_.a(p.paragraphStyleRuns);for(var M=h.next();!M.done;M=h.next()){var f=F.push,K=f.apply;var t=void 0;M=M.value;if((t=M.listGroup)!=null&&t.listItems){t=[];b:switch(M.listGroup.listType){case "LIST_TYPE_BULLET":var d="ul";break b;default:d="span"}t.push(nr({run:M,textLength:N,tag:d,config:{className:"yt-core-attributed-string__list-group"},startIndex:M.startIndex,length:M.length}));
d=_.a(M.listGroup.listItems);for(var v=d.next();!v.done;v=d.next()){v=v.value;b:switch(M.listGroup.listType){case "LIST_TYPE_BULLET":var C="li";break b;default:C="span"}t.push(nr({run:M,textLength:N,tag:C,startIndex:v.startIndex,length:v.length}))}M=t}else M=[];K.call(f,F,_.se(M))}}if(p.styleRuns&&(x==null||!x.noStyleRuns))for(h=_.a(p.styleRuns),f=h.next();!f.done;f=h.next()){f=f.value;K=b9$({extension:_.r(f.styleRunExtensions,O96),isDarkTheme:c===void 0?!1:c,runColor:f.fontColor});t=[];K&&t.push("yt-core-attributed-string--link-inherit-color");
f.italic&&t.push("yt-core-attributed-string--italicized");f.underline&&f.strikethrough?t.push("yt-core-attributed-string--underline-strikethrough",w3m(f.underline)):f.underline?t.push("yt-core-attributed-string--underlined",w3m(f.underline)):f.strikethrough&&t.push("yt-core-attributed-string--strikethrough",w3m(f.strikethrough));if(f.baselineOffset){a:switch(f.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":M="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":M=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:M="yt-core-attributed-string--baseline-offset-unknown"}t.push(M)}M=t.join(" ");t=f;d={};if(t.weight||t.weightLabel)d.fontWeight=YG$(t).toString();K&&(d.color=K);F.push(nr({run:f,textLength:N,tag:"span",config:{className:M,style:d},startIndex:f.startIndex,length:f.length}))}if(p.decorationRuns)for(h=_.a(p.decorationRuns),f=h.next();!f.done;f=h.next())f=f.value,K={},f.textDecorator&&(d=f.textDecorator,M=c===void 0?!1:c,v=[],t=
_.r(d,bz),d=_.r(d,jlp),t?(d=v,v=d.concat,C=[],(M=b9$({extension:_.r(t.highlightTextDecoratorExtensions,LrZ),isDarkTheme:M,runColor:t.backgroundColor}))&&C.push("background-color: "+M+";"),t.backgroundCornerRadius!==void 0&&C.push("border-radius: "+t.backgroundCornerRadius+"px;"),t.leftPadding!==void 0&&C.push("padding-left: "+t.leftPadding+"px;"),t.rightPadding!==void 0&&C.push("padding-right: "+t.rightPadding+"px;"),t.topPadding!==void 0&&C.push("padding-top: "+t.topPadding+"px;"),t.bottomPadding!==
void 0&&C.push("padding-bottom: "+t.bottomPadding+"px;"),v=v.call(d,C)):d&&(t=v,v=t.concat,M=M?"#2ba640":"#107516",M=d.color?ysd(d.color):M,M=["padding: 2px;","border-top: solid "+M+" 2px;","border-bottom: solid "+M+" 2px;","background: linear-gradient(135deg, "+M+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+M+" 3px, rgba(0, 0, 0, 0) 3px);"],v=v.call(t,M)),M=v.join(" "),K.style$=M,M=f.textDecorator,t=[],d=_.r(M,jlp),_.r(M,bz)?t.push("yt-core-attributed-string--highlight-text-decorator"):
d&&t.push("yt-core-attributed-string--bracket-text-decorator"),M=t.join(" "),K.className=M,K.dir="auto"),M=_.r(f.textDecorator,bz),t=_.r(f.textDecorator,jlp),d=_.r(f.textDecorator,bz),v=_.r(f.textDecorator,jlp),F.push(nr({run:f,textLength:N,tag:"span",config:K,startIndex:(M==null?void 0:M.startIndex)||(t==null?void 0:t.startIndex)||0,length:(d==null?void 0:d.length)||(v==null?void 0:v.length)||0}));if(p.commandRuns&&(x==null||!x.noEndpoints))for(c=_.a(p.commandRuns),h=c.next();!h.done;h=c.next())h=
h.value,f=nt$(h,x),F.push(nr({run:h,textLength:N,tag:"a",config:f,startIndex:h.startIndex,length:h.length}));if(p.attachmentRuns)for(p=_.a(p.attachmentRuns),c=p.next();!c.done;c=p.next()){c=c.value;K=f=void 0;h={className:"yt-core-attributed-string--inline-block-mod"};if((K=c.element)==null?0:K.properties){K=(f=c.element)==null?void 0:f.properties;f=[];K=_.r(K,PyJ);if(K==null?0:K.margin)K=K.margin,K.left&&f.push("margin-left: "+Eu(K.left)+";"),K.right&&f.push("margin-right: "+Eu(K.right)+";"),K.top&&
f.push("margin-top: "+Eu(K.top)+";"),K.bottom&&f.push("margin-bottom: "+Eu(K.bottom)+";");f=f.length!==0?f.join(" "):void 0;h.style$=f}M=void 0;f={alt:"",preserveHeight:!0,preserveWidth:!0};K=["yt-core-attributed-string__image-element"];if(c.alignment){a:switch(c.alignment){case "ALIGNMENT_BASELINE":t="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":t="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:t=
"yt-core-attributed-string__image-element--image-alignment-bottom"}K.push(t)}if((M=c.element)==null?0:M.properties)M=[],t=_.r(c.element.properties,PyJ),(t==null?0:t.height)&&M.push("height: "+Eu(t.height)+";"),(t==null?0:t.width)&&M.push("width: "+Eu(t.width)+";"),M=M.length!==0?M.join(" "):void 0,f.style$=M,t=void 0,M=((t=_.r(c.element.properties,T3w))==null?void 0:t.label)||"",f.alt=M;f.className=K.join(" ");K=void 0;d=t=void 0;M=((d=c.element)==null?0:d.type)?(t=_.r(c.element.type,B3d))==null?
void 0:t.image:void 0;F.push(nr({run:c,textLength:N,tag:"img",image:M,imageConfig:f,imageWrapperConfig:h,startIndex:c.startIndex,length:(K=c.length)!=null?K:0}))}if(x==null?0:x.headerRuns)for(x=_.a(x.headerRuns),p=x.next();!p.done;p=x.next())if(p=p.value,p.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(p.headerMapping)){a:{switch(p.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":c=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":c="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":c="yt-core-attributed-string--heading-3";break a}c=void 0}F.push(nr({run:p,textLength:N,tag:"span",config:c?{className:c}:void 0,startIndex:p.startIndex,length:p.length}))}return F};
_.uz=function(p){return(p==null?void 0:p.content)!==void 0};
kS6=function(p){return _.uz(p)?p:_.S6(p)};
UZJ=function(p){return p.image!==void 0&&p.imageConfig!==void 0};
i9d=function(p,x){if(x==null?0:x.userInput)for(p=_.a(p),x=p.next();!x.done;x=p.next())if(x=x.value,x.tag!=="a"&&x.tag!=="li"){var F=void 0;(F=x).config||(F.config={});x.config.dir=x.tag==="ul"?_.J().resolve(_.YL):"auto"}};
IzB=function(p){return function(x){var F=p.run;(F.onTap!==void 0||F.onLongPress!==void 0)&&_.r(F,p3E)&&otp(x,{loggingDirectives:_.r(F,p3E)})}};
$ZE=function(p){return function(x){for(var F in p)(BZ[F]||BZ[s_["default"]])(x,F,p[F])}};
Fzk=function(p,x){eGd(x);var F={data:null,start:0,end:p.length,parts:[]};x=_.a(x);for(var N=x.next();!N.done;N=x.next())N=N.value,pEJ(F,N.startIndex,N.endIndex,N);xSp(p,F);return F};
pEJ=function(p,x,F,N){for(var h=_.a(p.parts),c=h.next();!c.done;c=h.next()){c=c.value;if(typeof c==="string")throw Error("fh");if(c.start<=x&&F<=c.end){pEJ(c,x,F,N);return}}p.parts.push({data:N,parts:[],start:x,end:F})};
xSp=function(p,x){for(var F=x.parts.length;F>=0;F--){var N=x.parts[F],h=x.parts[F-1],c=F===x.parts.length?x.end:N.start;h=F===0?x.start:h.end;c!==h&&x.parts.splice(F,0,p.slice(h,c));N&&xSp(p,N)}};
eGd=function(p){p.sort(function(x,F){if(x.startIndex<F.startIndex)return-1;if(F.startIndex<x.startIndex)return 1;x=x.endIndex-x.startIndex;F=F.endIndex-F.startIndex;return x>F?-1:F>x?1:0})};
_.NUp=function(p){var x=p.thumbnails;if(x){p={sources:[]};x=_.a(x);for(var F=x.next();!F.done;F=x.next()){F=F.value;var N={};N.url=F.url;N.width=F.width;N.height=F.height;p.sources.push(N)}return p}};
hYr=function(p,x,F,N){if(!x)return p.length>=1?p[p.length-1]:null;if(N)for(var h=_.a(p),c=h.next();!c.done;c=h.next()){c=c.value;var M=void 0,f=(M=c.url)==null?void 0:M.indexOf(N);if(f!==void 0&&f>=0)return c}N=_.a(p);for(h=N.next();!h.done;h=N.next())if(h=h.value,h.width&&h.height&&(F&&h.width>=x||!F&&h.height>=x))return h;for(x=p.length-1;x>=0;x--)if(F&&p[x].width||!F&&p[x].height)return p[x];return p[0]};
_.ljw=function(p){var x;return(p=(x=p.sources)==null?void 0:x[0])?p.width/p.height:0};
cW6=function(p){if(p.sources){p=_.a(p.sources);for(var x=p.next();!x.done;x=p.next()){x=x.value;var F=void 0;if((F=x.clientResource)==null?0:F.imageName)return x}}};
ajE=function(p){var x;if((x=p.clientResource)!=null&&x.imageColor)return _.QK(p.clientResource.imageColor)};
_.DSm=function(p,x,F,N,h,c,M){if(!x||x.length===0||x[0].clientResource)return null;if(F&&x[0].url)return x[0].url;N===void 0&&(N=!0);if(N){var f;p=M7p*(h||(p==null?void 0:(f=p.getBoundingClientRect())==null?void 0:f.width)||0)}else{var K;p=M7p*(c||(p==null?void 0:(K=p.getBoundingClientRect())==null?void 0:K.height)||0)}x=hYr(x,p,N,M);return(x==null?0:x.url)?x.url:(x==null?0:x.imageData)?x.imageData:null};
fjw=function(p,x,F){F=F?[F]:[];p.opacity&&F.push("opacity: "+p.opacity+";");x&&p.placeholderColor?(p=_.QK(p.placeholderColor),F.push("background-color: "+p+";")):F.push("background-color: transparent;");return F.join(" ")};
KzJ=function(p,x,F,N,h){var c=["yt-core-image"];x&&c.push(x);F||c.push("yt-core-image--fill-parent-height");N||c.push("yt-core-image--fill-parent-width");switch(p.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":c.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":c.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":c.push("yt-core-image--content-mode-center");break;default:c.push("yt-core-image--content-mode-scale-to-fill")}p.flipForRtlLayout&&
c.push("yt-core-image--flip-rtl");switch(h){case "TOP_START":var M;c.push(((M=document.body)==null?void 0:M.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return c.join(" ")};
Z0M=function(p){var x;if(p==null?0:(x=p.clientResource)==null?0:x.imageName){var F;p=(F=p.clientResource)==null?void 0:F.imageName;a:{switch(p){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":F="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":F="yt-logos-ext:yt-logo-updated";break a}F=void 0}return F||qLM.get(p)||p}};
w$=function(p){return _.S("mweb_wiz_skip_render")?t7H(p):dSp(p)};
t7H=function(p){return function(x){var F=gMd("wink-root");VZ();Q8d();Prz(F,_.Z(p,x))}};
dSp=function(p){var x=x===void 0?!1:x;return function(F){if(!x||!_.S("mweb_skip_keto_to_c3_if_no_data")||F.data!==void 0){var N=Be(!1);try{var h=F.children;_.S("mweb_render_outside_patch_killswitch")||yZ?h?Tj(_.Z(p,F,h)):Tj(_.Z(p,F)):_.no(new _.qE("ketoToC3 called outside of a patch",{tagName:p.TAG_NAME}))}finally{Be(N)}}}};
vbz=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
C7E=function(p,x){p.onViewportEntered=x;JWm.observe(p)};
SL6=function(){var p={rootMargin:"10%",threshold:.01};_.S("mweb_enable_set_io_root_to_null_safari")?p.root=null:_.S("mweb_enable_set_io_root_to_body_safari")&&(p.root=document.body);return new IntersectionObserver(function(x,F){x.filter(function(N){return N.intersectionRect.height>0}).forEach(function(N){N=N.target;
if(!_.S("mweb_enable_only_update_image_when_connected")||N.isConnected!==!1){var h;(h=N.onViewportEntered)==null||h.call(N);F.unobserve(N)}})},p)};
rWH=function(p,x,F,N,h){function c(){if(N){var f=N.loadedClass,K=N.notifyOnUnloaded;f&&_.GT(p,f);K&&p.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function M(){var f=F(x,p);f&&p.getAttribute("src")!==f&&(_.S("mweb_enable_only_update_image_when_connected")&&p.isConnected===!1||f===p.src||(p.src=f),c())}
h=h===void 0?!0:h;p.removeAttribute("src");c();x&&(h?C7E(p,M):M())};
Eb$=function(p,x){for(var F in x)F==="className"?p.className=x[F]:(BZ[F]||BZ[s_.default])(p,F,x[F])};
XEB=function(p,x,F,N){w$(_.VE)({contentMode:x.contentMode,loadedClass:x.loadedClass,isPreloaded:x.isPreloaded,notifyOnLoaded:x.notifyOnLoaded,notifyOnUnloaded:x.notifyOnUnloaded,preferredThumbnail:x.preferredThumbnail,preserveHeight:x.preserveHeight,preserveWidth:x.preserveWidth,objectPosition:x.objectPosition,targetWidth:x.targetWidth,targetHeight:x.targetHeight,shouldShowPlaceholder:x.shouldShowPlaceholder,useWidth:x.useWidth,alt:x.alt,className:x.className,onerror:x.onerror,onload:x.onload,style$:x.style$,
color:x.color,width:x.width,height:x.height,"aria-hidden$":x["aria-hidden$"],draggable:x.draggable,"data-disabled$":x["data-disabled$"],data:p,callback:F,renderLazy:N===void 0?!0:N,hideOn404:!1})};
QhM=function(p,x,F){F=F===void 0?!1:F;var N=p.sources!==void 0?p:_.NUp(p);if(N){var h=x.onload;x.onload=function(K){var t=K.target;F&&t.naturalWidth===120||_.Wl(t,"yt-core-image--loaded");x.notifyOnLoaded&&t.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));h==null||h(K)};
x.targetWidth&&x.preserveWidth&&(x.width=x.targetWidth);x.targetHeight&&x.preserveHeight&&(x.height=x.targetHeight);var c=cW6(N),M=c&&Z0M(c);if(M)return(p=ajE(c))&&(x.color=p),{type:"icon",iconName:M,config:Object.assign({},x,x.alt?{}:{"aria-hidden$":"true"},{"aria-label$":x.alt,role:"img"})};if(p.sources===void 0){x.alt=p.accessibility&&p.accessibility.accessibilityData&&p.accessibility.accessibilityData.label||x.alt;x.style$=fjw(p,x.shouldShowPlaceholder,x.style$);var f;x.isPreloaded=!((f=_.r(p,
gbp))==null||!f.isPreloaded)}x.contentMode&&!N.contentMode&&(N.contentMode=x.contentMode);x.className=KzJ(N,x.className,x.preserveHeight,x.preserveWidth,x.objectPosition);x.loadedClass="yt-core-image--loaded";return{type:"image",image:N,config:x}}};
_.zYz=function(){var p=_.we.apply(0,arguments);return _.O$(function(x){var F=p.map(function(N){return N(x)});
return function(){return void F.forEach(function(N){return void(N==null?void 0:N())})}})};
shr=function(p,x){var F=x==null?void 0:x.initial;return _.Kn(function(){_.gx(!0);return F=p(F)},{equals:x==null?void 0:x.isEqual},"rSlKsc")};
nbd=function(p,x){if(p===x)return!0;if(p===void 0||x===void 0)return!1;var F,N,h,c,M,f,K,t;return p.content===x.content&&((F=p.styleRuns)==null?void 0:F.length)===((N=x.styleRuns)==null?void 0:N.length)&&((h=p.commandRuns)==null?void 0:h.length)===((c=x.commandRuns)==null?void 0:c.length)&&((M=p.attachmentRuns)==null?void 0:M.length)===((f=x.attachmentRuns)==null?void 0:f.length)&&((K=p.decorationRuns)==null?void 0:K.length)===((t=x.decorationRuns)==null?void 0:t.length)};
AWw=function(p,x){if(p){var F=kS6(p);if(F!=null&&F.content)if(_.S("attr_string_reactive"))w$(yWE)({text:p,config:x});else{var N=!(x==null||!x.ariaLabel)||!(F.commandRuns&&F.commandRuns.length!==0||F.paragraphStyleRuns&&F.paragraphStyleRuns.length!==0);p=N?x==null?void 0:x.ariaLabel:null;N=N?"text":null;vl("span",{className:uF$(F,x),dir$:(x==null?0:x.userInput)?"auto":void 0,"aria-label$":p,role$:N},function(){if(F.styleRuns||F.commandRuns||F.attachmentRuns||F.decorationRuns){var h=RGp(F,x);i9d(h,
x);h=Fzk(F.content,h);h=_.a(h.parts);for(var c=h.next();!c.done;c=h.next())b0d(c.value)}else jO(F.content)})}}};
b0d=function(p){typeof p==="string"?jO(p):UZJ(p.data)?vl("span",p.data.imageWrapperConfig,function(){XEB(p.data.image,p.data.imageConfig)}):vl(p.data.tag,p.data.config,function(x){IzB(p.data)(x);
x=_.a(p.parts);for(var F=x.next();!F.done;F=x.next())b0d(F.value)})};
YL6=function(p){return p.parts.map(u0p)};
u0p=function(p){if(typeof p==="string")return p;p=UZJ(p.data)?_.Z("span",{el:_.zYz($ZE(p.data.imageWrapperConfig))},_.Z(_.VE,Object.assign({},{data:p.data.image},p.data.imageConfig))):_.Z(p.data.tag,{el:_.zYz(IzB(p.data),$ZE(p.data.config))},p.parts.map(u0p));return N$(p)};
wEE=function(p,x){return p===x?!0:p===void 0||x===void 0?!1:p.noStyleRuns===x.noStyleRuns&&p.noLinkColor===x.noLinkColor&&p.noEndpoints===x.noEndpoints&&p.headerRuns===x.headerRuns&&p.isOverlay===x.isOverlay&&p.linkInheritColor===x.linkInheritColor&&p.userInput===x.userInput};
Gxp=function(p){return function(){var x,F,N,h,c,M,f,K,t,d,v,C,X,Q;return{ariaLabel:(x=p.ariaLabel)==null?void 0:x.call(p),className:(F=p.className)==null?void 0:F.call(p),ellipsisTruncate:(N=p.ellipsisTruncate)==null?void 0:N.call(p),isOverlay:(h=p.isOverlay)==null?void 0:h.call(p),linkInheritColor:(c=p.linkInheritColor)==null?void 0:c.call(p),noEndpoints:(M=p.noEndpoints)==null?void 0:M.call(p),noStyleRuns:(f=p.noStyleRuns)==null?void 0:f.call(p),noLinkColor:(K=p.noLinkColor)==null?void 0:K.call(p),
noPreWrap:(t=p.noPreWrap)==null?void 0:t.call(p),noWrap:(d=p.noWrap)==null?void 0:d.call(p),skipOnClick:(v=p.skipOnClick)==null?void 0:v.call(p),stopPropagation:(C=p.stopPropagation)==null?void 0:C.call(p),userInput:(X=p.userInput)==null?void 0:X.call(p),headerRuns:(Q=p.headerRuns)==null?void 0:Q.call(p)}}};
V7H=function(p){return p.value===""||p.value==="true"?!0:p.value==="false"?!1:isNaN(Number(p.value))?p.value:Number(p.value)};
Hl=function(p,x){p=new WzB(p,x);_.zj(p);throw p;};
H0z=function(p,x,F){var N=LqJ(p);p._numRenders=0;try{var h=DDr(function(){return _.Z(x,Object.assign({},F))})}catch(M){var c=function(f){f.args||(f.args=[]);
f.args.push("Error in web component wrapper");f.args.push(p.tagName.toLowerCase());return f};
_.s$(M instanceof Error?c(M):new WzB("Wiz rendering error",p.tagName.toLowerCase()));throw M;}finally{LqJ(N)}return h};
_.o7=function(p,x,F){function N(t){var d={};t=_.a(t);for(var v=t.next();!v.done;v=t.next()){v=v.value;var C=void 0,X=void 0,Q=void 0,b=_.t8((Q=(X=(C=v).getAttribute)==null?void 0:X.call(C,"slot"))!=null?Q:"children");if(C=d[b])C.push(v);else if(b in c||b==="children")d[b]=[v]}if(mSm)for(t=_.a(Object.keys(d)),b=t.next(),v={};!b.done;v={content$jscomp$55:void 0},b=t.next())b=b.value,b!=="children"&&(v.content$jscomp$55=d[b],d[b]=function(A){return function(){return A.content$jscomp$55}}(v));
return d}
F=F===void 0?{}:F;p.componentType!==tu||Hl("Components must be marked reactive to be used from web component wrapper.",x);BT.has(x)&&Hl("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",x);var h,c=(h=F.props)!=null?h:{};Rd.add(x);var M=obd();F=function(){var t=M.apply(this,arguments)||this;t.rawProps={};t.queuingRender=!1;t.dispose=function(){};
t.isWebComponentWrapper=!0;t.isReparenting=!1;t.hasAttached=!1;return t};
_.E(F,M);F.prototype.render=function(){this.hasAttached=!0;for(var t=_.a([].concat(_.se(this.attributes))),d=t.next();!d.done;d=t.next())d=d.value,d.name!=="slot"&&this.removeAttribute(d.name);t=Object.assign({},this.componentProps,this.slotProps);d=_.a(H0z(this,p,t));t=d.next().value;d=d.next().value;!(t[0]instanceof Element)||t.length>1?Hl("Wrapped Wiz components must return a single root element.",x):(t=t[0].tagName.toLowerCase(),t!==x&&Hl("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(t+" !== '"+x),x),this.dispose=d)};
F.prototype.setUpProps=function(){for(var t=this.rawProps,d=this.attributes,v=_.a(Object.keys(c)),C=v.next();!C.done;C=v.next()){C=C.value;var X=void 0;((X=this)==null?0:X[C])&&this[C]!==O0z&&t[C]===void 0&&(t[C]=this[C],(X=Object.getOwnPropertyDescriptor(this.constructor.prototype,C))&&Object.defineProperty(this,C,X))}v=_.a(d);for(C=v.next();!C.done;C=v.next()){X=C.value;C=_.t8(X.name);var Q=C==="class"&&!d.getNamedItem("class-name");if(C in c||Q)X=V7H(X),C!=="class"||t.className?t[C]=X:t.className=
X}d={};for(var b in c)c[b]===_.mJ||mSm&&c[b]===jhE||(t[b]instanceof Function&&Hl("Function props must be configured as STATIC, not SIGNAL.",x),C=_.a(_.hu(t[b],void 0,"vGbZpc")),v=C.next().value,C=C.next().value,d[b]=C,t[b]=v);t=_.a([t,d]);this.componentProps=t.next().value;this.setters=t.next().value;this.slotProps=N(this.childNodes)};
F.prototype.connectedCallback=function(){PT===x&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in c&&!this.rawProps.data&&!this.getAttribute("data"),this.hasAttached||this.queuingRender||this.setUpProps(),this.queuingRender&&!this.hasAttached||this.render()))};
F.prototype.disconnectedCallback=function(){if(!this._isInert){var t;a:{if(_.Lzm)for(t=this;t;){if(_.P7M.has(t)){t=!0;break a}t=t.parentElement}t=!1}if(t)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){t=_.a([].concat(_.se(this.attributes)));for(var d=t.next();!d.done;d=t.next())d=d.value,d.name!=="slot"&&this.removeAttribute(d.name)}this.innerText="";VR6(this)}}};
F.prototype._setPendingPropertyOrPath=function(){};
F.prototype.notifyPath=function(){};
_.R8.Object.defineProperties(F.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
h=_.a(Object.keys(c));for(var f=h.next(),K={};!f.done;K={prop$jscomp$103:void 0},f=h.next())K.prop$jscomp$103=f.value,Object.defineProperty(F.prototype,K.prop$jscomp$103,{set:function(t){return function(d){var v=this;this._isInert||(this.setters?qG(function(){var C,X;return void((X=(C=v.setters)[t.prop$jscomp$103])==null?void 0:X.call(C,d))}):(this.rawProps[t.prop$jscomp$103]=d,this.queuingRender&&t.prop$jscomp$103==="data"&&d!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(K),
get:TUp.has(K.prop$jscomp$103)?void 0:function(){return O0z}});
customElements.define(x,F)};
_.BUk=function(p,x){return(p=_.Ou(p,x))?_.n6(_.ug(p)):null};
_.j6=function(p){if(p=_.Ou(p,Number.MAX_VALUE,void 0,"width"))return _.ug(p)};
_.Ou=function(p,x,F,N){N=N===void 0?"width":N;if(!p||!p.length)return null;if(_.S("kevlar_tuner_should_always_use_device_pixel_ratio")){var h=window.devicePixelRatio;_.S("kevlar_tuner_should_clamp_device_pixel_ratio")?h=Math.min(h,_.Ud("kevlar_tuner_clamp_device_pixel_ratio")):_.S("kevlar_tuner_should_use_thumbnail_factor")&&(h=_.Ud("kevlar_tuner_thumbnail_factor"));RYM=h}else RYM||(RYM=window.devicePixelRatio);h=RYM;_.S("kevlar_tuner_should_always_use_device_pixel_ratio")?x*=h:h>1&&(x*=h);if(_.S("kevlar_tuner_min_thumbnail_quality"))return p[0].url||
null;h=p.length;if(_.S("kevlar_tuner_max_thumbnail_quality"))return p[h-1].url||null;if(F)for(var c=0;c<h;c++)if(p[c].url.indexOf(F)>=0)return p[c].url||null;for(F=0;F<h;F++)if(p[F][N]>=x)return p[F].url||null;for(x=h-1;x>0;x--)if(p[x][N])return p[x].url||null;return p[0].url||null};
i0B=function(){Lr.size?setTimeout(function(){Pl(kxw)},0):USw=0};
kxw=function(){var p=(0,_.Lf)(),x=null,F=!1;Lr.forEach(function(h){h.loaded=!0;h.loadTime=p;h.pendingPaint=!1;var c=Ijz.get(h);c&&c.resolve(p);x=h;F||!h.ftlEligible&&h.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(F=!0)});
var N;((N=x)==null?0:N.markDirty)&&x.markDirty();Lr.clear();USw=0;F&&$SJ(p)};
eYm=function(p){Lr.add(p);p.pendingPaint=!0;USw||(USw=_.TT(_.E0,i0B))};
pGZ=function(p){p.loaded=!1;p.loadTime=Infinity;var x=Ijz.get(p);x&&(x.reject(Error("lh")),Ijz.delete(p));p.pendingPaint&&(Lr.delete(p),p.pendingPaint=!1)};
_.xek=function(p){var x=p.indexOf(":");return x===-1?{originalName:p}:{originalName:p.substring(0,x),datasyncId:p.substring(x+1)}};
_.N0H=function(){return _.D(function(p){if(F7m!==void 0)return p.return(F7m);F7m=new Promise(function(x){var F;return _.D(function(N){switch(N.nextAddress){case 1:return _.KM(N,2),_.q(N,_.Bl.open("test-only"),4);case 4:return _.q(N,_.Bl.delete("test-only"),5);case 5:_.ub(N,3);break;case 2:if(F=_.v9(N),F instanceof Error&&F.name==="SecurityError")return x(!1),N.return();case 3:x("caches"in window),_.JB(N)}})});
return p.return(F7m)})};
cpp=function(){return _.D(function(p){if(p.nextAddress==1)return _.q(p,_.N0H(),2);if(!p.yieldResult)return p.return(void 0);hOp||(hOp=new lk$);return p.return(hOp)})};
akk=function(p){var x,F,N,h;return _.D(function(c){switch(c.nextAddress){case 1:return _.q(c,cpp(),2);case 2:x=c.yieldResult;if(!x)throw Error("nh");return _.q(c,x.open("yt-player-local-img"),3);case 3:return F=c.yieldResult,_.q(c,F.match(p),4);case 4:N=c.yieldResult;if(!N)throw Error("oh");return _.q(c,N.blob(),5);case 5:return h=c.yieldResult,c.return(h)}})};
MEM=function(p,x){for(var F in p)if(p.hasOwnProperty(F)&&x[F])return F;return null};
DeB=function(p){return"stamp"+p.replace("-","_")+"_"};
fkM=function(p){var x=p.match(/\[\[([\w\.]+)\]\]/);if(x&&x.length>1)return x[1];_.zj(Error("qh`"+p));return null};
K7m=function(p){return p===void 0?_.nt("REUSE_COMPONENTS",!1):p||!1};
tEd=function(p,x,F){F&&(x.is?(qVr.has(x)&&(p=qVr.get(x),F=p.listener,delete x[p.property],F.type==="element"&&x.removeEventListener(F.eventName,F.handler),qVr.delete(x)),ZDE(x)):x.__proto__==HTMLElement.prototype&&(x=new _.qE("Rendererstamper removed a non custom element","Stamper: "+p+" element: "+(x&&x.nodeName)),_.no(x)))};
ded=function(p,x,F,N){var h=x.node?x.node:x;_.n(F).parentNode===h&&(x.removeChild(F),tEd(p,F,N));if(p=R7.get(F))R7.delete(F),_.E0.cancelJob(p);F.hidden=!1};
vmz=function(p,x,F,N){if(x&&x.children&&(F=x.children[F]))if(_.nt("DEFERRED_DETACH"))for(;F&&!R7.has(F);){var h=p,c=x,M=F,f=N;M.hidden=!0;h=_.vZ(_.E0,ded.bind(null,h,c,M,f),0);R7.set(M,h);F=F.nextElementSibling}else for(;(M=x.lastElementChild)&&(x.removeChild(M),tEd(p,M,N),M!=F););};
Jpp=function(p){var x=_.oc();_.J9(function(){for(var F=_.a(p.slotContent),N=F.next();!N.done;N=F.next())x.value.appendChild(N.value)});
return _.Z("__slot-el",{el:x,skip:!0})};
_.kL=function(p,x,F){F=F===void 0?Cnm:F;BT.add(x);var N;(N=F).propNames!=null||(N.propNames=[]);var h=new Set(F.propNames),c=obd();N=function(){var t=c.call(this)||this;t.props={};t.isUpdating=!1;t.hasAttached=!1;t.isInert=!1;t.updateQueued=!1;t.initialClasses=[];jqr(t,x);return t};
_.E(N,c);N.prototype.forwardKebabCaseProp=function(t,d){t=_.t8(t);if(h.has(t)||t==="children")this.props[t]=d};
N.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var t=_.a(this.initialClasses),d=t.next();!d.done;d=t.next())(d=d.value)&&this.classList.add(d);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
N.prototype.handleSlottedContent=function(){for(var t=new Map,d=_.a(this.children),v=d.next();!v.done;v=d.next()){v=v.value;var C=void 0,X=(C=v.getAttribute("slot"))!=null?C:"children";(C=t.get(X))?C.push(v):t.set(X,[v]);if(!v.getAttribute("key")){var Q=void 0,b=void 0;v.setAttribute("key",X+"_"+((b=(Q=C)==null?void 0:Q.length)!=null?b:0))}}t=_.a(t);for(d=t.next();!d.done;d=t.next())v=_.a(d.value),d=v.next().value,v=v.next().value,this.forwardKebabCaseProp(d,_.Z(Jpp,{slotContent:v}))};
N.prototype.connectedCallback=function(){var t=this;if(!jqr(this,x)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var d=_.a(this.attributes),v=d.next();!v.done;v=d.next())v=v.value,this.forwardKebabCaseProp(v.name,V7H(v));this.handleSlottedContent();F.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){t.afterFirstPatch()});
this.hasAttached=!0}};
N.prototype.attributeChangedCallback=function(t,d,v){this.isInert||this.isUpdating||this.isConnected||t!=="class"||this.initialClasses.push.apply(this.initialClasses,_.se(v.split(" ")))};
N.prototype.disconnectedCallback=function(){s9J(this)};
N.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var t,d;Prz(this,_.Z(p,Object.assign({},this.props,{idomKey:(d=(t=this.__incrementalDOMData)==null?void 0:t.key)!=null?d:x})),!0)}catch(C){var v=C instanceof Error?C:new _.qE("Wiz rendering error");v.args||(v.args=[]);v.args.push("Error in deprecated web component wrapper");v.args.push(x.toLowerCase());_.zj(v);throw C;}finally{this.updateQueued=this.isUpdating=!1}}};
N.prototype.enqueueUpdate=function(){var t=this;return _.D(function(d){if(F.synchronous)return t.update(),d.return();if(t.updateQueued)return d.return();t.updateQueued=!0;return d.return(Promise.resolve().then(function(){t.update()}))})};
N.prototype.notifyPath=function(){F.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.R8.Object.defineProperties(N,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var M=_.a(F.propNames),f=M.next(),K={};!f.done;K={prop$jscomp$105:void 0},f=M.next())K.prop$jscomp$105=f.value,Object.defineProperty(N.prototype,K.prop$jscomp$105,{set:function(t){return function(d){this.isInert||d===this.props[t.prop$jscomp$105]||(this.props[t.prop$jscomp$105]=d,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(K)});
customElements.define(x,N)};
_.SVZ=function(p,x){return _.M4(p.entities,"markersEngagementPanelSyncEntity",x)};
rpp=function(p,x){return _.M4(p.entities,"fantasyWinProbabilityEntity",x)};
Emd=function(p,x){return _.M4(p.entities,"fantasyTeamEntity",x)};
XGp=function(p,x){return _.M4(p.entities,"fantasyPlayerEntity",x)};
gm$=function(p,x){return _.M4(p.entities,"booleanEntity",x)};
Qgm=function(p,x){return _.M4(p.entities,"qrCodeEntity",x)};
zOM=function(p){return _.M4(p.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
sgM=function(){if(Uu)return Uu;if(window.lottie)return Uu=Promise.resolve(window.lottie);var p=_.XE(_.sd("LOTTIE_URL"));return p?Uu=new Promise(function(x,F){var N=document.createElement("script");N.addEventListener("load",function(){x(lottie)});
N.addEventListener("error",function(h){var c="Lottie library failed to load.";h?h.message&&(c+=" Original description: "+h.message,_.yj(h,c)):h=Error(c);_.no(h);F(h)});
N.setAttribute("async","");_.UU(N,p);document.head.appendChild(N)}):Promise.reject(Error("rh"))};
nmw=function(){return Uu?Uu:sgM()};
ypB=function(){var p=zOM(_.Bi().getState());if(p&&p.animationStyle)switch(p.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":return iz.get("LIKE_VALENTINES25_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":return iz.get("LIKE_VALENTINES25_BROKEN_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":return iz.get("LIKE_YOUTUBE_20TH_BIRTHDAY")}};
bDJ=function(p){if(p)switch(p){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.S("kevlar_use_wil_icons"))return(p=ypB())?p:iz.get("LIKE")}};
Ap6=function(p){var x=bDJ(p);if(x)return x;switch(p){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return iz.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return iz.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return iz.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return iz.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return iz.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return iz.get("NOTIFICATION_BELL")}};
YVH=function(p,x){if(!p||ulJ)x=!1;else{if(p.closest){var F=!!bDJ(x);F=_.sd("ID_TOKEN")&&F?!!p.closest("segmented-like-dislike-button-view-model"):!1}else F=!1;if(!F)if(p.closest)if(F=!_.sd("ID_TOKEN"),p=p.closest("ytd-subscription-notification-toggle-button-renderer-next"),F||!p)F=!1;else{var N;F=((N=p.data)==null?void 0:N.targetId)==="notification-bell"&&x!=="EXPAND_MORE"}else F=!1;x=F}return x};
wGZ=function(p){var x,F;return _.D(function(N){switch(N.nextAddress){case 1:return _.KM(N,2),_.q(N,fetch(p),4);case 4:return x=N.yieldResult,_.q(N,x.json(),5);case 5:return N.return(N.yieldResult);case 2:F=_.v9(N),_.no(F),_.JB(N)}})};
Gdr=function(p,x){var F,N,h;return _.D(function(c){if(c.nextAddress==1)return(F=x?p.pathDarkTheme:p.path)?_.q(c,Promise.all([wGZ(F),sgM()]),2):c.return();N=c.yieldResult;h=N[0];I7.set(F,h);_.JB(c)})};
_.$L=function(){var p=_.we.apply(0,arguments);return function(){for(var x="",F=_.a(p),N=F.next();!N.done;N=F.next())if(N=N.value,typeof N==="function"&&(N=N()),N)if(typeof N==="string")x+=" "+N;else for(var h in N)if(N.hasOwnProperty(h)){var c=N[h];typeof c==="function"&&(c=c());c&&(x+=" "+h)}x=x.trim()||void 0;return _.gx(x)}};
_.e6=function(p){var x;var F=p.data;var N=p.className;var h=p.animationName;var c=p.animationRef;var M=(x=p.elRefForInterop)||_.oc(),f;_.E_(function(){var d;return void((d=f)==null?void 0:d.destroy())});
var K;_.rx(function(){var d=_.gx(h);if(d!==K){K=d;var v=Object.assign({},{animationName:d,animationRef:_.gx(c)},_.gx(F));try{_.J().resolve(VE$)().then(function(Q){var b;(b=f)==null||b.destroy();b=v.animationRef;var A=v.listeners;Q=Q.loadAnimation(Object.assign({},{container:M.value},v.animationConfig));b&&(b.lottieEl=Q);if(A)for(b=_.a(Object.entries(A)),A=b.next();!A.done;A=b.next()){var Y=_.a(A.value);A=Y.next().value;(Y=Y.next().value)&&Q.addEventListener(A,Y)}f=Q})}catch(Q){d=Q;
var C="LottieComponent error.";d.message&&(C+=" Original description: "+d.message);_.yj(d,C);_.no(d);var X;((X=v.listeners)==null?0:X.error)&&v.listeners.error(d)}}});
var t=_.$L("ytLottieComponentHost",N);return _.Z(Yfz,{cond:function(){return!x},
then:function(){return _.Z("lottie-component",{class:t,el:M})}})};
W7p=function(p){var x=_.oc(),F=_.a(xtE(p.data.animationConfig.name||"",p.className)),N=F.next().value;F=F.next().value;var h=Sr(function(){return p.data.animationRef});
vw(function(){p.data.animationRef&&(p.data.animationRef.lottieEl=h==null?void 0:h.lottieEl)},[p.data.animationRef]);
return _.Z("lottie-component",{skip:!0,class:_.$L(F,"ytLottieComponentHost"),el:x},_.Z(_.e6,{data:p.data,animationRef:h,animationName:N,elRefForInterop:x}))};
mep=function(p,x,F,N,h){function c(K,t){if(x.value===t&&p!=null&&p.value){for(;p.value.firstChild;)p.value.removeChild(p.value.firstChild);p.value.classList.add("yt-spec-icon-shape");K(p.value,N)}}
var M;h=(M=h)!=null?M:_.J().resolve(_.pr);F=_.HDw(h,F);if(typeof F==="function")x.value=null,c(F,null);else{var f=new _.cZ(F.then,F);x.value=f;f.then(function(K){c(K,f)})}};
ODd=function(p,x){var F=document.createElement("div"),N=_.t9(F,function(){return _.Z(_.D9,{cond:p,then:function(h){return _.Z(omE,{data:h,options:x})}})});
return[F,N]};
_.pQ=function(){for(var p=[],x=_.a(_.we.apply(0,arguments)),F=x.next();!F.done;F=x.next())if(F=F.value)if(typeof F==="string")p.push(F);else{F=_.a(Object.entries(F));for(var N=F.next();!N.done;N=F.next()){var h=_.a(N.value);N=h.next().value;(h=h.next().value)&&p.push(N)}}return p.join(" ")};
T0p=function(p){var x=_.oc(),F=Ed(),N=Uf(p.character)||Uf(p.previousCharacter);Z9(function(){if(p.marginMultiplier){var h;(h=F.value)==null||h.cancel();N?(h=p.previousCharacter?Number(p.previousCharacter)+10:p.rollUp?0:30,p.shouldAnimate||(h-=jgw(p,h))):(h=p.rollUp?0:2,p.shouldAnimate||(h-=p.rollUp?-1:1));x.value.style.marginTop="-"+h*p.marginMultiplier+"px";p.shouldAnimate?F.value=L7z(x.value,p,h,N):x.value.style.display=p.character?"":"none"}});
return _.Z("animated-rolling-character",{el:x,class:"animated-rolling-character-wiz"},_.je(N,function(){for(var h=[],c=1;c<30;c++)h.push(_.Z("div",null,c%10));return _.Z(_.TG,null,_.Z("div",null,"\u00a0"),h,_.Z("div",null,"\u00a0"))},function(){return PnZ(p.character)}))};
PnZ=function(p){return _.Z(_.TG,null,_.Z("div",null,"\u00a0"),_.Z(_.TG,null,_.je(!p||_.tz(p),function(){return _.Z("div",null,"\u00a0")},function(){return _.Z("div",null,p)})),_.Z("div",null,"\u00a0"))};
L7z=function(p,x,F,N){F=new Animation(new KeyframeEffect(p,[{transform:"translateY(0px)"},{transform:"translateY("+(N?jgw(x,F):x.rollUp?-1:1)*x.marginMultiplier+"px)"}],B06),document.timeline);x.character?(p.style.display="",F.onfinish=null):F.onfinish=function(){p.style.display="none"};
F.play();return F};
jgw=function(p,x){var F=Number(p.character)+10;if(p.previousCharacter)if(p.character){var N=Number(p.character),h=Number(p.previousCharacter);p=p.rollUp?h<N?F:F+10:h<N?F-10:F}else p=p.rollUp?30:0;else p=p.character==="0"?F:p.rollUp?F-10:F+10;return x-p};
_.xp=function(p,x){return function(F){var N={},h;for(h in F){var c=void 0,M=void 0;((c=x)==null?0:(M=c.callbacks)==null?0:M[h])||(N[h]=F[h])}return _.Z(Mww,null,function(){for(var f in N)F[f]=_.gx(N[f]);F.disableReactiveLogging=!0;return _.Z(p,Object.assign({},F))})}};
_.Ft=function(p){var x=Ed(),F=Ed();vw(function(){x.value=p.numberText;F.value=p.numberValue},[p.numberText]);
var N=p.fontSizeMultiplier?p.heightPx*p.fontSizeMultiplier:p.heightPx,h=Ct(function(){if(p.numberText){var M=p.numberText;var f=p.forceRollUp||!F.value||!p.numberValue||F.value<p.numberValue;var K=!!p.shouldAnimate,t=x.value,d=[],v=0,C=0,X=(t?t.replace(/\D/g,"").length:0)-(M?M.replace(/\D/g,"").length:0);t=t?t.split(/(\d)/).filter(Boolean):[];for(M=M.split(/(\d)/).filter(Boolean);X<0;){var Q=M[C];d.push({character:Q,rollUp:f,marginMultiplier:N,shouldAnimate:K});C++;Uf(Q)&&X++}for(;v<X;)Q=t[v],d.push({previousCharacter:Q,
rollUp:f,marginMultiplier:N,shouldAnimate:K}),v++,Uf(Q)||X++;for(;C<M.length;)X=M[C],Q=t[v],Uf(X)===Uf(Q)?(C++,v++):Uf(X)?(v++,X=void 0):Uf(Q)&&(C++,Q=void 0),d.push({character:X,previousCharacter:Q,rollUp:f,marginMultiplier:N,shouldAnimate:K});f=d}else f=[];return f},[p.numberText]),c=p.numberText?["height: "+N+"px;",
"line-height: "+p.heightPx+"px;"].join(" "):"";return _.Z("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:c,dir:"ltr","aria-hidden":"true"},h.map(function(M){return _.Z(T0p,Object.assign({},M))}))};
_.h0=function(p){return HVd(function(x){x=p==null?void 0:p(x);return typeof x==="boolean"?x:!0})};
lT=function(p){return function(){return p()?p():void 0}};
ROZ=function(p){return new KeyframeEffect(p,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
kdp=function(p){return new KeyframeEffect(p,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
Ue6=function(p){var x=_.a(_.hu(p,void 0,"Clci1e")),F=x.next().value,N=x.next().value;F.current=p;return[F,function(h){return void N(F.current=h)}]};
_.ct=function(p){var x=shr(function(){return Ue6(p())},{isEqual:function(F,N){return F[0].current===N[0].current}});
return[function(){return x()[0]()},
function(F){return void x()[1](F)}]};
_.a4=function(p){return function(){var x="",F;for(F in p){for(var N=p[F];typeof N==="function";)N=N();N!==void 0&&N!==null&&(x+="; "+F+": "+N)}return x.length>0?_.gx(x.slice(2)):_.gx()}};
iDH=function(p){switch(p){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"}};
eOk=function(p,x,F,N,h,c){var M=Ik$(p),f=M.disabled,K=M.iconPosition,t=M.style,d=M.focused,v=function(){return!!Q()&&K()==="icon-only"},C=function(){return!!Q()&&K()==="icon-only-40"},X=function(){return!!Q()&&K()==="icon-with-label"},Q=function(){return!!x||!(N==null||!N())};
return{type:function(){return t()==="call-to-action-inverse"?"text":t()==="overlay-dark"&&p().type!=="filled"&&p().type!=="tonal"?"tonal":p().type},
shouldFocus:function(){return(d()||(c==null?void 0:c()))&&!f()},
hasIconLeading:function(){return!!Q()&&K()==="leading"},
hasIconTrailing:function(){return!!Q()&&K()==="trailing"},
hasIconLeadingTrailing:function(){return!!Q()&&!!(F||h!=null&&h())&&K()==="leading-trailing"},
hasIconOnly:v,hasIconOnly40:C,hasIconWithLabel:X,iconButton:function(){return v()||C()||X()},
visiblyDisabled:function(){return(f()?"disabled":p().state)==="disabled"||f()},
overrideSmallSizeIcon:function(){return MC(p(),Q())},
iconToRender:x?x:function(){return _.Z(_.DS,{icon:N,size:function(){return $ep(p())},
active:function(){return p().toggled}})},
secondaryIconToRender:F?F:function(){return _.Z(_.DS,{icon:h,size:function(){return $ep(p())},
active:function(){return p().toggled}})}}};
Ik$=function(p){return{size:function(){return p().size},
style:function(){return p().style},
focused:function(){return p().focused},
disabled:function(){return p().disabled},
onTap:function(x){var F,N;return(N=(F=p()).onTap)==null?void 0:N.call(F,x)},
alignByText:function(){return p().alignByText},
aTagConfig:function(){return p().aTagConfig},
customColors:function(){return p().customColors},
segmentedPosition:function(){return p().segmentedPosition},
toggled:function(){return p().toggled},
toggleable:function(){return p().toggleable},
accessibilityLabel:function(){return p().accessibilityLabel},
onToggle:function(x){var F,N;return(N=(F=p()).onToggle)==null?void 0:N.call(F,x)},
iconPosition:function(){return p().iconPosition},
oneOffCustomTextWrap:function(){return p().oneOffCustomTextWrap},
disableTextEllipsis:function(){return p().disableTextEllipsis},
tooltipText:function(){return p().tooltipText},
ariaHidden:function(){return p().ariaHidden},
tabIndex:function(){return p().tabIndex},
buttonText:function(){return p().buttonText},
formattedButtonText:function(){return p().formattedButtonText},
animatedTextProps:function(){return p().animatedTextProps}}};
pP6=function(p){return p.style==="overlay-dark"?4:p.style==="overlay"?p.type==="filled"?4:3:p.type==="filled"||p.style==="call-to-action-inverse"||p.style==="mono-inverse"?2:1};
MC=function(p,x){x=(p.iconPosition==="icon-only"||p.iconPosition==="icon-only-40"||p.iconPosition==="icon-with-label")&&x;return!p.segmentedPosition&&x&&p.size==="S"};
xb6=function(){return!_.S("web_disable_backdrop_filter")};
$ep=function(p){switch(p.size){case "XS":return 16;case "S":return MC(p,!0)?24:16;default:return 24}};
Fk6=function(p,x){if(!_.LH){var F;IOM(function(){return F=cI6(p,x)});
return F}return cI6(p,x)};
Nzk=function(){var p=xpM(_.LH||void 0,NVZ);return p===pu6||(p==null?void 0:p.name)==="\u0275NotFound"?void 0:p};
hqw=function(p){switch(p){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"}};
lHw=function(p){switch(p){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"}};
cEk=function(p){switch(p){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"}};
aHp=function(p){if(!p)return{};var x=p.color,F=p.backgroundColor;p=p.borderColor;var N="";x&&(N+="color: "+x+";");F&&(N+="background-color: "+F+";");p&&(N+="border-color: "+p+";");return{style:N}};
fHB=function(p){var x=p.data;var F=p.icon;var N=p.secondaryIcon;var h=p.iconName;var c=p.secondaryIconName;Nzk();var M=x.size;p=x.style;var f=x.focused,K=x.disabled,t=x.onTap,d=x.alignByText,v=x.aTagConfig,C=x.customColors,X=x.segmentedPosition,Q=x.toggled,b=x.toggleable,A=x.accessibilityLabel,Y=x.onToggle,O=x.iconPosition,Fw=x.oneOffCustomTextWrap,R=x.disableTextEllipsis,ld=x.tooltipText,pp=x.ariaHidden,Kp=x.tabIndex,sM=!!F||!!h,np=F,Jz=N;if(h){var Y$=$ep(x);np=function(){return _.Z(_.DS,{icon:h,
size:Y$,active:x.toggled})}}if(c){var xB=$ep(x);
Jz=function(){return _.Z(_.DS,{icon:c,size:xB,active:x.toggled})}}var qI=x.state;
F=x.type;p==="call-to-action-inverse"&&(F="text");p==="overlay-dark"&&F!=="filled"&&F!=="tonal"&&(F="tonal");var RJ=sM&&O==="leading",Ik=sM&&O==="trailing",vb=sM&&(!!N||!!c)&&O==="leading-trailing";N=sM&&O==="icon-only";var CZ=sM&&O==="icon-only-40";O=sM&&O==="icon-with-label";var sk=N||CZ||O;K&&(qI="disabled");var Ov=qI==="disabled"||K;sM=MC(x,sM);qI={};var Xj=_.pQ((qI["yt-spec-button-shape-next"]=!0,qI[hqw(F)]=!0,qI[lHw(p)]=!Ov,qI["yt-spec-button-shape-next--disabled"]=!!Ov,qI[cEk(M)]=!0,qI["yt-spec-button-shape-next--focused"]=
!!f&&!K,qI["yt-spec-button-shape-next--icon-trailing"]=Ik,qI["yt-spec-button-shape-next--icon-leading"]=RJ,qI["yt-spec-button-shape-next--icon-leading-trailing"]=vb,qI["yt-spec-button-shape-next--icon-button"]=N||O,qI["yt-spec-button-shape-next--icon-only-default"]=CZ,qI["yt-spec-button-shape-next--align-by-text"]=!!d,qI["yt-spec-button-shape-next--segmented-start"]=X==="start",qI["yt-spec-button-shape-next--segmented-end"]=X==="end",qI["yt-spec-button-shape-next--override-small-size-icon"]=sM,qI["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!Fw,qI["yt-spec-button-shape-next--disable-text-ellipsis"]=!!R,qI["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=xb6(),qI)),AC=_.h0(function(Jo){t==null||t(Jo);b&&(Y==null||Y(Jo))});
M=function(){return v?_.Z(_.fQ,{aTagConfig:v,disabled:K,className:Xj,style:aHp(C).style,title:ld!=null?ld:"",ariaLabel:A,ariaCurrent:b&&Q},_.Z(_.TG,null,MWM(x,RJ,vb,Ik,sk,np,Jz))):_.Z("button",{"on:click":AC,class:Xj,title:ld!=null?ld:"",style:K&&v?"pointer-events:none":aHp(C).style,disabled:K,"aria-pressed":b?!!Q:void 0,"aria-label":A?A:void 0,"aria-disabled":Ov,"aria-hidden":pp,tabindex:Kp},_.Z(_.TG,null,MWM(x,RJ,vb,Ik,sk,np,Jz)))};
f={};p=(f["yt-spec-button-shape-with-label"]=!0,f["yt-spec-button-shape-with-label--is-overlay"]=p==="overlay"||p==="overlay-dark",f);return _.Z("yt-button-shape",{class:"yt-spec-button-shape-next__button-shape-wiz-class"},O?_.Z("label",{class:_.pQ(p)},M(),_.Z("div",{class:"yt-spec-button-shape-with-label__label","aria-hidden":!0},Db6(x))):M())};
Db6=function(p){var x=p.formattedButtonText,F=p.animatedTextProps,N=p.buttonText,h=p.oneOffCustomTextWrap;p=p.iconPosition;return F?_.Z(_.Ft,{numberText:F.numberText,numberValue:F.numberValue,heightPx:F.heightPx,fontSizeMultiplier:F.fontSizeMultiplier,shouldAnimate:F.shouldAnimate,forceRollUp:F.forceRollUp}):x?(F=p==="icon-with-label"||h,_.Z(_.KQ,{text:Object.assign({},x,F?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),noLinkColor:!0,noWrap:!F})):N};
MWM=function(p,x,F,N,h,c,M){return _.Z(_.TG,null,_.je(c&&(x||F||h),function(){return _.Z(_.TG,null,_.Z("div",{class:"yt-spec-button-shape-next__icon","aria-hidden":"true"},c==null?void 0:c()))}),_.je((p.buttonText||p.formattedButtonText||p.animatedTextProps)&&!h,function(){return _.Z(_.TG,null,_.Z("div",{class:"yt-spec-button-shape-next__button-text-content"},Db6(p)))}),_.je(N,function(){return _.Z(_.TG,null,_.Z("div",{class:"yt-spec-button-shape-next__icon"},c==null?void 0:c()))}),_.je(F,function(){return _.Z(_.TG,
null,_.Z("div",{class:"yt-spec-button-shape-next__secondary-icon"},M==null?void 0:M()))}),_.je(!p.disabled&&!0,function(){return _.Z(_.qC,{model:{color:pP6(p)}})}))};
_.ZS=function(p){var x=_.Ud("web_generic_client_event_wait_period ",0);x||(x=3E5);var F=Kkz.get(p);!_.S("enable_web_client_experiment_event_timeout_killswitch")&&F&&(0,_.Lf)()-F<x||(Kkz.set(p,(0,_.Lf)()),_.E$("genericClientExperimentEvent",{eventType:p}))};
qIM=function(p){switch(p){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"}};
tWM=function(p){if(_.S("web_enable_wiz_tfbs"))w$(_.qC)({model:p});else{p={model:p};var x=JD,F;(x==null?0:(F=x.prototype)==null?0:F.render)?$yH(p):typeof JD==="function"&&JD(p)}F=_.S("web_enable_wiz_tfbs_log");_.S("mweb_wiz_migration_event_killswitch")||_.S("kevlar_wiz_migration_event_killswitch")||!F||ZIr||(_.ZS("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT"),ZIr=!0)};
dbH=function(p,x){switch(p.size){case "XS":return 16;case "S":return MC(p,x)?24:16;default:return 24}};
vKB=function(p){if(p.style==="overlay-dark"&&p.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
rEH=function(p,x,F){var N=p.buttonText,h=p.formattedButtonText,c=p.formattedButtonTextLegacy,M=p.animatedTextProps,f=p.style,K=p.size,t=p.focused,d=p.disabled,v=p.onTap,C=p.alignByText,X=p.aTagConfig,Q=p.customColors,b=p.segmentedPosition,A=p.toggled,Y=p.toggleable,O=p.accessibilityLabel,Fw=p.onToggle,R=p.iconPosition,ld=p.oneOffCustomTextWrap,pp=p.disableTextEllipsis,Kp=p.tooltipText,sM=p.ariaHidden,np=p.tabIndex,Jz=p.state,Y$=p.type;f==="call-to-action-inverse"&&(Y$="text");f==="overlay-dark"&&
Y$!=="filled"&&Y$!=="tonal"&&(Y$="tonal");var xB=!!x&&R==="leading",qI=!!x&&R==="trailing",RJ=!!x&&!!F&&R==="leading-trailing",Ik=!!x&&R==="icon-only",vb=!!x&&R==="icon-only-40",CZ=!!x&&R==="icon-with-label",sk=Ik||vb||CZ;d&&(Jz="disabled");var Ov=Jz==="disabled"||d;Jz=MC(p,!!x);var Xj={},AC=(Xj["yt-spec-button-shape-next"]=!0,Xj[hqw(Y$)]=!0,Xj[lHw(f)]=!Ov,Xj["yt-spec-button-shape-next--disabled"]=!!Ov,Xj[cEk(K)]=!0,Xj["yt-spec-button-shape-next--focused"]=!!t&&!d,Xj["yt-spec-button-shape-next--icon-trailing"]=
qI,Xj["yt-spec-button-shape-next--icon-leading"]=xB,Xj["yt-spec-button-shape-next--icon-leading-trailing"]=RJ,Xj["yt-spec-button-shape-next--icon-button"]=Ik||CZ,Xj["yt-spec-button-shape-next--icon-only-default"]=vb,Xj["yt-spec-button-shape-next--align-by-text"]=!!C,Xj["yt-spec-button-shape-next--segmented-start"]=b==="start",Xj["yt-spec-button-shape-next--segmented-end"]=b==="end",Xj["yt-spec-button-shape-next--override-small-size-icon"]=Jz,Xj["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!ld,Xj["yt-spec-button-shape-next--disable-text-ellipsis"]=!!pp,Xj["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=xb6(),Xj),Jo=function(){if(M)w$(_.Ft)(M);else if(c)c(R==="icon-with-label"||ld?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(h){var dl=R==="icon-with-label"||ld;AWw(Object.assign({},h,dl?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!dl})}else N&&jO(N)},
Bz=function(dl){v==null||v(dl);
Y&&(Fw==null||Fw(dl))},aJ=X?JEB:CJz,he=X?"aria-current$":"aria-pressed$",Bb=function(){x&&(xB||RJ||sk)&&function(){t0({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){x()})}();
(N||h||c||M)&&!sk&&function(){t0({className:"yt-spec-button-shape-next__button-text-content"},function(){Jo()})}();
qI&&function(){t0({className:"yt-spec-button-shape-next__icon"},function(){x()})}();
RJ&&function(){t0({className:"yt-spec-button-shape-next__secondary-icon"},function(){F()})}();
d||tWM({color:pP6(p)})},PH=function(){var dl={};
aJ(Object.assign({},(dl.className=_.pQ(AC),dl.onclick=X?void 0:Bz,dl.disabled=d,dl["aria-disabled$"]=Ov,dl.style=d&&X?"pointer-events:none":void 0,dl[he]=Y?!!A:void 0,dl["aria-label$"]=O,dl.title$=Kp!=null?Kp:"",dl["aria-hidden$"]=sM,dl.tabindex$=np,dl),X,aHp(Q)),function(){Bb()})};
CZ?(K={},f=(K["yt-spec-button-shape-with-label"]=!0,K["yt-spec-button-shape-with-label--is-overlay"]=f==="overlay"||f==="overlay-dark",K),SIr({className:_.pQ(f)},function(){PH();t0({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},Jo)})):PH()};
EKJ=function(p,x,F){_.S("web_wiz_button_shape")?w$(fHB)({data:p,icon:x?function(){return _.Z(Lo,null,x)}:void 0,
secondaryIcon:F?function(){return _.Z(Lo,null,F)}:void 0}):rEH(p,x,F)};
d5=function(p,x){_.QE(p,Object.assign({},x,{forceClickLogging:!0}))};
XPz=function(p,x,F,N){var h=void 0;return function(c){var M=_.g$(F?p==null?void 0:p.onDisabledTap:p==null?void 0:p.onTap);if(M){var f;h=(f=h)!=null?f:x==null?void 0:x.value;if(M)if(_.S("web_button_vm_click_client_ve_killswitch"))d5(M,Object.assign({},{form:{element:h,event:c}},void 0));else{var K;f=M==null?void 0:M.clickTrackingParams;var t,d=p==null?void 0:(K=p.loggingDirectives)==null?void 0:(t=K.clientVeSpec)==null?void 0:t.uiType;K=d&&!f?_.vt(d):void 0;d5(M,Object.assign({},{form:{element:h,event:c}},
{clickedVisualElement:K}))}}N&&N(c)}};
gKp=function(p){switch(p){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"}};
QmE=function(p){switch(p){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"}};
zqM=function(p){switch(p){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"}};
smd=function(p){switch(p){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"}};
nKm=function(p,x){return _.M4(p.entities,"engagementToolbarStateEntityPayload",x)};
bIp=function(p){(p=_.fr(p))&&_.yE$(p)};
_.yE$=function(p){var x=_.b0();x&&_.Lc(x,p)};
AEm=function(p,x,F){_.lA(p,"yt-open-popup-action",[x,F||p])};
ui6=function(p,x){var F=_.XG(p,"endpoint"),N=_.XG(p,"action");return(F=N?N:F)&&x&&(F=x.navigationEndpointPopupMap[F])&&(p=_.A9(F,p),(F=_.XG(p,"renderer"))&&x.supportedPopups.hasOwnProperty(F))?{openPopupAction:{popupType:x.popupTypeMap[F],popup:p}}:null};
YIZ=function(p,x,F,N){if(N){var h;F=F==null?void 0:(h=F.data)==null?void 0:h.contents;(h=F instanceof Array&&F.length?F[0]:F)&&(F=_.XG(h,"renderer"))&&N.supportedPopups.hasOwnProperty(F)&&(x.stopPropagation(),AEm(p,{openPopupAction:{popupType:N.popupTypeMap[F],popup:h}}))}};
VWd=function(p,x,F,N){N=N===void 0?!1:N;var h=wPZ(x);if(h){h.href&&nR(h.href);var c=x.button;c=c!==void 0?c===0&&!J0(x):!J0(x);h.data&&c&&GC$(p,h,x,F,N)}};
GC$=function(p,x,F,N,h){h=h===void 0?!1:h;var c=_.Ud("pbj_navigate_limit",-1)===0;Wkp(x);_.J().resolve(_.Bw(wj));var M=x.data;if(Object.keys(M).length!==0)if(!_.S("unplugged_web_disable_actions_for_cec_endpoint")&&_.r(M,_.Zx))_.S("endpoint_behavior_command_executor_fix_killswitch")||(F.preventDefault(),F.stopPropagation()),_.Kc(p,[M],p);else if(N=ui6(M,N))M.loggingUrls&&M.loggingUrls.forEach(function(K){K.baseUrl&&_.YS(K.baseUrl)}),F.preventDefault(),F.stopPropagation(),AEm(p,N,x);
else{var f=HIH(0,x.data,F);if(p=x.getForm)p=p(),f.tempData=f.tempData||{},f.tempData=Object.assign({},f.tempData,p);p=_.m9(F);if(N=p.find(function(K){return!!K.visualElement}))f.createScreenConfig=f.createScreenConfig||{},f.createScreenConfig.clickedVisualElement=N.visualElement;
if(!c)if(F.preventDefault(),F.stopPropagation(),_.r(M,_.mbE)&&!h&&_.xL.instance)_.xL.instance.resolveCommand(M,f);else if(_.S("kevlar_command_handler_formatted_string")&&!h&&_.xL.instance&&oKm(M))h=p.find(function(K){return!!K.is})||F.target,F={form:Object.assign({},f,{event:F,
element:h,originatingNode:x})},_.xL.instance.resolveCommand(M,F);else{M=_.m9(F);F=[];for(h=0;h<M.length;h++)(c=M[h].is)&&F.push(c);EwB({parents:F.join(","),text:x.innerText},function(){_.hG(x,"yt-navigate",f)})}}};
OI6=function(p){if(p=wPZ(p))Wkp(p),dQr(p.href)};
wPZ=function(p){p=_.m9(p);for(var x,F=0;F<p.length;F++)if(x=p[F],x.tagName==="A"&&x.classList.contains("yt-simple-endpoint")){if(!x.data)break;return x}return null};
J0=function(p){return p.shiftKey||p.altKey||p.metaKey||p.ctrlKey};
jmw=function(p,x){var F={itct:x.clickTrackingParams};_.S("kevlar_client_side_screens")&&(!_.r(x,_.dX)||_.S("kevlar_exclude_endpoint_killswitch"))&&(F.endpoint=JSON.stringify(x));_.S("enable_unknown_lact_fix_on_html5")&&_.J().resolve(_.Bw(_.CQ))&&(F.lact=_.U0());qZp(F);_.I9(p,F)};
Wkp=function(p){p.href&&Object.keys(p.data).length!==0&&jmw(p.href,p.data)};
oKm=function(p){for(var x=_.a(LkJ),F=x.next();!F.done;F=x.next())if(p[F.value])return!1;return!0};
_.S3=function(p,x){if(x){var F={};PJE.forEach(function(N){N=Tzk(x,N,"--yt-lightsource-");Object.assign(F,N)});
Bzz.forEach(function(N){N=Tzk(x,N,"--yt-basic-");Object.assign(F,N)});
_.eV(p,F)}};
Tzk=function(p,x,F){var N={};N[F+_.ZI(x)]=p&&p[x]?_.QK(p[x]):"";return N};
_.Ei=function(p,x,F){r5[p]||(r5[p]={});r5[p][x]=F};
_.Xt=function(p){r5[p]||(r5[p]={});return r5[p]};
Rq$=function(p){if(!p)return{};var x=p.foregroundTitleColor,F=p.backgroundColor;p=p.borderColor;var N="text";p?N="outline":F&&(N="filled");return{type:N,customColors:{color:x?_.QK(x):void 0,backgroundColor:F?_.QK(F):void 0,borderColor:p?_.QK(p):void 0}}};
$br=function(p){var x=p.renderer;var F=p.element;var N=p.commandController;var h=p.onTapCallback;var c=p.skipCommandHandling;var M=p.overrides;var f=p.forceIcon;var K=p.forceModernIconButton;var t=p.forceDisabled;var d=p.isSubscribe===void 0?!1:p.isSubscribe;var v=p.isPressed===void 0?!1:p.isPressed;var C=p.useButtonSize===void 0?!1:p.useButtonSize;p=kCd(x);d&&(p.style="mono",p.type="filled");f=!x.icon||!f&&x.text?x.icon?x.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:K?"icon-only":"icon-only-40";f==="icon-only-40"&&(p.type="text");var X;K=Object;d=K.assign;C=UbH(x,C);v=!!x.isSelected||!_.S("web_propagate_is_pressed_killswitch")&&!!v;var Q=x.isSelected!==void 0;t=t===void 0?x.isDisabled:t;var b=x.text?_.S6(x.text):void 0;var A,Y,O,Fw=((A=x.accessibilityData)==null?void 0:(Y=A.accessibilityData)==null?void 0:Y.label)||((O=x.accessibility)==null?void 0:O.label);A=Fw?Fw:_.Pi(x.text);F=iIp(x,F,N,h,c);N=IHz(x);N!=null&&N.length?(N=_.zT({innertubeCommand:dZZ(N),
forceNewState:!0}),N=vtJ(N)?N:void 0):N=void 0;return d.call(K,{},p,C,{iconPosition:f},M,{focused:!1,toggled:v,toggleable:Q,disabled:t,formattedButtonText:b,accessibilityLabel:A,onTap:F,aTagConfig:N},Rq$((X=x.colorData)==null?void 0:X.basicColorPaletteData),{oneOffCustomTextWrap:x.oneOffCustomTextWrap})};
iIp=function(p,x,F,N,h){return function(c){var M=IHz(p);N(M,c);if(!h){M=_.a(M);for(var f=M.next();!f.done;f=M.next())d5(f.value,{form:{element:x,event:c},commandController:F})}}};
IHz=function(p){var x=[];p.command&&x.push(p.command);p.serviceEndpoint&&x.push(p.serviceEndpoint);p.navigationEndpoint&&x.push(p.navigationEndpoint);return x};
UbH=function(p,x){if(x)switch(p.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(p.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
kCd=function(p){switch(p.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"}}};
_.g5=function(p){return _.Kn(function(){kLJ()();return YJ(p)},void 0,"Icv7j")};
Qm=function(p,x){return _.M4(p.entities,"likeStatusEntity",x)};
eqZ=function(p,x){return _.M4(p.entities,"likeCountEntity",x)};
_.pBd=function(p,x){return _.M4(p.entities,"stringEntity",x)};
xP$=function(p,x){if(!p)return!1;var F,N=(F=_.r(p,_.dH))==null?void 0:F.signal;if(N&&x.signalEndpointMap)return!!x.signalEndpointMap[N];var h;if((F=(h=_.r(p,_.zO))==null?void 0:h.request)&&x.continuationEndpointMap)return!!x.continuationEndpointMap[F];for(var c in p)if(x.commandEndpointMap[c])return!0;return!1};
Fyw=function(p,x){if(x.streamingEndpointMap)for(var F in p)if(x.streamingEndpointMap[F]&&(p=x.streamingEndpointMap[F]))return p()};
Nfz=function(p,x){var F,N=(F=_.r(p,_.dH))==null?void 0:F.signal;if(N&&x.signalEndpointMap&&(F=x.signalEndpointMap[N]))return F();var h;if((F=(h=_.r(p,_.zO))==null?void 0:h.request)&&x.continuationEndpointMap&&(h=x.continuationEndpointMap[F]))return h();for(var c in p)if(x.commandEndpointMap[c]&&(p=x.commandEndpointMap[c]))return p()};
hMm=function(p){var x={"Content-Type":"application/json"};_.sd("EOM_VISITOR_DATA")?x["X-Goog-EOM-Visitor-Id"]=_.sd("EOM_VISITOR_DATA"):_.sd("VISITOR_DATA")&&(x["X-Goog-Visitor-Id"]=_.sd("VISITOR_DATA"));x["X-Youtube-Bootstrap-Logged-In"]=_.sd("LOGGED_IN",!1);_.sd("DEBUG_SETTINGS_METADATA")&&(x["X-Debug-Settings-Metadata"]=_.sd("DEBUG_SETTINGS_METADATA"));p!=="cors"&&((p=_.sd("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(x["X-Youtube-Client-Name"]=p),(p=_.sd("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(x["X-Youtube-Client-Version"]=
p),(p=_.sd("CHROME_CONNECTED_HEADER"))&&(x["X-Youtube-Chrome-Connected"]=p),(p=_.sd("DOMAIN_ADMIN_STATE"))&&(x["X-Youtube-Domain-Admin-State"]=p),_.nt("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(p=_.sd("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(x["X-YouTube-Lava-Device-Context"]=p));return x};
lck=function(p,x){x.watchNextResponse||x.reelItemWatchResponse?x.watchNextResponse?p.content=x.watchNextResponse:p.content=x.reelItemWatchResponse:x.playerResponse?p.player=x.playerResponse:x.reelWatchSequenceResponse&&(p.reelSequence=x.reelWatchSequenceResponse)};
si=function(p){return function(){return new p}};
nQ=function(p){var x=_.J();return function(){return x.resolve(p)}};
_.ym=function(p){if(!p)return null;for(var x=[],F=0;F<p.textSegments.length;F++){var N=p.textSegments[F];N.text?x.push(N):N.emojiId&&x.push({emoji_id:N.emojiId})}return{text_segments:x}};
fcp=function(p,x,F,N,h,c,M){c=c===void 0?[]:c;var f=new _.bT;f.endpoint=F;if(!F)return _.s$(new _.qE("handle undefined endpoint",x.tagName)),f;var K=ARE(F);K.length&&(_.Kc(p,K,x,N),f.actions=K);F.loggingUrls&&F.loggingUrls.forEach(function(d){d.baseUrl&&ww(d.baseUrl,d.attributionSrcMode)});
K=!_.S("web_skip_impression_click_killswitch")&&N&&N.impression;if(F.clickTrackingParams&&!cJr(F)&&!acJ(x)&&!K&&(K=_.cl(),!_.A0(K,x))){var t=x.getScreenLayer&&x.getScreenLayer();t?K.clickCommand(F,null,t):K.clickCommand(F,null)}K=!1;for(t=0;t<c.length;t++)if((0,c[t])(x,F,N)){K=!0;break}!K&&MId(F)&&(f.ajaxPromise=DPZ(p,x,F,N,h,M));return f};
acJ=function(p){var x;return(p=(x=p.data)==null?void 0:x.navigationEndpoint)&&!!p.clickTrackingParams};
cJr=function(p){var x=_.r(p,_.dH);if(x&&(x=x.signal)&&Kyk.indexOf(x)>=0)return!0;for(var F in p)if(qrM.indexOf(F)>=0)return!0;return!1};
MId=function(p){var x;if(((x=_.r(p,_.dH))==null?void 0:x.signal)==="CLIENT_SIGNAL")return!1;for(var F in p)if(ZwB.indexOf(F)>=0)return!1;p=Object.keys(p);return p.length===1&&p[0]==="loggingUrls"?!1:!0};
EUH=function(p,x,F,N,h,c,M){var f=_.uT.instance;if(f&&_.Yp(f,N))var K=_.w5(f,N,h).then(function(d){return(d==null?0:d.data)?d:{data:d}});
else K=p.requestDataForServiceEndpoint(N,h),_.r(N,tIp)||_.r(N,dPd)||_.r(N,_.vUZ)||_.r(N,JJZ)||_.no(new _.qE("No RequestBuilder for endpoint",N));var t=_.GO();t.promise.thenCatch(function(){var d=_.XG(N,"action")||_.XG(N,"command")||_.XG(N,"endpoint");d&&(d=N[d],d.hasOwnProperty("onFailureAction")?_.Kc(x,[d.onFailureAction],F):d.hasOwnProperty("onFailureCommand")&&_.Kc(x,d.onFailureCommand,F));K.cancel("Resolver promise rejected")});
K.then(function(d){if(d){var v=d.error;if(v){if(c&&c.onServerError)c.onServerError(N,d);t.reject(new _.qE("Response error",N,v))}else if(d=d.data)if(v=d.error){if(c&&c.onServerError)c.onServerError(N,d);t.reject(new _.qE("Returned error",N,v))}else{Cvd(x,F,d,N);SrH(d);if(v=bVm(d))for(var C=_.a(v),X=C.next();!X.done;X=C.next()){X=X.value;var Q=_.J().resolve(_.Bw(rJB))||Vm;if(!_.uT.instance||!Q.some(function(A){return!!_.r(N,A)})||_.S("kevlar_response_processor_allowlist_killswitch")){var b=Q=void 0;
((b=_.r((Q=X)==null?void 0:Q.commandMetadata,_.eq))==null?0:b.sendPost)?_.fc(x,[X]):_.Kc(x,[X],F)}}(C=_.r(d==null?void 0:d.frameworkUpdates,Wt))&&M&&M(C);if(c&&c.onSuccess)c.onSuccess(N,d);t.resolve(new _.Ht(d,v))}}else t.reject(new _.qE("Invalid service endpoint provided",N))},function(d){t.reject(d)});
return t.promise};
SrH=function(p){var x;(p=(x=_.r(p==null?void 0:p.onResponseReceivedCommand,_.XBM))==null?void 0:x.continuationItems)&&(p==null?void 0:p.length)===1&&_.r(p[0],gUk)&&_.wH("so_r",void 0,"search_overview_answer")};
DPZ=function(p,x,F,N,h,c){var M;return(M=x.getNetworkManager&&x.getNetworkManager()?x.getNetworkManager():_.J().resolve(_.Bw(_.CR)))?EUH(M,p,x,F,N,h,c):_.o9("No network manager.")};
Cvd=function(p,x,F,N){if(F=F.trackingParams||F.loggingDirectives&&F.loggingDirectives.trackingParams){var h;(_.r(N,QAp)||_.r(N,zM$)||_.r(N,sAZ))&&N.clickTrackingParams?h=_.fr(N.clickTrackingParams):_.S("web_graft_to_parent_command")&&N.clickTrackingParams&&(h=_.fr(N.clickTrackingParams));var c;N=(c=x.getScreenLayer)==null?void 0:c.call(x);x=_.cl().graftServerVe(F,h,N);_.Mt(p,"yt-store-grafted-ve-action",[x])}};
_.nUM=function(p){var x=new Image;return new _.cZ(function(F,N){x.addEventListener("load",function(){F()});
x.addEventListener("error",function(){N()});
x.src=p})};
yJH=function(p){return!!p};
bwJ=function(p){return!!p};
AJz=function(p,x,F){var N=p.rowIndex;N!==void 0&&_.Mt(p.hostElement,"yt-section-reactive-dismissal",[N,x,F])};
_.mx=function(p,x,F){p=_.a(p);for(var N=p.next();!N.done;N=p.next()){N=N.value;if(N===x)break;for(var h=_.a(F),c=h.next();!c.done;c=h.next())if(c=c.value,N.tagName===c||!_.S("web_event_button_role_check_killswitch")&&N.role==="button"&&c==="BUTTON")return!0}return!1};
_.o4=function(p,x,F){p=_.a(p);for(var N=p.next();!N.done;N=p.next()){N=N.value;if(N===x)break;for(var h=_.a(F),c=h.next();!c.done;c=h.next())if(N.id===c.value)return!0}return!1};
Oi=function(p,x){if(!p&&!x)return"medium";p=Math.max(p||0,x||0);return p>=256?"large":p>=96?"medium":"small"};
uSp=function(p){switch(p){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.Pt=function(){var p=_.J().resolve(_.Bw(_.j3));return p?(p=p.getCurrentPage())?_.LQ(p):null:null};
_.TO=function(){var p=_.Pt();if(!p){var x=_.J().resolve(_.Bw(_.j3)),F=x?typeof x:"no page manager";x=x?x.getCurrentPage():null;F=new _.qE("Player is missing when requested.",F,x?x.tagName:"no page");_.zj(F)}return p};
_.LQ=function(p){return p&&p.getPlayer?p.getPlayer():null};
Yrk=function(p,x){p={args:{raw_player_response:p}};x&&(p.args=Object.assign({},p.args,x));return p};
wBd=function(p){if(p.args){if(p.args.raw_player_response)return p.args.raw_player_response;if(p.args.player_response)return JSON.parse(p.args.player_response)}};
_.G$6=function(p,x){var F={url:"/watch?v="+p.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};p.playlistId&&(F.url+="&list="+p.playlistId);p.playerParams&&(F.url+="&pp="+p.playerParams);p={watchEndpoint:p,commandMetadata:{webCommandMetadata:F}};x&&(p.clickTrackingParams=x);return p};
Wy6=function(){return VI6||!!_.A9("yt.player.Application")};
mP$=function(){return HwB||!!document.querySelector("link#player-css")};
Owk=function(){function p(){VI6=!0;oU6.resolve()}
var x,F;return _.D(function(N){oU6||(oU6=new _.FT,Wy6()?p():(x=document.createElement("script"),x.addEventListener("load",p),F=_.rv(_.sd("PLAYER_JS_URL")),_.UU(x,F),document.head.appendChild(x)));return N.return(oU6.promise)})};
Lyz=function(){function p(){HwB=!0;jAH.resolve()}
if(!jAH)if(jAH=new _.FT,mP$())p();else{var x=document.createElement("link");x.id="player-css";x.addEventListener("load",p);var F=_.rv(_.sd("PLAYER_CSS_URL"));_.eP(x,F,"stylesheet");document.head.appendChild(x)}return jAH.promise};
PvE=function(){return Wy6()&&mP$()?Promise.resolve([]):Promise.all([Owk(),Lyz()])};
TfJ=function(p,x,F){var N={args:{}};p&&(N.args.raw_player_response=p);x&&(N.args.raw_watch_next_response=x);F&&(N.args=Object.assign({},N.args,F));return N};
UPr=function(p,x,F){var N=!1;N=N===void 0?!0:N;p=typeof p==="string"?_.Bt(document,p):p;var h=Bf$+"_"+_.$$(p),c=RMB[h];if(c&&N)return k$B(x,F)?c.api.loadVideoByPlayerVars(x.args||null):c.loadNewVideoConfig(x),c.api;c=new R4(p,h,x,F,void 0);RMB[h]=c;c.addOnDisposeCallback(function(){delete RMB[c.getId()]});
return c.api};
k$B=function(p,x){return x&&x.serializedExperimentFlags?x.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):p&&p.args&&p.args.fflags?p.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
iwH=function(){var p=new _.FT;p.resolved=!1;var x=p.resolve;p.resolve=function(F){p.resolved=!0;x(F)};
return p};
$Pk=function(p){var x={};Icz().install((x.document_disposed={callback:p},x))};
kp=function(p,x){if(!p&&Math.random()<=_.Ud("kevlar_unified_player_logging_threshold")){p=Error("th`"+(x?x:"Unspecified error"));if(_.S("kevlar_unified_player_throw_errors"))throw p;_.no(p)}};
_.eMk=function(){var p=_.A9("ytDebugData.callbacks");p||(p={},_.ox("ytDebugData.callbacks",p));return p};
xU6=function(p,x){var F=_.eMk();if(_.S("web_dd_iu")||pCB.includes(p))F[p]=x};
FCm=function(){return _.D(function(p){return p.return({isLeader:_.HbH(_.Bi().getState()),c:_.sd("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.sd("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
NO$=function(){var p;_.D(function(x){if(x.nextAddress==1)return xU6("APP_STATE",FCm),_.q(x,_.J().resolve(_.Ui),2);p=x.yieldResult;xU6("PI",function(){return _.D(function(F){return F.return(p.getVideoStats())})});
_.JB(x)})};
hwM=function(p){var x=_.i0(_.Of(_.Mm.location.href));p=_.i0(_.Of(p));return _.S("kevlar_clear_non_displayable_url_params")?x==iT(p):iT(x)==iT(p)};
iT=function(p){var x=_.lMp(p);p=p.slice(0);var F=["frags"];_.S("kevlar_hide_pp_url_param")&&F.push("pp");_.S("kevlar_hide_time_continue_url_param")&&F.push("time_continue");F=_.a(F);for(var N=F.next();!N.done;N=F.next())N=N.value,p=_.$Q(_.i0(p),N);return _.i0(p)+(x?"#"+x:"")};
I4=function(p,x){x=Number(x)*1E3;var F=Math.round((0,_.Lf)()),N=F.toString();p={innertubeResponse:p,serverDateTimestampMs:N,lastModifiedTimestampMs:N,expireTimestampMs:(F+x).toString()};if(x=_.sd("INNERTUBE_CONTEXT_CLIENT_NAME"))p.clientName=x;return p};
aMp=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++cXJ};
_.MUm=function(){var p=_.yR(),x=_.b0();x&&p&&_.T6(x,[p],!0)};
fMZ=function(p){return p&&DUz.some(function(x){return p.includes(x)})};
vGp=function(p){var x=_.r(p,_.Gj);if(!x)return!1;var F=x.url,N=x.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!F)return _.zj(Error("yh")),!1;if(x.target==="TARGET_NEW_WINDOW"){var h={};_.S("resolve_url_parent_tracking_params")&&(!_.oD(F)||Od(window.location.href,F))&&(h={endpoint:p,itct:p.clickTrackingParams});qZp(h);p=null;try{if(N){a:{var c=F,M=h;N=N===void 0?!1:N;M&&_.I9(c,M);var f=_.ug(c),K=_.n6(f);c!=K&&_.uO(Error("Yf`"+c));c=K;try{if(N){K=c;K=f$k(K);nR(K);p=_.L6(window,K,"_blank",
"attributionsrc");break a}}catch(C){_.yL(C)}nR(c);p=_.L6(window,f,"_blank")}KCZ(_.J().resolve(qCk),p,F);return!0}}catch(C){_.zj(C)}_.I9(F,h);h={target:"_blank",noopener:_.S("set_window_noopener_ks")&&!x.allowOpener};x=window;f=Qb(F)?F:_.ug(typeof F.href!="undefined"?F.href:String(F));p=self.crossOriginIsolated!==void 0;c="strict-origin-when-cross-origin";window.Request&&(c=(new Request("/")).referrerPolicy);K=h.noreferrer;if(p&&K&&c==="unsafe-url")throw Error("pe");c=K&&!p;K=h.target||F.target;N=
[];M=[];var t=!1;for(v in h){var d=h[v];switch(v){case "width":case "height":case "top":case "left":N.push(v+"="+d);break;case "target":break;case "noopener":case "noreferrer":d?M.push(v):(t=!0,M.push(v+"=false"));break;case "attributionsrc":N.push(v+(d?"="+d:""));break;default:N.push(v+"="+(d?1:0))}}var v=K!==void 0&&!["_blank","_self","_top","_parent",""].includes(K);v=y6()&&v;Zdk&&p&&N.length===0&&M.length>0&&!v&&!t?(M.length===2&&(M=["noreferrer"]),_.L6(x,f,K,M[0]),p=tUw()):(v=N.join(","),_.wk()&&
x.navigator&&x.navigator.standalone&&K&&K!="_self"?(v=_.KH("A"),Wz(v,f),v.target=K,c&&(v.rel="noreferrer"),((h=h.attributionsrc)||h==="")&&v.setAttribute("attributionsrc",h),h=document.createEvent("MouseEvent"),h.initMouseEvent("click",!0,!0,x,1),v.dispatchEvent(h),v=tUw()):c?(v=_.L6(x,"",K,v),x=_.n6(f),v&&(v.opener=null,x===""&&(x="javascript:''"),x='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+$p(x)+'">',x=oM(x),(h=v.document)&&h.write&&(h.write(OU(x)),
h.close()))):((v=_.L6(x,f,K,v))&&h.noopener&&(v.opener=null),v&&h.noreferrer&&(v.opener=null)),p=v);KCZ(_.J().resolve(qCk),p,F);return!0}v=_.F_(F);v=fMZ(v)||F==="https://studio.youtube.com/";x=!(!_.oD(F)||Od(window.location.href,F));h=F.indexOf("disable_polymer=1")>=0;if(x||h||v)nR(F),AG(),_.yK(F,void 0,void 0,window.top,dUk);else return _.no(new _.qE("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",p)),!1;return!0};
_.SCp=function(p,x){x=x===void 0?0:x;if(!(_.r(p,JXH)||_.r(p,CZw)||_.r(p,_.Gj)&&_.r(p,_.Gj).url))return!1;var F,N=(F=_.r(p,_.Gj))==null?void 0:F.url;F=N?{externalLinkData:{url:N}}:null;return _.cl().clickCommand(p,F,x)};
_.e3=function(p,x){return _.M4(p.entities,"subscriptionStateEntity",x)};
rXJ=function(p,x){return _.M4(p.entities,"subscriptionNotificationStateEntity",x)};
EGJ=function(p,x){return _.M4(p.entities,"upcomingEventReminderStateEntity",x)};
XCH=function(p,x){return _.M4(p.entities,"engagementToolbarSurfaceEntityPayload",x)};
gGk=function(p,x){return _.M4(p.entities,"triStateButtonStateEntityPayload",x)};
Qjr=function(p,x){return _.M4(p.entities,"commerceCartCheckoutButtonEntity",x)};
_.zwE=function(p,x){return _.M4(p.entities,"playlistLoopStateEntity",x)};
sjH=function(p,x){return _.M4(p.entities,"commandEntity",x)};
yXE=function(p,x,F,N,h){h=h===void 0?{}:h;return function(c){var M,f;var K=((M=p.loggingDirectives)==null?0:(f=M.clientVeSpec)==null?0:f.uiType)?_.vt(p.loggingDirectives.clientVeSpec.uiType):void 0;h.clickedVisualElement||(h.clickedVisualElement=K);K=nGH(p,x);F(K,c);K=_.a(K);for(M=K.next();!M.done;M=K.next()){M=M.value;f=N;var t=c,d=h;d.form?d.form.event=t:d.form={element:f,event:t};d5(M,d)}}};
nGH=function(p,x){var F=[];x?(p.toggledCommand&&F.push(p.toggledCommand),p.toggledServiceEndpoint&&F.push(p.toggledServiceEndpoint)):(p.defaultCommand&&F.push(p.defaultCommand),p.defaultServiceEndpoint&&F.push(p.defaultServiceEndpoint),p.defaultNavigationEndpoint&&F.push(p.defaultNavigationEndpoint));return F};
bd6=function(p,x){var F=p.toggledStyle||p.style,N;switch((N=x?F:p.style)==null?void 0:N.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"}}};
AXd=function(p,x){x=x.uniqueId+"-border";var F,N;var h=(N=(F=_.J().resolve(_.Bw(_.AD)))==null?void 0:F())!=null?N:!1;return{animationRef:p,animationConfig:{name:x,autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+(h?"dark":"light")+"_v2.json"}}};
_.xw=function(){return _.D(function(p){return p.nextAddress==1?_.q(p,_.J().resolve(_.Ui),2):p.return(_.J().resolve(_.pV)())})};
_.F6=function(){return Sr(function(){return{lottieEl:void 0}})};
usH=function(p,x){return p.startsWith(x.uniqueId)};
YCM=function(p){var x,F;_.D(function(N){if(N.nextAddress==1)return _.q(N,_.xw(),2);x=N.yieldResult;if((F=x)==null||!F.addEventListener)return NN(),N.return();x.addEventListener("onCueRangeEnter",p);_.JB(N)})};
wCz=function(p){var x,F;_.D(function(N){if(N.nextAddress==1)return _.q(N,_.xw(),2);x=N.yieldResult;if((F=x)==null||!F.removeEventListener)return NN(),N.return();x.removeEventListener("onCueRangeEnter",p);_.JB(N)})};
G06=function(p){var x,F,N,h,c;_.D(function(M){if(M.nextAddress==1)return _.q(M,_.xw(),2);x=M.yieldResult;if((F=x)==null||!F.addCueRange)return NN(),M.return();N=_.a(p.timings);for(h=N.next();!h.done;h=N.next())c=h.value,x.addCueRange(p.uniqueId+"-"+c,c/1E3,(c+100)/1E3);_.JB(M)})};
VUH=function(p){var x,F,N,h,c;_.D(function(M){if(M.nextAddress==1)return _.q(M,_.xw(),2);x=M.yieldResult;if((F=x)==null||!F.removeCueRange)return NN(),M.return();N=_.a(p.timings);for(h=N.next();!h.done;h=N.next())c=h.value,x.removeCueRange(p.uniqueId+"-"+c);_.JB(M)})};
WCZ=function(p){return p.join("")};
Hdd=function(){var p,x,F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,_.xw(),2);p=N.yieldResult;if((x=p)==null||!x.getPlayerState)return NN(),N.return();F=p.getPlayerState();return N.return(F===2)})};
NN=function(){_.no(new _.qE("Smartimation player does not exist or is corrupted"))};
jjd=function(p){var x=mUM;oGM.push(p);OdZ||(x(function(){for(var F=_.a(oGM),N=F.next();!N.done;N=F.next())N=N.value,N();oGM.length=0;OdZ=!1}),OdZ=!0)};
mUM=function(p){Promise.resolve().then(p)};
hR=function(p){p=_.a(xDr(p));var x=p.next().value,F=p.next().value,N=!1;_.J9(function(){return function(){N=!0}});
return[x,function(h){jjd(function(){N&&!_.S("cow_prevent_state_setter_after_cleanup_killswitch")||F(h)})}]};
PZw=function(p){function x(t){var d;return _.D(function(v){if(v.nextAddress==1)return(d=!usH(t,N)||!N.enabled)?v.jumpTo(2):_.q(v,Hdd(),3);v.nextAddress!=2&&(d=v.yieldResult);if(d)return v.return();F();setTimeout(function(){K(!1)},1500);
_.JB(v)})}
function F(){setTimeout(function(){K(!0);var t;(t=c.lottieEl)==null||t.goToAndPlay(0)},150)}
var N=p.settings;var h=p.className;p=p.children;var c=_.F6(),M=_.a(hR(!1)),f=M.next().value,K=M.next().value;N||(N={uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]},_.no(new _.qE("Smartimation Settings is undefined")));vw(function(){if(N.experimentEnabled)return N.enabled?YCM(x):(K(!1),wCz(x)),function(){wCz(x)}},[N.enabled,
N.experimentEnabled]);vw(function(){if(N.experimentEnabled)return G06(N),function(){VUH(N)}},[WCZ(N.timings)]);
return _.Z("yt-smartimation",{class:_.$L(h,LCM(f,N))},_.je(N.experimentEnabled,function(){return _.Z("div",{class:"smartimation__border"},_.Z(W7p,{className:"smartimation__border-gradient",data:AXd(c,N)}))}),_.Z("div",{class:"smartimation__content"},p))};
LCM=function(p,x){var F=["smartimation"];x.experimentEnabled&&F.push("smartimation--experiment-enabled");p&&F.push("smartimation--active-border");try{var N;var h=(N=window.CSS)!=null&&N.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){_.no(new _.qE("Smartimation CSS.supports threw an error")),h=!1}h&&F.push("smartimation--enable-masking");
return F.join(" ")};
TOM=function(){try{var p;return(p=window.CSS)!=null&&p.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(x){return _.no(new _.qE("Smartimation CSS.supports threw an error")),!1}};
$UE=function(p,x,F,N,h){var c=p.playlistId?BOk:Rwm;x=x();F=F();h=!!p.videoId&&h()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.C1(x))return k06({data:p,actionType:c,disabled:h},F);if(p.videoId&&N())return UUB({data:p,actionType:c,disabled:h});switch(x){case "TRANSFER_STATE_UNKNOWN":return UUB({data:p,actionType:c,disabled:h});case "TRANSFER_STATE_FAILED":return p.videoId?idp({data:p,actionType:c,disabled:h}):IM$({data:p,actionType:c,disabled:h});case "TRANSFER_STATE_COMPLETE":return IM$({data:p,
actionType:c,disabled:h});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return k06({data:p,actionType:c,disabled:h},F);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return p.videoId?idp({data:p,actionType:c,disabled:h}):UUB({data:p,actionType:c,disabled:h});default:return UUB({data:p,actionType:c,disabled:h})}};
ewp=function(p,x){var F=p.onTapCommand,N=_.g$(F);if(p.videoId&&_.r(N,_.lr))return _.r(N,_.lr).action=x,F;p.playlistId&&_.r(N,_.c2)&&(_.r(N,_.c2).action=x);return F};
UUB=function(p){var x=p.data;var F=p.actionType;p=p.disabled;return{text:p4z,iconType:"OFFLINE_DOWNLOAD",onTap:ewp(x,F.ACTION_ADD),disabled:p}};
k06=function(p,x){var F=p.data;var N=p.actionType;p=p.disabled;var h="OFFLINE_DOWNLOAD";x>=0&&x<=.1?h="OFFLINE_DOWNLOADING_ZERO":x>.1&&x<=.3?h="OFFLINE_DOWNLOADING_TWENTY":x>.3&&x<=.5?h="OFFLINE_DOWNLOADING_FORTY":x>.5&&x<=.7?h="OFFLINE_DOWNLOADING_SIXTY":x>.7&&x<1?h="OFFLINE_DOWNLOADING_EIGHTY":x===1&&(h="OFFLINE_PIN");return{text:x_J,iconType:h,onTap:ewp(F,N.ACTION_REMOVE_WITH_PROMPT),disabled:p}};
IM$=function(p){var x=p.data;var F=p.actionType;p=p.disabled;return{text:FPr,iconType:"OFFLINE_PIN",onTap:ewp(x,F.ACTION_REMOVE_WITH_PROMPT),disabled:p}};
idp=function(p){var x=p.data;var F=p.actionType;p=p.disabled;return{text:NQz,iconType:"OFFLINE_DOWNLOAD",onTap:ewp(x,F.ACTION_RETRY),disabled:p}};
hAm=function(){var p=_.a(hR(!1)),x=p.next().value,F=p.next().value;return function(){F(!x)}};
lLw=function(p){return Sr(function(){return{value:p}})};
ctr=function(p,x){var F=lLw(p),N=lLw(x);vw(function(){F.value=p},[p]);
vw(function(){N.value=x},x&&x.length>=1?x:[void 0]);
var h=Sr(function(){return{value:void 0}});
if(p!==F.value||N.value!==x||h.value===void 0)h.value=YJ(p,x);var c=hAm();_.J9(function(){function M(){var K=YJ(F.value,x);K!==h.value&&(h.value=K,c())}
var f=_.u8().subscribe(M);M();return f});
return h.value};
_.aC=function(p,x){return ctr(p,[x])};
_.MN=function(p,x){var F=kLJ();return _.Kn(function(){F();return YJ(p,[_.gx(x)||""])},void 0,"HaeHEc")};
aLH=function(p){var x=_.MN(_.uP,function(){return p().videoId}),F=_.MN(_.YO,function(){return p().playlistId});
return function(){return p().videoId?x:p().playlistId?F:_.a(_.hu("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
Mfm=function(p){var x=_.MN(wb,function(){return p().videoId}),F=_.MN(_.WeZ,function(){return p().playlistId});
return function(){return p().videoId?x:p().playlistId?F:_.a(_.hu(0,void 0,"K4tgOc")).next().value}};
D_M=function(p){var x=_.MN(_.TSM,function(){return p().videoId});
return function(){return p().videoId?x:_.a(_.hu(!1,void 0,"Oaxwcf")).next().value}};
fLE=function(p){var x=_.MN(oxw,function(){return p().videoId});
return function(){return p().videoId?x:_.a(_.hu("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
KPM=function(){return{}};
tfm=function(p){var x=p.backgroundLottieRef;var F=p.foregroundLottieRef;var N=p.children;var h=p.wrapperClass;p=p.disableAnimation;p=(_.S("web_animated_actions")||_.S("web_animated_actions_v2"))&&!p;return _.Z("yt-animated-action",{class:_.$L("animated-action__container",h)},_.Z("div",{class:"animated-action__content-with-background"},_.je(p,function(){return _.Z(qAp,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:{animationRef:x,animationConfig:{name:"animated-actions-background",
autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+(ZKr()?"dark":"light")+"_v5.json"}}})}),N),_.je(p,function(){return _.Z(qAp,{lottiePlayerProps:{animationRef:F,
animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(ZKr()?"dark":"light")+"_v4.json"}}})}))};
qAp=function(p){var x=p.wrapperClass;var F=p.lottieClass;p=p.lottiePlayerProps;return _.Z("div",{class:_.pQ("animated-action__lottie",x),"aria-hidden":"true"},_.Z(W7p,{className:F,data:p}))};
ZKr=function(){var p,x;return(x=(p=_.J().resolve(_.Bw(_.AD)))==null?void 0:p())!=null?x:!1};
d_E=function(){var p,x;return(x=(p=_.J().resolve(_.Bw(_.AD)))==null?void 0:p())!=null?x:!1};
Jt6=function(p,x){p=p===void 0?vrH:p;switch(x.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},p,{isOpen:x.payload});default:return p}};
SAZ=function(p,x){p=p===void 0?Cwp:p;switch(x.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},p,{isAllowed:x.payload});default:return p}};
Erz=function(p,x){p=p===void 0?rtp:p;switch(x.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},p,{errorMessage:x.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},p,{title:x.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},p,{privacy:x.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},p,{isDisabled:x.payload});default:return p}};
grJ=function(p,x){p=p===void 0?X4r:p;switch(x.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},p,{isOpen:x.payload});default:return p}};
zA$=function(p,x){p=p===void 0?QPH:p;switch(x.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},p,{isFullscreen:x.payload});case "SET_NAVIGATION_BUTTON":var F=x.payload.targetId,N=Object.assign({},p.navigationButtons);N[F]=x.payload.button;return Object.assign({},p,{navigationButtons:N});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},p,{topPanelId:x.payload});case "SET_SECONDARY_HEADER":return F=x.payload.panelId,N=Object.assign({},p.secondaryHeader),N[F]=x.payload.secondaryHeader,
Object.assign({},p,{secondaryHeader:N});default:return p}};
bKr=function(){return Ks(Object.assign({},{entities:kRH,voiceSearch:AAH,engagementPanel:zA$,bottomSheet:Jt6,cinematicSetting:SAZ,shorts:mq$,drawerLayout:grJ,createPlaylist:Erz,locationCollection:sP$,reportChannel:nrJ,reportForm:ytw},o6M))};
AtE=function(p,x){return"https://www.gstatic.com/youtube/img/lottie/"+p+"/"+x+".json"};
uzd=function(p){return{lottiePlayerProps:{animationConfig:{name:p.name,path:AtE("custom_animated_like_icon",p.path),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:p.totalFrames,lazyLoad:!0}};
YAZ=function(p,x){_.E0.addLowPriorityJob(function(){var F,N,h;return _.D(function(c){switch(c.nextAddress){case 1:return _.KM(c,2),_.q(c,sgM(),4);case 4:return _.q(c,fetch(p),5);case 5:return F=c.yieldResult,_.q(c,F.json(),6);case 6:N=c.yieldResult;I7.set(p,N);requestAnimationFrame(function(){x(N)});
_.ub(c,0);break;case 2:h=_.v9(c),_.no(h),_.JB(c)}})})};
w4k=function(p){var x={animationConfig:{},listeners:{}},F=function(){p(!0)};
x.listeners.data_failed=F;x.listeners.error=F;x.listeners.data_ready=function(){p(!1)};
return x};
Dt=function(p){var x=p.model;var F=p.subscribed;var N=p.isOverlay;var h=p.element;var c=p.commandController;var M=p.notificationState;if(F){var f,K;var t=(x==null?void 0:(f=x.buttonStyle)==null?void 0:f.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:x==null?void 0:(K=x.unsubscribeButtonContent)==null?void 0:K.buttonText}else{var d;t=x==null?void 0:(d=x.subscribeButtonContent)==null?void 0:d.buttonText}a:{var v;switch(x==null?void 0:(v=x.buttonStyle)==
null?void 0:v.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":f="S";break a;default:f="M"}}a:if(N)N="overlay";else switch(x.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":N="overlay";break a;default:N="mono"}a:if(F)var C="tonal";else switch((C=x.buttonStyle)==
null?void 0:C.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":C="tonal";break a;default:C="filled"}return{style:N,type:C,state:x.disableSubscribeButton?"disabled":"active",size:f,focused:p.focused,toggled:F,accessibilityLabel:GQB(x,F,M),buttonText:t,iconPosition:x.disableNotificationBell?"none":"leading-trailing",onTap:Vfz(x,F,h,c),disableTextEllipsis:!!p.disableTextEllipsis}};
Vfz=function(p,x,F,N){return function(h){if(x){var c;var M=p.disableNotificationBell?_.g$(p==null?void 0:(c=p.unsubscribeButtonContent)==null?void 0:c.onTapCommand):_.g$(p==null?void 0:p.onShowSubscriptionOptions)}else{var f;M=_.g$(p==null?void 0:(f=p.subscribeButtonContent)==null?void 0:f.onTapCommand)}M&&d5(M,{form:{element:F},commandController:N});h.stopPropagation()}};
GQB=function(p,x,F){if(x){if(p==null?0:p.disableNotificationBell){var N;return p==null?void 0:(N=p.unsubscribeButtonContent)==null?void 0:N.accessibilityText}switch(F){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var h;return p==null?void 0:(h=p.bellAccessibilityData)==null?void 0:h.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var c;return p==null?void 0:(c=p.bellAccessibilityData)==null?void 0:c.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var M;return p==null?void 0:(M=
p.bellAccessibilityData)==null?void 0:M.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var f;return p==null?void 0:(f=p.bellAccessibilityData)==null?void 0:f.disabledLabel;default:var K;return p==null?void 0:(K=p.unsubscribeButtonContent)==null?void 0:K.accessibilityText}}else{var t;return p==null?void 0:(t=p.subscribeButtonContent)==null?void 0:t.accessibilityText}};
fV=function(p){if(!p)return null;switch(p){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":p="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":p="NOTIFICATIONS_OFF";break;default:p="NOTIFICATIONS_NONE"}return p};
WPJ=function(p,x,F){F.subscribed!==x&&((F=F.key)&&_.wo(_.KV("subscriptionStateEntity",F,{key:F,subscribed:x})),p.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:x})),x||_.lA(p,"yt-unsubscribe-action"))};
m_z=function(p){p=_.r(_.g$(p),_.qN);var x,F,N,h;return(h=_.r(p==null?void 0:(x=p.panelLoadingStrategy)==null?void 0:(F=x.inlineContent)==null?void 0:(N=F.sheetViewModel)==null?void 0:N.content,HKz))==null?void 0:h.listItems};
ork=function(p,x){if(p.onShowSubscriptionOptions&&x&&(p=m_z(p.onShowSubscriptionOptions),p!=null&&p.length)){var F=fV(x);p.forEach(function(N){N=_.r(N,_.Zt);var h,c,M,f,K=N==null?void 0:(h=N.leadingImage)==null?void 0:(c=h.sources)==null?void 0:(M=c[0])==null?void 0:(f=M.clientResource)==null?void 0:f.imageName;N&&K&&(N.isSelected=K===F)})}};
OKp=function(p,x,F,N){x&&F?p.style.width=F+"px":!x&&N&&(p.style.width=N+"px")};
jPJ=function(p,x,F){var N;(N=p.lottieEl)==null||N.goToAndPlay(0);var h;(h=x.lottieEl)==null||h.goToAndPlay(0);_.tR(_.E0,function(){var c;(c=F.lottieEl)==null||c.goToAndPlay(0)},300)};
RAH=function(p){var x=_.oc(),F=_.oc(),N=_.oc(),h=_.F6(),c=_.F6(),M=_.F6(),f=_.J().resolve(LPr),K,t=(K=_.aC(_.e3,p.data.stateEntityStoreKey))!=null?K:void 0,d,v,C,X=(C=_.aC(rXJ,(v=(d=p.data.notificationStateEntityStoreKeys)==null?void 0:d.subsNotificationStateKey)!=null?v:""))!=null?C:void 0;K=!!p.data.disableNotificationBell;var Q=!p.data.enableSubscribeButtonPostClickAnimation;d=_.a(hR(0));var b=d.next().value,A=d.next().value;d=_.a(hR(0));var Y=d.next().value,O=d.next().value;d=_.a(hR(!1));var Fw=
d.next().value,R=d.next().value;d=_.a(hR(!1));var ld=d.next().value,pp=d.next().value,Kp=Ed(!1),sM=Ed("");d=_.a(hR(!1));var np=d.next().value,Jz=d.next().value,Y$=function(){pp(!0);_.tR(_.E0,function(){pp(!1)},1500)};
vw(function(){ld&&!Q&&t&&jPJ(h,c,M)},[ld]);
vw(function(){!Q&&t&&(p.animateWidth&&OKp(x.value,!!t.subscribed,b,Y),t.subscribed&&t.key===sM.value&&Y$(),t.key&&(sM.value=t.key))},[t==null?void 0:t.subscribed,
t==null?void 0:t.key]);var xB=Ct(function(){var Xj=p.data,AC=!(t==null||!t.subscribed),Jo=!!p.isOverlay,Bz=Fw?x.value:void 0,aJ=X==null?void 0:X.state;ork(Xj,aJ);return Dt({model:Xj,subscribed:AC,isOverlay:Jo,element:Bz,notificationState:aJ,disableTextEllipsis:!0,focused:np})},[p.data,
t,X,np,p.isOverlay,Fw]),qI=function(){var Xj=_.J().resolve(_.Bw(_.dR));Xj&&Jz(Xj.isKeyBoardInUse())},RJ=function(){Jz(!1)};
_.jl(x,"yt-service-request-sent",function(Xj){Ik();t&&(Xj.detail.endpoint.subscribeEndpoint||Xj.detail.endpoint.unsubscribeEndpoint)&&WPJ(x.value,!t.subscribed,t)});
_.mi("yt-player-subscribe",function(Xj){t&&Xj===p.data.channelId&&WPJ(x.value,!0,t)});
_.mi("yt-player-unsubscribe",function(Xj){t&&Xj===p.data.channelId&&WPJ(x.value,!1,t)});
_.mi("yt-update-subscribe-button-action",function(Xj){Xj=_.r(Xj,Pwd);t&&Xj&&Xj.channelId===p.data.channelId&&WPJ(x.value,!!Xj.subscribed,t)});
_.J9(function(){x.value&&(x.value.addEventListener("focusin",qI),x.value.addEventListener("focusout",RJ));_.vZ(_.E0,function(){Ik()});
R(!0);return function(){x.value&&(x.value.removeEventListener("focusin",qI),x.value.removeEventListener("focusout",RJ))}});
var Ik=function(){if(!Q&&p.animateWidth&&(F==null?0:F.value)&&(N==null?0:N.value)&&!Kp.value){var Xj=_.a((t==null?0:t.subscribed)?[F,N]:[N,F]),AC=Xj.next().value;Xj=Xj.next().value;AC=Math.ceil(AC.value.getBoundingClientRect().width);Xj=Math.ceil(Xj.value.getBoundingClientRect().width);A(AC);O(Xj);OKp(x.value,!(t==null||!t.subscribed),AC,Xj);Kp.value=!0}},vb=function(){var Xj=fV(X==null?void 0:X.state);
return Q||Xj!=="NOTIFICATIONS_NONE"?function(){return f(Xj)}:function(){w$(TQE)({animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:M})}};
d=function(){var Xj=fV(X==null?void 0:X.state);return Q||Xj!=="NOTIFICATIONS_NONE"?function(){return _.Z(_.DS,{icon:Xj!=null?Xj:void 0})}:function(){return _.Z(TQE,{animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:M})}};
var CZ=!(t==null||!t.subscribed)&&!K&&!(X==null||!X.state),sk=!(t==null?0:t.subscribed),Ov=sk&&!K&&!(X==null||!X.state);K={};v={};return _.Z("yt-subscribe-button-view-model",{class:_.pQ("yt-subscribe-button-view-model-wiz",(K["yt-subscribe-button-view-model-wiz__can-animate-width"]=!(t==null||!t.subscribed)&&p.animateWidth&&ld,K["yt-subscribe-button-view-model-wiz--hidden"]=!(t==null?0:t.subscribed)&&p.data.hideWhenUnsubscribed,K)),el:x},_.Z(BQM,{backgroundLottieRef:h,foregroundLottieRef:c,wrapperClass:_.pQ("yt-subscribe-button-view-model-wiz__animated-action-wrapper",
(v["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=p.animateWidth&&ld,v["yt-subscribe-button-view-model-wiz__static-width"]=!p.animateWidth,v)),disableAnimation:Q},_.Z("div",{el:F,class:_.pQ("yt-subscribe-button-view-model-wiz__container"),idomKey:p.data.channelId},_.S("web_wiz_button_shape")?_.Z(fHB,{data:xB,icon:CZ?d():void 0,secondaryIcon:CZ?function(){return _.Z(_.DS,{icon:"EXPAND"})}:void 0}):_.Z(Lo,null,function(){EKJ(xB,CZ?vb():void 0,CZ?function(){return f("EXPAND")}:
void 0)}))),_.Z("div",{el:N,
class:"yt-subscribe-button-view-model-wiz__invisible"},!p.animateWidth||Q||Kp.value?null:_.S("web_wiz_button_shape")?_.Z(fHB,{data:Dt({model:p.data,subscribed:sk,isOverlay:!!p.isOverlay,element:x.value,disableTextEllipsis:!0}),icon:Ov?function(){var Xj;return _.Z(_.DS,{icon:(Xj=fV(X==null?void 0:X.state))!=null?Xj:void 0})}:void 0,
secondaryIcon:Ov?function(){return _.Z(_.DS,{icon:"EXPAND"})}:void 0}):_.Z(Lo,null,function(){EKJ(Dt({model:p.data,
subscribed:sk,isOverlay:!!p.isOverlay,element:x.value,disableTextEllipsis:!0}),Ov?function(){return f(fV(X==null?void 0:X.state))}:function(){},Ov?function(){return f("EXPAND")}:void 0)})))};
kQM=function(p){if(p){switch(p){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":p="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":p="NOTIFICATIONS_OFF";break;default:p="NOTIFICATIONS_NONE"}return p}};
U_d=function(p,x,F){F.subscribed!==x&&((F=F.key)&&_.wo(_.KV("subscriptionStateEntity",F,{key:F,subscribed:x})),p.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:x})),x||_.lA(p,"yt-unsubscribe-action"))};
iKp=function(p){p=_.r(_.g$(p),_.qN);var x,F,N,h;return(h=_.r(p==null?void 0:(x=p.panelLoadingStrategy)==null?void 0:(F=x.inlineContent)==null?void 0:(N=F.sheetViewModel)==null?void 0:N.content,HKz))==null?void 0:h.listItems};
ILm=function(p,x){if(p.onShowSubscriptionOptions&&x&&(p=iKp(p.onShowSubscriptionOptions),p!=null&&p.length)){var F=kQM(x);p.forEach(function(N){N=_.r(N,_.Zt);var h,c,M,f,K=N==null?void 0:(h=N.leadingImage)==null?void 0:(c=h.sources)==null?void 0:(M=c[0])==null?void 0:(f=M.clientResource)==null?void 0:f.imageName;N&&K&&(N.isSelected=K===F)})}};
$_E=function(p,x,F,N){x&&F?p.style.width=F+"px":!x&&N&&(p.style.width=N+"px")};
eAr=function(p,x,F){var N;(N=p.lottieEl)==null||N.goToAndPlay(0);var h;(h=x.lottieEl)==null||h.goToAndPlay(0);_.tR(_.E0,function(){var c;(c=F.lottieEl)==null||c.goToAndPlay(0)},300)};
v2=function(){return _.J().resolve(_.Bw(p1m))||{}};
x0J=function(p){return typeof p==="function"};
_.JR=function(p){Object.keys(p);var x=function(F,N){var h=x.mapping||p;if(!F)return _.Z(_.TG,null);if(Array.isArray(F)&&(F=F1M(h,x,F),Array.isArray(F))){if(!F.length)return _.Z(_.TG,null);if(F.length>1){for(var c=!1,M=!1,f=[],K={},t=0;t<F.length;K={data$jscomp$1819:void 0},t++)if(K.data$jscomp$1819=F[t],K.data$jscomp$1819){var d=NhZ(K.data$jscomp$1819,h),v=d.mappingEntry;d=d.rendererName;v&&d&&(v&&(!x0J(v)&&hP6(v)&&(M=!0),!x0J(v)&&v.asyncId||(c=!0)),f.push(laH(K.data$jscomp$1819,v,d,x,N)))}return M&&
!c?_.Z(_.TG,null,c3w()):_.Z(_.TG,null,f)}F=F[0]}if(!F)return _.Z(_.TG,null);F=F1M(h,x,[F])[0];if(!F)return _.Z(_.TG,null);c=NhZ(F,h);h=c.mappingEntry;c=c.rendererName;return h&&c?_.Z(_.TG,null,laH(F,h,c,x,N)):_.Z(_.TG,null)};
x.mapping=p;return x};
_.aad=function(p){var x=void 0,F;for(F in p)if(p.hasOwnProperty(F)){x=F;break}return x};
F1M=function(p,x,F){var N,h=(N=v2().preProcessOptions)==null?void 0:N.idomOptions;if(!h)return F;v2();return h.preProcessPropsIdom(p,F,x.triggerRerender)};
NhZ=function(p,x){return(p=_.aad(p))?{mappingEntry:x[p],rendererName:p}:{mappingEntry:void 0,rendererName:void 0}};
laH=function(p,x,F,N,h){if(!x)return _.Z(_.TG,null);var c={};h&&h[F]&&(c=Object.assign({},h[F]));p[F]!==void 0&&(c.data=p[F]);if(x0J(x))return x.debugName||(x.debugName=F),_.Z(x,c);x.asyncId&&(N.pendingIdsMap=N.pendingIdsMap||{},N.pendingIdsMap[F]=x.asyncId);return x.templateFn?x.templateFn(c):hP6(x)?c3w():_.Z(_.TG,null)};
hP6=function(p){var x;return(x=p.showPlaceholder)!=null?x:v2().defaultShowPlaceholder};
c3w=function(){var p=v2().placeholder;return p()};
Myd=function(p,x){x=x===void 0?{shouldPersist:!0}:x;return{useUpdatableData:function(F,N){var h=[],c=_.a(_.ct(function(){var t=F();if(N!=null&&N.length&&h){var d=h.length>0;for(var v=!1,C=0;C<N.length;C++){var X=N[C]();d&&X!==h[C]&&(v=!0);h[C]=X}d=v}else d=!1;if(d)_.CV.remove(K());else if(d=_.CV.get(K()))return d;return t})),M=c.next().value,f=c.next().value,K=_.Kn(function(){return p(F())},void 0,"VFraLb");
_.rx(function(){if(K()!=null){So.set(K(),[M,f,!1]);var t=K();_.E_(function(){So.delete(t)})}});
return[M,function(t){f(t);x.shouldPersist&&_.CV.set(K(),t)}]},
getData:function(F){var N;return(N=So.get(p(F)))==null?void 0:N[0]()},
updateData:function(F,N){F=p(F);var h=So.get(F);if(!h)return!1;var c=_.a(h);h=c.next().value;c=c.next().value;N=N(h());c(N);x.shouldPersist&&_.CV.set(F,N);return!0},
useUpdatableDataIdom:function(F,N){var h=p(F),c=_.CV.get(h),M=_.a(hR(c!=null?c:F)),f=M.next().value,K=M.next().value,t=Ed(c!=null?c:F);vw(function(){if(h!=null)return So.set(h,[function(){return t.value},
function(d){K(d);t.value=d},
So.has(h)]),_.E0.addJob(function(){_.rR(_.E0,function(){var d=So.get(h);d&&(d[2]=!1)},0)},8),function(){var d;
((d=So.get(h))==null?0:d[2])||So.delete(h)}},[h]);
vw(function(){f!==F&&(K(F),t.value=F)},N?[].concat(_.se(N),[h]):[h]);
return[f,K]}}};
D0k=function(p){var x=_.a(_.hu(!0,void 0,"bKtO6d")),F=x.next().value;x.next();return function(){var N=N$(p.children());return _.Z(_.D9,{cond:F,then:function(){return N},
else:p.fallback})}()};
_.Es=function(p){var x=faz(p),F=x.data,N=x.mapping,h=x.wrapper;x=x.pendingFallback;var c=function(){return K1p(_.gx(F))},M=function(){var f=c(),K=[];
f=_.a(f);for(var t=f.next();!t.done;t=f.next()){var d=void 0;t=t.value;var v=void 0;for(d in t)if(!(!t).hasOwnProperty(d)){v=d;break}(d=v)&&K.push(d)}return K};
return p.data?_.Z(D0k,{fallback:x},function(){return _.Z(_.ft,{each:M},function(f,K){var t=h?function(v){return h(function(){return N[f](v,K)},d,K)}:function(v){return N[f](v,K)};
t.debugName||(t.debugName=String(f));if(!N[String(f)])return document.createComment("");var d=q3r(c,f,K);return _.Z(t,{data:d})})}):_.Z(_.TG,null)};
faz=function(p){var x=p.targetId||Zup(p.children);if(!p.data||!x||_.S("mweb_new_replaceables_killswitch"))return Object.assign({},p,{mapping:p.children,wrapper:void 0});var F="stamper-"+ty$++,N=function(){var f;return(f=_.gx(p.targetId))!=null?f:F};
x=_.a(d0B(function(){var f=K1p(p.data());f.targetId=N;return f})).next().value;
var h=Object.assign({},v2().replaceableMapping,p.children);if(p.replacementWrapper){var c=h.notificationTextRenderer,M=h.notificationMultiActionRenderer;c&&(h.notificationTextRenderer=function(f,K){return p.replacementWrapper(c({data:f.data},K))});
M&&(h.notificationMultiActionRenderer=function(f,K){return p.replacementWrapper(M({data:f.data},K))})}return Object.assign({},p,{data:x,
mapping:h,wrapper:function(f,K,t){return Fk6({targetId:N,stamperIndex:t},f)}})};
q3r=function(p,x,F){var N;return _.Kn(function(){var h=p()[F()];if(h)N=h[x];else return _.no(new _.qE("Stamper failed to find "+String(x)+" at index "+F()+" of data array of length "+(p().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),N;return h[x]},void 0,"DHuMIe")};
Zup=function(p){p=_.a(Object.keys(p));for(var x=p.next();!x.done;x=p.next())if(x=x.value,vWZ.includes(x)||J3z.includes(x)||CfZ.includes(x))return!0;return!1};
K1p=function(p){return p?Array.isArray(p)?p:[p]:[]};
S3Z=function(p){p=_.r(p,_.X6);return(p==null?void 0:p.iconName)&&!(p==null?0:p.title)};
X1m=function(p,x,F){var N;return _.Z(_.TG,null,p==null?void 0:(N=p.actions)==null?void 0:N.map(function(h){return _.Z("div",{class:function(){var c={"yt-flexible-actions-view-model-wiz__action":!0};c["yt-flexible-actions-view-model-wiz__action--row-action"]=x;c["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(S3Z(h))var M=!0;else if(M=_.r(h,_.gR),(M==null?0:M.isToggled)&&S3Z(M==null?void 0:M.toggledButtonViewModel)||(M==null||!M.isToggled)&&S3Z(M==null?void 0:M.defaultButtonViewModel))M=
!0;else{var f;M=((f=_.r(h,r3r))==null?0:f.playlistId)?!0:!1}c=(c["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=M,c["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=F,c);return _.pQ(c)}},EWr([h],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!x}}))}))};
gWp=function(p){var x=p.layout===1,F,N=((F=p.data)==null?void 0:F.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";F={};N=(F["yt-flexible-actions-view-model-wiz"]=!0,F["yt-flexible-actions-view-model-wiz--inline"]=!x,F["yt-flexible-actions-view-model-wiz--scrollable"]=N,F);var h,c;return _.Z("yt-flexible-actions-view-model",{class:_.pQ(p.className,N)},(h=p.data)==null?void 0:(c=h.actionsRows)==null?void 0:c.map(function(M){if(x){var f;return _.Z("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
X1m(M,x,!((f=p.data)==null||!f.respectActionIntrinsicWidth)))}return X1m(M,x,!1)}))};
Q5k=function(p){return!(p==null||!p.iconName||(p==null?0:p.title))};
zPp=function(p){var x=_.r(p.data.toggleButtonViewModel,_.gR),F,N=(F=p.data.dislikeEntityKey)!=null?F:"",h=_.aC(Qm,N);x=Object.assign({},x,{isToggled:h?h.likeStatus==="DISLIKE":x.isToggled});return _.Z("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.Z(_.QP,{data:x,buttonShapeOverrides:p.buttonShapeOverrideables,onToggle:function(c){h&&c!==(h.likeStatus==="DISLIKE")&&h.key&&_.wo(_.z7("likeStatusEntity",h.key,{likeStatus:c?"DISLIKE":"INDIFFERENT",hadUserInteraction:c}))}}))};
nW$=function(p){var x=_.S("web_supports_animations_api"),F=_.r(p.data.toggleButtonViewModel,_.gR),N,h,c,M,f=_.a(hR({numberText:(M=(N=p.likeCountEntity)==null?void 0:(h=N.likeCountIfIndifferent)==null?void 0:h.content)!=null?M:"",numberValue:Number((c=p.likeCountEntity)==null?void 0:c.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),K=f.next().value,t=f.next().value,d,v,C,X;N=_.a(hR({numberText:(X=(d=p.likeCountEntity)==null?void 0:(v=d.likeCountIfLiked)==null?void 0:v.content)!=null?
X:"",numberValue:Number((C=p.likeCountEntity)==null?void 0:C.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));d=N.next().value;var Q=N.next().value;v=_.a(hR());var b=v.next().value,A=v.next().value,Y;v=(Y=p.data.likeStatusEntityKey)!=null?Y:"";var O,Fw;Y=(Fw=(O=p.likeCountEntity)==null?void 0:O.key)!=null?Fw:"";var R=_.aC(Qm,v),ld=_.aC(eqZ,Y);O=Ct(function(){return(R==null?void 0:R.likeStatus)==="LIKE"},[R]);
vw(function(){var pp,Kp=ld&&((pp=ld.likeCountIfIndifferent)==null?void 0:pp.content)!==K.numberText;if(!b&&Kp){var sM,np;t({numberText:(np=ld==null?void 0:(sM=ld.likeCountIfIndifferent)==null?void 0:sM.content)!=null?np:"",numberValue:Number(ld==null?void 0:ld.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var Jz,Y$;Q({numberText:(Y$=ld==null?void 0:(Jz=ld.likeCountIfLiked)==null?void 0:Jz.content)!=null?Y$:"",numberValue:Number(ld==null?void 0:ld.likeCountIfLikedNumber),heightPx:36,
shouldAnimate:!0})}},[ld]);
F=Object.assign({},F,{isToggled:O});x=x&&p.likeCountEntity;return _.Z("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.Z(_.QP,{data:F,buttonShapeOverrides:p.buttonShapeOverrideables,animatedTextPropsDefault:x?K:void 0,animatedTextPropsToggled:x?d:void 0,onToggle:function(pp){s5p(pp,R,b,A)},
style:function(){return p.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
s5p=function(p,x,F,N){F&&_.E0.cancelJob(F);F=_.E0.addLowPriorityJob(function(){N(void 0)},5E3);
N(F);x&&p!==(x.likeStatus==="LIKE")&&x.key&&_.wo(_.KV("likeStatusEntity",x.key,{key:x.key,likeStatus:p?"LIKE":"INDIFFERENT",hadUserInteraction:p}))};
uRk=function(p){var x,F=_.r((x=p.data)==null?void 0:x.likeButtonViewModel,y3k),N;x=_.r((N=p.data)==null?void 0:N.dislikeButtonViewModel,bu6);var h,c=(h=_.aC(Qm,(F==null?void 0:F.likeStatusEntityKey)||""))!=null?h:F==null?void 0:F.likeStatusEntity;N=Ct(function(){var M=p.data,f;M=(M==null?void 0:(f=M.timedAnimationData)==null?void 0:f.animationTiming)||[];return{uniqueId:"like-dislike",timings:M,enabled:(c==null?void 0:c.likeStatus)==="INDIFFERENT"&&M.length>0,experimentEnabled:M.length>0}},[p.data,
c]);return _.Z("segmented-like-dislike-button-view-model",{class:_.pQ(p.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.Z(_.A36,{settings:N},_.Z("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},F?_.Z(nW$,{data:F,likeCountEntity:p.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,x?_.Z(zPp,{data:x,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
Y3J=function(p,x){var F=Uz.get(p)||{layerNode:x};F.layerNode=x;guJ(p,F);p.getScreenLayer=function(){return ss(F.layerNode)}};
w1H=function(p){var x;p=p.parentNode;for(var F;p&&((x=Uz.get(p))==null||!x.isRenderer)&&!((F=p.polymerController)!=null?F:p).isRenderer_;)p=p.parentNode||p.host;if(x=p)return Uz.get(x)};
Gfp=function(p){if(p){Uz.delete(p);var x=_.J().resolve(kl);Xpw(p,x)}};
W1z=function(p,x,F){if(F===void 0?0:F){if(F=p.getAttribute("client-ve-type"),x.data&&!x.disableReactiveLogging||F)_.SO(function(){Vyp(p,_.gx(x.data))}),_.E_(function(){return void Gfp(p)})}else typeof x.data!=="function"&&Vyp(p,x.data)};
Vyp=function(p,x){HuB++;m0E(p,x)&&_.E0.addJob(function(){_.rR(_.E0,function(){if(m0E(p,x)&&p.ownerDocument.documentElement===document.documentElement&&p){var F;if(p.getAttribute("layer")){var N=F=Number(p.getAttribute("layer")),h=Uz.get(p);h?h.layerNode.layer=N:Y3J(p,new oW$(N));(N=w1H(p))&&(h=Uz.get(p))!=null&&(h.layerNode.parent=N.layerNode)}else if(F=Uz.get(p))F=ss(F.layerNode);else{F=ss;N=new oW$;if(h=w1H(p))N.parent=h.layerNode;Y3J(p,N);F=F(N)}F!=null||(F=0);N=p.getAttribute("client-ve-type");
h=Number(N);var c=!1;N=!1;var M=Uz.get(p),f;if((f=M)&&!(f=M[Ouk]!==x)&&(f=h)){var K;f=((K=Uz.get(p))==null?void 0:K.clientVeType)===void 0}f&&(M[Ouk]=x,c=N=M.isRenderer=!0);Uz.has(p)&&(Uz.get(p).clientVeType=h);p.visualElement&&(N=!0);(K=x==null?void 0:x.loggingDirectives)&&K.clientVeSpec&&(M=j5m(_.hD(),p),K=_.L1B(_.cl(),K,M||void 0,F))&&(p.visualElement=K);!p.visualElement&&h&&c&&(p.veType=h,K=void 0,_.S("wiz_next_client_ve_parent_fix")&&(K=j5m(_.hD(),p)),K=_.lz(_.cl(),p,K,F),p.visualElement=K);
N&&(K=_.J().resolve(kl),sFE(p,{data:x,observer:K,layer:F,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
m0E=function(p,x){return(x==null?0:x.trackingParams)||(x==null?0:x.loggingDirectives)||_.r(x==null?void 0:x.rendererContext,_.nTM)||p.getAttribute("client-ve-type")?!0:!1};
Thz=function(p){return _.S("cow_logging_in_component_wrapper")?function(x){W1z(x,p,!0)}:Pf$};
Pf$=function(){};
_.Bhw=function(p,x){return _.M4(p.entities,"accountLinkStatusEntity",x)};
RPz=function(p,x){return _.M4(p.entities,"hatsSurveyEntity",x)};
kfM=function(p,x){return _.M4(p.entities,"hatsSurveyStateEntity",x)};
U0r=function(p,x){return _.M4(p.entities,"quantityIncrementerEntity",x)};
pVE=function(p){var x=p.data;var F=p.className===void 0?"":p.className;var N=p.setMinWidth;p=p.forceIconOnly;var h=_.oc(Thz({data:x}));N=N?"ytwAccountLinkButtonViewModelHostMinWidth":"";var c=_.MN(_.Bhw,function(){var v;return(v=_.gx(x).accountLinkStatusEntityKey)!=null?v:""}),M=_.MN(_.Bhw,function(){var v;
return(v=_.gx(x).accountLinkStatusSecondaryEntityKey)!=null?v:""}),f=function(){if(!_.S("web_account_link_secondary_killswitch")){var v,C;
return((v=c())==null?void 0:v.linked)||((C=M())==null?void 0:C.linked)}var X;return(X=c())==null?void 0:X.linked};
_.rx(function(){var v=c();if(v){var C=iuB(new Ia$,$0B(new ePm,!!v.linked));_.xw().then(function(X){X&&(X.setAccountLinkState(_.Xc(C.JSC$9906_serializeBinary(),4)),X.updateAccountLinkingConfig(!!v.linked))})}});
var K=function(){return _.r(_.gx(x).toggleButtonViewModel,_.gR)};
_.mi("yt-signal-action-show-account-link-dialog",function(){if(K()){var v=f()?K().toggledButtonViewModel:K().defaultButtonViewModel;v=_.r(v,_.X6);var C;if((C=c())==null?0:C.isWarning){C=_.r(_.gx(x).warningButtonViewModel,_.X6);if(!C){_.uO(Error("zh"));return}v=C}var X;(C=_.g$((X=v)==null?void 0:X.onTap))&&_.tG([C],h.value)}else _.uO(Error("Ah"))});
var t=function(){var v=K();return Object.assign({},v,{isToggled:f()})},d=p?{iconPosition:"icon-only"}:{};
return _.Z("account-link-button-view-model",{class:_.pQ("ytwAccountLinkButtonViewModelHost",F,N),el:h,"button-renderer":!0},_.Z("div",null,_.Z(_.D9,{cond:function(){var v;if((v=c())==null?0:v.isWarning)return(v=_.r(_.gx(x).warningButtonViewModel,_.X6))||_.uO(Error("zh")),v},
then:function(v){return _.Z(_.nV,{data:v,buttonOverrides:d})},
else:function(){return _.Z(_.QP,{data:t,buttonShapeOverrides:d})}})))};
x2M=function(p){switch(p){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
FKJ=function(p){switch(p){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}};
NCp=function(p){switch(p){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"}};
crw=function(p){var x=p.data;var F=p.children;var N=hQd(x),h=(x==null?0:x.thumbnailSize)?x.thumbnailSize:"medium";p=!(x==null||!x.doubleStack);var c=!(x==null||!x.experimentEnabled),M={},f=(M["collections-stack-wiz__collection-stack1"]=!0,M[lbH(h)]=!0,M);if(x==null?0:x.customClassName1stStack)f[x.customClassName1stStack]=!0;h={};var K=(h["collections-stack-wiz__collection-stack2"]=p,h["collections-stack-wiz__collection-stack2--responsive-mode"]=x==null?void 0:x.enableResponsiveMode,h);if(x==null?
0:x.customClassName2ndStack)K[x.customClassName2ndStack]=!0;return _.Z("yt-collections-stack",{class:"collections-stack-wiz",hidden:!c},_.je(x,function(){return _.Z("div",null,_.je(x.doubleStack,function(){return _.Z("div",{class:_.pQ(K),style:"background-color:"+N})}),_.Z("div",{class:_.pQ(f),
style:"background-color:"+N}),F)}))};
lbH=function(p){switch(p){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""}};
hQd=function(p){if(!p)return"";var x,F=(x=_.J().resolve(_.Bw(_.AD)))==null?void 0:x(),N;if(!F&&((N=p.vibrantColorPalette)==null?0:N.iconInactiveColor))return zF(p.vibrantColorPalette.iconInactiveColor,"1");var h;return F&&((h=p.darkColorPalette)==null?0:h.iconInactiveColor)?zF(p.darkColorPalette.iconInactiveColor,"1"):p.color?zF(p.color,"1"):p.sampledThumbnailColor?(p=p.sampledThumbnailColor,"rgba("+p.red+","+p.green+","+p.blue+");"):""};
_.yP=function(p,x){if(!p.includes("DATE_PLACEHOLDER"))return p;var F=new Date(0);F.setUTCSeconds(x);return p.replace("DATE_PLACEHOLDER",abH(F))};
_.br=function(p){p=_.M8M(p);return _.S("web_watch_enable_single_column_grid_view")?p:!1};
_.M8M=function(p){return p.watch.isWatchNarrowWidth};
D2r=function(p,x,F){return function(N){var h=p.command;h&&(d5(h,{form:{element:F}}),x([h],N))}};
KKp=function(p,x,F,N,h){return function(c){var M=fbM(p,F);M&&d5(M,{form:{element:N},commandController:h});x&&x.stopPropagation&&c.stopPropagation()}};
fbM=function(p,x){if(p.signInEndpoint&&!_.S("web_subscribe_sign_in_endpoint_killswitch"))return p.signInEndpoint;if(x){if(p.serviceEndpoints)return p.serviceEndpoints[1];if(p.onUnsubscribeEndpoints)return p.onUnsubscribeEndpoints[0]}else{if(p.serviceEndpoints)return p.serviceEndpoints[0];if(p.onSubscribeEndpoints)return p.onSubscribeEndpoints[0]}};
qhH=function(p,x){var F,N,h,c;x=x&&((F=p.unsubscribeAccessibility)==null?void 0:(N=F.accessibilityData)==null?void 0:N.label)||((h=p.subscribeAccessibility)==null?void 0:(c=h.accessibilityData)==null?void 0:c.label);return p.longSubscriberCountText?[x,_.Pi(p.longSubscriberCountText)].filter(function(M){return M}).join(" "):x};
AR=function(p,x){return x||(p==null?0:p.isChannelDelegate)?"disabled":"active"};
ZLk=function(p,x){var F;switch((F=p.style)==null?void 0:F.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:AR(p)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:AR(p)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:AR(p,!0)};case "OVERLAY":return x?{style:"overlay",type:"tonal",state:AR(p)}:{style:"overlay",type:"filled",state:AR(p)};default:return x?{style:"mono",type:"tonal",state:AR(p)}:{style:"mono",type:"filled",state:AR(p)}}};
t8w=function(p,x){var F=p.map(function(N){return N.toString()});
return _.h0(function(N){if(F.includes(N.key)){x&&N.preventDefault();var h;(h=N.currentTarget)==null||h.click()}})};
_.ur=function(){return t8w(["Enter"])};
_.d2w=function(){return t8w(["Enter"," "],!0)};
_.Yw=function(p){if(p.composedPath)return p.composedPath();if(!p.__composedPath){for(var x=[],F=p.target;F;)x.push(F),F=F.parentNode;x.push(window);p.__composedPath=x}return p.__composedPath};
_.vRM=function(p,x,F){p=_.a(p);for(var N=p.next();!N.done;N=p.next()){N=N.value;if(N===x)break;for(var h=_.a(F),c=h.next();!c.done;c=h.next())if(c=c.value,N.tagName===c||N.role==="button"&&c==="BUTTON")return!0}return!1};
C_Z=function(p,x){var F,N=(F=x.observer)!=null?F:_.J().resolve(kl);if(p){F=JrM(p);var h=[];x.showOption&&h.push(N.observe(p,function(){x.visibilityCallback(!0)},x.showOption));
x.hideOption&&h.push(N.observe(p,function(){x.visibilityCallback(!1)},x.hideOption));
x.prescanOption&&x.prescanCallback&&h.push(N.observe(p,function(){x.prescanCallback()},x.prescanOption));
var c;F.visibilityMonitorKeys=((c=F.visibilityMonitorKeys)!=null?c:[]).concat(h)}};
JrM=function(p){var x;return(x=p.polymerController)!=null?x:p};
_.H2=function(p){return!!_.wR(p)};
_.mU=function(p,x){var F=Nzk();vw(function(){var N=p.value;if(N)return Shp(N,x),rrr(N,x,void 0,void 0,void 0,F)},[x])};
_.oC=function(p,x,F,N,h,c){var M=Nzk();_.rx(function(){var f=p.value;f&&(Shp(f,x(),c),f=rrr(f,x(),F,N,h,M),_.E_(f))})};
Shp=function(p,x,F){var N=ERH(x),h=XVZ(x);x=N&&gRB;var c=h&&Qem;(N||h)&&C_Z(p,{visibilityCallback:function(M){var f=_.J().resolve(_.RD);M&&N?f.resolveCommand(N,{form:{element:F?p:void 0},disableClickTracking:!0}):!M&&h&&f.resolveCommand(h,{form:{element:F?p:void 0},disableClickTracking:!0})},
showOption:x,hideOption:c})};
rrr=function(p,x,F,N,h,c){var M=new Map;if(x=_.wR(x)){var f;p=(N==null?void 0:(f=N.onTap)==null?void 0:f.value)||p;F=zQH(x,p,F==null?void 0:F.onTap,h,c);p.addEventListener("click",F);M.set("click",F)}return function(){for(var K=_.a(M),t=K.next();!t.done;t=K.next()){var d=_.a(t.value);t=d.next().value;d=d.next().value;p.removeEventListener(t,d)}}};
_.wR=function(p){var x;return(p=(x=_.r(p,seZ))==null?void 0:x.onTap)&&_.g$(p)};
ERH=function(p){var x;return(p=(x=_.r(p,seZ))==null?void 0:x.onVisible)&&_.g$(p)};
XVZ=function(p){var x;return(p=(x=_.r(p,seZ))==null?void 0:x.onHidden)&&_.g$(p)};
zQH=function(p,x,F,N,h){var c=function(f){_.J().resolve(_.RD).resolveCommand(p,f)},M=function(f){N&&_.vRM(_.Yw(f),x,N)||c(f.target?{form:{element:f.target,
sourceData:p,mutationContext:h}}:void 0)};
F&&(M=function(f){F(f,c)});
return M};
nRp=function(p){var x=p.data;var F=p.className;p=p.alwaysShow;var N=_.oc();_.mU(N,x.rendererContext);a:switch(x.style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var h="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:h="ytThumbnailHoverOverlayViewModelStyleCover"}h=_.pQ("ytThumbnailHoverOverlayViewModelScrim",h);var c,M=(c=_.r(x==null?void 0:x.rendererContext,_.Os))==null?void 0:c.label,f=_.wR(x.rendererContext)!==void 0;c=f?"button":void 0;f=f?0:void 0;var K=_.d2w(),t={};return _.Z("thumbnail-hover-overlay-view-model",
{el:N,class:_.pQ("ytThumbnailHoverOverlayViewModelHost",F,(t.ytThumbnailHoverOverlayViewModelHostForceHover=p,t)),"aria-label":M,role:c,tabindex:f,"on:keypress":K},_.Z("div",{class:h},x.icon?_.Z(_.VE,{data:x.icon,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"}):null,x.text?_.Z(_.KQ,{text:x.text,className:"ytThumbnailHoverOverlayViewModelText"}):null))};
yrw=function(p){switch(p){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}};
bLH=function(p){switch(p){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""}};
ArB=function(p){switch(p){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""}};
uWk=function(p){switch(p){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}};
Yhm=function(p){return p==="medium"||p==="48"||p==="large"||p==="extra-large"||p==="extra-extra-large"||p==="giant"};
wVr=function(p){return!!((p==null?0:p.includes(3))||(p==null?0:p.includes(5)))};
V8H=function(p){return{size:GPE(p.data.avatarImageSize),onTap:p.onTap,decorations:p.decorations||[],badgeText:p.badgeText,accessibilityText:p.accessibilityText,avatarButtonCustomClassName:p.avatarButtonCustomClassName}};
GPE=function(p){switch(p){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
WKM=function(p){function x(){F.endpoint&&_.su(F.endpoint)}
var F=p.data;var N=p.decorations;var h=p.avatarButtonCustomClassName;p=p.isOverlay;return _.Z("avatar-view-model",null,F.image?_.Z(jo,{data:V8H({data:F,onTap:F.endpoint?x:void 0,decorations:N,badgeText:void 0,accessibilityText:F.accessibilityText,avatarButtonCustomClassName:h}),image:F.image,iconType:"RADAR_LIVE",overlays:function(){return _.Z(LV,{data:F})},
isOverlay:p}):null)};
m2m=function(p){var x=p.data;var F=p.avatar;var N=p.onTap;var h=p.element;p=p.commandController;N=N?HLM(N,h,p):void 0;h=[];x.liveData&&h.push(0);var c;p=(c=x.liveData)==null?void 0:c.liveBadgeText;var M;c=(M=_.r(x.rendererContext,_.Os))==null?void 0:M.label;return V8H({data:F,onTap:N,decorations:h,badgeText:p,accessibilityText:c?c:x.a11yLabel})};
HLM=function(p,x,F){return function(){d5(p,{form:{element:x},commandController:F})}};
oRp=function(p,x,F,N){return x?m2m({data:p,avatar:x,onTap:F,element:N}):{size:"medium"}};
OLp=function(p){var x=p.data;p=p.className;var F=_.O$(),N=_.r(x.avatar,_.P2),h=_.wR(x.rendererContext),c,M=oRp(x,N,h,(c=F.value)!=null?c:void 0);return _.Z("yt-decorated-avatar-view-model",{class:_.pQ("yt-decorated-avatar-view-model-wiz",p),el:F},_.je(N==null?void 0:N.image,function(){var f,K,t;return _.Z(jo,{data:M,image:N.image,iconType:"RADAR_LIVE",overlays:function(){return _.Z(LV,{data:N})},
idomKey:N==null?void 0:(f=N.image)==null?void 0:(K=f.sources)==null?void 0:(t=K.at(0))==null?void 0:t.url})}))};
jed=function(p){switch(p){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
LKp=function(p){switch(p){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""}};
P_z=function(p){var x=0;p.avatars&&(x+=p.avatars.length);p.decoratedText&&(x+=1);return x};
BCZ=function(p){var x=p.data,F=x.avatars,N=x.text,h=x.rendererContext,c=x.decoratedText,M=(x=_.oc())&&_.H2(h);_.mU(x,h);var f=P_z(p.data)>1,K,t=F&&F.length>0?jed((K=_.r(F[0],_.P2))==null?void 0:K.avatarImageSize):0,d,v=F&&F.length>0?(d=_.r(F[0],_.P2))==null?void 0:d.avatarImageSize:"AVATAR_SIZE_UNKNOWN",C,X;K={};return _.Z("yt-avatar-stack-view-model",{el:x,class:_.pQ("yt-avatar-stack-view-model-wiz",p.className,(K["yt-avatar-stack-view-model-wiz--tappable"]=M,K["yt-avatar-stack-view-model-wiz--is-overlay"]=
p.isOverlay,K["yt-avatar-stack-view-model-wiz--medium-text"]=p.useMediumText,K)),tabindex:M?0:void 0,role:M?"link":void 0,"aria-label":(X=(C=_.r(h,_.Os))==null?void 0:C.label)!=null?X:""},_.je(F&&!p.hideAvatar,function(){return _.Z("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.je(c,function(){var Q={};return _.Z("div",{class:_.pQ("yt-avatar-stack-view-model-wiz__text-container",(Q["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=v==="AVATAR_SIZE_XXS"||v==="AVATAR_SIZE_XS",
Q["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=p.isOverlay&&(v==="AVATAR_SIZE_XXS"||v==="AVATAR_SIZE_XS"),Q)),style:"width: "+t+"px; height: "+t+"px"},_.Z(_.KQ,{text:c,className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}),F.slice().reverse().map(function(Q){return _.Z("div",{class:LKp(v)},TCk(Q,{avatarViewModel:{decorations:p.decorations?p.decorations:f?[3]:[],
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:p.isOverlay}}))}))}),_.je(N,function(){return _.Z(_.KQ,{text:N,
className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}))};
RQp=function(p){switch(p){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
kPk=function(p){switch(p){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""}};
U2m=function(p){switch(p){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
iLd=function(p){var x=p.data;return _.Z("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:p.hidden===void 0?!1:p.hidden},_.Z(_.KQ,{text:x.title,className:"yt-thumbnail-overlay-title-view-model__title"}),x.subtitle?_.Z(_.KQ,{text:x.subtitle,className:"yt-thumbnail-overlay-title-view-model__subtitle"}):null)};
Ibp=function(p){switch(p){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"}};
$2z=function(p){var x=p.data;p=p.hidden===void 0?!1:p.hidden;var F={};p={class:_.pQ("yt-page-indicator-view-model",(F["yt-page-indicator-view-model__indicator--hidden"]=!x.indicatorCount,F)),hidden:p};if(x.indicatorCount){F=[];for(var N=0;N<x.indicatorCount;N++){var h={};h=_.pQ("yt-page-indicator-view-model__indicator",(h["yt-page-indicator-view-model__indicator--selected"]=x.selectedIndex===N,h));F.push(_.Z("div",{class:h}))}x=_.Z(_.TG,null,F)}else x=_.Z(_.TG,null);return _.Z("yt-page-indicator-view-model",
p,x)};
pNp=function(p){p&&(eQ6(p)?delete p.inlinePlayerData:"inlinePlaybackEndpoint"in p&&delete p.inlinePlaybackEndpoint)};
xOz=function(p){if("accessibilityText"in p)return p.accessibilityText||"";if("title"in p){var x,F,N;return((x=p.title)==null?void 0:(F=x.accessibility)==null?void 0:(N=F.accessibilityData)==null?void 0:N.label)||""}if("accessibility"in p){var h,c;return((h=p.accessibility)==null?void 0:(c=h.accessibilityData)==null?void 0:c.label)||""}return""};
eQ6=function(p){return"inlinePlayerData"in p};
T7=function(p){return new F2r(p)};
_.NLp=function(p,x,F,N,h,c){var M=function(t){t.preventDefault()},f=function(){var t=p.value;
if(t)return(t._data=x)?(t.addEventListener("touchstart",SGZ,{passive:!0}),t.addEventListener("click",Et6),x.clickTrackingParams&&(t.params={itct:x.clickTrackingParams}),X3H(t,x),Wz(t,gt6(x)||"")):t.addEventListener("click",M),function(){x?(t.removeEventListener("touchstart",SGZ,{passive:!0}),t.removeEventListener("click",Et6)):t.removeEventListener("click",M)}},K=function(){var t=p.value;
if(t){var d=_.zT({innertubeCommand:x,elementsCommand:F,forceNewState:N,stopPropagation:c});if(d)return t._data=d._data,d["aria-haspopup$"]&&t.setAttribute("aria-haspopup",d["aria-haspopup$"].toString()),d["force-new-state$"]&&t.setAttribute("force-new-state",d["force-new-state$"].toString()),d.href$&&Wz(t,d.href$),d.rel$&&(t.rel=d.rel$),d.role$&&t.setAttribute("role",d.role$),d.target$&&(t.target=d.target$),t.params=d.params,d.onclick&&t.addEventListener("click",d.onclick),d.onpointerdown&&t.addEventListener("onpointerdown",
d.onpointerdown),function(){d.onclick&&t.removeEventListener("click",d.onclick);d.onpointerdown&&t.removeEventListener("onpointerdown",d.onpointerdown)}}};
vw(h?K:f,[x,F])};
hXM=function(p){var x=p.children;var F=p.className;var N=p.dir;var h=p.style;var c=p.role;var M=p.ariaSelected;var f=p.ariaLabel;var K=p.ariaHidden;var t=p.ariaLabelledby;var d=p.ariaDescribedby;var v=p.command;var C=p.elementsCommand;var X=p.forceNewState;var Q=p.isPlaceholder;var b=p.tabIdentifier;var A=p.target;var Y=p.tabIndex;var O=p.useATagConfig;var Fw=p.stopPropagation;p=_.oc();_.NLp(p,v,C,X,O,Fw);C=_.h0(function(){return Fw===!1});
return _.Z("a",{el:p,"on:click":C,class:F,style:h,dir:N,role:c?c:v?void 0:"group","aria-hidden":K?!0:void 0,"aria-label":f,"aria-labelledby":t,"aria-describedby":d,"aria-selected":M,tabindex:Y!==void 0?Y:void 0,target:A,"tab-identifier":b,"force-new-state":X?!0:void 0,"is-placeholder":Q?!0:void 0},x)};
c1J=function(p){var x=p.data;p=_.h0(function(){var h=_.r(x.onTap,_.XY);h&&_.J().resolve(_.RD).resolveCommand(h);return!1});
var F={sources:[{url:x.thumbnailUrl,width:120,height:90}]},N=x.rating&&x.ratingA11yLabel&&x.reviewsCount&&x.reviewsCountA11yLabel;return _.Z("place-data-view-model",null,x.placeName&&x.placeCategory?_.Z("div",{class:"yt-spec-place-data-view-model-shape","on:click":p},_.Z(_.VE,{data:F,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail "+lAp}),_.Z(hXM,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.r(x.onTap,_.XY),forceNewState:!0,
useATagConfig:!0},_.Z("h3",{class:"yt-spec-place-data-view-model-shape__name",title:x.placeName},x.placeName)),_.Z("div",{class:"yt-spec-place-data-view-model-shape__metadata"},N?_.Z("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.Z("span",{class:"score",title:x.ratingA11yLabel},x.rating),_.Z("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.Z(_.DS,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.Z("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:x.reviewsCountA11yLabel},x.reviewsCount)):_.Z("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.Z("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.Z("span",{class:"category",title:x.placeCategory},x.placeCategory)))):null)};
aAM=function(p){return function(x){p&&(p.thumbnailElRef=x.thumbnailElRef,p.thumbnail=x.thumbnail,p.thumbnailOverlays=x.thumbnailOverlays,p.thumbnailSize=x.thumbnailSize)}};
MFd=function(p){var x;return(x=p.sharedUi)==null?void 0:x.animatedThumbnailEnabled};
DOm=function(p){var x;return(x=p.sharedUi)==null?void 0:x.inlinePreviewEnabled};
_.fAp=function(p){var x;return(x=p.sharedUi)==null?void 0:x.currentPageSubType};
K2p=function(){return _.Z("div",{class:"yt-pinking"},_.Z("svg",{class:"yt-pinking__pinking-left"},_.Z("defs",null,_.Z("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.Z("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.Z("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.Z("svg",{class:"yt-pinking__pinking-right"},_.Z("defs",null,_.Z("pattern",{id:"right-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.Z("polygon",{class:"yt-pinking__pinking",
points:"4,0 0,4 4,8"}))),_.Z("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))};
qpJ=function(p){switch(p){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"}};
J1r=function(p){var x=[],F=p.data,N=Oi(p.width,p.height),h=_.J().resolve(_.Bw(Zzm)),c=_.oc(function(){x.push("elRef.value set")});
_.J9(function(){x.push("onInit");return function(){x.push("onCleanup")}});
_.J9(function(){var b;(b=p.playbackRef)==null||b.call(p,{thumbnailElRef:c,thumbnail:F.image,thumbnailOverlays:F.overlays,thumbnailSize:N})});
var M=ctr(MFd),f,K=(f=p.aspectRatio)!=null?f:0,t=(f=(F.image?_.ljw(F.image):K)<=1&&K===0)?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL",d=function(){c.value||_.no(new _.qE("Thumbnail elRef.value is null",x.join("\n")));h&&c.value&&h(c.value)},v={};
a:{if(!p.disableRounding&&!p.isClip)switch(N){case "large":var C="yt-thumbnail-view-model--large";break a;case "small":C="yt-thumbnail-view-model--small";break a;default:C="yt-thumbnail-view-model--medium";break a}C=void 0}K=_.pQ("yt-thumbnail-view-model",p.className,qpJ(K),C,(v["yt-thumbnail-view-model--cinematic"]=f,v));v=void 0;var X,Q;(C=f?(X=p.data)==null?void 0:(Q=X.backgroundColor)==null?void 0:Q.lightTheme:void 0)&&(v="background-color:"+zF(C,"1")+";");return _.Z("yt-thumbnail-view-model",
{class:K,style:v,el:c},_.je(f,function(){return _.Z("div",{class:"yt-thumbnail-view-model__blurred-image"},_.Z(_.VE,{data:F.image,alt:"",contentMode:t,targetWidth:p.width,onload:d}))}),_.Z("div",{class:"yt-thumbnail-view-model__image"},_.Z(_.VE,{data:F.image,
alt:"",contentMode:t,targetWidth:p.width,onload:d}),null),tFd(F.overlays,{thumbnailOverlayBadgeViewModel:{thumbnailSize:N,isClip:p.isClip},thumbnailOverlayButtonViewModel:{lockupExperiments:p.lockupExperiments}}),_.je(p.hovered,function(){return dO6(F.overlays,{thumbnailHoverOverlayViewModel:{alwaysShow:!0}})}),_.je(p.hovered&&M,function(){return vA6(F.overlays)}),_.je(p.isClip,function(){return K2p()}))};
CS6=function(p){switch(p){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"}};
gAm=function(p){var x=_.a(hR(-1)),F=x.next().value,N=x.next().value,h=Sr(function(){return new Sp6(N)});
_.J9(function(){r1k(h,p.data.thumbnails.length);return function(){EAJ(h)}});
var c;return _.Z("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},(c=p.data.thumbnails)==null?void 0:c.map(function(M,f){var K=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];!p.data.primaryThumbnail&&f===0&&K.push("yt-collection-thumbnail-slideshow--first-slide");f<=F&&K.push("yt-collection-thumbnail-slideshow--show-slide");f=K.join(" ");return _.Z("div",{class:f},XNz(M,{thumbnailViewModel:{disableRounding:p.disableRounding}}))}))};
zXw=function(p){var x=_.a(hR(!1)),F=x.next().value,N=x.next().value;_.J9(function(){if(p){var h=_.J().resolve(_.Bw(QTw));if(h){var c={triggeringElement:p,onDwellTriggeredFn:function(){N(!0)},
onDwellEndFn:function(){N(!1)}};
h.registerElement(c);return function(){h.unregisterElement(c)}}}});
return F};
sTB=function(p){var x=_.a(_.hu(!1,void 0,"RIOonf")),F=x.next().value,N=x.next().value;_.J9(function(){var h=p==null?void 0:p();if(h){var c=_.J().resolve(_.Bw(QTw));if(c){var M={triggeringElement:h,onDwellTriggeredFn:function(){N(!0)},
onDwellEndFn:function(){N(!1)}};
c.registerElement(M);_.E_(function(){c.unregisterElement(M)})}}});
return F};
bzp=function(p){var x,F=(x=_.J().resolve(_.Bw(_.AD)))==null?void 0:x(),N=zXw(p.triggeringElement),h=!!p.data.primaryThumbnail,c=function(){var f;return _.Z("div",null,nAd(p.data.primaryThumbnail,{thumbnailViewModel:{width:p.width,height:p.height,aspectRatio:p.aspectRatio,disableRounding:p.disableRounding,className:h?"yt-collection-thumbnail-view-model--has-stacks":void 0,hovered:p.hovered,playbackRef:p.playbackRef}}),_.je(N&&((f=p.data.thumbnails)==null?void 0:f.length),function(){return _.Z("div",
{class:"yt-collection-thumbnail-view-model__slideshow"},_.Z(y1w,{data:p.data,disableRounding:!h}))}))};
x=p.data.stackColor;var M={experimentEnabled:h,thumbnailSize:Oi(p.width,p.height),doubleStack:p.doubleStack,color:F?x==null?void 0:x.darkTheme:x==null?void 0:x.lightTheme,enableResponsiveMode:!1};return _.Z("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.je(h,function(){return _.Z(crw,{data:M},c())}),_.je(!h,c))};
A1Z=function(p,x,F){F?F(x):_.su(x,p.target?{form:{element:p.target}}:void 0)};
_.B2=function(p,x,F,N){_.rx(function(){var h=p.value;if(h){var c=new Map,M,f=(M=x())==null?void 0:M.onTap;f&&(M=function(K){a:{var t=K.composedPath();t=_.a(t);for(var d=t.next();!d.done;d=t.next()){d=d.value;if(d===h)break;if(d.className.indexOf("HostIsClickableAdComponent")>=0||d.tagName==="A".toString()||d.tagName==="BUTTON".toString()){t=!0;break a}}t=!1}t||(_.S("enable_square_image_components_ui_web_with_float_button")?_.hG(p.value,"yt-navigate",{endpoint:_.g$(f)}):A1Z(K,f,F))},(N==null?0:N())||
_.S("enable_web_home_top_landscape_image_layout_level_click")?(h.addEventListener("tap",M),c.set("tap",M)):(h.addEventListener("click",M),c.set("click",M)));
_.E_(function(){for(var K=_.a(c),t=K.next();!t.done;t=K.next()){var d=_.a(t.value);t=d.next().value;d=d.next().value;h.removeEventListener(t,d)}})}})};
uvE=function(p,x){var F,N=(F=p.interaction)==null?void 0:F.onTap;if(p=_.zT({elementsCommand:N,forceNewState:!0,skipOnClick:!0}))return p.onclick=function(h){tJH(h)&&(h.preventDefault(),N&&A1Z(h,N,x))},vtJ(p)?p:void 0};
YpM=function(p){switch(p){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
wN$=function(p){switch(p){case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
Gwp=function(p){switch(p){case "AD_BUTTON_STYLE_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.VFH=function(p){return _.S("rich_grid_enable_dynamic_offset")&&p?Math.max(Math.round((p-_.Ud("rich_grid_dynamic_offset_anchor_width",1300))/100*_.Ud("rich_grid_dynamic_offset_offset_per_100",10)),_.Ud("rich_grid_dynamic_offset_lower_bound",-60)):0};
W2M=function(p,x){switch(x){case 4:return 16;case 1:return p<528?16:p<1024?32:48;case 2:return(p>=528?16:8)/2;case 3:return(p<528?16:p<1024?32:48)+(p>=528?16:8)/2;default:return 0}};
Hzz=function(p){var x=p.originalContainerWidth;var F=p.sizing;var N=p.standardUnit;if(p.isCompactList&&x<528)return 1;switch(F){case "STANDARD":return N;case "COMPACT":return N+1;case "EXTRA_COMPACT":return _.S("web_responsive_extra_compact_2x")?N*2:_.S("web_responsive_current")?N===1?2:N%2===0?N/2*3:N+2:N<4?N*2:Math.ceil(N*3/2);case "MINI":return N>1?N*2:3;default:return N}};
oAp=function(p){var x=p.containerWidth;var F=p.peek;var N=p.gutter;var h=p.numItems;p=p.ignoreMaxWidthLimit;x=F?Math.max((x-F-N*h)/h,0):Math.max((x-N*(h-1))/h,0);return p?x:Math.min(x,mOp)};
_.RC=function(p){var x=p.containerWidth;var F=p.hasPeek;var N=p.sizing;var h=p.marginSettings;var c=p.isCompactList;var M=p.enableFullBleedForSingleCol;var f=p.standardUnitMinWidth;N=N||"STANDARD";F=!!F;p=x>=528?16:8;var K=F?x>=528?48:24:0;h=W2M(x,h);var t=Math.max(x-h*2,0);f=_.S("kevlar_disable_min_width_override")?void 0:f;f=Math.min(Math.max(Math.floor((t-K+p)/((f!=null?f:Ozz)+_.VFH(x)+p)),1),6);var d=(M=!!M&&f===1)||f===1&&N!=="STANDARD";F=F||d?t:Math.min(t,(mOp+p)*f-p);N=Hzz({originalContainerWidth:x,
sizing:N,standardUnit:f,isCompactList:c});return{itemWidth:oAp({containerWidth:F,peek:K,gutter:p,numItems:N,ignoreMaxWidthLimit:d}),gutter:p,maxContainerWidth:F,numItems:N,margin:M?0:h,contentMargin:W2M(x,1),typographyBump:oAp({containerWidth:F,peek:K,gutter:p,numItems:f,ignoreMaxWidthLimit:d})>400&&!(c&&x<528),standardUnit:f}};
jTH=function(p){switch(p){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.L2E=function(p){if(p){var x;if((x=p.responsiveContainerConfiguration)==null?0:x.responsiveSize)return jTH(p.responsiveContainerConfiguration.responsiveSize);if(p.layoutSizing)switch(p.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"}}};
PS$=function(p){if(p.fullbleed)return 1;switch(p.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
kwM=function(p,x,F,N,h,c,M,f){a:switch(p){case 4:c=!!(c&&c<100);break a;default:c=!1}a:switch(p){case 3:case 4:var K=N==="LOCKUP_CONTENT_TYPE_CHANNEL"||N==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:K=!1}a:switch(p){case 5:var t=!0;break a;case 4:t=!1;break a;default:t=!1}a:if(p===4&&N==="LOCKUP_CONTENT_TYPE_SOURCE")var d=1;else switch(p){case 3:d=1;break a;default:d=0}return{isOverlay:t,isCard:TLM(N,M),sizing:x!=null?x:"STANDARD",typographyBump:F!=null?F:!1,isTiny:c,isCentered:K,isCollection:BLr(N),
arrangement:d,addMarginForFullbleed:p===1&&N!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:p===1&&N==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:RXk(N,h,f),disableRounding:p===5||TLM(N,M)||p===1&&N==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:BLr(N)?2:0,useLegacyTypography:!(f==null||!f.useLegacyTypography),useRichGridLegacyTypography:!(f==null||!f.useRichGridLegacyTypography)}};
BLr=function(p){switch(p){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}};
TLM=function(p,x){if(x&&p==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(p){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
RXk=function(p,x,F){if(x&&(F==null||!F.alwaysRespectPodcastShowAspectRatio||p!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(p){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}};
UOz=function(p){switch(p){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"}};
$Or=function(p,x,F){a:switch(p.badgeStyle){case "BADGE_OVERLAY":var N=!0;break a;default:N=!1}return{type:x?16:izH(p.badgeStyle),brNzRatingBadgeType:IAw(p.badgeStyle),text:p.badgeText,icon:p.iconName,isOverlay:N,modern:F||_.S("web_modern_badge_view_model")}};
izH=function(p){switch(p){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
IAw=function(p){switch(p){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}};
pFz=function(p){var x=p.data?$Or(p.data,!!p.workaroundShortsIsThumbnailBadge,p.modern):void 0;return _.Z("yt-badge-view-model",{class:_.pQ("yt-badge-view-model-wiz",p.class)},_.je(x==null?void 0:x.brNzRatingBadgeType,function(){return _.Z(eXr,{data:x})}),_.je(x&&!x.brNzRatingBadgeType,function(){return _.Z(_.kw,{data:x})}))};
_.Us=function(p){if(p){var x;return((x=_.J().resolve(_.Bw(_.AD)))==null?0:x())?p.darkThemeImage:p.image}};
NdH=function(p,x,F,N,h,c){if(!F)return h&&c&&x==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"?"width: "+h+"px; height: "+c+"px;":"";h=F.size;F=F.allowFullWidth;if(x==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&F)return"width: 100%;";if(h===void 0)return"";switch(p){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return"width: "+h+"px; height: "+h+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return"width: "+h+"px; height: "+1/xkp*
h+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return"width: "+h*FuE+"px; height: "+h+"px;";default:return(N==null?0:N.height)&&(N==null?0:N.width)?N.width/N.height>1?"max-width: "+h*FuE+"px;":"max-width: "+h+"px;":"max-width: "+h+"px;"}};
hId=function(p){var x;return p&&((x=_.Us(p.themedImage))!=null?x:p.image)};
lUk=function(p){var x;return p==null?void 0:(x=p.sources)==null?void 0:x[0]};
aUE=function(p,x){var F,N;return!!((p==null?0:(F=p.byline)==null?0:F.hideAvatar)&&((N=_.r(x,c4p))==null?void 0:N.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
M9B=function(p,x){var F,N;return!!((p==null?0:(F=p.byline)==null?0:F.addPadding)&&((N=_.r(x,c4p))==null?void 0:N.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
Dkr=function(p,x,F,N){var h={},c=(h["yt-content-metadata-view-model-wiz__delimiter"]=!0,h["yt-content-metadata-view-model-wiz__delimiter--standalone"]=N,h);return _.je(x-1>F,function(){return _.Z("span",{class:_.pQ(c),"aria-hidden":!0},p)})};
Ku6=function(p,x){return _.Z(_.KQ,{text:p.text,linkInheritColor:!0,className:fUB(x),userInput:!0})};
ZAw=function(p){var x=p.metadataPart;var F=p.isOverlay;var N=p.useMediumText;var h=p.hideAvatar;var c=1;x.maxLines!==void 0&&(c=x.maxLines);return _.Z(_.TG,null,_.je(x.avatarStack,function(){return qap(x.avatarStack,{avatarStackViewModel:{isOverlay:F,useMediumText:N,hideAvatar:h}})}),_.je(x.text,function(){var M=c;
return _.Z(_.TG,null,x.tooltip?_.Z("span",{title:x.tooltip,role:"tooltip"},Ku6(x,M)):Ku6(x,M))}))};
fUB=function(p){switch(p){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"}};
t9w=function(p){var x=p.metadataRow;var F=p.isInline;var N=p.delimiter;var h=p.isOverlay;var c=p.useMediumText;var M=p.extensions;var f=aUE(M==null?void 0:M.lockupMetadata,x);p=M9B(M==null?void 0:M.lockupMetadata,x);M=!!((M==null?0:M.lockupMetadata)&&x.badges);var K={};p=(K["yt-content-metadata-view-model-wiz__metadata-row"]=!0,K["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=F,K["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=p,K["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
M,K);var t,d;return _.Z("div",{class:_.pQ(p)},(t=x.badges)==null?void 0:t.map(function(v){return _.Z("div",{class:"yt-content-metadata-view-model-wiz__badge"},qap(v))}),(d=x.metadataParts)==null?void 0:d.map(function(v,C){return _.Z(_.TG,null,ZAw({metadataPart:v,
isOverlay:h,useMediumText:c,hideAvatar:f}),Dkr(N,x.metadataParts.length,C,!1))}),_.je(x.isSpacerRow&&!F,function(){return _.Z("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
dkp=function(p){var x=p.className;var F=p.data;var N=p.layout===void 0?0:p.layout;var h=p.isOverlay===void 0?!1:p.isOverlay;var c=p.useMediumText;var M=p.extensions;p=_.oc();var f=N===0;N={};N=(N["yt-content-metadata-view-model-wiz"]=!0,N["yt-content-metadata-view-model-wiz--inline"]=f,N["yt-content-metadata-view-model-wiz--tappable"]=_.H2(F.rendererContext),N["yt-content-metadata-view-model-wiz--medium-text"]=c,N);_.mU(p,F.rendererContext);return _.Z("yt-content-metadata-view-model",{class:_.pQ(x,
N),el:p},_.je(F.metadataRows,function(){return F.metadataRows.map(function(K,t){return _.Z(_.TG,null,t9w({metadataRow:K,isInline:f,delimiter:F.delimiter,isOverlay:h,useMediumText:c,extensions:M}),_.je(f&&!K.isSpacerRow,function(){return Dkr(F.delimiter,F.metadataRows.length,t,!0)}))})}))};
vY6=function(p){switch(p){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"}};
J4k=function(p){if(p==null?0:p.isOverlay)return"yt-lockup-metadata-view-model-wiz--overlay";switch(p==null?void 0:p.arrangement){case 1:return"yt-lockup-metadata-view-model-wiz--horizontal";default:return"yt-lockup-metadata-view-model-wiz--vertical"}};
CNd=function(p){if(p==null?0:p.isTiny)return"yt-lockup-metadata-view-model-wiz--tiny";switch(p==null?void 0:p.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":return"yt-lockup-metadata-view-model-wiz--compact";default:return"yt-lockup-metadata-view-model-wiz--standard"}};
SaE=function(p){var x,F,N,h,c,M,f={},K=_.pQ(J4k(p.lockupStyle),CNd(p.lockupStyle),(f["yt-lockup-metadata-view-model-wiz"]=!0,f["yt-lockup-metadata-view-model-wiz--overlay"]=(x=p.lockupStyle)==null?void 0:x.isOverlay,f["yt-lockup-metadata-view-model-wiz--card"]=(F=p.lockupStyle)==null?void 0:F.isCard,f["yt-lockup-metadata-view-model-wiz--centered"]=(N=p.lockupStyle)==null?void 0:N.isCentered,f["yt-lockup-metadata-view-model-wiz--typography-bump"]=(h=p.lockupStyle)==null?void 0:h.typographyBump,f["yt-lockup-metadata-view-model-wiz--legacy-typography"]=
(c=p.lockupStyle)==null?void 0:c.useLegacyTypography,f["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=(M=p.lockupStyle)==null?void 0:M.useRichGridLegacyTypography,f)),t,d,v,C,X,Q;return _.Z("yt-lockup-metadata-view-model",{class:K},_.je(p.data.image,function(){return _.Z("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},ir(p.data.image))}),_.Z("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.Z("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:(t=p.data.title)==null?void 0:t.content},_.je(p.data.title,function(){return _.Z(_.fQ,{command:p.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:p.lockupAccessibilityLabel},_.Z(_.KQ,{text:p.data.title}))})),_.Z("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},ir(p.data.metadata,{contentMetadataViewModel:{layout:1,
useMediumText:((d=p.lockupStyle)==null?void 0:d.typographyBump)||((v=p.lockupStyle)==null?void 0:v.useRichGridLegacyTypography),extensions:{lockupMetadata:{byline:{hideAvatar:((C=p.lockupStyle)==null?void 0:C.arrangement)===0,addPadding:((X=p.lockupStyle)==null?void 0:X.arrangement)===1}}}}})),_.je(p.data.attribution,function(){return _.Z("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},ir(p.data.attribution,{attributionViewModel:{useSmallLayout:!0}}))}),_.Z("div",null,ir(p.data.attachmentSlot,
{lockupAttachmentsViewModel:{lockupStyle:p.lockupStyle}}))),_.Z("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},ir(p.data.menuButton,((Q=p.lockupStyle)==null?0:Q.isOverlay)?{buttonViewModel:{buttonOverrides:{style:"overlay"}}}:void 0)))};
r4$=function(p){switch(p.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"}}};
EYZ=function(p){var x=_.fAp(_.u8().getState())||"";return p?p+x:""};
XFp=function(p){switch(p){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
Qrw=function(p){var x=_.a(_.hu(void 0,void 0,"BIquNb")),F=x.next().value,N=x.next().value,h=_.a(_.hu(void 0,void 0,"eR0GH"));x=h.next().value;var c=h.next().value,M=_.a(_.hu(void 0,void 0,"UmkP0"));h=M.next().value;var f=M.next().value;M=_.h0(function(t){if(gYr(_.Yw(t)))return!1;N(t);c(void 0);f(void 0);return!0});
var K=_.h0(function(t){p==null||p(t);if(gYr(_.Yw(t)))return!1;c(t);N(void 0);f(void 0);return!0});
return{touchFeedbackEvents:{pointerUpEvent:F,pointerDownEvent:x,pointerLeaveEvent:h},touchFeedbackOnPointerUp:M,touchFeedbackOnPointerDown:K,touchFeedbackOnPointerLeave:function(t){gYr(_.Yw(t))||(f(t),c(void 0),N(void 0))}}};
gYr=function(p){var x=["BUTTON".toString()];p=_.a(p);for(var F=p.next();!F.done;F=p.next()){F=F.value;for(var N=_.a(x),h=N.next();!h.done;h=N.next())if(F.tagName===h.value)return!0}return!1};
zIm=function(p){switch(p){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"}};
sr$=function(p){var x;return VJm(p,((x=p.content)==null?void 0:x.length)||0,!0)};
nYJ=function(p){var x=sr$(p),F,N;return(((F=p.content)==null?void 0:F.length)||0)>(((N=x.content)==null?void 0:N.length)||0)};
y4$=function(p){var x=p.isTruncated;var F=p.isAbsoluteButton;var N=p.lineHeight;var h=p.contentRef.value,c=p.placeholderTruncationTextRef.value,M=p.truncationTextRef.value;p=p.appDirection==="rtl";if(h&&c){var f=c.offsetLeft;p&&(f=h.offsetWidth-c.offsetWidth-c.offsetLeft);if(x){x=c.offsetWidth;c=h.offsetWidth;var K=F?c-x-70:f-70;N="linear-gradient(\n      to top, transparent 0%,\n      transparent "+N+"px,\n      #000 "+N+"px,\n      #000 100%), linear-gradient(\n      to "+((p?"left":"right")+",\n      #000 0px,\n      #000 "+
K+"px,\n      transparent "+(F?c-x:K+70)+"px)");h.style.setProperty("-webkit-mask-image",N);h.style.setProperty("mask-image",N)}else h.style.setProperty("-webkit-mask-image",""),h.style.setProperty("mask-image","");F?p?(M.style.setProperty("left","0"),M.style.setProperty("right","unset")):(M.style.setProperty("left",""),M.style.setProperty("right","0")):p?(M.style.setProperty("left","unset"),M.style.setProperty("right",f+"px")):(M.style.setProperty("left",f+"px"),M.style.setProperty("right","unset"))}};
bAJ=function(p,x,F,N,h){var c=_.oc(),M=_.oc(),f=_.oc(),K=sr$(p),t=_.J().resolve(_.YL),d=_.a(hR(nYJ(p))),v=d.next().value,C=d.next().value,X=Ed(null);vw(function(){function Q(){if(c.value&&M.value&&f.value){var Y=c.value;Y.scrollHeight-Y.offsetHeight>1?(C(!0),N||y4$({isTruncated:!0,isAbsoluteButton:!0,lineHeight:F,contentRef:c,placeholderTruncationTextRef:M,truncationTextRef:f,appDirection:t})):(Y=nYJ(p),C(Y),N||y4$({isTruncated:Y,isAbsoluteButton:!1,lineHeight:F,contentRef:c,placeholderTruncationTextRef:M,
truncationTextRef:f,appDirection:t}))}}
var b,A;(b=X.value)==null||(A=b.stop)==null||A.call(b);b=new _.IC(Q,17);Q();X.value=b},[p.content,
x,F,t,N,h]);_.J9(function(){var Q=function(){var A,Y;(A=X.value)==null||(Y=A.fire)==null||Y.call(A)};
if(window.ResizeObserver){var b=new ResizeObserver(Q);b.observe(c.value);return function(){var A,Y;(A=X.value)==null||(Y=A.stop)==null||Y.call(A);b.disconnect()}}window.addEventListener("resize",Q);
return function(){var A,Y;(A=X.value)==null||(Y=A.stop)==null||Y.call(A);window.removeEventListener("resize",Q)}});
return{isTruncated:v,displayText:K,contentRef:c,placeholderTruncationTextRef:M,truncationTextRef:f}};
A4d=function(p){return _.Z("button",{"aria-disabled":!0,disabled:!0,class:p.className,el:p.elRef,style:"line-height: "+p.lineHeight+"px;"},_.Z(_.KQ,{text:p.text}))};
uHE=function(p){var x=p.text;var F=p.alwaysShowTruncationText;var N=p.truncationText;var h=p.onExpandClick;var c=p.lineHeight===void 0?16:p.lineHeight;var M=p.maxLines===void 0?2:p.maxLines;var f=p.disableTextMask===void 0?!1:p.disableTextMask;var K=p.isOverlay===void 0?!1:p.isOverlay;var t=p.accessibilityLabel===void 0?"":p.accessibilityLabel;var d=p.useMediumText===void 0?!1:p.useMediumText;p=_.h0(function(){return void(h==null?void 0:h())});
var v=bAJ(x,M,c,f,d),C=v.isTruncated;x=v.displayText;var X=v.contentRef,Q=v.placeholderTruncationTextRef;v=v.truncationTextRef;var b={};F=_.pQ((b["truncated-text-wiz__absolute-button"]=!f,b["truncated-text-wiz__bottom-button"]=f,b["truncated-text-wiz--hidden"]=!(F||C),b));f={};K=_.pQ((f["truncated-text-wiz"]=!0,f["truncated-text-wiz--overlay"]=K,f["truncated-text-wiz--medium-text"]=d,f));return _.Z("truncated-text",{class:K,"on:click":p,style:"line-height: "+c+"px;"},_.Z("truncated-text-content",
{class:"truncated-text-wiz__truncated-text-content",el:X,style:"max-height: "+M*c+"px;"},_.Z(_.KQ,{text:x}),_.Z(A4d,{text:N,lineHeight:c,elRef:Q,className:"truncated-text-wiz__inline-button"})),_.Z("button",{"aria-label":t,class:F,el:v,style:"line-height: "+c+"px;"},_.Z(_.KQ,{text:N})))};
Yap=function(p){return{content:p!=null?p:""}};
V9z=function(p){var x=p.data;var F;p={class:p.className};a:switch(x.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var N="yt-video-attribute-view-model--vertical";break a;default:N="yt-video-attribute-view-model--horizontal"}a:switch(x.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var h="yt-video-attribute-view-model--image-small";break a;default:h="yt-video-attribute-view-model--image-large"}a:switch(x.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var c="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":c="yt-video-attribute-view-model--image-avatar";break a;default:c=""}a:switch(x.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var M="yt-video-attribute-view-model--metadata-header";break a;default:M=""}a:switch(x.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var f="yt-video-attribute-view-model--container-card";break a;default:f=""}var K=_.g$(x.onTap)||_.wR(x.rendererContext)?"yt-video-attribute-view-model--clickable":"";
N=["yt-video-attribute-view-model",N,h,c,M,f,K].join(" ");if(x.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var t="";else h=x.lightColorPalette,c=x.darkColorPalette,M=((t=_.J().resolve(_.Bw(_.AD)))==null?0:t())&&c?c:h,t=(t=M==null?void 0:M.section2Color)?_.QK(t):"";return _.Z("yt-video-attribute-view-model",p,_.Z("div",{class:N,style:_.a4({"background-color":t})},_.Z(hXM,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(F=_.g$(x.onTap))!=
null?F:_.wR(x.rendererContext),role:"group",forceNewState:!0},x.heroText||x.image?_.Z(wFr,{data:x}):null,_.Z(Gsp,{data:x,sizeSmall:x.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
Wur=function(p){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:p.overflowMenuA11yLabel,onTap:function(x){x.preventDefault();x.stopPropagation();if(p.overflowMenuOnTap){var F=_.zT({elementsCommand:p.overflowMenuOnTap,forceNewState:!0});if(F==null?0:F.onclick)F.onclick(x)}}}};
wFr=function(p){p=p.data;var x,F=((x=_.J().resolve(_.Bw(_.AD)))==null?0:x())&&p.darkThemeImage?p.darkThemeImage:p.image;x=Wur(p);return _.Z("div",{class:"yt-video-attribute-view-model__hero-section"},F?_.Z(_.VE,{data:F,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):p.heroText?_.Z("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.Z("span",{class:"yt-video-attribute-view-model__hero-text"},p.heroText)):null,p.overflowMenuOnTap?
_.Z("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.Z($w,{data:x,iconName:"MORE_VERT"})):null)};
Gsp=function(p){var x=p.data;var F=x.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",N={};p={class:_.pQ("yt-video-attribute-view-model__metadata",(N["yt-video-attribute-view-model--small-font"]=p.sizeSmall,N)),role:"link"};N=_.Z("h1",{class:"yt-video-attribute-view-model__title"},x.title);F=x.subtitle?_.Z("h4",{class:"yt-video-attribute-view-model__subtitle"},F?_.Z(uHE,{text:Yap(x.subtitle),truncationText:Yap(x.subtitleTruncationText),maxLines:2}):_.Z("span",null,x.subtitle)):null;if(x.secondarySubtitle){var h=
x.secondarySubtitle;if(h!=null&&h.attachmentRuns){for(var c=[],M=_.a(h.attachmentRuns),f=M.next();!f.done;f=M.next())f=f.value,f.element&&c.push(Object.assign({},f,{element:Object.assign({},f.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));h=Object.assign({},h,{attachmentRuns:c})}h=_.Z("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.Z(_.KQ,{text:h}))}else h=null;return _.Z("div",p,N,F,h,x.buttonViewModel?
HAp(x.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
oYE=function(p){var x={};x=_.pQ("video-summary-content-view-model-wiz",p.className,(x["video-summary-content-view-model-wiz--is-search"]=!!p.isSearch,x));var F=_.r(p.data.likeButtonViewModel,y3k),N=_.r(p.data.dislikeButtonViewModel,bu6),h=Ct(function(){var c=[],M,f=(M=p.data)==null?void 0:M.paragraphs;if(f==null||!f.length)return[];for(M=0;M<f.length;M++){var K=_.r(f[M],mkw),t=void 0;M>0&&(t=_.r(f[M-1],mkw));t&&!!t.marker===!!K.marker?c[c.length-1].paragraphs.push(K):c.push({isList:!!K.marker,paragraphs:[K]})}return c},
[p.data]);
return _.Z("video-summary-content-view-model",{class:x},h.map(function(c){return c.isList?_.Z("ul",{class:"video-summary-content-view-model-wiz__list"},c.paragraphs.map(function(M){return _.Z("li",{class:"video-summary-content-view-model-wiz__list-item"},_.Z(_.KQ,{text:M.text}))})):c.paragraphs.map(function(M){return _.Z("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.Z(_.KQ,{text:M.text}))})}),_.je(!!F&&!!N,function(){return _.Z("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},
_.Z("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.Z(nW$,{data:F,
disableIconAnimation:!0})),_.Z(zPp,{data:N}))}))};
jr$=function(p,x,F){return _.D(function(N){return N.return(new Promise(function(h){var c=new Image;c.onload=function(){h(new OA6(p,x,F,c.naturalWidth,c.naturalHeight))};
c.src=F.toString()}))})};
LuZ=function(p,x){return Math.round(p/1E-5)===Math.round(x/1E-5)};
PNp=function(p,x){return Math.round(p/1E-5)===Math.round(x/1E-5)};
Td6=function(p,x){return p.year===x.year&&p.month===x.month&&p.day===x.day};
Bdp=function(p,x){return p.year!==x.year?p.year<x.year:p.month!==x.month?p.month<x.month:p.day<x.day};
ksm=function(p){return p.day===RIE(p.year,p.month)?p.month===11?{year:p.year+1,month:0,day:1}:{year:p.year,month:p.month+1,day:1}:{year:p.year,month:p.month,day:p.day+1}};
Ukk=function(){var p=new Date,x={year:p.getFullYear(),month:p.getMonth(),day:p.getDate()};return{start:x,end:{year:p.getFullYear()+2,month:p.getMonth(),day:p.getDate()},selectedDate:ksm(x)}};
iAM=function(p){return(new OJ(2)).format(new Date(p.year,p.month,p.day))};
IUM=function(p){return{year:p.getFullYear(),month:p.getMonth(),day:p.getDate()}};
$kB=function(p,x){p=(p+(Number(x.utcOffsetSec)+(new Date(p*1E3)).getTimezoneOffset()*60))*1E3;x=IUM(new Date(p));return{date:x,secondsSinceMidnight:Math.floor((p-(new Date(x.year,x.month,x.day)).getTime())/1E3)}};
eIp=function(p,x){x=x.months.findIndex(function(F){return F.year===p.year&&F.month===p.month});
return x>=0?x:void 0};
pAp=function(p){if(!p)return!1;try{if(p.host&&p.host.tagName==="YT-FORMATTED-STRING"&&p.host.id==="contenteditable-textarea"||p.nodeType===Node.ELEMENT_NODE&&p.tagName==="YTD-COMMENTBOX")return!0}catch(x){return!1}return pAp(p.parentNode)};
eo=function(p){return p?!(p.tagName!=="A"||!p.href||!p.classList.contains("yt-simple-endpoint")):!1};
xw$=function(p){return p?p.tagName==="IMG"&&p.classList.contains("emoji"):!1};
F6w=function(p,x,F){if(!p)return null;var N=eo(p);if(N&&F)return x=p.pathname.substring(p.pathname.indexOf("/channel/")+9),document.createTextNode("@"+x);if(N&&!F)return document.createTextNode("");if(xw$(p))return F=p.alt,p=p.dataset.emojiId,!p&&x&&(x=_.pE(x,F))&&x.isCustomEmoji&&(p=x.emojiId),p?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+p+">"):document.createTextNode(F);N=p.cloneNode(!1);for(var h=0;h<p.childNodes.length;++h){var c=F6w(p.childNodes[h],x,F);c&&N.appendChild(c)}return N};
xq=function(p){return p?eo(p)?p:xq(p.lastChild):null};
N2H=function(p){return p?eo(p)?p:N2H(p.firstChild):null};
hz6=function(p){if(!p)return null;for(var x=p.previousSibling;x;)if(x.nodeType===Node.ELEMENT_NODE&&x.nodeName==="BR")x=x.previousSibling;else if(x.nodeType===Node.TEXT_NODE&&/\s+/.test(x.textContent))x=x.previousSibling;else break;(x=xq(x))?p=x:p=(p=p.parentNode)?xq(p.previousElementSibling):null;return p};
lPJ=function(p){if(!p)return null;for(var x=p.nextSibling;x;)if(x.nodeType===Node.ELEMENT_NODE&&x.nodeName==="BR")x=x.nextSibling;else if(x.nodeType===Node.TEXT_NODE&&/\s+/.test(x.textContent))x=x.nextSibling;else break;return(x=N2H(x))?x:lPJ(p.parentNode)};
cVk=function(p){var x=_.Fo(),F=x.JSC$9092_getStartNode();if(!pAp(F.parentNode))return null;x=x.JSC$9092_getStartOffset();if(F.nodeType===Node.TEXT_NODE){var N=_.uk(F,eo);if(N){if(p&&x===0||!p&&x===F.length)return N}else{if(p&&x===F.length)return!F||F.nodeName==="BR"||F.nextElementSibling&&_.ND(F.nextElementSibling,"display")==="block"?null:N2H(F.nextElementSibling);if(!p&&x===0)return F?xq(F.previousElementSibling):null}}if(F.nodeType===Node.ELEMENT_NODE)if(p){if(0<=x&&x<F.childNodes.length)return N2H(F.childNodes[x])}else if(0<
x&&x<=F.childNodes.length)return xq(F.childNodes[x-1]);return null};
aPz=function(p,x,F){if(!p)return null;if(p.nodeType===Node.TEXT_NODE)if(F){var N=hz6(p);if(N&&!/^\s+\S/.test(p.wholeText.substr(0,x)))return N}else if((N=lPJ(p))&&!/\S\s+/.test(p.wholeText.substr(x,p.wholeText.length)))return N;return p.nodeType===Node.ELEMENT_NODE?F?hz6(p.childNodes[x]):lPJ(p.childNodes[x]):aPz(p.parentNode,x,F)};
M2H=function(p){if(p.hasChildNodes())switch(p.tagName){case "DIV":case "A":case "SPAN":var x="";for(p=p.firstChild;p;p=p.nextSibling)x+=M2H(p);return x;default:return""}else switch(p.nodeType){case 3:return p.textContent;default:return""}};
_.hI=function(p,x,F,N,h){N=N===void 0?{}:N;if(!h||Math.random()<5E-4){x=x||null;F=F||null;p=p instanceof Error?p:new _.qE(p);if(p.args)for(var c=_.a(p.args),M=c.next();!M.done;M=c.next())M=M.value,M instanceof Object&&(N=Object.assign({},M,N));N.category="H5 Ads Control Flow";x&&(N.slot=x?"slot:  "+x.slotType:"");F&&(N.layout=F?"layout:  "+F.layoutType:"",N.layoutId=F.layoutId);h&&(N.known_error_aggressively_sampled=!0);p.args=[N];_.no(p)}};
_.Dwp=function(p,x){_.lA(p,"yt-open-popup-action",[_.kO(x),p])};
K6w=function(p){if(!p)return"";if(fPE[p])return fPE[p];lW||(lW=_.KH("A"));lW.href!==p&&Wz(lW,p);var x=lW.pathname;fPE[p]=x.startsWith("/")?x:"/"+x;return fPE[p]};
qnz=function(){var p=K6w(window.location.href);if(p==="/")return"home";if(p.startsWith("/results"))return"search";if(p.startsWith("/watch"))return"watch";if(p.startsWith("/shorts"))return"shorts";if(p.startsWith("/hashtag"))return"hashtag";if(p.startsWith("/create_channel"))return"create_channel";if(p.startsWith("/@")||p.startsWith("/user/")||p.startsWith("/channel/"))return"channel";if(p.startsWith("/experiments"))return"experiments";if(p.startsWith("/sponsor_channel"))return"sponsorship";if(p.startsWith("/select_site"))return"settings";
if(p.startsWith("/locate"))return"locate";if(p.startsWith("/redeem"))return"redeem";if(p.startsWith("/musicpremium")||p.startsWith("/premium")||p.startsWith("/red"))return"premium";if(p.startsWith("/paid_memberships"))return"paid_memberships";if(p.startsWith("/oops"))return"oops";if(p.startsWith("/clip"))return"clip";var x;return(cc==null?void 0:(x=cc.response)==null?void 0:x.page)==="404"?"404":p.startsWith("/feed/history")?"history":p.startsWith("/feed/library")?"library":p.startsWith("/feed/subscriptions")?
"subscriptions":p.startsWith("/feed/trending")?"trending":p.startsWith("/feed/news_destination")?"news":p.startsWith("/playlist")?"playlist":p.startsWith("/minor_moment")?"minor_moment":p.startsWith("/playable/")||p.match("^/playables/(?!saved).")?"mini_app":p.startsWith("/playables")?"playables":p.startsWith("/create/live/join")?"open_in_app":p.startsWith("/feed/explore")?"explore":"browse"};
_.v7p=function(){var p=cc==null?void 0:cc.response,x=p==null?void 0:p.endpoint;if(!x)return(p==null?void 0:p.page)==="watch"?"watch":qnz();var F;p=(F=_.r(x==null?void 0:x.commandMetadata,_.eq))==null?void 0:F.webPageType;F=!1;if(p&&!ZGr.includes(p))switch(p){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 N;return((N=_.r(x==null?void 0:x.commandMetadata,_.eq))==null?0:N.url)&&K6w(_.r(x.commandMetadata,_.eq).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var h;return(x=(h=_.r(x,_.Du))==null?void 0:h.browseId)?t2w[x]||"browse":"browse";default:F=!0}if(_.r(x,_.aI)||_.r(x,dwp))return"sponsorship";h=K6w(window.location.href);if(h.startsWith("/experiments"))return"experiments";if(h.startsWith("/create_channel"))return"create_channel";
if(_.r(x,_.Gj)&&h.startsWith("/shorts"))return"shorts";if(_.r(x,_.Gj)&&h.startsWith("/watch"))return"watch";F&&(x=new _.qE("Unsupported mWeb page type",{pathname:h,webPageType:p}),_.zj(x));return"browse"};
g7d=function(p){var x=p.data;var F=p.inlineMetadata;var N=p.aspectRatio;var h=p.scrimStyle;var c=p.useDefaultStyle;var M=p.className;var f=Ed(new JVM);p=_.S("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";p=c?p==="SHORTS_LOCKUP_STYLE_SLIM":x.style==="SHORTS_LOCKUP_STYLE_SLIM";F=F||p||!1;h=h!==void 0?h:1;var K=_.oc(function(A){f.value&&(f.value.hostElement=A,b())});
_.U$(K,{visibilityCallback:function(A){A&&x.onFirstVisible&&_.su(x.onFirstVisible)},
showOption:{calledOnce:!0,state:"visible"}});M=_.pQ("shortsLockupViewModelHost",M);var t=_.zT({elementsCommand:x.onTap}),d=_.oc();_.NLp(d,_.g$(x.onTap));var v=_.h0(function(A){if(t==null?0:t.onclick)t.onclick(A);return!1}),C=_.oc(),X=[];
X.push("shortsLockupViewModelHostThumbnailContainer");N===1?X.push("shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree"):N===2&&X.push("shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour");p||X.push("shortsLockupViewModelHostThumbnailContainerRounded");_.S("web_shorts_2_by_3_lockups_study")||_.S("desktop_search_enable_two_by_three_shorts_aspect_ratio")||X.push("shortsLockupViewModelHostThumbnailContainerCustomDimensions");var Q,b=function(){if(f.value){var A;(A=Q)==null||
MD(A);A=f.value;var Y;A.hostElement&&((Y=A.data)==null?0:Y.inlinePlayerData)&&(Q=T7({mediaRenderer:A,lockupElement:A.hostElement,thumbnailElement:C.value,videoPreviewOpts:Cep}))}};
vw(function(){f.value&&(f.value.data=x,b())},[x]);
return _.Z("ytm-shorts-lockup-view-model",{el:K,class:M},_.Z("a",{el:d,"on:click":v,class:"shortsLockupViewModelHostEndpoint reel-item-endpoint ","aria-hidden":!F,tabindex:F?0:-1},_.Z("div",{el:C,class:X.join(" ")},_.je(x.thumbnail,function(){return _.Z(_.TG,null,_.Z(_.VE,{data:x.thumbnail,alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),null)})),F?_.Z(Sn6,{data:x,
scrimStyle:h,useDefaultStyle:c}):null,rVM(x.badge,{badgeViewModel:{class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0}})),F&&x.menuOnTap?_.Z(E7J,{data:x,inlineMetadata:F}):null,F?null:_.Z(XAE,{useDefaultStyle:c,data:x}))};
Sn6=function(p){var x=p.data;var F=p.scrimStyle;var N=p.useDefaultStyle;var h=_.S("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";p=N&&_.S("web_hide_primary_text_for_pivot_panel");var c={};N=_.pQ("shortsLockupViewModelHostInlineMetadata",(c.shortsLockupViewModelHostMetadataRounded=!(N?h==="SHORTS_LOCKUP_STYLE_SLIM":x.style==="SHORTS_LOCKUP_STYLE_SLIM"),c.shortsLockupViewModelHostInlineMetadataShortScrim=F===3&&!_.S("enable_shorts_lockup_new_scrim"),
c.shortsLockupViewModelHostInlineMetadataShortScrimNew=F===3&&_.S("enable_shorts_lockup_new_scrim"),c.shortsLockupViewModelHostInlineMetadataMediumScrim=F===2||F===4,c.shortsLockupViewModelHostShowOverPlayer=!0,c));var M,f;h={};return _.Z("div",{class:N+" image-overlay-text"},_.Z("h3",{class:_.$L("shortsLockupViewModelHostMetadataTitle",(h.shortsLockupViewModelHostMetadataTitleTextShadow=F===4,h)),"aria-label":x.accessibilityText},_.je(((M=x.overlayMetadata)==null?void 0:M.primaryText)&&!p,function(){return _.Z(_.KQ,
{text:x.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})})),((f=x.overlayMetadata)==null?0:f.secondaryText)?_.Z(QYE,{data:x,
scrimStyle:F}):null)};
XAE=function(p){var x=p.data;var F=_.S("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";p=(p.useDefaultStyle?F==="SHORTS_LOCKUP_STYLE_SLIM":x.style==="SHORTS_LOCKUP_STYLE_SLIM")?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded";var N=_.zT({elementsCommand:x.onTap});F=_.oc();_.NLp(F,_.g$(x.onTap));var h=_.h0(function(v){if(N==null?0:N.onclick)N.onclick(v);return!1}),c,M,
f,K,t,d={};
return _.Z("div",{class:p+" image-overlay-text","on:click":h},_.Z("h3",{class:_.$L("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(d.shortsLockupViewModelHostOutsideMetadataMissingTitle=!((c=x.overlayMetadata)==null?0:(M=c.primaryText)==null?0:M.content),d)),"aria-label":x.accessibilityText},_.Z("a",{el:F,"on:click":h,class:"shortsLockupViewModelHostEndpoint shortsLockupViewModelHostOutsideMetadataEndpoint",title:(f=x.overlayMetadata)==null?void 0:(K=f.primaryText)==
null?void 0:K.content},_.je(x.overlayMetadata,function(){return _.Z(_.KQ,{text:x.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})}))),((t=x.overlayMetadata)==null?0:t.secondaryText)?_.Z(QYE,{data:x,
className:"shortsLockupViewModelHostOutsideMetadataSubhead"}):null,x.menuOnTap?_.Z(E7J,{data:x,inlineMetadata:!1}):null)};
QYE=function(p){var x=p.data;var F=p.scrimStyle;p=p.className;var N,h={};return _.Z("div",{class:_.$L((h.shortsLockupViewModelHostMetadataSubhead=F!==4,h.shortsLockupViewModelHostMetadataSubheadNew=_.S("enable_shorts_lockup_new_scrim"),h.shortsLockupViewModelHostMetadataSubheadTextShadow=F===4,h),p),"aria-hidden":"true"},_.Z(_.KQ,{text:(N=x.overlayMetadata)==null?void 0:N.secondaryText,noStyleRuns:!0}))};
E7J=function(p){var x={};x=_.pQ((x.shortsLockupViewModelHostInlineMetadataMenu=p.inlineMetadata,x.shortsLockupViewModelHostOutsideMetadataMenu=!p.inlineMetadata,x.shortsLockupViewModelHostShowOverPlayer=!0,x));return _.Z("div",{class:x},_.Z($w,{data:{style:p.inlineMetadata?"overlay":"mono",accessibilityLabel:p.data.menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(F){F.preventDefault();F.stopPropagation();var N=_.zT({elementsCommand:p.data.menuOnTap,forceNewState:!0});
if(N==null?0:N.onclick)N.onclick(F)}},
iconName:"MORE_VERT"}))};
DD=function(p,x,F,N){return p&&x?p!==F||x!==N?(_.hI(Error("Gh"),void 0,void 0,{"stored-slot":p,"stored-layout":x,"latest-slot":F,"latest-layout":N}),!1):!0:!1};
zzz=function(p,x,F){return p({targetId:x},function(N){return F.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},N,{header:F.continuationItems?F.continuationItems[0]:void 0}):Object.assign({},N,{contents:F.continuationItems?F.continuationItems:[]})})};
sYp=function(p,x,F,N){if(x=x.trackingParams){var h,c=(h=F.getScreenLayer)==null?void 0:h.call(F);F=_.b0(c);h=_.yR(c);if(F&&h){var M=_.fr(x);_.S("combine_ve_grafts")?p.graftServerVe(x,h,c):_.jz(F,h,M);N==null||N(M)}}};
yVp=function(p){var x;return((x=n7H.get(p))==null?void 0:x.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
ur6=function(p,x){var F={type:x.slotType,controlFlowManagerLayer:bGJ.get(x.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};x.slotEntryTrigger&&(F.entryTriggerType=x.slotEntryTrigger.triggerType);x.slotPhysicalPosition!==1&&(F.slotPhysicalPosition=x.slotPhysicalPosition);if(p){F.debugData={slotId:x.slotId};if(p=x.slotEntryTrigger)F.debugData.slotEntryTriggerData=AVB(p);p=x.slotFulfillmentTriggers;F.debugData.fulfillmentTriggerData=[];p=_.a(p);for(var N=p.next();!N.done;N=p.next())F.debugData.fulfillmentTriggerData.push(AVB(N.value));
x=x.slotExpirationTriggers;F.debugData.expirationTriggerData=[];x=_.a(x);for(p=x.next();!p.done;p=x.next())F.debugData.expirationTriggerData.push(AVB(p.value))}return F};
AVB=function(p,x){var F={type:p.triggerType};x!=null&&(F.category=x);p.triggeringSlotId!=null&&(F.triggerSourceData||(F.triggerSourceData={}),F.triggerSourceData.associatedSlotId=p.triggeringSlotId);p.triggeringLayoutId!=null&&(F.triggerSourceData||(F.triggerSourceData={}),F.triggerSourceData.associatedLayoutId=p.triggeringLayoutId);return F};
YnE=function(p,x,F,N){x={opportunityType:x};p&&(N||F)&&(N=_.zy(N||[],function(h){return ur6(p,h)}),x.debugData=Object.assign({},F&&F.length>0?{associatedSlotId:F}:{},N.length>0?{slots:N}:{}));
return x};
wAm=function(p){return fE(p.opportunityAdapterMap).concat(fE(p.triggerAdapterMap)).concat(fE(p.fulfillmentAdapterFactoryMap)).concat(fE(p.slotAdapterFactoryMap)).concat(fE(p.layoutRenderingAdapterFactoryMap))};
fE=function(p){var x=[];p=_.a(p.values());for(var F=p.next();!F.done;F=p.next())F=F.value,F.isAdsControlFlowEventListener&&x.push(F);return x};
qD=function(p){var x=p.slotId,F=p.slotType,N=p.slotPhysicalPosition;return x===void 0?new KE("Cannot construct a slot due to the missing id.",{adSlotMetadata:p}):F===void 0?new KE("Cannot construct a slot due to the missing type.",{adSlotMetadata:p}):N===void 0?new KE("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:p}):{slotId:x,slotType:F,slotPhysicalPosition:N,managerLayer:"external",adSlotLoggingData:p.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new Gbz}};
V2d=function(p){var x=p.layoutId,F=p.layoutType;return x===void 0?new ZD("Cannot construct a layout due to the missing id.",{adLayoutMetadata:p}):F===void 0?new ZD("Cannot construct a layout due to the missing type.",{adLayoutMetadata:p}):{layoutId:x,layoutType:F,managerLayer:"external",adLayoutLoggingData:p.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new Gbz,interactionLoggingAdsClientData:{}}};
W6p=function(p){if((p=p.value)&&p.querySelector("img")){var x=p.querySelector("img");x.addEventListener("error",function(){akk(x.src).then(function(F){(F=YE(F).toString())?x.src=F:x.removeAttribute("src")}).catch(function(){x.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
dV=function(p,x){if(x&&(HGp(x.viewableCommand)||HGp(x.endOfSessionCommand))){p=p.value;var F=mwk(x==null?void 0:x.viewableCommand);x=mwk(x==null?void 0:x.endOfSessionCommand);if(!tI){var N=_.sd("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);tI=new o7w((N==null?void 0:N.length)===2?N[1]:null)}OGd(tI,p);jYZ(tI,p,F,x)}};
vc=function(p){tI&&OGd(tI,p.value)};
HGp=function(p){p=_.g$(p);return!(p==null||!p.loggingUrls)&&p.loggingUrls.length>0};
mwk=function(p){if(!p)return[];var x=[],F,N;((N=(F=_.g$(p))==null?void 0:F.loggingUrls)!=null?N:[]).forEach(function(h){h.baseUrl&&x.push(h.baseUrl)});
return x};
L6E=function(p){return p.shorts.isDesktopSmallWidth};
_.PeE=function(p){return p.shorts.isWatchWhileMode};
_.JI=function(p){return p.shorts.isFullscreen};
_.CE=function(p){return p.shorts.isShortsPipActive};
B26=function(p){var x,F;if(p=(x=_.r(p.reelsAdCardButtoned,T2k))==null?void 0:(F=x.animatedRenderingConfig)==null?void 0:F.easeOutSeconds)return p+"s"};
Sw=function(p,x){return p.year===x.year&&p.month===x.month&&p.day===x.day};
rV=function(p,x){return p.year!==x.year?p.year<x.year:p.month!==x.month?p.month<x.month:p.day<x.day};
RzM=function(p){return{year:p.getFullYear(),month:p.getMonth(),day:p.getDate()}};
kbp=function(p){var x=p6E;x=x===void 0?p6E:x;x(new Date(p.year,p.month,p.day))};
EW=function(p){return RzM(new Date(Number(p.seconds)*1E3))};
UwB=function(p){return p.year!==void 0&&p.month!==void 0&&p.day!==void 0};
iG6=function(p){return p.start!==void 0&&p.end!==void 0};
IP$=function(p){return iG6(p)?p.start:p};
$w6=function(p){return iG6(p)?p.end:void 0};
pXk=function(p,x){for(var F=[],N=new Date(p.start.year,p.start.month);N.getFullYear()<p.end.year||N.getFullYear()===p.end.year&&N.getMonth()<=p.end.month;){var h=F,c=h.push,M=N.getFullYear(),f=N.getMonth(),K=p,t=x,d=void 0,v=[],C=Object.freeze({extraCssClass:"invisible"}),X=new Date(M,f),Q=RzM(X);X=X.getDay();for(var b=RzM(new Date);Q.month===f;){X!==ezM&&d||(d=Array.from({length:7}).fill(C),v.push(d));var A={date:{year:M,month:f,day:Q.day},extraCssClass:"",debugClass:""};A.extraCssClass=t(A.date,
Q,b,K).trim();d[(X-ezM+7)%7]=A;Q=Q.day===RIE(Q.year,Q.month)?Q.month===11?{year:Q.year+1,month:0,day:1}:{year:Q.year,month:Q.month+1,day:1}:{year:Q.year,month:Q.month,day:Q.day+1};X=(X+1)%7}c.call(h,{weeks:v,monthLabel:Xo.SHORTMONTHS[f]+" "+M,year:M,month:f,monthLabelExtraCssClass:v[0][2]===C?"shift-down-label":""});N.setMonth(N.getMonth()+1)}return F};
xRH=function(p,x){x=x.months.findIndex(function(F){return F.year===p.year&&F.month===p.month});
return x>=0?x:void 0};
NuJ=function(p,x){a:{var F=F===void 0?[2,3]:F;F=_.a(F);for(var N=F.next();!N.done;N=F.next()){var h=new Date;if((new F5z(N.value)).parse(x,h,{validate:!0})){h.setHours(0,0,0,0);x=h;break a}}x=null}if(!x)return{isValid:!1,value:void 0};x=RzM(x);F=p.end;return rV(x,p.start)||rV(F,x)?{isValid:!1,value:void 0}:{isValid:!0,value:x}};
M4H=function(p){var x=huM;x=x===void 0?lNd:x;var F=p.columnsToShow||[],N=cgw(p.columnDimensions,p.columnsToShow,p.leftFloatingColumns,x);return F.map(function(h,c){var M=p.columns[h];if(M===void 0)throw Error("Mh");var f=N?N[c]:"";var K=p.getCustomTooltip?p.getCustomTooltip(h,M.headerTooltipParagraphs):M.headerTooltipParagraphs;var t=aNr(p,h);return{type:h,index:c,style:f,classes:t,headerName:M.headerName||"",headerIcon:M.headerIcon,headerTooltipParagraphs:K||[],headerTooltipHelpContext:M.headerTooltipHelpContext,
sortOrders:M.sortOrders||[],selectionState:M.isSelectionCheckbox?p.selectionState:void 0}})};
aNr=function(p,x){var F=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],N=p.columns[x];if(N===void 0)return"";var h=F.includes("DEFAULTS")&&N.cssClass?[N.cssClass]:[];if(F.includes("SORTING")){N.sortOrders&&N.sortOrders.length&&h.push("sortable");if(p.sorting&&p.sorting.columnType===x)a:switch(p.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var c="column-sorted";break a;default:c=""}else c="";c&&h.push(c)}F.includes("FLOATING")&&(x=p.columnsToShow.indexOf(x),p.leftFloatingColumns&&x<p.leftFloatingColumns&&
h.push("floating-column"),p.leftFloatingColumns&&x===p.leftFloatingColumns-1&&h.push("last-floating-column"));F.includes("RIGHT_ALIGN")&&N.rightAlignHeader&&h.push("right-align");return h.filter(function(M){return M}).join(" ")};
cgw=function(p,x,F,N){F=F===void 0?0:F;N=N===void 0?lNd:N;if(p){var h=[],c=0;DRr(p,x,N).forEach(function(M,f){var K="min-width:"+M.minWidth+"px;padding-left:"+M.paddingLeft+"px;padding-right:"+M.paddingRight+"px;flex:"+M.flexGrow+" 0 "+M.minWidth+"px;";M.maxWidth!==Infinity&&(K=[K,"max-width:"+M.maxWidth+"px;"].join(""));c>0&&f<F&&(K=[K,"left:"+c+"px;"].join(""));h.push(K);c+=M.minWidth+M.paddingLeft+M.paddingRight});
return h}};
DRr=function(p,x,F){F=F===void 0?lNd:F;return x.map(function(N,h){N=p&&p[N]||{};var c=h===0?F.paddingLeftFirstColumn:F.padding;N.paddingLeft!==void 0&&(c=N.paddingLeft);h=h===x.length-1?F.paddingRightLastColumn:F.padding;N.paddingRight!==void 0&&(h=N.paddingRight);return{paddingLeft:c,paddingRight:h,minWidth:N.minWidth!==void 0?N.minWidth:F.minWidth,maxWidth:N.maxWidth!==void 0?N.maxWidth:F.maxWidth,flexGrow:N.flexGrow!==void 0?N.flexGrow:F.flexGrow}})};
fN$=function(p){var x=p.reduce(function(N,h){var c=h.columnId,M={};h.headerText&&(M.headerName=_.Pi(h.headerText));h.rightAlignHeader&&(M.rightAlignHeader=h.rightAlignHeader);var f;if((f=h.headerIcon)==null?0:f.iconType)M.headerIcon=_.eA(h.headerIcon.iconType);N[c]=M;return N},{}),F=p.filter(function(N){return!N.hideColumn}).map(function(N){return N.columnId});
p=p.filter(function(N){return!!N.dimensions}).reduce(function(N,h){N[h.columnId]=h.dimensions;
return N},{});
return{columns:x,columnsToShow:F,columnDimensions:p}};
_.K5p=function(p){return p?p.simpleText?p.simpleText:p.runs?p.runs.map(function(x){return x.text}).join(""):"":""};
v8r=function(p){var x=p.data;var F=p.onTap;var N=p.isSelected;var h=p.onFocusIn;if(!x)return{};p=qDH(x);N===void 0&&(N=x==null?void 0:x.isSelected);var c;return{text:ZeM(x,p),startIcon:(c=x.icon)==null?void 0:c.iconType,state:N?0:2,type:0,onTap:t4E(x,F),accessibilityLabel:dR6(x,p),onFocusIn:function(){return h==null?void 0:h()}}};
ZeM=function(p,x){if(!x)return p.text?_.K5p(p.text):void 0};
t4E=function(p,x){return function(F){x==null||x(F,p)}};
qDH=function(p){p=p.style&&p.style.styleType;return!JgM&&p==="STYLE_EXPLORE_LAUNCHER_CHIP"};
dR6=function(p,x){if(x){var F,N,h;return(h=(F=p.accessibilityData)==null?void 0:(N=F.accessibilityData)==null?void 0:N.label)!=null?h:ZeM(p,!1)}};
gV=function(p){return{signalAction:{signal:p}}};
rgp=function(){return _.sd("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?C9d:_.SDH};
E8B=function(p,x){p=p===void 0?"SOFT_RELOAD_PAGE":p;x=x===void 0?49504:x;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.ez(_.JG("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:x}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:p}}]}}}};
XXw=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.ez(_.JG("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:rgp()}};
g8p=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.ez(_.JG("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:rgp()}};
QWE=function(p,x){var F=_.ez(_.JG("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),N=_.ez(_.JG("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),h={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.ez(_.JG("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};h.serviceEndpoint=p?p:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[gV("SOFT_RELOAD_PAGE")]}};return{title:F,bodyText:N,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:h},
style:{value:x!=null?x:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
sWB=function(p){p=p===void 0?{}:p;return{title:_.ez(p.localizedZeroStateTitleText===void 0?"":p.localizedZeroStateTitleText),bodyText:_.ez(p.localizedZeroStateMessage===void 0?"":p.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ez(p.localizedZeroStateButtonText===void 0?"":p.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[zud]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.bek=function(p,x,F,N,h,c,M,f){N=N===void 0?!1:N;h=h===void 0?!1:h;c=c===void 0?0:c;M=M===void 0?-Infinity:M;f=f===void 0?!1:f;var K=[],t=_.ez(_.JG("SMART_DOWNLOADS",void 0,"Smart downloads"));M=_.ez(n8$(c,M,p.length));c=void 0;N?(p.length>0?F=ygM(p,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.S("kevlar_manual_downloads_above"),t,M):f?(c={content:F.localizedOptInBannerTitleText===void 0?"":F.localizedOptInBannerTitleText},F={content:F.localizedPromptMessage===void 0?"":F.localizedPromptMessage},
h={buttonViewModel:{title:_.JG("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.JG("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:_.vxd}]}}}}},
F={alertBannerViewModel:{heading:c,body:F,type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:h,rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}):F={backgroundPromoRenderer:{bodyText:_.ez(_.JG("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/grey_loading_spinner.gif"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"}}},c=F):h&&(c={content:F.localizedOptInBannerTitleText===
void 0?"":F.localizedOptInBannerTitleText},F={content:F.localizedOptInMessage===void 0?"":F.localizedOptInMessage},h={buttonViewModel:{title:_.JG("TURN_ON",void 0,"Turn on"),accessibilityText:_.JG("TURN_ON",void 0,"Turn on"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:127983}},onTap:{innertubeCommand:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}}}}},c={alertBannerViewModel:{heading:c,body:F,type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:h,rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});F=_.ez(_.JG("YOUR_DOWNLOADS",void 0,"Your downloads"));h=void 0;x.length>0?(h=void 0,_.S("kevlar_display_downloads_numbers")&&(h=_.ez(_.Cc("VIDEO_COUNT",x.length))),h=ygM(x,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,F,h)):N||p.length||(h={backgroundPromoRenderer:{bodyText:_.ez(_.JG("VIDEOS_WILL_APPEAR_HERE",
void 0,"Videos you download will appear here")),thumbnail:{thumbnails:[{url:"https://www.gstatic.com/youtube/img/useredu/downloads_empty_state.png"}]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_CONTENT_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:120848}}}});c&&!_.S("kevlar_manual_downloads_above")&&K.push({richSectionRenderer:{content:c,loggingDirectives:{clientVeSpec:{uiType:139572}}}});h&&K.push({richSectionRenderer:{content:h,loggingDirectives:{clientVeSpec:{uiType:51721}}}});c&&_.S("kevlar_manual_downloads_above")&&
K.push({richSectionRenderer:{content:c,loggingDirectives:{clientVeSpec:{uiType:139572}}}});if(x.length>0||N&&p.length>0)p=K.push,x={richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.ez(_.JG("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}}}}}},p.call(K,x);return{contents:K}};
_.uMr=function(p){return AgJ(p,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.YDr=function(p){return AgJ(p,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
AgJ=function(p,x){var F=[];p=ygM(p,x,!0);F.push({richSectionRenderer:{content:p}});return{contents:F}};
ygM=function(p,x,F,N,h){F=F===void 0?!1:F;p={isExpanded:F,contents:QY(p),entitySelectorType:x};N&&(p.title=N);h&&(p.subtitle=h);F||(_.S("kevlar_smart_downloads_show_more_button")?(F={buttonRenderer:{accessibility:{label:_.JG("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.ez(_.JG("SHOW_MORE",void 0,"Show more"))}},p.showMoreButton=F,F={buttonRenderer:{accessibility:{label:_.JG("SHOW_LESS",void 0,
"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.ez(_.JG("SHOW_LESS",void 0,"Show less"))}},p.showLessButton=F):(F={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.JG("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}}}},p.previousButton=F,F=
{buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.JG("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}}}},p.nextButton=F,F={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.JG("VIEW_ALL",void 0,"View all"),accessibilityText:_.JG("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:If("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}},p.menu=F));return{richShelfRenderer:p}};
QY=function(p){var x=[];p=_.a(p);for(var F=p.next();!F.done;F=p.next())if(F=F.value,$op(F)){var N=x,h=N.push;var c=void 0;if(F==null?0:(c=F.videoEntity)==null?0:c.videoId){c=Gt(_.Bi().getState(),F.videoEntity.videoId);var M=_.Bi().getState();var f=_.au(F.videoEntity.videoId,"mainVideoEntity");M=!!_.gb(M.entities)[f];M={videoId:F.videoEntity.videoId,title:p1(F.videoEntity.title),shortBylineText:p1(F.channelEntity.title),thumbnail:F.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:M&&_.S("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:ynk(F.videoEntity.videoId,c,F.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.JG("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};F.videoEntity.lengthSeconds&&(M.thumbnailOverlays=SB$(F.videoEntity.lengthSeconds,c));M.isWatched=c>0;_.S("kevlar_modern_downloads_page")&&(M.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:F.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.JG("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},M.badges=void 0);F=M}else F={};h.call(N,{richItemRenderer:{content:{videoRenderer:F},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(IeM(F)){N=x;h=N.push;var K=f=c=void 0,t=void 0,d=void 0,v=void 0,C=void 0,X=void 0,Q=void 0,b=void 0,A=void 0,Y=void 0;M=F.mainPlaylistEntity.playlistId;var O=F==null?void 0:(Y=F.mainPlaylistEntity)==null?void 0:(A=Y.thumbnailStyleData)==null?void 0:(b=A[0])==null?void 0:(Q=b.value)==null?void 0:(X=Q.collageThumbnail)==
null?void 0:X.coverThumbnail;if(M&&O){X=b7m(M);!_.S("enable_offline_playlist_page")&&(F==null?0:(C=F.mainPlaylistEntity)==null?0:C.videos)&&(C=F==null?void 0:(v=F.mainPlaylistEntity)==null?void 0:(d=v.videos)==null?void 0:d[0],d=_.h$(C).entityId,d=JSON.parse(d).videoId,d!==void 0&&(v=Gt(_.Bi().getState(),d),X=_.$v(d,M,void 0,void 0,v)));d=[];if(F==null?0:(t=F.mainPlaylistEntity)==null?0:(K=t.videos)==null?0:K.length)d=[evp(),Object.assign({},(f=$Jz(F==null?void 0:F.mainPlaylistEntity.videos.length))!=
null?f:{})];F={playlistId:M,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:O}},navigationEndpoint:X,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:d,title:p1(F.mainPlaylistEntity.title),shortBylineText:p1(F==null?void 0:(c=F.channelEntity)==null?void 0:c.title),badges:[{metadataBadgeRenderer:{label:_.JG("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.S("kevlar_modern_downloads_page")&&(F.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:wXE,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:M,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.JG("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},F.badges=void 0)}else F=void 0;h.call(N,{richItemRenderer:{content:{playlistRenderer:F},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return x};
n8$=function(p,x,F){p=p?Gzw(p):"";x!==void 0&&isFinite(x)?x===0?x=_.JG("UPDATING",void 0,"Updating..."):(x=C$M(new Date(x),new Date),x=_.JG("UPDATED_TIME",{relative_time:x},"Updated "+x)):x="";var N="";p&&x&&(N=" \u2022 ");if(F&&_.S("kevlar_display_downloads_numbers")){F=_.Cc("VIDEO_COUNT",F);if(p||x)N=" \u2022 ";return F+N+p+N+x}return p+N+x};
V4m=function(p){return LFm(p.entities).length};
_.W5Z=function(p,x){var F=jTH(p.responsiveSize),N;p=!((N=p.responsiveMap)==null||!N.some(function(h){return h.containerSize==="CONTAINER_SIZE_NARROW"&&h.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:x,sizing:F,enableFullBleedForSingleCol:!1,isCompactList:F==="COMPACT"&&p}};
Hep=function(p,x){return _.M4(p.entities,"votingEntity",x)};
mRk=function(p){if(p){var x;return((x=_.J().resolve(_.Bw(_.AD)))==null?0:x())?p.darkTheme:p.lightTheme}};
o8d=function(p,x,F){return _.Z(_.TG,null,I5$(F,[[0,function(){return _.Z("h2",{class:x},p)}],
[1,function(){return _.Z("h3",{class:x},p)}],
[2,function(){return _.Z("h4",{class:x},p)}]],function(){return _.Z("h2",{class:x},p)}))};
Oem=function(p){var x=["shelf-header-layout-wiz"];p.disableHorizontalPadding&&x.push("shelf-header-layout-wiz--disable-horizontal-padding");p.disableVerticalPadding&&x.push("shelf-header-layout-wiz--disable-vertical-padding");p.useResponsiveLayout&&(x.push("shelf-header-layout-wiz--responsive"),p.forceSmallLayout&&x.push("shelf-header-layout-wiz--narrow"));p.isOverlay&&x.push("shelf-header-layout-wiz--is-overlay");p.onClick&&x.push("shelf-header-layout-wiz--tappable");var F=["shelf-header-layout-wiz__title"];
p.forceSmallLayout&&F.push("shelf-header-layout-wiz__title--small-title");var N=["shelf-header-layout-wiz__leading-image"];p.circularImage&&N.push("shelf-header-layout-wiz__leading-image--circular-image");var h=_.h0(function(c){var M;(M=p.onClick)==null||M.call(p,c)});
return _.Z("yt-shelf-header-layout",{class:x.join(" "),"on:click":h,tabindex:p.onClick?0:void 0},p.leadingIcon?_.Z("div",{class:"shelf-header-layout-wiz__leading-icon"},_.Z(_.DS,{icon:p.leadingIcon})):p.leadingImage?_.Z("div",{class:N.join(" ")},p.leadingImage()):_.Z(_.TG,null),_.Z("div",{class:"shelf-header-layout-wiz__label-container"},p.superlabel?_.Z("div",{class:"shelf-header-layout-wiz__superlabel"},p.superlabel()):_.Z(_.TG,null),_.Z("div",{class:"shelf-header-layout-wiz__title-row"},o8d(p.title(),
F.join(" "),p.tagLevel),_.je(p.detail,function(){return _.Z("div",{class:"shelf-header-layout-wiz__detail"},p.detail())})),p.sublabel?_.Z("div",{class:"shelf-header-layout-wiz__sublabel"},p.sublabel()):_.Z(_.TG,null)),p.trailingActions?_.Z("div",{class:"shelf-header-layout-wiz__trailing-actions"},p.trailingActions()):_.Z(_.TG,null))};
jWH=function(p){var x=_.r(p==null?void 0:p.avatar,_.P2),F,N=(F=p==null?void 0:p.image)!=null?F:_.Us(p==null?void 0:p.themedImage);return _.Z(_.TG,null,_.je(N,function(){return _.Z(_.VE,{data:N,alt:"",preserveWidth:!0,preserveHeight:!0})}),_.je(x,function(){return _.Z(_.zu,{data:x})}))};
TuZ=function(p){var x=_.r(p.bottomBadge,L5H),F=x&&p.sublabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.Z(_.TG,null,_.je(x,function(){return x&&_.Z(P9p,{data:x,class:F})}),_.je(p.sublabel,function(){return _.Z(_.KQ,{text:p.sublabel})}))};
Bu6=function(p){var x=_.r(p.topBadge,L5H),F=x&&p.superlabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.Z(_.TG,null,_.je(x,function(){return x&&_.Z(P9p,{data:x,class:F})}),_.je(p.superlabel,function(){return _.Z(_.KQ,{text:p.superlabel})}))};
kzz=function(p){var x=p.data;var F=p.disableHorizontalPadding;var N=p.disableVerticalPadding;var h=p.forceSmallLayout;var c=p.useResponsiveLayout;p=p.isOverlay;var M=x.sublabel||x.bottomBadge,f=x.superlabel||x.topBadge,K=_.H2(x.rendererContext);F={title:function(){return _.Z(_.KQ,{text:x.headline})},
sublabel:M&&function(){return TuZ(x)},
superlabel:f&&function(){return Bu6(x)},
leadingImage:x.leadingAccessory&&function(){return jWH(x.leadingAccessory)},
trailingActions:x.trailingActions&&function(){return _.Z(_.TG,null,Rup(x.trailingActions))},
disableHorizontalPadding:F,disableVerticalPadding:N,forceSmallLayout:h,useResponsiveLayout:c,isOverlay:p,onClick:K?function(t){var d=_.wR(x.rendererContext);d&&_.QE(d,{form:{element:t.target,event:t}})}:void 0};
N=(N=mRk(x==null?void 0:x.backgroundColor))?"background-color: "+_.QK(N)+";":void 0;return _.Z("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:N},_.Z(Oem,Object.assign({},F)))};
URr=function(p,x){if(p.simpleText)return Object.assign({},p,{simpleText:yE(p.simpleText,x)});if(!p.runs)return p;for(var F=Object.assign({},p,{runs:[]}),N=0,h=_.a(p.runs),c=h.next();!c.done;c=h.next())if(c=c.value,c.text)if(N+c.text.length<=x)F.runs.push(c),N+=c.text.length;else return F.runs.push(Object.assign({},c,{text:yE(c.text,x-N)})),F;return p};
iem=function(p,x){return _.M4(p.entities,"chipBarStateEntity",x)};
INH=function(p,x){return _.M4(p.entities,"chipEntity",x)};
eu$=function(p,x,F,N){return function(){var h=$Rz.has(p.displayType)&&p.selected,c=h&&p.deselectCommand?p.deselectCommand:p.tapCommand;!c||h&&N||_.su(c,{form:{element:x==null?void 0:x.value}});F==null||F()}};
p_k=function(p,x){return{triggeringElement:p,onDwellTriggeredFn:function(){var F={triggeringElement:p,loadVideoPreviewEventData:x},N=document.querySelector(".video-preview");N&&N.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:F}))},
onDwellEndFn:function(){var F=document.querySelector(".video-preview");F&&F.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
xlE=function(p,x){var F=_.J().resolve(_.Bw(QTw)),N=function(){var h=x();return F&&h?p_k(p.value,h):null};
_.rx(function(){var h=N();F&&h&&Promise.resolve().then(function(){F.registerElement(h)});
_.E_(function(){F&&h&&Promise.resolve().then(function(){F.unregisterElement(h)})})})};
N7H=function(p){var x=p.dataset.resizeObserverId;if(x)return x;x=""+FQB++;return p.dataset.resizeObserverId=x};
hpH=function(p,x){var F=N7H(p);sW.has(F)||sW.set(F,new Set);sW.get(F).add(x);nE.has(F)&&x(Object.assign({},{target:p},nE.get(F)))};
l46=function(p){p=_.a(p);for(var x=p.next();!x.done;x=p.next()){x=x.value;var F=N7H(x.target),N=Object.assign({},{target:x.target},nE.get(F));if(N!=null&&N.contentRect?N.contentRect.width!==x.contentRect.width||N.contentRect.height!==x.contentRect.height:1)for(nE.set(F,{borderBoxSize:x.borderBoxSize,contentBoxSize:x.contentBoxSize,contentRect:x.contentRect,devicePixelContentBoxSize:x.devicePixelContentBoxSize}),F=_.a(sW.get(F)||[]),N=F.next();!N.done;N=F.next())N=N.value,N(x)}};
a46=function(){return yY?yY:yY=new cNB(l46)};
MkE=function(p,x){var F=N7H(p);sW.has(F)&&(sW.get(F).delete(x),sW.get(F).size===0&&(sW.delete(F),nE.delete(F),yY.unobserve(p),delete p.dataset.resizeObserverId));sW.size===0&&yY&&(yY.disconnect(),yY=void 0)};
f4$=function(p,x){var F=_.J().resolve(kl);return Dlp.map(function(N){return F.observe(p,x,N)})};
KQ$=function(p){var x=_.J().resolve(kl);p.forEach(function(F){x.unobserveByKey(F)})};
tkZ=function(p){var x=Object.assign({},qSM,{canHaveZeroSize:!1}),F=_.a(XZd()),N=F.next().value,h=F.next().value,c=function(M){var f=M.contentRect.height;if((M=M.contentRect.width)||f||x.canHaveZeroSize)N.width()===M&&N.height()===f||h(N,{height:f,width:M})};
_.J9(function(){var M=p instanceof HTMLElement?p:p.value,f=Zmw(c,x.throttleMs),K=[];x.useVisibilityObserver&&(K=f4$(M,function(t,d){requestAnimationFrame(function(){d==="visible"?(hpH(M,f),a46().observe(M)):MkE(M,f)})}));
K.length||(hpH(M,f),a46().observe(M));_.E_(function(){K.length&&(KQ$(K),K.length=0);MkE(M,f)})});
return N};
vyE=function(p){var x=p.data;var F=p.callback;var N=p.enableSingleChipSelection;p={};p=_.a(hR(x.autoselectedChipIndex!=null?(p[x.autoselectedChipIndex]=!0,p):{}));var h=p.next().value,c=p.next().value,M=x.isHorizontallyScrollable;p={};return _.Z("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},(x==null?void 0:x.title)&&_.Z("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},x.title),_.Z("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.je(x.previousButton!=null,function(){return _.Z("div",
{class:"ytChipsShelfViewModelLeftArrowContainer"},_.Z("div",{class:"ytChipsShelfViewModelLeftArrow"},dlr(x.previousButton)))}),_.Z("div",{class:_.$L("ytChipsShelfViewModelChipsScrollContainer",(p.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=function(){return!!M},p))},(x.contents||[]).map(function(f,K){return _.Z("div",{class:"ytChipsShelfViewModelChipWrapper"},dlr(f,{chipViewModel:{callback:function(t,d){if(N){var v={};
c((v[K]=d,v))}else v={},c(Object.assign({},h,(v[K]=d,v)));F==null||F(t,d,K)},
disableDeselection:N,selected:!!h[K]}}))})),_.je(x.nextButton!=null,function(){return _.Z("div",{class:"ytChipsShelfViewModelRightArrowContainer"},_.Z("div",{class:"ytChipsShelfViewModelRightArrow"},dlr(x.nextButton)))})))};
CQJ=function(p,x,F,N,h){p=x?p.switchOffCommand:p.switchOnCommand;if(N&&h)JNd(p,F,h);else{var c,M;(c=_.zT({elementsCommand:p}))==null||(M=c.onclick)==null||M.call(c,F)}};
JNd=function(p,x,F){p=_.zT({elementsCommand:p,additionalCommandArgs:{commandController:{onSuccess:function(){F(!1)},
onServerError:function(){F(!1)}}}});
if(p==null?0:p.onclick)p.onclick(x),F(!0)};
rNd=function(p){if(p)return _.r(p,SSw)};
Ey$=function(p){p=p.selectElementClass;var x={};p=_.pQ("checkbox-shape-wiz__checkbox",p,(x["checkbox-shape-wiz__checkbox--checkbox-default-style"]=!p,x));return _.Z("div",{class:p,"aria-hidden":"true"},_.Z(_.DS,{icon:"BOX_EMPTY"}),_.Z(_.DS,{icon:"BOX_CHECK",active:!0}))};
X_H=function(p){var x=p.name;var F=p.onChange;var N=p.onClick;var h=p.checked===void 0?!1:p.checked;var c=p.labelRenderable;var M=p.hasLeadingLabel;var f=p.labelClass;var K=p.isCompact;var t=p.selectElementClass;var d=p.disableHorizontalPadding;p="checkbox"+_.bW(_.AI);var v=_.oc(),C=_.h0(function(b){N==null||N(b);return!1}),X=_.h0(function(b){v.value.checked=h;
F==null||F(b);return!1}),Q={};
f=_.pQ("checkbox-shape-wiz",f,(Q["checkbox-shape-wiz--compact"]=!!K,Q["checkbox-shape-wiz--disable-horizontal-padding"]=!!d,Q));return _.Z("checkbox-shape",null,_.Z("label",{class:f},_.Z("input",{el:v,class:"checkbox-shape-wiz__input",id:p,checked:h,name:x,type:"checkbox","on:change":X,"on:click":C}),_.je(!M,function(){return Ey$({isLeading:!0,selectElementClass:t})}),_.je(c,function(){return _.Z("div",{class:"checkbox-shape-wiz__label"},c==null?void 0:c())}),_.je(M,function(){return Ey$({isLeading:!1,
selectElementClass:t})})))};
gyZ=function(p){var x=p.useCheckIcon===void 0?!1:p.useCheckIcon;var F=p.selectElementClass;p=x?"CHECK":"CIRCLE";var N=x?"CHECK":"CIRCLE_FILLED",h={};F=_.pQ("radio-shape-wiz__radio",F,(h["radio-shape-wiz__radio--check-icon"]=!!x,h["radio-shape-wiz__radio--radio-default-style"]=!F,h));return _.Z("div",{class:F,"aria-hidden":"true"},_.Z(_.DS,{icon:p}),_.Z(_.DS,{icon:N,active:!x}))};
Q2z=function(p){function x(){var R;((R=_.J().resolve(_.Bw(_.dR)))==null?0:R.isKeyBoardInUse())&&A.value.classList.add("radio-shape-wiz__label-container--keyboard-focused")}
function F(){A.value.classList.remove("radio-shape-wiz__label-container--keyboard-focused")}
var N=p.name;var h=p.onChange;var c=p.onClick;var M=p.checked===void 0?!1:p.checked;var f=p.labelRenderable;var K=p.useCheckIcon;var t=p.hasLeadingLabel;var d=p.labelClass;var v=p.isCompact;var C=p.selectElementClass;var X=p.ariaLabel;var Q=p.className;p=Sr(function(){return"radio"+_.bW(_.AI)});
var b=_.oc(),A=_.oc(),Y=_.h0(function(R){b.value.checked=M;h==null||h(R);return!1}),O=_.h0(function(R){c==null||c(R);
return!1}),Fw=["radio-shape-wiz"];
Q&&Fw.push(Q);Q={};d=_.pQ("radio-shape-wiz__label-container",d,(Q["radio-shape-wiz--compact"]=!!v,Q));Z9(function(){document.activeElement===b.value&&x()});
_.J9(function(){var R=b.value;R.addEventListener("focusin",x);R.addEventListener("focusout",F);return function(){R.removeEventListener("focusin",x);R.removeEventListener("focusout",F)}});
return _.Z("radio-shape",{class:Fw.join(" ")},_.Z("input",{el:b,class:"radio-shape-wiz__input",id:p,"prop:checked":M,name:N,type:"radio","on:change":Y,"on:click":O,"aria-label":X}),_.Z("label",{class:d,for:p,el:A},_.je(!t,function(){return gyZ({checked:M,useCheckIcon:K,isLeading:!0,selectElementClass:C})}),_.je(f,function(){return _.Z("div",{class:"radio-shape-wiz__label",
"aria-hidden":X?"true":"false"},f==null?void 0:f())}),_.je(t,function(){return gyZ({checked:M,
useCheckIcon:K,isLeading:!1,selectElementClass:C})})))};
s2M=function(p){var x=p.data;var F=p.isLeading;var N=p.hideSelectionTextChevron;if(F&&(x.leadingImage||x.leadingAccessory)||!F&&(x.trailingImage||x.trailingButton||x.trailingButtons||x.selectionText)){var h=_.pQ("yt-list-item-view-model-wiz__button-container");p={};var c=_.pQ("yt-list-item-view-model-wiz__image-container",(p["yt-list-item-view-model-wiz__leading"]=F,p["yt-list-item-view-model-wiz__trailing"]=!F,p)),M=F?x.leadingImage:x.trailingImage,f=_.pQ("yt-list-item-view-model-wiz__accessory",
"yt-list-item-view-model-wiz__image");p={};var K=_.pQ("yt-list-item-view-model-wiz__accessory",(p["yt-list-item-view-model-wiz__leading"]=F,p["yt-list-item-view-model-wiz__trailing"]=!F,p)),t=!!x.selectionText;a:switch(x.listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":p="expand_more";break a;default:p="chevron_right"}var d=p;return function(){var v;return _.Z(_.TG,null,_.je(M,function(){return _.Z("div",{class:c,"aria-hidden":"true"},_.Z(_.VE,{data:M,alt:"",
preserveWidth:!0,preserveHeight:!0,className:f}))}),_.je(F&&x.leadingAccessory,function(){return _.Z("div",{class:c},zpz(x.leadingAccessory,{avatarViewModel:{avatarButtonCustomClassName:f}}))}),_.je(!F&&x.trailingButton,function(){return _.Z("div",{class:h},zpz(x.trailingButton,{buttonViewModel:{className:K}}))}),_.je(!F&&((v=x.trailingButtons)==null?void 0:v.buttons),function(){var C;
return _.Z("div",{class:h},zpz((C=x.trailingButtons)==null?void 0:C.buttons,{buttonViewModel:{className:K},accountLinkButtonViewModel:{className:K},switchButtonViewModel:{className:K},subscribeButtonViewModel:{isOverlay:!1,animateWidth:!1},toggleButtonViewModel:{className:K}}))}),_.je(!F&&t,function(){return _.Z(_.TG,null,_.Z(_.KQ,{text:x.selectionText,
className:_.pQ("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.je(!N,function(){return _.Z(_.DS,{icon:d,className:"yt-list-item-view-model-wiz__chevron-icon"})}))}))}}};
nyM=function(p){return p.title||p.subtitle?function(){return _.Z("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.Z("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.je(p.title,function(){return _.Z(_.KQ,{text:p.title,className:"yt-list-item-view-model-wiz__title"})})),_.je(p.subtitle,function(){return _.Z(_.KQ,{text:p.subtitle,
className:"yt-list-item-view-model-wiz__subtitle"})}))}:function(){return _.Z(_.TG,null)}};
yNp=function(p){function x(){var Y$;((Y$=_.J().resolve(_.Bw(_.dR)))==null?0:Y$.isKeyBoardInUse())&&ld.value.classList.add("yt-list-item-view-model-wiz--keyboard-focused")}
function F(){ld.value.classList.remove("yt-list-item-view-model-wiz--keyboard-focused")}
var N=p.data;var h=p.isMenuItem;var c=p.isCompact;var M=p.onTap;var f=p.trailingAccessory;var K=p.hideSelectionTextChevron;var t=p.disabled;var d=p.inPopup;var v=p.disableHorizontalPadding;var C=p.isOverlay;p=ctr(function(Y$){a:if((N==null?0:N.entitySelectorType)&&(N==null?0:N.entityKey))switch(N.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":Y$=_.pBd(Y$,N.entityKey);Y$=Y$==null?void 0:Y$.value;var xB=!1;Y$==="CAPTIONS_UNAVAILABLE"&&(xB=!0,Y$=
"");Y$=Object.assign({},!!Y$&&{selectionText:{content:Y$}},{isSelected:!!Y$},!!Y$&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:xB});break a;default:Y$={}}else Y$={};return Y$});
var X=_.S("enable_web_shorts_captions_language_command")?Object.assign({},N,p):N;p=!(X.isSelected===void 0||!X.selectionStyle||X.selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED");var Q=(_.H2(X.rendererContext)||M)&&!p,b=_.H2(X.rendererContext)||p;t=!!X.isDisabled||!!t;var A={};C=_.pQ("yt-list-item-view-model-wiz",(A["yt-list-item-view-model-wiz--is-overlay"]=!!C,A));A={};var Y=_.pQ("yt-list-item-view-model-wiz__label",(A["yt-list-item-view-model-wiz__container"]=!p,A["yt-list-item-view-model-wiz__container--disabled"]=
t,A["yt-list-item-view-model-wiz__container--has-subtitle"]=!!X.subtitle,A["yt-list-item-view-model-wiz__container--compact"]=!!c,A["yt-list-item-view-model-wiz__container--tappable"]=Q,A["yt-list-item-view-model-wiz__container--in-popup"]=!!d,A));t={};t=_.pQ("yt-list-item-view-model-wiz__container",(t["yt-list-item-view-model-wiz__container--tappable"]=b,t["yt-list-item-view-model-wiz__container--compact"]=!!c,t["yt-list-item-view-model-wiz__container--in-popup"]=!!d,t["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=
!!v,t));A=X.leadingImage||X.leadingAccessory;var O=_.pQ("yt-list-item-view-model-wiz__image-container",A?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"),Fw=_.S("apply_button_role_to_list_item");d=_.oc();var R=_.oc(),ld=Fw?R:d,pp=function(){var Y$,xB,qI;return _.Z(_.TG,null,(Y$=s2M({data:X,isLeading:!0,hideSelectionTextChevron:!!K}))==null?void 0:Y$(),(xB=nyM(X))==null?void 0:xB(),f?_.Z("div",{class:"yt-list-item-view-model-wiz__trailing"},f):(qI=s2M({data:X,isLeading:!1,
hideSelectionTextChevron:!!K}))==null?void 0:qI())},Kp=function(){return Fw?_.Z("div",{class:Y,
el:R,role:b||Q?"button":void 0,tabindex:M||Q?0:void 0,"on:keydown":Jz,"on:click":np},pp()):_.Z("div",{class:Y,el:R},pp())},sM={labelRenderable:Kp,
isCompact:c,checked:X.isSelected,hasLeadingLabel:!!A,labelClass:t,selectElementClass:O,disableHorizontalPadding:!!v};_.mU(d,X.rendererContext);var np=_.h0(function(Y$){return void(M==null?void 0:M(Y$))}),Jz=_.ur();
_.J9(function(){Q&&(ld.value.addEventListener("focusin",x),ld.value.addEventListener("focusout",F));return function(){ld.value&&Q&&(ld.value.removeEventListener("focusin",x),ld.value.removeEventListener("focusout",F))}});
c=_.h0(function(){return!1});
return _.Z("yt-list-item-view-model",{el:d,class:C,role:h?"menuitem":"listitem",tabindex:Fw?void 0:M||Q?0:void 0,"on:keydown":Fw?c:Jz,"on:click":Fw?c:np},_.je(p,function(){return I5$(X.selectionStyle,[["LIST_ITEM_SELECTION_STYLE_CHECKBOX",function(){return _.Z(X_H,Object.assign({},sM))}],
["LIST_ITEM_SELECTION_STYLE_RADIO",function(){return _.Z(Q2z,Object.assign({},sM))}],
["LIST_ITEM_SELECTION_STYLE_DEFAULT",function(){return _.Z(Q2z,Object.assign({},sM,{useCheckIcon:!0}))}]],function(){return Kp()})},function(){return Kp()}))};
w_E=function(p,x,F){if(x)return[bmw];switch(p){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[uW];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return F?[uW]:[ANJ,uW];case "TRANSFER_STATE_PAUSED_BY_USER":return[uIw,uW];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[YSB,uW];default:return[bmw]}};
G9M=function(p,x,F,N){return w_E(p,x,N).map(function(h){var c=h.text,M=h.iconType,f=h.videoAction;h=h.playlistAction;c=c?{content:c}:void 0;M=M&&{sources:[{clientResource:{imageName:M}}]};var K=(0,_.Q5.unsafeClone)(F);if(K){var t=_.r(K,_.lr),d=_.r(K,_.c2);t&&f?t.action=f:d&&h&&(d.action=h)}return{title:c,leadingImage:M,rendererContext:K&&{commandContext:{onTap:{innertubeCommand:K}}}}})};
VkM=function(p){p=_.wR(p.rendererContext);var x;return(x=_.r(p,_.c2))==null?void 0:x.playlistId};
WQZ=function(p){var x;return(x=p.listItems)==null?void 0:x.some(function(F){var N;return _.H2((N=_.r(F,_.Zt))==null?void 0:N.rendererContext)})};
mlm=function(p){var x=p.data;var F=p.isCompact;var N=p.hideSelectionTextChevron;var h=p.inPopup;p=p.isOverlay;var c=WQZ(x)&&h;return _.Z("yt-list-view-model",{class:"yt-list-view-model-wiz",role:c?"menu":"list"},HmH(x.listItems,{listItemViewModel:{isMenuItem:c,isCompact:F,hideSelectionTextChevron:N,inPopup:h,isOverlay:p},downloadListItemViewModel:{isMenuItem:c,isCompact:F,inPopup:h}}))};
Yq=function(p){var x=_.J().resolve(_.Bw(_.AD));return x!=null&&x()?p.darkThemeColorPalette:p.lightThemeColorPalette};
Gu=function(p){return{primaryTextColor:wV(p,0),secondaryTextColor:wV(p,1),optionColor:wV(p,2),backgroundColor:wV(p,3),videoBackgroundColor:wV(p,4)}};
wV=function(p,x){if(p){switch(x){case 0:p=p.primaryTitleColor;break;case 1:p=p.secondaryTitleColor;break;case 2:p=p.surgeColor;break;case 3:p=p.section2Color;break;case 4:p=p.section3Color;break;default:return}if(p)return _.gX(p)}};
oyw=function(p){return p?_.QK(p):""};
Om$=function(p){return(p==null?void 0:p.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
j2r=function(p,x){var F;return"linear-gradient(to bottom, "+((F=x==null?void 0:x.map(function(N){var h=p?N.darkThemeColor:N.lightThemeColor;return h?_.QK(h)+" "+((N==null?void 0:N.startLocation)||0)*100+"%":"transparent"}))==null?void 0:F.join(", "))+")"};
LQ$=function(p){var x=p.className;var F=p.data;var N=p.isOverlay;var h=p.maxLinesOverride;var c=p.useMediumText;p=_.oc();var M=F.description,f=F.alwaysShowTruncationText,K=F.truncationText,t=F.maxLines,d,v=!((d=_.r(F.rendererContext,seZ))==null||!d.onTap),C,X,Q=(X=(C=_.r(F.rendererContext,_.Os))==null?void 0:C.label)!=null?X:"";d=_.a(hR(!1));var b=d.next().value,A=d.next().value;_.mU(p,F.rendererContext);d=_.h0(function(){F.expandOnTap&&A(!b);return!1});
C={};return _.Z("yt-description-preview-view-model",{el:p,class:_.pQ("yt-description-preview-view-model-wiz",x,(C["yt-description-preview-view-model-wiz--clickable"]=v,C["yt-description-preview-view-model-wiz--is-overlay"]=N,C)),"on:click":d},_.je(M,function(){var Y={};return b?_.Z("div",{class:_.pQ("yt-description-preview-view-model-wiz__description",(Y["yt-description-preview-view-model-wiz__description--medium-text"]=c,Y))},_.Z(_.KQ,{text:M})):_.Z(uHE,{text:M,alwaysShowTruncationText:f,truncationText:K,
maxLines:h!=null?h:t,isOverlay:N,accessibilityLabel:Q,useMediumText:c})}))};
B7B=function(p,x,F,N,h){var c=!p.metadata;var M=x?_.r(p.heroImage,PQk):_.r(p.animatedImage||p.image,PQk);if(!M)return{size:0};p=M.style;var f=M.layoutMode;M=lUk(hId(M));if(x)x=T7B(F,p,f,M,h);else a:if(c)x=F===1?{size:48}:{size:72};else switch(F){case 1:x={size:72};break a;case 2:x={size:120};break a;default:x=N<4?{size:120}:{size:160}}return x};
T7B=function(p,x,F,N,h){if(!((N==null?0:N.height)&&(N==null?0:N.width)))return{size:0};var c=N.width;N=N.height;if(h)return x==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||x==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&c>N?{size:312/FuE}:x==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(F!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||p!==1&&p!==2||x!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&x!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&x!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(x==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||x==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||N===c)switch(p){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(x==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||N>c)switch(p){case 1:case 3:return{size:240*xkp};default:return{size:360*xkp}}switch(p){case 1:case 2:return{size:1/FuE*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.Rpp=function(p){if(!("matchMedia"in window))return _.uO(Error("Nh")),function(){return!1};
var x=window.matchMedia(p);p=_.a(_.hu(x.matches,void 0,"jLJc8e"));var F=p.next().value,N=p.next().value,h=function(c){N(c.matches)};
x.addEventListener?(x.addEventListener("change",h),_.E_(function(){x.removeEventListener("change",h)})):x.addListener&&(x.addListener(h),_.E_(function(){x.removeListener(h)}));
return F};
k9z=function(p){return p==="IMAGE_BANNER_STYLE_INSET"||p==="IMAGE_BANNER_STYLE_UNKNOWN"};
UlJ=function(){if(!("matchMedia"in window))return _.uO(Error("Nh")),0;var p=Sr(function(){return window.matchMedia("(max-width: 527.9px)")}),x=Sr(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),F=Sr(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),N=Sr(function(){return window.matchMedia("(min-width: 1024px)")}),h=_.a(hR(p.matches)),c=h.next().value,M=h.next().value,f=_.a(hR(x.matches));
h=f.next().value;var K=f.next().value,t=_.a(hR(F.matches));f=t.next().value;var d=t.next().value;t=_.a(hR(N.matches));var v=t.next().value,C=t.next().value,X=Sr(function(){return function(Y){M(Y.matches)}}),Q=Sr(function(){return function(Y){K(Y.matches)}}),b=Sr(function(){return function(Y){d(Y.matches)}}),A=Sr(function(){return function(Y){C(Y.matches)}});
_.J9(function(){p.addEventListener?(p.addEventListener("change",X),x.addEventListener("change",Q),F.addEventListener("change",b),N.addEventListener("change",A)):p.addListener&&(p.addListener(X),x.addListener(Q),F.addListener(b),N.addListener(A));return function(){p.removeEventListener?(p.removeEventListener("change",X),x.removeEventListener("change",Q),F.removeEventListener("change",b),N.removeEventListener("change",A)):p.removeListener&&(p.removeListener(X),x.removeListener(Q),F.removeListener(b),
N.removeListener(A))}});
return c?1:h?2:f?3:v?4:0};
imk=function(p){var x=0;p=_.a([p.title,p.metadata,p.actions,p.description,p.attribution]);for(var F=p.next();!F.done;F=p.next())F.value&&x++;return x};
$l6=function(p,x,F){var N;if(p=_.r((N=_.r(p.image,I4H))==null?void 0:N.avatar,_.P2))switch(x){case 1:p.avatarImageSize="AVATAR_SIZE_XL";break;case 2:p.avatarImageSize="AVATAR_SIZE_XXL";break;default:F<4?p.avatarImageSize="AVATAR_SIZE_XXL":p.avatarImageSize="AVATAR_SIZE_XXXL"}};
_.pRp=function(p){var x=p.data;var F=p.noPadding;var N=p.enableBanner;var h=p.cinematicContainerTopbarOffset;var c=p.allowCinematicContainerOverflow;var M=p.displayAsSidebar;var f=p.displayAsPanel;p=imk(x);var K=!!x.heroImage,t=!!x.image||!!x.animatedImage,d=!!x.background,v=M||f?1:UlJ(),C=v===1,X=v===2,Q=C||X,b=v===4,A=B7B(x,K,v,p,M),Y={};F=_.pQ((Y["page-header-view-model-wiz"]=!0,Y["page-header-view-model-wiz--no-padding"]=!!F,Y["page-header-view-model-wiz--small-top-padding"]=C&&!x.actions||X&&
!(t||K),Y["page-header-view-model-wiz--small-bottom-padding"]=Q&&!x.actions,Y["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=!c,Y["page-header-view-model-wiz--display-as-sidebar"]=M,Y["page-header-view-model-wiz--display-as-panel"]=f,Y));c={};c=_.pQ((c["page-header-view-model-wiz__page-header-headline"]=!0,c["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=A.allowFullWidth,c));M=Q&&!A.allowFullWidth;f=(X=C&&(K||t)&&p>0)&&f;Y={};f=(Y["page-header-view-model-wiz__page-header-title"]=
!0,Y["page-header-view-model-wiz__page-header-title--page-header-title-large"]=!X,Y["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=X&&!f,Y["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=f,Y["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=d,Y);X={};X=(X["page-header-view-model-wiz__page-header-headline-image"]=!0,X["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=
K&&Q,X);var O;Y={};var Fw=(Y["page-header-view-model-wiz__page-header-banner-container"]=N,Y["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=N&&((O=_.r(x.banner,_.epr))==null?void 0:O.style)==="IMAGE_BANNER_STYLE_FULL_BLEED",Y);O={};O=(O["page-header-view-model-wiz__page-header-content-metadata"]=!0,O["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=d,O);Y={};Y=(Y["page-header-view-model-wiz__page-header-flexible-actions"]=!0,
Y["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=!!x.metadata||Q,Y["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=!Q,Y);var R={};R=(R["page-header-view-model-wiz__page-header-attribution"]=!0,R["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=d,R);var ld={descriptionPreviewViewModel:{className:"page-header-view-model-wiz__page-header-description",isOverlay:d,
maxLinesOverride:C?void 0:1,useMediumText:b},dynamicTextViewModel:{className:_.pQ(f)},contentPreviewImageViewModel:{className:_.pQ(X),imageSizeConfig:A},contentMetadataViewModel:{layout:C?1:0,className:_.pQ(O),isOverlay:d,useMediumText:b},flexibleActionsViewModel:{layout:v===1||v===2?1:0,className:_.pQ(Y)},attributionViewModel:{className:_.pQ(R),useMediumText:b},decoratedAvatarViewModel:{className:_.pQ(X)},cinematicContainerViewModel:{topbarOffset:h},flexibleContainer:{isOverlay:d}};t&&$l6(x,v,p);
return _.Z("yt-page-header-view-model",{class:F},_.je(d,function(){return _.Z("div",{class:"page-header-view-model-wiz__page-header-background"},VY(x.background,ld))}),_.Z("div",{class:"page-header-view-model-wiz__page-header-content"},_.je(N&&(x==null?void 0:x.banner),function(){return _.Z("div",{class:_.pQ(Fw)},VY(x==null?void 0:x.banner,ld))}),_.Z("div",{class:c},_.je(t,function(){return VY((x==null?void 0:x.animatedImage)||(x==null?void 0:x.image),ld)}),_.je(K&&!M,function(){return VY(x==null?
void 0:x.heroImage,ld)}),_.Z("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.je(K&&M,function(){return _.Z("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},VY(x==null?void 0:x.heroImage,ld))}),_.je(x==null?void 0:x.title,function(){return VY(x==null?void 0:x.title,ld)}),_.je(x.metadata,function(){return VY(x.metadata,ld)}),_.je(x.description&&!C,function(){return VY(x.description,ld)}),_.je(x.attribution&&!Q,function(){return VY(x.attribution,
ld)}),_.je(x.actions&&!Q,function(){return VY(x.actions,ld)}))),_.Z("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.je(x.description&&C,function(){return VY(x.description,ld)}),_.je(x.attribution&&Q,function(){return VY(x.attribution,ld)}),_.je(x.actions&&Q,function(){return VY(x.actions,ld)})),_.Z("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.je(x.bottomMetadataFlexibleContainer,function(){return VY(x.bottomMetadataFlexibleContainer,ld)}))))};
FaE=function(p){var x,F=((x=_.J().resolve(_.Bw(_.AD)))==null?0:x())&&p.data.darkThemeImage?p.data.darkThemeImage:p.data.image;x=_.Z("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.Z("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},F?_.Z(_.VE,{data:F,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),xXJ(p.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));F=_.Z(_.KQ,{text:p.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var N=p.data;if(N.bodyText){var h=[];N=_.a(N.bodyText);for(var c=N.next();!c.done;c=N.next())h.push(_.Z(_.KQ,{text:c.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else h=_.Z(_.TG,null);return _.Z("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},x,F,h,xXJ(p.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.Z(_.KQ,{text:p.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.Z(_.KQ,{text:p.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
hk$=function(p){p=(new NZz).parse(p);return(new DI).render(p).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(x){var F=x.split(":").map(Number),N=0,h=0;if(F.length===3)F=_.a(F),N=F.next().value,h=F.next().value,F=F.next().value;else if(F.length===2)F=_.a(F),h=F.next().value,F=F.next().value;else if(F.length===1)F=_.a(F).next().value;else throw Error("Oh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(N*3600+h*60+F)+'" role="button">'+x+"</span>"})};
lwr=function(p){p=_.a(p.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var x=p.next(),F={};!x.done;F={clickHandler$jscomp$4:void 0},x=p.next()){x=x.value;F.clickHandler$jscomp$4=function(h){h=Number(h.target.getAttribute("data-time"));if(isNaN(h))throw Error("Ph");var c=document.querySelector("video");c&&(c.currentTime=h)};
var N=function(h){return function(c){c.key!=="Enter"&&c.key!=="Space"||(0,h.clickHandler$jscomp$4)(c)}}(F);
x.setAttribute("tabindex","0");x.removeEventListener("click",F.clickHandler$jscomp$4);x.removeEventListener("keydown",N);x.addEventListener("click",F.clickHandler$jscomp$4);x.addEventListener("keydown",N)}};
cip=function(){return _.Z("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.Z(Wc,{percentWidth:100}),_.Z(Wc,{animationDelay:200}),_.Z(Wc,{animationDelay:400}),_.Z(Wc,{animationDelay:600}),_.Z(Wc,{animationDelay:800,percentWidth:60}),_.Z("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.Z(Wc,{percentWidth:100}),_.Z(Wc,{animationDelay:200}),_.Z(Wc,{animationDelay:400}),_.Z(Wc,{animationDelay:600,percentWidth:50}))};
Wc=function(p){return _.Z("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(p.percentWidth===void 0?100:p.percentWidth)+"%"},_.Z("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(p.animationDelay===void 0?0:p.animationDelay)+"ms"}))};
awH=function(){var p=_.a(_.hu(function(){return""},void 0,"v2wS5e")),x=p.next().value;
return[function(){return x()()},
p.next().value]};
DX$=function(p){p=p===void 0?{}:p;return{title:_.ez(p.localizedOptInBannerTitleText===void 0?"":p.localizedOptInBannerTitleText),titleLength:19,subtitle:_.ez(p.localizedOptInMessage===void 0?"":p.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ez(_.JG("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:_.ez(_.JG("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:[MxH]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
fw6=function(p,x){p=p?Gzw(p):"";x!==void 0&&isFinite(x)?x===0?x=_.JG("UPDATING",void 0,"Updating..."):(x=C$M(new Date(x),new Date),x=_.JG("UPDATED_TIME",{relative_time:x},"Updated "+x)):x="";var F="";p&&x&&(F=" \u2022 ");return _.ez(p+F+x)};
Z3z=function(p,x,F,N,h,c){x=x===void 0?0:x;var M=Ka$[x],f=M.title,K=M.iconType,t=M.topButtonRenderer,d=M.sectionClientVE;M=M.videoClientVE;var v;if(x!==1||p.length){F=[];p=_.a(p);for(N=p.next();!N.done;N=p.next()){var C=N.value;if($op(C))F.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:C.videoEntity.videoId,title:p1(C.videoEntity.title),shortBylineText:p1(C.channelEntity.title),thumbnail:C.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:C.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.JG("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:M}}}}}});else if(IeM(C)){N=F;var X=N.push;var Q=void 0,b=void 0,A=void 0,Y=void 0,O=void 0,Fw=void 0,R=void 0,ld=void 0,pp=C.mainPlaylistEntity.playlistId,Kp=C==null?void 0:(ld=C.mainPlaylistEntity)==null?void 0:(R=ld.thumbnailStyleData)==null?void 0:(Fw=R[0])==null?void 0:(O=Fw.value)==null?void 0:(Y=O.collageThumbnail)==null?void 0:Y.coverThumbnail;Y=b7m(pp);if(!_.S("enable_offline_playlist_page")&&
(C==null?0:(A=C.mainPlaylistEntity)==null?0:A.videos)){b:{A=C==null?void 0:(b=C.mainPlaylistEntity)==null?void 0:b.videos;b=_.Bi().getState().entities;if(A!=null&&A.length&&b)for(A=_.a(A),O=A.next();!O.done;O=A.next())if(O=_.h$(O.value).entityId,(O=JSON.parse(O).videoId)&&O4J(b,O)==="TRANSFER_STATE_COMPLETE"){b=O;break b}b=""}b!==void 0&&(Y=Gt(_.Bi().getState(),b),Y=_.$v(b,pp,void 0,void 0,Y))}b=u5p(_.JG("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),b7m(pp));C=pp&&Kp&&b?{playlistId:pp,navigationEndpoint:Y,
viewPlaylistText:b,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:Kp}},title:p1(C.mainPlaylistEntity.title),shortBylineText:p1(C==null?void 0:(Q=C.channelEntity)==null?void 0:Q.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:qlw,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:pp,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.JG("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:M}}}:
void 0;X.call(N,{gridPlaylistRenderer:C})}}M={gridRenderer:{items:F}};x===1&&(v=fw6(h,c))}else if(N){var sM=_.ez((X=F==null?void 0:F.localizedPromptMessage)!=null?X:"");M={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ez(_.JG("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.vxd}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.ez(_.JG("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};v=fw6(h,c)}else sM=_.ez(_.JG("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
M={};return{contents:[{shelfRenderer:{title:f,titleAnnotation:v,icon:{iconType:K},subtitle:sM,content:M,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:t}]}}}}],loggingDirectives:{clientVeSpec:{uiType:d}}}};
tx6=function(p,x,F,N,h,c,M,f){F=F===void 0?{}:F;N=N===void 0?!1:N;h=h===void 0?!1:h;c=c===void 0?!1:c;M=M===void 0?0:M;f=f===void 0?-Infinity:f;if(!x.length&&!p.length&&!N)return h?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:sWB(F)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.ez(_.JG("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 K=[];p.length&&K.push(Z3z(p,0));N?K.push(Z3z(x,1,F,c,M,f)):h&&K.push({contents:[{statementBannerRenderer:DX$(F)}]});(N&&x.length||p.length)&&K.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.ez(_.JG("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 K.map(function(t){return{itemSectionRenderer:t}})};
Hc=function(p,x){if(typeof p!=="object")return null;p=_.a(Object.entries(p));for(var F=p.next();!F.done;F=p.next()){var N=_.a(F.value);F=N.next().value;N=N.next().value;if(F===x)return F;if(N=Hc(N,x))return F+"."+N}return null};
mD=function(p){var x=p.content;return(p=p.styleRuns)&&x?{runs:p.map(function(F){var N={text:x.slice(F.startIndex,F.startIndex+F.length)};F.fontColor&&(N.textColor=F.fontColor);return N})}:{simpleText:x}};
Jir=function(p,x,F,N){var h=dXE;N&&(p.quantity=N);if(!p.quantity||!p.maxQuantity)return{};N=p.minusButton;var c=p.plusButton,M,f,K,t;return{value:p.quantity,maxValue:p.maxQuantity,onChangeCallback:function(d){h(p,d)},
minusLabel:(M=_.r(N,v0Z))==null?void 0:M.label,minimumReachedLabel:(f=_.r(N,v0Z))==null?void 0:f.limitReachedLabel,plusLabel:(K=_.r(c,v0Z))==null?void 0:K.label,maximumReachedLabel:(t=_.r(c,v0Z))==null?void 0:t.limitReachedLabel,disabled:x,onRemoveCommand:F}};
dXE=function(p,x){var F=p.quantityIncrementerEntityKey;if(F){var N={};N.quantity=x;_.wo(_.z7("quantityIncrementerEntity",F,N));p.onChangeCommand&&_.su(p.onChangeCommand)}};
CsJ=function(p){return _.S("kevlar_comments_clone_data_killswitch")?p:_.Q5.unsafeClone(p)};
E0w=function(p,x){(p=SlE(p))&&(x?riB.push({command:p,sourceData:{},commandContext:void 0}):_.J().resolve(_.RD).resolveCommand(p))};
SlE=function(p){return _.r(p,_.XY)};
XRH=function(){var p=window.performance.timeOrigin+window.performance.now(),x=(new _.oI).setSeconds(p/1E9);return _.Ok(x,2,_.p8(p%1E9),0)};
OW=function(p,x){var F=_.r(_.r(p,_.XY),g0w);F&&(x&&(F.serializedAdditionalMetadata=_.Xc(x)),E0w(p,!0))};
Q6H=function(p){switch(p){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"}};
zkp=function(){return!!_.sd("ID_TOKEN")};
yip=function(p){return p instanceof Error&&p.cause instanceof s6$&&p.cause.rpcErrorCode!==void 0?!n0d.includes(p.cause.rpcErrorCode):!0};
Aik=function(){return _.Hw(b3E,{authuser:""+(_.sd("SESSION_INDEX")||0)})};
jw=function(p,x,F,N){F=F===void 0?"MINI_APP_SDK_API_UNSPECIFIED":F;N=N===void 0?"":N;var h=new _.qE;F={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:N,sdkApi:F};p instanceof Error&&(h.message=p.message,h.name=p.name,p.cause instanceof s6$&&p.cause.rpcErrorCode!==void 0&&(F.rpcErrorCode=p.cause.rpcErrorCode));var c;(c=x.onError)==null||c.call(x,{loggingError:h,metadata:F})};
YlM=function(p,x,F,N){switch(p){case "MINI_APP_SOURCE_GAMESNACKS":return new LE(x,F,N);default:return new uuB(x,F,N)}};
wRE=function(p){switch(p){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"}};
GqE=function(p){switch(p){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"}};
VxB=function(p){switch(p){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"}};
WaM=function(){return Math.floor(Math.random()*4)+1};
H3J=function(p,x,F,N){p=_.a(Object.entries(p));for(var h=p.next(),c={};!h.done;c={message$jscomp$938:void 0},h=p.next()){var M=_.a(h.value);h=M.next().value;M=M.next().value;c.message$jscomp$938=M;x.push(setTimeout(function(f){return function(){N(!1);F(f.message$jscomp$938.text)}}(c),c.message$jscomp$938.delayMs));
Number(h)>0&&x.push(setTimeout(function(){N(!0)},c.message$jscomp$938.delayMs-400))}};
mXB=function(p,x){var F=F===void 0?Wrw:F;_.S("mweb_fix_monitor_visibility_after_render")?p&&tD(function(){otp(p,x,F)}):tD(function(){otp(p,x,F)})};
Lad=function(p){o0z||(o0z=O3E(new _.Wi(1,void 0,void 0,j6d),0));var x=o0z.format(Math.floor(p));x=_.Vr==="be"||_.Vr==="bg"||_.Vr==="es"||_.Vr==="et"||_.Vr==="hu"||_.Vr==="ka"||_.Vr==="lv"||_.Vr==="pl"||_.Vr==="pt-PT"||_.Vr==="sq"?x.replace(new RegExp("^(\\d)"+j6d.GROUP_SEP.replace(".","\\.")+"(\\d+("+j6d.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):x;return p>=1E3&&p<=9999&&x[1]==="."&&(_.Vr==="sl"||_.Vr==="it")?x.replace(".",""):x};
PsE=function(p,x){vl("ytd-button-renderer",{data:p,className:x?x.className:"",overrides:x==null?void 0:x.buttonOverrides},VZ)};
Rkr=function(p,x,F,N){if(p)return N=N||p.likeStatus,x?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:N==="LIKE",isDisabled:!p.likesAllowed,defaultIcon:{iconType:F},defaultText:N==="LIKE"?p.likeCountWithUnlikeText:p.likeCountText,toggledText:N==="LIKE"?p.likeCountText:p.likeCountWithLikeText,defaultNavigationEndpoint:TZ6(p,"LIKE"),defaultServiceEndpoint:BZw(p,"LIKE"),toggledServiceEndpoint:BZw(p,"INDIFFERENT"),defaultTooltip:_.Pi(p.likeCountTooltipText),toggledTooltip:_.Pi(p.likeCountTooltipText),
targetId:p.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:N==="DISLIKE",isDisabled:!p.likesAllowed,defaultIcon:{iconType:F},defaultText:N==="DISLIKE"?p.dislikeCountWithUndislikeText:p.dislikeCountText,toggledText:N==="DISLIKE"?p.dislikeCountText:p.dislikeCountWithDislikeText,defaultNavigationEndpoint:TZ6(p,"DISLIKE"),defaultServiceEndpoint:BZw(p,"DISLIKE"),toggledServiceEndpoint:BZw(p,"INDIFFERENT"),defaultTooltip:_.Pi(p.dislikeCountTooltipText),
toggledTooltip:_.Pi(p.dislikeCountTooltipText)}};
TZ6=function(p,x){if(x==="LIKE")return p.likeCommand;if(x==="DISLIKE")return p.dislikeNavigationEndpoint};
BZw=function(p,x){var F;return(F=p.serviceEndpoints)==null?void 0:F.find(function(N){var h;return((h=_.r(N,_.Pc))==null?void 0:h.status)===x})};
kqE=function(p,x){x=x===void 0?{}:x;if(p){var F=!!x.activeState,N=x.iconSize,h=x.className,c=x["aria-hidden$"],M=x["aria-label$"],f=x.role;x=x.style$+";width: "+((x.width||N)+"px;height: ")+((x.height||N)+"px;color: ")+(x.color+";");p={icon:p};F!==void 0&&(p.active=F);N!==void 0&&(p.size=N);x!==void 0&&(p.style=x);h!==void 0&&(p.className=h);c!==void 0&&(p.ariaHidden=c);M!==void 0&&(p.ariaLabel=M);f!==void 0&&(p.role=f);vl("yt-icon",p,VZ)}};
_.Iwd=function(p,x,F){return window.spf&&!_.S("web_disable_spfjs_client")?UXr(p,x,F):i3r(p,x)};
UXr=function(p,x,F){var N=null,h=(new _.cZ(function(c,M){var f={};if(x){f.method=x.method;var K=x.postParams||{};VzH(p,x)&&(K[_.sd("XSRF_FIELD_NAME")]=_.sd("XSRF_TOKEN"));f.postData=_.hq(K);x.type&&(f.type=x.type);K=x.headers}f.headers=bcH(p,K);_.S("debug_forward_web_query_parameters")&&(p=_.w5H(p,window.location.search));f.experimental_headers=f.headers;f.onError=function(t){t.err&&t.xhr&&(t.err.params={url:t.xhr.responseURL,response:t.xhr.responseText.substr(0,64)});M(t.err)};
f.onPartDone=function(t){F&&F.call(null,t.part)};
f.onDone=function(t){var d=$XZ(t.response,"xsrf_token");Od(window.location.href,p)&&d&&_.zn("XSRF_TOKEN",d);if(d=$XZ(t.response,"service_worker_killswitch"))_.zn("SERVICE_WORKER_KILLSWITCH",d),A7d();c(t.response)};
N=spf.request(p,f)})).then(ekp);
h.thenCatch(function(c){var M=c instanceof _.mw,f=c&&c.hasOwnProperty("params")&&c.params.response?c.params.response:"";c instanceof Error&&(f?M?rRz(c):f===')]}\'\n{"reload":"now"}'?rRz(c):(pD6(c,p,f),xKZ(c,f)?_.no(c):_.zj(c)):rRz(c));N&&N.abort()});
return h};
ekp=function(p){if(p.type==="multipart"){var x=p.timing;p=p.parts.reduce(function(F,N){Object.assign(F,N);return F},{});
p.timing=p.timing||{};Object.assign(p.timing,x);p.type="reduced"}return p};
i3r=function(p,x){x=x===void 0?{}:x;var F=null,N=new _.cZ(function(h,c){x.onFinish=function(M){if(M.readyState===XMLHttpRequest.DONE)if(M.status===200){if(M.responseType!=="json"){var f=M.response;f.substring(0,5)===")]}'\n"&&(f=f.substring(5));try{var K=JSON.parse(f)}catch(t){K=t}}else K=M.response;K instanceof Error?c(K):(f=$XZ(K,"xsrf_token"),Od(window.location.href,p)&&f&&_.zn("XSRF_TOKEN",f),M=M.responseURL,window.performance&&window.performance.getEntriesByName?(f=window.performance.getEntriesByName(M).pop())?
M={responseStart:(0,_.Lf)()-(f.responseEnd-f.responseStart)}:(Math.random()<.01&&(f=Error("ai"),f.params=M,_.no(f)),M={responseStart:-1}):M={responseStart:0},K.timing=K.timing||{},Object.assign(K.timing,M),h(K))}else c(Error("$h`"+M.status))};
(F=_.NE(p,x))||c(Error("$h`"+F.status))});
N.thenCatch(function(h){h instanceof Error&&(pD6(h,p),xKZ(h)&&(h.level="WARNING"))});
_.S("cancel_pending_navs")&&N.thenCatch(function(){F.abort()});
return N};
$XZ=function(p,x){var F=p[x],N=p.parts;p.type==="multipart"&&N&&(F=(p=N.find(function(h){return x in h}))&&p[x]);
return F};
pD6=function(p,x,F){var N=p.message||"";x={original:N,url:x};if(F)if(N=N.match(/position:?\s*(\d+)/)){N=N&&Number(N[1])?Number(N[1]):0;var h=Math.max(N-25,0);x.position=N;x.response=F.substring(h,N+25)}else x.response=F.substring(0,50);_.yj(p,x);try{p.message="JSON parse error"}catch(c){}};
xKZ=function(p,x){p=p.message||"";p=!!(p.indexOf("<")>=0||p.indexOf("end of ")>=0||p.indexOf("Unterminated string")>=0||p.indexOf("Unexpected EOF"));if(!p&&x)for(var F=x.length,N=!1,h=0;h<F;h++)if(N&&x[h]==="\\")h++;else if(x[h]==='"')N=!N;else if(x[h]==="<"&&!N){p=!0;break}return p};
FbB=function(){return document.documentElement.hasAttribute("dark")};
_.NTp=function(p,x){if(p!=="GFEEDBACK"&&p!=="GUIDED_HELP")_.yL(Error("bi`"+p));else{var F=_.J().resolve(_.Bw(_.j3));if(F&&(F=F.getCurrentPage())&&F.getServiceTrackingParams&&(F=F.getServiceTrackingParams()))for(var N=0,h;h=F[N++];)if(h.service===p){if(p=h.params)for(F=0;N=p[F++];)x[N.key]=N.value;break}}};
_.heJ=function(p){var x=_.Pt();x&&(x=x.getPlayer())&&(x.pauseVideo(),p.playback_id=x.getVideoData().cpn,p.eid=x.getVideoData().eventId,Object.assign(p,x.getFeedbackProductData()))};
lGM=function(){var p={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.sd("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(p.enableAnonymousFeedback=!0);_.sd("SESSION_INDEX")&&(p.authuser=String(_.sd("SESSION_INDEX")));_.S("enable_pageid_for_feedback")&&_.sd("DELEGATED_SESSION_ID")&&(p.pageId=String(_.sd("DELEGATED_SESSION_ID")));return p};
_.Tu=function(p){_.S("enable_ypc_spinners")&&_.lA(p,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},p])};
_.kq=function(p){_.S("enable_ypc_spinners")&&_.lA(p,"yt-close-popup-action",["yt-loading-renderer"])};
cvw=function(p){return new Promise(function(x,F){_.QE({verifyCommand:{recaptchaToken:p.recaptchaResponse}},{commandController:{onSuccess:function(N,h){h||F("ChallengeService did not return a response.");var c;x({challengeCompleted:(c=h.verified)!=null?c:!1})},
onServerError:function(N,h){F(h)}}})})};
aGZ=function(p,x,F,N){x({recaptchaResponse:N}).then(function(h){h.challengeCompleted?_.D5()?(F(3),_.J().resolve(_.RD).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:p}})):F(2):F(4)},function(){F(4)})};
MMk=function(p,x,F){_.VR("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.sd("HL"),function(){var N;(N=window.grecaptcha)==null||N.ready(function(){var h=window.grecaptcha;h?(F(h.render(p,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:aGZ.bind(null,p,cvw,x)})),x(1)):x(4)})})};
DK6=function(p,x){return function(){switch(x()){case 0:return p().captchaLoadingMessage;case 1:return p().challengeReason;case 3:return p().captchaSuccessfulMessage;case 2:return p().captchaCookieSetFailureMessage;case 4:return p().captchaFailedMessage;default:return p().challengeReason}}()};
_.UW=function(){if(!fGH){var p=document.querySelector("#player.skeleton");p&&(_.qc(p),fGH=!0)}};
_.qxw=function(){return KbM=bXp()};
dKB=function(){return _.D(function(p){return Zhp!==void 0?p.return():_.q(p,tMw(),0)})};
tMw=function(){return _.D(function(p){if(p.nextAddress==1)return _.q(p,uUm(),2);KbM=p.yieldResult;Zhp=_.E0.addLowPriorityJob(tMw,5E3);_.JB(p)})};
EIM=function(p){var x=x===void 0?vIB:x;var F,N,h=(F=p.responseContext)==null?void 0:(N=F.mainAppWebResponseContext)==null?void 0:N.trackingParam;if(!h){x.increment("MISSING");var c,M,f,K,t,d;_.no(new _.qE("282054944_a",{eH0:!!((c=p.responseContext)==null?0:(M=c.mainAppWebResponseContext)==null?0:M.loggedOut),gQH:((f=p.responseContext)==null?void 0:f.mainAppWebResponseContext)===void 0,djO:p.responseContext===void 0,yUk:(K=p.playabilityStatus)==null?void 0:K.contextParams,vOu:(((t=p.streamingData)==
null?void 0:t.formats)||[]).length>0,kfH:(((d=p.streamingData)==null?void 0:d.adaptiveFormats)||[]).length>0,os:!!p.offlineState,cotn:p.cotn}));return 2}F="";try{F=Jvr(h)}catch(X){return x.increment("C_ERROR"),_.zj(X),2}try{var v=_.CDk(F);var C=Sxm(v)}catch(X){return x.increment("P_ERROR"),_.zj(X),2}C=_.UT(C,rvw,1,_.ik());h=[];C=_.a(C);for(v=C.next();!v.done;v=C.next())N=v.value,v=N.getPath(),F=(0,_.Q5.getValueByKeys)(p,v.split(".")),F=String(F===void 0||F===null?"":F),N=N.getValue()||"",c=/[+\-\/_]/g,
F.replace(c,"")!==N.replace(c,"")&&(x.increment("MISMATCH"),_.S("ab_mis_log_err")&&(F=new _.qE("282054944_p",{aDO:v,g:String(F),e:String(N)}),_.zj(F)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(v)||(v.match(/enforcementMessageViewModel/i)?h.push(3):h.push(2)));if(h.length>0)return Math.max.apply(Math,_.se(h));x.increment("SUCCESS");return 1};
QZw=function(p){var x=new iW;if(p.interpreterJavascript){var F=_.KOr(p.interpreterJavascript);F=TeB(F).toString();var N=new XDm;_.J_(N,6,F);_.f6(x,1,N,bB)}else p.interpreterUrl&&(F=_.XE(p.interpreterUrl),F=_.SP(F).toString(),N=new _.gI$,_.J_(N,4,F),_.f6(x,2,N,bB));p.interpreterHash&&_.II(x,3,p.interpreterHash,bB);p.program&&_.II(x,4,p.program,bB);p.globalName&&_.II(x,5,p.globalName,bB);p.clientExperimentsStateBlob&&_.II(x,7,p.clientExperimentsStateBlob,bB);return x};
$q=function(p){var x={};p=_.a(p.split("&"));for(var F=p.next();!F.done;F=p.next())F=F.value.split("="),F.length===2&&(x[F[0]]=F[1]);return x};
zed=function(p){return Number(p.t)||7200};
vFE=function(){if(_.S("bg_st_hr"))return"havuokmhhs-0";var p,x=((p=performance)==null?void 0:p.timeOrigin)||0;return"havuokmhhs-"+Math.floor(x)};
sZd=function(){return new Promise(function(p){var x=window.top;x.ntpevasrs!==void 0?p(new ew(x.ntpevasrs)):(x.ntpqfbel===void 0&&(x.ntpqfbel=[]),x.ntpqfbel.push(function(F){p(new ew(F))}))})};
nIp=function(p){var x=p.du8.bind(p);_.ox("yt.aba.att",x);p=p.v7H.bind(p);_.ox("yt.aba.att2",p)};
bhZ=function(p){switch(_.F_(p.input)){case _.Ru(yvH):var x={};return x.encryptedVideoId=p.innerTubeRequest.externalVideoId,x}return{}};
uZB=function(p){switch(_.F_(p.input)){case _.Ru(yvH):if(_.S("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Ru(pP):if(_.S("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&p.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Ru(Av6):var x,F;if(_.S("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((F=_.r((x=p.config)==null?void 0:x.command,
QAp))==null?0:F.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.wDm=function(p){var x;if(p.playlistVideoRenderer&&((x=p.playlistVideoRenderer)==null?0:x.engagementBar))return Yxk(p.playlistVideoRenderer.engagementBar);if(_.r(p,xV)){var F;if(p=(F=_.r(p,xV))==null?void 0:F.engagementBar)return Yxk(p)}return""};
Yxk=function(p){if(!p)return"";p=_.r(p,_.GgE);if(p==null||!p.actions)return"";p=_.a(p.actions);for(p=p.next();!p.done;p=p.next()){p=_.r(p.value,_.VMd);var x=void 0;if((x=p)==null||!x.itemId)break;return p.itemId}return""};
_.WbE=function(p){var x;if(p.playlistVideoRenderer&&((x=p.playlistVideoRenderer)==null?0:x.videoId))return p.playlistVideoRenderer.videoId;if(_.r(p,xV)){var F,N;if(p=(F=_.r(p,xV))==null?void 0:(N=F.playlistItemData)==null?void 0:N.videoId)return p}return""};
_.HhM=function(p){var x;if(p.playlistVideoRenderer&&((x=p.playlistVideoRenderer)==null?0:x.voteCount))return p.playlistVideoRenderer.voteCount;if(_.r(p,xV)){var F,N;if(p=(F=_.r(p,xV))==null?void 0:(N=F.playlistItemData)==null?void 0:N.voteCount)return p}return 0};
_.FN=function(p,x){return _.M4(p.entities,"flowStateEntity",x)};
oId=function(p,x,F,N){var h=void 0;p=_.a(p[x.iconName]||[]);for(var c=p.next();!c.done;c=p.next()){c=c.value;var M=x.iconSize;var f=x.iconStyle;M=!M||M===c[2];var K=mKE[c[0]];N&&N!==c[1]||!M||f&&f!==K?f=!1:h?(f=mKE[c[0]],f=!!x.iconStyle||f==="youtube_outline",M=h.version<=c[1],f=(!!x.iconSize||c[2]===24)&&f&&M):f=!0;f&&(h={name:x.iconName,style:mKE[c[0]],size:c[2],version:c[1],allowMirroring:!!c[3],url:F(x.iconName,c)})}return h};
Ohk=function(p,x,F,N){return p+(""+mKE[F[0]]+((N===void 0?0:N)?"_experimental":"")+"/"+x+"/v"+F[1]+"/")+(F[2]+"px.svg")};
Ng=function(p){return _.S("web_bookmark_playlist_save_icon")?"bookmark":p};
jZ6=function(p,x){return Ohk("https://fonts.gstatic.com/s/i/",p,x)};
LbM=function(p,x){return Ohk("https://fonts.gstatic.com/s/i/",p,x,!0)};
PDm=function(p,x){return Ohk("https://www.gstatic.com/youtube/img/icons/web/",p,x)};
TTk=function(p){var x=p.enabled;var F=p.itemPlaybackModel;var N=p.thumbnailElRef;var h=p.containerElRef;var c=p.options;var M;_.rx(function(){var f=h==null?void 0:h.value;var K,t=(K=N())==null?void 0:K.value;K=F();var d=c();if(x&&K&&f&&t&&(d==null?0:d.thumbnail)){var v,C;f={mediaRenderer:{data:K,hostElement:f},lockupElement:f,thumbnailElement:t,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.g$((v=K.inlinePlayerData)==null?void 0:v.onVisible),navigationEndpoint:_.g$((C=K.inlinePlayerData)==
null?void 0:C.onSelect),thumbnail:d.thumbnail,thumbnailOverlays:d.thumbnailOverlays||[],accessibilityText:d.accessibilityText||""},thumbnailSize:d.thumbnailSize,enableRounding:d.enableRounding}}}else f=void 0;if(v=f){var X;(X=M)==null||MD(X);M=T7(v)}});
_.E_(function(){var f;(f=M)==null||MD(f)})};
BTp=function(p){p=atob(p);for(var x=[],F=0;F<p.length;F++)x.push(p.charCodeAt(F));return new Blob([new Uint8Array(x)],{type:"image/png"})};
kgB=function(p,x,F,N){N=N===void 0?"INSERTION_POSITION_UNSPECIFIED":N;return p({targetId:x},function(h){var c,M=(c=h.contents)!=null?c:[];c=F!=null?F:[];var f=Rew(M);switch(N){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},h,{contents:[].concat(_.se(M.slice(0,f)),_.se(c),_.se(M.slice(f+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},h,{contents:[].concat(_.se(c),_.se(M))});case "INSERTION_POSITION_LAST":return Object.assign({},h,{contents:[].concat(_.se(M),_.se(c))});
default:return h}})};
ihJ=function(p,x,F,N,h){h=h===void 0?"RELATIVE_INSERTION_POSITION_AFTER":h;return p({targetId:x},function(c){var M,f=(M=c.contents)!=null?M:[];M=UKd(f,F);if(M<0)return c;M=h==="RELATIVE_INSERTION_POSITION_BEFORE"?M:M+1;return Object.assign({},c,{contents:[].concat(_.se(f.slice(0,M)),_.se(N),_.se(f.slice(M)))})})};
Rew=function(p){var x=p.findIndex(function(F){return _.r(F,_.hf)});
return x>=0?x:p.length};
UKd=function(p,x){return p.map(function(F){return _.r(F,_.IGM)}).findIndex(function(F){return(F==null?void 0:F.targetId)===x})};
eeJ=function(p,x,F){return p({targetId:x},function(N){var h,c=(h=N.contents)!=null?h:[];return Object.assign({},N,{contents:$K$(c,F)})})};
$K$=function(p,x){return p.filter(function(F){var N=x.includes;a:{F=_.a(Object.values(F));for(var h=F.next();!h.done;h=F.next())if((h=h.value)&&h.targetId){F=h.targetId;break a}F=""}return!N.call(x,F||"")})};
_.pom=function(p,x){return{engagementPanelSectionListRenderer:{panelIdentifier:p,identifier:x,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
xAz=function(p){return p.getOption("captions","tracklist",{includeAsr:!0})};
F0E=function(p){var x=xAz(p);if(x==null?0:x.length)return x;p.loadModule("captions");return xAz(p)};
NGM=function(p,x,F){if(p.getVideoData){var N,h=(N=F0E(p))==null?void 0:N.find(function(c){return c.languageCode===F});
N=_.au("/youtube/app/player_caption_language_entity_key","stringEntity",2);x.dispatch(_.KV("stringEntity",N,{key:N,value:(h==null?void 0:h.displayName)||""}));h?p.setOption("captions","track",h):(p.setOption("captions","stickyLoading",{}),p.setOption("captions","track",{}))}};
hF6=function(p){return p.getOption("captions","tracklist",{includeAsr:!0})};
lBk=function(p){return p.getOption("captions","tracklist",{includeAsr:!0})};
cyr=function(p){var x=lBk(p);if(x==null?0:x.length)return x;p.loadModule("captions");return lBk(p)};
aBH=function(p){var x=p.getOption("captions","track");if(x)return x;p.loadModule("captions");return p.getOption("captions","track")};
Mnw=function(p){var x=cyr(p);if(x!=null&&x.length){var F=aBH(p);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[_.xl({listItemViewModel:{title:{content:_.JG("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(F==null?0:F.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}})].concat(_.se(x.map(function(N){return{listItemViewModel:{title:{content:N.displayName},
isSelected:N.languageCode===(F==null?void 0:F.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:N.languageCode}}]}}}}}}}})))}}}}}}}}};
qcp=function(p){return new Promise(function(x,F){if(p===void 0)_.zj(Error("Ci"),"ERROR"),F(Error("Ci"));else{F=new _.DAZ;var N=_.fBp();F=F.init();var h=_.K0k(_.sd("YPC_MB_URL"),!0);Promise.all([F,h]).then(function(){var c=payments.business.integration.ClientTokenFactory.createClientToken(p,N);x(c)})}})};
dAw=function(p,x,F,N,h,c,M){var f=_.GO();F=F.replace(/-/g,"+").replace(/_/g,"/");var K=_.rH().get("hl"),t=_.la(_.Hg),d=x==null?void 0:x.element;d&&_.Tu(d);Zvw(x,!0);_.tnk(t,F,f.resolve,function(){d&&_.kq(d)},function(v){d&&_.kq(d);
f.reject(v)},K,N?function(v){N&&_.w5(p,N,{backend_analytics:v})}:void 0,f.resolve,h,c,M);
return f.promise};
Zvw=function(p,x){!(p=p==null?void 0:p.element)||p.tagName!=="YT-BUTTON-RENDERER"&&p.tagName!=="YTD-BUTTON-RENDERER"||(p.disabled=x)};
vP6=function(){var p=_.JG("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.ez(p),actionButton:{buttonRenderer:g8p()}}},popupType:"TOAST"}};
Jym=function(){var p=_.JG("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.ez(p),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
CYz=function(p){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:p}]}}};
c$=function(p,x,F,N){var h;return _.D(function(c){if(c.nextAddress==1)return _.KM(c,2),_.q(c,p,4);if(c.nextAddress!=2)return(h=_.rb(x.getState().entities).length>0)?c.return({title:_.ez(_.JG("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.ez(_.JG("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:XXw()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
c.return(QWE(F,N));_.v9(c);return c.return(QWE(F,N))})};
Scp=function(p,x){return x?x==="PPSV"||PxH(p,x):!1};
ryJ=function(p){p.responseContext||(p.responseContext={});p.responseContext.maxAgeSeconds=0;return p};
Mg=function(p){var x;return _.D(function(F){return F.nextAddress==1?_.q(F,EPJ(p,"service:topbar:fallback"),2):(x=F.yieldResult)&&_.ai(x)?F.return(ryJ(_.ai(x))):F.return()})};
XoB=function(p){var x;return _.D(function(F){return F.nextAddress==1?_.q(F,EPJ(p,"service:downloads_settings:fallback"),2):(x=F.yieldResult)&&_.ai(x)?F.return(x):F.return()})};
EPJ=function(p,x){var F;return _.D(function(N){if(N.nextAddress==1)return p?_.q(N,p.get(x),2):N.return();F=N.yieldResult;return!F||!_.ai(F)||!isNaN(Number(F.data.expireTimestampMs))&&F.isExpired()?N.return():N.return(F)})};
gPd=function(p){var x=_.J().resolve(DX).getState().entities;return p.playlistId?Scp(x,p.playlistId):!1};
QbM=function(p,x){var F;if(x==null?0:(F=x.requestTemplate)==null?0:F.panelId)p.panelId=x.requestTemplate.panelId;var N;if(x==null?0:(N=x.requestTemplate)==null?0:N.params)p.params=x.requestTemplate.params};
sbk=function(){if(zFz)return zFz();var p=!_.S("idb_response_store_auth_killswitch"),x={};zFz=jQ("yt-it-response-store",{objectStores:(x.ResponseStore={addedAtVersion:1},x),shared:!p,upgrade:function(F,N){N(1)&&(F=b1(F,"ResponseStore",{keyPath:["key","clientName"]}),Ad(F,"byExpiration","expireTimestampMs"),Ad(F,"byInterface","clientName"))},
version:1});return zFz()};
nPp=function(p){return _.wq(sbk(),p)};
bv6=function(p,x){var F;return _.D(function(N){return N.nextAddress==1?_.q(N,_.O5(),2):(F=N.yieldResult)?N.return(new yyd(p,x,F)):N.return()})};
Ayr=function(p){var x=Object.keys(p)[0];if(x)return p.screenExit&&(x=x+";"+p.screenExit.screen),x};
uXB=function(p){var x=new Map;p=_.a(p);for(var F=p.next();!F.done;F=p.next())F=F.value,F!=null&&(x.has(F.taskType)||x.set(F.taskType,[]),x.get(F.taskType).push(F));return x};
YcZ=function(p){return!isNaN(p)&&p>0};
wok=function(p){p=[].concat(_.se(p)).sort(function(F,N){return F-N});
var x=Math.floor(p.length/2);return p.length%2?p[x]:(p[x-1]+p[x])/2};
Vnm=function(){GAH||(Object.assign(iI,{handleError:function(p,x){var F={errorSeverity:x.errorSeverity.toString(),wizFeatureFlags:Object.entries(x.featureFlags).join("\n")};FU6(x,F);x=x.errorSeverity;x===3?_.zj(p,"ERROR",void 0,void 0,void 0,F):x===2&&_.zj(p,"WARNING",void 0,void 0,void 0,F);_.S("cow_if_errors_in_popup")&&x===3&&p.message.indexOf("<If>")!==-1&&window.alert(p.message)},
enableComponentStacksInErrorMessages:!1}),GAH=!0)};
mAH=function(p,x){_.ox("yt.logging.errors.log",_.zj);NRZ();W0Z(ftr(),x);window.onerror=p;_.S("wiz_next_error_handler_killswitch")||Vnm();HvZ=hxM;window.addEventListener("unhandledrejection",function(F){if(F.reason instanceof Error){var N=F.reason;_.yj(N,{source:"unhandledrejection"});N.name==="AbortError"&&(N.level="WARNING")}hxM(F.reason);F.preventDefault()})};
_.oP6=function(p){return p.a11y.ephemeralAction||null};
_.Ov6=function(p){var x,F,N,h,c,M,f,K,t,d,v,C,X,Q,b,A,Y,O,Fw,R,ld,pp,Kp,sM,np,Jz,Y$,xB,qI,RJ,Ik,vb,CZ,sk,Ov,Xj,AC,Jo,Bz,aJ;return _.D(function(he){if(he.nextAddress==1)return _.q(he,_.db(p,{mode:"readonly",enableRetries:!0},function(Bb){return vi(Bb,"playbackData").then(function(PH){var dl=PH.map(function(fZ){return fZ.transfer}).filter(function(fZ){return!!fZ}),nZ=PH.map(function(fZ){return fZ.offlineVideoPolicy}).filter(function(fZ){return!!fZ}),ep=PH.filter(function(fZ){return!!fZ.key}).map(function(fZ){return _.au(_.h$(fZ.key).entityId,
"downloadStatusEntity")});
dl=vi(Bb,"transfer",dl);nZ=vi(Bb,"offlineVideoPolicy",nZ);ep=vi(Bb,"downloadStatusEntity",ep);var jp=dl.then(function(fZ){fZ=fZ.reduce(function(Uv,FK){(FK==null?0:FK.offlineVideoStreams)&&Uv.push.apply(Uv,_.se(FK.offlineVideoStreams));return Uv},[]).filter(function(Uv){return!!Uv});
return vi(Bb,"offlineVideoStreams",fZ)});
return nf.all([dl,nZ,jp,ep]).then(function(fZ){var Uv=_.a(fZ);fZ=Uv.next().value;var FK=Uv.next().value;var uB=Uv.next().value;Uv=Uv.next().value;return[PH,fZ,FK,uB,Uv]})})}),2);
if(he.nextAddress!=3)return x=he.yieldResult,_.q(he,_.db(p,{mode:"readonly",enableRetries:!0},function(Bb){return vi(Bb,"mainDownloadsListEntity").then(function(PH){var dl,nZ;return(nZ=(dl=PH[0])==null?void 0:dl.downloads)!=null?nZ:[]})}),3);
F=he.yieldResult;N=_.a(x);h=N.next().value;c=N.next().value;M=N.next().value;f=N.next().value;K=N.next().value;t=h;d=c;v=M;C=f;X=K;Q={};b={};A={};Y={};O={};Fw=[];R=_.a(d);for(ld=R.next();!ld.done;ld=R.next())(pp=ld.value)&&(Q[pp.key]=pp);Kp=_.a(v);for(sM=Kp.next();!sM.done;sM=Kp.next())(np=sM.value)&&(b[np.key]=np);Jz=_.a(X);for(Y$=Jz.next();!Y$.done;Y$=Jz.next())(xB=Y$.value)&&(A[xB.key]=xB);qI=_.a(C);for(RJ=qI.next();!RJ.done;RJ=qI.next())(Ik=RJ.value)&&(Y[Ik.key]=Ik);vb=_.a(F);for(CZ=vb.next();!CZ.done;CZ=
vb.next())sk=CZ.value,Ov=void 0,O[(Ov=sk.videoItem)!=null?Ov:""]=!0,sk.videoItem&&(AC=Xj=void 0,Jo=(AC=(Xj=_.h$(sk.videoItem))==null?void 0:Xj.entityId)!=null?AC:"",Fw.push({externalVideoId:Jo}));Bz=t.filter(function(Bb){if(!Bb||!Bb.key||!Bb.offlineVideoPolicy)return!1;Bb=_.h$(Bb.key).entityId;Bb=_.au(Bb,"downloadStatusEntity");var PH;return!(Bb&&((PH=A[Bb])==null?void 0:PH.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
aJ=Bz.map(function(Bb){var PH=Q[Bb.transfer],dl=[];if(PH==null?0:PH.offlineVideoStreams)for(var nZ=_.a(PH.offlineVideoStreams),ep=nZ.next();!ep.done;ep=nZ.next())(ep=Y[ep.value])&&dl.push(ep);nZ=b[Bb.offlineVideoPolicy];ep=O;var jp=Bb==null?void 0:Bb.playerResponseTimestamp,fZ=_.h$(nZ.key).entityId;Bb=_.au(fZ,"mainVideoEntity");if(nZ.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var Uv="OFFLINE_VIDEO_STATE_DISABLED";nZ.expirationTimestamp&&Number(nZ.expirationTimestamp)<Date.now()/1E3&&(Uv="OFFLINE_VIDEO_STATE_EXPIRED")}else if(nZ.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")Uv="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(PH==null?void 0:PH.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":Uv="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":Uv="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":Uv="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":Uv="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":Uv="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":Uv="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:Uv="OFFLINE_VIDEO_STATE_UNKNOWN"}if(Uv==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(PH==null?void 0:PH.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":Uv="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":Uv="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":Uv=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}fZ={id:fZ,videoState:Uv};if(PH==null?0:PH.cotn)fZ.cotn=PH.cotn;if(PH==null?0:PH.maximumDownloadQuality)fZ.selectedVideoQuality=PH==null?void 0:PH.maximumDownloadQuality;if(PH==null?0:PH.lastProgressTimeMs)fZ.lastProgressTimeMs=PH.lastProgressTimeMs;jp&&(fZ.playerResponseSavedTimeMs=String(Number(jp)*1E3));PH=String;jp=0;dl=_.a(dl);for(Uv=dl.next();!Uv.done;Uv=dl.next())if(Uv=Uv.value,Uv.streamsProgress){Uv=_.a(Uv.streamsProgress);for(var FK=Uv.next();!FK.done;FK=
Uv.next()){var uB=void 0;jp+=Number((uB=FK.value.numBytesDownloaded)!=null?uB:0)}}fZ.downloadedBytes=PH(jp);fZ.selectedOfflineMode=ep[Bb]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";nZ.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(fZ.offlinePlaybackDisabledReason=nZ.offlinePlaybackDisabledReason);return fZ});
return he.return({offlineVideos:aJ,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:Fw}}})})};
jb$=function(){var p;return _.D(function(x){return x.nextAddress==1?_.q(x,_.K1(),2):(p=x.yieldResult)?x.return(_.Ov6(p)):x.return({state:"PES Unavailable"})})};
TGw=function(){var p,x,F,N;return _.D(function(h){if(h.nextAddress==1)return _.q(h,_.K1(),2);if(h.nextAddress!=3)return(p=h.yieldResult)?_.q(h,L0z(p),3):h.return({state:"PES Unavailable"});x=h.yieldResult;F={};N=x.reduce(function(c,M){c[M.key]=M;return c},F);
return h.return(PYp(N))})};
PYp=function(p){for(var x={},F=[],N=_.a(Object.keys(p)),h=N.next();!h.done;h=N.next()){var c=h.value;h=p[c];var M=void 0;if(((M=h)==null?void 0:M.entityType)==="mainVideoEntity"){delete p[c];var f=h.data;h={};if(f){var K=void 0;M=(K=f.videoId)!=null?K:"vid-"+c;c=p;h.video=f;delete h.video.formattedDescription;delete h.video.thumbnail;f.owner&&(K=c[f.owner],K==null?0:K.data)&&(delete c[K.key],h.video.owner=K.data,delete h.video.owner.avatar);if(f=f.downloadState)if(K=c[f],K==null?0:K.data)if(delete c[f],
f=K.data.playbackData)if(K=c[f],K!=null&&K.data){delete c[f];f=K.data;delete f.playerResponseJson;h.playbackData=f;if(f.transfer&&(K=c[f.transfer],K==null?0:K.data)){delete c[K.key];var t=K.data;h.transfer=t;K=[];t=_.a(t.offlineVideoStreams||[]);for(var d=t.next();!d.done;d=t.next())if(d=c[d.value])delete c[d.key],K.push(d.data);K&&(h.streams=K)}(f=f.offlineVideoPolicy)&&(f=c[f])&&f.data&&(delete c[f.key],h.offlineVideoPolicy=f.data)}x[M]=h}}else h&&h.entityType==="offlineOrchestrationActionWrapperEntity"&&
h.data&&(delete p[h.key],M=h.data,c=void 0,F.push({id:M.rootActionId,type:((c=M.actionProto)==null?void 0:c.actionType)||"",entity:h}))}x.wrapperEntities=F;Object.keys(p).length>0&&(x.unknownKeys=p);return x};
BGE=function(){var p,x,F,N,h,c,M,f,K;return _.D(function(t){if(t.nextAddress==1)return p=!!(new _.s0("")).expiringStorage_,N=!!((x=_.Mm.crypto)==null?0:(F=x.subtle)==null?0:F.importKey),h=!!_.Mm.BroadcastChannel,c=!!_.Mm.navigator.locks,_.q(t,Gtm(),2);M=t.yieldResult;f=p&&N&&h&&c&&M;K={isSupported:f};if(f)return t.return(K);K.missingBrowserFeatures=[];M||K.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");p||K.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
N||K.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");h||K.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");c||K.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return t.return(K)})};
RFE=function(){var p;return!((p=KP?KP:null)==null||!p.window)};
_.UAw=function(p){if(_.bd()&&_.Zpp("Chromium")>=120){var x=_.kAk().mediaSession;try{x.setActionHandler("enterpictureinpicture",function(){p()})}catch(F){}}};
ivZ=function(p){for(var x=[],F=_.a(document.styleSheets),N=F.next(),h={};!N.done;h={node$jscomp$719:void 0},N=F.next())h.node$jscomp$719=N.value.ownerNode,h.node$jscomp$719&&(h.node$jscomp$719 instanceof HTMLStyleElement||h.node$jscomp$719 instanceof HTMLLinkElement)&&x.push(new Promise(function(c){return function(M){var f=c.node$jscomp$719.cloneNode(!0);f.onload=function(){M()};
f.onerror=function(){_.no(Error("ej"));M()};
p.document.head.appendChild(f)}}(h)));
return Promise.all(x)};
cbr=function(p){var x=[_.ei(IBm),_.ei($Ap),_.ei(eFp)];pU6(window.document.documentElement,p.document.documentElement,[_.ei(x3B),_.ei(Fvd),_.ei(NtE),_.ei(hjp),_.ei(lir)]);pU6(window.document.body,p.document.body,x)};
pU6=function(p,x,F){p=_.a(p.attributes);for(var N=p.next();!N.done;N=p.next())if(N=N.value)try{_.$E(F,x,N.name,N.value)}catch(h){}};
MK6=function(p,x){p=new _.qg(p.document.documentElement);p.start(aiE,x);return p};
D3Z=function(p){var x=p.document.documentElement;x.addEventListener("click",function(F){VWd(x,F)});
x.addEventListener("touchstart",function(F){OI6(F)});
x.addEventListener("mousedown",function(F){OI6(F)})};
Kvd=function(p,x,F,N){N=N===void 0?!1:N;x=new fid(x||p,F||p);return{x:p.x+((N===void 0?0:N)?x.lengthX*-1:x.lengthX)*.2,y:p.y+((N===void 0?0:N)?x.lengthY*-1:x.lengthY)*.2}};
qKM=function(p){if(!p)return!1;var x=p.status==="OK"||p.status==="LIVE_STREAM_OFFLINE",F,N,h,c=(h=(F=p.errorScreen)==null?void 0:F.playerLegacyDesktopYpcTrailerRenderer)!=null?h:(N=p.errorScreen)==null?void 0:N.ypcTrailerRenderer;return!!x||!!c};
_.ZOZ=function(p,x){if(!p)return!1;var F,N=(F=p.errorScreen)==null?void 0:F.playerLegacyDesktopYpcOfferRenderer,h;x=!!(x==null?0:(h=x.playerOverlayRenderer)==null?0:h.gatedActionsOverlayRenderer);return!!qKM(p)||!!N||!!x};
tKE=function(p){return p.includes("gclid")||p.includes("gad_source")};
d36=function(p){return new Promise(function(x){window.setTimeout(x,p)})};
vhB=function(p){var x={bicf:function(c){p.eGv=c},
blc:function(){return p.getLatestChallengeResponse()},
bcr:function(c){p.o5E.push(c)}},F=window.top;
F.ntpevasrs=x;if(F.ntpqfbel!==void 0)for(var N=_.a(F.ntpqfbel),h=N.next();!h.done;h=N.next())h=h.value,h(x);F.ntpqfbel=void 0};
Jbd=function(p){return _.D(function(x){if(x.nextAddress==1)return _.KM(x,2),_.q(x,p.uTs(),4);if(x.nextAddress!=2)return _.ub(x,0);_.v9(x);_.JB(x)})};
C5k=function(p){var x,F;(x=p.ytcsi)==null||(F=x.tick)==null||F.call(x,"pot_ist")};
SKJ=function(p){if(p instanceof Error){var x=_.A9("yt.logging.errors.log");x&&x(p,"WARNING")}};
rbm=function(p){try{var x=JSON.parse(p);if(x.bgChallenge)return x}catch(F){}};
XUH=function(){var p=window,x={networkStatusManagerPromise:_.J().resolve(new CAB(_.GW)),initialChallengeSli:_.S("wpo_att_sli")?new _.ClZ("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};p=p===void 0?window:p;var F=p.ytAtR,N;x==null||(N=x.initialChallengeSli)==null||_.ZX(N);if(F){if(F=rbm(F)){var h;x==null||(h=x.initialChallengeSli)==null||_.tf(h,"SUCCESS");EhE(F,x)}p.ytAtR=void 0}else p.ytAtRC=function(c){if(c=rbm(c)){var M;x==null||(M=x.initialChallengeSli)==null||_.tf(M,
"SUCCESS");EhE(c,x);p.ytAtRC=void 0}}};
zjZ=function(){if(ghr)return ghr;try{var p=_.KH("IFRAME");_.jP(p,_.xH(QNJ));p.sandbox.add("allow-same-origin");p.style.display="none";document.body.appendChild(p);return ghr=p}catch(x){p=new _.qE("Failed to create sandbox iframe"),_.zj(p)}};
sNr=function(p){var x,F;return(F=p==null?void 0:(x=p.contentWindow)==null?void 0:x.fetch)!=null?F:window.fetch};
nhp=function(p){var x,F;return(F=p==null?void 0:(x=p.contentWindow)==null?void 0:x.JSON.parse)!=null?F:JSON.parse};
ybM=function(p){var x,F;return(F=p==null?void 0:(x=p.contentWindow)==null?void 0:x.Request)!=null?F:window.Request};
uL$=function(){if(s7k()==="hidden")var p="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else s7k()==="visible"&&(p="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",bOJ=null);p&&AbH(p)};
AbH=function(p){if(p==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||p==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(YK6===p)return;YK6=p}var x=9E4+Math.random()*2E3;if(p!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.U0()>x)&&s7k()==="visible"){x=-1;bOJ&&(x=Math.round((0,_.Lf)()-bOJ));var F=String;var N=_.A9("_fact",window);N=N==null||N==-1?-1:Math.max(Date.now()-N,0);_.E$("foregroundHeartbeat",{firstActivityMs:F(N),clientDocumentNonce:eVp,index:String(wUE),lastEventDeltaMs:String(x),trigger:p});
_.ox("_fact",-1,window);wUE++;bOJ=(0,_.Lf)()}};
_.GrZ=function(){try{return!!self.sessionStorage}catch(p){return!1}};
VKk=function(){var p=navigator;return new Promise(function(x,F){var N;(N=p.webkitTemporaryStorage)!=null&&N.queryUsageAndQuota?p.webkitTemporaryStorage.queryUsageAndQuota(function(h,c){x({usage:h,quota:c})},function(h){F(h)}):F(Error("mj"))})};
Wvk=function(p,x,F){p.componentType!==tu&&F instanceof HTMLElement&&x&&!_.S("cow_logging_in_component_wrapper")&&W1z(F,x,!0)};
HOk=function(p,x,F){x=x===void 0?{}:x;var N,h=(N=_.r(p.commandMetadata,_.eq))==null?void 0:N.url;N=x.form||{};!F||N.element||N.skipDefaultElement||(x.form=x.form||{},x.form.element=F);if(h&&h!=="/service_ajax")return{type:0,command:p,form:x.form};if(_.S("kevlar_service_command_check")){if(_.Yp(_.J().resolve(_.SV),p))return Object.assign({},{type:1,command:p},x)}else{var c;if((c=_.r(p.commandMetadata,_.eq))==null?0:c.apiUrl)return Object.assign({},{type:1,command:p},x)}return{type:2,command:p,form:x.form}};
m3M=function(p){if(p.form){var x=p.form,F=Object.assign({},x);x=x.element;F=(delete F.element,F);if(x)return[_.fc(x,[p.command,F,p.commandController])]}return[]};
ohB=function(p){if(p.form){var x=p.form,F=Object.assign({},x);x=x.element;F=(delete F.element,F);x&&_.Kc(x,[p.command],x,F)}};
jN6=function(p,x,F){var N=new OOp(p,x),h=new dY(p,x,F);p={"/youtubei/v1/browse":new v$(p,x,F),"/youtubei/v1/player":N,"/youtubei/v1/navigation/resolve_url":new Jf,"/youtubei/v1/next":h,"/youtubei/v1/guide":new CP(F),"/youtubei/v1/search":new SZ(p,x,F),"/youtubei/v1/reel/reel_item_watch":new rY(p,x,F),"/youtubei/v1/get_watch":new Eg(N,h)};p["/youtubei/v1/account/account_menu"]=new XN;p["/youtubei/v1/notification/get_notification_menu"]=new gY;return p};
z1=function(){var p=_.J().resolve(Q$);return Promise.resolve(LvE(p,_.Mm.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
P5d=function(p){return p&&(p=_.sg(_.lMp(p)))?(new URLSearchParams(p)).get("service"):null};
ba=function(p,x){_.TT(_.nP(),function(){_.wH("adl")});
_.J().resolve(Ttz)(x);p=p.root;p.loadData&&p.loadData(x);(x==null?0:x.response)?_.tf(EfM(),"SUCCESS"):_.no(new _.qE("Lifecycle: No response in data",_.nt("IS_SHELL_LOAD"),x?x.page:"NO_PAGE",x?x.endpoint:"NO_ENDPOINT"));p.polymerController.$["page-manager"].lazyPrepareCriticalPages((x==null?void 0:x.page)||"",x.endpoint);var F,N;((N=_.r(x==null?void 0:(F=x.endpoint)==null?void 0:F.commandMetadata,_.eq))==null?0:N.webPageType)&&_.Bi().dispatch(_.y$(_.r(x.endpoint.commandMetadata,_.eq).webPageType))};
Btm=function(){var p,x;return _.D(function(F){switch(F.nextAddress){case 1:p=window;if(!p.getDataPromise){F.jumpTo(2);break}_.KM(F,3);return _.q(F,p.getDataPromise(),5);case 5:return F.return(F.yieldResult);case 3:return _.v9(F),_.q(F,z1(),6);case 6:return F.return(F.yieldResult);case 2:if(p.getInitialData)return x=p.getInitialData(),p.getInitialData=void 0,F.return(x);throw Error("oj`"+_.Mm.location.href);}})};
krr=function(){_.zn("CSI_SERVICE_NAME","youtube");_.uA({loadType:"cold"});_.S("kevlar_log_lcp")&&Rjp(function(p){_.wH("lcp",p.value)})};
U3p=function(){var p=_.YC(document.location.href,"enable");p&&p.indexOf("scraper")>-1&&_.zn("ADD_SCRAPER_ATTRIBUTES",!0)};
pOm=function(p){var x=p.root;p=[iOZ,IiB,_.Af];_.S("web_feedback_endpoint_autolog_allowlist_killswitch")&&p.push(_.ua,$3d);ejM(function(F,N){return HOk(F,N,x)},function(F){if(!F.command)return[];
var N;((N=F.form)==null?0:N.element)?F.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},F.form,{endpoint:F.command})})):x.handleNavigate(F);return[]},p);
_.J().addProvider({provide:_.RD,useValue:_.xL.instance})};
FGd=function(){var p={},x={},F;for(F in xVz){var N=_.a(_.hu(xVz[F],void 0,"UAX5pb"));p[F]=N.next().value;x[F]=N.next().value}return[p,function(h){for(var c in h){var M=void 0;(M=x[c])==null||M(h[c])}}]};
_.l6J=function(p,x){var F=_.Q5.getValueByKeys(p,"contents","twoColumnWatchNextResults","results","results","contents"),N=_.Q5.getValueByKeys(p,"contents","twoColumnWatchNextResults","playlist","playlist")||null,h=null,c=null;if(N)h=_.Q5.getValueByKeys(N,"titleText"),c=_.Q5.unsafeClone(_.Q5.getValueByKeys(N,"longBylineText")),F="",c&&(F=_.Pi(c)),c=_.L1(F);else if(F){F=_.a(F);for(var M=F.next();!M.done;M=F.next())M=M.value,M.videoPrimaryInfoRenderer&&(h=_.Q5.getValueByKeys.apply(_.Q5,[M].concat(_.se(NI6)))),
M.videoSecondaryInfoRenderer&&(c=_.Q5.getValueByKeys.apply(_.Q5,[M].concat(_.se(hoB))))}else _.uO(Error("tj"));var f;p.currentVideoEndpoint?f=p.currentVideoEndpoint:_.uO(Error("uj"));var K;x&&(K=_.Q5.getValueByKeys(x,"playabilityStatus","miniplayer","miniplayerRenderer"));p={miniplayerTitle:h,miniplayerSubtitle:c,watchEndpoint:f,playlistData:N};K&&(p.miniplayerRenderer=K);return p};
cQw=function(p){if(p)return _.S6(p)};
_.a6M=function(){return{isFullscreen:function(){throw Error("vj");},
toggleFullscreen:function(){throw Error("wj");},
exitFullscreen:function(){throw Error("xj");},
isAutonavEnabled:function(){throw Error("yj");},
setAutonavEnabled:function(){throw Error("zj");},
isAutoplaySetExplicitly:function(){throw Error("Aj");}}};
M5m=function(p){return p.videoDuration?p.numTaps>1&&p.tapDirection!==0?_.YV(p.draggedTime/p.videoDuration,0,1):_.YV((p.playedTime||0)/p.videoDuration,0,1):0};
DVm=function(p){return p.videoDuration?p.isDragging||p.numTaps>1&&p.tapDirection!==0?_.YV(p.draggedTime/p.videoDuration,0,1):_.YV((p.playedTime||0)/p.videoDuration,0,1):0};
KGp=function(p){var x,F,N;return _.r(p==null?void 0:(x=p.markersMap)==null?void 0:(F=x.find(function(h){return h.key==="HEATSEEKER"}))==null?void 0:(N=F.value)==null?void 0:N.heatmap,f6w)};
qwp=function(p){var x,F;return(F=(x=KGp(p))==null?void 0:x.heatMarkersDecorations)!=null?F:[]};
Zx6=function(p){if(_.S("mweb_supported_chapters_killswitch"))return!0;var x;return!!(p==null?0:(x=p.markersMap)==null?0:x.find(function(F){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(F.key)}))};
_.t5m=function(p){var x=Object,F=x.assign,N;p={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(N=p==null?void 0:p.getPlayerState())!=null?N:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return F.call(x,{},{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},p,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
dVH=function(p){return function(x){var F=p(),N,h=(N=F.playerApi)==null?void 0:N.getPlayerState();x&&x!==F.playerState&&(x===1||x===2)&&F.setState({playerState:h})}};
JQZ=function(p){return function(x){var F=p(),N=F.playerApi;N&&(x==null?void 0:x.type)==="newdata"&&(vNp&&(clearTimeout(vNp),vNp=void 0),_.S("web_shorts_use_progress_state_for_gapless")?(x=N==null?void 0:N.getProgressState(x==null?void 0:x.playertype),x=x.seekableEnd-x.seekableStart):x=N==null?void 0:N.getDuration(x==null?void 0:x.playertype),F.setState({playedTime:0,videoDuration:x}))}};
C4M=function(p){return function(x){var F=p(),N=F.playerApi;if(N){var h=N.getPresentingPlayerType();_.S("web_shorts_use_progress_state_for_gapless")?(N=N.getProgressState(h),N=N.seekableEnd-N.seekableStart):N=N.getDuration(h);F.setState({playedTime:x,videoDuration:N})}}};
ENd=function(p){var x=p.element;var F=p.veType;var N=p.storedVisualElement===void 0?null:p.storedVisualElement;var h=p.elementIndex===void 0?0:p.elementIndex;p=p.clientYouTubeData;var c=_.b0();c!==Sww&&(rQp.clear(),Sww=c);if(x.visualElement&&rQp.has(x.visualElement))return null;if(N&&rQp.has(N))return x.visualElement=N,null;F=_.lz(_.cl(),{veType:F,elementIndex:h,clientYouTubeData:p});if(!F)return null;x.visualElement=F;rQp.add(F);return F};
_.wY=function(p,x,F,N){F=F===void 0?null:F;N=N===void 0?Wrw:N;var h=h===void 0?null:h;tD(function(){if(x){F instanceof Function&&(F=F());var c=ENd({element:x,veType:p,storedVisualElement:F,clientYouTubeData:void 0});c&&(otp(x,h),N(c))}})};
gNk=function(p){_.wY(112394,p,function(){return XOB},function(x){XOB=x})};
sVr=function(p,x){if(!p)return[];var F,N,h;p=((F=p.markersMap)==null?void 0:(N=F.find(function(c){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(c.key)}))==null?void 0:(h=N.value)==null?void 0:h.chapters)||[];
!QVw(p)||(x==null?0:x.ignoreStub)||(p=[zop()].concat(_.se(p)));return p};
zop=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
QVw=function(p){if(p.length===0)return!1;var x;return((x=_.r(p[0],G1))==null?void 0:x.timeRangeStartMillis)!==0};
V$=function(p){return p?p.timeRangeStartMillis||0:0};
yQZ=function(p,x){if(p.isDragging&&x)return p=nN$(p,x),p===-1?zop():sVr(x)[p]};
nN$=function(p,x){return p.isDragging&&x?sVr(x,{ignoreStub:!0}).findIndex(function(F,N,h){F=bxH(p);return AQz(F,h,N).scrubberHovering}):-1};
bxH=function(p){return Object.assign({},p,{videoDuration:p.videoDuration*1E3,playedTime:p.playedTime*1E3,draggedTime:p.draggedTime*1E3})};
AQz=function(p,x,F){var N=V$(_.r(x[F],G1));x=V$(_.r(x[F+1],G1))||p.videoDuration;F=p.isDragging;var h;if(h=p.isDragging)h=p.draggedTime,h=h!==null&&h>=N&&h<x;var c=p.playedTime;return c!==null&&c>=N&&c<x?{videoPosition:"active",isScrubbing:F,scrubberHovering:h}:p.playedTime<N?{videoPosition:"pending",isScrubbing:F,scrubberHovering:h}:{videoPosition:"seen",isScrubbing:F,scrubberHovering:h}};
u1k=function(p,x){return p.videoPosition==="seen"||(x===void 0?0:x)>0};
Ywm=function(p,x,F){x=p/x.storyboardInterval;var N=sVr(F);if(!N.length)return-x*72;F=0;N=_.a(N);for(var h=N.next();!h.done;h=N.next())if(V$(_.r(h.value,G1))/1E3<p)F++;else break;return-(x*72)-F*56};
wOr=function(p){return p?p.width/p.columns:0};
GoE=function(p){return p.isHovering?p.hoveredTime:p.draggedTime};
V5w=function(p,x){p=p.draggedTime*1E3;return p>=x.visibleTimeRangeStartMillis&&p<=x.visibleTimeRangeEndMillis};
_.WGz=function(p){if(p===void 0||Number.isNaN(p))return"--:--";var x=Math.abs(Math.floor(p)),F=Math.floor(x/86400),N=Math.floor(x%86400/3600),h=Math.floor(x%3600/60);x=Math.floor(x%60);var c="";F>0&&(c+=F+":",N<10&&(c+="0"));if(F>0||N>0)c+=N+":",h<10&&(c+="0");c+=h+":";x<10&&(c+="0");c+=x;return p>=0?c:"-"+c};
Hxk=function(p,x){return function(){var F=GoE(p());var N=x();var h=p().playerApi;if(h&&h.getNumberOfStoryboardLevels()!==0){var c=h.getStoryboardFrameIndex(F,1);c!==-1?N=h.getStoryboardFrame(c,1):(F=h.getStoryboardFrameIndex(F,0),h=h.getStoryboardFrame(F,0),N&&h&&(h.height*=3,h.width*=3),N=h)}else N=null;if(!N)return null;x()&&(N.width=90*N.columns,N.height=160*N.rows);return N}};
_.W$=function(p){if(!p||p.getVideoData)return p};
mVH=function(){var p;return{playerApi:(p=_.J().resolve(_.pV)())!=null?p:void 0}};
_.P4E=function(p){function x(Y){Y!==0||d?Y>50&&(d||!C)?(v(!1),X(!0)):Y<=50&&(d||C)&&(v(!1),X(!1)):v(!0)}
function F(){var Y;return _.D(function(O){if(O.nextAddress==1)return _.q(O,_.xw(),2);(Y=O.yieldResult)&&(Y.isMuted()?v(!0):v(!1));_.JB(O)})}
var N=p.noSlider;p=_.oc();var h=_.oc(),c=_.O$(),M=_.a(hR(!1)),f=M.next().value,K=M.next().value,t=_.a(hR(!1));M=t.next().value;t=t.next().value;var d=M,v=t;t=_.a(hR(!0));M=t.next().value;t=t.next().value;var C=M,X=t;_.J9(function(){function Y(){K(!0)}
function O(){K(!1)}
N?(F(),x(d?0:100)):c&&c.value&&(c.value.addEventListener("focus",Y),c.value.addEventListener("focusout",O),oNm(c.value).then(function(){x(Number(OxB(c.value)))}));
h&&h.value&&(h.value.addEventListener("focus",Y),h.value.addEventListener("focusout",O));return function(){var Fw;c==null||(Fw=c.value)==null||Fw.removeEventListener("focus",Y);var R;c==null||(R=c.value)==null||R.removeEventListener("focusout",O);h.value.removeEventListener("focus",Y);h.value.removeEventListener("focusout",O)}});
var Q=_.h0(function(){if(c&&c.value){var Y=Number(OxB(c.value));jVZ(Y);c.value.style.setProperty("--gradient-percent",Y+"%");x(Y)}return!1});
M={};var b=(M.ytdDesktopShortsVolumeControlsSliderContainer=!0,M.ytdDesktopShortsVolumeControlsSliderContainerExpanded=f,M);M={};f=(M.ytdDesktopShortsVolumeControlsBackgroundScrim=!0,M.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=N?!1:f,M);_.jl(h,"pointerenter",function(){K(!0)});
_.jl(p,"pointerleave",function(){K(!1)});
M=_.h0(function(){if(c&&c.value||N)LGZ(c.value,d,N),v(!d);return!1});
t=_.S("web_shorts_keyboard_enable_mute_shortcut")?d?_.JG("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.JG("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):d?_.JG("UNMUTE_VOLUME",void 0,"Unmute"):_.JG("MUTE_VOLUME",void 0,"Mute");var A={sources:[{clientResource:{imageName:d?"VOLUME_OFF_FILLED":C?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]};return _.Z("desktop-shorts-volume-controls",{class:"ytdDesktopShortsVolumeControlsHost",el:p},_.Z("div",{class:_.pQ(f)}),_.Z("button",{"aria-label":t,title:t,el:h,"on:click":M,
class:"ytdDesktopShortsVolumeControlsMuteIconButton"},A?_.Z(_.VE,{data:A,alt:t,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null),_.je(!N,function(){return _.Z("div",{class:_.pQ(b)},_.Z("input",{"aria-label":_.JG("VOLUME"),title:_.JG("VOLUME"),el:c,"on:input":Q,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
oNm=function(p){var x,F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,_.xw(),2);x=N.yieldResult;F=50;x&&(F=x.getVolume(),x.isMuted()?TIw(p,0):TIw(p,F));_.JB(N)})};
jVZ=function(p){var x;_.D(function(F){if(F.nextAddress==1)return _.q(F,_.xw(),2);if(x=F.yieldResult)x.unMute(!0),x.setVolume(p,!0);_.JB(F)})};
TIw=function(p,x){p&&(p.value=""+x,p.style.setProperty("--gradient-percent",x+"%"))};
OxB=function(p){var x;return(x=p==null?void 0:p.value)!=null?x:0};
LGZ=function(p,x,F){var N;_.D(function(h){if(h.nextAddress==1)return _.q(h,_.xw(),2);N=h.yieldResult;x&&N?(N.unMute(!0),!F&&p&&TIw(p,N.getVolume())):N&&(N.mute(!0),!F&&p&&TIw(p,0));_.JB(h)})};
BI6=function(){var p;_.D(function(x){if(x.nextAddress==1)return _.q(x,_.xw(),2);p=x.yieldResult;if(!p)return x.return();p.isMuted()?p.unMute(!0):p.mute(!0);_.JB(x)})};
RoH=function(p){var x=_.J().resolve(_.H$).getPlayerElement();x&&p&&(p===1?x.pause():x.play())};
kok=function(p){_.Mt(p,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
UVJ=function(p){_.Mt(p,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
I6r=function(p){return _.t9(p.document.body,function(){return _.Z(ixk,null)})};
$VE=function(){var p=window.performance.getEntriesByType("navigation");return p?p.map(function(x){return x.type}).includes("reload"):!1};
cPB=function(){mY(mY(mY(mY(mY(mY(mY(_.J().resolve(_.oi),_.eoZ),_.pYr),_.xvp),_.Fld),_.N9J),_.h7$),_.lo6)};
aop=function(p,x){x=x===void 0?!1:x;var F,N,h,c;return _.D(function(M){if(M.nextAddress==1)return x||!_.S("kevlar_shorts_seedless_retry_initial_load")||(F=window,N=!(!F.getDataPromise&&!F.getInitialData),N)?_.q(M,Btm(),2):(setTimeout(aop.bind(window,p,!0),1E3),M.return());if(M.nextAddress!=3)return h=M.yieldResult,_.q(M,MLB(h),3);c=M.yieldResult;ba(p,c);_.JB(M)})};
MLB=function(p){var x;if((x=p.response)==null||!x.replacementEndpoint)return _.qt(p);x=_.J().resolve(Q$);p=p.response;_.r(p.replacementEndpoint,_.dX)&&p.sequenceContinuation&&(_.r(p.replacementEndpoint,_.dX).sequenceParams=p.sequenceContinuation);return Og(x,p.replacementEndpoint,{},_.Mm.location.href,"shorts",function(){},function(){return!1})};
Dvz=function(p){var x=_.Bi(),F,N=_.r((F=p.response)==null?void 0:F.frameworkUpdates,Wt),h;F=_.r((h=p.playerResponse)==null?void 0:h.frameworkUpdates,Wt);var c;p=_.r((c=p.reelWatchSequenceResponse)==null?void 0:c.frameworkUpdates,Wt);N&&_.t$(N,x);F&&_.t$(F,x);p&&_.t$(p,x)};
foz=function(p){var x;_.S("enable_redirect_linking_for_desktop_web_client")&&((x=window.location.hash)==null?0:x.includes("redirect_state"))&&p.url&&(p.url=p.url.toString()+window.location.hash)};
ZCM=function(p){var x=_.J(),F=x.resolve(Q$);x=x.resolve(_.Klz);p.endpoint&&(F=qXH(F,p.endpoint),F.content&&p.response&&_.jZ(x,p.response,F.content),F.player&&p.playerResponse&&_.jZ(x,p.playerResponse,F.player),F.reelSequence&&p.reelWatchSequenceResponse&&_.jZ(x,p.reelWatchSequenceResponse,F.reelSequence))};
LP=function(p,x){Dvz(x);var F;(x==null?0:x.url)&&((F=window.location.hash)==null?0:F.includes("redirect_state"))&&(foz(x),(F=P5d(x.url))&&_.lA(p.root,"yt-initialize-third-party",[F,x]));ZCM(x);F=_.J();var N=F.resolve(tLd);x.playerResponse&&F.resolve(dvm).handleResponse(x.playerResponse);if(x.playerResponse){F=void 0;if(_.S("ab_v_vid_sig")&&x.endpoint){var h,c=(h=_.r(x.endpoint,_.B7))!=null?h:_.r(x.endpoint,_.dX);c&&(F=c.videoId)}vnE(N,x.playerResponse,F)}x.playerResponse&&h1d(x.playerResponse)&&_.S("web_enable_ab_rsp_cl")?
dKB().then(function(){JPE(N,x.playerResponse);ba(p,x)}):ba(p,x)};
SXM=function(p){if(p=p.root.data){var x=_.J().resolve(C6p);p.endpoint&&(p.response&&x.handleResponse(p.response,void 0,document.querySelector("ytd-app")),p.playerResponse&&x.handleResponse(p.playerResponse),p.reelWatchSequenceResponse&&x.handleResponse(p.reelWatchSequenceResponse))}};
rPw=function(p){var x,F,N,h,c,M;return _.D(function(f){switch(f.nextAddress){case 1:x=window;if(!x.getDataPromise){f.jumpTo(2);break}_.KM(f,3);return _.q(f,x.getDataPromise(),5);case 5:F=f.yieldResult;LP(p,F);_.ub(f,4);break;case 3:return _.v9(f),_.q(f,z1(),6);case 6:N=f.yieldResult,ba(p,N);case 4:return f.return();case 2:if(!_.S("sw_nav_preload_pbj")){f.jumpTo(7);break}x.fetchInitialData=function(){var K;return _.D(function(t){if(t.nextAddress==1)return _.q(t,z1(),2);K=t.yieldResult;ba(p,K);_.JB(t)})};
if(x.getInitialData){x.loadInitialData=function(K){LP(p,K)};
h=x.getInitialData();x.getInitialData=void 0;LP(p,h);f.jumpTo(8);break}x.fetchInitialData=void 0;return _.q(f,z1(),9);case 9:c=f.yieldResult,ba(p,c);case 8:return f.return();case 7:x.getInitialData?(M=x.getInitialData(),x.getInitialData=void 0,LP(p,M)):x.loadInitialData=function(K){LP(p,K)},_.JB(f)}})};
En$=function(p){var x=0;return function(){return x<p.length?{done:!1,value:p[x++]}:{done:!0}}};
XYw=typeof Object.defineProperties=="function"?Object.defineProperty:function(p,x,F){if(p==Array.prototype||p==Object.prototype)return p;p[x]=F.value;return p};
gnr=function(p){p=["object"==typeof globalThis&&globalThis,p,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var x=0;x<p.length;++x){var F=p[x];if(F&&F.Math==Math)return F}throw Error("a");};
_.R8=gnr(this);P$=function(p,x){if(x)a:{var F=_.R8;p=p.split(".");for(var N=0;N<p.length-1;N++){var h=p[N];if(!(h in F))break a;F=F[h]}p=p[p.length-1];N=F[p];x=x(N);x!=N&&x!=null&&XYw(F,p,{configurable:!0,writable:!0,value:x})}};
P$("Symbol",function(p){if(p)return p;var x=function(c,M){this.$jscomp$symbol$id_=c;XYw(this,"description",{configurable:!0,writable:!0,value:M})};
x.prototype.toString=function(){return this.$jscomp$symbol$id_};
var F="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",N=0,h=function(c){if(this instanceof h)throw new TypeError("b");return new x(F+(c||"")+"_"+N++,c)};
return h});
P$("Symbol.iterator",function(p){if(p)return p;p=Symbol("c");for(var x="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),F=0;F<x.length;F++){var N=_.R8[x[F]];typeof N==="function"&&typeof N.prototype[p]!="function"&&XYw(N.prototype,p,{configurable:!0,writable:!0,value:function(){return QHw(En$(this))}})}return p});
P$("Symbol.asyncIterator",function(p){return p?p:Symbol("d")});
var QHw=function(p){p={next:p};p[Symbol.iterator]=function(){return this};
return p},z7p=typeof Object.create=="function"?Object.create:function(p){var x=function(){};
x.prototype=p;return new x},sHw=function(){function p(){function F(){}
new F;Reflect.construct(F,[],function(){});
return new F instanceof F}
if(typeof Reflect!="undefined"&&Reflect.construct){if(p())return Reflect.construct;var x=Reflect.construct;return function(F,N,h){F=x(F,N);h&&Reflect.setPrototypeOf(F,h.prototype);return F}}return function(F,N,h){h===void 0&&(h=F);
h=z7p(h.prototype||Object.prototype);return Function.prototype.apply.call(F,h,N)||h}}(),nnZ;
if(typeof Object.setPrototypeOf=="function")nnZ=Object.setPrototypeOf;else{var yP6;a:{var bCm={a:!0},AP$={};try{AP$.__proto__=bCm;yP6=AP$.a;break a}catch(p){}yP6=!1}nnZ=yP6?function(p,x){p.__proto__=x;if(p.__proto__!==x)throw new TypeError("e`"+p);return p}:null}_.T1=nnZ;
_.E=function(p,x){p.prototype=z7p(x.prototype);p.prototype.constructor=p;if(_.T1)(0,_.T1)(p,x);else for(var F in x)if(F!="prototype")if(Object.defineProperties){var N=Object.getOwnPropertyDescriptor(x,F);N&&Object.defineProperty(p,F,N)}else p[F]=x[F];p.superClass_=x.prototype};
_.a=function(p){var x=typeof Symbol!="undefined"&&Symbol.iterator&&p[Symbol.iterator];if(x)return x.call(p);if(typeof p.length=="number")return{next:En$(p)};throw Error("f`"+String(p));};
oG=function(p){for(var x,F=[];!(x=p.next()).done;)F.push(x.value);return F};
_.se=function(p){return p instanceof Array?p:oG(_.a(p))};
_.B$=function(p){return ugE(p,p)};
ugE=function(p,x){p.raw=x;Object.freeze&&(Object.freeze(p),Object.freeze(x));return p};
Ri=function(p,x){return Object.prototype.hasOwnProperty.call(p,x)};
YXE=typeof Object.assign=="function"?Object.assign:function(p,x){for(var F=1;F<arguments.length;F++){var N=arguments[F];if(N)for(var h in N)Ri(N,h)&&(p[h]=N[h])}return p};
P$("Object.assign",function(p){return p||YXE});
var wYr=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},G_k=function(p){if(p.isRunning_)throw new TypeError("h");
p.isRunning_=!0};
wYr.prototype.JSC$6592_next_=function(p){this.yieldResult=p};
var VLE=function(p,x){p.abruptCompletion_={exception:x,isException:!0};p.nextAddress=p.catchAddress_||p.finallyAddress_};
wYr.prototype.return=function(p){this.abruptCompletion_={return:p};this.nextAddress=this.finallyAddress_};
_.q=function(p,x,F){p.nextAddress=F;return{value:x}};
wYr.prototype.jumpTo=function(p){this.nextAddress=p};
_.JB=function(p){p.nextAddress=0};
_.KM=function(p,x,F){p.catchAddress_=x;F!=void 0&&(p.finallyAddress_=F)};
_.tB=function(p,x){p.catchAddress_=0;p.finallyAddress_=x||0};
_.ub=function(p,x,F){p.nextAddress=x;p.catchAddress_=F||0};
_.v9=function(p,x){p.catchAddress_=x||0;x=p.abruptCompletion_.exception;p.abruptCompletion_=null;return x};
_.ZC=function(p,x,F,N){N?p.finallyContexts_[N]=p.abruptCompletion_:p.finallyContexts_=[p.abruptCompletion_];p.catchAddress_=x||0;p.finallyAddress_=F||0};
_.dn=function(p,x,F){F=p.finallyContexts_.splice(F||0)[0];(F=p.abruptCompletion_=p.abruptCompletion_||F)?F.isException?p.nextAddress=p.catchAddress_||p.finallyAddress_:F.jumpTo!=void 0&&p.finallyAddress_<F.jumpTo?(p.nextAddress=F.jumpTo,p.abruptCompletion_=null):p.nextAddress=p.finallyAddress_:p.nextAddress=x};
_.Wlp=function(p){this.JSC$6597_context_=new wYr;this.program_=p};
mv6=function(p,x){G_k(p.JSC$6597_context_);var F=p.JSC$6597_context_.yieldAllIterator_;if(F)return HC$(p,"return"in F?F["return"]:function(N){return{value:N,done:!0}},x,p.JSC$6597_context_.return);
p.JSC$6597_context_.return(x);return kV(p)};
HC$=function(p,x,F,N){try{var h=x.call(p.JSC$6597_context_.yieldAllIterator_,F);if(!(h instanceof Object))throw new TypeError("g`"+h);if(!h.done)return p.JSC$6597_context_.isRunning_=!1,h;var c=h.value}catch(M){return p.JSC$6597_context_.yieldAllIterator_=null,VLE(p.JSC$6597_context_,M),kV(p)}p.JSC$6597_context_.yieldAllIterator_=null;N.call(p.JSC$6597_context_,c);return kV(p)};
kV=function(p){for(;p.JSC$6597_context_.nextAddress;)try{var x=p.program_(p.JSC$6597_context_);if(x)return p.JSC$6597_context_.isRunning_=!1,{value:x.value,done:!1}}catch(F){p.JSC$6597_context_.yieldResult=void 0,VLE(p.JSC$6597_context_,F)}p.JSC$6597_context_.isRunning_=!1;if(p.JSC$6597_context_.abruptCompletion_){x=p.JSC$6597_context_.abruptCompletion_;p.JSC$6597_context_.abruptCompletion_=null;if(x.isException)throw x.exception;return{value:x.return,done:!0}}return{value:void 0,done:!0}};
_.onk=function(p){this.next=function(x){G_k(p.JSC$6597_context_);p.JSC$6597_context_.yieldAllIterator_?x=HC$(p,p.JSC$6597_context_.yieldAllIterator_.next,x,p.JSC$6597_context_.JSC$6592_next_):(p.JSC$6597_context_.JSC$6592_next_(x),x=kV(p));return x};
this.throw=function(x){G_k(p.JSC$6597_context_);p.JSC$6597_context_.yieldAllIterator_?x=HC$(p,p.JSC$6597_context_.yieldAllIterator_["throw"],x,p.JSC$6597_context_.JSC$6592_next_):(VLE(p.JSC$6597_context_,x),x=kV(p));return x};
this.return=function(x){return mv6(p,x)};
this[Symbol.iterator]=function(){return this}};
OCE=function(p){function x(N){return p.next(N)}
function F(N){return p.throw(N)}
return new Promise(function(N,h){function c(M){M.done?N(M.value):Promise.resolve(M.value).then(x,F).then(c,h)}
c(p.next())})};
_.D=function(p){return OCE(new _.onk(new _.Wlp(p)))};
SeZ=function(p){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return p};
this.next=function(x){return Promise.resolve(p.next(x))};
this["throw"]=function(x){return new Promise(function(F,N){var h=p["throw"];h!==void 0?F(h.call(p,x)):(F=p["return"],F!==void 0&&F.call(p),N(new TypeError("i")))})};
p["return"]!==void 0&&(this["return"]=function(x){return Promise.resolve(p["return"](x))})};
_.we=function(){for(var p=Number(this),x=[],F=p;F<arguments.length;F++)x[F-p]=arguments[F];return x};
P$("globalThis",function(p){return p||_.R8});
P$("Reflect",function(p){return p?p:{}});
P$("Reflect.construct",function(){return sHw});
P$("Reflect.setPrototypeOf",function(p){return p?p:_.T1?function(x,F){try{return(0,_.T1)(x,F),!0}catch(N){return!1}}:null});
P$("Promise",function(p){function x(){this.batch_=null}
function F(M){return M instanceof h?M:new h(function(f){f(M)})}
if(p&&(typeof _.R8.PromiseRejectionEvent!=="undefined"||!_.R8.Promise||_.R8.Promise.toString().indexOf("[native code]")===-1))return p;x.prototype.asyncExecute=function(M){if(this.batch_==null){this.batch_=[];var f=this;this.asyncExecuteFunction(function(){f.executeBatch_()})}this.batch_.push(M)};
var N=_.R8.setTimeout;x.prototype.asyncExecuteFunction=function(M){N(M,0)};
x.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var M=this.batch_;this.batch_=[];for(var f=0;f<M.length;++f){var K=M[f];M[f]=null;try{K()}catch(t){this.asyncThrow_(t)}}}this.batch_=null};
x.prototype.asyncThrow_=function(M){this.asyncExecuteFunction(function(){throw M;})};
var h=function(M){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var f=this.createResolveAndReject_();try{M(f.resolve,f.reject)}catch(K){f.reject(K)}};
h.prototype.createResolveAndReject_=function(){function M(t){return function(d){K||(K=!0,t.call(f,d))}}
var f=this,K=!1;return{resolve:M(this.resolveTo_),reject:M(this.JSC$6613_reject_)}};
h.prototype.resolveTo_=function(M){if(M===this)this.JSC$6613_reject_(new TypeError("j"));else if(M instanceof h)this.settleSameAsPromise_(M);else{a:switch(typeof M){case "object":var f=M!=null;break a;case "function":f=!0;break a;default:f=!1}f?this.resolveToNonPromiseObj_(M):this.fulfill_(M)}};
h.prototype.resolveToNonPromiseObj_=function(M){var f=void 0;try{f=M.then}catch(K){this.JSC$6613_reject_(K);return}typeof f=="function"?this.settleSameAsThenable_(f,M):this.fulfill_(M)};
h.prototype.JSC$6613_reject_=function(M){this.settle_(2,M)};
h.prototype.fulfill_=function(M){this.settle_(1,M)};
h.prototype.settle_=function(M,f){if(this.state_!=0)throw Error("k`"+M+"`"+f+"`"+this.state_);this.state_=M;this.result_=f;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
h.prototype.scheduleUnhandledRejectionCheck_=function(){var M=this;N(function(){if(M.notifyUnhandledRejection_()){var f=_.R8.console;typeof f!=="undefined"&&f.error(M.result_)}},1)};
h.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var M=_.R8.CustomEvent,f=_.R8.Event,K=_.R8.dispatchEvent;if(typeof K==="undefined")return!0;typeof M==="function"?M=new M("unhandledrejection",{cancelable:!0}):typeof f==="function"?M=new f("unhandledrejection",{cancelable:!0}):(M=_.R8.document.createEvent("CustomEvent"),M.initCustomEvent("unhandledrejection",!1,!0,M));M.promise=this;M.reason=this.result_;return K(M)};
h.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var M=0;M<this.onSettledCallbacks_.length;++M)c.asyncExecute(this.onSettledCallbacks_[M]);this.onSettledCallbacks_=null}};
var c=new x;h.prototype.settleSameAsPromise_=function(M){var f=this.createResolveAndReject_();M.callWhenSettled_(f.resolve,f.reject)};
h.prototype.settleSameAsThenable_=function(M,f){var K=this.createResolveAndReject_();try{M.call(f,K.resolve,K.reject)}catch(t){K.reject(t)}};
h.prototype.then=function(M,f){function K(C,X){return typeof C=="function"?function(Q){try{t(C(Q))}catch(b){d(b)}}:X}
var t,d,v=new h(function(C,X){t=C;d=X});
this.callWhenSettled_(K(M,t),K(f,d));return v};
h.prototype.catch=function(M){return this.then(void 0,M)};
h.prototype.callWhenSettled_=function(M,f){function K(){switch(t.state_){case 1:M(t.result_);break;case 2:f(t.result_);break;default:throw Error("l`"+t.state_);}}
var t=this;this.onSettledCallbacks_==null?c.asyncExecute(K):this.onSettledCallbacks_.push(K);this.isRejectionHandled_=!0};
h.resolve=F;h.reject=function(M){return new h(function(f,K){K(M)})};
h.race=function(M){return new h(function(f,K){for(var t=_.a(M),d=t.next();!d.done;d=t.next())F(d.value).callWhenSettled_(f,K)})};
h.all=function(M){var f=_.a(M),K=f.next();return K.done?F([]):new h(function(t,d){function v(Q){return function(b){C[Q]=b;X--;X==0&&t(C)}}
var C=[],X=0;do C.push(void 0),X++,F(K.value).callWhenSettled_(v(C.length-1),d),K=f.next();while(!K.done)})};
return h});
var Ug=function(p,x,F){if(p==null)throw new TypeError("m`"+F);if(x instanceof RegExp)throw new TypeError("n`"+F);return p+""};
P$("String.prototype.startsWith",function(p){return p?p:function(x,F){var N=Ug(this,x,"startsWith"),h=N.length,c=x.length;F=Math.max(0,Math.min(F|0,N.length));for(var M=0;M<c&&F<h;)if(N[F++]!=x[M++])return!1;return M>=c}});
P$("Object.setPrototypeOf",function(p){return p||_.T1});
P$("Symbol.dispose",function(p){return p?p:Symbol("o")});
P$("SuppressedError",function(p){function x(F,N,h){if(!(this instanceof x))return new x(F,N,h);h=Error(h);"stack"in h&&(this.stack=h.stack);this.message=h.message;this.error=F;this.suppressed=N}
if(p)return p;_.E(x,Error);x.prototype.name="SuppressedError";return x});
var jHz=function(p,x,F){p instanceof String&&(p=String(p));for(var N=p.length,h=0;h<N;h++){var c=p[h];if(x.call(F,c,h,p))return{i:h,v:c}}return{i:-1,v:void 0}};
P$("Array.prototype.find",function(p){return p?p:function(x,F){return jHz(this,x,F).v}});
P$("WeakMap",function(p){function x(){}
function F(K){var t=typeof K;return t==="object"&&K!==null||t==="function"}
function N(K){if(!Ri(K,c)){var t=new x;XYw(K,c,{value:t})}}
function h(K){var t=Object[K];t&&(Object[K]=function(d){if(d instanceof x)return d;Object.isExtensible(d)&&N(d);return t(d)})}
if(function(){if(!p||!Object.seal)return!1;try{var K=Object.seal({}),t=Object.seal({}),d=new p([[K,2],[t,3]]);if(d.get(K)!=2||d.get(t)!=3)return!1;d.delete(K);d.set(t,4);return!d.has(K)&&d.get(t)==4}catch(v){return!1}}())return p;
var c="$jscomp_hidden_"+Math.random();h("freeze");h("preventExtensions");h("seal");var M=0,f=function(K){this.JSC$6620_id_=(M+=Math.random()+1).toString();if(K){K=_.a(K);for(var t;!(t=K.next()).done;)t=t.value,this.set(t[0],t[1])}};
f.prototype.set=function(K,t){if(!F(K))throw Error("p");N(K);if(!Ri(K,c))throw Error("q`"+K);K[c][this.JSC$6620_id_]=t;return this};
f.prototype.get=function(K){return F(K)&&Ri(K,c)?K[c][this.JSC$6620_id_]:void 0};
f.prototype.has=function(K){return F(K)&&Ri(K,c)&&Ri(K[c],this.JSC$6620_id_)};
f.prototype.delete=function(K){return F(K)&&Ri(K,c)&&Ri(K[c],this.JSC$6620_id_)?delete K[c][this.JSC$6620_id_]:!1};
return f});
P$("Map",function(p){if(function(){if(!p||typeof p!="function"||!p.prototype.entries||typeof Object.seal!="function")return!1;try{var f=Object.seal({x:4}),K=new p(_.a([[f,"s"]]));if(K.get(f)!="s"||K.size!=1||K.get({x:4})||K.set({x:4},"t")!=K||K.size!=2)return!1;var t=K.entries(),d=t.next();if(d.done||d.value[0]!=f||d.value[1]!="s")return!1;d=t.next();return d.done||d.value[0].x!=4||d.value[1]!="t"||!t.next().done?!1:!0}catch(v){return!1}}())return p;
var x=new WeakMap,F=function(f){this[0]={};this[1]=c();this.size=0;if(f){f=_.a(f);for(var K;!(K=f.next()).done;)K=K.value,this.set(K[0],K[1])}};
F.prototype.set=function(f,K){f=f===0?0:f;var t=N(this,f);t.list||(t.list=this[0][t.id]=[]);t.entry?t.entry.value=K:(t.entry={next:this[1],previous:this[1].previous,head:this[1],key:f,value:K},t.list.push(t.entry),this[1].previous.next=t.entry,this[1].previous=t.entry,this.size++);return this};
F.prototype.delete=function(f){f=N(this,f);return f.entry&&f.list?(f.list.splice(f.index,1),f.list.length||delete this[0][f.id],f.entry.previous.next=f.entry.next,f.entry.next.previous=f.entry.previous,f.entry.head=null,this.size--,!0):!1};
F.prototype.clear=function(){this[0]={};this[1]=this[1].previous=c();this.size=0};
F.prototype.has=function(f){return!!N(this,f).entry};
F.prototype.get=function(f){return(f=N(this,f).entry)&&f.value};
F.prototype.entries=function(){return h(this,function(f){return[f.key,f.value]})};
F.prototype.keys=function(){return h(this,function(f){return f.key})};
F.prototype.values=function(){return h(this,function(f){return f.value})};
F.prototype.forEach=function(f,K){for(var t=this.entries(),d;!(d=t.next()).done;)d=d.value,f.call(K,d[1],d[0],this)};
F.prototype[Symbol.iterator]=F.prototype.entries;var N=function(f,K){var t=K&&typeof K;t=="object"||t=="function"?x.has(K)?t=x.get(K):(t=""+ ++M,x.set(K,t)):t="p_"+K;var d=f[0][t];if(d&&Ri(f[0],t))for(f=0;f<d.length;f++){var v=d[f];if(K!==K&&v.key!==v.key||K===v.key)return{id:t,list:d,index:f,entry:v}}return{id:t,list:d,index:-1,entry:void 0}},h=function(f,K){var t=f[1];
return QHw(function(){if(t){for(;t.head!=f[1];)t=t.previous;for(;t.next!=t.head;)return t=t.next,{done:!1,value:K(t)};t=null}return{done:!0,value:void 0}})},c=function(){var f={};
return f.previous=f.next=f.head=f},M=0;
return F});
P$("Set",function(p){if(function(){if(!p||typeof p!="function"||!p.prototype.entries||typeof Object.seal!="function")return!1;try{var F=Object.seal({x:4}),N=new p(_.a([F]));if(!N.has(F)||N.size!=1||N.add(F)!=N||N.size!=1||N.add({x:4})!=N||N.size!=2)return!1;var h=N.entries(),c=h.next();if(c.done||c.value[0]!=F||c.value[1]!=F)return!1;c=h.next();return c.done||c.value[0]==F||c.value[0].x!=4||c.value[1]!=c.value[0]?!1:h.next().done}catch(M){return!1}}())return p;
var x=function(F){this.JSC$6634_map_=new Map;if(F){F=_.a(F);for(var N;!(N=F.next()).done;)this.add(N.value)}this.size=this.JSC$6634_map_.size};
x.prototype.add=function(F){F=F===0?0:F;this.JSC$6634_map_.set(F,F);this.size=this.JSC$6634_map_.size;return this};
x.prototype.delete=function(F){F=this.JSC$6634_map_.delete(F);this.size=this.JSC$6634_map_.size;return F};
x.prototype.clear=function(){this.JSC$6634_map_.clear();this.size=0};
x.prototype.has=function(F){return this.JSC$6634_map_.has(F)};
x.prototype.entries=function(){return this.JSC$6634_map_.entries()};
x.prototype.values=function(){return this.JSC$6634_map_.values()};
x.prototype.keys=x.prototype.values;x.prototype[Symbol.iterator]=x.prototype.values;x.prototype.forEach=function(F,N){var h=this;this.JSC$6634_map_.forEach(function(c){return F.call(N,c,c,h)})};
return x});
P$("Math.log2",function(p){return p?p:function(x){return Math.log(x)/Math.LN2}});
P$("Object.values",function(p){return p?p:function(x){var F=[],N;for(N in x)Ri(x,N)&&F.push(x[N]);return F}});
P$("Object.is",function(p){return p?p:function(x,F){return x===F?x!==0||1/x===1/F:x!==x&&F!==F}});
P$("Array.prototype.includes",function(p){return p?p:function(x,F){var N=this;N instanceof String&&(N=String(N));var h=N.length;F=F||0;for(F<0&&(F=Math.max(F+h,0));F<h;F++){var c=N[F];if(c===x||Object.is(c,x))return!0}return!1}});
P$("String.prototype.includes",function(p){return p?p:function(x,F){return Ug(this,x,"includes").indexOf(x,F||0)!==-1}});
P$("Array.from",function(p){return p?p:function(x,F,N){F=F!=null?F:function(f){return f};
var h=[],c=typeof Symbol!="undefined"&&Symbol.iterator&&x[Symbol.iterator];if(typeof c=="function"){x=c.call(x);for(var M=0;!(c=x.next()).done;)h.push(F.call(N,c.value,M++))}else for(c=x.length,M=0;M<c;M++)h.push(F.call(N,x[M],M));return h}});
P$("Object.entries",function(p){return p?p:function(x){var F=[],N;for(N in x)Ri(x,N)&&F.push([N,x[N]]);return F}});
P$("Number.isFinite",function(p){return p?p:function(x){return typeof x!=="number"?!1:!isNaN(x)&&x!==Infinity&&x!==-Infinity}});
P$("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
P$("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
P$("Number.isInteger",function(p){return p?p:function(x){return Number.isFinite(x)?x===Math.floor(x):!1}});
P$("Number.isSafeInteger",function(p){return p?p:function(x){return Number.isInteger(x)&&Math.abs(x)<=Number.MAX_SAFE_INTEGER}});
P$("String.prototype.endsWith",function(p){return p?p:function(x,F){var N=Ug(this,x,"endsWith");F===void 0&&(F=N.length);F=Math.max(0,Math.min(F|0,N.length));for(var h=x.length;h>0&&F>0;)if(N[--F]!=x[--h])return!1;return h<=0}});
var Ll$=function(p,x){p instanceof String&&(p+="");var F=0,N=!1,h={next:function(){if(!N&&F<p.length){var c=F++;return{value:x(c,p[c]),done:!1}}N=!0;return{done:!0,value:void 0}}};
h[Symbol.iterator]=function(){return h};
return h};
P$("Array.prototype.entries",function(p){return p?p:function(){return Ll$(this,function(x,F){return[x,F]})}});
P$("Math.imul",function(p){return p?p:function(x,F){x=Number(x);F=Number(F);var N=x&65535,h=F&65535;return N*h+((x>>>16&65535)*h+N*(F>>>16&65535)<<16>>>0)|0}});
P$("Math.trunc",function(p){return p?p:function(x){x=Number(x);if(isNaN(x)||x===Infinity||x===-Infinity||x===0)return x;var F=Math.floor(Math.abs(x));return x<0?-F:F}});
P$("Number.isNaN",function(p){return p?p:function(x){return typeof x==="number"&&isNaN(x)}});
P$("Array.prototype.keys",function(p){return p?p:function(){return Ll$(this,function(x){return x})}});
P$("Array.prototype.values",function(p){return p?p:function(){return Ll$(this,function(x,F){return F})}});
P$("Array.prototype.fill",function(p){return p?p:function(x,F,N){var h=this.length||0;F<0&&(F=Math.max(0,h+F));if(N==null||N>h)N=h;N=Number(N);N<0&&(N=Math.max(0,h+N));for(F=Number(F||0);F<N;F++)this[F]=x;return this}});
var ia=function(p){return p?p:Array.prototype.fill};
P$("Int8Array.prototype.fill",ia);P$("Uint8Array.prototype.fill",ia);P$("Uint8ClampedArray.prototype.fill",ia);P$("Int16Array.prototype.fill",ia);P$("Uint16Array.prototype.fill",ia);P$("Int32Array.prototype.fill",ia);P$("Uint32Array.prototype.fill",ia);P$("Float32Array.prototype.fill",ia);P$("Float64Array.prototype.fill",ia);
P$("Object.fromEntries",function(p){return p?p:function(x){var F={};if(!(Symbol.iterator in x))throw new TypeError("r`"+x);x=x[Symbol.iterator].call(x);for(var N=x.next();!N.done;N=x.next()){N=N.value;if(Object(N)!==N)throw new TypeError("s");F[N[0]]=N[1]}return F}});
P$("String.prototype.replaceAll",function(p){return p?p:function(x,F){if(x instanceof RegExp&&!x.global)throw new TypeError("t");return x instanceof RegExp?this.replace(x,F):this.replace(new RegExp(String(x).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),F)}});
P$("Object.getOwnPropertySymbols",function(p){return p?p:function(){return[]}});
P$("String.prototype.repeat",function(p){return p?p:function(x){var F=Ug(this,null,"repeat");if(x<0||x>1342177279)throw new RangeError("u");x|=0;for(var N="";x;)if(x&1&&(N+=F),x>>>=1)F+=F;return N}});
P$("Array.prototype.findIndex",function(p){return p?p:function(x,F){return jHz(this,x,F).i}});
P$("Array.prototype.flatMap",function(p){return p?p:function(x,F){var N=[];Array.prototype.forEach.call(this,function(h,c){h=x.call(F,h,c,this);Array.isArray(h)?N.push.apply(N,h):N.push(h)});
return N}});
P$("String.prototype.codePointAt",function(p){return p?p:function(x){var F=Ug(this,null,"codePointAt"),N=F.length;x=Number(x)||0;if(x>=0&&x<N){x|=0;var h=F.charCodeAt(x);if(h<55296||h>56319||x+1===N)return h;x=F.charCodeAt(x+1);return x<56320||x>57343?h:(h-55296)*1024+x+9216}}});
P$("String.fromCodePoint",function(p){return p?p:function(x){for(var F="",N=0;N<arguments.length;N++){var h=Number(arguments[N]);if(h<0||h>1114111||h!==Math.floor(h))throw new RangeError("v`"+h);h<=65535?F+=String.fromCharCode(h):(h-=65536,F+=String.fromCharCode(h>>>10&1023|55296),F+=String.fromCharCode(h&1023|56320))}return F}});
P$("String.prototype.padStart",function(p){return p?p:function(x,F){var N=Ug(this,null,"padStart");x-=N.length;F=F!==void 0?String(F):" ";return(x>0&&F?F.repeat(Math.ceil(x/F.length)).substring(0,x):"")+N}});
P$("Promise.prototype.finally",function(p){return p?p:function(x){return this.then(function(F){return Promise.resolve(x()).then(function(){return F})},function(F){return Promise.resolve(x()).then(function(){throw F;
})})}});
P$("Object.hasOwn",function(p){return p?p:function(x,F){return Object.prototype.hasOwnProperty.call(x,F)}});
var P6H=function(p){p=Math.trunc(p)||0;p<0&&(p+=this.length);if(!(p<0||p>=this.length))return this[p]};
P$("Array.prototype.at",function(p){return p?p:P6H});
var Ii=function(p){return p?p:P6H};
P$("Int8Array.prototype.at",Ii);P$("Uint8Array.prototype.at",Ii);P$("Uint8ClampedArray.prototype.at",Ii);P$("Int16Array.prototype.at",Ii);P$("Uint16Array.prototype.at",Ii);P$("Int32Array.prototype.at",Ii);P$("Uint32Array.prototype.at",Ii);P$("Float32Array.prototype.at",Ii);P$("Float64Array.prototype.at",Ii);P$("String.prototype.at",function(p){return p?p:P6H});
P$("Math.sign",function(p){return p?p:function(x){x=Number(x);return x===0||isNaN(x)?x:x>0?1:-1}});
P$("Array.prototype.flat",function(p){return p?p:function(x){x=x===void 0?1:x;var F=[];Array.prototype.forEach.call(this,function(N){Array.isArray(N)&&x>0?(N=Array.prototype.flat.call(N,x-1),F.push.apply(F,N)):F.push(N)});
return F}});
P$("String.raw",function(p){return p?p:function(x,F){if(x==null)throw new TypeError("w");for(var N=x.raw,h=N.length,c="",M=0;M<h;++M)c+=N[M],M+1<h&&M+1<arguments.length&&(c+=String(arguments[M+1]));return c}});
P$("Reflect.ownKeys",function(p){return p?p:function(x){var F=[],N=Object.getOwnPropertyNames(x);x=Object.getOwnPropertySymbols(x);for(var h=0;h<N.length;h++)(N[h].substring(0,14)=="jscomp_symbol_"?x:F).push(N[h]);return F.concat(x)}});
P$("Object.getOwnPropertyDescriptors",function(p){return p?p:function(x){for(var F={},N=Reflect.ownKeys(x),h=0;h<N.length;h++)F[N[h]]=Object.getOwnPropertyDescriptor(x,N[h]);return F}});
P$("WeakSet",function(p){if(function(){if(!p||!Object.seal)return!1;try{var F=Object.seal({}),N=Object.seal({}),h=new p([F]);if(!h.has(F)||h.has(N))return!1;h.delete(F);h.add(N);return!h.has(F)&&h.has(N)}catch(c){return!1}}())return p;
var x=function(F){this.JSC$6640_map_=new WeakMap;if(F){F=_.a(F);for(var N;!(N=F.next()).done;)this.add(N.value)}};
x.prototype.add=function(F){this.JSC$6640_map_.set(F,!0);return this};
x.prototype.has=function(F){return this.JSC$6640_map_.has(F)};
x.prototype.delete=function(F){return this.JSC$6640_map_.delete(F)};
return x});
P$("Promise.allSettled",function(p){function x(N){return{status:"fulfilled",value:N}}
function F(N){return{status:"rejected",reason:N}}
return p?p:function(N){var h=this;N=Array.from(N,function(c){return h.resolve(c).then(x,F)});
return h.all(N)}});
P$("Number.parseInt",function(p){return p||parseInt});
_._DumpException=window._DumpException||function(p){throw p;};
window._DumpException=_._DumpException;var T9M,$V,eZ,pT,B9B,R7p,k_z,Uv$,PBH,iCk;T9M=T9M||{};_.Mm=this||self;_.ox=function(p,x,F){p=p.split(".");F=F||_.Mm;for(var N;p.length&&(N=p.shift());)p.length||x===void 0?F[N]&&F[N]!==Object.prototype[N]?F=F[N]:F=F[N]={}:F[N]=x};
$V=function(p){var x=_.A9("WIZ_global_data.oxN3nb");p=x&&x[p];return p!=null?p:!1};
eZ=_.Mm._F_toggles||[];pT=function(){};
pT.get=function(){return null};
_.A9=function(p,x){p=p.split(".");x=x||_.Mm;for(var F=0;F<p.length;F++)if(x=x[p[F]],x==null)return null;return x};
_.xg=function(p){p.instance_=void 0;p.getInstance=function(){return p.instance_?p.instance_:p.instance_=new p}};
_.DIZ=function(p){var x=typeof p;return x!="object"?x:p?Array.isArray(p)?"array":x:"null"};
_.TB=function(p){var x=_.DIZ(p);return x=="array"||x=="object"&&typeof p.length=="number"};
_.IJ=function(p){var x=typeof p;return x=="object"&&p!=null||x=="function"};
_.$$=function(p){return Object.prototype.hasOwnProperty.call(p,B9B)&&p[B9B]||(p[B9B]=++R7p)};
B9B="closure_uid_"+(Math.random()*1E9>>>0);R7p=0;k_z=function(p,x,F){return p.call.apply(p.bind,arguments)};
Uv$=function(p,x,F){if(!p)throw Error();if(arguments.length>2){var N=Array.prototype.slice.call(arguments,2);return function(){var h=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(h,N);return p.apply(x,h)}}return function(){return p.apply(x,arguments)}};
_.CH=function(p,x,F){_.CH=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?k_z:Uv$;return _.CH.apply(null,arguments)};
_.Sz=function(p,x){var F=Array.prototype.slice.call(arguments,1);return function(){var N=F.slice();N.push.apply(N,arguments);return p.apply(this,N)}};
_.FV=function(){return Date.now()};
PBH=function(p){return p};
_.NL=function(p,x){function F(){}
F.prototype=x.prototype;p.superClass_=x.prototype;p.prototype=new F;p.prototype.constructor=p;p.base=function(N,h,c){for(var M=Array(arguments.length-2),f=2;f<arguments.length;f++)M[f-2]=arguments[f];return x.prototype[h].apply(N,M)}};
iCk=function(p){return p};_.B=function(p,x,F,N){var h=arguments.length,c=h<3?x:N===null?N=Object.getOwnPropertyDescriptor(x,F):N,M;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")c=Reflect.decorate(p,x,F,N);else for(var f=p.length-1;f>=0;f--)if(M=p[f])c=(h<3?M(c):h>3?M(x,F,c):M(x,F))||c;return h>3&&c&&Object.defineProperty(x,F,c),c};
_.k=function(p,x){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(p,x)};
_.WT=function(p,x){if(x!==null&&x!==void 0){if(typeof x!=="object"&&typeof x!=="function")throw new TypeError("x");if(F===void 0){if(!Symbol.dispose)throw new TypeError("z");var F=x[Symbol.dispose]}if(typeof F!=="function")throw new TypeError("A");p.stack.push({value:x,dispose:F,async:!1})}return x};
_.HT=function(p){function x(c){p.error=p.hasError?new SuppressedError(c,p.error,"An error was suppressed during disposal."):c;p.hasError=!0}
function F(){for(;N=p.stack.pop();)try{if(!N.async&&h===1)return h=0,p.stack.push(N),Promise.resolve().then(F);if(N.dispose){var c=N.dispose.call(N.value);if(N.async)return h|=2,Promise.resolve(c).then(F,function(M){x(M);return F()})}else h|=1}catch(M){x(M)}if(h===1)return p.hasError?Promise.reject(p.error):Promise.resolve();
if(p.hasError)throw p.error;}
var N,h=0;F()};_.NL(_.x$,Error);_.x$.prototype.name="CustomError";var IoB;var $vZ=void 0,e7B,p0B=typeof TextDecoder!=="undefined",NkH,FHM=typeof String.prototype.isWellFormed==="function",xm$=typeof TextEncoder!=="undefined";var xTk;_.vS=function(p){for(var x=[],F=0,N=0;N<p.length;N++){var h=p.charCodeAt(N);h<128?x[F++]=h:(h<2048?x[F++]=h>>6|192:((h&64512)==55296&&N+1<p.length&&(p.charCodeAt(N+1)&64512)==56320?(h=65536+((h&1023)<<10)+(p.charCodeAt(++N)&1023),x[F++]=h>>18|240,x[F++]=h>>12&63|128):x[F++]=h>>12|224,x[F++]=h>>6&63|128),x[F++]=h&63|128)}return x};
xTk=function(p){for(var x=[],F=0,N=0;F<p.length;){var h=p[F++];if(h<128)x[N++]=String.fromCharCode(h);else if(h>191&&h<224){var c=p[F++];x[N++]=String.fromCharCode((h&31)<<6|c&63)}else if(h>239&&h<365){c=p[F++];var M=p[F++],f=p[F++];h=((h&7)<<18|(c&63)<<12|(M&63)<<6|f&63)-65536;x[N++]=String.fromCharCode(55296+(h>>10));x[N++]=String.fromCharCode(56320+(h&1023))}else c=p[F++],M=p[F++],x[N++]=String.fromCharCode((h&15)<<12|(c&63)<<6|M&63)}return x.join("")};var F4B,NNM,hNp,llk,cUB,ald,MNm;_.hH=String.prototype.trim?function(p){return p.trim()}:function(p){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(p)[1]};
F4B=/&/g;NNM=/</g;hNp=/>/g;llk=/"/g;cUB=/'/g;ald=/\x00/g;MNm=/[\x00&<>"']/;var lq=!!(eZ[0]&4096),DT$=!!(eZ[0]&8192),fl6=!!(eZ[0]&2),K4z=!!(eZ[0]&4),qjw=!!(eZ[0]&16),Zjw=!!(eZ[0]>>14&1);var EM=lq?DT$:$V(610401301),tN6=lq?fl6:$V(513659523),dTd=lq?K4z:$V(568333945),Zdk=lq?qjw:$V(1331761403),vX6=lq?Zjw:$V(1981196515);var Xw,JUE=_.Mm.navigator;Xw=JUE?JUE.userAgentData||null:null;var Wu;_.mH=function(p,x){return Array.prototype.indexOf.call(p,x,void 0)};
_.w1=function(p,x,F){Array.prototype.forEach.call(p,x,F)};
_.cW=function(p,x,F){return Array.prototype.filter.call(p,x,F)};
_.zy=function(p,x,F){return Array.prototype.map.call(p,x,F)};
Wu=function(p,x,F){return Array.prototype.some.call(p,x,F)};
_.F$d=function(p,x,F){return Array.prototype.every.call(p,x,F)};var aE=function(p){aE[" "](p);return p},k4$;
aE[" "]=function(){};
k4$=function(p,x){try{return aE(p[x]),!0}catch(F){}return!1};
_.UEM=function(p,x,F,N){N=N?N(x):x;return Object.prototype.hasOwnProperty.call(p,N)?p[N]:p[N]=F(x)};var Cj$,Sjp,rUd,X0p,gXp,j$d,QoE,zNB,soB,JgM,yUB,bjk,Ge$;_.kAk=function(){return _.Mm.navigator||null};
Cj$=czd();_.ML=aZd();_.H8=Q6("Edge");Sjp=_.H8||_.ML;_.Dr=Q6("Gecko")&&!(_.Sp(_.rk(),"WebKit")&&!Q6("Edge"))&&!(Q6("Trident")||Q6("MSIE"))&&!Q6("Edge");_.fT=_.Sp(_.rk(),"WebKit")&&!Q6("Edge");rUd=_.fT&&Q6("Mobile");_.EXw=_.v$w();X0p=_.JzJ();gXp=(Az()?Xw.platform==="Linux":Q6("Linux"))||_.Cd6();j$d=_.tpB();QoE=dmw();zNB=Q6("iPad");soB=Q6("iPod");_.nXJ=_.wk();JgM=_.Sp(_.rk(),"KaiOS");yUB=function(){var p=_.Mm.document;return p?p.documentMode:void 0};
a:{var AU$="",ukw=function(){var p=_.rk();if(_.Dr)return/rv:([^\);]+)(\)|;)/.exec(p);if(_.H8)return/Edge\/([\d\.]+)/.exec(p);if(_.ML)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(p);if(_.fT)return/WebKit\/(\S+)/.exec(p);if(Cj$)return/(?:Version)[ \/]?(\S+)/.exec(p)}();
ukw&&(AU$=ukw?ukw[1]:"");if(_.ML){var Yjr=yUB();if(Yjr!=null&&Yjr>parseFloat(AU$)){bjk=String(Yjr);break a}}bjk=AU$}_.w0B=bjk;if(_.Mm.document&&_.ML){var VNr=yUB();Ge$=VNr?VNr:parseInt(_.w0B,10)||void 0}else Ge$=void 0;_.W4p=Ge$;var qJ$,Z16,Hjz;_.KT=y6();qJ$=dmw()||Q6("iPod");Z16=Q6("iPad");Hjz=_.fZB();_.qL=_.bd();_.zI=_.DmJ()&&!_.wk();var mTJ,Zr,oXw,sRp,Ojz,iXH,L4r,joz;mTJ={};Zr=null;oXw=_.Dr||_.fT;sRp=oXw||typeof _.Mm.btoa=="function";Ojz=oXw||!_.zI&&typeof _.Mm.atob=="function";_.Xc=function(p,x){x===void 0&&(x=0);joz();x=mTJ[x];for(var F=Array(Math.floor(p.length/3)),N=x[64]||"",h=0,c=0;h<p.length-2;h+=3){var M=p[h],f=p[h+1],K=p[h+2],t=x[M>>2];M=x[(M&3)<<4|f>>4];f=x[(f&15)<<2|K>>6];K=x[K&63];F[c++]=t+M+f+K}t=0;K=N;switch(p.length-h){case 2:t=p[h+1],K=x[(t&15)<<2]||N;case 1:p=p[h],F[c]=x[p>>2]+x[(p&3)<<4|t>>4]+K+N}return F.join("")};
iXH=function(p){if(Ojz)return _.Mm.atob(p);var x="";L4r(p,function(F){x+=String.fromCharCode(F)});
return x};
_.CDk=function(p){var x=[];L4r(p,function(F){x.push(F)});
return x};
_.Fj=function(p){var x=p.length,F=x*3/4;F%3?F=Math.floor(F):_.vr("=.",p[x-1])&&(F=_.vr("=.",p[x-2])?F-2:F-1);var N=new Uint8Array(F),h=0;L4r(p,function(c){N[h++]=c});
return h!==F?N.subarray(0,h):N};
L4r=function(p,x){function F(K){for(;N<p.length;){var t=p.charAt(N++),d=Zr[t];if(d!=null)return d;if(!_.tz(t))throw Error("E`"+t);}return K}
joz();for(var N=0;;){var h=F(-1),c=F(0),M=F(64),f=F(64);if(f===64&&h===-1)break;x(h<<2|c>>4);M!=64&&(x(c<<4&240|M>>2),f!=64&&x(M<<6&192|f))}};
joz=function(){if(!Zr){Zr={};for(var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),x=["+/=","+/","-_=","-_.","-_"],F=0;F<5;F++){var N=p.concat(x[F].split(""));mTJ[F]=N;for(var h=0;h<N.length;h++){var c=N[h];Zr[c]===void 0&&(Zr[c]=h)}}}};var TkM=typeof Uint8Array!=="undefined",YMd=!_.ML&&typeof btoa==="function",wrH=/[-_.]/g,AzH={"-":"+",_:"/",".":"="},QJ={};var gl,TNJ;gl=function(p,x){if(x!==QJ)throw Error("G");this.JSC$6671_value_=p;if(p!=null&&p.length===0)throw Error("F");};
_.zm=function(){return Pjp||(Pjp=new gl(null,QJ))};
TNJ=function(p){return new Uint8Array(z8$(p)||0)};
gl.prototype.isEmpty=function(){return this.JSC$6671_value_==null};
gl.prototype.sizeBytes=function(){var p=z8$(this);return p?p.length:0};
var z8$=function(p){if(QJ!==QJ)throw Error("G");var x=p.JSC$6671_value_;x=x==null||TkM&&x!=null&&x instanceof Uint8Array?x:typeof x==="string"?GBB(x):null;return x==null?x:p.JSC$6671_value_=x},Pjp;var WHH=void 0;var MI=typeof Symbol==="function"&&typeof Symbol()==="symbol",BNB=lB("jas",void 0,!0),Yvp=lB(void 0,"0di"),jH=lB(void 0,"1oa"),rD=lB(void 0,Symbol()),BlZ=lB(void 0,"0ub"),a8$=lB(void 0,"0actk"),Je=lB("m_m","messagePrototypeMarker",!0),xHE=lB(void 0,"vps");var o$p,mmp,wD,RNB;o$p={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};mmp=Object.defineProperties;_.DK=MI?BNB:"internalArrayState";RNB=[];KZ(RNB,7);wD=Object.freeze(RNB);var C8={},Pdr={},ked=function(p,x,F){this.iterable=p;this.mapper=x;this.thisArg=F};
ked.prototype.next=function(){var p=this.iterable.next();p.done||(p.value=this.mapper.call(this.thisArg,p.value));return p};
ked.prototype[Symbol.iterator]=function(){return this};
var UTM=Object.freeze({}),bB={};_.ijJ=Gm(function(p){return p!==null&&p!==void 0});var IZB=Gm(function(p){return typeof p==="number"}),ipk=Gm(function(p){return typeof p==="string"}),eEm=Gm(function(p){return typeof p==="boolean"}),Il6=Gm(function(p){return p!=null&&typeof p==="object"&&typeof p.then==="function"}),X8$=Gm(function(p){return typeof p==="function"}),snJ=Gm(function(p){return!!p&&(typeof p==="object"||typeof p==="function")});var $mZ=typeof _.Mm.BigInt==="function"&&typeof _.Mm.BigInt(0)==="bigint";var pMd,$TB,x6M,eNp;_.Ek=Gm(function(p){return $mZ?p>=$TB&&p<=eNp:p[0]==="-"?pbE(p,pMd):pbE(p,x6M)});
pMd=Number.MIN_SAFE_INTEGER.toString();$TB=$mZ?BigInt(Number.MIN_SAFE_INTEGER):void 0;x6M=Number.MAX_SAFE_INTEGER.toString();eNp=$mZ?BigInt(Number.MAX_SAFE_INTEGER):void 0;var FS$=typeof Uint8Array.prototype.slice==="function",Wb=0,Hb=0,anm;var NH,MH,kB,f8,qvJ;NH=typeof BigInt==="function"?BigInt.asIntN:void 0;_.K8=typeof BigInt==="function"?BigInt.asUintN:void 0;MH=Number.isSafeInteger;kB=Number.isFinite;f8=Math.trunc;qvJ=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var FmH={};var jkw={},Np6=function(){try{var p=function(){return sHw(Map,[],this.constructor)};
_.E(p,Map);aE(new p);return!1}catch(x){return!0}}(),tH=function(){this.JSC$6699_map_=new Map};
_.l=tH.prototype;_.l.get=function(p){return this.JSC$6699_map_.get(p)};
_.l.set=function(p,x){this.JSC$6699_map_.set(p,x);this.size=this.JSC$6699_map_.size;return this};
_.l.delete=function(p){p=this.JSC$6699_map_.delete(p);this.size=this.JSC$6699_map_.size;return p};
_.l.clear=function(){this.JSC$6699_map_.clear();this.size=this.JSC$6699_map_.size};
_.l.has=function(p){return this.JSC$6699_map_.has(p)};
_.l.entries=function(){return this.JSC$6699_map_.entries()};
_.l.keys=function(){return this.JSC$6699_map_.keys()};
_.l.values=function(){return this.JSC$6699_map_.values()};
_.l.forEach=function(p,x){return this.JSC$6699_map_.forEach(p,x)};
tH.prototype[Symbol.iterator]=function(){return this.entries()};
var gD=function(){if(Np6)return Object.setPrototypeOf(tH.prototype,Map.prototype),Object.defineProperties(tH.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),tH;var p=function(){return sHw(Map,[],this.constructor)};
_.E(p,Map);return p}(),SH=function(p,x,F,N){F=F===void 0?WnM:F;
N=N===void 0?WnM:N;var h=gD.call(this)||this;h.arrayState=p[_.DK]|0;h.valueCtor=x;h.keyToApi=F;h.valueToApi=h.valueCtor?mIB:N;for(var c=0;c<p.length;c++){var M=p[c],f=F(M[0],!1,!0),K=M[1];x?K===void 0&&(K=null):K=N(M[1],!1,!0,void 0,void 0,h.arrayState);gD.prototype.set.call(h,f,K)}return h};
_.E(SH,gD);var hBH=function(p){if(p.arrayState&2)throw Error("K");};
_.l=SH.prototype;_.l.clear=function(){hBH(this);gD.prototype.clear.call(this)};
_.l.delete=function(p){hBH(this);return gD.prototype.delete.call(this,this.keyToApi(p,!0,!1))};
_.l.entries=function(){if(this.valueCtor){var p=gD.prototype.keys.call(this);p=new ked(p,oBk,this)}else p=gD.prototype.entries.call(this);return p};
_.l.values=function(){if(this.valueCtor){var p=gD.prototype.keys.call(this);p=new ked(p,SH.prototype.get,this)}else p=gD.prototype.values.call(this);return p};
_.l.forEach=function(p,x){this.valueCtor?gD.prototype.forEach.call(this,function(F,N,h){p.call(x,h.get(N),N,h)}):gD.prototype.forEach.call(this,p,x)};
_.l.set=function(p,x){hBH(this);p=this.keyToApi(p,!0,!1);return p==null?this:x==null?(gD.prototype.delete.call(this,p),this):gD.prototype.set.call(this,p,this.valueToApi(x,!0,!0,this.valueCtor,!1,this.arrayState))};
_.l.has=function(p){return gD.prototype.has.call(this,this.keyToApi(p,!1,!1))};
_.l.get=function(p){p=this.keyToApi(p,!1,!1);var x=gD.prototype.get.call(this,p);if(x!==void 0){var F=this.valueCtor;return F?(F=this.valueToApi(x,!1,!0,F,this.callToMutableOnAccess,this.arrayState),F!==x&&gD.prototype.set.call(this,p,F),F):x}};
SH.prototype[Symbol.iterator]=function(){return this.entries()};
SH.prototype.toJSON=void 0;var OZ6;var UIr=function(){},i8p=function(p,x){for(var F in p)!isNaN(F)&&x(p,+F,p[F])},iZd=function(p){var x=new UIr;
i8p(p,function(F,N,h){x[N]=LZ(h)});
x.reviveUnknownFields=p.reviveUnknownFields;return x};var km6;var NDH,h8E;var lsp,HH,ac,qf,cOM,XV,fo,asr,Mbp,bq,D6d,AH,wa,G5;lsp=_.VJ(0);_.da=function(p,x,F){return HH(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x,F)};
HH=function(p,x,F,N){if(x===-1)return null;var h=x+(F?0:-1),c=p.length-1;if(!(c<1+(F?0:-1))){if(h>=c){var M=p[c];if(M!=null&&typeof M==="object"&&M.constructor===Object){F=M[x];var f=!0}else if(h===c)F=M;else return}else F=p[h];if(N&&F!=null){N=N(F);if(N==null)return N;if(!Object.is(N,F))return f?M[x]=N:p[h]=N,N}return F}};
_.k3=function(p,x,F,N){um(p);var h=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Y_(h,h[_.DK]|0,x,F,N);return p};
_.vW=function(p,x,F){p=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return reH(p,p[_.DK]|0,x,F)!==void 0};
_.JH=function(p,x,F,N){var h=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return reH(h,h[_.DK]|0,x,qf(p,N,F))!==void 0};
_.CT=function(p,x){return HH(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x,void 0,MD6)};
_.ik=function(p){return p===UTM?2:4};
_.SG=function(p,x){p=HH(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,x,void 0,tHw);return p==null?_.zm():p};
ac=function(p,x,F,N){um(p);var h=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=h[_.DK]|0;if(N==null){var M=JeZ(h);if(Cmm(M,h,c,F)===x)M.set(F,0);else return p}else c=Skp(h,c,F,x);Y_(h,c,x,N);return p};
_.ra=function(p,x,F,N){var h=p[_.DK]|0,c=YB(h);h=Skp(p,h,F,x,c);Y_(p,h,x,N,c)};
qf=function(p,x,F){return _.E6(p,x)===F?F:-1};
_.E6=function(p,x,F){p=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Cmm(JeZ(p),p,void 0,x,F)};
cOM=function(p,x,F){var N=p[_.DK]|0,h=YB(N),c=HH(p,F,h);if(c!=null&&c[Je]===C8)return x=HZw(c),x!==c&&Y_(p,N,F,x,h),Ae(x),x.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(c)){var M=c[_.DK]|0;if(M&2){var f=ya(bm(c,M),x,!0);tC(f,2)}else M&2048?f=c:f=ya(c,x,!0)}else f=ya(void 0,x,!0);f!==c&&Y_(p,N,F,f,h);return f};
_.B8=function(p,x,F,N){var h=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=h[_.DK]|0;x=reH(h,c,x,F,N);if(x==null)return x;c=h[_.DK]|0;if(!Ev(p,c)){var M=HZw(x);M!==x&&(Ae(p)&&(h=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=h[_.DK]|0),x=M,Y_(h,c,F,x,N))}return x};
_.UT=function(p,x,F,N){var h=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return E_p(p,h,h[_.DK]|0,x,F,N,!1,!0)};
_.f6=function(p,x,F,N){F=XHM(F);_.k3(p,x,F,N);return p};
_.K6=function(p,x,F,N){N=XHM(N);ac(p,x,F,N);return p};
XV=function(p,x,F){um(p);var N=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=N[_.DK]|0;if(F==null)return Y_(N,h,x),p;for(var c=F===wD?7:F[_.DK]|0,M=c,f=WH(c),K=f||Object.isFrozen(F),t=!0,d=!0,v=0;v<F.length;v++){var C=F[v];f||(C=Ev(C),t&&(t=!C),d&&(d=C))}f||(c=t?13:5,c=d?c&-8193:c|8192);K&&c===M||(F=LZ(F),M=0,c=GX(c,h));c!==M&&KZ(F,c);Y_(N,h,x,F);return p};
fo=function(p,x,F,N){QtB(p,x,F,N);return p};
asr=function(p,x,F){QtB(p,x,Q8,void 0,F,1,!0);return p};
_.z5=function(p,x){p=_.da(p,x);p!=null&&(typeof p==="bigint"?(0,_.Ek)(p)?p=Number(p):(p=NH(64,p),p=(0,_.Ek)(p)?Number(p):String(p)):p=_.iB(p)?typeof p==="number"?cH(p):Fc(p):void 0);return p};
_.s6=function(p,x){return Knp(_.da(p,x))};
_.nT=function(p,x){return _.x_(_.da(p,x))};
_.fH=function(p,x,F){return _.dD(_.da(p,x,F))};
_.y8=function(p,x){var F=F===void 0?!1:F;var N;return(N=_.s6(p,x))!=null?N:F};
_.$H=function(p,x,F){F=F===void 0?0:F;var N;return(N=_.nT(p,x))!=null?N:F};
Mbp=function(p,x){var F=F===void 0?0:F;var N;return(N=_.tDE(_.da(p,x)))!=null?N:F};
bq=function(p,x,F){F=F===void 0?lsp:F;p=_.da(p,x);x=typeof p;p=p==null?p:x==="bigint"?_.VJ(NH(64,p)):_.iB(p)?x==="string"?vB$(p):JCw(p):void 0;return p!=null?p:F};
D6d=function(p){var x=x===void 0?lsp:x;p=_.da(p,23);var F=typeof p;p=p==null?p:F==="bigint"?_.VJ((0,_.K8)(64,p)):_.iB(p)?F==="string"?_.yCw(p):_.skM(p):void 0;return p!=null?p:x};
AH=function(p,x){var F=F===void 0?0:F;var N;return(N=_.CT(p,x))!=null?N:F};
_.uq=function(p,x,F,N){F=F===void 0?"":F;var h;return(h=_.fH(p,x,N))!=null?h:F};
_.Yg=function(p,x){var F=F===void 0?0:F;var N;return(N=_.eD(_.da(p,x)))!=null?N:F};
wa=function(p,x){var F=F===void 0?"0":F;var N;return(N=bZM(_.da(p,x),!0))!=null?N:F};
G5=function(p,x,F){return _.uq(p,qf(p,F,x))};
_.V8=function(p,x,F,N){return _.B8(p,x,qf(p,N,F),void 0)};
_.Nc=function(p,x,F){return _.k3(p,x,fKm(F))};
_.zZ=function(p,x,F){return _.Ok(p,x,fKm(F),!1)};
_.WW=function(p,x,F){return _.k3(p,x,_.p8(F))};
_.tT=function(p,x,F){return _.k3(p,x,at(F))};
_.J_=function(p,x,F){return _.k3(p,x,te(F))};
_.II=function(p,x,F,N){return _.Ok(p,x,te(F),"",N)};
_.Rx=function(p,x,F){return _.k3(p,x,F==null?F:_.$B(F))};
_.HW=function(p,x,F){return _.Ok(p,x,F==null?F:_.$B(F),0)};var L8=function(p,x,F){this.buffer=p;if(F&&!x)throw Error();this.JSC$6711_isImmutable=x};var fsM=function(p,x,F,N){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6714_start_=0;this.init(p,x,F,N)},mR,qFm,ZkB,d6k,R8J;
_.l=fsM.prototype;_.l.init=function(p,x,F,N){var h=N===void 0?{}:N;N=h.aliasBytesFields===void 0?!1:h.aliasBytesFields;h=h.treatNewDataAsImmutable===void 0?!1:h.treatNewDataAsImmutable;this.aliasBytesFields=N;this.treatNewDataAsImmutable=h;p&&(p=std(p,this.treatNewDataAsImmutable),this.bytes_=p.buffer,this.bytesAreImmutable_=p.JSC$6711_isImmutable,this.JSC$6714_start_=x||0,this.end_=F!==void 0?this.JSC$6714_start_+F:this.bytes_.length,this.cursor_=this.JSC$6714_start_)};
_.l.free=function(){this.clear();KSZ.length<100&&KSZ.push(this)};
_.l.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6714_start_=0;this.aliasBytesFields=!1};
_.l.reset=function(){this.cursor_=this.JSC$6714_start_};
_.l.atEnd=function(){return this.cursor_==this.end_};
_.oE=function(p,x){var F=0,N=0,h=0,c=p.bytes_,M=p.cursor_;do{var f=c[M++];F|=(f&127)<<h;h+=7}while(h<32&&f&128);h>32&&(N|=(f&127)>>4);for(h=3;h<32&&f&128;h+=7)f=c[M++],N|=(f&127)<<h;mR(p,M);if(f<128)return x(F>>>0,N>>>0);throw Error("X");};
mR=function(p,x){p.cursor_=x;if(x>p.end_)throw Error("Y`"+x+"`"+p.end_);};
_.O6=function(p){var x=p.bytes_,F=p.cursor_,N=x[F++],h=N&127;if(N&128&&(N=x[F++],h|=(N&127)<<7,N&128&&(N=x[F++],h|=(N&127)<<14,N&128&&(N=x[F++],h|=(N&127)<<21,N&128&&(N=x[F++],h|=N<<28,N&128&&x[F++]&128&&x[F++]&128&&x[F++]&128&&x[F++]&128&&x[F++]&128)))))throw Error("X");mR(p,F);return h};
_.jG=function(p){var x=p.bytes_,F=p.cursor_,N=x[F],h=x[F+1],c=x[F+2];x=x[F+3];mR(p,p.cursor_+4);return(N<<0|h<<8|c<<16|x<<24)>>>0};
qFm=function(p){var x=_.jG(p);p=_.jG(p);return Nlw(x,p)};
ZkB=function(p){var x=_.jG(p),F=_.jG(p);p=(F>>31)*2+1;var N=F>>>20&2047;x=4294967296*(F&1048575)+x;return N==2047?x?NaN:p*Infinity:N==0?p*4.9E-324*x:p*Math.pow(2,N-1075)*(x+4503599627370496)};
_.tbr=function(p){for(var x=0,F=p.cursor_,N=F+10,h=p.bytes_;F<N;){var c=h[F++];x|=c;if((c&128)===0)return mR(p,F),!!(x&127)}throw Error("X");};
d6k=function(p,x){if(x<0)throw Error("Z`"+x);var F=p.cursor_,N=F+x;if(N>p.end_)throw Error("Y`"+(p.end_-F)+"`"+x);p.cursor_=N;return F};
R8J=function(p,x){if(x==0)return _.zm();var F=d6k(p,x);p.aliasBytesFields&&p.bytesAreImmutable_?F=p.bytes_.subarray(F,F+x):(p=p.bytes_,x=F+x,F=F===x?new Uint8Array(0):FS$?p.slice(F,x):new Uint8Array(p.subarray(F,x)));return F.length==0?_.zm():new gl(F,QJ)};
fsM.prototype.getDataView=function(){var p=this.dataView_;p||(p=this.bytes_,p=this.dataView_=new DataView(p.buffer,p.byteOffset,p.byteLength));return p};
var KSZ=[];var JOM=function(p,x,F,N){if(KSZ.length){var h=KSZ.pop();h.init(p,x,F,N);p=h}else p=new fsM(p,x,F,N);this.decoder_=p;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;vDZ(this,N)},vDZ=function(p,x){x=x===void 0?{}:x;
p.discardUnknownFields=x.discardUnknownFields===void 0?!1:x.discardUnknownFields},I86=function(p,x,F,N){if(CFr.length){var h=CFr.pop();
vDZ(h,N);h.decoder_.init(p,x,F,N);return h}return new JOM(p,x,F,N)},Pmp,BD6,SFZ,CFr;
JOM.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;CFr.length<100&&CFr.push(this)};
JOM.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
Pmp=function(p){if(p.decoder_.atEnd())return!1;p.fieldCursor_=p.decoder_.cursor_;var x=_.O6(p.decoder_)>>>0,F=x>>>3;x&=7;if(!(x>=0&&x<=5))throw Error("T`"+x+"`"+p.fieldCursor_);if(F<1)throw Error("U`"+F+"`"+p.fieldCursor_);p.nextField_=F;p.nextWireType_=x;return!0};
BD6=function(p){switch(p.nextWireType_){case 0:p.nextWireType_!=0?BD6(p):_.tbr(p.decoder_);break;case 1:p=p.decoder_;mR(p,p.cursor_+8);break;case 2:if(p.nextWireType_!=2)BD6(p);else{var x=_.O6(p.decoder_)>>>0;p=p.decoder_;mR(p,p.cursor_+x)}break;case 5:p=p.decoder_;mR(p,p.cursor_+4);break;case 3:x=p.nextField_;do{if(!Pmp(p))throw Error("V");if(p.nextWireType_==4){if(p.nextField_!=x)throw Error("W");break}BD6(p)}while(1);break;default:throw Error("T`"+p.nextWireType_+"`"+p.fieldCursor_);}};
SFZ=function(p,x,F){var N=p.decoder_.end_,h=_.O6(p.decoder_)>>>0,c=p.decoder_.cursor_+h,M=c-N;M<=0&&(p.decoder_.end_=c,F(x,p,void 0,void 0,void 0),M=c-p.decoder_.cursor_);if(M)throw Error("S`"+h+"`"+(h-M));p.decoder_.cursor_=c;p.decoder_.end_=N};
_.rOw=function(p){var x=_.O6(p.decoder_)>>>0;p=p.decoder_;var F=d6k(p,x);p=p.bytes_;if(p0B){var N=p,h;(h=e7B)||(h=e7B=new TextDecoder("utf-8",{fatal:!0}));x=F+x;N=F===0&&x===N.length?N:N.subarray(F,x);try{var c=h.decode(N)}catch(t){if($vZ===void 0){try{h.decode(new Uint8Array([128]))}catch(d){}try{h.decode(new Uint8Array([97])),$vZ=!0}catch(d){$vZ=!1}}!$vZ&&(e7B=void 0);throw t;}}else{c=F;x=c+x;F=[];for(var M=null,f,K;c<x;)f=p[c++],f<128?F.push(f):f<224?c>=x?cr():(K=p[c++],f<194||hz(K)?(c--,cr()):
F.push((f&31)<<6|K&63)):f<240?c>=x-1?cr():(K=p[c++],hz(K)||f===224&&K<160||f===237&&K>=160||hz(h=p[c++])?(c--,cr()):F.push((f&15)<<12|(K&63)<<6|h&63)):f<=244?c>=x-2?cr():(K=p[c++],hz(K)||(f<<28)+(K-144)>>30!==0||hz(h=p[c++])||hz(N=p[c++])?(c--,cr()):(f=(f&7)<<18|(K&63)<<12|(h&63)<<6|N&63,f-=65536,F.push((f>>10&1023)+55296,(f&1023)+56320))):cr(),F.length>=8192&&(M=prp(M,F),F.length=0);c=prp(M,F)}return c};
_.ED6=function(p){var x=_.O6(p.decoder_)>>>0;return R8J(p.decoder_,x)};
_.XMz=function(p,x,F){var N=_.O6(p.decoder_)>>>0;for(N=p.decoder_.cursor_+N;p.decoder_.cursor_<N;)F.push(x(p.decoder_))};
CFr=[];_.Uk=function(p,x,F){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p,x,F)};
_.Uk.prototype.toJSON=function(){return Qa(this)};
_.Uk.prototype.serialize=function(p){return JSON.stringify(Qa(this,p))};
var z5$=function(p,x){if(x==null||x=="")return new p;x=JSON.parse(x);if(!Array.isArray(x))throw Error("$");return new p(LHk(x))};
_.Uk.prototype.getExtension=function(p){R6d(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p.fieldIndex);return p.ctor?p.isRepeated?p.getExtensionFn(this,p.ctor,p.fieldIndex,_.ik(),p.JSC$6724_hasMessageId):p.getExtensionFn(this,p.ctor,p.fieldIndex,p.JSC$6724_hasMessageId):p.isRepeated?p.getExtensionFn(this,p.fieldIndex,_.ik(),p.JSC$6724_hasMessageId):p.getExtensionFn(this,p.fieldIndex,p.defaultValue,p.JSC$6724_hasMessageId)};
_.Uk.prototype.clone=function(){var p=this,x=p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;p=new p.constructor(bm(x,x[_.DK]|0));tC(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,2);return p};
_.Uk.prototype[Je]=C8;_.Uk.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var gDd=function(p,x){this.JSC$6726_lo=p>>>0;this.JSC$6726_hi=x>>>0},zBp=function(p){if(!p)return QQz||(QQz=new gDd(0,0));
if(!/^\d+$/.test(p))return null;aKp(p);return new gDd(Wb,Hb)},QQz,KAm=function(p,x){this.JSC$6728_lo=p>>>0;
this.JSC$6728_hi=x>>>0},DMk=function(p){if(!p)return sQE||(sQE=new KAm(0,0));
if(!/^-?\d+$/.test(p))return null;aKp(p);return new KAm(Wb,Hb)},sQE;var nD6=function(){this.JSC$6730_buffer_=[]},fn6,yOr;
nD6.prototype.length=function(){return this.JSC$6730_buffer_.length};
nD6.prototype.end=function(){var p=this.JSC$6730_buffer_;this.JSC$6730_buffer_=[];return p};
fn6=function(p,x,F){for(;F>0||x>127;)p.JSC$6730_buffer_.push(x&127|128),x=(x>>>7|F<<25)>>>0,F>>>=7;p.JSC$6730_buffer_.push(x)};
yOr=function(p,x){for(;x>127;)p.JSC$6730_buffer_.push(x&127|128),x>>>=7;p.JSC$6730_buffer_.push(x)};
_.qUd=function(p,x){if(x>=0)yOr(p,x);else{for(var F=0;F<9;F++)p.JSC$6730_buffer_.push(x&127|128),x>>=7;p.JSC$6730_buffer_.push(1)}};
_.p6=function(p,x){p.JSC$6730_buffer_.push(x>>>0&255);p.JSC$6730_buffer_.push(x>>>8&255);p.JSC$6730_buffer_.push(x>>>16&255);p.JSC$6730_buffer_.push(x>>>24&255)};var bkz,im,tPp,JoZ;bkz=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new nD6};
im=function(p,x){x.length!==0&&(p.blocks_.push(x),p.totalLength_+=x.length)};
_.Aep=function(p,x){_.eH(p,x,2);x=p.encoder_.end();im(p,x);x.push(p.totalLength_);return x};
_.ucJ=function(p,x){var F=x.pop();for(F=p.totalLength_+p.encoder_.length()-F;F>127;)x.push(F&127|128),F>>>=7,p.totalLength_++;x.push(F);p.totalLength_++};
_.eH=function(p,x,F){yOr(p.encoder_,x*8+F)};
tPp=function(p,x,F){if(F!=null){switch(typeof F){case "string":zBp(F)}_.eH(p,x,1);switch(typeof F){case "number":p=p.encoder_;xIr(F);_.p6(p,Wb);_.p6(p,Hb);break;case "bigint":F=BigInt.asUintN(64,F);F=new gDd(Number(F&BigInt(4294967295)),Number(F>>BigInt(32)));p=p.encoder_;x=F.JSC$6726_hi;_.p6(p,F.JSC$6726_lo);_.p6(p,x);break;default:F=zBp(F),p=p.encoder_,x=F.JSC$6726_hi,_.p6(p,F.JSC$6726_lo),_.p6(p,x)}}};
JoZ=function(p,x,F){_.eH(p,x,2);yOr(p.encoder_,F.length);im(p,p.encoder_.end());im(p,F)};var n_6,YFp,GE$;n_6=_.TX();_.AOE=_.TX();_.udr=_.TX();YFp=_.TX();_.LT=_.TX();_.wMH=_.TX();GE$=_.TX();_.Vbw=_.TX();_.WSJ=_.TX();var BH=function(p,x,F){this.$$binaryReaderFn=p;this.$$binaryWriterFn=x;p=PBH(n_6);this.$$isMsg=!!p&&F===p||!1},VHd=yez(function(p,x,F,N,h){if(p.nextWireType_!==2)return!1;
SFZ(p,cOM(x,N,F),h);return!0},YkH),WmH=yez(function(p,x,F,N,h){if(p.nextWireType_!==2)return!1;
SFZ(p,cOM(x,N,F),h);return!0},YkH),e8M=Symbol(),o_w=Symbol(),LmE=Symbol(),FAM=Symbol(),kXr=Symbol(),wHJ,GXp;var Xzw,HkJ,m6M,oDB,Okp,jQB,LSZ,PFw,TpB,Bpp,RBB,U6J,ikr,$6w,eBp;Xzw=function(p,x){var F=new bkz;Ne$(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F,Rt(e8M,$Hp,pzw,x));im(F,F.encoder_.end());p=new Uint8Array(F.totalLength_);x=F.blocks_;for(var N=x.length,h=0,c=0;c<N;c++){var M=x[c];p.set(M,h);h+=M.length}F.blocks_=[p];return p};
HkJ=_.It(function(p,x,F){if(p.nextWireType_!==1)return!1;_.$_(x,F,ZkB(p.decoder_));return!0},MPM,GE$);
m6M=_.It(function(p,x,F,N){if(p.nextWireType_!==1)return!1;_.ra(x,F,N,ZkB(p.decoder_));return!0},MPM,GE$);
oDB=_.It(function(p,x,F,N){if(p.nextWireType_!==5)return!1;var h=_.jG(p.decoder_);p=(h>>31)*2+1;var c=h>>>23&255;h&=8388607;_.ra(x,F,N,c==255?h?NaN:p*Infinity:c==0?p*1.401298464324817E-45*h:p*Math.pow(2,c-150)*(h+8388608));return!0},function(p,x,F){x=MD6(x);
x!=null&&(_.eH(p,F,5),p=p.encoder_,F=anm||(anm=new DataView(new ArrayBuffer(8))),F.setFloat32(0,+x,!0),Hb=0,Wb=F.getUint32(0,!0),_.p6(p,Wb))},_.TX());
_.PW=_.It(function(p,x,F){if(p.nextWireType_!==0)return!1;_.$_(x,F,_.oE(p.decoder_,h6d));return!0},_.xE,_.LT);
Okp=_.It(function(p,x,F){if(p.nextWireType_!==0)return!1;p=_.oE(p.decoder_,h6d);_.$_(x,F,p===0?void 0:p);return!0},_.xE,_.LT);
jQB=_.It(function(p,x,F,N){if(p.nextWireType_!==0)return!1;_.ra(x,F,N,_.oE(p.decoder_,h6d));return!0},_.xE,_.LT);
_.T5=_.It(function(p,x,F){if(p.nextWireType_!==0)return!1;_.$_(x,F,_.O6(p.decoder_));return!0},Z66,YFp);
LSZ=_.It(function(p,x,F){if(p.nextWireType_!==0)return!1;p=_.O6(p.decoder_);_.$_(x,F,p===0?void 0:p);return!0},Z66,YFp);
PFw=_.It(function(p,x,F,N){if(p.nextWireType_!==0)return!1;_.ra(x,F,N,_.O6(p.decoder_));return!0},Z66,YFp);
TpB=_.It(function(p,x,F){if(p.nextWireType_!==1)return!1;_.$_(x,F,qFm(p.decoder_));return!0},_.dMp,_.wMH);
Bpp=_.cor(function(p,x,F){if(p.nextWireType_!==1&&p.nextWireType_!==2)return!1;x=_.v_Z(x,x[_.DK]|0,F);p.nextWireType_==2?_.XMz(p,qFm,x):x.push(qFm(p.decoder_));return!0},function(p,x,F){x=_.lnp(ujd,x,!1);
if(x!=null)for(var N=0;N<x.length;N++)tPp(p,F,x[N])},_.wMH);
_.BW=_.It(function(p,x,F){if(p.nextWireType_!==0)return!1;_.$_(x,F,_.tbr(p.decoder_));return!0},_.vEw,_.AOE);
RBB=_.It(function(p,x,F,N){if(p.nextWireType_!==0)return!1;_.ra(x,F,N,_.tbr(p.decoder_));return!0},_.vEw,_.AOE);
_.RE=_.It(function(p,x,F){if(p.nextWireType_!==2)return!1;_.$_(x,F,_.rOw(p));return!0},_.Cgp,_.udr);
_.kEz=_.It(function(p,x,F,N){if(p.nextWireType_!==2)return!1;_.ra(x,F,N,_.rOw(p));return!0},_.Cgp,_.udr);
U6J=_.cor(function(p,x,F){if(p.nextWireType_!==2)return!1;p=_.rOw(p);_.v_Z(x,x[_.DK]|0,F).push(p);return!0},function(p,x,F){x=_.lnp(_.dD,x,!0);
if(x!=null)for(var N=0;N<x.length;N++){var h=p,c=F,M=x[N];M!=null&&JoZ(h,c,hEH(M))}},_.udr);
ikr=void 0;ikr=ikr===void 0?n_6:ikr;_.kg=new BH(function(p,x,F,N,h){if(p.nextWireType_!==2)return!1;N=ya(void 0,N,!0);_.v_Z(x,x[_.DK]|0,F).push(N);SFZ(p,N,h);return!0},function(p,x,F,N,h){if(Array.isArray(x))for(var c=0;c<x.length;c++)SUJ(p,x[c],F,N,h)},ikr);
_.U6=yez(function(p,x,F,N,h,c){if(p.nextWireType_!==2)return!1;var M=x[_.DK]|0;Skp(x,M,c,F,YB(M));x=cOM(x,N,F);SFZ(p,x,h);return!0},SUJ);
_.Isk=_.It(function(p,x,F){if(p.nextWireType_!==2)return!1;_.$_(x,F,_.ED6(p));return!0},_.rok,_.Vbw);
$6w=_.It(function(p,x,F,N){if(p.nextWireType_!==2)return!1;_.ra(x,F,N,_.ED6(p));return!0},_.rok,_.Vbw);
eBp=_.It(function(p,x,F,N){if(p.nextWireType_!==0)return!1;_.ra(x,F,N,_.O6(p.decoder_)>>>0);return!0},function(p,x,F){x=_.tDE(x);
x!=null&&x!=null&&(_.eH(p,F,0),yOr(p.encoder_,x))},_.TX());
_.iq=_.It(function(p,x,F){if(p.nextWireType_!==0)return!1;_.$_(x,F,_.O6(p.decoder_));return!0},_.EEr,_.WSJ);var FHv=function(){var p=prD,x=xmB;this.fieldIndex=175237375;this.ctor=x;this.isRepeated=0;this.getExtensionFn=_.B8;this.defaultValue=void 0;this.JSC$6724_hasMessageId=p.messageId!=null?bB:void 0};
FHv.prototype.register=function(){aE(this)};var Nkn=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Nkn,_.Uk);var hEn=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(hEn,_.Uk);var yop=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(yop,_.Uk);var lZC=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(lZC,_.Uk);var czB=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(czB,_.Uk);var aZB=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(aZB,_.Uk);var Mpk=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Mpk,_.Uk);Mpk.prototype.getData=function(){return _.SG(this,2)};var Dmk=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Dmk,_.Uk);var fZm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(fZm,_.Uk);fZm.prototype.getStyle=function(){return _.B8(this,Nkn,1)};var MM=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(MM,_.Uk);MM.prototype.getPayloadCase=function(){return _.E6(this,qM)};
MM.prototype.getStyle=function(){return _.V8(this,fZm,6,qM)};
var KHn=function(){var p=new MM,x=new czB;return _.K6(p,7,qM,x)},qM6=function(){var p=new MM,x=new aZB;
return _.K6(p,8,qM,x)},qM=[1,
2,3,4,5,6,7,8];var ZpZ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(ZpZ,_.Uk);var tpm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(tpm,_.Uk);var dmj=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(dmj,_.Uk);var v$j=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(v$j,_.Uk);var Jzk=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Jzk,_.Uk);var CdJ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(CdJ,_.Uk);var SMn=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(SMn,_.Uk);var rzv=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(rzv,_.Uk);rzv.prototype.getData=function(){return _.SG(this,2)};var E$6=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(E$6,_.Uk);var nEM=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(nEM,_.Uk);nEM.prototype.getPayloadCase=function(){return _.E6(this,IE)};
var IE=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var $g=function(p,x){p=Error.call(this,p);this.message=p.message;"stack"in p&&(this.stack=p.stack);this.code=x===void 0?2:x};
_.E($g,Error);var Xrk=Promise;var g$n=function(p){this.channelPromise=p};
g$n.prototype.send=function(p,x,F){this.channelPromise.then(function(N){N.send(p,x,F)})};var QJv=function(p,x){this.data=p;this.channel=x};
QJv.prototype.reply=function(p,x,F){this.channel.send(p,x,F)};var zEm=function(p){this.JSC$6802_port_=p};
zEm.prototype.send=function(p,x,F){F=F===void 0?[]:F;var N=new MessageChannel;sJj(N.port1,x);this.JSC$6802_port_.postMessage(p,[N.port2].concat(F))};
var n$6=function(p,x){sJj(p,x);return new zEm(p)},sJj=function(p,x){x&&(p.onmessage=function(F){x(new QJv(F.data,n$6(F.ports[0])))})};var yzm=function(p){this.verifier_=p},bp6=function(p){var x=Object.create(null);
(typeof p==="string"?[p]:p).forEach(function(F){if(F==="null")throw Error("ba");x[F]=!0});
return function(F){return x[F]===!0}};_.Azn=function(){if(!_.Mm.addEventListener||!Object.defineProperty)return!1;var p=!1,x=Object.defineProperty({},"passive",{get:function(){p=!0}});
try{var F=function(){};
_.Mm.addEventListener("test",F,x);_.Mm.removeEventListener("test",F,x)}catch(N){}return p}();var uw6;_.eG=function(p){var x=p.destination;var F=p.iframe;var N=p.origin;var h=p.channelName===void 0?"ZNWN1d":p.channelName;var c=p.onMessage===void 0?void 0:p.onMessage;p=p.onEstablished===void 0?void 0:p.onEstablished;return uw6({destination:x,getSource:function(){return F.contentWindow},
originVerifier:N instanceof yzm?N:typeof N==="function"?new yzm(N):new yzm(bp6(N)),channelName:h,onMessage:c,onEstablished:p})};
uw6=function(p){var x=p.destination;var F=p.getSource;var N=p.originVerifier;var h=p.token===void 0?void 0:p.token;var c=p.channelName;var M=p.onMessage===void 0?void 0:p.onMessage;var f=p.onEstablished===void 0?void 0:p.onEstablished;return new g$n(new Xrk(function(K,t){var d=function(v){v.source&&v.source===F()&&N.verifier_(v.origin)&&(v.data.n||v.data)===c&&(x.removeEventListener("message",d,!1),h&&v.data.t!==h?t(Error("ca`"+c+"`"+h+"`"+v.data.t)):(K(n$6(v.ports[0],M)),f&&f(v)))};
x.addEventListener("message",d,!1)}))};var YMB=function(p){try{p()}catch(x){fp(x)}};var GBm=function(p){var x=this;var F=p.getMessageType;var N=p.onUnregisteredMessage===void 0?function(){}:p.onUnregisteredMessage;
var h=p.onBeforeRegisteredMessage===void 0?function(){}:p.onBeforeRegisteredMessage;
p=p.onAfterRegisteredMessage===void 0?function(){}:p.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=F;this.onUnregisteredMessage_=N;this.onBeforeRegisteredMessage_=h;this.onAfterRegisteredMessage_=p;this.onMessage=function(c){return wrn(x,c)}};
GBm.prototype.register=function(p,x){this.registry_.set(p,x);return this};
var wrn=function(p,x){var F=p.getMessageType_(x.data),N=p.registry_.get(F);N?(YMB(function(){return p.onBeforeRegisteredMessage_(x,F)}),YMB(function(){return N(x)}),YMB(function(){return p.onAfterRegisteredMessage_(x,F)})):YMB(function(){return p.onUnregisteredMessage_(x,F)})};var Vpk=function(p){this.JSC$6819_channel_=p},HpC,mmD;
Vpk.prototype.send=function(p,x,F){this.JSC$6819_channel_.send(Qa(p),x,F)};
_.WHn=function(p,x){return function(F){var N=new p(F.data);return x(new QJv(N,F.channel))}};
HpC=function(p){return function(x){return p(new QJv(x.data,new Vpk(x.channel)))}};
mmD=function(p,x){return HpC(_.WHn(p,x))};var o$D=function(p,x,F,N){this.registry=p;this.delegate=x;this.receiveMessageConstructor=F;this.createInitMessage=N;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},sM$=function(p){var x=new GBm({getMessageType:p.getPayloadCase});
return new o$D(x,new Vpk(_.eG({iframe:p.child,destination:window,origin:p.origin,channelName:p.channelName,onMessage:mmD(p.receiveMessageConstructor,x.onMessage)})),p.receiveMessageConstructor,p.createInitMessage)},OpI=function(p,x){p.createInitMessage=x};
o$D.prototype.send=function(p){if(!this.initialised)throw new $g("Attempted to send a message before initialisation.");this.delegate.send(p)};
var jJb=function(p,x){return _.D(function(F){if(!p.initialised)throw new $g("Attempted to send a message before initialisation.");return F.return(new Promise(function(N){p.delegate.send(x,mmD(p.receiveMessageConstructor,N))}))})};
o$D.prototype.init=function(){var p=this;return _.D(function(x){if(p.initialised)throw new $g("Attempted to initialise twice. The SDK can only be initialised once.");if(p.createInitMessage!==void 0){var F=p.delegate,N=F.send,h=p.createInitMessage;var c=new hEn;var M=[].concat(_.se(p.features));c=_.mm(c,1,M,_.$B);N.call(F,h.call(p,c))}p.initialised=!0;_.JB(x)})};
var py=function(p,x){if(p.initialised)throw new $g("Attempted to use a new API after initialisation. All APIs must be set up before initialising the SDK.");p.features.add(x);return p.registry};
_.R8.Object.defineProperties(o$D.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var LHl=function(p){this.channel=p;this.registered=!1};
LHl.prototype.update=function(p){if(this.channel.isInitialised){if(!this.registered)throw new $g("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var x=new MM;var F=new lZC;F=_.Nc(F,1,p);x=_.K6(x,2,qM,F);this.channel.send(x)}else this.register();this.JSC$6833_audioEnabled=p};
LHl.prototype.register=function(){py(this.channel,1);this.registered=!0};
LHl.prototype.isAudioEnabled=function(){return this.JSC$6833_audioEnabled};var Pdb=function(p){this.channel=p};
_.l=Pdb.prototype;_.l.onFirstFrameReady=function(p){py(this.channel,2).register(11,function(x){x=_.V8(x.data,ZpZ,11,IE);if(!x)throw new $g("Unexpectedly nonexistent GameFirstFrameReadyEvent");p(_.uq(x,1))})};
_.l.onReady=function(p){py(this.channel,2).register(4,function(x){x=_.V8(x.data,dmj,4,IE);if(!x)throw new $g("Unexpectedly nonexistent GameReadyEvent");p(_.uq(x,1))})};
_.l.onLevelComplete=function(p){py(this.channel,2).register(5,function(x){x=_.V8(x.data,v$j,5,IE);if(!x)throw new $g("Unexpectedly nonexistent LevelCompleteEvent");p(_.uq(x,1),_.$H(x,2))})};
_.l.onGameOver=function(p){py(this.channel,2).register(6,function(x){x=_.V8(x.data,tpm,6,IE);if(!x)throw new $g("Unexpectedly nonexistent GameOverEvent");p(_.uq(x,1))})};
_.l.pause=function(){var p=this;if(!this.channel.isInitialised)return py(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new $g("Using unregistered Game Feature: pause.");var x=KHn();return new Promise(function(F){return _.D(function(N){if(N.nextAddress==1)return _.q(N,jJb(p.channel,x),2);F();_.JB(N)})})};
_.l.resume=function(){var p=this;if(!this.channel.isInitialised)return py(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new $g("Using unregistered Game Feature: resume.");var x=qM6();return new Promise(function(F){return _.D(function(N){if(N.nextAddress==1)return _.q(N,jJb(p.channel,x),2);F();_.JB(N)})})};var Tkv=function(p){this.channel=p};
Tkv.prototype.onReady=function(p){py(this.channel,5).register(8,function(x){if(!_.V8(x.data,Jzk,8,IE))throw new $g("Unexpectedly nonexistent PageReadyEvent");p()})};var Bkv=function(p){this.channel=p};
Bkv.prototype.onChange=function(p){py(this.channel,3).register(7,function(x){x=_.V8(x.data,CdJ,7,IE);if(!x)throw new $g("Unexpectedly nonexistent ScoreEvent");p(_.uq(x,1),_.$H(x,2))})};var REC={load:function(){throw new $g("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new $g("Storage used, but storage.onSave() listener not set!");}},kBj=function(p){this.channel=p;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},UmB=function(p){py(p.channel,4).register(2,REC.load).register(3,REC.save);
p.initialSetupDone=!0};
kBj.prototype.onLoad=function(p){this.initialSetupDone||UmB(this);this.loadRegistered||(this.loadRegistered=!0,py(this.channel,4).register(2,function(x){var F,N,h;return _.D(function(c){if(c.nextAddress==1){F=_.V8(x.data,SMn,2,IE);if(!F)throw new $g("Unexpectedly nonexistent StorageLoad");N=_.uq(F,1);return _.q(c,p(N),2)}h=c.yieldResult;var M=x.reply,f=new MM;var K=new Mpk;K=_.J_(K,1,N);K=_.k3(K,2,_.yJ(h,!1));f=_.K6(f,3,qM,K);M.call(x,f);_.JB(c)})}))};
kBj.prototype.onSave=function(p){this.initialSetupDone||UmB(this);this.saveRegistered||(this.saveRegistered=!0,py(this.channel,4).register(3,function(x){var F,N,h;return _.D(function(c){if(c.nextAddress==1){F=_.V8(x.data,rzv,3,IE);if(!F)throw new $g("Unexpectedly nonexistent StorageSave");N=_.uq(F,1);h=TNJ(F.getData());return _.q(c,p(N,h),2)}var M=x.reply,f=new MM;var K=new Dmk;K=_.J_(K,1,N);f=_.K6(f,4,qM,K);M.call(x,f);_.JB(c)})}))};var ipl=function(p){this.channel=p};
ipl.prototype.update=function(p){if(!this.channel.features.has(6))throw new $g("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var x=new MM,F=new fZm;p=_.f6(F,1,p);x=_.K6(x,6,qM,p);this.channel.send(x)};
ipl.prototype.register=function(){py(this.channel,6)};var IZm=function(p){this.channel=p;this.userActivityLoggingIntervalMs=0};
IZm.prototype.onUserActivity=function(p,x){this.userActivityLoggingIntervalMs=x;py(this.channel,7).register(9,function(F){if(!_.V8(F.data,E$6,9,IE))throw new $g("Unexpectedly nonexistent ClickEvent");p()})};var $mK=function(p){var x=this;this.channel=p;this.init=this.channel.init.bind(this.channel);this.page=new Tkv(this.channel);this.game=new Pdb(this.channel);this.audio=new LHl(this.channel);this.score=new Bkv(this.channel);this.storage=new kBj(this.channel);this.style=new ipl(this.channel);this.userActivity=new IZm(this.channel);OpI(this.channel,function(F){var N=new yop;F=_.f6(N,1,F);F=_.WW(F,3,x.userActivity.userActivityLoggingIntervalMs);N=x.audio.isAudioEnabled();N!==void 0&&_.Nc(F,2,N);N=new MM;
return _.K6(N,5,qM,F)})};var eEI=function(){this.timedFunctionContext=0};
eEI.prototype.timeExecution=function(p,x){var F=this;return function(){var N=_.we.apply(0,arguments);F.timedFunctionContext=p;return x.apply(null,_.se(N))}};var pb6=function(){var p={};this.priorityTasks=(p[3]=[],p[2]=[],p[1]=[],p);this.isFlushing=!1},M1=function(p,x,F){var N=xIb(p,F);
p.priorityTasks[F].push(x);N&&p.priorityTasks[F].length===1&&p.flush()},xIb=function(p,x){return Object.keys(p.priorityTasks).map(function(F){return Number(F)}).filter(function(F){return!isNaN(F)&&F>x}).every(function(F){return p.priorityTasks[F].length===0})};
pb6.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(p){return p.length>0});)Fnb(this,3),Fnb(this,2),Fnb(this,1)}catch(p){throw Object.values(this.priorityTasks).forEach(function(x){return void x.splice(0,x.length)}),p;
}finally{this.isFlushing=!1}}};
var Fnb=function(p,x){for(;xIb(p,x)&&p.priorityTasks[x].length>0;)p.priorityTasks[x][0](),p.priorityTasks[x].shift()};
_.R8.Object.defineProperties(pb6.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(p){return p.length>0})}}});var VPp={};var Nlj=globalThis.trustedTypes,Aop=Nlj,YU6;var de=function(p){this.privateDoNotAccessOrElseWrappedResourceUrl=p};
de.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var h6B=_.B$([""]),lKl=ugE(["\x00"],["\\0"]),cCn=ugE(["\n"],["\\n"]),aKD=ugE(["\x00"],["\\u0000"]);Glp(function(p){return p(h6B)})||Glp(function(p){return p(lKl)})||Glp(function(p){return p(cCn)})||Glp(function(p){return p(aKD)});var Ao;_.EU=function(p,x){this.privateDoNotAccessOrElseWrappedUrl=x};
_.EU.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.MDJ=XK("about:blank");Ao=XK("about:invalid#zClosurez");var WAB=function(p){this.isValid=p},DIK=new WAB(function(p){return/^[^:]*([/?#]|$)/.test(p)}),fKI=yb("data"),KnZ=yb("http"),qvk=yb("https"),ZZl=yb("ftp"),tD6=yb("mailto"),dIB=yb("intent"),vBB=yb("vnd.youtube"),H6p=[fKI,
KnZ,qvk,tD6,ZZl,DIK],mMz=to(function(){return typeof URL==="function"}),JCj=["data:",
"http:","https:","mailto:","ftp:"],O6d=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Hz=function(p){this.privateDoNotAccessOrElseWrappedHtml=p};
Hz.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var Bqk=to(function(){return new Hz(Nlj?Nlj.emptyHTML:"")});var CBn={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"},LAr=function(p,x){var F=Error.call(this,p+" cannot be used with intent "+CBn[x]);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.type=p;this.intent=x;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.E(LAr,Error);_.Tl=function(p){this.privateDoNotAccessOrElseWrappedScript=p};
_.Tl.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var R56=function(p){this.privateDoNotAccessOrElseWrappedAttributePrefix=p};
R56.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var klB="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var DNZ=function(p){var x=_.A9("window.location.href");p==null&&(p='Unknown Error of type "null/undefined"');if(typeof p==="string")return{message:p,name:"Unknown error",lineNumber:"Not available",fileName:x,stack:"Not available"};var F=!1;try{var N=p.lineNumber||p.line||"Not available"}catch(M){N="Not available",F=!0}try{var h=p.fileName||p.filename||p.sourceURL||_.Mm.$googDebugFname||x}catch(M){h="Not available",F=!0}x=Svb(p);if(!(!F&&p.lineNumber&&p.fileName&&p.stack&&p.message&&p.name)){F=p.message;
if(F==null){if(p.constructor&&p.constructor instanceof Function){if(p.constructor.name)F=p.constructor.name;else if(F=p.constructor,x5[F])F=x5[F];else{F=String(F);if(!x5[F]){var c=/function\s+([^\(]+)/m.exec(F);x5[F]=c?c[1]:"[Anonymous]"}F=x5[F]}F='Unknown Error of type "'+F+'"'}else F="Unknown Error of unknown type";typeof p.toString==="function"&&Object.prototype.toString!==p.toString&&(F+=": "+p.toString())}return{message:F,name:p.name||"UnknownError",lineNumber:N,fileName:h,stack:x||"Not available"}}return{message:p.message,
name:p.name,lineNumber:p.lineNumber,fileName:p.fileName,stack:x}},Svb=function(p,x){x||(x={});
x[rCn(p)]=!0;var F=p.stack||"",N=p.cause;N&&!x[rCn(N)]&&(F+="\nCaused by: ",N.stack&&N.stack.indexOf(N.toString())==0||(F+=typeof N==="string"?N:N.message+"\n"),F+=Svb(N,x));p=p.errors;if(Array.isArray(p)){N=1;var h;for(h=0;h<p.length&&!(N>4);h++)x[rCn(p[h])]||(F+="\nInner error "+N++ +": ",p[h].stack&&p[h].stack.indexOf(p[h].toString())==0||(F+=typeof p[h]==="string"?p[h]:p[h].message+"\n"),F+=Svb(p[h],x));h<p.length&&(F+="\n... "+(p.length-h)+" more inner errors")}return F},rCn=function(p){var x=
"";
typeof p.toString==="function"&&(x=""+p);return x+p.stack},x5={};var EBk,Tn,$p,gBl,Qkm,Xbj,wv,W7,skv;EBk=function(p,x){for(var F=p.split("%s"),N="",h=Array.prototype.slice.call(arguments,1);h.length&&F.length>1;)N+=F.shift()+h.shift();return N+F.join("%s")};
_.YF=function(p){return encodeURIComponent(String(p))};
Tn=function(p){return decodeURIComponent(p.replace(/\+/g," "))};
$p=function(p){MNm.test(p)&&(p.indexOf("&")!=-1&&(p=p.replace(F4B,"&amp;")),p.indexOf("<")!=-1&&(p=p.replace(NNM,"&lt;")),p.indexOf(">")!=-1&&(p=p.replace(hNp,"&gt;")),p.indexOf('"')!=-1&&(p=p.replace(llk,"&quot;")),p.indexOf("'")!=-1&&(p=p.replace(cUB,"&#39;")),p.indexOf("\x00")!=-1&&(p=p.replace(ald,"&#0;")));return p};
gBl=function(p){var x={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var F=_.Mm.document.createElement("div");return p.replace(Xbj,function(N,h){var c=x[N];if(c)return c;h.charAt(0)=="#"&&(h=Number("0"+h.slice(1)),isNaN(h)||(c=String.fromCharCode(h)));c||(_.ig(F,oM(N+" ")),c=F.firstChild.nodeValue.slice(0,-1));return x[N]=c})};
Qkm=function(p){return p.replace(/&([^;]+);/g,function(x,F){switch(F){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return F.charAt(0)!="#"||(F=Number("0"+F.slice(1)),isNaN(F))?x:String.fromCharCode(F)}})};
Xbj=/&([^;\s<&]+);?/g;_.yhz=function(p){return String(p).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.z6v=String.prototype.repeat?function(p,x){return p.repeat(x)}:function(p,x){return Array(x+1).join(p)};
_.Fn=function(p,x){if(!Number.isFinite(p))return String(p);p=String(p);var F=p.indexOf(".");F===-1&&(F=p.length);var N=p[0]==="-"?"-":"";N&&(p=p.substring(1));return N+(0,_.z6v)("0",Math.max(0,x-F))+p};
wv=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.FV()).toString(36)};
W7=function(p){for(var x=0,F=0;F<p.length;++F)x=31*x+p.charCodeAt(F)>>>0;return x};
_.t8=function(p){return String(p).replace(/\-([a-z])/g,function(x,F){return F.toUpperCase()})};
_.ZI=function(p){return String(p).replace(/([A-Z])/g,"-$1").toLowerCase()};
skv=function(p){return p.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(x,F,N){return F+N.toUpperCase()})};var nBk=function(){this.names=new Map};
nBk.prototype.getName=function(p){var x=this.names.get(p);if(x)return x;var F;x=(F=p.description)!=null?F:wv();this.names.set(p,x);return x};var yCj=function(p){var x=Error.call(this,p?p.length+" errors occurred during unsubscription:\n"+p.map(function(F,N){return N+1+") "+F.toString()}).join("\n  "):"");
this.message=x.message;"stack"in x&&(this.stack=x.stack);this.errors=p;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.E(yCj,Error);var FB=function(p){this.initialTeardown=p;this.closed=!1;this._teardowns=this._parentage=null};
_.l=FB.prototype;
_.l.unsubscribe=function(){if(!this.closed){this.closed=!0;var p=this._parentage;if(Array.isArray(p))for(var x=_.a(p),F=x.next();!F.done;F=x.next())F.value.remove(this);else p==null||p.remove(this);x=this.initialTeardown;if(xZ(x))try{x()}catch(c){var N=c instanceof yCj?c.errors:[c]}var h=this._teardowns;if(h)for(this._teardowns=null,x=_.a(h),F=x.next();!F.done;F=x.next()){F=F.value;try{xZ(F)?F():F.unsubscribe()}catch(c){F=void 0,N=(F=N)!=null?F:[],c instanceof yCj?N=[].concat(_.se(N),_.se(c.errors)):
N.push(c)}}if(N)throw new yCj(N);}};
_.l.add=function(p){if(p&&p!==this)if(this.closed)xZ(p)?p():p.unsubscribe();else{if(p instanceof FB){if(p.closed||p._hasParent(this))return;p._addParent(this)}var x;(this._teardowns=(x=this._teardowns)!=null?x:[]).push(p)}};
_.l._hasParent=function(p){var x=this._parentage;return x===p||Array.isArray(x)&&x.includes(p)};
_.l._addParent=function(p){var x=this._parentage;this._parentage=Array.isArray(x)?(x.push(p),x):x?[x,p]:p};
_.l._removeParent=function(p){var x=this._parentage;x===p?this._parentage=null:Array.isArray(x)&&$MB(x,p)};
_.l.remove=function(p){var x=this._teardowns;x&&$MB(x,p);p instanceof FB&&p._removeParent(this)};
var bZv=new FB;bZv.closed=!0;FB.JSC$6929_EMPTY=bZv;var p9d=function(){setTimeout.apply(null,_.se(_.we.apply(0,arguments)))};var N8=function(p){FB.call(this);this.JSC$6934_isStopped=!1;this.destination=p instanceof N8?p:new ha(!p||xZ(p)?{next:p!=null?p:void 0}:p);e5J(p)&&p.add(this)};
_.E(N8,FB);N8.JSC$6929_EMPTY=FB.JSC$6929_EMPTY;N8.create=function(p,x,F){return new lH(p,x,F)};
_.l=N8.prototype;_.l.next=function(p){this.JSC$6934_isStopped||this._next(p)};
_.l.error=function(p){this.JSC$6934_isStopped||(this.JSC$6934_isStopped=!0,this._error(p))};
_.l.complete=function(){this.JSC$6934_isStopped||(this.JSC$6934_isStopped=!0,this._complete())};
_.l.unsubscribe=function(){this.closed||(this.JSC$6934_isStopped=!0,FB.prototype.unsubscribe.call(this))};
_.l._next=function(p){this.destination.next(p)};
_.l._error=function(p){this.destination.error(p);this.unsubscribe()};
_.l._complete=function(){this.destination.complete();this.unsubscribe()};
var ha=function(p){this.partialObserver=p};
ha.prototype.next=function(p){var x=this.partialObserver;if(x.next)try{x.next(p)}catch(F){hB(F)}};
ha.prototype.error=function(p){var x=this.partialObserver;if(x.error)try{x.error(p)}catch(F){hB(F)}else hB(p)};
ha.prototype.complete=function(){var p=this.partialObserver;if(p.complete)try{p.complete()}catch(x){hB(x)}};
var lH=function(p,x,F){N8.call(this);var N;xZ(p)||!p?N={next:p!=null?p:void 0,error:x!=null?x:void 0,complete:F!=null?F:void 0}:N=p;this.destination=new ha(N)};
_.E(lH,N8);lH.JSC$6929_EMPTY=N8.JSC$6929_EMPTY;lH.create=N8.create;var MF=typeof Symbol==="function"&&Symbol.observable||"@@observable";var ay=function(p){p&&(this._subscribe=p)};
_.l=ay.prototype;_.l.lift=function(p){var x=new ay;x.source=this;x.operator=p;return x};
_.l.subscribe=function(p,x,F){p=p&&p instanceof N8||p&&xZ(p.next)&&xZ(p.error)&&xZ(p.complete)&&e5J(p)?p:new lH(p,x,F);x=this.operator;F=this.source;p.add(x?x.call(p,F):F?this._subscribe(p):this._trySubscribe(p));return p};
_.l._trySubscribe=function(p){try{return this._subscribe(p)}catch(x){p.error(x)}};
_.l.forEach=function(p,x){var F=this;x=Fhm(x);return new x(function(N,h){var c=F.subscribe(function(M){try{p(M)}catch(f){h(f),c==null||c.unsubscribe()}},h,N)})};
_.l._subscribe=function(p){var x;return(x=this.source)==null?void 0:x.subscribe(p)};
ay.prototype[MF]=function(){return this};
ay.prototype.pipe=function(){var p=_.we.apply(0,arguments);return p.length?xFd(p)(this):this};
ay.create=function(p){return new ay(p)};var ACD=function(){var p=Error.call(this,"object unsubscribed");this.message=p.message;"stack"in p&&(this.stack=p.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.E(ACD,Error);var lk=function(){this.observers=[];this.hasError=this.JSC$6950_isStopped=this.closed=!1;this.thrownError=null};
_.E(lk,ay);_.l=lk.prototype;_.l.lift=function(p){var x=new ck(this,this);x.operator=p;return x};
_.l._throwIfClosed=function(){if(this.closed)throw new ACD;};
_.l.next=function(p){this._throwIfClosed();if(!this.JSC$6950_isStopped){var x=this.observers.slice();x=_.a(x);for(var F=x.next();!F.done;F=x.next())F.value.next(p)}};
_.l.error=function(p){this._throwIfClosed();if(!this.JSC$6950_isStopped){this.hasError=this.JSC$6950_isStopped=!0;this.thrownError=p;for(var x=this.observers;x.length;)x.shift().error(p)}};
_.l.complete=function(){this._throwIfClosed();if(!this.JSC$6950_isStopped){this.JSC$6950_isStopped=!0;for(var p=this.observers;p.length;)p.shift().complete()}};
_.l.unsubscribe=function(){this.JSC$6950_isStopped=this.closed=!0;this.observers=null};
_.l._trySubscribe=function(p){this._throwIfClosed();return ay.prototype._trySubscribe.call(this,p)};
_.l._subscribe=function(p){this._throwIfClosed();this._checkFinalizedStatuses(p);return this._innerSubscribe(p)};
_.l._innerSubscribe=function(p){var x=this,F=this.JSC$6950_isStopped,N=this.observers;return this.hasError||F?FB.JSC$6929_EMPTY:(N.push(p),new FB(function(){return $MB(x.observers,p)}))};
_.l._checkFinalizedStatuses=function(p){var x=this.thrownError,F=this.JSC$6950_isStopped;this.hasError?p.error(x):F&&p.complete()};
lk.create=function(p,x){return new ck(p,x)};
var ck=function(p,x){lk.call(this);this.destination=p;this.source=x};
_.E(ck,lk);ck.create=lk.create;ck.prototype.next=function(p){var x,F;(x=this.destination)==null||(F=x.next)==null||F.call(x,p)};
ck.prototype.error=function(p){var x,F;(x=this.destination)==null||(F=x.error)==null||F.call(x,p)};
ck.prototype.complete=function(){var p,x;(p=this.destination)==null||(x=p.complete)==null||x.call(p)};
ck.prototype._subscribe=function(p){var x,F;return(F=(x=this.source)==null?void 0:x.subscribe(p))!=null?F:FB.JSC$6929_EMPTY};var V5=function(p){lk.call(this);this._value=p};
_.E(V5,lk);V5.create=lk.create;V5.prototype._subscribe=function(p){var x=lk.prototype._subscribe.call(this,p);!x.closed&&p.next(this._value);return x};
V5.prototype.getValue=function(){var p=this.thrownError,x=this._value;if(this.hasError)throw p;this._throwIfClosed();return x};
V5.prototype.next=function(p){lk.prototype.next.call(this,this._value=p)};
_.R8.Object.defineProperties(V5.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var u2=new ay(function(p){return p.complete()});var cBm=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var Kh$=function(p){return p&&typeof p.length==="number"&&typeof p!=="function"};var ujB={now:function(){return(ujB.delegate||Date).now()},
delegate:void 0};var Ry=function(p,x,F){p=p===void 0?Infinity:p;x=x===void 0?Infinity:x;F=F===void 0?ujB:F;lk.call(this);this.JSC$6972_bufferSize=p;this.windowTime=x;this.timestampProvider=F;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=x===Infinity;this.JSC$6972_bufferSize=Math.max(1,p);this.windowTime=Math.max(1,x)};
_.E(Ry,lk);Ry.create=lk.create;Ry.prototype.next=function(p){var x=this.buffer,F=this.infiniteTimeWindow,N=this.timestampProvider,h=this.windowTime;this.JSC$6950_isStopped||(x.push(p),!F&&x.push(N.now()+h));YvZ(this);lk.prototype.next.call(this,p)};
Ry.prototype._subscribe=function(p){this._throwIfClosed();YvZ(this);for(var x=this._innerSubscribe(p),F=this.infiniteTimeWindow,N=this.buffer.slice(),h=0;h<N.length&&!p.closed;h+=F?1:2)p.next(N[h]);this._checkFinalizedStatuses(p);return x};
var YvZ=function(p){var x=p.JSC$6972_bufferSize,F=p.timestampProvider,N=p.buffer;p=p.infiniteTimeWindow;var h=(p?1:2)*x;x<Infinity&&h<N.length&&N.splice(0,N.length-h);if(!p){x=F.now();F=0;for(p=1;p<N.length&&N[p]<=x;p+=2)F=p;F&&N.splice(0,F+1)}};var GmJ=function(p,x){x=x===void 0?wbn:x;this.schedulerActionCtor=p;this.now=x};
GmJ.prototype.schedule=function(p,x,F){x=x===void 0?0:x;return(new this.schedulerActionCtor(this,p)).schedule(F,x)};
var wbn=ujB.now;var htz=function(){var p=Error.call(this,"no elements in sequence");this.message=p.message;"stack"in p&&(this.stack=p.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.E(htz,Error);var XB=function(p,x,F,N,h){N8.call(this,p);this.onUnsubscribe=h;x&&(this._next=function(c){try{x(c)}catch(M){this.destination.error(M)}});
F&&(this._error=function(c){try{F(c)}catch(M){this.destination.error(M)}this.unsubscribe()});
N&&(this._complete=function(){try{N()}catch(c){this.destination.error(c)}this.unsubscribe()})};
_.E(XB,N8);XB.JSC$6929_EMPTY=N8.JSC$6929_EMPTY;XB.create=N8.create;XB.prototype.unsubscribe=function(){var p;this.closed||(p=this.onUnsubscribe)!=null&&p.call(this);N8.prototype.unsubscribe.call(this)};var P9=function(p,x){this.source=p;this.subjectFactory=x;this._subject=null;this._refCount=0;this._connection=null};
_.E(P9,ay);P9.create=ay.create;P9.prototype._subscribe=function(p){return VD6(this).subscribe(p)};
var VD6=function(p){var x=p._subject;if(!x||x.JSC$6950_isStopped)p._subject=p.subjectFactory();return p._subject};
P9.prototype._teardown=function(){this._refCount=0;var p=this._connection;this._subject=this._connection=null;p==null||p.unsubscribe()};
P9.prototype.connect=function(){var p=this,x=this._connection;if(!x){x=this._connection=new FB;var F=VD6(this);x.add(this.source.subscribe(new XB(F,void 0,function(N){p._teardown();F.error(N)},function(){p._teardown();
F.complete()},function(){return p._teardown()})));
x.closed&&(this._connection=null,x=FB.JSC$6929_EMPTY)}return x};var Qyp=Array.isArray;var syk=Array.isArray,Wnv=Object,nZw=Wnv.getPrototypeOf,yB6=Wnv.prototype,bMk=Wnv.keys;var yq=function(p,x,F){N8.call(this,p);this._next=x;this.shouldComplete=F};
_.E(yq,N8);yq.JSC$6929_EMPTY=N8.JSC$6929_EMPTY;yq.create=N8.create;yq.prototype._complete=function(){this.shouldComplete()?N8.prototype._complete.call(this):this.unsubscribe()};var mFk=["addListener","removeListener"],HMp=["addEventListener","removeEventListener"],OM6=["on","off"];var av=function(){FB.call(this)};
_.E(av,FB);av.JSC$6929_EMPTY=FB.JSC$6929_EMPTY;av.prototype.schedule=function(){return this};var HZj=function(p,x){return setInterval.apply(null,[p,x].concat(_.se(_.we.apply(2,arguments))))};var M8=function(p,x){FB.call(this);this.scheduler=p;this.work=x;this.pending=!1};
_.E(M8,av);M8.JSC$6929_EMPTY=av.JSC$6929_EMPTY;M8.prototype.schedule=function(p,x){x=x===void 0?0:x;if(this.closed)return this;this.state=p;p=this.id;var F=this.scheduler;p!=null&&(this.id=mIm(this,p,x));this.pending=!0;this.delay=x;this.id=this.id||this.requestAsyncId(F,this.id,x);return this};
M8.prototype.requestAsyncId=function(p,x,F){F=F===void 0?0:F;return HZj(p.flush.bind(p,this),F)};
var mIm=function(p,x,F){F=F===void 0?0:F;if(F!=null&&p.delay===F&&p.pending===!1)return x;clearInterval(x)};
M8.prototype.execute=function(p,x){if(this.closed)return Error("la");this.pending=!1;if(p=this._execute(p,x))return p;this.pending===!1&&this.id!=null&&(this.id=mIm(this,this.id,null))};
M8.prototype._execute=function(p){var x=!1;try{this.work(p)}catch(N){x=!0;var F=!!N&&N||Error(N)}if(x)return this.unsubscribe(),F};
M8.prototype.unsubscribe=function(){if(!this.closed){var p=this.id,x=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;$MB(x,this);p!=null&&(this.id=mIm(this,p,null));this.delay=null;av.prototype.unsubscribe.call(this)}};var oBl=function(p,x){x=x===void 0?wbn:x;GmJ.call(this,p,x);this.actions=[];this.active=!1;this.scheduled=void 0};
_.E(oBl,GmJ);oBl.prototype.flush=function(p){var x=this.actions;if(this.active)x.push(p);else{var F;this.active=!0;do if(F=p.execute(p.state,p.delay))break;while(p=x.shift());this.active=!1;if(F){for(;p=x.shift();)p.unsubscribe();throw F;}}};var rs=new ay(NF);var jyB=Array.isArray;var DR=function(p,x){M8.call(this,p,x);this.scheduler=p;this.work=x};
_.E(DR,M8);DR.JSC$6929_EMPTY=M8.JSC$6929_EMPTY;DR.prototype.schedule=function(p,x){x=x===void 0?0:x;if(x>0)return M8.prototype.schedule.call(this,p,x);this.delay=x;this.state=p;this.scheduler.flush(this);return this};
DR.prototype.execute=function(p,x){return x>0||this.closed?M8.prototype.execute.call(this,p,x):this._execute(p,x)};
DR.prototype.requestAsyncId=function(p,x,F){F=F===void 0?0:F;return F!=null&&F>0||F==null&&this.delay>0?M8.prototype.requestAsyncId.call(this,p,x,F):p.flush(this)};var OZJ=function(){oBl.apply(this,arguments)};
_.E(OZJ,oBl);var X9p=new OZJ(DR);var jkj=function(){this.performanceMonitor=new eEI;this.queue=new pb6;this.internalSymbol=Symbol();this.debugNames=new nBk};
jkj.prototype.getOnBackgrounded=function(){return rs};
_.R8.Object.defineProperties(jkj.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var fy=function(p,x){x=Error.call(this,x?p+": "+x:String(p));this.message=x.message;"stack"in x&&(this.stack=x.stack);this.code=p;this.__proto__=fy.prototype;this.name=String(p)};
_.E(fy,Error);var ET=function(p){fy.call(this,1E3,'sfr:"'+p+'"');this.measurementStrategyFailureReason=p;this.__proto__=ET.prototype};
_.E(ET,fy);var Xa=function(){fy.call(this,1003);this.__proto__=Xa.prototype};
_.E(Xa,fy);var Ky=function(){fy.call(this,1009);this.__proto__=Ky.prototype};
_.E(Ky,fy);var LnI=function(){fy.call(this,1011);this.__proto__=LnI.prototype};
_.E(LnI,fy);var PBn=function(){fy.call(this,1007);this.__proto__=Xa.prototype};
_.E(PBn,fy);var C2=function(p){fy.call(this,1004,String(p));this.inputObservableIndex=p;this.__proto__=C2.prototype};
_.E(C2,fy);var Jmd=function(p){fy.call(this,1010,p);this.__proto__=CIr.prototype};
_.E(Jmd,fy);var CIr=function(p){fy.call(this,1005,p);this.__proto__=CIr.prototype};
_.E(CIr,fy);var TlC=function(p){var x=_.we.apply(1,arguments),F=this;this.orderedFactories=[];this.orderedFactories.push(p);x.forEach(function(N){F.orderedFactories.push(N)})};
TlC.prototype.isSupported=function(p){return this.orderedFactories.some(function(x){return x.isSupported(p)})};
TlC.prototype.makeBeacon=function(p,x){for(var F=0;F<this.orderedFactories.length;F++)if(this.orderedFactories[F].isSupported(x))return this.orderedFactories[F].makeBeacon(p,x);throw new Ky;};var aJM=Symbol("ma"),BlK=Symbol("na"),Vq=function(p,x){this.value=p;this.timeline=x},GU=function(p,x){if(x.timeline!==p.timeline)throw new PBn;
return p.value-x.value};
_.l=Vq.prototype;_.l.equals=function(p){return GU(this,p)===0};
_.l.maximum=function(p){if(p.timeline!==this.timeline)throw new PBn;return this.value>=p.value?this:p};
_.l.round=function(){return new Vq(Math.round(this.value),this.timeline)};
_.l.add=function(p){return new Vq(this.value+p,this.timeline)};
_.l.toString=function(){return String(this.value)};var q8=function(p,x){this.context=p;this.JSC$7056_pinger=x};
q8.prototype.isSupported=function(p){return this.JSC$7056_pinger.isSupported(p)};
q8.prototype.makeBeacon=function(p,x){if(!this.isSupported(x))throw new Ky;return new ZR(this.context,this.JSC$7056_pinger,x!=null?x:void 0,p)};
var ZR=function(p,x,F,N){var h=this;this.JSC$7062_pinger=x;this.properties=F;this.url=N;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var c;this.method=(c=F==null?void 0:F.beaconMethod)!=null?c:"GET";this.backgroundedSubscription=p.getOnBackgrounded().subscribe(function(){h.sendNow()})};
ZR.prototype.deactivate=function(){this.internalIsPending=!1};
ZR.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7062_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var p,x;this.JSC$7062_pinger.pingWithHeadersAndBody((p=this.properties)!=null?p:{},this.customHeaders,(x=this.body)!=null?x:"",this.url)}else this.JSC$7062_pinger.ping(this.url);this.internalIsPending=!1}catch(F){}else this.internalIsPending=!1};
ZR.prototype.setHeader=function(p){this.customHeaders.set(p,void 0)};
_.R8.Object.defineProperties(ZR.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var kmJ=function(){for(var p=_.a(_.we.apply(0,arguments)),x=p.next();!x.done;x=p.next())if(x=x.value,x.available()){this.timeProvider=x;return}this.timeProvider=new R6B};
_.l=kmJ.prototype;_.l.available=function(){return this.timeProvider.available()};
_.l.now=function(){return this.timeProvider.now()};
_.l.setTimeout=function(p,x){return this.timeProvider.setTimeout(p,x)};
_.l.clearTimeout=function(p){this.timeProvider.clearTimeout(p)};
_.l.interval=function(p,x){var F=this.intervalObservable(p).subscribe(x);return function(){return void F.unsubscribe()}};
_.l.intervalObservable=function(p){return this.timeProvider.intervalObservable(p)};
_.R8.Object.defineProperties(kmJ.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var R6B=function(){this.timeline=Symbol()};
_.l=R6B.prototype;_.l.available=function(){return!1};
_.l.now=function(){return new Vq(0,this.timeline)};
_.l.setTimeout=function(){return 0};
_.l.clearTimeout=function(){};
_.l.interval=function(){return function(){}};
_.l.intervalObservable=function(){return rs};var ta=function(p,x){this.intrinsicFunctionNamespace=p;this.performanceMonitor=x};
_.l=ta.prototype;_.l.setTimeout=function(p,x){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,p),x)};
_.l.clearTimeout=function(p){this.intrinsicFunctionNamespace.clearTimeout(p)};
_.l.interval=function(p,x){var F=this.intervalObservable(p).subscribe(x);return function(){return void F.unsubscribe()}};
_.l.intervalObservable=function(p){var x=this;return new ay(function(F){var N=0,h=x.intrinsicFunctionNamespace.setInterval(function(){F.next(N++)},p);
return function(){x.intrinsicFunctionNamespace.clearInterval(h)}})};
_.l.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var UIb=function(p,x){ta.call(this,p,x);this.timeline=BlK};
_.E(UIb,ta);UIb.prototype.now=function(){return new Vq(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
UIb.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&ta.prototype.available.call(this)};var iZB=function(p,x){ta.call(this,p,x);this.timeline=aJM};
_.E(iZB,ta);iZB.prototype.now=function(){return new Vq(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
iZB.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&ta.prototype.available.call(this)};var $I6=function(p){this.context=p;if(IKB===void 0)a:{var x,F,N=(x=p.global)==null?void 0:(F=x.document)==null?void 0:F.createElement("meta");if(N)try{N.httpEquiv="origin-trial";N.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";p.global.document.head.append(N);IKB=N;break a}catch(h){}IKB=void 0}},
IKB;
$I6.prototype.isSupported=function(p){return $F$(this.context)!==void 0&&!(p==null||!p.endOfSession)&&!dM(this.context)&&!(p==null?0:p.attributionEnabled)&&!(p==null?0:p.customHeaders)&&!(p==null?0:p.customBody)};
$I6.prototype.makeBeacon=function(p,x){if(!this.isSupported(x))throw new Ky;return new vk(this.context,p,x)};
var vk=function(p,x,F){this.context=p;this.properties=F;this.JSC$7089_urlWithoutToken=x;var N;this.beaconMethod=(N=F==null?void 0:F.beaconMethod)!=null?N:"GET";p=$F$(this.context);if(p===void 0)throw Error();this.fetchLater=p;e6I(this,pHl(this))},e6I=function(p,x){p.beaconResult&&p.beaconResult.activated||(p.beaconAbort=new AbortController,p.beaconResult=p.fetchLater(x,{method:p.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:p.beaconAbort.signal,activateAfter:96E4}))},pHl=function(p){p=p.JSC$7089_urlWithoutToken;
return(p.slice(-1)[0]==="&"?p:p+"&")+"flapi=1"};
vk.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
vk.prototype.sendNow=function(){};
vk.prototype.setHeader=function(){};
_.R8.Object.defineProperties(vk.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7089_urlWithoutToken},
set:function(p){this.JSC$7089_urlWithoutToken=p;p=pHl(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);e6I(this,p)}},
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 xH6=function(p){this.context=p};
xH6.prototype.isSupported=function(){return!dM(this.context)&&!!this.context.global.fetch};
xH6.prototype.ping=function(){var p=this;return YZ.apply(null,_.se(_.we.apply(0,arguments).map(function(x){return fM(p.context.global.fetch(x,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(zU(function(F){return F.status===200}))}))).pipe(lhk(function(x){return x}),ah$())};
xH6.prototype.pingWithHeadersAndBody=function(p,x,F){for(var N=_.we.apply(3,arguments),h=this,c=new Headers,M=_.a(x.entries()),f=M.next();!f.done;f=M.next()){var K=_.a(f.value);f=K.next().value;K=K.next().value;c.set(f,K)}var t,d=(t=p.keepAlive)!=null?t:!1;YZ.apply(null,_.se(N.map(function(v){return fM(h.context.global.fetch(v,Object.assign({},{method:String(p.beaconMethod),cache:"no-cache"},d?{keepalive:!0}:{},{mode:"no-cors",headers:c,body:F}))).pipe(zU(function(C){return C.status===200}))}))).pipe(lhk(function(v){return v}),
ah$())};var Fmn,Zmw;_.Ja=function(){};
_.Wr=function(p){return p};
Fmn=function(p){var x=x||0;return function(){return p.apply(this,Array.prototype.slice.call(arguments,0,x))}};
_.Cy=function(p){var x=!1,F;return function(){x||(F=p(),x=!0);return F}};
_.S0=function(p,x){var F=0;return function(N){_.Mm.clearTimeout(F);var h=arguments;F=_.Mm.setTimeout(function(){p.apply(void 0,h)},x)}};
Zmw=function(p,x){var F=0,N=!1,h=[],c=function(){F=0;N&&(N=!1,M())},M=function(){F=_.Mm.setTimeout(c,x);
var f=h;h=[];p.apply(void 0,f)};
return function(f){h=arguments;F?N=!0:M()}};var h86=function(){return EM&&Xw?Xw.mobile:!NDn()&&(Q6("iPod")||Q6("iPhone")||Q6("Android")||Q6("IEMobile"))},NDn=function(){return EM&&Xw?!Xw.mobile&&(Q6("iPad")||Q6("Android")||Q6("Silk")):Q6("iPad")||Q6("Android")&&!Q6("Mobile")||Q6("Silk")};var l8Z;_.Q5={};l8Z="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.Q5.add=function(p,x,F){if(p!==null&&x in p)throw Error("pa`"+x);p[x]=F};
_.Q5.clear=function(p){for(var x in p)delete p[x]};
_.Q5.clone=function(p){var x={},F;for(F in p)x[F]=p[F];return x};
_.Q5.contains=function(p,x){return KMM(p,x)};
_.Q5.containsKey=function(p,x){return p!==null&&x in p};
_.Q5.containsValue=KMM;_.Q5.create=tS$;_.Q5.createImmutableView=function(p){var x=p;Object.isFrozen&&!Object.isFrozen(p)&&(x=Object.create(p),Object.freeze(x));return x};
_.Q5.createSet=d1$;_.Q5.equals=function(p,x){for(var F in p)if(!(F in x)||p[F]!==x[F])return!1;for(var N in x)if(!(N in p))return!1;return!0};
_.Q5.every=function(p,x,F){for(var N in p)if(!x.call(F,p[N],N,p))return!1;return!0};
_.Q5.extend=function(p,x){for(var F,N,h=1;h<arguments.length;h++){N=arguments[h];for(F in N)p[F]=N[F];for(var c=0;c<l8Z.length;c++)F=l8Z[c],Object.prototype.hasOwnProperty.call(N,F)&&(p[F]=N[F])}};
_.Q5.filter=function(p,x,F){var N={},h;for(h in p)x.call(F,p[h],h,p)&&(N[h]=p[h]);return N};
_.Q5.findKey=qTH;_.Q5.findValue=function(p,x,F){return(x=qTH(p,x,F))&&p[x]};
_.Q5.forEach=function(p,x,F){for(var N in p)x.call(F,p[N],N,p)};
_.Q5.get=function(p,x,F){return p!==null&&x in p?p[x]:F};
_.Q5.getAllPropertyNames=function(p,x,F){if(!p)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return fhr(p);for(var N={};p&&(p!==Object.prototype||x)&&(p!==Function.prototype||F);){for(var h=Object.getOwnPropertyNames(p),c=0;c<h.length;c++)N[h[c]]=!0;p=Object.getPrototypeOf(p)}return fhr(N)};
_.Q5.getAnyKey=function(p){for(var x in p)return x};
_.Q5.getAnyValue=function(p){for(var x in p)return p[x]};
_.Q5.getCount=function(p){var x=0,F;for(F in p)x++;return x};
_.Q5.getKeys=fhr;_.Q5.getSuperClass=function(p){return(p=Object.getPrototypeOf(p.prototype))&&p.constructor};
_.Q5.getValueByKeys=function(p,x){var F=_.TB(x),N=F?x:arguments;for(F=F?0:1;F<N.length;F++){if(p==null)return;p=p[N[F]]}return p};
_.Q5.getValues=function(p){var x=[],F=0,N;for(N in p)x[F++]=p[N];return x};
_.Q5.isEmpty=function(p){for(var x in p)return!1;return!0};
_.Q5.isImmutableView=function(p){return!!Object.isFrozen&&Object.isFrozen(p)};
_.Q5.map=function(p,x,F){var N={},h;for(h in p)N[h]=x.call(F,p[h],h,p);return N};
_.Q5.remove=function(p,x){var F;(F=x in p)&&delete p[x];return F};
_.Q5.set=function(p,x,F){p[x]=F};
_.Q5.setIfUndefined=function(p,x,F){return x in p?p[x]:p[x]=F};
_.Q5.setWithReturnValueIfNotSet=function(p,x,F){if(x in p)return p[x];F=F();return p[x]=F};
_.Q5.some=function(p,x,F){for(var N in p)if(x.call(F,p[N],N,p))return!0;return!1};
_.Q5.transpose=function(p){var x={},F;for(F in p)x[p[F]]=F;return x};
_.Q5.unsafeClone=Z2M;var cem,a8B,MHb,DHZ,Od,KmK,v_K,JeK,CmI;cem=function(p,x,F,N,h,c,M){var f="";p&&(f+=p+":");F&&(f+="//",x&&(f+=x+"@"),f+=F,N&&(f+=":"+N));h&&(f+=h);c&&(f+="?"+c);M&&(f+="#"+M);return f};
a8B=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.mg=function(p){return p.match(a8B)};
_.sg=function(p,x){return p?x?decodeURI(p):decodeURIComponent(p):p};
MHb=function(p){p=_.mg(p)[1]||null;!p&&_.Mm.self&&_.Mm.self.location&&(p=_.Mm.self.location.protocol.slice(0,-1));return p?p.toLowerCase():""};
_.oD=function(p){return _.sg(_.mg(p)[3]||null,!0)};
_.F_=function(p){return _.sg(_.mg(p)[5]||null,!0)};
_.lMp=function(p){var x=p.indexOf("#");return x<0?null:p.slice(x+1)};
DHZ=function(p){p=_.mg(p);return cem(p[1],p[2],p[3],p[4])};
_.f8k=function(p){p=_.mg(p);return cem(p[1],null,p[3],p[4])};
_.Of=function(p){p=_.mg(p);return cem(null,null,null,null,p[5],p[6],p[7])};
_.i0=function(p){var x=p.indexOf("#");return x<0?p:p.slice(0,x)};
Od=function(p,x){p=_.mg(p);x=_.mg(x);return p[3]==x[3]&&p[1]==x[1]&&p[4]==x[4]};
KmK=function(p,x){if(p){p=p.split("&");for(var F=0;F<p.length;F++){var N=p[F].indexOf("="),h=null;if(N>=0){var c=p[F].substring(0,N);h=p[F].substring(N+1)}else c=p[F];x(c,h?Tn(h):"")}}};
_.qkl=function(p){var x=p.indexOf("#");x<0&&(x=p.length);var F=p.indexOf("?");if(F<0||F>x){F=x;var N=""}else N=p.substring(F+1,x);return[p.slice(0,F),N,p.slice(x)]};
_.Z8K=function(p,x){return x?p?p+"&"+x:x:p};
_.tHj=function(p,x){if(!x)return p;p=_.qkl(p);p[1]=_.Z8K(p[1],x);return p[0]+(p[1]?"?"+p[1]:"")+p[2]};
_.dHJ=function(p,x,F){if(Array.isArray(x))for(var N=0;N<x.length;N++)_.dHJ(p,String(x[N]),F);else x!=null&&F.push(p+(x===""?"":"="+_.YF(x)))};
_.hq=function(p){var x=[],F;for(F in p)_.dHJ(F,p[F],x);return x.join("&")};
_.Hw=function(p,x){x=_.hq(x);return _.tHj(p,x)};
_.rM=function(p,x,F){F=F!=null?"="+_.YF(F):"";return _.tHj(p,x+F)};
v_K=function(p,x,F,N){for(var h=F.length;(x=p.indexOf(F,x))>=0&&x<N;){var c=p.charCodeAt(x-1);if(c==38||c==63)if(c=p.charCodeAt(x+h),!c||c==61||c==38||c==35)return x;x+=h+1}return-1};
JeK=/#|$/;_.YC=function(p,x){var F=p.search(JeK),N=v_K(p,0,x,F);if(N<0)return null;var h=p.indexOf("&",N);if(h<0||h>F)h=F;N+=x.length+1;return Tn(p.slice(N,h!==-1?h:0))};
CmI=/[?&]($|#)/;_.$Q=function(p,x){for(var F=p.search(JeK),N=0,h,c=[];(h=v_K(p,N,x,F))>=0;)c.push(p.substring(N,h)),N=Math.min(p.indexOf("&",h)+1||F,F);c.push(p.slice(N));return c.join("").replace(CmI,"$1")};
_.AT=function(p,x,F){return _.rM(_.$Q(p,x),x,F)};var ER=function(p,x,F,N,h){this.allowedElements=p;this.elementPolicies=x;this.allowedGlobalAttributes=F;this.globalAttributePolicies=N;this.globallyAllowedAttributePrefixes=h},SkZ=function(p,x,F){F=p.elementPolicies.get(F);
return(F==null?0:F.has(x))?F.get(x):p.allowedGlobalAttributes.has(x)?{policyAction:1}:(F=p.globalAttributePolicies.get(x))?F:p.globallyAllowedAttributePrefixes&&[].concat(_.se(p.globallyAllowedAttributePrefixes)).some(function(N){return x.indexOf(N)===0})?{policyAction:1}:{policyAction:0}};var ren="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(" "),
E_D=[["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}]])]],XHv="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
g_j=[["dir",{policyAction:3,conditions:to(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:to(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:to(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:to(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],Qtm=new ER(new Set(ren),new Map(E_D),new Set(XHv),new Map(g_j)),z8B=new ER(new Set(ren.concat(["BUTTON",
"INPUT"])),new Map(E_D),new Set(to(function(){return XHv.concat(["class","id","name"])})),new Map(to(function(){return g_j.concat([["style",
{policyAction:1}]])})));var stB,n_J,b8m;stB=function(p,x,F,N){this.JSC$7149_sanitizerTable=p;this.styleElementSanitizer=x;this.styleAttributeSanitizer=F;this.JSC$7149_resourceUrlPolicy=N;this.changes=[]};
_.yeC=function(p,x){var F=document.implementation.createHTMLDocument("");p=n_J(p,x,F);F=F.body;F.appendChild(p);F=(new XMLSerializer).serializeToString(F);F=F.slice(F.indexOf(">")+1,F.lastIndexOf("</"));return oM(F)};
n_J=function(p,x,F){x=J_$(x,F);x=document.createTreeWalker(x,5,function(f){if(f.nodeType===3)f=1;else if(r_6(f))if(f=STk(f),f===null)f=2;else{var K=p.JSC$7149_sanitizerTable;f=f!=="FORM"&&(K.allowedElements.has(f)||K.elementPolicies.has(f))?1:2}else f=2;return f});
for(var N=x.nextNode(),h=F.createDocumentFragment(),c=h;N!==null;){var M=void 0;if(N.nodeType===3)p.styleElementSanitizer&&c.nodeName==="STYLE"?(N=p.styleElementSanitizer(N.data),M=p.createTextNode(N)):M=p.createTextNode(N.data);else if(r_6(N))M=b8m(p,N,F);else throw Error("da");c.appendChild(M);if(N=x.firstChild())c=M;else for(;!(N=x.nextSibling())&&(N=x.parentNode());)c=c.parentNode}return h};
stB.prototype.createTextNode=function(p){return document.createTextNode(p)};
b8m=function(p,x,F){var N,h=STk(x);F=F.createElement(h);x=x.attributes;for(var c=_.a(x),M=c.next();!M.done;M=c.next()){var f=M.value;M=f.name;f=f.value;var K=SkZ(p.JSC$7149_sanitizerTable,M,h);a:{if(N=K.conditions){N=_.a(N);for(var t=N.next();!t.done;t=N.next()){var d=_.a(t.value);t=d.next().value;d=d.next().value;var v=void 0;if((t=(v=x.getNamedItem(t))==null?void 0:v.value)&&!d.has(t)){N=!1;break a}}}N=!0}if(N)switch(K.policyAction){case 1:p2(F,M,f);break;case 2:K=_.oEz(f);f=K!==void 0&&JCj.indexOf(K.toLowerCase())!==
-1?f:"about:invalid#zClosurez";p2(F,M,f);break;case 3:p2(F,M,f.toLowerCase());break;case 4:p.styleAttributeSanitizer?(f=p.styleAttributeSanitizer(f),p2(F,M,f)):p2(F,M,f);break;case 5:p.JSC$7149_resourceUrlPolicy?(K={type:2,attributeName:M,elementName:h},f=vHB(f),(f=p.JSC$7149_resourceUrlPolicy(f,K))&&p2(F,M,f.toString())):p2(F,M,f);break;case 6:if(p.JSC$7149_resourceUrlPolicy){K={type:2,attributeName:M,elementName:h};N=[];f=_.a(f.split(","));for(t=f.next();!t.done;t=f.next())d=_.a(t.value.trim().split(/\s+/,
2)),t=d.next().value,d=d.next().value,N.push({url:t,descriptor:d});f={parts:[]};N=_.a(N);for(t=N.next();!t.done;t=N.next())t=t.value,d=vHB(t.url),(d=p.JSC$7149_resourceUrlPolicy(d,K))&&f.parts.push({url:d.toString(),descriptor:t.descriptor});p2(F,M,EHw(f))}else p2(F,M,f)}}return F};
_.AeZ=to(function(){return new stB(Qtm)});
_.uck=to(function(){return new stB(z8B)});var Ykn=function(){this.calledBuild=!1;this.JSC$7161_sanitizerTable=Qtm},wHk=function(){Ykn.apply(this,arguments)};
_.E(wHk,Ykn);wHk.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new stB(this.JSC$7161_sanitizerTable,void 0,void 0,this.JSC$7161_resourceUrlPolicy)};var GXD=/[^#]*/;var jUp=function(p){try{return!!p&&p.location.href!=null&&k4$(p,"foo")}catch(x){return!1}},Wmn=function(p){var x=VHB;
if(x)for(var F in x)Object.prototype.hasOwnProperty.call(x,F)&&p(x[F],F,x)},H8l=function(){var p=[];
Wmn(function(x){p.push(x)});
return p},VHB={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"},mHK=_.Cy(function(){return H8l()}),O86=function(){var p=o_j("IFRAME"),
x={};
_.w1(mHK(),function(F){p.sandbox&&p.sandbox.supports&&p.sandbox.supports(F)&&(x[F]=!0)});
return x},o_j=function(p,x){x=x===void 0?document:x;
return x.createElement(String(p).toLowerCase())};var Xn=function(p){this.context=p};
Xn.prototype.isSupported=function(p){return(p==null?0:p.attributionEnabled)||(p==null?void 0:p.beaconMethod)==="POST"||(p==null?0:p.customHeaders)||(p==null?0:p.customBody)||(p==null?0:p.keepAlive)?!1:!dM(this.context)};
Xn.prototype.ping=function(){var p=this;return Si(_.we.apply(0,arguments).map(function(x){try{var F=p.context.global,N=!1;N=N===void 0?!1:N;F.google_image_requests||(F.google_image_requests=[]);var h=o_j("IMG",F.document);N&&(h.attributionSrc="");h.src=x;F.google_image_requests.push(h);return!0}catch(c){return!1}}).every(function(x){return x}))};
Xn.prototype.pingWithHeadersAndBody=function(p,x,F){this.ping.apply(this,_.se(_.we.apply(3,arguments)))};var jtI=function(p){this.context=p};
jtI.prototype.isSupported=function(p){return Lm6&&!dM(this.context)&&gHp(this.context)!==void 0&&!(p==null?0:p.attributionEnabled)&&(p==null?void 0:p.beaconMethod)!=="POST"&&!(p==null?0:p.customHeaders)&&!(p==null?0:p.customBody)};
jtI.prototype.makeBeacon=function(p,x){if(!this.isSupported(x))throw new Ky;return new gM(this.context,p)};
var Lm6=!1,gM=function(p,x){this.context=p;this.JSC$7183_urlWithoutToken=x;p=gHp(this.context);if(p===void 0)throw Error();this.wrappedBeacon=new p(PmD(this),{})},PmD=function(p){p=p.JSC$7183_urlWithoutToken;
return(p.slice(-1)[0]==="&"?p:p+"&")+"pbapi=1"};
gM.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
gM.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
gM.prototype.setHeader=function(){};
_.R8.Object.defineProperties(gM.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7183_urlWithoutToken},
set:function(p){this.JSC$7183_urlWithoutToken=p;this.wrappedBeacon.setURL(PmD(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(p){if(p!=="GET")throw new Ky;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var TDK=function(p){this.context=p};
TDK.prototype.isSupported=function(p){if((p==null?0:p.attributionEnabled)||(p==null?void 0:p.beaconMethod)==="GET"||(p==null?0:p.customHeaders)||(p==null?0:p.customBody)||(p==null?0:p.keepAlive))return!1;var x;return!dM(this.context)&&((x=this.context.global.navigator)==null?void 0:x.sendBeacon)!==void 0};
TDK.prototype.ping=function(){var p=this;return Si(_.we.apply(0,arguments).map(function(x){var F;return(F=p.context.global.navigator)==null?void 0:F.sendBeacon(x)}).every(function(x){return x}))};
TDK.prototype.pingWithHeadersAndBody=function(p,x,F){this.ping.apply(this,_.se(_.we.apply(3,arguments)))};var Dh=function(p){this.value=p},L2=function(p,x){return Si(p.value).pipe(aR(x))},Ty=new Dh(!1),a9k=new Dh(!0);var YH=function(p){this.value=p;this.releasedSubject=new lk};
YH.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.R8.Object.defineProperties(YH.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7196_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var WMr=["FRAME","IMG","IFRAME"],A_k=/^[01](px)?$/,VSw=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},Gyp=function(){var p=new VSw;
p.crossDomainLoadedDefault=!0;p.pendingImagesBlockLoad=!0;return p};var BDJ=function(p,x){var F=PkJ(p);if(F)if(F.onCreativeLoad)F.onCreativeLoad(x);else{var N=x?[x]:[],h=function(c){for(var M=0;M<N.length;++M)try{N[M](1,c)}catch(f){}N={push:function(f){f(1,c)}}};
F.onCreativeLoad=function(c){N.push(c)};
F.setAttribute("data-creative-load-listener","");F.addEventListener("creativeLoad",function(c){h(c.detail)});
_.Mm.addEventListener("message",function(c){LMM(F,h,c)})}};var za=function(p,x){var F=this;this.global=p;this.parentContext=x;this.JSC$7207_onVisibilityChange=this.document?YZ(Si(!0),AB(this.document,"visibilitychange")).pipe(W9(this.parentContext.performanceMonitor,748),zU(function(){return F.getVisibilityState()}),ji()):Si("visible");
this.document?AB(this.document,"DOMContentLoaded").pipe(W9(this.parentContext.performanceMonitor,739),Oe(1)):Si(y_k("DOMContentLoaded"))},c9E=function(p){return p.document!==null&&p.document.visibilityState!==void 0};
za.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
za.prototype.querySelector=function(p){return this.document?this.document.querySelector(p):null};
za.prototype.querySelectorAll=function(p){return this.document?_.Pr(this.document.querySelectorAll(p)):[]};
za.prototype.elementFromPoint=function(p,x){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;p=this.document.elementFromPoint(p,x);return p===null?null:new YH(p)};
var UGJ=function(p,x,F){F=F===void 0?!1:F;if(x.ref===void 0||!p.document)return Si(x).pipe(W9(p.parentContext.performanceMonitor,749));var N=new Ry(1),h=function(){N.next(x)};
F||BDJ(x.ref,h);H2k(x.ref,h);return N.pipe(W9(p.parentContext.performanceMonitor,749),Oe(1))};
_.R8.Object.defineProperties(za.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return k4$(this.global,"document")?this.global.document||null:null}}});var Tsp=_.B$(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),Bsp=_.B$(["./reach_worklet.js"]),Rtw=_.B$(["./reach_worklet.js"]),R8k=_.B$(["./reach_worklet.html"]),kXb=_.B$(["./reach_worklet.js"]),UH6=_.B$(["./reach_worklet.js"]);_.xH(R8k);_.xH(kXb);_.xH(UH6);var Wm={left:0,top:0,width:0,height:0};var sR;_.YV=function(p,x,F){return Math.min(Math.max(p,x),F)};
sR=function(p,x,F){return p+F*(x-p)};_.sT=function(p,x){this.x=p!==void 0?p:0;this.y=x!==void 0?x:0};
_.l=_.sT.prototype;_.l.clone=function(){return new _.sT(this.x,this.y)};
_.l.equals=function(p){return p instanceof _.sT&&(this==p?!0:this&&p?this.x==p.x&&this.y==p.y:!1)};
_.l.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.l.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.l.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.l.translate=function(p,x){p instanceof _.sT?(this.x+=p.x,this.y+=p.y):(this.x+=Number(p),typeof x==="number"&&(this.y+=x));return this};
_.l.scale=function(p,x){this.x*=p;this.y*=typeof x==="number"?x:p;return this};_.q1=function(p,x){this.width=p;this.height=x};
_.l=_.q1.prototype;_.l.clone=function(){return new _.q1(this.width,this.height)};
_.l.area=function(){return this.width*this.height};
_.l.aspectRatio=function(){return this.width/this.height};
_.l.isEmpty=function(){return!this.area()};
_.l.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.l.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.l.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.l.scale=function(p,x){this.width*=p;this.height*=typeof x==="number"?x:p;return this};var bK=function(p,x){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=p===qsp&&x||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=i8D};
bK.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var I8J=function(p){return p instanceof bK&&p.constructor===bK&&p.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===i8D?p.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},i8D={},qsp={};
new bK(qsp,"");var vm,Z0,yO,$HZ,xMD,pzj,n2,NeB,lnZ,h5J,Y5,cob,Z6J,qUB,KAI,tPD,dMZ,vEj,JoK,brE,CgZ,rol,EEb,SUk,ny,gEv;vm=function(p){return p?new ny(_.y5(p)):IoB||(IoB=new ny)};
_.Bt=function(p,x){return typeof x==="string"?p.getElementById(x):x};
Z0=function(p,x){return(x||document).getElementsByTagName(String(p))};
_.e8v=function(p){return $HZ("yt-formatted-string","paper-input-input",p)};
yO=function(p,x,F,N){p=N||p;return(x=x&&x!="*"?String(x).toUpperCase():"")||F?p.querySelectorAll(x+(F?"."+F:"")):p.getElementsByTagName("*")};
$HZ=function(p,x,F){var N=document,h=p&&p!="*"?String(p).toUpperCase():"";return h||x?(F||N).querySelector(h+(x?"."+x:"")):yO(N,p,x,F)[0]||null};
xMD=function(p,x){_.Q5.forEach(x,function(F,N){N=="style"?p.style.cssText=F:N=="class"?p.className=F:N=="for"?p.htmlFor=F:pzj.hasOwnProperty(N)?p.setAttribute(pzj[N],F):_.qm(N,"aria-")||_.qm(N,"data-")?p.setAttribute(N,F):p[N]=F})};
pzj={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"};_.t_=function(p){p=(p||window).document;p=p.compatMode=="CSS1Compat"?p.documentElement:p.body;return new _.q1(p.clientWidth,p.clientHeight)};
_.FAv=function(p){var x=_.bH(p);p=p.defaultView;return new _.sT(p.pageXOffset||x.scrollLeft,p.pageYOffset||x.scrollTop)};
_.bH=function(p){return p.scrollingElement?p.scrollingElement:_.fT||p.compatMode!="CSS1Compat"?p.body||p.documentElement:p.documentElement};
n2=function(p){return p?p.defaultView:window};
_.Aa=function(p,x,F){return NeB(document,arguments)};
NeB=function(p,x){var F=x[1],N=h5J(p,String(x[0]));F&&(typeof F==="string"?N.className=F:Array.isArray(F)?N.className=F.join(" "):xMD(N,F));x.length>2&&lnZ(p,N,x,2);return N};
lnZ=function(p,x,F,N){function h(f){f&&x.appendChild(typeof f==="string"?p.createTextNode(f):f)}
for(;N<F.length;N++){var c=F[N];if(!_.TB(c)||_.IJ(c)&&c.nodeType>0)h(c);else{a:{if(c&&typeof c.length=="number"){if(_.IJ(c)){var M=typeof c.item=="function"||typeof c.item=="string";break a}if(typeof c==="function"){M=typeof c.item=="function";break a}}M=!1}_.w1(M?_.Pr(c):c,h)}}};
_.KH=function(p){return h5J(document,p)};
h5J=function(p,x){x=String(x);p.contentType==="application/xhtml+xml"&&(x=x.toLowerCase());return p.createElement(x)};
_.uH=function(){return document.createTextNode("\n")};
Y5=function(p){if(p.nodeType!=1)return!1;switch(p.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};
cob=function(p,x){lnZ(_.y5(p),p,arguments,1)};
_.wM=function(p){for(var x;x=p.firstChild;)p.removeChild(x)};
_.Ga=function(p,x){x.parentNode&&x.parentNode.insertBefore(p,x)};
_.VO=function(p,x){x.parentNode&&x.parentNode.insertBefore(p,x.nextSibling)};
_.qc=function(p){return p&&p.parentNode?p.parentNode.removeChild(p):null};
_.anI=function(p,x){var F=x.parentNode;F&&F.replaceChild(p,x)};
_.MPv=function(p){var x,F=p.parentNode;if(F&&F.nodeType!=11)if(p.removeNode)p.removeNode(!1);else{for(;x=p.firstChild;)F.insertBefore(x,p);_.qc(p)}};
_.Wk=function(p){return p.children!=void 0?p.children:Array.prototype.filter.call(p.childNodes,function(x){return x.nodeType==1})};
_.fnJ=function(p){return p.nextElementSibling!==void 0?p.nextElementSibling:_.DMl(p.nextSibling,!0)};
_.DMl=function(p,x){for(;p&&p.nodeType!=1;)p=x?p.nextSibling:p.previousSibling;return p};
_.O0=function(p){return _.IJ(p)&&p.nodeType==1};
_.uI=function(p,x){if(!p||!x)return!1;if(p.contains&&x.nodeType==1)return p==x||p.contains(x);if(typeof p.compareDocumentPosition!="undefined")return p==x||!!(p.compareDocumentPosition(x)&16);for(;x&&p!=x;)x=x.parentNode;return x==p};
Z6J=function(p,x){if(p==x)return 0;if(p.compareDocumentPosition)return p.compareDocumentPosition(x)&2?1:-1;if("sourceIndex"in p||p.parentNode&&"sourceIndex"in p.parentNode){var F=p.nodeType==1,N=x.nodeType==1;if(F&&N)return p.sourceIndex-x.sourceIndex;var h=p.parentNode,c=x.parentNode;return h==c?KAI(p,x):!F&&_.uI(h,x)?-1*qUB(p,x):!N&&_.uI(c,p)?qUB(x,p):(F?p.sourceIndex:h.sourceIndex)-(N?x.sourceIndex:c.sourceIndex)}N=_.y5(p);F=N.createRange();F.selectNode(p);F.collapse(!0);p=N.createRange();p.selectNode(x);
p.collapse(!0);return F.compareBoundaryPoints(_.Mm.Range.START_TO_END,p)};
qUB=function(p,x){var F=p.parentNode;if(F==x)return-1;for(;x.parentNode!=F;)x=x.parentNode;return KAI(x,p)};
KAI=function(p,x){for(;x=x.previousSibling;)if(x==p)return-1;return 1};
tPD=function(p){var x,F=arguments.length;if(!F)return null;if(F==1)return arguments[0];var N=[],h=Infinity;for(x=0;x<F;x++){for(var c=[],M=arguments[x];M;)c.unshift(M),M=M.parentNode;N.push(c);h=Math.min(h,c.length)}c=null;for(x=0;x<h;x++){M=N[0][x];for(var f=1;f<F;f++)if(M!=N[f][x])return c;c=M}return c};
_.y5=function(p){return p.nodeType==9?p:p.ownerDocument||p.document};
dMZ=function(p){return p.contentDocument||p.contentWindow.document};
_.Hk=function(p,x){if("textContent"in p)p.textContent=x;else if(p.nodeType==3)p.data=String(x);else if(p.firstChild&&p.firstChild.nodeType==3){for(;p.lastChild!=p.firstChild;)p.removeChild(p.lastChild);p.firstChild.data=String(x)}else _.wM(p),p.appendChild(_.y5(p).createTextNode(String(x)))};
vEj={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};JoK={IMG:" ",BR:"\n"};brE=function(p){var x;p.tagName=="A"&&p.hasAttribute("href")||p.tagName=="INPUT"||p.tagName=="TEXTAREA"||p.tagName=="SELECT"||p.tagName=="BUTTON"?x=!p.disabled&&(!p.hasAttribute("tabindex")||CgZ(p)):x=p.hasAttribute("tabindex")&&CgZ(p);return x};
CgZ=function(p){p=p.tabIndex;return typeof p==="number"&&p>=0&&p<32768};
rol=function(p){var x=[];SUk(p,x,!0);p=x.join("");p=p.replace(/ \xAD /g," ").replace(/\xAD/g,"");p=p.replace(/\u200B/g,"");p=p.replace(/ +/g," ");p!=" "&&(p=p.replace(/^\s*/,""));return p};
EEb=function(p){var x=[];SUk(p,x,!1);return x.join("")};
SUk=function(p,x,F){if(!(p.nodeName in vEj))if(p.nodeType==3)F?x.push(String(p.nodeValue).replace(/(\r\n|\r|\n)/g,"")):x.push(p.nodeValue);else if(p.nodeName in JoK)x.push(JoK[p.nodeName]);else for(p=p.firstChild;p;)SUk(p,x,F),p=p.nextSibling};
_.Xzj=function(p,x,F){if(!x&&!F)return null;var N=x?String(x).toUpperCase():null;return _.uk(p,function(h){return(!N||h.nodeName==N)&&(!F||typeof h.className==="string"&&_.oJ(h.className.split(/\s+/),F))},!0)};
_.uk=function(p,x,F){p&&!F&&(p=p.parentNode);for(F=0;p;){if(x(p))return p;p=p.parentNode;F++}return null};
ny=function(p){this.JSC$7225_document_=p||_.Mm.document||document};
gEv=function(p){return p.JSC$7225_document_};
_.l=ny.prototype;_.l.getElement=function(p){return _.Bt(this.JSC$7225_document_,p)};
_.l.$=ny.prototype.getElement;_.l.getElementsByTagName=function(p,x){return(x||this.JSC$7225_document_).getElementsByTagName(String(p))};
_.l.getElementsByTagNameAndClass=function(p,x,F){return yO(this.JSC$7225_document_,p,x,F)};
_.l.$$=ny.prototype.getElementsByTagNameAndClass;_.l.setProperties=xMD;_.l.JSC$7227_createDom=function(p,x,F){return NeB(this.JSC$7225_document_,arguments)};
_.l.createElement=function(p){return h5J(this.JSC$7225_document_,p)};
_.l.createTextNode=function(p){return this.JSC$7225_document_.createTextNode(String(p))};
_.l.getWindow=function(){return this.JSC$7225_document_.defaultView};
var ds=function(p){return _.FAv(p.JSC$7225_document_)};
_.l=ny.prototype;_.l.appendChild=function(p,x){p.appendChild(x)};
_.l.append=cob;_.l.canHaveChildren=Y5;_.l.removeNode=_.qc;_.l.getChildren=_.Wk;_.l.contains=_.uI;_.l=K2.prototype;_.l.getWidth=function(){return this.right-this.left};
_.l.getHeight=function(){return this.bottom-this.top};
_.l.clone=function(){return new K2(this.top,this.right,this.bottom,this.left)};
_.l.contains=function(p){return this&&p?p instanceof K2?p.left>=this.left&&p.right<=this.right&&p.top>=this.top&&p.bottom<=this.bottom:p.x>=this.left&&p.x<=this.right&&p.y>=this.top&&p.y<=this.bottom:!1};
_.l.expand=function(p,x,F,N){_.IJ(p)?(this.top-=p.top,this.right+=p.right,this.bottom+=p.bottom,this.left-=p.left):(this.top-=p,this.right+=Number(x),this.bottom+=Number(F),this.left-=Number(N));return this};
_.l.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
_.l.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
_.l.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
_.l.translate=function(p,x){p instanceof _.sT?(this.left+=p.x,this.right+=p.x,this.top+=p.y,this.bottom+=p.y):(this.left+=p,this.right+=p,typeof x==="number"&&(this.top+=x,this.bottom+=x));return this};
_.l.scale=function(p,x){x=typeof x==="number"?x:p;this.left*=p;this.right*=p;this.top*=x;this.bottom*=x;return this};var ZHB=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(ZHB,_.Uk);ZHB.prototype.getVersion=function(){return _.uq(this,2)};var qy6=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(qy6,_.Uk);var cmB=function(p,x){return _.J_(p,2,x)},KXr=function(p,x){return _.J_(p,3,x)};
qy6.prototype.getModel=function(){return _.uq(this,4)};
var Mep=function(p,x){return _.J_(p,4,x)},l0w=function(p,x){return _.J_(p,5,x)},f0E=function(p,x){return _.J_(p,9,x)},hWB=function(p,x){return XV(p,10,x)},NvZ=function(p,x){return _.Nc(p,11,x)},a0M=function(p,x){return _.J_(p,1,x)},DcZ=function(p,x){return _.Nc(p,7,x)};var xcB="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var Pm=function(p,x,F,N){p=p===void 0?window:p;x=x===void 0?null:x;F=F===void 0?new eEI:F;N=N===void 0?kyp():N;jkj.call(this);var h=this;this.global=p;this.debugChannel=x;this.performanceMonitor=F;this.onPageHide=Whr(function(){return AB(h.global,"pagehide")}).pipe(W9(this.performanceMonitor,941));
this.onLoad=Whr(function(){return AB(h.global,"load")}).pipe(W9(this.performanceMonitor,738),Oe(1));
this.onResize=Whr(function(){return AB(h.global,"resize")}).pipe(W9(this.performanceMonitor,741));
this.onMessage=Whr(function(){return AB(h.global,"message")}).pipe(W9(this.performanceMonitor,740));
this.document=new za(this.global,this);this.timeProvider=new kmJ(new iZB(this.intrinsicFunctionNamespace,this.performanceMonitor),new UIb(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new TlC(new $I6(this),new jtI(this),new q8(this,new xH6(this)),new q8(this,new TDK(this)),new q8(this,new Xn(this)))};
_.E(Pm,jkj);var dM=function(p){var x=p.global;return!!p.global.HTMLFencedFrameElement&&!!x.fence&&typeof x.fence.reportEvent==="function"};
_.l=Pm.prototype;_.l.reportFencedFrameEvent=function(p){dM(this)&&this.global.fence.reportEvent(p)};
_.l.getOnBackgrounded=function(){return this.onPageHide.pipe(W9(this.performanceMonitor,942),aR(this.queue),zU(function(){}))};
_.l.postMessage=function(p,x,F){F=F===void 0?[]:F;this.global.postMessage(p,x,F)};
_.l.getWidth=function(){return jUp(this.global)?this.global.width:0};
_.l.getHeight=function(){return jUp(this.global)?this.global.height:0};
_.l.isMobile=function(){return NDn()||h86()};
var ws=function(p,x){try{var F=$1J(x,p.global,p.isMobile());return{left:F.left,top:F.top,width:F.getWidth(),height:F.getHeight()}}catch(N){return Wm}};
Pm.prototype.validate=function(){var p=this.beaconFactory.isSupported()||dM(this);return this.global&&this.timeProvider.available()&&p};
var ztd=function(p){return(p=dcp(p.global))?fM(p):null};
_.R8.Object.defineProperties(Pm.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(p){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!jUp(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}}});_.QMD=!_.ML&&!_.DmJ();var Mrm=function(p){return p};var f9z=function(p){return p.pipe(wn(function(x){var F=x.endOfSessionReason;var N;return((N=x.viewable)==null?void 0:N.extrapolateToNow().value)||F!=void 0}),Oe(1),mh())};var XSw=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},gCz=function(p){var x=p.sequenceNumber.toString(10).padStart(2,"0");
x=""+p.startTime+x;p.sequenceNumber<99&&p.sequenceNumber++;return x};var l9m=c9($Z(function(p){return p.endOfSessionReason===void 0}),zU(function(p){return Object.assign({},p,{timestamps:SS(p)})}),wn(function(p){var x=p.viewable;
p=p.timestamps;var F;return(F=x==null?void 0:x.extrapolateUsingTimestampMap(p).value)!=null?F:!1}),zU(function(p){var x=p.beaconFactory;
var F=p.timestampedExposureHistory;var N=p.timeOnScreen;var h=p.binaryContext;p=p.timestamps;if(x===void 0||F===void 0||N===void 0||h===void 0)return!1;if(N.extrapolateUsingTimestampMap(p).value.every(function(c){return c>=0}))return!0;
F=F.map(function(c){return c.timestamp+":"+c.value}).join(",");
N=QGr({bin:h,tos:N},p);x.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+N+("&eh="+F)).sendNow();return!0}),$Z(function(p){return!p}),mh());var sGz=function(p){return{id:p.pingId,mcvt:p.maxConsecutiveViewTime,p:p.creativePosition,asp:p.adSpeedPosition,tm:p.totalMeasurementTime,tu:p.totalUnviewedTime,mtos:p.maxTimeOnScreen,tos:p.timeOnScreen,v:p.binaryVersion,bin:p.binaryContext,avms:p.measurementStrategy,bs:p.browserSize,mc:p.maximumExposure,"if":p.crossDomainIframeState,vu:p.delayedImpressionJsState,app:p.inApp,mse:p.mraidError,mtop:p.mraidSituation,itpl:p.injectedTemplateId,adk:p.adKey,exk:p.awbidKey,rs:p.requestSource,la:p.isLargeAd,
cr:p.isContentRecommendationAd,uach:p.userAgentClientHints,vs:p.viewState,r:p.reasonCode,pay:p.hasCpmavUrl,co:p.clientPingOrderCounter,rst:p.adRenderStartTime,rpt:p.adRenderPeriodTime,isd:p.initialScrollDepth,lsd:p.loadedScrollDepth,context:p.errorContext,msg:p.errorMessage,stack:p.errorStack,name:p.errorName,ec:p.hasElementChanged,sfr:p.strategyFailureReasons,met:p.creativeSearchResult,wmsd:p.webMeasurementStartDiagnostic,pv:p.pageVisible,epv:p.eosPageVisible,pbe:p.inStatefulBeaconExperiment,fle:p.inFetchLaterBeaconExperiment,
vae:p.inViewableAttributionExperiment,spb:p.supportsPendingBeacon,sfl:p.supportsFetchLater,ffslot:p.isFencedFrameSlotTurtlex,reach:p.sharedStorageReachMode,io2:p.v2VisibilityBitVector,rxdbg:p.rxDebugger,omida:p.omidAppId,omidp:p.omidPartner,omidpv:p.omidPartnerVersion,omidor:p.omidOcclusionReasons,omidv:p.omidVersion,omids:p.omidSessionType,omidam:p.omidAccessMode,omidct:p.omidCreativeType,omidia:p.omidInApp,omiddc:p.omidDeviceCategory,omidlat:p.omidLastActivity,omiddit:p.omidDeviceIdleTime,qid:p.errorEscapedQueryId}};var D$k=function(p){var x=[];return p.pipe(zU(function(F){var N=F.beaconFactory,h=F.fetchBeaconFactory,c=F.timeOnScreen,M=F.timeOnScreenUrlPrefixes,f=F.payloadMapper,K=F.timeOnScreenPingId,t=F.timeOnScreenReason,d=F.urlSerializer,v=F.viewable,C=F.hasImpressionFired,X=F.inStatefulBeaconExperiment,Q=F.supportsPendingBeacon,b=F.supportsFetchLater,A=F.turtlexReportEventData;if(!F.geometryMeasurable||!C||F.maxTimeOnScreen===void 0||c===void 0||M===void 0||f===void 0||K===void 0||d===void 0||N===void 0)return!1;
if(F.isTurtlex){if(t===void 0)return!1;M=F.reportFencedFrameEvent;if(!M)return!1;M({eventType:"active-view-time-on-screen",eventData:A!=null?A:"",destination:["buyer"]});return!0}if(!(X||b||t))return!1;A=SS(F);var Y;v=(Y=v==null?void 0:v.extrapolateUsingTimestampMap(A).value)!=null?Y:!1;Y=d(Object.assign({},F,{pingId:K,viewState:v?4:3,reasonCode:t!=null?t:"u",payloadMapper:f,urlPrefixes:M}),A);if(X){for(;x.length>M.length;)F=void 0,(F=x.shift())==null||F.deactivate();Y.forEach(function(Fw,R){R>=x.length?
x.push(N.makeBeacon(Fw)):x[R].url=Fw});
return Q&&h&&t!==void 0?(Y.forEach(function(Fw){h.makeBeacon(Fw).sendNow()}),!0):t!==void 0}if(Q&&h&&t!==void 0)return Y.forEach(function(Fw){h.makeBeacon(Fw).sendNow()}),!0;
if(b&&h){for(;x.length>M.length;)Q=void 0,(Q=x.shift())==null||Q.deactivate();var O=d(Object.assign({},F,{pingId:K,viewState:v?4:3,reasonCode:t!=null?t:"u",payloadMapper:f,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),A)[0];Y.forEach(function(Fw,R){R>=x.length?x.push(N.makeBeacon(O,{endOfSession:!0})):x[R].url=O});
return t!==void 0?(Y.forEach(function(Fw){h.makeBeacon(Fw).sendNow()}),!0):t!==void 0}return t!==void 0?(Y.forEach(function(Fw){N.makeBeacon(Fw).sendNow()}),!0):!1}),$Z(function(F){return!F}),mh())};var Kgd=c9(wn(function(p){return p.immediateUrlPrefixes!==void 0&&p.payloadMapper!==void 0&&p.urlSerializer!==void 0&&p.inferredPingId!==void 0&&p.beaconFactory!==void 0}),wn(function(p){return G4H(p)!==null}),Yym(function(p){return p.activeViewUnmeasurableEvent},function(p){return p.emit}),zU(function(p){if(p.isTurtlex){var x=p.reportFencedFrameEvent;
if(x){var F;x({eventType:"active-view-unmeasurable",eventData:(F=p.turtlexReportEventData)!=null?F:"",destination:["buyer"]})}}else{F=void 0;var N=G4H(p);if(N==="x"){var h,c=(h=p.geometricMeasurementErrors)!=null?h:p.contextValidationErrors;c&&(x=c.stack,F=c.message)}p.urlSerializer(Object.assign({},p,{urlPrefixes:p.immediateUrlPrefixes,payloadMapper:p.payloadMapper,pingId:p.inferredPingId,viewState:2,reasonCode:N,errorMessage:F,errorStack:x}),SS(p)).forEach(function(M){p.beaconFactory.makeBeacon(M).sendNow()})}}),
Oe(1),mh());var VeM=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var haM=c9(wn(function(p){return p.payloadMapper!==void 0&&p.immediateUrlPrefixes!==void 0&&p.urlSerializer!==void 0&&p.inferredPingId!==void 0&&p.beaconFactory!==void 0}),zU(function(p){return Object.assign({},p,{timestamps:SS(p)})}),wn(function(p){var x=p.viewable;
var F=p.hasImpressionFired;p=p.timestamps;var N;return!!F&&((N=x==null?void 0:x.extrapolateUsingTimestampMap(p).value)!=null?N:!1)}),Yym(function(p){return p.activeViewViewableEvent},function(p){return p.emit}),zU(function(p){var x=p.beaconFactory,F=p.turtlexReportEventData;
if(p.isTurtlex){var N=p.reportFencedFrameEvent;if(!N)return!1;N({eventType:"active-view-viewable",eventData:F!=null?F:"",destination:["buyer"]});return!0}F=p.urlSerializer(Object.assign({},p,{urlPrefixes:p.immediateUrlPrefixes,payloadMapper:p.payloadMapper,pingId:p.inferredPingId,viewState:4,reasonCode:"v"}),p.timestamps);(N=p.cpmavUrls)&&N.length>0&&p.viewUrlSerializer&&p.viewUrlSerializer(N,p).forEach(function(h){x.makeBeacon(h).sendNow()});
(N=p.viewableRelayUrls)&&N.length>0&&p.viewUrlSerializer&&p.viewUrlSerializer(N,p).forEach(function(h){x.makeBeacon(h).sendNow()});
F.forEach(function(h){x.makeBeacon(h,{attributionEnabled:p.isViewableAttributionEnabled}).sendNow()});
return!0}),$Z(function(p){return!p}),mh());var sUH=zU(function(p){return[p.value.topWindowViewportExternalGeometry.width,p.value.topWindowViewportExternalGeometry.height]});var Gy=function(p,x){this.callback=p;this.options=x;this.intersectionObserverV2=this.intersectionObserverV1=null},DGH=function(p,x){x?p.intersectionObserverV2||(x=Object.assign({},p.options,{delay:100,
trackVisibility:!0}),p.intersectionObserverV2=new IntersectionObserver(p.callback,x)):p.intersectionObserverV1||(p.intersectionObserverV1=new IntersectionObserver(p.callback,p.options))},z5B=function(p,x){p=x?p.intersectionObserverV2:p.intersectionObserverV1;
if(!p)throw new LnI;return p};
Gy.prototype.observe=function(p,x){z5B(this,p).observe(x)};
Gy.prototype.unobserve=function(p,x){z5B(this,p).unobserve(x)};
Gy.prototype.disconnect=function(p){z5B(this,p).disconnect()};
Gy.prototype.takeRecords=function(p){return z5B(this,p).takeRecords()};var I0p={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Wm,topWindowViewportExternalGeometry:Wm,measurementRequests:new lk,elementGeometrySourceName:"ns",elementGeometry:Wm,intersectionGeometry:Wm,viewportLocalAppOffset:{x:0,y:0}};var mj=function(p,x,F,N){this.left=p;this.top=x;this.width=F;this.height=N};
_.l=mj.prototype;_.l.clone=function(){return new mj(this.left,this.top,this.width,this.height)};
_.l.boundingRect=function(p){var x=Math.max(this.left+this.width,p.left+p.width),F=Math.max(this.top+this.height,p.top+p.height);this.left=Math.min(this.left,p.left);this.top=Math.min(this.top,p.top);this.width=x-this.left;this.height=F-this.top};
_.l.contains=function(p){return p instanceof _.sT?p.x>=this.left&&p.x<=this.left+this.width&&p.y>=this.top&&p.y<=this.top+this.height:this.left<=p.left&&this.left+this.width>=p.left+p.width&&this.top<=p.top&&this.top+this.height>=p.top+p.height};
_.l.distance=function(p){var x=p.x<this.left?this.left-p.x:Math.max(p.x-(this.left+this.width),0);p=p.y<this.top?this.top-p.y:Math.max(p.y-(this.top+this.height),0);return Math.sqrt(x*x+p*p)};
_.l.getSize=function(){return new _.q1(this.width,this.height)};
_.l.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.l.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.l.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.l.translate=function(p,x){p instanceof _.sT?(this.left+=p.x,this.top+=p.y):(this.left+=p,typeof x==="number"&&(this.top+=x));return this};
_.l.scale=function(p,x){x=typeof x==="number"?x:p;this.left*=p;this.width*=p;this.top*=x;this.height*=x;return this};var nEv,j0,Ucz,OR,uKC,AoZ,YUJ,rap,wzl,VPD;_.ov=function(p,x,F){if(typeof x==="string")(x=_.sMB(p,x))&&(p.style[x]=F);else for(var N in x){F=p;var h=x[N],c=_.sMB(F,N);c&&(F.style[c]=h)}};
nEv={};_.sMB=function(p,x){var F=nEv[x];if(!F){var N=_.t8(x);F=N;p.style[N]===void 0&&(N=(_.fT?"Webkit":_.Dr?"Moz":null)+skv(N),p.style[N]!==void 0&&(F=N));nEv[x]=F}return F};
_.ND=function(p,x){var F=_.y5(p);return F.defaultView&&F.defaultView.getComputedStyle&&(p=F.defaultView.getComputedStyle(p,null))?p[x]||p.getPropertyValue(x)||"":""};
_.Am=function(p,x){return _.ND(p,x)||(p.currentStyle?p.currentStyle[x]:null)||p.style&&p.style[x]};
_.yoZ=function(p){return _.Am(p,"position")};
j0=function(p,x,F){if(x instanceof _.sT){var N=x.x;x=x.y}else N=x,x=F;p.style.left=OR(N,!1);p.style.top=OR(x,!1)};
Ucz=function(p){try{return p.getBoundingClientRect()}catch(x){return{left:0,top:0,right:0,bottom:0}}};
_.A_=function(p){var x=_.y5(p),F=new _.sT(0,0);if(p==(x?_.y5(x):document).documentElement)return F;p=Ucz(p);x=ds(vm(x));F.x=p.left+x.x;F.y=p.top+x.y;return F};
_.b6b=function(p,x,F){if(x instanceof _.q1)F=x.height,x=x.width;else if(F==void 0)throw Error("sa");p.style.width=OR(x,!0);p.style.height=OR(F,!0)};
OR=function(p,x){typeof p=="number"&&(p=(x?Math.round(p):p)+"px");return p};
uKC=function(p){return AoZ(p)};
AoZ=function(p){var x=YUJ;if(_.Am(p,"display")!="none")return x(p);var F=p.style,N=F.display,h=F.visibility,c=F.position;F.visibility="hidden";F.position="absolute";F.display="inline";p=x(p);F.display=N;F.position=c;F.visibility=h;return p};
YUJ=function(p){var x=p.offsetWidth,F=p.offsetHeight,N=_.fT&&!x&&!F;return(x===void 0||N)&&p.getBoundingClientRect?(p=Ucz(p),new _.q1(p.right-p.left,p.bottom-p.top)):new _.q1(x,F)};
rap=function(p){var x=_.A_(p);p=AoZ(p);return new mj(x.x,x.y,p.width,p.height)};
wzl=function(p,x){p=p.style;"opacity"in p?p.opacity=x:"MozOpacity"in p?p.MozOpacity=x:"filter"in p&&(p.filter=x===""?"":"alpha(opacity="+Number(x)*100+")")};
_.HS=function(p,x){p.style.display=x?"":"none"};
_.GlZ=function(p){return"rtl"==_.Am(p,"direction")};
VPD=function(p){var x=_.ND(p,"marginLeft"),F=_.ND(p,"marginRight"),N=_.ND(p,"marginTop");p=_.ND(p,"marginBottom");return new K2(parseFloat(N),parseFloat(F),parseFloat(p),parseFloat(x))};
_.WAm=function(p){var x=_.ND(p,"borderLeftWidth"),F=_.ND(p,"borderRightWidth"),N=_.ND(p,"borderTopWidth");p=_.ND(p,"borderBottomWidth");return new K2(parseFloat(N),parseFloat(F),parseFloat(p),parseFloat(x))};var H6Z=function(p){return p.intersectionGeometry.width*p.intersectionGeometry.height/(p.elementGeometry.width*p.elementGeometry.height)},dGp=Hm(c9(zU(function(p){var x;
return(x=p.exposureOverride)!=null?x:H6Z(p)}),zU(function(p){return isFinite(p)?p:0}))),Xe6=Hm(c9(zU(function(p){var x;
return(x=p.exposureOverride)!=null?x:H6Z(p)}),zU(function(p){return isFinite(p)?p:-1})));var Ly=function(p,x){this.a=p;this.b=x;if(p.clock.timeline!==x.clock.timeline)throw Error();};
Ly.prototype.equivalentTo=function(p){return p instanceof Ly?this.a.equivalentTo(p.a)&&this.b.equivalentTo(p.b):!1};
Ly.prototype.extrapolateToTime=function(p){var x=this.a.extrapolateToTime(p).value,F=this.b.extrapolateToTime(p).value;return{timestamp:p,value:[x,F]}};
_.R8.Object.defineProperties(Ly.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 p=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),x=this.a.lastMeasurement.timestamp.equals(p)?this.a.lastMeasurement.value:this.a.extrapolateToTime(p).value,F=this.b.lastMeasurement.timestamp.equals(p)?this.b.lastMeasurement.value:this.b.extrapolateToTime(p).value;return{timestamp:p,value:[x,F]}}}});var Pk=function(p,x){this.input=p;this.mapFunction=x;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
Pk.prototype.equivalentTo=function(p){return p instanceof Pk?this.input.equivalentTo(p.input)&&this.mapFunction===p.mapFunction:!1};
Pk.prototype.extrapolateToTime=function(p){p=this.input.extrapolateToTime(p);return{timestamp:p.timestamp,value:this.mapFunction(p.value)}};
_.R8.Object.defineProperties(Pk.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var Ta=function(){};
Ta.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
Ta.prototype.extrapolateUsingTimestampMap=function(p){var x=this.clock.timeline,F,N=(F=p.get(x))!=null?F:this.clock.now();p.set(x,N);return this.extrapolateToTime(N)};
Ta.prototype.map=function(p){return new mMC(this,p)};
Ta.prototype.joinWith=function(p){return new oEC(this,p)};
var oEC=function(){Ly.apply(this,arguments);this.map=Ta.prototype.map;this.joinWith=Ta.prototype.joinWith;this.extrapolateToNow=Ta.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Ta.prototype.extrapolateUsingTimestampMap};
_.E(oEC,Ly);var mMC=function(){Pk.apply(this,arguments);this.map=Ta.prototype.map;this.joinWith=Ta.prototype.joinWith;this.extrapolateToNow=Ta.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Ta.prototype.extrapolateUsingTimestampMap};
_.E(mMC,Pk);var OT=function(p,x){this.lastMeasurement=x;this.extrapolateToNow=Ta.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Ta.prototype.extrapolateUsingTimestampMap;this.map=Ta.prototype.map;this.joinWith=Ta.prototype.joinWith;this.clock=p};
OT.prototype.equivalentTo=function(p){return p.active};
OT.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.R8.Object.defineProperties(OT.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var zKB=zU(function(p){if(p.value.viewportGeometrySourceName==="omid"){if(p.value.elementGeometrySourceName==="nio")return"omio";if(p.value.elementGeometrySourceName==="geo")return"omgeo"}return p.value.elementGeometrySourceName==="geo"||p.value.elementGeometrySourceName==="nio"?p.value.viewportGeometrySourceName:p.value.elementGeometrySourceName});var q_$=c9(wn(function(p){return!isNaN(p)}),Ue(function(p,x){return isNaN(p)?x:Math.min(p,x)},NaN),ji());var vdB=Hm(c9(zU(function(p){return p.intersectionGeometry.width*p.intersectionGeometry.height/(p.exposedViewportLocalGeometry.width*p.exposedViewportLocalGeometry.height)}),zU(function(p){return isFinite(p)?Math.min(1,p):0})));var QUr=c9(Hm(zU(function(p){p=p.exposureOverride?p.elementGeometry.width*p.elementGeometry.height*p.exposureOverride/(p.topWindowViewportExternalGeometry.width*p.topWindowViewportExternalGeometry.height):p.intersectionGeometry.width*p.intersectionGeometry.height/(p.topWindowViewportExternalGeometry.width*p.topWindowViewportExternalGeometry.height);return isFinite(p)?p:0})));var bn$=function(p,x){var F=this;this.timeProvider=p;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=x.pipe(ji()).subscribe(function(N){uDd(F);F.measurementRequestObserver=N})},Y_k=function(p,x){uDd(p);
p.lastMeasurementRequest=p.timeProvider.setTimeout(function(){var F;return void((F=p.measurementRequestObserver)==null?void 0:F.next())},x)},uDd=function(p){p.lastMeasurementRequest!==null&&p.timeProvider.clearTimeout(p.lastMeasurementRequest);
p.lastMeasurementRequest=null};
bn$.prototype.dispose=function(){uDd(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var O6B=function(){};var x$r=function(p,x){this.context=p;this.strategies=x};
_.E(x$r,O6B);x$r.prototype.buildGeometrySource=function(p,x){var F=this.strategies.map(function(c){return c.buildGeometrySource(p,x)}),N=Hnk(F.map(function(c){return c.geometrySource})),h=N.capturedErrors.pipe(jMj());
return{geometrySource:N.chain.pipe(aR(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:h,strategyErrors:N.capturedErrors}].concat(_.se(F.map(function(c){return c.additionalOutputs}))))}};
var jMj=function(){return Ue(function(p,x){x instanceof ET?p.push(x.measurementStrategyFailureReason):p.push(-1);return p},[])};var N1B=function(p,x){this.context=p;this.poller=x};
_.E(N1B,O6B);N1B.prototype.buildGeometrySource=function(p,x){var F=mGr(Onp(this.context,this.poller),$cd(this.context,x.requestSource));return{geometrySource:WVk(p.measurableCreative.pipe(F),x.inApp),additionalOutputs:{}}};var FgB=function(p,x,F){F=F===void 0?hKk(p,x):F;this.context=p;this.intersectionObserverStrategy=F};
_.E(FgB,O6B);FgB.prototype.buildGeometrySource=function(p,x){var F=this.intersectionObserverStrategy(x.useV2);return{geometrySource:WVk(p.measurableCreative.pipe(F,lJ$(this.context)),x.inApp),additionalOutputs:{}}};var LAb=function(p,x,F){var N=N===void 0?Symbol():N;this.element=p;this.immediateUrls=x;this.timeOnScreenUrls=F;this.symbol=N};var yuz=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),RKM=Object.freeze([1,.75,yuz.exposureThreshold,yuz.largeAdExposureThreshold,0]);var o7w=function(p){var x=x===void 0?36E5:x;var F=F===void 0?!0:F;this.creatives=new lk;this.elementsToUnregister=new lk;this.elementMap=new Map;var N=new Pm(window,null);N.beaconFactory=new q8(N,new Xn(N));pwJ(N,this.creatives,this.elementsToUnregister,p,x,F).subscribe()},jYZ=function(p,x,F,N){if(!p.elementMap.has(x)){var h=new YH(x);
p.elementMap.set(x,h);p.creatives.next(new LAb(h,F,N))}},OGd=function(p,x){p.elementsToUnregister.next(x);
var F=p.elementMap.get(x);F!==void 0&&(F.release(),p.elementMap.delete(x))};var l$p=function(p){var x=p.url;p=p.uaDataValues;this.JSC$7336_url_=x;this.uaDataValues_=p;this.suid_=(new Date).getTime()-17040672E5},cDM=function(p){p=p.uaDataValues_;
if(!p)return"";var x=Bm("uap",p.platform)+Bm("uapv",p.platformVersion)+Bm("uafv",p.uaFullVersion)+Bm("uaa",p.architecture)+Bm("uam",p.model)+Bm("uab",p.bitness);p.fullVersionList&&(x+="&uafvl="+encodeURIComponent(p.fullVersionList.map(function(F){return encodeURIComponent(F.brand)+";"+encodeURIComponent(F.version)}).join("|")));
p.wow64!=null&&(x+="&uaw="+Number(p.wow64));return x.slice(1)};var PgB=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(PgB,_.Uk);PgB.prototype.getId=function(){return _.uq(this,1)};var Bk=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Bk,_.Uk);Bk.prototype.getSeconds=function(){return bq(this,1)};
Bk.prototype.setSeconds=function(p){return _.Ok(this,1,at(p),"0")};_.oI=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(_.oI,_.Uk);_.oI.prototype.getSeconds=function(){return bq(this,1)};
_.oI.prototype.setSeconds=function(p){return _.Ok(this,1,at(p),"0")};
_.Tem=function(p){var x=Number(wa(p,1));p=_.$H(p,2);return new Date(x*1E3+p/1E6)};var Rv=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Rv,_.Uk);Rv.prototype.getUrl=function(){return _.uq(this,1)};
Rv.prototype.setUrl=function(p){return _.II(this,1,p)};
Rv.prototype.getHeight=function(){return _.$H(this,2)};
Rv.prototype.getWidth=function(){return _.$H(this,3)};var k5=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(k5,_.Uk);k5.prototype.getAspectRatio=function(){return AH(this,1)};
k5.prototype.setAspectRatio=function(p){return _.Ok(this,1,_.Rk(p),0)};
k5.prototype.getDuration=function(){return _.B8(this,Bk,2)};var Ben=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Ben,_.Uk);var R5J=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(R5J,_.Uk);var klm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(klm,_.Uk);var UMv=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(UMv,_.Uk);var i6j=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(i6j,_.Uk);var $Mm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E($Mm,_.Uk);var e5k=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(e5k,_.Uk);var p9B=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(p9B,_.Uk);var xFB=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(xFB,_.Uk);var UR=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(UR,_.Uk);var iH=[2,4,5,6,7];var FhI=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(FhI,_.Uk);var Q8=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Q8,_.Uk);_.l=Q8.prototype;_.l.getId=function(){return _.B8(this,PgB,1)};
_.l.getName=function(){return _.uq(this,2)};
_.l.setDescription=function(p){return _.II(this,3,p)};
_.l.getUrl=function(){return _.uq(this,8)};
_.l.setUrl=function(p){return _.II(this,8,p)};
var Iv=function(p){return _.UT(p,Rv,10,_.ik())};
Q8.prototype.getOwner=function(p){var x=_.Va(this,40,_.dD,3,!0);BkM(x,p);return x[p]};
Q8.prototype.getVersion=function(){return bq(this,45)};
var $5=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E($5,_.Uk);_.NnC=[0,Okp,LSZ];_.hDK=[0,Okp,LSZ];var lCD=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(lCD,_.Uk);var e0=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(e0,_.Uk);e0.prototype.getStatus=function(){return _.Yg(this,1)};
e0.prototype.removeItem=function(p){return asr(this,2,p)};var cBI=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(cBI,_.Uk);cBI.prototype.getName=function(){return _.uq(this,8)};var pi=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(pi,_.Uk);pi.prototype.getCommand=function(){return _.Yg(this,1)};
pi.prototype.getSource=function(){return _.B8(this,cBI,2)};
pi.prototype.setVisible=function(p){return _.zZ(this,5,p)};
pi.prototype.removeItem=function(p){return asr(this,7,p)};var aCJ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(aCJ,_.Uk);aCJ.prototype.getCommand=function(){return _.Yg(this,1)};
aCJ.prototype.removeItem=function(p){return asr(this,4,p)};
var MiI=_.cz(aCJ);var xj=function(p,x,F){F=F===void 0?Error():F;var N=Error.call(this);this.message=N.message;"stack"in N&&(this.stack=N.stack);this.code=p;x+=":";F instanceof Error?(this.message=x+F.message,this.stack=F.stack||""):(this.message=x+String(F),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.E(xj,Error);_.Jm=function(){this.JSC$7394_disposed_=this.JSC$7394_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.Jm.prototype.JSC$7394_disposed_=!1;_.Jm.prototype.isDisposed=function(){return this.JSC$7394_disposed_};
_.Jm.prototype.dispose=function(){this.JSC$7394_disposed_||(this.JSC$7394_disposed_=!0,this.disposeInternal())};
_.Jm.prototype[Symbol.dispose]=function(){this.dispose()};
_.aG=function(p,x){p.addOnDisposeCallback(_.Sz(_.RR,x))};
_.Jm.prototype.addOnDisposeCallback=function(p,x){this.JSC$7394_disposed_?x!==void 0?p.call(x):p():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),x&&(p=p.bind(x)),this.onDisposeCallbacks_.push(p))};
_.Jm.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Fq=function(p){_.Jm.call(this);this.wpc=p};
_.E(Fq,_.Jm);Fq.prototype.uTs=function(){return this.wpc.f()};
Fq.prototype.xiG=function(p){return this.wpc.c(p)};
Fq.prototype.i0=function(p){return this.wpc.m(CO6(p))};
Fq.prototype.vy=function(p){return this.wpc.mws(CO6(p))};
var kH=function(p){_.Jm.call(this);var x=this;this.zW=p;this.wTe="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.m6E=void 0;this.tL8=this.zW.p;this.sOR=this.bGf.bind(this);this.addOnDisposeCallback(function(){return void DFB(x)})};
_.E(kH,_.Jm);var fCv=function(p){var x;return _.D(function(F){if(F.nextAddress==1){if(!p.zW.wpc)throw new xj(30,"NWA");return p.ivm?F.return(p.ivm):_.q(F,p.zW.wpc(),2)}x=F.yieldResult;p.ivm=new Fq(x);return F.return(p.ivm)})};
kH.prototype.snapshot=function(p){return this.zW.s(Object.assign({},p.cz&&{c:p.cz},p.u38&&{s:p.u38},p.i7y!==void 0&&{p:p.i7y}))};
kH.prototype.bGf=function(p){this.zW.e(p)};
kH.prototype.vgs=function(p,x){return this.zW.c(p,x,!1)};
var DFB=function(p){p.m6E!==void 0&&(p.wTe.forEach(function(x){var F;(F=p.m6E)==null||F.removeEventListener(x,p.sOR)}),p.m6E=void 0)};
kH.prototype.tsf=function(){return this.zW.l()};var KhB,Ni=function(){_.Jm.apply(this,arguments);this.mhE=1;this[KhB]=this.dispose};
_.E(Ni,_.Jm);Ni.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.mhE++;return this};
Ni.prototype.dispose=function(){--this.mhE||_.Jm.prototype.dispose.call(this)};
KhB=Symbol.dispose;var Otm=function(p){this.hpL=p;p.addNewEventMetric("/client_streamz/bg/frs",_.F2("mk"))};
Otm.prototype.record=function(p,x){this.hpL.record("/client_streamz/bg/frs",p,x)};
var T1r=function(p){this.ksf=p;p.addNewEventMetric("/client_streamz/bg/wrl",_.F2("mn"),xC("ac"),xC("sc"),_.F2("rk"),_.F2("mk"))};
T1r.prototype.record=function(p,x,F,N,h,c){this.ksf.record("/client_streamz/bg/wrl",p,x,F,N,h,c)};
var LgM=function(p){this.vDX=p;p.addNewCounter("/client_streamz/bg/ec",_.F2("en"),_.F2("mk"))};
LgM.prototype.increment=function(p,x){this.vDX.JSC$7643_incrementCounter("/client_streamz/bg/ec",p,x)};
var POp=function(p){this.epw=p;p.addNewEventMetric("/client_streamz/bg/el",_.F2("en"),_.F2("mk"))};
POp.prototype.record=function(p,x,F){this.epw.record("/client_streamz/bg/el",p,x,F)};
var jD$=function(p){this.i7z=p;p.addNewCounter("/client_streamz/bg/cec",xC("ec"),_.F2("mk"))};
jD$.prototype.increment=function(p,x){this.i7z.JSC$7643_incrementCounter("/client_streamz/bg/cec",p,x)};
var B1$=function(p){this.nDf=p;p.addNewCounter("/client_streamz/bg/po/csc",xC("cs"),_.F2("mk"))};
B1$.prototype.increment=function(p,x){this.nDf.JSC$7643_incrementCounter("/client_streamz/bg/po/csc",p,x)};
var RaH=function(p){this.b7f=p;p.addNewCounter("/client_streamz/bg/po/ctav",_.F2("av"),_.F2("mk"))};
RaH.prototype.increment=function(p,x){this.b7f.JSC$7643_incrementCounter("/client_streamz/bg/po/ctav",p,x)};
var knk=function(p){this.cCL=p;p.addNewCounter("/client_streamz/bg/po/cwsc",_.F2("su"),_.F2("mk"))};
knk.prototype.increment=function(p,x){this.cCL.JSC$7643_incrementCounter("/client_streamz/bg/po/cwsc",p,x)};var FWr=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(FWr,_.Uk);var xEM=function(p,x){return _.mm(p,3,x,ZZk)};var qeI=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(qeI,_.Uk);var ZMJ=[1,2,3];var tin=[0,ZMJ,_.kEz,PFw,RBB];var dFJ=[0,_.kg,[0,HkJ,_.PW]];var vZ6=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(vZ6,_.Uk);var JBZ=[1,2,3];var C2K=[0,JBZ,jQB,m6M,_.U6,dFJ];var SeK=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(SeK,_.Uk);var rBl=[0,_.kg,tin,C2K];var EZJ=[0,[1,2,3],_.U6,[0,_.RE,-1,_.BW],_.U6,[0,_.RE,-1,_.T5,_.BW],_.U6,[0,_.RE]];var X9D=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(X9D,_.Uk);X9D.prototype.JSC$7463_serializeBinary=gEM([0,_.RE,EZJ,U6J,_.kg,rBl,TpB,Bpp]);var gZl=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(gZl,_.Uk);var syl=function(p){var x=new X9D;x=_.J_(x,1,p.JSC$7579_metricName);var F=QyD(p);x=_.mm(x,3,F,_.Z8);F=[];for(var N=[],h=_.a(p.cellMap.keys()),c=h.next();!c.done;c=h.next())N.push(c.value.split(","));for(h=0;h<N.length;h++){c=N[h];for(var M=p.cellType,f=p.getCells(c)||[],K=[],t=0;t<f.length;t++){var d=f[t],v=d&&d.cellValue;d=new vZ6;switch(M){case 3:v=Number(v);Number.isFinite(v)&&ac(d,1,JBZ,at(v));break;case 2:ac(d,2,JBZ,_.Rk(Number(v)))}K.push(d)}M=K;for(f=0;f<M.length;f++){K=M[f];t=new SeK;K=_.f6(t,
2,K);t=[];d=zDb(p);for(v=0;v<d.length;v++){var C=d[v],X=c[v],Q=new qeI;switch(C){case 3:ac(Q,1,ZMJ,te(String(X)));break;case 2:C=Number(X);Number.isFinite(C)&&ac(Q,2,ZMJ,_.p8(C));break;case 1:ac(Q,3,ZMJ,fKm(X==="true"))}t.push(Q)}XV(K,1,t);F.push(K)}}XV(x,4,F);return x};var nZj=function(p){if(!p)return"";if(/^about:(?:blank|srcdoc)$/.test(p))return window.origin||"";p.indexOf("blob:")===0&&(p=p.substring(5));p=p.split("#")[0].split("?")[0];p=p.toLowerCase();p.indexOf("//")==0&&(p=window.location.protocol+p);/^[\w\-]*:\/\//.test(p)||(p=window.location.href);var x=p.substring(p.indexOf("://")+3),F=x.indexOf("/");F!=-1&&(x=x.substring(0,F));F=p.substring(0,p.indexOf("://"));if(!F)throw Error("ua`"+p);if(F!=="http"&&F!=="https"&&F!=="chrome-extension"&&F!=="moz-extension"&&
F!=="file"&&F!=="android-app"&&F!=="chrome-search"&&F!=="chrome-untrusted"&&F!=="chrome"&&F!=="app"&&F!=="devtools")throw Error("va`"+F);p="";var N=x.indexOf(":");if(N!=-1){var h=x.substring(N+1);x=x.substring(0,N);if(F==="http"&&h!=="80"||F==="https"&&h!=="443")p=":"+h}return F+"://"+x+p};var bMl=function(p,x,F){var N=String(_.Mm.location.href);return N&&p&&x?[x,yBJ(nZj(N),p,F||null)].join(" "):null},yBJ=function(p,x,F){var N=[],h=[];
if((Array.isArray(F)?2:1)==1)return h=[x,p],_.w1(N,function(f){h.push(f)}),ABm(h.join(" "));
var c=[],M=[];_.w1(F,function(f){M.push(f.key);c.push(f.value)});
F=Math.floor((new Date).getTime()/1E3);h=c.length==0?[F,x,p]:[c.join(":"),F,x,p];_.w1(N,function(f){h.push(f)});
p=ABm(h.join(" "));p=[F,p];M.length==0||p.push(M.join(""));return p.join("_")},ABm=function(p){var x=sDz();
x.update(p);return x.digestString().toLowerCase()};var hh=function(p){this.JSC$7474_document_=p||{cookie:""}},uBC;
_.l=hh.prototype;_.l.isEnabled=function(){if(!_.Mm.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
_.l.set=function(p,x,F){var N=!1;if(typeof F==="object"){var h=F.sameSite;N=F.secure||!1;var c=F.domain||void 0;var M=F.path||void 0;var f=F.maxAge}if(/[;=\s]/.test(p))throw Error("wa`"+p);if(/[;\r\n]/.test(x))throw Error("xa`"+x);f===void 0&&(f=-1);F=c?";domain="+c:"";M=M?";path="+M:"";N=N?";secure":"";f=f<0?"":f==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+f*1E3)).toUTCString();this.JSC$7474_document_.cookie=p+"="+x+F+M+f+N+(h!=null?";samesite="+h:"")};
_.l.get=function(p,x){for(var F=p+"=",N=(this.JSC$7474_document_.cookie||"").split(";"),h=0,c;h<N.length;h++){c=_.hH(N[h]);if(c.lastIndexOf(F,0)==0)return c.slice(F.length);if(c==p)return""}return x};
_.l.remove=function(p,x,F){var N=this.containsKey(p);this.set(p,"",{maxAge:0,path:x,domain:F});return N};
_.l.getKeys=function(){return uBC(this).keys};
_.l.getValues=function(){return uBC(this).values};
_.l.isEmpty=function(){return!this.JSC$7474_document_.cookie};
_.l.getCount=function(){return this.JSC$7474_document_.cookie?(this.JSC$7474_document_.cookie||"").split(";").length:0};
_.l.containsKey=function(p){return this.get(p)!==void 0};
_.l.containsValue=function(p){for(var x=uBC(this).values,F=0;F<x.length;F++)if(x[F]==p)return!0;return!1};
_.l.clear=function(){for(var p=uBC(this).keys,x=p.length-1;x>=0;x--)this.remove(p[x])};
uBC=function(p){p=(p.JSC$7474_document_.cookie||"").split(";");for(var x=[],F=[],N,h,c=0;c<p.length;c++)h=_.hH(p[c]),N=h.indexOf("="),N==-1?(x.push(""),F.push(h)):(x.push(h.substring(0,N)),F.push(h.substring(N+1)));return{keys:x,values:F}};
_.ax=new hh(typeof document=="undefined"?null:document);var Oqd=function(){var p=_.Mm.__SAPISID||_.Mm.__APISID||_.Mm.__3PSAPISID||_.Mm.__1PSAPISID||_.Mm.__OVERRIDE_SID;if(p)return!0;typeof document!=="undefined"&&(p=new hh(document),p=p.get("SAPISID")||p.get("APISID")||p.get("__Secure-3PAPISID")||p.get("__Secure-1PAPISID"));return!!p},YeC=function(p,x,F,N){(p=_.Mm[p])||typeof document==="undefined"||(p=(new hh(document)).get(x));
return p?bMl(p,F,N):null},GDB=function(p){var x=nZj(String(_.Mm.location.href)),F=[];
if(Oqd()){x=x.indexOf("https:")==0||x.indexOf("chrome-extension:")==0||x.indexOf("chrome-untrusted://new-tab-page")==0||x.indexOf("moz-extension:")==0;var N=x?_.Mm.__SAPISID:_.Mm.__APISID;N||typeof document==="undefined"||(N=new hh(document),N=N.get(x?"SAPISID":"APISID")||N.get("__Secure-3PAPISID"));(N=N?bMl(N,x?"SAPISIDHASH":"APISIDHASH",p):null)&&F.push(N);x&&((x=YeC("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",p))&&F.push(x),(p=YeC("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",p))&&F.push(p))}return F.length==
0?null:F.join(" ")};var w9J=function(){this.minSize=1024};
w9J.prototype.compress=function(p){var x,F,N,h;return _.D(function(c){switch(c.nextAddress){case 1:return x=new CompressionStream("gzip"),F=(new Response(x.readable)).arrayBuffer(),N=x.writable.getWriter(),_.q(c,N.write((new TextEncoder).encode(p)),2);case 2:return _.q(c,N.close(),3);case 3:return h=Uint8Array,_.q(c,F,4);case 4:return c.return(new h(c.yieldResult))}})};
w9J.prototype.isSupported=function(p){return p<this.minSize?!1:typeof CompressionStream!=="undefined"};var GUK=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(GUK,_.Uk);var lM=function(p,x){this.intervalMs=p;this.callback=x;this.enabled=!1;this.nowFn=function(){return _.FV()};
this.lastTimeMs=this.nowFn()};
lM.prototype.setInterval=function(p){this.intervalMs=p;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
lM.prototype.start=function(){var p=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){p.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
lM.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
lM.prototype.tick=function(){var p=this;if(this.enabled){var x=Math.max(this.nowFn()-this.lastTimeMs,0);x<this.intervalMs*.8?this.timer=setTimeout(function(){p.tick()},this.intervalMs-x):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var Vim=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Vim,_.Uk);var Whb=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Whb,_.Uk);var HMZ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(HMZ,_.Uk);HMZ.prototype.getTransmissionType=function(){return _.Yg(this,1)};var btH=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(btH,_.Uk);btH.prototype.getVersion=function(){return _.uq(this,2)};var cs=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(cs,_.Uk);var A9H=function(p,x){XV(p,1,x)};
cs.prototype.getModel=function(){return _.uq(this,6)};
var mFl=_.cz(cs);var oZj=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(oZj,_.Uk);var nFH=["platform","platformVersion","architecture","model","uaFullVersion"],uGB=new cs,y9p=null;var OMJ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(OMJ,_.Uk);var jym=function(p){return _.Rx(p,1,1)};var LhZ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p,4)};
_.E(LhZ,_.Uk);_.aX=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p,36)};
_.E(_.aX,_.Uk);_.aX.prototype.getExperimentIds=function(){return _.B8(this,GUK,16)};var P2Z=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p,19)};
_.E(P2Z,_.Uk);P2Z.prototype.setLogSource=function(p){return _.Rx(this,2,p)};
P2Z.prototype.setScheduler=function(p){return _.Rx(this,10,p)};var BnB=function(p,x){this.isServiceWorkerScope=x=x===void 0?!1:x;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new P2Z;Number.isInteger(p)&&this.logRequest.setLogSource(p);x||(this.locale=document.documentElement.getAttribute("lang"));TnI(this,new OMJ)};
BnB.prototype.setLogSource=function(p){this.logRequest.setLogSource(p);return this};
var TnI=function(p,x){_.f6(p.logRequest,1,x);_.Yg(x,1)||jym(x);p.isServiceWorkerScope||(x=Mi(p),_.uq(x,5)||_.J_(x,5,p.locale));p.uach&&(x=Mi(p),_.B8(x,cs,9)||_.f6(x,9,p.uach))},RDJ=function(p,x){p.transmissionType=x},kUC=function(p){var x=x===void 0?nFH:x;
var F=p.isServiceWorkerScope?void 0:n2();F?YdM(F,x).then(function(N){p.uach=mFl(N!=null?N:"[]");N=Mi(p);_.f6(N,9,p.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Mi=function(p){p=_.B8(p.logRequest,OMJ,1);
var x=_.B8(p,oZj,11);x||(x=new oZj,_.f6(p,11,x));return x};
BnB.prototype.build=function(p,x,F,N,h,c){x=x===void 0?0:x;F=F===void 0?0:F;N=N===void 0?null:N;h=h===void 0?0:h;c=c===void 0?0:c;if(!this.isServiceWorkerScope){var M=Mi(this);var f=new HMZ;f=_.Rx(f,1,this.transmissionType);f=_.Nc(f,2,this.isFinal);F=_.WW(f,3,F>0?F:void 0);F=_.WW(F,4,h>0?h:void 0);F=_.WW(F,5,c>0?c:void 0);h=F.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;c=h[_.DK]|0;F=Ev(F,c)?F:new F.constructor(bm(h,c));_.f6(M,10,F)}M=this.logRequest.clone();F=Date.now().toString();M=_.k3(M,
4,at(F));p=p.slice();p=XV(M,3,p);N&&(M=new Vim,N=_.WW(M,13,N),M=new Whb,N=_.f6(M,2,N),M=new LhZ,N=_.f6(M,1,N),N=_.Rx(N,2,9),_.f6(p,18,N));x&&_.tT(p,14,x);return p};hm.prototype.currBackoffCount_=0;hm.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
hm.prototype.getValue=function(){return this.currValue_};
var UFj=function(p){p.currBaseValue_=Math.min(p.maxValue_,p.currBaseValue_*p.backoffFactor_);p.currValue_=Math.min(p.maxValue_,p.currBaseValue_+(p.randomFactor_?Math.round(p.randomFactor_*(Math.random()-.5)*2*p.currBaseValue_):0));p.currBackoffCount_++};var prD=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p,8)};
_.E(prD,_.Uk);var iMB=_.cz(prD);var xmB=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(xmB,_.Uk);var Dq;Dq=new FHv;var fi=function(p){_.Jm.call(this);var x=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7552_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$7552_sendBeaconApiEnabled=!1;this.logSource=p.logSource;this.getAuthHeaderValue=
p.getAuthHeaderValue||function(){};
this.logRequestBuilder=new BnB(p.logSource,p.isServiceWorkerScope);this.network=p.network||null;this.productID=p.productID||null;this.clearcutUrl=p.urlOverride||null;this.sessionIndex=p.sessionIndex||null;this.disableAutomaticFlush=p.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!p.disableWithCredentials;this.isServiceWorkerScope=p.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!n2()&&!!n2().navigator&&n2().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(ICj())).searchParams&&!!(new URL(ICj())).searchParams.set;var F=jym(new OMJ);TnI(this.logRequestBuilder,F);this.flushBackoff=new hm(1E4,3E5,.1);p=$FB(this,p.backgroundJobDeferrer);this.JSC$7552_flushTimer=new lM(this.flushBackoff.getValue(),p);this.backupTimer=new lM(6E5,p);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){eDm(x);
var N;(N=x.metalogService)==null||N.flush()}}),document.addEventListener("pagehide",function(){eDm(x);
var N;(N=x.metalogService)==null||N.flush()}))};
_.E(fi,_.Jm);var $FB=function(p,x){return p.isBrowserSupported?x?function(){x().then(function(){p.flush()})}:function(){p.flush()}:function(){}};
fi.prototype.disposeInternal=function(){eDm(this);this.JSC$7552_flushTimer.stop();this.backupTimer.stop();_.Jm.prototype.disposeInternal.call(this)};
var pmj=function(p){p.clearcutUrl||(p.clearcutUrl=ICj());try{return(new URL(p.clearcutUrl)).toString()}catch(x){return(new URL(p.clearcutUrl,n2().location.origin)).toString()}};
fi.prototype.dispatch=function(p){if(p instanceof _.aX)this.log(p);else try{var x=new _.aX,F=p.serialize();var N=_.J_(x,8,F);this.log(N)}catch(h){Ki(this,4,1)}};
var Ki=function(p,x,F){p.metalogService&&p.metalogService.increment(x,F)};
fi.prototype.log=function(p){Ki(this,2,1);if(this.isBrowserSupported){p=p.clone();var x=this.sequencePosition++;p=_.tT(p,21,x);this.componentId&&_.J_(p,26,this.componentId);x=p;if(bZM(_.da(x,1))==null){var F=Date.now();F=Number.isFinite(F)?F.toString():"0";_.k3(x,1,at(F))}_.z5(x,15)!=null||_.tT(x,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(F=this.experimentIds.clone(),_.f6(x,16,F));Ki(this,1,1);x=this.pendingEvents.length-1E3+1;x>0&&(this.pendingEvents.splice(0,x),this.numLogsDroppedSinceLastFlush+=
x,Ki(this,3,x));this.pendingEvents.push(p);this.disableAutomaticFlush||this.JSC$7552_flushTimer.enabled||this.JSC$7552_flushTimer.start()}};
fi.prototype.flush=function(p,x){var F=this;if(this.pendingEvents.length===0)p&&p();else if(this.JSC$7552_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,x1D(this);else{var N=Date.now();if(this.noFlushUntilMs>N&&this.startWaitingMs<N)x&&x("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?RDJ(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var h=this.pendingEvents.length,
c=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),M=this.getAuthHeaderValue();if(M&&this.lastFailedAuth===M)x&&x("stale-auth-token");else{this.pendingEvents=[];this.JSC$7552_flushTimer.enabled&&this.JSC$7552_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;N=c.serialize();var f;this.JSC$7552_compressor&&this.JSC$7552_compressor.isSupported(N.length)&&
(f=this.JSC$7552_compressor.compress(N));var K=FMv(this,N,M),t=function(C){F.flushBackoff.reset();F.JSC$7552_flushTimer.setInterval(F.flushBackoff.getValue());if(C){var X=null;try{var Q=JSON.stringify(JSON.parse(C.replace(")]}'\n","")));X=iMB(Q)}catch(b){}X&&(C=Number(bq(X,1,_.VJ("-1"))),C>0&&(F.startWaitingMs=Date.now(),F.noFlushUntilMs=F.startWaitingMs+C),R6d(X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Dq.fieldIndex),X=Dq.ctor?Dq.getExtensionFn(X,Dq.ctor,Dq.fieldIndex,Dq.JSC$6724_hasMessageId):
Dq.getExtensionFn(X,Dq.fieldIndex,null,Dq.JSC$6724_hasMessageId),X=X===null?void 0:X)&&(X=_.$H(X,1,-1),X!==-1&&(F.flushBackoff=new hm(X<1?1:X,3E5,.1),F.JSC$7552_flushTimer.setInterval(F.flushBackoff.getValue())))}p&&p();F.numRetriesSinceLastSuccessfulFlush=0},d=function(C,X){var Q=_.UT(c,_.aX,3,_.ik());
var b=Number(bq(c,14));UFj(F.flushBackoff);F.JSC$7552_flushTimer.setInterval(F.flushBackoff.getValue());C===401&&M&&(F.lastFailedAuth=M);b&&(F.numLogsDroppedSinceLastFlush+=b);X===void 0&&(X=F.isRetryable(C));X&&(F.pendingEvents=Q.concat(F.pendingEvents),F.disableAutomaticFlush||F.JSC$7552_flushTimer.enabled||F.JSC$7552_flushTimer.start());Ki(F,7,1);x&&x("net-send-failed",C);++F.numRetriesSinceLastSuccessfulFlush},v=function(){F.network&&F.network.send(K,t,d)};
f?f.then(function(C){Ki(F,5,h);K.requestHeaders["Content-Encoding"]="gzip";K.requestHeaders["Content-Type"]="application/binary";K.body=C;K.bodyType=2;v()},function(){Ki(F,6,h);
v()}):v()}}}};
var FMv=function(p,x,F){F=F===void 0?null:F;var N=N===void 0?p.withCredentials:N;var h={},c=new URL(pmj(p));F&&(h.Authorization=F);p.sessionIndex&&(h["X-Goog-AuthUser"]=p.sessionIndex,c.searchParams.set("authuser",p.sessionIndex));p.pageId&&(Object.defineProperty(h,"X-Goog-PageId",{value:p.pageId}),c.searchParams.set("pageId",p.pageId));return{url:c.toString(),body:x,bodyType:1,requestHeaders:h,requestType:"POST",withCredentials:N,timeoutMillis:p.timeoutMillis}},eDm=function(p){p.logRequestBuilder.isFinal=
!0;
p.flush();p.logRequestBuilder.isFinal=!1},x1D=function(p){Nsm(p,function(x,F){x=new URL(x);
x.searchParams.set("format","json");var N=!1;try{N=n2().navigator.sendBeacon(x.toString(),F.serialize())}catch(h){}N||(p.isSendBeaconSupported=!1);return N})},Nsm=function(p,x){if(p.pendingEvents.length!==0){var F=new URL(pmj(p));
F.searchParams.delete("format");var N=p.getAuthHeaderValue();N&&F.searchParams.set("auth",N);F.searchParams.set("authuser",p.sessionIndex||"0");for(N=0;N<10&&p.pendingEvents.length;++N){var h=p.pendingEvents.slice(0,32),c=p.logRequestBuilder.build(h,p.numLogsDroppedSinceLastFlush,p.numRetriesSinceLastSuccessfulFlush,p.productID,p.persistedLogRecoveredCount,p.persistedLogExpiredCount);if(!x(F.toString(),c)){++p.numRetriesSinceLastSuccessfulFlush;break}p.numLogsDroppedSinceLastFlush=0;p.numRetriesSinceLastSuccessfulFlush=
0;p.persistedLogRecoveredCount=0;p.persistedLogExpiredCount=0;p.pendingEvents=p.pendingEvents.slice(h.length)}p.JSC$7552_flushTimer.enabled&&p.JSC$7552_flushTimer.stop()}};
fi.prototype.isRetryable=function(p){return 500<=p&&p<600||p===401||p===0};
var ICj=function(){return"https://play.google.com/log?format=json&hasfast=true"};var htC=function(){this.abortSupported=typeof AbortController!=="undefined"};
htC.prototype.send=function(p,x,F){var N=this,h,c,M,f,K,t,d,v,C,X;return _.D(function(Q){switch(Q.nextAddress){case 1:return c=(h=N.abortSupported?new AbortController:void 0)?setTimeout(function(){h.abort()},p.timeoutMillis):void 0,_.KM(Q,2,3),M=Object.assign({},{method:p.requestType,
headers:Object.assign({},p.requestHeaders)},p.body&&{body:p.body},p.withCredentials&&{credentials:"include"},{signal:p.timeoutMillis&&h?h.signal:null}),_.q(Q,fetch(p.url,M),5);case 5:f=Q.yieldResult;if(f.status!==200){(K=F)==null||K(f.status);Q.jumpTo(3);break}if((t=x)==null){Q.jumpTo(7);break}return _.q(Q,f.text(),8);case 8:t(Q.yieldResult);case 7:case 3:_.ZC(Q);clearTimeout(c);_.dn(Q,0);break;case 2:d=_.v9(Q);switch((v=d)==null?void 0:v.name){case "AbortError":(C=F)==null||C(408);break;default:(X=
F)==null||X(400)}Q.jumpTo(3)}})};
htC.prototype.getTransmissionType=function(){return 4};_.cS=function(p,x){x=x===void 0?"0":x;_.Jm.call(this);this.logSource=p;this.sessionIndex=x;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7570_clearExperimentIds=this.productID=null;this.JSC$7570_sendBeaconApiEnabled=!1;this.pageId=null};
_.E(_.cS,_.Jm);var $$$=function(p,x){p.buildLabel=x;return p},I9$=function(p,x){p.network=x;
return p},p8M=function(p,x){p.JSC$7570_clearExperimentIds=x},itd=function(p){p.JSC$7570_sendBeaconApiEnabled=!0;
return p};
_.cS.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.cS.prototype.build=function(){this.network||(this.network=new htC);var p=new fi({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:GDB,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.aG(this,p);if(this.buildLabel){var x=this.buildLabel,F=Mi(p.logRequestBuilder);
_.J_(F,7,x)}p.JSC$7552_compressor=new w9J;this.componentId&&(p.componentId=this.componentId);this.productID&&(p.productID=this.productID);this.pageId&&(p.pageId=this.pageId);this.JSC$7570_clearExperimentIds&&((F=this.JSC$7570_clearExperimentIds)?(p.experimentIds||(p.experimentIds=new GUK),x=p.experimentIds,F=F.serialize(),_.J_(x,4,F)):p.experimentIds&&_.k3(p.experimentIds,4));this.JSC$7570_sendBeaconApiEnabled&&(p.JSC$7552_sendBeaconApiEnabled=p.isSendBeaconSupported);kUC(p.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(p);return p};var NqJ=function(p,x,F,N,h,c,M){p=p===void 0?-1:p;x=x===void 0?"":x;F=F===void 0?"":F;N=N===void 0?!1:N;h=h===void 0?"":h;_.Jm.call(this);this.logSource=p;this.componentId=x;c?x=c:(p=new _.cS(p,"0"),p.componentId=x,_.aG(this,p),F!==""&&(p.destinationUrl=F),N&&(p.serviceWorkerScopeEnabled=!0),h&&$$$(p,h),M&&I9$(p,M),x=p.build());this.JSC$7574_transport=x};
_.E(NqJ,_.Jm);NqJ.prototype.flush=function(p){p=p||[];if(p.length){for(var x=new gZl,F=[],N=0;N<p.length;N++){var h=p[N],c=syl(h);F.push(c);h.clear()}XV(x,1,F);this.JSC$7574_transport.dispatch(x);this.JSC$7574_transport.flush()}};var lhl=function(p){this.cellValue=p};var qi=function(p,x,F){this.JSC$7579_metricName=p;this.cellType=x;this.fields=F||[];this.cellMap=new Map},zDb=function(p){return p.fields.map(function(x){return x.fieldType})},QyD=function(p){return p.fields.map(function(x){return x.fieldName})};
_.l=qi.prototype;_.l.addCell=function(p){var x=_.we.apply(1,arguments),F=this.getCells(x);F?F.push(new lhl(p)):this.JSC$7579_setCell(p,x)};
_.l.JSC$7579_setCell=function(p){var x=this.JSC$7579_getKey(_.we.apply(1,arguments));this.cellMap.set(x,[new lhl(p)])};
_.l.getCells=function(){var p=this.JSC$7579_getKey(_.we.apply(0,arguments));return this.cellMap.has(p)?this.cellMap.get(p):void 0};
_.l.getCell=function(){var p=this.getCells(_.we.apply(0,arguments));return p&&p.length?p[0]:void 0};
_.l.clear=function(){this.cellMap.clear()};
_.l.JSC$7579_getKey=function(){var p=_.we.apply(0,arguments);return p?p.join(","):"key"};var c_b=function(p,x){qi.call(this,p,3,x)};
_.E(c_b,qi);c_b.prototype.JSC$7582_incrementCounterBy=function(p){var x=_.we.apply(1,arguments),F=0,N=this.getCell(x);N&&(F=N.cellValue);this.JSC$7579_setCell(F+p,x)};var ahB=function(p,x){qi.call(this,p,2,x)};
_.E(ahB,qi);ahB.prototype.record=function(p){this.addCell(p,_.we.apply(1,arguments))};_.Zq=function(p){this.id=p};
_.Zq.prototype.toString=function(){return this.id};_.th=function(p,x){this.type=p instanceof _.Zq?String(p):p;this.currentTarget=this.target=x;this.defaultPrevented=this.propagationStopped_=!1};
_.th.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.th.prototype.preventDefault=function(){this.defaultPrevented=!0};_.d8=function(p,x){_.th.call(this,p?p.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;p&&this.init(p,x)};
_.NL(_.d8,_.th);
_.d8.prototype.init=function(p,x){var F=this.type=p.type,N=p.changedTouches&&p.changedTouches.length?p.changedTouches[0]:null;this.target=p.target||p.srcElement;this.currentTarget=x;x=p.relatedTarget;x||(F=="mouseover"?x=p.fromElement:F=="mouseout"&&(x=p.toElement));this.relatedTarget=x;N?(this.clientX=N.clientX!==void 0?N.clientX:N.pageX,this.clientY=N.clientY!==void 0?N.clientY:N.pageY,this.screenX=N.screenX||0,this.screenY=N.screenY||0):(this.offsetX=_.fT||p.offsetX!==void 0?p.offsetX:p.layerX,
this.offsetY=_.fT||p.offsetY!==void 0?p.offsetY:p.layerY,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.button=p.button;this.keyCode=p.keyCode||0;this.key=p.key||"";this.charCode=p.charCode||(F=="keypress"?p.keyCode:0);this.ctrlKey=p.ctrlKey;this.altKey=p.altKey;this.shiftKey=p.shiftKey;this.metaKey=p.metaKey;this.pointerId=p.pointerId||0;this.pointerType=p.pointerType;this.state=p.state;
this.timeStamp=p.timeStamp;this.event_=p;p.defaultPrevented&&_.d8.superClass_.preventDefault.call(this)};
_.d8.prototype.stopPropagation=function(){_.d8.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.d8.prototype.preventDefault=function(){_.d8.superClass_.preventDefault.call(this);var p=this.event_;p.preventDefault?p.preventDefault():p.returnValue=!1};var MS6="closure_listenable_"+(Math.random()*1E6|0),vs=function(p){return!(!p||!p[MS6])};var D1Z=0;var fhb=function(p,x,F,N,h){this.listener=p;this.proxy=null;this.src=x;this.type=F;this.capture=!!N;this.handler=h;this.key=++D1Z;this.removed=this.callOnce=!1},KMv=function(p){p.removed=!0;
p.listener=null;p.proxy=null;p.src=null;p.handler=null};lI.prototype.add=function(p,x,F,N,h){var c=p.toString();p=this.listeners[c];p||(p=this.listeners[c]=[],this.typeCount_++);var M=qTn(p,x,N,h);M>-1?(x=p[M],F||(x.callOnce=!1)):(x=new fhb(x,this.src,c,!!N,h),x.callOnce=F,p.push(x));return x};
lI.prototype.remove=function(p,x,F,N){p=p.toString();if(!(p in this.listeners))return!1;var h=this.listeners[p];x=qTn(h,x,F,N);return x>-1?(KMv(h[x]),_.XrJ(h,x),h.length==0&&(delete this.listeners[p],this.typeCount_--),!0):!1};
var Z2v=function(p,x){var F=x.type;if(!(F in p.listeners))return!1;var N=_.Lp(p.listeners[F],x);N&&(KMv(x),p.listeners[F].length==0&&(delete p.listeners[F],p.typeCount_--));return N};
lI.prototype.removeAll=function(p){p=p&&p.toString();var x=0,F;for(F in this.listeners)if(!p||F==p){for(var N=this.listeners[F],h=0;h<N.length;h++)++x,KMv(N[h]);delete this.listeners[F];this.typeCount_--}return x};
lI.prototype.getListener=function(p,x,F,N){p=this.listeners[p.toString()];var h=-1;p&&(h=qTn(p,x,F,N));return h>-1?p[h]:null};
lI.prototype.hasListener=function(p,x){var F=p!==void 0,N=F?p.toString():"",h=x!==void 0;return _.Q5.some(this.listeners,function(c){for(var M=0;M<c.length;++M)if(!(F&&c[M].type!=N||h&&c[M].capture!=x))return!0;return!1})};
var qTn=function(p,x,F,N){for(var h=0;h<p.length;++h){var c=p[h];if(!c.removed&&c.listener==x&&c.capture==!!F&&c.handler==N)return h}return-1};var tSB,d1B,vHm,CkB,STl,Md,D$,XmZ,r_J,EHj,Jh,gHZ,J_B;tSB="closure_lm_"+(Math.random()*1E6|0);d1B={};vHm=0;_.qd=function(p,x,F,N,h){if(N&&N.once)return Md(p,x,F,N,h);if(Array.isArray(x)){for(var c=0;c<x.length;c++)_.qd(p,x[c],F,N,h);return null}F=J_B(F);return vs(p)?p.listen(x,F,_.IJ(N)?!!N.capture:!!N,h):CkB(p,x,F,!1,N,h)};
CkB=function(p,x,F,N,h,c){if(!x)throw Error("za");var M=_.IJ(h)?!!h.capture:!!h,f=Jh(p);f||(p[tSB]=f=new lI(p));F=f.add(x,F,N,M,c);if(F.proxy)return F;N=STl();F.proxy=N;N.src=p;N.listener=F;if(p.addEventListener)_.Azn||(h=M),h===void 0&&(h=!1),p.addEventListener(x.toString(),N,h);else if(p.attachEvent)p.attachEvent(r_J(x.toString()),N);else if(p.addListener&&p.removeListener)p.addListener(N);else throw Error("Aa");vHm++;return F};
STl=function(){var p=EHj,x=function(F){return p.call(x.src,x.listener,F)};
return x};
Md=function(p,x,F,N,h){if(Array.isArray(x)){for(var c=0;c<x.length;c++)Md(p,x[c],F,N,h);return null}F=J_B(F);return vs(p)?p.listenOnce(x,F,_.IJ(N)?!!N.capture:!!N,h):CkB(p,x,F,!0,N,h)};
_.Ci=function(p,x,F,N,h){if(Array.isArray(x))for(var c=0;c<x.length;c++)_.Ci(p,x[c],F,N,h);else N=_.IJ(N)?!!N.capture:!!N,F=J_B(F),vs(p)?p.unlisten(x,F,N,h):p&&(p=Jh(p))&&(x=p.getListener(x,F,N,h))&&D$(x)};
D$=function(p){if(typeof p==="number"||!p||p.removed)return!1;var x=p.src;if(vs(x))return Z2v(x.eventTargetListeners_,p);var F=p.type,N=p.proxy;x.removeEventListener?x.removeEventListener(F,N,p.capture):x.detachEvent?x.detachEvent(r_J(F),N):x.addListener&&x.removeListener&&x.removeListener(N);vHm--;(F=Jh(x))?(Z2v(F,p),F.typeCount_==0&&(F.src=null,x[tSB]=null)):KMv(p);return!0};
XmZ=function(p,x,F,N,h){F=J_B(F);N=!!N;return vs(p)?p.getListener(x,F,N,h):p?(p=Jh(p))?p.getListener(x,F,N,h):null:null};
r_J=function(p){return p in d1B?d1B[p]:d1B[p]="on"+p};
EHj=function(p,x){if(p.removed)p=!0;else{x=new _.d8(x,this);var F=p.listener,N=p.handler||p.src;p.callOnce&&D$(p);p=F.call(N,x)}return p};
Jh=function(p){p=p[tSB];return p instanceof lI?p:null};
gHZ="__closure_events_fn_"+(Math.random()*1E9>>>0);J_B=function(p){if(typeof p==="function")return p;p[gHZ]||(p[gHZ]=function(x){return p.handleEvent(x)});
return p[gHZ]};_.Sc=function(){_.Jm.call(this);this.eventTargetListeners_=new lI(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.NL(_.Sc,_.Jm);_.Sc.prototype[MS6]=!0;_.l=_.Sc.prototype;_.l.setParentEventTarget=function(p){this.parentEventTarget_=p};
_.l.addEventListener=function(p,x,F,N){_.qd(this,p,x,F,N)};
_.l.removeEventListener=function(p,x,F,N){_.Ci(this,p,x,F,N)};
_.l.dispatchEvent=function(p){var x,F=this.parentEventTarget_;if(F)for(x=[];F;F=F.parentEventTarget_)x.push(F);F=this.actualEventTarget_;var N=p.type||p;if(typeof p==="string")p=new _.th(p,F);else if(p instanceof _.th)p.target=p.target||F;else{var h=p;p=new _.th(N,F);_.Q5.extend(p,h)}h=!0;var c;if(x)for(c=x.length-1;!p.propagationStopped_&&c>=0;c--){var M=p.currentTarget=x[c];h=QR6(M,N,!0,p)&&h}p.propagationStopped_||(M=p.currentTarget=F,h=QR6(M,N,!0,p)&&h,p.propagationStopped_||(h=QR6(M,N,!1,p)&&
h));if(x)for(c=0;!p.propagationStopped_&&c<x.length;c++)M=p.currentTarget=x[c],h=QR6(M,N,!1,p)&&h;return h};
_.l.disposeInternal=function(){_.Sc.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.l.listen=function(p,x,F,N){return this.eventTargetListeners_.add(String(p),x,!1,F,N)};
_.l.listenOnce=function(p,x,F,N){return this.eventTargetListeners_.add(String(p),x,!0,F,N)};
_.l.unlisten=function(p,x,F,N){return this.eventTargetListeners_.remove(String(p),x,F,N)};
_.l.removeAllListeners=function(p){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(p):0};
var QR6=function(p,x,F,N){x=p.eventTargetListeners_.listeners[String(x)];if(!x)return!0;x=x.concat();for(var h=!0,c=0;c<x.length;++c){var M=x[c];if(M&&!M.removed&&M.capture==F){var f=M.listener,K=M.handler||M.src;M.callOnce&&Z2v(p.eventTargetListeners_,M);h=f.call(K,N)!==!1&&h}}return h&&!N.defaultPrevented};
_.Sc.prototype.getListener=function(p,x,F,N){return this.eventTargetListeners_.getListener(String(p),x,F,N)};
_.Sc.prototype.hasListener=function(p,x){return this.eventTargetListeners_.hasListener(p!==void 0?String(p):void 0,x)};var r8=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(p){return p&&AsyncContext.Snapshot.wrap(p)}:function(p){return p};var ztB=function(p,x){this.create_=p;this.reset_=x;this.occupants_=0;this.JSC$7614_head_=null};
ztB.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var p=this.JSC$7614_head_;this.JSC$7614_head_=p.next;p.next=null}else p=this.create_();return p};
ztB.prototype.put=function(p){this.reset_(p);this.occupants_<100&&(this.occupants_++,p.next=this.JSC$7614_head_,this.JSC$7614_head_=p)};var sRD=function(){this.workTail_=this.workHead_=null};
sRD.prototype.add=function(p,x){var F=GnM.get();F.set(p,x);this.workTail_?this.workTail_.next=F:this.workHead_=F;this.workTail_=F};
sRD.prototype.remove=function(){var p=null;this.workHead_&&(p=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),p.next=null);return p};
var GnM=new ztB(function(){return new nHB},function(p){return p.reset()}),nHB=function(){this.next=this.scope=this.fn=null};
nHB.prototype.set=function(p,x){this.fn=p;this.scope=x;this.next=null};
nHB.prototype.reset=function(){this.next=this.scope=this.fn=null};var y_l,VrH,wwH,b2C;VrH=!1;wwH=new sRD;_.E1=function(p,x){y_l||b2C();VrH||(y_l(),VrH=!0);wwH.add(p,x)};
b2C=function(){var p=Promise.resolve(void 0);y_l=function(){p.then(Wg$)}};var A_l=function(p){p.prototype.$goog_Thenable=!0},uaD=function(p){if(!p)return!1;
try{return!!p.$goog_Thenable}catch(x){return!1}};var YTD,wml,GyZ,WMb,H2l,m1D,LMv,BsZ,i2j,kyD,HvZ;_.cZ=function(p,x){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(p!=_.Ja)try{var F=this;p.call(x,function(N){F.resolve_(2,N)},function(N){F.resolve_(3,N)})}catch(N){this.resolve_(3,N)}};
YTD=function(){this.next=this.context=this.JSC$7625_onRejected=this.JSC$7625_onFulfilled=this.child=null;this.always=!1};
YTD.prototype.reset=function(){this.context=this.JSC$7625_onRejected=this.JSC$7625_onFulfilled=this.child=null;this.always=!1};
wml=new ztB(function(){return new YTD},function(p){p.reset()});
GyZ=function(p,x,F){var N=wml.get();N.JSC$7625_onFulfilled=p;N.JSC$7625_onRejected=x;N.context=F;return N};
_.qt=function(p){if(p instanceof _.cZ)return p;var x=new _.cZ(_.Ja);x.resolve_(2,p);return x};
_.o9=function(p){return new _.cZ(function(x,F){F(p)})};
WMb=function(p,x,F){VSj(p,x,F,null)||_.E1(_.Sz(x,p))};
_.Xq=function(p){return new _.cZ(function(x,F){var N=p.length,h=[];if(N)for(var c=function(t,d){N--;h[t]=d;N==0&&x(h)},M=function(t){F(t)},f,K=0;K<p.length;K++)f=p[K],WMb(f,_.Sz(c,K),M);
else x(h)})};
H2l=function(p){return new _.cZ(function(x){var F=p.length,N=[];if(F)for(var h=function(f,K,t){F--;N[f]=K?{fulfilled:!0,value:t}:{fulfilled:!1,reason:t};F==0&&x(N)},c,M=0;M<p.length;M++)c=p[M],WMb(c,_.Sz(h,M,!0),_.Sz(h,M,!1));
else x(N)})};
m1D=function(p){return new _.cZ(function(x,F){var N=p.length,h=[];if(N)for(var c=function(t){x(t)},M=function(t,d){N--;
h[t]=d;N==0&&F(h)},f,K=0;K<p.length;K++)f=p[K],WMb(f,c,_.Sz(M,K));
else x(void 0)})};
_.GO=function(){var p,x,F=new _.cZ(function(N,h){p=N;x=h});
return new oHb(F,p,x)};
_.cZ.prototype.then=function(p,x,F){return O2Z(this,r8(typeof p==="function"?p:null),r8(typeof x==="function"?x:null),F)};
A_l(_.cZ);LMv=function(p,x,F,N){jRb(p,GyZ(x||_.Ja,F||null,N))};
_.g8=function(p,x){x=r8(x);x=GyZ(x,x);x.always=!0;jRb(p,x);return p};
_.cZ.prototype.finally=function(p){var x=this;p=r8(p);return new Promise(function(F,N){LMv(x,function(h){p();F(h)},function(h){p();
N(h)})})};
_.cZ.prototype.thenCatch=function(p,x){return O2Z(this,null,r8(p),x)};
_.cZ.prototype.catch=_.cZ.prototype.thenCatch;_.cZ.prototype.cancel=function(p){if(this.state_==0){var x=new _.mw(p);_.E1(function(){Pkk(this,x)},this)}};
var Pkk=function(p,x){if(p.state_==0)if(p.parent_){var F=p.parent_;if(F.callbackEntries_){for(var N=0,h=null,c=null,M=F.callbackEntries_;M&&(M.always||(N++,M.child==p&&(h=M),!(h&&N>1)));M=M.next)h||(c=M);h&&(F.state_==0&&N==1?Pkk(F,x):(c?(N=c,N.next==F.callbackEntriesTail_&&(F.callbackEntriesTail_=N),N.next=N.next.next):TsZ(F),BsZ(F,h,3,x)))}p.parent_=null}else p.resolve_(3,x)},jRb=function(p,x){p.callbackEntries_||p.state_!=2&&p.state_!=3||Rtj(p);
p.callbackEntriesTail_?p.callbackEntriesTail_.next=x:p.callbackEntries_=x;p.callbackEntriesTail_=x},O2Z=function(p,x,F,N){var h=GyZ(null,null,null);
h.child=new _.cZ(function(c,M){h.JSC$7625_onFulfilled=x?function(f){try{var K=x.call(N,f);c(K)}catch(t){M(t)}}:c;
h.JSC$7625_onRejected=F?function(f){try{var K=F.call(N,f);K===void 0&&f instanceof _.mw?M(f):c(K)}catch(t){M(t)}}:M});
h.child.parent_=p;jRb(p,h);return h.child};
_.cZ.prototype.unblockAndFulfill_=function(p){this.state_=0;this.resolve_(2,p)};
_.cZ.prototype.unblockAndReject_=function(p){this.state_=0;this.resolve_(3,p)};
_.cZ.prototype.resolve_=function(p,x){this.state_==0&&(this===x&&(p=3,x=new TypeError("Ba")),this.state_=1,VSj(x,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=x,this.state_=p,this.parent_=null,Rtj(this),p!=3||x instanceof _.mw||kyD(this,x)))};
var VSj=function(p,x,F,N){if(p instanceof _.cZ)return LMv(p,x,F,N),!0;if(uaD(p))return p.then(x,F,N),!0;if(_.IJ(p))try{var h=p.then;if(typeof h==="function")return U1I(p,h,x,F,N),!0}catch(c){return F.call(N,c),!0}return!1},U1I=function(p,x,F,N,h){var c=!1,M=function(K){c||(c=!0,F.call(h,K))},f=function(K){c||(c=!0,N.call(h,K))};
try{x.call(p,M,f)}catch(K){f(K)}},Rtj=function(p){p.executing_||(p.executing_=!0,_.E1(p.executeCallbacks_,p))},TsZ=function(p){var x=null;
p.callbackEntries_&&(x=p.callbackEntries_,p.callbackEntries_=x.next,x.next=null);p.callbackEntries_||(p.callbackEntriesTail_=null);return x};
_.cZ.prototype.executeCallbacks_=function(){for(var p;p=TsZ(this);)BsZ(this,p,this.state_,this.result_);this.executing_=!1};
BsZ=function(p,x,F,N){if(F==3&&x.JSC$7625_onRejected&&!x.always)for(;p&&p.hadUnhandledRejection_;p=p.parent_)p.hadUnhandledRejection_=!1;if(x.child)x.child.parent_=null,i2j(x,F,N);else try{x.always?x.JSC$7625_onFulfilled.call(x.context):i2j(x,F,N)}catch(h){HvZ.call(null,h)}wml.put(x)};
i2j=function(p,x,F){x==2?p.JSC$7625_onFulfilled.call(p.context,F):p.JSC$7625_onRejected&&p.JSC$7625_onRejected.call(p.context,F)};
kyD=function(p,x){p.hadUnhandledRejection_=!0;_.E1(function(){p.hadUnhandledRejection_&&HvZ.call(null,x)})};
HvZ=fp;_.mw=function(p){_.x$.call(this,p)};
_.NL(_.mw,_.x$);_.mw.prototype.name="cancel";var oHb=function(p,x,F){this.promise=p;this.resolve=x;this.reject=F};var Qo;_.eB=function(p,x){_.Sc.call(this);this.JSC$7637_interval_=p||1;this.timerObject_=x||_.Mm;this.boundTick_=(0,_.CH)(this.tick_,this);this.last_=_.FV()};
_.NL(_.eB,_.Sc);_.l=_.eB.prototype;_.l.enabled=!1;_.l.JSC$7639_timer_=null;_.l.setInterval=function(p){this.JSC$7637_interval_=p;this.JSC$7639_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7639_timer_&&this.stop()};
_.l.tick_=function(){if(this.enabled){var p=_.FV()-this.last_;p>0&&p<this.JSC$7637_interval_*.8?this.JSC$7639_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7637_interval_-p):(this.JSC$7639_timer_&&(this.timerObject_.clearTimeout(this.JSC$7639_timer_),this.JSC$7639_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.l.start=function(){this.enabled=!0;this.JSC$7639_timer_||(this.JSC$7639_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7637_interval_),this.last_=_.FV())};
_.l.stop=function(){this.enabled=!1;this.JSC$7639_timer_&&(this.timerObject_.clearTimeout(this.JSC$7639_timer_),this.JSC$7639_timer_=null)};
_.l.disposeInternal=function(){_.eB.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Qo=function(p,x,F){if(typeof p==="function")F&&(p=(0,_.CH)(p,F));else if(p&&typeof p.handleEvent=="function")p=(0,_.CH)(p.handleEvent,p);else throw Error("Ca");return Number(x)>2147483647?-1:_.Mm.setTimeout(p,x||0)};
_.Ihn=function(p){var x=null;return(new _.cZ(function(F,N){x=Qo(function(){F(void 0)},p);
x==-1&&N(Error("Da"))})).thenCatch(function(F){_.Mm.clearTimeout(x);
throw F;})};var Mc=function(p){_.Jm.call(this);this.streamzLogger=p;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7643_flushTimer=new _.eB(this.flushInterval);this.JSC$7643_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.aG(this,this.JSC$7643_flushTimer)};
_.E(Mc,_.Jm);Mc.prototype.sendIsolatedPayload=function(p){this.shouldSendIsolatedPayload=p;this.invocationLimit=1};
var $1k=function(p){p.JSC$7643_flushTimer.enabled||p.JSC$7643_flushTimer.start();p.invocationCount++;p.invocationCount>=p.invocationLimit&&p.snapshotAndFlush()};
Mc.prototype.snapshotAndFlush=function(){var p=this.metricMap.values();p=[].concat(_.se(p)).filter(function(x){return x.cellMap.size});
p.length&&this.streamzLogger.flush(p,this.shouldSendIsolatedPayload);etB(p);this.invocationCount=0;this.JSC$7643_flushTimer.enabled&&this.JSC$7643_flushTimer.stop()};
Mc.prototype.addNewCounter=function(p){var x=_.we.apply(1,arguments);this.metricMap.has(p)||this.metricMap.set(p,new c_b(p,x))};
Mc.prototype.addNewEventMetric=function(p){var x=_.we.apply(1,arguments);this.metricMap.has(p)||this.metricMap.set(p,new ahB(p,x))};
var pSn=function(p,x){return p.disabledMetrics.has(x)?void 0:p.metricMap.get(x)};
Mc.prototype.JSC$7643_incrementCounter=function(p){this.JSC$7643_incrementCounterBy(p,1,_.we.apply(1,arguments))};
Mc.prototype.JSC$7643_incrementCounterBy=function(p,x){var F=_.we.apply(2,arguments),N=pSn(this,p);N&&N instanceof c_b&&(N.JSC$7582_incrementCounterBy(x,F),$1k(this))};
Mc.prototype.record=function(p,x){var F=_.we.apply(2,arguments),N=pSn(this,p);N&&N instanceof ahB&&(N.record(x,F),$1k(this))};
var etB=function(p){for(var x=0;x<p.length;x++)p[x].clear()};_.zh=function(p,x,F){F=F===void 0?{}:F;x=Error.call(this,x);this.message=x.message;"stack"in x&&(this.stack=x.stack);this.code=p;this.metadata=F;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.E(_.zh,Error);_.zh.prototype.toString=function(){var p="RpcError("+(m$H(this.code)||String(this.code))+")";this.message&&(p+=": "+this.message);return p};_.xcm=_.Mm.JSON.parse;_.s1=_.Mm.JSON.stringify;_.QR=_.Mm.JSON.parse;_.FXB=function(p){switch(p){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 NvK=function(p){switch(p){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var hWm,l0j=function(){};
_.NL(l0j,_.oFr);l0j.prototype.createInstance=function(){return new XMLHttpRequest};
hWm=new l0j;_.ni=function(p){_.Sc.call(this);this.headers=new Map;this.JSC$7652_xmlHttpFactory_=p||null;this.JSC$7652_active_=!1;this.JSC$7652_xhr_=null;this.JSC$7652_lastUri_="";this.JSC$7652_lastErrorCode_=0;this.JSC$7652_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7652_timeoutId_=null;this.responseType_="";this.JSC$7652_withCredentials_=!1};
_.NL(_.ni,_.Sc);var cmm=/^https?$/i,a0v=["POST","PUT"],MeD=[],jw6=function(p,x,F,N,h,c,M){var f=new _.ni;MeD.push(f);x&&f.listen("complete",x);f.listenOnce("ready",f.cleanupSend_);c&&(f.timeoutInterval_=Math.max(0,c));M&&(f.JSC$7652_withCredentials_=M);f.send(p,F,N,h)};
_.ni.prototype.cleanupSend_=function(){this.dispose();_.Lp(MeD,this)};
_.ni.prototype.send=function(p,x,F,N){if(this.JSC$7652_xhr_)throw Error("Ea`"+this.JSC$7652_lastUri_+"`"+p);x=x?x.toUpperCase():"GET";this.JSC$7652_lastUri_=p;this.JSC$7652_lastError_="";this.JSC$7652_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7652_active_=!0;this.JSC$7652_xhr_=this.createXhr();this.JSC$7652_xhr_.onreadystatechange=r8((0,_.CH)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7652_xhr_.open(x,String(p),!0),this.inOpen_=!1}catch(M){DcK(this,M);return}p=F||"";F=new Map(this.headers);
if(N)if(Object.getPrototypeOf(N)===Object.prototype)for(var h in N)F.set(h,N[h]);else if(typeof N.keys==="function"&&typeof N.get==="function"){h=_.a(N.keys());for(var c=h.next();!c.done;c=h.next())c=c.value,F.set(c,N.get(c))}else throw Error("Fa`"+String(N));N=Array.from(F.keys()).find(function(M){return"content-type"==M.toLowerCase()});
h=_.Mm.FormData&&p instanceof _.Mm.FormData;!_.oJ(a0v,x)||N||h||F.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");x=_.a(F);for(N=x.next();!N.done;N=x.next())F=_.a(N.value),N=F.next().value,F=F.next().value,this.JSC$7652_xhr_.setRequestHeader(N,F);this.responseType_&&(this.JSC$7652_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7652_xhr_&&this.JSC$7652_xhr_.withCredentials!==this.JSC$7652_withCredentials_&&(this.JSC$7652_xhr_.withCredentials=this.JSC$7652_withCredentials_);
try{this.JSC$7652_timeoutId_&&(clearTimeout(this.JSC$7652_timeoutId_),this.JSC$7652_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7652_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7652_xhr_.send(p),this.inSend_=!1}catch(M){DcK(this,M)}};
_.ni.prototype.createXhr=function(){return this.JSC$7652_xmlHttpFactory_?this.JSC$7652_xmlHttpFactory_.createInstance():hWm.createInstance()};
_.ni.prototype.timeout_=function(){typeof T9M!="undefined"&&this.JSC$7652_xhr_&&(this.JSC$7652_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7652_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var DcK=function(p,x){p.JSC$7652_active_=!1;p.JSC$7652_xhr_&&(p.inAbort_=!0,p.JSC$7652_xhr_.abort(),p.inAbort_=!1);p.JSC$7652_lastError_=x;p.JSC$7652_lastErrorCode_=5;f06(p);KXb(p)},f06=function(p){p.errorDispatched_||(p.errorDispatched_=!0,p.dispatchEvent("complete"),p.dispatchEvent("error"))};
_.ni.prototype.abort=function(p){this.JSC$7652_xhr_&&this.JSC$7652_active_&&(this.JSC$7652_active_=!1,this.inAbort_=!0,this.JSC$7652_xhr_.abort(),this.inAbort_=!1,this.JSC$7652_lastErrorCode_=p||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),KXb(this))};
_.ni.prototype.disposeInternal=function(){this.JSC$7652_xhr_&&(this.JSC$7652_active_&&(this.JSC$7652_active_=!1,this.inAbort_=!0,this.JSC$7652_xhr_.abort(),this.inAbort_=!1),KXb(this,!0));_.ni.superClass_.disposeInternal.call(this)};
_.ni.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)qyJ(this);else this.onReadyStateChangeEntryPoint_()};
_.ni.prototype.onReadyStateChangeEntryPoint_=function(){qyJ(this)};
var qyJ=function(p){if(p.JSC$7652_active_&&typeof T9M!="undefined")if(p.inSend_&&_.yo(p)==4)setTimeout(p.onReadyStateChange_.bind(p),0);else if(p.dispatchEvent("readystatechange"),p.isComplete()){p.JSC$7652_active_=!1;try{if(p.isSuccess())p.dispatchEvent("complete"),p.dispatchEvent("success");else{p.JSC$7652_lastErrorCode_=6;try{var x=_.yo(p)>2?p.JSC$7652_xhr_.statusText:""}catch(F){x=""}p.JSC$7652_lastError_=x+" ["+p.getStatus()+"]";f06(p)}}finally{KXb(p)}}},KXb=function(p,x){if(p.JSC$7652_xhr_){p.JSC$7652_timeoutId_&&
(clearTimeout(p.JSC$7652_timeoutId_),p.JSC$7652_timeoutId_=null);
var F=p.JSC$7652_xhr_;p.JSC$7652_xhr_=null;x||p.dispatchEvent("ready");try{F.onreadystatechange=null}catch(N){}}};
_.ni.prototype.isActive=function(){return!!this.JSC$7652_xhr_};
_.ni.prototype.isComplete=function(){return _.yo(this)==4};
_.ni.prototype.isSuccess=function(){var p=this.getStatus(),x;if(!(x=NvK(p))){if(p=p===0)p=MHb(String(this.JSC$7652_lastUri_)),p=!cmm.test(p);x=p}return x};
_.yo=function(p){return p.JSC$7652_xhr_?p.JSC$7652_xhr_.readyState:0};
_.l=_.ni.prototype;_.l.getStatus=function(){try{return _.yo(this)>2?this.JSC$7652_xhr_.status:-1}catch(p){return-1}};
_.l.getResponseText=function(){try{return this.JSC$7652_xhr_?this.JSC$7652_xhr_.responseText:""}catch(p){return""}};
_.l.getResponse=function(){try{if(!this.JSC$7652_xhr_)return null;if("response"in this.JSC$7652_xhr_)return this.JSC$7652_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7652_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7652_xhr_)return this.JSC$7652_xhr_.mozResponseArrayBuffer}return null}catch(p){return null}};
_.l.getAllResponseHeaders=function(){return this.JSC$7652_xhr_&&_.yo(this)>=2?this.JSC$7652_xhr_.getAllResponseHeaders()||"":""};
_.l.getLastError=function(){return typeof this.JSC$7652_lastError_==="string"?this.JSC$7652_lastError_:String(this.JSC$7652_lastError_)};var eap=function(){};
eap.prototype.send=function(p,x,F){x=x===void 0?function(){}:x;
F=F===void 0?function(){}:F;
jw6(p.url,function(N){N=N.target;N.isSuccess()?x(N.getResponseText()):F(N.getStatus())},p.requestType,p.body,p.requestHeaders,p.timeoutMillis,p.withCredentials)};
eap.prototype.getTransmissionType=function(){return 1};var ZHm=function(p,x){this.logger=p;this.event=x;this.startTime=D0()};
ZHm.prototype.done=function(){this.logger.mN(this.event,D0()-this.startTime)};
var bM=function(){Ni.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.E(bM,Ni);var Ah=function(p,x,F){var N=D0();x=x();p.mN(F,D0()-N);return x},l5p=function(){bM.apply(this,arguments)};
_.E(l5p,bM);_.l=l5p.prototype;_.l.s9f=function(){};
_.l.yQ=function(){};
_.l.mN=function(){};
_.l.logError=function(){};
_.l.qQ=function(){};
_.l.gFm=function(){};
_.l.mAJ=function(){};
_.l.slr=function(){};
_.l.bmM=function(){};
var teb=function(p){bM.call(this);var x=this;this.logger=p;this.TEST_ONLY={bLQ:function(){return x.logger},
getExperimentIds:function(){return x.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void x.logger.dispose()})};
_.E(teb,bM);_.l=teb.prototype;_.l.update=function(p){this.logger.dispose();this.logger=p};
_.l.yQ=function(p){this.logger.yQ(p)};
_.l.mN=function(p,x){this.logger.mN(p,x)};
_.l.logError=function(p){this.logger.logError(p)};
_.l.qQ=function(){this.logger.qQ()};
_.l.gFm=function(p){this.logger.gFm(p)};
_.l.mAJ=function(p){this.logger.mAJ(p)};
_.l.slr=function(p){this.logger.slr(p)};
_.l.bmM=function(p){this.logger.bmM(p)};
_.l.s9f=function(p){this.logger.s9f(p)};
var dcZ=function(p,x){_.Jm.call(this);var F=this;this.callback=p;this.nLx=x;this.q6v=-x;this.addOnDisposeCallback(function(){return void clearTimeout(F.timer)})};
_.E(dcZ,_.Jm);var vCn=function(p){if(p.timer===void 0){var x=Math.max(0,p.q6v+p.nLx-D0());p.timer=setTimeout(function(){try{p.callback()}finally{p.q6v=D0(),p.timer=void 0}},x)}},JmB=function(p,x){bM.call(this);
this.metrics=p;this.h8=x};
_.E(JmB,bM);_.l=JmB.prototype;_.l.s9f=function(p){this.metrics.tOv.record(p,this.h8)};
_.l.yQ=function(p){this.metrics.eventCount.increment(p,this.h8)};
_.l.mN=function(p,x){this.metrics.yYX.record(x,p,this.h8)};
_.l.logError=function(p){this.metrics.errorCount.increment(p,this.h8)};
_.l.gFm=function(p){this.metrics.gEd.increment(p,this.h8)};
_.l.mAJ=function(p){this.metrics.f6A.increment(p,this.h8)};
_.l.slr=function(p){this.metrics.s6H.increment(p,this.h8)};
var cqd=function(p,x){x=x===void 0?[]:x;var F={h8:p.h8||"_",nWr:p.nWr||[],jlc:p.jlc|0,destinationUrl:p.destinationUrl,oxM:p.oxM||function(){},
syt:p.syt||function(c,M){return hZk(c,M,F.oxM,F.destinationUrl)}},N=F.syt("49",F.nWr.concat(x));
JmB.call(this,U$p(N),F.h8);var h=this;this.xDO=x;this.TEST_ONLY={getExperimentIds:function(){return h.options.nWr.concat(h.xDO).sort(function(c,M){return c-M})}};
this.options=F;this.service=N;this.qby=!p.syt;this.flushDebouncer=new dcZ(function(){return void h.service.snapshotAndFlush()},F.jlc);
this.addOnDisposeCallback(function(){h.flushDebouncer.dispose();h.qby&&h.service.dispose()})};
_.E(cqd,JmB);cqd.prototype.bmM=function(p){var x=this;this.flushDebouncer.dispose();this.qby&&this.service.dispose();this.service=this.options.syt("49",this.options.nWr.concat(p));this.flushDebouncer=new dcZ(function(){return void x.service.snapshotAndFlush()},this.options.jlc);
this.metrics=U$p(this.service);this.xDO=p};
cqd.prototype.qQ=function(){vCn(this.flushDebouncer)};var XDm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(XDm,_.Uk);_.gI$=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(_.gI$,_.Uk);var iW=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p,0,iW.messageId)};
_.E(iW,_.Uk);var CIb=_.QMp(iW);iW.messageId="bfkj";var Xwp=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Xwp,_.Uk);var Syl=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Syl,_.Uk);var rm6=_.cz(Syl);_.FT=function(){var p=this;this.promise=new Promise(function(x,F){p.resolve=x;p.reject=F})};_.uM=function(p){_.Jm.call(this);var x=this;this.t5O=Math.floor(Math.random()*200);this.iWJ=new Syl;if("challenge"in p&&CIb(p.challenge)){var F=_.uq(p.challenge,4,void 0,bB);var N=_.uq(p.challenge,5,void 0,bB);_.uq(p.challenge,7,void 0,bB)&&(this.iWJ=rm6(_.uq(p.challenge,7,void 0,bB)))}else F=p.program,N=p.globalName;this.addOnDisposeCallback(function(){var Q,b,A;return _.D(function(Y){if(Y.nextAddress==1)return _.q(Y,x.vqc,2);Q=Y.yieldResult;b=Q.ouH;(A=b)==null||A();_.JB(Y)})});
this.logger=a5k(p.kk||{},this.iWJ,p.pm0);_.aG(this,this.logger);var h=new _.FT;this.vqc=h.promise;this.logger.yQ("t");var c=this.logger.share(),M=new ZHm(c,"t"),f=function(Q,b,A,Y){if(!x.logger.isDisposed()){var O="k";b?O="h":A&&(O="u");O!=="k"?Y!==0&&(x.logger.yQ(O),x.logger.mN(O,Q)):x.t5O<=0?(x.logger.yQ(O),x.logger.mN(O,Q),x.t5O=Math.floor(Math.random()*200)):x.t5O--}},K=function(Q,b,A,Y){Promise.resolve().then(function(){M.done();
c.qQ();c.dispose();h.resolve({hbf:Q,ouH:b,gIX:A,dEX:Y})})};
if(!_.Mm[N])throw this.logger.logError(25),Error("Ga");if(!_.Mm[N].a)throw this.logger.logError(26),Error("Ha");try{var t=_.Mm[N].a;N=[];for(var d=[],v=gFZ(this.iWJ),C=0;C<v.length;C++)N.push(v[C]),d.push(1);var X=QDH(this.iWJ);for(v=0;v<X.length;v++)N.push(X[v]),d.push(2);this.jWK=_.a(t(F,K,!0,p.ifz,f,[N,d],_.uq(this.iWJ,5))).next().value;this.tL8=h.promise.then(function(){})}catch(Q){throw this.logger.logError(28),Q;
}};
_.E(_.uM,_.Jm);_.uM.prototype.snapshot=function(p){if(this.isDisposed())throw Error("Ia");this.logger.yQ("n");var x=this.logger.share();return this.vqc.then(function(F){var N=F.hbf;return new Promise(function(h){var c=new ZHm(x,"n");N(function(M){c.done();x.s9f(M.length);x.qQ();x.dispose();h(M)},[p.cz,
p.u38,p.fsc,p.i7y])})})};
_.ECB=function(p,x){if(p.isDisposed())throw Error("Ia");p.logger.yQ("n");var F=Ah(p.logger,function(){return p.jWK([x.cz,x.u38,x.fsc,x.i7y])},"n");
p.logger.s9f(F.length);p.logger.qQ();return F};
_.uM.prototype.bGf=function(p){this.vqc.then(function(x){var F;(F=x.gIX)==null||F(p)})};
_.uM.prototype.vgs=function(p,x){return this.vqc.then(function(F){var N;return(N=F.dEX)==null?void 0:N(p,x,!1)})};
_.uM.prototype.tsf=function(){return this.logger.share()};var XSj=function(){this.sKM={};this.wkp=null},gCC=function(){XSj.instance||(XSj.instance=new XSj);
return XSj.instance},zWK=function(p,x){return QGb(p,_.B8(x,XDm,1,bB),_.B8(x,_.gI$,2,bB),_.uq(x,3,void 0,bB))},QGb=function(p,x,F,N){if(!x&&!F)return Promise.resolve();
if(!N)return KWp(x,F);var h;(h=p.sKM)[N]||(h[N]=new Promise(function(c,M){KWp(x,F).then(function(){p.wkp=N;c()},function(f){delete p.sKM[N];
M(f)})}));
return p.sKM[N]};var sGC=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(sGC,_.Uk);var nCv=function(p,x){return _.II(p,1,x)},ymI=function(p,x){return _.II(p,2,x)};var Yj=function(p){_.Jm.call(this);var x=this;this.options=p;this.iAs=new _.FT;this.tL8=this.iAs.promise;this.sNH=new _.FT;this.eCL=1;this.m3s=new _.FT;this.ksO=[];this.fBy=p.fBy||function(){};
this.logger=new teb(a5k(p.kk||{}));bHC(this,p.mD,p.fuX,p.tlh,p.zht,Object.assign({},AmZ,p.h8f||{}));this.addOnDisposeCallback(function(){return void u2b(x)})};
_.E(Yj,_.Jm);Yj.prototype.snapshot=function(p){var x=this;return _.D(function(F){switch(F.nextAddress){case 1:if(x.isDisposed())throw Error("Ia");if(x.iU||x.ouc){F.jumpTo(2);break}return _.q(F,x.sNH.promise,2);case 2:if(!x.iU){F.jumpTo(4);break}return _.q(F,x.iU.snapshot(p),5);case 5:return F.return(F.yieldResult);case 4:throw x.ouc;}})};
var YyI=function(p){var x;return _.D(function(F){if(p.isDisposed())throw Error("Ia");(x=p.qD)!=null&&(x.endTimeMs=0,x.resolver(1));return _.q(F,p.m3s.promise,0)})},u2b=function(p){p.ouc=Error("Ka");
p.sNH.resolve();zaz(p.iAs.promise);p.iAs.reject(Error("Ka"));p.logger.dispose();Promise.all(p.ksO).then(function(){var F;return _.D(function(N){(F=p.iU)==null||F.dispose();p.iU=void 0;_.JB(N)})});
p.ksO=[];var x;(x=p.qD)!=null&&(x.endTimeMs=0,x.resolver(1));zaz(p.m3s.promise);p.m3s.reject(Error("Ka"))};
Yj.prototype.bGf=function(p){var x,F;(x=this.iU)==null||(F=x.bGf)==null||F.call(x,p)};
Yj.prototype.vgs=function(p,x){var F,N,h;return(h=(F=this.iU)==null?void 0:(N=F.vgs)==null?void 0:N.call(F,p,x))!=null?h:Promise.resolve()};
var wSD=function(p,x){var F=p.fBy;p.fBy=function(){F();x()}},G4n=function(p,x){p.isDisposed()||(p.iU=x,p.logger.update(x.tsf()),p.sNH.resolve(),p.iAs.resolve(void 0),p.fBy())};
Yj.prototype.handleError=function(p){if(!this.isDisposed()){this.ouc=p;this.sNH.resolve();var x,F;(F=(x=this.options).gSc)==null||F.call(x,p)}};
var Vev=function(p,x){x&&(Promise.all(p.ksO).then(function(){return void x.dispose()}),p.ksO=[])},w8=function(p,x){p.eCL=x;
var F,N;(N=(F=p.options).a6H)==null||N.call(F,x)},WXj=function(p){p.isDisposed()||(p.m3s.resolve(),p.m3s=new _.FT)},bHC=function(p,x,F,N,h,c){N=N===void 0?gCC():N;
h=h===void 0?Promise.resolve(void 0):h;var M,f,K,t,d,v,C,X,Q,b,A,Y;_.D(function(O){switch(O.nextAddress){case 1:return _.q(O,0,3);case 3:f=null;if(!M){O.jumpTo(6);break}w8(p,7);_.KM(O,7);return _.q(O,tm(M.snapshot({}),c.cpb,function(){return Promise.resolve("E:CTO")}),9);
case 9:f=O.yieldResult;_.ub(O,6);break;case 7:_.v9(O),f="E:UCE";case 6:K=void 0,t=M?c.nFL:c.blw,d=new hm(t,c.cVA,c.mLX,c.ilx),v=1;case 10:if(!(v<=c.maxAttempts)){O.jumpTo(12);break}if(v===1){O.jumpTo(13);break}w8(p,0);p.qD=new HHm(d.getValue(),c.rtH,c.mZW);return _.q(O,p.qD.promise,14);case 14:C=O.yieldResult,p.qD=void 0,C===1?(v=1,d.reset()):UFj(d);case 13:_.KM(O,15);X=void 0;if(F){X=F;O.jumpTo(17);break}w8(p,5);Q=N.wkp;return _.q(O,tm(mcl(x,Q,f),c.cYf,function(){return Promise.reject(Error("La"))}),
18);
case 18:X=O.yieldResult;case 17:return w8(p,3),_.q(O,tm(zWK(N,X),c.k4X,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return w8(p,8),_.q(O,h,20);case 20:return b=new _.uM({challenge:X,kk:p.options.kk,ifz:p.options.ifz}),_.q(O,tm(b.tL8,c.yzG,function(){return Promise.reject(Error("Na"))}),21);
case 21:K=b;O.jumpTo(12);break;case 15:A=_.v9(O),p.handleError(A),WXj(p);case 11:v++;O.jumpTo(10);break;case 12:if(p.isDisposed()){O.jumpTo(5);break}K&&(F=void 0,Vev(p,M),M=K,G4n(p,K),WXj(p));w8(p,2);p.qD=new HHm(c.j8c,c.rtH,c.mZW);return _.q(O,p.qD.promise,22);case 22:p.qD=void 0;if(p.isDisposed()){O.jumpTo(5);break}O.jumpTo(3);break;case 5:(Y=M)==null||Y.dispose(),_.JB(O)}})};
Yj.prototype.tsf=function(){return this.logger.share()};
var AmZ={j8c:432E5,rtH:3E5,mZW:10,cpb:1E4,cYf:3E4,k4X:3E4,yzG:6E4,blw:1E3,nFL:6E4,cVA:6E5,mLX:.25,ilx:2,maxAttempts:10},HHm=function(p,x,F){var N=this;this.endTimeMs=Date.now()+p;this.promise=new Promise(function(c){N.resolver=c});
var h=function(){var c=N.endTimeMs-Date.now();c<=F?N.resolver(0):setTimeout(h,Math.min(c,x))};
h()};var oCB,tQz=(oCB=Math.imul)!=null?oCB:function(p,x){return p*x|0},dv=[196,
200,224,18],Gh=function(p,x,F){F=F===void 0?[]:F;this.maxItems=p;this.qe=x===void 0?0:x;this.vB=F},OHv=function(p){var x=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!x)return new Gh(p);var F=x.split(",");if(F.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Gh(p);x=F.slice(1);x.length===1&&x[0]===""&&(x=[]);F=Number(F[0]);return isNaN(F)||F<0||F>x.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Gh(p)):new Gh(p,F,x)};
Gh.prototype.serialize=function(){return String(this.qe)+","+this.vB.join()};
Gh.prototype.insert=function(p,x){var F=void 0;if(this.vB[this.qe]!==p){var N=this.vB.indexOf(p);N!==-1?(this.vB.splice(N,1),N<this.qe&&this.qe--,this.vB.splice(this.qe,0,p)):(F=this.vB[this.qe],this.vB[this.qe]=p)}this.qe=(this.qe+1)%this.maxItems;p=q5Z("iU5q-!O9@$",this.serialize());F&&p&&x(F);return p};
var jGb=function(p,x){this.logger=x;try{var F=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(N){F=!1}F&&(this.index=OHv(p))},LXl=function(p,x,F,N,h){var c=p.index?Ah(p.logger,function(){return Cbp(p.index,v3z(x),F,N,h)},"W"):"u";
p.logger.slr(c)},PIk=function(p,x,F){var N=_.a(p.index?Ah(p.logger,function(){return S5$(v3z(x),F)},"R"):["u"]),h=N.next().value;
N=N.next().value;p.logger.mAJ(h);return N};var TvB={toString:function(p){var x=[],F=0;p-=-2147483648;x[F++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(p%52);for(p=Math.floor(p/52);p>0;)x[F++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(p%62),p=Math.floor(p/62);return x.join("")}};var k4B=function(p){p=BvZ(p);for(var x=2654435769,F=2654435769,N=314159265,h=p.length,c=h,M=0,f=function(){x-=F;x-=N;x^=N>>>13;F-=N;F-=x;F^=x<<8;N-=x;N-=F;N^=F>>>13;x-=F;x-=N;x^=N>>>12;F-=N;F-=x;F^=x<<16;N-=x;N-=F;N^=F>>>5;x-=F;x-=N;x^=N>>>3;F-=N;F-=x;F^=x<<10;N-=x;N-=F;N^=F>>>15};c>=12;c-=12,M+=12)x+=RWl(p,M),F+=RWl(p,M+4),N+=RWl(p,M+8),f();
N+=h;switch(c){case 11:N+=p[M+10]<<24;case 10:N+=p[M+9]<<16;case 9:N+=p[M+8]<<8;case 8:F+=p[M+7]<<24;case 7:F+=p[M+6]<<16;case 6:F+=p[M+5]<<8;case 5:F+=p[M+4];case 4:x+=p[M+3]<<24;case 3:x+=p[M+2]<<16;case 2:x+=p[M+1]<<8;case 1:x+=p[M]}f();return TvB.toString(N)},BvZ=function(p){for(var x=[],F=0;F<p.length;F++)x.push(p.charCodeAt(F));
return x},RWl=function(p,x){return p[x]+(p[x+1]<<8)+(p[x+2]<<16)+(p[x+3]<<24)};var UcC,Vo=function(p){_.Jm.call(this);this.logger=p;this.uCO=new _.FT;this[UcC]=this.dispose};
_.E(Vo,_.Jm);var iHC=function(p,x){var F=setTimeout(function(){p.uCO.resolve()},x);
p.addOnDisposeCallback(function(){return void clearTimeout(F)})};
Vo.prototype.vy=function(p,x){var F=this.i0(p);x==null||x(F);return Ah(this.logger,function(){return _.Xc(F,2)},this.fdY)};
var I0D=function(p,x,F,N){return Ah(p.logger,function(){return F?p.vy(x,N):p.i0(x,N)},p.nQ)};
UcC=Symbol.dispose;var $cB=function(p,x,F,N){Vo.call(this,p);this.mDA=x;this.srX=F;this.nQ="m";this.fdY="x";this.jrX=0;iHC(this,N)};
_.E($cB,Vo);$cB.prototype.i0=function(p,x){var F=this;this.logger.yQ(this.nQ);++this.jrX>=this.srX&&this.uCO.resolve();var N=p();p=Ah(this.logger,function(){return F.mDA(N)},"C");
if(p===void 0)throw new xj(17,"YNJ:Undefined");if(!(p instanceof Uint8Array))throw new xj(18,"ODM:Invalid");x==null||x(p);return p};
var eWv=function(p,x,F){Vo.call(this,p);this.isw=x;this.nQ="f";this.fdY="z";iHC(this,F)};
_.E(eWv,Vo);eWv.prototype.i0=function(){return this.isw};
var peD=function(p,x,F){Vo.call(this,p);this.xyz=x;this.nQ="w";this.fdY="z";iHC(this,F)};
_.E(peD,Vo);peD.prototype.i0=function(){var p=this;return Ah(this.logger,function(){return _.Fj(p.xyz)},"d")};
peD.prototype.vy=function(){return this.xyz};
var xGJ=function(p,x){Vo.call(this,p);this.error=x;this.nQ="e";this.fdY="y"};
_.E(xGJ,Vo);var FVD=function(p,x){var F=(x(p.error.message)+":"+x(p.error.stack)).substring(0,2048);x=F.length+1;F=rqr(F);var N=new Uint8Array(4+F.length);N.set([42,x&127|128,x>>7,p.error.code]);N.set(F,4);return N};
xGJ.prototype.i0=function(){if(this.pJo)return this.pJo;this.pJo=FVD(this,function(p){return"_"+k4B(p)});
return FVD(this,function(p){return p})};
var NxB=function(p,x,F){Vo.call(this,p);this.kcA=x;this.clientState=F;this.nQ="S";this.fdY="q"};
_.E(NxB,Vo);NxB.prototype.i0=function(){var p=Math.floor(Date.now()/1E3),x=[Math.random()*255,Math.random()*255],F=x.concat([this.kcA&255,this.clientState],[p>>24&255,p>>16&255,p>>8&255,p&255]);p=new Uint8Array(2+F.length);p[0]=34;p[1]=F.length;p.set(F,2);F=p.subarray(2);for(var N=x=x.length;N<F.length;++N)F[N]^=F[N%x];this.logger.gFm(this.clientState);return p};var hKl={jhR:3E4,rt2:2E4},Ws=function(p){_.Jm.call(this);var x=this;this.vrJ=new _.FT;this.l7t=0;this.jD=void 0;this.state=2;this.zW=p.zW;this.mD=p.mD;this.h8f=Object.assign({},hKl,p.h8f||{});this.logger=p.zW.tsf();var F;this.onError=(F=p.onError)!=null?F:function(){};
this.o2P=p.o2P||!1;if(lJB(p)){var N=this.zW;this.m4O=function(){return YyI(N).catch(function(M){M=x.reportError(new xj(x.yV?20:32,"TRG:Disposed",M));x.jD=M;var f;(f=x.yV)==null||f.dispose();x.yV=void 0;x.vrJ.reject(M)})};
wSD(N,function(){return void cuB(x)});
N.eCL===2&&cuB(this)}else this.m4O=p.w9o,cuB(this);var h=this.logger.share();h.yQ("o");var c=new ZHm(h,"o");this.vrJ.promise.then(function(){c.done();h.qQ();h.dispose()},function(){return void h.dispose()});
this.addOnDisposeCallback(function(){x.yV?(x.yV.dispose(),x.yV=void 0):x.jD?x.logger.qQ():(x.jD=x.reportError(new xj(32,"TNP:Disposed")),x.logger.qQ(),x.vrJ.reject(x.jD))});
_.aG(this,this.logger)};
_.E(Ws,_.Jm);Ws.prototype.uTs=function(){return this.vrJ.promise};
var aJv=function(p,x){if(!(x instanceof xj))if(x instanceof _.zh){var F=Error(x.toString());F.stack=x.stack;x=new xj(11,"EBH:Error",F)}else x=new xj(12,"BSO:Unknown",x);return p.reportError(x)},cuB=function(p){var x,F,N,h,c,M,f,K,t,d,v,C,X,Q,b;
return _.D(function(A){switch(A.nextAddress){case 1:x=void 0;p.l7t++;F=new _.FT;p.zW instanceof Yj&&p.zW.ksO.push(F.promise);if(!p.o2P){A.jumpTo(2);break}N=new _.FT;setTimeout(function(){return void N.resolve()});
return _.q(A,N.promise,2);case 2:return h=p.logger.share(),_.KM(A,4,5),p.state=5,c={},M=[],_.q(A,tm(p.zW.snapshot({cz:c,fsc:M}),p.h8f.rt2,function(){return Promise.reject(new xj(15,"MDA:Timeout"))}),7);
case 7:f=A.yieldResult;if(p.isDisposed())throw new xj(p.yV?20:32,"MDA:Disposed");K=M[0];p.state=6;return _.q(A,tm(MOI(p.mD,f),p.h8f.jhR,function(){return Promise.reject(new xj(10,"BWB:Timeout"))}),8);
case 8:t=A.yieldResult;if(p.isDisposed())throw new xj(p.yV?20:32,"BWB:Disposed");p.state=7;x=Ah(h,function(){var O=DGn(p,t,F,K);O.uCO.promise.then(function(){return void p.m4O()});
return O},"i");
case 5:_.ZC(A);h.dispose();_.dn(A,6);break;case 4:d=_.v9(A);(v=x)==null||v.dispose();if(!p.jD){C=aJv(p,d);F.resolve();var Y;if(Y=p.zW instanceof Yj&&p.l7t<2)a:if(d instanceof xj)Y=d.code!==32&&d.code!==20&&d.code!==10;else{if(d instanceof _.zh)switch(d.code){case 2:case 13:case 14:case 4:break;default:Y=!1;break a}Y=!0}if(Y)return X=(1+Math.random()*.25)*(p.yV?6E4:1E3),Q=setTimeout(function(){return void p.m4O()},X),p.addOnDisposeCallback(function(){return void clearTimeout(Q)}),A.return();
p.jD=C}h.logError(p.yV?13:14);p.vrJ.reject(p.jD);return A.return();case 6:p.state=8,p.l7t=0,(b=p.yV)==null||b.dispose(),p.yV=x,p.vrJ.resolve(),_.JB(A)}})},DGn=function(p,x,F,N){var h=Mbp(x,2)*1E3;
if(h<=0)throw new xj(31,"TTM:Invalid");if(_.uq(x,4))return new peD(p.logger,_.uq(x,4),h);if(!Mbp(x,3))return new eWv(p.logger,TNJ(_.SG(x,1)),h);if(!N)throw new xj(4,"PMD:Undefined");N=N(TNJ(_.SG(x,1)));if(!(N instanceof Function))throw new xj(16,"APF:Failed");p.ucz=Math.floor((Date.now()+h)/1E3);p=new $cB(p.logger,N,Mbp(x,3),h);p.addOnDisposeCallback(function(){return void F.resolve()});
return p};
Ws.prototype.i0=function(p){return fJD(this,Object.assign({},p),!1)};
Ws.prototype.vy=function(p){return fJD(this,Object.assign({},p),!0)};
Ws.prototype.xiG=function(p){if(p>150)return!1;try{return this.cache=new jGb(p,this.logger),!0}catch(x){return this.reportError(new xj(22,"GBJ:init",x)),!1}};
Ws.prototype.reportError=function(p){this.logger.logError(p.code);this.onError(p);return p};
var KVJ=function(p,x){x=x instanceof xj?x:new xj(5,"TVD:error",x);return p.reportError(x)},fJD=function(p,x,F){try{if(p.isDisposed())throw new xj(21,"BNT:disposed");
if(!p.yV&&p.jD)throw p.jD;var N,h;return(h=(N=q_B(p,x,F))!=null?N:ZnI(p,x,F))!=null?h:tOb(p,x,F)}catch(c){if(!x.f3E)throw KVJ(p,c);return dGZ(p,F,c)}},q_B=function(p,x,F){var N;
return(N=p.yV)==null?void 0:I0D(N,function(){return vdm(p,x)},F,function(h){var c;
if(p.yV instanceof $cB&&((c=x.mE)==null?0:c.qdz))try{var M;(M=p.cache)==null||LXl(M,vdm(p,x),h,x.mE.swO,p.ucz-120)}catch(f){p.reportError(new xj(24,"ELX:write",f))}})},ZnI=function(p,x,F){var N;
if((N=x.mE)!=null&&N.dNB)try{var h,c=(h=p.cache)==null?void 0:PIk(h,vdm(p,x),x.mE.swO);return c?F?Ah(p.logger,function(){return _.Xc(c,2)},"a"):c:void 0}catch(M){p.reportError(new xj(23,"RXO:read",M))}},tOb=function(p,x,F){var N={stack:[],
error:void 0,hasError:!1};try{if(!x.l3c)throw new xj(29,"SDF:notready");return I0D(_.WT(N,new NxB(p.logger,0,p.state)),function(){return vdm(p,x)},F)}catch(h){N.error=h,N.hasError=!0}finally{_.HT(N)}},dGZ=function(p,x,F){var N={stack:[],
error:void 0,hasError:!1};try{var h=KVJ(p,F);return I0D(_.WT(N,new xGJ(p.logger,h)),function(){return[]},x)}catch(c){N.error=c,N.hasError=!0}finally{_.HT(N)}},vdm=function(p,x){return x.lqc?x.lqc:x.cz?Ah(p.logger,function(){return x.lqc=rqr(x.cz)},"c"):[]},lJB=function(p){return Gm(function(x){if(!snJ(x))return!1;
for(var F=_.a(Object.entries(p)),N=F.next();!N.done;N=F.next()){var h=_.a(N.value);N=h.next().value;h=h.next().value;if(!(N in x)){if(h.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!h(x[N]))return!1}return!0})}({zW:function(p){return Gm(function(x){return x instanceof p})}(Yj)},"");var J7m=function(){var p=_.hF();this.JSC$7791_streamzService=p;p.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",xC("tick"),_.pH("from_st_cookie"))};
J7m.prototype.increment=function(p,x){this.JSC$7791_streamzService.JSC$7643_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",p,x)};
var JuB=function(){var p=_.hF();this.JSC$7797_streamzService=p;p.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.F2("status"))};
JuB.prototype.increment=function(p){this.JSC$7797_streamzService.JSC$7643_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",p)};
var CGm=function(){var p=_.hF();this.JSC$7800_streamzService=p;p.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.F2("stage"),_.pH("is_using_ytd_player"),_.pH("has_expandable_tiles"))};
CGm.prototype.increment=function(p,x,F){this.JSC$7800_streamzService.JSC$7643_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",p,x,F)};
var S_b=function(){var p=_.hF();this.JSC$7803_streamzService=p;p.addNewCounter("/client_streamz/youtube/web/response_signature",_.F2("check_status"))};
S_b.prototype.increment=function(p){this.JSC$7803_streamzService.JSC$7643_incrementCounter("/client_streamz/youtube/web/response_signature",p)};
var ruI=function(){var p=_.hF();this.JSC$7806_streamzService=p;p.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.F2("sig"),xC("de"))};
ruI.prototype.increment=function(p,x){this.JSC$7806_streamzService.JSC$7643_incrementCounter("/client_streamz/youtube/web/e_sig_log",p,x)};
_.EdC=function(){var p=_.hF();this.JSC$7809_streamzService=p;p.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.F2("action"))};
_.EdC.prototype.increment=function(p){this.JSC$7809_streamzService.JSC$7643_incrementCounter("/client_streamz/youtube/web/enforcement_intent",p)};var kKd=function(){var p=_.hF();this.JSC$7812_streamzService=p;p.addNewCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",_.F2("tagname"))};
kKd.prototype.increment=function(p){this.JSC$7812_streamzService.JSC$7643_incrementCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",p)};var Hs=window;var XeJ=(new Date).getTime();var gdZ=function(p){this.servicePromise_=p;p.then((0,_.CH)(function(){},this),function(){},this)},QUb=function(p,x,F){p.servicePromise_.then(function(N){var h=N[x];
if(!h)throw Error("Oa`"+x);return h.apply(N,F)})},nd6=function(p,x,F){for(var N=Array(arguments.length-2),h=2;h<arguments.length;h++)N[h-2]=arguments[h];
h=zKm(p,x).then(function(c){return c.apply(null,N)},function(c){c=Error("Pa`"+x+"`"+p,{cause:c});
delete sUn[x];return _.o9(c)});
return new gdZ(h)},sUn={},zKm=function(p,x){var F=sUn[x];
if(F)return F;F=(F=_.A9(x))?_.qt(F):(new _.cZ(function(N,h){var c=(new ny(document)).createElement("SCRIPT");c.async=!0;_.UU(c,_.vz(I8J(p)));c.onload=c.onreadystatechange=function(){c.readyState&&c.readyState!="loaded"&&c.readyState!="complete"||N()};
c.onerror=function(M){h(Error("Qa`"+x+"`"+p,{cause:M}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(c)})).then(function(){var N=_.A9(x);
if(!N)throw Error("Ra`"+x+"`"+p);return N});
return sUn[x]=F};var yuC={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},Aun=function(){var p=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=E3p(function(){return _.D(function(x){if(x.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?x.return(Promise.resolve()):_.q(x,bnB(p),2);p.rsaForList.length>
0&&document.addEventListener("click",p.requestAccessForHelpPanel);_.JB(x)})});
this.requestAccessForHelpPanel=function(){if(!(p.rsaForPromises.length>0)){for(var x=_.a(p.rsaForList),F=x.next();!F.done;F=x.next()){F=F.value;try{p.rsaForPromises.push(document.requestStorageAccessFor(F))}catch(N){}}Promise.all(p.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){p.reset()})}}};
Aun.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var bnB=function(p){var x,F,N,h;return _.D(function(c){switch(c.nextAddress){case 1:x=_.a(Object.values(yuC)),F=x.next();case 2:if(F.done){c.jumpTo(0);break}N=F.value;_.KM(c,5);return _.q(c,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:N}),7);case 7:h=c.yieldResult;h.state!=="granted"&&p.rsaForList.push(N);_.ub(c,3);break;case 5:_.v9(c);c.jumpTo(0);break;case 3:F=x.next(),c.jumpTo(2)}})};(new Aun).initialize();var uDB=function(p){this.JSC$7826_loader_=p};
uDB.prototype.startHelp=function(p){QUb(this.JSC$7826_loader_,"startHelp",arguments)};
uDB.prototype.JSC$7828_loadChatSupport=function(p){QUb(this.JSC$7826_loader_,"loadChatSupport",arguments)};
var weD=function(p,x){x=x||{};p=nd6(Y_l,"help.service.Lazy.create",p,{apiKey:x.apiKey||x.apiKey,asxUiUri:x.asxUiUri||x.asxUiUri,environment:x.environment||x.environment,flow:x.flow||x.flow,frdProductData:x.frdProductData||x.frdProductData,frdProductDataSerializedJspb:x.frdProductDataSerializedJspb||x.frdProductDataSerializedJspb,helpCenterPath:x.helpCenterPath||x.helpCenterPath,locale:x.locale||x.locale||"en-US".replace(/-/g,"_"),nonce:x.nonce||x.nonce,productData:x.productData||x.productData,receiverUri:x.receiverUri||
x.receiverUri,renderApiUri:x.renderApiUri||x.renderApiUri,theme:x.theme||x.theme,window:x.window||x.window});return new uDB(p)},Y_l=new bK(qsp,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var GGB=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(GGB,_.Uk);var VOl=_.cz(GGB);new Uint8Array([]);_.WVl=new function(p,x,F,N){this.configType=p;this.flagName=F;this.defaultValue=N;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 mGb=function(){this.retriever=_.J().resolve(Hnl)};g3p(Node);g3p(Element);var odb=g3p(HTMLElement);g3p(SVGElement);var OnZ,jUD,O1,LVj;OnZ=function(p){return typeof p.className=="string"?p.className:p.getAttribute&&p.getAttribute("class")||""};
jUD=function(p){return p.classList?p.classList:OnZ(p).match(/\S+/g)||[]};
_.mZ=function(p,x){typeof p.className=="string"?p.className=x:p.setAttribute&&p.setAttribute("class",x)};
_.oX=function(p,x){return p.classList?p.classList.contains(x):_.oJ(jUD(p),x)};
_.Wl=function(p,x){if(p.classList)p.classList.add(x);else if(!_.oX(p,x)){var F=OnZ(p);_.mZ(p,F+(F.length>0?" "+x:x))}};
O1=function(p,x){if(p.classList)Array.prototype.forEach.call(x,function(h){_.Wl(p,h)});
else{var F={};Array.prototype.forEach.call(jUD(p),function(h){F[h]=!0});
Array.prototype.forEach.call(x,function(h){F[h]=!0});
x="";for(var N in F)x+=x.length>0?" "+N:N;_.mZ(p,x)}};
_.GT=function(p,x){p.classList?p.classList.remove(x):_.oX(p,x)&&_.mZ(p,Array.prototype.filter.call(jUD(p),function(F){return F!=x}).join(" "))};
LVj=function(p,x){p.classList?Array.prototype.forEach.call(x,function(F){_.GT(p,F)}):_.mZ(p,Array.prototype.filter.call(jUD(p),function(F){return!_.oJ(x,F)}).join(" "))};var PGB=function(p){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=p.document},RKv=function(p,x){TxZ(p);
var F=document.createElement("div"),N;(N=x.parentNode)==null||N.insertBefore(F,x);F.tabIndex=0;F.id="fc-focus-trap-pre-div";F=document.createElement("div");var h;(h=x.parentNode)==null||h.insertBefore(F,x.nextSibling);F.tabIndex=0;F.id="fc-focus-trap-post-div";var c=BxD(p,x),M=BxD(p,x,!0);c&&M&&(p.focusChangeHandler=function(){var f=p.document.activeElement;if(f)if(_.uI(x,f))p.previouslyFocusedElement=f;else if(f===p.document.activeElement)switch(p.previouslyFocusedElement){case c:M.focus();p.previouslyFocusedElement=
M;break;default:c.focus(),p.previouslyFocusedElement=c}},p.document.addEventListener("focus",p.focusChangeHandler,!0),p.document.addEventListener("focusin",p.focusChangeHandler))},TxZ=function(p){p.focusChangeHandler&&(document.removeEventListener("focus",p.focusChangeHandler,!0),document.removeEventListener("focusin",p.focusChangeHandler),p.focusChangeHandler=null);
var x;(x=document.getElementById("fc-focus-trap-pre-div"))==null||x.remove();var F;(F=document.getElementById("fc-focus-trap-post-div"))==null||F.remove()},kGj=function(p,x,F,N,h){F=F===void 0?!0:F;
var c;h=(c=h===void 0?null:h)!=null?c:BxD(p,x,N===void 0?!1:N);h!==null&&(h.focus(),F&&RKv(p,x))};
PGB.prototype.disableButton=function(p,x){x=x===void 0?null:x;p.disabled=!0;x&&_.Wl(p,x)};
var BxD=function(p,x,F){F=F===void 0?!1:F;if(brE(x)&&!F)return x;var N=F?[].slice.call(x.children,0).reverse():x.children;N=_.a(N);for(var h=N.next();!h.done;h=N.next())if(h=h.value,odb(h)&&(h=BxD(p,h,F)))return h;return brE(x)&&F?x:null};var UGk=function(p){this.originalBodyOverflow="";this.JSC$7854_domHelper=vm(p)};_.NL(_.Se,_.Jm);_.l=_.Se.prototype;_.l.JSC$7857_id_=0;_.l.disposeInternal=function(){_.Se.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$7855_listener_;delete this.handler_};
_.l.start=function(p){this.stop();this.JSC$7857_id_=Qo(this.callback_,p!==void 0?p:this.JSC$7855_interval_)};
_.l.stop=function(){this.isActive()&&_.Mm.clearTimeout(this.JSC$7857_id_);this.JSC$7857_id_=0};
_.l.fire=function(){this.stop();this.JSC$7857_doAction_()};
_.l.isActive=function(){return this.JSC$7857_id_!=0};
_.l.JSC$7857_doAction_=function(){this.JSC$7857_id_=0;this.JSC$7855_listener_&&this.JSC$7855_listener_.call(this.handler_)};_.ps=function(p){_.Jm.call(this);this.handler_=p;this.JSC$7858_keys_={}};
_.NL(_.ps,_.Jm);var inv=[];_.ps.prototype.listen=function(p,x,F,N){Array.isArray(x)||(x&&(inv[0]=x.toString()),x=inv);for(var h=0;h<x.length;h++){var c=_.qd(p,x[h],F||this.handleEvent,N||!1,this.handler_||this);if(!c)break;this.JSC$7858_keys_[c.key]=c}return this};
_.ps.prototype.listenOnce=function(p,x,F,N){return IJD(this,p,x,F,N)};
var IJD=function(p,x,F,N,h,c){if(Array.isArray(F))for(var M=0;M<F.length;M++)IJD(p,x,F[M],N,h,c);else{x=Md(x,F,N||p.handleEvent,h,c||p.handler_||p);if(!x)return p;p.JSC$7858_keys_[x.key]=x}return p};
_.ps.prototype.unlisten=function(p,x,F,N,h){if(Array.isArray(x))for(var c=0;c<x.length;c++)this.unlisten(p,x[c],F,N,h);else if(p=XmZ(p,x,F||this.handleEvent,_.IJ(N)?!!N.capture:!!N,h||this.handler_||this))D$(p),delete this.JSC$7858_keys_[p.key];return this};
_.ps.prototype.removeAll=function(){_.Q5.forEach(this.JSC$7858_keys_,function(p,x){this.JSC$7858_keys_.hasOwnProperty(x)&&D$(p)},this);
this.JSC$7858_keys_={}};
_.ps.prototype.disposeInternal=function(){_.ps.superClass_.disposeInternal.call(this);this.removeAll()};
_.ps.prototype.handleEvent=function(){throw Error("Sa");};var jc=function(){_.Jm.call(this);this.services_={}};
_.NL(jc,_.Jm);_.l=jc.prototype;_.l.logger=null;_.l.connect=function(p){p&&p()};
_.l.isConnected=function(){return!0};
_.l.registerService=function(p,x,F){this.services_[p]={callback:x,objectPayload:!!F}};
_.l.getService=function(p,x){var F=this.services_[p];return F?F:this.defaultService_?{callback:_.Sz(this.defaultService_,p),objectPayload:_.IJ(x)}:null};
var $GK=function(p,x){if(x&&typeof p==="string")try{return JSON.parse(p)}catch(F){return null}else if(!x&&typeof p!=="string")return(0,_.s1)(p);return p};
jc.prototype.disposeInternal=function(){jc.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 Li=function(p,x){this.sequence_=[];this.onCancelFunction_=p;this.defaultScope_=x||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};
Li.prototype.cancel=function(p){if(this.fired_)this.result_ instanceof Li&&this.result_.cancel();else{if(this.parent_){var x=this.parent_;delete this.parent_;p?x.cancel(p):(x.branches_--,x.branches_<=0&&x.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Ps(this))}};
Li.prototype.continue_=function(p,x){this.blocked_=!1;eK6(this,p,x)};
var eK6=function(p,x,F){p.fired_=!0;p.result_=F;p.hadError_=!x;pwk(p)},Fgm=function(p){if(p.fired_){if(!p.silentlyCanceled_)throw new x$b(p);
p.silentlyCanceled_=!1}};
Li.prototype.callback=function(p){Fgm(this);eK6(this,!0,p)};
Li.prototype.errback=function(p){Fgm(this);eK6(this,!1,p)};
var N1m=function(p,x,F){Th(p,x,null,F)};
Li.prototype.finally=function(p){var x=this;return new Promise(function(F,N){Th(x,function(h){p();F(h)},function(h){p();
N(h)})})};
var Th=function(p,x,F,N){var h=p.fired_;h||(x===F?x=F=r8(x):(x=r8(x),F=r8(F)));p.sequence_.push([x,F,N]);h&&pwk(p)};
Li.prototype.then=function(p,x,F){var N,h,c=new _.cZ(function(M,f){h=M;N=f});
Th(this,h,function(M){M instanceof Ps?c.cancel():N(M);return hav},this);
return c.then(p,x,F)};
A_l(Li);var l9I=function(p,x){x instanceof Li?N1m(p,(0,_.CH)(x.branch,x)):N1m(p,function(){return x})};
Li.prototype.branch=function(p){var x=new Li;Th(this,x.callback,x.errback,x);p&&(x.parent_=this,this.branches_++);return x};
Li.prototype.isError=function(p){return p instanceof Error};
var c96=function(p){return Wu(p.sequence_,function(x){return typeof x[1]==="function"})},hav={},pwk=function(p){if(p.unhandledErrorId_&&p.fired_&&c96(p)){var x=p.unhandledErrorId_,F=a9l[x];
F&&(_.Mm.clearTimeout(F.JSC$7875_id_),delete a9l[x]);p.unhandledErrorId_=0}p.parent_&&(p.parent_.branches_--,delete p.parent_);x=p.result_;for(var N=F=!1;p.sequence_.length&&!p.blocked_;){var h=p.sequence_.shift(),c=h[0],M=h[1];h=h[2];if(c=p.hadError_?M:c)try{var f=c.call(h||p.defaultScope_,x);f===hav&&(f=void 0);f!==void 0&&(p.hadError_=p.hadError_&&(f==x||p.isError(f)),p.result_=x=f);if(uaD(x)||typeof _.Mm.Promise==="function"&&x instanceof _.Mm.Promise)N=!0,p.blocked_=!0}catch(K){x=K,p.hadError_=
!0,c96(p)||(F=!0)}}p.result_=x;N&&(f=(0,_.CH)(p.continue_,p,!0),N=(0,_.CH)(p.continue_,p,!1),x instanceof Li?(Th(x,f,N),x.blocking_=!0):x.then(f,N));F&&(x=new MrI(x),a9l[x.JSC$7875_id_]=x,p.unhandledErrorId_=x.JSC$7875_id_)},x$b=function(){_.x$.call(this)};
_.NL(x$b,_.x$);x$b.prototype.message="Deferred has already fired";x$b.prototype.name="AlreadyCalledError";var Ps=function(){_.x$.call(this)};
_.NL(Ps,_.x$);Ps.prototype.message="Deferred was canceled";Ps.prototype.name="CanceledError";var MrI=function(p){this.JSC$7875_id_=_.Mm.setTimeout((0,_.CH)(this.throwError,this),0);this.JSC$7875_error_=p};
MrI.prototype.throwError=function(){delete a9l[this.JSC$7875_id_];throw this.JSC$7875_error_;};
var a9l={};var D$l={1:"NativeMessagingTransport"},f9C=["pu","lru","pru","lpu","ppu"],qdk=function(){for(var p=10,x=KgB,F=x.length,N="";p-- >0;)N+=x.charAt(Math.floor(Math.random()*F));return N},KgB="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var Bs=function(p){_.Jm.call(this);this.JSC$7878_domHelper_=p||vm()};
_.NL(Bs,_.Jm);Bs.prototype.transportType=0;Bs.prototype.getWindow=function(){return this.JSC$7878_domHelper_.getWindow()};
Bs.prototype.getName=function(){return D$l[String(this.transportType)]||""};var RX=function(p,x,F,N,h){Bs.call(this,F);this.JSC$7881_channel_=p;this.protocolVersion_=h||2;this.peerHostname_=x||"*";this.JSC$7881_eventHandler_=new _.ps(this);this.maybeAttemptToConnectTimer_=new _.eB(100,this.getWindow());this.oneSidedHandshake_=!!N;this.setupAckReceived_=new Li;this.setupAckSent_=new Li;this.JSC$7881_connected_=new Li;this.endpointId_=qdk();this.peerEndpointId_=null;this.oneSidedHandshake_?Ztb(this.JSC$7881_channel_)==1?l9I(this.JSC$7881_connected_,this.setupAckReceived_):
l9I(this.JSC$7881_connected_,this.setupAckSent_):(l9I(this.JSC$7881_connected_,this.setupAckReceived_),this.protocolVersion_==2&&l9I(this.JSC$7881_connected_,this.setupAckSent_));N1m(this.JSC$7881_connected_,this.notifyConnected_,this);this.JSC$7881_connected_.callback(!0);this.JSC$7881_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.NL(RX,Bs);RX.prototype.peerProtocolVersion_=null;RX.prototype.initialized_=!1;RX.prototype.transportType=1;var trk={};RX.prototype.sendTimerId_=0;
var J9m=function(p){var x=p.event_.data;if(typeof x!=="string")return!1;var F=x.indexOf("|"),N=x.indexOf(":");if(F==-1||N==-1)return!1;var h=x.substring(0,F);F=x.substring(F+1,N);x=x.substring(N+1);if(N=kj[h])return N.xpcDeliver(F,x,p.event_.origin),!0;N=d$n(x)[0];for(var c in kj){var M=kj[c];if(Ztb(M)==1&&!M.isConnected()&&F=="tp"&&(N=="SETUP"||N=="SETUP_NTPV2")&&vF6(M,p.event_.origin))return delete kj[M.name],M.name=h,kj[h]=M,M.xpcDeliver(F,x),!0}return!1},COJ=function(p){p.protocolVersion_!=2||
p.peerProtocolVersion_!=null&&p.peerProtocolVersion_!=2||p.send("tp","SETUP_NTPV2,"+p.endpointId_);
p.peerProtocolVersion_!=null&&p.peerProtocolVersion_!=1||p.send("tp","SETUP")},Sdl=function(p,x){if(p.protocolVersion_!=2||p.peerProtocolVersion_!=null&&p.peerProtocolVersion_!=2||x!=2){if(p.peerProtocolVersion_!=null&&p.peerProtocolVersion_!=1||x!=1)return;
p.send("tp","SETUP_ACK")}else p.send("tp","SETUP_ACK_NTPV2");p.setupAckSent_.fired_||p.setupAckSent_.callback(!0)},r9n=function(p,x){x>p.peerProtocolVersion_&&(p.peerProtocolVersion_=x);
p.peerProtocolVersion_==1&&(p.setupAckSent_.fired_||p.oneSidedHandshake_||p.setupAckSent_.callback(!0),p.peerEndpointId_=null)};
_.l=RX.prototype;_.l.connect=function(){var p=this.getWindow(),x=_.$$(p),F=trk[x];typeof F!=="number"&&(F=0);F==0&&_.qd(p.postMessage?p:p.document,"message",J9m,!1,RX);trk[x]=F+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.l.maybeAttemptToConnect_=function(){var p=Ztb(this.JSC$7881_channel_)==0;this.oneSidedHandshake_&&p||this.JSC$7881_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),COJ(this))};
_.l.send=function(p,x){var F=this.JSC$7881_channel_.peerWindowObject_;F&&(this.send=function(N,h){var c=this,M=this.JSC$7881_channel_.name;this.sendTimerId_=Qo(function(){c.sendTimerId_=0;try{var f=F.postMessage?F:F.document;f.postMessage&&f.postMessage(M+"|"+N+":"+h,c.peerHostname_)}catch(K){}},0)},this.send(p,x))};
_.l.notifyConnected_=function(){var p=this.JSC$7881_channel_,x=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;p.isConnected()||p.connectionDelay_&&p.connectionDelay_.isActive()||(p.state_=2,_.RR(p.connectionDelay_),x!==void 0?(p.connectionDelay_=new _.Se(p.connectCb_,x),p.connectionDelay_.start()):(p.connectionDelay_=null,p.connectCb_()))};
_.l.disposeInternal=function(){if(this.initialized_){var p=this.getWindow(),x=_.$$(p),F=trk[x];trk[x]=F-1;F==1&&_.Ci(p.postMessage?p:p.document,"message",J9m,!1,RX)}this.sendTimerId_&&(_.Mm.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.RR(this.JSC$7881_eventHandler_);delete this.JSC$7881_eventHandler_;_.RR(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$7881_connected_.cancel();delete this.JSC$7881_connected_;delete this.send;RX.superClass_.disposeInternal.call(this)};
var d$n=function(p){p=p.split(",");p[1]=p[1]||null;return p};_.U1=function(p){if(p.getValues&&typeof p.getValues=="function")return p.getValues();if(typeof Map!=="undefined"&&p instanceof Map||typeof Set!=="undefined"&&p instanceof Set)return Array.from(p.values());if(typeof p==="string")return p.split("");if(_.TB(p)){for(var x=[],F=p.length,N=0;N<F;N++)x.push(p[N]);return x}return _.Q5.getValues(p)};
_.EFm=function(p){if(p.getKeys&&typeof p.getKeys=="function")return p.getKeys();if(!p.getValues||typeof p.getValues!="function"){if(typeof Map!=="undefined"&&p instanceof Map)return Array.from(p.keys());if(!(typeof Set!=="undefined"&&p instanceof Set)){if(_.TB(p)||typeof p==="string"){var x=[];p=p.length;for(var F=0;F<p;F++)x.push(F);return x}return _.Q5.getKeys(p)}}};
_.XwD=function(p,x,F){if(p.forEach&&typeof p.forEach=="function")p.forEach(x,F);else if(_.TB(p)||typeof p==="string")Array.prototype.forEach.call(p,x,F);else for(var N=_.EFm(p),h=_.U1(p),c=h.length,M=0;M<c;M++)x.call(F,h[M],N&&N[M],p)};var saz,Ns,lE,A9n,QDn,gFK,sDC,zaC,btn,nFn;
_.R9=function(p,x){this.JSC$7886_domain_=this.userInfo_=this.scheme_="";this.JSC$7886_port_=null;this.fragment_=this.JSC$7886_path_="";this.JSC$7886_ignoreCase_=!1;var F;p instanceof _.R9?(this.JSC$7886_ignoreCase_=x!==void 0?x:p.JSC$7886_ignoreCase_,_.iM(this,p.scheme_),this.userInfo_=p.userInfo_,_.IX(this,p.JSC$7886_domain_),_.ec(this,p.JSC$7886_port_),_.pF(this,p.getPath()),_.x9(this,p.JSC$7886_queryData_.clone()),_.Fp(this,p.fragment_)):p&&(F=_.mg(String(p)))?(this.JSC$7886_ignoreCase_=!!x,_.iM(this,
F[1]||"",!0),this.userInfo_=Ns(F[2]||""),_.IX(this,F[3]||"",!0),_.ec(this,F[4]),_.pF(this,F[5]||"",!0),_.x9(this,F[6]||"",!0),_.Fp(this,F[7]||"",!0)):(this.JSC$7886_ignoreCase_=!!x,this.JSC$7886_queryData_=new _.hk(null,this.JSC$7886_ignoreCase_))};
_.R9.prototype.toString=function(){var p=[],x=this.scheme_;x&&p.push(lE(x,gFK,!0),":");var F=this.JSC$7886_domain_;if(F||x=="file")p.push("//"),(x=this.userInfo_)&&p.push(lE(x,gFK,!0),"@"),p.push(QDn(_.YF(F))),F=this.JSC$7886_port_,F!=null&&p.push(":",String(F));if(F=this.getPath())this.JSC$7886_domain_&&F.charAt(0)!="/"&&p.push("/"),p.push(lE(F,F.charAt(0)=="/"?zaC:sDC,!0));(F=this.JSC$7886_queryData_.toString())&&p.push("?",F);(F=this.fragment_)&&p.push("#",lE(F,nFn));return p.join("")};
_.R9.prototype.resolve=function(p){var x=this.clone(),F=!!p.scheme_;F?_.iM(x,p.scheme_):F=!!p.userInfo_;F?x.userInfo_=p.userInfo_:F=!!p.JSC$7886_domain_;F?_.IX(x,p.JSC$7886_domain_):F=p.JSC$7886_port_!=null;var N=p.getPath();if(F)_.ec(x,p.JSC$7886_port_);else if(F=!!p.JSC$7886_path_){if(N.charAt(0)!="/")if(this.JSC$7886_domain_&&!this.JSC$7886_path_)N="/"+N;else{var h=x.getPath().lastIndexOf("/");h!=-1&&(N=x.getPath().slice(0,h+1)+N)}h=N;if(h==".."||h==".")N="";else if(_.vr(h,"./")||_.vr(h,"/.")){N=
_.qm(h,"/");h=h.split("/");for(var c=[],M=0;M<h.length;){var f=h[M++];f=="."?N&&M==h.length&&c.push(""):f==".."?((c.length>1||c.length==1&&c[0]!="")&&c.pop(),N&&M==h.length&&c.push("")):(c.push(f),N=!0)}N=c.join("/")}else N=h}F?_.pF(x,N):F=p.JSC$7886_queryData_.toString()!=="";F?_.x9(x,p.JSC$7886_queryData_.clone()):F=!!p.fragment_;F&&_.Fp(x,p.fragment_);return x};
_.R9.prototype.clone=function(){return new _.R9(this)};
_.iM=function(p,x,F){p.scheme_=F?Ns(x,!0):x;p.scheme_&&(p.scheme_=p.scheme_.replace(/:$/,""));return p};
_.IX=function(p,x,F){p.JSC$7886_domain_=F?Ns(x,!0):x;return p};
_.ec=function(p,x){if(x){x=Number(x);if(isNaN(x)||x<0)throw Error("Ta`"+x);p.JSC$7886_port_=x}else p.JSC$7886_port_=null;return p};
_.R9.prototype.getPath=function(){return this.JSC$7886_path_};
_.pF=function(p,x,F){p.JSC$7886_path_=F?Ns(x,!0):x;return p};
_.x9=function(p,x,F){x instanceof _.hk?(p.JSC$7886_queryData_=x,y9Z(p.JSC$7886_queryData_,p.JSC$7886_ignoreCase_)):(F||(x=lE(x,btn)),p.JSC$7886_queryData_=new _.hk(x,p.JSC$7886_ignoreCase_));return p};
_.WS=function(p,x,F){p.JSC$7886_queryData_.set(x,F);return p};
_.VH=function(p,x){return p.JSC$7886_queryData_.get(x)};
_.Fp=function(p,x,F){p.fragment_=F?Ns(x):x;return p};
_.cv=function(p){_.WS(p,"zx",wv());return p};
_.G4=function(p,x){return p instanceof _.R9?p.clone():new _.R9(p,x)};
saz=function(p,x){p instanceof _.R9||(p=_.G4(p));x instanceof _.R9||(x=_.G4(x));return p.resolve(x)};
Ns=function(p,x){return p?x?decodeURI(p.replace(/%25/g,"%2525")):decodeURIComponent(p):""};
lE=function(p,x,F){return typeof p==="string"?(p=encodeURI(p).replace(x,A9n),F&&(p=QDn(p)),p):null};
A9n=function(p){p=p.charCodeAt(0);return"%"+(p>>4&15).toString(16)+(p&15).toString(16)};
QDn=function(p){return p.replace(/%25([0-9a-fA-F]{2})/g,"%$1")};
gFK=/[#\/\?@]/g;sDC=/[#\?:]/g;zaC=/[#\?]/g;btn=/[#\?@]/g;nFn=/#/g;_.hk=function(p,x){this.count_=this.keyMap_=null;this.encodedQuery_=p||null;this.JSC$7887_ignoreCase_=!!x};
_.aw=function(p){p.keyMap_||(p.keyMap_=new Map,p.count_=0,p.encodedQuery_&&KmK(p.encodedQuery_,function(x,F){p.add(Tn(x),F)}))};
_.l=_.hk.prototype;_.l.getCount=function(){_.aw(this);return this.count_};
_.l.add=function(p,x){_.aw(this);this.encodedQuery_=null;p=Ms(this,p);var F=this.keyMap_.get(p);F||this.keyMap_.set(p,F=[]);F.push(x);this.count_+=1;return this};
_.l.remove=function(p){_.aw(this);p=Ms(this,p);return this.keyMap_.has(p)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(p).length,this.keyMap_.delete(p)):!1};
_.l.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.l.isEmpty=function(){_.aw(this);return this.count_==0};
_.l.containsKey=function(p){_.aw(this);p=Ms(this,p);return this.keyMap_.has(p)};
_.l.containsValue=function(p){var x=this.getValues();return _.oJ(x,p)};
_.l.forEach=function(p,x){_.aw(this);this.keyMap_.forEach(function(F,N){F.forEach(function(h){p.call(x,h,N,this)},this)},this)};
_.l.getKeys=function(){_.aw(this);for(var p=Array.from(this.keyMap_.values()),x=Array.from(this.keyMap_.keys()),F=[],N=0;N<x.length;N++)for(var h=p[N],c=0;c<h.length;c++)F.push(x[N]);return F};
_.l.getValues=function(p){_.aw(this);var x=[];if(typeof p==="string")this.containsKey(p)&&(x=x.concat(this.keyMap_.get(Ms(this,p))));else{p=Array.from(this.keyMap_.values());for(var F=0;F<p.length;F++)x=x.concat(p[F])}return x};
_.l.set=function(p,x){_.aw(this);this.encodedQuery_=null;p=Ms(this,p);this.containsKey(p)&&(this.count_-=this.keyMap_.get(p).length);this.keyMap_.set(p,[x]);this.count_+=1;return this};
_.l.get=function(p,x){if(!p)return x;p=this.getValues(p);return p.length>0?String(p[0]):x};
_.uGm=function(p,x,F){p.remove(x);F.length>0&&(p.encodedQuery_=null,p.keyMap_.set(Ms(p,x),_.Pr(F)),p.count_+=F.length)};
_.hk.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var p=[],x=Array.from(this.keyMap_.keys()),F=0;F<x.length;F++){var N=x[F],h=_.YF(N);N=this.getValues(N);for(var c=0;c<N.length;c++){var M=h;N[c]!==""&&(M+="="+_.YF(N[c]));p.push(M)}}return this.encodedQuery_=p.join("&")};
_.hk.prototype.clone=function(){var p=new _.hk;p.encodedQuery_=this.encodedQuery_;this.keyMap_&&(p.keyMap_=new Map(this.keyMap_),p.count_=this.count_);return p};
var Ms=function(p,x){x=String(x);p.JSC$7887_ignoreCase_&&(x=x.toLowerCase());return x},y9Z=function(p,x){x&&!p.JSC$7887_ignoreCase_&&(_.aw(p),p.encodedQuery_=null,p.keyMap_.forEach(function(F,N){var h=N.toLowerCase();
N!=h&&(this.remove(N),_.uGm(this,h,F))},p));
p.JSC$7887_ignoreCase_=x};
_.hk.prototype.extend=function(p){for(var x=0;x<arguments.length;x++)_.XwD(arguments[x],function(F,N){this.add(N,F)},this)};var D7=function(p,x){jc.call(this);for(var F=0,N;N=f9C[F];F++)if(N in p&&!/^https?:\/\//.test(p[N]))throw Error("Va`"+p[N]+"`"+N);this.cfg_=p;this.name=this.cfg_.cn||qdk();this.JSC$7882_domHelper_=x||vm();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.ps(this);p.lpu=p.lpu||DHZ(this.JSC$7882_domHelper_.getWindow().location.href)+"/robots.txt";p.ppu=p.ppu||DHZ(p.pu||"")+"/robots.txt";kj[this.name]=this;XmZ(window,"unload",Ydv)||Md(window,"unload",Ydv)};
_.NL(D7,jc);var wwn=RegExp("^%*tp$"),Gnv=RegExp("^%+tp$");_.l=D7.prototype;_.l.connectionDelay_=null;_.l.peerWindowDeferred_=null;_.l.transport_=null;_.l.state_=1;_.l.isConnected=function(){return this.state_==2};
_.l.peerWindowObject_=null;_.l.iframeElement_=null;_.l.connect=function(p){this.connectCb_=p||_.Ja;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?N1m(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.l.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$7882_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var p=this.iframeElement_.contentWindow;p||(p=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=p}if(!this.peerWindowObject_){if(window==window.top)throw Error("Xa");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$7882_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new RX(this,this.cfg_.ph,this.JSC$7882_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Wa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.l.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.RR(this.transport_);this.connectCb_=this.transport_=null;_.RR(this.connectionDelay_);this.connectionDelay_=null};
_.l.send=function(p,x){if(this.isConnected()){try{var F=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(h){F=!1}if(F){_.IJ(x)&&(x=(0,_.s1)(x));F=this.transport_;var N=F.send;wwn.test(p)&&(p="%"+p);p=p.replace(/[%:|]/g,encodeURIComponent);N.call(F,p,x)}else this.close()}};
_.l.xpcDeliver=function(p,x,F){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.CH)(this.xpcDeliver,this,p,x,F));else if(vF6(this,F)&&!this.isDisposed()&&this.state_!=3)if(p&&p!="tp")this.isConnected()&&(p=p.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),p=Gnv.test(p)?p.substring(1):p,p=this.getService(p,x))&&(x=$GK(x,p.objectPayload),x!=null&&p.callback(x));else switch(p=this.transport_,F=d$n(x),x=F[1],F[0]){case "SETUP_ACK":r9n(p,1);p.setupAckReceived_.fired_||p.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":p.protocolVersion_==2&&(r9n(p,2),p.setupAckReceived_.fired_||p.setupAckReceived_.callback(!0));break;case "SETUP":r9n(p,1);Sdl(p,1);break;case "SETUP_NTPV2":p.protocolVersion_==2&&(F=p.peerProtocolVersion_,r9n(p,2),Sdl(p,2),F!=1&&p.peerEndpointId_==null||p.peerEndpointId_==x||COJ(p),p.peerEndpointId_=x)}};
var Ztb=function(p){var x=p.cfg_.role;return typeof x==="number"?x:window.parent==p.peerWindowObject_?1:0},vF6=function(p,x){var F=p.cfg_.ph;
return _.tz(x==null?"":String(x))||_.tz(F==null?"":String(F))||x==p.cfg_.ph};
D7.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete kj[this.name];_.RR(this.peerLoadHandler_);delete this.peerLoadHandler_;D7.superClass_.disposeInternal.call(this)};
var Ydv=function(){for(var p in kj)_.RR(kj[p])},kj={};var WgB=function(p,x){this.JSC$7896_win=p;this.allowAdsHttpEndpoint=x;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$7896_domHelper=vm(p);this.scrollManager=new UGk(p);this.accessibilityManager=new PGB(p);Vrn(this)},Vrn=function(p){var x=function(){p.allowAdsPopup&&p.allowAdsPopup.style.setProperty("display","none","important");
p.wallElement.style.setProperty("display","","important");TxZ(p.accessibilityManager);kGj(p.accessibilityManager,p.wallElement.querySelector(".fc-dialog-container"),!1,!1,p.wallElement.querySelector(".fc-button-whitelist"));var h=p.scrollManager;h.JSC$7854_domHelper.JSC$7225_document_.body.style.overflow=h.originalBodyOverflow};
p.allowAdsPopup=p.JSC$7896_domHelper.JSC$7227_createDom("DIV",{"class":"fc-whitelist-root"});p.allowAdsPopup.style.setProperty("display","none","important");p.JSC$7896_domHelper.appendChild(p.JSC$7896_domHelper.JSC$7225_document_.body,p.allowAdsPopup);var F=p.JSC$7896_domHelper.JSC$7227_createDom("DIV",{"class":"fc-dialog-overlay"});p.JSC$7896_domHelper.appendChild(p.allowAdsPopup,F);var N=p.JSC$7896_domHelper.JSC$7227_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:x});p.JSC$7896_domHelper.appendChild(p.allowAdsPopup,
N);F=p.JSC$7896_domHelper.JSC$7227_createDom("IFRAME");F.className="fc-whitelist-dialog";F.frameBorder="0";F.id="fc-whitelist-iframe";F.tabIndex="0";_.jP(F,p.allowAdsHttpEndpoint);p.JSC$7896_domHelper.appendChild(N,F);N={};N.pu=_.SP(p.allowAdsHttpEndpoint).toString();N.tp=1;N.cn="fc-whitelist-channel";N.ifrid=F.id;N.osh=!0;p.allowAdsCrossPageChannel=new D7(N);p.allowAdsCrossPageChannel.registerService("close",x);p.allowAdsCrossPageChannel.registerService("refresh",function(){p.JSC$7896_win.location.reload()});
p.allowAdsCrossPageChannel.registerService("resize",function(h){if(h){var c=p.allowAdsPopup.querySelector(".fc-whitelist-dialog");h.width&&c.style.setProperty("width",h.width,"important");h.height&&c.style.setProperty("height",h.height,"important")}},!0);
p.allowAdsCrossPageChannel.connect()};
WgB.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$7896_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var fF=window,KF=document,HtD=fF.location,m$n=function(){},oFb=/\[native code\]/,qs=function(p,x,F){return p[x]=p[x]||F},OtI=function(p){p=p.sort();
for(var x=[],F=void 0,N=0;N<p.length;N++){var h=p[N];h!=F&&x.push(h);F=h}return x},Z7=function(){var p;
if((p=Object.create)&&oFb.test(p))p=p(null);else{p={};for(var x in p)p[x]=void 0}return p},tk=qs(fF,"gapi",{});var dJ={};dJ=qs(fF,"___jsl",Z7());qs(dJ,"I",0);qs(dJ,"hel",10);var jDB=function(){var p=HtD.href;if(dJ.dpo)var x=dJ.h;else{x=dJ.h;var F=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),N=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(p=p&&(F.exec(p)||N.exec(p)))try{x=decodeURIComponent(p[2])}catch(h){}}return x},Lgv=function(p){var x=qs(dJ,"PQ",[]);
dJ.PQ=[];var F=x.length;if(F===0)p();else for(var N=0,h=function(){++N===F&&p()},c=0;c<F;c++)x[c](h)},POZ=function(p){return qs(qs(dJ,"H",Z7()),p,Z7())};var vv=function(p){this.JSC$7898_obj_=p};
vv.prototype.value=function(){return this.JSC$7898_obj_};
vv.prototype.getWidth=function(){return this.JSC$7898_obj_.width};
vv.prototype.getHeight=function(){return this.JSC$7898_obj_.height};
vv.prototype.getStyle=function(){return this.JSC$7898_obj_.style};var T1b=function(p){this.JSC$7901_obj_=p||{}};
_.l=T1b.prototype;_.l.value=function(){return this.JSC$7901_obj_};
_.l.setUrl=function(p){this.JSC$7901_obj_.url=p;return this};
_.l.getUrl=function(){return this.JSC$7901_obj_.url};
_.l.getStyle=function(){return this.JSC$7901_obj_.style};
_.l.getId=function(){return this.JSC$7901_obj_.id};
_.l.getContext=function(){return this.JSC$7901_obj_.context};
var B1B=function(p){p.JSC$7901_obj_.attributes=p.JSC$7901_obj_.attributes||{};return new vv(p.JSC$7901_obj_.attributes)};var Ran=function(){T1b.apply(this,arguments)};
_.E(Ran,T1b);var knl=qs(dJ,"perf",Z7());qs(knl,"g",Z7());var U$D=qs(knl,"i",Z7());qs(knl,"r",[]);Z7();Z7();var I9B=function(p,x,F){x&&x.length>0&&(x=itB(x),F&&F.length>0&&(x+="___"+itB(F)),x.length>28&&(x=x.substr(0,28)+(x.length-28)),F=x,x=qs(U$D,"_p",Z7()),qs(x,F,Z7())[p]=(new Date).getTime(),x=knl.r,typeof x==="function"?x(p,"_p",F):x.push([p,"_p",F]))},itB=function(p){return p.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var $$B=Z7(),eaD=[],Jk=function(p){throw Error("Ya`"+p);};
eaD.push(["jsl",function(p){for(var x in p)if(Object.prototype.hasOwnProperty.call(p,x)){var F=p[x];typeof F=="object"?dJ[x]=qs(dJ,x,[]).concat(F):qs(dJ,x,F)}if(x=p.u)p=qs(dJ,"us",[]),p.push(x),(x=/^https:(.*)$/.exec(x))&&p.push("http:"+x[1])}]);
var p8v=/^(\/[a-zA-Z0-9_\-]+)+$/,xEv=[/\/amp\//,/\/amp$/,/^\/amp$/],FWb=/^[a-zA-Z0-9\-_\.,!]+$/,Nqk=/^gapi\.loaded_[0-9]+$/,hZl=/^[a-zA-Z0-9,._-]+$/,MQv=function(p,x,F,N,h){var c=p.split(";"),M=c.shift(),f=$$B[M],K=null;f?K=f(c,x,F,N):Jk("no hint processor for: "+M);K||Jk("failed to generate load url");x=K;F=x.match(l5D);(N=x.match(cqB))&&N.length===1&&a5l.test(x)&&F&&F.length===1||Jk("failed sanity: "+p);try{p="?";if(h&&h.length>0){zEB(h);var t=h.join(",");K=K+"?le="+t;p="&"}if(dJ.rol){var d=dJ.ol;
d&&d.length&&(K=""+K+p+"ol="+d.length)}}catch(v){}return K},KWD=function(p,x,F,N){p=DEB(p);
Nqk.test(F)||Jk("invalid_callback");x=f5B(x);N=N&&N.length?f5B(N):null;var h=function(c){return encodeURIComponent(c).replace(/%2C/g,",")};
return[encodeURIComponent(p.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",h(p.version),"/m=",h(x),N?"/exm="+h(N):"","/rt=j/sv=1/d=1/ed=1",p.activeMods?"/am="+h(p.activeMods):"",p.resourceSig?"/rs="+h(p.resourceSig):"",p.zcms?"/t="+h(p.zcms):"","/cb=",h(F)].join("")},DEB=function(p){p.charAt(0)!=="/"&&Jk("relative path");
for(var x=p.substring(1).split("/"),F=[];x.length;){p=x.shift();if(!p.length||p.indexOf(".")==0)Jk("empty/relative directory");else if(p.indexOf("=")>0){x.unshift(p);break}F.push(p)}p={};for(var N=0,h=x.length;N<h;++N){var c=x[N].split("="),M=decodeURIComponent(c[0]),f=decodeURIComponent(c[1]);c.length==2&&M&&f&&(p[M]=p[M]||f)}x="/"+F.join("/");p8v.test(x)||Jk("invalid_prefix");F=0;for(N=xEv.length;F<N;++F)xEv[F].test(x)&&Jk("invalid_prefix");F=q5K(p,"k",!0);N=q5K(p,"am");h=q5K(p,"rs");p=q5K(p,"t");
return{pathPrefix:x,version:F,activeMods:N,resourceSig:h,zcms:p}},f5B=function(p){for(var x=[],F=0,N=p.length;F<N;++F){var h=p[F].replace(/\./g,"_").replace(/-/g,"_");
hZl.test(h)&&x.push(h)}return x.join(",")},q5K=function(p,x,F){p=p[x];
!p&&F&&Jk("missing: "+x);if(p){if(FWb.test(p))return p;Jk("invalid: "+x)}return null},a5l=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,cqB=/\/cb=/g,l5D=/\/\//g;
$$B.m=function(p,x,F,N){(p=p[0])||Jk("missing_hint");return"https://apis.google.com"+KWD(p,x,F,N)};
var Zfv=decodeURI("%73cript"),tQC=/^[-+_0-9\/A-Za-z]+={0,2}$/,dEB=function(p,x){for(var F=[],N=0;N<p.length;++N){var h=p[N],c;if(c=h){a:{for(c=0;c<x.length;c++)if(x[c]===h)break a;c=-1}c=c<0}c&&F.push(h)}return F},v3C=function(){var p=dJ.nonce;
return p!==void 0?p&&p===String(p)&&p.match(tQC)?p:dJ.nonce=null:KF.querySelector?(p=KF.querySelector("script[nonce]"))?(p=p.nonce||p.getAttribute("nonce")||"",p&&p===String(p)&&p.match(tQC)?dJ.nonce=p:dJ.nonce=null):null:null},S5B=function(p){if(KF.readyState!="loading")Jqb(p);
else{var x=v3C(),F="";x!==null&&(F=' nonce="'+x+'"');p="<"+Zfv+' src="'+encodeURI(p)+'"'+F+"></"+Zfv+">";KF.write(CbZ?CbZ.createHTML(p):p)}},Jqb=function(p){var x=KF.createElement(Zfv);
x.setAttribute("src",CbZ?CbZ.createScriptURL(p):p);p=v3C();p!==null&&x.setAttribute("nonce",p);x.async="true";(p=KF.getElementsByTagName(Zfv)[0])?p.parentNode.insertBefore(x,p):(KF.head||KF.body||KF.documentElement).appendChild(x)},E3Z=function(p,x,F){rqb(function(){var N=x===jDB()?qs(tk,"_",Z7()):Z7();
N=qs(POZ(x),"_",N);p(N)},F)},h_d=function(p,x){var F=x||{};
typeof x=="function"&&(F={},F.callback=x);var N=(x=F)&&x._c;if(N)for(var h=0;h<eaD.length;h++){var c=eaD[h][0],M=eaD[h][1];M&&Object.prototype.hasOwnProperty.call(N,c)&&M(N[c],p,x)}x=[];p?x=p.split(":"):F.features&&(x=F.features);if(!(p=F.h)&&(p=jDB(),!p))throw Error("Za");X8B(x||[],F,p)},X8B=function(p,x,F){p=OtI(p)||[];
var N=x.callback,h=x.config,c=x.timeout,M=x.ontimeout,f=x.onerror,K=void 0;typeof f=="function"&&(K=f);var t=null,d=!1;if(c&&!M||!c&&M)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";f=qs(POZ(F),"r",[]).sort();var v=qs(POZ(F),"L",[]).sort(),C=dJ.le||[],X=[].concat(f),Q=function(Fw,R){if(d)return 0;fF.clearTimeout(t);v.push.apply(v,b);var ld=((tk||{}).config||{}).update;ld?ld(h):h&&qs(dJ,"cu",[]).push(h);if(R){I9B("me0",Fw,X);try{E3Z(R,F,K)}finally{I9B("me1",Fw,
X)}}return 1};
c>0&&(t=fF.setTimeout(function(){d=!0;M()},c));
var b=dEB(p,v);if(b.length){b=dEB(p,f);var A=qs(dJ,"CP",[]),Y=A.length;A[Y]=function(Fw){if(!Fw)return 0;I9B("ml1",b,X);var R=function(pp){A[Y]=null;Q(b,Fw)&&Lgv(function(){N&&N();pp()})},ld=function(){var pp=A[Y+1];
pp&&pp()};
Y>0&&A[Y-1]?A[Y]=function(){R(ld)}:R(ld)};
if(b.length){var O="loaded_"+dJ.I++;tk[O]=function(Fw){A[Y](Fw);tk[O]=null};
p=MQv(F,b,"gapi."+O,f,C);f.push.apply(f,b);I9B("ml0",b,X);x.sync||fF.___gapisync?S5B(p):Jqb(p)}else A[Y](m$n)}else Q(b)&&N&&N()},g3D;
var Qx6=null,zZJ=_.Mm.trustedTypes;if(zZJ&&zZJ.createPolicy){try{Qx6=zZJ.createPolicy("goog#gapi",{createHTML:iCk,createScript:iCk,createScriptURL:iCk})}catch(p){_.Mm.console&&_.Mm.console.error(p.message)}g3D=Qx6}else g3D=Qx6;var CbZ=g3D,rqb=function(p,x){if(dJ.hee&&dJ.hel>0)try{return p()}catch(F){x&&x(F),dJ.hel--,h_d("debug_error",function(){try{window.___jsl.hefn(F)}catch(N){throw F;}})}else try{return p()}catch(F){throw x&&x(F),F;
}},sxl=tk.load;
sxl&&qs(dJ,"ol",[]).push(sxl);tk.load=function(p,x){return rqb(function(){return h_d(p,x)})};var yqZ;var n3B=function(p,x){this.serviceId_=p;this.moduleId_=x||null};
n3B.prototype.toString=function(){return this.serviceId_};
n3B.prototype.getModuleId=function(){return this.moduleId_};var Ryz=new n3B("MpJwZc","MpJwZc");var Uzd=new _.Zq("a"),kZ6=function(p,x,F){_.th.call(this,p,x);this.node=x;this.kind=F};
_.E(kZ6,_.th);var yqK=function(p){this.segments=p};
yqK.prototype.toString=function(){return this.segments.join(".")};
yqK.prototype.getVersion=function(){return this.segments[0]};
yqK.prototype.getExtension=function(){return this.segments[1]};var bfB=function(){this.JSC$7917_keys_={};this.urlPrefix_="";this.JSC$7917_queryData_={}};
bfB.prototype.toString=function(){if(this.urlPrefix_.endsWith("_/r/"))var p=this.urlPrefix_+CF(this,"sc");else{p=this.urlPrefix_+AqK(this);var x=_.hq(this.JSC$7917_queryData_),F="";x!=""&&(F="?"+x);p+=F}return p};
var u_Z=function(p){p=CF(p,"md");return!!p&&p!=="0"},AqK=function(p){var x=[],F=(0,_.CH)(function(N){this.JSC$7917_keys_[N]!==void 0&&x.push(N+"="+this.JSC$7917_keys_[N])},p);
u_Z(p)?(F("md"),F("k"),F("ck"),F("am"),F("rs"),F("gssmodulesetproto"),F("slk"),F("dti")):(F("sdch"),F("k"),F("ck"),F("am"),F("rt"),"d"in p.JSC$7917_keys_||S_(p,"d","0"),F("d"),F("exm"),F("excm"),(p.JSC$7917_keys_.excm||p.JSC$7917_keys_.exm)&&x.push("ed=1"),F("im"),F("dg"),F("sm"),CF(p,"br")!="1"&&CF(p,"br")!="0"||F("br"),F("br-d"),CF(p,"rb")=="1"&&F("rb"),CF(p,"zs")!=="0"&&F("zs"),Y5b(p)!==""&&F("wt"),F("gssmodulesetproto"),F("ujg"),F("sp"),F("rs"),F("cb"),F("ee"),F("slk"),F("dti"),F("m"));return x.join("/")},
CF=function(p,x){return p.JSC$7917_keys_[x]?p.JSC$7917_keys_[x]:null},S_=function(p,x,F){F?p.JSC$7917_keys_[x]=F:delete p.JSC$7917_keys_[x]},w8k=function(p,x){p.urlPrefix_=x},GIk=function(p,x){x&&x.length>0?(x.sort(),S_(p,"exm",x.join(","))):S_(p,"exm",null)},VQb=function(p,x){x&&x.length>0?(x.sort(),S_(p,"excm",x.join(","))):S_(p,"excm",null)},WWl=function(p){return(p=CF(p,"m"))?p.split(","):[]},Y5b=function(p){switch(CF(p,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},HfB=function(p,x){var F=Object.keys(x).filter(function(N){return!!Object.keys(x[N]).length}).map(function(N){var h=Object.keys(x[N]);
h.length>1&&h.sort();return N+":"+h.join(",")});
F.sort();S_(p,"ee",F.join(";"))},JdB=function(p){var x=CF(p,"ee");
if(!x)return{};p={};x=_.a(x.split(";"));for(var F=x.next();!F.done;F=x.next()){var N=_.a(F.value.split(":"));F=N.next().value;N=N.next().value;p[F]={};N=_.a(N.split(","));for(var h=N.next();!h.done;h=N.next())p[F][h.value]=!0}return p},mEv=function(p){delete p.JSC$7917_keys_.m;
delete p.JSC$7917_keys_.exm;delete p.JSC$7917_keys_.ed};
bfB.prototype.clone=function(){return Uy(this.toString())};
var Uy=function(p,x){x=x===void 0?!0:x;var F=o3m(p),N=new bfB,h=_.mg(F)[5];_.Q5.forEach(OfZ,function(M){var f=h.match("/"+M+"=([^/]+)");f&&S_(N,M,f[1])});
var c="";c=p.indexOf("_/ss/")!=-1?"_/ss/":p.indexOf("_/r/")!=-1?"_/r/":"_/js/";w8k(N,p.substr(0,p.indexOf(c)+c.length));if(N.urlPrefix_.endsWith("_/r/"))return p=jxn(p),S_(N,"sc",p.toString()),N;if(!x)return N;(p=_.mg(F)[6]||null)&&KmK(p,function(M,f){N.JSC$7917_queryData_[M]=f});
return N},tsE=function(p){var x=_.F_(o3m(p)),F;
x===null?F=!1:F=RegExp("/_/r/","g").test(p)&&jxn(p)?!0:RegExp("(/_/js/)|(/_/ss/)","g").test(x)?/\/k=/.test(x):!1;return F},jxn=function(p){var x=p.lastIndexOf("_/r/")+4;
p=p.slice(x);if(p===null)return null;try{var F=p.split(".");var N=F.length!==2?null:new yqK(F);if(N===null)throw new TypeError("ab`"+p);return N}catch(h){return null}},o3m=function(p){return p.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?p.substr(65):p},OfZ={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",INCLUDE_COMPILE_HINTS_COMMENT:"ichc",STATIC_CONTENT_ROW_KEY:"sc",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},LWB=RegExp("^loaded_(g|h)?[_\\d]+$");_.rJ=function(p){this.JSC$7929_id_=p;this.opts={}};
_.rJ.prototype.JSC$7931_setLabel=function(p){this.label_=p||void 0;return this};
_.rJ.prototype.addUploadMetadata=function(p,x){var F=this.opts.data||{};F[p]=x;this.opts.data=F;return this};
var PbD=function(p){var x=_.Q5.filter(p.opts,function(F){return F!==null});
x=_.Q5.isEmpty(x)?null:x;p=[p.JSC$7929_id_,p.label_,x];x=rzM(p);return p=p.slice(0,x+1)};
_.rJ.prototype.toString=function(){var p=PbD(this);return"("+_.zy(p,function(x){return JSON.stringify(x)}).join(",")+")"};
_.rJ.prototype.getId=function(){return this.JSC$7929_id_};
_.rJ.prototype.getOptions=function(){return _.Q5.clone(this.opts)};var EP=function(){_.rJ.call(this,"image-search")};
_.E(EP,_.rJ);EP.prototype.setSize=function(p){this.opts.imgsz=p;return this};
EP.prototype.JSC$7931_setLabel=function(p){_.rJ.prototype.JSC$7931_setLabel.call(this,p);return this};
EP.prototype.addUploadMetadata=function(p,x){_.rJ.prototype.addUploadMetadata.call(this,p,x);return this};var Xp=function(){_.rJ.call(this,"maps")};
_.E(Xp,_.rJ);Xp.prototype.setZoom=function(p){this.opts.zoom=p;return this};
Xp.prototype.JSC$7931_setLabel=function(p){_.rJ.prototype.JSC$7931_setLabel.call(this,p);return this};
Xp.prototype.addUploadMetadata=function(p,x){_.rJ.prototype.addUploadMetadata.call(this,p,x);return this};_.gJ=function(){_.rJ.call(this,"photos")};
_.E(_.gJ,_.rJ);_.gJ.prototype.JSC$7931_setLabel=function(p){_.rJ.prototype.JSC$7931_setLabel.call(this,p);return this};
_.gJ.prototype.addUploadMetadata=function(p,x){_.rJ.prototype.addUploadMetadata.call(this,p,x);return this};var Qh=function(){_.rJ.call(this,"url")};
_.E(Qh,_.rJ);var Tqb=function(){var p=new Qh;p.opts.type="video";p.opts.site="youtube.com";return p};
Qh.prototype.JSC$7931_setLabel=function(p){_.rJ.prototype.JSC$7931_setLabel.call(this,p);return this};
Qh.prototype.addUploadMetadata=function(p,x){_.rJ.prototype.addUploadMetadata.call(this,p,x);return this};var z3=function(){_.rJ.call(this,"video-search")};
_.E(z3,_.rJ);var Bql=function(){var p=new z3;p.opts.site="youtube.com";return p};
z3.prototype.JSC$7931_setLabel=function(p){_.rJ.prototype.JSC$7931_setLabel.call(this,p);return this};
z3.prototype.addUploadMetadata=function(p,x){_.rJ.prototype.addUploadMetadata.call(this,p,x);return this};var RZj=function(){_.rJ.call(this,"web")};
_.E(RZj,_.rJ);RZj.prototype.JSC$7931_setLabel=function(p){_.rJ.prototype.JSC$7931_setLabel.call(this,p);return this};
RZj.prototype.addUploadMetadata=function(p,x){_.rJ.prototype.addUploadMetadata.call(this,p,x);return this};var sP=function(){this.items_=[];this.opts={}},kIZ=function(p){switch(p){case "image-search":return new EP;
case "maps":return new Xp;case "photos":return new _.gJ;case "url":return new Qh;case "video-search":return new z3;case "web":return new RZj}return new _.rJ(p)};
sP.prototype.addView=function(p){this.items_.push(typeof p==="string"?kIZ(p):p);return this};
var UEv=function(p){return"("+_.zy(p.items_,function(x){return x.toString()}).join(",")+")"};
sP.prototype.toString=function(){return UEv(this)};
sP.prototype.getViews=function(p,x){x=x===void 0?[]:x;for(var F=this.items_,N=0;N<F.length;N++){var h=F[N];h instanceof sP?h.getViews(p,x):h.getId()==p&&x.push(h)}return x};
sP.prototype.getOptions=function(){return _.Q5.clone(this.opts)};var yH=function(p){this.basePickerUrl_=p||"https://docs.google.com/picker";this.nav_=new sP};
yH.prototype.nav_=null;yH.prototype.addView=function(p){this.nav_.addView(p);return this};
yH.prototype.getBaseUrl=function(){return this.basePickerUrl_};
yH.prototype.getViews=function(p){return this.nav_.getViews(p)};
_.ifk=function(p,x){p.callback_=x;return p};var I5B=new Map;I5B.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");I5B.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");I5B.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var $EZ=new Set;$EZ.add("application/vnd.google-apps.kix");$EZ.add("application/vnd.google-apps.ritz");$EZ.add("application/vnd.google-apps.punch");var f3v=function(p,x,F){var N=F&&_.uq(F,1);F=eZZ(F);var h=p[0].getId();switch(_.Yg(h,2)){case 13:return puJ(p,x,N,F);case 3:return xpv(p,x,N,F);case 10:return Fdb(p,x,N,F);case 27:return Fdb(p,x,N,F);case 12:return NwJ(p,x);case 2:return h$n(p,x,N,F);case 5:return l3B(p,x,N,F);case 9:return cdB(p,x,N,F);case 6:return a3v(p,x,N,F);case 25:return Msk(p,x,N,F);case 1:return _.vW(p[0],Ben,26)?Dpm(p,x,N,F):Fdb(p,x,N,F);default:return{}}},a3v=function(p,x,F,N){p=p.map(function(h){return{id:h.getId().getId(),
serviceId:"youtube",name:h.getName(),description:_.uq(h,3),type:nF(h),lastEditedUtc:_.Tem(_.B8(h,_.oI,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:h.getUrl(),embedUrl:_.uq(h,13),thumbnails:yh(Iv(h))}});
return{action:x,docs:p,viewToken:N,view:F||"youtube",v2Translated:!0}},h$n=function(p,x,F,N){var h=p.map(function(c){var M=c.getId().getId(),f=_.uq(c,7),K=c.getName(),t=nF(c),d=_.Tem(_.B8(c,_.oI,12)).getTime(),v=c.getUrl(),C=Number(D6d(c)),X=_.uq(c,3),Q=_.uq(c,11),b=yh(Iv(c));
var A=_.B8(c,$5,21);A=_.y8(A,1);var Y=_.B8(c,$5,21);Y=_.uq(Y,10);var O=_.uq(c,13);var Fw=_.B8(c,$5,21);Fw=_.y8(Fw,9);var R=_.B8(c,$5,21);R=_.uq(R,11);M={id:M,serviceId:"docs",mimeType:f,name:K,type:t,lastEditedUtc:d,url:v,sizeBytes:C,description:X,iconUrl:Q,thumbnails:b,isShared:A,downloadUrl:Y,embedUrl:O,copyable:Fw,resourceKey:R};f=_.B8(c,$5,21);_.y8(f,12)&&(M.uploadState="success",M.isNew=!0);f=_.B8(c,$5,21);_.vW(f,k5,3)&&(c=_.B8(c,$5,21),c=_.B8(c,k5,3),_.vW(c,Bk,2)&&(f=sy(c.getDuration().getSeconds()),
K=c.getDuration(),K=_.$H(K,2),M.duration=f+K/1E9),M.aspectRatio=c.getAspectRatio());return M});
return{action:x,docs:h,viewToken:N,view:F||"all",extraUserInputs:KdB(p),v2Translated:!0}},l3B=function(p,x,F,N){p=p.map(function(h){var c=_.B8(h,FhI,15);
c=_.B8(c,Rv,1);fo(h,10,Rv,c);return{id:h.getId().getId(),serviceId:"web",mimeType:_.uq(h,7),name:h.getName(),type:nF(h),url:h.getUrl(),description:_.uq(h,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yh(Iv(h))}});
return{action:x,docs:p,viewToken:N,view:F||"image-search",v2Translated:!0}},cdB=function(p,x,F,N){p=p.map(function(h){return{serviceId:"url",
name:Iv(h)[0].getUrl().split("/").pop(),type:nF(h),mimeType:_.uq(h,7),url:h.getUrl(),description:_.uq(h,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yh(Iv(h))}});
return{action:x,docs:p,viewToken:N,view:F||"url",v2Translated:!0}},Dpm=function(p,x,F,N){p=p.map(function(h){return{id:h.getId().getId(),
serviceId:"picasa",name:h.getName(),type:nF(h),description:_.uq(h,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yh(Iv(h))}});
return{action:x,docs:p,viewToken:N,view:F||"webcam",v2Translated:!0}},Fdb=function(p,x,F,N){return{action:x,
docs:p.map(q0m),viewToken:N,view:Zg6(F||"upload",p),extraUserInputs:KdB(p),v2Translated:!0}},Zg6=function(p,x){return x.some(function(F){var N;
return((N=_.B8(F,UR,30))==null?void 0:_.Yg(N,3))===9})?p+"/gmailphotos":p},xpv=function(p,x,F,N){var h=p.map(function(c){var M={id:c.getId().getId(),
serviceId:"picasa",mimeType:_.uq(c,7),name:c.getName(),type:nF(c),lastEditedUtc:_.Tem(_.B8(c,_.oI,12)).getTime(),url:c.getUrl(),sizeBytes:Number(D6d(c)),description:_.uq(c,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yh(Iv(c)),mediaKey:c.getId().getId(),parentId:_.uq(c,4)},f,K=(f=_.B8(c,UMv,18))==null?void 0:_.B8(f,klm,3);K&&(M.latitude=AH(K,1),M.longitude=AH(K,2));var t;c=(t=_.B8(c,UMv,18))==null?void 0:bq(t,6);t=c!=null?sy(c):void 0;t&&(M.version=
t);return M});
return{action:x,docs:h,viewToken:N,view:F||"photos",extraUserInputs:KdB(p),v2Translated:!0}},puJ=function(p,x,F,N){p=p.map(function(h){return{id:h.getId().getId(),
serviceId:"et",name:Iv(h)[0].getUrl().split("/").pop(),description:_.uq(h,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yh(Iv(h),"etjpg")}});
return{action:x,docs:p,viewToken:N,view:F||"et",v2Translated:!0}},Msk=function(p,x,F,N){p=p.map(function(h){var c=h.getId().getId(),M=N["2"];
return{id:c,serviceId:M.type!=="gmail_themes"&&M.parent==="6226252643674576769"?"picasa":"static_themes",name:h.getName(),mimeType:_.uq(h,7),type:nF(h),description:_.uq(h,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:h.getUrl(),embedUrl:h.getUrl(),thumbnails:yh(Iv(h))}});
return{action:x,docs:p,viewToken:N,view:F||"photos",v2Translated:!0}},NwJ=function(p,x){p=p.map(function(F){var N=_.B8(F,R5J,27);
N=_.Va(N,1,_.dD,_.ik())[0];return{id:F.getId().getId(),serviceId:"contacts",mimeType:_.uq(F,7),name:F.getName(),description:_.uq(F,3),url:"mailto:"+N,thumbnail:[{url:_.uq(F,11)}],email:N}});
return{action:x,docs:p,view:"contacts",v2Translated:!0}},eZZ=function(p){if(!p)return{};
var x=_.uq(p,3);x=x&&JSON.parse(x)||{};return{0:_.uq(p,1),1:_.uq(p,2),2:x}},yh=function(p,x){x=x===void 0?"":x;
if(!p.length)return null;x=="etjpg"&&(p=p.filter(function(F){return F.getUrl().includes("w1200-h300")}));
return p.map(function(F){return{url:F.getUrl(),height:F.getHeight(),width:F.getWidth(),type:x}})},KdB=function(p){return{isAttachment:p.some(function(x){return _.y8(x,31)})}},q0m=function(p){var x,F={id:(x=p.getId())==null?void 0:x.getId(),
serviceId:ts6(p),mimeType:_.uq(p,7),name:p.getName(),type:nF(p),sizeBytes:Number(D6d(p)),description:_.uq(p,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:yh(Iv(p)),isNew:!0};if(x=_.B8(p,UR,30)){F.dataUrl=_.uq(x,1)||null;a:{var N=_.B8(p,UR,30);switch(_.Yg(N,3)){case 9:N=_.V8(N,p9B,2,iH);N={remoteRefs:N&&_.uq(N,1)};break a;case 10:case 15:N=_.V8(N,e5k,4,iH);var h=Iv(p);N={photo_id:N&&_.uq(N,1),media_key:p.getId().getId(),media_type:_.Yg(p,6)===1?1:2,image_url:h&&
h[0].getUrl(),width:h&&String(h[0].getWidth()),height:h&&String(h[0].getHeight())};break a}N=null}F.uploadMetadata=N;F.uploadId=_.uq(x,9)||null;F.uploadState=dpJ(x)||null}(N=x&&_.V8(x,e5k,4,iH))&&(F.id=_.uq(N,1));(N=x&&_.V8(x,xFB,5,iH))&&(F.contentId=_.uq(N,1));(N=x&&_.V8(x,i6j,7,iH))&&(F.contentId=_.uq(N,1));(N=x&&_.V8(x,$Mm,6,iH))&&(F.contentId=_.uq(N,1));(x==null?void 0:_.Yg(x,3))===1&&(F.mediaKey=p.getId().getId());return F},ts6=function(p){var x;
switch(((x=_.B8(p,UR,30))==null?void 0:_.Yg(x,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},nF=function(p){switch(_.Yg(p,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 _.uq(p,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},dpJ=function(p){switch(p==null?void 0:_.Yg(p,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 S0v,vSZ,Jdm,C1b;_.bE=function(p,x){var F=x||{};x=F.document||document;var N=_.SP(p).toString(),h=(new ny(x)).createElement("SCRIPT"),c={script_:h,timeout_:void 0},M=new Li(vSZ,c),f=null,K=F.timeout!=null?F.timeout:5E3;K>0&&(f=window.setTimeout(function(){Jdm(h,!0);M.errback(new C1b(1,"Timeout reached for loading script "+N))},K),c.timeout_=f);
h.onload=h.onreadystatechange=function(){h.readyState&&h.readyState!="loaded"&&h.readyState!="complete"||(Jdm(h,F.cleanupWhenDone||!1,f),M.callback(null))};
h.onerror=function(){Jdm(h,!0,f);M.errback(new C1b(0,"Error while loading script "+N))};
c=F.attributes||{};_.Q5.extend(c,{type:"text/javascript",charset:"UTF-8"});xMD(h,c);_.UU(h,p);S0v(x).appendChild(h);return M};
S0v=function(p){var x=Z0("HEAD",p);return x&&x.length!==0?x[0]:p.documentElement};
vSZ=function(){if(this&&this.script_){var p=this.script_;p&&p.tagName=="SCRIPT"&&Jdm(p,!0,this.timeout_)}};
Jdm=function(p,x,F){F!=null&&_.Mm.clearTimeout(F);p.onload=function(){};
p.onerror=function(){};
p.onreadystatechange=function(){};
x&&window.setTimeout(function(){_.qc(p)},0)};
C1b=function(p,x){var F="Jsloader error (code #"+p+")";x&&(F+=": "+x);_.x$.call(this,F);this.code=p};
_.NL(C1b,_.x$);var rdl=_.B$(["https://apis.google.com/js/api.js"]),ESJ=_.xH(rdl),z$n=function(p,x){var F=!1,N=XuJ(p,x).then(function(c){F=!0;return c}),h=_.Ihn(5E3).then(function(){return F?XuJ(p,x):gSv(x).then(function(c){return Qnj(c,p)})});
return m1D([N,h])},XuJ=function(p,x){return snk(x).then(function(F){return Qnj(F,p)})},Qnj=function(p,x){var F=_.qm(x,"gapi.")?x.slice(5):x;
return p[F]?_.qt(p[F]):new _.cZ(function(N,h){var c=Qo(function(){h(Error("cb"))},3E4);
p.load(x,{callback:function(){_.Mm.clearTimeout(c);N(p[F])},
onerror:function(M){_.Mm.clearTimeout(c);h(M)}})})},snk=function(p){return p.gapi&&p.gapi.load?_.qt(p.gapi):gSv(p)},gSv=function(p){return _.bE(ESJ,{document:p.document}).then(function(){return p.gapi})},nSl=function(){};
nSl.prototype.load=function(p,x){x=x===void 0?window:x;var F=Date.now();return z$n(p,x).then(function(N){var h=Date.now();return{library:N,loadStartMs:F,loadEndMs:h}},function(N){throw N instanceof Error?N:Error(String(N));
})};var jxH=function(){_.Jm.call(this);this.gapiLoader_=new nSl;this.origin_=null;this.gapiPickerIframeResolver_=_.GO();this.gapiIframesResolver_=_.GO();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.E(jxH,_.Jm);var ydm=function(p,x){var F=_.A9("gapi.iframes",x);return F?(p=Date.now(),_.qt({library:F,loadStartMs:p,loadEndMs:p})):p.gapiLoader_.load("gapi.iframes",x)},bgI=function(p,x,F,N,h,c){var M=!0;
M=M===void 0?!1:M;ydm(p,n2(x.ownerDocument)).then(function(f){var K=f.library;p.gapiIframesResolver_.resolve(K);f=p.gapiPickerIframeResolver_;var t=f.resolve,d=M;d=d===void 0?!1:d;var v={};v["host-message-handler"]=F;p.hostMessageHandlerInternal_=v;var C=_.G4(N);C=_.G4(C);C=_.ec(_.IX(_.iM(new _.R9,C.scheme_),C.JSC$7886_domain_),C.JSC$7886_port_).toString();p.origin_=C;C=(new Ran).setUrl(N);C.JSC$7901_obj_.where=x;C.JSC$7901_obj_.allowPost=d;C.JSC$7901_obj_.messageHandlers=v;d=_.A9("makeWhiteListIframesFilter",
K)([p.origin_]);C.JSC$7901_obj_.messageHandlersFilter=d;h!=null&&(C.JSC$7901_obj_.id=h);c!=null&&(C.JSC$7901_obj_.rpctoken=c);d=B1B(C);d.JSC$7898_obj_.style={display:"block","min-width":"100%",width:"1px"};d.JSC$7898_obj_.height="100%";B1B(C).value().allow="camera 'src' "+p.origin_;K=K.getContext().openChild(C.value());t.call(f,K)},function(f){p.gapiIframesResolver_.reject(f);
p.gapiPickerIframeResolver_.reject(f)});
return p.gapiPickerIframeResolver_.promise},AdD=function(p,x){return _.Xq([p.gapiIframesResolver_.promise,
p.gapiPickerIframeResolver_.promise]).then(function(F){var N=_.a(F);F=N.next().value;return(N=N.next().value)?N.send("picker-message-handler",x,void 0,_.A9("makeWhiteListIframesFilter",F)([p.origin_])):_.o9(Error("db"))})};
jxH.prototype.disposeInternal=function(){uEv(this);_.Jm.prototype.disposeInternal.call(this)};
var uEv=function(p){p.gapiPickerIframeResolver_.promise.then(function(x){x&&(x.unregister("host-message-handler"),delete p.hostMessageHandlerInternal_["host-message-handler"])})};var Y0D=function(){this.nextId=0};var GWm=function(p,x){switch(p.action){case "select-contacts":p=wuB(p.contacts);break;case "visibility":p=p.visible;var F=new pi;p=_.HW(F,1,7).setVisible(p);F={};F["iframe-command"]=p.serialize();p=F;break;default:p=null}return p?AdD(x,p):_.qt()},wuB=function(p){if(!p||p.length==0)return null;
var x=new pi;_.HW(x,1,11);var F=new Y0D;p.forEach(function(N){if(N.email){var h=new Q8;h=_.II(h,2,N.name?N.name:N.email);var c=new R5J;N=_.g_w(c,1,_.Z8,N.email,_.dD);N=_.f6(h,27,N);h=new PgB;c=":"+(F.nextId++).toString(36);h=_.II(h,1,c);h=_.HW(h,2,12);N=_.f6(N,1,h)}else N=null;N&&fo(x,7,Q8,N)});
p={};p["iframe-command"]=x.serialize();return p};_.Vsk=function(){if(X0p){var p=/Windows NT ([0-9.]+)/;return(p=p.exec(_.rk()))?p[1]:"0"}return _.EXw?(p=/1[0|1][_.][0-9_.]+/,(p=p.exec(_.rk()))?p[0].replace(/_/g,"."):"10"):j$d?(p=/Android\s+([^\);]+)(\)|;)/,(p=p.exec(_.rk()))?p[1]:""):QoE||zNB||soB?(p=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(p=p.exec(_.rk()))?p[1].replace(/_/g,"."):""):""}();var Ak;Ak=function(p){return(p=p.exec(_.rk()))?p[1]:""};
_.WdC=function(){if(_.KT)return Ak(/Firefox\/([0-9.]+)/);if(_.ML||_.H8||Cj$)return _.w0B;if(_.qL){if(_.wk()||_.v$w()){var p=Ak(/CriOS\/([0-9.]+)/);if(p)return p}return Ak(/Chrome\/([0-9.]+)/)}if(_.zI&&!_.wk())return Ak(/Version\/([0-9.]+)/);if(qJ$||Z16){if(p=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.rk()))return p[1]+"."+p[2]}else if(Hjz)return(p=Ak(/Android\s+([0-9.]+)/))?p:Ak(/Version\/([0-9.]+)/);return""}();var Hgb=function(){};
_.xg(Hgb);Hgb.prototype.nextId_=0;_.bW=function(p){return":"+(p.nextId_++).toString(36)};var uE=function(p){_.Sc.call(this);this.JSC$7999_dom_=p||vm();this.JSC$7999_id_=null;this.inDocument_=!1;this.JSC$7999_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.NL(uE,_.Sc);uE.prototype.idGenerator_=Hgb.getInstance();uE.prototype.getId=function(){return this.JSC$7999_id_||(this.JSC$7999_id_=_.bW(this.idGenerator_))};
uE.prototype.getElement=function(){return this.JSC$7999_element_};
var Y9=function(p){p.googUiComponentHandler_||(p.googUiComponentHandler_=new _.ps(p));return p.googUiComponentHandler_},mpJ=function(p,x){if(p==x)throw Error("eb");
var F;if(F=x&&p.parent_&&p.JSC$7999_id_){F=p.parent_;var N=p.JSC$7999_id_;F=F.childIndex_&&N?_.Q5.get(F.childIndex_,N)||null:null}if(F&&p.parent_!=x)throw Error("eb");p.parent_=x;uE.superClass_.setParentEventTarget.call(p,x)};
uE.prototype.setParentEventTarget=function(p){if(this.parent_&&this.parent_!=p)throw Error("fb");uE.superClass_.setParentEventTarget.call(this,p)};
uE.prototype.JSC$8001_createDom=function(){this.JSC$7999_element_=this.JSC$7999_dom_.createElement("DIV")};
uE.prototype.render=function(p){oSj(this,p)};
var oSj=function(p,x,F){if(p.inDocument_)throw Error("gb");p.JSC$7999_element_||p.JSC$8001_createDom();x?x.insertBefore(p.JSC$7999_element_,F||null):p.JSC$7999_dom_.JSC$7225_document_.body.appendChild(p.JSC$7999_element_);p.parent_&&!p.parent_.inDocument_||p.enterDocument()};
_.l=uE.prototype;_.l.decorate=function(p){if(this.inDocument_)throw Error("gb");if(p&&this.canDecorate(p)){this.wasDecorated_=!0;var x=_.y5(p);this.JSC$7999_dom_&&this.JSC$7999_dom_.JSC$7225_document_==x||(this.JSC$7999_dom_=vm(p));this.decorateInternal(p);this.enterDocument()}else throw Error("hb");};
_.l.canDecorate=function(){return!0};
_.l.decorateInternal=function(p){this.JSC$7999_element_=p};
_.l.enterDocument=function(){this.inDocument_=!0;OgB(this,function(p){!p.inDocument_&&p.getElement()&&p.enterDocument()})};
_.l.exitDocument=function(){OgB(this,function(p){p.inDocument_&&p.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.l.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);OgB(this,function(p){p.dispose()});
!this.wasDecorated_&&this.JSC$7999_element_&&_.qc(this.JSC$7999_element_);this.parent_=this.model_=this.JSC$7999_element_=this.childIndex_=this.children_=null;uE.superClass_.disposeInternal.call(this)};
_.l.getModel=function(){return this.model_};
_.l.addChild=function(p,x){var F=this.children_?this.children_.length:0;if(p.inDocument_&&(x||!this.inDocument_))throw Error("gb");if(F<0||F>(this.children_?this.children_.length:0))throw Error("ib");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);p.parent_==this?(_.Q5.set(this.childIndex_,p.getId(),p),_.Lp(this.children_,p)):_.Q5.add(this.childIndex_,p.getId(),p);mpJ(p,this);_.QJM(this.children_,F,0,p);p.inDocument_&&this.inDocument_&&p.parent_==this?(x=this.getContentElement(),
(x.childNodes[F]||null)!=p.getElement()&&(p.getElement().parentElement==x&&x.removeChild(p.getElement()),F=x.childNodes[F]||null,x.insertBefore(p.getElement(),F))):x?(this.JSC$7999_element_||this.JSC$8001_createDom(),F=this.children_?this.children_[F+1]||null:null,oSj(p,this.getContentElement(),F?F.JSC$7999_element_:null)):this.inDocument_&&!p.inDocument_&&p.JSC$7999_element_&&p.JSC$7999_element_.parentNode&&p.JSC$7999_element_.parentNode.nodeType==1&&p.enterDocument()};
_.l.getContentElement=function(){return this.JSC$7999_element_};
var OgB=function(p,x){p.children_&&p.children_.forEach(x,void 0)};
uE.prototype.removeChild=function(p,x){if(p){var F=typeof p==="string"?p:p.getId();p=this.childIndex_&&F?_.Q5.get(this.childIndex_,F)||null:null;F&&p&&(_.Q5.remove(this.childIndex_,F),_.Lp(this.children_,p),x&&(p.exitDocument(),p.JSC$7999_element_&&_.qc(p.JSC$7999_element_)),mpJ(p,null))}if(!p)throw Error("jb");return p};_.NL(Y5r,u_p);_.NL(w8J,u_p);var jnl;var LdB=function(p,x){x?p.setAttribute("role",x):p.removeAttribute("role")},wJ=function(p,x,F){Array.isArray(F)&&(F=F.join(" "));
var N="aria-"+x;F===""||F==void 0?(jnl||(F={},jnl=(F.atomic=!1,F.autocomplete="none",F.dropeffect="none",F.haspopup=!1,F.live="off",F.multiline=!1,F.multiselectable=!1,F.orientation="vertical",F.readonly=!1,F.relevant="additions text",F.required=!1,F.sort="none",F.busy=!1,F.disabled=!1,F.hidden=!1,F.invalid="false",F)),F=jnl,x in F?p.setAttribute(N,F[x]):p.removeAttribute(N)):p.setAttribute(N,F)};var P1B;_.G3=function(p,x,F){_.Sc.call(this);this.target=p;this.handle=x||p;this.limits=F||new mj(NaN,NaN,NaN,NaN);this.JSC$8004_document_=_.y5(p);this.JSC$8004_eventHandler_=new _.ps(this);_.aG(this,this.JSC$8004_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;_.qd(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=P1B};
_.NL(_.G3,_.Sc);P1B=_.Mm.document&&_.Mm.document.documentElement&&!!_.Mm.document.documentElement.setCapture&&!!_.Mm.document.releaseCapture;_.TwI=function(p,x){p.hysteresisDistanceSquared_=Math.pow(x,2)};
_.l=_.G3.prototype;_.l.getEnabled=function(){return this.enabled_};
_.l.setEnabled=function(p){this.enabled_=p};
_.l.disposeInternal=function(){_.G3.superClass_.disposeInternal.call(this);_.Ci(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8004_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8004_document_.releaseCapture();this.handle=this.target=null};
_.l.startDrag=function(p){var x=p.type=="mousedown";if(!this.enabled_||this.dragging_||x&&(p.event_.button!=0||_.EXw&&p.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Vh("start",this,p.clientX,p.clientY,p)))this.dragging_=!0,x&&p.preventDefault();else return;else x&&p.preventDefault();x=this.JSC$8004_document_;var F=x.documentElement,N=!this.useSetCapture_;this.JSC$8004_eventHandler_.listen(x,["touchmove","mousemove"],this.handleMove_,
{capture:N,passive:!1});this.JSC$8004_eventHandler_.listen(x,["touchend","mouseup"],this.endDrag,N);this.useSetCapture_?(F.setCapture(!1),this.JSC$8004_eventHandler_.listen(F,"losecapture",this.endDrag)):this.JSC$8004_eventHandler_.listen(n2(x),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8004_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,N);this.clientX=this.startX=p.clientX;this.clientY=this.startY=p.clientY;this.screenX=p.screenX;this.screenY=p.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=ds(vm(this.JSC$8004_document_))}};
_.l.endDrag=function(p,x){this.JSC$8004_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8004_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Vh("end",this,p.clientX,p.clientY,p,Bwk(this,this.deltaX),R$k(this,this.deltaY),x||p.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.l.handleMove_=function(p){if(this.enabled_){var x=p.clientX-this.clientX,F=p.clientY-this.clientY;this.clientX=p.clientX;this.clientY=p.clientY;this.screenX=p.screenX;this.screenY=p.screenY;if(!this.dragging_){var N=this.startX-this.clientX,h=this.startY-this.clientY;if(N*N+h*h>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Vh("start",this,p.clientX,p.clientY,p)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(p);return}}F=kWK(this,x,F);x=F.x;F=F.y;this.dragging_&&this.dispatchEvent(new Vh("beforedrag",
this,p.clientX,p.clientY,p,x,F))&&(Upb(this,p,x,F),p.preventDefault())}};
var kWK=function(p,x,F){var N=ds(vm(p.JSC$8004_document_));x+=N.x-p.pageScroll.x;F+=N.y-p.pageScroll.y;p.pageScroll=N;p.deltaX+=x;p.deltaY+=F;return new _.sT(Bwk(p,p.deltaX),R$k(p,p.deltaY))};
_.G3.prototype.onScroll_=function(p){var x=kWK(this,0,0);p.clientX=this.clientX;p.clientY=this.clientY;Upb(this,p,x.x,x.y)};
var Upb=function(p,x,F,N){p.target.style.left=F+"px";p.target.style.top=N+"px";p.dispatchEvent(new Vh("drag",p,x.clientX,x.clientY,x,F,N))},Bwk=function(p,x){var F=p.limits;
p=isNaN(F.left)?null:F.left;F=isNaN(F.width)?0:F.width;return Math.min(p!=null?p+F:Infinity,Math.max(p!=null?p:-Infinity,x))},R$k=function(p,x){var F=p.limits;
p=isNaN(F.top)?null:F.top;F=isNaN(F.height)?0:F.height;return Math.min(p!=null?p+F:Infinity,Math.max(p!=null?p:-Infinity,x))};
_.G3.prototype.isDragging=function(){return this.dragging_};
var Vh=function(p,x,F,N,h,c,M){_.th.call(this,p);this.clientX=F;this.clientY=N;this.browserEvent=h;this.left=c!==void 0?c:x.deltaX;this.top=M!==void 0?M:x.deltaY};
_.NL(Vh,_.th);var Wv=function(p){this.JSC$8011_map_=new Map;var x=arguments.length;if(x>1){if(x%2)throw Error("oa");for(var F=0;F<x;F+=2)this.set(arguments[F],arguments[F+1])}else p&&this.addAll(p)};
_.l=Wv.prototype;_.l.getCount=function(){return this.JSC$8011_map_.size};
_.l.getValues=function(){return Array.from(this.JSC$8011_map_.values())};
_.l.getKeys=function(){return Array.from(this.JSC$8011_map_.keys())};
_.l.containsKey=function(p){return this.JSC$8011_map_.has(p)};
_.l.containsValue=function(p){return this.getValues().some(function(x){return x==p})};
_.l.equals=function(p,x){var F=this;x=x===void 0?function(N,h){return N===h}:x;
return this===p?!0:this.JSC$8011_map_.size!=p.getCount()?!1:this.getKeys().every(function(N){return x(F.JSC$8011_map_.get(N),p.get(N))})};
_.l.isEmpty=function(){return this.JSC$8011_map_.size==0};
_.l.clear=function(){this.JSC$8011_map_.clear()};
_.l.remove=function(p){return this.JSC$8011_map_.delete(p)};
_.l.get=function(p,x){return this.JSC$8011_map_.has(p)?this.JSC$8011_map_.get(p):x};
_.l.set=function(p,x){this.JSC$8011_map_.set(p,x);return this};
_.l.addAll=function(p){if(p instanceof Wv){p=_.a(p.JSC$8011_map_);for(var x=p.next();!x.done;x=p.next()){var F=_.a(x.value);x=F.next().value;F=F.next().value;this.JSC$8011_map_.set(x,F)}}else if(p)for(p=_.a(Object.entries(p)),x=p.next();!x.done;x=p.next())F=_.a(x.value),x=F.next().value,F=F.next().value,this.JSC$8011_map_.set(x,F)};
_.l.forEach=function(p,x){var F=this;x=x===void 0?this:x;this.JSC$8011_map_.forEach(function(N,h){return p.call(x,N,h,F)})};
_.l.clone=function(){return new Wv(this)};(function(){for(var p=["ms","moz","webkit","o"],x,F=0;x=p[F]&&!_.Mm.requestAnimationFrame;++F)_.Mm.requestAnimationFrame=_.Mm[x+"RequestAnimationFrame"],_.Mm.cancelAnimationFrame=_.Mm[x+"CancelAnimationFrame"]||_.Mm[x+"CancelRequestAnimationFrame"];if(!_.Mm.requestAnimationFrame){var N=0;_.Mm.requestAnimationFrame=function(h){var c=(new Date).getTime(),M=Math.max(0,16-(c-N));N=c+M;return _.Mm.setTimeout(function(){h(c+M)},M)};
_.Mm.cancelAnimationFrame||(_.Mm.cancelAnimationFrame=function(h){clearTimeout(h)})}})();
var igZ=[[],[]],I3l=0,$pB=!1,e$B=0,xfn=function(p,x){var F=e$B++,N={measureTask:{id:F,fn:p.measure,context:x},mutateTask:{id:F,fn:p.mutate,context:x},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(N.args||(N.args=[]),N.args.length=0,N.args.push.apply(N.args,arguments),N.args.push(N.state)):N.args&&N.args.length!=0?(N.args[0]=N.state,N.args.length=1):N.args=[N.state];N.isScheduled||(N.isScheduled=!0,igZ[I3l].push(N));$pB||($pB=!0,window.requestAnimationFrame(pZv))}},pZv=
function(){$pB=!1;
var p=igZ[I3l],x=p.length;I3l=(I3l+1)%2;for(var F,N=0;N<x;++N){F=p[N];var h=F.measureTask;F.isScheduled=!1;h.fn&&h.fn.apply(h.context,F.args)}for(N=0;N<x;++N)F=p[N],h=F.mutateTask,F.isScheduled=!1,h.fn&&h.fn.apply(h.context,F.args),F.state={};p.length=0};var FiJ=_.B$(["about:blank"]),NjZ=_.B$(["javascript:undefined"]),hRJ=_.xH(FiJ);_.SP(hRJ);var lO6=_.xH(NjZ);_.SP(lO6);var Hv=function(p){_.Sc.call(this);this.JSC$8017_element_=p;this.listenKeyIn_=_.qd(this.JSC$8017_element_,"focus",this,!0);this.listenKeyOut_=_.qd(this.JSC$8017_element_,"blur",this,!0)};
_.NL(Hv,_.Sc);Hv.prototype.handleEvent=function(p){var x=new _.d8(p.event_);x.type=p.type=="focusin"||p.type=="focus"?"focusin":"focusout";this.dispatchEvent(x)};
Hv.prototype.disposeInternal=function(){Hv.superClass_.disposeInternal.call(this);D$(this.listenKeyIn_);D$(this.listenKeyOut_);delete this.JSC$8017_element_};var cTB=function(p,x){this.JSC$8020_element_=p;this.JSC$8020_dom_=x};var mN=function(p,x){uE.call(this,x);this.useIframeMask_=!!p;this.lastFocus_=null;this.resizeBackgroundTask_=xfn({mutate:this.resizeBackground_},this);xfn({mutate:this.updateModalAndBackground_},this)};
_.NL(mN,uE);_.l=mN.prototype;_.l.focusHandler_=null;_.l.visible_=!1;_.l.bgEl_=null;_.l.bgIframeEl_=null;_.l.tabCatcherElement_=null;_.l.backwardTabWrapInProgress_=!1;_.l.getCssClass=function(){return"goog-modalpopup"};
_.l.getBackgroundElement=function(){return this.bgEl_};
_.l.JSC$8001_createDom=function(){mN.superClass_.JSC$8001_createDom.call(this);var p=this.getElement(),x=_.hH(this.getCssClass()).split(" ");O1(p,x);p.tabIndex=0;_.HS(p,!1);aOK(this);Mlj(this)};
var aOK=function(p){if(p.useIframeMask_&&!p.bgIframeEl_){var x=p.JSC$7999_dom_.JSC$7227_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.jP(x,hRJ);p.bgIframeEl_=x;p.bgIframeEl_.className=p.getCssClass()+"-bg";_.HS(p.bgIframeEl_,!1);wzl(p.bgIframeEl_,0)}p.bgEl_||(p.bgEl_=p.JSC$7999_dom_.JSC$7227_createDom("DIV",p.getCssClass()+"-bg"),_.HS(p.bgEl_,!1))},Mlj=function(p){p.tabCatcherElement_||(p.tabCatcherElement_=p.JSC$7999_dom_.createElement("SPAN"),_.HS(p.tabCatcherElement_,
!1),p.tabCatcherElement_.tabIndex=0,p.tabCatcherElement_.style.position="absolute")};
_.l=mN.prototype;_.l.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.l.canDecorate=function(p){return!!p&&p.tagName=="DIV"};
_.l.decorateInternal=function(p){mN.superClass_.decorateInternal.call(this,p);p=_.hH(this.getCssClass()).split(" ");O1(this.getElement(),p);aOK(this);Mlj(this);this.getElement().tabIndex=0;_.HS(this.getElement(),!1)};
_.l.enterDocument=function(){this.bgIframeEl_&&_.Ga(this.bgIframeEl_,this.getElement());_.Ga(this.bgEl_,this.getElement());mN.superClass_.enterDocument.call(this);_.VO(this.tabCatcherElement_,this.getElement());this.focusHandler_=new Hv(this.JSC$7999_dom_.JSC$7225_document_);Y9(this).listen(this.focusHandler_,"focusin",this.onFocus);Dfn(this,!1)};
_.l.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.RR(this.focusHandler_);mN.superClass_.exitDocument.call(this);_.qc(this.bgIframeEl_);_.qc(this.bgEl_);_.qc(this.tabCatcherElement_)};
_.l.setVisible=function(p){if(p!=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_&&Dfn(this,p),p){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$7999_dom_.JSC$7225_document_.activeElement}catch(h){}this.updateModalAndBackground_();Y9(this).listen(this.JSC$7999_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$7999_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);fOB(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)Md(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){Y9(this).unlisten(this.JSC$7999_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$7999_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)Md(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var x=this.JSC$7999_dom_,F=x.JSC$7225_document_.body,N=x.JSC$7225_document_.activeElement||F;if(!this.lastFocus_||this.lastFocus_==F){this.lastFocus_=null;break a}(N==F||x.contains(this.getElement(),N))&&this.lastFocus_.focus()}catch(h){}this.lastFocus_=
null}}};
var Dfn=function(p,x){p.modalAriaVisibilityHelper_||(p.modalAriaVisibilityHelper_=new cTB(p.JSC$7999_element_,p.JSC$7999_dom_));p=p.modalAriaVisibilityHelper_;if(x){p.hiddenElements_||(p.hiddenElements_=[]);x=p.JSC$8020_dom_.getChildren(p.JSC$8020_dom_.JSC$7225_document_.body);for(var F=0;F<x.length;F++){var N=x[F],h;if(h=N!=p.JSC$8020_element_)h=N.getAttribute("aria-hidden"),h=!(h==null||h==void 0?0:String(h));h&&(wJ(N,"hidden",!0),p.hiddenElements_.push(N))}}else if(p.hiddenElements_){for(x=0;x<
p.hiddenElements_.length;x++)p.hiddenElements_[x].removeAttribute("aria-hidden");p.hiddenElements_=null}};
mN.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var fOB=function(p,x){p.bgIframeEl_&&_.HS(p.bgIframeEl_,x);p.bgEl_&&_.HS(p.bgEl_,x);_.HS(p.getElement(),x);_.HS(p.tabCatcherElement_,x)};
_.l=mN.prototype;_.l.onShow=function(){this.dispatchEvent("show")};
_.l.onHide=function(){fOB(this,!1);this.dispatchEvent("hide")};
_.l.isVisible=function(){return this.visible_};
_.l.focus=function(){this.focusElement_()};
_.l.resizeBackground_=function(){this.bgIframeEl_&&_.HS(this.bgIframeEl_,!1);this.bgEl_&&_.HS(this.bgEl_,!1);var p=this.JSC$7999_dom_.JSC$7225_document_;var x=_.t_(n2(this.JSC$7999_dom_.JSC$7225_document_)||window);var F=Math.max(x.width,Math.max(p.body.scrollWidth,p.documentElement.scrollWidth));p=Math.max(x.height,Math.max(p.body.scrollHeight,p.documentElement.scrollHeight));this.bgIframeEl_&&(_.HS(this.bgIframeEl_,!0),_.b6b(this.bgIframeEl_,F,p));this.bgEl_&&(_.HS(this.bgEl_,!0),_.b6b(this.bgEl_,
F,p))};
_.l.reposition=function(){var p;if(_.yoZ(this.getElement())=="fixed")var x=p=0;else x=ds(this.JSC$7999_dom_),p=x.x,x=x.y;var F=uKC(this.getElement());var N=_.t_(n2(this.JSC$7999_dom_.JSC$7225_document_)||window);p=Math.max(p+N.width/2-F.width/2,0);x=Math.max(x+N.height/2-F.height/2,0);j0(this.getElement(),p,x);j0(this.tabCatcherElement_,p,x)};
_.l.onFocus=function(p){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():p.target==this.tabCatcherElement_&&Qo(this.focusElement_,0,this)};
_.l.focusElement_=function(){try{this.getElement().focus()}catch(p){}};
_.l.disposeInternal=function(){_.RR(this.popupShowTransition_);this.popupShowTransition_=null;_.RR(this.popupHideTransition_);this.popupHideTransition_=null;_.RR(this.bgShowTransition_);this.bgShowTransition_=null;_.RR(this.bgHideTransition_);this.bgHideTransition_=null;mN.superClass_.disposeInternal.call(this)};var nH=function(p,x,F){mN.call(this,x,F);this.JSC$8030_class_=p||"modal-dialog";this.buttons_=(new ow).addButton(KiJ,!0).addButton(q$B,!1,!0)};
_.NL(nH,mN);_.l=nH.prototype;_.l.escapeToCancel_=!0;_.l.hasTitleCloseButton_=!0;_.l.modal_=!0;_.l.draggable_=!0;_.l.backgroundElementOpacity_=.5;_.l.title_="";_.l.JSC$8032_dragger_=null;_.l.JSC$8032_disposeOnHide_=!1;_.l.titleEl_=null;_.l.titleTextEl_=null;_.l.titleTextId_=null;_.l.titleCloseEl_=null;_.l.contentEl_=null;_.l.buttonEl_=null;_.l.getCssClass=function(){return this.JSC$8030_class_};
_.l.setTitle=function(p){this.title_=p;this.titleTextEl_&&_.Hk(this.titleTextEl_,p)};
_.l.getTitle=function(){return this.title_};
_.l.getContent=function(){return""};
_.l.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var Zoj=function(p){p.getElement()||p.render();return p.getElement()};
nH.prototype.getBackgroundElement=function(){this.getElement()||this.render();return nH.superClass_.getBackgroundElement.call(this)};
var tlK=function(p,x){p.backgroundElementOpacity_=x;p.getElement()&&(x=p.getBackgroundElement())&&wzl(x,p.backgroundElementOpacity_)};
nH.prototype.setDraggable=function(p){this.draggable_=p;dfB(this,p&&this.inDocument_)};
nH.prototype.JSC$8032_handleDrag=function(){};
var dfB=function(p,x){var F=_.hH(p.JSC$8030_class_+"-title-draggable").split(" ");p.getElement()&&(x?O1(p.titleEl_,F):LVj(p.titleEl_,F));x&&!p.JSC$8032_dragger_?(x=new _.G3(p.getElement(),p.titleEl_),p.JSC$8032_dragger_=x,O1(p.titleEl_,F),_.qd(p.JSC$8032_dragger_,"start",p.setDraggerLimits_,!1,p),_.qd(p.JSC$8032_dragger_,"drag",p.JSC$8032_handleDrag,!1,p)):!x&&p.JSC$8032_dragger_&&(p.JSC$8032_dragger_.dispose(),p.JSC$8032_dragger_=null)};
_.l=nH.prototype;
_.l.JSC$8001_createDom=function(){nH.superClass_.JSC$8001_createDom.call(this);var p=this.getElement(),x=this.JSC$7999_dom_;this.titleTextId_=this.getId();var F=this.getId()+".contentEl";this.titleEl_=x.JSC$7227_createDom("DIV",this.JSC$8030_class_+"-title",this.titleTextEl_=x.JSC$7227_createDom("SPAN",{className:this.JSC$8030_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=x.JSC$7227_createDom("SPAN",this.JSC$8030_class_+"-title-close"));cob(p,this.titleEl_,this.contentEl_=
x.JSC$7227_createDom("DIV",{className:this.JSC$8030_class_+"-content",id:F}),this.buttonEl_=x.JSC$7227_createDom("DIV",this.JSC$8030_class_+"-buttons"));LdB(this.titleTextEl_,"heading");LdB(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;wJ(this.titleCloseEl_,"label","Close");LdB(p,"dialog");wJ(p,"labelledby",this.titleTextId_||"");_.HS(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(p=this.buttons_,p.JSC$8033_element_=this.buttonEl_,p.render());_.HS(this.buttonEl_,!!this.buttons_);
tlK(this,this.backgroundElementOpacity_)};
_.l.decorateInternal=function(p){nH.superClass_.decorateInternal.call(this,p);p=this.getElement();var x=this.JSC$8030_class_+"-content";this.contentEl_=yO(document,null,x,p)[0];this.contentEl_||(this.contentEl_=this.JSC$7999_dom_.JSC$7227_createDom("DIV",x),p.appendChild(this.contentEl_));x=this.JSC$8030_class_+"-title";var F=this.JSC$8030_class_+"-title-text",N=this.JSC$8030_class_+"-title-close";(this.titleEl_=yO(document,null,x,p)[0])?(this.titleTextEl_=yO(document,null,F,this.titleEl_)[0],this.titleCloseEl_=
yO(document,null,N,this.titleEl_)[0]):(this.titleEl_=this.JSC$7999_dom_.JSC$7227_createDom("DIV",x),p.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=rol(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.Aa("SPAN",{className:F,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;wJ(p,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$7999_dom_.JSC$7227_createDom("SPAN",
N),this.titleEl_.appendChild(this.titleCloseEl_));_.HS(this.titleCloseEl_,this.hasTitleCloseButton_);x=this.JSC$8030_class_+"-buttons";(this.buttonEl_=yO(document,null,x,p)[0])?(this.buttons_=new ow(this.JSC$7999_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$7999_dom_.JSC$7227_createDom("DIV",x),p.appendChild(this.buttonEl_),this.buttons_&&(p=this.buttons_,p.JSC$8033_element_=this.buttonEl_,p.render()),_.HS(this.buttonEl_,!!this.buttons_));tlK(this,this.backgroundElementOpacity_)};
_.l.enterDocument=function(){nH.superClass_.enterDocument.call(this);Y9(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);Y9(this).listen(this.buttonEl_,"click",this.onButtonClick_);dfB(this,this.draggable_);Y9(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var p=this.getElement();LdB(p,"dialog");this.titleTextEl_.id!==""&&wJ(p,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){p=this.JSC$7999_dom_;
var x=this.getBackgroundElement();p.removeNode(this.bgIframeEl_);p.removeNode(x)}this.isVisible()&&Dfn(this,!1)}};
_.l.exitDocument=function(){this.isVisible()&&this.setVisible(!1);dfB(this,!1);nH.superClass_.exitDocument.call(this)};
_.l.setVisible=function(p){p!=this.isVisible()&&(this.inDocument_||this.render(),nH.superClass_.setVisible.call(this,p))};
_.l.onShow=function(){nH.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.l.onHide=function(){nH.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8032_disposeOnHide_&&this.dispose()};
_.l.setDraggerLimits_=function(){var p=this.JSC$7999_dom_.JSC$7225_document_,x=_.t_(n2(p)||window),F=Math.max(p.body.scrollWidth,x.width);p=Math.max(p.body.scrollHeight,x.height);var N=uKC(this.getElement());_.yoZ(this.getElement())=="fixed"?this.JSC$8032_dragger_.limits=new mj(0,0,Math.max(0,x.width-N.width),Math.max(0,x.height-N.height)):this.JSC$8032_dragger_.limits=new mj(0,0,F-N.width,p-N.height)};
_.l.onTitleCloseClick_=function(){vll(this)};
var vll=function(p){if(p.hasTitleCloseButton_){var x=p.buttons_,F=x&&x.cancelButton_;F?(x=x.get(F),p.dispatchEvent(new OP(F,x))&&p.setVisible(!1)):p.setVisible(!1)}},JTB=function(p){p.hasTitleCloseButton_=!1;
p.titleCloseEl_&&_.HS(p.titleCloseEl_,p.hasTitleCloseButton_)};
nH.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;nH.superClass_.disposeInternal.call(this)};
nH.prototype.onButtonClick_=function(p){a:{for(p=p.target;p!=null&&p!=this.buttonEl_;){if(p.tagName=="BUTTON")break a;p=p.parentNode}p=null}if(p&&!p.disabled){p=p.name;var x=this.buttons_.get(p);this.dispatchEvent(new OP(p,x))&&this.setVisible(!1)}};
nH.prototype.onKey_=function(p){var x=!1,F=!1,N=this.buttons_,h=p.target;if(p.type=="keydown")if(this.escapeToCancel_&&p.keyCode==27){var c=N&&N.cancelButton_;h=h.tagName=="SELECT"&&!h.disabled;c&&!h?(F=!0,x=N.get(c),x=this.dispatchEvent(new OP(c,x))):h||(x=!0)}else{if(p.keyCode==9&&p.shiftKey&&h==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(d){}Qo(this.resetBackwardTabWrap_,0,this)}}else if(p.keyCode==13){if(h.tagName=="BUTTON"&&!h.disabled)c=h.name;
else if(h==this.titleCloseEl_)vll(this);else if(N){var M=N.defaultButton_,f;if(f=M)a:{f=Z0("BUTTON",N.JSC$8033_element_);for(var K,t=0;K=f[t];t++)if(K.name==M||K.id==M){f=K;break a}f=null}h=(h.tagName=="TEXTAREA"||h.tagName=="SELECT"||h.tagName=="A")&&!h.disabled;!f||f.disabled||h||(c=M)}c&&N&&(F=!0,x=this.dispatchEvent(new OP(c,String(N.get(c)))))}else h!=this.titleCloseEl_||p.keyCode!=32&&p.key!=" "||vll(this);if(x||F)p.stopPropagation(),p.preventDefault();x&&this.setVisible(!1)};
var OP=function(p,x){this.type="dialogselect";this.key=p;this.caption=x};
_.NL(OP,_.th);var ow=function(p){Wv.call(this);p||vm();this.cancelButton_=this.JSC$8033_element_=this.defaultButton_=null};
_.NL(ow,Wv);_.l=ow.prototype;_.l.clear=function(){Wv.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.l.set=function(p,x,F,N){Wv.prototype.set.call(this,p,x);F&&(this.defaultButton_=p);N&&(this.cancelButton_=p);return this};
_.l.addButton=function(p,x,F){return this.set(p.key,p.caption,x,F)};
_.l.render=function(){if(this.JSC$8033_element_){_.ig(this.JSC$8033_element_,Bqk);var p=vm(this.JSC$8033_element_);this.forEach(function(x,F){x=p.JSC$7227_createDom("BUTTON",{name:F},x);F==this.defaultButton_&&(x.className="goog-buttonset-default");this.JSC$8033_element_.appendChild(x)},this)}};
_.l.decorate=function(p){if(p&&p.nodeType==1){this.JSC$8033_element_=p;p=Z0("BUTTON",this.JSC$8033_element_);for(var x,F,N,h=0;x=p[h];h++)if(F=x.name||x.id,N=rol(x)||x.value,F){var c=h==0;this.set(F,N,c,x.name=="cancel");c&&_.Wl(x,"goog-buttonset-default")}}};
_.l.getElement=function(){return this.JSC$8033_element_};
var KiJ={key:"ok",caption:"OK"},q$B={key:"cancel",caption:"Cancel"},CKD={key:"yes",caption:"Yes"},S$j={key:"no",caption:"No"},rTJ={key:"save",caption:"Save"},ElC={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new ow).addButton(KiJ,!0,!0),(new ow).addButton(KiJ,!0).addButton(q$B,!1,!0),(new ow).addButton(CKD,!0).addButton(S$j,!1,!0),(new ow).addButton(CKD).addButton(S$j,!0).addButton(q$B,!1,!0),(new ow).addButton(ElC).addButton(rTJ).addButton(q$B,!0,!0));_.NL(GIJ,nH);_.NL(VQr,yH);var XZB=_.B$(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),glj=_.B$(["//apis.google.com/js/rpc.js"]),Tqr=_.xH(XZB),Pbp=_.xH(glj),Hfd=null;var bI=function(p,x){_.Sc.call(this);this.JSC$8042_element_=p;p=_.O0(this.JSC$8042_element_)?this.JSC$8042_element_:this.JSC$8042_element_?this.JSC$8042_element_.body:null;this.isRtl_=!!p&&_.GlZ(p);this.listenKey_=_.qd(this.JSC$8042_element_,_.Dr?"DOMMouseScroll":"mousewheel",this,x)};
_.NL(bI,_.Sc);bI.prototype.handleEvent=function(p){var x=0,F=0,N=p.event_;N.type=="mousewheel"?(p=Qcm(-N.wheelDelta),N.wheelDeltaX!==void 0?(x=Qcm(-N.wheelDeltaX),F=Qcm(-N.wheelDeltaY)):F=p):(p=N.detail,p>100?p=3:p<-100&&(p=-3),N.axis!==void 0&&N.axis===N.HORIZONTAL_AXIS?x=p:F=p);typeof this.maxDeltaX_==="number"&&(x=_.YV(x,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(F=_.YV(F,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(x=-x);x=new zRB(p,N,x,F);this.dispatchEvent(x)};
var Qcm=function(p){return _.fT&&(_.EXw||gXp)&&p%40!=0?p:p/40};
bI.prototype.disposeInternal=function(){bI.superClass_.disposeInternal.call(this);D$(this.listenKey_);this.listenKey_=null};
var zRB=function(p,x,F,N){_.d8.call(this,x);this.type="mousewheel";this.detail=p;this.deltaX=F;this.deltaY=N};
_.NL(zRB,_.d8);_.la=function(p){var x="instance_";if(p.instance_&&p.hasOwnProperty(x))return p.instance_;x=new p;return p.instance_=x};var LW$;var scJ=_.B$(["https://about:blank"]),nlK=_.B$(['javascript:""']),yTB=_.B$(["about:blank"]);_.NL(mX,GIJ);_.l=mX.prototype;_.l.JSC$8050_url_="";_.l.JSC$8050_iframe_=null;_.l.iframeLoaded_=!1;_.l.loadedFired_=!1;_.l.callback_=function(){};
_.l.enterDocument=function(){mX.superClass_.enterDocument.call(this);Ofp(this.getBackgroundElement(),Y9(this))};
_.l.render=function(p){var x=this;mX.superClass_.render.call(this,p);this.useGapi_?ydm(this.iframeManager_,window).then(function(){return boj(x)}).then(null,function(){x.callback_({action:"error"})}):ATb(this)};
var boj=function(p){var x=p.JSC$7999_dom_.JSC$7227_createDom("div",["picker-dialog-content","picker-frame"]);_.HS(x,!1);p.getContentElement().appendChild(x);return bgI(p.iframeManager_,x,function(F){var N=MiI(F["iframe-command"]);switch(N.getCommand()){case 1:F=p.callback_;N=_.B8(N,e0,2);var h="";switch(N.getStatus()){case 2:h="cancel";break;case 1:h="picked";break;case 3:h="error"}var c=_.UT(N,Q8,2,_.ik(UTM));N=c.length===0?{action:h}:f3v(c,h,_.B8(N,lCD,7));F.call(p,N);p.setVisible(!1);break;case 4:JTB(p);
p.callback_({action:"loaded"});break;case 7:case 8:F=p.callback_;a:{h=N.getCommand();c=_.B8(N,e0,2);switch(h){case 7:h="uploadScheduled";break;case 8:h="uploadStateChange";break;default:N={};break a}N=_.UT(c,Q8,2,_.ik(UTM));if(N.length===0)N={action:h};else{var M=_.B8(c,lCD,7);c=M&&_.uq(M,1);M=eZZ(M);N=Fdb(N,h,c,M)}}F.call(p,N)}},p.JSC$8050_url_,p.targetId_,p.rpcToken_).then(function(F){p.JSC$8050_iframe_=F.getIframeEl();
uxk(p);_.HS(p.JSC$8050_iframe_.parentElement,!0);_.Wl(p.getElement(),"picker-dialog");Y$k(p);return F})},ATb=function(p){p.JSC$8050_iframe_=p.JSC$7999_dom_.JSC$7227_createDom("IFRAME",{id:p.targetId_,
name:p.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.jP(p.JSC$8050_iframe_,wZk(p));_.Wl(p.getElement(),"picker-dialog");p.getContentElement().appendChild(p.JSC$8050_iframe_);Y9(p).listen(p.JSC$8050_iframe_,"load",function(){return void uxk(p)});
p.JSC$8050_iframe_.src=p.JSC$8050_url_;Y$k(p)},VlD=function(p){GjK(p,(0,_.CH)(function(x){x.setAuthToken(this.targetId_,this.rpcToken_)},p))},Y$k=function(p){var x=_.VH(_.G4(p.JSC$8050_url_),"title");
x&&p.setTitle(x)},wZk=function(p){return _.Zpp("Internet Explorer")>=7&&_.qm(p.JSC$8050_url_,"https")?_.xH(scJ):_.ML?_.xH(nlK):_.xH(yTB)},uxk=function(p){VlD(p);
p.iframeLoaded_=!0;p.JSC$8050_iframe_.tabIndex=0;p.isVisible()&&p.focus()};
mX.prototype.handleKeydown_=function(p){p.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),p.stopPropagation(),p.preventDefault())};
var GjK=function(p,x){var F=p.JSC$8048_gadgetsDomHelper_;mEM(function(){x(F.getWindow().gadgets.rpc)},F)};
mX.prototype.setUrl=function(p){p=_.WS(new _.R9(p),"rpcService",this.targetId_);_.WS(p,"rpctoken",this.rpcToken_);_.Fp(p,"rpctoken="+this.rpcToken_);_.iM(p,"https");this.JSC$8050_url_=p.toString();this.JSC$8050_iframe_&&(this.JSC$8050_iframe_.src=this.JSC$8050_url_)};
var Wib=function(p,x){p.callback_=x;GjK(p,(0,_.CH)(function(F){F.register(this.targetId_,(0,_.CH)(this.handlePickerAction_,this))},p))};
mX.prototype.handlePickerAction_=function(p){var x=p.action;x=="loaded"&&(this.loadedFired_=!0,Hon(this,new w8J(this.isVisible())),mfn(this),JTB(this),Y9(this).unlisten(this.JSC$7999_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8050_iframe_.tabIndex=0);x!="picked"&&x!="cancel"||this.setVisible(!1);this.callback_(p)};
var mfn=function(p){p.JSC$8050_appId_&&Hon(p,new Y5r(p.JSC$8050_appId_,window.location.protocol+"//"+window.location.host))};
mX.prototype.setRelayUrl=function(p){GjK(this,(0,_.CH)(function(x){x.setRelayUrl(this.targetId_,p)},this))};
var Hon=function(p,x){p.useGapi_&&GWm(x,p.iframeManager_).then(null,function(){p.callback_({action:"error"})});
GjK(p,(0,_.CH)(function(F){F.call(this.targetId_,"picker",null,x)},p))};
mX.prototype.resizePicker_=function(){var p=n2(this.JSC$7999_dom_.JSC$7225_document_)||window;if(_.VH(_.G4(this.JSC$8050_url_),"ignoreLimits")=="true")p=new _.q1(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.VH(_.G4(this.JSC$8050_url_),"shadeDialog")=="true"){var x=Zoj(this);x=VPD(x);var F=_.t_(p);p=F.width-80;F=F.height-40;x&&(p-=x.left?x.left:0,p-=x.right?x.right:0,F-=x.top?x.top:0,F-=x.bottom?x.bottom:0);p=new _.q1(p>0?p:0,F>0?F:0)}else(x=this.preferredDialogWidth_)?(x=Math.max(320,
Math.min(1051,x)),(F=this.preferredDialogHeight_)||(F=_.t_(p).height*.85),F=Math.max(480,Math.min(650,F))):(x=_.t_(p),F=x.width*.618,F=F<x.height?Math.round(Math.max(480,Math.min(650,F*.85))):Math.round(Math.max(480,Math.min(650,x.height*.85))),x=Math.round(F/.618)),p=_.t_(p),x=Math.min(x,Math.max(p.width,320)),F=Math.min(F,Math.max(p.height,480)),p=new _.q1(x,F);_.b6b(this.getContentElement(),p);this.reposition()};
mX.prototype.reposition=function(){if(_.VH(_.G4(this.JSC$8050_url_),"shadeDialog")=="true"){var p=uKC(this.getElement()),x=_.t_(this.JSC$7999_dom_.getWindow());p=Math.floor(x.width/2-p.width/2);x=Zoj(this);if(x=VPD(x)){var F=x.left?x.left:0;F+=x.right?x.right:0;p=Math.floor(p-F/2)}p=p>0?p:0;x=ds(this.JSC$7999_dom_).y;j0(this.getElement(),p,x)}else mX.superClass_.reposition.call(this)};
mX.prototype.setVisible=function(p){if(p!=this.isVisible()&&this.autoSizeDialog_){var x=this.JSC$7999_dom_.getWindow();p?(this.resizePicker_(),Y9(this).listen(x,"resize",this.resizePicker_),this.iframeLoaded_||Y9(this).listen(x,"keydown",this.handleKeydown_)):(Y9(this).unlisten(x,"resize",this.resizePicker_),this.iframeLoaded_||Y9(this).unlisten(x,"keydown",this.handleKeydown_))}mX.superClass_.setVisible.call(this,p);Hon(this,new w8J(p))};
mX.prototype.focus=function(){mX.superClass_.focus.call(this);if(this.JSC$8050_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8050_iframe_.focus()}catch(p){}};var JF=function(p,x){x=x===void 0?mX:x;yH.call(this,p);this.pickerConstructor=x;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(p=window.location.origin)||(p=window.location.protocol+"//"+window.location.host);p&&this.urlParamMap_.set("origin",p);this.postProcessors_=[]};
_.E(JF,VQr);JF.prototype.JSC$8055_disposeOnHide_=!1;
JF.prototype.build=function(){this.JSC$7956_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$7956_appId_);this.getRelayUrl()||this.setRelayUrl(_.pF(_.Fp(_.x9(_.G4(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("kb");var p=new this.pickerConstructor(olv(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);p.JSC$8032_disposeOnHide_=this.JSC$8055_disposeOnHide_;
p.JSC$8050_appId_=this.JSC$7956_appId_;p.loadedFired_&&mfn(p);Wib(p,this.callback_);return p};
var Ook=function(p){p.urlParamMap_.set("multiselectEnabled","true");return p};
JF.prototype.getHeight=function(){return this.dialogHeight_};
JF.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
JF.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
JF.prototype.getWidth=function(){return this.dialogWidth_};
var jcC=function(p){p.JSC$8055_disposeOnHide_=void 0;return p};
JF.prototype.setRelayUrl=function(p){this.urlParamMap_.set("parent",p);return this};
var LiD=function(p,x){p.urlParamMap_.set("selectButtonLabel",x);return p};
JF.prototype.setSize=function(p,x){this.dialogWidth_=p;this.dialogHeight_=x;return this};
JF.prototype.setTitle=function(p){this.urlParamMap_.set("title",p);return this};
var olv=function(p){p.postProcessors_.length&&p.urlParamMap_.set("pp",JSON.stringify(p.postProcessors_));p.urlParamMap_.set("nav",UEv(p.nav_));var x=new _.R9(p.getBaseUrl());p.urlParamMap_.forEach(function(F,N){_.WS(x,N,F)});
return x};var BjD=function(p,x){p.name!==void 0?(this.name=p.name,this.code=PKB[p.name]):(this.code=p=p.code,this.name=Tjk(p));_.x$.call(this,EBk("%s %s",this.name,x))};
_.NL(BjD,_.x$);var Tjk=function(p){var x=_.Q5.findKey(PKB,function(F){return p==F});
if(x===void 0)throw Error("mb`"+p);return x},j_={},PKB=(j_.AbortError=3,j_.EncodingError=5,j_.InvalidModificationError=9,j_.InvalidStateError=7,j_.NotFoundError=1,j_.NotReadableError=4,j_.NoModificationAllowedError=6,j_.PathExistsError=12,j_.QuotaExceededError=10,j_.SecurityError=2,j_.SyntaxError=8,j_.TypeMismatchError=11,j_);var RRl=function(p,x){_.th.call(this,p.type,x);this.event_=p};
_.NL(RRl,_.th);var kj6=function(p,x,F){F===void 0&&(F=p.size);return p.slice?p.slice(x,F):null};var kIp=new WeakMap,RZw=function(p,x){p=[p];for(var F=x.length-1;F>=0;--F)p.push(typeof x[F],x[F]);return p.join("\v")};_.ifJ(function(){if(!_.Mm.Blob)return!1;var p=new Uint8Array(100);try{var x=new Blob([p])}catch(F){return!1}return x.size!=100?!1:!0});
var Ufb=_.ifJ(function(){if(!_.Mm.Blob)return!1;var p=new Uint8Array(100);try{var x=new Blob([p])}catch(F){return!1}return kj6(x,0,1)===null?!1:!0});_.Mm.U3bHHf!=null||(_.Mm.U3bHHf=0);_.Mm.U3bHHf++;var $Ep={};_.LH=void 0;var pu6=Symbol("rb");var Fdr=Symbol("sb");var Kd$=T4("WizInjectionContext_Dispatcher");var cdd=T4("WizInjectionContext_RootElement");var MsJ=T4("WizInjectionContext_AppContext"),a3M=T4("WizInjectionContext_ModelRootElement"),DpB=T4("WizInjectionContext_RendererData"),f3M=T4("WizInjectionContext_InjectingConstructor"),q0B={};var vSp=!1;var io6=Symbol("vb"),nlZ=Symbol("wb"),bow=Symbol("xb"),Wir=Gm(function(p){return snJ(p)&&io6 in p});var rdk={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextPerComponent:tN6,enableLazyTsx:dTd,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1};var iI=Object.assign({},{attributes:{},handleError:function(p){throw p;}},rdk);var nSk=Symbol("yb"),LF={},Qnw=(LF[nSk]=!0,LF.debugName="[component]",LF.getComponentStack=function(){for(var p=[],x=this;x;)ydB(x)&&p.push(x.debugName),x=x.parent;return p.reverse()},LF.registerSignal=function(){},LF.registerEffect=function(){},LF);var IG=null,ee=!1,GWB=1,FD=Symbol("zb"),MG={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 Pv=Symbol("Ab"),T3=Symbol("Bb"),xd=Symbol("Cb"),Ldd=Object.assign({},MG,{value:Pv,dirty:!0,error:null,equal:bgm,kind:"computed",producerMustRecompute:function(p){return p.value===Pv||p.value===T3},
producerRecomputeValue:function(p){if(p.value===T3)throw Error("da");var x=p.value;p.value=T3;var F=oSw(p),N=!1;try{var h=p.computation();$C(null);N=x!==Pv&&x!==xd&&h!==xd&&p.equal(x,h)}catch(c){h=xd,p.error=c}finally{Og$(p,F)}N?p.value=x:(p.value=h,p.version++)}});var fO$=function(){throw Error();};var Ki6=null,Mlw=Object.assign({},MG,{equal:bgm,value:void 0,kind:"signal"});Object.assign({},MG,{value:Pv,dirty:!0,error:null,equal:bgm,kind:"linkedSignal",producerMustRecompute:function(p){return p.value===Pv||p.value===T3},
producerRecomputeValue:function(p){if(p.value===T3)throw Error("da");var x=p.value;p.value=T3;var F=oSw(p);try{var N=p.source();var h=p.computation(N,x===Pv||x===xd?void 0:{source:p.sourceValue,value:x});p.sourceValue=N}catch(c){h=xd,p.error=c}finally{Og$(p,F)}x!==Pv&&h!==xd&&p.equal(x,h)?p.value=x:(p.value=h,p.version++)}});Object.assign({},MG,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(p){p.schedule!==null&&p.schedule(p.ref)},
hasRun:!1,cleanupFn:function(){}});var Zow=Symbol("Db");var df$=Symbol("Eb"),lG=Symbol("Fb");var ce=Array.isArray;var QcB;var IOv={},sc6=glw(Object.assign({},{consumerAllowSignalWrites:!0},IOv)),h9=glw(Object.assign({},{consumerAllowSignalWrites:!0},IOv));var olM=[];var mfH=0,Bv=function(){this.queue=new Set};
Bv.prototype.remove=function(p){this.queue.delete(p)};
var $fC=function(){Bv.apply(this,arguments)};
_.E($fC,Bv);$fC.prototype.schedule=function(p){p.hasRun?this.queue.add(p):p.run()};
$fC.prototype.flush=function(){if(this.queue.size){var p=this.queue;this.queue=new Set;HoH(p)}};
var yT$=new $fC,eRb=function(){Bv.apply(this,arguments)};
_.E(eRb,Bv);eRb.prototype.schedule=function(p){var x=this;return _.D(function(F){if(F.nextAddress==1)return p.hasRun?F.jumpTo(2):_.q(F,Promise.resolve(),3);if(F.nextAddress!=2)return p.run(),F.return();x.queue.add(p);_.JB(F)})};
eRb.prototype.flush=function(){var p=this,x;return _.D(function(F){if(F.nextAddress==1){if(!p.queue.size)return F.return();x=p.queue;p.queue=new Set;return _.q(F,Promise.resolve(),2)}HoH(x);_.JB(F)})};
var ATr=new eRb,Vlp=[yT$,ATr],wZJ=[];Ki6=function(){uxJ();for(var p=_.a(wZJ),x=p.next();!x.done;x=p.next())x=x.value,x()};var tu=Symbol("Lb");var ZJ=[],PK$,TjJ,Bjp;var Rw={},pQJ=Object.assign({},MG,(Rw[io6]=!0,Rw.effectType=nlZ,Rw.isResettableContext=!0,Rw.producerNode=void 0,Rw.hasRun=!1,Rw.effectFn=null,Rw.consumerIsAlwaysLive=!0,Rw.consumerAllowSignalWrites=!0,Rw.consumerMarkedDirty=Y$J,Rw.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(ee)throw Error("Mb");this.dirty=!1;if(!this.hasRun||VsJ(this)){this.hasRun=!0;l3$(this);var p=PS(this),x=oSw(this);Xu6("effectRun",this.debugName);try{Ju(this.effectFn,{stack:this.componentStack})}finally{gSM("effectRun",
this.debugName),Og$(this,x),BS(p)}}}},Rw.componentStack=void 0,Rw.debugName="[effect]",Rw[Symbol.dispose]=function(){Adp(this);
if(pn(this))for(var p=0;p<this.producerNode.length;p++)uEM(this.producerNode[p],this.producerIndexOfThis[p]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);p=_.a(Vlp);for(var x=p.next();!x.done;x=p.next())x.value.remove(this);h$H(this)},Rw));var kjE=Object.assign({},pQJ,{effectType:nlZ});var Ufr=Object.assign({},pQJ,{effectType:bow});var ioE=Symbol("Nb");var uPk=new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden ismap itemscope jsshadow jsslot loop multiple muted novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var Pe=Symbol("Ob");var pt=function(){},M$=function(p){this.props=p;
this.__unmounted=!1};
M$.prototype.didPatch=function(){};
M$.prototype.didMount=function(){};
M$.prototype.didUnmount=function(){};
M$.prototype.didUpdate=function(){};var eRr={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,
ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,valign:1,value:1,width:1,wrap:1},$fz={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}]}},rhE={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},FfJ=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],xn6={"*":{async:1,dir:0,loading:2,target:3}};var xnJ=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,k9={},hTH=(k9[1]=null,k9[2]=function(p,x){return x instanceof Hz?OU(x):Ao.toString()},k9[3]=function(p,x){return Qb(x)?_.n6(x):xnJ.test(String(x))?String(x):Ao.toString()},k9[4]=function(p,x){return x instanceof de?_.SP(x):Ao.toString()},k9[5]=function(p,x){return String(x)},k9[7]=null,k9[8]=null,k9[10]=null,k9);var BRm=Symbol("Rb");var Gzw=function(p){var x=Ffk,F=p,N="",h="",c=1;p<0&&(p=-p);if(p===Infinity)p=(Infinity*Math.sign(F)).toString();else{for(var M=0;M<Ngv.length;M++){var f=Ngv[M];c=x[f];if(p>=c||c<=1&&p>.1*c){N=f;break}}N?(N+="B",h=" "):c=1;p=Math.round(F/c*10)/10+h+N}return p},Ngv="Y Z E P T G M K  m u n".split(" "),Ffk={"":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};_.hTn=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 iG={};RegExp.prototype.hasOwnProperty("sticky");var GcJ=function(p){p=String(p);for(var x=function(N,h,c){for(var M=Math.min(h.length-c,N.length),f=0;f<M;f++){var K=h[c+f];if(N[f]!==("A"<=K&&K<="Z"?K.toLowerCase():K))return!1}return!0},F=0;(F=p.indexOf("<",F))!=-1;){if(x("\x3c/script",p,F)||x("\x3c!--",p,F))return"zSoyz";
F+=1}return p};var s_={default:"__default"};var KfE=Object.prototype.hasOwnProperty;aWk.prototype=Object.create(null);var BZ=tBk();var mV=null;var zT6=function(p){this.created=[];this.deleted=[];this.node=p};var s8k=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var p=this,x=p;p;)x=p,p=p.parentNode;return x};var vMH=function(p,x){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=p;this.key=x;this.text=void 0};var uG=null,Yd=null,yZ=null,GG=null,EME=[],rl$=CLm,We=[],He=[],PZ=function(p){return nMM(function(x,F,N){yZ=Yd=x;Yd=null;F(N);S4J(null);Yd=yZ;yZ=yZ.parentNode;return x},p)}(),TRp=function(p){return nMM(function(x,F,N){var h={nextSibling:x};
Yd=h;F(N);yZ&&S4J(x.nextSibling);return h===Yd?null:Yd},p)}();var oU=[],bNp=0;var O_=new aWk;var d$=new aWk;var lWZ=tBk(),wQk=lWZ[s_.default],VB6=lWZ.style,Y4J=["focusin","focusout"];var Sf6=function(){},MqE=function(){},Q9B=function(){},EQE=function(){};var Ln=Symbol("Yb");var Lfd,j8$=ONp;var $d=Symbol("Zb");var Fwp={};var gQM=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(" ")),
X7H=new Set(["a","font","script","style","title"]);var lO={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var cw=null,aD=function(p,x){M$.call(this,p);var F=this;this.functionComponent=x;this.hooks=[];this.hookCounter=0;this.disposeEffects=XD(function(N){F.effectContext=N;_.E_(function(){qfH(F,F.el)})},iI.alwaysTrackContexts||!!_.LH)};
_.E(aD,M$);aD.prototype.render=function(p){var x=cw;cw=this;this.hookCounter=0;var F=$C(h9),N=PS(this.effectContext);try{return Xu6("render",this.componentName),this.functionComponent(p)}finally{gSM("render",this.componentName),BS(N),$C(F),cw=x}};
_.R8.Object.defineProperties(aD.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){var p,x;return(x=(p=this.functionComponent.debugName)!=null?p:this.functionComponent.name)!=null?x:"[component]"}}});var zyZ=Symbol("mc"),J86=function(p,x,F){this.kind=p;this.props=x;this.children=F};
_.E(J86,pt);J86.prototype.render=function(){return vQJ(this.kind,this.props,this.children)};
J86.prototype.getChildren=function(){return this.children};var nQM=[];fO$=function(p){throw Error("pb`"+p.debugName);};
(function(){var p=mV;mV=function(x){p==null||p(x);y8M(x)}})();var clJ=void 0,aWl={},MBv=new WeakMap,bsp={getComponent:function(p){if(p.hasAttribute("ng-version"))return aWl;if(!p.__wizComponent)return null;p=p.__wizComponent;MBv.set(p.propsAndState,p);return p.propsAndState},
getDirectiveMetadata:function(p){if(p===aWl)return{framework:"wiz",name:"<Root>",props:{}};p=MBv.get(p);if(!p)throw Error("nc");return{framework:"wiz",name:p.name,props:Object.fromEntries(Object.keys(p.props).map(function(x){return[x,x]}))}},
"\u0275setProfiler":function(p){var x;(x=clJ)==null||x();clJ=GjZ(function(){p(2)})},
isSignal:function(p){return typeof p==="function"&&p[FD]!==void 0}};var ubz={nonNullableCondIsNull:function(){return Error("rc")}};_.Z.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE!=null||(_.Z.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE={});_.Z.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE.isGoatEnabled=function(){return!1};var Hsw=function(){this.map=new Map};
Hsw.prototype.push=function(p,x){var F=this.map;F.has(p)&&(this.multi||(this.multi=new Map),this.multi.set(x,F.get(p)));F.set(p,x)};
Hsw.prototype.pop=function(p){var x=this.map,F=x.get(p),N;F!==void 0&&((N=this.multi)==null?0:N.has(F))?(x.set(p,this.multi.get(F)),this.multi.delete(F)):x.delete(p);return F};var P0p={LOG_NULL_EL_REF_VALUE:function(){return Error("sc")},
OUT_OF_ORDER_HOOK_CALL:function(p){return Error("tc`"+p)},
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_UNEXPECTED_ELEMENT:function(p,x){return Error("xc`"+p+"`"+x)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(p){return Error("yc`"+p)},
USE_ELEMENT_NOT_ASSIGNED:function(p){return Error("zc`"+String(p))}};Lfd=C0d;var IIB=Symbol("Ac");fIp({beforeRender:function(p){var x=PS(p.effectContext);try{var F;((F=p.__syncEffects)==null?0:F.length)&&ey6(p.__syncEffects)}finally{BS(x)}},
didPatch:function(p){var x=PS(p.effectContext);try{var F;((F=p.__syncEffects)==null?0:F.length)&&ey6(p.__syncEffects)}finally{BS(x)}},
didUnmount:function(p){var x;((x=p.hooks)==null?0:x.length)&&p.hooks.forEach($z$)}});var Dn6,fW6,Kf6;Dn6=_.Mm.window;_.QL=(Dn6==null?void 0:(fW6=Dn6.yt)==null?void 0:fW6.config_)||(Dn6==null?void 0:(Kf6=Dn6.ytcfg)==null?void 0:Kf6.data_)||{};_.ox("yt.config_",_.QL);var q4l={},NHJ=[];_.qE=function(p){var x=_.we.apply(1,arguments);var F=Error.call(this,p);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.args=[].concat(_.se(x));Object.setPrototypeOf(this,this.constructor.prototype)};
_.E(_.qE,Error);var N_w=function(p,x,F){this.actionName=p;this.optionalAction=x===void 0?!1:x;this.args=F===void 0?null:F;this.returnValue=[]};_.U=function(p){this.name=p};_.Yl=new _.U("signalAction");var tzp=/^[\w.]*$/,Mzz={q:!0,search_query:!0},ax6=String(cGE);var UP;UP=Symbol("Bc");_.iE=function(p){this.name=p};
_.iE.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var dtZ=function(p){this.key=p},CAB=function(p){this.deferredKey=p},JGd=function(){var p=this;
this.providers=new Map;this.JSC$8259_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(p.providers)}}};
JGd.prototype.addProvider=function(p){this.providers.set(p.provide,p);var x=this.JSC$8259_deferred.get(p.provide);if(x)try{x.resolver(this.resolve(p.provide))}catch(F){x.rejector(F)}};
JGd.prototype.resolve=function(p){return p instanceof CAB?ZND(this,p):p instanceof dtZ?tBl(this,p.key,[],!0):tBl(this,p,[])};
var ZND=function(p,x){x=x.deferredKey;if(p.JSC$8259_deferred.has(x))return p.JSC$8259_deferred.get(x).promise;var F={};F.promise=new Promise(function(N,h){F.resolver=N;F.rejector=h});
p.JSC$8259_deferred.set(x,F);return F.promise},tBl=function(p,x,F,N){N=N===void 0?!1:N;
if(F.indexOf(x)>-1)throw Error("Cc`"+x);if(p.cachedValues.has(x))return p.cachedValues.get(x);if(!p.providers.has(x)){if(N)return;throw Error("Dc`"+x);}N=p.providers.get(x);F.push(x);if(N.useValue!==void 0)var h=N.useValue;else if(N.useFactory)h=N[UP]?dnn(p,N[UP],F):[],h=N.useFactory.apply(N,_.se(h));else if(N.useClass){h=N.useClass;var c=h[UP]?dnn(p,h[UP],F):[];h=new (Function.prototype.bind.apply(h,[null].concat(_.se(c))))}else throw Error("Ec`"+x);F.pop();N.skipCache||p.cachedValues.set(x,h);return h},
dnn=function(p,x,F){return x?x.map(function(N){return N instanceof dtZ?tBl(p,N.key,F,!0):tBl(p,N,F)}):[]};var vvz;var wj=new _.iE("ENDPOINT_HANDLER_TOKEN");_.Gj=new _.U("urlEndpoint");var vMn=function(){this.data=[];this.cachedPackedInt52=-1};
vMn.prototype.set=function(p,x){x=x===void 0?!0:x;0<=p&&p<52&&Number.isInteger(p)&&this.data[p]!==x&&(this.data[p]=x,this.cachedPackedInt52=-1)};
vMn.prototype.get=function(p){return!!this.data[p]};
var Jlk=function(p){p.cachedPackedInt52===-1&&(p.cachedPackedInt52=p.data.reduce(function(x,F,N){return x+(F?Math.pow(2,N):0)},0));
return p.cachedPackedInt52};var Yzm=function(p){var x=CLI;p=p===void 0?_.A9("yt.ads.biscotti.lastId_")||"":p;var F=Object,N=F.assign,h={};h.dt=XeJ;h.flash="0";a:{try{var c=x.JSC$8265_win_.top.location.href}catch(sM){c=2;break a}c=c?c===x.doc_.location.href?0:1:2}h=(h.frm=c,h);try{h.u_tz=-(new Date).getTimezoneOffset();var M=M===void 0?Hs:M;try{var f=M.history.length}catch(sM){f=0}h.u_his=f;var K;h.u_h=(K=Hs.screen)==null?void 0:K.height;var t;h.u_w=(t=Hs.screen)==null?void 0:t.width;var d;h.u_ah=(d=Hs.screen)==null?void 0:d.availHeight;
var v;h.u_aw=(v=Hs.screen)==null?void 0:v.availWidth;var C;h.u_cd=(C=Hs.screen)==null?void 0:C.colorDepth}catch(sM){}f=x.JSC$8265_win_;try{var X=f.screenX;var Q=f.screenY}catch(sM){}try{var b=f.outerWidth;var A=f.outerHeight}catch(sM){}try{var Y=f.innerWidth;var O=f.innerHeight}catch(sM){}try{var Fw=f.screenLeft;var R=f.screenTop}catch(sM){}try{Y=f.innerWidth,O=f.innerHeight}catch(sM){}try{var ld=f.screen.availWidth;var pp=f.screen.availTop}catch(sM){}X=[Fw,R,X,Q,ld,pp,b,A,Y,O];Q=IhH(!1,x.JSC$8265_win_.top);
b={};var Kp=Kp===void 0?_.Mm:Kp;A=new vMn;"SVGElement"in Kp&&"createElementNS"in Kp.document&&A.set(0);Y=O86();Y["allow-top-navigation-by-user-activation"]&&A.set(1);Y["allow-popups-to-escape-sandbox"]&&A.set(2);Kp.crypto&&Kp.crypto.subtle&&A.set(3);"TextDecoder"in Kp&&"TextEncoder"in Kp&&A.set(4);Kp=Jlk(A);x=(b.bc=Kp,b.bih=Q.height,b.biw=Q.width,b.brdim=X.join(),b.vis=LVw(x.doc_),b.wgl=!!Hs.WebGLRenderingContext,b);F=N.call(F,h,x);F.ca_type="image";p&&(F.bid=p);return F},CLI=new function(){var p=
window.document;
this.JSC$8265_win_=window;this.doc_=p};
_.ox("yt.ads_.signals_.getAdSignalsString",function(p){return DtJ(Yzm(p))});_.FV();navigator.userAgent.indexOf(" (CrKey ");var gvM="XMLHttpRequest"in _.Mm?function(){return new XMLHttpRequest}:null;var S4k="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),rlB=[].concat(_.se(S4k),["client_dev_set_cookie"]);var uJk={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"},sf$="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(_.se(S4k)),jfM=!1,yGJ=_.w5H,mtd=AGw;var KUJ=[{messageFn:function(p){return"Cannot read property '"+p.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(p){return"Cannot call '"+p.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(p){return p.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var EM6={messageWeights:[],callbackWeights:[{callback:BHw,weight:500}]};var XQB=function(){this.callbackWeights=[];this.messageWeights=[]},gMB,ftr=function(){if(!gMB){var p=gMB=new XQB;
p.messageWeights.length=0;p.callbackWeights.length=0;W0Z(p,EM6)}return gMB},W0Z=function(p,x){x.messageWeights&&p.messageWeights.push.apply(p.messageWeights,x.messageWeights);
x.callbackWeights&&p.callbackWeights.push.apply(p.callbackWeights,x.callbackWeights)};_.NL(_.lb,_.Jm);_.lb.prototype.subscribe=function(p,x,F){var N=this.topics_[p];N||(N=this.topics_[p]=[]);var h=this.JSC$8289_key_;this.subscriptions_[h]=p;this.subscriptions_[h+1]=x;this.subscriptions_[h+2]=F;this.JSC$8289_key_=h+3;N.push(h);return h};
var Q8B=function(p){var x=dNw,F=!1,N=x.subscribe("handleError",function(h){F||(F=!0,this.unsubscribeByKey(N),p.apply(void 0,arguments))},x)};
_.lb.prototype.unsubscribe=function(p,x,F){if(p=this.topics_[p]){var N=this.subscriptions_;if(p=p.find(function(h){return N[h+1]==x&&N[h+2]==F}))return this.unsubscribeByKey(p)}return!1};
_.lb.prototype.unsubscribeByKey=function(p){var x=this.subscriptions_[p];if(x){var F=this.topics_[x];this.publishDepth_!=0?(this.pendingKeys_.push(p),this.subscriptions_[p+1]=function(){}):(F&&_.Lp(F,p),delete this.subscriptions_[p],delete this.subscriptions_[p+1],delete this.subscriptions_[p+2])}return!!x};
_.lb.prototype.publish=function(p,x){var F=this.topics_[p];if(F){var N=Array(arguments.length-1),h=arguments.length,c;for(c=1;c<h;c++)N[c-1]=arguments[c];if(this.async_)for(c=0;c<F.length;c++)h=F[c],zTJ(this.subscriptions_[h+1],this.subscriptions_[h+2],N);else{this.publishDepth_++;try{for(c=0,h=F.length;c<h&&!this.isDisposed();c++){var M=F[c];this.subscriptions_[M+1].apply(this.subscriptions_[M+2],N)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;F=this.pendingKeys_.pop();)this.unsubscribeByKey(F)}}return c!=
0}return!1};
var zTJ=function(p,x,F){_.E1(function(){p.apply(x,F)})};
_.lb.prototype.clear=function(p){if(p){var x=this.topics_[p];x&&(x.forEach(this.unsubscribeByKey,this),delete this.topics_[p])}else this.subscriptions_.length=0,this.topics_={}};
_.lb.prototype.getCount=function(p){if(p){var x=this.topics_[p];return x?x.length:0}p=0;for(x in this.topics_)p+=this.getCount(x);return p};
_.lb.prototype.disposeInternal=function(){_.lb.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var dNw=new _.lb;var U5=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(U5,_.Uk);U5.prototype.getColdHashData=function(){return _.uq(this,3)};
U5.prototype.getHotHashData=function(){return _.uq(this,5)};
U5.prototype.setHotHashData=function(p){return _.J_(this,5,p)};var cFr=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(cFr,_.Uk);var wtB=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(wtB,_.Uk);_.l=wtB.prototype;_.l.getDeviceId=function(){return _.uq(this,6)};
_.l.getExperimentIds=function(p){var x=_.Va(this,9,_.x_,3,!0);BkM(x,p);return x[p]};
_.l.getPlayerType=function(){return _.Yg(this,36)};
_.l.setHomeGroupInfo=function(p){return _.f6(this,81,p)};
_.l.clearLocationPlayabilityToken=function(){return _.k3(this,89)};var DO=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(DO,_.Uk);DO.prototype.setKey=function(p){return _.J_(this,1,p)};
DO.prototype.getValue=function(){return G5(this,2,V36)};
var V36=[2,3,4,5,6];var s8l=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(s8l,_.Uk);s8l.prototype.setTrackingParams=function(p){return _.k3(this,1,_.yJ(p,!1))};var GOB=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(GOB,_.Uk);var DBm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(DBm,_.Uk);DBm.prototype.getExperimentIds=function(p){var x=_.Va(this,5,_.tDE,3,!0);BkM(x,p);return x[p]};var ZO=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(ZO,_.Uk);ZO.prototype.getToken=function(){return _.fH(this,2)};
ZO.prototype.setToken=function(p){return _.J_(this,2,p)};var Ko=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Ko,_.Uk);Ko.prototype.setSafetyMode=function(p){return _.Rx(this,5,p)};var Mf=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Mf,_.Uk);Mf.prototype.setClient=function(p){return _.f6(this,1,p)};var MVw={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 aup;_.Ys=function(){var p=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Mm.addEventListener("beforeinstallprompt",function(x){x.preventDefault();p.deferredInstallPrompt=x});
_.Mm.addEventListener("appinstalled",function(){p.appInstalledEventFired=!0},{once:!0})};
aup=function(){if(!_.Mm.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Mm.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Mm.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Mm.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Mm.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(p){return"WEB_DISPLAY_MODE_UNKNOWN"}};var qbJ=function(){this.syncHeaders=!0},ZRd=function(p){var x={},F=[];
"USER_SESSION_ID"in _.QL&&F.push({key:"u",value:_.sd("USER_SESSION_ID")});if(F=GDB(F))x.Authorization=F,F=p=p==null?void 0:p.sessionIndex,F===void 0&&(F=Number(_.sd("SESSION_INDEX",0)),F=isNaN(F)?0:F),_.S("voice_search_auth_header_removal")||(x["X-Goog-AuthUser"]=F.toString()),"INNERTUBE_HOST_OVERRIDE"in _.QL||(x["X-Origin"]=window.location.origin),p===void 0&&"DELEGATED_SESSION_ID"in _.QL&&(x["X-Goog-PageId"]=_.sd("DELEGATED_SESSION_ID"));return x};var nMv={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var Iw=_.A9("ytglobal.prefsUserPrefsPrefs_")||{},ylC;_.ox("ytglobal.prefsUserPrefsPrefs_",Iw);_.$9=function(){this.cookieName=_.sd("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.sd("ALT_PREF_COOKIE_DOMAIN","youtube.com");var p=_.ax.get(this.cookieName,void 0);p&&this.parse(p)};
_.rH=function(){ylC||(ylC=new _.$9);return ylC};
_.$9.prototype.get=function(p,x){bND(p);Alb(p);p=Iw[p]!==void 0?Iw[p].toString():null;return p!=null?p:x?x:""};
_.$9.prototype.set=function(p,x){bND(p);Alb(p);if(x==null)throw Error("Hc");Iw[p]=x.toString()};
_.$9.prototype.getFlag=function(p){return!!((uPl("f"+(Math.floor(p/31)+1))||0)&1<<p%31)};
_.Ez=function(p,x,F){p="f"+(Math.floor(x/31)+1);x=1<<x%31;var N=uPl(p)||0;N=F?N|x:N&~x;N===0?delete Iw[p]:(F=N.toString(16),Iw[p]=F.toString())};
_.$9.prototype.remove=function(p){bND(p);Alb(p);delete Iw[p]};
_.$9.prototype.save=function(){var p=!0;_.S("web_secure_pref_cookie_killswitch")&&(p=!1);_.ME(this.cookieName,this.dump(),63072E3,this.cookieDomain,p)};
_.$9.prototype.clear=function(){_.Q5.clear(Iw)};
_.$9.prototype.dump=function(){var p=[],x;for(x in Iw)Iw.hasOwnProperty(x)&&p.push(x+"="+encodeURIComponent(String(Iw[x])));return p.join("&")};
var Alb=function(p){if(/^f([1-9][0-9]*)$/.test(p))throw Error("Ic`"+p);},bND=function(p){if(!/^\w+$/.test(p))throw Error("Jc`"+p);
},uPl=function(p){p=Iw[p]!==void 0?Iw[p].toString():null;
return p!=null&&/^[A-Fa-f0-9]+$/.test(p)?parseInt(p,16):null};
_.$9.prototype.parse=function(p){p=decodeURIComponent(p).split("&");for(var x=0;x<p.length;x++){var F=p[x].split("="),N=F[0];(F=F[1])&&(Iw[N]=F.toString())}};var x46={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"},fu$={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},K9k={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},NbB={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Pl;_.e_=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.vZ=function(p,x,F){return p.addJob(x,0,F)};
_.e_.prototype.addLowPriorityJob=function(p,x){return this.addJob(p,1,x)};
_.tR=function(p,x,F){return p.addJob(x,2,F)};
_.rR=function(p,x,F){return p.addJob(x,3,F)};
_.TT=function(p,x,F){return p.addJob(x,4,F)};
Pl=function(p){var x=_.A9("yt.scheduler.instance.addImmediateJob");x?x(p):p()};
_.e_.prototype.debounce=function(p,x,F){var N=this,h=0,c=function(){h&&N.cancelJob(h);h=N.addJob(p,x,F);N.cancelDebouncedJobMap.set(c,h)};
return c};
_.e_.prototype.cancelThrottle=function(p){(p=this.cancelThrottledJobMap.get(p))&&p()};var pq=function(){_.e_.apply(this,arguments)};
_.E(pq,_.e_);_.nP=function(){pq.instance||(pq.instance=new pq);return pq.instance};
pq.prototype.addJob=function(p,x,F){F!==void 0&&Number.isNaN(Number(F))&&(F=void 0);var N=_.A9("yt.scheduler.instance.addJob");return N?N(p,x,F):F===void 0?(p(),NaN):_.er(p,F||0)};
pq.prototype.cancelJob=function(p){if(p===void 0||!Number.isNaN(Number(p))){var x=_.A9("yt.scheduler.instance.cancelJob");x?x(p):_.x3(p)}};
pq.prototype.start=function(){var p=_.A9("yt.scheduler.instance.start");p&&p()};
pq.prototype.pause=function(){var p=_.A9("yt.scheduler.instance.pause");p&&p()};
_.E0=_.nP();_.Z5.prototype.set=function(p,x){x===void 0?this.mechanism.remove(p):this.mechanism.set(p,(0,_.s1)(x))};
_.Z5.prototype.get=function(p){try{var x=this.mechanism.get(p)}catch(F){return}if(x!==null)try{return JSON.parse(x)}catch(F){throw"Storage: Invalid value was encountered";}};
_.Z5.prototype.remove=function(p){this.mechanism.remove(p)};var xf=function(p){this.mechanism=p};
_.NL(xf,_.Z5);var Y4k=function(p){this.data=p},wQl=function(p){return p===void 0||p instanceof Y4k?p:new Y4k(p)};
xf.prototype.set=function(p,x){xf.superClass_.set.call(this,p,wQl(x))};
xf.prototype.getWrapper=function(p){p=xf.superClass_.get.call(this,p);if(p===void 0||p instanceof Object)return p;throw"Storage: Invalid value was encountered";};
xf.prototype.get=function(p){if(p=this.getWrapper(p)){if(p=p.data,p===void 0)throw"Storage: Invalid value was encountered";}else p=void 0;return p};_.NL(tq,xf);_.Gck=function(p){var x=p.creation;p=p.expiration;return!!p&&p<_.FV()||!!x&&x>_.FV()};
tq.prototype.set=function(p,x,F){if(x=wQl(x)){if(F){if(F<_.FV()){tq.prototype.remove.call(this,p);return}x.expiration=F}x.creation=_.FV()}tq.superClass_.set.call(this,p,x)};
tq.prototype.getWrapper=function(p,x){var F=tq.superClass_.getWrapper.call(this,p);if(F)if(!x&&_.Gck(F))tq.prototype.remove.call(this,p);else return F};var FQ=function(){};
FQ.prototype.next=function(){return Nh};
var Nh={done:!0,value:void 0},hw=function(p){return{value:p,done:!1}};
FQ.prototype.__iterator__=function(){return this};
_.VBJ=function(p){if(p instanceof FQ)return p;if(typeof p.__iterator__=="function")return p.__iterator__(!1);if(_.TB(p)){var x=0,F=new FQ;F.next=function(){for(;;){if(x>=p.length)return Nh;if(x in p)return hw(p[x++]);x++}};
return F}throw Error("Kc");};var Wfn=function(p){if(p instanceof ll||p instanceof ca||p instanceof a$)return p;if(typeof p.next=="function")return new ll(function(){return p});
if(typeof p[Symbol.iterator]=="function")return new ll(function(){return p[Symbol.iterator]()});
if(typeof p.__iterator__=="function")return new ll(function(){return p.__iterator__()});
throw Error("Lc");},ll=function(p){this.func_=p};
ll.prototype.__iterator__=function(){return new ca(this.func_())};
ll.prototype[Symbol.iterator]=function(){return new a$(this.func_())};
ll.prototype.toEs6=function(){return new a$(this.func_())};
var ca=function(p){this.JSC$8373_iter_=p};
_.E(ca,FQ);ca.prototype.next=function(){return this.JSC$8373_iter_.next()};
ca.prototype[Symbol.iterator]=function(){return new a$(this.JSC$8373_iter_)};
ca.prototype.toEs6=function(){return new a$(this.JSC$8373_iter_)};
var a$=function(p){ll.call(this,function(){return p});
this.JSC$8376_iter_=p};
_.E(a$,ll);a$.prototype.next=function(){return this.JSC$8376_iter_.next()};var HNb=function(){};var Mh=function(){};
_.NL(Mh,HNb);Mh.prototype.getCount=function(){for(var p=0,x=_.a(this),F=x.next();!F.done;F=x.next())p++;return p};
Mh.prototype[Symbol.iterator]=function(){return Wfn(this.__iterator__(!0)).toEs6()};
Mh.prototype.clear=function(){var p=Array.from(this);p=_.a(p);for(var x=p.next();!x.done;x=p.next())this.remove(x.value)};_.NL(dq,Mh);_.l=dq.prototype;_.l.isAvailable=function(){if(!vX6||this.cachedIsStorageAvailable_===null){var p=this.storage_;if(p)try{performance.now();p.setItem("__sak","1");p.removeItem("__sak");performance.now();var x=!0}catch(F){x=F instanceof DOMException&&(F.name==="QuotaExceededError"||F.code===22||F.code===1014||F.name==="NS_ERROR_DOM_QUOTA_REACHED")&&p&&p.length!==0}else x=!1;this.cachedIsStorageAvailable_=x}return this.cachedIsStorageAvailable_};
_.l.set=function(p,x){Dd(this);try{this.storage_.setItem(p,x)}catch(F){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.l.get=function(p){Dd(this);p=this.storage_.getItem(p);if(typeof p!=="string"&&p!==null)throw"Storage mechanism: Invalid value was encountered";return p};
_.l.remove=function(p){Dd(this);this.storage_.removeItem(p)};
_.l.getCount=function(){Dd(this);return this.storage_.length};
_.l.__iterator__=function(p){Dd(this);var x=0,F=this.storage_,N=new FQ;N.next=function(){if(x>=F.length)return Nh;var h=F.key(x++);if(p)return hw(h);h=F.getItem(h);if(typeof h!=="string")throw"Storage mechanism: Invalid value was encountered";return hw(h)};
return N};
_.l.clear=function(){Dd(this);this.storage_.clear()};
_.l.key=function(p){Dd(this);return this.storage_.key(p)};
var Dd=function(p){if(p.storage_==null)throw Error("Mc");var x;(vX6?p.isAvailable():(x=p.cachedIsStorageAvailable_)!=null?x:p.isAvailable())||fp(Error("Mc"))};_.NL(l26,dq);_.NL(c$p,dq);_.NL(v8,Mh);v8.prototype.set=function(p,x){this.mechanism_.set(this.JSC$8391_prefix_+p,x)};
v8.prototype.get=function(p){return this.mechanism_.get(this.JSC$8391_prefix_+p)};
v8.prototype.remove=function(p){this.mechanism_.remove(this.JSC$8391_prefix_+p)};
v8.prototype.__iterator__=function(p){var x=this.mechanism_[Symbol.iterator](),F=this,N=new FQ;N.next=function(){var h=x.next();if(h.done)return h;for(h=h.value;h.slice(0,F.JSC$8391_prefix_.length)!=F.JSC$8391_prefix_;){h=x.next();if(h.done)return h;h=h.value}return hw(p?h.slice(F.JSC$8391_prefix_.length):F.mechanism_.get(h))};
return N};_.s0=function(p){this.expiringStorage_=(p=_.a2$(p))?new tq(p):null;this.JSC$8395_domain_=document.domain||window.location.hostname};
_.s0.prototype.set=function(p,x,F,N){F=F||31104E3;this.remove(p);if(this.expiringStorage_)try{this.expiringStorage_.set(p,x,Date.now()+F*1E3);return}catch(c){}var h="";if(N)try{h=escape((0,_.s1)(x))}catch(c){return}else h=escape(x);_.ME(p,h,F,this.JSC$8395_domain_)};
_.s0.prototype.get=function(p,x){var F=void 0,N=!this.expiringStorage_;if(!N)try{F=this.expiringStorage_.get(p)}catch(h){N=!0}if(N&&(F=_.ax.get(p,void 0))&&(F=unescape(F),x))try{F=JSON.parse(F)}catch(h){this.remove(p),F=void 0}return F};
_.s0.prototype.remove=function(p){this.expiringStorage_&&this.expiringStorage_.remove(p);_.$tE(p,"/",this.JSC$8395_domain_)};
_.s0.prototype.getCreationTime=function(p){return this.expiringStorage_&&(p=(this.expiringStorage_.getWrapper(p)||{}).creation,typeof p==="number")?p:null};var D4z=function(){var p;return function(){p||(p=new _.s0("ytidb"));return p}}();var Kcw;_.Cf=[];Kcw=!1;var A$m=qJ$||Z16;var fq={},mnj=(fq.AUTH_INVALID="No user identifier specified.",fq.EXPLICIT_ABORT="Transaction was explicitly aborted.",fq.IDB_NOT_SUPPORTED="IndexedDB is not supported.",fq.MISSING_INDEX="Index not created.",fq.MISSING_OBJECT_STORES="Object stores not created.",fq.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",fq.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",fq.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",fq.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",fq.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",fq.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",fq.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",fq),Kq={},oMj=(Kq.AUTH_INVALID="ERROR",Kq.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Kq.EXPLICIT_ABORT="IGNORED",
Kq.IDB_NOT_SUPPORTED="ERROR",Kq.MISSING_INDEX="WARNING",Kq.MISSING_OBJECT_STORES="ERROR",Kq.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Kq.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Kq.QUOTA_EXCEEDED="WARNING",Kq.QUOTA_MAYBE_EXCEEDED="WARNING",Kq.UNKNOWN_ABORT="WARNING",Kq.INCOMPATIBLE_DB_VERSION="WARNING",Kq),qh={},OND=(qh.AUTH_INVALID=!1,qh.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,qh.EXPLICIT_ABORT=!1,qh.IDB_NOT_SUPPORTED=!1,qh.MISSING_INDEX=!1,qh.MISSING_OBJECT_STORES=!1,qh.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,qh.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,qh.QUOTA_EXCEEDED=!1,qh.QUOTA_MAYBE_EXCEEDED=!0,qh.UNKNOWN_ABORT=!0,qh.INCOMPATIBLE_DB_VERSION=!1,qh),Qz=function(p,x,F,N,h){x=x===void 0?{}:x;F=F===void 0?mnj[p]:F;N=N===void 0?oMj[p]:N;h=h===void 0?OND[p]:h;_.qE.call(this,F,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:p},x));this.type=p;this.message=F;this.level=N;this.retryable=h;Object.setPrototypeOf(this,Qz.prototype)};
_.E(Qz,_.qE);var j8B=function(p,x){Qz.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:x,foundObjectStores:p},mnj.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,j8B.prototype)};
_.E(j8B,Qz);var d4w=function(p,x){var F=Error.call(this);this.message=F.message;"stack"in F&&(this.stack=F.stack);this.index=p;this.objectStore=x;Object.setPrototypeOf(this,d4w.prototype)};
_.E(d4w,Error);var vO$=["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 yz=function(p){this.executor=p},nf=function(p){var x=this;
this.state={status:"PENDING"};this.JSC$8423_onFulfilled=[];this.JSC$8423_onRejected=[];p=p.executor;var F=function(h){if(x.state.status==="PENDING"){x.state={status:"FULFILLED",value:h};h=_.a(x.JSC$8423_onFulfilled);for(var c=h.next();!c.done;c=h.next())c=c.value,c()}},N=function(h){if(x.state.status==="PENDING"){x.state={status:"REJECTED",
reason:h};h=_.a(x.JSC$8423_onRejected);for(var c=h.next();!c.done;c=h.next())c=c.value,c()}};
try{p(F,N)}catch(h){N(h)}};
nf.all=function(p){return new nf(new yz(function(x,F){var N=[],h=p.length;h===0&&x(N);for(var c={i$jscomp$505:0};c.i$jscomp$505<p.length;c={i$jscomp$505:c.i$jscomp$505},++c.i$jscomp$505)nf.resolve(p[c.i$jscomp$505]).then(function(M){return function(f){N[M.i$jscomp$505]=f;h--;h===0&&x(N)}}(c)).catch(function(M){F(M)})}))};
nf.resolve=function(p){return new nf(new yz(function(x,F){p instanceof nf?p.then(x,F):x(p)}))};
nf.reject=function(p){return new nf(new yz(function(x,F){F(p)}))};
nf.prototype.then=function(p,x){var F=this,N=p!=null?p:SJr,h=x!=null?x:CPM;return new nf(new yz(function(c,M){F.state.status==="PENDING"?(F.JSC$8423_onFulfilled.push(function(){LfB(F,F,N,c,M)}),F.JSC$8423_onRejected.push(function(){PLl(F,F,h,c,M)})):F.state.status==="FULFILLED"?LfB(F,F,N,c,M):F.state.status==="REJECTED"&&PLl(F,F,h,c,M)}))};
nf.prototype.catch=function(p){return this.then(void 0,p)};
var LfB=function(p,x,F,N,h){try{if(p.state.status!=="FULFILLED")throw Error("Pc");var c=F(p.state.value);c instanceof nf?TgC(p,x,c,N,h):N(c)}catch(M){h(M)}},PLl=function(p,x,F,N,h){try{if(p.state.status!=="REJECTED")throw Error("Qc");
var c=F(p.state.reason);c instanceof nf?TgC(p,x,c,N,h):N(c)}catch(M){h(M)}},TgC=function(p,x,F,N,h){x===F?h(new TypeError("Rc")):F.then(function(c){c instanceof nf?TgC(p,x,c,N,h):N(c)},function(c){h(c)})};var Zd;Zd=window;_.Lf=Zd.ytcsi&&Zd.ytcsi.now?Zd.ytcsi.now:Zd.performance&&Zd.performance.timing&&Zd.performance.now&&Zd.performance.timing.navigationStart?function(){return Zd.performance.timing.navigationStart+Zd.performance.now()}:function(){return(new Date).getTime()};var Aq=function(p,x){this.JSC$8435_wrapped=p;this.options=x;this.transactionCount=0;this.startedMs=Math.round((0,_.Lf)());this.hasUnknownAbortedTransaction=!1},kcj,Unj,va,$nm;
Aq.prototype.add=function(p,x,F){return _.GI(this,[p],{mode:"readwrite",enableRetries:!0},function(N){return N.objectStore(p).add(x,F)})};
Aq.prototype.clear=function(p){return _.GI(this,[p],{mode:"readwrite",enableRetries:!0},function(x){return x.objectStore(p).clear()})};
Aq.prototype.close=function(){this.JSC$8435_wrapped.close();var p;((p=this.options)==null?0:p.closed)&&this.options.closed()};
Aq.prototype.count=function(p,x){return _.GI(this,[p],{mode:"readonly",enableRetries:!0},function(F){return F.objectStore(p).count(x)})};
var b1=function(p,x,F){p=p.JSC$8435_wrapped.createObjectStore(x,F);return new tw(p)};
Aq.prototype.delete=function(p,x){return _.GI(this,[p],{mode:"readwrite",enableRetries:!0},function(F){return F.objectStore(p).delete(x)})};
var Bgl=function(p,x){return _.GI(p,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(F){return F.objectStore("ResponseStore").index("byInterface").delete(x)})};
Aq.prototype.get=function(p,x){return _.GI(this,[p],{mode:"readonly",enableRetries:!0},function(F){return F.objectStore(p).get(x)})};
Aq.prototype.getAll=function(p,x,F){return _.GI(this,[p],{mode:"readonly",enableRetries:!0},function(N){return N.objectStore(p).getAll(x,F)})};
Aq.prototype.put=function(p,x,F){return _.GI(this,[p],{mode:"readwrite",enableRetries:!0},function(N){return N.objectStore(p).put(x,F)})};
Aq.prototype.objectStoreNames=function(){return Array.from(this.JSC$8435_wrapped.objectStoreNames)};
_.GI=function(p,x,F,N){var h,c,M,f,K,t,d,v,C,X,Q,b;return _.D(function(A){switch(A.nextAddress){case 1:var Y={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof F==="string"?Y.mode=F:Object.assign(Y,F);h=Y;p.transactionCount++;c=h.enableRetries?3:1;M=0;case 2:if(f){A.jumpTo(4);break}M++;K=Math.round((0,_.Lf)());_.KM(A,5);t=p.JSC$8435_wrapped.transaction(x,h.mode);Y=new gOJ(t);Y=RTj(Y,N);return _.q(A,Y,7);case 7:return d=A.yieldResult,v=Math.round((0,_.Lf)()),kcj(p,K,v,M,void 0,
x.join(),h),A.return(d);case 5:C=_.v9(A);X=Math.round((0,_.Lf)());Q=J$p(C,p.JSC$8435_wrapped.name,x.join(),p.JSC$8435_wrapped.version);if((b=Q instanceof Qz&&!Q.retryable)||M>=c)kcj(p,K,X,M,Q,x.join(),h),f=Q;A.jumpTo(2);break;case 4:return A.return(Promise.reject(f))}})};
kcj=function(p,x,F,N,h,c,M){x=F-x;h?(h instanceof Qz&&(h.type==="QUOTA_EXCEEDED"||h.type==="QUOTA_MAYBE_EXCEEDED")&&rq("QUOTA_EXCEEDED",{dbName:X_(p.JSC$8435_wrapped.name),objectStoreNames:c,transactionCount:p.transactionCount,transactionMode:M.mode}),h instanceof Qz&&h.type==="UNKNOWN_ABORT"&&(F-=p.startedMs,F<0&&F>=2147483648&&(F=0),rq("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:c,transactionDuration:x,transactionCount:p.transactionCount,dbDuration:F}),p.hasUnknownAbortedTransaction=!0),
Unj(p,!1,N,c,x,M.tag),_.SQ(h)):Unj(p,!0,N,c,x,M.tag)};
Unj=function(p,x,F,N,h,c){rq("TRANSACTION_ENDED",{objectStoreNames:N,connectionHasUnknownAbortedTransaction:p.hasUnknownAbortedTransaction,duration:h,isSuccessful:x,tryCount:F,tag:c===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":c})};
Aq.prototype.getVersion=function(){return this.JSC$8435_wrapped.version};
Aq.prototype.getName=function(){return this.JSC$8435_wrapped.name};
var tw=function(p){this.JSC$8450_wrapped=p};
tw.prototype.add=function(p,x){return bb(this.JSC$8450_wrapped.add(p,x))};
tw.prototype.autoIncrement=function(){return this.JSC$8450_wrapped.autoIncrement};
tw.prototype.clear=function(){return bb(this.JSC$8450_wrapped.clear()).then(function(){})};
var Ad=function(p,x,F){p.JSC$8450_wrapped.createIndex(x,F,{unique:!1})};
tw.prototype.count=function(p){return bb(this.JSC$8450_wrapped.count(p))};
var iNB=function(p,x){return W8(p,{query:x},function(F){return F.delete().then(function(){return F.continue()})}).then(function(){})};
tw.prototype.delete=function(p){return p instanceof IDBKeyRange?iNB(this,p):bb(this.JSC$8450_wrapped.delete(p))};
tw.prototype.get=function(p){return bb(this.JSC$8450_wrapped.get(p))};
tw.prototype.getAll=function(p,x){return"getAll"in IDBObjectStore.prototype?bb(this.JSC$8450_wrapped.getAll(p,x)):IWK(this,p,x)};
var IWK=function(p,x,F){var N=[];return W8(p,{query:x},function(h){if(!(F!==void 0&&N.length>=F))return N.push(h.getValue()),h.continue()}).then(function(){return N})};
tw.prototype.index=function(p){try{return new dW(this.JSC$8450_wrapped.index(p))}catch(x){if(x instanceof Error&&x.name==="NotFoundError")throw new d4w(p,this.JSC$8450_wrapped.name);throw x;}};
tw.prototype.getName=function(){return this.JSC$8450_wrapped.name};
tw.prototype.keyPath=function(){return this.JSC$8450_wrapped.keyPath};
tw.prototype.put=function(p,x){return bb(this.JSC$8450_wrapped.put(p,x))};
var W8=function(p,x,F){p=p.JSC$8450_wrapped.openCursor(x.query,x.direction);return $nm(p).then(function(N){return Xiz(N,F)})},gOJ=function(p){var x=this;
this.JSC$8458_wrapped=p;this.objectStoreCache=new Map;this.JSC$8458_aborted=!1;this.done=new Promise(function(F,N){x.JSC$8458_wrapped.addEventListener("complete",function(){F()});
x.JSC$8458_wrapped.addEventListener("error",function(h){h.currentTarget===h.target&&N(x.JSC$8458_wrapped.error)});
x.JSC$8458_wrapped.addEventListener("abort",function(){var h=x.JSC$8458_wrapped.error;if(h)N(h);else if(!x.JSC$8458_aborted){h=Qz;for(var c=x.JSC$8458_wrapped.objectStoreNames,M=[],f=0;f<c.length;f++){var K=c.item(f);if(K===null)throw Error("Sc");M.push(K)}h=new h("UNKNOWN_ABORT",{objectStoreNames:M.join(),dbName:x.JSC$8458_wrapped.db.name,mode:x.JSC$8458_wrapped.mode});N(h)}})})},RTj=function(p,x){var F=new Promise(function(N,h){try{x(p).then(function(c){N(c)}).catch(h)}catch(c){h(c),p.abort()}});
return Promise.all([F,p.done]).then(function(N){return _.a(N).next().value})};
gOJ.prototype.abort=function(){this.JSC$8458_wrapped.abort();this.JSC$8458_aborted=!0;throw new Qz("EXPLICIT_ABORT");};
gOJ.prototype.objectStore=function(p){p=this.JSC$8458_wrapped.objectStore(p);var x=this.objectStoreCache.get(p);x||(x=new tw(p),this.objectStoreCache.set(p,x));return x};
var dW=function(p){this.JSC$8460_wrapped=p};
dW.prototype.count=function(p){return bb(this.JSC$8460_wrapped.count(p))};
dW.prototype.delete=function(p){return _.P8(this,{query:p},function(x){return x.delete().then(function(){return x.continue()})})};
dW.prototype.get=function(p){return bb(this.JSC$8460_wrapped.get(p))};
dW.prototype.getAll=function(p,x){return"getAll"in IDBIndex.prototype?bb(this.JSC$8460_wrapped.getAll(p,x)):eTj(this,p,x)};
var eTj=function(p,x,F){var N=[];return _.P8(p,{query:x},function(h){if(!(F!==void 0&&N.length>=F))return N.push(h.getValue()),h.continue()}).then(function(){return N})};
dW.prototype.keyPath=function(){return this.JSC$8460_wrapped.keyPath};
dW.prototype.unique=function(){return this.JSC$8460_wrapped.unique};
_.P8=function(p,x,F){p=p.JSC$8460_wrapped.openCursor(x.query===void 0?null:x.query,x.direction===void 0?"next":x.direction);return $nm(p).then(function(N){return Xiz(N,F)})};
va=function(p,x){this.request=p;this.cursor=x};
$nm=function(p){return bb(p).then(function(x){return x?new va(p,x):null})};
va.prototype.continue=function(p){this.cursor.continue(p);return $nm(this.request)};
va.prototype.delete=function(){return bb(this.cursor.delete()).then(function(){})};
va.prototype.getValue=function(){return this.cursor.value};
va.prototype.update=function(p){return bb(this.cursor.update(p))};var Jw=function(p,x){this.name=p;this.options=x;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},p7B;
Jw.prototype.openDb=function(p,x,F){F=F===void 0?{}:F;return z3p(p,x,F)};
Jw.prototype.delete=function(p){p=p===void 0?{}:p;return _.Y3(this.name,p)};
p7B=function(p,x){return new Qz("INCOMPATIBLE_DB_VERSION",{dbName:p.name,oldVersion:p.options.version,newVersion:x})};
_.wq=function(p,x){if(!x)throw s5("openWithToken",X_(p.name));return p.open()};
Jw.prototype.open=function(){var p=this;if(!this.isCompatible)throw p7B(this);if(this.connectionPromise)return this.connectionPromise;var x,F=function(){p.connectionPromise===x&&(p.connectionPromise=void 0)},N={blocking:function(c){c.close()},
closed:F,terminated:F,upgrade:this.options.upgrade},h=function(){var c,M,f,K,t,d,v,C,X,Q;return _.D(function(b){switch(b.nextAddress){case 1:return M=(c=Error().stack)!=null?c:"",_.KM(b,2),_.q(b,p.openDb(p.name,p.options.version,N),4);case 4:for(var A=f=b.yieldResult,Y=p.options,O=[],Fw=_.a(Object.keys(Y.objectStores)),R=Fw.next();!R.done;R=Fw.next()){R=R.value;var ld=Y.objectStores[R],pp=ld.removedAtVersion===void 0?Number.MAX_VALUE:ld.removedAtVersion;!(A.JSC$8435_wrapped.version>=ld.addedAtVersion)||
A.JSC$8435_wrapped.version>=pp||A.JSC$8435_wrapped.objectStoreNames.contains(R)||O.push(R)}K=O;if(K.length===0){b.jumpTo(5);break}t=Object.keys(p.options.objectStores);d=f.objectStoreNames();if(p.timesReopenedToFixMissingObjectStore<_.Ud("ytidb_reopen_db_retries",0))return p.timesReopenedToFixMissingObjectStore++,f.close(),_.SQ(new Qz("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:p.name,expectedObjectStores:t,foundObjectStores:d})),b.return(h());if(!(p.timesDeletedToFixMissingObjectStore<_.Ud("ytidb_remake_db_retries",
1))){b.jumpTo(6);break}p.timesDeletedToFixMissingObjectStore++;return _.q(b,p.delete(),7);case 7:return _.SQ(new Qz("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:p.name,expectedObjectStores:t,foundObjectStores:d})),b.return(h());case 6:throw new j8B(d,t);case 5:return b.return(f);case 2:v=_.v9(b);if(v instanceof DOMException?v.name!=="VersionError":"DOMError"in self&&v instanceof DOMError?v.name!=="VersionError":!(v instanceof Object&&"message"in v)||v.message!=="An attempt was made to open a database using a lower version than the existing version."){b.jumpTo(8);
break}return _.q(b,p.openDb(p.name,void 0,Object.assign({},N,{upgrade:void 0})),9);case 9:C=b.yieldResult;X=C.getVersion();if(p.options.version!==void 0&&X>p.options.version+1)throw C.close(),p.isCompatible=!1,p7B(p,X);return b.return(C);case 8:throw F(),v instanceof Error&&!_.S("ytidb_async_stack_killswitch")&&(v.stack=v.stack+"\n"+M.substring(M.indexOf("\n")+1)),J$p(v,p.name,"",(Q=p.options.version)!=null?Q:-1);}})};
return this.connectionPromise=x=h()};var suJ=new Jw("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(p,x){x(1)&&b1(p,"databases",{keyPath:"actualName"})}});var wi$,u4B=new function(){}(new function(){});new _.FT;var xzl=function(p,x){Jw.call(this,p,x);this.options=x;E5(p)};
_.E(xzl,Jw);var PPZ=function(p,x){var F;return function(){F||(F=new xzl(p,x));return F}};
xzl.prototype.openDb=function(p,x,F){F=F===void 0?{}:F;return(this.options.shared?m4r:H1J)(p,x,Object.assign({},F))};
xzl.prototype.delete=function(p){p=p===void 0?{}:p;return(this.options.shared?Lcp:oOd)(this.name,p)};var FwD={},Tbm=jQ("ytGcfConfig",{objectStores:(FwD.coldConfigStore={addedAtVersion:1},FwD.hotConfigStore={addedAtVersion:1},FwD),shared:!1,upgrade:function(p,x){x(1)&&(Ad(b1(p,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),Ad(b1(p,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var N6v=function(){_.Jm.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var p=_.A9("yt.gcf.config.hotUpdateCallbacks");p?(this.localHotConfigJobQueue=[].concat(_.se(p)),this.sharedHotConfigJobQueue=p):(this.sharedHotConfigJobQueue=[],_.ox("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.E(N6v,_.Jm);N6v.prototype.disposeInternal=function(){for(var p=_.a(this.localHotConfigJobQueue),x=p.next();!x.done;x=p.next()){var F=this.sharedHotConfigJobQueue;x=F.indexOf(x.value);x>=0&&F.splice(x,1)}this.localHotConfigJobQueue.length=0;_.Jm.prototype.disposeInternal.call(this)};var JT=function(){var p=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new N6v;this.TEST_ONLY={initializeConfigDb:function(){p.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return p.coldGlobalConfigGroup},
setHotConfigGroup:function(x){hyC(p,x)},
setHotHashData:function(x){p.setHotHashData(x)},
setColdConfigGroup:function(x){lIm(p,x)},
getColdHashData:function(){return p.coldHashData},
getHotHashData:function(){return p.hotHashData},
getHotConfigGroup:function(){return p.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return c8n()},
getExportedHotConfigGroup:function(){return Cq()},
getExportedColdHashData:function(){return _.A9("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.A9("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){aIb(p)},
resetInstance:function(){p.setHotHashData(void 0);Mq6(p);delete JT.instance},
setDebounceTimer:function(x){p.debounceTimer=x},
getDebounceTimer:function(){return p.debounceTimer}}},DzK=function(){if(!JT.instance){var p=new JT;
JT.instance=p}return JT.instance},qfn=function(p){var x;
_.D(function(F){if(F.nextAddress==1)return _.S("start_client_gcf")||_.S("delete_gcf_config_db")?_.S("start_client_gcf")?_.q(F,_.O5(),3):F.jumpTo(2):F.return();F.nextAddress!=2&&((x=F.yieldResult)&&_.Kf()&&!_.S("delete_gcf_config_db")?(p.isConfigDbInitialized=!0,aIb(p)):(fIZ(p),Kwv(p)));return _.S("delete_gcf_config_db")?_.q(F,I2r(),0):F.jumpTo(0)})},$Cz=function(){var p;
return(p=Cq())!=null?p:_.sd("RAW_HOT_CONFIG_GROUP")},Zsl=function(p){var x,F,N,h,c,M;
return _.D(function(f){switch(f.nextAddress){case 1:if(p.hotGlobalConfigGroup)return f.return(Cq());if(!p.isConfigDbInitialized)return x=s5("getHotConfig IDB not initialized"),_.uO(x),f.return(Promise.reject(x));F=mW();N=_.sd("TIME_CREATED_MS");if(!F){h=s5("getHotConfig token error");_.uO(h);f.jumpTo(2);break}return _.q(f,i1z(F),3);case 3:if((c=f.yieldResult)&&c.timestamp>N)return hyC(p,c.config),p.setHotHashData(c.hashData),f.return(Cq());case 2:Kwv(p);if(!(F&&p.hotGlobalConfigGroup&&p.hotHashData)){f.jumpTo(4);
break}return _.q(f,R3B(p.hotGlobalConfigGroup,p.hotHashData,F,N),4);case 4:return p.hotGlobalConfigGroup?f.return(Cq()):(M=new _.qE("Config not available in ytConfig"),_.uO(M),f.return(Promise.reject(M)))}})},dzC=function(p){var x,F,N,h,c,M;
return _.D(function(f){switch(f.nextAddress){case 1:if(p.coldGlobalConfigGroup)return f.return(c8n());if(!p.isConfigDbInitialized)return x=s5("getColdConfig IDB not initialized"),_.uO(x),f.return(Promise.reject(x));F=mW();N=_.sd("TIME_CREATED_MS");if(!F){h=s5("getColdConfig");_.uO(h);f.jumpTo(2);break}return _.q(f,U4d(F),3);case 3:if((c=f.yieldResult)&&c.timestamp>N)return lIm(p,c.config),tqZ(p,c.configData),Mq6(p,c.hashData),f.return(c8n());case 2:fIZ(p);if(!(F&&p.coldGlobalConfigGroup&&p.coldHashData&&
p.configData)){f.jumpTo(4);break}return _.q(f,ktp(p.coldGlobalConfigGroup,p.coldHashData,p.configData,F,N),4);case 4:return p.coldGlobalConfigGroup?f.return(c8n()):(M=new _.qE("Config not available in ytConfig"),_.uO(M),f.return(Promise.reject(M)))}})},aIb=function(p){if(!p.hotGlobalConfigGroup||!p.coldGlobalConfigGroup){if(!mW()){var x=s5("scheduleGetConfigs");
_.uO(x)}p.initJob||(p.initJob=_.E0.addLowPriorityJob(function(){return _.D(function(F){switch(F.nextAddress){case 1:return _.KM(F,2),_.q(F,Zsl(p),4);case 4:_.ub(F,3);break;case 2:_.v9(F);case 3:return _.KM(F,5),_.q(F,dzC(p),7);case 7:_.ub(F,6);break;case 5:_.v9(F);case 6:p.initJob&&(p.initJob=0),_.JB(F)}})},100))}},Rgp=function(p,x,F){var N,h,c;
return _.D(function(M){switch(M.nextAddress){case 1:if(!_.S("start_client_gcf")){M.jumpTo(0);break}F&&hyC(p,F);p.setHotHashData(x);N=mW();if(!N){M.jumpTo(3);break}if(F){M.jumpTo(4);break}return _.q(M,i1z(N),5);case 5:h=M.yieldResult,F=(c=h)==null?void 0:c.config;case 4:return _.q(M,R3B(F,x,N),3);case 3:if(F)for(var f=F,K=_.a(p.configUpdateService.sharedHotConfigJobQueue),t=K.next();!t.done;t=K.next())t=t.value,t(f);_.JB(M)}})},kOm=function(p,x,F){var N,h,c,M;
return _.D(function(f){if(f.nextAddress==1){if(!_.S("start_client_gcf"))return f.jumpTo(0);Mq6(p,x);return(N=mW())?F?f.jumpTo(4):_.q(f,U4d(N),5):f.jumpTo(0)}f.nextAddress!=4&&(h=f.yieldResult,F=(c=h)==null?void 0:c.config);if(!F)return f.jumpTo(0);M=F.configData;return _.q(f,ktp(F,x,M,N),0)})},dBw=function(){var p=DzK(),x=(0,_.Lf)()-p.debounceTimer;
if(!(p.debounceTimer!==0&&x<_.Ud("send_config_hash_timer"))){x=_.A9("yt.gcf.config.coldConfigData");var F=_.A9("yt.gcf.config.hotHashData"),N=_.A9("yt.gcf.config.coldHashData");x&&F&&N&&(p.debounceTimer=(0,_.Lf)());return{coldConfigData:x,hotHashData:F,coldHashData:N}}},fIZ=function(p){lIm(p,_.sd("RAW_COLD_CONFIG_GROUP"));
Mq6(p,_.sd("SERIALIZED_COLD_HASH_DATA"));var x;tqZ(p,(x=p.coldGlobalConfigGroup)==null?void 0:x.configData)},Kwv=function(p){hyC(p,_.sd("RAW_HOT_CONFIG_GROUP"));
p.setHotHashData(_.sd("SERIALIZED_HOT_HASH_DATA"))},hyC=function(p,x){p.hotGlobalConfigGroup=x;
_.ox("yt.gcf.config.hotConfigGroup",p.hotGlobalConfigGroup||null)},lIm=function(p,x){p.coldGlobalConfigGroup=x;
_.ox("yt.gcf.config.coldConfigGroup",p.coldGlobalConfigGroup||null)};
JT.prototype.setHotHashData=function(p){this.hotHashData=p;_.ox("yt.gcf.config.hotHashData",this.hotHashData||null)};
var Mq6=function(p,x){p.coldHashData=x;_.ox("yt.gcf.config.coldHashData",p.coldHashData||null)},tqZ=function(p,x){p.configData=x;
_.ox("yt.gcf.config.coldConfigData",p.configData||null)},Cq=function(){return _.A9("yt.gcf.config.hotConfigGroup")},c8n=function(){return _.A9("yt.gcf.config.coldConfigGroup")};var pg={},vQk=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";pg.assign=function(p){for(var x=Array.prototype.slice.call(arguments,1);x.length;){var F=x.shift();if(F){if(typeof F!=="object")throw new TypeError("Vc`"+F);for(var N in F)Object.prototype.hasOwnProperty.call(F,N)&&(p[N]=F[N])}}return p};
pg.shrinkBuf=function(p,x){if(p.length===x)return p;if(p.subarray)return p.subarray(0,x);p.length=x;return p};
var J8J={arraySet:function(p,x,F,N,h){if(x.subarray&&p.subarray)p.set(x.subarray(F,F+N),h);else for(var c=0;c<N;c++)p[h+c]=x[F+c]},
flattenChunks:function(p){var x,F;var N=F=0;for(x=p.length;N<x;N++)F+=p[N].length;var h=new Uint8Array(F);N=F=0;for(x=p.length;N<x;N++){var c=p[N];h.set(c,F);F+=c.length}return h}},C0B={arraySet:function(p,x,F,N,h){for(var c=0;c<N;c++)p[h+c]=x[F+c]},
flattenChunks:function(p){return[].concat.apply([],p)}};
pg.setTyped=function(){vQk?(pg.Buf8=Uint8Array,pg.Buf16=Uint16Array,pg.Buf32=Int32Array,pg.assign(pg,J8J)):(pg.Buf8=Array,pg.Buf16=Array,pg.Buf32=Array,pg.assign(pg,C0B))};
pg.setTyped();var SfJ=!0;try{new Uint8Array(1)}catch(p){SfJ=!1}
var iRr=function(p){var x,F,N=p.length,h=0;for(x=0;x<N;x++){var c=p.charCodeAt(x);if((c&64512)===55296&&x+1<N){var M=p.charCodeAt(x+1);(M&64512)===56320&&(c=65536+(c-55296<<10)+(M-56320),x++)}h+=c<128?1:c<2048?2:c<65536?3:4}var f=new pg.Buf8(h);for(x=F=0;F<h;x++)c=p.charCodeAt(x),(c&64512)===55296&&x+1<N&&(M=p.charCodeAt(x+1),(M&64512)===56320&&(c=65536+(c-55296<<10)+(M-56320),x++)),c<128?f[F++]=c:(c<2048?f[F++]=192|c>>>6:(c<65536?f[F++]=224|c>>>12:(f[F++]=240|c>>>18,f[F++]=128|c>>>12&63),f[F++]=
128|c>>>6&63),f[F++]=128|c&63);return f};var W9r={};W9r=function(p,x,F,N){var h=p&65535|0;p=p>>>16&65535|0;for(var c;F!==0;){c=F>2E3?2E3:F;F-=c;do h=h+x[N++]|0,p=p+h|0;while(--c);h%=65521;p%=65521}return h|p<<16|0};for(var dw={},St,r8Z=[],EQ6=0;EQ6<256;EQ6++){St=EQ6;for(var X7n=0;X7n<8;X7n++)St=St&1?3988292384^St>>>1:St>>>1;r8Z[EQ6]=St}dw=function(p,x,F,N){F=N+F;for(p^=-1;N<F;N++)p=p>>>8^r8Z[(p^x[N])&255];return p^-1};var hd={};hd={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 z9w=[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],nsB=[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],UBB=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],GFJ=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Mp=Array(576);ib(Mp);var D3=Array(60);ib(D3);var FE=Array(512);ib(FE);var xS=Array(256);ib(xS);var ssJ=Array(29);ib(ssJ);var yFr=Array(30);ib(yFr);var BXp,R9p,kFM,TXE=!1;var rw;
rw=[new Ss(0,0,0,0,function(p,x){var F=65535;for(F>p.pending_buf_size-5&&(F=p.pending_buf_size-5);;){if(p.lookahead<=1){Jd(p);if(p.lookahead===0&&x===0)return 1;if(p.lookahead===0)break}p.strstart+=p.lookahead;p.lookahead=0;var N=p.block_start+F;if(p.strstart===0||p.strstart>=N)if(p.lookahead=p.strstart-N,p.strstart=N,fg(p,!1),p.strm.avail_out===0)return 1;if(p.strstart-p.block_start>=p.w_size-262&&(fg(p,!1),p.strm.avail_out===0))return 1}p.insert=0;if(x===4)return fg(p,!0),p.strm.avail_out===0?3:
4;p.strstart>p.block_start&&fg(p,!1);return 1}),
new Ss(4,4,8,4,HRk),new Ss(4,5,16,8,HRk),new Ss(4,6,32,32,HRk),new Ss(4,4,16,16,Cg),new Ss(8,16,32,32,Cg),new Ss(8,16,128,128,Cg),new Ss(8,32,128,256,Cg),new Ss(32,128,258,1024,Cg),new Ss(32,258,258,4096,Cg)];var PXM={};PXM=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 IuJ=Object.prototype.toString;
L9d.prototype.push=function(p,x){var F=this.strm,N=this.options.chunkSize;if(this.ended)return!1;var h=x===~~x?x:x===!0?4:0;typeof p==="string"?F.input=iRr(p):IuJ.call(p)==="[object ArrayBuffer]"?F.input=new Uint8Array(p):F.input=p;F.next_in=0;F.avail_in=F.input.length;do{F.avail_out===0&&(F.output=new pg.Buf8(N),F.next_out=0,F.avail_out=N);p=jsr(F,h);if(p!==1&&p!==0)return gQv(this,p),this.ended=!0,!1;if(F.avail_out===0||F.avail_in===0&&(h===4||h===2))if(this.options.to==="string"){var c=pg.shrinkBuf(F.output,
F.next_out);x=c;c=c.length;if(c<65537&&(x.subarray&&SfJ||!x.subarray))x=String.fromCharCode.apply(null,pg.shrinkBuf(x,c));else{for(var M="",f=0;f<c;f++)M+=String.fromCharCode(x[f]);x=M}this.chunks.push(x)}else x=pg.shrinkBuf(F.output,F.next_out),this.chunks.push(x)}while((F.avail_in>0||F.avail_out===0)&&p!==1);if(h===4)return(F=this.strm)&&F.state?(N=F.state.status,N!==42&&N!==69&&N!==73&&N!==91&&N!==103&&N!==113&&N!==666?p=l1(F,-2):(F.state=null,p=N===113?l1(F,-3):0)):p=-2,gQv(this,p),this.ended=
!0,p===0;h===2&&(gQv(this,0),F.avail_out=0);return!0};
var gQv=function(p,x){x===0&&(p.result=p.options.to==="string"?p.chunks.join(""):pg.flattenChunks(p.chunks));p.chunks=[];p.err=x;p.msg=p.strm.msg};var Q9m=typeof TextEncoder!=="undefined"?new TextEncoder:null,sdz=Q9m?function(p){return Q9m.encode(p)}:function(p){p=_.vS(p);
for(var x=new Uint8Array(p.length),F=0;F<x.length;F++)x[F]=p[F];return x};var e_M={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},x7p={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var rW=function(p,x){this.version=p;this.args=x};
rW.prototype.serialize=function(){return{version:this.version,args:this.args}};var FOp=function(p,x){this.topic=p;this.dataClass=x};
FOp.prototype.toString=function(){return this.topic};var zyK=_.A9("ytPubsub2Pubsub2Instance")||new _.lb;_.lb.prototype.subscribe=_.lb.prototype.subscribe;_.lb.prototype.unsubscribeByKey=_.lb.prototype.unsubscribeByKey;_.lb.prototype.publish=_.lb.prototype.publish;_.lb.prototype.clear=_.lb.prototype.clear;_.ox("ytPubsub2Pubsub2Instance",zyK);var xum=_.A9("ytPubsub2Pubsub2SubscribedKeys")||{};_.ox("ytPubsub2Pubsub2SubscribedKeys",xum);var hnp=_.A9("ytPubsub2Pubsub2TopicToKeys")||{};_.ox("ytPubsub2Pubsub2TopicToKeys",hnp);
var NoJ=_.A9("ytPubsub2Pubsub2IsAsync")||{};_.ox("ytPubsub2Pubsub2IsAsync",NoJ);_.ox("ytPubsub2Pubsub2SkipSubKey",null);var tAJ=void 0,qQ6=void 0;var XT$=_.Ud("max_body_size_to_compress",5E5),gJZ=_.Ud("min_body_size_to_compress",500),gw=!0,b5p=0,Q2=0,yZw=_.Ud("compression_performance_threshold_lr",250),AZr=_.Ud("slow_compressions_before_abandon_count",4),JZk=!1,C8B=new Map,znp=1,QdH=!0;_.NL(zW,wTd);zW.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 s9k=function(p,x,F){F||(F=0);var N=p.W_;if(typeof x==="string")for(var h=0;h<16;h++)N[h]=x.charCodeAt(F)<<24|x.charCodeAt(F+1)<<16|x.charCodeAt(F+2)<<8|x.charCodeAt(F+3),F+=4;else for(h=0;h<16;h++)N[h]=x[F]<<24|x[F+1]<<16|x[F+2]<<8|x[F+3],F+=4;for(x=16;x<80;x++)F=N[x-3]^N[x-8]^N[x-14]^N[x-16],N[x]=(F<<1|F>>>31)&4294967295;x=p.chain_[0];F=p.chain_[1];h=p.chain_[2];for(var c=p.chain_[3],M=p.chain_[4],f,K,t=0;t<80;t++)t<40?t<20?(f=c^F&(h^c),K=1518500249):(f=F^h^c,K=1859775393):t<60?(f=F&h|c&(F|h),
K=2400959708):(f=F^h^c,K=3395469782),f=(x<<5|x>>>27)+f+M+K+N[t]&4294967295,M=c,c=h,h=(F<<30|F>>>2)&4294967295,F=x,x=f;p.chain_[0]=p.chain_[0]+x&4294967295;p.chain_[1]=p.chain_[1]+F&4294967295;p.chain_[2]=p.chain_[2]+h&4294967295;p.chain_[3]=p.chain_[3]+c&4294967295;p.chain_[4]=p.chain_[4]+M&4294967295};
zW.prototype.update=function(p,x){if(p!=null){x===void 0&&(x=p.length);for(var F=x-this.blockSize,N=0,h=this.buf_,c=this.inbuf_;N<x;){if(c==0)for(;N<=F;)s9k(this,p,N),N+=this.blockSize;if(typeof p==="string")for(;N<x;){if(h[c]=p.charCodeAt(N),++c,++N,c==this.blockSize){s9k(this,h);c=0;break}}else for(;N<x;)if(h[c]=p[N],++c,++N,c==this.blockSize){s9k(this,h);c=0;break}}this.inbuf_=c;this.total_+=x}};
zW.prototype.digest=function(){var p=[],x=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var F=this.blockSize-1;F>=56;F--)this.buf_[F]=x&255,x/=256;s9k(this,this.buf_);for(F=x=0;F<5;F++)for(var N=24;N>=0;N-=8)p[x]=this.chain_[F]>>N&255,++x;return p};var WOE;var XQ=function(p){var x=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(d){x.databaseToken=d},
triggerThrottle:function(){x.throttledSend()},
cancelThrottle:function(){x.cancelThrottledSend()},
immediateSend:function(d){return _.D(function(v){return _.q(v,x.immediateSend(d),0)})},
requestWithinAgeLimit:function(d,v){return x.requestWithinAgeLimit(d,v)},
retryQueuedRequests:function(){x.retryQueuedRequests()}};
var F;this.throttleTimeout=(F=p.throttleTimeout)!=null?F:100;var N;this.retryMaxAttempts=(N=p.retryMaxAttempts)!=null?N:1;var h;this.requestAgeLimitMs=(h=p.requestAgeLimitMs)!=null?h:2592E6;var c;this.queuedRequestAgeLimitMs=(c=p.queuedRequestAgeLimitMs)!=null?c:12E4;var M;this.retryDelayMs=(M=p.retryDelayMs)!=null?M:5E3;var f;this.databaseToken=(f=p.databaseToken)!=null?f:void 0;this.enableCleaning=!!p.enableCleaning;var K;this.cleaningRate=(K=p.cleaningRate)!=null?K:.1;var t;this.potentialEsfErrorLimit=
(t=p.potentialEsfErrorLimit)!=null?t:10;p.handleError&&(this.handleError=p.handleError);p.handleWarning&&(this.handleWarning=p.handleWarning);p.disableYtIdbTransactions&&(this.disableYtIdbTransactions=p.disableYtIdbTransactions);p.bypassDbTokenDependency&&(this.bypassDbTokenDependency=p.bypassDbTokenDependency);this.getBooleanFlag=p.getBooleanFlag;this.jobManager=p.jobManager;this.logsStore=p.logsStore;this.networkManager=p.networkManager;this.sendFn=p.sendFn;this.onlineEvent=p.onlineEvent;this.offlineEvent=
p.offlineEvent;EH(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&nQv(this)},nQv=function(p){EH(p)&&!p.disableYtIdbTransactions&&(p.initialized=!0,p.enableCleaning&&Math.random()<=p.cleaningRate&&p.logsStore.cleanLogsStore(p.databaseToken),p.retryQueuedRequests(),p.networkManager.isNetworkAvailable()&&p.throttledSend(),p.networkManager.listen(p.onlineEvent,p.throttledSend.bind(p)),p.networkManager.listen(p.offlineEvent,p.cancelThrottledSend.bind(p)))};
_.l=XQ.prototype;_.l.writeThenSend=function(p,x){var F=this;x=x===void 0?{}:x;if(EH(this)&&this.initialized){var N={url:p,options:x,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(N,this.databaseToken).then(function(h){N.id=h;F.networkManager.isNetworkAvailable()&&F.immediateSend(N)}).catch(function(h){F.immediateSend(N);
y8v(F,h)})}else this.sendFn(p,x)};
_.l.sendThenWrite=function(p,x,F){var N=this;x=x===void 0?{}:x;if(EH(this)&&this.initialized){var h={url:p,options:x,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(h.skipRetry=F);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!h.skipRetry){if(!h.skipRetry){var c=x.onError?x.onError:function(){};
x.onError=function(M,f){return _.D(function(K){if(K.nextAddress==1)return _.q(K,N.logsStore.set(h,N.databaseToken).catch(function(t){y8v(N,t)}),2);
c(M,f);_.JB(K)})}}this.sendFn(p,x,h.skipRetry)}else this.logsStore.set(h,this.databaseToken).catch(function(M){N.sendFn(p,x,h.skipRetry);
y8v(N,M)})}else this.sendFn(p,x,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&F)};
_.l.sendAndWrite=function(p,x){var F=this;x=x===void 0?{}:x;if(EH(this)&&this.initialized){var N={url:p,options:x,timestamp:this.now(),status:"NEW",sendCount:0},h=!1,c=x.onSuccess?x.onSuccess:function(){};
N.options.onSuccess=function(M,f){N.id!==void 0?F.logsStore.deleteRequest(N.id,F.databaseToken):h=!0;F.networkManager.networkStatusHint&&F.getBooleanFlag&&F.getBooleanFlag("vss_network_hint")&&F.networkManager.networkStatusHint(!0);c(M,f)};
this.sendFn(N.url,N.options,void 0,!0);this.logsStore.set(N,this.databaseToken).then(function(M){N.id=M;h&&F.logsStore.deleteRequest(N.id,F.databaseToken)}).catch(function(M){y8v(F,M)})}else this.sendFn(p,x,void 0,!0)};
_.l.throttledSend=function(){var p=this;if(!EH(this))throw Error("Yc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var x;return _.D(function(F){if(F.nextAddress==1)return _.q(F,p.logsStore.getMostRecentByStatus("NEW",p.databaseToken),2);if(F.nextAddress!=3)return x=F.yieldResult,x?_.q(F,p.immediateSend(x),3):(p.cancelThrottledSend(),F.return());p.intervalJob&&(p.intervalJob=0,p.throttledSend());_.JB(F)})},this.throttleTimeout))};
_.l.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.l.immediateSend=function(p){var x=this,F;return _.D(function(N){switch(N.nextAddress){case 1:if(!EH(x))throw Error("Zc");if(p.id===void 0){N.jumpTo(2);break}return _.q(N,x.logsStore.markAsQueued(p.id,x.databaseToken),3);case 3:(F=N.yieldResult)||x.handleWarning(Error("$c"));case 2:if(x.requestWithinAgeLimit(p,x.requestAgeLimitMs)){N.jumpTo(4);break}x.handleWarning(Error("ad"));if(p.id===void 0){N.jumpTo(5);break}return _.q(N,x.logsStore.deleteRequest(p.id,x.databaseToken),5);case 5:return N.return();
case 4:p.skipRetry||(p=bsZ(x,p));if(!p){N.jumpTo(0);break}if(!p.skipRetry||p.id===void 0){N.jumpTo(8);break}return _.q(N,x.logsStore.deleteRequest(p.id,x.databaseToken),8);case 8:x.sendFn(p.url,p.options,!!p.skipRetry),_.JB(N)}})};
var bsZ=function(p,x){if(!EH(p))throw Error("bd");var F=x.options.onError?x.options.onError:function(){};
x.options.onError=function(h,c){var M,f,K,t;return _.D(function(d){switch(d.nextAddress){case 1:M=jdd(c);(f=LOp(c))&&p.getBooleanFlag&&p.getBooleanFlag("web_enable_error_204")&&p.handleError(Error("cd"),x.url,c);if(!(p.getBooleanFlag&&p.getBooleanFlag("nwl_consider_error_code")&&M||p.getBooleanFlag&&!p.getBooleanFlag("nwl_consider_error_code")&&p.potentialEsfErrorCounter<=p.potentialEsfErrorLimit)){d.jumpTo(2);break}if(!p.networkManager.sendNetworkCheckRequest){d.jumpTo(3);break}return _.q(d,p.networkManager.sendNetworkCheckRequest(),
3);case 3:if(p.networkManager.isNetworkAvailable()){d.jumpTo(2);break}F(h,c);if(!p.getBooleanFlag||!p.getBooleanFlag("nwl_consider_error_code")||((K=x)==null?void 0:K.id)===void 0){d.jumpTo(6);break}return _.q(d,p.logsStore.resetRequest(x.id,p.databaseToken,!1),6);case 6:return d.return();case 2:if(p.getBooleanFlag&&p.getBooleanFlag("nwl_consider_error_code")&&!M&&p.potentialEsfErrorCounter>p.potentialEsfErrorLimit)return d.return();p.potentialEsfErrorCounter++;if(((t=x)==null?void 0:t.id)===void 0){d.jumpTo(8);
break}return x.sendCount<p.retryMaxAttempts?_.q(d,p.logsStore.resetRequest(x.id,p.databaseToken,!0,f?!1:void 0),12):_.q(d,p.logsStore.deleteRequest(x.id,p.databaseToken),8);case 12:p.jobManager.addLowPriorityJob(function(){p.networkManager.isNetworkAvailable()&&p.throttledSend()},p.retryDelayMs);
case 8:F(h,c),_.JB(d)}})};
var N=x.options.onSuccess?x.options.onSuccess:function(){};
x.options.onSuccess=function(h,c){var M;return _.D(function(f){if(f.nextAddress==1)return((M=x)==null?void 0:M.id)===void 0?f.jumpTo(2):_.q(f,p.logsStore.deleteRequest(x.id,p.databaseToken),2);p.networkManager.networkStatusHint&&p.getBooleanFlag&&p.getBooleanFlag("vss_network_hint")&&p.networkManager.networkStatusHint(!0);N(h,c);_.JB(f)})};
return x};
XQ.prototype.requestWithinAgeLimit=function(p,x){p=p.timestamp;return this.now()-p>=x?!1:!0};
XQ.prototype.retryQueuedRequests=function(){var p=this;if(!EH(this))throw Error("dd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(x){x&&!p.requestWithinAgeLimit(x,p.queuedRequestAgeLimitMs)?p.jobManager.addLowPriorityJob(function(){return _.D(function(F){if(F.nextAddress==1)return x.id===void 0?F.jumpTo(2):_.q(F,p.logsStore.resetRequest(x.id,p.databaseToken),2);p.retryQueuedRequests();_.JB(F)})}):p.networkManager.isNetworkAvailable()&&p.throttledSend()})};
var y8v=function(p,x){p.writeError&&!p.networkManager.isNetworkAvailable()?p.writeError(x):p.handleError(x)},EH=function(p){return!!p.databaseToken||p.bypassDbTokenDependency};var P8M;var IS$={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515};var A8D={},plm=jQ("ServiceWorkerLogsDatabase",{objectStores:(A8D.SWHealthLog={addedAtVersion:1},A8D),shared:!0,upgrade:function(p,x){x(1)&&Ad(b1(p,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var M6p={},a$m=0;var qu6;var gW=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},V2=function(){if(!gW.instance){var p=_.A9("yt.networkRequestMonitor.instance")||new gW;
_.ox("yt.networkRequestMonitor.instance",p);gW.instance=p}return gW.instance};
gW.prototype.requestComplete=function(p,x){x&&(this.anyRequestHasSucceeded=!0);p=this.removeParams(p);this.requestMap.get(p)||this.requestMap.set(p,x)};
gW.prototype.isEndpointCFR=function(p){p=this.removeParams(p);return(p=this.requestMap.get(p))?!1:p===!1&&this.anyRequestHasSucceeded?!0:null};
gW.prototype.removeParams=function(p){return p.split("?")[0]};
gW.prototype.removeParams=gW.prototype.removeParams;gW.prototype.isEndpointCFR=gW.prototype.isEndpointCFR;gW.prototype.requestComplete=gW.prototype.requestComplete;gW.getInstance=V2;var Q1=function(p){_.Sc.call(this);var x=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=p!=null?p:{addLowPriorityJob:function(h,c){return setTimeout(h,c)},
cancelJob:function(h){clearTimeout(h)}};
var F,N;this.isOnline=(N=(F=window.navigator)==null?void 0:F.onLine)!=null?N:!0;this.onNavigatorChange=function(){return _.D(function(h){return _.q(h,ubC(x),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||YfC(this)};
_.E(Q1,_.Sc);Q1.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete Q1.instance};
Q1.prototype.isNetworkAvailable=function(){return this.isOnline};
var YfC=function(p){p.pollingJob=p.jobManager.addLowPriorityJob(function(){var x;return _.D(function(F){if(F.nextAddress==1)return p.isOnline?((x=window.navigator)==null?0:x.onLine)?F.jumpTo(3):_.q(F,ubC(p),3):_.q(F,ubC(p),3);YfC(p);_.JB(F)})},3E4)},ubC=function(p,x){return p.networkRequestPromise?p.networkRequestPromise:p.networkRequestPromise=new Promise(function(F){var N,h,c,M;
return _.D(function(f){switch(f.nextAddress){case 1:return N=window.AbortController?new window.AbortController:void 0,c=(h=N)==null?void 0:h.signal,M=!1,_.KM(f,2,3),N&&(p.abortTimeoutKey=p.jobManager.addLowPriorityJob(function(){N.abort()},x||2E4)),_.q(f,fetch("/generate_204",{method:"HEAD",
signal:c}),5);case 5:M=!0;case 3:_.ZC(f);p.networkRequestPromise=void 0;p.abortTimeoutKey&&(p.jobManager.cancelJob(p.abortTimeoutKey),p.abortTimeoutKey=0);M!==p.isOnline&&(p.isOnline=M,p.isOnline?p.dispatchEvent("networkstatus-online"):p.dispatchEvent("networkstatus-offline"));F(M);_.dn(f,0);break;case 2:_.v9(f),M=!1,f.jumpTo(3)}})})};var zk=function(){_.Sc.call(this);var p=this;this.shouldFlushErrors=!1;Q1.instance||(Q1.instance=new Q1(_.E0));this.sharedNetworkStatusManager=Q1.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(p.shouldFlushErrors&&_.S("offline_error_handling")){var x=ZrH().get("errors",!0);if(x){for(var F in x)if(x[F]){var N=new _.qE(F,"sent via offline_errors");N.name=x[F].name;N.stack=x[F].stack;N.level=x[F].level;_.yL(N)}ZrH().set("errors",{},2592E3,!0)}}})};
_.E(zk,_.Sc);var w7l=function(){if(!zk.instance){var p=_.A9("yt.networkStatusManager.instance")||new zk;_.ox("yt.networkStatusManager.instance",p);zk.instance=p}return zk.instance};
_.l=zk.prototype;_.l.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.l.networkStatusHint=function(p){this.sharedNetworkStatusManager.isOnline=p};
_.l.getWindowStatus=function(){var p=window.navigator.onLine;return p===void 0?!0:p};
_.l.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.l.listen=function(p,x){return this.sharedNetworkStatusManager.listen(p,x)};
_.l.sendNetworkCheckRequest=function(p){p=ubC(this.sharedNetworkStatusManager,p);p.then(function(x){_.S("use_cfr_monitor")&&V2().requestComplete("generate_204",x)});
return p};
zk.prototype.sendNetworkCheckRequest=zk.prototype.sendNetworkCheckRequest;zk.prototype.listen=zk.prototype.listen;zk.prototype.enableErrorFlushing=zk.prototype.enableErrorFlushing;zk.prototype.getWindowStatus=zk.prototype.getWindowStatus;zk.prototype.networkStatusHint=zk.prototype.networkStatusHint;zk.prototype.isNetworkAvailable=zk.prototype.isNetworkAvailable;zk.getInstance=w7l;_.GW=function(p){p=p===void 0?{}:p;_.Sc.call(this);var x=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=w7l();var F=_.A9("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);F&&(p.rateLimit?(this.rateLimit=p.rateLimit,F("networkstatus-online",function(){GZB(x,"publicytnetworkstatus-online")}),F("networkstatus-offline",function(){GZB(x,"publicytnetworkstatus-offline")})):(F("networkstatus-online",function(){x.dispatchEvent("publicytnetworkstatus-online")}),F("networkstatus-offline",
function(){x.dispatchEvent("publicytnetworkstatus-offline")})))};
_.E(_.GW,_.Sc);_.GW.prototype.isNetworkAvailable=function(){var p=_.A9("yt.networkStatusManager.instance.isNetworkAvailable");return p?p.bind(this.nsmInstance)():!0};
_.GW.prototype.networkStatusHint=function(p){var x=_.A9("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);x&&x(p)};
_.GW.prototype.sendNetworkCheckRequest=function(p){var x=this,F;return _.D(function(N){F=_.A9("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(x.nsmInstance);return _.S("skip_network_check_if_cfr")&&V2().isEndpointCFR("generate_204")?N.return(new Promise(function(h){var c;x.networkStatusHint(((c=window.navigator)==null?void 0:c.onLine)||!0);h(x.isNetworkAvailable())})):F?N.return(F(p)):N.return(!0)})};
var GZB=function(p,x){p.rateLimit?p.lastJobTime?(_.E0.cancelJob(p.schedulerJob),p.schedulerJob=_.E0.addLowPriorityJob(function(){p.lastPublicSignalSent!==x&&(p.dispatchEvent(x),p.lastPublicSignalSent=x,p.lastJobTime=(0,_.Lf)())},p.rateLimit-((0,_.Lf)()-p.lastJobTime))):(p.dispatchEvent(x),p.lastPublicSignalSent=x,p.lastJobTime=(0,_.Lf)()):p.dispatchEvent(x)};var Czr,sH=function(){XQ.call(this,{logsStore:{cleanLogsStore:$uw,deleteRequest:Ivw,getMostRecentByStatus:kDm,markAsQueued:Uuw,resetRequest:i5w,set:Rnz},networkManager:_.Sud(),handleError:function(p,x,F){var N,h=F==null?void 0:(N=F.error)==null?void 0:N.code;if(h===400||h===415){var c;p=new _.qE(p.message,x,F==null?void 0:(c=F.error)==null?void 0:c.code);_.uO(p,void 0,void 0,void 0,!0)}else _.yL(p)},
handleWarning:_.uO,sendFn:vLH,now:_.Lf,writeError:t6J,jobManager:_.nP(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.Ud("potential_esf_error_limit",10),getBooleanFlag:_.S,disableYtIdbTransactions:!(_.Kf()&&_.rDr())});this.initializationPromise=new _.FT;_.S("networkless_immediately_drop_all_requests")&&enz();Lcp("LogsDatabaseV2")};
_.E(sH,XQ);_.WwK=function(){var p=_.A9("yt.networklessRequestController.instance");p||(p=new sH,_.ox("yt.networklessRequestController.instance",p),_.S("networkless_logging")&&_.O5().then(function(x){p.databaseToken=x;nQv(p);p.initializationPromise.resolve();p.enableCleaning&&Math.random()<=p.cleaningRate&&p.databaseToken&&FJM(p.databaseToken);_.S("networkless_immediately_drop_sw_health_store")&&Vq6(p)}));
return p};
sH.prototype.writeThenSend=function(p,x){x||(x={});x=JDp(p,x);_.Kf()||(this.initialized=!1);XQ.prototype.writeThenSend.call(this,p,x)};
sH.prototype.sendThenWrite=function(p,x,F){x||(x={});x=JDp(p,x);_.Kf()||(this.initialized=!1);XQ.prototype.sendThenWrite.call(this,p,x,F)};
sH.prototype.sendAndWrite=function(p,x){x||(x={});x=JDp(p,x);_.Kf()||(this.initialized=!1);XQ.prototype.sendAndWrite.call(this,p,x)};
sH.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var Vq6=function(p){var x;_.D(function(F){if(!p.databaseToken)throw x=s5("clearSWHealthLogsDb"),x;return F.return(N$M(p.databaseToken).catch(function(N){p.handleError(N)}))})};_.XlM=!1;_.ELw=_.Mm.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.XlM};_.ox("ytNetworklessLoggingInitializationOptions",_.ELw);var rj=function(p){var x=this;this.config_=null;p?this.config_=p:$4m()&&(this.config_=_.TI());_.vZ(_.E0,function(){O5p(x)},5E3)};
rj.prototype.isReady=function(){!this.config_&&$4m()&&(this.config_=_.TI());return!!this.config_};
var oJp=function(p,x,F,N){!_.sd("VISITOR_DATA")&&x!=="visitor_id"&&Math.random()<.01&&_.uO(new _.qE("Missing VISITOR_DATA when sending innertube request.",x,F,N));if(!p.isReady()){var h=new _.qE("innertube xhrclient not ready",x,F,N);_.yL(h);throw h;}var c={headers:N.headers||{},method:"POST",postParams:F,postBody:N.postBody,postBodyFormat:N.postBodyFormat||"JSON",onTimeout:function(){N.onTimeout()},
onFetchTimeout:N.onTimeout,onSuccess:function(v,C){if(N.onSuccess)N.onSuccess(C)},
onFetchSuccess:function(v){if(N.onSuccess)N.onSuccess(v)},
onError:function(v,C){if(N.onError)N.onError(C)},
onFetchError:function(v){if(N.onError)N.onError(v)},
timeout:N.timeout,withCredentials:!0,compress:N.compress};c.headers["Content-Type"]||(c.headers["Content-Type"]="application/json");var M="";(h=p.config_.innertubeHostOverride)&&(M=h);var f=p.config_.innertubeUseThirdPartyAuth||!1,K=_.tVE(f,M,N);Object.assign(c.headers,K);c.headers.Authorization&&!M&&f&&(c.headers["x-origin"]=window.location.origin);var t=_.Ww(M+("/youtubei/"+p.config_.innertubeApiVersion+"/"+x),{alt:"json"}),d=function(v){v=v===void 0?!1:v;var C;if(N.retry&&M!="www.youtube-nocookie.com"&&
(v||_.S("skip_ls_gel_retry")||c.headers["Content-Type"]!=="application/json"||(C=H5d(x,F,K,f)),C)){var X=c.onSuccess,Q=c.onFetchSuccess;c.onSuccess=function(Y,O){muJ(C);X(Y,O)};
F.onFetchSuccess=function(Y,O){muJ(C);Q(Y,O)}}try{if(v&&N.retry&&!N.networklessOptions.bypassNetworkless)c.method="POST",N.networklessOptions.writeThenSend?_.WwK().writeThenSend(t,c):_.WwK().sendAndWrite(t,c);
else if(N.compress){var b=!N.networklessOptions.writeThenSend;if(c.postBody){var A=c.postBody;typeof A!=="string"&&(A=JSON.stringify(c.postBody));nJz(t,A,c,_.NE,b)}else nJz(t,JSON.stringify(c.postParams),c,G6$,b)}else _.S("web_all_payloads_via_jspb")?_.NE(t,c):G6$(t,c)}catch(Y){if(Y.name==="InvalidAccessError")C&&(muJ(C),C=0),_.uO(Error("ed"));else throw Y;}C&&_.vZ(_.E0,function(){O5p(p)},5E3)};
_.gLr()?Gtm().then(function(v){d(v)}):d(!1)};var z_p=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(z_p,_.Uk);z_p.prototype.getIndex=function(){return bq(this,2)};
z_p.prototype.setIndex=function(p){return _.tT(this,2,p)};var Hsj=0,zlk=_.fT?"webkit":_.Dr?"moz":_.ML?"ms":Cj$?"o":"";_.ox("ytDomDomGetNextId",_.A9("ytDomDomGetNextId")||function(){return++Hsj});var mzm={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},TW=function(p){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(p=
p||window.event){this.event=p;for(var x in p)x in mzm||(this[x]=p[x]);this.scale=p.scale;this.rotation=p.rotation;var F=p.target||p.srcElement;F&&F.nodeType==3&&(F=F.parentNode);this.target=F;var N=p.relatedTarget;if(N)try{N=N.nodeName?N:null}catch(h){N=null}else this.type=="mouseover"?N=p.fromElement:this.type=="mouseout"&&(N=p.toElement);this.relatedTarget=N;this.clientX=p.clientX!=void 0?p.clientX:p.pageX;this.clientY=p.clientY!=void 0?p.clientY:p.pageY;this.keyCode=p.keyCode?p.keyCode:p.which;
this.charCode=p.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=p.altKey;this.ctrlKey=p.ctrlKey;this.shiftKey=p.shiftKey;this.metaKey=p.metaKey;this.pageX_=p.pageX;this.pageY_=p.pageY}}catch(h){}},oQB=function(p){if(document.body&&document.documentElement){var x=document.body.scrollTop+document.documentElement.scrollTop;
p.pageX_=p.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);p.pageY_=p.clientY+x}};
TW.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
TW.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
TW.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Pu=_.Mm.ytEventsEventsListeners||{};_.ox("ytEventsEventsListeners",Pu);var uYd=_.Mm.ytEventsEventsCounter||{count:0};_.ox("ytEventsEventsCounter",uYd);var Yuw=_.Cy(function(){var p=!1;try{var x=Object.defineProperty({},"capture",{get:function(){p=!0}});
window.addEventListener("test",null,x)}catch(F){}return p});_.NL(Rn,_.Jm);Rn.prototype.onMouseMove_=function(p){p.pageX_===void 0&&oQB(p);var x=p.pageX_;p.pageY_===void 0&&oQB(p);this.position_=new _.sT(x,p.pageY_)};
Rn.prototype.checkPosition_=function(){if(this.position_){var p=(0,_.Lf)();if(this.previousTime_!=0){var x=this.previousPosition_,F=this.position_,N=x.x-F.x;x=x.y-F.y;N=Math.sqrt(N*N+x*x)/(p-this.previousTime_);this.cycles_[this.index_]=Math.abs((N-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(F=x=0;F<4;F++)x+=this.cycles_[F]||0;x>=3&&this.callback_();this.previousVelocity_=N}this.previousTime_=p;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Rn.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.wlE(this.mouseListenerKey_)};var Hr6={};var B5H=new _.U("rawColdConfigGroup");var T56=new _.U("rawHotConfigGroup");var OsC=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(OsC,_.Uk);var Q_Z=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Q_Z,_.Uk);var dj=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p,500)};
_.E(dj,_.Uk);dj.prototype.getPayloadCase=function(){return _.E6(this,j9k)};
dj.prototype.getContext=function(){return _.B8(this,Q_Z,33)};
var j9k=[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];var mCm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(mCm,_.Uk);var t3J=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(t3J,_.Uk);t3J.prototype.setVideoId=function(p){return ac(this,1,dCJ,te(p))};
t3J.prototype.getPlaylistId=function(){return _.fH(this,qf(this,dCJ,2))};
var dCJ=[1,2];var Yi6=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Yi6,_.Uk);Yi6.prototype.getContext=function(){return _.B8(this,Mf,1)};
Yi6.prototype.getTier=function(){return _.Yg(this,7)};var Lwb,In,$S;Lwb=_.Mm.ytPubsubPubsubInstance||new _.lb;In=_.Mm.ytPubsubPubsubSubscribedKeys||{};$S=_.Mm.ytPubsubPubsubTopicToKeys||{};_.mdM=_.Mm.ytPubsubPubsubIsSynchronous||{};_.lb.prototype.subscribe=_.lb.prototype.subscribe;_.lb.prototype.unsubscribeByKey=_.lb.prototype.unsubscribeByKey;_.lb.prototype.publish=_.lb.prototype.publish;_.lb.prototype.clear=_.lb.prototype.clear;_.ox("ytPubsubPubsubInstance",Lwb);_.ox("ytPubsubPubsubTopicToKeys",$S);_.ox("ytPubsubPubsubIsSynchronous",_.mdM);
_.ox("ytPubsubPubsubSubscribedKeys",In);var po=window;var nq=_.S("web_enable_lifecycle_monitoring")&&PzH()!==0,P0Z=_.S("web_enable_lifecycle_monitoring");var B6j=function(p){var x=this;var F=F===void 0?0:F;var N=N===void 0?_.nP():N;this.JSC$8657_defaultPriority=F;this.scheduler=N;this.completedResolver=new _.FT;this.scheduledPayloads=p;for(p={i$jscomp$529:0};p.i$jscomp$529<this.scheduledPayloads.length;p={payload$jscomp$18:void 0,i$jscomp$529:p.i$jscomp$529},p.i$jscomp$529++)p.payload$jscomp$18=this.scheduledPayloads[p.i$jscomp$529],F=function(h){return function(){h.payload$jscomp$18.job();x.scheduledPayloads[h.i$jscomp$529].processed=!0;x.scheduledPayloads.every(function(c){return c.processed===
!0})&&x.completedResolver.resolve()}}(p),N=this.scheduler.addJob(F,T6K(this,p.payload$jscomp$18)),this.scheduledPayloads[p.i$jscomp$529]=Object.assign({},p.payload$jscomp$18,{job:F,
jobId:N})};
B6j.prototype.flushJobs=function(){var p=this,x=Array.from(this.scheduledPayloads.keys()).sort(function(N,h){return T6K(p,p.scheduledPayloads[h])-T6K(p,p.scheduledPayloads[N])});
x=_.a(x);for(var F=x.next();!F.done;F=x.next())F=this.scheduledPayloads[F.value],F.jobId===void 0||F.processed||(this.scheduler.cancelJob(F.jobId),this.scheduler.addJob(F.job,10))};
B6j.prototype.cancel=function(){for(var p=_.a(this.scheduledPayloads),x=p.next();!x.done;x=p.next())x=x.value,x.jobId===void 0||x.processed||this.scheduler.cancelJob(x.jobId),x.processed=!0;this.completedResolver.resolve()};
var T6K=function(p,x){var F;return(F=x.priority)!=null?F:p.JSC$8657_defaultPriority};var y1=function(p){this.state=p;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};nq&&T$B(this.state)};
y1.prototype.install=function(p){this.plugins.push(p);return this};
y1.prototype.uninstall=function(){var p=this;_.we.apply(0,arguments).forEach(function(x){x=p.plugins.indexOf(x);x>-1&&p.plugins.splice(x,1)})};
y1.prototype.transition=function(p,x){var F=this;nq&&B$d(this.state);var N=this.transitions.find(function(c){return Array.isArray(c.from)?c.from.find(function(M){return M===F.state&&c.to===p}):c.from===F.state&&c.to===p});
if(N){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);RyC(this,p,x);this.state=p;nq&&T$B(this.state);N=N.action.bind(this);var h=this.plugins.filter(function(c){return c[p]}).map(function(c){return c[p]});
N(kZJ(this,h),x)}else throw Error("fd`"+this.state+"`"+p);};
var kZJ=function(p,x){var F=x.filter(function(h){return UzB(p,h)===10}),N=x.filter(function(h){return UzB(p,h)!==10});
return p.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var h=_.we.apply(0,arguments);return _.D(function(c){if(c.nextAddress==1)return _.q(c,p.runImmediateJobsAsync.apply(p,[F].concat(_.se(h))),2);p.setJobSetWithScheduledJobs.apply(p,[N].concat(_.se(h)));_.JB(c)})}:function(){var h=_.we.apply(0,arguments);
p.runImmediateJobsSync.apply(p,[F].concat(_.se(h)));p.setJobSetWithScheduledJobs.apply(p,[N].concat(_.se(h)))}};
y1.prototype.runImmediateJobsSync=function(p){var x=_.we.apply(1,arguments);_.nP();for(var F=_.a(p),N=F.next(),h={};!N.done;h={lifecycle$jscomp$2:void 0},N=F.next())h.lifecycle$jscomp$2=N.value,Pl(function(c){return function(){isb(c.lifecycle$jscomp$2.name);kTB(function(){return c.lifecycle$jscomp$2.callback.apply(c.lifecycle$jscomp$2,_.se(x))});
bl(c.lifecycle$jscomp$2.name)}}(h))};
y1.prototype.runImmediateJobsAsync=function(p){var x=_.we.apply(1,arguments),F,N,h,c;return _.D(function(M){M.nextAddress==1&&(_.nP(),F=_.a(p),N=F.next(),h={});if(M.nextAddress!=3){if(N.done)return M.jumpTo(0);h.lifecycle$jscomp$3=N.value;h.asyncJobCompletion=void 0;c=function(f){return function(){isb(f.lifecycle$jscomp$3.name);var K=kTB(function(){return f.lifecycle$jscomp$3.callback.apply(f.lifecycle$jscomp$3,_.se(x))});
Il6(K)?f.asyncJobCompletion=_.S("web_lifecycle_error_handling_killswitch")?K.then(function(){bl(f.lifecycle$jscomp$3.name)}):K.then(function(){bl(f.lifecycle$jscomp$3.name)},function(t){Rlz(t);
bl(f.lifecycle$jscomp$3.name)}):bl(f.lifecycle$jscomp$3.name)}}(h);
Pl(c);return h.asyncJobCompletion?_.q(M,h.asyncJobCompletion,3):M.jumpTo(3)}h={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};N=F.next();return M.jumpTo(2)})};
y1.prototype.setJobSetWithScheduledJobs=function(p){var x=_.we.apply(1,arguments),F=this,N=p.map(function(h){return{job:function(){isb(h.name);kTB(function(){return h.callback.apply(h,_.se(x))});
bl(h.name)},
priority:UzB(F,h)}});
N.length&&(this.jobSet=new B6j(N))};
var UzB=function(p,x){var F,N;return(N=(F=p.overridePriority)!=null?F:x.priority)!=null?N:0},isb=function(p){nq&&p&&T$B(p)},bl=function(p){nq&&p&&B$d(p)},RyC=function(p,x,F){P0Z&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+p.constructor.name+"] '"+p.state+"' to '"+x+"'"),console.log("with message: ",F),console.groupEnd())};
_.R8.Object.defineProperties(y1.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var IIm=function(p){y1.call(this,p===void 0?"none":p);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(){}}]},$zB;
_.E(IIm,y1);IIm.prototype.runApplicationNavigationBegin=function(p,x){var F=this;this.navigationTimer=_.vZ(_.E0,function(){F.currentState==="application_navigating"&&F.transition("none")},5E3);
p(x==null?void 0:x.event)};
IIm.prototype.runApplicationNavigationEnd=function(p,x){this.navigationTimer&&(_.E0.cancelJob(this.navigationTimer),this.navigationTimer=null);p(x==null?void 0:x.event)};
_.PTd=function(){$zB||($zB=new IIm);return $zB};var Lxm=[];_.ox("yt.logging.transport.getScrapedGelPayloads",function(){return Lxm});var Fx=function(){var p=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return p.totalEntries}}};
Fx.prototype.storePayload=function(p,x){p=UdJ(p);this.store[p]?this.store[p].push(x):(this.memoizedKeySequences={},this.store[p]=[x]);this.totalEntries++;_.S("more_accurate_gel_parser")&&(x=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(x));return p};
Fx.prototype.smartExtractMatchingEntries=function(p){if(!p.keys.length)return[];for(var x=eyJ(this,p.keys.splice(0,1)[0]),F=[],N=0;N<x.length;N++)this.store[x[N]]&&p.sizeLimit&&(this.store[x[N]].length<=p.sizeLimit?(F.push.apply(F,_.se(this.store[x[N]])),delete this.store[x[N]]):F.push.apply(F,_.se(this.store[x[N]].splice(0,p.sizeLimit))));this.totalEntries-=F.length;(p==null?0:p.sizeLimit)&&F.length<(p==null?void 0:p.sizeLimit)&&(p.sizeLimit-=F.length,F.push.apply(F,_.se(this.smartExtractMatchingEntries(p))));
return F};
Fx.prototype.extractMatchingEntries=function(p){p=eyJ(this,p);for(var x=[],F=0;F<p.length;F++)this.store[p[F]]&&(x.push.apply(x,_.se(this.store[p[F]])),delete this.store[p[F]]);this.totalEntries-=x.length;return x};
Fx.prototype.getSequenceCount=function(p){p=eyJ(this,p);for(var x=0,F=0;F<p.length;F++){var N=void 0;x+=((N=this.store[p[F]])==null?void 0:N.length)||0}return x};
var eyJ=function(p,x){var F=UdJ(x);if(p.memoizedKeySequences[F])return p.memoizedKeySequences[F];var N=Object.keys(p.store)||[];if(N.length<=1&&UdJ(x)===N[0])return N;for(var h=[],c=0;c<N.length;c++){var M=N[c].split("/");if(p5v(x.auth,M[0])){var f=x.isJspb;p5v(f===void 0?"undefined":f?"true":"false",M[1])&&p5v(x.cttAuthInfo,M[2])&&(f=x.tier,f=f===void 0?"undefined":JSON.stringify(f),p5v(f,M[3])&&h.push(N[c]))}}return p.memoizedKeySequences[F]=h},p5v=function(p,x){return p===void 0||p==="undefined"?
!0:p===x};
Fx.prototype.getSequenceCount=Fx.prototype.getSequenceCount;Fx.prototype.extractMatchingEntries=Fx.prototype.extractMatchingEntries;Fx.prototype.smartExtractMatchingEntries=Fx.prototype.smartExtractMatchingEntries;Fx.prototype.storePayload=Fx.prototype.storePayload;var Q4k,Xtp,zg$,lK,xt6,iQ$,UCp,EpE,r0$,DCw,gpM,OQJ,J0J;Q4k=_.Ud("initial_gel_batch_timeout",2E3);Xtp=_.Ud("gel_queue_timeout_max_ms",6E4);zg$=_.Ud("gel_min_batch_size",5);lK=void 0;xt6=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
iQ$=new xt6;UCp=new xt6;EpE=new xt6;r0$=new xt6;gpM=!0;OQJ=1;_.opp=new Map;J0J=_.Mm.ytLoggingTransportTokensToCttTargetIds_||{};_.ox("ytLoggingTransportTokensToCttTargetIds_",J0J);var vp6=_.Mm.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.ox("ytLoggingTransportTokensToJspbCttTargetIds_",vp6);var hT={};var Co=_.Mm.ytLoggingGelSequenceIdObj_||{};_.ox("ytLoggingGelSequenceIdObj_",Co);var p26=[];var ZVz=new Set,cRB=0,JRZ=0,vwE=0,MoE=[],atp=[],CrB=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var u6H=function(){};
u6H.prototype.getUrl=function(p,x){x=x===void 0?!1:x;return p.hasOwnProperty("shareEndpoint")?null:_.X2k(p,null,x)};
var HIH=function(p,x,F){p={endpoint:x,actions:[]};F=(F.path?F.path[0]:F.target).icon||"";x=F.indexOf(":");x>0&&(F=F.substr(x+1));F&&p.actions.push(F);return p};var yRZ=/Command$/,nwk=/Endpoint$/,QCm=new Map;var FTZ,NHk;FTZ=1;_.Vj=function(){this.actionRoutingMap=new Map};
_.Vj.prototype.triggerAction=function(p){var x=new N_w(p,!1,_.we.apply(1,arguments));this.handleAction(x);return x.returnValue};
_.Vj.prototype.triggerOptionalAction=function(p){var x=new N_w(p,!0,_.we.apply(1,arguments));this.handleAction(x);return x.returnValue};
_.Aw=function(p,x,F){x.forEach(function(N){var h=sCw(N);h&&p.triggerOptionalAction(h,N,F,void 0)})};
_.Vj.prototype.handleAction=function(p){var x=this.actionRoutingMap.get(p.actionName);x&&NHk(p,x);p.optionalAction||p.returnValue.length!==0||(p=new _.qE("Unhandled action",p.actionName),_.uO(p))};
NHk=function(p,x){x.forEach(function(F){var N=null;F?N=F.apply(null,p.args):(F=Error("gd"),F.params=p.actionName,_.yL(F));p.returnValue.push(N)})};
_.WZ=function(p,x,F){F||(F=FTZ++);for(var N=_.a(Object.keys(x)),h=N.next();!h.done;h=N.next()){h=h.value;var c=p.actionRoutingMap.get(h);c||(c=new Map,p.actionRoutingMap.set(h,c));p.registerActionHandler(F,h,x[h],c)}return F};
_.Vj.prototype.registerActionHandler=function(p,x,F,N){N.set(p,_.bO(F))};
_.HZ=function(p,x,F){x=_.a(Object.keys(x));for(var N=x.next();!N.done;N=x.next())(N=p.actionRoutingMap.get(N.value))&&N.delete(F)};
_.xg(_.Vj);var G7p=function(p,x){var F=_.Vj.getInstance();_.J9(function(){var N={},h=_.WZ(F,(N[p]=x,N));_.E_(function(){var c={};_.HZ(F,(c[p]="",c),h)})})};var mNk=function(p,x,F){_.J9(function(){var N=p.value;N?(N.addEventListener(x,F,void 0),_.E_(function(){N?N.removeEventListener(x,F,void 0):ow6(p)})):ow6(p)})};Lfd=C0d;var Itm=new Set(["For","If","Match","Watch"]),hhm={},lxJ=(hhm[s_.default]=function(){return WfH},hhm.style=function(){return WfH},hhm),cG6;
for(cG6 in lxJ)iI.attributes[cG6]=lxJ[cG6](iI.attributes[cG6]);var kl=new _.iE("VISIBILITY_OBSERVER");var aDp={retrieve:function(p){return this.id.\u0275prov.token===p.\u0275prov.token?this.contextValue:this?xpM(this,this.id):pu6}};var axJ=function(p,x,F){if(p!==Lo)return!1;p=PZ(document.createElement("div"),function(){var N=Be(!1);try{F[0]()}finally{Be(N)}});
p=Array.from(p.childNodes);p.length===1&&(p=p[0]);return p};var MzC=function(p){p=p.clone();mEv(p);S_(p,"dg",null);S_(p,"d","0");GIk(p,null);VQb(p,null);S_(p,"ichc","0");return p},Dtk=!0,fxj=function(p,x,F){var N=F===void 0?{}:F;
F=N.cssRowKey===void 0?void 0:N.cssRowKey;var h=N.combinedSignature===void 0?void 0:N.combinedSignature;var c=N.extraEdges===void 0?void 0:N.extraEdges;N=N.callback===void 0?void 0:N.callback;S_(p,"m",x.join(","));c&&HfB(p,c);F&&(S_(p,"ck",F),h?S_(p,"rs",h):Dtk&&(Dtk=!1));if(N){if(N!=null&&!LWB.test(N))throw Error("bb`"+N);S_(p,"cb",N)}p=p.toString();_.qm(p,"/")&&(p=DHZ(document.location.href)+p);return _.vz(p)};var qzj=function(p){return KTI(p).then(function(x){return JSON.parse(x.responseText)})},KTI=function(p){var x={},F=x.xmlHttpFactory?x.xmlHttpFactory.createInstance():hWm.createInstance();
return(new _.cZ(function(N,h){var c;try{F.open("GET",p,!0)}catch(K){h(new ul("Error opening XHR: "+K.message,p,F))}F.onreadystatechange=function(){if(F.readyState==4){_.Mm.clearTimeout(c);var K;!(K=NvK(F.status))&&(K=F.status===0)&&(K=MHb(p),K=!(K=="http"||K=="https"||K==""));K?N(F):h(new Zcl(F.status,p,F))}};
F.onerror=function(){h(new ul("Network error",p,F))};
if(x.headers)for(var M in x.headers){var f=x.headers[M];f!=null&&F.setRequestHeader(M,f)}x.withCredentials&&(F.withCredentials=x.withCredentials);x.responseType&&(F.responseType=x.responseType);x.mimeType&&F.overrideMimeType(x.mimeType);x.timeoutMs>0&&(c=_.Mm.setTimeout(function(){F.onreadystatechange=function(){};
F.abort();h(new tzZ(p,F))},x.timeoutMs));
try{F.send(null)}catch(K){F.onreadystatechange=function(){},_.Mm.clearTimeout(c),h(new ul("Error sending XHR: "+K.message,p,F))}})).thenCatch(function(N){N instanceof _.mw&&F.abort();
throw N;})},ul=function(p,x,F){_.x$.call(this,p+", url="+x);
this.url=x;this.xhr=F};
_.NL(ul,_.x$);ul.prototype.name="XhrError";var Zcl=function(p,x,F){ul.call(this,"Request Failed, status="+p,x,F);this.status=p};
_.NL(Zcl,ul);Zcl.prototype.name="XhrHttpError";var tzZ=function(p,x){ul.call(this,"Request timed out",p,x)};
_.NL(tzZ,ul);tzZ.prototype.name="XhrTimeoutError";pT=pT||{};var Yf=function(){_.Jm.call(this)};
_.NL(Yf,_.Jm);Yf.prototype.initialize=function(){};var dtK=function(p,x){this.fn_=p;this.handler_=x};
dtK.prototype.execute=function(p){this.fn_&&(this.fn_.call(this.handler_||null,p),this.fn_=this.handler_=null)};
dtK.prototype.abort=function(){this.handler_=this.fn_=null};var wW=function(p,x){_.Jm.call(this);this.deps_=p;this.JSC$8784_id_=x;this.onloadCallbacks_=[];this.JSC$8784_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.NL(wW,_.Jm);wW.prototype.moduleConstructor_=Yf;wW.prototype.module_=null;wW.prototype.getId=function(){return this.JSC$8784_id_};
wW.prototype.registerCallback=function(p,x){return vvC(this.onloadCallbacks_,p,x)};
var JGB=function(p,x){vvC(p.JSC$8784_onErrorCallbacks_,x)},vvC=function(p,x,F){x=new dtK(x,F);
p.push(x);return x};
wW.prototype.isLoaded=function(){return!!this.module_};
wW.prototype.onLoad=function(p){var x=new this.moduleConstructor_;x.initialize(p());this.module_=x;x=(x=!!CAm(this.earlyOnloadCallbacks_,p()))||!!CAm(this.onloadCallbacks_,p());x||(this.JSC$8784_onErrorCallbacks_.length=0);return x};
wW.prototype.onError=function(p){(p=CAm(this.JSC$8784_onErrorCallbacks_,p))&&fp(Error("md`"+p));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var CAm=function(p,x){for(var F=[],N=0;N<p.length;N++)try{p[N].execute(x)}catch(h){fp(h),F.push(h)}p.length=0;return F.length?F:null};
wW.prototype.disposeInternal=function(){wW.superClass_.disposeInternal.call(this);_.RR(this.module_)};var Sz6,zhC,gvv,QfK,Evk,X5j,AGj,yGk,bcn;
_.V1=function(p,x,F,N,h){N=N===void 0?!1:N;h=h===void 0?!1:h;var c=c===void 0?!0:c;this.scsReferenceUrl_=Uy(_.SP(p).toString(),c);this.cssRowKey_=x;this.combinedSignature_=F;this.useNegativeLoading_=N;this.requestedModuleMap_={};this.JSC$8787_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(p=CF(this.scsReferenceUrl_,"excm"))?p.split(","):[];this.shouldScanForCss_=h;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;C1r();this.logger=null;_.Gk(this,WWl(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
Sz6=function(p,x){if(x.href||x.getAttribute("data-href"))if(x=x.href||x.getAttribute("data-href"),tsE(x)&&!Uy(x).urlPrefix_.endsWith("_/js/")){x=WWl(Uy(x));x=_.a(x);for(var F=x.next();!F.done;F=x.next())F=F.value,p.loadedCssModuleList_.includes(F)||p.loadedCssModuleList_.push(F)}};
_.V1.prototype.JSC$8789_loadModules=function(p,x,F){var N=F===void 0?{}:F;F=N.extraEdges;var h=N.onError;var c=N.onSuccess;N=N.forceReload;this.JSC$8787_moduleInfoMap_=x;if(!p)throw Error("nd");if(this.shouldScanForCss_){x=_.a(document.getElementsByTagName("style"));for(var M=x.next();!M.done;M=x.next())Sz6(this,M.value);x=_.a(document.getElementsByTagName("link"));for(M=x.next();!M.done;M=x.next())Sz6(this,M.value)}rGB(this,Evk(this,p),F,h,c,N)};
var rGB=function(p,x,F,N,h,c){N=N===void 0?function(){}:N;
h=h===void 0?function(){}:h;
c=c===void 0?!1:c;X5j(p,x,function(M,f,K){K=K===void 0?f:K;p.enableFallbackFetch&&c?p.loadWithFetch(M,f,N,h,K):p.load(M,f,N,h,K,F)},F)||N(-1)};
_.V1.prototype.loadWithFetch=function(){_.D(function(){throw Error("od");})};
_.V1.prototype.maybeSetAdditionalFields=function(){};
zhC=function(p,x,F){if(p.useNegativeLoading_){var N=p.scsReferenceUrl_;p={cssRowKey:p.cssRowKey_,combinedSignature:p.combinedSignature_,extraEdges:F,requestedModuleIds:gvv(p),requestedCssModuleIds:QfK(p)};var h=p===void 0?{}:p;p=h.requestedModuleIds===void 0?[]:h.requestedModuleIds;F=h.requestedCssModuleIds===void 0?[]:h.requestedCssModuleIds;var c=h.cssRowKey===void 0?void 0:h.cssRowKey;var M=h.combinedSignature===void 0?void 0:h.combinedSignature;var f=h.extraEdges===void 0?void 0:h.extraEdges;
h=h.callback===void 0?void 0:h.callback;N=MzC(N);S_(N,"d","1");GIk(N,p);VQb(N,F);x=fxj(N,x,{cssRowKey:c,combinedSignature:M,extraEdges:f,callback:h})}else N=p.scsReferenceUrl_,p={cssRowKey:p.cssRowKey_,combinedSignature:p.combinedSignature_,requestedModuleIds:gvv(p),requestedCssModuleIds:QfK(p)},f=p===void 0?{}:p,p=f.requestedCssModuleIds===void 0?[]:f.requestedCssModuleIds,F=f.cssRowKey===void 0?void 0:f.cssRowKey,c=f.combinedSignature===void 0?void 0:f.combinedSignature,M=f.extraEdges===void 0?
void 0:f.extraEdges,f=f.callback===void 0?void 0:f.callback,N=MzC(N),VQb(N,p),x=fxj(N,x,{cssRowKey:F,combinedSignature:c,extraEdges:M,callback:f});return x};
_.Gk=function(p,x){for(var F=!1,N=[],h=0;h<x.length;++h){var c=x[h];p.requestedModuleMap_[c]||(p.requestedModuleMap_[c]=!0,p.requestedModuleList_.push(c),F=!0,N.push(c))}F&&(p.requestedModuleListSorted_=!1)};
_.Wa=function(p,x){for(var F=[],N=0;N<x.length;++N){var h=x[N];p.requestedModuleMap_[h]&&(delete p.requestedModuleMap_[h],_.Lp(p.requestedModuleList_,h),F.push(h))}};
_.V1.prototype.load=function(p,x,F,N,h){h=h===void 0?x:h;_.SP(p);var c=this.useCors_,M=this.corsMode_,f=this.fetchPriority,K=_.KH("SCRIPT");_.UU(K,p);c&&(K.crossOrigin=M);K.async=!1;f&&K.setAttribute("fetchpriority",f);_.Gk(this,x);_.sfB(this,p,K,x,F,N,h)};
_.sfB=function(p,x,F,N,h,c,M){M=M===void 0?N:M;p.lastScript_=F;p.insertPos.insertBefore(F,p.insertPos.firstChild);_.nvB(F,N,function(){F.parentElement.removeChild(F);p.lastScript_==F&&(p.lastScript_=null);var f=new Set;N.map(function(t){return f.add(t)});
for(var K in p.JSC$8787_moduleInfoMap_)p.JSC$8787_moduleInfoMap_[K].isLoaded()&&f.add(K);Array.from(f);c()},function(f){F.parentElement.removeChild(F);
p.lastScript_==F&&(p.lastScript_=null);_.Wa(p,f);p.pendingModuleGraphUpdate_?p.pendingModuleGraphUpdate_.then(function(){h(-1,x)}):h(-1,x)},M)};
_.nvB=function(p,x,F,N,h){h=h===void 0?x:h;var c=x.length,M=function(){c=0;p.onload=null;p.onerror=null;f=function(){}},f=function(){M();
var t=h.filter(function(d){return!gv().getModuleInfo(d).isLoaded()});
t.length!==0?N(t,"Response was successful but was missing module(s) "+t+"."):F()},K=function(){c--;
c==0&&f()};
x.forEach(function(t){t=gv().getModuleInfo(t);t.isLoaded()?K():(vvC(t.earlyOnloadCallbacks_,K),JGB(t,K))});
p.onload=function(){return f()};
p.onerror=function(){M();N(x)}};
gvv=function(p){p.requestedModuleListSorted_||(p.requestedModuleListSorted_=!0,p.requestedModuleList_.sort());return p.requestedModuleList_};
QfK=function(p){p=p.loadedCssModuleList_;p.sort();return p};
Evk=function(p,x){return x.filter(function(F){return!p.requestedModuleMap_[F]})};
X5j=function(p,x,F,N){if(p.pendingModuleGraphUpdate_)return p.pendingModuleGraphUpdate_.then(function(){X5j(p,x,F,N)}),!0;
if(!p.useNegativeLoading_){var h=[],c=Object.assign({},p.requestedModuleMap_);yGk(p,x,function(d){h.push(d.getId())},N,function(d){return!d.isLoaded()},c);
x=h}for(c=0;c<x.length;){for(var M=x.length-c,f=c==0?x:x.slice(c,x.length),K=zhC(p,f,N),t=_.SP(K).toString();t.length>p.urlMaxLength;)if(M>1)M-=Math.ceil((t.length-p.urlMaxLength)/6),M=Math.max(M,1),f=x.slice(c,c+M),K=zhC(p,f,N),t=_.SP(K).toString();else return p.useNegativeLoading_?(p.useNegativeLoading_=!1,p.pendingModuleGraphUpdate_=bcn(p).then(function(d){AGj(p,d,N)}),X5j(p,x.slice(c),F,N)):!1;
c+=M;p.useNegativeLoading_?F(K,f):F(K,f,c===x.length?x:[])}return!0};
AGj=function(p,x,F){gv().setAllModuleInfoString((x||{}).moduleGraph);yGk(p,gvv(p),function(N){_.Gk(p,[N.getId()])},F);
p.pendingModuleGraphUpdate_=null};
yGk=function(p,x,F,N,h,c){c=c===void 0?{}:c;var M=gv();x=_.a(x);for(var f=x.next();!f.done;f=x.next()){f=f.value;var K=M.getModuleInfo(f);if(!(c[f]||h&&!h(K))){c[f]=!0;var t=K.deps_||[];if(N){var d=[];N[f]&&(d=Object.keys(N[f]));t=t.concat(d)}yGk(p,t,F,N,h,c);F(K)}}};
bcn=function(p){p=p.scsReferenceUrl_.clone();mEv(p);S_(p,"dg",null);S_(p,"md","1");return qzj(p.toString())};var uJl=function(){this.JSC$7908_loader_=null};
_.l=uJl.prototype;_.l.setBatchModeEnabled=function(){};
_.l.setAllModuleInfoString=function(){};
_.l.addExtraEdge=function(){throw Error("pd");};
_.l.removeExtraEdge=function(){throw Error("qd");};
_.l.getModuleContext=function(){return null};
_.l.isActive=function(){return!1};
_.l.isUserActive=function(){return!1};
_.l.registerCallback=function(){};var Ha=function(p,x,F,N){this.type=p;this.status=x;this.requestedModuleIds=F;this.url=N};
Ha.prototype.toString=function(){return YzI(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var YzI=function(p){switch(p.type){case Ha.JSC$8796_Type.UNAUTHORIZED:return"Unauthorized";case Ha.JSC$8796_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Ha.JSC$8796_Type.TIMEOUT:return"Timed out";case Ha.JSC$8796_Type.OLD_CODE_GONE:return"Out of date module id";case Ha.JSC$8796_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+p.type}};
pT.ModuleLoadFailure=Ha;pT.ModuleLoadFailure.JSC$8796_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var m3=function(){this.moduleIds_=this.JSC$7908_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8799_extraEdges_={};this.JSC$8799_callbackMap_={};this.JSC$8799_currentlyLoadingModule_=this.baseModuleInfo_=new wW([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new Li;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.NL(m3,uJl);var w5n=function(p,x){_.x$.call(this,"Error loading "+p+": "+x)};
_.NL(w5n,_.x$);_.l=m3.prototype;_.l.setBatchModeEnabled=function(p){this.batchModeEnabled_=p};
_.l.setAllModuleInfoString=function(p,x){if(!(this instanceof m3))this.setAllModuleInfoString(p,x);else if(typeof p==="string"){if(p.startsWith("d$")){p=p.substring(2);for(var F=[],N=0,h=p.indexOf("/"),c=0,M=!1,f=0;;){var K=M?p.substring(c):p.substring(c,h);if(K.length===0)N++,c="sy"+N.toString(36),K=[];else{var t=K.indexOf(":");if(t<0)c=K,K=[];else if(t===K.length-1)c=K.substring(0,t),K=Array(F[f-1]);else{c=K.substring(0,t);K=K.substring(t+1).split(",");t=f;for(var d=0;d<K.length;d++)t-=K[d].length===
0?1:Number(K[d]),K[d]=F[t]}t=0;if(c.length===0)t=1;else if(c.charAt(0)==="+"||c.charAt(0)==="-")t=Number(c);t!==0&&(N+=t,c="sy"+N.toString(36))}F.push(c);G6B(this,c,K);if(M)break;c=h+1;h=p.indexOf("/",c);h===-1&&(M=!0);f++}this.moduleIds_=F}else{p=p.split("/");F=[];for(N=0;N<p.length;N++){f=p[N].split(":");h=f[0];M=[];if(f[1])for(M=f[1].split(","),f=0;f<M.length;f++)M[f]=F[parseInt(M[f],36)];F.push(h);G6B(this,h,M)}this.moduleIds_=F}x&&x.length?(_.UM(this.loadingModuleIds_,x),this.lastInitialModuleId_=
_.GB(x)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8799_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8799_currentlyLoadingModule_=null,this.baseModuleInfo_.onLoad((0,_.CH)(this.getModuleContext,this))&&Vzn(this,new pT.ModuleLoadFailure(pT.ModuleLoadFailure.JSC$8796_Type.INIT_ERROR)),o$(this))}};
_.l.getModuleInfo=function(p){return this.moduleInfoMap[p]};
_.l.addExtraEdge=function(p,x){var F=this.getModuleInfo(p);F&&F.isLoaded()?this.load(x):(this.JSC$8799_extraEdges_[p]||(this.JSC$8799_extraEdges_[p]={}),this.JSC$8799_extraEdges_[p][x]=!0)};
_.l.removeExtraEdge=function(p,x){if(this.JSC$8799_extraEdges_[p]){delete this.JSC$8799_extraEdges_[p][x];for(var F in this.JSC$8799_extraEdges_[p])return;delete this.JSC$8799_extraEdges_[p]}};
_.l.isActive=function(){return this.loadingModuleIds_.length>0};
_.l.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var o$=function(p){var x=p.lastActive_,F=p.isActive();F!=x&&(p.executeCallbacks_(F?"active":"idle"),p.lastActive_=F);x=p.isUserActive();x!=p.userLastActive_&&(p.executeCallbacks_(x?"userActive":"userIdle"),p.userLastActive_=x)},G6B=function(p,x,F){p.moduleInfoMap[x]?(p=p.moduleInfoMap[x].deps_,p!=F&&p.splice.apply(p,[0,
p.length].concat(_.se(F)))):p.moduleInfoMap[x]=new wW(F,x)},HcZ=function(p,x,F){var N=[];
zEB(x,N);x=[];for(var h={},c=0;c<N.length;c++){var M=N[c],f=p.getModuleInfo(M);if(!f)throw Error("rd`"+M);var K=new Li;h[M]=K;f.isLoaded()?K.callback(null):(WTj(p,M,f,!!F,K),p.isModuleLoading(M)||x.push(M))}x.length>0&&(p.loadingModuleIds_.length===0?p.loadModules_(x):(p.requestedModuleIdsQueue_.push(x),o$(p)));return h},WTj=function(p,x,F,N,h){F.registerCallback(h.callback,h);
JGB(F,function(c){h.errback(new w5n(x,c))});
p.isModuleLoading(x)?N&&(mtB(p,x),o$(p)):N&&mtB(p,x)};
m3.prototype.loadModules_=function(p,x,F){var N=this;x||(this.consecutiveFailures_=0);var h=ovZ(this,p);this.loadingModuleIds_=h;this.requestedLoadingModuleIds_=this.batchModeEnabled_?p:_.Pr(h);o$(this);if(h.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,h);if(Object.keys(this.JSC$8799_extraEdges_).length>0&&!this.JSC$7908_loader_.supportsExtraEdges)throw Error("sd");p=(0,_.CH)(this.JSC$7908_loader_.JSC$8789_loadModules,this.JSC$7908_loader_,_.Pr(h),this.moduleInfoMap,{extraEdges:this.JSC$8799_extraEdges_,
forceReload:!!F,onError:function(c,M){var f=N.requestedLoadingModuleIds_;c=c!=null?c:void 0;N.consecutiveFailures_++;var K=_.Pr(h);N.requestedLoadingModuleIds_=f;h.forEach(_.Sz(_.Lp,N.requestedModuleIds_),N);c==401?(Vzn(N,new pT.ModuleLoadFailure(pT.ModuleLoadFailure.JSC$8796_Type.UNAUTHORIZED,c)),N.requestedModuleIdsQueue_.length=0):c==410?(Ocm(N,new pT.ModuleLoadFailure(pT.ModuleLoadFailure.JSC$8796_Type.OLD_CODE_GONE,c)),jfv(N)):N.consecutiveFailures_>=3?(Ocm(N,new pT.ModuleLoadFailure(pT.ModuleLoadFailure.JSC$8796_Type.CONSECUTIVE_FAILURES,
c,K,M)),jfv(N)):N.loadModules_(N.requestedLoadingModuleIds_,!0,c==8001||!1)},
onTimeout:(0,_.CH)(this.handleLoadTimeout_,this)});(x=Math.pow(this.consecutiveFailures_,2)*5E3)?_.Mm.setTimeout(p,x):p()}};
var ovZ=function(p,x){x=x.filter(function(h){return p.moduleInfoMap[h].isLoaded()?(_.Mm.setTimeout(function(){return Error("td`"+h)},0),!1):!0});
for(var F=[],N=0;N<x.length;N++)F=F.concat(LTm(p,x[N]));zEB(F);return!p.batchModeEnabled_&&F.length>1?(x=F.shift(),p.requestedModuleIdsQueue_=F.map(function(h){return[h]}).concat(p.requestedModuleIdsQueue_),[x]):F},LTm=function(p,x){var F=_.Q5.createSet(p.requestedModuleIds_),N=[];
F[x]||N.push(x);x=[x];for(var h=0;h<x.length;h++)for(var c=p.getModuleInfo(x[h]).deps_,M=c.length-1;M>=0;M--){var f=c[M];p.getModuleInfo(f).isLoaded()||F[f]||(N.push(f),x.push(f))}N.reverse();zEB(N);return N};
m3.prototype.JSC$8794_setLoaded=function(){if(this.JSC$8799_currentlyLoadingModule_){var p=this.JSC$8799_currentlyLoadingModule_.getId(),x=[];if(this.JSC$8799_extraEdges_[p]){for(var F=_.a(Object.keys(this.JSC$8799_extraEdges_[p])),N=F.next();!N.done;N=F.next()){N=N.value;var h=this.getModuleInfo(N);h&&!h.isLoaded()&&(this.removeExtraEdge(p,N),x.push(N))}this.loadMultiple(x)}this.isDisposed()||(this.moduleInfoMap[p].onLoad((0,_.CH)(this.getModuleContext,this))&&Vzn(this,new pT.ModuleLoadFailure(pT.ModuleLoadFailure.JSC$8796_Type.INIT_ERROR)),
_.Lp(this.userInitiatedLoadingModuleIds_,p),_.Lp(this.loadingModuleIds_,p),this.loadingModuleIds_.length===0&&jfv(this),this.lastInitialModuleId_&&p==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),o$(this),this.JSC$8799_currentlyLoadingModule_=null)}};
m3.prototype.isModuleLoading=function(p){if(_.oJ(this.loadingModuleIds_,p))return!0;for(var x=0;x<this.requestedModuleIdsQueue_.length;x++)if(_.oJ(this.requestedModuleIdsQueue_[x],p))return!0;return!1};
m3.prototype.load=function(p,x){return HcZ(this,[p],x)[p]};
m3.prototype.loadMultiple=function(p){return HcZ(this,p)};
var mtB=function(p,x){_.oJ(p.userInitiatedLoadingModuleIds_,x)||p.userInitiatedLoadingModuleIds_.push(x)};
m3.prototype.beforeLoadModuleCode=function(p){var x=this;this.JSC$8799_currentlyLoadingModule_&&this.JSC$8799_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8794_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[p]&&PA6(this,this.moduleInfoMap[p].deps_||[],function(F){F.module_=new Yf;_.Lp(x.loadingModuleIds_,F.getId())},function(F){return!F.isLoaded()});
this.JSC$8799_currentlyLoadingModule_=this.getModuleInfo(p)};
m3.prototype.handleLoadTimeout_=function(){Ocm(this,new pT.ModuleLoadFailure(pT.ModuleLoadFailure.JSC$8796_Type.TIMEOUT));jfv(this)};
var Ocm=function(p,x){p.requestedLoadingModuleIds_.length>1?p.requestedModuleIdsQueue_=p.requestedLoadingModuleIds_.map(function(F){return[F]}).concat(p.requestedModuleIdsQueue_):Vzn(p,x)},Vzn=function(p,x){var F=p.requestedLoadingModuleIds_;
p.loadingModuleIds_.length=0;for(var N=[],h=0;h<p.requestedModuleIdsQueue_.length;h++){var c=p.requestedModuleIdsQueue_[h].filter(function(K){var t=LTm(this,K);return Wu(F,function(d){return _.oJ(t,d)})},p);
_.UM(N,c)}for(h=0;h<F.length;h++)_.E$E(N,F[h]);for(h=0;h<N.length;h++){for(c=0;c<p.requestedModuleIdsQueue_.length;c++)_.Lp(p.requestedModuleIdsQueue_[c],N[h]);_.Lp(p.userInitiatedLoadingModuleIds_,N[h])}if(h=p.JSC$8799_callbackMap_.error)for(c=0;c<h.length;c++)for(var M=h[c],f=0;f<N.length;f++)M("error",N[f],x);for(N=0;N<F.length;N++)if(p.moduleInfoMap[F[N]])p.moduleInfoMap[F[N]].onError(x);p.requestedLoadingModuleIds_.length=0;o$(p)},jfv=function(p){for(;p.requestedModuleIdsQueue_.length;){var x=
p.requestedModuleIdsQueue_.shift().filter(function(F){return!this.getModuleInfo(F).isLoaded()},p);
if(x.length>0){p.loadModules_(x);return}}o$(p)};
m3.prototype.registerCallback=function(p,x){Array.isArray(p)||(p=[p]);for(var F=0;F<p.length;F++){var N=p[F],h=x,c=this.JSC$8799_callbackMap_;c[N]||(c[N]=[]);c[N].push(h)}};
m3.prototype.executeCallbacks_=function(p){for(var x=this.JSC$8799_callbackMap_[p],F=0;x&&F<x.length;F++)x[F](p)};
var PA6=function(p,x,F,N,h){N=N===void 0?function(){return!0}:N;
h=h===void 0?{}:h;x=_.a(x);for(var c=x.next();!c.done;c=x.next()){c=c.value;var M=p.getModuleInfo(c);!h[c]&&N(M)&&(h[c]=!0,PA6(p,M.deps_||[],F,N,h),F(M))}};
m3.prototype.dispose=function(){_.d$H(_.Q5.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8799_callbackMap_={};this.isDisposed_=!0};
m3.prototype.isDisposed=function(){return this.isDisposed_};
_.X2=function(){return new m3};var THK=[5E3,2E4],BHj=function(){this.JSC$7908_loader_=null;this.JSC$8806_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8806_queue_=[];this.JSC$8806_extraEdges_=Object.create(null);this.JSC$8806_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.E(BHj,uJl);_.l=BHj.prototype;_.l.setAllModuleInfoString=function(){this.JSC$8806_currentlyLoadingModule_&&this.JSC$8806_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8794_setLoaded()};
_.l.getModuleInfo=function(p){var x=this.JSC$8806_moduleInfoMap_[p];x||(x=new wW([],p),this.JSC$8806_moduleInfoMap_[p]=x);return x};
_.l.addExtraEdge=function(p,x){this.getModuleInfo(p).isLoaded()?this.load(x):(this.JSC$8806_extraEdges_[p]||(this.JSC$8806_extraEdges_[p]={}),this.JSC$8806_extraEdges_[p][x]=!0)};
_.l.removeExtraEdge=function(p,x){if(this.JSC$8806_extraEdges_[p]){delete this.JSC$8806_extraEdges_[p][x];for(var F in this.JSC$8806_extraEdges_[p])return;delete this.JSC$8806_extraEdges_[p]}};
_.l.isModuleLoading=function(p){return!!this.loadingModules_[p]};
_.l.load=function(p){Rh6(this,[p]);return k6v(this,p)};
_.l.loadMultiple=function(p){var x=this,F=Object.create(null),N=[];p.forEach(function(h){F[h]||(F[h]=k6v(x,h),N.push(h))});
Rh6(this,N);return F};
_.l.beforeLoadModuleCode=function(p){var x;((x=this.JSC$8806_currentlyLoadingModule_)==null?void 0:x.getId())==="synthetic_module_overhead"&&this.JSC$8794_setLoaded();var F,N;Ut6(this,(N=(F=this.JSC$8806_moduleInfoMap_[p])==null?void 0:F.deps_)!=null?N:[],function(h){h.module_=new Yf},function(h){return!h.isLoaded()});
this.JSC$8806_currentlyLoadingModule_=this.getModuleInfo(p)};
_.l.JSC$8794_setLoaded=function(){if(this.JSC$8806_currentlyLoadingModule_){var p=this.JSC$8806_currentlyLoadingModule_.getId(),x=[];if(this.JSC$8806_extraEdges_[p]){for(var F=_.a(Object.keys(this.JSC$8806_extraEdges_[p])),N=F.next();!N.done;N=F.next())N=N.value,this.getModuleInfo(N).isLoaded()||(this.removeExtraEdge(p,N),x.push(N));this.loadMultiple(x)}this.JSC$8806_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8806_currentlyLoadingModule_=null;(!this.isModuleLoading(p)&&/^sy[0-9a-z]{0,4}$/.test(p)||p==="synthetic_module_overhead")&&delete this.JSC$8806_moduleInfoMap_[p];this.unsetModulesAsLoading(p)}};
_.l.setModulesAsLoading=function(){var p=this;_.we.apply(0,arguments).forEach(function(x){p.loadingModules_[x]=!0})};
_.l.unsetModulesAsLoading=function(){var p=this;_.we.apply(0,arguments).forEach(function(x){delete p.loadingModules_[x]})};
var k6v=function(p,x){return new _.cZ(function(F,N){var h=p.getModuleInfo(x);h.isLoaded()?F(null):(h.registerCallback(function(){F(null)}),JGB(h,function(c){var M="Error loading "+x+": "+c;
c instanceof pT.ModuleLoadFailure&&c.url&&(M=M+", requested url: "+c.url.toString());N(Error(M))}))})},Rh6=function(p,x){x=x.filter(function(F){return!p.isModuleLoading(F)&&!p.getModuleInfo(F).isLoaded()});
x.length>0&&(p.setModulesAsLoading.apply(p,_.se(x)),p.JSC$8806_queue_.push(x),icl(p))},icl=function(p){for(var x={};p.activeLoads_<Infinity&&p.JSC$8806_queue_.length>0;x={finishLoad:void 0,
ids$jscomp$34:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})x.ids$jscomp$34=p.JSC$8806_queue_.shift().filter(function(F){return!p.getModuleInfo(F).isLoaded()}),x.ids$jscomp$34.length>0&&(p.activeLoads_++,x.finishLoad=function(F){return function(){p.activeLoads_--;
icl(p);F.finishLoad=function(){}}}(x),_.Xq(x.ids$jscomp$34.map(function(F){return k6v(p,F)})).then(function(F){return function(){(0,F.finishLoad)()}}(x)),x.attempt$jscomp$6=0,x.load$jscomp$1=function(F){return function(){if(Object.keys(p.JSC$8806_extraEdges_).length>0&&!p.JSC$7908_loader_.supportsExtraEdges)throw Error("sd");
p.JSC$7908_loader_.JSC$8789_loadModules(F.ids$jscomp$34,p.JSC$8806_moduleInfoMap_,{extraEdges:p.JSC$8806_extraEdges_,onError:function(N,h){var c=THK[F.attempt$jscomp$6++];c!==void 0?setTimeout(function(){(0,F.load$jscomp$1)()},c):(p.unsetModulesAsLoading.apply(p,_.se(F.ids$jscomp$34)),(0,F.finishLoad)(),F.ids$jscomp$34.forEach(function(M){M=p.getModuleInfo(M);
if(!M.isLoaded())M.onError(new pT.ModuleLoadFailure(pT.ModuleLoadFailure.JSC$8796_Type.CONSECUTIVE_FAILURES,N,F.ids$jscomp$34,h))}))}})}}(x),(0,x.load$jscomp$1)())},Ut6=function(p,x,F,N,h){N=N===void 0?function(){return!0}:N;
h=h===void 0?{}:h;x=_.a(x);for(var c=x.next();!c.done;c=x.next()){c=c.value;var M=p.getModuleInfo(c);!h[c]&&N(M)&&(h[c]=!0,Ut6(p,M.deps_||[],F,N,h),F(M))}};var IxB=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var KDZ=Symbol("vd");window.JSCompiler_renameProperty=function(p){return p};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var $t6=!IxB||HTMLElement.es5Shimmed||_.Mm.Reflect===void 0||_.Mm.customElements===void 0||_.Mm.customElements.polyfillWrapFlushCallback||!1,ehI,obd=function(){var p=HTMLElement;if($t6)return p;if(ehI!==void 0)return ehI;var x=_.Mm.Reflect,F=function(){return x.construct(p,[],this.constructor)};
F.prototype=p.prototype;F.prototype.constructor=F;F.es5Shimmed=!0;Object.setPrototypeOf(F,p);return ehI=F},pib=!1;$t6||pib||(pib=!0,_.Mm.HTMLElement=obd());/*

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 vqp=/(url\()([^)]*)(\))/g,twE=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,dDB,Ic;var Al=!window.ShadyDOM||!window.ShadyDOM.inUse,x4J=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),Fcm=!window.customElements.polyfillWrapFlushCallback,Nbm;if(Nbm=Al&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var h3J=new CSSStyleSheet;h3J.replaceSync("");var l2J=document.createElement("div");l2J.attachShadow({mode:"open"});l2J.shadowRoot.adoptedStyleSheets=[h3J];Nbm=l2J.shadowRoot.adoptedStyleSheets[0]===h3J}catch(p){Nbm=!1}
var c$Z=Nbm,a2B=window.Polymer&&window.Polymer.rootPath||CWz(document.baseURI||window.location.href),ZW=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,sik=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Gc=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,MTB=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,bL=window.Polymer&&window.Polymer.legacyOptimizations||!1,wg=window.Polymer&&window.Polymer.legacyWarnings||!1,D4C=window.Polymer&&window.Polymer.syncInitialRender||
!1,dg=window.Polymer&&window.Polymer.legacyUndefined||!1,f2J=window.Polymer&&window.Polymer.orderedComputed||!1,OH=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Lq=window.Polymer&&window.Polymer.fastDomIf||!1,Pa=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Kcj=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,qJB=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var Tk={},Z1J={},Jl=function(){return HTMLElement.apply(this,arguments)||this};
_.E(Jl,HTMLElement);Jl.import=function(p,x){return p?(p=Tk[p]||Z1J[p.toLowerCase()])&&x?p.querySelector(x):p:null};
Jl.prototype.attributeChangedCallback=function(p,x,F){x!==F&&this.register()};
Jl.prototype.register=function(p){if(p=p||this.id){if(Gc&&(Tk[p]||Z1J[p.toLowerCase()])!==void 0)throw Tk[p]=Z1J[p.toLowerCase()]=null,Error("wd`"+p);this.id=p;Tk[p]=Z1J[p.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.R8.Object.defineProperties(Jl.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var p=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;p=_.$l(this.getAttribute("assetpath")||"",p.baseURI);this.__assetpath=CWz(p)}return this.__assetpath}}});
_.R8.Object.defineProperties(Jl,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
Jl["import"]=Jl.import;Jl.prototype.modules=Tk;customElements.define("dom-module",Jl);var tTv=0,rIZ=0,el=[],d4j=0,SWw=!1,vOB=document.createTextNode(""),J$D,nN;(new window.MutationObserver(Eqw)).observe(vOB,{characterData:!0});_.Ba={after:function(p){return{run:function(x){return window.setTimeout(x,p)},
cancel:function(x){window.clearTimeout(x)}}},
run:function(p,x){return window.setTimeout(p,x)},
cancel:function(p){window.clearTimeout(p)}};
_.Z$={run:function(p){return window.requestAnimationFrame(p)},
cancel:function(p){window.cancelAnimationFrame(p)}};
J$D={run:function(p){return window.requestIdleCallback?window.requestIdleCallback(p):window.setTimeout(p,16)},
cancel:function(p){window.cancelIdleCallback?window.cancelIdleCallback(p):window.clearTimeout(p)}};
nN={run:function(p){SWw||(SWw=!0,vOB.textContent=d4j++);el.push(p);return tTv++},
cancel:function(p){var x=p-rIZ;if(x>=0){if(!el[x])throw Error("xd`"+p);el[x]=null}}};var CPv=0,R$=function(p){var x=p.__mixinApplications;x||(x=new WeakMap,p.__mixinApplications=x);var F=CPv++;return function(N){var h=N.__mixinSet;if(h&&h[F])return N;var c=x,M=c.get(N);M||(M=p(N),c.set(N,M),N=Object.create(M.__mixinSet||h||null),N[F]=!0,M.__mixinSet=N);return M}};_.qn=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(p){return ShadyDOM.patch(p)}:function(p){return p};var SJb=R$(function(p){var x=function(){var F=p.call(this)||this;F.__dataEnabled=!1;F.__dataReady=!1;F.__dataInvalid=!1;F.__data={};F.__dataPending=null;F.__dataOld=null;F.__dataInstanceProps=null;F.__dataCounter=0;F.__serializing=!1;F._initializeProperties();return F};
_.E(x,p);x.createProperties=function(F){var N=this.prototype,h;for(h in F)h in N||N._createPropertyAccessor(h)};
x.attributeNameForProperty=function(F){return F.toLowerCase()};
x.typeForProperty=function(){};
x.prototype._createPropertyAccessor=function(F,N){this._addPropertyToAttributeMap(F);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[F]||(this.__dataHasAccessor[F]=!0,this._definePropertyAccessor(F,N))};
x.prototype._addPropertyToAttributeMap=function(F){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var N=this.__dataAttributes[F];N||(N=this.constructor.attributeNameForProperty(F),this.__dataAttributes[N]=F);return N};
x.prototype._definePropertyAccessor=function(F,N){Object.defineProperty(this,F,{get:function(){return this.__data[F]},
set:N?function(){}:function(h){this._setPendingProperty(F,h,!0)&&this._invalidateProperties()}})};
x.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
x.prototype._initializeProperties=function(){for(var F in this.__dataHasAccessor)this.hasOwnProperty(F)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[F]=this[F],delete this[F])};
x.prototype._initializeInstanceProperties=function(F){Object.assign(this,F)};
x.prototype._setProperty=function(F,N){this._setPendingProperty(F,N)&&this._invalidateProperties()};
x.prototype._getProperty=function(F){return this.__data[F]};
x.prototype._setPendingProperty=function(F,N){var h=this.__data[F],c=this._shouldPropertyChange(F,N,h);c&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||F in this.__dataOld||(this.__dataOld[F]=h),this.__data[F]=N,this.__dataPending[F]=N);return c};
x.prototype._isPropertyPending=function(F){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(F))};
x.prototype._invalidateProperties=function(){var F=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,nN.run(function(){F.__dataInvalid&&(F.__dataInvalid=!1,F._flushProperties())}))};
x.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
x.prototype._flushProperties=function(){this.__dataCounter++;var F=this.__data,N=this.__dataPending,h=this.__dataOld;this._shouldPropertiesChange(F,N,h)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(F,N,h));this.__dataCounter--};
x.prototype._shouldPropertiesChange=function(F,N){return!!N};
x.prototype._propertiesChanged=function(){};
x.prototype._shouldPropertyChange=function(F,N,h){return h!==N&&(h===h||N===N)};
x.prototype.attributeChangedCallback=function(F,N,h,c){N!==h&&this._attributeToProperty(F,h);p.prototype.attributeChangedCallback&&p.prototype.attributeChangedCallback.call(this,F,N,h,c)};
x.prototype._attributeToProperty=function(F,N,h){if(!this.__serializing){var c=this.__dataAttributes;F=c&&c[F]||F;this[F]=this._deserializeValue(N,h||this.constructor.typeForProperty(F))}};
x.prototype._propertyToAttribute=function(F,N,h){this.__serializing=!0;h=arguments.length<3?this[F]:h;this._valueToNodeAttribute(this,h,N||this.constructor.attributeNameForProperty(F));this.__serializing=!1};
x.prototype._valueToNodeAttribute=function(F,N,h){N=this._serializeValue(N);if(h==="class"||h==="name"||h==="slot")F=(0,_.qn)(F);N===void 0?F.removeAttribute(h):F.setAttribute(h,N===""&&window.trustedTypes?window.trustedTypes.emptyScript:N)};
x.prototype._serializeValue=function(F){switch(typeof F){case "boolean":return F?"":void 0;default:return F!=null?F.toString():void 0}};
x.prototype._deserializeValue=function(F,N){switch(N){case Boolean:return F!==null;case Number:return Number(F);default:return F}};
return x});var r$B=0,XcE=[];var EOj=R$(function(p){function x(c){c=Object.getPrototypeOf(c);return c.prototype instanceof h?c:null}
function F(c){if(!c.hasOwnProperty("__ownProperties")){var M=null;if(c.hasOwnProperty("properties")){var f=c.properties;if(f){M={};for(var K in f){var t=f[K];M[K]=typeof t==="function"?{type:t}:t}}}c.__ownProperties=M}return c.__ownProperties}
var N=SJb(p),h=function(){return N.apply(this,arguments)||this};
_.E(h,N);h.finalize=function(){if(!this.hasOwnProperty("__finalized")){var c=x(this);c&&c.finalize();this.__finalized=!0;this._finalizeClass()}};
h._finalizeClass=function(){var c=F(this);c&&this.createProperties(c)};
h.typeForProperty=function(c){return(c=this._properties[c])&&c.type};
h.prototype._initializeProperties=function(){r$B++;this.constructor.finalize();N.prototype._initializeProperties.call(this)};
h.prototype.connectedCallback=function(){N.prototype.connectedCallback&&N.prototype.connectedCallback.call(this);this._enableProperties()};
h.prototype.disconnectedCallback=function(){N.prototype.disconnectedCallback&&N.prototype.disconnectedCallback.call(this)};
_.R8.Object.defineProperties(h,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var c=this;if(!this.hasOwnProperty("__observedAttributes")){gqr(this.prototype);var M=this._properties;this.__observedAttributes=M?Object.keys(M).map(function(f){return c.prototype._addPropertyToAttributeMap(f)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var c=x(this);this.__properties=Object.assign({},c&&c._properties,F(this))}return this.__properties}}});
return h});var QIH={},zcE=/-[a-z]/g,sIE=/([A-Z])/g;for(var XiC={},gOk=HTMLElement.prototype;gOk;){for(var QuJ=Object.getOwnPropertyNames(gOk),z3Z=0;z3Z<QuJ.length;z3Z++)XiC[QuJ[z3Z]]=!0;gOk=Object.getPrototypeOf(gOk)}var suk=window.trustedTypes?function(p){return trustedTypes.isHTML(p)||trustedTypes.isScript(p)||trustedTypes.isScriptURL(p)}:function(){return!1},nO6=R$(function(p){var x=SJb(p);
p=function(){return x.apply(this,arguments)||this};
_.E(p,x);p.createPropertiesForAttributes=function(){for(var F=this.observedAttributes,N=0;N<F.length;N++)this.prototype._createPropertyAccessor(pN(F[N]))};
p.attributeNameForProperty=function(F){return xM(F)};
p.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);x.prototype._initializeProperties.call(this)};
p.prototype._initializeProtoProperties=function(F){for(var N in F)this._setProperty(N,F[N])};
p.prototype._ensureAttribute=function(F,N){this.hasAttribute(F)||this._valueToNodeAttribute(this,N,F)};
p.prototype._serializeValue=function(F){switch(typeof F){case "object":if(F instanceof Date)return F.toString();if(F){if(suk(F))return F;try{return JSON.stringify(F)}catch(N){return""}}default:return x.prototype._serializeValue.call(this,F)}};
p.prototype._deserializeValue=function(F,N){switch(N){case Object:try{var h=JSON.parse(F)}catch(c){h=F}break;case Array:try{h=JSON.parse(F)}catch(c){h=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+F)}break;case Date:h=isNaN(F)?String(F):Number(F);h=new Date(h);break;default:h=x.prototype._deserializeValue.call(this,F,N)}return h};
p.prototype._definePropertyAccessor=function(F,N){if(!XiC[F]){var h=this[F];h!==void 0&&(this.__data?this._setPendingProperty(F,h):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[F]=h))}x.prototype._definePropertyAccessor.call(this,F,N)};
p.prototype._hasAccessor=function(F){return this.__dataHasAccessor&&this.__dataHasAccessor[F]};
p.prototype._isPropertyPending=function(F){return!!(this.__dataPending&&F in this.__dataPending)};
return p});var y$J={"dom-if":!0,"dom-repeat":!0},b1m=!1,A$I=!1,u4m=function(){var p=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(x){return x}});
return function(x,F,N){F=F.getAttribute(N);p&&N.startsWith("on-")?x.setAttribute(N,p.createScript(F,N)):x.setAttribute(N,F)}}(),YJm=R$(function(p){var x=function(){return p.apply(this,arguments)||this};
_.E(x,p);x._parseTemplate=function(F,N){if(!F._templateInfo){var h=F._templateInfo={};h.nodeInfoList=[];h.nestedTemplate=!!N;h.stripWhiteSpace=N&&N.stripWhiteSpace||F.hasAttribute&&F.hasAttribute("strip-whitespace");this._parseTemplateContent(F,h,{parent:null})}return F._templateInfo};
x._parseTemplateContent=function(F,N,h){return this._parseTemplateNode(F.content,N,h)};
x._parseTemplateNode=function(F,N,h){var c=!1;F.localName!="template"||F.hasAttribute("preserve-content")?F.localName==="slot"&&(N.hasInsertionPoint=!0):c=this._parseTemplateNestedTemplate(F,N,h)||c;if(!b1m){b1m=!0;var M=document.createElement("textarea");M.placeholder="a";A$I=M.placeholder===M.textContent}A$I&&F.localName==="textarea"&&F.placeholder&&F.placeholder===F.textContent&&(F.textContent=null);F.firstChild&&this._parseTemplateChildNodes(F,N,h);F.hasAttributes&&F.hasAttributes()&&(c=this._parseTemplateNodeAttributes(F,
N,h)||c);return c||h.noted};
x._parseTemplateChildNodes=function(F,N,h){if(F.localName!=="script"&&F.localName!=="style")for(var c=F.firstChild,M=0,f;c;c=f){if(c.localName=="template"){var K=c.getAttribute("is");if(K&&y$J[K])for(f=c,f.removeAttribute("is"),c=f.ownerDocument.createElement(K),f.parentNode.replaceChild(c,f),c.appendChild(f);f.attributes.length;)K=f.attributes[0].name,u4m(c,f,K),f.removeAttribute(K)}f=c.nextSibling;if(c.nodeType===Node.TEXT_NODE){for(K=f;K&&K.nodeType===Node.TEXT_NODE;)c.textContent+=K.textContent,
f=K.nextSibling,F.removeChild(K),K=f;if(N.stripWhiteSpace&&!c.textContent.trim()){F.removeChild(c);continue}}K={parentIndex:M,parentInfo:h};this._parseTemplateNode(c,N,K)&&(K.infoIndex=N.nodeInfoList.push(K)-1);c.parentNode&&M++}};
x._parseTemplateNestedTemplate=function(F,N,h){N=this._parseTemplate(F,N);(N.content=F.content.ownerDocument.createDocumentFragment()).appendChild(F.content);h.templateInfo=N;return!0};
x._parseTemplateNodeAttributes=function(F,N,h){for(var c=!1,M=Array.from(F.attributes),f=M.length-1,K;K=M[f];f--)c=this._parseTemplateNodeAttribute(F,N,h,K.name,K.value)||c;return c};
x._parseTemplateNodeAttribute=function(F,N,h,c,M){return c.slice(0,3)==="on-"?(F.removeAttribute(c),h.events=h.events||[],h.events.push({name:c.slice(3),value:M}),!0):c==="id"?(h.id=M,!0):!1};
x._contentForTemplate=function(F){var N=F._templateInfo;return N&&N.content||F.content};
x.prototype._stampTemplate=function(F,N){F&&!F.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(F);N=N||this.constructor._parseTemplate(F);var h=N.nodeInfoList;F=document.importNode(N.content||F.content,!0);F.__noInsertionPoint=!N.hasInsertionPoint;var c=F.nodeList=Array(h.length);F.$={};for(var M=0,f=h.length,K=void 0;M<f&&(K=h[M]);M++){var t=c[M]=nqE(F,K);K.id&&(F.$[K.id]=t);var d=t,v=K,C=N;v.templateInfo&&(d._templateInfo=v.templateInfo,d._parentTemplateInfo=
C);if(K.events&&K.events.length)for(d=0,v=K.events,C=void 0;d<v.length&&(C=v[d]);d++)this._addMethodEventListenerToNode(t,C.name,C.value,this)}return F};
x.prototype._addMethodEventListenerToNode=function(F,N,h,c){h=yIk(c||F,h);this._addEventListenerToNode(F,N,h);return h};
x.prototype._addEventListenerToNode=function(F,N,h){F.addEventListener(N,h)};
x.prototype._removeEventListenerFromNode=function(F,N,h){F.removeEventListener(N,h)};
return x});var fN=0,tl=[],wiB={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},GtI=/[A-Z]/,VTk=function(p,x,F,N,h){var c=h?Nn(p):p;if(x=x[c])for(c=0;c<x.length;c++){var M=x[c];if(M.info.lastRun!==fN&&(!h||Gur(p,M.trigger))){M.info.lastRun=fN;M=M.info;for(var f=F,K=N,t=0,d=f.length-1,v=-1;t<=d;){var C=t+d>>1,X=K.get(f[C].methodInfo)-K.get(M.methodInfo);if(X<0)t=C+1;else if(X>0)d=C-1;else{v=C;break}}v<
0&&(v=d+1);f.splice(v,0,M)}}},iEJ=[],Wcl=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"),UH=R$(function(p){var x=YJm(nO6(p));
p=function(){var F=x.call(this)||this;F.__isPropertyEffectsClient=!0;return F};
_.E(p,x);p.prototype._initializeProperties=function(){x.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};
p.prototype._registerHost=function(){if(kf.length){var F=kf[kf.length-1];F._enqueueClient(this);this.__dataHost=F}};
p.prototype._initializeProtoProperties=function(F){this.__data=Object.create(F);this.__dataPending=Object.create(F);this.__dataOld={}};
p.prototype._initializeInstanceProperties=function(F){var N=this.__readOnly,h;for(h in F)N&&N[h]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[h]=this.__dataPending[h]=F[h])};
p.prototype._addPropertyEffect=function(F,N,h){this._createPropertyAccessor(F,N=="__readOnly");var c=wcJ(this,N,!0)[F];c||(c=this[N][F]=[]);c.push(h)};
p.prototype._removePropertyEffect=function(F,N,h){F=wcJ(this,N,!0)[F];h=F.indexOf(h);h>=0&&F.splice(h,1)};
p.prototype._hasPropertyEffect=function(F,N){N=this[N];return!(!N||!N[F])};
p.prototype._hasReadOnlyEffect=function(F){return this._hasPropertyEffect(F,"__readOnly")};
p.prototype._hasNotifyEffect=function(F){return this._hasPropertyEffect(F,"__notifyEffects")};
p.prototype._hasReflectEffect=function(F){return this._hasPropertyEffect(F,"__reflectEffects")};
p.prototype._hasComputedEffect=function(F){return this._hasPropertyEffect(F,"__computeEffects")};
p.prototype._setPendingPropertyOrPath=function(F,N,h,c){if(c||Nn(Array.isArray(F)?F[0]:F)!==F){if(!c&&(c=DW(this,F),F=YWJ(this,F,N),!F||!x.prototype._shouldPropertyChange.call(this,F,N,c)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(F,N,h)){if(h=this.__dataLinkedPaths)for(var M in h)c=h[M],cQ(M,F)?(c=a8(M,c,F),this._setPendingPropertyOrPath(c,N,!0,!0)):cQ(c,F)&&(c=a8(c,M,F),this._setPendingPropertyOrPath(c,N,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[F])return this._setPendingProperty(F,
N,h);this[F]=N}return!1};
p.prototype._setUnmanagedPropertyToNode=function(F,N,h){if(h!==F[N]||typeof h=="object")N==="className"&&(F=(0,_.qn)(F)),F[N]=h};
p.prototype._setPendingProperty=function(F,N,h){var c=this.__dataHasPaths&&FP(F);if(this._shouldPropertyChange(F,N,(c?this.__dataTemp:this.__data)[F])){this.__dataPending||(this.__dataPending={},this.__dataOld={});F in this.__dataOld||(this.__dataOld[F]=this.__data[F]);c?this.__dataTemp[F]=N:this.__data[F]=N;this.__dataPending[F]=N;if(c||this.__notifyEffects&&this.__notifyEffects[F])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[F]=h;return!0}return!1};
p.prototype._setProperty=function(F,N){this._setPendingProperty(F,N,!0)&&this._invalidateProperties()};
p.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
p.prototype._enqueueClient=function(F){this.__dataPendingClients=this.__dataPendingClients||[];F!==this&&this.__dataPendingClients.push(F)};
p.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
p.prototype.__enableOrFlushClients=function(){var F=this.__dataPendingClients;if(F){this.__dataPendingClients=null;for(var N=0;N<F.length;N++){var h=F[N];h.__dataEnabled?h.__dataPending&&h._flushProperties():h._enableProperties()}}};
p.prototype._readyClients=function(){this.__enableOrFlushClients()};
p.prototype.setProperties=function(F,N){for(var h in F)!N&&this.__readOnly&&this.__readOnly[h]||this._setPendingPropertyOrPath(h,F[h],!0);this._invalidateProperties()};
p.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
p.prototype._propertiesChanged=function(F,N,h){F=this.__dataHasPaths;this.__dataHasPaths=!1;var c;if(c=this.__computeEffects)if(f2J){fN++;var M=OEk(this),f=[],K;for(K in N)VTk(K,c,f,M,F);for(;K=f.shift();)LDr(this,"",N,h,K)&&VTk(K.methodInfo,c,f,M,F);Object.assign(h,this.__dataOld);Object.assign(N,this.__dataPending);this.__dataPending=null}else for(M=N;KN(this,c,M,h,F);)Object.assign(h,this.__dataOld),Object.assign(N,this.__dataPending),M=this.__dataPending,this.__dataPending=null;c=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(N,h,F);this._flushClients();KN(this,this.__reflectEffects,N,h,F);KN(this,this.__observeEffects,N,h,F);if(c){M=this.__notifyEffects;f=fN++;for(var t in c)if(c[t]){if(K=M){var d=M;K=f;var v=t,C=N,X=h,Q=F,b=!1,A=Q?Nn(v):v;if(d=d[A]){A=0;for(var Y=d.length,O=void 0;A<Y&&(O=d[A]);A++)O.info&&O.info.lastRun===K||Q&&!Gur(v,O.trigger)||(O.info&&(O.info.lastRun=K),O.fn(this,v,C,X,O.info,Q,void 0),b=!0)}K=b}if(K)var Fw=!0;else{if(K=F)K=t,v=N,C=Nn(K),C!==
K?(C=xM(C)+"-changed",WDJ(this,C,v[K],K),K=!0):K=!1;K&&(Fw=!0)}}var R;Fw&&(R=this.__dataHost)&&R._invalidateProperties&&R._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
p.prototype._propagatePropertyChanges=function(F,N,h){this.__propagateEffects&&KN(this,this.__propagateEffects,F,N,h);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,F,N,h)};
p.prototype._runEffectsForTemplate=function(F,N,h,c){var M=this,f=function(K,t){KN(M,F.propertyEffects,K,h,t,F.nodeList);for(var d=F.firstChild;d;d=d.nextSibling)M._runEffectsForTemplate(d,K,h,t)};
F.runEffects?F.runEffects(f,N,c):f(N,c)};
p.prototype.linkPaths=function(F,N){F=Mn(F);N=Mn(N);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[F]=N};
p.prototype.unlinkPaths=function(F){F=Mn(F);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[F]};
p.prototype.notifySplices=function(F,N){var h={path:""};F=DW(this,F,h);p$p(this,F,h.path,N)};
p.prototype.get=function(F,N){return DW(N||this,F)};
p.prototype.set=function(F,N,h){h?YWJ(h,F,N):this.__readOnly&&this.__readOnly[F]||this._setPendingPropertyOrPath(F,N,!0)&&this._invalidateProperties()};
p.prototype.push=function(F){var N=_.we.apply(1,arguments),h={path:""},c=DW(this,F,h),M=c.length,f=c.push.apply(c,_.se(N));N.length&&vQ(this,c,h.path,M,N.length,[]);return f};
p.prototype.pop=function(F){var N={path:""};F=DW(this,F,N);var h=!!F.length,c=F.pop();h&&vQ(this,F,N.path,F.length,0,[c]);return c};
p.prototype.splice=function(F,N,h){var c=_.we.apply(3,arguments),M={path:""},f=DW(this,F,M);N<0?N=f.length-Math.floor(-N):N&&(N=Math.floor(N));var K=arguments.length===2?f.splice(N):f.splice.apply(f,[N,h].concat(_.se(c)));(c.length||K.length)&&vQ(this,f,M.path,N,c.length,K);return K};
p.prototype.shift=function(F){var N={path:""};F=DW(this,F,N);var h=!!F.length,c=F.shift();h&&vQ(this,F,N.path,0,0,[c]);return c};
p.prototype.unshift=function(F){var N=_.we.apply(1,arguments),h={path:""},c=DW(this,F,h),M=c.unshift.apply(c,_.se(N));N.length&&vQ(this,c,h.path,0,N.length,[]);return M};
p.prototype.notifyPath=function(F,N){if(arguments.length==1){var h={path:""};N=DW(this,F,h);h=h.path}else h=Array.isArray(F)?Mn(F):F;this._setPendingPropertyOrPath(h,N,!0,!0)&&this._invalidateProperties()};
p.prototype._createReadOnlyProperty=function(F,N){this._addPropertyEffect(F,"__readOnly");N&&(this["_set"+(F[0].toUpperCase()+F.substring(1))]=function(h){this._setProperty(F,h)})};
p.prototype._createPropertyObserver=function(F,N,h){var c={property:F,method:N,dynamicFn:!!h};this._addPropertyEffect(F,"__observeEffects",{fn:VwE,info:c,trigger:{name:F}});h&&this._addPropertyEffect(N,"__observeEffects",{fn:VwE,info:c,trigger:{name:N}})};
p.prototype._createMethodObserver=function(F,N){var h=$DZ(F);if(!h)throw Error("yd`"+F);kud(this,h,"__observeEffects",jI6,null,N)};
p.prototype._createNotifyingProperty=function(F){this._addPropertyEffect(F,"__notifyEffects",{fn:HE6,info:{eventName:xM(F)+"-changed",property:F}})};
p.prototype._createReflectedProperty=function(F){var N=this.constructor.attributeNameForProperty(F);N[0]==="-"?console.warn("Property "+F+" cannot be reflected to attribute "+N+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(F,"__reflectEffects",{fn:mDw,info:{attrName:N}})};
p.prototype._createComputedProperty=function(F,N,h){var c=$DZ(N);if(!c)throw Error("zd`"+N);N=kud(this,c,"__computeEffects",LDr,F,h);wcJ(this,"__computeInfo")[F]=N};
p.prototype._marshalArgs=function(F,N,h){for(var c=this.__data,M=[],f=0,K=F.length;f<K;f++){var t=F[f],d=t.name,v=t.structured,C=t.wildcard,X=t.value;t.literal||(C?(t=cQ(d,N),v=ec6(c,h,t?N:d),X={path:t?N:d,value:v,base:t?DW(c,d):v}):X=v?ec6(c,h,d):c[d]);if(dg&&!this._overrideLegacyUndefined&&X===void 0&&F.length>1)return tl;M[f]=X}return M};
p.addPropertyEffect=function(F,N,h){this.prototype._addPropertyEffect(F,N,h)};
p.createPropertyObserver=function(F,N,h){this.prototype._createPropertyObserver(F,N,h)};
p.createMethodObserver=function(F,N){this.prototype._createMethodObserver(F,N)};
p.createNotifyingProperty=function(F){this.prototype._createNotifyingProperty(F)};
p.createReadOnlyProperty=function(F,N){this.prototype._createReadOnlyProperty(F,N)};
p.createReflectedProperty=function(F){this.prototype._createReflectedProperty(F)};
p.createComputedProperty=function(F,N,h){this.prototype._createComputedProperty(F,N,h)};
p.bindTemplate=function(F){return this.prototype._bindTemplate(F)};
p.prototype._bindTemplate=function(F,N){var h=this.constructor._parseTemplate(F),c=this.__preBoundTemplateInfo==h;if(!c)for(var M in h.propertyEffects)this._createPropertyAccessor(M);N?(h=Object.create(h),h.wasPreBound=c,this.__templateInfo?(F=F._parentTemplateInfo||this.__templateInfo,N=F.lastChild,h.parent=F,F.lastChild=h,(h.previousSibling=N)?N.nextSibling=h:F.firstChild=h):this.__templateInfo=h):this.__preBoundTemplateInfo=h;return h};
p._addTemplatePropertyEffect=function(F,N,h){(F.hostProps=F.hostProps||{})[N]=!0;F=F.propertyEffects=F.propertyEffects||{};(F[N]=F[N]||[]).push(h)};
p.prototype._stampTemplate=function(F,N){N=N||this._bindTemplate(F,!0);kf.push(this);F=x.prototype._stampTemplate.call(this,F,N);kf.pop();N.nodeList=F.nodeList;if(!N.wasPreBound)for(var h=N.childNodes=[],c=F.firstChild;c;c=c.nextSibling)h.push(c);F.templateInfo=N;h=N.nodeList;c=N.nodeInfoList;if(c.length)for(var M=0;M<c.length;M++){var f=h[M],K=c[M].bindings;if(K)for(var t=0;t<K.length;t++){var d=K[t],v=f,C=d;if(C.isCompound){for(var X=v.__dataCompoundStorage||(v.__dataCompoundStorage={}),Q=C.parts,
b=Array(Q.length),A=0;A<Q.length;A++)b[A]=Q[A].literal;Q=C.target;X[Q]=b;C.literal&&C.kind=="property"&&(Q==="className"&&(v=(0,_.qn)(v)),v[Q]=C.literal)}Rcz(f,this,d)}f.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(N,this.__data,null,!1),this._flushClients());return F};
p.prototype._removeBoundDom=function(F){F=F.templateInfo;var N=F.previousSibling,h=F.nextSibling,c=F.parent;N?N.nextSibling=h:c&&(c.firstChild=h);h?h.previousSibling=N:c&&(c.lastChild=N);F.nextSibling=F.previousSibling=null;F=F.childNodes;for(N=0;N<F.length;N++)h=F[N],(0,_.qn)((0,_.qn)(h).parentNode).removeChild(h)};
p._parseTemplateNode=function(F,N,h){var c=x._parseTemplateNode.call(this,F,N,h);if(F.nodeType===Node.TEXT_NODE){var M=this._parseBindings(F.textContent,N);M&&(F.textContent=UD$(M)||" ",BVp(this,N,h,"text","textContent",M),c=!0)}return c};
p._parseTemplateNodeAttribute=function(F,N,h,c,M){var f=this._parseBindings(M,N);if(f){M=c;var K="property";GtI.test(c)?K="attribute":c[c.length-1]=="$"&&(c=c.slice(0,-1),K="attribute");var t=UD$(f);t&&K=="attribute"&&(c=="class"&&F.hasAttribute("class")&&(t+=" "+F.getAttribute(c)),F.setAttribute(c,t));K=="attribute"&&M=="disable-upgrade$"&&F.setAttribute(c,"");F.localName==="input"&&M==="value"&&F.setAttribute(M,"");F.removeAttribute(M);K==="property"&&(c=pN(c));BVp(this,N,h,K,c,f,t);return!0}return x._parseTemplateNodeAttribute.call(this,
F,N,h,c,M)};
p._parseTemplateNestedTemplate=function(F,N,h){var c=x._parseTemplateNestedTemplate.call(this,F,N,h),M=F.parentNode,f=h.templateInfo,K=M.localName==="dom-if",t=M.localName==="dom-repeat";OH&&(K||t)&&(M.removeChild(F),h=h.parentInfo,h.templateInfo=f,h.noted=!0,c=!1);F=f.hostProps;if(Lq&&K)F&&(N.hostProps=Object.assign(N.hostProps||{},F),OH||(h.parentInfo.noted=!0));else for(var d in F)BVp(this,N,h,"property","_host_"+d,[{mode:"{",source:d,dependencies:[d],hostProp:!0}]);return c};
p._parseBindings=function(F,N){for(var h=[],c=0,M;(M=Wcl.exec(F))!==null;){M.index>c&&h.push({literal:F.slice(c,M.index)});c=M[1][0];var f=!!M[2];M=M[3].trim();var K=!1,t="",d=-1;c=="{"&&(d=M.indexOf("::"))>0&&(t=M.substring(d+2),M=M.substring(0,d),K=!0);d=$DZ(M);var v=[];if(d){var C=d,X=C.args;C=C.methodName;for(var Q=0;Q<X.length;Q++){var b=X[Q];b.literal||v.push(b)}if((X=N.dynamicFns)&&X[C]||d.static)v.push(C),d.dynamicFn=!0}else v.push(M);h.push({source:M,mode:c,negate:f,customEvent:K,signature:d,
dependencies:v,event:t});c=Wcl.lastIndex}c&&c<F.length&&(F=F.substring(c))&&h.push({literal:F});return h.length?h:null};
p._evaluateBinding=function(F,N,h,c,M,f){F=N.signature?jI6(F,h,c,M,N.signature):h!=N.source?DW(F,N.source):f&&FP(h)?DW(F,h):F.__data[h];N.negate&&(F=!F);return F};
_.R8.Object.defineProperties(p.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return wiB}}});
return p}),kf=[];var H1k=window.ShadyCSS&&window.ShadyCSS.cssBuild,il=R$(function(p){function x(N,h,c,M){if(!H1k){for(var f=h.content.querySelectorAll("style"),K=hfJ(h),t=lXk(c),d=h.content.firstElementChild,v=0;v<t.length;v++){var C=t[v];C.textContent=N._processStyleText(C.textContent,M);h.content.insertBefore(C,d)}for(d=t=0;d<K.length;d++)v=K[d],C=f[t],C!==v?(v=v.cloneNode(!0),C.parentNode.insertBefore(v,C)):t++,v.textContent=N._processStyleText(v.textContent,M)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(h,
c);if(qJB&&H1k&&c$Z&&(h=h.content.querySelectorAll("style"))){var X="";Array.from(h).forEach(function(Q){X+=Q.textContent;Q.parentNode.removeChild(Q)});
N._styleSheet=new CSSStyleSheet;N._styleSheet.replaceSync(X)}}
var F=EOj(UH(p));p=function(){return F.call(this)||this};
_.E(p,F);p._finalizeClass=function(){F._finalizeClass.call(this);var N;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(N=this.__ownObservers)&&this.createObservers(N,this._properties);this._prepareTemplate()};
p._prepareTemplate=function(){var N=this.template;N&&(typeof N==="string"?(console.error("template getter must return HTMLTemplateElement"),N=null):bL||(N=N.cloneNode(!0)));this.prototype._template=N};
p.createProperties=function(N){for(var h in N){var c=this.prototype,M=h,f=N[h],K=N;f.computed&&(f.readOnly=!0);f.computed&&(c._hasReadOnlyEffect(M)?console.warn("Cannot redefine computed property '"+M+"'."):c._createComputedProperty(M,f.computed,K));f.readOnly&&!c._hasReadOnlyEffect(M)?c._createReadOnlyProperty(M,!f.computed):f.readOnly===!1&&c._hasReadOnlyEffect(M)&&console.warn("Cannot make readOnly property '"+M+"' non-readOnly.");f.reflectToAttribute&&!c._hasReflectEffect(M)?c._createReflectedProperty(M):
f.reflectToAttribute===!1&&c._hasReflectEffect(M)&&console.warn("Cannot make reflected property '"+M+"' non-reflected.");f.notify&&!c._hasNotifyEffect(M)?c._createNotifyingProperty(M):f.notify===!1&&c._hasNotifyEffect(M)&&console.warn("Cannot make notify property '"+M+"' non-notify.");f.observer&&c._createPropertyObserver(M,f.observer,K[f.observer]);c._addPropertyToAttributeMap(M)}};
p.createObservers=function(N,h){for(var c=this.prototype,M=0;M<N.length;M++)c._createMethodObserver(N[M],h)};
p.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);F.prototype._initializeProperties.call(this);this.rootPath=a2B;this.importPath=this.constructor.importPath;var N=this.constructor;if(!N.hasOwnProperty("__propertyDefaults")){N.__propertyDefaults=null;var h=N._properties,c;for(c in h){var M=h[c];"value"in M&&(N.__propertyDefaults=N.__propertyDefaults||{},N.__propertyDefaults[c]=M)}}if(N=N.__propertyDefaults)for(var f in N)h=N[f],
this._canApplyPropertyDefault(f)&&(h=typeof h.value=="function"?h.value.call(this):h.value,this._hasAccessor(f)?this._setPendingProperty(f,h,!0):this[f]=h)};
p.prototype._canApplyPropertyDefault=function(N){return!this.hasOwnProperty(N)};
p._processStyleText=function(N,h){return JIB(N,h)};
p._finalizeTemplate=function(N){var h=this.prototype._template;if(h&&!h.__polymerFinalized){h.__polymerFinalized=!0;var c=this.importPath;c=c?_.$l(c):"";x(this,h,N,c);this.prototype._bindTemplate(h)}};
p.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);F.prototype.connectedCallback.call(this)};
p.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);F.prototype.ready.call(this)};
p.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));F.prototype._readyClients.call(this)};
p.prototype._attachDom=function(N){var h=(0,_.qn)(this);if(h.attachShadow)return N?(h.shadowRoot||(h.attachShadow({mode:"open",shadyUpgradeFragment:N}),h.shadowRoot.appendChild(N),this.constructor._styleSheet&&(h.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),D4C&&window.ShadyDOM&&window.ShadyDOM.flushInitial(h.shadowRoot),h.shadowRoot):null;throw Error("Bd");};
p.prototype.updateStyles=function(N){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,N)};
p.prototype.resolveUrl=function(N,h){!h&&this.importPath&&(h=_.$l(this.importPath));return _.$l(N,h)};
p._parseTemplateContent=function(N,h,c){h.dynamicFns=h.dynamicFns||this._properties;return F._parseTemplateContent.call(this,N,h,c)};
p._addTemplatePropertyEffect=function(N,h,c){!wg||h in this._properties||c.info.part.signature&&c.info.part.signature.static||c.info.part.hostProp||N.nestedTemplate||console.warn("Property '"+h+"' used in template but not declared in 'properties'; attribute will not be observed.");return F._addTemplatePropertyEffect.call(this,N,h,c)};
_.R8.Object.defineProperties(p,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var N=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof N==="function"&&(N=N());if(N===void 0){if(N=this.hasOwnProperty("is")){N=this.is;var h=null;if(N&&(!Gc||MTB)&&(h=Jl.import(N,"template"),Gc&&!h))throw Error("Ad`"+N);N=h}N=N||Object.getPrototypeOf(this.prototype).constructor.template}this._template=N}return this._template},
set:function(N){this._template=N}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var N=this.importMeta;N?this._importPath=CWz(N.url):this._importPath=(N=Jl.import(this.is))&&N.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return p});var m4b=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(p){return p}}),qgM=function(p,x){oOB(p,x);
this.value=x.reduce(function(F,N,h){return F+ZP6(N)+p[h+1]},p[0]).toString()},oOB;
qgM.prototype.toString=function(){return this.value};
_.O1C=function(p){var x=_.we.apply(1,arguments);oOB(p,x);var F=document.createElement("template");x=x.reduce(function(N,h,c){if(h instanceof HTMLTemplateElement)h=h.innerHTML;else if(h instanceof qgM)h=ZP6(h);else throw Error("Dd`"+h);return N+h+p[c+1]},p[0]);
m4b&&(x=m4b.createHTML(x));F.innerHTML=x;return F};
oOB=function(p,x){if(!Array.isArray(p)||!Array.isArray(p.raw)||x.length!==p.length-1)throw new TypeError("Ed");};var I$=il(HTMLElement);var jun=R$(function(p){var x=il(p);p=function(){var F=x.call(this)||this;F.__lastItems=null;F.__lastMulti=null;F.__selectedMap=null;return F};
_.E(p,x);p.prototype.__updateSelection=function(F,N){var h=N.path;h=="items"?(N=N.base||[],h=this.__lastItems,F!==this.__lastMulti&&this.clearSelection(),h&&(h=KYd(N,h),this.__applySplices(h)),this.__lastItems=N,this.__lastMulti=F):N.path=="items.splices"?this.__applySplices(N.value.indexSplices):(F=h.slice(6),N=parseInt(F,10),F.indexOf(".")<0&&F==N&&this.__deselectChangedIdx(N))};
p.prototype.__applySplices=function(F){for(var N=this,h=this.__selectedMap,c={},M=0;M<F.length;c={s$jscomp$108:void 0},M++){c.s$jscomp$108=F[M];h.forEach(function(d){return function(v,C){v<d.s$jscomp$108.index||(v>=d.s$jscomp$108.index+d.s$jscomp$108.removed.length?h.set(C,v+d.s$jscomp$108.addedCount-d.s$jscomp$108.removed.length):h.set(C,-1))}}(c));
for(var f=0;f<c.s$jscomp$108.addedCount;f++){var K=c.s$jscomp$108.index+f;h.has(this.items[K])&&h.set(this.items[K],K)}}this.__updateLinks();var t=0;h.forEach(function(d,v){d<0?(N.multi?N.splice("selected",t,1):N.selected=N.selectedItem=null,h.delete(v)):t++})};
p.prototype.__updateLinks=function(){var F=this;this.__dataLinkedPaths={};if(this.multi){var N=0;this.__selectedMap.forEach(function(h){h>=0&&F.linkPaths("items."+h,"selected."+N++)})}else this.__selectedMap.forEach(function(h){F.linkPaths("selected","items."+h);
F.linkPaths("selectedItem","items."+h)})};
p.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
p.prototype.isSelected=function(F){return this.__selectedMap.has(F)};
p.prototype.isIndexSelected=function(F){return this.isSelected(this.items[F])};
p.prototype.__deselectChangedIdx=function(F){var N=this,h=this.__selectedIndexForItemIndex(F);if(h>=0){var c=0;this.__selectedMap.forEach(function(M,f){h==c++&&N.deselect(f)})}};
p.prototype.__selectedIndexForItemIndex=function(F){if(F=this.__dataLinkedPaths["items."+F])return parseInt(F.slice(9),10)};
p.prototype.deselect=function(F){var N=this.__selectedMap.get(F);if(N>=0){this.__selectedMap.delete(F);var h;this.multi&&(h=this.__selectedIndexForItemIndex(N));this.__updateLinks();this.multi?this.splice("selected",h,1):this.selected=this.selectedItem=null}};
p.prototype.deselectIndex=function(F){this.deselect(this.items[F])};
p.prototype.select=function(F){this.selectIndex(this.items.indexOf(F))};
p.prototype.selectIndex=function(F){var N=this.items[F];this.isSelected(N)?this.toggle&&this.deselectIndex(F):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(N,F),this.__updateLinks(),this.multi?this.push("selected",N):this.selected=this.selectedItem=N)};
_.R8.Object.defineProperties(p,{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 p}),LcZ=jun(I$),$f=function(){return LcZ.apply(this,arguments)||this};
_.E($f,LcZ);_.R8.Object.defineProperties($f,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define($f.is,$f);var PPK=window.Polymer;window.Polymer=function(p){return window.Polymer._polymerFn(p)};
PPK&&Object.assign(Polymer,PPK);Polymer._polymerFn=function(){throw Error("Fd");};/*

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:JIB,resolveUrl:_.$l,pathFromUrl:CWz};Polymer.DomModule=Jl;Polymer.Async={timeOut:_.Ba,animationFrame:_.Z$,idlePeriod:J$D,microTask:nN};Polymer.dedupingMixin=R$;Polymer.wrap=_.qn;Polymer.PropertiesChanged=SJb;Polymer.telemetry={instanceCount:r$B,incrementInstanceCount:function(){r$B++},
registrations:XcE,register:gqr,dumpRegistrations:function(){XcE.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=EOj;Polymer.CaseMap={dashToCamelCase:pN,camelToDashCase:xM};Polymer.PropertyAccessors=nO6;Polymer.TemplateStamp=YJm;Polymer.Path={isPath:FP,root:Nn,isAncestor:bEZ,isDescendant:cQ,translate:a8,matches:AIE,normalize:Mn,split:uor,get:DW,set:YWJ,isDeep:FP};Polymer.Settings={useShadow:Al,useNativeCSSProperties:x4J,useNativeCustomElements:Fcm,get rootPath(){return a2B},setRootPath:function(p){a2B=p},
get sanitizeDOMValue(){return ZW},setSanitizeDOMValue:function(p){ZW=p},
get passiveTouchGestures(){return sik},setPassiveTouchGestures:function(p){sik=p},
get strictTemplatePolicy(){return Gc},setStrictTemplatePolicy:function(p){Gc=p},
get allowTemplateFromDomModule(){return MTB},setAllowTemplateFromDomModule:function(p){MTB=p},
get legacyOptimizations(){return bL},setLegacyOptimizations:function(p){bL=p},
get syncInitialRender(){return D4C},setSyncInitialRender:function(p){D4C=p},
get legacyUndefined(){return dg},setLegacyUndefined:function(p){dg=p},
get legacyWarnings(){return wg},setLegacyWarnings:function(p){wg=p},
get orderedComputed(){return f2J},setOrderedComputed:function(p){f2J=p},
get fastDomIf(){return Lq},setFastDomIf:function(p){Lq=p},
get removeNestedTemplates(){return OH},setRemoveNestedTemplates:function(p){OH=p},
get suppressTemplateNotifications(){return Pa},setSuppressTemplateNotifications:Pa};Polymer.rootPath!==void 0&&(a2B=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(ZW=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(sik=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(Gc=Polymer.strictTemplatePolicy);MTB=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(bL=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(D4C=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(dg=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(wg=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(f2J=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(Lq=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(OH=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Pa=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return ZW},
set:function(p){ZW=p}});Polymer.PropertyEffects=UH;Polymer.StyleGather={stylesFromModules:NY$,stylesFromModule:FYJ,stylesFromTemplate:hfJ,stylesFromModuleImports:lXk,cssFromModules:aXJ,cssFromModule:cfJ,cssFromTemplate:MZZ,cssFromModuleImports:function(p){return(p=Jl.import(p))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(p):""}};Polymer.ElementMixin=il;Polymer.updateStyles=function(p){window.ShadyCSS&&window.ShadyCSS.styleDocument(p)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:KYd};Polymer.html=_.O1C;Polymer.htmlLiteral=function(p){return new qgM(p,_.we.apply(1,arguments))};Polymer.Element=I$;Polymer.ArraySelectorMixin=jun;Polymer.ArraySelector=$f;var TbI=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Bbj=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Rip=/@media\s(.*)/;var JfB=null,vV$=window.HTMLImports&&window.HTMLImports.whenReady||null,Cap;var R3m=null,et=null,pW=function(){this.customStyles=[];this.enqueued=!1;Sg$(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},ktD=function(p){!p.enqueued&&et&&(p.enqueued=!0,Sg$(et))};
pW.prototype.addCustomStyle=function(p){p.__seenByShadyCSS||(p.__seenByShadyCSS=!0,this.customStyles.push(p),ktD(this))};
pW.prototype.getStyleForCustomStyle=function(p){if(p.__shadyCSSCachedStyle)return p.__shadyCSSCachedStyle;var x;p.getStyle?x=p.getStyle():x=p;return x};
pW.prototype.processStyles=function(){for(var p=this.customStyles,x=0;x<p.length;x++){var F=p[x];if(!F.__shadyCSSCachedStyle){var N=this.getStyleForCustomStyle(F);N&&(N=N.__appliedElement||N,R3m&&R3m(N),F.__shadyCSSCachedStyle=N)}}return p};
pW.prototype.addCustomStyle=pW.prototype.addCustomStyle;pW.prototype.getStyleForCustomStyle=pW.prototype.getStyleForCustomStyle;pW.prototype.processStyles=pW.prototype.processStyles;Object.defineProperties(pW.prototype,{transformCallback:{get:function(){return R3m},
set:function(p){R3m=p}},
validateCallback:{get:function(){return et},
set:function(p){var x=!1;et||(x=!0);et=p;x&&ktD(this)}}});var EVB=!(window.ShadyDOM&&window.ShadyDOM.inUse),rfd,BQ;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(BQ=window.ShadyCSS.cssBuild);var U4B=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?rfd=window.ShadyCSS.nativeCss:window.ShadyCSS?(X$$(window.ShadyCSS),window.ShadyCSS=void 0):X$$(window.WebComponents&&window.WebComponents.flags);var Pqw=rfd;var i1C=new pW;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(p,x){i1C.processStyles();tZE(p,x)},
styleElement:function(){i1C.processStyles()},
styleDocument:function(p){i1C.processStyles();tZE(document.body,p)},
getComputedStyleValue:function(p,x){return dgM(p,x)},
flushCustomStyles:function(){},
nativeCss:Pqw,nativeShadow:EVB,cssBuild:BQ,disableRuntime:U4B});window.ShadyCSS.CustomStyleInterface=i1C;var I2b=window.ShadyCSS.CustomStyleInterface,xz=function(){var p=HTMLElement.call(this)||this;p._style=null;I2b.addCustomStyle(p);return p};
_.E(xz,HTMLElement);xz.prototype.getStyle=function(){if(this._style)return this._style;var p=this.querySelector("style");if(!p)return null;this._style=p;var x=p.getAttribute("include");x&&(p.removeAttribute("include"),p.textContent=aXJ(x)+p.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
xz.prototype.getStyle=xz.prototype.getStyle;window.customElements.define("custom-style",xz);Polymer.CustomStyle=xz;var F7=function(){this._timer=this._callback=this._asyncModule=null},Nj,e3l;
F7.prototype.setConfig=function(p,x){var F=this;this._asyncModule=p;this._callback=x;this._timer=this._asyncModule.run(function(){F._timer=null;Nj.delete(F);F._callback()})};
F7.prototype.cancel=function(){this.isActive()&&($4I(this),Nj.delete(this))};
var $4I=function(p){p.isActive()&&(p._asyncModule.cancel(p._timer),p._timer=null)};
F7.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
F7.prototype.isActive=function(){return this._timer!=null};
_.hc=function(p,x,F){p instanceof F7?$4I(p):p=new F7;p.setConfig(x,F);return p};
Nj=new Set;_.l3=function(p){Nj.add(p)};
e3l=function(){var p=!!Nj.size;Nj.forEach(function(x){try{x.flush()}catch(F){setTimeout(function(){throw F;})}});
return p};var Qi$=typeof document.head.style.touchAction==="string",gVw=["mousedown","mousemove","mouseup","click"],w$B=[0,1,4,2],pgk;try{pgk=(new MouseEvent("test",{buttons:1})).buttons===1}catch(p){pgk=!1}var Yg6=pgk,zfz=!1;(function(){try{var p=Object.defineProperty({},"passive",{get:function(){zfz=!0}});
window.addEventListener("test",null,p);window.removeEventListener("test",null,p)}catch(x){}})();
var yfp=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),bPH=[],xBj={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},BYm={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},AfH=function(p){var x=p.sourceCapabilities;if(!x||x.firesTouchEvents)if(p.__polymerGesturesHandled={skip:!0},p.type==="click"){x=!1;for(var F=HPB(p),N=0;N<F.length;N++){if(F[N].nodeType===Node.ELEMENT_NODE)if(F[N].localName==="label")bPH.push(F[N]);
else if(xBj[F[N].localName]){var h=F[N];var c=Array.prototype.slice.call(h.labels||[]);if(!c.length){c=[];try{var M=h.getRootNode();if(h.id){var f=M.querySelectorAll("label[for = '"+h.id+"']");for(h=0;h<f.length;h++)c.push(f[h])}}catch(K){}}for(h=0;h<c.length;h++)x=x||bPH.indexOf(c[h])>-1}if(F[N]===F9D)return}x||(p.preventDefault(),p.stopPropagation())}},F9D=null,cq=null,oV$=0,OP$=0,mgw=-1,jip=!1;
document.addEventListener("touchend",function(p){cq||uNB(!0);F9D=HPB(p)[0];cq=_.hc(cq,_.Ba.after(2500),function(){uNB();cq=F9D=null})},zfz?{passive:!0}:!1);
var HPB=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(p){return p.composedPath&&p.composedPath()||[]},gg={},E4=[];
LY$({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){rg(this.info)},
mousedown:function(p){if(SB(p)){var x=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p),F=this;VZz(this.info,function(N){SB(N)||(yd("up",x,N),rg(F.info))},function(N){SB(N)&&yd("up",x,N);
rg(F.info)});
yd("down",x,p)}},
touchstart:function(p){yd("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p),p.changedTouches[0],p)},
touchend:function(p){yd("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p),p.changedTouches[0],p)}});
LY$({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(p){this.moves.length>2&&this.moves.shift();this.moves.push(p)},
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;rg(this.info)},
mousedown:function(p){if(SB(p)){var x=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p),F=this,N=function(h){var c=h.clientX,M=h.clientY;Pad(F.info,c,M)&&(F.info.state=F.info.started?h.type==="mouseup"?"end":"track":"start",F.info.state==="start"&&XP("tap"),F.info.addMove({x:c,y:M}),SB(h)||(F.info.state="end",rg(F.info)),x&&TYz(F.info,x,h),F.info.started=!0)};
VZz(this.info,N,function(h){F.info.started&&N(h);rg(F.info)});
this.info.x=p.clientX;this.info.y=p.clientY}},
touchstart:function(p){p=p.changedTouches[0];this.info.x=p.clientX;this.info.y=p.clientY},
touchmove:function(p){var x=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p);p=p.changedTouches[0];var F=p.clientX,N=p.clientY;Pad(this.info,F,N)&&(this.info.state==="start"&&XP("tap"),this.info.addMove({x:F,y:N}),TYz(this.info,x,p),this.info.state="track",this.info.started=!0)},
touchend:function(p){var x=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p);p=p.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:p.clientX,y:p.clientY}),TYz(this.info,x,p))}});
LY$({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(p){SB(p)&&(this.info.x=p.clientX,this.info.y=p.clientY)},
click:function(p){SB(p)&&RfJ(this.info,p)},
touchstart:function(p){p=p.changedTouches[0];this.info.x=p.clientX;this.info.y=p.clientY},
touchend:function(p){RfJ(this.info,p.changedTouches[0],p)}});var NXj=R$(function(p){var x=function(){return p.apply(this,arguments)||this};
_.E(x,p);x.prototype._addEventListenerToNode=function(F,N,h){Qd(F,N,h)||p.prototype._addEventListenerToNode.call(this,F,N,h)};
x.prototype._removeEventListenerFromNode=function(F,N,h){zc(F,N,h)||p.prototype._removeEventListenerFromNode.call(this,F,N,h)};
return x});var a_=R$(function(p){var x=function(){return p.apply(this,arguments)||this};
_.E(x,p);x.prototype._shouldPropertyChange=function(F,N,h){return k1z(this,F,N,h,!0)};
return x}),h9B=R$(function(p){var x=function(){return p.apply(this,arguments)||this};
_.E(x,p);x.prototype._shouldPropertyChange=function(F,N,h){return k1z(this,F,N,h,this.mutableData)};
_.R8.Object.defineProperties(x,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return x});
a_._mutablePropertyChange=k1z;var Ug$=!1;var luK=NXj(h9B(UH(HTMLElement))),Mj=function(){var p=luK.call(this)||this;if(Gc)throw Error("Gd");p.root=null;p.$=null;p.__children=null;return p};
_.E(Mj,luK);_.l=Mj.prototype;_.l.attributeChangedCallback=function(){this.mutableData=!0};
_.l.connectedCallback=function(){iPH()||(this.style.display="none");this.render()};
_.l.disconnectedCallback=function(){this.__removeChildren()};
_.l.__insertChildren=function(){(0,_.qn)((0,_.qn)(this).parentNode).insertBefore(this.root,this)};
_.l.__removeChildren=function(){if(this.__children)for(var p=0;p<this.__children.length;p++)this.root.appendChild(this.__children[p])};
_.l.render=function(){var p=this;if(!this.__children){var x=x||this.querySelector("template");if(!x){var F=new MutationObserver(function(){if(x=p.querySelector("template"))F.disconnect(),p.render();else throw Error("Hd");});
F.observe(this,{childList:!0});return}this.root=this._stampTemplate(x);this.$=this.root.$;this.__children=[];for(var N=this.root.firstChild;N;N=N.nextSibling)this.__children[this.__children.length]=N;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.R8.Object.defineProperties(Mj,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",Mj);Polymer.Debouncer=F7;Polymer.Gestures={gestures:gg,recognizers:E4,deepTargetFind:WYw,addListener:Qd,removeListener:zc,register:LY$,setTouchAction:_.s4,prevent:XP,resetMouseCanceller:function(){cq&&cq.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:Qd,remove:zc};Polymer.GestureEventListeners=NXj;Polymer.MutableData=a_;Polymer.OptionalMutableData=h9B;Polymer.DomBind=Mj;_.DQ=function(){do{var p=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var x=e3l()}while(p||x)};var IXZ=null;$gJ.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:$gJ,writable:!0}});var cH6=UH($gJ),lr$=a_(cH6),cFb=UH(function(){}),uL=function(p){var x=cFb.call(this)||this;
x._configureProperties(p);x.root=x._stampTemplate(x.__dataHost);var F=[];x.children=F;for(var N=x.root.firstChild;N;N=N.nextSibling)F.push(N),N.__templatizeInstance=x;x.__templatizeOwner&&x.__templatizeOwner.__hideTemplateChildren__&&x._showHideChildren(!0);F=x.__templatizeOptions;(p&&F.instanceProps||!F.instanceProps)&&x._enableProperties();return x};
_.E(uL,cFb);_.l=uL.prototype;_.l._configureProperties=function(p){if(this.__templatizeOptions.forwardHostProp)for(var x in this.__hostProps)this._setPendingProperty(x,this.__dataHost["_host_"+x]);for(var F in p)this._setPendingProperty(F,p[F])};
_.l.forwardHostProp=function(p,x){this._setPendingPropertyOrPath(p,x,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.l._addEventListenerToNode=function(p,x,F){var N=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(p,x,function(c){c.model=N;F(c)});
else{var h=this.__dataHost.__dataHost;h&&h._addEventListenerToNode(p,x,F)}};
_.l._showHideChildren=function(p){pWE(p,this.children)};
_.l._setUnmanagedPropertyToNode=function(p,x,F){p.__hideTemplateChildren__&&p.nodeType==Node.TEXT_NODE&&x=="textContent"?p.__polymerTextContent__=F:cFb.prototype._setUnmanagedPropertyToNode.call(this,p,x,F)};
_.l.dispatchEvent=function(){return!0};
_.R8.Object.defineProperties(uL.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var p=this.__parentModel;if(!p){var x;p=this;do p=p.__dataHost.__dataHost;while((x=p.__templatizeOptions)&&!x.parentModel);this.__parentModel=p}return p}}});
var FRm=a_(uL);var fW=function(){var p=I$.call(this)||this;p.__renderDebouncer=null;p._lastIf=!1;p.__hideTemplateChildren__=!1;return p};
_.E(fW,I$);_.l=fW.prototype;_.l.__debounceRender=function(){var p=this;this.__renderDebouncer=_.hc(this.__renderDebouncer,nN,function(){return p.__render()});
_.l3(this.__renderDebouncer)};
_.l.disconnectedCallback=function(){I$.prototype.disconnectedCallback.call(this);var p=(0,_.qn)(this).parentNode;p&&(p.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.qn)(p).host)||this.__teardownInstance()};
_.l.connectedCallback=function(){I$.prototype.connectedCallback.call(this);iPH()||(this.style.display="none");this.if&&this.__debounceRender()};
_.l.__ensureTemplate=function(){var p=this;if(!this.__template){var x=this._templateInfo?this:(0,_.qn)(this).querySelector("template");if(!x){var F=new MutationObserver(function(){if((0,_.qn)(p).querySelector("template"))F.disconnect(),p.__render();else throw Error("Kd");});
F.observe(this,{childList:!0});return!1}this.__template=x}return!0};
_.l.__ensureInstance=function(){var p=(0,_.qn)(this).parentNode;if(this.__hasInstance()){var x=this.__getInstanceNodes();if(x&&x.length&&(0,_.qn)(this).previousSibling!==x[x.length-1])for(var F=0,N=void 0;F<x.length&&(N=x[F]);F++)(0,_.qn)(p).insertBefore(N,this)}else{if(!p||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(p)}return!0};
_.l.render=function(){_.DQ()};
_.l.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Pa&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.l.__hasInstance=function(){};
_.l.__getInstanceNodes=function(){};
_.l.__createAndInsertInstance=function(){};
_.l.__teardownInstance=function(){};
_.l._showHideChildren=function(){};
_.R8.Object.defineProperties(fW,{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:fW.prototype.__debounceRender},restamp:{type:Boolean,observer:fW.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var auD=function(){var p=fW.call(this)||this;p.__instance=null;p.__syncInfo=null;return p};
_.E(auD,fW);_.l=auD.prototype;_.l.__hasInstance=function(){return!!this.__instance};
_.l.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.l.__createAndInsertInstance=function(p){var x=this,F=this.__dataHost||this;if(Gc&&!this.__dataHost)throw Error("Id");var N=F._bindTemplate(this.__template,!0);N.runEffects=function(h,c,M){var f=x.__syncInfo;if(x.if)f&&(x.__syncInfo=null,x._showHideChildren(),c=Object.assign(f.changedProps,c)),h(c,M);else if(x.__instance)if(f||(f=x.__syncInfo={runEffects:h,changedProps:{}}),M)for(var K in c)h=Nn(K),f.changedProps[h]=x.__dataHost[h];else Object.assign(f.changedProps,c)};
this.__instance=F._stampTemplate(this.__template,N);(0,_.qn)(p).insertBefore(this.__instance,this)};
_.l.__syncHostProperties=function(){var p=this.__syncInfo;p&&(this.__syncInfo=null,p.runEffects(p.changedProps,!1))};
_.l.__teardownInstance=function(){var p=this.__dataHost||this;this.__instance&&(p._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.l._showHideChildren=function(){var p=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==p&&(this.__instance.__hidden=p,pWE(p,this.__instance.templateInfo.childNodes));p||this.__syncHostProperties()};
var MVj=function(){var p=fW.call(this)||this;p.__ctor=null;p.__instance=null;p.__invalidProps=null;return p};
_.E(MVj,fW);_.l=MVj.prototype;_.l.__hasInstance=function(){return!!this.__instance};
_.l.__getInstanceNodes=function(){return this.__instance.children};
_.l.__createAndInsertInstance=function(p){this.__ctor||(this.__ctor=YM(this.__template,this,{mutableData:!0,forwardHostProp:function(x,F){this.__instance&&(this.if?this.__instance.forwardHostProp(x,F):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Nn(x)]=!0))}}));
this.__instance=new this.__ctor;(0,_.qn)(p).insertBefore(this.__instance.root,this)};
_.l.__teardownInstance=function(){if(this.__instance){var p=this.__instance.children;if(p&&p.length){var x=(0,_.qn)(p[0]).parentNode;if(x){x=(0,_.qn)(x);for(var F=0,N=void 0;F<p.length&&(N=p[F]);F++)x.removeChild(N)}}this.__instance=this.__invalidProps=null}};
_.l.__syncHostProperties=function(){var p=this.__invalidProps;if(p){this.__invalidProps=null;for(var x in p)this.__instance._setPendingProperty(x,this.__dataHost[x]);this.__instance._flushProperties()}};
_.l._showHideChildren=function(){var p=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==p&&(this.__instance.__hidden=p,this.__instance._showHideChildren(p));p||this.__syncHostProperties()};
_.tZ=Lq?auD:MVj;customElements.define(_.tZ.is,_.tZ);Polymer.enqueueDebouncer=_.l3;Polymer.flush=_.DQ;Polymer.Templatize={templatize:YM,modelForElement:q6d};Polymer.TemplateInstanceBase=uL;Polymer.DomIf=_.tZ;var DBI=h9B(I$),Zv=function(){var p=DBI.call(this)||this;p.__instances=[];p.__renderDebouncer=null;p.__itemsIdxToInstIdx={};p.__chunkCount=null;p.__renderStartTime=null;p.__itemsArrayChanged=!1;p.__shouldMeasureChunk=!1;p.__shouldContinueChunking=!1;p.__chunkingId=0;p.__sortFn=null;p.__filterFn=null;p.__observePaths=null;p.__ctor=null;p.__isDetached=!0;p.template=null;return p};
_.E(Zv,DBI);_.l=Zv.prototype;_.l.disconnectedCallback=function(){DBI.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var p=0;p<this.__instances.length;p++)this.__detachInstance(p);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.l.connectedCallback=function(){DBI.prototype.connectedCallback.call(this);iPH()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var p=(0,_.qn)((0,_.qn)(this).parentNode),x=0;x<this.__instances.length;x++)this.__attachInstance(x,p);this.__chunkingId&&this.__render()}};
_.l.__ensureTemplatized=function(){var p=this;if(!this.__ctor){var x=this.template=this._templateInfo?this:this.querySelector("template");if(!x){var F=new MutationObserver(function(){if(p.querySelector("template"))F.disconnect(),p.__render();else throw Error("Ld");});
F.observe(this,{childList:!0});return!1}var N={};N[this.as]=!0;N[this.indexAs]=!0;N[this.itemsIndexAs]=!0;this.__ctor=YM(x,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:N,forwardHostProp:function(h,c){for(var M=this.__instances,f=0,K=void 0;f<M.length&&(K=M[f]);f++)K.forwardHostProp(h,c)},
notifyInstanceProp:function(h,c,M){AIE(this.as,c)&&(h=h[this.itemsIndexAs],c==this.as&&(this.items[h]=M),c=a8(this.as,"items."+h,c),this.notifyPath(c,M))}})}return!0};
_.l.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.l.__functionFromPropertyValue=function(p){if(typeof p==="string"){var x=this.__getMethodHost();return function(){return x[p].apply(x,arguments)}}return p};
_.l.__sortChanged=function(p){this.__sortFn=this.__functionFromPropertyValue(p);this.items&&this.__debounceRender(this.__render)};
_.l.__filterChanged=function(p){this.__filterFn=this.__functionFromPropertyValue(p);this.items&&this.__debounceRender(this.__render)};
_.l.__computeFrameTime=function(p){return Math.ceil(1E3/p)};
_.l.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.l.__handleObservedPaths=function(p){if(this.__sortFn||this.__filterFn)if(!p)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var x=this.__observePaths,F=0;F<x.length;F++)p.indexOf(x[F])===0&&this.__debounceRender(this.__render,this.delay)};
_.l.__itemsChanged=function(p){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(p.path,p.value)||(p.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.l.__debounceRender=function(p,x){x=x===void 0?0:x;this.__renderDebouncer=_.hc(this.__renderDebouncer,x>0?_.Ba.after(x):nN,p.bind(this));_.l3(this.__renderDebouncer)};
_.l.render=function(){this.__debounceRender(this.__render);_.DQ()};
_.l.__render=function(){var p=this;if(this.__ensureTemplatized()){var x=this.items||[],F=this.__sortAndFilterItems(x),N=this.__calculateLimit(F.length);this.__updateInstances(x,N,F);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){p.__chunkingId=null;p.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Pa&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.l.__sortAndFilterItems=function(p){for(var x=this,F=Array(p.length),N=0;N<p.length;N++)F[N]=N;this.__filterFn&&(F=F.filter(function(h,c,M){return x.__filterFn(p[h],c,M)}));
this.__sortFn&&F.sort(function(h,c){return x.__sortFn(p[h],p[c])});
return F};
_.l.__calculateLimit=function(p){var x=p,F=this.__instances.length;if(this.initialCount){var N;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(x=Math.min(p,this.initialCount),this.__chunkCount=(N=Math.max(x-F,0))||1):(N=Math.min(Math.max(p-F,0),this.__chunkCount),x=Math.min(F+N,p));this.__shouldMeasureChunk=N===this.__chunkCount;this.__shouldContinueChunking=x<p;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return x};
_.l.__continueChunking=function(){if(this.__shouldMeasureChunk){var p=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/p*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.l.__updateInstances=function(p,x,F){var N=this.__itemsIdxToInstIdx={},h;for(h=0;h<x;h++){var c=this.__instances[h],M=F[h],f=p[M];N[M]=h;c?(c._setPendingProperty(this.as,f),c._setPendingProperty(this.indexAs,h),c._setPendingProperty(this.itemsIndexAs,M),c._flushProperties()):this.__insertInstance(f,h,M)}for(p=this.__instances.length-1;p>=h;p--)this.__detachAndRemoveInstance(p)};
_.l.__detachInstance=function(p){p=this.__instances[p];for(var x=(0,_.qn)(p.root),F=0;F<p.children.length;F++)x.appendChild(p.children[F]);return p};
_.l.__attachInstance=function(p,x){x.insertBefore(this.__instances[p].root,this)};
_.l.__detachAndRemoveInstance=function(p){this.__detachInstance(p);this.__instances.splice(p,1)};
_.l.__stampInstance=function(p,x,F){var N={};N[this.as]=p;N[this.indexAs]=x;N[this.itemsIndexAs]=F;return new this.__ctor(N)};
_.l.__insertInstance=function(p,x,F){p=this.__stampInstance(p,x,F);F=(F=this.__instances[x+1])?F.children[0]:this;(0,_.qn)((0,_.qn)(this).parentNode).insertBefore(p.root,F);return this.__instances[x]=p};
_.l._showHideChildren=function(p){for(var x=0;x<this.__instances.length;x++)this.__instances[x]._showHideChildren(p)};
_.l.__handleItemPath=function(p,x){var F=p.slice(6),N=F.indexOf(".");p=N<0?F:F.substring(0,N);if(p==parseInt(p,10)){F=N<0?"":F.substring(N+1);this.__handleObservedPaths(F);if(p=this.__instances[this.__itemsIdxToInstIdx[p]])p._setPendingPropertyOrPath(this.as+(F?"."+F:""),x,!1,!0),p._flushProperties();return!0}};
_.l.itemForElement=function(p){return(p=this.modelForElement(p))&&p[this.as]};
_.l.indexForElement=function(p){return(p=this.modelForElement(p))&&p[this.indexAs]};
_.l.modelForElement=function(p){return q6d(this.template,p)};
_.R8.Object.defineProperties(Zv,{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:Zv.prototype.__sortChanged},filter:{type:Function,observer:Zv.prototype.__filterChanged},observe:{type:String,observer:Zv.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Pa,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.*)"]}}});
Zv.prototype._setRenderedItemCount=function(){};
customElements.define(Zv.is,Zv);Polymer.DomRepeat=Zv;var fuB=function(p,x){var F=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=p;this.callback=x;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){F._schedule()};
this.connect();this._schedule()},K9l=function(p){var x=(0,_.qn)(p);
if(Vd(p))return x.assignedNodes({flatten:!0});p=[];for(var F=0;F<x.childNodes.length;F++){var N=x.childNodes[F];Vd(N)?p.push.apply(p,_.se((0,_.qn)(N).assignedNodes({flatten:!0}))):p.push(N)}return p};
_.l=fuB.prototype;_.l.connect=function(){var p=this;Vd(this._target)?this._listenSlots([this._target]):(0,_.qn)(this._target).children&&(this._listenSlots((0,_.qn)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(x){p._processMutations(x)}):(this._nativeChildrenObserver=new MutationObserver(function(x){p._processMutations(x)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.l.disconnect=function(){Vd(this._target)?this._unlistenSlots([this._target]):(0,_.qn)(this._target).children&&(this._unlistenSlots((0,_.qn)(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null));this._connected=!1};
_.l._schedule=function(){var p=this;this._scheduled||(this._scheduled=!0,nN.run(function(){return p.flush()}))};
_.l._processMutations=function(p){this._processSlotMutations(p);this.flush()};
_.l._processSlotMutations=function(p){if(p)for(var x=0;x<p.length;x++){var F=p[x];F.addedNodes&&this._listenSlots(F.addedNodes);F.removedNodes&&this._unlistenSlots(F.removedNodes)}};
_.l.flush=function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush();this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords());this._scheduled=!1;for(var p={target:this._target,addedNodes:[],removedNodes:[]},x=K9l(this._target),F=KYd(x,this._effectiveNodes),N=0,h=void 0;N<F.length&&(h=F[N]);N++)for(var c=0,M=void 0;c<h.removed.length&&(M=h.removed[c]);c++)p.removedNodes.push(M);
N=0;for(h=void 0;N<F.length&&(h=F[N]);N++)for(c=h.index;c<h.index+h.addedCount;c++)p.addedNodes.push(x[c]);this._effectiveNodes=x;x=!1;if(p.addedNodes.length||p.removedNodes.length)x=!0,this.callback.call(this._target,p);return x};
_.l._listenSlots=function(p){for(var x=0;x<p.length;x++){var F=p[x];Vd(F)&&F.addEventListener("slotchange",this._boundSchedule)}};
_.l._unlistenSlots=function(p){for(var x=0;x<p.length;x++){var F=p[x];Vd(F)&&F.removeEventListener("slotchange",this._boundSchedule)}};var KW=Element.prototype,qbk=KW.matches||KW.matchesSelector||KW.mozMatchesSelector||KW.msMatchesSelector||KW.oMatchesSelector||KW.webkitMatchesSelector,ZRB=function(p,x){return qbk.call(p,x)},WQ=function(p){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(p);
this.node=p},JFb;
_.l=WQ.prototype;_.l.observeNodes=function(p){return new fuB(this.node,p)};
_.l.unobserveNodes=function(p){p.disconnect()};
_.l.notifyObserver=function(){};
_.l.deepContains=function(p){if((0,_.qn)(this.node).contains(p))return!0;var x=p;for(p=p.ownerDocument;x&&x!==p&&x!==this.node;)x=(0,_.qn)(x).parentNode||(0,_.qn)(x).host;return x===this.node};
_.l.getOwnerRoot=function(){return(0,_.qn)(this.node).getRootNode()};
_.l.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.qn)(this.node).assignedNodes({flatten:!0}):[]};
_.l.getDestinationInsertionPoints=function(){for(var p=[],x=(0,_.qn)(this.node).assignedSlot;x;)p.push(x),x=(0,_.qn)(x).assignedSlot;return p};
_.l.importNode=function(p,x){return(0,_.qn)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(p,x)};
_.l.getEffectiveChildNodes=function(){return K9l(this.node)};
_.l.queryDistributedElements=function(p){for(var x=this.getEffectiveChildNodes(),F=[],N=0,h=x.length,c=void 0;N<h&&(c=x[N]);N++)c.nodeType===Node.ELEMENT_NODE&&ZRB(c,p)&&F.push(c);return F};
_.R8.Object.defineProperties(WQ.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var p=this.node;return p._activeElement!==void 0?p._activeElement:p.activeElement}}});
var qj=function(p){this.event=p};
_.R8.Object.defineProperties(qj.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 tV6=WQ;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var dBj=window.ShadyDOM.Wrapper,vsJ=function(){return dBj.apply(this,arguments)||this};
_.E(vsJ,dBj);Object.getOwnPropertyNames(WQ.prototype).forEach(function(p){p!="activeElement"&&p!="constructor"&&(vsJ.prototype[p]=WQ.prototype[p])});
tGp(vsJ.prototype,["classList"]);tV6=vsJ;Object.defineProperties(qj.prototype,{localTarget:{get:function(){var p=this.event.currentTarget;p=p&&_.Ef(p).getOwnerRoot();for(var x=this.path,F=0;F<x.length;F++){var N=x[F];if(_.Ef(N).getOwnerRoot()===p)return N}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else ZTp(),tGp(WQ.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),dLz();JFb=tV6;_.Ef=function(p){p=p||document;if(p instanceof tV6)return p;if(p instanceof qj)return p;var x=p.__domApi;x||(p instanceof Event?x=new qj(p):x=new tV6(p),p.__domApi=x);return x};var CXj=/:host\(:dir\((ltr|rtl)\)\)/g,SbK=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,rFZ=/:dir\((?:ltr|rtl)\)/,Esb=!(!window.ShadyDOM||!window.ShadyDOM.inUse),mf=[],ZQ=null,HQ="",Xgj=R$(function(p){Esb||ZQ||(HQ=document.documentElement.getAttribute("dir"),ZQ=new MutationObserver(vgM),ZQ.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var x=nO6(p);p=function(){var F=x.call(this)||this;F.__autoDirOptOut=!1;return F};
_.E(p,x);p._processStyleText=function(F,N){F=x._processStyleText.call(this,F,N);!Esb&&rFZ.test(F)&&(F=this._replaceDirInCssText(F),this.__activateDir=!0);return F};
p._replaceDirInCssText=function(F){F=F.replace(CXj,':host([dir="$1"])');return F=F.replace(SbK,':host([dir="$2"]) $1')};
p.prototype.ready=function(){x.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
p.prototype.connectedCallback=function(){x.prototype.connectedCallback&&x.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(ZQ&&ZQ.takeRecords().length&&vgM(),mf.push(this),this.__autoDirOptOut||this.setAttribute("dir",HQ))};
p.prototype.disconnectedCallback=function(){x.prototype.disconnectedCallback&&x.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var F=mf.indexOf(this);F>-1&&mf.splice(F,1)}};
p.__activateDir=!1;return p});var gsn=function(p){for(;p;){var x=Object.getOwnPropertyDescriptor(p,"observedAttributes");if(x)return x.get;p=Object.getPrototypeOf(p.prototype).constructor}return function(){return[]}};
R$(function(p){var x=il(p),F=gsn(x);p=function(){return x.call(this)||this};
_.E(p,x);p.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:x.prototype._initializeProperties.call(this)};
p.prototype._enableProperties=function(){this.__isUpgradeDisabled||x.prototype._enableProperties.call(this)};
p.prototype._canApplyPropertyDefault=function(N){return x.prototype._canApplyPropertyDefault.call(this,N)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(N))};
p.prototype.attributeChangedCallback=function(N,h,c,M){N=="disable-upgrade"?this.__isUpgradeDisabled&&c==null&&(x.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.qn)(this).isConnected&&x.prototype.connectedCallback.call(this)):x.prototype.attributeChangedCallback.call(this,N,h,c,M)};
p.prototype.connectedCallback=function(){this.__isUpgradeDisabled||x.prototype.connectedCallback.call(this)};
p.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||x.prototype.disconnectedCallback.call(this)};
_.R8.Object.defineProperties(p,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return F.call(this).concat("disable-upgrade")}}});
return p});var o8=!1,Cqw=[],O4=[];var XW6=window.ShadyDOM,ggZ=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",ziJ):document.readyState==="interactive"||document.readyState==="complete"?ziJ():window.addEventListener("DOMContentLoaded",ziJ);var yHk=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=""},sEr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,ngw=/@import[^;]*;/gim,G5w=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,VGw=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,WRd=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,HTr=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Y6$=/^@[^\s]*keyframes/,
uVk=/\s+/g;var mL$={};var jEp=Promise.resolve();var Qsn=new Set;var z9j=/;\s*/m,ssk=/^\s*(initial)|(inherit)\s*$/,nsm=/\s*!important/,yFb=function(){this._map={}};
yFb.prototype.set=function(p,x){p=p.trim();this._map[p]={properties:x,dependants:{}}};
yFb.prototype.get=function(p){p=p.trim();return this._map[p]||null};
var bRv=null,tc=function(){this._measureElement=this._currentElement=null;this._map=new yFb};
_.l=tc.prototype;_.l.detectMixin=function(p){p=Bbj.test(p)||TbI.test(p);Bbj.lastIndex=0;TbI.lastIndex=0;return p};
_.l.transformTemplate=function(p,x){if(p._gatheredStyle===void 0){var F=[];for(var N=p.content.querySelectorAll("style"),h=0;h<N.length;h++){var c=N[h];if(c.hasAttribute("shady-unscoped")){if(!EVB){var M=c.textContent;if(!Qsn.has(M)){Qsn.add(M);var f=document.createElement("style");f.setAttribute("shady-unscoped","");f.textContent=M;document.head.appendChild(f)}c.parentNode.removeChild(c)}}else F.push(c.textContent),c.parentNode.removeChild(c)}(F=F.join("").trim())?(N=document.createElement("style"),
N.textContent=F,p.content.insertBefore(N,p.content.firstChild),F=N):F=null;p._gatheredStyle=F}return(p=p._gatheredStyle)?this.JSC$9016_transformStyle(p,x):null};
_.l.JSC$9016_transformStyle=function(p,x){x=x===void 0?"":x;var F=Bam(p);this.transformRules(F,x);p.textContent=Tad(F);return F};
_.l.transformCustomStyle=function(p){var x=this,F=Bam(p);k5r(F,function(N){N.selector===":root"&&(N.selector="html");x.transformRule(N)});
p.textContent=Tad(F);return F};
_.l.transformRules=function(p,x){var F=this;this._currentElement=x;k5r(p,function(N){F.transformRule(N)});
this._currentElement=null};
_.l.transformRule=function(p){p.cssText=AFb(this,p.parsedCssText,p);p.selector===":root"&&(p.selector=":host > *")};
var AFb=function(p,x,F){x=x.replace(TbI,function(N,h,c,M){return p._produceCssProperties(N,h,c,M,F)});
return p._consumeCssProperties(x,F)};
_.l=tc.prototype;_.l._getInitialValueForProperty=function(p){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(p)};
_.l._fallbacksFromPreviousRules=function(p){for(var x=this,F=p;F.parent;)F=F.parent;var N={},h=!1;k5r(F,function(c){(h=h||c===p)||c.selector===p.selector&&Object.assign(N,x._cssTextToMap(c.parsedCssText))});
return N};
_.l._consumeCssProperties=function(p,x){for(var F;F=Bbj.exec(p);){var N=F[0],h=F[1];F=F.index;var c=F+N.indexOf("@apply"),M=F+N.length;N=p.slice(0,c);p=p.slice(M);c=x?this._fallbacksFromPreviousRules(x):{};Object.assign(c,this._cssTextToMap(N));h=this._atApplyToCssProperties(h,c);p=N+h+p;Bbj.lastIndex=F+h.length}return p};
_.l._atApplyToCssProperties=function(p,x){p=p.replace(z9j,"");var F=[],N=this._map.get(p);N||(this._map.set(p,{}),N=this._map.get(p));if(N){this._currentElement&&(N.dependants[this._currentElement]=!0);var h,c=N.properties;for(h in c){var M=x&&x[h];N=[h,": var(",p,"_-_",h];M&&N.push(",",M.replace(nsm,""));N.push(")");nsm.test(c[h])&&N.push(" !important");F.push(N.join(""))}}return F.join("; ")};
_.l._replaceInitialOrInherit=function(p,x){var F=ssk.exec(x);F&&(x=F[1]?this._getInitialValueForProperty(p):"apply-shim-inherit");return x};
_.l._cssTextToMap=function(p,x){x=x===void 0?!1:x;p=p.split(";");for(var F,N,h={},c=0;c<p.length;c++)if(F=p[c])N=F.split(":"),N.length>1&&(F=N[0].trim(),N=N.slice(1).join(":"),x&&(N=this._replaceInitialOrInherit(F,N)),h[F]=N);return h};
_.l._invalidateMixinEntry=function(p){if(bRv)for(var x in p.dependants)x!==this._currentElement&&bRv(x)};
_.l._produceCssProperties=function(p,x,F,N,h){var c=this;F&&UL$(F,function(Q,b){b&&c._map.get(b)&&(N="@apply "+b+";")});
if(!N)return p;var M=this._consumeCssProperties(""+N,h);h=p.slice(0,p.indexOf("--"));var f=M=this._cssTextToMap(M,!0),K=this._map.get(x),t=K&&K.properties;t?f=Object.assign(Object.create(t),M):this._map.set(x,f);var d=[],v,C=!1;for(v in f){var X=M[v];X===void 0&&(X="initial");!t||v in t||(C=!0);d.push(x+"_-_"+v+": "+X)}C&&this._invalidateMixinEntry(K);K&&(K.properties=f);F&&(h=p+";"+h);return h+d.join("; ")+";"};
tc.prototype.detectMixin=tc.prototype.detectMixin;tc.prototype.transformStyle=tc.prototype.JSC$9016_transformStyle;tc.prototype.transformCustomStyle=tc.prototype.transformCustomStyle;tc.prototype.transformRules=tc.prototype.transformRules;tc.prototype.transformRule=tc.prototype.transformRule;tc.prototype.transformTemplate=tc.prototype.transformTemplate;tc.prototype._separator="_-_";Object.defineProperty(tc.prototype,"invalidCallback",{get:function(){return bRv},
set:function(p){bRv=p}});var d_=new tc,uTC=function(){this.customStyleInterface=null;d_.invalidCallback=og$},vq=function(p){!p.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(p.customStyleInterface=window.ShadyCSS.CustomStyleInterface,p.customStyleInterface.transformCallback=function(x){d_.transformCustomStyle(x)},p.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){p.customStyleInterface.enqueued&&p.flushCustomStyles()})})};
_.l=uTC.prototype;_.l.prepareTemplate=function(p,x){vq(this);iTd(p)===""&&(mL$[x]=p,x=d_.transformTemplate(p,x),p._styleAst=x)};
_.l.flushCustomStyles=function(){vq(this);if(this.customStyleInterface){var p=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var x=0;x<p.length;x++){var F=this.customStyleInterface.getStyleForCustomStyle(p[x]);F&&d_.transformCustomStyle(F)}this.customStyleInterface.enqueued=!1}}};
_.l.styleSubtree=function(p,x){vq(this);x&&tZE(p,x);if(p.shadowRoot)for(this.styleElement(p),p=p.shadowRoot.children||p.shadowRoot.childNodes,x=0;x<p.length;x++)this.styleSubtree(p[x]);else for(p=p.children||p.childNodes,x=0;x<p.length;x++)this.styleSubtree(p[x])};
_.l.styleElement=function(p){vq(this);var x=p.localName,F;x?x.indexOf("-")>-1?F=x:F=p.getAttribute&&p.getAttribute("is")||"":F=p.is;x=mL$[F];if(!(x&&iTd(x)!==""||!x||OTB(x))){if(OTB(x)||x._applyShimValidatingVersion!==x._applyShimNextVersion)this.prepareTemplate(x,F),LR$(x);if(p=p.shadowRoot)if(p=p.querySelector("style"))p.__cssRules=x._styleAst,p.textContent=Tad(x._styleAst)}};
_.l.styleDocument=function(p){vq(this);this.styleSubtree(document.body,p)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var Jc=new uTC,YbB=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(p,x){Jc.flushCustomStyles();Jc.prepareTemplate(p,x)},
prepareTemplateStyles:function(p,x,F){window.ShadyCSS.prepareTemplate(p,x,F)},
prepareTemplateDom:function(){},
styleSubtree:function(p,x){Jc.flushCustomStyles();Jc.styleSubtree(p,x)},
styleElement:function(p){Jc.flushCustomStyles();Jc.styleElement(p)},
styleDocument:function(p){Jc.flushCustomStyles();Jc.styleDocument(p)},
getComputedStyleValue:function(p,x){return dgM(p,x)},
flushCustomStyles:function(){Jc.flushCustomStyles()},
nativeCss:Pqw,nativeShadow:EVB,cssBuild:BQ,disableRuntime:U4B};YbB&&(window.ShadyCSS.CustomStyleInterface=YbB)}window.ShadyCSS.ApplyShim=d_;var wg6;wg6=window.ShadyCSS;_.CW=R$(function(p){p=NXj(il(p));var x=H1k?p:Xgj(p),F=gsn(x),N={x:"pan-x",y:"pan-y",none:"none",all:"auto"};p=function(){return x.call(this)||this};
_.E(p,x);p.prototype.created=function(){};
p.prototype.__attributeReaction=function(h,c,M){(this.__dataAttributes&&this.__dataAttributes[h]||h==="disable-upgrade")&&this.attributeChangedCallback(h,c,M,null)};
p.prototype.setAttribute=function(h,c){if(Kcj&&!this._legacyForceObservedAttributes){var M=this.getAttribute(h);x.prototype.setAttribute.call(this,h,c);this.__attributeReaction(h,M,String(c))}else x.prototype.setAttribute.call(this,h,c)};
p.prototype.removeAttribute=function(h){if(Kcj&&!this._legacyForceObservedAttributes){var c=this.getAttribute(h);x.prototype.removeAttribute.call(this,h);this.__attributeReaction(h,c,null)}else x.prototype.removeAttribute.call(this,h)};
p.prototype._enableProperties=function(){this.__isUpgradeDisabled||x.prototype._enableProperties.call(this)};
p.prototype._canApplyPropertyDefault=function(h){return x.prototype._canApplyPropertyDefault.call(this,h)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(h))};
p.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(x.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
p.prototype.attached=function(){};
p.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(x.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
p.prototype.detached=function(){};
p.prototype.attributeChangedCallback=function(h,c,M,f){c!==M&&(h=="disable-upgrade"?this.__isUpgradeDisabled&&M==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.qn)(this).isConnected&&this.connectedCallback()):(x.prototype.attributeChangedCallback.call(this,h,c,M,f),this.attributeChanged(h,c,M)))};
p.prototype.attributeChanged=function(){};
p.prototype._initializeProperties=function(){if(bL&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var h=Object.getPrototypeOf(this);h.hasOwnProperty("__hasRegisterFinished")||(this._registered(),h.__hasRegisterFinished=!0);x.prototype._initializeProperties.call(this);this.root=this;this.created();Kcj&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
p.prototype._takeAttributes=function(){for(var h=this.attributes,c=0,M=h.length;c<M;c++){var f=h[c];this.__attributeReaction(f.name,null,f.value)}};
p.prototype._registered=function(){};
p.prototype.ready=function(){this._ensureAttributes();x.prototype.ready.call(this)};
p.prototype._ensureAttributes=function(){};
p.prototype._applyListeners=function(){};
p.prototype.serialize=function(h){return this._serializeValue(h)};
p.prototype.deserialize=function(h,c){return this._deserializeValue(h,c)};
p.prototype.reflectPropertyToAttribute=function(h,c,M){this._propertyToAttribute(h,c,M)};
p.prototype.serializeValueToAttribute=function(h,c,M){this._valueToNodeAttribute(M||this,h,c)};
p.prototype.extend=function(h,c){if(!h||!c)return h||c;for(var M=Object.getOwnPropertyNames(c),f=0,K=void 0;f<M.length&&(K=M[f]);f++){var t=Object.getOwnPropertyDescriptor(c,K);t&&Object.defineProperty(h,K,t)}return h};
p.prototype.mixin=function(h,c){for(var M in c)h[M]=c[M];return h};
p.prototype.chainObject=function(h,c){h&&c&&h!==c&&(h.__proto__=c);return h};
p.prototype.instanceTemplate=function(h){h=this.constructor._contentForTemplate(h);return document.importNode(h,!0)};
p.prototype.fire=function(h,c,M){M=M||{};c=c===null||c===void 0?{}:c;h=new Event(h,{bubbles:M.bubbles===void 0?!0:M.bubbles,cancelable:!!M.cancelable,composed:M.composed===void 0?!0:M.composed});h.detail=c;(0,_.qn)(M.node||this).dispatchEvent(h);return h};
p.prototype.listen=function(h,c,M){h=h||this;var f=this.__boundListeners||(this.__boundListeners=new WeakMap),K=f.get(h);K||(K={},f.set(h,K));f=c+M;K[f]||(K[f]=this._addMethodEventListenerToNode(h,c,M,this))};
p.prototype.unlisten=function(h,c,M){h=h||this;var f=this.__boundListeners&&this.__boundListeners.get(h);M=c+M;var K=f&&f[M];K&&(this._removeEventListenerFromNode(h,c,K),f[M]=null)};
p.prototype.setScrollDirection=function(h,c){_.s4(c||this,N[h]||"auto")};
p.prototype.$$=function(h){return this.root.querySelector(h)};
p.prototype.distributeContent=function(){var h=_.Ef(this);window.ShadyDOM&&h.shadowRoot&&ShadyDOM.flush()};
p.prototype.getEffectiveChildNodes=function(){return _.Ef(this).getEffectiveChildNodes()};
p.prototype.queryDistributedElements=function(h){return _.Ef(this).queryDistributedElements(h)};
p.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(h){return h.nodeType===Node.ELEMENT_NODE})};
p.prototype.getEffectiveTextContent=function(){for(var h=this.getEffectiveChildNodes(),c=[],M=0,f;f=h[M];M++)f.nodeType!==Node.COMMENT_NODE&&c.push(f.textContent);return c.join("")};
p.prototype.queryEffectiveChildren=function(h){return(h=this.queryDistributedElements(h))&&h[0]};
p.prototype.queryAllEffectiveChildren=function(h){return this.queryDistributedElements(h)};
p.prototype.getContentChildNodes=function(h){return(h=this.root.querySelector(h||"slot"))?_.Ef(h).getDistributedNodes():[]};
p.prototype.getContentChildren=function(h){return this.getContentChildNodes(h).filter(function(c){return c.nodeType===Node.ELEMENT_NODE})};
p.prototype.isLightDescendant=function(h){return this!==h&&(0,_.qn)(this).contains(h)&&(0,_.qn)(this).getRootNode()===(0,_.qn)(h).getRootNode()};
p.prototype.isLocalDescendant=function(h){return this.root===(0,_.qn)(h).getRootNode()};
p.prototype.scopeSubtree=function(h,c){return QEM(h,c===void 0?!1:c)};
p.prototype.getComputedStyleValue=function(h){return wg6.getComputedStyleValue(this,h)};
p.prototype.debounce=function(h,c,M){this._debouncers=this._debouncers||{};return this._debouncers[h]=_.hc(this._debouncers[h],M>0?_.Ba.after(M):nN,c.bind(this))};
p.prototype.isDebouncerActive=function(h){this._debouncers=this._debouncers||{};h=this._debouncers[h];return!(!h||!h.isActive())};
p.prototype.flushDebouncer=function(h){this._debouncers=this._debouncers||{};(h=this._debouncers[h])&&h.flush()};
p.prototype.cancelDebouncer=function(h){this._debouncers=this._debouncers||{};(h=this._debouncers[h])&&h.cancel()};
p.prototype.async=function(h,c){return c>0?_.Ba.run(h.bind(this),c):~nN.run(h.bind(this))};
p.prototype.cancelAsync=function(h){h<0?nN.cancel(~h):_.Ba.cancel(h)};
p.prototype.create=function(h,c){h=document.createElement(h);if(c)if(h.setProperties)h.setProperties(c);else for(var M in c)h[M]=c[M];return h};
p.prototype.elementMatches=function(h,c){return ZRB(c||this,h)};
p.prototype.toggleAttribute=function(h,c){var M=this;arguments.length===3&&(M=arguments[2]);arguments.length==1&&(c=!M.hasAttribute(h));if(c)return(0,_.qn)(M).setAttribute(h,""),!0;(0,_.qn)(M).removeAttribute(h);return!1};
p.prototype.toggleClass=function(h,c,M){M=M||this;arguments.length==1&&(c=!M.classList.contains(h));c?M.classList.add(h):M.classList.remove(h)};
p.prototype.transform=function(h,c){c=c||this;c.style.webkitTransform=h;c.style.transform=h};
p.prototype.translate3d=function(h,c,M,f){this.transform("translate3d("+h+","+c+","+M+")",f||this)};
p.prototype.arrayDelete=function(h,c){if(Array.isArray(h)){if(c=h.indexOf(c),c>=0)return h.splice(c,1)}else if(c=DW(this,h).indexOf(c),c>=0)return this.splice(h,c,1);return null};
p.prototype._logger=function(h,c){Array.isArray(c)&&c.length===1&&Array.isArray(c[0])&&(c=c[0]);switch(h){case "log":case "warn":case "error":console[h].apply(console,_.se(c))}};
p.prototype._log=function(){this._logger("log",_.we.apply(0,arguments))};
p.prototype._warn=function(){this._logger("warn",_.we.apply(0,arguments))};
p.prototype._error=function(){this._logger("error",_.we.apply(0,arguments))};
p.prototype._logf=function(h){return["[%s::%s]",this.is,h].concat(_.se(_.we.apply(1,arguments)))};
_.R8.Object.defineProperties(p.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var h=(0,_.qn)(this).getRootNode();return h instanceof DocumentFragment?h.host:h}}});
_.R8.Object.defineProperties(p,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Kcj&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],gqr(this.prototype)),this.__observedAttributes):F.call(this).concat("disable-upgrade")}}});
p.prototype.is="";return p});Polymer.FlattenedNodesObserver=fuB;Polymer.DomApi=JFb;Polymer.EventApi=qj;Polymer.dom=_.Ef;Polymer.dom.matchesSelector=ZRB;Polymer.dom.flush=_.DQ;Polymer.dom.addDebouncer=_.l3;Polymer.DirMixin=Xgj;Polymer.RenderStatus={beforeNextRender:_.EgB,afterNextRender:_.jB,flush:function(){for(;Cqw.length||O4.length;)JHk(Cqw),JHk(O4);o8=!1}};Polymer.LegacyElementMixin=_.CW;var GFk;GFk=a_._mutablePropertyChange;var VVj={properties:{mutableData:Boolean},_shouldPropertyChange:function(p,x,F){return GFk(this,p,x,F,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(p,x,F){return GFk(this,p,x,F,!0)}};
Polymer.OptionalMutableDataBehavior=VVj;var IrB={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Fj6={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},x86=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Fj6),W9b=(0,_.CW)(HTMLElement),fFm=function(p,x){p||console.warn("Polymer.Class requires `info` argument");x=x?x(W9b):W9b;x=NMp(p,x,p.behaviors);x.is=x.prototype.is=
p.is;return x};Polymer.Class=fFm;Polymer.mixinBehaviors=function(p,x){return NMp({},(0,_.CW)(x),p)};
Polymer.GenerateClassFromInfo=NMp;_.qu=function(p){var x=typeof p==="function"?p:_.qu.Class(p);p._legacyForceObservedAttributes&&(x.prototype._legacyForceObservedAttributes=p._legacyForceObservedAttributes);customElements.define(x.is,x);return x};
_.qu.Class=fFm;Polymer._polymerFn=_.qu;var HRl=window.onLegacyPolymerFunctionDefinedCallback;HRl&&HRl();var qtB={templatize:function(p,x){this._templatizerTemplate=p;this.ctor=YM(p,this,{mutableData:!!x,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(p){return new this.ctor(p)},
modelForElement:function(p){return q6d(this._templatizerTemplate,p)}};Polymer.Templatizer=qtB;_.SX=(0,_.CW)(HTMLElement).prototype;Polymer.Base=_.SX;var lRJ=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.kM=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.E(_.kM,PolymerFakeBaseClass);var U4=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.E(U4,PolymerFakeBaseClass);var cap=Symbol("Md"),t0H=[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 mBm=mBm||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},osC;(function(p){function x(R,ld,pp){var Kp=Fw.get(R);if(!Kp){if(!pp)return;Kp=new Y;Fw.set(R,Kp)}R=Kp.get(ld);if(!R){if(!pp)return;R=new Y;Kp.set(ld,R)}return R}
function F(R,ld,pp){if(N(R,ld,pp))return!0;ld=C(ld);return ld!==null?F(R,ld,pp):!1}
function N(R,ld,pp){ld=x(ld,pp,!1);return ld===void 0?!1:!!ld.has(R)}
function h(R,ld,pp){if(N(R,ld,pp))return c(R,ld,pp);ld=C(ld);if(ld!==null)return h(R,ld,pp)}
function c(R,ld,pp){ld=x(ld,pp,!1);if(ld!==void 0)return ld.get(R)}
function M(R,ld){var pp=f(R,ld);R=C(R);if(R===null)return pp;var Kp=M(R,ld);if(Kp.length<=0)return pp;if(pp.length<=0)return Kp;ld=new O;R=[];pp=_.a(pp);for(var sM=pp.next();!sM.done;sM=pp.next())sM=sM.value,ld.has(sM)||(ld.add(sM),R.push(sM));pp=_.a(Kp);for(Kp=pp.next();!Kp.done;Kp=pp.next())Kp=Kp.value,ld.has(Kp)||(ld.add(Kp),R.push(Kp));return R}
function f(R,ld){R=x(R,ld,!1);var pp=[];R&&R.forEach(function(Kp,sM){return pp.push(sM)});
return pp}
function K(R){return R===void 0}
function t(R){return typeof R==="object"?R!==null:typeof R==="function"}
function d(R){return typeof R==="function"}
function v(R){return typeof R==="symbol"?R:String(R)}
function C(R){var ld=Object.getPrototypeOf(R);if(typeof R!=="function"||R===A||ld!==A)return ld;var pp=Object.getPrototypeOf(R.prototype);if(pp==null||pp===Object.prototype)return ld;pp=pp.constructor;return typeof pp!=="function"||pp===R?ld:pp}
function X(){function R(){this._keys=[];this._values=[];this._cache=ld}
var ld={};R.prototype={get size(){return this._keys.length},has:function(pp){return pp===this._cache?!0:this._find(pp)>=0?(this._cache=pp,!0):!1},
get:function(pp){var Kp=this._find(pp);if(Kp>=0)return this._cache=pp,this._values[Kp]},
set:function(pp,Kp){this.delete(pp);this._keys.push(pp);this._values.push(Kp);this._cache=pp;return this},
delete:function(pp){pp=this._find(pp);return pp>=0?(this._keys.splice(pp,1),this._values.splice(pp,1),this._cache=ld,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=ld},
forEach:function(pp){for(var Kp=this.size,sM=0;sM<Kp;++sM){var np=this._keys[sM],Jz=this._values[sM];this._cache=np;pp.call(this,Jz,np,this)}},
_find:function(pp){for(var Kp=this._keys,sM=Kp.length,np=0;np<sM;++np)if(Kp[np]===pp)return np;return-1}};
return R}
function Q(){function R(){this._map=new Y}
R.prototype={get size(){return this._map.length},has:function(ld){return this._map.has(ld)},
add:function(ld){this._map.set(ld,ld);return this},
delete:function(ld){return this._map.delete(ld)},
clear:function(){this._map.clear()},
forEach:function(ld,pp){this._map.forEach(ld,pp)}};
return R}
function b(){function R(){this._key=pp()}
function ld(xB,qI){for(var RJ=0;RJ<qI;++RJ)xB[RJ]=Math.random()*255|0}
function pp(){do{if(sM)var xB=sM.randomBytes(16);else typeof Uint8Array==="function"?(xB=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(xB):ld(xB,16)):(xB=Array(16),ld(xB,16));xB[6]=xB[6]&79|64;xB[8]=xB[8]&191|128;for(var qI="",RJ=0;RJ<16;++RJ){var Ik=xB[RJ];if(RJ===4||RJ===6||RJ===8)qI+="-";Ik<16&&(qI+="0");qI+=Ik.toString(16).toLowerCase()}xB="@@WeakMap@@"+qI}while(np.call(Jz,xB));Jz[xB]=!0;return xB}
function Kp(xB,qI){if(!np.call(xB,Y$)){if(!qI)return;Object.defineProperty(xB,Y$,{value:Object.create(null)})}return xB[Y$]}
var sM=typeof global!=="undefined"&&typeof mBm==="object"&&typeof require==="function"&&require("crypto"),np=Object.prototype.hasOwnProperty,Jz={},Y$=pp();R.prototype={has:function(xB){return(xB=Kp(xB,!1))?this._key in xB:!1},
get:function(xB){if(xB=Kp(xB,!1))return xB[this._key]},
set:function(xB,qI){Kp(xB,!0)[this._key]=qI;return this},
delete:function(xB){return(xB=Kp(xB,!1))&&this._key in xB?delete xB[this._key]:!1},
clear:function(){this._key=pp()}};
return R}
var A=Object.getPrototypeOf(Function),Y=typeof Map==="function"?Map:X(),O=typeof Set==="function"?Set:Q(),Fw=new (typeof WeakMap==="function"?WeakMap:b());p.decorate=function(R,ld,pp,Kp){if(K(Kp)){if(K(pp)){if(!Array.isArray(R))throw new TypeError;if(!d(ld))throw new TypeError;for(pp=R.length-1;pp>=0;--pp)if(Kp=(0,R[pp])(ld),!K(Kp)){if(!d(Kp))throw new TypeError;ld=Kp}return ld}if(!Array.isArray(R))throw new TypeError;if(!t(ld))throw new TypeError;pp=v(pp);for(Kp=R.length-1;Kp>=0;--Kp)(0,R[Kp])(ld,
pp)}else{if(Array.isArray(R))if(t(ld)){if(K(pp))throw new TypeError;if(!t(Kp))throw new TypeError;}else throw new TypeError;else throw new TypeError;pp=v(pp);for(var sM=R.length-1;sM>=0;--sM){var np=(0,R[sM])(ld,pp,Kp);if(!K(np)){if(!t(np))throw new TypeError;Kp=np}}return Kp}};
p.metadata=function(R,ld){return function(pp,Kp){if(K(Kp)){if(!d(pp))throw new TypeError;x(pp,void 0,!0).set(R,ld)}else{if(!t(pp))throw new TypeError;Kp=v(Kp);x(pp,Kp,!0).set(R,ld)}}};
p.defineMetadata=function(R,ld){var pp;if(t(ld))K(pp)||(pp=v(pp));else throw new TypeError;x(ld,pp,!0).set("parameters",R)};
p.hasMetadata=function(R,ld,pp){if(t(ld))K(pp)||(pp=v(pp));else throw new TypeError;return F(R,ld,pp)};
p.hasOwnMetadata=function(R,ld,pp){if(t(ld))K(pp)||(pp=v(pp));else throw new TypeError;return N(R,ld,pp)};
p.getMetadata=function(R,ld,pp){if(t(ld))K(pp)||(pp=v(pp));else throw new TypeError;return h(R,ld,pp)};
p.getOwnMetadata=function(R,ld,pp){if(t(ld))K(pp)||(pp=v(pp));else throw new TypeError;return c(R,ld,pp)};
p.getMetadataKeys=function(R,ld){if(t(R))K(ld)||(ld=v(ld));else throw new TypeError;return M(R,ld)};
p.getOwnMetadataKeys=function(R,ld){if(t(R))K(ld)||(ld=v(ld));else throw new TypeError;return f(R,ld)};
p.deleteMetadata=function(R,ld,pp){if(t(ld))K(pp)||(pp=v(pp));else throw new TypeError;var Kp=x(ld,pp,!1);if(!K(Kp)){if(!Kp.delete(R))return!1;if(Kp.size>0)return!0;R=Fw.get(ld);R.delete(pp);if(R.size>0)return!0;Fw.delete(ld);return!0}};
(function(R){if(typeof R.Reflect!=="undefined"){if(R.Reflect!==p)for(var ld in p)R.Reflect[ld]=p[ld]}else R.Reflect=p})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(osC||(osC={}));var HlJ=self;var ORD=[0,_.T5,_.RE,_.T5];var jsb=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(jsb,_.Uk);var L9B=_.NM(jsb,[0,_.Isk,_.kg,ORD,_.RE,_.iq]);_.NL(_.iL,_.Jm);_.l=_.iL.prototype;_.l.start=function(){this.stop();this.usingListeners_=!1;var p=PXv(this),x=TX6(this);p&&!x&&this.JSC$9059_win_.mozRequestAnimationFrame?(this.JSC$9059_id_=_.qd(this.JSC$9059_win_,"MozBeforePaint",this.callback_),this.JSC$9059_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9059_id_=p&&x?p.call(this.JSC$9059_win_,this.callback_):this.JSC$9059_win_.setTimeout(Fmn(this.callback_),20)};
_.l.stop=function(){if(this.isActive()){var p=PXv(this),x=TX6(this);p&&!x&&this.JSC$9059_win_.mozRequestAnimationFrame?D$(this.JSC$9059_id_):p&&x?x.call(this.JSC$9059_win_,this.JSC$9059_id_):this.JSC$9059_win_.clearTimeout(this.JSC$9059_id_)}this.JSC$9059_id_=null};
_.l.fire=function(){this.stop();this.JSC$9061_doAction_()};
_.l.isActive=function(){return this.JSC$9059_id_!=null};
_.l.JSC$9061_doAction_=function(){this.usingListeners_&&this.JSC$9059_id_&&D$(this.JSC$9059_id_);this.JSC$9059_id_=null;this.JSC$9059_listener_.call(this.handler_,_.FV())};
_.l.disposeInternal=function(){this.stop();_.iL.superClass_.disposeInternal.call(this)};
var PXv=function(p){p=p.JSC$9059_win_;return p.requestAnimationFrame||p.webkitRequestAnimationFrame||p.mozRequestAnimationFrame||p.oRequestAnimationFrame||p.msRequestAnimationFrame||null},TX6=function(p){p=p.JSC$9059_win_;
return p.cancelAnimationFrame||p.cancelRequestAnimationFrame||p.webkitCancelRequestAnimationFrame||p.mozCancelRequestAnimationFrame||p.oCancelRequestAnimationFrame||p.msCancelRequestAnimationFrame||null};_.IC=function(p,x,F){_.Jm.call(this);this.JSC$9062_listener_=F!=null?p.bind(F):p;this.JSC$9062_interval_=x;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9062_timer_=null};
_.E(_.IC,_.Jm);_.l=_.IC.prototype;_.l.fire=function(p){this.args_=arguments;this.JSC$9062_timer_||this.pauseCount_?this.shouldFire_=!0:BXZ(this)};
_.l.stop=function(){this.JSC$9062_timer_&&(_.Mm.clearTimeout(this.JSC$9062_timer_),this.JSC$9062_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.l.pause=function(){this.pauseCount_++};
_.l.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9062_timer_||(this.shouldFire_=!1,BXZ(this))};
_.l.disposeInternal=function(){_.Jm.prototype.disposeInternal.call(this);this.stop()};
var BXZ=function(p){p.JSC$9062_timer_=Qo(function(){p.JSC$9062_timer_=null;p.shouldFire_&&!p.pauseCount_&&(p.shouldFire_=!1,BXZ(p))},p.JSC$9062_interval_);
var x=p.args_;p.args_=null;p.JSC$9062_listener_.apply(null,x)};var R9Z=function(p,x){this.childIterator_=p[_.Mm.Symbol.iterator]();this.mapFn_=x};
R9Z.prototype[Symbol.iterator]=function(){return this};
R9Z.prototype.next=function(){var p=this.childIterator_.next();return{value:p.done?void 0:this.mapFn_.call(void 0,p.value),done:p.done}};
var kFv=function(p,x){return new R9Z(p,x)};var UBm={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 Nrw=function(p){var x=iRb(p);if(!x)throw Error("Qd`"+p);return x},iRb=function(p){var x={};
p=String(p);var F=p.charAt(0)=="#"?p:"#"+p;if(Iuk.test(F))return x.hex=eCp(F),x.type="hex",x;F=afp(p);return F.length?(x.hex=xQM(F[0],F[1],F[2]),x.type="rgb",x):UBm&&(p=UBm[p.toLowerCase()])?(x.hex=p,x.type="named",x):null},$BC=/#(.)(.)(.)/,eCp=function(p){if(!Iuk.test(p))throw Error("Sd`"+p);
p.length==4&&(p=p.replace($BC,"#$1$1$2$2$3$3"));return p.toLowerCase()},hCd=function(p){p=eCp(p);
p=parseInt(p.slice(1),16);return[p>>16,p>>8&255,p&255]},xQM=function(p,x,F){p=Number(p);
x=Number(x);F=Number(F);if(p!=(p&255)||x!=(x&255)||F!=(F&255))throw Error("Td`"+p+"`"+x+"`"+F);x=p<<16|x<<8|F;return p<16?"#"+(16777216|x).toString(16).slice(1):"#"+x.toString(16)},Iuk=/^#(?:[0-9a-f]{3}){1,2}$/i,e9Z=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,afp=function(p){var x=p.match(e9Z);
if(x){p=Number(x[1]);var F=Number(x[2]);x=Number(x[3]);if(p>=0&&p<=255&&F>=0&&F<=255&&x>=0&&x<=255)return[p,F,x]}return[]};var pTj={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},Xo=pTj;Xo=pTj;var RIE,xuI,FOZ;RIE=function(p,x){switch(x){case 1:return p%4!=0||p%100==0&&p%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
xuI=function(p,x,F,N,h){p=new Date(p,x,F);h=h||0;return p.valueOf()+(((N!==void 0?N:3)-h+7)%7-((p.getDay()+6)%7-h+7)%7)*864E5};
_.r_=function(p,x,F){typeof p==="number"?(this.date=FOZ(p,x||0,F||1),Nok(this,F||1)):_.IJ(p)?(this.date=FOZ(p.getFullYear(),p.getMonth(),p.getDate()),Nok(this,p.getDate())):(this.date=new Date(_.FV()),p=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Nok(this,p))};
FOZ=function(p,x,F){x=new Date(p,x,F);p>=0&&p<100&&x.setFullYear(x.getFullYear()-1900);return x};
_.l=_.r_.prototype;_.l.firstDayOfWeek_=Xo.FIRSTDAYOFWEEK;_.l.firstWeekCutOffDay_=Xo.FIRSTWEEKCUTOFFDAY;_.l.clone=function(){var p=new _.r_(this.date);p.firstDayOfWeek_=this.firstDayOfWeek_;p.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return p};
_.l.getFullYear=function(){return this.date.getFullYear()};
_.l.getYear=function(){return this.getFullYear()};
_.l.getMonth=function(){return this.date.getMonth()};
_.l.getDate=function(){return this.date.getDate()};
_.l.getTime=function(){return this.date.getTime()};
_.l.getDay=function(){return this.date.getDay()};
_.l.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.l.getUTCMonth=function(){return this.date.getUTCMonth()};
_.l.getUTCDate=function(){return this.date.getUTCDate()};
_.l.getUTCDay=function(){return this.date.getDay()};
_.l.getUTCHours=function(){return this.date.getUTCHours()};
_.l.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.l.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.l.set=function(p){this.date=new Date(p.getFullYear(),p.getMonth(),p.getDate())};
_.l.setFullYear=function(p){this.date.setFullYear(p)};
_.l.setYear=function(p){this.setFullYear(p)};
_.l.setMonth=function(p){this.date.setMonth(p)};
_.l.setDate=function(p){this.date.setDate(p)};
_.l.setTime=function(p){this.date.setTime(p)};
_.l.setUTCFullYear=function(p){this.date.setUTCFullYear(p)};
_.l.setUTCMonth=function(p){this.date.setUTCMonth(p)};
_.l.setUTCDate=function(p){this.date.setUTCDate(p)};
_.l.add=function(p){if(p.years||p.months){var x=this.getMonth()+p.months+p.years*12,F=this.getYear()+Math.floor(x/12);x%=12;x<0&&(x+=12);var N=Math.min(RIE(F,x),this.getDate());this.setDate(1);this.setFullYear(F);this.setMonth(x);this.setDate(N)}p.days&&(F=this.getYear(),x=F>=0&&F<=99?-1900:0,p=new Date((new Date(F,this.getMonth(),this.getDate(),12)).getTime()+p.days*864E5),this.setDate(1),this.setFullYear(p.getFullYear()+x),this.setMonth(p.getMonth()),this.setDate(p.getDate()),Nok(this,p.getDate()))};
_.l.JSC$9075_toIsoString=function(p){var x=this.getFullYear(),F=x<0?"-":x>=1E4?"+":"";return[F+_.Fn(Math.abs(x),F?6:4),_.Fn(this.getMonth()+1,2),_.Fn(this.getDate(),2)].join(p?"-":"")};
_.l.equals=function(p){return!(!p||this.getYear()!=p.getYear()||this.getMonth()!=p.getMonth()||this.getDate()!=p.getDate())};
_.l.toString=function(){return this.JSC$9075_toIsoString()};
var Nok=function(p,x){p.getDate()!=x&&p.date.setUTCHours(p.date.getUTCHours()+(p.getDate()<x?1:-1))};
_.r_.prototype.valueOf=function(){return this.date.valueOf()};var X7=function(p,x,F,N,h){this.reversed=!!x;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!F;p&&E8(this,p,N);this.depth=h!=void 0?h:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.NL(X7,FQ);var E8=function(p,x,F,N){if(p.node=x)p.tagType=typeof F==="number"?F:p.node.nodeType!=1?0:p.reversed?-1:1;typeof N==="number"&&(p.depth=N)};
_.l=X7.prototype;_.l.JSC$9090_copyFrom=function(p){this.node=p.node;this.tagType=p.tagType;this.depth=p.depth;this.reversed=p.reversed;this.constrained=p.constrained};
_.l.clone=function(){return new X7(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.l.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return Nh;var p=this.node;var x=this.reversed?-1:1;if(this.tagType==x){var F=this.reversed?p.lastChild:p.firstChild;F?E8(this,F):E8(this,p,x*-1)}else(F=this.reversed?p.previousSibling:p.nextSibling)?E8(this,F):E8(this,p.parentNode,x*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(p=this.node)?hw(p):Nh};
_.l.equals=function(p){return p.node==this.node&&(!this.node||p.tagType==this.tagType)};
_.l.splice=function(p){var x=this.node,F=this.reversed?1:-1;this.tagType==F&&(this.tagType=F*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;X7.prototype.next.call(this);this.reversed=!this.reversed;F=_.TB(arguments[0])?arguments[0]:arguments;for(var N=F.length-1;N>=0;N--)_.VO(F[N],x);_.qc(x)};var hnD=function(){},g_=function(p){for(var x=[],F=p.getTextRangeCount(),N=0;N<F;N++)x.push(p.getTextRange(N));
return x};
hnD.prototype.isReversed=function(){return!1};
hnD.prototype.getWindow=function(){return n2(_.y5(this.JSC$9092_getStartNode()))};
var lvv=function(p,x){X7.call(this,p,x,!0)};
_.NL(lvv,X7);var Qs=function(p,x,F,N,h){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!h;if(p){this.startNode_=p;this.startOffset_=x;this.endNode_=F;this.endOffset_=N;if(p.nodeType==1&&p.tagName!="BR")if(p=p.childNodes,x=p[x])this.startNode_=x,this.startOffset_=0;else{p.length&&(this.startNode_=_.GB(p));var c=!0}F.nodeType==1&&((this.endNode_=F.childNodes[N])?this.endOffset_=0:this.endNode_=F)}X7.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);c&&this.next()};
_.NL(Qs,lvv);_.l=Qs.prototype;_.l.JSC$9098_getStartNode=function(){return this.startNode_};
_.l.isLast=function(){return this.started_&&(this.node!=(this.isReversed_?this.startNode_:this.endNode_)?!1:this.isReversed_?this.startOffset_?this.tagType!=-1:this.tagType==1:!this.endOffset_||this.tagType!=1)};
_.l.next=function(){return this.isLast()?Nh:Qs.superClass_.next.call(this)};
_.l.JSC$9090_copyFrom=function(p){this.startNode_=p.startNode_;this.endNode_=p.endNode_;this.startOffset_=p.startOffset_;this.endOffset_=p.endOffset_;this.isReversed_=p.isReversed_;Qs.superClass_.JSC$9090_copyFrom.call(this,p)};
_.l.clone=function(){var p=new Qs(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);p.JSC$9090_copyFrom(this);return p};var cZn=function(){};
cZn.prototype.__iterator__=function(){return new Qs(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var zi=function(p){this.range_=p};
_.NL(zi,cZn);var avb=function(p){var x=_.y5(p).createRange();if(p.nodeType==3)x.setStart(p,0),x.setEnd(p,p.length);else if(Y5(p)||p.nodeType==3){for(var F,N=p;(F=N.firstChild)&&(Y5(F)||F.nodeType==3);)N=F;x.setStart(N,0);for(N=p;(F=N.lastChild)&&(Y5(F)||F.nodeType==3);)N=F;x.setEnd(N,N.nodeType==1?N.childNodes.length:N.length)}else F=p.parentNode,p=Array.prototype.indexOf.call(F.childNodes,p),x.setStart(F,p),x.setEnd(F,p+1);return x},MA6=function(p,x,F,N){var h=_.y5(p).createRange();
h.setStart(p,x);h.setEnd(F,N);return h};
_.l=zi.prototype;_.l.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.l.getContainer=function(){return this.range_.commonAncestorContainer};
_.l.compareBrowserRangeEndpoints=function(p,x,F){return this.range_.compareBoundaryPoints(F==1?x==1?_.Mm.Range.START_TO_START:_.Mm.Range.START_TO_END:x==1?_.Mm.Range.END_TO_START:_.Mm.Range.END_TO_END,p)};
_.l.isCollapsed=function(){return this.range_.collapsed};
_.l.select=function(p){this.selectInternal(n2(_.y5(this.range_.startContainer)).getSelection(),p)};
_.l.selectInternal=function(p){p.removeAllRanges();p.addRange(this.range_)};
_.l.insertNode=function(p,x){var F=this.range_.cloneRange();F.collapse(x);F.insertNode(p);F.detach();return p};
_.l.collapse=function(p){this.range_.collapse(p)};_.NL(I8,zi);I8.prototype.selectInternal=function(p,x){!x||this.isCollapsed()?I8.superClass_.selectInternal.call(this,p,x):(p.collapse(this.range_.endContainer,this.range_.endOffset),p.extend(this.range_.startContainer,this.range_.startOffset))};_.NL($M,zi);$M.prototype.compareBrowserRangeEndpoints=function(p,x,F){return $M.superClass_.compareBrowserRangeEndpoints.call(this,p,x,F)};
$M.prototype.selectInternal=function(p,x){x?p.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):p.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Duj=function(p){return _.fT?new $M(p):_.Dr?new I8(p):new zi(p)};var s8=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},fvC;
_.NL(s8,hnD);fvC=function(p,x){var F=new s8;F.browserRangeWrapper_=p;F.isReversed_=!!x;return F};
_.KOb=function(p){p=_.fT?new $M(avb(p)):_.Dr?new I8(avb(p)):new zi(avb(p));return fvC(p)};
_.nW=function(p,x,F,N){var h=new s8;h.isReversed_=qQJ(p,x,F,N);if(_.O0(p)&&!Y5(p)){var c=p.parentNode;x=Array.prototype.indexOf.call(c.childNodes,p);p=c}_.O0(F)&&!Y5(F)&&(c=F.parentNode,N=Array.prototype.indexOf.call(c.childNodes,F),F=c);h.isReversed_?(h.startNode_=F,h.startOffset_=N,h.endNode_=p,h.endOffset_=x):(h.startNode_=p,h.startOffset_=x,h.endNode_=F,h.endOffset_=N);return h};
_.l=s8.prototype;_.l.clone=function(){var p=new s8;p.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();p.startNode_=this.startNode_;p.startOffset_=this.startOffset_;p.endNode_=this.endNode_;p.endOffset_=this.endOffset_;p.isReversed_=this.isReversed_;return p};
_.l.JSC$9092_getType=function(){return"text"};
_.l.getBrowserRangeObject=function(){return ys(this).range_};
_.l.getTextRangeCount=function(){return 1};
_.l.getTextRange=function(){return this};
var ys=function(p){var x;if(!(x=p.browserRangeWrapper_)){x=p.JSC$9092_getStartNode();var F=p.JSC$9092_getStartOffset(),N=p.JSC$9092_getEndNode(),h=p.JSC$9092_getEndOffset();x=_.fT?new $M(MA6(x,F,N,h)):_.Dr?new I8(MA6(x,F,N,h)):new zi(MA6(x,F,N,h));x=p.browserRangeWrapper_=x}return x};
_.l=s8.prototype;_.l.getContainer=function(){return ys(this).getContainer()};
_.l.JSC$9092_getStartNode=function(){var p;(p=this.startNode_)||(p=this.startNode_=ys(this).range_.startContainer);return p};
_.l.JSC$9092_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=ys(this).range_.startOffset};
_.l.JSC$9092_getEndNode=function(){var p;(p=this.endNode_)||(p=this.endNode_=ys(this).range_.endContainer);return p};
_.l.JSC$9092_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=ys(this).range_.endOffset};
_.l.isReversed=function(){return this.isReversed_};
_.l.JSC$9092_containsRange=function(p,x){if(p.JSC$9092_getType()=="text"){var F=ys(this);p=ys(p);x=x&&!p.isCollapsed();p=p.range_;F=x?F.compareBrowserRangeEndpoints(p,0,1)>=0&&F.compareBrowserRangeEndpoints(p,1,0)<=0:F.compareBrowserRangeEndpoints(p,0,0)>=0&&F.compareBrowserRangeEndpoints(p,1,1)<=0}else F=!1;return F};
_.l.isCollapsed=function(){return ys(this).isCollapsed()};
_.l.JSC$9092_getText=function(){return ys(this).range_.toString()};
_.l.__iterator__=function(){return new Qs(this.JSC$9092_getStartNode(),this.JSC$9092_getStartOffset(),this.JSC$9092_getEndNode(),this.JSC$9092_getEndOffset())};
_.l.select=function(){ys(this).select(this.isReversed_)};
_.l.JSC$9092_removeContents=function(){var p=ys(this).range_;p.extractContents();if(p.startContainer.hasChildNodes()&&(p=p.startContainer.childNodes[p.startOffset])){var x=p.previousSibling;EEb(p)==""&&_.qc(p);x&&EEb(x)==""&&_.qc(x)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.l.insertNode=function(p,x){p=ys(this).insertNode(p,x);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return p};
_.l.collapse=function(p){p=this.isReversed()?!p:p;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(p);p?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var Z5k=function(){};
_.NL(Z5k,hnD);Z5k.prototype.JSC$9092_containsRange=function(p,x){var F=g_(this);p=g_(p);return(x?Wu:_.F$d)(p,function(N){return Wu(F,function(h){return h.JSC$9092_containsRange(N,x)})})};
Z5k.prototype.insertNode=function(p,x){x?_.Ga(p,this.JSC$9092_getStartNode()):_.VO(p,this.JSC$9092_getEndNode());return p};var tAk,duB=gEv(vm()).documentElement;tAk=duB.requestFullscreen?"fullscreenchange":duB.webkitRequestFullscreen?"webkitfullscreenchange":duB.mozRequestFullScreen?"mozfullscreenchange":duB.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var vJk=function(){var p=gEv(vm());return!!(p.webkitIsFullScreen||p.mozFullScreen||p.msFullscreenElement||p.fullscreenElement)};var b3=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.NL(b3,Z5k);_.l=b3.prototype;_.l.clone=function(){var p=new b3;p.browserRanges_=_.Pr(this.browserRanges_);return p};
_.l.JSC$9092_getType=function(){return"mutli"};
_.l.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.l.getTextRangeCount=function(){return this.browserRanges_.length};
_.l.getTextRange=function(p){this.ranges_[p]||(this.ranges_[p]=fvC(Duj(this.browserRanges_[p])));return this.ranges_[p]};
_.l.getContainer=function(){if(!this.container_){for(var p=[],x=this.getTextRangeCount(),F=0;F<x;F++)p.push(this.getTextRange(F).getContainer());this.container_=tPD.apply(null,p)}return this.container_};
var Ac=function(p){p.sortedRanges_||(p.sortedRanges_=g_(p),p.sortedRanges_.sort(function(x,F){var N=x.JSC$9092_getStartNode();x=x.JSC$9092_getStartOffset();var h=F.JSC$9092_getStartNode();F=F.JSC$9092_getStartOffset();return N==h&&x==F?0:qQJ(N,x,h,F)?1:-1}));
return p.sortedRanges_};
_.l=b3.prototype;_.l.JSC$9092_getStartNode=function(){return Ac(this)[0].JSC$9092_getStartNode()};
_.l.JSC$9092_getStartOffset=function(){return Ac(this)[0].JSC$9092_getStartOffset()};
_.l.JSC$9092_getEndNode=function(){return _.GB(Ac(this)).JSC$9092_getEndNode()};
_.l.JSC$9092_getEndOffset=function(){return _.GB(Ac(this)).JSC$9092_getEndOffset()};
_.l.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.l.JSC$9092_getText=function(){return g_(this).map(function(p){return p.JSC$9092_getText()}).join("")};
_.l.__iterator__=function(){return new u3(this)};
_.l.select=function(){var p=this.getWindow().getSelection();p.removeAllRanges();for(var x=this.getTextRangeCount(),F=0;F<x;F++)p.addRange(this.getTextRange(F).getBrowserRangeObject())};
_.l.JSC$9092_removeContents=function(){g_(this).forEach(function(p){p.JSC$9092_removeContents()})};
_.l.collapse=function(p){if(!this.isCollapsed()){var x=p?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;x.collapse(p);this.ranges_=[x];this.sortedRanges_=[x];this.browserRanges_=[x.getBrowserRangeObject()]}};
var u3=function(p){this.iterators_=null;this.currentIdx_=0;p&&(this.iterators_=Ac(p).map(function(x){return _.VBJ(x)}));
X7.call(this,p?this.JSC$9098_getStartNode():null,!1,!0)};
_.NL(u3,lvv);_.l=u3.prototype;_.l.JSC$9098_getStartNode=function(){return this.iterators_[0].JSC$9098_getStartNode()};
_.l.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.l.next=function(){for(;this.currentIdx_<this.iterators_.length;){var p=this.iterators_[this.currentIdx_],x=p.next();if(x.done)this.currentIdx_++;else return E8(this,p.node,p.tagType,p.depth),x}return Nh};
_.l.JSC$9090_copyFrom=function(p){this.iterators_=_.Pr(p.iterators_);u3.superClass_.JSC$9090_copyFrom.call(this,p)};
_.l.clone=function(){var p=new u3(null);p.JSC$9090_copyFrom(this);return p};var JZl,qQJ;_.Fo=function(){var p=window.getSelection();return p&&JZl(p)};
JZl=function(p){var x=!1;if(p.createRange)try{var F=p.createRange()}catch(h){return null}else if(p.rangeCount){if(p.rangeCount>1){F=new b3;x=p.rangeCount;for(var N=0;N<x;N++)F.browserRanges_.push(p.getRangeAt(N));return F}F=p.getRangeAt(0);x=qQJ(p.anchorNode,p.anchorOffset,p.focusNode,p.focusOffset)}else return null;return fvC(Duj(F),x)};
_.Yz=function(p,x){return _.nW(p,x,p,x)};
_.w_=function(p,x,F,N){return _.nW(p,x,F,N)};
qQJ=function(p,x,F,N){if(p==F)return N<x;var h;if(p.nodeType==1&&x)if(h=p.childNodes[x])p=h,x=0;else if(_.uI(p,F))return!0;if(F.nodeType==1&&N)if(h=F.childNodes[N])F=h,N=0;else if(_.uI(F,p))return!1;return(Z6J(p,F)||x-N)>0};var Gi=function(){_.Sc.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.CH)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.CH)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.CH)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.CH)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.CH)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.CH)(this.dispatchProgressEvent_,this)};
_.NL(Gi,_.Sc);Gi.prototype.abort=function(){try{this.reader_.abort()}catch(p){throw new BjD(p,"aborting read");}};
Gi.prototype.getError=function(){return this.reader_.error&&new BjD(this.reader_.error,"reading file")};
Gi.prototype.dispatchProgressEvent_=function(p){this.dispatchEvent(new RRl(p,this))};
Gi.prototype.disposeInternal=function(){Gi.superClass_.disposeInternal.call(this);delete this.reader_};
var SQ6=function(p){var x=new Gi,F=C8m(x);x.reader_.readAsArrayBuffer(p);return F},rZj=function(p){var x=new Gi,F=C8m(x);
x.reader_.readAsDataURL(p);return F},C8m=function(p){var x=new Li;
p.listen("loadend",_.Sz(function(F,N){var h=N.reader_.result,c=N.getError();h==null||c?F.errback(c):F.callback(h);N.dispose()},x,p));
return x};var Vs=function(){_.Sc.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9132_eventHandler_=new _.ps(this);this.JSC$9132_isInitialized_=!1};
_.NL(Vs,_.Sc);var EJ6=new _.Zq("d"),XTB=new _.Zq("beforedragstart"),gJK=new _.Zq("dragstart"),Qdn=new _.Zq("beforedragmove"),znZ=new _.Zq("dragmove"),sdC=new _.Zq("beforedragend"),nJC=new _.Zq("dragend"),yZj=new _.Zq("e");Vs.prototype.isDragging=function(){return!!this.JSC$9132_dragger_};
var b5Z=function(p,x){x.dlgGrowthDirection_=0;x.dlgDragHoverClass_=void 0;x.dlgDragPermission=0;p.dragLists_.push(x)},AZb=function(p,x){p.getHandleForDragItem_=x};
Vs.prototype.init=function(){if(!this.JSC$9132_isInitialized_){for(var p=this.dragLists_.length,x=0;x<p;x++)for(var F=_.Wk(this.dragLists_[x]),N=F.length,h=0;h<N;++h){var c=F[h],M=this.getHandleForDragItem_(c),f=_.$$(M);this.dragItemForHandle_[f]=c;this.dragItemHoverClasses_&&(this.JSC$9132_eventHandler_.listen(c,"mouseover",this.handleDragItemMouseover_),this.JSC$9132_eventHandler_.listen(c,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9132_eventHandler_.listen(M,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9132_eventHandler_.listen(M,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(c);this.JSC$9132_eventHandler_.listen(M,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9132_isInitialized_=!0}};
Vs.prototype.disposeInternal=function(){this.JSC$9132_eventHandler_.dispose();for(var p=this.dragLists_.length,x=0;x<p;x++){var F=this.dragLists_[x];F.dlgGrowthDirection_=void 0;F.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;uf6(this);Vs.superClass_.disposeInternal.call(this)};
var YQJ=function(p,x){for(var F=p.dragLists_.length,N=0;N<F;N++){var h=p.dragLists_[N];h.dlgBounds_=rap(h)}F=p.dragItems_.length;for(N=0;N<F;N++)h=p.dragItems_[N],h!=x&&(h.dlgBounds_=rap(h))};
_.l=Vs.prototype;
_.l.handlePotentialDragStart_=function(p){var x=_.$$(p.currentTarget);x=this.dragItemForHandle_[x];if(x.parentElement.dlgDragPermission!=2){this.currDragItem_=x;a:{x=this.currDragItem_;for(var F=x.cloneNode(!0),N=Z0("TEXTAREA",x),h=Z0("TEXTAREA",F),c=0;c<N.length;c++)h[c].value=N[c].value;switch(x.tagName){case "TR":x=_.Aa("TABLE",null,_.Aa("TBODY",null,F));break a;case "TD":case "TH":x=_.Aa("TABLE",null,_.Aa("TBODY",null,_.Aa("TR",null,F)));break a;case "TEXTAREA":F.value=x.value;default:x=F;break a}x=
void 0}this.draggerEl_=x;this.draggerElClasses_&&O1(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.y5(this.currDragItem_).body.appendChild(this.draggerEl_);F=_.A_(this.currDragItem_);x=this.draggerEl_;N=_.A_(x);if(F instanceof _.sT){var M=F.y;F=F.x}j0(x,x.offsetLeft+(F-N.x),x.offsetTop+(Number(M)-N.y));this.JSC$9132_dragger_=new _.G3(this.draggerEl_);_.TwI(this.JSC$9132_dragger_,this.hysteresisDistance_);
_.qd(this.JSC$9132_dragger_,"start",this.handleDragStart_,!1,this);_.qd(this.JSC$9132_dragger_,"end",this.handleDragEnd_,!1,this);_.qd(this.JSC$9132_dragger_,"earlycancel",this.JSC$9134_cleanup_,!1,this);this.dispatchEvent(new Wq(EJ6,this,p,this.currDragItem_,this.draggerEl_,this.JSC$9132_dragger_));this.JSC$9132_dragger_.startDrag(p)}};
_.l.handleDragStart_=function(p){if(this.dispatchEvent(new Wq(XTB,this,p.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.fnJ(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?O1(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var x=AoZ(this.draggerEl_);this.draggerEl_.halfWidth=x.width/2;this.draggerEl_.halfHeight=x.height/2;x=this.draggerEl_.getBoundingClientRect();
var F=p.clientY,N=Bwk(this.JSC$9132_dragger_,p.clientX);if(N>x.right){var h=this.currDragItem_.getBoundingClientRect();this.JSC$9132_dragger_.deltaX=N-(N-h.left)/h.width*x.width}F=R$k(this.JSC$9132_dragger_,F);F>x.bottom&&(this.JSC$9132_dragger_.deltaY+=F-x.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";YQJ(this,this.currDragItem_);this.currDragItem_.style.display="";_.qd(this.JSC$9132_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new Wq(gJK,
this,p.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9132_dragger_))}else p.preventDefault(),this.JSC$9134_cleanup_()};
_.l.handleDragMove_=function(p){var x=_.A_(this.draggerEl_);x=new _.sT(x.x+this.draggerEl_.halfWidth,x.y+this.draggerEl_.halfHeight);a:{var F=null;if(this.currDragItem_.style.display!="none"){F=this.currDragItem_.parentNode;var N=rap(F);if(wTB(x,N))break a}N=this.dragLists_.length;for(var h=0;h<N;h++){var c=this.dragLists_[h];if(c!=F&&wTB(x,c.dlgBounds_)){F=c;break a}}F=null}if(F){if(F==null)throw Error("Ud");N=0;h=!1;c=void 0;switch(F.dlgGrowthDirection_){case 0:N=x.y;var M=GDm;var f=VAn;break;case 4:h=
!0;case 2:N=x.x;M=WO6;f=VAn;break;case 5:h=!0;case 3:N=x.x,M=H5B,f=muk}for(var K=null,t,d=_.Wk(F),v=d.length,C=0;C<v;C++){var X=d[C];if(X!=this.currDragItem_){var Q=M(X.dlgBounds_);if(h){var b=oJD(X,x);c===void 0&&(c=b);f(N,Q)&&(t==void 0||b<c||b==c&&(f(Q,t)||Q==t))&&(K=X,t=Q);b<c&&(c=b)}else f(N,Q)&&(t==void 0||f(Q,t))&&(K=X,t=Q)}}M=K!==null&&oJD(K,x)>c?null:K}else M=null;if(!this.dispatchEvent(new Wq(Qdn,this,p,this.currDragItem_,this.draggerEl_,this.JSC$9132_dragger_,x,F,M)))return!1;if(F&&F.dlgDragPermission!=
1)this.currDragItem_.parentNode==F&&_.fnJ(this.currDragItem_)==M||F.insertBefore(this.currDragItem_,M),this.currDragItem_.style.display="",F.dlgDragHoverClass_&&_.Wl(F,F.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",f=this.dragLists_.length,t=0;t<f;t++)N=this.dragLists_[t],N.dlgDragHoverClass_&&_.GT(N,N.dlgDragHoverClass_);F!=this.currHoverList_&&(this.currHoverList_=F,YQJ(this,this.currDragItem_));this.dispatchEvent(new Wq(znZ,this,p,this.currDragItem_,this.draggerEl_,this.JSC$9132_dragger_,
x,F,M));return!1};
_.l.JSC$9134_cleanup_=function(){uf6(this);this.JSC$9132_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var p=this.dragLists_.length,x=0;x<p;x++)this.dragLists_[x].dlgBounds_=null;p=this.dragItems_.length;for(x=0;x<p;x++)this.dragItems_[x].dlgBounds_=null};
_.l.handleDragEnd_=function(p){if(!this.dispatchEvent(new Wq(sdC,this,p,this.currDragItem_,this.draggerEl_,this.JSC$9132_dragger_)))return!1;uf6(this);this.dispatchEvent(new Wq(nJC,this,p,this.currDragItem_,this.draggerEl_,this.JSC$9132_dragger_));this.JSC$9134_cleanup_();return!0};
var uf6=function(p){_.RR(p.JSC$9132_dragger_);var x=p.draggerEl_&&p.draggerEl_.parentElement;p.draggerEl_&&_.qc(p.draggerEl_);p.currDragItem_&&p.currDragItem_.style.display=="none"&&(p.origList_.insertBefore(p.currDragItem_,p.origNextItem_),p.currDragItem_.style.display="");p.currDragItemClasses_&&p.currDragItem_?LVj(p.currDragItem_,p.currDragItemClasses_||[]):p.currDragItem_&&(p.currDragItem_.style.visibility="");for(var F=p.dragLists_.length,N=0;N<F;N++){var h=p.dragLists_[N];h.dlgDragHoverClass_&&
_.GT(h,h.dlgDragHoverClass_)}x&&p.dispatchEvent(new Wq(yZj,p,null,p.currDragItem_,p.draggerEl_,p.JSC$9132_dragger_))};
_.l=Vs.prototype;_.l.getHandleForDragItem_=function(p){return p};
_.l.handleDragItemMouseover_=function(p){O1(p.currentTarget,this.dragItemHoverClasses_||[])};
_.l.handleDragItemMouseout_=function(p){LVj(p.currentTarget,this.dragItemHoverClasses_||[])};
_.l.handleDragItemHandleMouseover_=function(p){O1(p.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.l.handleDragItemHandleMouseout_=function(p){LVj(p.currentTarget,this.dragItemHandleHoverClasses_||[])};
var wTB=function(p,x){return p.x>x.left&&p.x<x.left+x.width&&p.y>x.top&&p.y<x.top+x.height},oJD=function(p,x){p=p.dlgBounds_;
return Math.abs(x.y-(p.top+(p.height-1)/2))},GDm=function(p){return p.top+p.height-1},WO6=function(p){return p.left+p.width-1},H5B=function(p){return p.left||0},VAn=function(p,x){return p<x},muk=function(p,x){return p>x},Wq=function(p,x,F,N,h,c){_.th.call(this,p);
this.event=F;this.currDragItem=N;this.draggerEl=h;this.JSC$9136_dragger=c};
_.NL(Wq,_.th);_.NL(xQ,_.Jm);var O5Z=new _.sT(0,0);xQ.prototype.JSC$9140_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
xQ.prototype.JSC$9140_onMouseMove=function(p){var x=this.containerIsActuallyContent_?O5Z:ds(vm(this.containerNode_)),F=this.horizontalScrolling_?this.calculateScrollDelta(p.clientX+x.x,this.scrollBounds_.left,this.scrollBounds_.width):0,N=this.calculateScrollDelta(p.clientY+x.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=F;this.scrollDelta_.y=N;!(F=!F&&!N)&&(F=this.constrainScroll_)&&(F=p.clientX+x.x,p=p.clientY+x.y,x=this.containerBounds_,F=!(x.left<=F&&x.left+x.width>=
F&&x.top<=p&&x.top+x.height>=p));F?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
xQ.prototype.calculateScrollDelta=function(p,x,F){var N=0;p<x?N=-8:p>x+F&&(N=8);return N};
xQ.prototype.disposeInternal=function(){xQ.superClass_.disposeInternal.call(this);this.JSC$9138_eventHandler_.dispose();this.scrollTimer_.dispose()};var jdB={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"}}},Hq=jdB;Hq=jdB;var mt={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 LOD=function(){},ou=function(p){if(typeof p=="number"){var x=new LOD;
x.standardOffset_=p;var F=p;if(F==0)F="Etc/GMT";else{var N=["Etc/GMT",F<0?"-":"+"];F=Math.abs(F);N.push(Math.floor(F/60)%100);F%=60;F!=0&&N.push(":",_.Fn(F,2));F=N.join("")}x.timeZoneId_=F;F=p;F==0?F="UTC":(N=["UTC",F<0?"+":"-"],F=Math.abs(F),N.push(Math.floor(F/60)%100),F%=60,F!=0&&N.push(":",F),F=N.join(""));p=P8v(p);x.tzNames_=[F,F];x.tzNamesExt_={STD_LONG_NAME_GMT:p,STD_GENERIC_LOCATION:p};x.transitions_=[];return x}x=new LOD;x.timeZoneId_=p.id;x.standardOffset_=-p.std_offset;x.tzNames_=p.names;
x.tzNamesExt_=p.names_ext;x.transitions_=p.transitions;return x},P8v=function(p){var x=["GMT"];
x.push(p<=0?"+":"-");p=Math.abs(p);x.push(_.Fn(Math.floor(p/60)%100,2),":",_.Fn(p%60,2));return x.join("")},ToC=function(p,x){x=Date.UTC(x.getUTCFullYear(),x.getUTCMonth(),x.getUTCDate(),x.getUTCHours(),x.getUTCMinutes())/36E5;
for(var F=0;F<p.transitions_.length&&x>=p.transitions_[F];)F+=2;return F==0?0:p.transitions_[F-1]},BoZ=function(p,x){p=p.standardOffset_-ToC(p,x);
return p===-1440?0:p};var OJ=function(p,x){this.patternParts_=[];this.JSC$9151_dateTimeSymbols_=x||Xo;typeof p=="number"?RnC(this,p):kDI(this,p)},Uuj=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],o_=function(p){return p.getHours?p.getHours():0},kDI=function(p,x){for(f_d&&(x=x.replace(/\u200f/g,""));x;){for(var F=x,N=0;N<Uuj.length;++N){var h=x.match(Uuj[N]);
if(h){var c=h[0];x=x.substring(c.length);N==0&&(c=="''"?c="'":(c=c.substring(1,h[1]=="'"?c.length-1:c.length),c=c.replace(/''/g,"'")));p.patternParts_.push({text:c,type:N});break}}if(F===x)throw Error("Vd`"+x);}};
OJ.prototype.format=function(p,x){if(!p)throw Error("Wd");var F=x?(p.getTimezoneOffset()-BoZ(x,p))*6E4:0,N=F?new Date(p.getTime()+F):p,h=N;x&&N.getTimezoneOffset()!=p.getTimezoneOffset()&&(N=new Date(N.getTime()+(N.getTimezoneOffset()-p.getTimezoneOffset())*6E4),h=new Date(p.getTime()+(F+(F>0?-864E5:864E5))));F=[];for(var c=0;c<this.patternParts_.length;++c){var M=this.patternParts_[c].text;1==this.patternParts_[c].type?F.push(i5j(this,M,p,N,h,x)):F.push(M)}return F.join("")};
var RnC=function(p,x){if(x<4)var F=p.JSC$9151_dateTimeSymbols_.DATEFORMATS[x];else if(x<8)F=p.JSC$9151_dateTimeSymbols_.TIMEFORMATS[x-4];else if(x<12)F=p.JSC$9151_dateTimeSymbols_.DATETIMEFORMATS[x-8],F=F.replace("{1}",p.JSC$9151_dateTimeSymbols_.DATEFORMATS[x-8]),F=F.replace("{0}",p.JSC$9151_dateTimeSymbols_.TIMEFORMATS[x-8]);else if(x===12)F=p.JSC$9151_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(x===13)F=p.JSC$9151_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{RnC(p,10);return}kDI(p,F)},O8=function(p,x){x=String(x);
p=p.JSC$9151_dateTimeSymbols_||Xo;if(p.ZERODIGIT!==void 0&&!DqJ){for(var F=[],N=0;N<x.length;N++){var h=x.charCodeAt(N);F.push(48<=h&&h<=57?String.fromCharCode(p.ZERODIGIT+h-48):x.charAt(N))}x=F.join("")}return x},DqJ=!1,f_d=!1,$uj=function(p,x,F,N){F=F.getFullYear();
F<=0&&N&&(F=1-F);return O8(p,Ivj(F,x))},Ivj=function(p,x){x==2&&(p%=100);
p<0&&x++;return _.Fn(p,x)},jX=function(p){if(!(p.getHours&&p.getSeconds&&p.getMinutes))throw Error("Xd");
},enC=function(p,x){jX(x);
x=o_(x);return p.JSC$9151_dateTimeSymbols_.AMPMS[x>=12&&x<24?1:0]},i5j=function(p,x,F,N,h,c){var M=x.length;
switch(x.charAt(0)){case "G":return F=N.getFullYear()>0?1:0,M>=4?p.JSC$9151_dateTimeSymbols_.ERANAMES[F]:p.JSC$9151_dateTimeSymbols_.ERAS[F];case "y":return $uj(p,M,N,!0);case "Y":return F=(new Date(xuI(N.getFullYear(),N.getMonth(),N.getDate(),p.JSC$9151_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,p.JSC$9151_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),M==2&&(F%=100),O8(p,Ivj(F,M));case "u":return $uj(p,M,N,!1);case "M":a:switch(F=N.getMonth(),M){case 5:M=p.JSC$9151_dateTimeSymbols_.NARROWMONTHS[F];break a;
case 4:M=p.JSC$9151_dateTimeSymbols_.MONTHS[F];break a;case 3:M=p.JSC$9151_dateTimeSymbols_.SHORTMONTHS[F];break a;default:M=O8(p,_.Fn(F+1,M))}return M;case "k":return jX(h),O8(p,_.Fn(o_(h)||24,M));case "S":return O8(p,(h.getMilliseconds()/1E3).toFixed(Math.min(3,M)).slice(2)+(M>3?_.Fn(0,M-3):""));case "E":return F=N.getDay(),M>=4?p.JSC$9151_dateTimeSymbols_.WEEKDAYS[F]:p.JSC$9151_dateTimeSymbols_.SHORTWEEKDAYS[F];case "a":return enC(p,h);case "b":return enC(p,h);case "B":return enC(p,h);case "h":return jX(h),
O8(p,_.Fn(o_(h)%12||12,M));case "K":return jX(h),O8(p,_.Fn(o_(h)%12,M));case "H":return jX(h),O8(p,_.Fn(o_(h),M));case "c":a:switch(F=N.getDay(),M){case 5:M=p.JSC$9151_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[F];break a;case 4:M=p.JSC$9151_dateTimeSymbols_.STANDALONEWEEKDAYS[F];break a;case 3:M=p.JSC$9151_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[F];break a;default:M=O8(p,_.Fn(F,1))}return M;case "L":a:switch(F=N.getMonth(),M){case 5:M=p.JSC$9151_dateTimeSymbols_.STANDALONENARROWMONTHS[F];break a;
case 4:M=p.JSC$9151_dateTimeSymbols_.STANDALONEMONTHS[F];break a;case 3:M=p.JSC$9151_dateTimeSymbols_.STANDALONESHORTMONTHS[F];break a;default:M=O8(p,_.Fn(F+1,M))}return M;case "Q":return F=Math.floor(N.getMonth()/3),M<4?p.JSC$9151_dateTimeSymbols_.SHORTQUARTERS[F]:p.JSC$9151_dateTimeSymbols_.QUARTERS[F];case "d":return O8(p,_.Fn(N.getDate(),M));case "m":return jX(h),O8(p,_.Fn(h.getMinutes?h.getMinutes():0,M));case "s":return jX(h),O8(p,_.Fn(h.getSeconds(),M));case "v":return(c||ou(F.getTimezoneOffset())).timeZoneId_;
case "V":return p=c||ou(F.getTimezoneOffset()),M<=2?p.timeZoneId_:ToC(p,F)>0?p.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?p.tzNamesExt_.DST_GENERIC_LOCATION:p.tzNamesExt_.DST_GENERIC_LOCATION:p.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?p.tzNamesExt_.STD_GENERIC_LOCATION:p.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return F=xuI(h.getFullYear(),h.getMonth(),h.getDate(),p.JSC$9151_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,p.JSC$9151_dateTimeSymbols_.FIRSTDAYOFWEEK),O8(p,_.Fn(Math.floor(Math.round((F-(new Date((new Date(F)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,M));case "z":return p=c||ou(F.getTimezoneOffset()),M<4?p.tzNames_[ToC(p,F)>0?2:0]:p.tzNames_[ToC(p,F)>0?3:1];case "Z":return x=c||ou(F.getTimezoneOffset()),M<4?(M=-BoZ(x,F),p=[M<0?"-":"+"],M=Math.abs(M),p.push(_.Fn(Math.floor(M/60)%100,2),_.Fn(M%60,2)),M=p.join("")):M=O8(p,P8v(BoZ(x,F))),M;default:return""}};var plI=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,xdj=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,F5z=function(p){this.patternParts_=[];this.JSC$9160_dateTimeSymbols_=Xo;if(typeof p=="number"){p>11&&(p=10);if(p<4)var x=this.JSC$9160_dateTimeSymbols_.DATEFORMATS[p];else p<8?x=this.JSC$9160_dateTimeSymbols_.TIMEFORMATS[p-4]:(x=this.JSC$9160_dateTimeSymbols_.DATETIMEFORMATS[p-8],x=x.replace("{1}",this.JSC$9160_dateTimeSymbols_.DATEFORMATS[p-8]),x=x.replace("{0}",this.JSC$9160_dateTimeSymbols_.TIMEFORMATS[p-
8]));FJv(this,x)}else FJv(this,p)},FJv=function(p,x){for(var F=!1,N="",h=0;h<x.length;h++){var c=x.charAt(h);
if(plI.test(c))for(N.length>0&&(p.patternParts_.push({text:N,count:0,abutStart:!1,numeric:!1}),N=""),p.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});h<x.length-1&&x.charAt(h+1)==" ";)h++;else if(F)c=="'"?h+1<x.length&&x.charAt(h+1)=="'"?(N+="'",h++):F=!1:N+=c;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(c)>=0){N.length>0&&(p.patternParts_.push({text:N,count:0,abutStart:!1,numeric:!1}),N="");for(var M=x.charAt(h),f=h+1;f<x.length&&x.charAt(f)==M;)f++;M=f-h;M<=0?f=!1:(f="MydhHmsSDkK".indexOf(c),
f=f>0||f==0&&M<3);p.patternParts_.push({text:c,count:M,abutStart:!1,numeric:f});h+=M-1}else c=="'"?h+1<x.length&&x.charAt(h+1)=="'"?(N+="'",h++):F=!0:N+=c}N.length>0&&p.patternParts_.push({text:N,count:0,abutStart:!1,numeric:!1});x=!1;for(F=0;F<p.patternParts_.length;F++)p.patternParts_[F].numeric?!x&&F+1<p.patternParts_.length&&p.patternParts_[F+1].numeric&&(x=!0,p.patternParts_[F].abutStart=!0):x=!1};
F5z.prototype.parse=function(p,x,F){var N=!1,h=!1;F&&(N=F.predictive||!1,h=F.validate||!1);if(N)for(F=0;F<this.patternParts_.length;F++){var c=this.patternParts_[F];if(c.count>0&&("abBhHkKm".indexOf(c.text.charAt(0))<0||c.count>2||c.abutStart))throw Error("Yd`"+c.text.charAt(0));}c=new N$v;F=[0];c.dayPeriodIndex=-1;for(var M=0;M<this.patternParts_.length&&!(N&&F[0]>=p.length);M++){if(this.patternParts_[M].count==0){a:{var f=p;var K=F,t=this.patternParts_[M],d=N;if(t.text.match(plI)!=null){if(t=K[0],
hlC(f,K),K[0]>t){f=!0;break a}}else{if(f.indexOf(t.text,K[0])==K[0]){K[0]+=t.text.length;f=!0;break a}if(d&&t.text.indexOf(f.substring(K[0]))==0){K[0]+=f.length-K[0];f=!0;break a}}f=!1}if(f)continue;return 0}if(this.patternParts_[M].abutStart){a:{K=p;t=F;d=M;var v=t[0],C=0;for(f=d;f<this.patternParts_.length;f++){var X=this.patternParts_[f],Q=X.count;if(Q===0)break;if(f==d&&(Q-=C,C++,Q==0)){f=0;break a}var b=f>d&&X.numeric,A=t[0];if(!l$D(this,K,t,X,Q,c,!1)||b&&t[0]-A<Q)f=d-1,t[0]=v}f-=d}if(f<=0)return 0;
M+=f-1}else if(!l$D(this,p,F,this.patternParts_[M],0,c,N))return 0}a:{p=h;if(x==null)throw Error("Zd");c.era!=void 0&&c.year!=void 0&&c.era==0&&c.year>0&&(c.year=-(c.year-1));c.year!=void 0&&x.setFullYear(c.year);N=x.getDate();x.setDate(1);c.month!=void 0&&x.setMonth(c.month);c.day!=void 0?x.setDate(c.day):(h=RIE(x.getFullYear(),x.getMonth()),x.setDate(N>h?h:N));typeof x.setHours==="function"&&(c.hours==void 0&&(c.hours=x.getHours()),c.hours<12&&(c.ampm!=void 0&&c.ampm>0?c.hours+=12:c.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(c.dayPeriodName)||["night1","night2"].includes(c.dayPeriodName)&&c.hours>=6)&&(c.hours+=12)),x.setHours(c.hours));typeof x.setMinutes==="function"&&c.minutes!=void 0&&x.setMinutes(c.minutes);typeof x.setSeconds==="function"&&c.seconds!=void 0&&x.setSeconds(c.seconds);typeof x.setMilliseconds==="function"&&c.milliseconds!=void 0&&x.setMilliseconds(c.milliseconds);if(p&&(c.year&&c.year!=x.getFullYear()||c.month&&c.month!=
x.getMonth()||c.day&&c.day!=x.getDate()||c.hours&&c.hours>=24||c.minutes&&c.minutes>=60||c.seconds&&c.seconds>=60||c.milliseconds&&c.milliseconds>=1E3))x=!1;else{c.tzOffset!=void 0&&x.setTime(x.getTime()+(c.tzOffset-x.getTimezoneOffset())*60*1E3);c.ambiguousYear&&(p=new Date,p.setFullYear(p.getFullYear()-80),x.getTime()<p.getTime()&&x.setFullYear(p.getFullYear()+100));if(c.dayOfWeek!=void 0)if(c.day==void 0)c=(7+c.dayOfWeek-x.getDay())%7,c>3&&(c-=7),p=x.getMonth(),x.setDate(x.getDate()+c),x.getMonth()!=
p&&x.setDate(x.getDate()+(c>0?-7:7));else if(c.dayOfWeek!=x.getDay()){x=!1;break a}x=!0}}return x?F[0]:0};
var l$D=function(p,x,F,N,h,c,M){hlC(x,F);if(N.numeric&&h>0&&F[0]+h>x.length)return!1;switch(N.text.charAt(0)){case "G":return LW(x,F,[p.JSC$9160_dateTimeSymbols_.ERAS],function(f){return c.era=f}),!0;
case "M":case "L":return cDv(p,x,F,h,N,c);case "E":return LW(x,F,[p.JSC$9160_dateTimeSymbols_.WEEKDAYS,p.JSC$9160_dateTimeSymbols_.SHORTWEEKDAYS],function(f){return c.dayOfWeek=f});
case "B":case "b":return h=[],p=[[].concat(p.JSC$9160_dateTimeSymbols_.AMPMS)],h.push("isAm"),h.push("isPm"),x=LW(x,F,p,function(f){return c.dayPeriodIndex=f},M),c.dayPeriodName=h[c.dayPeriodIndex],M?x:!0;
case "a":return x=LW(x,F,[p.JSC$9160_dateTimeSymbols_.AMPMS],function(f){return c.ampm=f},M),M?x:!0;
case "y":return a$I(p,x,F,N,h,c);case "Q":return LW(x,F,[p.JSC$9160_dateTimeSymbols_.QUARTERS,p.JSC$9160_dateTimeSymbols_.SHORTQUARTERS],function(f){c.month=f*3;c.day=1});
case "d":return Pq(p,x,F,N,h,function(f){c.day=f}),!0;
case "S":return M6D(p,x,F,h,c);case "h":case "K":case "H":case "k":return x=Pq(p,x,F,N,h,function(f){c.hours=N.text.charAt(0)==="h"&&f===12?0:f},M),M?x:!0;
case "m":return x=Pq(p,x,F,N,h,function(f){c.minutes=f},M),M?x:!0;
case "s":return Pq(p,x,F,N,h,function(f){c.seconds=f}),!0;
case "z":case "Z":case "v":return Ddn(p,x,F,c);default:return!1}},a$I=function(p,x,F,N,h,c){var M=F[0];
h=Ti(p,x,F,h);h===null&&(h=Ti(p,x,F,0,!0));if(h===null)return!1;h>=0&&F[0]-M==2&&N.count==2?(p=h,x=(new Date).getFullYear()-80,F=x%100,c.ambiguousYear=p==F,p+=Math.floor(x/100)*100+(p<F?100:0),c.year=p):c.year=h;return!0},cDv=function(p,x,F,N,h,c){return h.numeric&&Pq(p,x,F,h,N,function(M){c.month=M-1})?!0:LW(x,F,[p.JSC$9160_dateTimeSymbols_.MONTHS,
p.JSC$9160_dateTimeSymbols_.STANDALONEMONTHS,p.JSC$9160_dateTimeSymbols_.SHORTMONTHS,p.JSC$9160_dateTimeSymbols_.STANDALONESHORTMONTHS],function(M){c.month=M})},M6D=function(p,x,F,N,h){var c=F[0];
p=Ti(p,x,F,N);if(p===null)return!1;F=F[0]-c;h.milliseconds=F<3?p*Math.pow(10,3-F):Math.round(p/Math.pow(10,F-3));return!0},Ddn=function(p,x,F,N){x.indexOf("GMT",F[0])==F[0]&&(F[0]+=3);
if(F[0]>=x.length)return N.tzOffset=0,!0;var h=F[0],c=Ti(p,x,F,0,!0);if(c===null)return!1;if(F[0]<x.length&&x.charAt(F[0])==":"){var M=c*60;F[0]++;c=Ti(p,x,F,0);if(c===null)return!1;M+=c}else M=c,M=M<24&&F[0]-h<=3?M*60:M%100+M/100*60;N.tzOffset=-M;return!0},Pq=function(p,x,F,N,h,c,M){M=M||!1;
var f=F[0];p=Ti(p,x,F,h);if(p===null)return!1;if(M&&F[0]-f<N.count){if(F[0]<x.length)return!1;p*=Math.pow(10,N.count-(F[0]-f))}c(p);return!0},LW=function(p,x,F,N,h){h=h||!1;
for(var c,M=0;M<F.length;M++){c=x;for(var f=F[M],K=h,t=0,d=null,v=p.substring(c[0]).toLowerCase(),C=0;C<f.length;C++){var X=f[C].toLowerCase();if(K&&X.indexOf(v)==0){t=v.length;d=C;break}f[C].length>t&&v.indexOf(X)==0&&(t=f[C].length,d=C)}d!==null&&(c[0]+=t);c=d;if(c!==null)return N(c),!0}return!1},hlC=function(p,x){(p=p.substring(x[0]).match(xdj))&&(x[0]+=p[0].length)},Ti=function(p,x,F,N,h){x=N>0?x.substring(0,F[0]+N):x;
h=h||!1;if(p.JSC$9160_dateTimeSymbols_.ZERODIGIT){N=[];for(var c=F[0];c<x.length;c++){var M=x.charCodeAt(c)-p.JSC$9160_dateTimeSymbols_.ZERODIGIT;N.push(0<=M&&M<=9?String.fromCharCode(M+48):x.charAt(c))}x=N.join("")}else x=x.substring(F[0]);p=x.match(new RegExp("^"+(h?"[+-]?":"")+"\\d+"));if(!p)return null;F[0]+=p[0].length;return parseInt(p[0],10)},N$v=function(){};
N$v.prototype.ambiguousYear=!1;_.f$l={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 KJB={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"},quJ=KJB,Zrn=KJB;Zrn=quJ=KJB;var ddn,Bq,kz,O3E,R_,t6k;
_.Wi=function(p,x,F,N){var h;if(h=x){a:if(x&&x.length===3){for(h=0;h<3;h++){var c=x[h];if(c<"A"||c>"Z"&&c<"a"||c>"z"){h=!1;break a}}h=!0}else h=!1;h=!h}if(h)throw new TypeError("$d");this.intlCurrencyCode_=x?x.toUpperCase():null;this.currencyStyle_=F||0;this.overrideNumberFormatSymbols_=N||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_=Bq(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof p==="number")switch(p){case 1:R_(this,Bq(this).DECIMAL_PATTERN);break;case 2:R_(this,Bq(this).SCIENTIFIC_PATTERN);break;case 3:R_(this,Bq(this).PERCENT_PATTERN);break;case 4:p=Bq(this).CURRENCY_PATTERN;x=["0"];if(F=
mt[kz(this)]){F=F[0]&7;if(F>0)for(x.push("."),N=0;N<F;N++)x.push("0");p=p.replace(/0.00/g,x.join(""))}R_(this,p);break;case 5:t6k(this,1);break;case 6:t6k(this,2);break;default:throw Error("ce");}else R_(this,p)};
ddn=!1;Bq=function(p){return p.overrideNumberFormatSymbols_||(ddn?Zrn:quJ)};
kz=function(p){return p.intlCurrencyCode_||Bq(p).DEF_CURRENCY_CODE};
O3E=function(p,x){if(x>308)throw Error("be`"+x);p.maximumFractionDigits_=x;return p};
R_=function(p,x){var F=[0];p.positivePrefix_=vLn(p,x,F);for(var N=F[0],h=-1,c=0,M=0,f=0,K=-1,t=x.length,d=!0;F[0]<t&&d;F[0]++)switch(x.charAt(F[0])){case "#":M>0?f++:c++;K>=0&&h<0&&K++;break;case "0":if(f>0)throw Error("ie`"+x);M++;K>=0&&h<0&&K++;break;case ",":K>0&&p.groupingArray_.push(K);K=0;break;case ".":if(h>=0)throw Error("je`"+x);h=c+M+f;break;case "E":if(p.useExponentialNotation_)throw Error("ke`"+x);p.useExponentialNotation_=!0;p.minExponentDigits_=0;F[0]+1<t&&x.charAt(F[0]+1)=="+"&&(F[0]++,
p.useSignForPositiveExponent_=!0);for(;F[0]+1<t&&x.charAt(F[0]+1)=="0";)F[0]++,p.minExponentDigits_++;if(c+M<1||p.minExponentDigits_<1)throw Error("le`"+x);d=!1;break;default:F[0]--,d=!1}M==0&&c>0&&h>=0&&(M=h,M==0&&M++,f=c-M,c=M-1,M=1);if(h<0&&f>0||h>=0&&(h<c||h>c+M)||K==0)throw Error("me`"+x);f=c+M+f;p.maximumFractionDigits_=h>=0?f-h:0;h>=0&&(p.minimumFractionDigits_=c+M-h,p.minimumFractionDigits_<0&&(p.minimumFractionDigits_=0));p.minimumIntegerDigits_=(h>=0?h:f)-c;p.useExponentialNotation_&&(p.maximumIntegerDigits_=
c+p.minimumIntegerDigits_,p.maximumFractionDigits_==0&&p.minimumIntegerDigits_==0&&(p.minimumIntegerDigits_=1));p.groupingArray_.push(Math.max(0,K));p.decimalSeparatorAlwaysShown_=h==0||h==f;N=F[0]-N;p.positiveSuffix_=vLn(p,x,F);F[0]<x.length&&x.charAt(F[0])==";"?(F[0]++,p.multiplier_!=1&&(p.negativePercentSignExpected_=!0),p.negativePrefix_=vLn(p,x,F),F[0]+=N,p.negativeSuffix_=vLn(p,x,F)):(p.negativePrefix_+=p.positivePrefix_,p.negativeSuffix_+=p.positiveSuffix_)};
t6k=function(p,x){p.compactStyle_=x;R_(p,Bq(p).DECIMAL_PATTERN);p.minimumFractionDigits_=0;O3E(p,2);if(p.minimumFractionDigits_>0)throw Error("ae");p.significantDigits_=2};
_.Wi.prototype.parse=function(p,x){x=x||[0];if(this.compactStyle_!==0)throw Error("de");p=p.replace(/ |\u202f/g,"\u00a0");var F=p.indexOf(this.positivePrefix_,x[0])==x[0],N=p.indexOf(this.negativePrefix_,x[0])==x[0];F&&N&&(this.positivePrefix_.length>this.negativePrefix_.length?N=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(F=!1));F?x[0]+=this.positivePrefix_.length:N&&(x[0]+=this.negativePrefix_.length);if(p.indexOf(Bq(this).INFINITY,x[0])==x[0]){x[0]+=Bq(this).INFINITY.length;var h=
Infinity}else{h=p;var c=!1,M=!1,f=!1,K=-1,t=1,d=Bq(this).DECIMAL_SEP,v=Bq(this).GROUP_SEP,C=Bq(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ee");v=v.replace(/\u202f/g,"\u00a0");for(var X="";x[0]<h.length;x[0]++){var Q=h.charAt(x[0]),b=JDD(this,Q);if(b>=0&&b<=9)X+=b,f=!0;else if(Q==d.charAt(0)){if(c||M)break;X+=".";c=!0}else if(Q==v.charAt(0)&&("\u00a0"!=v.charAt(0)||x[0]+1<h.length&&JDD(this,h.charAt(x[0]+1))>=0)){if(c||M)break}else if(Q==C.charAt(0)){if(M)break;X+="E";M=!0;K=x[0]}else if(Q==
"+"||Q=="-"){if(f&&K!=x[0]-1)break;X+=Q}else if(this.multiplier_==1&&Q==Bq(this).PERCENT.charAt(0)){if(t!=1)break;t=100;if(f){x[0]++;break}}else if(this.multiplier_==1&&Q==Bq(this).PERMILL.charAt(0)){if(t!=1)break;t=1E3;if(f){x[0]++;break}}else break}this.multiplier_!=1&&(t=this.multiplier_);h=parseFloat(X)/t}if(F){if(p.indexOf(this.positiveSuffix_,x[0])!=x[0])return NaN;x[0]+=this.positiveSuffix_.length}else if(N){if(p.indexOf(this.negativeSuffix_,x[0])!=x[0])return NaN;x[0]+=this.negativeSuffix_.length}return N?
-h:h};
_.Wi.prototype.format=function(p){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("fe");if(isNaN(p))return Bq(this).NAN;var x=[];var F=p;if(this.compactStyle_==0)F=U8;else{F=Math.abs(F);var N=Czb(this,F<=1?0:SuB(F)).divisorBase;F=Czb(this,N+SuB(rDb(this,i3(F,-N)).intValue))}p=i3(p,-F.divisorBase);(N=p<0||p==0&&1/p<0)?F.negative_prefix?x.push(F.negative_prefix):(x.push(F.prefix),x.push(this.negativePrefix_)):(x.push(F.prefix),x.push(this.positivePrefix_));if(isFinite(p))if(p*=
N?-1:1,p*=this.multiplier_,this.useExponentialNotation_){var h=p;if(h==0)ELj(this,h,this.minimumIntegerDigits_,x),Xlv(this,0,x);else{var c=Math.floor(Math.log(h)/Math.log(10)+2E-15);h=i3(h,-c);var M=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(M=c%this.maximumIntegerDigits_,M<0&&(M=this.maximumIntegerDigits_+M),h=i3(h,M),c-=M,M=1):this.minimumIntegerDigits_<1?(c++,h=i3(h,-1)):(c-=this.minimumIntegerDigits_-1,h=i3(h,this.minimumIntegerDigits_-
1));ELj(this,h,M,x);Xlv(this,c,x)}}else ELj(this,p,this.minimumIntegerDigits_,x);else x.push(Bq(this).INFINITY);N?F.negative_suffix?x.push(F.negative_suffix):(isFinite(p)&&x.push(F.suffix),x.push(this.negativeSuffix_)):(isFinite(p)&&x.push(F.suffix),x.push(this.positiveSuffix_));return x.join("")};
var rDb=function(p,x){var F=i3(x,p.maximumFractionDigits_);p.significantDigits_>0&&(F=gLb(F,p.significantDigits_,p.maximumFractionDigits_));F=Math.round(F);if(isFinite(F)){var N=Math.floor(i3(F,-p.maximumFractionDigits_));F=Math.floor(F-i3(N,p.maximumFractionDigits_));if(F<0||F>=i3(1,p.maximumFractionDigits_))N=Math.round(x),F=0}else N=x,F=0;return{intValue:N,fracValue:F}},ELj=function(p,x,F,N){if(p.minimumFractionDigits_>p.maximumFractionDigits_)throw Error("fe");
N||(N=[]);x=rDb(p,x);var h=x.intValue,c=x.fracValue,M=p.minimumFractionDigits_>0||c>0||!1;x=p.minimumFractionDigits_;M&&(x=p.minimumFractionDigits_);for(var f="",K=h;K>1E20;)f="0"+f,K=Math.round(i3(K,-1));f=K+f;var t=Bq(p).DECIMAL_SEP;K=Bq(p).ZERO_DIGIT.codePointAt(0);var d=f.length,v=0;if(h>0||F>0){for(h=d;h<F;h++)N.push(String.fromCodePoint(K));if(p.groupingArray_.length>=2)for(F=1;F<p.groupingArray_.length;F++)v+=p.groupingArray_[F];F=d-v;if(F>0){h=p.groupingArray_;v=d=0;for(var C,X=Bq(p).GROUP_SEP,
Q=f.length,b=0;b<Q;b++)if(N.push(String.fromCodePoint(K+Number(f.charAt(b)))),Q-b>1)if(C=h[v],b<F){var A=F-b;(C===1||C>0&&A%C===1)&&N.push(X)}else v<h.length&&(b===F?v+=1:C===b-F-d+1&&(N.push(X),d+=C,v+=1))}else{F=f;f=p.groupingArray_;h=Bq(p).GROUP_SEP;C=F.length;X=[];for(d=f.length-1;d>=0&&C>0;d--){v=f[d];for(Q=0;Q<v&&C-Q-1>=0;Q++)X.push(String.fromCodePoint(K+Number(F.charAt(C-Q-1))));C-=v;C>0&&X.push(h)}N.push.apply(N,X.reverse())}}else M||N.push(String.fromCodePoint(K));(p.decimalSeparatorAlwaysShown_||
M)&&N.push(t);c=String(c);M=c.split("e+");M.length==2&&(c=String(gLb(parseFloat(M[0]),p.significantDigits_,1)),c=c.replace(".",""),c+=(0,_.z6v)("0",parseInt(M[1],10)-c.length+1));p.maximumFractionDigits_+1>c.length&&(c="1"+(0,_.z6v)("0",p.maximumFractionDigits_-c.length)+c);for(p=c.length;c.charAt(p-1)=="0"&&p>x+1;)p--;for(x=1;x<p;x++)N.push(String.fromCodePoint(K+Number(c.charAt(x))))},Xlv=function(p,x,F){F.push(Bq(p).EXP_SYMBOL);
x<0?(x=-x,F.push(Bq(p).MINUS_SIGN)):p.useSignForPositiveExponent_&&F.push(Bq(p).PLUS_SIGN);x=""+x;for(var N=Bq(p).ZERO_DIGIT,h=x.length;h<p.minExponentDigits_;h++)F.push(N);p=N.codePointAt(0)-Q7B;for(N=0;N<x.length;N++)F.push(String.fromCodePoint(p+x.codePointAt(N)))},JDD=function(p,x){x=x.codePointAt(0);
if(48<=x&&x<58)return x-48;p=Bq(p).ZERO_DIGIT.codePointAt(0);return p<=x&&x<p+10?x-p:-1},Q7B="0".codePointAt(0),vLn=function(p,x,F){for(var N="",h=!1,c=x.length;F[0]<c;F[0]++){var M=x.charAt(F[0]);
if(M=="'")F[0]+1<c&&x.charAt(F[0]+1)=="'"?(F[0]++,N+="'"):h=!h;else if(h)N+=M;else switch(M){case "#":case "0":case ",":case ".":case ";":return N;case "\u00a4":if(F[0]+1<c&&x.charAt(F[0]+1)=="\u00a4")F[0]++,N+=kz(p);else switch(p.currencyStyle_){case 0:M=kz(p);N+=M in mt?mt[M][1]:M;break;case 2:M=kz(p);var f=mt[M];N+=f?M==f[1]?M:M+" "+f[1]:M;break;case 1:M=kz(p),N+=M in mt?mt[M][2]:M}break;case "%":if(!p.negativePercentSignExpected_&&p.multiplier_!=1)throw Error("ge");if(p.negativePercentSignExpected_&&
p.multiplier_!=100)throw Error("he");p.multiplier_=100;p.negativePercentSignExpected_=!1;N+=Bq(p).PERCENT;break;case "\u2030":if(!p.negativePercentSignExpected_&&p.multiplier_!=1)throw Error("ge");if(p.negativePercentSignExpected_&&p.multiplier_!=1E3)throw Error("he");p.multiplier_=1E3;p.negativePercentSignExpected_=!1;N+=Bq(p).PERMILL;break;default:N+=M}}return N},U8={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},Czb=function(p,x){p=p.compactStyle_==1?Hq.COMPACT_DECIMAL_SHORT_PATTERN:Hq.COMPACT_DECIMAL_LONG_PATTERN;p==null&&(p=Hq.COMPACT_DECIMAL_SHORT_PATTERN);if(x<3)return U8;x=Math.min(14,x);var F=p[i3(1,x)];for(--x;!F&&x>=3;)F=p[i3(1,x)],x--;if(!F)return U8;F=F.other;var N=p="",h=F.indexOf(";");h>=0&&(F=F.substring(0,h),h=F.substring(h+1))&&(N=/([^0]*)(0+)(.*)/.exec(h),p=N[1],N=N[3]);return F&&F!="0"?(F=/([^0]*)(0+)(.*)/.exec(F))?{divisorBase:x+
1-(F[2].length-1),negative_prefix:p,negative_suffix:N,prefix:F[1],suffix:F[3]}:U8:U8},SuB=function(p){if(!isFinite(p))return p>0?p:0;
for(var x=0;(p/=10)>=1;)x++;return x},i3=function(p,x){if(!p||!isFinite(p)||x==0)return p;
p=String(p).split("e");return parseFloat(p[0]+"e"+(parseInt(p[1]||0,10)+x))},zll=function(p,x){return p&&isFinite(p)?i3(Math.round(i3(p,x)),-x):p},gLb=function(p,x,F){if(!p)return p;
x=x-SuB(p)-1;return x<-F?zll(p,-F):zll(p,x)};var s7l=function(p){return p%10==1&&p%100!=11?"one":p%10==2&&p%100!=12?"two":p%10==3&&p%100!=13?"few":"other"},nLC=s7l;
nLC=s7l;var yDZ;yDZ=function(p,x){var F=p|0;if(void 0===x){x=Math;var N=x.min,h=p+"",c=h.indexOf(".");x=N.call(x,c===-1?0:h.length-c-1,3)}N=Math.pow(10,x);p={v:x,f:(p*N|0)%N};return F==1&&p.v==0?"one":"other"};
_.jT=yDZ;_.jT=yDZ;var br6,ADk,uYB,wl6,GTn;_.Yuj=function(p){this.JSC$9203_pattern_=p;this.parsedPattern_=this.literals_=this.initialLiterals_=null;p=quJ;var x=Hq;if(br6!==p||ADk!==x)br6=p,ADk=x,uYB=new _.Wi(1);this.numberFormatter_=uYB};
br6=null;ADk=null;uYB=null;wl6=RegExp("'([{}#].*?)'","g");GTn=RegExp("''","g");
_.Yuj.prototype.format=function(p){if(this.JSC$9203_pattern_){this.initialLiterals_=[];var x=V6l(this,this.JSC$9203_pattern_);this.parsedPattern_=WJn(this,x);this.JSC$9203_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Pr(this.initialLiterals_),x=[],HrJ(this,this.parsedPattern_,p,!1,x),p=x.join("");this.literals_.length>0;)p=p.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else p="";return p};
var HrJ=function(p,x,F,N,h){for(var c=0;c<x.length;c++)switch(x[c].type){case 4:h.push(x[c].value);break;case 3:var M=x[c].value;var f=p,K=h,t=F[M];t===void 0?K.push("Undefined parameter - "+M):(f.literals_.push(t),K.push(f.buildPlaceholder_(f.literals_)));break;case 2:M=x[c].value;f=p;K=F;t=N;var d=h,v=M.argumentIndex;K[v]===void 0?d.push("Undefined parameter - "+v):(v=M[K[v]],v===void 0&&(v=M.other),HrJ(f,v,K,t,d));break;case 0:M=x[c].value;mdv(p,M,F,_.jT,N,h);break;case 1:M=x[c].value,mdv(p,M,
F,nLC,N,h)}},mdv=function(p,x,F,N,h,c){var M=x.argumentIndex,f=x.argumentOffset,K=+F[M];
isNaN(K)?c.push("Undefined or invalid parameter - "+M):(f=K-f,M=x[F[M]],M===void 0&&(N=N(Math.abs(f)),M=x[N],M===void 0&&(M=x.other)),x=[],HrJ(p,M,F,h,x),F=x.join(""),h?c.push(F):(p=p.numberFormatter_.format(f),c.push(F.replace(/#/g,p))))},V6l=function(p,x){var F=p.initialLiterals_,N=p.buildPlaceholder_.bind(p);
x=x.replace(GTn,function(){F.push("'");return N(F)});
return x=x.replace(wl6,function(h,c){F.push(c);return N(F)})},oLk=function(p){var x=0,F=[],N=[],h=/[{}]/g;
h.lastIndex=0;for(var c;c=h.exec(p);){var M=c.index;c[0]=="}"?(F.pop(),F.length==0&&(c={type:1},c.value=p.substring(x,M),N.push(c),x=M+1)):(F.length==0&&(x=p.substring(x,M),x!=""&&N.push({type:0,value:x}),x=M+1),F.push("{"))}p=p.substring(x);p!=""&&N.push({type:0,value:p});return N},OrB=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,j7J=/^\s*(\w+)\s*,\s*selectordinal\s*,/,LJ6=/^\s*(\w+)\s*,\s*select\s*,/,WJn=function(p,x){var F=[];
x=oLk(x);for(var N=0;N<x.length;N++){var h={};if(0==x[N].type)h.type=4,h.value=x[N].value;else if(1==x[N].type){var c=x[N].value;switch(OrB.test(c)?0:j7J.test(c)?1:LJ6.test(c)?2:/^\s*\w+\s*/.test(c)?3:5){case 2:h.type=2;h.value=Pzn(p,x[N].value);break;case 0:h.type=0;h.value=T$m(p,x[N].value);break;case 1:h.type=1;h.value=B$B(p,x[N].value);break;case 3:h.type=3,h.value=x[N].value}}F.push(h)}return F},Pzn=function(p,x){var F="";
x=x.replace(LJ6,function(f,K){F=K;return""});
var N={};N.argumentIndex=F;x=oLk(x);for(var h=0;h<x.length;){var c=x[h].value;h++;var M=void 0;1==x[h].type&&(M=WJn(p,x[h].value));N[c.replace(/\s/g,"")]=M;h++}return N},T$m=function(p,x){var F="",N=0;
x=x.replace(OrB,function(K,t,d){F=t;d&&(N=parseInt(d,10));return""});
var h={};h.argumentIndex=F;h.argumentOffset=N;x=oLk(x);for(var c=0;c<x.length;){var M=x[c].value;c++;var f=void 0;1==x[c].type&&(f=WJn(p,x[c].value));h[M.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=f;c++}return h},B$B=function(p,x){var F="";
x=x.replace(j7J,function(f,K){F=K;return""});
var N={};N.argumentIndex=F;N.argumentOffset=0;x=oLk(x);for(var h=0;h<x.length;){var c=x[h].value;h++;var M=void 0;1==x[h].type&&(M=WJn(p,x[h].value));N[c.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=M;h++}return N};
_.Yuj.prototype.buildPlaceholder_=function(p){return"\ufddf_"+(p.length-1).toString(10)+"_"};var RlC;
RlC={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 ZJm=function(){this.rdtfSymbols_=kTm||RlC;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
ZJm.prototype.format=function(p,x){a:{x=Udk(this,x);switch(this.style_){case 2:if(x.NARROW!=void 0){x=x.NARROW;break a}case 1:if(x.SHORT!=void 0){x=x.SHORT;break a}default:x=x.LONG;break a}x=void 0}if(!this.alwaysNumeric_&&x&&x.R&&x.R[""+p])p=x.R[""+p];else if(x){var F=Math.abs(p);p=(new _.Yuj("{N,plural,"+(p>0||p==0&&1/p==Infinity?x.F:x.P)+"}")).format({N:F})}else p="";return p};
var Udk=function(p,x){switch(x){default:case 0:return p.rdtfSymbols_.YEAR;case 1:return p.rdtfSymbols_.QUARTER;case 2:return p.rdtfSymbols_.MONTH;case 3:return p.rdtfSymbols_.WEEK;case 4:return p.rdtfSymbols_.DAY;case 5:return p.rdtfSymbols_.HOUR;case 6:return p.rdtfSymbols_.MINUTE;case 7:return p.rdtfSymbols_.SECOND}};var irD=function(p,x,F,N,h,c,M,f){this.x0=p;this.y0=x;this.x1=F;this.y1=N;this.x2=h;this.y2=c;this.x3=M;this.y3=f};
irD.prototype.clone=function(){return new irD(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
irD.prototype.equals=function(p){return this.x0==p.x0&&this.y0==p.y0&&this.x1==p.x1&&this.y1==p.y1&&this.x2==p.x2&&this.y2==p.y2&&this.x3==p.x3&&this.y3==p.y3};
var I$v=function(p,x){if(x==0)return p.x0;if(x==1)return p.x3;var F=sR(p.x0,p.x1,x),N=sR(p.x1,p.x2,x);p=sR(p.x2,p.x3,x);F=sR(F,N,x);N=sR(N,p,x);return sR(F,N,x)},$dB=function(p,x){var F=(x-p.x0)/(p.x3-p.x0);
if(F<=0)return 0;if(F>=1)return 1;for(var N=0,h=1,c=0,M=0;M<8;M++){c=I$v(p,F);var f=(I$v(p,F+1E-6)-c)/1E-6;if(Math.abs(c-x)<1E-6)return F;if(Math.abs(f)<1E-6)break;else c<x?N=F:h=F,F-=(c-x)/f}for(M=0;Math.abs(c-x)>1E-6&&M<8;M++)c<x?(N=F,F=(F+h)/2):(h=F,F=(F+N)/2),c=I$v(p,F);return F};var I_=function(){_.Sc.call(this);this.JSC$9224_name_="closure_frame"+elJ++;this.iframesForDisposal_=[];ptB[this.JSC$9224_name_]=this},$z;
_.NL(I_,_.Sc);var ptB={},elJ=0,xCB=function(p,x){var F=vm(p);_.XwD(x,function(N,h){Array.isArray(N)||(N=[N]);_.w1(N,function(c){c=F.JSC$7227_createDom("INPUT",{type:"hidden",name:h,value:c});p.appendChild(c)})})};
_.l=I_.prototype;_.l.JSC$9226_form_=null;_.l.JSC$9226_iframe_=null;_.l.iframeName_=null;_.l.nextIframeId_=0;_.l.JSC$9226_active_=!1;_.l.complete_=!1;_.l.success_=!1;_.l.lastContent_=null;_.l.JSC$9226_lastErrorCode_=0;_.l.iframeDisposalTimer_=null;
_.l.send=function(p,x,F,N){if(this.JSC$9226_active_)throw Error("ne");p=new _.R9(p);x=x?x.toUpperCase():"GET";F&&_.cv(p);$z||($z=_.Aa("FORM"),$z.acceptCharset="utf-8",F=$z.style,F.position="absolute",F.visibility="hidden",F.top=F.left="-10px",F.width=F.height="10px",F.overflow="hidden",document.body.appendChild($z));this.JSC$9226_form_=$z;x=="GET"&&xCB(this.JSC$9226_form_,p.JSC$7886_queryData_);N&&xCB(this.JSC$9226_form_,N);F=p.toString();F=QxE(F);N=this.JSC$9226_form_;F=_.Vb(XK(F));F!==void 0&&(N.action=
F);this.JSC$9226_form_.method=x;FxK(this);N5k(this)};
_.l.abort=function(p){if(this.JSC$9226_active_){var x=eX(this);if(x)if(vs(x))x.removeAllListeners(void 0);else if(x=Jh(x)){var F=0,N;for(N in x.listeners)for(var h=x.listeners[N].concat(),c=0;c<h.length;++c)D$(h[c])&&++F}this.success_=this.JSC$9226_active_=this.complete_=!1;this.JSC$9226_lastErrorCode_=p||7;this.dispatchEvent("abort");hgn(this)}};
_.l.disposeInternal=function(){this.JSC$9226_active_&&this.abort();I_.superClass_.disposeInternal.call(this);this.JSC$9226_iframe_&&lSC(this);N5k(this);this.JSC$9226_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9226_form_=null;this.JSC$9226_lastErrorCode_=0;delete ptB[this.JSC$9224_name_]};
_.l.isComplete=function(){return this.complete_};
_.l.isSuccess=function(){return this.success_};
_.l.isActive=function(){return this.JSC$9226_active_};
_.l.getResponseText=function(){return this.lastContent_};
_.l.getLastError=function(){return _.FXB(this.JSC$9226_lastErrorCode_)};
var FxK=function(p){p.JSC$9226_active_=!0;p.complete_=!1;p.JSC$9226_lastErrorCode_=0;p.iframeName_=p.JSC$9224_name_+"_"+(p.nextIframeId_++).toString(36);p.JSC$9226_iframe_=vm(p.JSC$9226_form_).JSC$7227_createDom("IFRAME",{name:p.iframeName_,id:p.iframeName_});var x=p.JSC$9226_iframe_.style;x.visibility="hidden";x.width=x.height="10px";x.display="none";_.fT?x.marginTop=x.marginLeft="-10px":(x.position="absolute",x.top=x.left="-10px");gEv(vm(p.JSC$9226_form_)).body.appendChild(p.JSC$9226_iframe_);x=
p.iframeName_+"_inner";var F=dMZ(p.JSC$9226_iframe_);if(document.baseURI){var N=$p(x);N='<head><base href="'+$p(document.baseURI)+'"></head><body><iframe id="'+N+'" name="'+N+'"></iframe>';N=oM(N)}else N=$p(x),N=oM('<body><iframe id="'+N+'" name="'+N+'"></iframe>');F.write(OU(N));_.qd(F.getElementById(x),"load",p.onIframeLoaded_,!1,p);N=Z0("TEXTAREA",p.JSC$9226_form_);for(var h=0,c=N.length;h<c;h++){var M=N[h].value;EEb(N[h])!=M&&(_.Hk(N[h],M),N[h].value=M)}N=F.importNode(p.JSC$9226_form_,!0);N.target=
x;N.action=p.JSC$9226_form_.action;F.body.appendChild(N);h=Z0("SELECT",p.JSC$9226_form_);c=Z0("SELECT",N);M=0;for(var f=h.length;M<f;M++)for(var K=Z0("OPTION",h[M]),t=Z0("OPTION",c[M]),d=0,v=K.length;d<v;d++)t[d].selected=K[d].selected;h=Z0("INPUT",p.JSC$9226_form_);c=Z0("INPUT",N);M=0;for(f=h.length;M<f;M++)if(h[M].type=="file"&&h[M].value!=c[M].value){p.JSC$9226_form_.target=x;N=p.JSC$9226_form_;break}try{p.errorHandled_=!1,N.submit(),F.close(),_.Dr&&setTimeout(p.testForFirefoxSilentError_.bind(p),
250)}catch(C){_.Ci(F.getElementById(x),"load",p.onIframeLoaded_,!1,p),F.close(),p7(p,2)}};
I_.prototype.onIframeLoaded_=function(){_.Ci(eX(this),"load",this.onIframeLoaded_,!1,this);try{var p=this.JSC$9226_iframe_?dMZ(eX(this)):null;this.complete_=!0;this.JSC$9226_active_=!1;try{var x=p.body;this.lastContent_=x.textContent||x.innerText}catch(h){var F=1}var N;F||typeof this.errorChecker_!="function"||(N=this.errorChecker_(p))&&(F=4);F?p7(this,F):(this.success_=!0,this.JSC$9226_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),hgn(this))}catch(h){p7(this,1)}};
var p7=function(p,x){p.errorHandled_||(p.success_=!1,p.JSC$9226_active_=!1,p.complete_=!0,p.JSC$9226_lastErrorCode_=x,p.dispatchEvent("complete"),p.dispatchEvent("error"),hgn(p),p.errorHandled_=!0)},hgn=function(p){lSC(p);
N5k(p);p.JSC$9226_form_=null;p.dispatchEvent("ready")},lSC=function(p){var x=p.JSC$9226_iframe_;
x&&(x.onreadystatechange=null,x.onload=null,x.onerror=null,p.iframesForDisposal_.push(x));p.iframeDisposalTimer_&&(clearTimeout(p.iframeDisposalTimer_),p.iframeDisposalTimer_=null);_.Dr?p.iframeDisposalTimer_=setTimeout(p.disposeIframes_.bind(p),2E3):p.disposeIframes_();p.JSC$9226_iframe_=null;p.iframeName_=null};
I_.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var p=this.iframesForDisposal_.pop();_.qc(p)}};
var N5k=function(p){p.JSC$9226_form_&&p.JSC$9226_form_==$z&&_.wM(p.JSC$9226_form_)},eX=function(p){return p.JSC$9226_iframe_?dMZ(p.JSC$9226_iframe_).getElementById(p.iframeName_+"_inner"):null};
I_.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9226_active_){var p=this.JSC$9226_iframe_?dMZ(eX(this)):null;p&&!k4$(p,"documentUri")?(_.Ci(eX(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?p7(this,3):p7(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.xu=function(p){return p=="\r"||p=="\n"||p==" "||p=="\t"};var c0m;_.F5=function(p){this.errorMessage_=null;this.result_=[];this.JSC$9228_buffer_="";this.stack_=[];this.JSC$9228_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!p||!p.deliverMessageAsRawString)};
c0m={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};_.F5.prototype.isInputValid=function(){return this.streamState_!=3};
_.F5.prototype.done=function(){return this.streamState_===2};
var N7=function(p,x,F){p.streamState_=3;p.errorMessage_="The stream is broken @"+p.JSC$9228_pos_+"/"+F+". With input:\n"+x;throw Error(p.errorMessage_);};
_.F5.prototype.acceptsBinaryInput=function(){return!1};
_.F5.prototype.parse=function(p){function x(){for(;C<p.length;)if(_.xu(p[C]))C++,c.JSC$9228_pos_++;else break;return C<t}
function F(){for(var Q;;){Q=p[C++];if(!Q)break;c.JSC$9228_pos_++;switch(c.state_){case K.INIT:Q==="{"?c.state_=K.OBJECT_OPEN:Q==="["?c.state_=K.ARRAY_OPEN:_.xu(Q)||N7(c,p,C);continue;case K.KEY_START:case K.OBJECT_OPEN:if(_.xu(Q))continue;if(c.state_===K.KEY_START)M.push(K.KEY_END);else if(Q==="}"){h("{}");c.state_=N();continue}else M.push(K.OBJECT_END);Q==='"'?c.state_=K.STRING:N7(c,p,C);continue;case K.KEY_END:case K.OBJECT_END:if(_.xu(Q))continue;Q===":"?(c.state_===K.OBJECT_END&&(M.push(K.OBJECT_END),
c.depth_++),c.state_=K.VALUE):Q==="}"?(c.depth_--,h(),c.state_=N()):Q===","?(c.state_===K.OBJECT_END&&M.push(K.OBJECT_END),c.state_=K.KEY_START):N7(c,p,C);continue;case K.ARRAY_OPEN:case K.VALUE:if(_.xu(Q))continue;if(c.state_===K.ARRAY_OPEN)if(c.depth_++,c.state_=K.VALUE,Q==="]"){c.depth_--;if(c.depth_===0){c.state_=K.ARRAY_END;return}h("[]");c.state_=N();continue}else M.push(K.ARRAY_END);Q==='"'?c.state_=K.STRING:Q==="{"?c.state_=K.OBJECT_OPEN:Q==="["?c.state_=K.ARRAY_OPEN:Q==="t"?c.state_=K.TRUE1:
Q==="f"?c.state_=K.FALSE1:Q==="n"?c.state_=K.NULL1:Q!=="-"&&("0123456789".indexOf(Q)!==-1?c.state_=K.NUM_DIGIT:N7(c,p,C));continue;case K.ARRAY_END:if(Q===",")M.push(K.ARRAY_END),c.state_=K.VALUE,c.depth_===1&&(v=C);else if(Q==="]"){c.depth_--;if(c.depth_===0)return;h();c.state_=N()}else if(_.xu(Q))continue;else N7(c,p,C);continue;case K.STRING:var b=C;a:for(;;){for(;c.unicodeCount_>0;)if(Q=p[C++],c.unicodeCount_===4?c.unicodeCount_=0:c.unicodeCount_++,!Q)break a;if(Q==='"'&&!c.slashed_){c.state_=
N();break}if(Q==="\\"&&!c.slashed_&&(c.slashed_=!0,Q=p[C++],!Q))break;if(c.slashed_)if(c.slashed_=!1,Q==="u"&&(c.unicodeCount_=1),Q=p[C++])continue;else break;f.lastIndex=C;Q=f.exec(p);if(!Q){C=p.length+1;break}C=Q.index+1;Q=p[Q.index];if(!Q)break}c.JSC$9228_pos_+=C-b;continue;case K.TRUE1:if(!Q)continue;Q==="r"?c.state_=K.TRUE2:N7(c,p,C);continue;case K.TRUE2:if(!Q)continue;Q==="u"?c.state_=K.TRUE3:N7(c,p,C);continue;case K.TRUE3:if(!Q)continue;Q==="e"?c.state_=N():N7(c,p,C);continue;case K.FALSE1:if(!Q)continue;
Q==="a"?c.state_=K.FALSE2:N7(c,p,C);continue;case K.FALSE2:if(!Q)continue;Q==="l"?c.state_=K.FALSE3:N7(c,p,C);continue;case K.FALSE3:if(!Q)continue;Q==="s"?c.state_=K.FALSE4:N7(c,p,C);continue;case K.FALSE4:if(!Q)continue;Q==="e"?c.state_=N():N7(c,p,C);continue;case K.NULL1:if(!Q)continue;Q==="u"?c.state_=K.NULL2:N7(c,p,C);continue;case K.NULL2:if(!Q)continue;Q==="l"?c.state_=K.NULL3:N7(c,p,C);continue;case K.NULL3:if(!Q)continue;Q==="l"?c.state_=N():N7(c,p,C);continue;case K.NUM_DECIMAL_POINT:Q===
"."?c.state_=K.NUM_DIGIT:N7(c,p,C);continue;case K.NUM_DIGIT:if("0123456789.eE+-".indexOf(Q)!==-1)continue;else C--,c.JSC$9228_pos_--,c.state_=N();continue;default:N7(c,p,C)}}}
function N(){var Q=M.pop();return Q!=null?Q:K.VALUE}
function h(Q){c.depth_>1||(Q||(Q=v===-1?c.JSC$9228_buffer_+p.substring(d,C):p.substring(v,C)),c.deliverMessageAsRawString_?c.result_.push(Q):c.result_.push(JSON.parse(Q)),v=C)}
for(var c=this,M=c.stack_,f=c.stringInputPattern_,K=c0m,t=p.length,d=0,v=-1,C=0;C<t;)switch(c.streamState_){case 3:return N7(c,p,C),null;case 2:return x()&&N7(c,p,C),null;case 0:if(x()){var X=p[C++];c.JSC$9228_pos_++;if(X==="["){c.streamState_=1;d=C;c.state_=K.ARRAY_OPEN;continue}else N7(c,p,C)}return null;case 1:return F(),c.depth_===0&&c.state_==K.ARRAY_END?(c.streamState_=2,c.JSC$9228_buffer_=p.substring(C)):c.JSC$9228_buffer_=v===-1?c.JSC$9228_buffer_+p.substring(d):p.substring(v),c.result_.length>
0?(X=c.result_,c.result_=[],X):null}return null};_.NL(_.Fb,tq);h8.prototype.getValue=function(){return this.JSC$9236_value_};
h8.prototype.clone=function(){return new h8(this.JSC$9236_key_,this.JSC$9236_value_)};var hn=function(p){this.nodes_=[];if(p)a:{if(p instanceof hn){var x=p.getKeys();p=p.getValues();if(this.getCount()<=0){for(var F=this.nodes_,N=0;N<x.length;N++)F.push(new h8(x[N],p[N]));break a}}else x=_.Q5.getKeys(p),p=_.Q5.getValues(p);for(F=0;F<x.length;F++)this.insert(x[F],p[F])}};
_.l=hn.prototype;_.l.insert=function(p,x){var F=this.nodes_;F.push(new h8(p,x));p=F.length-1;x=this.nodes_;for(F=x[p];p>0;){var N=p-1>>1;if(x[N].JSC$9236_key_>F.JSC$9236_key_)x[p]=x[N],p=N;else break}x[p]=F};
_.l.remove=function(){var p=this.nodes_,x=p.length,F=p[0];if(!(x<=0)){if(x==1)p.length=0;else{p[0]=p.pop();p=0;x=this.nodes_;for(var N=x.length,h=x[p];p<N>>1;){var c=p*2+1,M=p*2+2;c=M<N&&x[M].JSC$9236_key_<x[c].JSC$9236_key_?M:c;if(x[c].JSC$9236_key_>h.JSC$9236_key_)break;x[p]=x[c];p=c}x[p]=h}return F.getValue()}};
_.l.peek=function(){var p=this.nodes_;if(p.length!=0)return p[0].getValue()};
_.l.getValues=function(){for(var p=this.nodes_,x=[],F=p.length,N=0;N<F;N++)x.push(p[N].getValue());return x};
_.l.getKeys=function(){for(var p=this.nodes_,x=[],F=p.length,N=0;N<F;N++)x.push(p[N].JSC$9236_key_);return x};
_.l.containsValue=function(p){return this.nodes_.some(function(x){return x.getValue()==p})};
_.l.containsKey=function(p){return this.nodes_.some(function(x){return x.JSC$9236_key_==p})};
_.l.clone=function(){return new hn(this)};
_.l.getCount=function(){return this.nodes_.length};
_.l.isEmpty=function(){return this.nodes_.length===0};
_.l.clear=function(){this.nodes_.length=0};_.lU=function(p,x){this.JSC$9242_map_={};this.JSC$9242_keys_=[];this.version_=this.size=0;var F=arguments.length;if(F>1){if(F%2)throw Error("oa");for(var N=0;N<F;N+=2)this.set(arguments[N],arguments[N+1])}else p&&this.addAll(p)};
_.l=_.lU.prototype;_.l.getCount=function(){return this.size};
_.l.getValues=function(){cx(this);for(var p=[],x=0;x<this.JSC$9242_keys_.length;x++)p.push(this.JSC$9242_map_[this.JSC$9242_keys_[x]]);return p};
_.l.getKeys=function(){cx(this);return this.JSC$9242_keys_.concat()};
_.l.containsKey=function(p){return this.has(p)};
_.l.has=function(p){return aS(this.JSC$9242_map_,p)};
_.l.containsValue=function(p){for(var x=0;x<this.JSC$9242_keys_.length;x++){var F=this.JSC$9242_keys_[x];if(aS(this.JSC$9242_map_,F)&&this.JSC$9242_map_[F]==p)return!0}return!1};
_.l.equals=function(p,x){if(this===p)return!0;if(this.size!=p.getCount())return!1;x=x||aS6;cx(this);for(var F,N=0;F=this.JSC$9242_keys_[N];N++)if(!x(this.get(F),p.get(F)))return!1;return!0};
var aS6=function(p,x){return p===x};
_.lU.prototype.isEmpty=function(){return this.size==0};
_.lU.prototype.clear=function(){this.JSC$9242_map_={};this.version_=this.size=this.JSC$9242_keys_.length=0};
_.lU.prototype.remove=function(p){return this.delete(p)};
_.lU.prototype.delete=function(p){return aS(this.JSC$9242_map_,p)?(delete this.JSC$9242_map_[p],--this.size,this.version_++,this.JSC$9242_keys_.length>2*this.size&&cx(this),!0):!1};
var cx=function(p){if(p.size!=p.JSC$9242_keys_.length){for(var x=0,F=0;x<p.JSC$9242_keys_.length;){var N=p.JSC$9242_keys_[x];aS(p.JSC$9242_map_,N)&&(p.JSC$9242_keys_[F++]=N);x++}p.JSC$9242_keys_.length=F}if(p.size!=p.JSC$9242_keys_.length){x={};for(N=F=0;F<p.JSC$9242_keys_.length;){var h=p.JSC$9242_keys_[F];aS(x,h)||(p.JSC$9242_keys_[N++]=h,x[h]=1);F++}p.JSC$9242_keys_.length=N}};
_.l=_.lU.prototype;_.l.get=function(p,x){return aS(this.JSC$9242_map_,p)?this.JSC$9242_map_[p]:x};
_.l.set=function(p,x){aS(this.JSC$9242_map_,p)||(this.size+=1,this.JSC$9242_keys_.push(p),this.version_++);this.JSC$9242_map_[p]=x};
_.l.addAll=function(p){if(p instanceof _.lU)for(var x=p.getKeys(),F=0;F<x.length;F++)this.set(x[F],p.get(x[F]));else for(x in p)this.set(x,p[x])};
_.l.forEach=function(p,x){for(var F=this.getKeys(),N=0;N<F.length;N++){var h=F[N],c=this.get(h);p.call(x,c,h,this)}};
_.l.clone=function(){return new _.lU(this)};
_.l.transpose=function(){for(var p=new _.lU,x=0;x<this.JSC$9242_keys_.length;x++){var F=this.JSC$9242_keys_[x];p.set(this.JSC$9242_map_[F],F)}return p};
_.l.keys=function(){return Wfn(this.__iterator__(!0)).toEs6()};
_.l.values=function(){return Wfn(this.__iterator__(!1)).toEs6()};
_.l.entries=function(){var p=this;return kFv(this.keys(),function(x){return[x,p.get(x)]})};
_.l.__iterator__=function(p){cx(this);var x=0,F=this.version_,N=this,h=new FQ;h.next=function(){if(F!=N.version_)throw Error("oe");if(x>=N.JSC$9242_keys_.length)return Nh;var c=N.JSC$9242_keys_[x++];return hw(p?c:N.JSC$9242_map_[c])};
return h};
var aS=function(p,x){return Object.prototype.hasOwnProperty.call(p,x)};var DCj=function(){this.JSC$9245_map_=new _.lU;this.JSC$9245_head_=new M3B("");this.JSC$9245_head_.next=this.JSC$9245_head_.prev=this.JSC$9245_head_},fSK=function(p,x){if(x=p.JSC$9245_map_.get(x))x.remove(),p.insert_(x);
return x};
_.l=DCj.prototype;_.l.get=function(p,x){return(p=fSK(this,p))?p.value:x};
_.l.set=function(p,x){var F=fSK(this,p);F?F.value=x:(F=new M3B(p,x),this.JSC$9245_map_.set(p,F),this.insert_(F))};
_.l.peek=function(){return this.JSC$9245_head_.next.value};
_.l.shift=function(){return KxD(this,this.JSC$9245_head_.next)};
_.l.pop=function(){return KxD(this,this.JSC$9245_head_.prev)};
_.l.remove=function(p){return(p=this.JSC$9245_map_.get(p))?(this.removeNode(p),!0):!1};
_.l.removeNode=function(p){p.remove();this.JSC$9245_map_.remove(p.key)};
_.l.getCount=function(){return this.JSC$9245_map_.getCount()};
_.l.isEmpty=function(){return this.JSC$9245_map_.isEmpty()};
_.l.getKeys=function(){return this.map(function(p,x){return x})};
_.l.getValues=function(){return this.map(function(p){return p})};
_.l.contains=function(p){return this.some(function(x){return x==p})};
_.l.containsKey=function(p){return this.JSC$9245_map_.containsKey(p)};
_.l.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9245_head_.prev)};
_.l.forEach=function(p,x){for(var F=this.JSC$9245_head_.next;F!=this.JSC$9245_head_;F=F.next)p.call(x,F.value,F.key,this)};
_.l.map=function(p,x){for(var F=[],N=this.JSC$9245_head_.next;N!=this.JSC$9245_head_;N=N.next)F.push(p.call(x,N.value,N.key,this));return F};
_.l.some=function(p,x){for(var F=this.JSC$9245_head_.next;F!=this.JSC$9245_head_;F=F.next)if(p.call(x,F.value,F.key,this))return!0;return!1};
_.l.every=function(p,x){for(var F=this.JSC$9245_head_.next;F!=this.JSC$9245_head_;F=F.next)if(!p.call(x,F.value,F.key,this))return!1;return!0};
_.l.insert_=function(p){p.next=this.JSC$9245_head_.next;p.prev=this.JSC$9245_head_;this.JSC$9245_head_.next=p;for(p.next.prev=p;this.getCount()>40;)this.removeNode(this.JSC$9245_head_.prev)};
var KxD=function(p,x){p.JSC$9245_head_!=x&&p.removeNode(x);return x.value},M3B=function(p,x){this.key=p;
this.value=x};
M3B.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var qiB=function(){hn.apply(this,arguments)};
_.E(qiB,hn);qiB.prototype.enqueue=function(p,x){this.insert(p,x)};var ZQZ=function(){var p=Error();p.name="SecurityError";throw p;},tUw=function(){return{get opener(){return null},
get closed(){return!0},get location(){ZQZ()},get document(){ZQZ()},postMessage:function(){},
close:function(){},
focus:function(){}}};var E5p={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 Qvz={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 t3k={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(Qvz).join("|");var dCk=function(){function p(f){f.substr(-1)!==";"&&(f+=";");return M(f)}
for(var x=Object.keys(t3k).sort(g5w),F=Object.keys(Qvz).sort(g5w),N=0,h=0;N<F.length;N++)x[h]===F[N]?(F[N]+=";?",h++):F[N]+=";";var c=new RegExp("&(?:"+F.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),M=z4M();return function(f){return String(f).replace(c,p)}}();/*

 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 vpJ={};var J0k=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"),CTv=/[\\&]/,Sij=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),r0B=RegExp('[&<>"]',"g"),Ep6=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),XtD=function(p){return p.charCodeAt(0)===92?p.charAt(1):dCk(p)},gpv=function(p){return CTv.test(p)?p.replace(Sij,XtD):p},Q4l=function(p){try{var x,F="";
if(typeof h!=="string"){var N=h;var h=";/?:@&=+$,-_.!~*'()#"}typeof N==="undefined"&&(N=!0);var c,M=vpJ[h];if(M)var f=M;else{M=vpJ[h]=[];for(c=0;c<128;c++){var K=String.fromCharCode(c);/^[0-9a-z]$/i.test(K)?M.push(K):M.push("%"+("0"+c.toString(16).toUpperCase()).slice(-2))}for(c=0;c<h.length;c++)M[h.charCodeAt(c)]=h[c];f=M}var t=0;for(x=p.length;t<x;t++){var d=p.charCodeAt(t);if(N&&d===37&&t+2<x&&/^[0-9a-f]{2}$/i.test(p.slice(t+1,t+3)))F+=p.slice(t,t+3),t+=2;else if(d<128)F+=f[d];else if(d>=55296&&
d<=57343){if(d>=55296&&d<=56319&&t+1<x){var v=p.charCodeAt(t+1);if(v>=56320&&v<=57343){F+=encodeURIComponent(p[t]+p[t+1]);t++;continue}}F+="%EF%BF%BD"}else F+=encodeURIComponent(p[t])}return F}catch(C){return p}},zgB=function(p){switch(p){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return p}},M7=function(p,x){return r0B.test(p)?x?p.replace(Ep6,zgB):p.replace(r0B,zgB):p};/*

 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 Dp;if(String.fromCodePoint)Dp=function(p){try{return String.fromCodePoint(p)}catch(x){if(x instanceof RangeError)return String.fromCharCode(65533);throw x;}};
else{var s4Z=String.fromCharCode,npB=Math.floor;Dp=function(){var p=[],x=-1,F=arguments.length;if(!F)return"";for(var N="";++x<F;){var h=Number(arguments[x]);if(!isFinite(h)||h<0||h>1114111||npB(h)!==h)return String.fromCharCode(65533);if(h<=65535)p.push(h);else{h-=65536;var c=(h>>10)+55296;h=h%1024+56320;p.push(c,h)}if(x+1===F||p.length>16384)N+=s4Z.apply(null,p),p.length=0}return N}};var y0j=function(p){this.root=this.current=p;this.entering=!0};
y0j.prototype.next=function(){var p=this.current,x=this.entering;if(p===null)return null;a:switch(p._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 F=!0;break a;default:F=!1}x&&F?p._firstChild?(this.current=p._firstChild,this.entering=!0):this.entering=!1:p===this.root?this.current=null:p._next===null?(this.current=
p._parent,this.entering=!1):(this.current=p._next,this.entering=!0);return{entering:x,node:p}};
var Mz=function(p,x){this._type=p;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=x;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};
Mz.prototype.appendChild=function(p){f7(p);p._parent=this;this._lastChild?(this._lastChild._next=p,p._prev=this._lastChild):this._firstChild=p;this._lastChild=p};
var f7=function(p){p._prev?p._prev._next=p._next:p._parent&&(p._parent._firstChild=p._next);p._next?p._next._prev=p._prev:p._parent&&(p._parent._lastChild=p._prev);p._parent=null;p._next=null;p._prev=null},bQI=function(p,x){f7(x);
x._next=p._next;x._next&&(x._next._prev=x);x._prev=p;p._next=x;x._parent=p._parent;x._next||(x._parent._lastChild=x)};
Mz.prototype.insertBefore=function(p){f7(p);p._prev=this._prev;p._prev&&(p._prev._next=p);p._next=this;this._prev=p;p._parent=this._parent;p._prev||(p._parent._firstChild=p)};
_.R8.Object.defineProperties(Mz.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(p){this._literal=p}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(p){this._destination=p}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(p){this._title=p}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(p){this._info=p}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(p){this._level=p}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(p){this._listData.type=p}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(p){this._listData.tight=p}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(p){this._listData.start=p}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(p){this._onEnter=p}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(p){this._onExit=p}}});var sv$=/[ \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,
n56={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 A0J=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]/),
utB=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),YiJ=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),wtm=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),GOm=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),V3J=/`+/,Wxj=/^`+/,HQv=/\.\.\./g,mCI=/--+/g,opD=/^<([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])?)*)>/,
OQk=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,j4b=/^ *(?:\n *)?/,LxI=/^[ \t\n\x0b\x0c\x0d]/,PTB=/[ \t\n\x0b\x0c\x0d]+/g,T5J=/^\s/,B5n=/ *$/,RgD=/^ */,kOI=/^ *(?:\n|$)/,UCZ=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),iQB=/^[^\n`\[\]\\!<&*_'"]+/m,K7=function(p){var x=new Mz("text");x._literal=p;return x},q7=function(p){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=p||{}};
q7.prototype.match=function(p){p=p.exec(this.subject.slice(this.pos));if(p===null)return null;this.pos+=p.index+p[0].length;return p[0]};
q7.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var Zp=function(p){p.match(j4b);return!0},ISB=function(p,x,F){var N=0;
var h=p.pos;if(x===39||x===34)N++,p.pos++;else for(;p.peek()===x;)N++,p.pos++;if(N===0)N=null;else{var c=h===0?"\n":p.subject.charAt(h-1);var M=p.peek();M=M===-1?"\n":Dp(M);var f=T5J.test(M);M=A0J.test(M);var K=T5J.test(c);var t=A0J.test(c);c=!f&&!(M&&!K&&!t);f=!K&&!(t&&!f&&!M);x===95?(K=c&&(!f||t),M=f&&(!c||M)):(K=x===39||x===34?c&&!f:c,M=f);p.pos=h;N={numdelims:N,can_open:K,can_close:M}}if(!N)return!1;h=N.numdelims;M=p.pos;p.pos+=h;M=x===39?"\u2019":x===34?"\u201c":p.subject.slice(M,p.pos);M=K7(M);
F.appendChild(M);p.delimiters={cc:x,numdelims:h,origdelims:h,node:M,previous:p.delimiters,next:null,can_open:N.can_open,can_close:N.can_close};p.delimiters.previous!==null&&(p.delimiters.previous.next=p.delimiters);return!0},$CC=function(p,x){x.previous!==null&&(x.previous.next=x.next);
x.next===null?p.delimiters=x.previous:x.next.previous=x.previous},egK=function(p,x){var F,N,h=[],c=!1;
h[95]=x;h[42]=x;h[39]=x;h[34]=x;for(F=p.delimiters;F!==null&&F.previous!==x;)F=F.previous;for(;F!==null;){var M=F.cc;if(F.can_close){var f=F.previous;for(N=!1;f!==null&&f!==x&&f!==h[M];){c=(F.can_open||f.can_close)&&(f.origdelims+F.origdelims)%3===0;if(f.cc===F.cc&&f.can_open&&!c){N=!0;break}f=f.previous}var K=F;if(M===42||M===95)if(N){var t=F.numdelims>=2&&f.numdelims>=2?2:1;var d=f.node;var v=F.node;f.numdelims-=t;F.numdelims-=t;d._literal=d._literal.slice(0,d._literal.length-t);v._literal=v._literal.slice(0,
v._literal.length-t);var C=new Mz(t===1?"emph":"strong");for(t=d._next;t&&t!==v;){var X=t._next;f7(t);C.appendChild(t);t=X}bQI(d,C);t=f;X=F;t.next!==X&&(t.next=X,X.previous=t);f.numdelims===0&&(f7(d),$CC(p,f));F.numdelims===0&&(f7(v),f=F.next,$CC(p,F),F=f)}else F=F.next;else M===39?(F.node._literal="\u2019",N&&(f.node._literal="\u2018"),F=F.next):M===34&&(F.node._literal="\u201d",N&&(f.node.literal="\u201c"),F=F.next);N||c||(h[M]=K.previous,K.can_open||$CC(p,K))}else F=F.next}for(;p.delimiters!==
null&&p.delimiters!==x;)$CC(p,p.delimiters)},p2J=function(p){p=p.match(utB);
return p===null?null:gpv(p.substr(1,p.length-2))},xNZ=function(p){var x=p.match(YiJ);
if(x===null){x=p.pos;for(var F=0,N;(N=p.peek())!==-1;)if(N===92)p.pos+=1,p.peek()!==-1&&(p.pos+=1);else if(N===40)p.pos+=1,F+=1;else if(N===41)if(F<1)break;else p.pos+=1,--F;else if(LxI.exec(Dp(N))!==null)break;else p.pos+=1;x=p.subject.substr(x,p.pos-x);return Q4l(gpv(x))}return Q4l(gpv(x.substr(1,x.length-2)))},FUJ=function(p){p=p.match(UCZ);
return p===null||p.length>1001?0:p.length},NRK=function(p,x,F,N){p.brackets!==null&&(p.brackets.bracketAfter=!0);
p.brackets={node:x,previous:p.brackets,previousDelimiter:p.delimiters,index:F,image:N,active:!0}},hxv=function(p,x){var F;
return(F=p.match(iQB))?(p.options.smart?x.appendChild(K7(F.replace(HQv,"\u2026").replace(mCI,function(N){var h=0,c=0;N.length%3===0?c=N.length/3:N.length%2===0?h=N.length/2:N.length%3===2?(h=1,c=(N.length-2)/3):(h=2,c=(N.length-4)/3);N="";var M;for(M=0;M<c;M++)N+="\u2014";for(M=0;M<h;M++)N+="\u2013";return N}))):x.appendChild(K7(F)),!0):!1},ltm=function(p,x,F){p.subject=x;
p.pos=0;x=p.pos;var N=FUJ(p);if(N===0)return 0;var h=p.subject.substr(0,N);if(p.peek()===58)p.pos++;else return p.pos=x,0;Zp(p);N=xNZ(p);if(N===null||N.length===0)return p.pos=x,0;var c=p.pos;Zp(p);var M=p2J(p);M===null&&(M="",p.pos=c);var f=!0;p.match(kOI)===null&&(M===""?f=!1:(M="",p.pos=c,f=p.match(kOI)!==null));if(!f)return p.pos=x,0;h=ya6(h);if(h==="")return p.pos=x,0;F[h]||(F[h]={destination:N,title:M});return p.pos-x},cRm=function(p,x){var F,N=p.peek();
if(N===-1)return!1;switch(N){case 10:p.pos+=1;if((F=x._lastChild)&&F.type==="text"&&F._literal[F._literal.length-1]===" "){var h=F._literal[F._literal.length-2]===" ";F._literal=F._literal.replace(B5n,"");x.appendChild(new Mz(h?"linebreak":"softbreak"))}else x.appendChild(new Mz("softbreak"));p.match(RgD);F=!0;break;case 92:F=p.subject;p.pos+=1;p.peek()===10?(p.pos+=1,F=new Mz("linebreak"),x.appendChild(F)):wtm.test(F.charAt(p.pos))?(x.appendChild(K7(F.charAt(p.pos))),p.pos+=1):x.appendChild(K7("\\"));
F=!0;break;case 96:a:if(F=p.match(Wxj),F===null)F=!1;else{h=p.pos;for(var c;(c=p.match(V3J))!==null;)if(c===F){c=new Mz("code");c._literal=p.subject.slice(h,p.pos-F.length).trim().replace(PTB," ");x.appendChild(c);F=!0;break a}p.pos=h;x.appendChild(K7(F));F=!0}break;case 42:case 95:F=ISB(p,N,x);break;case 39:case 34:F=p.options.smart&&ISB(p,N,x);break;case 91:F=p.pos;p.pos+=1;h=K7("[");x.appendChild(h);NRK(p,h,F,!1);F=!0;break;case 33:F=p.pos;p.pos+=1;p.peek()===91?(p.pos+=1,h=K7("!["),x.appendChild(h),
NRK(p,h,F+1,!0)):x.appendChild(K7("!"));F=!0;break;case 93:var M,f=!1,K;p.pos+=1;var t=p.pos;h=p.brackets;if(h===null)x.appendChild(K7("]"));else if(h.active){F=h.image;var d=p.pos;p.peek()===40&&(p.pos++,Zp(p)&&(c=xNZ(p))!==null&&Zp(p)&&(LxI.test(p.subject.charAt(p.pos-1))&&(M=p2J(p)),1)&&Zp(p)&&p.peek()===41?(p.pos+=1,f=!0):p.pos=d);if(!f){var v=p.pos,C=FUJ(p);C>2?K=p.subject.slice(v,v+C):h.bracketAfter||(K=p.subject.slice(h.index,t));C===0&&(p.pos=d);K&&(K=p.refmap[ya6(K)])&&(c=K.destination,M=
K.title,f=!0)}if(f){t=new Mz(F?"image":"link");t._destination=c;t._title=M||"";for(c=h.node._next;c;)M=c._next,f7(c),t.appendChild(c),c=M;x.appendChild(t);egK(p,h.previousDelimiter);p.brackets=p.brackets.previous;f7(h.node);if(!F)for(h=p.brackets;h!==null;)h.image||(h.active=!1),h=h.previous}else p.brackets=p.brackets.previous,p.pos=t,x.appendChild(K7("]"))}else x.appendChild(K7("]")),p.brackets=p.brackets.previous;F=!0;break;case 60:(F=p.match(opD))?(F=F.slice(1,F.length-1),h=new Mz("link"),h._destination=
Q4l("mailto:"+F),h._title="",h.appendChild(K7(F)),x.appendChild(h),F=!0):(F=p.match(OQk))?(F=F.slice(1,F.length-1),h=new Mz("link"),h._destination=Q4l(F),h._title="",h.appendChild(K7(F)),x.appendChild(h),F=!0):F=!1;F||(F=p.match(J0k),F===null?F=!1:(h=new Mz("html_inline"),h._literal=F,x.appendChild(h),F=!0));break;case 38:(F=p.match(GOm))?(x.appendChild(K7(dCk(F))),F=!0):F=!1;break;default:F=hxv(p,x)}F||(p.pos+=1,x.appendChild(K7(Dp(N))));return!0};
q7.prototype.parseInlines=function(p){this.subject=p._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;cRm(this,p););p._string_content=null;egK(this,null)};
q7.prototype.parse=q7.prototype.parseInlines;var atZ=[/./,/^<(?: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")],Mo6=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],DNK=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,ftb=/^[#`~*+_=<>0-9-\|]|\|/,KUk=/[^ \t\f\v\r\n]/,qsD=/^[*+-]/,ZVC=/^(\d{1,9})([.)])/,tob=/^#{1,6}(?:[ \t]+|$)/,dNj=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,vw6=/^(?:`{3,}|~{3,})(?= *$)/,JRK=/^(?:=+|-+)[ \t]*$/,Crm=/\r\n|\n|\r/,Aa$=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,unp=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,Ssb={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(p){return p!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(p,x){for(p=x._firstChild;p;){if(byr(p)&&p._next){x._listData.tight=!1;break}for(var F=p._firstChild;F;){if(byr(F)&&(p._next||F._next)){x._listData.tight=!1;break}F=F._next}p=p._next}},
canContain:function(p){return p==="item"},
acceptsLines:!1},block_quote:{continue:function(p){var x=p.currentLine;if(p.indented||c7(x,p.nextNonspace)!==62)return 1;tn(p);dB(p,1,!1);l0(c7(x,p.offset))&&dB(p,1,!0);return 0},
finalize:function(){},
canContain:function(p){return p!=="item"},
acceptsLines:!1},item:{continue:function(p,x){if(p.blank){if(x._firstChild==null)return 1;tn(p)}else if(p.indent>=x._listData.markerOffset+x._listData.padding)dB(p,x._listData.markerOffset+x._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(p){return p!=="item"&&!YRM(p)},
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(p,x){var F=p.currentLine,N=p.indent;if(x._isFenced){if((N=N<=3&&F.charAt(p.nextNonspace)===x._fenceChar&&F.slice(p.nextNonspace).match(vw6))&&N[0].length>=x._fenceLength)return p.finalize(x,p.lineNumber),2;for(x=x._fenceOffset;x>0&&l0(c7(F,p.offset));)dB(p,1,!0),x--}else if(N>=4)dB(p,4,!0);else if(p.blank)tn(p);else return 1;return 0},
finalize:function(p,x){if(x._isFenced){var F=x._string_content,N=F.indexOf("\n");p=F.slice(0,N);F=F.slice(N+1);x.info=gpv(p.trim());x._literal=F}else x._literal=x._string_content.replace(/(\n *)+$/,"\n");x._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(p,x){return!p.blank||x._htmlBlockType!==6&&x._htmlBlockType!==7?0:1},
finalize:function(p,x){x._literal=x._string_content.replace(/(\n *)+$/,"");x._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(p){return p.blank?1:0},
finalize:function(p,x){for(var F,N=!1;c7(x._string_content,0)===91&&(F=ltm(p.inlineParser,x._string_content,p.refmap));)x._string_content=x._string_content.slice(F),N=!0;N&&!KUk.test(x._string_content)&&f7(x)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(p){return a9(p.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(p){return p=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(p,x){if(!x._rowIsDelimiter){p=x._isHeader?"th":"td";for(var F=x._parent._tableColumns,N=x._string_content,h=0,c="",M,f=x._sourcepos[0][0];h<N.length;){switch(N[h]){case "|":M&&(M._string_content=c.trim(),c="",M=null,F--,F<=0&&(h=N.length));break;default:if(!M){M=new Mz(p,[[f,h],[f,h]]);var K=x._parent._columnAlignment,t=x._parent._tableColumns-F;K&&t<=K.length&&t>=0&&(M._alignment=K[t]);x.appendChild(M)}c+=N[h];M._sourcepos[1][1]=h}h++}M&&(M._string_content=c.trim());x._string_content=
""}},
canContain:function(p){return p!=="row"},
acceptsLines:!1}},rRC=[function(p){if(p.indented||c7(p.currentLine,p.nextNonspace)!==62)return 0;tn(p);dB(p,1,!1);l0(c7(p.currentLine,p.offset))&&dB(p,1,!0);vx(p);p.addChild("block_quote",p.nextNonspace);return 1},
function(p){var x;if(!p.indented&&(x=p.currentLine.slice(p.nextNonspace).match(tob))){tn(p);dB(p,x[0].length,!1);vx(p);var F=p.addChild("heading",p.nextNonspace);F.level=x[0].trim().length;F._string_content=p.currentLine.slice(p.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");dB(p,p.currentLine.length-p.offset);return 2}return 0},
function(p){var x;if(!p.indented&&(x=p.currentLine.slice(p.nextNonspace).match(dNj))){var F=x[0].length;vx(p);var N=p.addChild("code_block",p.nextNonspace);N._isFenced=!0;N._fenceLength=F;N._fenceChar=x[0][0];N._fenceOffset=p.indent;tn(p);dB(p,F,!1);return 2}return 0},
function(p,x){if(!p.indented&&c7(p.currentLine,p.nextNonspace)===60){var F=p.currentLine.slice(p.nextNonspace),N;for(N=1;N<=7;N++)if(atZ[N].test(F)&&(N<7||x.type!=="paragraph"))return vx(p),p.addChild("html_block",p.offset)._htmlBlockType=N,2}return 0},
function(p,x){var F;if(!p.indented&&x.type==="paragraph"&&(F=p.currentLine.slice(p.nextNonspace).match(JRK))){vx(p);var N=new Mz("heading",x.sourcepos);N.level=F[0][0]==="="?1:2;N._string_content=x._string_content;bQI(x,N);f7(x);p.tip=N;dB(p,p.currentLine.length-p.offset,!1);return 2}return 0},
function(p){return!p.indented&&DNK.test(p.currentLine.slice(p.nextNonspace))?(vx(p),p.addChild("thematic_break",p.nextNonspace),dB(p,p.currentLine.length-p.offset,!1),2):0},
function(p,x){var F,N;if(!(N=p.indented&&x.type!=="list")){a:{var h=x,c=p.currentLine.slice(p.nextNonspace);N={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:p.indent};if(F=c.match(qsD))N.type="bullet",N.bulletChar=F[0][0];else{if(!(F=c.match(ZVC))||h.type==="paragraph"&&F[1]!=="1"){F=null;break a}N.type="ordered";N.start=parseInt(F[1],10);N.delimiter=F[2]}var M=c7(p.currentLine,p.nextNonspace+F[0].length);if(M!==-1&&M!==9&&M!==32||h.type==="paragraph"&&!p.currentLine.slice(p.nextNonspace+
F[0].length).match(KUk))F=null;else{tn(p);dB(p,F[0].length,!0);h=p.column;c=p.offset;do dB(p,1,!0),M=c7(p.currentLine,p.offset);while(p.column-h<5&&l0(M));M=c7(p.currentLine,p.offset)===-1;var f=p.column-h;f>=5||f<1||M?(N.padding=F[0].length+1,p.column=h,p.offset=c,l0(c7(p.currentLine,p.offset))&&dB(p,1,!0)):N.padding=F[0].length+f;F=N}}N=!F}if(N)return 0;vx(p);(N=p.tip.type!=="list")||(x=x._listData,N=!(x.type===F.type&&x.delimiter===F.delimiter&&x.bulletChar===F.bulletChar));N&&(x=p.addChild("list",
p.nextNonspace),x._listData=F);x=p.addChild("item",p.nextNonspace);x._listData=F;return 1},
function(p){var x;return((x=p.options.shouldParseIndentAsCodeBlock)!=null?x:1)&&p.indented&&p.tip.type!=="paragraph"&&!p.blank?(dB(p,4,!0),vx(p),p.addChild("code_block",p.offset),2):0},
function(p,x){var F=a9(p.currentLine),N=a9(p.lookahead);if(F!==0&&N<0&&Math.abs(F)==Math.abs(N)&&!YRM(x.type)){vx(p);x=p.addChild("table",p.nextNonspace);x._tableRows=1;x._tableColumns=Math.abs(F);F=p.lookahead;if(unp.test(F)){N=[];for(var h=0,c=!1,M=0,f=void 0;h<F.length;){var K=M>=3;switch(F[h]){case "-":M++;break;case "|":c&&(N.push(f),f=void 0,M=0);c=!0;break;case ":":f||K||(f="left"),!f&&K&&(f="right"),f==="left"&&K&&(f="center")}h++}F=N}else F=void 0;x._columnAlignment=F;x=p.addChild("row",
p.nextNonspace);x._isHeader=!0;dB(p,p.currentLine.length-p.offset,!1);x._string_content=p.currentLine;return 1}return 0},
function(p,x){if(x.type=="table"&&a9(p.currentLine)!==0){vx(p);var F=x;x=p.addChild("row",p.nextNonspace);a9(p.currentLine)<0?x._rowIsDelimiter=!0:F._tableRows+=1;dB(p,p.currentLine.length-p.offset,!1);x._string_content=p.currentLine;return 2}return 0}],NZz=function(){var p={shouldParseIndentAsCodeBlock:!1};
p=p===void 0?{}:p;this.lastMatchedContainer=this.doc=wkp();this.refmap={};this.lastLineLength=0;this.inlineParser=new q7(p);this.options=p;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=Ssb;this.blockStarts=rRC},Ewm=function(p){p.partiallyConsumedTab&&(p.offset+=1,p.tip._string_content+=" ".repeat(4-p.column%
4));
p.tip._string_content+=p.currentLine.slice(p.offset)+"\n"};
NZz.prototype.addChild=function(p,x){for(;!this.blocks[this.tip.type].canContain(p);)this.finalize(this.tip,this.lineNumber-1);p=new Mz(p,[[this.lineNumber,x+1],[0,0]]);p._string_content="";this.tip.appendChild(p);return this.tip=p};
var vx=function(p){if(!p.allClosed){for(;p.oldtip!==p.lastMatchedContainer;){var x=p.oldtip._parent;p.finalize(p.oldtip,p.lineNumber-1);p.oldtip=x}p.allClosed=!0}},dB=function(p,x,F){for(var N=p.currentLine,h,c;x>0&&(c=N[p.offset]);)c==="\t"?(h=4-p.column%4,F?(p.partiallyConsumedTab=h>x,h=h>x?x:h,p.column+=h,p.offset+=p.partiallyConsumedTab?0:1,x-=h):(p.partiallyConsumedTab=!1,p.column+=h,p.offset+=1,--x)):(p.partiallyConsumedTab=!1,p.offset+=1,p.column+=1,--x)},tn=function(p){p.offset=p.nextNonspace;
p.column=p.nextNonspaceColumn;p.partiallyConsumedTab=!1},X2l=function(p){for(var x=p.currentLine,F=p.offset,N=p.column,h;(h=x.charAt(F))!=="";)if(h===" ")F++,N++;
else if(h==="\t")F++,N+=4-N%4;else break;p.blank=h==="\n"||h==="\r"||h==="";p.nextNonspace=F;p.nextNonspaceColumn=N;p.indent=p.nextNonspaceColumn-p.column;p.indented=p.indent>=4};
NZz.prototype.finalize=function(p,x){var F=p._parent;p._open=!1;p.sourcepos[1]=[x,this.lastLineLength];this.blocks[p.type].finalize(this,p);this.tip=F};
NZz.prototype.parse=function(p){this.tip=this.doc=wkp();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!p)return this.doc;this.options.time&&console.time("preparing input");var x=p.split(Crm),F=x.length;p.charCodeAt(p.length-1)===10&&--F;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(p=0;p<F;p++)a:{var N=void 0,h=x[p],c=x[p+1],M=!0,f=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;h.indexOf("\x00")!==-1&&(h=h.replace(/\0/g,"\ufffd"));this.currentLine=h;for(this.lookahead=c;(N=f._lastChild)&&N._open;){f=N;X2l(this);switch(this.blocks[f.type].continue(this,f)){case 0:break;case 1:M=!1;break;case 2:this.lastLineLength=h.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!M){f=f._parent;break}}this.allClosed=f===this.oldtip;this.lastMatchedContainer=
f;N=f.type!=="paragraph"&&Ssb[f.type].acceptsLines;c=this.blockStarts;for(M=c.length;!N;){X2l(this);if(!this.indented&&!ftb.test(h.slice(this.nextNonspace))){tn(this);break}for(var K=0;K<M;){var t=c[K](this,f);if(t===1){f=this.tip;break}else if(t===2){f=this.tip;N=!0;break}else K++}if(K===M){tn(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){vx(this);this.blank&&f.lastChild&&(f.lastChild._lastLineBlank=!0);N=f.type;c=this.blank&&!(N==="block_quote"||N==="code_block"&&f._isFenced||
N==="item"&&!f._firstChild&&f.sourcepos[0][0]===this.lineNumber);for(M=f;M;)M._lastLineBlank=c,M=M._parent;this.blocks[N].acceptsLines?(Ewm(this),N==="html_block"&&f._htmlBlockType>=1&&f._htmlBlockType<=5&&Mo6[f._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(f,this.lineNumber)):this.offset<h.length&&!this.blank&&(this.addChild("paragraph",this.offset),tn(this),Ewm(this))}else Ewm(this);this.lastLineLength=h.length}for(;this.tip;)this.finalize(this.tip,F);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");h=new y0j(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;F=h.next();)x=F.node,p=x.type,F.entering||p!=="paragraph"&&p!=="heading"&&p!=="th"&&p!="td"||this.inlineParser.parse(x);this.options.time&&console.timeEnd("inline parsing");return this.doc};Gap.prototype.render=function(p){p=new y0j(p);var x;this.buffer="";for(this.lastOut="\n";x=p.next();){var F=x.node.type;if(this[F])this[F](x.node,x.entering)}return this.buffer};
Gap.prototype.out=function(p){Jn(this,p)};
var Jn=function(p,x){p.buffer+=x;p.lastOut=x};
Gap.prototype.cr=function(){this.lastOut!=="\n"&&Jn(this,"\n")};var gwD=/^javascript:|vbscript:|file:|data:/i,QCI=/^data:image\/(?:png|gif|jpeg|webp)/i,zxn=function(p){return gwD.test(p)&&!QCI.test(p)};
DI.prototype=Object.create(Gap.prototype);_.l=DI.prototype;_.l.text=function(p){this.out(p.literal)};
_.l.html_inline=function(p){this.options.safe?Jn(this,"\x3c!-- raw HTML omitted --\x3e"):Jn(this,p.literal)};
_.l.html_block=function(p){this.cr();this.options.safe?Jn(this,"\x3c!-- raw HTML omitted --\x3e"):Jn(this,p.literal);this.cr()};
_.l.softbreak=function(){Jn(this,this.options.softbreak)};
_.l.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.l.link=function(p,x){var F=this.attrs(p);x?(this.options.safe&&zxn(p.destination)||F.push(["href",M7(p.destination,!0)]),p.title&&F.push(["title",M7(p.title,!0)]),this.tag("a",F)):this.tag("/a")};
_.l.image=function(p,x){x?(this.disableTags===0&&(this.options.safe&&zxn(p.destination)?Jn(this,'<img src="" alt="'):Jn(this,'<img src="'+M7(p.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(p.title&&Jn(this,'" title="'+M7(p.title,!0)),Jn(this,'" />')))};
_.l.emph=function(p,x){this.tag(x?"em":"/em")};
_.l.strong=function(p,x){this.tag(x?"strong":"/strong")};
_.l.paragraph=function(p,x){var F=p.parent.parent;p=this.attrs(p);F!==null&&F.type==="list"&&F.listTight||(x?(this.cr(),this.tag("p",p)):(this.tag("/p"),this.cr()))};
_.l.heading=function(p,x){var F="h"+p.level;p=this.attrs(p);x?(this.cr(),this.tag(F,p)):(this.tag("/"+F),this.cr())};
_.l.code=function(p){this.tag("code");this.out(p.literal);this.tag("/code")};
_.l.code_block=function(p){var x=p.info?p.info.split(/\s+/):[],F=this.attrs(p);x.length>0&&x[0].length>0&&F.push(["class","language-"+M7(x[0],!0)]);this.cr();this.tag("pre");this.tag("code",F);this.out(p.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.l.thematic_break=function(p){p=this.attrs(p);this.cr();this.tag("hr",p,!0);this.cr()};
_.l.block_quote=function(p,x){p=this.attrs(p);x?(this.cr(),this.tag("blockquote",p)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.l.list=function(p,x){var F=p.listType==="bullet"?"ul":"ol",N=this.attrs(p);x?(p=p.listStart,p!==null&&p!==1&&N.push(["start",p.toString()]),this.cr(),this.tag(F,N)):(this.cr(),this.tag("/"+F));this.cr()};
_.l.item=function(p,x){p=this.attrs(p);x?this.tag("li",p):(this.tag("/li"),this.cr())};
_.l.custom_inline=function(p,x){x&&p.onEnter?Jn(this,p.onEnter):!x&&p.onExit&&Jn(this,p.onExit)};
_.l.custom_block=function(p,x){this.cr();x&&p.onEnter?Jn(this,p.onEnter):!x&&p.onExit&&Jn(this,p.onExit);this.cr()};
_.l.table=function(p,x){p=this.attrs(p);x?(this.cr(),this.tag("table",p)):(this.tag("/table"),this.cr())};
_.l.row=function(p,x){p._rowIsDelimiter||(p=this.attrs(p),x?this.tag("tr",p):this.tag("/tr"))};
_.l.td=function(p,x){var F=this.attrs(p);p._alignment&&F.push(["align",p._alignment]);x?this.tag("td",F):this.tag("/td")};
_.l.th=function(p,x){var F=this.attrs(p);p._alignment&&F.push(["align",p._alignment]);x?this.tag("th",F):this.tag("/th")};
_.l.out=function(p){Jn(this,M7(p,!1))};
_.l.tag=function(p,x,F){if(!(this.disableTags>0)){this.buffer+="<"+p;if(x&&x.length>0){p=0;for(var N;(N=x[p])!==void 0;)this.buffer+=" "+N[0]+'="'+N[1]+'"',p++}F&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.l.attrs=function(p){var x=[];this.options.sourcepos&&(p=p.sourcepos)&&x.push(["data-sourcepos",String(p[0][0])+":"+String(p[0][1])+"-"+String(p[1][0])+":"+String(p[1][1])]);return x};
DI.prototype.text=DI.prototype.text;DI.prototype.html_inline=DI.prototype.html_inline;DI.prototype.html_block=DI.prototype.html_block;DI.prototype.softbreak=DI.prototype.softbreak;DI.prototype.linebreak=DI.prototype.linebreak;DI.prototype.link=DI.prototype.link;DI.prototype.image=DI.prototype.image;DI.prototype.emph=DI.prototype.emph;DI.prototype.strong=DI.prototype.strong;DI.prototype.paragraph=DI.prototype.paragraph;DI.prototype.heading=DI.prototype.heading;DI.prototype.code=DI.prototype.code;
DI.prototype.code_block=DI.prototype.code_block;DI.prototype.thematic_break=DI.prototype.thematic_break;DI.prototype.block_quote=DI.prototype.block_quote;DI.prototype.list=DI.prototype.list;DI.prototype.item=DI.prototype.item;DI.prototype.custom_inline=DI.prototype.custom_inline;DI.prototype.custom_block=DI.prototype.custom_block;DI.prototype.table=DI.prototype.table;DI.prototype.row=DI.prototype.row;DI.prototype.td=DI.prototype.td;DI.prototype.th=DI.prototype.th;DI.prototype.out=DI.prototype.out;
DI.prototype.tag=DI.prototype.tag;DI.prototype.attrs=DI.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 sCj,nwl,cxE;(function(){function p(y,z){return y<z?-1:y>z?1:y>=z?0:NaN}
function x(y){return function(z,G){return p(y(z),G)}}
function F(){for(var y=0,z=arguments.length,G={},T;y<z;++y){if(!(T=arguments[y]+"")||T in G)throw Error("qe`"+T);G[T]=[]}return new N(G)}
function N(y){this._=y}
function h(y,z){return y.trim().split(/^|\s+/).map(function(G){var T="",Nm=G.indexOf(".");Nm>=0&&(T=G.slice(Nm+1),G=G.slice(0,Nm));if(G&&!z.hasOwnProperty(G))throw Error("re`"+G);return{type:G,name:T}})}
function c(y,z,G){for(var T=0,Nm=y.length;T<Nm;++T)if(y[T].name===z){y[T]=esa;y=y.slice(0,T).concat(y.slice(T+1));break}G!=null&&y.push({name:z,value:G});return y}
function M(y){var z=y,G=z.indexOf(":");G>=0&&(z=y.slice(0,G))!=="xmlns"&&(y=y.slice(G+1));return G7.hasOwnProperty(z)?{space:G7[z],local:y}:y}
function f(y){return function(){var z=this.ownerDocument,G=this.namespaceURI;return G==="http://www.w3.org/1999/xhtml"&&z.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?z.createElement(y):z.createElementNS(G,y)}}
function K(y){return function(){return this.ownerDocument.createElementNS(y.space,y.local)}}
function t(y){y=M(y);return(y.local?K:f)(y)}
function d(){}
function v(y){return y==null?d:function(){return this.querySelector(y)}}
function C(y){return Array(y.length)}
function X(y,z){this.ownerDocument=y.ownerDocument;this.namespaceURI=y.namespaceURI;this._next=null;this._parent=y;this.__data__=z}
function Q(y){return function(){return y}}
function b(y,z,G,T,Nm,DZ){for(var dk=0,gk,k$=z.length,Br=DZ.length;dk<Br;++dk)(gk=z[dk])?(gk.__data__=DZ[dk],T[dk]=gk):G[dk]=new X(y,DZ[dk]);for(;dk<k$;++dk)if(gk=z[dk])Nm[dk]=gk}
function A(y,z,G,T,Nm,DZ,dk){var gk,k$,Br={},id=z.length,cb=DZ.length,jD=Array(id),qH;for(gk=0;gk<id;++gk)if(k$=z[gk])jD[gk]=qH="$"+dk.call(k$,k$.__data__,gk,z),qH in Br?Nm[gk]=k$:Br[qH]=k$;for(gk=0;gk<cb;++gk)qH="$"+dk.call(y,DZ[gk],gk,DZ),(k$=Br[qH])?(T[gk]=k$,k$.__data__=DZ[gk],Br[qH]=null):G[gk]=new X(y,DZ[gk]);for(gk=0;gk<id;++gk)(k$=z[gk])&&Br[jD[gk]]===k$&&(Nm[gk]=k$)}
function Y(y,z){return y<z?-1:y>z?1:y>=z?0:NaN}
function O(y){return function(){this.removeAttribute(y)}}
function Fw(y){return function(){this.removeAttributeNS(y.space,y.local)}}
function R(y,z){return function(){this.setAttribute(y,z)}}
function ld(y,z){return function(){this.setAttributeNS(y.space,y.local,z)}}
function pp(y,z){return function(){var G=z.apply(this,arguments);G==null?this.removeAttribute(y):this.setAttribute(y,G)}}
function Kp(y,z){return function(){var G=z.apply(this,arguments);G==null?this.removeAttributeNS(y.space,y.local):this.setAttributeNS(y.space,y.local,G)}}
function sM(y){return function(){this.style.removeProperty(y)}}
function np(y,z,G){return function(){this.style.setProperty(y,z,G)}}
function Jz(y,z,G){return function(){var T=z.apply(this,arguments);T==null?this.style.removeProperty(y):this.style.setProperty(y,T,G)}}
function Y$(y,z){return y.style.getPropertyValue(z)||(y.ownerDocument&&y.ownerDocument.defaultView||y.document&&y||y.defaultView).getComputedStyle(y,null).getPropertyValue(z)}
function xB(y){return function(){delete this[y]}}
function qI(y,z){return function(){this[y]=z}}
function RJ(y,z){return function(){var G=z.apply(this,arguments);G==null?delete this[y]:this[y]=G}}
function Ik(){this.textContent=""}
function vb(y){return function(){this.textContent=y}}
function CZ(y){return function(){var z=y.apply(this,arguments);this.textContent=z==null?"":z}}
function sk(){this.innerHTML=""}
function Ov(y){return function(){this.innerHTML=y}}
function Xj(y){return function(){var z=y.apply(this,arguments);this.innerHTML=z==null?"":z}}
function AC(){return null}
function Jo(){var y=this.parentNode;y&&y.removeChild(this)}
function Bz(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function aJ(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function he(y,z,G){y=Bb(y,z,G);return function(T){var Nm=T.relatedTarget;Nm&&(Nm===this||Nm.compareDocumentPosition(this)&8)||y.call(this,T)}}
function Bb(y,z,G){return function(){y.call(this,this.__data__,z,G)}}
function PH(y){return y.trim().split(/^|\s+/).map(function(z){var G="",T=z.indexOf(".");T>=0&&(G=z.slice(T+1),z=z.slice(0,T));return{type:z,name:G}})}
function dl(y){return function(){var z=this.__on;if(z){for(var G=0,T=-1,Nm=z.length,DZ;G<Nm;++G)(DZ=z[G],y.type&&DZ.type!==y.type||DZ.name!==y.name)?z[++T]=DZ:this.removeEventListener(DZ.type,DZ.listener,DZ.capture);++T?z.length=T:delete this.__on}}}
function nZ(y,z,G){var T=ZIb.hasOwnProperty(y.type)?he:Bb;return function(Nm,DZ,dk){Nm=this.__on;var gk;DZ=T(z,DZ,dk);if(Nm){dk=0;for(var k$=Nm.length;dk<k$;++dk)if((gk=Nm[dk]).type===y.type&&gk.name===y.name){this.removeEventListener(gk.type,gk.listener,gk.capture);this.addEventListener(gk.type,gk.listener=DZ,gk.capture=G);gk.value=z;return}}this.addEventListener(y.type,DZ,G);gk={type:y.type,name:y.name,value:z,listener:DZ,capture:G};Nm?Nm.push(gk):this.__on=[gk]}}
function ep(y,z,G){var T=y.ownerDocument&&y.ownerDocument.defaultView||y.document&&y||y.defaultView,Nm=T.CustomEvent;typeof Nm==="function"?Nm=new Nm(z,G):(Nm=T.document.createEvent("Event"),G?(Nm.initEvent(z,G.bubbles,G.cancelable),Nm.detail=G.detail):Nm.initEvent(z,!1,!1));y.dispatchEvent(Nm)}
function jp(y,z){return function(){return ep(this,y,z)}}
function fZ(y,z){return function(){return ep(this,y,z.apply(this,arguments))}}
function Uv(y,z){this._groups=y;this._parents=z}
function FK(){return new Uv([[document.documentElement]],ppm)}
function uB(){this._="@"+(++xyt).toString(36)}
function ot(y,z,G){y.prototype=z.prototype=G;G.constructor=y}
function zl(y,z){y=Object.create(y.prototype);for(var G in z)y[G]=z[G];return y}
function LN(){}
function aM(y){var z;y=(y+"").trim().toLowerCase();return(z=FI8.exec(y))?(z=parseInt(z[1],16),new r1(z>>8&15|z>>4&240,z>>4&15|z&240,(z&15)<<4|z&15,1)):(z=Nrc.exec(y))?bk(parseInt(z[1],16)):(z=hCm.exec(y))?new r1(z[1],z[2],z[3],1):(z=lf_.exec(y))?new r1(z[1]*255/100,z[2]*255/100,z[3]*255/100,1):(z=cx8.exec(y))?kQ(z[1],z[2],z[3],z[4]):(z=af8.exec(y))?kQ(z[1]*255/100,z[2]*255/100,z[3]*255/100,z[4]):(z=M$H.exec(y))?PQ(z[1],z[2]/100,z[3]/100,1):(z=Dye.exec(y))?PQ(z[1],z[2]/100,z[3]/100,z[4]):tWv.hasOwnProperty(y)?
bk(tWv[y]):y==="transparent"?new r1(NaN,NaN,NaN,0):null}
function bk(y){return new r1(y>>16&255,y>>8&255,y&255,1)}
function kQ(y,z,G,T){T<=0&&(y=z=G=NaN);return new r1(y,z,G,T)}
function gs(y){y instanceof LN||(y=aM(y));if(!y)return new r1;y=y.rgb();return new r1(y.r,y.g,y.b,y.opacity)}
function Lt(y,z,G,T){return arguments.length===1?gs(y):new r1(y,z,G,T==null?1:T)}
function r1(y,z,G,T){this.r=+y;this.g=+z;this.b=+G;this.opacity=+T}
function sU(y){y=Math.max(0,Math.min(255,Math.round(y)||0));return(y<16?"0":"")+y.toString(16)}
function PQ(y,z,G,T){T<=0?y=z=G=NaN:G<=0||G>=1?y=z=NaN:z<=0&&(y=NaN);return new Pw(y,z,G,T)}
function Kg(y){if(y instanceof Pw)return new Pw(y.h,y.s,y.l,y.opacity);y instanceof LN||(y=aM(y));if(!y)return new Pw;if(y instanceof Pw)return y;y=y.rgb();var z=y.r/255,G=y.g/255,T=y.b/255,Nm=Math.min(z,G,T),DZ=Math.max(z,G,T),dk=NaN,gk=DZ-Nm,k$=(DZ+Nm)/2;gk?(dk=z===DZ?(G-T)/gk+(G<T)*6:G===DZ?(T-z)/gk+2:(z-G)/gk+4,gk/=k$<.5?DZ+Nm:2-DZ-Nm,dk*=60):gk=k$>0&&k$<1?0:dk;return new Pw(dk,gk,k$,y.opacity)}
function md(y,z,G,T){return arguments.length===1?Kg(y):new Pw(y,z,G,T==null?1:T)}
function Pw(y,z,G,T){this.h=+y;this.s=+z;this.l=+G;this.opacity=+T}
function Zh(y,z,G){return(y<60?z+(G-z)*y/60:y<180?G:y<240?z+(G-z)*(240-y)/60:z)*255}
function Tc(y){if(y instanceof Cp)return new Cp(y.l,y.a,y.b,y.opacity);if(y instanceof Tm){if(isNaN(y.h))return new Cp(y.l,0,0,y.opacity);var z=y.h*dbn;return new Cp(y.l,Math.cos(z)*y.c,Math.sin(z)*y.c,y.opacity)}y instanceof r1||(y=gs(y));var G=lm(y.r),T=lm(y.g),Nm=lm(y.b);z=ud(.2225045*G+.7168786*T+.0606169*Nm);if(G===T&&T===Nm)var DZ=G=z;else DZ=ud((.4360747*G+.3850649*T+.1430804*Nm)/.96422),G=ud((.0139322*G+.0971045*T+.7141733*Nm)/.82521);return new Cp(116*z-16,500*(DZ-z),200*(z-G),y.opacity)}
function Cp(y,z,G,T){this.l=+y;this.a=+z;this.b=+G;this.opacity=+T}
function ud(y){return y>ffH?Math.pow(y,1/3):y/vKm+JEm}
function Hr(y){return y>S7?y*y*y:vKm*(y-JEm)}
function ZK(y){return 255*(y<=.0031308?12.92*y:1.055*Math.pow(y,1/2.4)-.055)}
function lm(y){return(y/=255)<=.04045?y/12.92:Math.pow((y+.055)/1.055,2.4)}
function hC(y){if(y instanceof Tm)return new Tm(y.h,y.c,y.l,y.opacity);y instanceof Cp||(y=Tc(y));if(y.a===0&&y.b===0)return new Tm(NaN,0,y.l,y.opacity);var z=Math.atan2(y.b,y.a)*CJC;return new Tm(z<0?z+360:z,Math.sqrt(y.a*y.a+y.b*y.b),y.l,y.opacity)}
function ak(y,z,G,T){return arguments.length===1?hC(y):new Tm(y,z,G,T==null?1:T)}
function Tm(y,z,G,T){this.h=+y;this.c=+z;this.l=+G;this.opacity=+T}
function rl(y,z,G,T){if(arguments.length===1){var Nm=y;if(Nm instanceof re)Nm=new re(Nm.h,Nm.s,Nm.l,Nm.opacity);else{Nm instanceof r1||(Nm=gs(Nm));var DZ=Nm.g/255,dk=Nm.b/255,gk=(SIb*dk+Nm.r/255*-1.7884503806-3.5172982438*DZ)/(SIb+-1.7884503806-3.5172982438);dk-=gk;var k$=(1.97294*(DZ-gk)- -.29227*dk)/-.90649;dk=(DZ=Math.sqrt(k$*k$+dk*dk)/(1.97294*gk*(1-gk)))?Math.atan2(k$,dk)*CJC-120:NaN;Nm=new re(dk<0?dk+360:dk,DZ,gk,Nm.opacity)}}else Nm=new re(y,z,G,T==null?1:T);return Nm}
function re(y,z,G,T){this.h=+y;this.s=+z;this.l=+G;this.opacity=+T}
function IR(y,z,G,T,Nm){var DZ=y*y,dk=DZ*y;return((1-3*y+3*DZ-dk)*z+(4-6*DZ+3*dk)*G+(1+3*y+3*DZ-3*dk)*T+dk*Nm)/6}
function sv(y){return function(){return y}}
function hl(y,z){return function(G){return y+G*z}}
function lL(y,z,G){return y=Math.pow(y,G),z=Math.pow(z,G)-y,G=1/G,function(T){return Math.pow(y+T*z,G)}}
function IM(y,z){var G=z-y;return G?hl(y,G>180||G<-180?G-360*Math.round(G/360):G):sv(isNaN(y)?z:y)}
function N1(y){return(y=+y)===1?qp:function(z,G){return G-z?lL(z,G,y):sv(isNaN(z)?G:z)}}
function qp(y,z){var G=z-y;return G?hl(y,G):sv(isNaN(y)?z:y)}
function Iu(y){return function(z){var G=z.length,T=Array(G),Nm=Array(G),DZ=Array(G),dk;for(dk=0;dk<G;++dk){var gk=Lt(z[dk]);T[dk]=gk.r||0;Nm[dk]=gk.g||0;DZ[dk]=gk.b||0}T=y(T);Nm=y(Nm);DZ=y(DZ);gk.opacity=1;return function(k$){gk.r=T(k$);gk.g=Nm(k$);gk.b=DZ(k$);return gk+""}}}
function OM(y,z){return y=+y,z-=y,function(G){return y+z*G}}
function D8(y){return function(){return y}}
function C6(y){return function(z){return y(z)+""}}
function Zn(y,z){var G=Fsw.lastIndex=NEk.lastIndex=0,T,Nm,DZ,dk=-1,gk=[],k$=[];y+="";for(z+="";(T=Fsw.exec(y))&&(Nm=NEk.exec(z));)(DZ=Nm.index)>G&&(DZ=z.slice(G,DZ),gk[dk]?gk[dk]+=DZ:gk[++dk]=DZ),(T=T[0])===(Nm=Nm[0])?gk[dk]?gk[dk]+=Nm:gk[++dk]=Nm:(gk[++dk]=null,k$.push({i:dk,x:OM(T,Nm)})),G=NEk.lastIndex;G<z.length&&(DZ=z.slice(G),gk[dk]?gk[dk]+=DZ:gk[++dk]=DZ);return gk.length<2?k$[0]?C6(k$[0].x):D8(z):(z=k$.length,function(Br){for(var id=0,cb;id<z;++id)gk[(cb=k$[id]).i]=cb.x(Br);return gk.join("")})}
function h_(y,z,G,T,Nm,DZ){var dk,gk,k$;if(dk=Math.sqrt(y*y+z*z))y/=dk,z/=dk;if(k$=y*G+z*T)G-=y*k$,T-=z*k$;if(gk=Math.sqrt(G*G+T*T))G/=gk,T/=gk,k$/=gk;y*T<z*G&&(y=-y,z=-z,k$=-k$,dk=-dk);return{translateX:Nm,translateY:DZ,rotate:Math.atan2(z,y)*rEn,skewX:Math.atan(k$)*rEn,scaleX:dk,scaleY:gk}}
function mM(y,z,G,T){function Nm(Br){return Br.length?Br.pop()+" ":""}
function DZ(Br,id,cb,jD,qH,Dn){Br!==cb||id!==jD?(qH=qH.push("translate(",null,z,null,G),Dn.push({i:qH-4,x:OM(Br,cb)},{i:qH-2,x:OM(id,jD)})):(cb||jD)&&qH.push("translate("+cb+z+jD+G)}
function dk(Br,id,cb,jD){Br!==id?(Br-id>180?id+=360:id-Br>180&&(Br+=360),jD.push({i:cb.push(Nm(cb)+"rotate(",null,T)-2,x:OM(Br,id)})):id&&cb.push(Nm(cb)+"rotate("+id+T)}
function gk(Br,id,cb,jD){Br!==id?jD.push({i:cb.push(Nm(cb)+"skewX(",null,T)-2,x:OM(Br,id)}):id&&cb.push(Nm(cb)+"skewX("+id+T)}
function k$(Br,id,cb,jD,qH,Dn){Br!==cb||id!==jD?(qH=qH.push(Nm(qH)+"scale(",null,",",null,")"),Dn.push({i:qH-4,x:OM(Br,cb)},{i:qH-2,x:OM(id,jD)})):cb===1&&jD===1||qH.push(Nm(qH)+"scale("+cb+","+jD+")")}
return function(Br,id){var cb=[],jD=[];Br=y(Br);id=y(id);DZ(Br.translateX,Br.translateY,id.translateX,id.translateY,cb,jD);dk(Br.rotate,id.rotate,cb,jD);gk(Br.skewX,id.skewX,cb,jD);k$(Br.scaleX,Br.scaleY,id.scaleX,id.scaleY,cb,jD);Br=id=null;return function(qH){for(var Dn=-1,Qq=jD.length,qF;++Dn<Qq;)cb[(qF=jD[Dn]).i]=qF.x(qH);return cb.join("")}}}
function ge(y){return function(z,G){var T=y((z=md(z)).h,(G=md(G)).h),Nm=qp(z.s,G.s),DZ=qp(z.l,G.l),dk=qp(z.opacity,G.opacity);return function(gk){z.h=T(gk);z.s=Nm(gk);z.l=DZ(gk);z.opacity=dk(gk);return z+""}}}
function Bc(y){return function(z,G){var T=y((z=ak(z)).h,(G=ak(G)).h),Nm=qp(z.c,G.c),DZ=qp(z.l,G.l),dk=qp(z.opacity,G.opacity);return function(gk){z.h=T(gk);z.c=Nm(gk);z.l=DZ(gk);z.opacity=dk(gk);return z+""}}}
function RI(y){return function T(G){function Nm(DZ,dk){var gk=y((DZ=rl(DZ)).h,(dk=rl(dk)).h),k$=qp(DZ.s,dk.s),Br=qp(DZ.l,dk.l),id=qp(DZ.opacity,dk.opacity);return function(cb){DZ.h=gk(cb);DZ.s=k$(cb);DZ.l=Br(Math.pow(cb,G));DZ.opacity=id(cb);return DZ+""}}
G=+G;Nm.gamma=T;return Nm}(1)}
function PL(){return ch||(EKk(Ckd),ch=us.now()+Twm)}
function Ckd(){ch=0}
function TM(){this._call=this._time=this._next=null}
function sn(y,z,G){var T=new TM;T.restart(y,z,G);return T}
function nG(){ch=(BwJ=us.now())+Twm;rU=Y0=0;try{PL();++rU;for(var y=R$J,z;y;)(z=ch-y._time)>=0&&y._call.call(null,z),y=y._next;--rU}finally{rU=0;y=R$J;for(var G=Infinity;y;)if(y._call){G>y._time&&(G=y._time);var T=y;y=y._next}else z=y._next,y._next=null,y=T?T._next=z:R$J=z;wZ=T;yA(G);ch=0}}
function tCw(){var y=us.now(),z=y-BwJ;z>1E3&&(Twm-=z,BwJ=y)}
function yA(y){rU||(Y0&&(Y0=clearTimeout(Y0)),y-ch>24?(y<Infinity&&(Y0=setTimeout(nG,y-us.now()-Twm)),Gq&&(Gq=clearInterval(Gq))):(Gq||(BwJ=us.now(),Gq=setInterval(tCw,1E3)),rU=1,EKk(nG)))}
function XPC(y,z,G){var T=new TM;z=z==null?0:+z;T.restart(function(Nm){T.stop();y(Nm+z)},z,G);
return T}
function hdZ(y,z,G,T,Nm,DZ){var dk=y.__transition;if(!dk)y.__transition={};else if(G in dk)return;KI8(y,G,{name:z,index:T,group:Nm,on:qEm,tween:ZYt,time:DZ.time,delay:DZ.delay,duration:DZ.duration,ease:DZ.ease,timer:null,state:0})}
function lYw(y,z){y=QO(y,z);if(y.state>0)throw Error("se");return y}
function aB(y,z){y=QO(y,z);if(y.state>2)throw Error("te");return y}
function QO(y,z){y=y.__transition;if(!y||!(y=y[z]))throw Error("ue");return y}
function KI8(y,z,G){function T(k$){var Br,id;if(G.state!==1)return DZ();for(jD in dk){var cb=dk[jD];if(cb.name===G.name){if(cb.state===3)return XPC(T);cb.state===4?(cb.state=6,cb.timer.stop(),cb.on.call("interrupt",y,y.__data__,cb.index,cb.group),delete dk[jD]):+jD<z&&(cb.state=6,cb.timer.stop(),delete dk[jD])}}XPC(function(){G.state===3&&(G.state=4,G.timer.restart(Nm,G.delay,G.time),Nm(k$))});
G.state=2;G.on.call("start",y,y.__data__,G.index,G.group);if(G.state===2){G.state=3;gk=Array(id=G.tween.length);var jD=0;for(Br=-1;jD<id;++jD)if(cb=G.tween[jD].value.call(y,y.__data__,G.index,G.group))gk[++Br]=cb;gk.length=Br+1}}
function Nm(k$){k$=k$<G.duration?G.ease.call(null,k$/G.duration):(G.timer.restart(DZ),G.state=5,1);for(var Br=-1,id=gk.length;++Br<id;)gk[Br].call(null,k$);G.state===5&&(G.on.call("end",y,y.__data__,G.index,G.group),DZ())}
function DZ(){G.state=6;G.timer.stop();delete dk[z];for(var k$ in dk)return;delete y.__transition}
var dk=y.__transition,gk;dk[z]=G;G.timer=sn(function(k$){G.state=1;G.timer.restart(T,G.delay,G.time);G.delay<=k$&&T(k$-G.delay)},0,G.time)}
function t$X(y,z){var G,T;return function(){var Nm=aB(this,y),DZ=Nm.tween;if(DZ!==G){T=G=DZ;DZ=0;for(var dk=T.length;DZ<dk;++DZ)if(T[DZ].name===z){T=T.slice();T.splice(DZ,1);break}}Nm.tween=T}}
function dyH(y,z,G){var T,Nm;if(typeof G!=="function")throw Error();return function(){var DZ=aB(this,y),dk=DZ.tween;if(dk!==T){Nm=(T=dk).slice();dk={name:z,value:G};for(var gk=0,k$=Nm.length;gk<k$;++gk)if(Nm[gk].name===z){Nm[gk]=dk;break}gk===k$&&Nm.push(dk)}DZ.tween=Nm}}
function cLm(y,z,G){var T=y._id;y.each(function(){var Nm=aB(this,T);(Nm.value||(Nm.value={}))[z]=G.apply(this,arguments)});
return function(Nm){return QO(Nm,T).value[z]}}
function gKZ(y,z){var G;return(typeof z==="number"?OM:z instanceof aM?Qm6:(G=aM(z))?(z=G,Qm6):Zn)(y,z)}
function vTH(y){return function(){this.removeAttribute(y)}}
function JxX(y){return function(){this.removeAttributeNS(y.space,y.local)}}
function CRe(y,z,G){var T,Nm;return function(){var DZ=this.getAttribute(y);return DZ===G?null:DZ===T?Nm:Nm=z(T=DZ,G)}}
function SEk(y,z,G){var T,Nm;return function(){var DZ=this.getAttributeNS(y.space,y.local);return DZ===G?null:DZ===T?Nm:Nm=z(T=DZ,G)}}
function rx_(y,z,G){var T,Nm,DZ;return function(){var dk=G(this);if(dk==null)return void this.removeAttribute(y);var gk=this.getAttribute(y);return gk===dk?null:gk===T&&dk===Nm?DZ:DZ=z(T=gk,Nm=dk)}}
function ETa(y,z,G){var T,Nm,DZ;return function(){var dk=G(this);if(dk==null)return void this.removeAttributeNS(y.space,y.local);var gk=this.getAttributeNS(y.space,y.local);return gk===dk?null:gk===T&&dk===Nm?DZ:DZ=z(T=gk,Nm=dk)}}
function Xpc(y,z){function G(){var T=this,Nm=z.apply(T,arguments);return Nm&&function(DZ){T.setAttributeNS(y.space,y.local,Nm(DZ))}}
G._value=z;return G}
function gTt(y,z){function G(){var T=this,Nm=z.apply(T,arguments);return Nm&&function(DZ){T.setAttribute(y,Nm(DZ))}}
G._value=z;return G}
function QFk(y,z){return function(){lYw(this,y).delay=+z.apply(this,arguments)}}
function zCk(y,z){return z=+z,function(){lYw(this,y).delay=z}}
function sF8(y,z){return function(){aB(this,y).duration=+z.apply(this,arguments)}}
function nTk(y,z){return z=+z,function(){aB(this,y).duration=z}}
function yxc(y,z){if(typeof z!=="function")throw Error();return function(){aB(this,y).ease=z}}
function bYD(y){return(y+"").trim().split(/^|\s+/).every(function(z){var G=z.indexOf(".");G>=0&&(z=z.slice(0,G));return!z||z==="start"})}
function AxH(y,z,G){var T,Nm,DZ=bYD(z)?lYw:aB;return function(){var dk=DZ(this,y),gk=dk.on;if(gk!==T)(Nm=(T=gk).copy()).on(z,G);dk.on=Nm}}
function uCm(y){return function(){var z=this.parentNode,G;for(G in this.__transition)if(+G!==y)return;z&&z.removeChild(this)}}
function YEa(y,z){var G,T,Nm;return function(){var DZ=Y$(this,y),dk=(this.style.removeProperty(y),Y$(this,y));return DZ===dk?null:DZ===G&&dk===T?Nm:Nm=z(G=DZ,T=dk)}}
function wp8(y){return function(){this.style.removeProperty(y)}}
function GY8(y,z,G){var T,Nm;return function(){var DZ=Y$(this,y);return DZ===G?null:DZ===T?Nm:Nm=z(T=DZ,G)}}
function V$a(y,z,G){var T,Nm,DZ;return function(){var dk=Y$(this,y),gk=G(this);gk==null&&(gk=(this.style.removeProperty(y),Y$(this,y)));return dk===gk?null:dk===T&&gk===Nm?DZ:DZ=z(T=dk,Nm=gk)}}
function WI8(y,z,G){function T(){var Nm=this,DZ=z.apply(Nm,arguments);return DZ&&function(dk){Nm.style.setProperty(y,DZ(dk),G)}}
T._value=z;return T}
function HYm(y){return function(){this.textContent=y}}
function my8(y){return function(){var z=y(this);this.textContent=z==null?"":z}}
function gS(y,z,G,T){this._groups=y;this._parents=z;this._name=G;this._id=T}
function aYd(y){return{type:y}}
function MRp(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function kWZ(){}
function zqv(y,z){var G=new kWZ;if(y instanceof kWZ)y.each(function(dk,gk){G.set(gk,dk)});
else if(Array.isArray(y)){var T=-1,Nm=y.length,DZ;if(z==null)for(;++T<Nm;)G.set(T,y[T]);else for(;++T<Nm;)G.set(z(DZ=y[T],T,y),DZ)}else if(y)for(T in y)G.set(T,y[T]);return G}
function Upr(){}
function smB(y){return function(z){for(var G={},T=0;T<y.length;T++)G[y[T]]=z[T]||"";return G}}
function oTa(y,z){var G=smB(y);return function(T,Nm){return z(G(T),Nm,y)}}
function OYa(y){var z=Object.create(null),G=[];y.forEach(function(T){for(var Nm in T)Nm in z||G.push(z[Nm]=Nm)});
return G}
function nKI(y){function z(dk,gk){function k$(){if(Dn)return Dak;if(Qq)return Qq=!1,yEB;var js,DJ=cb,c5;if(dk.charCodeAt(DJ)===34){for(;cb++<id&&dk.charCodeAt(cb)!==34||dk.charCodeAt(++cb)===34;);(js=cb)>=id?Dn=!0:(c5=dk.charCodeAt(cb++))===10?Qq=!0:c5===13&&(Qq=!0,dk.charCodeAt(cb)===10&&++cb);return dk.slice(DJ+1,js-1).replace(/""/g,'"')}for(;cb<id;){if((c5=dk.charCodeAt(js=cb++))===10)Qq=!0;else if(c5===13)Qq=!0,dk.charCodeAt(cb)===10&&++cb;else if(c5!==DZ)continue;return dk.slice(DJ,js)}return Dn=
!0,dk.slice(DJ,id)}
var Br=[],id=dk.length,cb=0,jD=0,qH,Dn=id<=0,Qq=!1;dk.charCodeAt(id-1)===10&&--id;for(dk.charCodeAt(id-1)===13&&--id;(qH=k$())!==Dak;){for(var qF=[];qH!==yEB&&qH!==Dak;)qF.push(qH),qH=k$();gk&&(qF=gk(qF,jD++))==null||Br.push(qF)}return Br}
function G(dk){return dk.map(T).join(y)}
function T(dk){return dk==null?"":Nm.test(dk)?'"'+dk.replace(/"/g,'""')+'"':dk}
var Nm=new RegExp('["'+y+"\n\r]"),DZ=y.charCodeAt(0);return{parse:function(dk,gk){var k$,Br;dk=z(dk,function(id,cb){if(k$)return k$(id,cb-1);Br=id;k$=gk?oTa(id,gk):smB(id)});
dk.columns=Br||[];return dk},
parseRows:z,format:function(dk,gk){gk==null&&(gk=OYa(dk));return[gk.map(T).join(y)].concat(dk.map(function(k$){return gk.map(function(Br){return T(k$[Br])}).join(y)})).join("\n")},
formatRows:function(dk){return dk.map(G).join("\n")}}}
function jF8(y){if(!y.ok)throw Error("ve`"+y.status+"`"+y.statusText);return y.text()}
function bID(y){return function(z,G,T){arguments.length===2&&typeof G==="function"&&(T=G,G=void 0);return fetch(z,G).then(jF8).then(function(Nm){return y(Nm,T)})}}
function AEI(y,z,G,T){if(isNaN(z)||isNaN(G))return y;var Nm,DZ=y._root;T={data:T};var dk=y._x0,gk=y._y0,k$=y._x1,Br=y._y1,id,cb,jD,qH,Dn;if(!DZ)return y._root=T,y;for(;DZ.length;)if((jD=z>=(id=(dk+k$)/2))?dk=id:k$=id,(qH=G>=(cb=(gk+Br)/2))?gk=cb:Br=cb,Nm=DZ,!(DZ=DZ[Dn=qH<<1|jD]))return Nm[Dn]=T,y;var Qq=+y._x.call(null,DZ.data);var qF=+y._y.call(null,DZ.data);if(z===Qq&&G===qF)return T.next=DZ,Nm?Nm[Dn]=T:y._root=T,y;do Nm=Nm?Nm[Dn]=Array(4):y._root=Array(4),(jD=z>=(id=(dk+k$)/2))?dk=id:k$=id,(qH=
G>=(cb=(gk+Br)/2))?gk=cb:Br=cb;while((Dn=qH<<1|jD)===(jD=(qF>=cb)<<1|Qq>=id));return Nm[jD]=DZ,Nm[Dn]=T,y}
function qB(y,z,G,T,Nm){this.node=y;this.x0=z;this.y0=G;this.x1=T;this.y1=Nm}
function LIt(y){return y[0]}
function PRX(y){return y[1]}
function fYw(y,z,G,T,Nm,DZ){this._x=y;this._y=z;this._x0=G;this._y0=T;this._x1=Nm;this._y1=DZ;this._root=void 0}
function uiJ(y){for(var z={data:y.data},G=z;y=y.next;)G=G.next={data:y.data};return z}
function igp(y,z){if((z=(y=z?y.toExponential(z-1):y.toExponential()).indexOf("e"))<0)return null;var G=y.slice(0,z);return[G.length>1?G[0]+G.slice(2):G,+y.slice(z+1)]}
function Trk(y){return y=igp(Math.abs(y)),y?y[1]:NaN}
function Brc(y,z){return function(G,T){for(var Nm=G.length,DZ=[],dk=0,gk=y[0],k$=0;Nm>0&&gk>0;){k$+gk+1>T&&(gk=Math.max(1,T-k$));DZ.push(G.substring(Nm-=gk,Nm+gk));if((k$+=gk+1)>T)break;gk=y[dk=(dk+1)%y.length]}return DZ.reverse().join(z)}}
function RCH(y){return function(z){return z.replace(/[0-9]/g,function(G){return y[+G]})}}
function KsB(y){return new qYH(y)}
function qYH(y){if(!(z=kYa.exec(y)))throw Error("we`"+y);var z;this.fill=z[1]||" ";this.align=z[2]||">";this.sign=z[3]||"-";this.symbol=z[4]||"";this.zero=!!z[5];this.width=z[6]&&+z[6];this.comma=!!z[7];this.precision=z[8]&&+z[8].slice(1);this.trim=!!z[9];this.type=z[10]||""}
function YIK(y,z){z=igp(y,z);if(!z)return y+"";y=z[0];z=z[1];return z<0?"0."+Array(-z).join("0")+y:y.length>z+1?y.slice(0,z+1)+"."+y.slice(z+1):y+Array(z-y.length+2).join("0")}
function wPK(y){return y}
function UyX(y){function z(gk){function k$(mA){var vu=c5,n8=NC,ho,k_;if(DJ==="c")n8=fn(mA)+n8,mA="";else{mA=+mA;var vH=mA<0;mA=fn(Math.abs(mA),qF);if(js){var xF=mA.length,gj=1,Lg=-1;a:for(;gj<xF;++gj)switch(mA[gj]){case ".":Lg=ho=gj;break;case "0":Lg===0&&(Lg=gj);ho=gj;break;default:if(!+mA[gj])break a;Lg>0&&(Lg=0)}mA=Lg>0?mA.slice(0,Lg)+mA.slice(ho+1):mA}vH&&+mA===0&&(vH=!1);vu=(vH?cb==="("?cb:"-":cb==="-"||cb==="("?"":cb)+vu;n8=(DJ==="s"?GCB[8+VWB/3]:"")+n8+(vH&&cb==="("?")":"");if(eS)for(vH=-1,
ho=mA.length;++vH<ho;)if(k_=mA.charCodeAt(vH),48>k_||k_>57){n8=(k_===46?Nm+mA.slice(vH+1):mA.slice(vH))+n8;mA=mA.slice(0,vH);break}}Qq&&!qH&&(mA=G(mA,Infinity));k_=vu.length+mA.length+n8.length;vH=k_<Dn?Array(Dn-k_+1).join(Br):"";Qq&&qH&&(mA=G(vH+mA,vH.length?Dn-n8.length:Infinity),vH="");switch(id){case "<":mA=vu+mA+n8+vH;break;case "=":mA=vu+vH+mA+n8;break;case "^":mA=vH.slice(0,k_=vH.length>>1)+vu+mA+n8+vH.slice(k_);break;default:mA=vH+vu+mA+n8}return DZ(mA)}
gk=KsB(gk);var Br=gk.fill,id=gk.align,cb=gk.sign,jD=gk.symbol,qH=gk.zero,Dn=gk.width,Qq=gk.comma,qF=gk.precision,js=gk.trim,DJ=gk.type;DJ==="n"?(Qq=!0,DJ="g"):WkZ[DJ]||(qF==null&&(qF=12),js=!0,DJ="g");if(qH||Br==="0"&&id==="=")qH=!0,Br="0",id="=";var c5=jD==="$"?T[0]:jD==="#"&&/[boxX]/.test(DJ)?"0"+DJ.toLowerCase():"",NC=jD==="$"?T[1]:/[%p]/.test(DJ)?dk:"",fn=WkZ[DJ],eS=/[defgprs%]/.test(DJ);qF=qF==null?6:/[gprs]/.test(DJ)?Math.max(1,Math.min(21,qF)):Math.max(0,Math.min(20,qF));k$.toString=function(){return gk+
""};
return k$}
var G=y.grouping&&y.thousands?Brc(y.grouping,y.thousands):wPK,T=y.currency,Nm=y.decimal,DZ=y.numerals?RCH(y.numerals):wPK,dk=y.percent||"%";return{format:z,formatPrefix:function(gk,k$){var Br=z((gk=KsB(gk),gk.type="f",gk));gk=Math.max(-8,Math.min(8,Math.floor(Trk(k$)/3)))*3;var id=Math.pow(10,-gk),cb=GCB[8+gk/3];return function(jD){return Br(id*jD)+cb}}}}
function fP(){this.reset()}
function HIn(y,z,G){var T=y.s=z+G,Nm=T-z;y.t=z-(T-Nm)+(G-Nm)}
function I3k(y){return y>1?VP:y<-1?-VP:Math.asin(y)}
function iYH(){}
function mb6(y){var z=y[0];y=y[1];var G=W2(y);return[G*W2(z),G*q4(z),q4(y)]}
function oKI(y,z){return[y[1]*z[2]-y[2]*z[1],y[2]*z[0]-y[0]*z[2],y[0]*z[1]-y[1]*z[0]]}
function OIJ(y){var z=$pd(y[0]*y[0]+y[1]*y[1]+y[2]*y[2]);y[0]/=z;y[1]/=z;y[2]/=z}
function IfH(){var y=[],z;return{point:function(G,T){z.push([G,T])},
lineStart:function(){y.push(z=[])},
lineEnd:iYH,rejoin:function(){y.length>1&&y.push(y.pop().concat(y.shift()))},
result:function(){var G=y;y=[];z=null;return G}}}
function e$d(y,z,G,T){this.x=y;this.z=z;this.o=G;this.e=T;this.v=!1;this.n=this.p=null}
function $ym(y,z,G,T,Nm){var DZ=[],dk=[];y.forEach(function(cb){if(!((jD=cb.length-1)<=0)){var jD,qH=cb[0],Dn=cb[jD],Qq=qH;if(QG(Qq[0]-Dn[0])<1E-6&&QG(Qq[1]-Dn[1])<1E-6){Nm.lineStart();for(gk=0;gk<jD;++gk)Nm.point((qH=cb[gk])[0],qH[1]);Nm.lineEnd()}else DZ.push(jD=new e$d(qH,cb,null,!0)),dk.push(jD.o=new e$d(qH,null,jD,!1)),DZ.push(jD=new e$d(Dn,cb,null,!1)),dk.push(jD.o=new e$d(Dn,null,jD,!0))}});
if(DZ.length){dk.sort(z);jmj(DZ);jmj(dk);var gk=0;for(y=dk.length;gk<y;++gk)dk[gk].e=G=!G;G=DZ[0];for(var k$;;){for(var Br=G,id=!0;Br.v;)if((Br=Br.n)===G)return;z=Br.z;Nm.lineStart();do{Br.v=Br.o.v=!0;if(Br.e){if(id)for(gk=0,y=z.length;gk<y;++gk)Nm.point((k$=z[gk])[0],k$[1]);else T(Br.x,Br.n.x,1,Nm);Br=Br.n}else{if(id)for(z=Br.p.z,gk=z.length-1;gk>=0;--gk)Nm.point((k$=z[gk])[0],k$[1]);else T(Br.x,Br.p.x,-1,Nm);Br=Br.p}Br=Br.o;z=Br.z;id=!id}while(!Br.v);Nm.lineEnd()}}}
function jmj(y){if(z=y.length){for(var z,G=0,T=y[0],Nm;++G<z;)T.n=Nm=y[G],Nm.p=T,T=Nm;T.n=Nm=y[0];Nm.p=T}}
function eCH(y){return y.length>1}
function p38(y,z){return((y=y.x)[0]<0?y[1]-VP-1E-6:VP-y[1])-((z=z.x)[0]<0?z[1]-VP-1E-6:VP-z[1])}
function ZUk(){}
function Lkk(y){return function(z,G){var T=W2(z),Nm=W2(G);T=y(T*Nm);return[T*Nm*q4(z),T*q4(G)]}}
function VS(y){return function(z,G){var T=$pd(z*z+G*G),Nm=y(T),DZ=q4(Nm);Nm=W2(Nm);return[PJ6(z*DZ,T*Nm),I3k(T&&G*DZ/T)]}}
function xZa(y){var z=0,G=y.children,T=G&&G.length;if(T)for(;--T>=0;)z+=G[T].value;else z=1;y.value=z}
function Tzl(y,z){var G=new WR(y);y=+y.value&&(G.value=y.value);var T,Nm=[G],DZ,dk,gk,k$;for(z==null&&(z=Fr8);T=Nm.pop();)if(y&&(T.value=+T.data.value),(dk=z(T.data))&&(k$=dk.length))for(T.children=Array(k$),gk=k$-1;gk>=0;--gk)Nm.push(DZ=T.children[gk]=new WR(dk[gk])),DZ.parent=T,DZ.depth=T.depth+1;return G.eachBefore(N3t)}
function Fr8(y){return y.children}
function hGk(y){y.data=y.data.data}
function N3t(y){var z=0;do y.height=z;while((y=y.parent)&&y.height<++z)}
function WR(y){this.data=y;this.depth=this.height=0;this.parent=null}
function Nz(y,z,G,T){function Nm(DZ){return y(DZ=new Date(+DZ)),DZ}
Nm.floor=Nm;Nm.ceil=function(DZ){return y(DZ=new Date(DZ-1)),z(DZ,1),y(DZ),DZ};
Nm.round=function(DZ){var dk=Nm(DZ),gk=Nm.ceil(DZ);return DZ-dk<gk-DZ?dk:gk};
Nm.offset=function(DZ,dk){return z(DZ=new Date(+DZ),dk==null?1:Math.floor(dk)),DZ};
Nm.range=function(DZ,dk,gk){var k$=[],Br;DZ=Nm.ceil(DZ);gk=gk==null?1:Math.floor(gk);if(!(DZ<dk&&gk>0))return k$;do k$.push(Br=new Date(+DZ)),z(DZ,gk),y(DZ);while(Br<DZ&&DZ<dk);return k$};
Nm.filter=function(DZ){return Nz(function(dk){if(dk>=dk)for(;y(dk),!DZ(dk);)dk.setTime(dk-1)},function(dk,gk){if(dk>=dk)if(gk<0)for(;++gk<=0;)for(;z(dk,-1),!DZ(dk););
else for(;--gk>=0;)for(;z(dk,1),!DZ(dk););})};
G&&(Nm.count=function(DZ,dk){tRB.setTime(+DZ);dap.setTime(+dk);y(tRB);y(dap);return Math.floor(G(tRB,dap))},Nm.every=function(DZ){DZ=Math.floor(DZ);
return isFinite(DZ)&&DZ>0?DZ>1?Nm.filter(T?function(dk){return T(dk)%DZ===0}:function(dk){return Nm.count(0,dk)%DZ===0}):Nm:null});
return Nm}
function Mx(y){return Nz(function(z){z.setDate(z.getDate()-(z.getDay()+7-y)%7);z.setHours(0,0,0,0)},function(z,G){z.setDate(z.getDate()+G*7)},function(z,G){return(G-z-(G.getTimezoneOffset()-z.getTimezoneOffset())*6E4)/6048E5})}
function Dm(y){return Nz(function(z){z.setUTCDate(z.getUTCDate()-(z.getUTCDay()+7-y)%7);z.setUTCHours(0,0,0,0)},function(z,G){z.setUTCDate(z.getUTCDate()+G*7)},function(z,G){return(G-z)/6048E5})}
function lzX(y){if(0<=y.y&&y.y<100){var z=new Date(-1,y.m,y.d,y.H,y.M,y.S,y.L);z.setFullYear(y.y);return z}return new Date(y.y,y.m,y.d,y.H,y.M,y.S,y.L)}
function pZM(y){if(0<=y.y&&y.y<100){var z=new Date(Date.UTC(-1,y.m,y.d,y.H,y.M,y.S,y.L));z.setUTCFullYear(y.y);return z}return new Date(Date.UTC(y.y,y.m,y.d,y.H,y.M,y.S,y.L))}
function HR(y){return{y:y,m:0,d:1,H:0,M:0,S:0,L:0}}
function csD(y){function z(n8,ho){return function(k_){var vH=[],xF=-1,gj=0,Lg=n8.length,g1,jt;for(k_ instanceof Date||(k_=new Date(+k_));++xF<Lg;)if(n8.charCodeAt(xF)===37){vH.push(n8.slice(gj,xF));(gj=BzC[g1=n8.charAt(++xF)])!=null?g1=n8.charAt(++xF):gj=g1==="e"?" ":"0";if(jt=ho[g1])g1=jt(k_,gj);vH.push(g1);gj=xF+1}vH.push(n8.slice(gj,xF));return vH.join("")}}
function G(n8,ho){return function(k_){var vH=HR(1900);if(T(vH,n8,k_,0)!=k_.length)return null;if("Q"in vH)return new Date(vH.Q);"p"in vH&&(vH.H=vH.H%12+vH.p*12);if("V"in vH){if(vH.V<1||vH.V>53)return null;"w"in vH||(vH.w=1);if("Z"in vH){k_=pZM(HR(vH.y));var xF=k_.getUTCDay();k_=xF>4||xF===0?v2J.ceil(k_):v2J(k_);k_=RqB.offset(k_,(vH.V-1)*7);vH.y=k_.getUTCFullYear();vH.m=k_.getUTCMonth();vH.d=k_.getUTCDate()+(vH.w+6)%7}else k_=ho(HR(vH.y)),xF=k_.getDay(),k_=xF>4||xF===0?JLM.ceil(k_):JLM(k_),k_=kCB.offset(k_,
(vH.V-1)*7),vH.y=k_.getFullYear(),vH.m=k_.getMonth(),vH.d=k_.getDate()+(vH.w+6)%7}else if("W"in vH||"U"in vH)"w"in vH||(vH.w="u"in vH?vH.u%7:"W"in vH?1:0),xF="Z"in vH?pZM(HR(vH.y)).getUTCDay():ho(HR(vH.y)).getDay(),vH.m=0,vH.d="W"in vH?(vH.w+6)%7+vH.W*7-(xF+5)%7:vH.w+vH.U*7-(xF+6)%7;return"Z"in vH?(vH.H+=vH.Z/100|0,vH.M+=vH.Z%100,pZM(vH)):ho(vH)}}
function T(n8,ho,k_,vH){for(var xF=0,gj=ho.length,Lg=k_.length,g1;xF<gj;){if(vH>=Lg)return-1;g1=ho.charCodeAt(xF++);if(g1===37){if(g1=ho.charAt(xF++),g1=vu[g1 in BzC?ho.charAt(xF++):g1],!g1||(vH=g1(n8,k_,vH))<0)return-1}else if(g1!=k_.charCodeAt(vH++))return-1}return vH}
var Nm=y.dateTime,DZ=y.date,dk=y.time,gk=y.periods,k$=y.days,Br=y.shortDays,id=y.months,cb=y.shortMonths,jD=ma(gk),qH=o6(gk),Dn=ma(k$),Qq=o6(k$),qF=ma(Br),js=o6(Br),DJ=ma(id),c5=o6(id),NC=ma(cb),fn=o6(cb),eS={a:function(n8){return Br[n8.getDay()]},
A:function(n8){return k$[n8.getDay()]},
b:function(n8){return cb[n8.getMonth()]},
B:function(n8){return id[n8.getMonth()]},
c:null,d:Ubn,e:Ubn,f:azt,H:MJH,I:DZt,j:fzt,L:iIZ,m:KrX,M:qGH,p:function(n8){return gk[+(n8.getHours()>=12)]},
Q:IHC,s:$bb,S:Z9m,u:tJm,U:dZ8,V:vtt,w:Jsa,W:CyH,x:null,X:null,y:SG8,Y:rsk,Z:Eta,"%":eqK},mA={a:function(n8){return Br[n8.getUTCDay()]},
A:function(n8){return k$[n8.getUTCDay()]},
b:function(n8){return cb[n8.getUTCMonth()]},
B:function(n8){return id[n8.getUTCMonth()]},
c:null,d:pBB,e:pBB,f:X3m,H:gta,I:Qlk,j:zGH,L:xPB,m:sl_,M:nt_,p:function(n8){return gk[+(n8.getUTCHours()>=12)]},
Q:IHC,s:$bb,S:ysm,u:b9_,U:AsH,V:uF_,w:YG_,W:w3H,x:null,X:null,y:GSk,Y:VJH,Z:Wrc,"%":eqK},vu={a:function(n8,ho,k_){return(ho=qF.exec(ho.slice(k_)))?(n8.w=js[ho[0].toLowerCase()],k_+ho[0].length):-1},
A:function(n8,ho,k_){return(ho=Dn.exec(ho.slice(k_)))?(n8.w=Qq[ho[0].toLowerCase()],k_+ho[0].length):-1},
b:function(n8,ho,k_){return(ho=NC.exec(ho.slice(k_)))?(n8.m=fn[ho[0].toLowerCase()],k_+ho[0].length):-1},
B:function(n8,ho,k_){return(ho=DJ.exec(ho.slice(k_)))?(n8.m=c5[ho[0].toLowerCase()],k_+ho[0].length):-1},
c:function(n8,ho,k_){return T(n8,Nm,ho,k_)},
d:Fyj,e:Fyj,f:H9t,H:NfC,I:NfC,j:mZX,L:ot8,m:O9a,M:jl8,p:function(n8,ho,k_){return(ho=jD.exec(ho.slice(k_)))?(n8.p=qH[ho[0].toLowerCase()],k_+ho[0].length):-1},
Q:Lr8,s:Pyt,S:T3c,u:B3m,U:RGH,V:kSa,w:UZt,W:i9m,x:function(n8,ho,k_){return T(n8,DZ,ho,k_)},
X:function(n8,ho,k_){return T(n8,dk,ho,k_)},
y:IzX,Y:$Z8,Z:eGm,"%":pEt};eS.x=z(DZ,eS);eS.X=z(dk,eS);eS.c=z(Nm,eS);mA.x=z(DZ,mA);mA.X=z(dk,mA);mA.c=z(Nm,mA);return{format:function(n8){var ho=z(n8,eS);ho.toString=function(){return n8};
return ho},
parse:function(n8){var ho=G(n8,lzX);ho.toString=function(){return n8};
return ho},
utcFormat:function(n8){var ho=z(n8,mA);ho.toString=function(){return n8};
return ho},
utcParse:function(n8){var ho=G(n8,pZM);ho.toString=function(){return n8};
return ho}}}
function bG(y,z,G){var T=y<0?"-":"";y=(T?-y:y)+"";var Nm=y.length;return T+(Nm<G?Array(G-Nm+1).join(z)+y:y)}
function xSH(y){return y.replace(FzD,"\\$&")}
function ma(y){return new RegExp("^(?:"+y.map(xSH).join("|")+")","i")}
function o6(y){for(var z={},G=-1,T=y.length;++G<T;)z[y[G].toLowerCase()]=G;return z}
function UZt(y,z,G){return(z=af.exec(z.slice(G,G+1)))?(y.w=+z[0],G+z[0].length):-1}
function B3m(y,z,G){return(z=af.exec(z.slice(G,G+1)))?(y.u=+z[0],G+z[0].length):-1}
function RGH(y,z,G){return(z=af.exec(z.slice(G,G+2)))?(y.U=+z[0],G+z[0].length):-1}
function kSa(y,z,G){return(z=af.exec(z.slice(G,G+2)))?(y.V=+z[0],G+z[0].length):-1}
function i9m(y,z,G){return(z=af.exec(z.slice(G,G+2)))?(y.W=+z[0],G+z[0].length):-1}
function $Z8(y,z,G){return(z=af.exec(z.slice(G,G+4)))?(y.y=+z[0],G+z[0].length):-1}
function IzX(y,z,G){return(z=af.exec(z.slice(G,G+2)))?(y.y=+z[0]+(+z[0]>68?1900:2E3),G+z[0].length):-1}
function eGm(y,z,G){return(z=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(z.slice(G,G+6)))?(y.Z=z[1]?0:-(z[2]+(z[3]||"00")),G+z[0].length):-1}
function O9a(y,z,G){return(z=af.exec(z.slice(G,G+2)))?(y.m=z[0]-1,G+z[0].length):-1}
function Fyj(y,z,G){return(z=af.exec(z.slice(G,G+2)))?(y.d=+z[0],G+z[0].length):-1}
function mZX(y,z,G){return(z=af.exec(z.slice(G,G+3)))?(y.m=0,y.d=+z[0],G+z[0].length):-1}
function NfC(y,z,G){return(z=af.exec(z.slice(G,G+2)))?(y.H=+z[0],G+z[0].length):-1}
function jl8(y,z,G){return(z=af.exec(z.slice(G,G+2)))?(y.M=+z[0],G+z[0].length):-1}
function T3c(y,z,G){return(z=af.exec(z.slice(G,G+2)))?(y.S=+z[0],G+z[0].length):-1}
function ot8(y,z,G){return(z=af.exec(z.slice(G,G+3)))?(y.L=+z[0],G+z[0].length):-1}
function H9t(y,z,G){return(z=af.exec(z.slice(G,G+6)))?(y.L=Math.floor(z[0]/1E3),G+z[0].length):-1}
function pEt(y,z,G){return(y=NUH.exec(z.slice(G,G+1)))?G+y[0].length:-1}
function Lr8(y,z,G){return(z=af.exec(z.slice(G)))?(y.Q=+z[0],G+z[0].length):-1}
function Pyt(y,z,G){return(z=af.exec(z.slice(G)))?(y.Q=+z[0]*1E3,G+z[0].length):-1}
function Ubn(y,z){return bG(y.getDate(),z,2)}
function MJH(y,z){return bG(y.getHours(),z,2)}
function DZt(y,z){return bG(y.getHours()%12||12,z,2)}
function fzt(y,z){return bG(1+kCB.count(EL(y),y),z,3)}
function iIZ(y,z){return bG(y.getMilliseconds(),z,3)}
function azt(y,z){return iIZ(y,z)+"000"}
function KrX(y,z){return bG(y.getMonth()+1,z,2)}
function qGH(y,z){return bG(y.getMinutes(),z,2)}
function Z9m(y,z){return bG(y.getSeconds(),z,2)}
function tJm(y){y=y.getDay();return y===0?7:y}
function dZ8(y,z){return bG(hYH.count(EL(y),y),z,2)}
function vtt(y,z){var G=y.getDay();y=G>=4||G===0?Ccw(y):Ccw.ceil(y);return bG(Ccw.count(EL(y),y)+(EL(y).getDay()===4),z,2)}
function Jsa(y){return y.getDay()}
function CyH(y,z){return bG(JLM.count(EL(y),y),z,2)}
function SG8(y,z){return bG(y.getFullYear()%100,z,2)}
function rsk(y,z){return bG(y.getFullYear()%1E4,z,4)}
function Eta(y){y=y.getTimezoneOffset();return(y>0?"-":(y*=-1,"+"))+bG(y/60|0,"0",2)+bG(y%60,"0",2)}
function pBB(y,z){return bG(y.getUTCDate(),z,2)}
function gta(y,z){return bG(y.getUTCHours(),z,2)}
function Qlk(y,z){return bG(y.getUTCHours()%12||12,z,2)}
function zGH(y,z){return bG(1+RqB.count(X0(y),y),z,3)}
function xPB(y,z){return bG(y.getUTCMilliseconds(),z,3)}
function X3m(y,z){return xPB(y,z)+"000"}
function sl_(y,z){return bG(y.getUTCMonth()+1,z,2)}
function nt_(y,z){return bG(y.getUTCMinutes(),z,2)}
function ysm(y,z){return bG(y.getUTCSeconds(),z,2)}
function b9_(y){y=y.getUTCDay();return y===0?7:y}
function AsH(y,z){return bG(ljc.count(X0(y),y),z,2)}
function uF_(y,z){var G=y.getUTCDay();y=G>=4||G===0?SYM(y):SYM.ceil(y);return bG(SYM.count(X0(y),y)+(X0(y).getUTCDay()===4),z,2)}
function YG_(y){return y.getUTCDay()}
function w3H(y,z){return bG(v2J.count(X0(y),y),z,2)}
function GSk(y,z){return bG(y.getUTCFullYear()%100,z,2)}
function VJH(y,z){return bG(y.getUTCFullYear()%1E4,z,4)}
function Wrc(){return"+0000"}
function eqK(){return"%"}
function IHC(y){return+y}
function $bb(y){return Math.floor(+y/1E3)}
function B9(y){for(var z=y.length/6|0,G=Array(z),T=0;T<z;)G[T]="#"+y.slice(T*6,++T*6);return G}
function FG(y){return cWa(y[y.length-1])}
function xfH(y){var z=y.length;return function(G){return y[Math.max(0,Math.min(z-1,Math.floor(G*z)))]}}
function hMI(y){this._context=y}
function lcl(y){this._curve=y}
function cJb(y,z,G){var T=y._x1-y._x0;z-=y._x1;var Nm=(y._y1-y._y0)/(T||z<0&&-0);y=(G-y._y1)/(z||T<0&&-0);return((Nm<0?-1:1)+(y<0?-1:1))*Math.min(Math.abs(Nm),Math.abs(y),.5*Math.abs((Nm*z+y*T)/(T+z)))||0}
function ack(y,z){var G=y._x1-y._x0;return G?(3*(y._y1-y._y0)/G-z)/2:z}
function rLM(y,z,G){var T=y._x0,Nm=y._x1,DZ=y._y1,dk=(Nm-T)/3;y._context.bezierCurveTo(T+dk,y._y0+dk*z,Nm-dk,DZ-dk*G,Nm,DZ)}
function E2p(y){this._context=y}
function MIB(y){this._context=y}
function Ol(y,z,G){this.k=y;this.x=z;this.y=G}
(function(y){y.length===1&&(y=x(y));return{left:function(z,G,T,Nm){T==null&&(T=0);Nm==null&&(Nm=z.length);for(;T<Nm;){var DZ=T+Nm>>>1;y(z[DZ],G)<0?T=DZ+1:Nm=DZ}return T},
right:function(z,G,T,Nm){T==null&&(T=0);Nm==null&&(Nm=z.length);for(;T<Nm;){var DZ=T+Nm>>>1;y(z[DZ],G)>0?Nm=DZ:T=DZ+1}return T}}})(p);
var esa={value:function(){}};
N.prototype=F.prototype={constructor:N,on:function(y,z){var G=this._,T=h(y+"",G),Nm,DZ=-1,dk=T.length;if(arguments.length<2)for(;++DZ<dk;){var gk;if(gk=Nm=(y=T[DZ]).type){a:{gk=G[Nm];for(var k$=0,Br=gk.length;k$<Br;++k$)if((Nm=gk[k$]).name===y.name){Nm=Nm.value;break a}Nm=void 0}gk=Nm}if(gk)return Nm}else{if(z!=null&&typeof z!=="function")throw Error("xe`"+z);for(;++DZ<dk;)if(Nm=(y=T[DZ]).type)G[Nm]=c(G[Nm],y.name,z);else if(z==null)for(Nm in G)G[Nm]=c(G[Nm],y.name,null);return this}},
copy:function(){var y={},z=this._,G;for(G in z)y[G]=z[G].slice();return new N(y)},
call:function(y,z){if((Nm=arguments.length-2)>0)for(var G=Array(Nm),T=0,Nm,DZ;T<Nm;++T)G[T]=arguments[T+2];if(!this._.hasOwnProperty(y))throw Error("re`"+y);DZ=this._[y];T=0;for(Nm=DZ.length;T<Nm;++T)DZ[T].value.apply(z,G)},
apply:function(y,z,G){if(!this._.hasOwnProperty(y))throw Error("re`"+y);y=this._[y];for(var T=0,Nm=y.length;T<Nm;++T)y[T].value.apply(z,G)}};
var G7={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/"},DPK=function(y){return function(){return this.matches(y)}};
if(typeof document!=="undefined"){var jx=document.documentElement;if(!jx.matches){var aj8=jx.webkitMatchesSelector||jx.msMatchesSelector||jx.mozMatchesSelector||jx.oMatchesSelector;DPK=function(y){return function(){return aj8.call(this,y)}}}}var fcZ=DPK;
X.prototype={constructor:X,appendChild:function(y){return this._parent.insertBefore(y,this._next)},
insertBefore:function(y,z){return this._parent.insertBefore(y,z)},
querySelector:function(y){return this._parent.querySelector(y)},
querySelectorAll:function(y){return this._parent.querySelectorAll(y)}};
var ZIb={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(ZIb={mouseenter:"mouseover",mouseleave:"mouseout"}));var ppm=[null];Uv.prototype=FK.prototype={constructor:Uv,select:function(y){typeof y!=="function"&&(y=v(y));for(var z=this._groups,G=z.length,T=Array(G),Nm=0;Nm<G;++Nm)for(var DZ=z[Nm],dk=DZ.length,gk=T[Nm]=Array(dk),k$,Br,id=0;id<dk;++id)(k$=DZ[id])&&(Br=y.call(k$,k$.__data__,id,DZ))&&("__data__"in k$&&(Br.__data__=k$.__data__),gk[id]=Br);return new Uv(T,this._parents)},
filter:function(y){typeof y!=="function"&&(y=fcZ(y));for(var z=this._groups,G=z.length,T=Array(G),Nm=0;Nm<G;++Nm)for(var DZ=z[Nm],dk=DZ.length,gk=T[Nm]=[],k$,Br=0;Br<dk;++Br)(k$=DZ[Br])&&y.call(k$,k$.__data__,Br,DZ)&&gk.push(k$);return new Uv(T,this._parents)},
data:function(y,z){if(!y)return qH=Array(this.size()),Br=-1,this.each(function(DJ){qH[++Br]=DJ}),qH;
var G=z?A:b,T=this._parents,Nm=this._groups;typeof y!=="function"&&(y=Q(y));for(var DZ=Nm.length,dk=Array(DZ),gk=Array(DZ),k$=Array(DZ),Br=0;Br<DZ;++Br){var id=T[Br],cb=Nm[Br],jD=cb.length,qH=y.call(id,id&&id.__data__,Br,T),Dn=qH.length,Qq=gk[Br]=Array(Dn),qF=dk[Br]=Array(Dn);jD=k$[Br]=Array(jD);G(id,cb,Qq,qF,jD,qH,z);cb=id=0;for(var js;id<Dn;++id)if(jD=Qq[id]){for(id>=cb&&(cb=id+1);!(js=qF[cb])&&++cb<Dn;);jD._next=js||null}}dk=new Uv(dk,T);dk._enter=gk;dk._exit=k$;return dk},
exit:function(){return new Uv(this._exit||this._groups.map(C),this._parents)},
merge:function(y){var z=this._groups;y=y._groups;for(var G=z.length,T=Math.min(G,y.length),Nm=Array(G),DZ=0;DZ<T;++DZ)for(var dk=z[DZ],gk=y[DZ],k$=dk.length,Br=Nm[DZ]=Array(k$),id,cb=0;cb<k$;++cb)if(id=dk[cb]||gk[cb])Br[cb]=id;for(;DZ<G;++DZ)Nm[DZ]=z[DZ];return new Uv(Nm,this._parents)},
order:function(){for(var y=this._groups,z=-1,G=y.length;++z<G;)for(var T=y[z],Nm=T.length-1,DZ=T[Nm],dk;--Nm>=0;)if(dk=T[Nm])DZ&&DZ!==dk.nextSibling&&DZ.parentNode.insertBefore(dk,DZ),DZ=dk;return this},
sort:function(y){function z(cb,jD){return cb&&jD?y(cb.__data__,jD.__data__):!cb-!jD}
y||(y=Y);for(var G=this._groups,T=G.length,Nm=Array(T),DZ=0;DZ<T;++DZ){for(var dk=G[DZ],gk=dk.length,k$=Nm[DZ]=Array(gk),Br,id=0;id<gk;++id)if(Br=dk[id])k$[id]=Br;k$.sort(z)}return(new Uv(Nm,this._parents)).order()},
call:function(){var y=arguments[0];arguments[0]=this;y.apply(null,arguments);return this},
nodes:function(){var y=Array(this.size()),z=-1;this.each(function(){y[++z]=this});
return y},
node:function(){for(var y=this._groups,z=0,G=y.length;z<G;++z)for(var T=y[z],Nm=0,DZ=T.length;Nm<DZ;++Nm){var dk=T[Nm];if(dk)return dk}return null},
size:function(){var y=0;this.each(function(){++y});
return y},
empty:function(){return!this.node()},
each:function(y){for(var z=this._groups,G=0,T=z.length;G<T;++G)for(var Nm=z[G],DZ=0,dk=Nm.length,gk;DZ<dk;++DZ)(gk=Nm[DZ])&&y.call(gk,gk.__data__,DZ,Nm);return this},
attr:function(y,z){var G=M(y);if(arguments.length<2){var T=this.node();return G.local?T.getAttributeNS(G.space,G.local):T.getAttribute(G)}return this.each((z==null?G.local?Fw:O:typeof z==="function"?G.local?Kp:pp:G.local?ld:R)(G,z))},
style:function(y,z,G){return arguments.length>1?this.each((z==null?sM:typeof z==="function"?Jz:np)(y,z,G==null?"":G)):Y$(this.node(),y)},
property:function(y,z){return arguments.length>1?this.each((z==null?xB:typeof z==="function"?RJ:qI)(y,z)):this.node()[y]},
text:function(y){return arguments.length?this.each(y==null?Ik:(typeof y==="function"?CZ:vb)(y)):this.node().textContent},
html:function(y){return arguments.length?this.each(y==null?sk:(typeof y==="function"?Xj:Ov)(y)):this.node().innerHTML},
append:function(y){var z=typeof y==="function"?y:t(y);return this.select(function(){return this.appendChild(z.apply(this,arguments))})},
insert:function(y,z){var G=typeof y==="function"?y:t(y),T=z==null?AC:typeof z==="function"?z:v(z);return this.select(function(){return this.insertBefore(G.apply(this,arguments),T.apply(this,arguments)||null)})},
remove:function(){return this.each(Jo)},
clone:function(y){return this.select(y?aJ:Bz)},
datum:function(y){return arguments.length?this.property("__data__",y):this.node().__data__},
on:function(y,z,G){var T=PH(y+""),Nm=T.length,DZ;if(arguments.length<2){var dk=this.node().__on;if(dk)for(var gk=0,k$=dk.length,Br;gk<k$;++gk){var id=0;for(Br=dk[gk];id<Nm;++id)if((DZ=T[id]).type===Br.type&&DZ.name===Br.name)return Br.value}}else{dk=z?nZ:dl;G==null&&(G=!1);for(id=0;id<Nm;++id)this.each(dk(T[id],z,G));return this}},
dispatch:function(y,z){return this.each((typeof z==="function"?fZ:jp)(y,z))}};
var xyt=0;uB.prototype=function(){return new uB}.prototype={constructor:uB,
get:function(y){for(var z=this._;!(z in y);)if(!(y=y.parentNode))return;return y[z]},
set:function(y,z){return y[this._]=z},
remove:function(y){return this._ in y&&delete y[this._]},
toString:function(){return this._}};
var gU=1/.7,FI8=/^#([0-9a-f]{3})$/,Nrc=/^#([0-9a-f]{6})$/,hCm=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),lf_=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),cx8=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),af8=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*\\)$"),
M$H=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Dye=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*\\)$"),tWv={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};
ot(LN,aM,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
ot(r1,Lt,zl(LN,{brighter:function(y){y=y==null?gU:Math.pow(gU,y);return new r1(this.r*y,this.g*y,this.b*y,this.opacity)},
darker:function(y){y=y==null?.7:Math.pow(.7,y);return new r1(this.r*y,this.g*y,this.b*y,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"#"+sU(this.r)+sU(this.g)+sU(this.b)},
toString:function(){var y=this.opacity;y=isNaN(y)?1:Math.max(0,Math.min(1,y));return(y===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))+(y===1?")":", "+y+")")}}));
ot(Pw,md,zl(LN,{brighter:function(y){y=y==null?gU:Math.pow(gU,y);return new Pw(this.h,this.s,this.l*y,this.opacity)},
darker:function(y){y=y==null?.7:Math.pow(.7,y);return new Pw(this.h,this.s,this.l*y,this.opacity)},
rgb:function(){var y=this.h%360+(this.h<0)*360,z=this.l,G=z+(z<.5?z:1-z)*(isNaN(y)||isNaN(this.s)?0:this.s);z=2*z-G;return new r1(Zh(y>=240?y-240:y+120,z,G),Zh(y,z,G),Zh(y<120?y+240:y-120,z,G),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 dbn=Math.PI/180,CJC=180/Math.PI,JEm=4/29,S7=6/29,vKm=3*S7*S7,ffH=S7*S7*S7;ot(Cp,function(y,z,G,T){return arguments.length===1?Tc(y):new Cp(y,z,G,T==null?1:T)},zl(LN,{brighter:function(y){return new Cp(this.l+18*(y==null?1:y),this.a,this.b,this.opacity)},
darker:function(y){return new Cp(this.l-18*(y==null?1:y),this.a,this.b,this.opacity)},
rgb:function(){var y=(this.l+16)/116,z=isNaN(this.a)?y:y+this.a/500,G=isNaN(this.b)?y:y-this.b/200;z=.96422*Hr(z);y=1*Hr(y);G=.82521*Hr(G);return new r1(ZK(3.1338561*z-1.6168667*y-.4906146*G),ZK(-.9787684*z+1.9161415*y+.033454*G),ZK(.0719453*z-.2289914*y+1.4052427*G),this.opacity)}}));
ot(Tm,ak,zl(LN,{brighter:function(y){return new Tm(this.h,this.c,this.l+18*(y==null?1:y),this.opacity)},
darker:function(y){return new Tm(this.h,this.c,this.l-18*(y==null?1:y),this.opacity)},
rgb:function(){return Tc(this).rgb()}}));
var SIb=1.78277*-.29227-.1347134789;ot(re,rl,zl(LN,{brighter:function(y){y=y==null?gU:Math.pow(gU,y);return new re(this.h,this.s,this.l*y,this.opacity)},
darker:function(y){y=y==null?.7:Math.pow(.7,y);return new re(this.h,this.s,this.l*y,this.opacity)},
rgb:function(){var y=isNaN(this.h)?0:(this.h+120)*dbn,z=+this.l,G=isNaN(this.s)?0:this.s*z*(1-z),T=Math.cos(y);y=Math.sin(y);return new r1(255*(z+G*(-.14861*T+1.78277*y)),255*(z+G*(-.29227*T+-.90649*y)),255*(z+1.97294*T*G),this.opacity)}}));
var Qm6=function G(z){function T(DZ,dk){var gk=Nm((DZ=Lt(DZ)).r,(dk=Lt(dk)).r),k$=Nm(DZ.g,dk.g),Br=Nm(DZ.b,dk.b),id=qp(DZ.opacity,dk.opacity);return function(cb){DZ.r=gk(cb);DZ.g=k$(cb);DZ.b=Br(cb);DZ.opacity=id(cb);return DZ+""}}
var Nm=N1(z);T.gamma=G;return T}(1),cWa=Iu(function(z){var G=z.length-1;
return function(T){var Nm=T<=0?T=0:T>=1?(T=1,G-1):Math.floor(T*G),DZ=z[Nm],dk=z[Nm+1];return IR((T-Nm/G)*G,Nm>0?z[Nm-1]:2*DZ-dk,DZ,dk,Nm<G-1?z[Nm+2]:2*dk-DZ)}});
Iu(function(z){var G=z.length;return function(T){var Nm=Math.floor(((T%=1)<0?++T:T)*G);return IR((T-Nm/G)*G,z[(Nm+G-1)%G],z[Nm%G],z[(Nm+1)%G],z[(Nm+2)%G])}});
var Fsw=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,NEk=new RegExp(Fsw.source,"g"),rEn=180/Math.PI,Xyp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},L3,g26,Kyl,Fi6,M78=mM(function(z){if(z==="none")return Xyp;L3||(L3=document.createElement("DIV"),g26=document.documentElement,Kyl=document.defaultView);L3.style.transform=z;z=Kyl.getComputedStyle(g26.appendChild(L3),null).getPropertyValue("transform");g26.removeChild(L3);z=z.slice(7,-1).split(",");return h_(+z[0],+z[1],+z[2],+z[3],
+z[4],+z[5])},"px, ","px)","deg)"),DSH=mM(function(z){if(z==null)return Xyp;
Fi6||(Fi6=document.createElementNS("http://www.w3.org/2000/svg","g"));Fi6.setAttribute("transform",z);if(!(z=Fi6.transform.baseVal.consolidate()))return Xyp;z=z.matrix;return h_(z.a,z.b,z.c,z.d,z.e,z.f)},", ",")",")");
ge(IM);ge(qp);Bc(IM);Bc(qp);RI(IM);var Qpp=RI(qp),rU=0,Y0=0,Gq=0,R$J,wZ,BwJ=0,ch=0,Twm=0,us=typeof performance==="object"&&performance.now?performance:Date,EKk=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(z){setTimeout(z,17)};
TM.prototype=sn.prototype={constructor:TM,restart:function(z,G,T){if(typeof z!=="function")throw new TypeError("ye");T=(T==null?PL():+T)+(G==null?0:+G);this._next||wZ===this||(wZ?wZ._next=this:R$J=this,wZ=this);this._call=z;this._time=T;yA()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,yA())}};
var qEm=F("start","end","interrupt"),ZYt=[],fjc=FK.prototype.constructor,qrv=0,Q7=FK.prototype;gS.prototype=function(z){return FK().transition(z)}.prototype={constructor:gS,
select:function(z){var G=this._name,T=this._id;typeof z!=="function"&&(z=v(z));for(var Nm=this._groups,DZ=Nm.length,dk=Array(DZ),gk=0;gk<DZ;++gk)for(var k$=Nm[gk],Br=k$.length,id=dk[gk]=Array(Br),cb,jD,qH=0;qH<Br;++qH)(cb=k$[qH])&&(jD=z.call(cb,cb.__data__,qH,k$))&&("__data__"in cb&&(jD.__data__=cb.__data__),id[qH]=jD,hdZ(id[qH],G,T,qH,id,QO(cb,T)));return new gS(dk,this._parents,G,T)},
filter:function(z){typeof z!=="function"&&(z=fcZ(z));for(var G=this._groups,T=G.length,Nm=Array(T),DZ=0;DZ<T;++DZ)for(var dk=G[DZ],gk=dk.length,k$=Nm[DZ]=[],Br,id=0;id<gk;++id)(Br=dk[id])&&z.call(Br,Br.__data__,id,dk)&&k$.push(Br);return new gS(Nm,this._parents,this._name,this._id)},
merge:function(z){if(z._id!==this._id)throw Error();var G=this._groups;z=z._groups;for(var T=G.length,Nm=Math.min(T,z.length),DZ=Array(T),dk=0;dk<Nm;++dk)for(var gk=G[dk],k$=z[dk],Br=gk.length,id=DZ[dk]=Array(Br),cb,jD=0;jD<Br;++jD)if(cb=gk[jD]||k$[jD])id[jD]=cb;for(;dk<T;++dk)DZ[dk]=G[dk];return new gS(DZ,this._parents,this._name,this._id)},
selection:function(){return new fjc(this._groups,this._parents)},
transition:function(){for(var z=this._name,G=this._id,T=++qrv,Nm=this._groups,DZ=Nm.length,dk=0;dk<DZ;++dk)for(var gk=Nm[dk],k$=gk.length,Br,id=0;id<k$;++id)if(Br=gk[id]){var cb=QO(Br,G);hdZ(Br,z,T,id,gk,{time:cb.time+cb.delay+cb.duration,delay:0,duration:cb.duration,ease:cb.ease})}return new gS(Nm,this._parents,z,T)},
call:Q7.call,nodes:Q7.nodes,node:Q7.node,size:Q7.size,empty:Q7.empty,each:Q7.each,on:function(z,G){var T=this._id;return arguments.length<2?QO(this.node(),T).on.on(z):this.each(AxH(T,z,G))},
attr:function(z,G){var T=M(z),Nm=T==="transform"?DSH:gKZ;return this.attrTween(z,typeof G==="function"?(T.local?ETa:rx_)(T,Nm,cLm(this,"attr."+z,G)):G==null?(T.local?JxX:vTH)(T):(T.local?SEk:CRe)(T,Nm,G+""))},
attrTween:function(z,G){var T="attr."+z;if(arguments.length<2)return(T=this.tween(T))&&T._value;if(G==null)return this.tween(T,null);if(typeof G!=="function")throw Error();var Nm=M(z);return this.tween(T,(Nm.local?Xpc:gTt)(Nm,G))},
style:function(z,G,T){var Nm=z==="transform"?M78:gKZ;return G==null?this.styleTween(z,YEa(z,Nm)).on("end.style."+z,wp8(z)):this.styleTween(z,typeof G==="function"?V$a(z,Nm,cLm(this,"style."+z,G)):GY8(z,Nm,G+""),T)},
styleTween:function(z,G,T){var Nm="style."+z;if(arguments.length<2)return(Nm=this.tween(Nm))&&Nm._value;if(G==null)return this.tween(Nm,null);if(typeof G!=="function")throw Error();return this.tween(Nm,WI8(z,G,T==null?"":T))},
text:function(z){return this.tween("text",typeof z==="function"?my8(cLm(this,"text",z)):HYm(z==null?"":z+""))},
remove:function(){return this.on("end.remove",uCm(this._id))},
tween:function(z,G){var T=this._id;if(arguments.length<2){T=QO(this.node(),T).tween;for(var Nm=0,DZ=T.length,dk;Nm<DZ;++Nm)if((dk=T[Nm]).name===z)return dk.value;return null}return this.each((G==null?t$X:dyH)(T,z,G))},
delay:function(z){var G=this._id;return arguments.length?this.each((typeof z==="function"?QFk:zCk)(G,z)):QO(this.node(),G).delay},
duration:function(z){var G=this._id;return arguments.length?this.each((typeof z==="function"?sF8:nTk)(G,z)):QO(this.node(),G).duration},
ease:function(z){var G=this._id;return arguments.length?this.each(yxc(G,z)):QO(this.node(),G).ease}};
var zdp={time:null,delay:0,duration:250,ease:function(z){return((z*=2)<=1?z*z*z:(z-=2)*z*z+2)/2}};
FK.prototype.transition=function(z){var G;if(z instanceof gS){var T=z._id;z=z._name}else T=++qrv,(G=zdp).time=PL(),z=z==null?null:z+"";for(var Nm=this._groups,DZ=Nm.length,dk=0;dk<DZ;++dk)for(var gk=Nm[dk],k$=gk.length,Br,id=0;id<k$;++id)if(Br=gk[id]){var cb=Br,jD=z,qH=T,Dn=id,Qq=gk,qF;if(!(qF=G))a:{qF=void 0;for(var js=T;!(qF=Br.__transition)||!(qF=qF[js]);)if(!(Br=Br.parentNode)){qF=(zdp.time=PL(),zdp);break a}}hdZ(cb,jD,qH,Dn,Qq,qF)}return new gS(Nm,this._parents,z,T)};
["e","w"].map(aYd);["n","s"].map(aYd);"n e s w nw ne se sw".split(" ").map(aYd);MRp.prototype=function(){return new MRp}.prototype={constructor:MRp,
moveTo:function(z,G){this._+="M"+(this._x0=this._x1=+z)+","+(this._y0=this._y1=+G)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(z,G){this._+="L"+(this._x1=+z)+","+(this._y1=+G)},
bezierCurveTo:function(z,G,T,Nm,DZ,dk){this._+="C"+ +z+","+ +G+","+ +T+","+ +Nm+","+(this._x1=+DZ)+","+(this._y1=+dk)},
rect:function(z,G,T,Nm){this._+="M"+(this._x0=this._x1=+z)+","+(this._y0=this._y1=+G)+"h"+ +T+"v"+ +Nm+"h"+-T+"Z"},
toString:function(){return this._}};
kWZ.prototype=zqv.prototype={constructor:kWZ,has:function(z){return" "+z in this},
get:function(z){return this[" "+z]},
set:function(z,G){this[" "+z]=G;return this},
remove:function(z){z=" "+z;return z in this&&delete this[z]},
clear:function(){for(var z in this)z[0]===" "&&delete this[z]},
keys:function(){var z=[],G;for(G in this)G[0]===" "&&z.push(G.slice(1));return z},
values:function(){var z=[],G;for(G in this)G[0]===" "&&z.push(this[G]);return z},
entries:function(){var z=[],G;for(G in this)G[0]===" "&&z.push({key:G.slice(1),value:this[G]});return z},
size:function(){var z=0,G;for(G in this)G[0]===" "&&++z;return z},
empty:function(){for(var z in this)if(z[0]===" ")return!1;return!0},
each:function(z){for(var G in this)G[0]===" "&&z(this[G],G.slice(1),this)}};
var fa=zqv.prototype;Upr.prototype=function(z,G){var T=new Upr;if(z instanceof Upr)z.each(function(dk){T.add(dk)});
else if(z){var Nm=-1,DZ=z.length;if(G==null)for(;++Nm<DZ;)T.add(z[Nm]);else for(;++Nm<DZ;)T.add(G(z[Nm],Nm,z))}return T}.prototype={constructor:Upr,
has:fa.has,add:function(z){this[" "+z]=z;return this},
remove:fa.remove,clear:fa.clear,values:fa.keys,size:fa.size,empty:fa.empty,each:fa.each};var yEB={},Dak={},Kzt=nKI(",").parse,qLk=nKI("\t").parse;bID(Kzt);bID(qLk);var Zu=function(z,G,T){G=new fYw(G==null?LIt:G,T==null?PRX:T,NaN,NaN,NaN,NaN);return z==null?G:G.addAll(z)}.prototype=fYw.prototype;
Zu.copy=function(){var z=new fYw(this._x,this._y,this._x0,this._y0,this._x1,this._y1),G=this._root,T,Nm;if(!G)return z;if(!G.length)return z._root=uiJ(G),z;for(T=[{source:G,target:z._root=Array(4)}];G=T.pop();)for(var DZ=0;DZ<4;++DZ)if(Nm=G.source[DZ])Nm.length?T.push({source:Nm,target:G.target[DZ]=Array(4)}):G.target[DZ]=uiJ(Nm);return z};
Zu.add=function(z){var G=+this._x.call(null,z),T=+this._y.call(null,z);return AEI(this.cover(G,T),G,T,z)};
Zu.addAll=function(z){var G,T,Nm=z.length,DZ,dk,gk=Array(Nm),k$=Array(Nm),Br=Infinity,id=Infinity,cb=-Infinity,jD=-Infinity;for(T=0;T<Nm;++T)isNaN(DZ=+this._x.call(null,G=z[T]))||isNaN(dk=+this._y.call(null,G))||(gk[T]=DZ,k$[T]=dk,DZ<Br&&(Br=DZ),DZ>cb&&(cb=DZ),dk<id&&(id=dk),dk>jD&&(jD=dk));cb<Br&&(Br=this._x0,cb=this._x1);jD<id&&(id=this._y0,jD=this._y1);this.cover(Br,id).cover(cb,jD);for(T=0;T<Nm;++T)AEI(this,gk[T],k$[T],z[T]);return this};
Zu.cover=function(z,G){if(isNaN(z=+z)||isNaN(G=+G))return this;var T=this._x0,Nm=this._y0,DZ=this._x1,dk=this._y1;if(isNaN(T))DZ=(T=Math.floor(z))+1,dk=(Nm=Math.floor(G))+1;else if(T>z||z>DZ||Nm>G||G>dk){var gk=DZ-T,k$=this._root,Br;switch(Br=(G<(Nm+dk)/2)<<1|z<(T+DZ)/2){case 0:do{var id=Array(4);id[Br]=k$;k$=id}while(gk*=2,DZ=T+gk,dk=Nm+gk,z>DZ||G>dk);break;case 1:do id=Array(4),id[Br]=k$,k$=id;while(gk*=2,T=DZ-gk,dk=Nm+gk,T>z||G>dk);break;case 2:do id=Array(4),id[Br]=k$,k$=id;while(gk*=2,DZ=T+gk,
Nm=dk-gk,z>DZ||Nm>G);break;case 3:do id=Array(4),id[Br]=k$,k$=id;while(gk*=2,T=DZ-gk,Nm=dk-gk,T>z||Nm>G)}this._root&&this._root.length&&(this._root=k$)}else return this;this._x0=T;this._y0=Nm;this._x1=DZ;this._y1=dk;return this};
Zu.data=function(){var z=[];this.visit(function(G){if(!G.length){do z.push(G.data);while(G=G.next)}});
return z};
Zu.extent=function(z){return arguments.length?this.cover(+z[0][0],+z[0][1]).cover(+z[1][0],+z[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
Zu.find=function(z,G,T){var Nm=this._x0,DZ=this._y0,dk,gk,k$,Br,id=this._x1,cb=this._y1,jD=[],qH=this._root,Dn;qH&&jD.push(new qB(qH,Nm,DZ,id,cb));T==null?T=Infinity:(Nm=z-T,DZ=G-T,id=z+T,cb=G+T,T*=T);for(;Dn=jD.pop();)if(!(!(qH=Dn.node)||(dk=Dn.x0)>id||(gk=Dn.y0)>cb||(k$=Dn.x1)<Nm||(Br=Dn.y1)<DZ))if(qH.length){Dn=(dk+k$)/2;var Qq=(gk+Br)/2;jD.push(new qB(qH[3],Dn,Qq,k$,Br),new qB(qH[2],dk,Qq,Dn,Br),new qB(qH[1],Dn,gk,k$,Qq),new qB(qH[0],dk,gk,Dn,Qq));if(qH=(G>=Qq)<<1|z>=Dn)Dn=jD[jD.length-1],jD[jD.length-
1]=jD[jD.length-1-qH],jD[jD.length-1-qH]=Dn}else if(Dn=z-+this._x.call(null,qH.data),Qq=G-+this._y.call(null,qH.data),Dn=Dn*Dn+Qq*Qq,Dn<T){var qF=Math.sqrt(T=Dn);Nm=z-qF;DZ=G-qF;id=z+qF;cb=G+qF;qF=qH.data}return qF};
Zu.remove=function(z){if(isNaN(Br=+this._x.call(null,z))||isNaN(id=+this._y.call(null,z)))return this;var G,T=this._root,Nm,DZ=this._x0,dk=this._y0,gk=this._x1,k$=this._y1,Br,id,cb,jD,qH,Dn,Qq;if(!T)return this;if(T.length)for(;;){(qH=Br>=(cb=(DZ+gk)/2))?DZ=cb:gk=cb;(Dn=id>=(jD=(dk+k$)/2))?dk=jD:k$=jD;if(!(G=T,T=T[Qq=Dn<<1|qH]))return this;if(!T.length)break;if(G[Qq+1&3]||G[Qq+2&3]||G[Qq+3&3]){var qF=G;var js=Qq}}for(;T.data!==z;)if(!(Nm=T,T=T.next))return this;(z=T.next)&&delete T.next;if(Nm)return z?
Nm.next=z:delete Nm.next,this;if(!G)return this._root=z,this;z?G[Qq]=z:delete G[Qq];(T=G[0]||G[1]||G[2]||G[3])&&T===(G[3]||G[2]||G[1]||G[0])&&!T.length&&(qF?qF[js]=T:this._root=T);return this};
Zu.removeAll=function(z){for(var G=0,T=z.length;G<T;++G)this.remove(z[G]);return this};
Zu.root=function(){return this._root};
Zu.size=function(){var z=0;this.visit(function(G){if(!G.length){do++z;while(G=G.next)}});
return z};
Zu.visit=function(z){var G=[],T,Nm=this._root,DZ,dk,gk,k$,Br;for(Nm&&G.push(new qB(Nm,this._x0,this._y0,this._x1,this._y1));T=G.pop();)if(!z(Nm=T.node,dk=T.x0,gk=T.y0,k$=T.x1,Br=T.y1)&&Nm.length){T=(dk+k$)/2;var id=(gk+Br)/2;(DZ=Nm[3])&&G.push(new qB(DZ,T,id,k$,Br));(DZ=Nm[2])&&G.push(new qB(DZ,dk,id,T,Br));(DZ=Nm[1])&&G.push(new qB(DZ,T,gk,k$,id));(DZ=Nm[0])&&G.push(new qB(DZ,dk,gk,T,id))}};
Zu.visitAfter=function(z){var G=[],T=[],Nm;for(this._root&&G.push(new qB(this._root,this._x0,this._y0,this._x1,this._y1));Nm=G.pop();){var DZ=Nm.node;if(DZ.length){var dk,gk=Nm.x0,k$=Nm.y0,Br=Nm.x1,id=Nm.y1,cb=(gk+Br)/2,jD=(k$+id)/2;(dk=DZ[0])&&G.push(new qB(dk,gk,k$,cb,jD));(dk=DZ[1])&&G.push(new qB(dk,cb,k$,Br,jD));(dk=DZ[2])&&G.push(new qB(dk,gk,jD,cb,id));(dk=DZ[3])&&G.push(new qB(dk,cb,jD,Br,id))}T.push(Nm)}for(;Nm=T.pop();)z(Nm.node,Nm.x0,Nm.y0,Nm.x1,Nm.y1);return this};
Zu.x=function(z){return arguments.length?(this._x=z,this):this._x};
Zu.y=function(z){return arguments.length?(this._y=z,this):this._y};
var kYa=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;KsB.prototype=qYH.prototype;qYH.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 VWB,WkZ={"%":function(z,G){return(z*100).toFixed(G)},
b:function(z){return Math.round(z).toString(2)},
c:function(z){return z+""},
d:function(z){return Math.round(z).toString(10)},
e:function(z,G){return z.toExponential(G)},
f:function(z,G){return z.toFixed(G)},
g:function(z,G){return z.toPrecision(G)},
o:function(z){return Math.round(z).toString(8)},
p:function(z,G){return YIK(z*100,G)},
r:YIK,s:function(z,G){var T=igp(z,G);if(!T)return z+"";var Nm=T[0];T=T[1];T=T-(VWB=Math.max(-8,Math.min(8,Math.floor(T/3)))*3)+1;var DZ=Nm.length;return T===DZ?Nm:T>DZ?Nm+Array(T-DZ+1).join("0"):T>0?Nm.slice(0,T)+"."+Nm.slice(T):"0."+Array(1-T).join("0")+igp(z,Math.max(0,G+T-1))[0]},
X:function(z){return Math.round(z).toString(16).toUpperCase()},
x:function(z){return Math.round(z).toString(16)}},GCB="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),Z0k;
(function(z){return Z0k=UyX(z)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});fP.prototype={constructor:fP,reset:function(){this.s=this.t=0},
add:function(z){HIn(Njp,z,this.t);HIn(this,Njp.s,this.s);this.s?this.t+=Njp.t:this.s=Njp.t},
valueOf:function(){return this.s}};
var Njp=new fP,Qj=Math.PI,VP=Qj/2,Zwm=Qj/4,t7m=Qj*2,spp=Qj/180,QG=Math.abs,n2M=Math.atan,PJ6=Math.atan2,W2=Math.cos,q4=Math.sin,$pd=Math.sqrt;new fP;new fP;new fP;var yLZ=new fP;(function(z,G,T,Nm){return function(DZ){function dk(fn,eS){z(fn,eS)&&DZ.point(fn,eS)}
function gk(fn,eS){qH.point(fn,eS)}
function k$(){NC.point=gk;qH.lineStart()}
function Br(){NC.point=dk;qH.lineEnd()}
function id(fn,eS){c5.push([fn,eS]);Qq.point(fn,eS)}
function cb(){Qq.lineStart();c5=[]}
function jD(){id(c5[0][0],c5[0][1]);Qq.lineEnd();var fn=Qq.clean(),eS=Dn.result(),mA=eS.length,vu;c5.pop();js.push(c5);c5=null;if(mA)if(fn&1){if(mA=eS[0],(eS=mA.length-1)>0){qF||(DZ.polygonStart(),qF=!0);DZ.lineStart();for(fn=0;fn<eS;++fn)DZ.point((vu=mA[fn])[0],vu[1]);DZ.lineEnd()}}else mA>1&&fn&2&&eS.push(eS.pop().concat(eS.shift())),DJ.push(eS.filter(eCH))}
var qH=G(DZ),Dn=IfH(),Qq=G(Dn),qF=!1,js,DJ,c5,NC={point:dk,lineStart:k$,lineEnd:Br,polygonStart:function(){NC.point=id;NC.lineStart=cb;NC.lineEnd=jD;DJ=[];js=[]},
polygonEnd:function(){NC.point=dk;NC.lineStart=k$;NC.lineEnd=Br;var fn=DJ,eS=fn.length;var mA=-1;for(var vu=0,n8,ho;++mA<eS;)vu+=fn[mA].length;for(n8=Array(vu);--eS>=0;)for(ho=fn[eS],mA=ho.length;--mA>=0;)n8[--vu]=ho[mA];DJ=n8;fn=js;eS=Nm[0];vu=Nm[1];var k_=q4(vu);mA=[q4(eS),-W2(eS),0];ho=n8=0;yLZ.reset();k_===1?vu=VP+1E-6:k_===-1&&(vu=-VP-1E-6);k_=0;for(var vH=fn.length;k_<vH;++k_)if(gj=(xF=fn[k_]).length){var xF,gj,Lg=xF[gj-1],g1=Lg[0],jt=Lg[1]/2+Zwm,hR6=q4(jt),tIZ=W2(jt);for(jt=0;jt<gj;++jt,g1=
bUp,hR6=dPB,tIZ=PR,Lg=lOE){var lOE=xF[jt],bUp=lOE[0];PR=lOE[1]/2+Zwm;var dPB=q4(PR),PR=W2(PR),zx=bUp-g1,ALJ=zx>=0?1:-1,u9p=ALJ*zx,cT$=u9p>Qj;hR6*=dPB;yLZ.add(PJ6(hR6*ALJ*q4(u9p),tIZ*PR+hR6*W2(u9p)));n8+=cT$?zx+ALJ*t7m:zx;cT$^g1>=eS^bUp>=eS&&(Lg=oKI(mb6(Lg),mb6(lOE)),OIJ(Lg),g1=oKI(mA,Lg),OIJ(g1),g1=(cT$^zx>=0?-1:1)*I3k(g1[2]),vu>g1||vu===g1&&(Lg[0]||Lg[1]))&&(ho+=cT$^zx>=0?1:-1)}}fn=(n8<-1E-6||n8<1E-6&&yLZ<-1E-6)^ho&1;DJ.length?(qF||(DZ.polygonStart(),qF=!0),$ym(DJ,p38,fn,T,DZ)):fn&&(qF||(DZ.polygonStart(),
qF=!0),DZ.lineStart(),T(null,null,1,DZ),DZ.lineEnd());qF&&(DZ.polygonEnd(),qF=!1);DJ=js=null},
sphere:function(){DZ.polygonStart();DZ.lineStart();T(null,null,1,DZ);DZ.lineEnd();DZ.polygonEnd()}};
return NC}})(function(){return!0},function(z){var G=NaN,T=NaN,Nm=NaN,DZ;
return{lineStart:function(){z.lineStart();DZ=1},
point:function(dk,gk){var k$=dk>0?Qj:-Qj,Br=QG(dk-G);if(QG(Br-Qj)<1E-6)z.point(G,T=(T+gk)/2>0?VP:-VP),z.point(Nm,T),z.lineEnd(),z.lineStart(),z.point(k$,T),z.point(dk,T),DZ=0;else if(Nm!==k$&&Br>=Qj){QG(G-Nm)<1E-6&&(G-=Nm*1E-6);QG(dk-k$)<1E-6&&(dk-=k$*1E-6);Br=G;var id=T,cb=dk,jD,qH,Dn=q4(Br-cb);T=QG(Dn)>1E-6?n2M((q4(id)*(qH=W2(gk))*q4(cb)-q4(gk)*(jD=W2(id))*q4(Br))/(jD*qH*Dn)):(id+gk)/2;z.point(Nm,T);z.lineEnd();z.lineStart();z.point(k$,T);DZ=0}z.point(G=dk,T=gk);Nm=k$},
lineEnd:function(){z.lineEnd();G=T=NaN},
clean:function(){return 2-DZ}}},function(z,G,T,Nm){z==null?(T*=VP,Nm.point(-Qj,T),Nm.point(0,T),Nm.point(Qj,T),Nm.point(Qj,0),Nm.point(Qj,-T),Nm.point(0,-T),Nm.point(-Qj,-T),Nm.point(-Qj,0),Nm.point(-Qj,T)):QG(z[0]-G[0])>1E-6?(z=z[0]<G[0]?Qj:-Qj,T=T*z/2,Nm.point(-z,T),Nm.point(0,T),Nm.point(z,T)):Nm.point(G[0],G[1])},[-Qj,
-VP]);new fP;new fP;new fP;new fP;ZUk.prototype={constructor:ZUk,point:function(z,G){this.stream.point(z,G)},
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()}};
W2(30*spp);(function(z){return function(G){var T=new ZUk,Nm;for(Nm in z)T[Nm]=z[Nm];T.stream=G;return T}})({point:function(z,G){this.stream.point(z*spp,G*spp)}});
Lkk(function(z){return $pd(2/(1+z))}).invert=VS(function(z){return 2*I3k(z/2)});
Lkk(function(z){return(z=z>1?0:z<-1?Qj:Math.acos(z))&&z/q4(z)}).invert=VS(function(z){return z});
$pd(3);VS(n2M);VS(I3k);VS(function(z){return 2*n2M(z)});
WR.prototype=Tzl.prototype={constructor:WR,count:function(){return this.eachAfter(xZa)},
each:function(z){var G,T=[this],Nm;do{var DZ=T.reverse();for(T=[];G=DZ.pop();)if(z(G),G=G.children){var dk=0;for(Nm=G.length;dk<Nm;++dk)T.push(G[dk])}}while(T.length);return this},
eachAfter:function(z){for(var G,T=[this],Nm=[],DZ,dk;G=T.pop();)if(Nm.push(G),G=G.children)for(DZ=0,dk=G.length;DZ<dk;++DZ)T.push(G[DZ]);for(;G=Nm.pop();)z(G);return this},
eachBefore:function(z){for(var G,T=[this],Nm;G=T.pop();)if(z(G),G=G.children)for(Nm=G.length-1;Nm>=0;--Nm)T.push(G[Nm]);return this},
sum:function(z){return this.eachAfter(function(G){for(var T=+z(G.data)||0,Nm=G.children,DZ=Nm&&Nm.length;--DZ>=0;)T+=Nm[DZ].value;G.value=T})},
sort:function(z){return this.eachBefore(function(G){G.children&&G.children.sort(z)})},
path:function(z){var G=this;var T=G;var Nm=z;if(T!==Nm){var DZ=T.ancestors(),dk=Nm.ancestors(),gk=null;T=DZ.pop();for(Nm=dk.pop();T===Nm;)gk=T,T=DZ.pop(),Nm=dk.pop();T=gk}for(Nm=[G];G!==T;)G=G.parent,Nm.push(G);for(G=Nm.length;z!==T;)Nm.splice(G,0,z),z=z.parent;return Nm},
ancestors:function(){for(var z=this,G=[z];z=z.parent;)G.push(z);return G},
links:function(){var z=this,G=[];z.each(function(T){T!==z&&G.push({source:T.parent,target:T})});
return G},
copy:function(){return Tzl(this).eachBefore(hGk)}};
(function(z,G){this._=z;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=G}).prototype=Object.create(WR.prototype);
var tRB=new Date,dap=new Date,vUK=Nz(function(){},function(z,G){z.setTime(+z+G)},function(z,G){return G-z});
vUK.every=function(z){z=Math.floor(z);return isFinite(z)&&z>0?z>1?Nz(function(G){G.setTime(Math.floor(G/z)*z)},function(G,T){G.setTime(+G+T*z)},function(G,T){return(T-G)/z}):vUK:null};
Nz(function(z){z.setTime(Math.floor(z/1E3)*1E3)},function(z,G){z.setTime(+z+G*1E3)},function(z,G){return(G-z)/1E3},function(z){return z.getUTCSeconds()});
Nz(function(z){z.setTime(Math.floor(z/6E4)*6E4)},function(z,G){z.setTime(+z+G*6E4)},function(z,G){return(G-z)/6E4},function(z){return z.getMinutes()});
Nz(function(z){var G=z.getTimezoneOffset()*6E4%36E5;G<0&&(G+=36E5);z.setTime(Math.floor((+z-G)/36E5)*36E5+G)},function(z,G){z.setTime(+z+G*36E5)},function(z,G){return(G-z)/36E5},function(z){return z.getHours()});
var kCB=Nz(function(z){z.setHours(0,0,0,0)},function(z,G){z.setDate(z.getDate()+G)},function(z,G){return(G-z-(G.getTimezoneOffset()-z.getTimezoneOffset())*6E4)/864E5},function(z){return z.getDate()-1}),hYH=Mx(0),JLM=Mx(1);
Mx(2);Mx(3);var Ccw=Mx(4);Mx(5);Mx(6);Nz(function(z){z.setDate(1);z.setHours(0,0,0,0)},function(z,G){z.setMonth(z.getMonth()+G)},function(z,G){return G.getMonth()-z.getMonth()+(G.getFullYear()-z.getFullYear())*12},function(z){return z.getMonth()});
var EL=Nz(function(z){z.setMonth(0,1);z.setHours(0,0,0,0)},function(z,G){z.setFullYear(z.getFullYear()+G)},function(z,G){return G.getFullYear()-z.getFullYear()},function(z){return z.getFullYear()});
EL.every=function(z){return isFinite(z=Math.floor(z))&&z>0?Nz(function(G){G.setFullYear(Math.floor(G.getFullYear()/z)*z);G.setMonth(0,1);G.setHours(0,0,0,0)},function(G,T){G.setFullYear(G.getFullYear()+T*z)}):null};
Nz(function(z){z.setUTCSeconds(0,0)},function(z,G){z.setTime(+z+G*6E4)},function(z,G){return(G-z)/6E4},function(z){return z.getUTCMinutes()});
Nz(function(z){z.setUTCMinutes(0,0,0)},function(z,G){z.setTime(+z+G*36E5)},function(z,G){return(G-z)/36E5},function(z){return z.getUTCHours()});
var RqB=Nz(function(z){z.setUTCHours(0,0,0,0)},function(z,G){z.setUTCDate(z.getUTCDate()+G)},function(z,G){return(G-z)/864E5},function(z){return z.getUTCDate()-1}),ljc=Dm(0),v2J=Dm(1);
Dm(2);Dm(3);var SYM=Dm(4);Dm(5);Dm(6);Nz(function(z){z.setUTCDate(1);z.setUTCHours(0,0,0,0)},function(z,G){z.setUTCMonth(z.getUTCMonth()+G)},function(z,G){return G.getUTCMonth()-z.getUTCMonth()+(G.getUTCFullYear()-z.getUTCFullYear())*12},function(z){return z.getUTCMonth()});
var X0=Nz(function(z){z.setUTCMonth(0,1);z.setUTCHours(0,0,0,0)},function(z,G){z.setUTCFullYear(z.getUTCFullYear()+G)},function(z,G){return G.getUTCFullYear()-z.getUTCFullYear()},function(z){return z.getUTCFullYear()});
X0.every=function(z){return isFinite(z=Math.floor(z))&&z>0?Nz(function(G){G.setUTCFullYear(Math.floor(G.getUTCFullYear()/z)*z);G.setUTCMonth(0,1);G.setUTCHours(0,0,0,0)},function(G,T){G.setUTCFullYear(G.getUTCFullYear()+T*z)}):null};
var BzC={"-":"",_:" ",0:"0"},af=/^\s*\d+/,NUH=/^%/,FzD=/[\\^$*+?|[\]().{}]/g,aOZ;(function(z){aOZ=csD(z);sCj=aOZ.utcFormat;nwl=aOZ.utcParse;return aOZ})({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||sCj("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||nwl("%Y-%m-%dT%H:%M:%S.%LZ");B9("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
B9("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");B9("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");B9("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");B9("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");B9("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");B9("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
B9("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");B9("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");B9("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");B9("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");B9("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var dS8=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(B9);FG(dS8);var vbe=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(B9);FG(vbe);var JWH=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(B9);FG(JWH);var C78=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(B9);
FG(C78);var SLa=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(B9);FG(SLa);var rWm=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(B9);FG(rWm);var Eb_=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(B9);FG(Eb_);var XEX=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(B9);FG(XEX);var gbH=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(B9);FG(gbH);var Qhk=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(B9);FG(Qhk);var zYe=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(B9);FG(zYe);var shH=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(B9);FG(shH);var nbm=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(B9);FG(nbm);var yW8=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(B9);FG(yW8);var b0m=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(B9);FG(b0m);var AWc=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(B9);FG(AWc);var u08=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(B9);FG(u08);var YLa=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(B9);FG(YLa);var wE8=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(B9);FG(wE8);var Gx8=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(B9);FG(Gx8);var V7m=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(B9);FG(V7m);var WzX=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(B9);FG(WzX);var H0e=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(B9);FG(H0e);var mSH=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(B9);FG(mSH);var obm=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(B9);FG(obm);var O0e=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(B9);FG(O0e);var jh8=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(B9);FG(jh8);Qpp(rl(300,.5,0),rl(-240,.5,1));Qpp(rl(-100,.75,.35),rl(80,1.5,.8));Qpp(rl(260,.75,.35),rl(80,1.5,.8));rl();Lt();xfH(B9("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
xfH(B9("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
xfH(B9("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
xfH(B9("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
hMI.prototype={lineStart:function(){this._point=0},
lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(z,G){z=+z;G=+G;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(z,G):this._context.moveTo(z,G);break;case 1:this._point=2;default:this._context.lineTo(z,G)}}};
(function(z){function G(T){return new lcl(z(T))}
G._curve=z;return G})(function(z){return new hMI(z)});
lcl.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(z,G){this._curve.point(G*Math.sin(z),G*-Math.cos(z))}};
E2p.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:rLM(this,this._t0,ack(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(z,G){var T=NaN;z=+z;G=+G;if(z!==this._x1||G!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(z,G):this._context.moveTo(z,G);break;case 1:this._point=2;break;case 2:this._point=3;rLM(this,ack(this,T=cJb(this,z,G)),T);break;default:rLM(this,this._t0,T=cJb(this,z,G))}this._x0=this._x1;this._x1=z;this._y0=this._y1;this._y1=G;this._t0=T}}};
(function(z){this._context=new MIB(z)}.prototype=Object.create(E2p.prototype)).point=function(z,G){E2p.prototype.point.call(this,G,z)};
MIB.prototype={moveTo:function(z,G){this._context.moveTo(G,z)},
closePath:function(){this._context.closePath()},
lineTo:function(z,G){this._context.lineTo(G,z)},
bezierCurveTo:function(z,G,T,Nm,DZ,dk){this._context.bezierCurveTo(G,z,Nm,T,dk,DZ)}};
Ol.prototype={constructor:Ol,scale:function(z){return z===1?this:new Ol(this.k*z,this.x,this.y)},
translate:function(z,G){return z===0&G===0?this:new Ol(this.k,this.x+this.k*z,this.y+this.k*G)},
apply:function(z){return[z[0]*this.k+this.x,z[1]*this.k+this.y]},
invert:function(z){return[(z[0]-this.x)/this.k,(z[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new Ol(1,0,0);cxE=aM;G7.svg=G7.svg;G7.xhtml=G7.xhtml;G7.xlink=G7.xlink;G7.xml=G7.xml;G7.xmlns=G7.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 yRK="hammer_"+(Math.random()*1E6|0),bVI=function(){var p=document||document;if(!p[yRK]){var x=function(){(function(F,N,h,c){function M(Cp,ud,Hr){return setTimeout(C(Cp,Hr),ud)}
function f(Cp,ud,Hr){return Array.isArray(Cp)?(K(Cp,Hr[ud],Hr),!0):!1}
function K(Cp,ud,Hr){var ZK;if(Cp)if(Cp.forEach)Cp.forEach(ud,Hr);else if(Cp.length!==c){var lm=0;for(ZK=Cp.length;lm<ZK;lm++)ud.call(Hr,Cp[lm],lm,Cp)}else for(lm in Cp)Cp.hasOwnProperty(lm)&&ud.call(Hr,Cp[lm],lm,Cp)}
function t(Cp,ud,Hr){for(var ZK=Object.keys(ud),lm=0,hC=ZK.length;lm<hC;lm++)if(!Hr||Hr&&Cp[ZK[lm]]===c)Cp[ZK[lm]]=ud[ZK[lm]];return Cp}
function d(Cp,ud){return t(Cp,ud,!0)}
function v(Cp,ud,Hr){ud=ud.prototype;var ZK=Cp.prototype=Object.create(ud);ZK.constructor=Cp;ZK._super=ud;Hr&&t(ZK,Hr)}
function C(Cp,ud){return function(){return Cp.apply(ud,arguments)}}
function X(Cp,ud){return typeof Cp=="function"?Cp.apply(ud?ud[0]||c:c,ud):Cp}
function Q(Cp,ud,Hr){K(A(ud),function(ZK){Cp.addEventListener(ZK,Hr,!1)})}
function b(Cp,ud,Hr){K(A(ud),function(ZK){Cp.removeEventListener(ZK,Hr,!1)})}
function A(Cp){return Cp.trim().split(/\s+/g)}
function Y(Cp,ud,Hr){if(Cp.indexOf&&!Hr)return Cp.indexOf(ud);for(var ZK=0,lm=Cp.length;ZK<lm;ZK++)if(Hr&&Cp[ZK][Hr]==ud||!Hr&&Cp[ZK]===ud)return ZK;return-1}
function O(Cp,ud,Hr){for(var ZK=[],lm=[],hC=0,ak=Cp.length;hC<ak;hC++){var Tm=ud?Cp[hC][ud]:Cp[hC];Y(lm,Tm)<0&&ZK.push(Cp[hC]);lm[hC]=Tm}Hr&&(ZK=ud?ZK.sort(function(rl,re){return rl[ud]>re[ud]}):ZK.sort());
return ZK}
function Fw(Cp,ud){for(var Hr,ZK=ud[0].toUpperCase()+ud.slice(1),lm=0,hC=fZ.length;lm<hC;lm++)if(Hr=(Hr=fZ[lm])?Hr+ZK:ud,Hr in Cp)return Hr;return c}
function R(Cp,ud){var Hr=this;this.manager=Cp;this.callback=ud;this.element=Cp.element;this.target=Cp.options.inputTarget;this.domHandler=function(ZK){X(Cp.options.enable,[Cp])&&Hr.handler(ZK)};
this.evEl&&Q(this.element,this.evEl,this.domHandler);this.evTarget&&Q(this.target,this.evTarget,this.domHandler);this.evWin&&Q(F,this.evWin,this.domHandler)}
function ld(Cp){var ud;bk?ud=qI:kQ?ud=RJ:aM?ud=Ik:ud=xB;return new ud(Cp,pp)}
function pp(Cp,ud,Hr){var ZK=Hr.pointers.length,lm=Hr.changedPointers.length,hC=ud&1&&ZK-lm===0;Hr.isFirst=!!hC;Hr.isFinal=!!(ud&12&&ZK-lm===0);hC&&(Cp.session={});Hr.eventType=ud;ud=Cp.session;ZK=Hr.pointers;lm=ZK.length;ud.firstInput||(ud.firstInput=Kp(Hr));lm>1&&!ud.firstMultiple?ud.firstMultiple=Kp(Hr):lm===1&&(ud.firstMultiple=!1);hC=ud.firstInput;var ak=(lm=ud.firstMultiple)?lm.center:hC.center,Tm=Hr.center=sM(ZK);Hr.timeStamp=ot();Hr.deltaTime=Hr.timeStamp-hC.timeStamp;Hr.angle=Y$(ak,Tm);Hr.distance=
Jz(ak,Tm);hC=Hr.center;ak=ud.offsetDelta||{};Tm=ud.prevDelta||{};var rl=ud.prevInput||{};if(Hr.eventType===1||rl.eventType===4)Tm=ud.prevDelta={x:rl.deltaX||0,y:rl.deltaY||0},ak=ud.offsetDelta={x:hC.x,y:hC.y};Hr.deltaX=Tm.x+(hC.x-ak.x);Hr.deltaY=Tm.y+(hC.y-ak.y);Hr.offsetDirection=np(Hr.deltaX,Hr.deltaY);lm?(hC=lm.pointers,hC=Jz(ZK[0],ZK[1],Lt)/Jz(hC[0],hC[1],Lt)):hC=1;Hr.scale=hC;lm?(lm=lm.pointers,ZK=Y$(ZK[1],ZK[0],Lt)-Y$(lm[1],lm[0],Lt)):ZK=0;Hr.rotation=ZK;ak=ud.lastInterval||Hr;ZK=Hr.timeStamp-
ak.timeStamp;Hr.eventType!=8&&(ZK>25||ak.velocity===c)?(hC=ak.deltaX-Hr.deltaX,ak=ak.deltaY-Hr.deltaY,Tm=hC/ZK||0,rl=ak/ZK||0,ZK=Tm,lm=rl,Tm=uB(Tm)>uB(rl)?Tm:rl,hC=np(hC,ak),ud.lastInterval=Hr):(Tm=ak.velocity,ZK=ak.velocityX,lm=ak.velocityY,hC=ak.direction);Hr.velocity=Tm;Hr.velocityX=ZK;Hr.velocityY=lm;Hr.direction=hC;ud=Cp.element;a:{for(ZK=Hr.srcEvent.target;ZK;){if(ZK==ud){ZK=!0;break a}ZK=ZK.parentNode}ZK=!1}ZK&&(ud=Hr.srcEvent.target);Hr.target=ud;Cp.emit("hammer.input",Hr);Cp.recognize(Hr);
Cp.session.prevInput=Hr}
function Kp(Cp){for(var ud=[],Hr=0;Hr<Cp.pointers.length;Hr++)ud[Hr]={clientX:FK(Cp.pointers[Hr].clientX),clientY:FK(Cp.pointers[Hr].clientY)};return{timeStamp:ot(),pointers:ud,center:sM(ud),deltaX:Cp.deltaX,deltaY:Cp.deltaY}}
function sM(Cp){var ud=Cp.length;if(ud===1)return{x:FK(Cp[0].clientX),y:FK(Cp[0].clientY)};for(var Hr=0,ZK=0,lm=0;lm<ud;lm++)Hr+=Cp[lm].clientX,ZK+=Cp[lm].clientY;return{x:FK(Hr/ud),y:FK(ZK/ud)}}
function np(Cp,ud){return Cp===ud?1:uB(Cp)>=uB(ud)?Cp>0?2:4:ud>0?8:16}
function Jz(Cp,ud,Hr){Hr||(Hr=gs);var ZK=ud[Hr[0]]-Cp[Hr[0]];Cp=ud[Hr[1]]-Cp[Hr[1]];return Math.sqrt(ZK*ZK+Cp*Cp)}
function Y$(Cp,ud,Hr){Hr||(Hr=gs);return Math.atan2(ud[Hr[1]]-Cp[Hr[1]],ud[Hr[0]]-Cp[Hr[0]])*180/Math.PI}
function xB(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;R.apply(this,arguments)}
function qI(){this.evEl=Kg;this.evWin=md;R.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function RJ(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};R.apply(this,arguments)}
function Ik(){R.apply(this,arguments);var Cp=C(this.handler,this);this.touch=new RJ(this.manager,Cp);this.mouse=new xB(this.manager,Cp)}
function vb(Cp,ud){this.manager=Cp;this.set(ud)}
function CZ(Cp){if(Cp.indexOf("none")>-1)return"none";var ud=Cp.indexOf("pan-x")>-1,Hr=Cp.indexOf("pan-y")>-1;return ud&&Hr?"pan-x pan-y":ud||Hr?ud?"pan-x":"pan-y":Cp.indexOf("manipulation")>-1?"manipulation":"auto"}
function sk(Cp){this.id=zl++;this.manager=null;this.options=d(Cp||{},this.defaults);Cp=this.options.enable;this.options.enable=Cp===c?!0:Cp;this.state=1;this.simultaneous={};this.requireFail=[]}
function Ov(Cp){return Cp==16?"down":Cp==8?"up":Cp==2?"left":Cp==4?"right":""}
function Xj(Cp,ud){return(ud=ud.manager)?ud.get(Cp):Cp}
function AC(){sk.apply(this,arguments)}
function Jo(){AC.apply(this,arguments);this.pY=this.pX=null}
function Bz(){AC.apply(this,arguments)}
function aJ(){sk.apply(this,arguments);this._input=this._timer=null}
function he(){AC.apply(this,arguments)}
function Bb(){AC.apply(this,arguments)}
function PH(){sk.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function dl(Cp,ud){ud=ud||{};var Hr=ud.recognizers;ud.recognizers=Hr===c?dl.defaults.preset:Hr;return new nZ(Cp,ud)}
function nZ(Cp,ud){ud=ud||{};this.options=d(ud,dl.defaults);this.options.inputTarget=this.options.inputTarget||Cp;this.handlers={};this.session={};this.recognizers=[];this.element=Cp;this.input=ld(this);this.touchAction=new vb(this,this.options.touchAction);ep(this,!0);K(ud.recognizers,function(Hr){var ZK=this.add(new Hr[0](Hr[1]));Hr[2]&&ZK.recognizeWith(Hr[2]);Hr[3]&&ZK.requireFailure(Hr[2])},this)}
function ep(Cp,ud){var Hr=Cp.element;K(Cp.options.cssProps,function(ZK,lm){Hr.style[Fw(Hr.style,lm)]=ud?ZK:""})}
function jp(Cp,ud){var Hr=N.createEvent("Event");Hr.initEvent(Cp,!0,!0);Hr.gesture=ud;ud.target.dispatchEvent(Hr)}
var fZ=" webkit moz MS ms o".split(" "),Uv=N.createElement("div"),FK=Math.round,uB=Math.abs,ot=Date.now,zl=1,LN=/mobile|tablet|ip(ad|hone|od)|android/i,aM="ontouchstart"in F,bk=Fw(F,"PointerEvent")!==c,kQ=aM&&LN.test(navigator.userAgent),gs=["x","y"],Lt=["clientX","clientY"];R.prototype={handler:function(){},
destroy:function(){this.evEl&&b(this.element,this.evEl,this.domHandler);this.evTarget&&b(this.target,this.evTarget,this.domHandler);this.evWin&&b(F,this.evWin,this.domHandler)}};
var r1={mousedown:1,mousemove:2,mouseup:4};v(xB,R,{handler:function(Cp){var ud=r1[Cp.type];ud&1&&Cp.button===0&&(this.pressed=!0);ud&2&&Cp.which!==1&&(ud=4);this.pressed&&this.allow&&(ud&4&&(this.pressed=!1),this.callback(this.manager,ud,{pointers:[Cp],changedPointers:[Cp],pointerType:"mouse",srcEvent:Cp}))}});
var sU={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},PQ={2:"touch",3:"pen",4:"mouse",5:"kinect"},Kg="pointerdown",md="pointermove pointerup pointercancel";F.MSPointerEvent&&(Kg="MSPointerDown",md="MSPointerMove MSPointerUp MSPointerCancel");v(qI,R,{handler:function(Cp){var ud=this.store,Hr=!1,ZK=Cp.type.toLowerCase().replace("ms","");ZK=sU[ZK];var lm=PQ[Cp.pointerType]||Cp.pointerType;ZK&1&&(Cp.button===0||lm=="touch")?ud.push(Cp):ZK&12&&(Hr=!0);var hC=Y(ud,Cp.pointerId,"pointerId");
hC<0||(ud[hC]=Cp,this.callback(this.manager,ZK,{pointers:ud,changedPointers:[Cp],pointerType:lm,srcEvent:Cp}),Hr&&ud.splice(hC,1))}});
var Pw={touchstart:1,touchmove:2,touchend:4,touchcancel:8};v(RJ,R,{handler:function(Cp){var ud=Pw[Cp.type];var Hr=Array.prototype.slice.call(Cp.touches,0);var ZK=this.targetIds;if(ud&3&&Hr.length===1)ZK[Hr[0].identifier]=!0,ZK=[Hr,Hr];else{var lm,hC=Array.prototype.slice.call(Cp.targetTouches,0),ak=Array.prototype.slice.call(Cp.changedTouches,0),Tm=[];if(ud===1)for(Hr=0,lm=hC.length;Hr<lm;Hr++)ZK[hC[Hr].identifier]=!0;Hr=0;for(lm=ak.length;Hr<lm;Hr++)ZK[ak[Hr].identifier]&&Tm.push(ak[Hr]),ud&12&&
delete ZK[ak[Hr].identifier];ZK=Tm.length?[O(hC.concat(Tm),"identifier",!0),Tm]:void 0}ZK&&this.callback(this.manager,ud,{pointers:ZK[0],changedPointers:ZK[1],pointerType:"touch",srcEvent:Cp})}});
v(Ik,R,{handler:function(Cp,ud,Hr){var ZK=Hr.pointerType=="mouse";if(Hr.pointerType=="touch")this.mouse.allow=!1;else if(ZK&&!this.mouse.allow)return;ud&12&&(this.mouse.allow=!0);this.callback(Cp,ud,Hr)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var Zh=Fw(Uv.style,"touchAction"),Tc=Zh!==c;vb.prototype={set:function(Cp){Cp=="compute"&&(Cp=this.compute());Tc&&(this.manager.element.style[Zh]=Cp);this.actions=Cp.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var Cp=[];K(this.manager.recognizers,function(ud){X(ud.options.enable,[ud])&&(Cp=Cp.concat(ud.getTouchAction()))});
return CZ(Cp.join(" "))},
preventDefaults:function(Cp){if(!Tc){var ud=Cp.srcEvent;Cp=Cp.offsetDirection;if(this.manager.session.prevented)ud.preventDefault();else{var Hr=this.actions,ZK=Hr.indexOf("none")>-1,lm=Hr.indexOf("pan-y")>-1;Hr=Hr.indexOf("pan-x")>-1;if(ZK||lm&&Hr||lm&&Cp&6||Hr&&Cp&24)return this.preventSrc(ud)}}},
preventSrc:function(Cp){this.manager.session.prevented=!0;Cp.preventDefault()}};
sk.prototype={defaults:{},set:function(Cp){t(this.options,Cp);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(Cp){if(f(Cp,"recognizeWith",this))return this;var ud=this.simultaneous;Cp=Xj(Cp,this);ud[Cp.id]||(ud[Cp.id]=Cp,Cp.recognizeWith(this));return this},
dropRecognizeWith:function(Cp){if(f(Cp,"dropRecognizeWith",this))return this;Cp=Xj(Cp,this);delete this.simultaneous[Cp.id];return this},
requireFailure:function(Cp){if(f(Cp,"requireFailure",this))return this;var ud=this.requireFail;Cp=Xj(Cp,this);Y(ud,Cp)===-1&&(ud.push(Cp),Cp.requireFailure(this));return this},
dropRequireFailure:function(Cp){if(f(Cp,"dropRequireFailure",this))return this;Cp=Xj(Cp,this);Cp=Y(this.requireFail,Cp);Cp>-1&&this.requireFail.splice(Cp,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(Cp){return!!this.simultaneous[Cp.id]},
emit:function(Cp){function ud(lm){Hr.manager.emit(Hr.options.event+(lm?ZK&16?"cancel":ZK&8?"end":ZK&4?"move":ZK&2?"start":"":""),Cp)}
var Hr=this,ZK=this.state;ZK<8&&ud(!0);ud();ZK>=8&&ud(!0)},
tryEmit:function(Cp){if(this.canEmit())return this.emit(Cp);this.state=32},
canEmit:function(){for(var Cp=0;Cp<this.requireFail.length;Cp++)if(!(this.requireFail[Cp].state&33))return!1;return!0},
recognize:function(Cp){Cp=t({},Cp);X(this.options.enable,[this,Cp])?(this.state&56&&(this.state=1),this.state=this.process(Cp),this.state&30&&this.tryEmit(Cp)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
v(AC,sk,{defaults:{pointers:1},attrTest:function(Cp){var ud=this.options.pointers;return ud===0||Cp.pointers.length===ud},
process:function(Cp){var ud=this.state,Hr=Cp.eventType,ZK=ud&6;Cp=this.attrTest(Cp);return ZK&&(Hr&8||!Cp)?ud|16:ZK||Cp?Hr&4?ud|8:ud&2?ud|4:2:32}});
v(Jo,AC,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var Cp=this.options.direction;if(Cp===30)return["none"];var ud=[];Cp&6&&ud.push("pan-y");Cp&24&&ud.push("pan-x");return ud},
directionTest:function(Cp){var ud=this.options,Hr=!0,ZK=Cp.distance,lm=Cp.direction,hC=Cp.deltaX,ak=Cp.deltaY;lm&ud.direction||(ud.direction&6?(lm=hC===0?1:hC<0?2:4,Hr=hC!=this.pX,ZK=Math.abs(Cp.deltaX)):(lm=ak===0?1:ak<0?8:16,Hr=ak!=this.pY,ZK=Math.abs(Cp.deltaY)));Cp.direction=lm;return Hr&&ZK>ud.threshold&&lm&ud.direction},
attrTest:function(Cp){return AC.prototype.attrTest.call(this,Cp)&&(this.state&2||!(this.state&2)&&this.directionTest(Cp))},
emit:function(Cp){this.pX=Cp.deltaX;this.pY=Cp.deltaY;var ud=Ov(Cp.direction);ud&&this.manager.emit(this.options.event+ud,Cp);this._super.emit.call(this,Cp)}});
v(Bz,AC,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Cp){return this._super.attrTest.call(this,Cp)&&(Math.abs(Cp.scale-1)>this.options.threshold||this.state&2)},
emit:function(Cp){this._super.emit.call(this,Cp);Cp.scale!==1&&this.manager.emit(this.options.event+(Cp.scale<1?"in":"out"),Cp)}});
v(aJ,sk,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(Cp){var ud=this.options,Hr=Cp.pointers.length===ud.pointers,ZK=Cp.distance<ud.threshold,lm=Cp.deltaTime>ud.time;this._input=Cp;if(!ZK||!Hr||Cp.eventType&12&&!lm)this.reset();else if(Cp.eventType&1)this.reset(),this._timer=M(function(){this.state=8;this.tryEmit()},ud.time,this);
else if(Cp.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(Cp){this.state===8&&(Cp&&Cp.eventType&4?this.manager.emit(this.options.event+"up",Cp):(this._input.timeStamp=ot(),this.manager.emit(this.options.event,this._input)))}});
v(he,AC,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(Cp){return this._super.attrTest.call(this,Cp)&&(Math.abs(Cp.rotation)>this.options.threshold||this.state&2)}});
v(Bb,AC,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return Jo.prototype.getTouchAction.call(this)},
attrTest:function(Cp){var ud=this.options.direction;if(ud&30)var Hr=Cp.velocity;else ud&6?Hr=Cp.velocityX:ud&24&&(Hr=Cp.velocityY);return this._super.attrTest.call(this,Cp)&&ud&Cp.direction&&uB(Hr)>this.options.velocity&&Cp.eventType&4},
emit:function(Cp){var ud=Ov(Cp.direction);ud&&this.manager.emit(this.options.event+ud,Cp);this.manager.emit(this.options.event,Cp)}});
v(PH,sk,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(Cp){var ud=this.options,Hr=Cp.pointers.length===ud.pointers,ZK=Cp.distance<ud.threshold,lm=Cp.deltaTime<ud.time;this.reset();if(Cp.eventType&1&&this.count===0)return this.failTimeout();if(ZK&&lm&&Hr){if(Cp.eventType!=4)return this.failTimeout();Hr=this.pTime?Cp.timeStamp-this.pTime<ud.interval:!0;ZK=!this.pCenter||Jz(this.pCenter,Cp.center)<ud.posThreshold;this.pTime=Cp.timeStamp;this.pCenter=Cp.center;ZK&&Hr?this.count+=1:this.count=1;this._input=Cp;if(this.count%ud.taps===0)return this.hasRequireFailures()?
(this._timer=M(function(){this.state=8;this.tryEmit()},ud.interval,this),2):8}return 32},
failTimeout:function(){this._timer=M(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))}});
dl.VERSION="2.0.2";dl.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[he,{enable:!1}],[Bz,{enable:!1},["rotate"]],[Bb,{direction:6}],[Jo,{direction:6},["swipe"]],[PH],[PH,{event:"doubletap",taps:2},["tap"]],[aJ]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};nZ.prototype={set:function(Cp){t(this.options,Cp);return this},
stop:function(Cp){this.session.stopped=Cp?2:1},
recognize:function(Cp){var ud=this.session;if(!ud.stopped){this.touchAction.preventDefaults(Cp);var Hr=this.recognizers,ZK=ud.curRecognizer;if(!ZK||ZK&&ZK.state&8)ZK=ud.curRecognizer=null;for(var lm=0,hC=Hr.length;lm<hC;lm++){var ak=Hr[lm];ud.stopped===2||ZK&&ak!=ZK&&!ak.canRecognizeWith(ZK)?ak.reset():ak.recognize(Cp);!ZK&&ak.state&14&&(ZK=ud.curRecognizer=ak)}}},
get:function(Cp){if(Cp instanceof sk)return Cp;for(var ud=this.recognizers,Hr=0;Hr<ud.length;Hr++)if(ud[Hr].options.event==Cp)return ud[Hr];return null},
add:function(Cp){if(f(Cp,"add",this))return this;var ud=this.get(Cp.options.event);ud&&this.remove(ud);this.recognizers.push(Cp);Cp.manager=this;this.touchAction.update();return Cp},
remove:function(Cp){if(f(Cp,"remove",this))return this;var ud=this.recognizers;Cp=this.get(Cp);ud.splice(Y(ud,Cp),1);this.touchAction.update();return this},
on:function(Cp,ud){var Hr=this.handlers;K(A(Cp),function(ZK){Hr[ZK]=Hr[ZK]||[];Hr[ZK].push(ud)});
return this},
off:function(Cp,ud){var Hr=this.handlers;K(A(Cp),function(ZK){ud?Hr[ZK].splice(Y(Hr[ZK],ud),1):delete Hr[ZK]});
return this},
emit:function(Cp,ud){this.options.domEvents&&jp(Cp,ud);var Hr=this.handlers[Cp]&&this.handlers[Cp].slice();if(Hr&&Hr.length){ud.type=Cp;ud.preventDefault=function(){ud.srcEvent.preventDefault()};
Cp=0;for(var ZK=Hr.length;Cp<ZK;Cp++)Hr[Cp](ud)}},
destroy:function(){this.element&&ep(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
t(dl,{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:nZ,Input:R,TouchAction:vb,Recognizer:sk,AttrRecognizer:AC,Tap:PH,Pan:Jo,Swipe:Bb,Pinch:Bz,Rotate:he,Press:aJ,on:Q,off:b,each:K,merge:d,extend:t,inherit:v,bindFn:C,prefixed:Fw});
F[h]=dl})(window,document,"Hammer");
return window.Hammer}.call({});
x.DOCUMENT=p;p[yRK]=x}return p[yRK]};/*

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

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

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

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
var Hx,MZK,Dgk;Hx=Element.prototype;MZK=Hx.matches||Hx.matchesSelector||Hx.mozMatchesSelector||Hx.msMatchesSelector||Hx.oMatchesSelector||Hx.webkitMatchesSelector;Dgk=function(){};
_.KYB=function(p){var x=fXB,F=[];return x._collectTabbableNodes(p,F)?x._sortByTabIndex(F):F};
_.l=Dgk.prototype;_.l._normalizedTabIndex=function(p){return(MZK.call(p,"input, select, textarea, button, object")?MZK.call(p,":not([disabled])"):MZK.call(p,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(p=p.getAttribute("tabindex")||0,Number(p)):-1};
_.l._collectTabbableNodes=function(p,x){if(p.nodeType!==Node.ELEMENT_NODE||!this._isVisible(p))return!1;var F=this._normalizedTabIndex(p),N=F>0;F>=0&&x.push(p);if(p.localName==="content"||p.localName==="slot")F=_.Ef(p).getDistributedNodes();else{var h;F=((h=_.Ef(p).shadowRoot)!=null?h:_.Ef(p.root||p)).children}for(p=0;p<F.length;p++)N=this._collectTabbableNodes(F[p],x)||N;return N};
_.l._isVisible=function(p){var x=p.style;return x.visibility!=="hidden"&&x.display!=="none"?(x=window.getComputedStyle(p),x.visibility!=="hidden"&&x.display!=="none"):!1};
_.l._sortByTabIndex=function(p){var x=p.length;if(x<2)return p;var F=Math.ceil(x/2);x=this._sortByTabIndex(p.slice(0,F));p=this._sortByTabIndex(p.slice(F));return this._mergeSortByTabIndex(x,p)};
_.l._mergeSortByTabIndex=function(p,x){for(var F=[];p.length>0&&x.length>0;)this._hasLowerTabOrder(p[0],x[0])?F.push(x.shift()):F.push(p.shift());return F.concat(p,x)};
_.l._hasLowerTabOrder=function(p,x){p=Math.max(p.tabIndex,0);x=Math.max(x.tabIndex,0);return p===0||x===0?x>p:p>x};
var fXB=new Dgk;var qgv;var ZPJ;_.qu({_template:function(){if(ZPJ!==void 0)return ZPJ;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;qgv===void 0&&(qgv=document.createElement("template"));var N=qgv;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return ZPJ=p},
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&&_.Ef(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Ef(this.parentNode).removeChild(this)},
_onTransitionend:function(p){p&&p.target===this&&this.complete()},
_openedChanged:function(p){p?this.prepare():(p=window.getComputedStyle(this),p.transitionDuration!=="0s"&&p.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 mE=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;Qd(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)};
mE.prototype._bringOverlayAtIndexToFront=function(p){var x=this._overlays[p];if(x){var F=this._overlays.length-1,N=this._overlays[F];N&&this._shouldBeBehindOverlay(x,N)&&F--;if(!(p>=F)){N=Math.max(this._getZ(_.tZ6(this)),this._minimumZ);for(this._getZ(x)<=N&&this._applyOverlayZ(x,N);p<F;)this._overlays[p]=this._overlays[p+1],p++;this._overlays[F]=x}}};
mE.prototype.addOverlay=function(p){var x=this._overlays.indexOf(p);if(x>=0)this._bringOverlayAtIndexToFront(x);else{x=this._overlays.length;var F=this._overlays[x-1],N=Math.max(this._getZ(F),this._minimumZ),h=this._getZ(p);F&&this._shouldBeBehindOverlay(p,F)&&(this._applyOverlayZ(F,N),x--,N=Math.max(this._getZ(this._overlays[x-1]),this._minimumZ));h<=N&&this._applyOverlayZ(p,N);this._overlays.splice(x,0,p)}this.trackBackdrop()};
mE.prototype.removeOverlay=function(p){p=this._overlays.indexOf(p);p!==-1&&(this._overlays.splice(p,1),this.trackBackdrop())};
_.tZ6=function(p){return p._overlays[p._overlays.length-1]};
_.l=mE.prototype;_.l.trackBackdrop=function(){var p=this._overlayWithBackdrop();if(p||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(p)-1,this.backdropElement.opened=!!p,this.backdropElement.prepare()};
_.l._overlayWithBackdrop=function(){for(var p=this._overlays.length-1;p>=0;p--)if(this._overlays[p].withBackdrop)return this._overlays[p]};
_.l._getZ=function(p){var x=this._minimumZ;if(p){var F,N,h=Number(((F=p.hostElement)!=null?F:p).style.zIndex||window.getComputedStyle((N=p.hostElement)!=null?N:p).zIndex);h===h&&(x=h)}return x};
_.l._setZ=function(p,x){var F;((F=p.hostElement)!=null?F:p).style.zIndex=x};
_.l._applyOverlayZ=function(p,x){this._setZ(p,x+2)};
_.l._overlayInPath=function(p){p=p||[];for(var x=0;x<p.length;x++){var F=void 0;if(((F=p[x].polymerController)!=null?F:p[x])._manager===this)return p[x]}};
_.l._onCaptureClick=function(p){var x=this._overlays.length-1;if(x!==-1)for(var F=_.Ef(p).path,N,h;(N=this._overlays[x])&&this._overlayInPath(F)!==((h=N.hostElement)!=null?h:N);)if(N._onCaptureClick(p),N.allowClickThrough)x--;else break};
_.l._onCaptureFocus=function(p){var x=_.tZ6(this);x&&x._onCaptureFocus(p)};
_.l._onCaptureKeyDown=function(p){var x=_.tZ6(this);x&&(_.C7.keyboardEventMatchesKeys(p,"esc")?x._onCaptureEsc(p):_.C7.keyboardEventMatchesKeys(p,"tab")&&x._onCaptureTab(p))};
_.l._shouldBeBehindOverlay=function(p,x){return!p.alwaysOnTop&&x.alwaysOnTop&&!x.contains(p)};
_.R8.Object.defineProperties(mE.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 p=document.activeElement;p&&p instanceof Element!==!1||(p=document.body);for(;p.root&&_.Ef(p.root).activeElement;)p=_.Ef(p.root).activeElement;return p}}});
_.oS=new mE;var ds6=0,v9$=0,JkJ=null,CEE=[],Xb=["wheel","mousewheel","DOMMouseScroll"],SPE;_.S("web_no_lock_on_touchstart_killswitch")&&(Xb.push("touchstart"),Xb.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;_.Oq={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:_.oS},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var p;return this._focusedChild||_.Ef((p=this.hostElement)!=null?p:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var p;return _.KYB((p=this.hostElement)!=null?p: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 p;this._observer=_.Ef((p=this.hostElement)!=null?p:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var p;_.Ef((p=this.hostElement)!=null?p:this).unobserveNodes(this._observer)}this._observer=null;for(var x in this.__rafs)this.__rafs[x]!==null&&cancelAnimationFrame(this.__rafs[x]);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(p){this.fire("iron-overlay-canceled",p,{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 p;((p=this.hostElement)!=null?p:this).style.outline="none";var x;((x=this.hostElement)!=null?x:this).style.display="none"}},
_openedChanged:function(p){if(p){var x;((x=this.hostElement)!=null?x:this).removeAttribute("aria-hidden")}else{var F;((F=this.hostElement)!=null?F: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 p;if(this.withBackdrop&&!((p=this.hostElement)!=null?p:this).hasAttribute("tabindex")){var x;((x=this.hostElement)!=null?x:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var F;((F=this.hostElement)!=null?F: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 p;((p=this.hostElement)!=null?p:this).style.display="none";var x;((x=this.hostElement)!=null?x:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var p,x;((p=this.hostElement)!=null?p:this).style.transition=((x=this.hostElement)!=null?x:this).style.webkitTransition="none";var F,N;((F=this.hostElement)!=null?F:this).style.transform=((N=this.hostElement)!=null?N:this).style.webkitTransform="none";var h;((h=this.hostElement)!=null?h:this).style.display=""},
_finishPositioning:function(){var p;((p=this.hostElement)!=null?p:this).style.display="none";this.scrollTop=this.scrollTop;var x,F;((x=this.hostElement)!=null?x:this).style.transition=((F=this.hostElement)!=null?F:this).style.webkitTransition="";var N,h;((N=this.hostElement)!=null?N:this).style.transform=((h=this.hostElement)!=null?h:this).style.webkitTransform="";var c;((c=this.hostElement)!=null?c:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var p=this._manager.deepActiveElement,x;if(!(x=p===document.body))a:{for(;p;p=p.assignedSlot||p.parentNode||p.host)if(p===this){x=!0;break a}x=!1}x&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(p){this.noCancelOnOutsideClick||this.cancel(p)},
_onCaptureFocus:function(p){if(this.withBackdrop){var x=_.Ef(p).path;x.indexOf(this)===-1?(p.stopPropagation(),this._applyFocus()):this._focusedChild=x[0]}},
_onCaptureEsc:function(p){this.noCancelOnEscKey||this.cancel(p)},
_onCaptureTab:function(p){if(this.withBackdrop){this.__ensureFirstLastFocusables();var x=p.shiftKey,F=x?this.__firstFocusableNode:this.__lastFocusableNode;x=x?this.__lastFocusableNode:this.__firstFocusableNode;if(F===x)F=!0;else{var N=this._manager.deepActiveElement;F=N===F||N===this}F&&(p.preventDefault(),this._focusedChild=x,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 p=this._focusableNodes;this.__firstFocusableNode=p[0];this.__lastFocusableNode=p[p.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(p,x){var F=this.__rafs;F[p]!==null&&cancelAnimationFrame(F[p]);F[p]=requestAnimationFrame(function(){F[p]=null;x.call(this)}.bind(this))},
__updateScrollObservers:function(p,x,F){p&&x&&this.__isValidScrollAction(F)?(F==="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),SPE=_._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()):(p=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),p!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(p,1),SPE=_._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(Al)for(var p=this;p;)p.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&p.host&&this.__rootNodes.push(p),p=p.host||p.assignedSlot||p.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(x){x.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(p){p.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(p){return p==="lock"||p==="refit"||p==="cancel"},
__onCaptureScroll:function(p){if(!(this.__isAnimating||_.Ef(p).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(p)}},
__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)}};
_.jC=[aXk,_.n7,_.Oq];_.qu({_template:function(){if(lXl!==void 0)return lXl;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;hfk===void 0&&(hfk=document.createElement("template"));var N=hfk;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return lXl=p},
is:"tp-yt-iron-dropdown",behaviors:[_.SC,_.C7,_.jC,k7l],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 p=_.Ef(this.$.content).getDistributedNodes(),x=0,F=p.length;x<F;x++)if(p[x].nodeType===Node.ELEMENT_NODE)return p[x]},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(),_.Oq._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.Oq._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.Oq._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var p=this.containedElement,x=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),F=0;F<x.length;F++)x[F].node=p;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(p){this._readied&&(p?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var p=this.focusTarget||this.containedElement;p&&this.opened&&!this.noAutoFocus?p.focus():_.Oq._applyFocus.apply(this,arguments)}});var dgv;var vVB;/*

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 Jfm=new _.gB({type:"iconset"});
_.qu({_template:function(){if(vVB!==void 0)return vVB;var p=document.createElement("template");_.g(p,"\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");p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;dgv===void 0&&(dgv=document.createElement("template"));
var N=dgv;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return vVB=p},
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(p){p=(p||"").split(":");this._iconName=p.pop();this._iconsetName=p.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&&_.Ef(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=Jfm.byKey(this._iconsetName)){var p=this._iconset.applyIcon(this,this._iconName,this.theme);p&&p.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,_.Ef(this.root).appendChild(this._img)}});var CaD;var SgB;_.qu({_template:function(){if(SgB!==void 0)return SgB;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);
var x=p.content,F=x.insertBefore;CaD===void 0&&(CaD=document.createElement("template"));var N=CaD;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return SgB=p},
is:"tp-yt-iron-input",behaviors:[_.zR],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(){_.Wx.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Ef(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Ef(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 p=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":p=/[0-9.,e-]/}return p},_bindValueChanged:function(p,x){x&&(p===void 0?x.value=null:p!==x.value&&(this.inputElement.value=p),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:p}))},
_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(p){var x=p.keyCode==19||p.keyCode==20||p.keyCode==45||p.keyCode==46||p.keyCode==144||p.keyCode==145||p.keyCode>32&&p.keyCode<41||p.keyCode>111&&p.keyCode<124;return!(p.keyCode==8||p.keyCode==9||p.keyCode==13||p.keyCode==27)&&!(p.charCode==0&&x)},
_onKeypress:function(p){if(this.allowedPattern||this.inputElement.type==="number"){var x=this._patternRegExp;if(x&&!(p.metaKey||p.ctrlKey||p.altKey)){this._patternAlreadyChecked=!0;var F=String.fromCharCode(p.charCode);this._isPrintable(p)&&!x.test(F)&&(p.preventDefault(),this._announceInvalidCharacter("Invalid character "+F+" not entered."))}}},
_checkPatternValidity:function(){var p=this._patternRegExp;if(!p)return!0;for(var x=0;x<this.inputElement.value.length;x++)if(!p.test(this.inputElement.value[x]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var p=this.inputElement.checkValidity();p&&(this.required&&this.bindValue===""?p=!1:this.hasValidator()&&(p=_.zR.validate.call(this,this.bindValue)));this.invalid=!p;this.fire("iron-input-validate");return p},
_announceInvalidCharacter:function(p){this.fire("iron-announce",{text:p})},
_computeValue:function(p){return p}});var rfB;var EVm;var X$B=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),gVj=X$B&&X$B[1]>=8;
_.qu({_template:function(){if(EVm!==void 0)return EVm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;rfB===void 0&&(rfB=document.createElement("template"));var N=rfB;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return EVm=p},
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:[qtB,_.n7,_.RxJ,VVj],_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 _.Ef(_.Ef(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var p=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,p-this._physicalCount)},set _virtualStart(p){p=this._clamp(p,0,this._maxVirtualStart);this.grid&&(p-=p%this._itemsPerRow);this._virtualStartVal=p},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(p){p%=this._physicalCount;p<0&&(p=this._physicalCount+p);this.grid&&(p-=p%this._itemsPerRow);this._physicalStartVal=p},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(p){this._physicalCountVal=p},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 p=this._firstVisibleIndexVal;if(p==null){var x=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
p=this._iterateItems(function(F,N){x+=this._getPhysicalSizeIncrement(F);if(x>this._scrollPosition)return this.grid?N-N%this._itemsPerRow:N;if(this.grid&&this._virtualCount-1===N)return N-N%this._itemsPerRow})||0}return p},
get lastVisibleIndex(){var p=this._lastVisibleIndexVal;if(p==null){if(this.grid)p=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var x=this._physicalTop+this._scrollOffset;this._iterateItems(function(F,N){x<this._scrollBottom&&(p=N);x+=this._getPhysicalSizeIncrement(F)})}this._lastVisibleIndexVal=p}return p},
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,_.Z$);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(p){this.style.webkitOverflowScrolling=p===this?"touch":"";this.style.overflowY=p===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.Z$)},
updateViewportBoundaries:function(){var p=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(p["padding-top"],10);this._isRTL=p.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var p=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),x=p-this._scrollPosition,F=x>=0;this._scrollPosition=p;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(x)>this._physicalSize&&this._physicalSize>0?(x-=this._scrollOffset,F=Math.round(x/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=F,this._physicalStart+=F,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(p=this._getReusables(F),F?(this._physicalTop=p.physicalTop,this._virtualStart+=p.indexes.length,this._physicalStart+=p.indexes.length):(this._virtualStart=this._virtualStart-p.indexes.length,this._physicalStart=this._physicalStart-p.indexes.length),this._update(p.indexes,F?null:p.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),nN))},
_getReusables:function(p){var x=[],F=this._hiddenContentSize*this._ratio,N=this._virtualStart,h=this._virtualEnd,c=this._physicalCount,M=this._physicalTop+this._scrollOffset;var f=this._physicalBottom+this._scrollOffset;var K=this._scrollPosition,t=this._scrollBottom;if(p){var d=this._physicalStart;f=K-M}else d=this._physicalEnd,f-=t;for(;;){var v=this._getPhysicalSizeIncrement(d);f-=v;if(x.length>=c||f<=F)break;if(p){if(h+x.length+1>=this._virtualCount)break;if(M+v>=K-this._scrollOffset)break;x.push(d);
M+=v;d=(d+1)%c}else{if(N-x.length<=0)break;if(M+this._physicalSize-v<=t)break;x.push(d);M-=v;d=d===0?c-1:d-1}}return{indexes:x,physicalTop:M-this._scrollOffset}},
_update:function(p,x){if(!(p&&p.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(p);this._updateMetrics(p);if(x)for(;x.length;)p=x.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(p);this._positionItems();this._updateScrollerSize()}},
_createPool:function(p){this._ensureTemplatized();var x,F=Array(p);for(x=0;x<p;x++){var N=this.stamp(null);F[x]=N.root.querySelector("*");this._itemsParent.appendChild(N.root)}return F},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(p){p=this._clamp(this._physicalCount+p,3,this._virtualCount-this._virtualStart);p=this._convertIndexToCompleteRow(p);if(this.grid){var x=p%this._itemsPerRow;x&&p-x<=this._physicalCount&&(p+=this._itemsPerRow);p-=x}p-=this._physicalCount;x=Math.round(this._physicalCount*.5);if(!(p<0)){if(p>0){x=window.performance.now();[].push.apply(this._physicalItems,this._createPool(p));for(var F=0;F<p;F++)this._physicalSizes.push(0);this._physicalCount+=p;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=p);this._update();this._templateCost=(window.performance.now()-x)/p;x=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||x===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,x)),J$D):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,x),nN))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var p=this._getReusables(!0);this._physicalTop=p.physicalTop;this._virtualStart+=p.indexes.length;this._physicalStart+=p.indexes.length;this._update(p.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 p={__key__:!0};p[this.as]=!0;p[this.indexAs]=!0;p[this.selectedAs]=!0;p.tabIndex=!0;this._instanceProps=p;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(p,x){typeof x!=="undefined"&&(this.notifyResize(),_.DQ(),p&&this._updateGridMetrics())},
_itemsChanged:function(p){if(p.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,
_.Z$);else if(p.path==="items.splices"){this._adjustVirtualIndex(p.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(p.value.indexSplices.some(function(F){return F.addedCount>0||F.removed.length>0})){var x=this._getActiveElement();
this.contains(x)&&x.blur()}p=p.value.indexSplices.some(function(F){return F.index+F.addedCount>=this._virtualStart&&F.index<=this._virtualEnd},this);
this._isClientFull()&&!p||this._debounce("_render",this._render,_.Z$)}else p.path!=="items.length"&&this._forwardItemPath(p.path,p.value)},
_forwardItemPath:function(p,x){p=p.slice(6);var F=p.indexOf(".");F===-1&&(F=p.length);var N,h=this.modelForElement(this._offscreenFocusedItem),c=parseInt(p.substring(0,F),10);if(N=this._isIndexRendered(c)){var M=this._getPhysicalIndex(c);var f=this.modelForElement(this._physicalItems[M])}else h&&(f=h);f&&f[this.indexAs]===c&&(p=p.substring(F+1),p=this.as+(p?"."+p:""),f._setPendingPropertyOrPath(p,x,!1,!0),f._flushProperties&&f._flushProperties(),N&&(this._updateMetrics([M]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(p){p.forEach(function(x){x.removed.forEach(this._removeItem,this);x.index<this._virtualStart&&(x=Math.max(x.addedCount-x.removed.length,x.index-this._virtualStart),this._virtualStart+=x,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=x))},this)},
_removeItem:function(p){this.$.selector.deselect(p);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===p&&this._removeFocusedItem()},
_iterateItems:function(p,x){var F,N;if(arguments.length===2&&x)for(N=0;N<x.length;N++){var h=x[N];var c=this._computeVidx(h);if((F=p.call(this,h,c))!=null)return F}else{h=this._physicalStart;for(c=this._virtualStart;h<this._physicalCount;h++,c++)if((F=p.call(this,h,c))!=null)return F;for(h=0;h<this._physicalStart;h++,c++)if((F=p.call(this,h,c))!=null)return F}},
_computeVidx:function(p){return p>=this._physicalStart?this._virtualStart+(p-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+p},
_assignModels:function(p){this._iterateItems(function(x,F){var N=this._physicalItems[x],h=this.items&&this.items[F];if(h!=null){var c=this.modelForElement(N);c.__key__=null;this._forwardProperty(c,this.as,h);this._forwardProperty(c,this.selectedAs,this.$.selector.isSelected(h));this._forwardProperty(c,this.indexAs,F);this._forwardProperty(c,"tabIndex",this._focusedVirtualIndex===F?0:-1);this._physicalIndexForKey[c.__key__]=x;c._flushProperties&&c._flushProperties(!0);N.removeAttribute("hidden")}else N.setAttribute("hidden",
"")},p)},
_updateMetrics:function(p){_.DQ();var x=0,F=0,N=this._physicalAverageCount,h=this._physicalAverage;this._iterateItems(function(c){F+=this._physicalSizes[c];this._physicalSizes[c]=this._physicalItems[c].offsetHeight;x+=this._physicalSizes[c];this._physicalAverageCount+=this._physicalSizes[c]?1:0},p);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(F=this._itemsPerRow===1?F:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+x-F,this._itemsPerRow=1);this._physicalAverageCount!==N&&(this._physicalAverage=Math.round((h*N+x)/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 p=this._physicalTop;if(this.grid){var x=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(F,N){var h=Math.floor(N%this._itemsPerRow*this._itemWidth+x);this._isRTL&&(h*=-1);this.translate3d(h+"px",p+"px",0,this._physicalItems[F]);this._shouldRenderNextRow(N)&&(p+=this._rowHeight)})}else this._iterateItems(function(F){this.translate3d(0,p+"px",0,this._physicalItems[F]);
p+=this._physicalSizes[F]})},
_getPhysicalSizeIncrement:function(p){return this.grid?this._computeVidx(p)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[p]},
_shouldRenderNextRow:function(p){return p%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var p=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(p!==0){this._physicalTop=this._physicalTop-p;var x=this._scrollPosition;!gVj&&x>0&&this._resetScrollPosition(x-p)}},
_resetScrollPosition:function(p){this.scrollTarget&&p>=0&&(this._scrollPosition=this._scrollTop=p)},
_updateScrollerSize:function(p){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((p=(p=(p=p||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(p){return this.scrollToIndex(this.items.indexOf(p))},
scrollToIndex:function(p){if(!(typeof p!=="number"||p<0||p>this.items.length-1)&&(_.DQ(),this._physicalCount!==0)){p=this._clamp(p,0,this._virtualCount-1);if(!this._isIndexRendered(p)||p>=this._maxVirtualStart)this._virtualStart=this.grid?p-this._itemsPerRow*2:p-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var x=this._physicalStart,F=this._virtualStart,N=0,h=this._hiddenContentSize;F<p&&
N<=h;)N+=this._getPhysicalSizeIncrement(x),x=(x+1)%this._physicalCount,F++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+N);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)},_.Z$)},
selectItem:function(p){return this.selectIndex(this.items.indexOf(p))},
selectIndex:function(p){if(!(p<0||p>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(p)){var x=this.modelForElement(this._physicalItems[this._getPhysicalIndex(p)]);x&&(x[this.selectedAs]=!0);this.updateSizeForIndex(p)}this.$.selector.selectIndex(p)}},
deselectItem:function(p){return this.deselectIndex(this.items.indexOf(p))},
deselectIndex:function(p){p<0||p>=this._virtualCount||(this._isIndexRendered(p)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(p)])[this.selectedAs]=!1,this.updateSizeForIndex(p)),this.$.selector.deselectIndex(p))},
toggleSelectionForItem:function(p){return this.toggleSelectionForIndex(this.items.indexOf(p))},
toggleSelectionForIndex:function(p){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(p):this.$.selector.isSelected(this.items[p]))?this.deselectIndex(p):this.selectIndex(p)},
clearSelection:function(){this._iterateItems(function(p){this.modelForElement(this._physicalItems[p])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(p){(p?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(p){var x=this.modelForElement(p.target);if(x){var F=_.Ef(p).path[0];p=this._getActiveElement();var N=this._physicalItems[this._getPhysicalIndex(x[this.indexAs])];if(F.localName!=="input"&&F.localName!=="button"&&F.localName!=="select"){F=x.tabIndex;x.tabIndex=-100;var h=p?p.tabIndex:-1;x.tabIndex=F;p&&N!==p&&N.contains(p)&&h!==-100||this.toggleSelectionForItem(x[this.as])}}},
_multiSelectionChanged:function(p){this.clearSelection();this.$.selector.multi=p},
updateSizeForItem:function(p){return this.updateSizeForIndex(this.items.indexOf(p))},
updateSizeForIndex:function(p){if(!this._isIndexRendered(p))return null;this._updateMetrics([this._getPhysicalIndex(p)]);this._positionItems();return null},
_manageFocus:function(){var p=this._focusedVirtualIndex;p>=0&&p<this._virtualCount?this._isIndexRendered(p)?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(p){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(p/this._itemsPerRow)*this._itemsPerRow:p},
_isIndexRendered:function(p){return p>=this._virtualStart&&p<=this._virtualEnd},
_isIndexVisible:function(p){return p>=this.firstVisibleIndex&&p<=this.lastVisibleIndex},
_getPhysicalIndex:function(p){return(this._physicalStart+(p-this._virtualStart))%this._physicalCount},
focusItem:function(p){this._focusPhysicalItem(p)},
_focusPhysicalItem:function(p){if(!(p<0||p>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(p)||this.scrollToIndex(p);var x=this._physicalItems[this._getPhysicalIndex(p)],F=this.modelForElement(x),N;F.tabIndex=-100;x.tabIndex===-100&&(N=x);N||(N=_.Ef(x).querySelector('[tabindex="-100"]'));F.tabIndex=0;this._focusedVirtualIndex=p;N&&N.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 p=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var x=this.stamp(null);this._focusBackfillItem=x.root.querySelector("*");this._itemsParent.appendChild(x.root)}this._offscreenFocusedItem=this._physicalItems[p];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[p]=this._focusBackfillItem;this._focusedPhysicalIndex=p;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var p=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),x=this._physicalItems[p];if(x){var F=this.modelForElement(x),N=this.modelForElement(this._offscreenFocusedItem);F[this.as]===N[this.as]?(this._focusBackfillItem=x,F.tabIndex=-1,this._physicalItems[p]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(p){p=this.modelForElement(p.target);var x=this.modelForElement(this._focusedItem),F=this._offscreenFocusedItem!==null,N=this._focusedVirtualIndex;p&&(x===p?this._isIndexVisible(N)||this.scrollToIndex(N):(this._restoreFocusedItem(),x&&(x.tabIndex=-1),p.tabIndex=0,this._focusedVirtualIndex=N=p[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(N),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],F&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(p){switch(p.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&p.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&&p.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(p)}},
_clamp:function(p,x,F){return Math.min(F,Math.max(x,p))},
_debounce:function(p,x,F){this._debouncers=this._debouncers||{};this._debouncers[p]=_.hc(this._debouncers[p],F,x.bind(this));_.l3(this._debouncers[p])},
_forwardProperty:function(p,x,F){p._setPendingProperty(x,F)},
_forwardHostPropV2:function(p,x){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(F){F&&this.modelForElement(F).forwardHostProp(p,x)},this)},
_notifyInstancePropV2:function(p,x,F){AIE(this.as,x)&&(p=p[this.indexAs],x==this.as&&(this.items[p]=F),this.notifyPath(a8(this.as,"items."+p,x),F))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(p,x,F){x.indexOf(this.as+".")===0&&this.notifyPath("items."+p.__key__+"."+x.slice(this.as.length+1),F)},
_forwardParentPath:function(p,x){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(F){F&&this.modelForElement(F).notifyPath(p,x)},this)},
_forwardParentProp:function(p,x){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(F){F&&(this.modelForElement(F)[p]=x)},this)},
_getActiveElement:function(){var p=this._itemsParent.node.domHost;return _.Ef(p?p.root:document).activeElement},
_scrollTargetChanged:function(p,x){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(x)if(p==="document")this.scrollTarget=this._doc;else if(typeof p==="string"){var F,N;this.scrollTarget=(x=(N=(F=this.domHost)==null?void 0:F.polymerController)!=null?N:this.domHost)&&x.$?x.$[p]:_.Ef(this.ownerDocument).querySelector("#"+p)}else this._isValidScrollTarget()&&(this._oldScrollTarget=p,this._toggleScrollListener(this._shouldHaveListener,p))}});var QiB;var zfC;var sil=function(p,x,F,N){p-=F;x-=N;return Math.sqrt(p*p+x*x)},nVl=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
rk6.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var E9B=function(p){p.maxRadius=0;p.mouseDownStart=0;p.mouseUpStart=0;p.xStart=0;p.yStart=0;p.xEnd=0;p.yEnd=0;p.containerMetrics=new rk6(p.element)};
XvE.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var p=nVl()-this.mouseDownStart;this.mouseUpStart&&(p-=this.mouseUpElapsed);return p},get mouseUpElapsed(){return this.mouseUpStart?nVl()-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 p=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(p*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-p/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 p=this.radius/(this.containerMetrics.size/2);var x=this.xNow-this.containerMetrics.width/2;var F=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+x+"px, "+F+"px)";this.waveContainer.style.transform="translate3d("+x+"px, "+F+"px, 0)";this.wave.style.webkitTransform="scale("+p+","+p+")";this.wave.style.transform="scale3d("+p+","+p+",1)"},
downAction:function(p){var x=this.containerMetrics.width/2,F=this.containerMetrics.height/2;E9B(this);this.mouseDownStart=nVl();this.center?(this.xStart=x,this.yStart=F):(this.xStart=p?p.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=p?p.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=x,this.yEnd=F);p=this.containerMetrics;x=this.xStart;F=this.yStart;this.maxRadius=Math.max(sil(x,F,0,0),sil(x,F,
p.width,0),sil(x,F,0,p.height),sil(x,F,p.width,p.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=nVl())},
remove:function(){_.Ef(_.Ef(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.qu({_template:function(){if(zfC!==void 0)return zfC;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;QiB===void 0&&(QiB=document.createElement("template"));var N=QiB;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return zfC=p},
is:"tp-yt-paper-ripple",behaviors:[_.C7],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(){_.Ef(this).parentNode.nodeType==11?this.keyEventTarget=_.Ef(this).getOwnerRoot().host:this.keyEventTarget=_.Ef(this).parentNode;var p=this.keyEventTarget;this.listen(p,"up","uiUpAction");this.listen(p,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(p){p.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var p=0;p<this.ripples.length;++p)if(!this.ripples[p].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(p){this.noink||this.downAction(p)},
downAction:function(p){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(p),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(p){this.noink||this.upAction(p)},
upAction:function(p){this.holdDown||(this.ripples.forEach(function(x){x.upAction(p)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var p=0;p<this.ripples.length;++p){var x=this.ripples[p];x.isOpacityFullyDecayed&&!x.isRestingAtMaxRadius&&this.removeRipple(x)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var p=new XvE(this);_.Ef(this.$.waves).appendChild(p.waveContainer);this.$.background.style.backgroundColor=p.color;this.ripples.push(p);this._setAnimating(!0);return p},
removeRipple:function(p){var x=this.ripples.indexOf(p);x<0||(this.ripples.splice(x,1),p.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var p;for(p=0;p<this.ripples.length;++p){var x=this.ripples[p];x.draw();this.$.background.style.opacity=x.outerOpacity;x.isOpacityFullyDecayed&&!x.isRestingAtMaxRadius&&this.removeRipple(x)}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(p,x){x!==void 0&&(p?this.downAction():this.upAction())}});var L7={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(p){rB._downHandler.call(this,p);this.pressed&&this.ensureRipple(p)},
ensureRipple:function(p){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var x=this._rippleContainer||this.root;x&&_.Ef(x).appendChild(this._ripple);if(p){x=_.Ef(this._rippleContainer||this);var F=_.Ef(p).rootTarget;x.deepContains(F)&&this._ripple.uiDownAction(p)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(p){this.hasRipple()&&(this._ripple.noink=p)}};var yfZ={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 p=1;this.disabled?p=0:this.active||this.pressed?p=4:this.receivedFocusFromKeyboard&&(p=3);this._setElevation(p)},
_computeKeyboardClass:function(p){this.toggleClass("keyboard-focus",p)},
_spaceKeyDownHandler:function(p){rB._spaceKeyDownHandler.call(this,p);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(p){rB._spaceKeyUpHandler.call(this,p);this.hasRipple()&&this._ripple.uiUpAction()}},bPn=[Von,
_.SC,L7,yfZ];_.Afn={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(p){p&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=p)},
_createRipple:function(){var p=L7._createRipple();p.id="ink";p.setAttribute("center","");p.classList.add("circle");return p}};
_.uNm=[Von,_.SC,L7,_.Afn];_.YgJ=[_.uNm,mNl,{_checkedChanged:function(){HVB._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){L7._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var w$m;var G1n;var VZC=function(){};
_.l=VZC.prototype;_.l.registered=function(){};
_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l._tapHandler=function(){};
_.l._focusChanged=function(){};
_.l._detectKeyboardFocus=function(){};
_.l._userActivate=function(){};
_.l._upHandler=function(){};
_.l._asyncClick=function(){};
_.l._pressedChanged=function(){};
_.l._ariaActiveAttributeChanged=function(){};
_.l._activeChanged=function(){};
_.l._controlStateChanged=function(){};
_.l._changedButtonState=function(){};
_.l._focusBlurHandler=function(){};
_.l._disabledChanged=function(){};
_.l._changedControlState=function(){};
_.l._buttonStateChanged=function(){};
_.l._downHandler=function(){};
_.l.ensureRipple=function(){};
_.l.getRipple=function(){};
_.l.hasRipple=function(){};
_.l._createRipple=function(){};
_.l._noinkChanged=function(){};
_.l._computeKeyboardClass=function(){};
_.l._spaceKeyDownHandler=function(){};
_.l._spaceKeyUpHandler=function(){};
_.l._setPressed=function(){};
_.l._setPointerDown=function(){};
_.l._setReceivedFocusFromKeyboard=function(){};
_.l._setFocused=function(){};
_.l._setElevation=function(){};
VZC=_.qu({_template:function(){if(G1n!==void 0)return G1n;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);
var x=p.content,F=x.insertBefore;w$m===void 0&&(w$m=document.createElement("template"));var N=w$m;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return G1n=p},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[bPn],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?yfZ._calculateElevation.apply(this):this._setElevation(0)}});var WYj;var HPm;var mgj={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(p){_.S("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(p)},
_onDialogClickWrapped:function(p){_.S("dialog_behavior_no_tap_killswitch")||this._onDialogClick(p)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(p,x){x&&(p?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
_updateClosingReasonConfirmed:function(p){this.closingReason=this.closingReason||{};this.closingReason.confirmed=p},
_onDialogClick:function(p){for(var x=_.Ef(p).path,F=0,N,h=x.indexOf((N=this.hostElement)!=null?N:this);F<h;F++)if(N=x[F],N.hasAttribute&&(N.hasAttribute("dialog-dismiss")||N.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(N.hasAttribute("dialog-confirm"));this.close();p.stopPropagation();break}}},oVB=[_.jC,
mgj];var OPB=document.createElement("template");_.g(OPB,'<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(OPB.content);var jiD=document.createElement("template");_.g(jiD,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(jiD.content);_.qu({_template:function(){if(HPm!==void 0)return HPm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);
var x=p.content,F=x.insertBefore;WYj===void 0&&(WYj=document.createElement("template"));var N=WYj;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return HPm=p},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[oVB,k7l],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 LYB;var PaB;_.qu({_template:function(){if(PaB!==void 0)return PaB;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;LYB===void 0&&(LYB=document.createElement("template"));var N=LYB;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return PaB=p},
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 p,x,F;if(((p=window.ShadyDOM)==null?void 0:p.noPatch)!==!0&&((x=window.ShadyDOM)==null?void 0:x.noPatch)!=="on-demand"||((F=this.__shady_parentNode)==null?void 0:F.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(mgj)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var TYC=_.B$(['<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>']),BYI=_.O1C(TYC);BYI.setAttribute("style","display: none;");document.head.appendChild(BYI.content);var Rfk;var k1C;var UgB;var iPn;_.qu({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[yu],configure:function(p){var x=p.node,F=x.getBoundingClientRect().height;return this._effect=new KeyframeEffect(x,[{height:F/2+"px"},{height:F+"px"}],this.timingFromConfig(p))}});
_.qu({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[yu],configure:function(p){var x=p.node,F=x.getBoundingClientRect().width;return this._effect=new KeyframeEffect(x,[{width:F/2+"px"},{width:F+"px"}],this.timingFromConfig(p))}});
_.qu({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[yu],configure:function(p){var x=p.node,F=x.getBoundingClientRect().width;return this._effect=new KeyframeEffect(x,[{width:F+"px"},{width:F-F/20+"px"}],this.timingFromConfig(p))}});
_.qu({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[yu],configure:function(p){var x=p.node,F=x.getBoundingClientRect().height;this.setPrefixedProperty(x,"transformOrigin","0 0");return this._effect=new KeyframeEffect(x,[{height:F+"px",transform:"translateY(0)"},{height:F/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(p))}});var Px={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},IXK=function(){};
_.l=IXK.prototype;_.l.registered=function(){};
_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l._focusBlurHandler=function(){};
_.l._changedControlState=function(){};
_.l._setFocused=function(){};
IXK=_.qu({_template:function(){if(iPn!==void 0)return iPn;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-menu-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_menu_button.tp.yt.paper.menu.button.css.js--\x3e<div id="trigger" on-tap="toggle" class="style-scope tp-yt-paper-menu-button">\n  <slot name="dropdown-trigger" class="style-scope tp-yt-paper-menu-button"></slot>\n</div>\n\n<tp-yt-iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focus-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" class="style-scope tp-yt-paper-menu-button">\n  <div slot="dropdown-content" class="dropdown-content style-scope tp-yt-paper-menu-button">\n    <slot id="content" name="dropdown-content" class="style-scope tp-yt-paper-menu-button"></slot>\n  </div>\n</tp-yt-iron-dropdown>\n');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;UgB===void 0&&(UgB=document.createElement("template"));var N=UgB;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return iPn=p},
is:"tp-yt-paper-menu-button",behaviors:[_.C7,_.SC],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:Px.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:Px.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:Px.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},
allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var p=_.Ef(this.$.content).getDistributedNodes(),x=0,F=p.length;x<F;x++)if(p[x].nodeType===Node.ELEMENT_NODE)return p[x]},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(p,x){p?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):x!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(p){_.SC._disabledChanged.apply(this,arguments);p&&this.opened&&this.close()},
__onIronOverlayCanceled:function(p){var x=this.$.trigger;_.Ef(p.detail).path.indexOf(x)>-1&&p.preventDefault()}});
Object.keys(Px).forEach(function(p){IXK[p]=Px[p]});var $gk=_.Eq.IronButtonState,efC=(0,_.CW)(HTMLElement);
_.qu({_template:function(){if(k1C!==void 0)return k1C;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Rfk===void 0&&(Rfk=document.createElement("template"));var N=Rfk;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return k1C=p},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[$gk,_.SC,L7,_.X5,_.zR],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(p){var x=(0,_.qn)(this);x.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:p});x.shadowRoot.appendChild(p);return efC.prototype._attachDom.call(this,p)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var p=this.contentElement;p&&p.selectedItem&&this._setSelectedItem(p.selectedItem)},
get contentElement(){for(var p=_.Ef(this.$.content).getDistributedNodes(),x=0,F=p.length;x<F;x++)if(p[x].nodeType===Node.ELEMENT_NODE)return p[x]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(p){this._setSelectedItem(p.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(p){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p)===this&&this.open()},
_selectedItemChanged:function(p){var x="";p?x=p.label||p.getAttribute("label")||p.textContent.trim():x="";this.value=x;this._setSelectedItemLabel(x)},
_computeMenuVerticalOffset:function(p,x){return x?x:p?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var p=this.opened?"true":"false",x=this.contentElement;x&&x.setAttribute("aria-expanded",p)},
_computeLabelClass:function(p,x,F){var N="label";if(p)F&&(N+=" label-is-hidden");else if(F||x)N+=" label-is-floating";return N},
_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 pW6;var xLZ;_.qu({is:"tp-yt-paper-icon-button",_template:function(){if(xLZ!==void 0)return xLZ;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;pW6===void 0&&(pW6=document.createElement("template"));var N=pW6;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return xLZ=p},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.uNm],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(p,x){var F=this.getAttribute("aria-label");F&&x!=F||this.setAttribute("aria-label",p)}});var FRI;var Nam;_.TR=[Von,_.SC,{hostAttributes:{role:"option",tabindex:"0"}}];_.qu({_template:function(){if(Nam!==void 0)return Nam;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;FRI===void 0&&(FRI=document.createElement("template"));var N=FRI;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return Nam=p},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.TR]});var hil;var lrB;var cHJ={attached:function(){this.fire("addon-attached")},
update:function(){}};var arB=1,MGn=1,DLm=1,frk=[_.SC,_.C7,{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();!I$&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(p,x){p?p=p+" "+x:p=x;return p},
_onAddonAttached:function(p){p=_.Ef(p).rootTarget;if(p.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,p.id);else{var x="paper-input-add-on-"+MGn++;p.id=x;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,x)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(p){_.SC._focusBlurHandler.call(this,p);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var p=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",p);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(p){try{var x=this.inputElement.selectionStart;this.value=p;this.inputElement.selectionStart=x;this.inputElement.selectionEnd=x}catch(F){this.value=p}},
_computeAlwaysFloatLabel:function(p,x){return x||p},
_updateAriaLabelledBy:function(){var p=_.Ef(this.root).querySelector("label");if(p){if(p.id)var x=p.id;else x="paper-input-label-"+arB++,p.id=x;this._ariaLabelledBy=x}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+DLm++)},
_onChange:function(p){this.shadowRoot&&this.fire(p.type,{sourceEvent:p},{node:this,bubbles:p.bubbles,cancelable:p.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var p=document.activeElement;p instanceof HTMLElement&&p!==document.body&&p!==document.documentElement||this._focusableElement.focus()}}}];var KRk;var q6B;_.qu({_template:function(){if(q6B!==void 0)return q6B;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;KRk===void 0&&(KRk=document.createElement("template"));var N=KRk;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return q6B=p},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[cHJ],properties:{_charCounterStr:{type:String,value:"0"}},update:function(p){if(p.inputElement){p.value=p.value||"";var x=p.value.toString().length.toString();p.inputElement.hasAttribute("maxlength")&&(x+="/"+p.inputElement.getAttribute("maxlength"));this._charCounterStr=x}}});var ZTD;var tGZ;_.qu({_template:function(){if(tGZ!==void 0)return tGZ;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;ZTD===void 0&&(ZTD=document.createElement("template"));var N=ZTD;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return tGZ=p},
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 pN(this.attrForValue)},get _inputElement(){return _.Ef(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(p){this._addons||(this._addons=[]);p=p.target;this._addons.indexOf(p)===-1&&(this._addons.push(p),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(p){this._handleValueAndAutoValidate(p.target)},
_onValueChanged:function(p){var x=p.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,x.value===void 0||x.value===""))return;this._handleValueAndAutoValidate(p.target)},
_handleValue:function(p){var x=this._inputElementValue;x||x===0||p.type==="number"&&!p.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:p,value:x,invalid:this.invalid})},
_handleValueAndAutoValidate:function(p){this.autoValidate&&p&&(this.invalid=!(p.validate?p.validate(this._inputElementValue):p.checkValidity()));this._handleValue(p)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(p){if(this._addons)for(var x,F=0;x=this._addons[F];F++)x.update(p)},
_computeInputContentClass:function(p,x,F,N,h){var c="input-content";p?(h&&(c+=" label-is-hidden"),N&&!this.noUnfloatedLabelError&&(c+=" is-invalid")):(p=this.querySelector("label"),x||h?(c+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",N?c+=" is-invalid":F&&(c+=" label-is-highlighted")):(p&&(this.$.labelAndInputContainer.style.position="relative"),N&&!this.noUnfloatedLabelError&&(c+=" is-invalid")));F&&(c+=" focused");return c},
_computeUnderlineClass:function(p,x){var F="underline";x?F+=" is-invalid":p&&(F+=" is-highlighted");return F},
_computeAddOnContentClass:function(p,x){var F="add-on-content";x?F+=" is-invalid":p&&(F+=" is-highlighted");return F}});var dLC;var vgv;_.qu({_template:function(){if(vgv!==void 0)return vgv;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;dLC===void 0&&(dLC=document.createElement("template"));var N=dLC;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return vgv=p},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[cHJ],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(p){this._setInvalid(p.invalid)}});_.qu({is:"tp-yt-paper-input",_template:function(){if(lrB!==void 0)return lrB;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;hil===void 0&&(hil=document.createElement("template"));var N=hil;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return lrB=p},
behaviors:[frk,_.X5],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 JHl;var Cqj;_.qu({_template:function(){if(Cqj!==void 0)return Cqj;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=
p.content,F=x.insertBefore;JHl===void 0&&(JHl=document.createElement("template"));var N=JHl;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return Cqj=p},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.TR]});var S6D;var rHC;_.qu({_template:function(){if(rHC!==void 0)return rHC;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);
var x=p.content,F=x.insertBefore;S6D===void 0&&(S6D=document.createElement("template"));var N=S6D;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return rHC=p},
is:"tp-yt-paper-item-body"});var Egm;var XWJ;var ggK=function(){};
_.l=ggK.prototype;_.l.indexOf=function(){};
_.l.selectPrevious=function(){};
_.l.selectNext=function(){};
_.l.selectIndex=function(){};
_.l.forceSynchronousItemUpdate=function(){};
_.l._checkFallback=function(){};
_.l._addListener=function(){};
_.l._removeListener=function(){};
_.l._activateEventChanged=function(){};
_.l._updateItems=function(){};
_.l._selectSelected=function(){};
_.l._filterItem=function(){};
_.l._valueToItem=function(){};
_.l._valueToIndex=function(){};
_.l._indexToValue=function(){};
_.l._valueForItem=function(){};
_.l._observeItems=function(){};
_.l._itemActivate=function(){};
_.l.multiChanged=function(){};
_.l._updateAttrForSelected=function(){};
_.l._updateSelected=function(){};
_.l._selectMulti=function(){};
_.l._selectionChange=function(){};
_.l._toggleSelected=function(){};
_.l._valuesToItems=function(){};
_.l.registered=function(){};
_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l.select=function(){};
_.l._resetTabindices=function(){};
_.l._updateMultiselectable=function(){};
_.l._focusWithKeyboardEvent=function(){};
_.l._clearSearchText=function(){};
_.l._focusPrevious=function(){};
_.l._focusNext=function(){};
_.l._applySelection=function(){};
_.l._focusedItemChanged=function(){};
_.l._onIronItemsChanged=function(){};
_.l._onShiftTabDown=function(){};
_.l._onFocus=function(){};
_.l._onUpKey=function(){};
_.l._onDownKey=function(){};
_.l._onEscKey=function(){};
_.l._onKeydown=function(){};
_.l._activateHandler=function(){};
_.l._disabledChanged=function(){};
_.l._setSelectedItem=function(){};
_.l._setItems=function(){};
_.l._setSelectedItems=function(){};
_.l._setFocusedItem=function(){};
ggK=_.qu({_template:function(){if(XWJ!==void 0)return XWJ;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);
var x=p.content,F=x.insertBefore;Egm===void 0&&(Egm=document.createElement("template"));var N=Egm;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return XWJ=p},
is:"tp-yt-paper-listbox",behaviors:[LUl],hostAttributes:{role:"listbox"}});var QEv;var zik;var sEb={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(p,x){return[p||x?"active":"",x?"cooldown":""].join(" ")},
__activeChanged:function(p,x){this.__setAriaHidden(!p);this.__coolingDown=!p&&x},
__altChanged:function(p){this.setAttribute("aria-label",p||"loading")},
__setAriaHidden:function(p){p?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.qu({_template:function(){if(zik!==void 0)return zik;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;QEv===void 0&&(QEv=document.createElement("template"));var N=QEv;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return zik=p},
is:"tp-yt-paper-spinner",behaviors:[sEb]});var ngj;var yHl;_.qu({_template:function(){if(yHl!==void 0)return yHl;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;ngj===void 0&&(ngj=document.createElement("template"));var N=ngj;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return yHl=p},
is:"tp-yt-paper-spinner-lite",behaviors:[sEb]});var bTv;var AHn;_.qu({_template:function(){if(AHn!==void 0)return AHn;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;bTv===void 0&&(bTv=document.createElement("template"));var N=bTv;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return AHn=p},
is:"tp-yt-paper-tab",behaviors:[_.SC,_.Eq.IronButtonState,L7],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 p=_.Ef(this).parentNode;return!!p&&!!p.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(p){if(this.link){var x=this.queryEffectiveChildren("a");x&&p.target!==x&&x.click()}}});var uVl;var Y6B;var wWJ=_.B$(['<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>']),G5j=_.O1C(wWJ);document.head.appendChild(G5j.content);_.qu({_template:function(){if(Y6B!==void 0)return Y6B;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;uVl===void 0&&(uVl=document.createElement("template"));var N=uVl;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return Y6B=p},
is:"tp-yt-paper-tabs",behaviors:[_.n7,_.TRZ],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(p){_.Ef(this).querySelectorAll("tp-yt-paper-tab").forEach(p?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(p){p.setAttribute("noink","")},
_removeNoinkAttribute:function(p){p.removeAttribute("noink")},
_computeScrollButtonClass:function(p,x,F,N){return!x||F?"hidden":p?N?"hidden":"not-visible":""},
_computeTabsContentClass:function(p,x){var F="tabs-content";p&&(F+=" scrollable");if(!p||x)F+=" fit-container";return F},
_computeSelectionBarClass:function(p,x){var F="selection-bar";p?F+=" hidden":x&&(F+=" align-bottom");return F},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(p){return""+p},
_onIronSelect:function(p){this._tabChanged(p.detail.item,this._previousTab);this._previousTab=p.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();_.sq._activateHandler.apply(this,arguments)},
_scheduleActivation:function(p,x){this._pendingActivationItem=p;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,x)},
_delayedActivationHandler:function(){var p=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;p.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(p){p.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(p,x){this.scrollable&&this._affectScroll(x&&-x.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(p){this.$.tabsContainer.scrollLeft+=p;p=this.$.tabsContainer.scrollLeft;this._leftHidden=p===0||this.hideScrollButtons;this._rightHidden=p===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(p,x){if(p){var F=this.$.tabsContent.getBoundingClientRect(),N=F.width,h=p.getBoundingClientRect();F=h.left-F.left;this._pos={width:this._calcPercent(h.width,N),left:this._calcPercent(F,N)};if(this.noSlide||x==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var c=x.getBoundingClientRect();x=this.items.indexOf(x);p=this.items.indexOf(p);this.$.selectionBar.classList.add("expand");
p=x<p;this._isRTL&&(p=!p);p?this._positionBar(this._calcPercent(h.left+h.width-c.left,N)-5,this._left):this._positionBar(this._calcPercent(c.left+c.width-h.left,N)-5,this._calcPercent(F,N)+5);this.scrollable&&this._scrollToSelectedIfNeeded(h.width,F)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(p,x){x-=this.$.tabsContainer.scrollLeft;x<0?this.$.tabsContainer.scrollLeft+=x:(x+=p-this.$.tabsContainer.offsetWidth,x>0&&(this.$.tabsContainer.scrollLeft+=x))},
_calcPercent:function(p,x){return 100*p/x},
_positionBar:function(p,x){p=p||0;x=x||0;this._width=p;this._left=x;this.transform("translateX("+x+"%) scaleX("+p/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var p=this.$.selectionBar.classList;p.contains("expand")?(p.remove("expand"),p.add("contract"),this._positionBar(this._pos.width,this._pos.left)):p.contains("contract")&&p.remove("contract")}});var VGj;var WRB;_.qu({_template:function(){if(WRB!==void 0)return WRB;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;VGj===void 0&&(VGj=document.createElement("template"));var N=VGj;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return WRB=p},
is:"tp-yt-paper-textarea",behaviors:[frk,_.X5],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(p){this.$.input.textarea.selectionStart=p},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(p){this.$.input.textarea.selectionEnd=p},_ariaLabelledByChanged:function(p){this._focusableElement.setAttribute("aria-labelledby",p)},
_ariaDescribedByChanged:function(p){this._focusableElement.setAttribute("aria-describedby",p)},
get _focusableElement(){return this.inputElement.textarea}});var HTb;var mLB;/*

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 ogB=function(){};
_.l=ogB.prototype;_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l._tapHandler=function(){};
_.l._focusChanged=function(){};
_.l._detectKeyboardFocus=function(){};
_.l._userActivate=function(){};
_.l._upHandler=function(){};
_.l._spaceKeyDownHandler=function(){};
_.l._spaceKeyUpHandler=function(){};
_.l._asyncClick=function(){};
_.l._pressedChanged=function(){};
_.l._ariaActiveAttributeChanged=function(){};
_.l._activeChanged=function(){};
_.l._controlStateChanged=function(){};
_.l._changedButtonState=function(){};
_.l._focusBlurHandler=function(){};
_.l._disabledChanged=function(){};
_.l._changedControlState=function(){};
_.l._downHandler=function(){};
_.l.ensureRipple=function(){};
_.l.getRipple=function(){};
_.l.hasRipple=function(){};
_.l._noinkChanged=function(){};
_.l._focusedChanged=function(){};
_.l.registered=function(){};
_.l._invalidChanged=function(){};
_.l.hasValidator=function(){};
_.l.validate=function(){};
_.l._getValidity=function(){};
_.l._requiredChanged=function(){};
_.l._valueChanged=function(){};
_.l._checkedChanged=function(){};
_.l._buttonStateChanged=function(){};
_.l._setPressed=function(){};
_.l._setPointerDown=function(){};
_.l._setReceivedFocusFromKeyboard=function(){};
_.l._setFocused=function(){};
ogB=_.qu({is:"tp-yt-paper-toggle-button",_template:function(){if(mLB!==void 0)return mLB;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;HTb===void 0&&(HTb=document.createElement("template"));var N=HTb;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return mLB=p},
behaviors:[_.YgJ],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");_.jB(this,function(){_.s4(this,"pan-y")})},
_ontrack:function(p){p=p.detail;p.state==="start"?this._trackStart(p):p.state==="track"?this._trackMove(p):p.state==="end"&&this._trackEnd(p)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(p){p=p.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+p:p)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+p:p));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 p=L7._createRipple();p.id="ink";p.setAttribute("recenters","");p.classList.add("circle","toggle-ink");return p}});var OTm;var jEZ;_.qu({_template:function(){if(jEZ!==void 0)return jEZ;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;OTm===void 0&&(OTm=document.createElement("template"));var N=OTm;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return jEZ=p},
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 p=_.Ef(this).parentNode,x=_.Ef(this).getOwnerRoot(),F;this.for?F=_.Ef(x).querySelector("#"+this.for):F=p.nodeType==Node.DOCUMENT_FRAGMENT_NODE?x.host:p;return F},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(p){p==="entry"?this.show():p==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Ef(this).textContent.trim()===""){for(var p=!0,x=_.Ef(this).getEffectiveChildNodes(),F=0;F<x.length;F++)if(x[F].textContent.trim()!==""){p=!1;break}if(p)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 p=this.offset;this.marginTop!=14&&this.offset==14&&(p=this.marginTop);var x=this.offsetParent.getBoundingClientRect(),F=this._target.getBoundingClientRect(),N=this.getBoundingClientRect(),h=(F.width-N.width)/2,c=(F.height-N.height)/2,M=F.left-x.left,f=F.top-x.top;switch(this.position){case "top":var K=M+h;var t=f-N.height-p;break;case "bottom":K=M+h;t=f+F.height+p;break;case "left":K=M-N.width-p;t=f+c;break;case "right":K=M+F.width+
p,t=f+c}this.fitToVisibleBounds?(x.left+K+N.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,K)+"px",this.style.right="auto"),x.top+t+N.height>window.innerHeight?(this.style.bottom=x.height+"px",this.style.top="auto"):(this.style.top=Math.max(-x.top,t)+"px",this.style.bottom="auto")):(this.style.left=K+"px",this.style.top=t+"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(p){p!==500&&this.updateStyles({"--paper-tooltip-delay-in":p+"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(p){if(p==="entry"&&this.animationEntry!=="")return this.animationEntry;if(p==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[p]&&typeof this.animationConfig[p][0].name==="string"){if(this.animationConfig[p][0].timing&&this.animationConfig[p][0].timing.delay&&this.animationConfig[p][0].timing.delay!==0){var x=this.animationConfig[p][0].timing.delay;p==="entry"?this.updateStyles({"--paper-tooltip-delay-in":x+"ms"}):p==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":x+
"ms"})}return this.animationConfig[p][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 LRB=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(LRB,_.Uk);var Pqj=_.NM(LRB,[0,_.iq]);var Bx=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Bx,_.Uk);var TaB=[3,4],BaI=[5,6];var RiD=[0,TaB,BaI,_.NnC,-1,_.U6,_.hDK,-1,$6w,eBp];var k5b=_.NM(Bx,RiD),ULB=_.lg(RiD);var iTB=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(iTB,_.Uk);var Irm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Irm,_.Uk);var $Lk=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E($Lk,_.Uk);var eiZ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(eiZ,_.Uk);var pkj=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(pkj,_.Uk);var RS=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(RS,_.Uk);RS.prototype.getSource=function(){return _.Yg(this,1)};
RS.prototype.getMessage=function(){return _.uq(this,4)};
RS.prototype.getData=function(){return _.B8(this,pkj,8)};var x8J=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(x8J,_.Uk);var ku=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(ku,_.Uk);var Uq=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Uq,_.Uk);var iU=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(iU,_.Uk);iU.prototype.getUrl=function(){return _.uq(this,1)};
iU.prototype.setUrl=function(p){return _.J_(this,1,p)};
iU.prototype.hasUrl=function(){return _.fH(this,1)!=null};var FjJ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(FjJ,_.Uk);var NMD=[3];var h4J=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(h4J,_.Uk);var IS=function(p){var x=new h4J;return _.Rx(x,2,p)};
h4J.prototype.getLanguage=function(){return G5(this,4,$u)};
var lRk=function(p){var x=IS(1);return _.K6(x,6,$u,p)},$u=[3,
4,5,6];var caZ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(caZ,_.Uk);var eC=function(p){var x=new caZ;return _.Rx(x,1,p)},p4=function(p,x){return _.K6(p,2,aRn,x)},aRn=[2,
3,4,5];var M0K=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(M0K,_.Uk);var xa=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(xa,_.Uk);var D8B=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(D8B,_.Uk);var fRB=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(fRB,_.Uk);var KjI=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(KjI,_.Uk);var qRl=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(qRl,_.Uk);var F3=function(p){return _.B8(p,Uq,5)};var Zyn=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Zyn,_.Uk);Zyn.prototype.getValue=function(){return bq(this,1)};var t0n=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(t0n,_.Uk);var No=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(No,_.Uk);No.prototype.getMetadata=function(){return _.V8(this,fRB,7,hS)};
No.prototype.hasMetadata=function(){return _.JH(this,fRB,7,hS)};
var d8C=_.QMp(No),hS=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var lx=function(p){this.JSC$9762_name_=p;this.files_=[];this.directories_=[];this.directoryMap_={}};
lx.prototype.getName=function(){return this.JSC$9762_name_};var aL=function(p,x){this.callback_=x;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new lx("");v5I(this,p,this.rootDirectory_);cf(this)},v5I=function(p,x,F){for(var N=0;N<x.length;N++){var h=x[N];
h.isFile?(p.fileOps_++,h.file((0,_.CH)(p.handleFileSuccess_,p,F),(0,_.CH)(p.handleFileError_,p))):p.unscannedDirectories_.push(new JaC(h,F))}},cf=function(p){if(p.unscannedDirectories_.length>0&&p.directoryOps_<5&&!p.hasError_){p.directoryOps_++;
var x=p.unscannedDirectories_.shift(),F=x.entry,N=new lx(F.name);x=x.parent;x.directoryMap_[N.getName()]=N;x.directories_.push(N);F=F.createReader();F.readEntries((0,_.CH)(p.handleDirectorySuccess_,p,F,N),(0,_.CH)(p.handleDirectoryError_,p))}p.directoryOps_!=0||p.fileOps_!=0||p.unscannedDirectories_.length!=0&&!p.hasError_||p.callback_(p.rootDirectory_.files_,p.rootDirectory_.directories_,p.hasError_)};
aL.prototype.handleDirectorySuccess_=function(p,x,F){v5I(this,F,x);F.length==0?(this.directoryOps_--,cf(this)):p.readEntries((0,_.CH)(this.handleDirectorySuccess_,this,p,x),(0,_.CH)(this.handleDirectoryError_,this))};
aL.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;cf(this)};
aL.prototype.handleFileSuccess_=function(p,x){p.files_.push(x);this.fileOps_--;cf(this)};
aL.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;cf(this)};
var JaC=function(p,x){this.entry=p;this.parent=x};var Mo=function(p){_.Sc.call(this);_.qd(p,"drop",this.onObjectsDropped_,!1,this);_.qd(p,"dragenter",this.onFilesDragged_,!1,this);_.qd(p,"dragover",this.onFilesDragged_,!1,this);_.qd(p,"dragleave",this.onDragLeave_,!1,this);_.qd(p,"dragend",this.onDragLeave_,!1,this)};
_.NL(Mo,_.Sc);var CHj=function(p,x){_.th.call(this,"f");this.files=p;this.directories=x};
_.NL(CHj,_.th);var SRZ=function(){_.th.call(this,"h")};
_.NL(SRZ,_.th);var raD=function(){_.th.call(this,"i")};
_.NL(raD,_.th);var E5D=function(){_.th.call(this,"g")};
_.NL(E5D,_.th);Mo.prototype.onObjectsDropped_=function(p){var x=this;p.preventDefault();var F=p.event_.dataTransfer;if((p=F&&F.items)&&p.length>0&&p[0].webkitGetAsEntry){F=[];for(var N=[],h=0;h<p.length;h++){var c=p[h].webkitGetAsEntry();c?F.push(c):N.push(p[h])}new aL(F,function(M,f,K){K?x.dispatchEvent(new E5D("Error occurred while reading from the file system.")):x.dispatchEvent(new CHj(M,f,N))})}else(p=F&&F.files)&&this.dispatchEvent(new CHj(Array.from(p),[]))};
Mo.prototype.onFilesDragged_=function(p){p.type==="dragenter"&&this.dispatchEvent(new SRZ);p.preventDefault()};
Mo.prototype.onDragLeave_=function(){this.dispatchEvent(new raD)};var Xkm=function(p,x){this.JSC$9785_name_=p;this.inputElement_=x};
Xkm.prototype.getName=function(){return this.JSC$9785_name_};
Xkm.prototype.getInputElement=function(){return this.inputElement_};var De=function(p,x,F){x=x===void 0?"single_file":x;F=F===void 0?[]:F;_.Sc.call(this);this.overlayTarget_=p;this.parentOverlay_=p!=null?p.parentNode:_.KH("scotty-overlay-parent");this.selectorType_=x;this.acceptTypes_=F;this.overlay_=g5j(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.E(De,_.Sc);
var g5j=function(p,x,F,N){var h=document.createElement("input");h.setAttribute("type","file");h.setAttribute("name","Filedata");_.qd(h,"change",p.onFilesSelected_,!1,p);F==="multiple_file"&&(h.multiple="true");F==="single_directory"&&(h.webkitdirectory="true");N.length>0&&h.setAttribute("accept",N.join(","));h.style.position="absolute";h.style.overflow="hidden";h.style.height="0px";h.style.width="0px";h.style.opacity="0";h.setAttribute("aria-hidden","true");h.setAttribute("tabIndex",-1);if(p.overlayTarget_!=
null)return h.style.height=x.offsetHeight+"px",h.style.width=x.offsetWidth+"px",p.parentOverlay_&&(p.parentOverlay_.style.position="relative"),_.VO(h,x),j0(h,new _.sT(x.offsetLeft,x.offsetTop)),h;p.parentOverlay_.appendChild(h);return h};
De.prototype.click=function(){this.overlay_.click()};
De.prototype.onFilesSelected_=function(p){a:{try{var x=(new XMLHttpRequest).upload!==void 0;break a}catch(t){}x=!1}if(x){var F;p=Array.from((F=p.target.files)!=null?F:[]);F=[];if(this.selectorType_==="single_directory"&&(_.fT||_.H8||_.Dr)){F=new lx("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(x=0;x<p.length;x++)for(var N=p[x],h=N.webkitRelativePath.split("/"),c=F,M=0;M<h.length;M++){var f=h[M];if(M==h.length-1){f!="."&&c.files_.push(N);break}var K=c.directoryMap_[f];K==void 0&&(f=
K=new lx(f),c.directoryMap_[f.getName()]=f,c.directories_.push(f));c=K}F=F.directories_}this.dispatchEvent(new QvC(p,F,null))}else p=p.target.value,p.match(/^c:\\fakepath\\/i)&&(p=p.substring(12)),this.dispatchEvent(new QvC([],[],new Xkm(p,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=g5j(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var QvC=function(p,x){_.th.call(this,"j");this.files=p;this.directories=x};
_.E(QvC,_.th);var z4v=function(p){this.uploadUrl_=p};var svB=function(){_.Sc.call(this)};
_.NL(svB,_.Sc);var f4=function(p){_.th.call(this,p)};
_.NL(f4,_.th);var K4=function(p){_.th.call(this,p)};
_.NL(K4,_.th);var n5J=function(p,x,F,N,h){_.Sc.call(this);F=document.createElement("form");F.setAttribute("method",x);F.setAttribute("enctype","multipart/form-data");F.setAttribute("encoding","multipart/form-data");x=document.createElement("input");x.setAttribute("type","hidden");x.setAttribute("name","metadata");x.setAttribute("value",h);F.appendChild(x);F.appendChild(N);this.JSC$9802_form_=F;p=new _.R9(p);_.WS(p,"upload_protocol","multipart");this.JSC$9802_url_=p.toString();this.JSC$9802_request_=new I_;this.state_=
"Ready";this.JSC$9802_errorDescription_=null;this.JSC$9802_eventHandler_=new _.ps(this);_.aG(this,this.JSC$9802_eventHandler_);this.JSC$9802_eventHandler_.listen(this.JSC$9802_request_,"success",this.onTransferSuccess_);this.JSC$9802_eventHandler_.listen(this.JSC$9802_request_,"error",this.onTransferError_)};
_.E(n5J,svB);_.l=n5J.prototype;_.l.run=function(){this.state_="Transferring";var p=this.JSC$9802_request_,x=this.JSC$9802_form_;if(p.JSC$9226_active_)throw Error("ne");var F=new _.R9(this.JSC$9802_url_||x.action);p.JSC$9226_form_=x;x=p.JSC$9226_form_;F=_.Vb(F.toString());F!==void 0&&(x.action=F);FxK(p)};
_.l.getResponseCode=function(){return null};
_.l.getResponseText=function(){return this.JSC$9802_request_&&this.JSC$9802_request_.getResponseText()||null};
_.l.JSC$25579_getErrorDescription=function(){return this.JSC$9802_errorDescription_};
_.l.cancel=function(){this.JSC$9802_request_&&this.JSC$9802_request_.abort();this.state_="Cancelled";this.dispatchEvent(new f4("o"))};
_.l.pause=function(){};
_.l.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new f4("l"))};
_.l.onTransferError_=function(){this.JSC$9802_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new f4("n"))};var qo=function(){_.ni.call(this)};
_.E(qo,_.ni);qo.prototype.createXhr=function(){var p=_.ni.prototype.createXhr.call(this);p.upload&&(p.upload.onprogress=(0,_.CH)(this.onProgress_,this));return p};
qo.prototype.onProgress_=function(p){this.dispatchEvent(p)};var yaJ=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},AaB=function(p,x){var F=p.attempt_+1;
if(p.maxAttempts_>0&&F>p.maxAttempts_)return!1;F==0?x():p.delayCallId_=Qo(function(){p.delayCallId_=null;x()},byb(p),p);
p.attempt_=F;return!0};
yaJ.prototype.reset=function(){this.delayCallId_&&_.Mm.clearTimeout(this.delayCallId_);this.attempt_=-1};
var byb=function(p){var x=250*Math.pow(2,p.attempt_);p.maxDelayMs_>=0&&(x=Math.min(x,p.maxDelayMs_));return x};var Qwm=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var Ze=function(){_.Sc.call(this);this.JSC$9812_request_=this.state_=null;this.JSC$9812_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9812_bytesTransferred_=0;this.retryIterator_=new yaJ;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9812_errorDescription_=null;this.JSC$9812_eventHandler_=new _.ps(this);_.aG(this,this.JSC$9812_eventHandler_);this.JSC$9812_url_=this.blob_=null;this.JSC$9812_method_=void 0;this.chunkSize_=this.JSC$9812_metadata_=
this.JSC$9812_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9812_responseText_=this.JSC$9812_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.NL(Ze,svB);_.l=Ze.prototype;_.l.run=function(){tS(this)};
_.l.getResponseCode=function(){return this.JSC$9812_responseCode_};
_.l.getResponseText=function(){return this.JSC$9812_responseText_};
_.l.JSC$25579_getErrorDescription=function(){return this.JSC$9812_errorDescription_};
_.l.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9812_eventHandler_.removeAll();this.JSC$9812_request_&&this.JSC$9812_request_.abort();this.retryIterator_.reset();var p=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(p==="Upload"||p==="Query")p=new qo,p.JSC$7652_withCredentials_=this.JSC$9812_withCredentials_,p.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9812_bytesTransferred_=
0;this.dispatchEvent(new f4("o"))}};
_.l.pause=function(){this.pauseRequested_=!0};
var tS=function(p){var x=p.state_;p.pauseRequested_?(p.pauseRequested_=!1,p.stateAfterUnpausing_=x,p.state_="Paused"):AaB(p.retryIterator_,function(){switch(p.state_){case "Start":p.JSC$9812_request_=new qo;var F=_.Q5.clone(p.JSC$9812_headers_);p.blob_.size!=null&&(F["Content-Length"]=p.blob_.size);F=zVm(F);F["X-Goog-Upload-Protocol"]="resumable";F["X-Goog-Upload-Command"]="start";p.JSC$9812_eventHandler_.removeAll();p.JSC$9812_eventHandler_.listen(p.JSC$9812_request_,"complete",p.onStartComplete_);
p.JSC$9812_request_.JSC$7652_withCredentials_=p.JSC$9812_withCredentials_;p.JSC$9812_request_.send(p.JSC$9812_url_,p.JSC$9812_method_,p.JSC$9812_metadata_,F);p.lastCommandResponseCode_=null;p.dispatchEvent(new K4("q"));break;case "Upload":F=p.transferHandle_.uploadUrl_;var N=p.blob_.size;if(Ufb()){var h=p.chunkSize_;var c=p.offset_+h>=N;N=kj6(p.blob_,p.offset_,c?N:p.offset_+h)}else p.offset_=0,N=p.blob_,c=!0;p.JSC$9812_request_=new qo;p.JSC$9812_request_.JSC$7652_withCredentials_=p.JSC$9812_withCredentials_;
p.JSC$9812_eventHandler_.removeAll();p.JSC$9812_eventHandler_.listen(p.JSC$9812_request_,"progress",p.onUploadProgress_);h=(0,_.CH)(p.JSC$9814_onUploadComplete_,p,p.offset_+N.size,c);p.JSC$9812_eventHandler_.listen(p.JSC$9812_request_,"complete",h);p.lastCommandResponseCode_=null;p.dispatchEvent(new K4("q"));c=Object.assign({},p.JSC$9812_headers_||{},{"X-Goog-Upload-Command":"upload"+(c?", finalize":""),"X-Goog-Upload-Offset":p.offset_});p.JSC$9812_request_.send(F,"POST",N,c);break;case "Query":p.JSC$9812_request_=
new qo;p.JSC$9812_eventHandler_.removeAll();p.JSC$9812_eventHandler_.listen(p.JSC$9812_request_,"complete",p.onQueryComplete_);F=Object.assign({},p.JSC$9812_headers_||{},{"X-Goog-Upload-Command":"query"});p.JSC$9812_request_.send(p.transferHandle_.uploadUrl_,"POST","",F);p.lastCommandResponseCode_=null;p.dispatchEvent(new K4("q"));break;default:throw Error("cf");}})||dA(p,"Transfer encountered too many consecutive failures.")},dA=function(p,x){p.state_="Error";
p.JSC$9812_errorDescription_=x;p.dispatchEvent(new f4("n"))};
Ze.prototype.onStartComplete_=function(p){var x=p.target;this.lastCommandResponseCode_=x.getStatus();this.dispatchEvent(new K4("r"));if(unD(x))YRv(this,x);else if(wkZ(x)){p=Oy(p.target.getAllResponseHeaders());for(var F in p)_.qm(F.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new f4("m"));F=g6(p,"X-Goog-Upload-URL");p=(p=g6(p,"X-Goog-Upload-Chunk-Granularity"))?parseInt(p,10):1;F===void 0||isNaN(p)||p<=0?dA(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
p)*p,this.transferHandle_=new z4v(F),this.dispatchEvent(new f4("p")),this.state_="Upload",this.retryIterator_.reset(),tS(this))}else tS(this)};
Ze.prototype.onUploadProgress_=function(p){this.JSC$9812_bytesTransferred_=this.offset_+p.loaded;this.dispatchEvent(new f4("k"))};
Ze.prototype.JSC$9814_onUploadComplete_=function(p,x,F){var N=this,h,c;return _.D(function(M){switch(M.nextAddress){case 1:h=F.target;N.lastCommandResponseCode_=h.getStatus();N.dispatchEvent(new K4("r"));if(GaD(h)||h.getStatus()==404)return N.JSC$9812_bytesTransferred_=p,YRv(N,h),M.return();if(wkZ(h)){M.jumpTo(2);break}if(!(c=N.detectCorruptedBlobEnabled_)){M.jumpTo(3);break}return _.q(M,V0D(N),4);case 4:c=M.yieldResult;case 3:if(c)return dA(N,"Blob has been modified or corrupted."),M.return();N.requireUploadRequestModification_=
h.getStatus()==400;N.state_="Query";tS(N);return M.return();case 2:if(x)return dA(N,"Got a non-final success response after issuing a finalize command."),M.return();N.JSC$9812_bytesTransferred_=p;N.offset_=p;N.retryIterator_.reset();tS(N);return M.return()}})};
Ze.prototype.onQueryComplete_=function(p){var x=p.target;this.lastCommandResponseCode_=x.getStatus();this.dispatchEvent(new K4("r"));unD(x)?(x.getStatus()===200&&(this.JSC$9812_bytesTransferred_=this.blob_.size),YRv(this,x)):wkZ(x)?(p=Oy(p.target.getAllResponseHeaders()),p=parseInt(g6(p,"X-Goog-Upload-Size-Received"),10),isNaN(p)?dA(this,"Server did not respond with current offset."):p<this.offset_?dA(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
p+"."):this.requireUploadRequestModification_&&this.offset_===p?dA(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<p&&this.retryIterator_.reset(),this.offset_=this.JSC$9812_bytesTransferred_=p,this.state_="Upload",tS(this))):tS(this)};
var YRv=function(p,x){p.JSC$9812_responseCode_=x.getStatus();var F=Oy(x.getAllResponseHeaders());swm(F);p.JSC$9812_responseText_=x.getResponseText();p.state_="Response received";p.dispatchEvent(new f4("l"))},wkZ=function(p){var x=p.getStatus();
p=Oy(p.getAllResponseHeaders());p=g6(p,"X-Goog-Upload-Status");return x===200&&p==="active"},GaD=function(p){p=Oy(p.getAllResponseHeaders());
return g6(p,"X-Goog-Upload-Status")==="final"},unD=function(p){if(GaD(p))return!0;
p=p.getStatus();return p>=400&&p<500},V0D=function(p){var x;
return _.D(function(F){if(F.nextAddress==1){if(!p.blob_||p.originalBlobSize_<=0)return F.return(!1);if(p.blob_.size!==p.originalBlobSize_)return F.return(!0);_.KM(F,2);if(x=kj6(p.blob_,0,1)){var N=new Gi,h=C8m(N);N.reader_.readAsBinaryString(x);F=_.q(F,h,4)}else F=F.return(!0);return F}if(F.nextAddress!=2)return F.return(p.blob_.size!==p.originalBlobSize_);_.v9(F);return F.return(!0)})};var Wjb=function(p,x,F,N,h,c){_.Sc.call(this);this.payload_=N;this.JSC$9815_url_=p;this.JSC$9815_method_=x;this.JSC$9815_headers_=F;this.JSC$9815_metadata_=h;this.encoding_=c||"binary";p=new _.r_;this.boundary_="uploader-"+wv()+"-"+p.JSC$9075_toIsoString();this.JSC$9815_responseText_=this.JSC$9815_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9815_errorDescription_=null;this.JSC$9815_eventHandler_=new _.ps(this);_.aG(this,this.JSC$9815_eventHandler_)};
_.E(Wjb,svB);_.l=Wjb.prototype;
_.l.run=function(){var p=_.Q5.clone(this.JSC$9815_headers_);this.payload_.length!=null&&(p["Content-Length"]=this.payload_.length);p=zVm(p);p["X-Goog-Upload-Protocol"]="multipart";p["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new qo;this.JSC$9815_eventHandler_.removeAll();this.JSC$9815_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9815_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9815_url_,this.JSC$9815_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9815_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",p)};
_.l.getResponseCode=function(){return this.JSC$9815_responseCode_};
_.l.getResponseText=function(){return this.JSC$9815_responseText_};
_.l.JSC$25579_getErrorDescription=function(){return this.JSC$9815_errorDescription_};
_.l.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9815_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new f4("o")))};
_.l.pause=function(){};
_.l.onTransferProgress_=function(){this.dispatchEvent(new f4("k"))};
_.l.onTransferComplete_=function(p){var x=p.target.getStatus();x===void 0||x===-1?(this.JSC$9815_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new f4("n"))):(this.JSC$9815_responseCode_=x,p=p.target,x=Oy(p.getAllResponseHeaders()),swm(x),this.JSC$9815_responseText_=p.getResponseText(),this.state_="Complete",this.dispatchEvent(new f4("l")))};_.HyD=function(p,x,F,N){N=N===void 0?!1:N;if(F instanceof Xkm)return new n5J(p,"POST",x,F.getInputElement(),"");if(typeof F==="string"||F instanceof String)return new Wjb(p,"POST",x,F,"");var h=new Ze(void 0);h.JSC$9812_url_=p;h.JSC$9812_method_="POST";h.JSC$9812_headers_=x;h.blob_=F;h.originalBlobSize_=F.size;h.JSC$9812_metadata_="";N&&(h.JSC$9812_withCredentials_=N);h.state_="Start";return h};var vf=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(vf,_.Uk);_.l=vf.prototype;_.l.getEnableSsEngine=function(){return _.y8(this,2)};
_.l.getEnableAwr=function(){return _.y8(this,3)};
_.l.getAlohaAutoGaRollout=function(){return _.y8(this,5)};
_.l.getEnableConfigurator=function(){return _.y8(this,6)};
_.l.getEnableMweb=function(){return _.y8(this,7)};
var o5v=function(){var p=m8Z();return _.zZ(p,7,!0)};
vf.prototype.getEnableCtlConsentCheckbox=function(){return _.y8(this,8)};
vf.prototype.getEnableIframe=function(){return _.y8(this,9)};
var m8Z=function(){var p=new vf;p=_.zZ(p,5,!0);p=_.zZ(p,2,!0);p=_.zZ(p,4,!1);p=_.zZ(p,8,!0);return _.zZ(p,9,!0)};
vf.prototype.getEnableScreenshotNudge=function(){return _.y8(this,10)};
var Oyb=function(){var p=o5v();return _.zZ(p,10,!0)};
vf.prototype.getEnableWebStartupConfigEndpoint=function(){return _.y8(this,11)};
vf.prototype.getEnableJunkNudge=function(){return _.y8(this,12)};
var PEp=function(){var p=Oyb();return _.zZ(p,12,!0)};
_.l=vf.prototype;_.l.getEnableConfiguratorLocale=function(){return _.y8(this,13)};
_.l.getEnableTinyNoPointer=function(){return _.y8(this,14)};
_.l.getEnableSupportSessionLogging=function(){return _.y8(this,15)};
_.l.getEnableFileUploadForScreenshot=function(){return _.y8(this,16)};
_.l.getEnableDirectDeflectionForSingleCategory=function(){return _.y8(this,17)};
_.l.getEnableImageSanitization=function(){return _.y8(this,18)};
_.l.getEnableAlohaBinarySplit=function(){return _.y8(this,19)};
_.l.getEnableDbFeedbackIntents=function(){return _.y8(this,20)};
_.l.getEnableMarkMandatoryFieldsWithRequired=function(){return _.y8(this,21)};
_.l.getEnableFeedbackCategoryCustomUi=function(){return _.y8(this,22)};
_.l.getEnableRealtimeCtl=function(){return _.y8(this,23)};var LNJ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(LNJ,_.Uk);var n9M=[/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 bF6="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 AkE=_.B$(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),up$=_.B$(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var wvw,V_$;var jv6,LjD;
jv6=function(p,x,F){p.timeOfStartCall=(new Date).getTime();var N=F||_.Mm,h=N.document,c=p.nonce||_.Pz(N.document);c&&!p.nonce&&(p.nonce=c);if(p.flow=="help"){var M=_.A9("document.location.href",N);!p.helpCenterContext&&M&&(p.helpCenterContext=M.substring(0,1200));M=!0;if(x&&JSON&&JSON.stringify){var f=JSON.stringify(x);(M=f.length<=1200)&&(p.psdJson=f)}M||(x={invalidPsd:!0})}x=[p,x,F];N.GOOGLE_FEEDBACK_START_ARGUMENTS=x;F=p.feedbackServerUri||"//www.google.com/tools/feedback";if(M=N.GOOGLE_FEEDBACK_START)M.apply(N,x);
else{N=F+"/load.js?";for(var K in p)x=p[K],x==null||_.IJ(x)||(N+=encodeURIComponent(K)+"="+encodeURIComponent(x)+"&");p=vm(h).createElement("SCRIPT");c&&p.setAttribute("nonce",c);_.UU(p,_.vz(N));h.body.appendChild(p)}};
LjD=function(p,x,F,N){var h,c;_.D(function(M){h=F||_.Mm;var f=p.serverEnvironment==="DEV",K=F||_.Mm;K=p.nonce||_.Pz(K.document);f={integrationKeys:{productId:p.productId,feedbackBucket:p.bucket,triggerId:p.triggerId},callbacks:{onClose:p.callback,onLoad:p.onLoadCallback},formContent:{locale:p.locale,disableScreenshot:p.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:p.abuseLink,additionalDataConsent:p.additionalDataConsent},initializationData:{isLocalServer:f,nonce:K,useNightlyRelease:f,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:p.feedbackServerUri,colorScheme:p.colorScheme},extraData:{productVersion:p.productVersion,authUser:p.authuser,configuratorId:p.configuratorId,customZIndex:p.customZIndex,tinyNoPointer:p.tinyNoPointer,
allowNonLoggedInFeedback:p.allowNonLoggedInFeedback,enableAnonymousFeedback:p.enableAnonymousFeedback}};x&&(K=new Map(Object.entries(x)),f.extraData.productSpecificData=K);c=f;return _.q(M,o96(c,N,h),0)})};
_.PHJ=function(p,x,F){try{if(p.flow==="help"){var N=p.helpCenterPath.replace(/^\//,"");_.L6(F||window,"https://support.google.com/"+N)}else p.flow==="submit"?jv6(p,x,F):TJB(p.productId,p.feedbackServerUri).then(function(h){h=_.B8(h,vf,1);var c=!rUd||(h==null?void 0:h.getEnableMweb()),M=!p.tinyNoPointer||(h==null?void 0:h.getEnableTinyNoPointer());!h||h.getAlohaAutoGaRollout()&&c&&M?LjD(p,x,F,h):jv6(p,x,F)},function(h){h&&h.name!=="DuplicateFormError"&&jv6(p,x,F)})}catch(h){LjD(p,x,F,null)}};
_.ox("userfeedback.api.startFeedback",_.PHJ);var BJp=/https?:\/\/\S+\.\S+/,RVH=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],k3k=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var Jvr=function(p){var x=p.split(""),F=[-263237435,15,x,function(N,h,c){var M=h.length;c.forEach(function(f,K,t){this.push(t[K]=h[(h.indexOf(f)-h.indexOf(this[K])+K+M--)%h.length])},N.split(""))},
function(N,h){N=(N%h.length+h.length)%h.length;h.splice(-N).reverse().forEach(function(c){h.unshift(c)})},
"response",function(){for(var N=64,h=[];++N-h.length-32;){switch(N){case 58:N-=14;case 91:case 92:case 93:continue;case 123:N=47;case 94:case 95:case 96:continue;case 46:N=95}h.push(String.fromCharCode(N))}return h},
null,12,1540023973,65941107,null,x,function(N,h){for(N=(N%h.length+h.length)%h.length;N--;)h.unshift(h.pop())},
695603893,function(N){for(var h=N.length;h;)N.push(N.splice(--h,1)[0])},
"'[;'[(",function(N,h){N.push(h)},
null,function(N,h,c,M,f){return h(c,M,f)},
"continuation",x,function(N,h){if(N.length!=0){h=(h%N.length+N.length)%N.length;var c=N[0];N[0]=N[h];N[h]=c}},
function(){for(var N=64,h=[];++N-h.length-32;){switch(N){case 91:N=44;continue;case 123:N=65;break;case 65:N-=18;continue;case 58:N=96;continue;case 46:N=95}h.push(String.fromCharCode(N))}return h},
'"),/]];'];F[7]=F;F[11]=F;F[18]=F;try{(((0,F[15])(F[21]),F[22])(F[11],F[9]),F[22])(F[new Date("1970-01-01T04:30:12.000+04:30")/1E3],F[1]),((0,F[22])(F[11],F[23]),F[4])(F[10],F[18]),(0,F[20])(F[21],F[14])<<(0,F[17])(F[18],F[1]),(0,F[4])(F[8],F[21]),(0,F[19])((0,F[19])((0,F[17])(F[7],F[9]),F[3],F[20],(0,F[6])(),F[2]),F[3],F[5],(0,F[15])(),F[2])}catch(N){return"aTlOUOubTO4AP____8P_"+p}return x.join("")};_.TMk=new _.U("runAttestationCommand");var BMb=new _.U("verifyCommand");_.Os=new _.U("accessibilityContext");var R4I=new _.U("accessibilityData");var kaC=new _.U("profileCardCommand");var CZw=new _.U("signInEndpoint");var JXH=new _.U("signOutEndpoint");var iyI;_.U8b=new _.U("accountItemSectionRenderer");iyI=new _.U("accountItemRenderer");_.IRK=new _.U("saveCommandToSessionStorageAction");var $8B=new _.U("crossAccountChannelTransferEndpoint");var dPd=new _.U("getAccountMenuEndpoint");_.vUZ=new _.U("getAccountSwitcherEndpoint");var tIp=new _.U("getAccountsListEndpoint");var e4v=new _.U("getAccountsListInnertubeEndpoint");_.psl=new _.U("addToToastAction");var xi6=new _.U("hideEnclosingAction");_.JS=new _.U("replaceEnclosingAction");_.FZK=new _.U("buttonRefreshAction");var N8b=new _.U("adsControlFlowOpportunityReceivedCommand");var hmn=new _.U("openAdAllowlistInstructionCommand");var lqZ=new _.U("videoMastheadAdPrimaryVideoRenderer");var chC=new _.U("displayAdRenderer");var xWm=new _.U("instreamVideoAdRenderer");_.aqB=new _.U("inFeedAdLayoutRenderer");var Mck=new _.U("sequenceItemInPlayerAdLayoutRenderer");_.DiB=new _.U("adSlotRenderer");var fqv=new _.U("adAvatarViewModel");var KZv=new _.U("adBadgeViewModel");var q1D=new _.U("adButtonViewModel");var C4=new _.U("adImageViewModel");var T2k=new _.U("reelsAdCardButtonedViewModel");var ZiB=new _.U("reelsPlayerOverlayLayoutViewModel");var tcC=new _.U("showSchedulingPanelCommand");var diD=new _.U("backstageCommentsRenderer");var vjv=new _.U("backstageImageRenderer");var Jhl=new _.U("backstagePostRenderer");var CMB=new _.U("postRenderer");var S16=new _.U("sharedPostRenderer");var rh6=new _.U("createBackstagePostEndpoint");var Ejb=new _.U("getPostVideoPreviewEndpoint");var XsI=new _.U("updateBackstagePostEndpoint");var gjK=new _.U("filterChipTransformCommand");var QXn=new _.U("insertRichSectionCommand");var IiB=new _.U("talkToRecsDeselectCommand");var zml=new _.U("talkToRecsNextCommand");var iOZ=new _.U("talkToRecsSelectCommand");var sXv=new _.U("talkToRecsUpdateTextCommand");_.Du=new _.U("browseEndpoint");_.njK=new _.U("confirmDialogEndpoint");var yhC=new _.U("expandOnHoverCardRenderer");var biD=new _.U("lumiereShelfDetailsRenderer");var AhJ=new _.U("revealBusinessEmailCommand");var uqZ=new _.U("validateChannelHandleCommand");var Y1D=new _.U("channelCreationFormEndpoint");var wsC=new _.U("aboutChannelViewModel");var GhI=new _.U("channelThumbnailWithLinkRenderer");var VcK=new _.U("channelCreationServiceEndpoint");var WZ6=new _.U("updateChannelPageSettingsEndpoint");var Sd=function(p){this.delegate=p},rA=function(){Sd.apply(this,arguments)};
_.E(rA,Sd);_.R8.Object.defineProperties(rA.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(p){this.delegate.entityMetadata=p}}});var Hiv=function(){rA.apply(this,arguments)};
_.E(Hiv,rA);Hiv.prototype.getAssociations=function(){return[]};var gbp=new _.U("webThumbnailDetailsExtensionData");var seZ=new _.U("commandContext");var miK=new _.U("addVideoLinkAction");var ojv=new _.U("createPollAction");var OiB=new _.U("hideIdentityChipAction");var jXk=new _.U("openUpdateCommentDialogAction");var E9=new _.U("updateBackstagePollAction");var LZm=new _.U("updateCommentVoteAction");var PMJ=new _.U("commentThreadRenderer");var T8j=function(){rA.apply(this,arguments)};
_.E(T8j,rA);T8j.prototype.getAssociations=function(){return[]};_.B8I=new _.U("commentDialogRenderer");var RmJ=new _.U("updateCommentsSettingsEndpoint");var khn=new _.U("commentViewModel");var Uiv=new _.U("triStateButtonViewModel");var iiB=new _.U("voiceReplyContainerViewModel");_.Zx=new _.U("commandExecutorCommand");var r$=new _.U("emoji");var IqJ=new _.U("updateCreatorChannelInnertubeCommand");_.$iB=new _.U("appendContinuationItemsAction");_.emn=new _.U("changeEngagementPanelVisibilityAction");_.zO=new _.U("continuationCommand");var pvI=new _.U("hideReportedCommentAction");var xsj=new _.U("listMutationCommand");_.X3=new _.U("openPopupAction");var DsJ;_.FNB=new _.U("playlistRemoveVideosAction");_.NJC=new _.U("updatePlaylistAction");_.hVk=new _.U("addToPlaylistCommand");_.l7l=new _.U("endPlaylistCommand");_.ckJ=new _.U("recoverPlaylistCommand");_.a7Z=new _.U("refreshPlaylistCommand");_.M_v=new _.U("refreshFormCommand");DsJ=new _.U("openOnePickAddVideoModalCommand");_.XBM=new _.U("reloadContinuationItemsCommand");_.f7B=new _.U("scrollToEngagementPanelCommand");var KNZ=new _.U("showReloadUiCommand");var qPI=new _.U("undoFeedbackAction");var ZFZ=new _.U("updateButtonAction");var Pwd=new _.U("updateSubscribeButtonAction");var t_j=new _.U("updateToggleAction");_.eq=new _.U("webCommandMetadata");_.gA=new _.U("webHandleServiceEndpointExtension");var Js6=new _.U("webNavigationEndpointData");var dsJ=new _.U("copyLinkCommand");var v9B=new _.U("playlistVotingRefreshPopupCommand");var Jkk=new _.U("selectChipCommand");var CE6=new _.U("setCookieCommand");var SP6=new _.U("setLocalStorageCommand");var rkJ=new _.U("setPrefStorageEntryCommand");var QwI;_.E9m=new _.U("settingsUpdateCheckboxCommand");_.Xv6=new _.U("settingsUpdateTextCommand");_.g9C=new _.U("settingsUpdateOptionsCommand");QwI=new _.U("settingsUpdateSwitchCommand");_.zVI=new _.U("settingsUpdateConnectedAppRendererCommand");var swI=new _.U("updateTextInputFormFieldRendererCommand");var n9v=new _.U("updateToggleButtonStateCommand");var ykl=new _.U("updateUrlParamCommand");var bFJ=new _.U("webSubmitFormCommand");var Ak6=new _.U("channelSwitcherPageRenderer"),upB=new _.U("updateChannelSwitcherPageAction");_.hf=new _.U("continuationItemRenderer");_.Qf=new _.U("richItemRenderer");var YP6=new _.U("richSectionRenderer");_.wvj=new _.U("richShelfRenderer");_.G3k=new _.U("metadataBadgeRenderer");_.V_B=new _.U("multiPageMenuNotificationSectionRenderer");_.WND=new _.U("playlistLoopButtonStateRenderer");var HFb=new _.U("claimLegacyYoutubeChannelEndpoint");var msb=new _.U("getNotificationMenuEndpoint");var o9J=new _.U("getSearchInVideoCommand");_.OFk=new _.U("getTranscriptEndpoint");_.dH=new _.U("signalServiceEndpoint");var jwJ=new _.U("verifyAgeEndpoint");var rvw=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(rvw,_.Uk);rvw.prototype.getPath=function(){return _.uq(this,1)};
rvw.prototype.getValue=function(){return _.uq(this,2)};var LNk=[0,_.RE,-1];var PEZ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(PEZ,_.Uk);var Sxm=_.NM(PEZ,[0,_.kg,LNk]);var TJm=new _.U("dismissalEndpoint");var BJZ=new _.U("elementsCommand");_.XY=new _.U("innertubeCommand");var RVn=new _.U("multipleInlinePlaybackCommand");var p3E=new _.U("loggingDirectives");var TW$={EMBEDDED_PLAYER_MODE_UNKNOWN:"EMBEDDED_PLAYER_MODE_UNKNOWN",EMBEDDED_PLAYER_MODE_DEFAULT:"EMBEDDED_PLAYER_MODE_DEFAULT",EMBEDDED_PLAYER_MODE_PFP:"EMBEDDED_PLAYER_MODE_PFP",EMBEDDED_PLAYER_MODE_PFL:"EMBEDDED_PLAYER_MODE_PFL"};var k3l=new _.U("acknowledgeChannelTouStrikeCommand");var Usn=function(){rA.apply(this,arguments)};
_.E(Usn,rA);Usn.prototype.getAssociations=function(){return[]};var iFD=function(){rA.apply(this,arguments)};
_.E(iFD,rA);iFD.prototype.getAssociations=function(){return[]};var Wt=new _.U("entityBatchUpdate");_.I7B=new _.U("entityUpdateCommand");var $sk=function(){rA.apply(this,arguments)};
_.E($sk,rA);$sk.prototype.getAssociations=function(){var p=[];this.delegate.alternateChannel&&p.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&p.push.apply(p,_.se(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&p.push(this.delegate.oneofChannelEntity);return[].concat(_.se(new Set(p)))};var eVD=function(){rA.apply(this,arguments)};
_.E(eVD,rA);eVD.prototype.getAssociations=function(){var p=[];this.delegate.entryCollection&&p.push(this.delegate.entryCollection);return[].concat(_.se(new Set(p)))};
var pa6=function(){rA.apply(this,arguments)};
_.E(pa6,rA);pa6.prototype.getAssociations=function(){var p=[];this.delegate.parentPlaylist&&p.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var x=_.a(this.delegate.entries),F=x.next();!F.done;F=x.next())p.push.apply(p,_.se((new xhm(F.value)).getAssociations()));return[].concat(_.se(new Set(p)))};
var xhm=function(){Sd.apply(this,arguments)};
_.E(xhm,Sd);xhm.prototype.getAssociations=function(){var p=[];this.delegate.video&&p.push(this.delegate.video);return[].concat(_.se(new Set(p)))};var F3m=function(){rA.apply(this,arguments)};
_.E(F3m,rA);F3m.prototype.getAssociations=function(){var p=[];this.delegate.descriptionEntity&&p.push(this.delegate.descriptionEntity);this.delegate.creators&&p.push.apply(p,_.se(this.delegate.creators));this.delegate.theBiggestFan&&p.push(this.delegate.theBiggestFan);return[].concat(_.se(new Set(p)))};
var NWj=function(){rA.apply(this,arguments)};
_.E(NWj,rA);NWj.prototype.getAssociations=function(){return[]};var hUI=new _.U("fantasyRosterViewModel");var ldm=new _.U("addFollowUpSurveyCommand");var cwb=new _.U("getSurveyCommand");var adK=new _.U("ratingSurveyOptionRenderer");_.ua=new _.U("feedbackEndpoint");var MtK=new _.U("reportHistoryTableCellRenderer"),DhB=new _.U("reportHistoryTableTextCellRenderer"),fdm=new _.U("reportHistoryTableReasonCellRenderer");_.K3D=new _.U("flagEndpoint");var qHK=new _.U("getFlowCommand");var Zqn=new _.U("submitFormWithValidationFlowCommand");var ttv=function(){rA.apply(this,arguments)};
_.E(ttv,rA);ttv.prototype.getAssociations=function(){return[]};var dhb=new _.U("flowFormState");var vfZ=new _.U("gameCardRenderer");var JwI=new _.U("accountLinkingStateChangedCommand");var ClK=function(){rA.apply(this,arguments)};
_.E(ClK,rA);ClK.prototype.getAssociations=function(){return[]};var SHI=new _.U("changeMiniAppPlayStateCommand");var rwk=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(rwk,_.Uk);var zv=[1,2,3];var Efv=[0,zv,RBB,_.kEz,oDB];var Xan=_.NM(rwk,Efv),gfb=_.lg(Efv);var Q$B=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Q$B,_.Uk);var zUj=[0,_.PW,_.RE];var s$B=[0,_.RE];var nfB=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(nfB,_.Uk);var ywn=function(p,x){return _.Rx(p,3,x)};var bqD=_.lg([0,_.iq,zUj,_.iq,s$B]);var AwD=new _.U("miniAppScoreChallengeViewModel");var uQj=new _.U("miniGameCardViewModel");var YHI=new _.U("teaserCardViewModel");var wan=function(){rA.apply(this,arguments)};
_.E(wan,rA);wan.prototype.getAssociations=function(){return[]};_.GkI=new _.U("feedbackItemRenderer");var VtI={UNKNOWN:"UNKNOWN",MY_CHANNEL:"MY_CHANNEL",WATCH_HISTORY:"WATCH_HISTORY",WATCH_HISTORY_CAIRO:"WATCH_HISTORY_CAIRO",WATCH_LATER:"WATCH_LATER",WATCH_LATER_CAIRO:"WATCH_LATER_CAIRO",WATCH_LATER_FILLED:"WATCH_LATER_FILLED",PURCHASES:"PURCHASES",WHAT_TO_WATCH:"WHAT_TO_WATCH",SUBSCRIPTIONS:"SUBSCRIPTIONS",PLAYLISTS:"PLAYLISTS",PLAYLISTS_CAIRO:"PLAYLISTS_CAIRO",OFFLINE:"OFFLINE",OFFLINE_CLOUD:"OFFLINE_CLOUD",OFFLINE_DOWNLOAD:"OFFLINE_DOWNLOAD",OFFLINE_DOWNLOAD_CAIRO:"OFFLINE_DOWNLOAD_CAIRO",OFFLINE_DOWNLOAD_COMPLETE_FILL:"OFFLINE_DOWNLOAD_COMPLETE_FILL",
OFFLINE_DOWNLOADING_ZERO:"OFFLINE_DOWNLOADING_ZERO",OFFLINE_DOWNLOADING_TWENTY:"OFFLINE_DOWNLOADING_TWENTY",OFFLINE_DOWNLOADING_FORTY:"OFFLINE_DOWNLOADING_FORTY",OFFLINE_DOWNLOADING_SIXTY:"OFFLINE_DOWNLOADING_SIXTY",OFFLINE_DOWNLOADING_EIGHTY:"OFFLINE_DOWNLOADING_EIGHTY",OFFLINE_DOWNLOADING_SPINNER:"OFFLINE_DOWNLOADING_SPINNER",OFFLINE_MUSIC_KEY:"OFFLINE_MUSIC_KEY",OFFLINE_REMOVE:"OFFLINE_REMOVE",OFFLINE_RESUME:"OFFLINE_RESUME",OFFLINE_PAUSE:"OFFLINE_PAUSE",OFFLINE_NO_CONTENT:"OFFLINE_NO_CONTENT",
OFFLINE_NO_CONTENT_UPSIDE_DOWN:"OFFLINE_NO_CONTENT_UPSIDE_DOWN",OFFLINE_PIN:"OFFLINE_PIN",OFFLINE_COMMUTE:"OFFLINE_COMMUTE",CAPTURE:"CAPTURE",UPLOADS:"UPLOADS",SOCIAL:"SOCIAL",BROWSE_CHANNELS:"BROWSE_CHANNELS",SUBSCRIPTION_MANAGER:"SUBSCRIPTION_MANAGER",FAVORITES:"FAVORITES",INBOX:"INBOX",LIKES_PLAYLIST:"LIKES_PLAYLIST",LIKES_PLAYLIST_CAIRO:"LIKES_PLAYLIST_CAIRO",MIX:"MIX",COLLECTION:"COLLECTION",EXPAND:"EXPAND",EXPAND_CAIRO:"EXPAND_CAIRO",COLLAPSE:"COLLAPSE",COLLAPSE_CAIRO:"COLLAPSE_CAIRO",MUSIC:"MUSIC",
MUSIC_CAIRO:"MUSIC_CAIRO",NO_OFFLINE_VIDEOS:"NO_OFFLINE_VIDEOS",NO_OFFLINE_PLAYLISTS:"NO_OFFLINE_PLAYLISTS",MUSIC_PASS_BADGE:"MUSIC_PASS_BADGE",PLAYLIST_ORDER:"PLAYLIST_ORDER",SHOWS:"SHOWS",EDUCATION:"EDUCATION",TIP_JAR:"TIP_JAR",TIP_JAR_LOVE:"TIP_JAR_LOVE",NOTIFICATIONS_INBOX:"NOTIFICATIONS_INBOX",BACK:"BACK",PAID:"PAID",POPULAR:"POPULAR",EXPLORE:"EXPLORE",CREATOR_STUDIO:"CREATOR_STUDIO",EDIT:"EDIT",CANCEL:"CANCEL",CREATOR_ANALYTICS:"CREATOR_ANALYTICS",CREATOR_COMMENTS:"CREATOR_COMMENTS",CREATOR_DASHBOARD:"CREATOR_DASHBOARD",
CREATOR_VIDEO_MANAGER:"CREATOR_VIDEO_MANAGER",CREATOR_VIEWER_LINK:"CREATOR_VIEWER_LINK",CREATOR_EXTERNAL_SHORTCUT:"CREATOR_EXTERNAL_SHORTCUT",CREATOR_SETTINGS:"CREATOR_SETTINGS",CREATOR_PLAYLISTS:"CREATOR_PLAYLISTS",CREATOR_METADATA_BASIC:"CREATOR_METADATA_BASIC",CREATOR_METADATA_MONETIZATION:"CREATOR_METADATA_MONETIZATION",CREATOR_METADATA_MONETIZATION_OFF:"CREATOR_METADATA_MONETIZATION_OFF",CREATOR_METADATA_ADVANCED:"CREATOR_METADATA_ADVANCED",SETTINGS:"SETTINGS",SETTINGS_CAIRO:"SETTINGS_CAIRO",
SETTINGS_LIGHT:"SETTINGS_LIGHT",SETTINGS_MATERIAL:"SETTINGS_MATERIAL",EXPERIMENT:"EXPERIMENT",REMOVE_FROM_HISTORY:"REMOVE_FROM_HISTORY",ADD_TO_PLAYLIST:"ADD_TO_PLAYLIST",REMOVE_FROM_PLAYLIST:"REMOVE_FROM_PLAYLIST",SHARE:"SHARE",INFO:"INFO",INFO_OUTLINE:"INFO_OUTLINE",CAPTIONS:"CAPTIONS",LIKE:"LIKE",DISLIKE:"DISLIKE",LIKE_SELECTED:"LIKE_SELECTED",DISLIKE_SELECTED:"DISLIKE_SELECTED",FLAG:"FLAG",FLAG_CAIRO:"FLAG_CAIRO",FLAG_OUTLINE:"FLAG_OUTLINE",HIDE:"HIDE",UNSUBSCRIBE:"UNSUBSCRIBE",DELETE:"DELETE",
DELETE_LIGHT:"DELETE_LIGHT",DELETE_SWEEP:"DELETE_SWEEP",REMOVE:"REMOVE",OFFLINE_ADD:"OFFLINE_ADD",QUESTION_CIRCLE:"QUESTION_CIRCLE",SAVE_PLAYLIST:"SAVE_PLAYLIST",ADD_TO_WATCH_LATER:"ADD_TO_WATCH_LATER",SEARCH:"SEARCH",SEARCH_CAIRO:"SEARCH_CAIRO",SEARCH_WITH_CIRCLE:"SEARCH_WITH_CIRCLE",SEARCH_FILLED:"SEARCH_FILLED",SEARCH_BOLD:"SEARCH_BOLD",SEARCH_TAB_LARGE:"SEARCH_TAB_LARGE",VOICE_SEARCH:"VOICE_SEARCH",VOICE_SEARCH_WHITE:"VOICE_SEARCH_WHITE",VOICE_SEARCH_WITH_CIRCLE:"VOICE_SEARCH_WITH_CIRCLE",SEARCH_HISTORY:"SEARCH_HISTORY",
SIGN_IN:"SIGN_IN",VIEW_ALL:"VIEW_ALL",ADD_TO_REMOTE_QUEUE:"ADD_TO_REMOTE_QUEUE",TRASH:"TRASH",EXPLORE_DESTINATION:"EXPLORE_DESTINATION",SHORTS_DESTINATION:"SHORTS_DESTINATION",TAB_EXPLORE:"TAB_EXPLORE",TAB_HOME:"TAB_HOME",TAB_HOME_CAIRO:"TAB_HOME_CAIRO",TAB_SUBSCRIPTIONS:"TAB_SUBSCRIPTIONS",TAB_SUBSCRIPTIONS_CAIRO:"TAB_SUBSCRIPTIONS_CAIRO",TAB_TRENDING:"TAB_TRENDING",TAB_LIBRARY:"TAB_LIBRARY",TAB_MORE:"TAB_MORE",TAB_ACCOUNT:"TAB_ACCOUNT",TAB_SHARES:"TAB_SHARES",TAB_ACTIVITY:"TAB_ACTIVITY",TAB_ACTIVITY_CAIRO:"TAB_ACTIVITY_CAIRO",
TAB_INBOX:"TAB_INBOX",TAB_HISTORY:"TAB_HISTORY",TAB_LIKED:"TAB_LIKED",TAB_COLLECT:"TAB_COLLECT",TAB_LIVE:"TAB_LIVE",TAB_MUSIC_PREMIUM:"TAB_MUSIC_PREMIUM",TAB_SHORTS:"TAB_SHORTS",TAB_SHORTS_CAIRO:"TAB_SHORTS_CAIRO",TAB_SAMPLES:"TAB_SAMPLES",EMPTY_LIKE:"EMPTY_LIKE",CLOCK:"CLOCK",CLOCK_FILLED:"CLOCK_FILLED",CONVERSATION_JOIN:"CONVERSATION_JOIN",CONVERSATION_LEAVE:"CONVERSATION_LEAVE",CONVERSATION_RENAME:"CONVERSATION_RENAME",MONETIZATION_MONETIZABLE:"MONETIZATION_MONETIZABLE",MONETIZATION_MONETIZED:"MONETIZATION_MONETIZED",
MONETIZATION_NOT_MONETIZABLE:"MONETIZATION_NOT_MONETIZABLE",MONETIZATION_PENDING:"MONETIZATION_PENDING",MONETIZATION_REQUIRES_ACTION:"MONETIZATION_REQUIRES_ACTION",MONETIZATION_REVSHARED:"MONETIZATION_REVSHARED",WATCH_RELATED_MIX:"WATCH_RELATED_MIX",WATCH_RELATED_PLAYLIST:"WATCH_RELATED_PLAYLIST",HELP:"HELP",HELP_CAIRO:"HELP_CAIRO",PRIVACY_PRIVATE:"PRIVACY_PRIVATE",PRIVACY_PUBLIC:"PRIVACY_PUBLIC",PRIVACY_UNLISTED:"PRIVACY_UNLISTED",PRIVACY_SCHEDULED:"PRIVACY_SCHEDULED",PLAY_ALL:"PLAY_ALL",CREATOR_CAPTURE_LINK:"CREATOR_CAPTURE_LINK",
DISMISSAL:"DISMISSAL",CHANNELS_HOME_TAB:"CHANNELS_HOME_TAB",CHANNELS_FEED_TAB:"CHANNELS_FEED_TAB",VERY_HAPPY:"VERY_HAPPY",HAPPY:"HAPPY",MEH:"MEH",SAD:"SAD",VERY_SAD:"VERY_SAD",YOUTUBE:"YOUTUBE",YOUTUBE_LOGO:"YOUTUBE_LOGO",YOUTUBE_LOGO_LIGHT:"YOUTUBE_LOGO_LIGHT",YOUTUBE_RED_LOGO:"YOUTUBE_RED_LOGO",YOUTUBE_RED_LOGO_SHORT:"YOUTUBE_RED_LOGO_SHORT",YOUTUBE_RED_LOGO_LIGHT:"YOUTUBE_RED_LOGO_LIGHT",YOUTUBE_RED_LOGO_WHITE_TEXT:"YOUTUBE_RED_LOGO_WHITE_TEXT",YOUTUBE_PLUS_LOGO:"YOUTUBE_PLUS_LOGO",YOUTUBE_PLUS_LOGO_SHORT:"YOUTUBE_PLUS_LOGO_SHORT",
YOUTUBE_PLUS_LOGO_LIGHT:"YOUTUBE_PLUS_LOGO_LIGHT",YOUTUBE_MUSIC_LOGO_SHORT:"YOUTUBE_MUSIC_LOGO_SHORT",YOUTUBE_MUSIC_LOGO_WHITE_TEXT:"YOUTUBE_MUSIC_LOGO_WHITE_TEXT",YOUTUBE_PREMIERE_LOGO_SHORT:"YOUTUBE_PREMIERE_LOGO_SHORT",YOUTUBE_PREMIUM_LOGO:"YOUTUBE_PREMIUM_LOGO",YOUTUBE_PREMIUM_LOGO_SHORT:"YOUTUBE_PREMIUM_LOGO_SHORT",YOUTUBE_SHORTS_ARROW_UP:"YOUTUBE_SHORTS_ARROW_UP",YOUTUBE_SHORTS_ARROW_DOWN:"YOUTUBE_SHORTS_ARROW_DOWN",YOUTUBE_SHORTS_OUTLINE_16:"YOUTUBE_SHORTS_OUTLINE_16",YOUTUBE_SHORTS_OUTLINE_20:"YOUTUBE_SHORTS_OUTLINE_20",
YOUTUBE_SHORTS_OUTLINE_24:"YOUTUBE_SHORTS_OUTLINE_24",YOUTUBE_SHORTS_FILL_16:"YOUTUBE_SHORTS_FILL_16",YOUTUBE_SHORTS_FILL_20:"YOUTUBE_SHORTS_FILL_20",YOUTUBE_SHORTS_FILL_24:"YOUTUBE_SHORTS_FILL_24",YOUTUBE_SHORTS_BRAND_24:"YOUTUBE_SHORTS_BRAND_24",YOUTUBE_SHORTS_BRAND_32:"YOUTUBE_SHORTS_BRAND_32",YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21:"YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16",
YOUTUBE_TV:"YOUTUBE_TV",YOUTUBE_WHITE:"YOUTUBE_WHITE",YOUTUBE_KIDS:"YOUTUBE_KIDS",YOUTUBE_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK",MONETIZATION_ON:"MONETIZATION_ON",SORT_NEWEST:"SORT_NEWEST",SORT_MOST_VIEWED:"SORT_MOST_VIEWED",VIDEO_QUALITY:"VIDEO_QUALITY",
VIDEO_QUALITY_4K:"VIDEO_QUALITY_4K",VIDEO_QUALITY_4K_FILLED:"VIDEO_QUALITY_4K_FILLED",VIDEO_QUALITY_8K:"VIDEO_QUALITY_8K",VIDEO_QUALITY_SD:"VIDEO_QUALITY_SD",FEEDBACK:"FEEDBACK",FEEDBACK_CAIRO:"FEEDBACK_CAIRO",PRIVACY_INFO:"PRIVACY_INFO",SHARE_LIGHT:"SHARE_LIGHT",SHARE_ARROW:"SHARE_ARROW",SHARE_ARROW_LIGHT:"SHARE_ARROW_LIGHT",SHARE_CAIRO:"SHARE_CAIRO",IOS_SHARE:"IOS_SHARE",CREATE_PLAYLIST:"CREATE_PLAYLIST",UNLIMITED:"UNLIMITED",EMPTY_HEART:"EMPTY_HEART",FULL_HEART:"FULL_HEART",UNLIMITED_LOGO:"UNLIMITED_LOGO",
RELATED:"RELATED",PLAYING:"PLAYING",REPORT_PROBLEM:"REPORT_PROBLEM",BUG_REPORT:"BUG_REPORT",INLINE_PLAYBACK_SETTINGS:"INLINE_PLAYBACK_SETTINGS",REPLAY:"REPLAY",REFRESH:"REFRESH",REDEEM:"REDEEM",SWITCH_ACCOUNTS:"SWITCH_ACCOUNTS",SHUFFLE:"SHUFFLE",MUSIC_SHUFFLE:"MUSIC_SHUFFLE",LOOP:"LOOP",LOOP_ACTIVE:"LOOP_ACTIVE",LOOP_ONE:"LOOP_ONE",LOOP_ONE_ACTIVE:"LOOP_ONE_ACTIVE",ACCOUNT_CIRCLE:"ACCOUNT_CIRCLE",ACCOUNT_CIRCLE_CAIRO:"ACCOUNT_CIRCLE_CAIRO",ACCOUNT_BOX:"ACCOUNT_BOX",ACCOUNT_BOX_CAIRO:"ACCOUNT_BOX_CAIRO",
OPEN_IN_NEW:"OPEN_IN_NEW",OPEN_WITH:"OPEN_WITH",CAST_ICON:"CAST_ICON",CAST_OUTLINE:"CAST_OUTLINE",CAST_MOBILE:"CAST_MOBILE",DISCONNECTED_CAST_CIRCLE:"DISCONNECTED_CAST_CIRCLE",SHORTS_COMMENT:"SHORTS_COMMENT",SHORTS_DISLIKE:"SHORTS_DISLIKE",SHORTS_LIKE:"SHORTS_LIKE",SHORTS_SHARE:"SHORTS_SHARE",SHORTS_HEADER_CAMERA:"SHORTS_HEADER_CAMERA",SHORTS_HEADER_CAMERA_BOLD:"SHORTS_HEADER_CAMERA_BOLD",SHORTS_LIKE_SELECTED:"SHORTS_LIKE_SELECTED",SHORTS_DISLIKE_SELECTED:"SHORTS_DISLIKE_SELECTED",SHORTS_SAVE_OFF:"SHORTS_SAVE_OFF",
SHORTS_SAVE_ON:"SHORTS_SAVE_ON",SHORTS_SEARCH:"SHORTS_SEARCH",ADD_FRIEND:"ADD_FRIEND",ADD_MORE_FRIENDS:"ADD_MORE_FRIENDS",ACCEPT_FRIEND_INVITE:"ACCEPT_FRIEND_INVITE",DECLINE_FRIEND_INVITE:"DECLINE_FRIEND_INVITE",CANCEL_FRIEND_INVITE:"CANCEL_FRIEND_INVITE",BLOCK_USER:"BLOCK_USER",UNBLOCK_USER:"UNBLOCK_USER",VIEW_PARTICIPANTS:"VIEW_PARTICIPANTS",INVITE_TO_CONVERSATION:"INVITE_TO_CONVERSATION",LIVE:"LIVE",LIVE_CAIRO:"LIVE_CAIRO",SPECIAL:"SPECIAL",HOME:"HOME",HOME_FILLED:"HOME_FILLED",STAFF_PICK:"STAFF_PICK",
REVIEW:"REVIEW",LETS_PLAY:"LETS_PLAY",MORE_FROM_PUBLISHER:"MORE_FROM_PUBLISHER",NEWS:"NEWS",NEWS_CAIRO:"NEWS_CAIRO",TRAILER:"TRAILER",NEW_RELEASE:"NEW_RELEASE",TOURNAMENTS:"TOURNAMENTS",SPEED_RUN:"SPEED_RUN",EVENT:"EVENT",EVENT_LIGHT:"EVENT_LIGHT",TUTORIAL:"TUTORIAL",GAMES:"GAMES",RECOMMENDED:"RECOMMENDED",TRENDING_UP:"TRENDING_UP",VIDEOS:"VIDEOS",FASHION_LOGO:"FASHION_LOGO",FASHION_LOGO_CAIRO:"FASHION_LOGO_CAIRO",TERMS_OF_SERVICE:"TERMS_OF_SERVICE",CONTACT:"CONTACT",COLORED_GAMING_LOGO:"COLORED_GAMING_LOGO",
GAMING_LOGO:"GAMING_LOGO",GAMING_LOGO_CAIRO:"GAMING_LOGO_CAIRO",CHANNEL_NOTIFICATION_PREFERENCE_OFF:"CHANNEL_NOTIFICATION_PREFERENCE_OFF",CHANNEL_NOTIFICATION_PREFERENCE_ON:"CHANNEL_NOTIFICATION_PREFERENCE_ON",PLAYLIST_NOTIFICATION_PREFERENCE_OFF:"PLAYLIST_NOTIFICATION_PREFERENCE_OFF",PLAYLIST_NOTIFICATION_PREFERENCE_ON:"PLAYLIST_NOTIFICATION_PREFERENCE_ON",NOTIFICATIONS:"NOTIFICATIONS",NOTIFICATIONS_CAIRO:"NOTIFICATIONS_CAIRO",NOTIFICATIONS_OFF:"NOTIFICATIONS_OFF",NOTIFICATIONS_OFF_OUTLINE:"NOTIFICATIONS_OFF_OUTLINE",
NOTIFICATIONS_DONE_CHECKMARK:"NOTIFICATIONS_DONE_CHECKMARK",MUSIC_AUTO_OFFLINE_BADGE:"MUSIC_AUTO_OFFLINE_BADGE",MUSIC_EXPLICIT_BADGE:"MUSIC_EXPLICIT_BADGE",MUSIC_NOTIFICATIONS_SETTING:"MUSIC_NOTIFICATIONS_SETTING",NOTIFICATIONS_NONE:"NOTIFICATIONS_NONE",NOTIFICATIONS_ACTIVE:"NOTIFICATIONS_ACTIVE",NOTIFICATIONS_OCCASIONAL:"NOTIFICATIONS_OCCASIONAL",SEND:"SEND",SEND_OUTLINE:"SEND_OUTLINE",SLOW_MODE:"SLOW_MODE",SLOW_MODE_OFF:"SLOW_MODE_OFF",STORIES_ADD_BADGE:"STORIES_ADD_BADGE",SUPER_CHAT_FOR_GOOD:"SUPER_CHAT_FOR_GOOD",
MEMBERS_ONLY_MODE:"MEMBERS_ONLY_MODE",MEMBERS_ONLY_MODE_OFF:"MEMBERS_ONLY_MODE_OFF",INVITE_ONLY_MODE:"INVITE_ONLY_MODE",INVITE_ONLY_MODE_OFF:"INVITE_ONLY_MODE_OFF",EMOJI:"EMOJI",EMOJI_ACTIVITIES:"EMOJI_ACTIVITIES",EMOJI_CUSTOM:"EMOJI_CUSTOM",EMOJI_FLAGS:"EMOJI_FLAGS",EMOJI_FOOD:"EMOJI_FOOD",EMOJI_NATURE:"EMOJI_NATURE",EMOJI_OBJECTS:"EMOJI_OBJECTS",EMOJI_PEOPLE:"EMOJI_PEOPLE",EMOJI_RECENT:"EMOJI_RECENT",EMOJI_SYMBOLS:"EMOJI_SYMBOLS",EMOJI_TRAVEL:"EMOJI_TRAVEL",EMOJI_SPONSORSHIPS:"EMOJI_SPONSORSHIPS",
HEART_BOX:"HEART_BOX",MEDAL_STAR:"MEDAL_STAR",SUPERSTAR:"SUPERSTAR",TROPHY_STAR:"TROPHY_STAR",MESSAGE_BUBBLE_GEAR:"MESSAGE_BUBBLE_GEAR",MESSAGE_BUBBLE_LEFT:"MESSAGE_BUBBLE_LEFT",MESSAGE_BUBBLE_LEFT_BOOST:"MESSAGE_BUBBLE_LEFT_BOOST",MONEY_FILL:"MONEY_FILL",MONEY_FILL_JPY:"MONEY_FILL_JPY",MONEY_FILL_STORE:"MONEY_FILL_STORE",MONEY_FILL_SHOPPING_BAG:"MONEY_FILL_SHOPPING_BAG",MONEY_FILL_MORE_ARROW:"MONEY_FILL_MORE_ARROW",MONEY_HEART:"MONEY_HEART",FILL_DOLLAR_SIGN_HEART_12:"FILL_DOLLAR_SIGN_HEART_12",PURCHASE_SPONSORSHIP:"PURCHASE_SPONSORSHIP",
PURCHASE_SUPER_CHAT:"PURCHASE_SUPER_CHAT",PURCHASE_SUPER_STICKER:"PURCHASE_SUPER_STICKER",SUPER_STICKER:"SUPER_STICKER",REDEEM_SUPER_CHAT_FREEBIE:"REDEEM_SUPER_CHAT_FREEBIE",STICKER_GHOST_CARD:"STICKER_GHOST_CARD",DOLLAR_SIGN_CIRCLE:"DOLLAR_SIGN_CIRCLE",OWNER:"OWNER",MODERATOR:"MODERATOR",YOUTUBE_TEAM:"YOUTUBE_TEAM",VERIFIED:"VERIFIED",MEMBER:"MEMBER",FAB_UPLOAD:"FAB_UPLOAD",FAB_CAMERA:"FAB_CAMERA",BACKGROUND_SIGNED_OUT:"BACKGROUND_SIGNED_OUT",BACKGROUND_SUBSCRIBE:"BACKGROUND_SUBSCRIBE",BACKGROUND_SUBSCRIBE_TRANSPARENT:"BACKGROUND_SUBSCRIBE_TRANSPARENT",
ARTIST:"ARTIST",ARTIST_ANALYTICS:"ARTIST_ANALYTICS",ASSESSMENT:"ASSESSMENT",CREDIT_CARD:"CREDIT_CARD",GET_APP:"GET_APP",LIVE_CHECKLIST:"LIVE_CHECKLIST",MEMBERSHIP_PRE_PURCHASE:"MEMBERSHIP_PRE_PURCHASE",MEMBERSHIP_LIMITED_PRE_PURCHASE:"MEMBERSHIP_LIMITED_PRE_PURCHASE",MEMBERSHIP_POST_PURCHASE:"MEMBERSHIP_POST_PURCHASE",MEMBERSHIP_LIMITED_POST_PURCHASE:"MEMBERSHIP_LIMITED_POST_PURCHASE",MEMBERSHIP_OFFER:"MEMBERSHIP_OFFER",MEMBERSHIP_MANAGE:"MEMBERSHIP_MANAGE",MEMBERSHIP_CANCELED:"MEMBERSHIP_CANCELED",
MEMBERSHIP_PURCHASED:"MEMBERSHIP_PURCHASED",PHONE:"PHONE",SMS:"SMS",FAVORITE:"FAVORITE",UNFAVORITE:"UNFAVORITE",NEXT:"NEXT",REPOST:"REPOST",EXTERNAL_LINK:"EXTERNAL_LINK",LANGUAGE:"LANGUAGE",CLOSED_CAPTION:"CLOSED_CAPTION",CLOSED_CAPTION_SELECTED:"CLOSED_CAPTION_SELECTED",VIEW_LIST:"VIEW_LIST",VIEW_LIST_CAIRO:"VIEW_LIST_CAIRO",VIEW_LIST_DARK:"VIEW_LIST_DARK",VIEW_MODULE:"VIEW_MODULE",VIEW_MODULE_DARK:"VIEW_MODULE_DARK",VERTICAL_ALIGN_BOTTOM:"VERTICAL_ALIGN_BOTTOM",VERTICAL_ALIGN_TOP:"VERTICAL_ALIGN_TOP",
MUSIC_UNAVAILABLE:"MUSIC_UNAVAILABLE",NO_CONVERSATIONS:"NO_CONVERSATIONS",ALERT_WARN_RED:"ALERT_WARN_RED",ALERT_WARN_YELLOW:"ALERT_WARN_YELLOW",WARNING:"WARNING",SORT:"SORT",FILTER:"FILTER",KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE",KIDS_SCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_SCHOOL_CONTENT_AGE_PREFERENCE",KIDS_NO_CONTENT_AGE_PREFERENCE:"KIDS_NO_CONTENT_AGE_PREFERENCE",SPACECAST:"SPACECAST",SCHOOL:"SCHOOL",ACCELERATOR:"ACCELERATOR",TRENDING:"TRENDING",TRENDING_CAIRO:"TRENDING_CAIRO",
PAUSE_FILLED:"PAUSE_FILLED",PAUSE_OUTLINED:"PAUSE_OUTLINED",PHOTO_CAMERA:"PHOTO_CAMERA",PHOTO_CAMERA_LIGHT:"PHOTO_CAMERA_LIGHT",PHOTO_CAMERA_OUTLINE:"PHOTO_CAMERA_OUTLINE",PHOTO_CAMERA_OUTLINE_LARGE:"PHOTO_CAMERA_OUTLINE_LARGE",PHOTO_LIBRARY:"PHOTO_LIBRARY",COPYRIGHT_NOTIFICATION_RED:"COPYRIGHT_NOTIFICATION_RED",COPYRIGHT_NOTIFICATION_BLUE:"COPYRIGHT_NOTIFICATION_BLUE",PLAYLIST_ADD:"PLAYLIST_ADD",PLAYLIST_ADD_CHECK:"PLAYLIST_ADD_CHECK",CHANNEL_BACK:"CHANNEL_BACK",STAR:"STAR",STAR_FILLED:"STAR_FILLED",
STAR_BORDER:"STAR_BORDER",STAR_HALF:"STAR_HALF",CLOSE:"CLOSE",CLOSE_LIGHT:"CLOSE_LIGHT",COUNTDOWN_TO_CLOSE:"COUNTDOWN_TO_CLOSE",COUNTDOWN_TO_CLOSE_DIGIT:"COUNTDOWN_TO_CLOSE_DIGIT",CHECK:"CHECK",TOPIC_EXPLORER_EXPAND_FACET:"TOPIC_EXPLORER_EXPAND_FACET",TOPIC_EXPLORER_COLLAPSE_FACET:"TOPIC_EXPLORER_COLLAPSE_FACET",CLEAR_COOKIES:"CLEAR_COOKIES",CLEAR_WATCH_HISTORY:"CLEAR_WATCH_HISTORY",CLEAR_SEARCH_HISTORY:"CLEAR_SEARCH_HISTORY",CHEVRON_RIGHT:"CHEVRON_RIGHT",CHEVRON_RIGHT_CAIRO:"CHEVRON_RIGHT_CAIRO",
CHEVRON_RIGHT_GREY:"CHEVRON_RIGHT_GREY",CHEVRON_LEFT:"CHEVRON_LEFT",SUBSCRIBE:"SUBSCRIBE",SUBSCRIBE_PLUS:"SUBSCRIBE_PLUS",GO_TO_PAGE:"GO_TO_PAGE",DO_NOT_DISTURB:"DO_NOT_DISTURB",ADD_TO_LIBRARY:"ADD_TO_LIBRARY",REMOVE_FROM_LIBRARY:"REMOVE_FROM_LIBRARY",UP_ARROW:"UP_ARROW",DOWN_ARROW:"DOWN_ARROW",DOWN_ARROW_OUTLINE:"DOWN_ARROW_OUTLINE",EMPTY_STATE_CREATE_VIDEO:"EMPTY_STATE_CREATE_VIDEO",EMPTY_STATE_ORGANIZE_CHANNEL:"EMPTY_STATE_ORGANIZE_CHANNEL",EMPTY_STATE_NO_CONTENT:"EMPTY_STATE_NO_CONTENT",EMPTY_STATE_PRIVATE_CONTENT:"EMPTY_STATE_PRIVATE_CONTENT",
BUY_DATA:"BUY_DATA",SHOPPING_CART:"SHOPPING_CART",ARROW_FLIP:"ARROW_FLIP",RESTORE:"RESTORE",ARROW_DIAGONAL:"ARROW_DIAGONAL",CONSENT_SHIELD:"CONSENT_SHIELD",COMMENT:"COMMENT",START_DVR:"START_DVR",STOP_DVR:"STOP_DVR",CHAT:"CHAT",CHAT_OFF:"CHAT_OFF",CHAT_BUBBLE:"CHAT_BUBBLE",CHAT_BUBBLE_LIGHT:"CHAT_BUBBLE_LIGHT",CHAT_BUBBLE_OFF:"CHAT_BUBBLE_OFF",CHAT_SPARK:"CHAT_SPARK",CHAT_SPONSORED:"CHAT_SPONSORED",VOICE_CHAT:"VOICE_CHAT",SPONSORSHIP_STAR:"SPONSORSHIP_STAR",SPONSORSHIPS:"SPONSORSHIPS",SPONSORSHIPS_NO_BG:"SPONSORSHIPS_NO_BG",
PLAY_ARROW:"PLAY_ARROW",PLAY_ARROW_OUTLINED:"PLAY_ARROW_OUTLINED",PLAY_ARROW_CIRCLE:"PLAY_ARROW_CIRCLE",PLAY_CIRCLE:"PLAY_CIRCLE",PLAY_ARROW_OVERLAY:"PLAY_ARROW_OVERLAY",PLAY_OUTLINED:"PLAY_OUTLINED",CHECK_CIRCLE:"CHECK_CIRCLE",CHECK_CIRCLE_BLUE:"CHECK_CIRCLE_BLUE",CHECK_CIRCLE_OUTLINE:"CHECK_CIRCLE_OUTLINE",CHECK_CIRCLE_THICK:"CHECK_CIRCLE_THICK",CHECK_CIRCLE_FILLED:"CHECK_CIRCLE_FILLED",COPY:"COPY",QUEUE_PLAY_NEXT:"QUEUE_PLAY_NEXT",QUEUE_PLAY_LAST:"QUEUE_PLAY_LAST",QUEUE_MUSIC:"QUEUE_MUSIC",CARDBOARD:"CARDBOARD",
PLANNER_REVIEW:"PLANNER_REVIEW",MORE_VERT:"MORE_VERT",MORE_VERT_BOLD:"MORE_VERT_BOLD",MORE_HORIZ_LIGHT:"MORE_HORIZ_LIGHT",MORE_HORIZ:"MORE_HORIZ",ANDROID_PHONE:"ANDROID_PHONE",ADD:"ADD",ADD_BOLD:"ADD_BOLD",ADD_SMALL:"ADD_SMALL",EXIT_APP:"EXIT_APP",IM_FEELING_LUCKY:"IM_FEELING_LUCKY",PUBLIC:"PUBLIC",MESSAGE:"MESSAGE",MOBILE_LANDSCAPE:"MOBILE_LANDSCAPE",MOBILE_PORTRAIT:"MOBILE_PORTRAIT",STAY_CURRENT_LANDSCAPE:"STAY_CURRENT_LANDSCAPE",STAY_CURRENT_PORTRAIT:"STAY_CURRENT_PORTRAIT",BUILD:"BUILD",INPUT_COMPONENT:"INPUT_COMPONENT",
DOGFOOD:"DOGFOOD",KEEP:"KEEP",KEEP_OFF:"KEEP_OFF",DASHBOARD:"DASHBOARD",SPORTS:"SPORTS",SUBTITLES:"SUBTITLES",QUESTION_ANSWER:"QUESTION_ANSWER",IMPORT_CONTACTS:"IMPORT_CONTACTS",VIDEO_CALL:"VIDEO_CALL",VIDEO_CAMERA:"VIDEO_CAMERA",VIDEO_CAMERA_DISABLED:"VIDEO_CAMERA_DISABLED",VIDEO_CAMERA_SWITCH_LIGHT:"VIDEO_CAMERA_SWITCH_LIGHT",BACK_LIGHT:"BACK_LIGHT",FILTER_EFFECT_LIGHT:"FILTER_EFFECT_LIGHT",MICROPHONE_ON:"MICROPHONE_ON",MICROPHONE_OFF:"MICROPHONE_OFF",FLASH_ON:"FLASH_ON",FLASH_OFF:"FLASH_OFF",LINK:"LINK",
LIVE_UNLISTED:"LIVE_UNLISTED",PAYMENT:"PAYMENT",ADD_CIRCLE:"ADD_CIRCLE",SMARTPHONE:"SMARTPHONE",SCREEN_LOCK_PORTRAIT:"SCREEN_LOCK_PORTRAIT",SCREEN_LOCK_LANDSCAPE:"SCREEN_LOCK_LANDSCAPE",KIDS_REPORT_AUDIO:"KIDS_REPORT_AUDIO",KIDS_REPORT_VISUALS:"KIDS_REPORT_VISUALS",KIDS_REPORT_OTHER:"KIDS_REPORT_OTHER",KIDS_BLOCK:"KIDS_BLOCK",KIDS_BLOCK_LIGHT:"KIDS_BLOCK_LIGHT",AVATAR_ANONYMOUS:"AVATAR_ANONYMOUS",AVATAR_LOGGED_OUT:"AVATAR_LOGGED_OUT",HALLOWEEN:"HALLOWEEN",UPLOAD:"UPLOAD",MY_LOCATION:"MY_LOCATION",
MUSIC_VIDEO:"MUSIC_VIDEO",PLAYLIST_PLAY:"PLAYLIST_PLAY",ALBUM:"ALBUM",LOGGED_OUT_SUBS:"LOGGED_OUT_SUBS",LOGGED_OUT_LIBRARY:"LOGGED_OUT_LIBRARY",LOGGED_OUT_ACCOUNT:"LOGGED_OUT_ACCOUNT",FUSION_V2_FSI:"FUSION_V2_FSI",PERSON:"PERSON",PERSON_ADD:"PERSON_ADD",PERSON_ACCOUNT:"PERSON_ACCOUNT",PERSON_CIRCLE:"PERSON_CIRCLE",PERSON_MINUS:"PERSON_MINUS",PERSON_RADAR:"PERSON_RADAR",PERSON_RADAR_FILLED:"PERSON_RADAR_FILLED",PERSON_SETTING:"PERSON_SETTING",MOVIES:"MOVIES",CLAPPERBOARD:"CLAPPERBOARD",CLAPPERBOARD_CAIRO:"CLAPPERBOARD_CAIRO",
MOVIES_BLUE:"MOVIES_BLUE",ROTTEN_TOMATOES_FRESH:"ROTTEN_TOMATOES_FRESH",ROTTEN_TOMATOES_SPLAT:"ROTTEN_TOMATOES_SPLAT",ROTTEN_TOMATOES_CERTIFIED:"ROTTEN_TOMATOES_CERTIFIED",WINTER:"WINTER",HOURGLASS:"HOURGLASS",REMOVE_CIRCLE:"REMOVE_CIRCLE",YOUTUBE_RED_ORIGINALS:"YOUTUBE_RED_ORIGINALS",VIDEO_YOUTUBE_RED:"VIDEO_YOUTUBE_RED",ACCESS_TIME:"ACCESS_TIME",ERROR_OUTLINE:"ERROR_OUTLINE",ERROR_WHITE:"ERROR_WHITE",ERROR_BLACK:"ERROR_BLACK",IMAGE:"IMAGE",NO_CONNECTION:"NO_CONNECTION",UNPLUGGED_LOGO:"UNPLUGGED_LOGO",
CREATE_VIDEO:"CREATE_VIDEO",CREATE_REEL_ITEM:"CREATE_REEL_ITEM",CREATE_LIVE_STREAM:"CREATE_LIVE_STREAM",CREATE_POST:"CREATE_POST",CREATION_ENTRY:"CREATION_ENTRY",CREATION_ENTRY_V2:"CREATION_ENTRY_V2",KIDS_GAMING:"KIDS_GAMING",YOUTUBE_MUSIC_BUTTON:"YOUTUBE_MUSIC_BUTTON",YOUTUBE_MUSIC_BUTTON_RED:"YOUTUBE_MUSIC_BUTTON_RED",YOUTUBE_MUSIC_BUTTON_RINGO:"YOUTUBE_MUSIC_BUTTON_RINGO",YOUTUBE_RED_ORIGINALS_BUTTON:"YOUTUBE_RED_ORIGINALS_BUTTON",YOUTUBE_RED_ORIGINALS_BUTTON_RED:"YOUTUBE_RED_ORIGINALS_BUTTON_RED",
EXIT_TO_APP:"EXIT_TO_APP",FIRST_PAGE:"FIRST_PAGE",LAST_PAGE:"LAST_PAGE",TIMER:"TIMER",TRANSFER_FINISHED:"TRANSFER_FINISHED",TRANSFER_SYNC:"TRANSFER_SYNC",TRANSLATE:"TRANSLATE",AV_TIMER:"AV_TIMER",SUBS_ZERO_STATE:"SUBS_ZERO_STATE",KEYBOARD:"KEYBOARD",KEYBOARD_OUTLINE:"KEYBOARD_OUTLINE",APP_INSTALL:"APP_INSTALL",POLL:"POLL",REDO:"REDO",BLOCK:"BLOCK",ADD_VIDEO_LINK:"ADD_VIDEO_LINK",RADIO_BUTTON_UNCHECKED:"RADIO_BUTTON_UNCHECKED",PLACE:"PLACE",PIVOT_HOME:"PIVOT_HOME",PIVOT_HOME_GREY:"PIVOT_HOME_GREY",
PIVOT_TRENDING:"PIVOT_TRENDING",PIVOT_REWIND:"PIVOT_REWIND",PIVOT_SUBSCRIPTIONS:"PIVOT_SUBSCRIPTIONS",PIVOT_SHARED:"PIVOT_SHARED",PIVOT_LIBRARY:"PIVOT_LIBRARY",PIVOT_ACCOUNT:"PIVOT_ACCOUNT",KIDS_READING:"KIDS_READING",PIVOT_PREMIER:"PIVOT_PREMIER",AUDIOTRACK:"AUDIOTRACK",STICKER_LIGHT:"STICKER_LIGHT",STICKER_EMOTICON:"STICKER_EMOTICON",STARS:"STARS",SCISSORS:"SCISSORS",MUSIC_SCISSORS:"MUSIC_SCISSORS",TAG_FACES:"TAG_FACES",GROUP:"GROUP",EMPTY_STATE_WATCH_LATER:"EMPTY_STATE_WATCH_LATER",SLOW_MOTION_VIDEO:"SLOW_MOTION_VIDEO",
ARROW_FORWARD:"ARROW_FORWARD",ARROW_BACK:"ARROW_BACK",DARK_THEME:"DARK_THEME",DARK_THEME_LARGE:"DARK_THEME_LARGE",VISIBILITY:"VISIBILITY",VISIBILITY_OFF:"VISIBILITY_OFF",MORE_LIKE_THIS:"MORE_LIKE_THIS",CAMERA_ALT:"CAMERA_ALT",ADD_PHOTO_ALTERNATE:"ADD_PHOTO_ALTERNATE",NOT_INTERESTED:"NOT_INTERESTED",APPS:"APPS",YOUTUBE_ROUND:"YOUTUBE_ROUND",OUTLINE_YOUTUBE_ROUND:"OUTLINE_YOUTUBE_ROUND",YOUTUBE_KIDS_ROUND:"YOUTUBE_KIDS_ROUND",YOUTUBE_MUSIC:"YOUTUBE_MUSIC",YOUTUBE_MUSIC_FILLED:"YOUTUBE_MUSIC_FILLED",
YOUTUBE_MUSIC_MONOCHROME:"YOUTUBE_MUSIC_MONOCHROME",YOUTUBE_MUSIC_MONOCHROME_CAIRO:"YOUTUBE_MUSIC_MONOCHROME_CAIRO",UNPLUGGED_BELL_FOLLOW_ENABLED:"UNPLUGGED_BELL_FOLLOW_ENABLED",UNPLUGGED_BELL_FOLLOW_DISABLED:"UNPLUGGED_BELL_FOLLOW_DISABLED",UNPLUGGED_SPORTS:"UNPLUGGED_SPORTS",UNPLUGGED_LIVE_GUIDE:"UNPLUGGED_LIVE_GUIDE",UNPLUGGED_LIVE_GUIDE_FILLED:"UNPLUGGED_LIVE_GUIDE_FILLED",SUBSCRIPTIONS_FILLED:"SUBSCRIPTIONS_FILLED",VISIBILITY_FILLED:"VISIBILITY_FILLED",LOCATION_FILLED:"LOCATION_FILLED",UNPLUGGED_DARK_THEME:"UNPLUGGED_DARK_THEME",
BRIGHTNESS_FIVE:"BRIGHTNESS_FIVE",BRIGHTNESS_FOUR:"BRIGHTNESS_FOUR",UNPLUGGED_NETWORKS:"UNPLUGGED_NETWORKS",UNPLUGGED_EPISODES:"UNPLUGGED_EPISODES",UNPLUGGED_MORE_TO_WATCH:"UNPLUGGED_MORE_TO_WATCH",UNPLUGGED_STORE:"UNPLUGGED_STORE",CONVERSATIONS:"CONVERSATIONS",EMPTY_SEARCH:"EMPTY_SEARCH",CHECK_BOX:"CHECK_BOX",CHECK_BOX_OUTLINE_BLANK:"CHECK_BOX_OUTLINE_BLANK",CHECK_BOX_BAR:"CHECK_BOX_BAR",SKIP_NEXT:"SKIP_NEXT",SKIP_NEXT_NEW:"SKIP_NEXT_NEW",SKIP_PREVIOUS:"SKIP_PREVIOUS",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",
SOUND:"SOUND",AUTOPLAY:"AUTOPLAY",CONTRAST:"CONTRAST",VOLUME_MUTE:"VOLUME_MUTE",VOLUME_OFF:"VOLUME_OFF",VOLUME_UP:"VOLUME_UP",VOLUME_DOWN:"VOLUME_DOWN",MY_VIDEOS_ZERO_STATE:"MY_VIDEOS_ZERO_STATE",BACKSTAGE_ARTWORK:"BACKSTAGE_ARTWORK",LIBRARY_MUSIC:"LIBRARY_MUSIC",LIBRARY_ADD:"LIBRARY_ADD",LIBRARY_IMAGE:"LIBRARY_IMAGE",LIBRARY_REMOVE:"LIBRARY_REMOVE",LIBRARY_OUTLINE:"LIBRARY_OUTLINE",LIBRARY_SAVED:"LIBRARY_SAVED",WATCH_HISTORY_PAUSED:"WATCH_HISTORY_PAUSED",IMPROVE_YOUTUBE:"IMPROVE_YOUTUBE",TV:"TV",
TV_OFF:"TV_OFF",SAVE_ALT:"SAVE_ALT",DOWNLOADS_PAGE_EMPTY:"DOWNLOADS_PAGE_EMPTY",ACCOUNT_LINKED:"ACCOUNT_LINKED",ACCOUNT_UNLINKED:"ACCOUNT_UNLINKED",ACCOUNT_SOME_LINKED:"ACCOUNT_SOME_LINKED",CREATOR_STUDIO_NO_COMMENTS:"CREATOR_STUDIO_NO_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS:"CREATOR_STUDIO_NO_HELD_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS_V2:"CREATOR_STUDIO_NO_HELD_COMMENTS_V2",CREATOR_STUDIO_NO_SEARCH_MATCH:"CREATOR_STUDIO_NO_SEARCH_MATCH",CREATOR_STUDIO_NO_SEARCH_MATCH_V2:"CREATOR_STUDIO_NO_SEARCH_MATCH_V2",
CREATOR_STUDIO_ERROR_ON_LOAD:"CREATOR_STUDIO_ERROR_ON_LOAD",CREATOR_STUDIO_ERROR_ON_LOAD_V2:"CREATOR_STUDIO_ERROR_ON_LOAD_V2",VIDEO_LIBRARY_WHITE:"VIDEO_LIBRARY_WHITE",PRODUCT_SHOP:"PRODUCT_SHOP",PRODUCT_HOTEL:"PRODUCT_HOTEL",PRODUCT_FLIGHT:"PRODUCT_FLIGHT",PLAY_ARROW_BLACK:"PLAY_ARROW_BLACK",HIGHLIGHT_OFF:"HIGHLIGHT_OFF",CREATION_UPLOAD:"CREATION_UPLOAD",CREATION_UPLOAD_RED:"CREATION_UPLOAD_RED",CREATION_LIVE:"CREATION_LIVE",CREATION_POST:"CREATION_POST",GOOGLE:"GOOGLE",PAUSE:"PAUSE",PLAY_DISABLED:"PLAY_DISABLED",
INCOGNITO_CIRCLE:"INCOGNITO_CIRCLE",INCOGNITO_CAIRO:"INCOGNITO_CAIRO",CREATE:"CREATE",CREST:"CREST",EQUALIZER:"EQUALIZER",NOW_PLAYING_EQUALIZER:"NOW_PLAYING_EQUALIZER",WHATS_HOT:"WHATS_HOT",ADD_MODERATOR:"ADD_MODERATOR",REMOVE_MODERATOR:"REMOVE_MODERATOR",HELP_OUTLINE:"HELP_OUTLINE",HELP_FILLED:"HELP_FILLED",OFFICIAL_ARTIST_BADGE:"OFFICIAL_ARTIST_BADGE",DONE_ALL:"DONE_ALL",REMOVE_DONE:"REMOVE_DONE",SUPERVISOR_ACCOUNT:"SUPERVISOR_ACCOUNT",REELS_ZERO_STATE:"REELS_ZERO_STATE",SPOTLIGHT:"SPOTLIGHT",FOLDER:"FOLDER",
TUNE:"TUNE",LOCATION_PIN:"LOCATION_PIN",MAKING:"MAKING",SOCCER:"SOCCER",CURATING_MODE_COLLECTIONS:"CURATING_MODE_COLLECTIONS",APPROVED_FOR_YOU:"APPROVED_FOR_YOU",SHARED_BY_PARENTS:"SHARED_BY_PARENTS",KIDS_WATCH_IT_AGAIN:"KIDS_WATCH_IT_AGAIN",KIDS_SPORTS:"KIDS_SPORTS",PLAY_NEXT:"PLAY_NEXT",BREAKING_NEWS:"BREAKING_NEWS",BREAKING_NEWS_ALT_1:"BREAKING_NEWS_ALT_1",DRAG_HANDLE:"DRAG_HANDLE",LOCK_OPEN:"LOCK_OPEN",ACCOUNT_ADVANCED:"ACCOUNT_ADVANCED",ACCOUNT_PLAYBACK:"ACCOUNT_PLAYBACK",ACCOUNT_PRIVACY:"ACCOUNT_PRIVACY",
ACCOUNT_NOTIFICATIONS:"ACCOUNT_NOTIFICATIONS",ACCOUNT_SETTINGS:"ACCOUNT_SETTINGS",ACCOUNT_SHARING:"ACCOUNT_SHARING",CHROME_ICON:"CHROME_ICON",WATCH_PARTY:"WATCH_PARTY",ARROW_DROP_UP:"ARROW_DROP_UP",ARROW_DROP_DOWN:"ARROW_DROP_DOWN",ARROW_CHART_NEUTRAL:"ARROW_CHART_NEUTRAL",BOOKMARK:"BOOKMARK",BOOKMARK_CAIRO:"BOOKMARK_CAIRO",BOOKMARK_BORDER:"BOOKMARK_BORDER",ROTATE_LEFT:"ROTATE_LEFT",PHONE_DOWNLOAD:"PHONE_DOWNLOAD",FORUM:"FORUM",VPN_KEY:"VPN_KEY",LOCK:"LOCK",LOCK_FILLED:"LOCK_FILLED",INSERT_CHART:"INSERT_CHART",
INSERT_CHART_OUTLINED:"INSERT_CHART_OUTLINED",SHOW_MORE:"SHOW_MORE",CONTENT_CUT:"CONTENT_CUT",CONTENT_CUT_CAIRO:"CONTENT_CUT_CAIRO",CONTENT_CUT_WHITE:"CONTENT_CUT_WHITE",HEADSET:"HEADSET",YOUTUBE_AD:"YOUTUBE_AD",VOICE_REMOTE:"VOICE_REMOTE",WIFI_STATUS_BAR_ZERO:"WIFI_STATUS_BAR_ZERO",WIFI_STATUS_BAR_ONE:"WIFI_STATUS_BAR_ONE",WIFI_STATUS_BAR_THREE:"WIFI_STATUS_BAR_THREE",WIFI_STATUS_BAR_FOUR:"WIFI_STATUS_BAR_FOUR",COURSE:"COURSE",COURSE_CAIRO:"COURSE_CAIRO",COURSE_OUTLINE:"COURSE_OUTLINE",MOBILE_SCREEN_SHARE:"MOBILE_SCREEN_SHARE",
SPEAKER_NOTES:"SPEAKER_NOTES",AUTO_AWESOME:"AUTO_AWESOME",FEATURE_HIGHLIGHT:"FEATURE_HIGHLIGHT",SPONSORS_ONLY_LIVE_CHAT_MODE_ON:"SPONSORS_ONLY_LIVE_CHAT_MODE_ON",SPONSORS_ONLY_LIVE_CHAT_MODE_OFF:"SPONSORS_ONLY_LIVE_CHAT_MODE_OFF",VIDEO_YOUTUBE:"VIDEO_YOUTUBE",SYSTEM_HEADER_FOREGROUND:"SYSTEM_HEADER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND:"SYSTEM_FOOTER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND_RTL:"SYSTEM_FOOTER_FOREGROUND_RTL",SYSTEM_FOOTER_BACKGROUND:"SYSTEM_FOOTER_BACKGROUND",LABS_HEADER:"LABS_HEADER",
SEARCH_LARGE:"SEARCH_LARGE",GOOGLE_LOGO:"GOOGLE_LOGO",ZOOM_IN:"ZOOM_IN",ZOOM_OUT:"ZOOM_OUT",REELS_ADD:"REELS_ADD",SHIELD:"SHIELD",SHIELD_WITH_AVATAR:"SHIELD_WITH_AVATAR",KEYBOARD_ARROW_LEFT:"KEYBOARD_ARROW_LEFT",KEYBOARD_ARROW_RIGHT:"KEYBOARD_ARROW_RIGHT",CHECK_BOX_BLUE:"CHECK_BOX_BLUE",CHECK_BOX_OUTLINE_GREY:"CHECK_BOX_OUTLINE_GREY",WORK_OFF:"WORK_OFF",BRIGHTNESS_THREE:"BRIGHTNESS_THREE",LOCATION_ON:"LOCATION_ON",LOCATION_OFF:"LOCATION_OFF",UNDO:"UNDO",LOCAL_SHIPPING:"LOCAL_SHIPPING",RESHARE:"RESHARE",
MOBILE_FRIENDLY:"MOBILE_FRIENDLY",ENTERTAINMENT:"ENTERTAINMENT",GAMING:"GAMING",HAPPENING_NOW:"HAPPENING_NOW",KIDS_HERO:"KIDS_HERO",POWER_SETTINGS_NEW:"POWER_SETTINGS_NEW",RADIO_BUTTON_CHECKED:"RADIO_BUTTON_CHECKED",CHECK_BOX_V2:"CHECK_BOX_V2",CHECK_BOX_OUTLINE_BLANK_V2:"CHECK_BOX_OUTLINE_BLANK_V2",REELS_COMMENT:"REELS_COMMENT",REELS_COMMENT_FILL:"REELS_COMMENT_FILL",KEYBOARD_ARROW_UP:"KEYBOARD_ARROW_UP",KEYBOARD_ARROW_DOWN:"KEYBOARD_ARROW_DOWN",SUBSCRIBED:"SUBSCRIBED",SUBSCRIBED_DARK_MODE:"SUBSCRIBED_DARK_MODE",
ADD_TO_QUEUE_TAIL:"ADD_TO_QUEUE_TAIL",ADD_TO_QUEUE:"ADD_TO_QUEUE",YOUTUBE_LINKED_TV:"YOUTUBE_LINKED_TV",ARROW_DOWNWARD_ALT:"ARROW_DOWNWARD_ALT",ARROW_UPWARD_ALT:"ARROW_UPWARD_ALT",TROPHY:"TROPHY",TROPHY_CAIRO:"TROPHY_CAIRO",CLOUD_UPLOAD:"CLOUD_UPLOAD",SUBDIRECTORY_ARROW_RIGHT:"SUBDIRECTORY_ARROW_RIGHT",MY_VIDEOS:"MY_VIDEOS",MY_VIDEOS_CAIRO:"MY_VIDEOS_CAIRO",LAUNCH:"LAUNCH",PERSON_OUTLINE:"PERSON_OUTLINE",VIEWS_OUTLINE:"VIEWS_OUTLINE",EXPAND_ALL:"EXPAND_ALL",FACT_CHECK:"FACT_CHECK",RED_CARD:"RED_CARD",
YELLOW_CARD:"YELLOW_CARD",CREATION_ENTRY_UPLOAD_ICON:"CREATION_ENTRY_UPLOAD_ICON",APPLAUSE:"APPLAUSE",LENS_WHITE:"LENS_WHITE",LENS_YELLOW:"LENS_YELLOW",LENS_GREEN:"LENS_GREEN",LENS_CYAN:"LENS_CYAN",LENS_MAGENTA:"LENS_MAGENTA",LENS_RED:"LENS_RED",LENS_BLACK:"LENS_BLACK",LENS_BLUE:"LENS_BLUE",PREMIUM:"PREMIUM",PREMIUM_STANDALONE:"PREMIUM_STANDALONE",PREMIUM_STANDALONE_CAIRO:"PREMIUM_STANDALONE_CAIRO",CLARIFY:"CLARIFY",SCHEDULE:"SCHEDULE",TRAVEL:"TRAVEL",SCREEN_ROTATION:"SCREEN_ROTATION",DRAFT:"DRAFT",
BACKSPACE:"BACKSPACE",LICENSE:"LICENSE",LABEL:"LABEL",SPORTS_BASEBALL:"SPORTS_BASEBALL",SPORTS_BASKETBALL:"SPORTS_BASKETBALL",SPORTS_FOOTBALL:"SPORTS_FOOTBALL",SYNC:"SYNC",SYNC_PROBLEM:"SYNC_PROBLEM",PHONELINK:"PHONELINK",PROGRESS_ACTIVITY:"PROGRESS_ACTIVITY",REELS_VIEW_STORY:"REELS_VIEW_STORY",EARTH:"EARTH",SHOW_CHART:"SHOW_CHART",PEOPLE:"PEOPLE",PEOPLE_ALT:"PEOPLE_ALT",PEOPLE_OUTLINE:"PEOPLE_OUTLINE",PEOPLE_2:"PEOPLE_2",PEOPLE_GROUP:"PEOPLE_GROUP",PEOPLE_FILLED:"PEOPLE_FILLED",DONE:"DONE",GOOGLE_PLAY_GAMES:"GOOGLE_PLAY_GAMES",
AUTOPLAY_ON:"AUTOPLAY_ON",AUTOPLAY_OFF:"AUTOPLAY_OFF",KIDS_AUTOPLAY_ON:"KIDS_AUTOPLAY_ON",KIDS_AUTOPLAY_OFF:"KIDS_AUTOPLAY_OFF",KIDS_AUTOPLAY_LOCKED_OFF:"KIDS_AUTOPLAY_LOCKED_OFF",CALENDAR:"CALENDAR",KIDS_MOVE:"KIDS_MOVE",PROGRESS_SPINNER_GREY:"PROGRESS_SPINNER_GREY",KIDS_CAMP:"KIDS_CAMP",BAR_CHART:"BAR_CHART",POLICY:"POLICY",CREATION_TAB:"CREATION_TAB",CREATION_TAB_LARGE:"CREATION_TAB_LARGE",CREATION_TAB_LARGE_CAIRO:"CREATION_TAB_LARGE_CAIRO",ADD_CIRCLE_OUTLINE:"ADD_CIRCLE_OUTLINE",REMOVE_CIRCLE_OUTLINE:"REMOVE_CIRCLE_OUTLINE",
COLLECTIONS:"COLLECTIONS",FORWARD_10:"FORWARD_10",REPLAY_10:"REPLAY_10",MUSIC_NEW_RELEASE:"MUSIC_NEW_RELEASE",PROMPTED_SIGN_IN:"PROMPTED_SIGN_IN",CAMERA_REMIX:"CAMERA_REMIX",SUBJECT:"SUBJECT",FIND_IN_PAGE:"FIND_IN_PAGE",CREATE_VIDEO_NEW:"CREATE_VIDEO_NEW",GO_LIVE:"GO_LIVE",ADD_STORY:"ADD_STORY",CREATE_POST_NEW:"CREATE_POST_NEW",FACE_VERY_UPSET:"FACE_VERY_UPSET",FACE_VERY_SAD:"FACE_VERY_SAD",FACE_SAD:"FACE_SAD",FACE_MEH:"FACE_MEH",FACE_HAPPY:"FACE_HAPPY",FACE_HAPPY_OUTLINE:"FACE_HAPPY_OUTLINE",FACE_VERY_HAPPY:"FACE_VERY_HAPPY",
FACE_FILLED_HAPPY:"FACE_FILLED_HAPPY",FACE_FILLED_UNHAPPY:"FACE_FILLED_UNHAPPY",FACE_FILLED_VERY_HAPPY:"FACE_FILLED_VERY_HAPPY",FACE_FILLED_MEH:"FACE_FILLED_MEH",FACE_FILLED_SAD:"FACE_FILLED_SAD",FACE_OUTLINED_HAPPY:"FACE_OUTLINED_HAPPY",FACE_OUTLINED_UNHAPPY:"FACE_OUTLINED_UNHAPPY",FACE_OUTLINED_VERY_HAPPY:"FACE_OUTLINED_VERY_HAPPY",FACE_OUTLINED_MEH:"FACE_OUTLINED_MEH",FACE_OUTLINED_SAD:"FACE_OUTLINED_SAD",FACE_OUTLINED_ACTIVE_HAPPY:"FACE_OUTLINED_ACTIVE_HAPPY",FACE_OUTLINED_ACTIVE_UNHAPPY:"FACE_OUTLINED_ACTIVE_UNHAPPY",
FACE_OUTLINED_ACTIVE_VERY_HAPPY:"FACE_OUTLINED_ACTIVE_VERY_HAPPY",FACE_OUTLINED_ACTIVE_MEH:"FACE_OUTLINED_ACTIVE_MEH",FACE_OUTLINED_ACTIVE_SAD:"FACE_OUTLINED_ACTIVE_SAD",OUTLINE_MUSIC_VIDEO:"OUTLINE_MUSIC_VIDEO",OUTLINE_HEADSET:"OUTLINE_HEADSET",OUTLINE_YOUTUBE_MUSIC:"OUTLINE_YOUTUBE_MUSIC",OUTLINE_YOUTUBE_IMPROVE_TV:"OUTLINE_YOUTUBE_IMPROVE_TV",OUTLINE_BAG:"OUTLINE_BAG",OUTLINE_MOBILE_DOWNLOAD:"OUTLINE_MOBILE_DOWNLOAD",HASHTAG_LANDING_PAGE_EMPTY:"HASHTAG_LANDING_PAGE_EMPTY",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE",
HASHTAG_LANDING_PAGE_ERROR:"HASHTAG_LANDING_PAGE_ERROR",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE",TRENDING_DOWN:"TRENDING_DOWN",EXPAND_MORE:"EXPAND_MORE",OUTLINE_CAMERA_20:"OUTLINE_CAMERA_20",OUTLINE_CAMERA_24:"OUTLINE_CAMERA_24",G_TRANSLATE:"G_TRANSLATE",SHOPPING_BAG:"SHOPPING_BAG",SHOPPING_BAG_CAIRO:"SHOPPING_BAG_CAIRO",CAKE:"CAKE",CAMPAIGN:"CAMPAIGN",VIDEOGAME_ASSET:"VIDEOGAME_ASSET",GIF:"GIF",INSERT_PHOTO:"INSERT_PHOTO",LOCAL_MALL:"LOCAL_MALL",COLOR_LENS:"COLOR_LENS",
LOCK_CLOCK:"LOCK_CLOCK",SYSTEM_UPDATE:"SYSTEM_UPDATE",ALL_INCLUSIVE:"ALL_INCLUSIVE",VIDEO_SETTINGS:"VIDEO_SETTINGS",WALLPAPER:"WALLPAPER",GROUPS:"GROUPS",MONEY_OFF:"MONEY_OFF",GAMEPAD:"GAMEPAD",PLAYLISTS_KIDS_RESTRICT_ACCESS:"PLAYLISTS_KIDS_RESTRICT_ACCESS",LIVE_CREATION_RESTRICT_ACCESS:"LIVE_CREATION_RESTRICT_ACCESS",LIVE_SAFEGUARD_EDUCATION:"LIVE_SAFEGUARD_EDUCATION",LIVE_COSTREAM_CREATOR_EDUCATION:"LIVE_COSTREAM_CREATOR_EDUCATION",ARTICLE:"ARTICLE",ARTICLE_ALERT:"ARTICLE_ALERT",ARTICLE_CHECK:"ARTICLE_CHECK",
ARTICLE_CLARIFY:"ARTICLE_CLARIFY",FAST_REWIND:"FAST_REWIND",ALIGN_LEFT:"ALIGN_LEFT",BLACK_JOY:"BLACK_JOY",CATEGORY:"CATEGORY",DESKTOP:"DESKTOP",GOOGLE_LENS:"GOOGLE_LENS",GOOGLE_LENS_CAMERA:"GOOGLE_LENS_CAMERA",INSIGHTS:"INSIGHTS",LIVE_BADGE:"LIVE_BADGE",OUTLINE_ADJUST:"OUTLINE_ADJUST",OUTLINE_LESS_THAN_4:"OUTLINE_LESS_THAN_4",OUTLINE_GREATER_THAN_20:"OUTLINE_GREATER_THAN_20",OUTLINE_CLOCK_HALF_CIRCLE:"OUTLINE_CLOCK_HALF_CIRCLE",OUTLINE_DASHBOARD_PLUS:"OUTLINE_DASHBOARD_PLUS",OUTLINE_RADAR_LIVE:"OUTLINE_RADAR_LIVE",
WAVEFORM:"WAVEFORM",GLOBE:"GLOBE",SUPER_STORE:"SUPER_STORE",MEMBERSHIPS:"MEMBERSHIPS",MEMBERSHIPS_FILLED:"MEMBERSHIPS_FILLED",MONEY_HAND:"MONEY_HAND",YT_FILL_DOWNLOAD_24:"YT_FILL_DOWNLOAD_24",YT_FILL_OPEN_NEW_24:"YT_FILL_OPEN_NEW_24",YT_OUTLINE_CHEVRON_EXPAND_24:"YT_OUTLINE_CHEVRON_EXPAND_24",YT_OUTLINE_CHEVRON_DOWN_24:"YT_OUTLINE_CHEVRON_DOWN_24",YT_OUTLINE_ARROW_REPEAT_1_24:"YT_OUTLINE_ARROW_REPEAT_1_24",YT_FILL_ARROW_REPEAT_1_24:"YT_FILL_ARROW_REPEAT_1_24",HEALTH_AND_SAFETY:"HEALTH_AND_SAFETY",
YT_FILL_YOUTUBE_MUSIC_24:"YT_FILL_YOUTUBE_MUSIC_24",YT_FILL_YOUTUBE_MUSIC_36:"YT_FILL_YOUTUBE_MUSIC_36",OUTLINE_TRASH_CAN:"OUTLINE_TRASH_CAN",OUTLINE_PENCIL:"OUTLINE_PENCIL",OUTLINE_ALERT_CIRCLE:"OUTLINE_ALERT_CIRCLE",OUTLINE_ALERT_TRIANGLE:"OUTLINE_ALERT_TRIANGLE",OUTLINE_OPEN_NEW:"OUTLINE_OPEN_NEW",LIST:"LIST",ARROW_CIRCLE:"ARROW_CIRCLE",EXPAND_LESS:"EXPAND_LESS",YT_OUTLINE_SUBSCRIPTIONS_24PT:"YT_OUTLINE_SUBSCRIPTIONS_24PT",OUTLINE_ADD:"OUTLINE_ADD",MEDAL:"MEDAL",MULTIVIEW:"MULTIVIEW",GIFT:"GIFT",
OUTLINE_GIFT:"OUTLINE_GIFT",OUTLINE_YOUTUBE_SHORTS_PLUS:"OUTLINE_YOUTUBE_SHORTS_PLUS",OUTLINE_YOUTUBE_LINKED_TV:"OUTLINE_YOUTUBE_LINKED_TV",NERD_STATS:"NERD_STATS",YT_OUTLINE_YOUTUBE_MUSIC_24:"YT_OUTLINE_YOUTUBE_MUSIC_24",YT_OUTLINE_MUSIC_24:"YT_OUTLINE_MUSIC_24",YT_OUTLINE_RATING_UP_24:"YT_OUTLINE_RATING_UP_24",YT_OUTLINE_FIRE_24:"YT_OUTLINE_FIRE_24",CREATOR_STUDIO_RED_LOGO:"CREATOR_STUDIO_RED_LOGO",UNPLUGGED_RED_LOGO:"UNPLUGGED_RED_LOGO",MUSIC_RED_LOGO:"MUSIC_RED_LOGO",KIDS_RED_LOGO:"KIDS_RED_LOGO",
LAPTOP_MOBILE:"LAPTOP_MOBILE",AUDIO_SURROUND:"AUDIO_SURROUND",FEATURED_SEASONAL_AND_GIFTS:"FEATURED_SEASONAL_AND_GIFTS",AUDIO:"AUDIO",SKIP_FORWARD_30:"SKIP_FORWARD_30",PLAY_ARROW_HALF_CIRCLE:"PLAY_ARROW_HALF_CIRCLE",VIDEO_LINK:"VIDEO_LINK",TEXT:"TEXT",SELL:"SELL",SELL_FILLED:"SELL_FILLED",YOUTUBE_STUDIO_ARROW_DOWN:"YOUTUBE_STUDIO_ARROW_DOWN",YOUTUBE_STUDIO_ARROW_UP:"YOUTUBE_STUDIO_ARROW_UP",ADMIN_PANEL_SETTINGS:"ADMIN_PANEL_SETTINGS",EXPIRE:"EXPIRE",BAR_HORIZONTAL:"BAR_HORIZONTAL",SCREEN_THEATRE:"SCREEN_THEATRE",
SCREEN_MINIPLAYER:"SCREEN_MINIPLAYER",SCREEN_DEFAULT:"SCREEN_DEFAULT",SCREEN_FULLSCREEN:"SCREEN_FULLSCREEN",LIST_QUEUE:"LIST_QUEUE",MOON_Z:"MOON_Z",MOON_Z_FILLED:"MOON_Z_FILLED",MESSAGE_BUBBLE_QUESTION:"MESSAGE_BUBBLE_QUESTION",TV_CIRCLE:"TV_CIRCLE",PANELS:"PANELS",BOX_PLACEHOLDER_LEFT_OUTLINE:"BOX_PLACEHOLDER_LEFT_OUTLINE",OUTLINE_OVERFLOW_HORIZONTAL_32:"OUTLINE_OVERFLOW_HORIZONTAL_32",OUTLINE_OVERFLOW_VERTICAL:"OUTLINE_OVERFLOW_VERTICAL",SPEAKER:"SPEAKER",SPEAKER_OFF:"SPEAKER_OFF",SPEAKER_GROUP:"SPEAKER_GROUP",
BAG:"BAG",VR:"VR",MUSIC_MUTED:"MUSIC_MUTED",GREEN_SCREEN_OFF:"GREEN_SCREEN_OFF",GREEN_SCREEN_ON:"GREEN_SCREEN_ON",LIST_PLAY_ARROW:"LIST_PLAY_ARROW",BAR_CIRCLE:"BAR_CIRCLE",QUOTATION_MARK:"QUOTATION_MARK",SPARKLE:"SPARKLE",SPARKLE_FILLED:"SPARKLE_FILLED",SPARK:"SPARK",SPARK_RADAR:"SPARK_RADAR",SPARK_SEARCH:"SPARK_SEARCH",OUTLINE_BAG_BOOKMARK:"OUTLINE_BAG_BOOKMARK",RADAR_LIVE:"RADAR_LIVE",PENCIL:"PENCIL",PRICE_TAG:"PRICE_TAG",CHEVRON_DOWN:"CHEVRON_DOWN",CHEVRON_UP:"CHEVRON_UP",SPEED_1_POINT_2X:"SPEED_1_POINT_2X",
SPEED_1_POINT_5X:"SPEED_1_POINT_5X",SPEED_1_POINT_8X:"SPEED_1_POINT_8X",SPEED_POINT_2X:"SPEED_POINT_2X",SPEED_POINT_5X:"SPEED_POINT_5X",SPEED_POINT_8X:"SPEED_POINT_8X",SPEED_1X:"SPEED_1X",SPEED_2X:"SPEED_2X",BROADCAST:"BROADCAST",BROADCAST_CAIRO:"BROADCAST_CAIRO",PODCAST_16:"PODCAST_16",PODCAST_ADD:"PODCAST_ADD",PODCAST_CHECK:"PODCAST_CHECK",DOLLAR_SIGN:"DOLLAR_SIGN",DOLLAR_SIGN_CONTAINER:"DOLLAR_SIGN_CONTAINER",MEET:"MEET",BRIEFCASE:"BRIEFCASE",CHECK_DOUBLE:"CHECK_DOUBLE",CHECK_DOUBLE_OFF:"CHECK_DOUBLE_OFF",
SHIELD_ADD:"SHIELD_ADD",SHIELD_OFF:"SHIELD_OFF",REMIX_FILLED:"REMIX_FILLED",EYE:"EYE",OPEN_IN_PHONE:"OPEN_IN_PHONE",OPEN_IN_PANEL:"OPEN_IN_PANEL",REPLAY_ARROW:"REPLAY_ARROW",ARROW_UNDO:"ARROW_UNDO",PERSON_CIRCLE_SLASH:"PERSON_CIRCLE_SLASH",EARTH_OUTLINE:"EARTH_OUTLINE",SLASH_CIRCLE_LEFT:"SLASH_CIRCLE_LEFT",SLASH_CIRCLE_RIGHT:"SLASH_CIRCLE_RIGHT",ARROW_PAUSE:"ARROW_PAUSE",MENU_FILTER:"MENU_FILTER",SPACE_BAR:"SPACE_BAR",CIRCLES_6:"CIRCLES_6",CELEBRATION:"CELEBRATION",CROWN:"CROWN",CROWN_FILLED:"CROWN_FILLED",
GRID:"GRID",GRID_3X3:"GRID_3X3",GRID_ASYMMETRICAL:"GRID_ASYMMETRICAL",KEEP_FILLED:"KEEP_FILLED",X_CIRCLE:"X_CIRCLE",KIDS_DOWNLOADS:"KIDS_DOWNLOADS",KIDS_MOVE_DOWNLOAD:"KIDS_MOVE_DOWNLOAD",KIDS_SUBSCRIPTIONS:"KIDS_SUBSCRIPTIONS",BRIGHTNESS:"BRIGHTNESS",BRIGHTNESS_FILLED:"BRIGHTNESS_FILLED",MAGIC_WAND:"MAGIC_WAND",MAGIC_WAND_FILLED:"MAGIC_WAND_FILLED",BOX_PENCIL:"BOX_PENCIL",MY_VIDEOS_SUPEX_ZERO_STATE:"MY_VIDEOS_SUPEX_ZERO_STATE",CREATOR_ACADEMY:"CREATOR_ACADEMY",CREATOR_ACADEMY_FILLED:"CREATOR_ACADEMY_FILLED",
CREATOR_ACADEMY_FILLED_16:"CREATOR_ACADEMY_FILLED_16",SCREEN_SWITCH:"SCREEN_SWITCH",PDF:"PDF",SHIELD_OVERFLOW:"SHIELD_OVERFLOW",ANIMALS:"ANIMALS",BOX_OPEN_CHECK:"BOX_OPEN_CHECK",PLAYABLES_LOGO:"PLAYABLES_LOGO",PLAYABLES_LOGO_CAIRO:"PLAYABLES_LOGO_CAIRO",PERSON_2:"PERSON_2",X_OCTAGON:"X_OCTAGON",PLAY_PRISM:"PLAY_PRISM",FILTER_PHOTO:"FILTER_PHOTO",MUSIC_FILLED:"MUSIC_FILLED",COURSE_FILLED:"COURSE_FILLED",TRANSCRIPT:"TRANSCRIPT",TRANSCRIPT_SEARCH:"TRANSCRIPT_SEARCH",STEM:"STEM",ARROW_CIRCLE_RIGHT:"ARROW_CIRCLE_RIGHT",
HEART_CIRCLE:"HEART_CIRCLE",RSS:"RSS",RSS_OFF:"RSS_OFF",PLAYABLES:"PLAYABLES",PERSON_MUSIC:"PERSON_MUSIC",ARROWS_ALERT:"ARROWS_ALERT",CLOCK_ARROWS_ALERT:"CLOCK_ARROWS_ALERT",CLOCK_ARROWS:"CLOCK_ARROWS",SWAP_HORIZ:"SWAP_HORIZ",MUSIC_NOTE_SYMBOL:"MUSIC_NOTE_SYMBOL",BOOK:"BOOK",DISMISS_QUEUE:"DISMISS_QUEUE",RANDOM:"RANDOM",SCREEN_LIGHT:"SCREEN_LIGHT",SINGLE_SPARKLE:"SINGLE_SPARKLE",PROMOTE:"PROMOTE",BUSINESS:"BUSINESS",TOOLBOX:"TOOLBOX",SHORTS_CREATION_COMMENT:"SHORTS_CREATION_COMMENT",SPARK_IMAGE:"SPARK_IMAGE",
SPARK_VIDEO:"SPARK_VIDEO",ALL_CHIP:"ALL_CHIP",TROPHY_CELEBRATIONS:"TROPHY_CELEBRATIONS",SPARK_EDIT:"SPARK_EDIT",MAP_OUTLINE:"MAP_OUTLINE",VOLUME_STABLE:"VOLUME_STABLE",SEARCH_PROMINENT:"SEARCH_PROMINENT",INFINITY_ICON:"INFINITY_ICON",DIRECTIONS_OUTLINE:"DIRECTIONS_OUTLINE",SHORTS_STICKER_PICKER:"SHORTS_STICKER_PICKER",SETTINGS_REMOTE:"SETTINGS_REMOTE",NEWS_STORY:"NEWS_STORY",FOOTBALL_FILLED:"FOOTBALL_FILLED",DOLLARSIGN_COLOR:"DOLLARSIGN_COLOR",YENSIGN_COLOR:"YENSIGN_COLOR",CIRCLES_OVERLAP:"CIRCLES_OVERLAP",
ACCESSIBILITY:"ACCESSIBILITY",CODE:"CODE",HAND_SWIPE_LEFT:"HAND_SWIPE_LEFT",SETTING_UPLOAD:"SETTING_UPLOAD",SETTING_HD:"SETTING_HD",STICKER:"STICKER",SUN:"SUN",MOON:"MOON",EYE_OFF:"EYE_OFF",TARGET:"TARGET",TARGET_ADD:"TARGET_ADD",STAR_SHOOTING:"STAR_SHOOTING",TEXT_BOX:"TEXT_BOX",OUTLINE_ARROW_SOLID_UP:"OUTLINE_ARROW_SOLID_UP",ARROW_SOLID_UP:"ARROW_SOLID_UP",OUTLINE_ARROW_SOLID_DOWN:"OUTLINE_ARROW_SOLID_DOWN",ARROW_SOLID_DOWN:"ARROW_SOLID_DOWN",OUTLINE_ARROW_SOLID_UP_16:"OUTLINE_ARROW_SOLID_UP_16",
FILL_ARROW_SOLID_UP_16:"FILL_ARROW_SOLID_UP_16",OUTLINE_ARROW_SOLID_DOWN_16:"OUTLINE_ARROW_SOLID_DOWN_16",FILL_ARROW_SOLID_DOWN_16:"FILL_ARROW_SOLID_DOWN_16",DIE_3:"DIE_3",POUND:"POUND",CIRCLE:"CIRCLE",CIRCLE_FILLED:"CIRCLE_FILLED",YOUTUBE_SPORTS:"YOUTUBE_SPORTS",STAR_SHOOTING_OUTLINE:"STAR_SHOOTING_OUTLINE",AUDIO_BADGE:"AUDIO_BADGE",FANTASY:"FANTASY",ENGAGEMENT:"ENGAGEMENT",HASHTAG:"HASHTAG",TEMPLATE_ADD:"TEMPLATE_ADD",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP",RUBY:"RUBY",GAME_CONSOLE_DPAD:"GAME_CONSOLE_DPAD",
GAME_CONSOLE_FACE_BUTTONS:"GAME_CONSOLE_FACE_BUTTONS",SKIP_BACK_15:"SKIP_BACK_15",SKIP_FORWARD_15:"SKIP_FORWARD_15",ARROW_CIRCLE_PLAY:"ARROW_CIRCLE_PLAY",NOTE_ADD:"NOTE_ADD",MY_AD_CENTER:"MY_AD_CENTER",MY_AD_CENTER_LOGO:"MY_AD_CENTER_LOGO",PEOPLE_NOTE:"PEOPLE_NOTE",LEARNING:"LEARNING",LEARNING_CAIRO:"LEARNING_CAIRO",IMAGE_ADD:"IMAGE_ADD",LOCATION_POINT:"LOCATION_POINT",OUTLINE_MIX_24:"OUTLINE_MIX_24",FILL_AUDIO_16:"FILL_AUDIO_16",HAND_SWIPE_RIGHT:"HAND_SWIPE_RIGHT",SCHEDULE_FANZONE:"SCHEDULE_FANZONE",
PLAY_PAUSE:"PLAY_PAUSE",ARROW_DIAGONAL_UP_RIGHT:"ARROW_DIAGONAL_UP_RIGHT",ARROW_DIAGONAL_UP_RIGHT_FILLED:"ARROW_DIAGONAL_UP_RIGHT_FILLED",LOCAL_ACTIVITY:"LOCAL_ACTIVITY",STAR_CIRCLE_RIBBON:"STAR_CIRCLE_RIBBON",STAR_CIRCLE_RIBBON_OUTLINE:"STAR_CIRCLE_RIBBON_OUTLINE",LIGHTBULB_SPARK_OUTLINE:"LIGHTBULB_SPARK_OUTLINE",SPARK_LIGHTBULB_OUTLINE:"SPARK_LIGHTBULB_OUTLINE",SPARK_LIGHTBULB_FILLED:"SPARK_LIGHTBULB_FILLED",JOURNEY:"JOURNEY",QUESTION_HEAD:"QUESTION_HEAD"};var W3b=function(){rA.apply(this,arguments)};
_.E(W3b,rA);W3b.prototype.getAssociations=function(){return[]};_.Hqj=new _.U("playerInterstitialRenderer");var mhv=new _.U("getKidsBlocklistPickerCommand");_.ofn=new _.U("updateKidsBlacklistEndpoint");_.Pc=new _.U("likeEndpoint");var OqB,j$B,L3B;OqB=new _.U("addChatItemAction");j$B=new _.U("removeChatItemAction");L3B=new _.U("markChatItemAsDeletedAction");_.Plm=new _.U("setLiveChatCollapsedStateAction");var TWB=function(){rA.apply(this,arguments)};
_.E(TWB,rA);TWB.prototype.getAssociations=function(){return[]};var BWJ=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(BWJ,_.Uk);var RUC=_.NM(BWJ,[0,1,_.PW]);var kkv=new _.U("liveChatEndpoint");var UhJ=new _.U("liveChatItemContextMenuEndpoint");var iqZ=new _.U("liveChatReplayEndpoint");_.IdB=new _.U("emojiPickerRenderer");var $hj=new _.U("liveChatAuthorBadgeViewModel");var eUD=new _.U("deleteLiveChatMessageCommand");var pqZ=new _.U("liveChatActionEndpoint");var xjJ=new _.U("createLiveChatPollEndpoint");var Ftj=new _.U("manageLiveChatUserEndpoint");var N_j=new _.U("moderateLiveChatEndpoint");_.h_B=new _.U("sendLiveChatMessageEndpoint");var lQj=new _.U("sendLiveChatVoteEndpoint");var ccb=new _.U("clearLocationCommand");var aQn=new _.U("resolveLocationCommand");var MXn=new _.U("interactionLoggingCommandMetadata");var ePm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(ePm,_.Uk);var $0B=function(p,x){return _.Nc(p,1,x)};var DjB=[0,_.BW];var Ia$=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Ia$,_.Uk);var iuB=function(p,x){return fo(p,1,ePm,x)};Ia$.prototype.JSC$9906_serializeBinary=gEM([0,_.kg,DjB]);var dhr={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 fQj={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"},
KtB={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 kBw={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"};_.oT6=new _.U("logFlowLoggingEventCommand");_.nTM=new _.U("loggingContext");var q8k=new _.U("captionLanguageSelectActionCommand");var ZWn=new _.U("showCaptionLanguageSelectActionCommand");var tXD=new _.U("dismissDialogEndpoint");var djl=new _.U("hideItemSectionVideosByIdCommand");var vzB=new _.U("showMiniplayerCommand");var Jcm=function(){rA.apply(this,arguments)};
_.E(Jcm,rA);Jcm.prototype.getAssociations=function(){return[]};var C3l=function(){rA.apply(this,arguments)};
_.E(C3l,rA);C3l.prototype.getAssociations=function(){return[]};var S8I=function(){rA.apply(this,arguments)};
_.E(S8I,rA);S8I.prototype.getAssociations=function(){return[]};var rcB=function(){rA.apply(this,arguments)};
_.E(rcB,rA);rcB.prototype.getAssociations=function(){var p=[];this.delegate.downloadsList&&p.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&p.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&p.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&p.push(this.delegate.refresh);return[].concat(_.se(new Set(p)))};var EzC=function(){rA.apply(this,arguments)};
_.E(EzC,rA);EzC.prototype.getAssociations=function(){var p=[];this.delegate.refresh&&p.push(this.delegate.refresh);if(this.delegate.downloads)for(var x=_.a(this.delegate.downloads),F=x.next();!F.done;F=x.next())p.push.apply(p,_.se((new XqB(F.value)).getAssociations()));return[].concat(_.se(new Set(p)))};
var XqB=function(){Sd.apply(this,arguments)};
_.E(XqB,Sd);XqB.prototype.getAssociations=function(){var p=[];this.delegate.video&&p.push(this.delegate.video);this.delegate.playlist&&p.push(this.delegate.playlist);this.delegate.videoItem&&p.push(this.delegate.videoItem);this.delegate.playlistItem&&p.push(this.delegate.playlistItem);return[].concat(_.se(new Set(p)))};var gz6=function(){rA.apply(this,arguments)};
_.E(gz6,rA);gz6.prototype.getAssociations=function(){var p=[];this.delegate.localImageEntities&&p.push.apply(p,_.se(this.delegate.localImageEntities));return[].concat(_.se(new Set(p)))};var Q_K=function(){rA.apply(this,arguments)};
_.E(Q_K,rA);Q_K.prototype.getAssociations=function(){var p=[];this.delegate.playbackData&&p.push(this.delegate.playbackData);this.delegate.localImageEntities&&p.push.apply(p,_.se(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&p.push(this.delegate.videoDownloadContextEntity);return[].concat(_.se(new Set(p)))};var z_Z=function(){rA.apply(this,arguments)};
_.E(z_Z,rA);z_Z.prototype.getAssociations=function(){return[]};var s_B=function(){rA.apply(this,arguments)};
_.E(s_B,rA);s_B.prototype.getAssociations=function(){var p=[];this.delegate.fakeChildren&&p.push.apply(p,_.se(this.delegate.fakeChildren));return[].concat(_.se(new Set(p)))};var nzm=function(){rA.apply(this,arguments)};
_.E(nzm,rA);nzm.prototype.getAssociations=function(){var p=[];this.delegate.video&&p.push(this.delegate.video);this.delegate.playbackData&&p.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&p.push(this.delegate.offlineVideoPolicy);return[].concat(_.se(new Set(p)))};var ycB=function(){rA.apply(this,arguments)};
_.E(ycB,rA);ycB.prototype.getAssociations=function(){return[]};var bWb=function(){rA.apply(this,arguments)};
_.E(bWb,rA);bWb.prototype.getAssociations=function(){var p=[];this.delegate.channelOwner&&p.push(this.delegate.channelOwner);this.delegate.videos&&p.push.apply(p,_.se(this.delegate.videos));this.delegate.collaboratorChannels&&p.push.apply(p,_.se(this.delegate.collaboratorChannels));this.delegate.downloadState&&p.push(this.delegate.downloadState);this.delegate.refresh&&p.push(this.delegate.refresh);return[].concat(_.se(new Set(p)))};var Acb=function(){rA.apply(this,arguments)};
_.E(Acb,rA);Acb.prototype.getAssociations=function(){var p=[];this.delegate.video&&p.push(this.delegate.video);this.delegate.channelContributor&&p.push(this.delegate.channelContributor);return[].concat(_.se(new Set(p)))};var u7Z=function(){Sd.apply(this,arguments)};
_.E(u7Z,Sd);u7Z.prototype.getAssociations=function(){var p=[];this.delegate.recommendedVideoMetadata&&p.push.apply(p,_.se((new Y8B(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.se(new Set(p)))};
var Y8B=function(){Sd.apply(this,arguments)};
_.E(Y8B,Sd);Y8B.prototype.getAssociations=function(){var p=[];this.delegate.localImageEntities&&p.push.apply(p,_.se(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&p.push(this.delegate.videoDownloadContextEntity);return[].concat(_.se(new Set(p)))};var wqB=function(){Sd.apply(this,arguments)};
_.E(wqB,Sd);wqB.prototype.getAssociations=function(){var p=[];this.delegate.playbackPosition&&p.push(this.delegate.playbackPosition);return[].concat(_.se(new Set(p)))};var Gi6=function(){rA.apply(this,arguments)};
_.E(Gi6,rA);Gi6.prototype.getAssociations=function(){var p=[];this.delegate.owner&&p.push(this.delegate.owner);this.delegate.downloadState&&p.push(this.delegate.downloadState);this.delegate.userState&&p.push.apply(p,_.se((new wqB(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&p.push.apply(p,_.se((new u7Z(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.se(new Set(p)))};var VXB=function(){rA.apply(this,arguments)};
_.E(VXB,rA);VXB.prototype.getAssociations=function(){var p=[];this.delegate.userChannelDetails&&p.push(this.delegate.userChannelDetails);return[].concat(_.se(new Set(p)))};var Wtl=function(){rA.apply(this,arguments)};
_.E(Wtl,rA);Wtl.prototype.getAssociations=function(){var p=[];this.delegate.channelOwner&&p.push(this.delegate.channelOwner);this.delegate.playbackPosition&&p.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&p.push.apply(p,_.se(this.delegate.localImageEntities));this.delegate.downloadStatus&&p.push(this.delegate.downloadStatus);return[].concat(_.se(new Set(p)))};var taJ=new _.U("downloadsPageSmartDownloadsOptInBannerParams");var HWZ=function(){rA.apply(this,arguments)};
_.E(HWZ,rA);HWZ.prototype.getAssociations=function(){return[]};var mjZ=function(){rA.apply(this,arguments)};
_.E(mjZ,rA);mjZ.prototype.getAssociations=function(){return[]};var oz6=function(){rA.apply(this,arguments)};
_.E(oz6,rA);oz6.prototype.getAssociations=function(){return[]};var OWZ=function(){rA.apply(this,arguments)};
_.E(OWZ,rA);OWZ.prototype.getAssociations=function(){return[]};var j_D=function(){rA.apply(this,arguments)};
_.E(j_D,rA);j_D.prototype.getAssociations=function(){return[]};var Ltv=function(){rA.apply(this,arguments)};
_.E(Ltv,rA);Ltv.prototype.getAssociations=function(){return[]};var P3K=function(){rA.apply(this,arguments)};
_.E(P3K,rA);P3K.prototype.getAssociations=function(){return[]};var T_k=function(){rA.apply(this,arguments)};
_.E(T_k,rA);T_k.prototype.getAssociations=function(){return[]};var bu6=new _.U("dislikeButtonViewModel");var y3k=new _.U("likeButtonViewModel");var B_k=new _.U("videoSummaryContentViewModel");var mkw=new _.U("videoSummaryParagraphViewModel");var R_6=new _.U("changeTimelyActionVisibilityCommand");var kiv=new _.U("hideEngagementPanelEndpoint");var Ujv=new _.U("refreshPanelEndpoint");var iWn=new _.U("scrollToSectionEndpoint");var IQK=new _.U("seekToVideoTimestampCommand");_.Af=new _.U("showEngagementPanelEndpoint");var $jb=new _.U("showTransientPlayerScrimOverlayCommand");var e_v=new _.U("toggleEngagementPanelCommand");_.pxI=new _.U("createBroadcastCommand");var x7Z=new _.U("metadataUpdateCommand");var FEb=function(){rA.apply(this,arguments)};
_.E(FEb,rA);FEb.prototype.getAssociations=function(){return[]};var NBj=function(){rA.apply(this,arguments)};
_.E(NBj,rA);NBj.prototype.getAssociations=function(){return[]};var hSK=function(){rA.apply(this,arguments)};
_.E(hSK,rA);hSK.prototype.getAssociations=function(){return[]};_.lpB=new _.U("merchandiseShelfRenderer");var cnB=new _.U("gridMovieRenderer");_.apB=new _.U("movieRenderer");var MCm=function(){rA.apply(this,arguments)};
_.E(MCm,rA);MCm.prototype.getAssociations=function(){var p=[];this.delegate.trackDownloadMetadatas&&p.push.apply(p,_.se(this.delegate.trackDownloadMetadatas));return[].concat(_.se(new Set(p)))};var D7I=function(){rA.apply(this,arguments)};
_.E(D7I,rA);
D7I.prototype.getAssociations=function(){var p=[];this.delegate.downloadedTracks&&p.push.apply(p,_.se(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&p.push.apply(p,_.se(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&p.push.apply(p,_.se(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&p.push.apply(p,_.se(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&p.push.apply(p,_.se(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
p.push.apply(p,_.se(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&p.push.apply(p,_.se(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&p.push.apply(p,_.se(this.delegate.metadataOnlyTracks));return[].concat(_.se(new Set(p)))};var fpC=function(){rA.apply(this,arguments)};
_.E(fpC,rA);fpC.prototype.getAssociations=function(){var p=[];this.delegate.trackDownloadMetadatas&&p.push.apply(p,_.se(this.delegate.trackDownloadMetadatas));return[].concat(_.se(new Set(p)))};var KEj=function(){rA.apply(this,arguments)};
_.E(KEj,rA);KEj.prototype.getAssociations=function(){var p=[];this.delegate.playbackData&&p.push(this.delegate.playbackData);this.delegate.localImageEntities&&p.push.apply(p,_.se(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&p.push(this.delegate.videoDownloadContextEntity);return[].concat(_.se(new Set(p)))};var qqb=function(){rA.apply(this,arguments)};
_.E(qqb,rA);
qqb.prototype.getAssociations=function(){var p=[];this.delegate.musicLibraryStatusEntity&&p.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&p.push.apply(p,_.se(this.delegate.primaryArtists));this.delegate.details&&p.push(this.delegate.details);this.delegate.userDetails&&p.push(this.delegate.userDetails);this.delegate.tracks&&p.push.apply(p,_.se(this.delegate.tracks));this.delegate.share&&p.push(this.delegate.share);this.delegate.downloadMetadata&&p.push(this.delegate.downloadMetadata);this.delegate.refresh&&
p.push(this.delegate.refresh);return[].concat(_.se(new Set(p)))};
var Z7D=function(){rA.apply(this,arguments)};
_.E(Z7D,rA);Z7D.prototype.getAssociations=function(){var p=[];this.delegate.albumRelease&&p.push(this.delegate.albumRelease);this.delegate.tracks&&p.push.apply(p,_.se(this.delegate.tracks));return[].concat(_.se(new Set(p)))};
var tCj=function(){rA.apply(this,arguments)};
_.E(tCj,rA);tCj.prototype.getAssociations=function(){var p=[];this.delegate.albumRelease&&p.push(this.delegate.albumRelease);return[].concat(_.se(new Set(p)))};var d7B=function(){rA.apply(this,arguments)};
_.E(d7B,rA);d7B.prototype.getAssociations=function(){var p=[];this.delegate.details&&p.push(this.delegate.details);this.delegate.userDetails&&p.push(this.delegate.userDetails);return[].concat(_.se(new Set(p)))};
var vu6=function(){rA.apply(this,arguments)};
_.E(vu6,rA);vu6.prototype.getAssociations=function(){var p=[];this.delegate.parentArtist&&p.push(this.delegate.parentArtist);return[].concat(_.se(new Set(p)))};
var Jnn=function(){rA.apply(this,arguments)};
_.E(Jnn,rA);Jnn.prototype.getAssociations=function(){var p=[];this.delegate.parentArtist&&p.push(this.delegate.parentArtist);return[].concat(_.se(new Set(p)))};var CUB=function(){rA.apply(this,arguments)};
_.E(CUB,rA);CUB.prototype.getAssociations=function(){return[]};var Sq6=function(){rA.apply(this,arguments)};
_.E(Sq6,rA);Sq6.prototype.getAssociations=function(){return[]};var rnv=function(){rA.apply(this,arguments)};
_.E(rnv,rA);
rnv.prototype.getAssociations=function(){var p=[];this.delegate.tracks&&p.push.apply(p,_.se(this.delegate.tracks));this.delegate.refresh&&p.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&p.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&p.push(this.delegate.details);this.delegate.downloadMetadata&&p.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&p.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&p.push(this.delegate.userDetails);this.delegate.entryCollection&&
p.push(this.delegate.entryCollection);this.delegate.share&&p.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&p.push.apply(p,_.se((new EuZ(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.se(new Set(p)))};
var EuZ=function(){Sd.apply(this,arguments)};
_.E(EuZ,Sd);EuZ.prototype.getAssociations=function(){var p=[];this.delegate.creatorEntity&&p.push(this.delegate.creatorEntity);return[].concat(_.se(new Set(p)))};var XxZ=function(){rA.apply(this,arguments)};
_.E(XxZ,rA);XxZ.prototype.getAssociations=function(){return[]};var guk=function(){rA.apply(this,arguments)};
_.E(guk,rA);
guk.prototype.getAssociations=function(){var p=[];this.delegate.musicLibraryStatusEntity&&p.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&p.push.apply(p,_.se(this.delegate.artists));this.delegate.audioModeVersion&&p.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&p.push(this.delegate.videoModeVersion);this.delegate.userDetails&&p.push(this.delegate.userDetails);this.delegate.details&&p.push(this.delegate.details);this.delegate.albumRelease&&p.push(this.delegate.albumRelease);this.delegate.share&&
p.push(this.delegate.share);this.delegate.libraryEdit&&p.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&p.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&p.push(this.delegate.playbackPosition);this.delegate.lyrics&&p.push(this.delegate.lyrics);return[].concat(_.se(new Set(p)))};
var QSB=function(){rA.apply(this,arguments)};
_.E(QSB,rA);QSB.prototype.getAssociations=function(){var p=[];this.delegate.parentTrack&&p.push(this.delegate.parentTrack);return[].concat(_.se(new Set(p)))};
var zSB=function(){rA.apply(this,arguments)};
_.E(zSB,rA);zSB.prototype.getAssociations=function(){var p=[];this.delegate.parentTrack&&p.push(this.delegate.parentTrack);return[].concat(_.se(new Set(p)))};var xV=new _.U("musicResponsiveListItemRenderer");var sAZ=new _.U("addToPlaylistEndpoint");var sSv=new _.U("captionPickerEndpoint");var nuK=new _.U("suggestStats");var ynl=new _.U("backstageImageUploadEndpoint");var b7I=new _.U("createBackstagePostDialogEndpoint");_.AnJ=new _.U("createCommentReplyDialogEndpoint");_.u5Z=new _.U("updateCommentDialogEndpoint");_.YqJ=new _.U("updateCommentReplyDialogEndpoint");var wxb=new _.U("menuEndpoint");var Z9H=new _.U("modalEndpoint");var GRk=new _.U("playlistEditorEndpoint");var VCB=new _.U("copyTextEndpoint");var WEI,H7J;WEI=new _.U("shareEndpoint");H7J=new _.U("shareEntityEndpoint");_.m7k=new _.U("shareEntityServiceEndpoint");_.mbE=new _.U("userFeedbackEndpoint");_.B7=new _.U("watchEndpoint");var t1p=new _.U("watchPlaylistEndpoint");var ouB=new _.U("addUpcomingEventReminderEndpoint");_.s9=new _.U("getCommentsFromInboxCommand");var O7K=new _.U("notificationOptOutEndpoint");var jSb=new _.U("recordNotificationInteractionsEndpoint");var LEl=new _.U("removeUpcomingEventReminderEndpoint");var QAp=new _.U("getDownloadActionCommand");_.PUC=new _.U("offlineOrchestrationActionCommand");var TBB=function(){rA.apply(this,arguments)};
_.E(TBB,rA);TBB.prototype.getAssociations=function(){return[]};var BBZ=function(){rA.apply(this,arguments)};
_.E(BBZ,rA);BBZ.prototype.getAssociations=function(){return[]};var RSk=function(){rA.apply(this,arguments)};
_.E(RSk,rA);RSk.prototype.getAssociations=function(){return[]};var kRn=function(){rA.apply(this,arguments)};
_.E(kRn,rA);kRn.prototype.getAssociations=function(){return[]};var U7n=function(){rA.apply(this,arguments)};
_.E(U7n,rA);U7n.prototype.getAssociations=function(){var p=[];this.delegate.transfer&&p.push(this.delegate.transfer);this.delegate.adsPlaybackData&&p.push.apply(p,_.se(this.delegate.adsPlaybackData));this.delegate.drmLicense&&p.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&p.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&p.push(this.delegate.videoDownloadContextEntity);return[].concat(_.se(new Set(p)))};var i7k=function(){rA.apply(this,arguments)};
_.E(i7k,rA);i7k.prototype.getAssociations=function(){return[]};var Ipk=function(){rA.apply(this,arguments)};
_.E(Ipk,rA);Ipk.prototype.getAssociations=function(){var p=[];this.delegate.offlineVideoStreams&&p.push.apply(p,_.se(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&p.push.apply(p,_.se(this.delegate.captionTrack));return[].concat(_.se(new Set(p)))};var $7I=function(){rA.apply(this,arguments)};
_.E($7I,rA);$7I.prototype.getAssociations=function(){return[]};var eSJ=new _.U("showMoreDrawerCommand");var pfk=new _.U("updateEngagementPanelContentCommand");var xon=new _.U("getPdgBuyFlowCommand");var FFI=new _.U("liveChatPurchaseMessageEndpoint");var NAB=new _.U("openSuperStickerBuyFlowCommand");var h2n=new _.U("updatePdgFeatureEnablementCommand");var len=function(){rA.apply(this,arguments)};
_.E(len,rA);len.prototype.getAssociations=function(){return[]};var cSB=function(){rA.apply(this,arguments)};
_.E(cSB,rA);cSB.prototype.getAssociations=function(){return[]};_.aej=new _.U("pdgCommentChipRenderer");_.MdJ=new _.U("permissionRoleBottomBarRenderer");_.DoB=new _.U("updatePermissionRoleCommand");var fem=new _.U("prefetchWatchCommand");var KFl=new _.U("updatePlayerErrorMessageCommand");var JJZ=new _.U("toggleCaptionsVisibilityCommand");_.q9K=new _.U("quickActionsViewModel");var Z4B=new _.U("playerResponse");var tdJ=new _.U("playlistRenderer");_.dom=new _.U("playlistVideoListRenderer");_.n4=new _.U("playlistEditEndpoint");var vaB=new _.U("createImagePollCommand");var JSl=new _.U("createQuizCommand");var Cx6=new _.U("quizRenderer");var S9m=new _.U("uploadedVideoRenderer");var rSj=new _.U("decorateMessageEndpoint");var EaZ=new _.U("lpOfferCardOptionViewModel");var Xfn=new _.U("sfvAudioItemPlaybackCommand");var gaB=function(){rA.apply(this,arguments)};
_.E(gaB,rA);gaB.prototype.getAssociations=function(){return[]};_.yf=new _.U("reelNonVideoContentEndpoint");_.dX=new _.U("reelWatchEndpoint");_.bx=new _.U("reelItemRenderer");var QLC=new _.U("reelMetapanelViewModel");_.z26=new _.U("reelNonVideoContentRenderer");_.sLm=new _.U("reelPlayerOverlayRenderer");var naJ=new _.U("shortsLockupViewModel");var ySj=new _.U("sponsorButtonViewModel");var b4Z=new _.U("reelItemWatchResponse");var ASB=new _.U("textBadgeRenderer");_.AS=new _.U("buttonRenderer");_.ux=new _.U("toggleButtonRenderer");var SSw=new _.U("switchButtonViewModel");_.u3B=new _.U("confirmDialogRenderer");var Y9n;Y9n=new _.U("menuRenderer");_.wfB=new _.U("menuFlexibleItemRenderer");var GvD=new _.U("pollRenderer");_.VdZ=new _.U("backgroundPromoRenderer");var H4Z;_.WFn=new _.U("chipCloudRenderer");H4Z=new _.U("chipCloudChipRenderer");var mok=new _.U("dropdownRenderer");var oaZ=new _.U("gridVideoRenderer");_.IGM=new _.U("itemSectionRenderer");_.O4k=new _.U("messageRenderer");var jLJ=new _.U("sortFilterHeaderRenderer");_.LFI=new _.U("videoRenderer");var Pxn=new _.U("resolveUrlCommandMetadata");var TAK=function(){rA.apply(this,arguments)};
_.E(TAK,rA);TAK.prototype.getAssociations=function(){return[]};_.BAD=new _.U("getAnswerCommand");_.fR=new _.U("searchEndpoint");var R2v=new _.U("genAiRichTextViewModel");var gUk=new _.U("overviewAnswerViewModel");var kv6=new _.U("addToPlaylistServiceEndpoint");var UoI=new _.U("clearSearchHistoryEndpoint");var i4D=new _.U("clearWatchHistoryEndpoint");var Iev=new _.U("webSerializedServiceEndpointExtension");_.$oZ=new _.U("createCommentEndpoint");var e2B=new _.U("createCommentReplyEndpoint");var Ya=new _.U("performCommentActionEndpoint");var pjb=new _.U("updateCommentEndpoint");var xJm=new _.U("updateCommentReplyEndpoint");_.wA=new _.U("createPlaylistServiceEndpoint");var FeB=new _.U("deletePlaylistEndpoint");var NS6=new _.U("deleteVideoEndpoint");var zM$=new _.U("getReportFormEndpoint");var hvl=new _.U("modifyChannelNotificationPreferenceEndpoint");var BOk;_.c2=new _.U("offlinePlaylistEndpoint");BOk={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 Rwm;_.lr=new _.U("offlineVideoEndpoint");Rwm={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 l1B=new _.U("pingingEndpoint");_.cYI=new _.U("selectActiveIdentityEndpoint");var a1D=new _.U("setSettingEndpoint");var $3d=new _.U("undoFeedbackEndpoint");var Mav=new _.U("unsubscribeEndpoint");_.DJv=new _.U("updatedMetadataEndpoint");var f1n=function(){rA.apply(this,arguments)};
_.E(f1n,rA);f1n.prototype.getAssociations=function(){return[]};_.Kek=new _.U("updateLocalAppSettingCommand");var qmJ=new _.U("saveImageToDeviceEndpoint");var Zbj=new _.U("shareImageCommand");var tak=new _.U("sharingProviderDataCommand");var dJD=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(dJD,_.Uk);var vxB=[0,_.RE,-1];dJD.prototype.JSC$10105_serializeBinary=gEM(vxB);var JYm=_.lg(vxB);var CC6=new _.U("userMentionSuggestionRenderer");var Sm6=new _.U("liveChatTunnelCommand");var rYl=new _.U("showSponsorshipsGiftOfferDialogCommand");var ExC=new _.U("sponsorshipsScrollableShelfViewModel");var XjB=new _.U("updateUpcomingEventReminderButtonStateCommand");var gxZ=new _.U("upcomingEventReminderButtonStateRenderer");var QOB=new _.U("subscribeEndpoint");var zvB=new _.U("registerTasksCommand");var sO6=new _.U("showDialogCommand");_.qN=new _.U("showSheetCommand");var nxI=function(){rA.apply(this,arguments)};
_.E(nxI,rA);nxI.prototype.getAssociations=function(){return[]};_.P2=new _.U("avatarViewModel");var L5H=new _.U("badgeViewModel");_.X6=new _.U("buttonViewModel");_.Gv=new _.U("chipViewModel");var PQk=new _.U("contentPreviewImageViewModel");var I4H=new _.U("decoratedAvatarViewModel");var r3r=new _.U("downloadButtonViewModel");_.GgE=new _.U("engagementBarViewModel");_.epr=new _.U("imageBannerViewModel");var c4p=new _.U("lockupContentMetadataRowExtension");var yYK=new _.U("lockupMetadataViewModel");var bbb=new _.U("lockupViewModel");var AYB=function(){rA.apply(this,arguments)};
_.E(AYB,rA);AYB.prototype.getAssociations=function(){return[]};_.u8m=new _.U("pageHeaderViewModel");_.gR=new _.U("toggleButtonViewModel");var Ymk=function(){rA.apply(this,arguments)};
_.E(Ymk,rA);Ymk.prototype.getAssociations=function(){return[]};_.VMd=new _.U("votingViewModel");var wj6=new _.U("sectionHeaderViewModel");var GNj=new _.U("notifyDropdownOptionSelectedCommand");var HKz=new _.U("listViewModel");_.Zt=new _.U("listItemViewModel");var VaB=new _.U("dialogHeaderViewModel");var WeK=function(){rA.apply(this,arguments)};
_.E(WeK,rA);WeK.prototype.getAssociations=function(){return[]};var Hbn=function(){rA.apply(this,arguments)};
_.E(Hbn,rA);Hbn.prototype.getAssociations=function(){return[]};var mJm=function(){rA.apply(this,arguments)};
_.E(mJm,rA);mJm.prototype.getAssociations=function(){return[]};_.oxj=new _.U("transcriptSubmitCaptionCorrectionCommand");var ObK=function(){rA.apply(this,arguments)};
_.E(ObK,rA);ObK.prototype.getAssociations=function(){return[]};var xZ6=new _.U("unpluggedStringRunImage");var jOC=new _.U("tabViewModel");var LeD=new _.U("tabbedViewModel");var PCB=function(){rA.apply(this,arguments)};
_.E(PCB,rA);PCB.prototype.getAssociations=function(){return[]};_.TSv=new _.U("updateDescriptionAction");var BSK=new _.U("updateToggleButtonTextAction");_.Rvb=new _.U("autoplaySwitchButtonRenderer");var G1;_.kNJ=new _.U("multiMarkersPlayerBarRenderer");G1=new _.U("chapterRenderer");var UJI=new _.U("heatMarkerRenderer");var f6w=new _.U("heatmapRenderer");var ibD=new _.U("smartSkipPlayerScrimOverlayRenderer");var I1C=new _.U("timedMarkerDecorationRenderer");var g0w=new _.U("postWebToNativeMessageCommand");var $JC=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E($JC,_.Uk);var evZ=_.NM($JC,[0,_.RE,-2]);var p66=new _.U("whitelistEditEndpoint");var xqC=new _.U("commerceActionCommand");_.Fpj=new _.U("getPaymentInstrumentsParamsCommand");var NmZ=new _.U("getPaymentsClientTokenCommand");var h0b=new _.U("googlePaymentBillingCommand");var l_b=new _.U("googlePaymentPurchaseManagerCommand");_.cAD=new _.U("logGtmCommand");var a_J=new _.U("updateCardItemOnClickCommand");_.Mjb=new _.U("ypcPauseSubscriptionCommand");_.Dqk=new _.U("ypcResumeSubscriptionCommand");var f_B=function(){rA.apply(this,arguments)};
_.E(f_B,rA);f_B.prototype.getAssociations=function(){return[]};var KpC=function(){rA.apply(this,arguments)};
_.E(KpC,rA);KpC.prototype.getAssociations=function(){return[]};var qBC=function(){rA.apply(this,arguments)};
_.E(qBC,rA);qBC.prototype.getAssociations=function(){return[]};var ZJI=function(){rA.apply(this,arguments)};
_.E(ZJI,rA);ZJI.prototype.getAssociations=function(){return[]};var tjD=function(){rA.apply(this,arguments)};
_.E(tjD,rA);tjD.prototype.getAssociations=function(){return[]};var dwp=new _.U("ypcOffersEndpoint");var dqZ=new _.U("cardItemRenderer"),v6n=new _.U("cardItemTextRenderer");var JAv=new _.U("commerceCartItemQuantityPickerRenderer");var C$v=new _.U("linkCardRenderer");var v0Z=new _.U("quantityIncrementerButtonViewModel");var SBB=new _.U("quantityIncrementerViewModel");var rAm=new _.U("themedImageViewModel");_.E6C=new _.U("ypcCancelRecurrenceEndpoint");var X66=new _.U("ypcCompleteTransactionEndpoint");_.g6D=new _.U("ypcGetCartEndpoint");_.aI=new _.U("ypcGetOffersEndpoint");_.Vf=new _.U("ypcHandleTransactionEndpoint");var Q3K=new _.U("ypcLogWalletAnalyticDataEndpoint");_.z0I=new _.U("ypcRedeemCodeEndpoint");var s3Z=new _.U("ypcUpdateFopEndpoint");p4(eC(1),IS(4));n$6((new MessageChannel).port2);var n6j=function(){this.register=new Map},Jwm=function(p,x,F){p=p+"_"+x;
Wf.register.has(p)?F=Wf.register.get(p):(F=F(),Wf.register.set(p,F));return F},yAK=function(p){p=_.a(p.register.values());
for(var x=p.next();!x.done;x=p.next())_.tf(x.value,"ABORTED")};
n6j.prototype.clear=function(){yAK(this);this.register.clear()};
var Wf=new n6j;var I7$=Date.now().toString();var eVp,bJJ=_.Mm.ytLoggingDocDocumentNonce_;bJJ||(bJJ=sf(16),_.ox("ytLoggingDocDocumentNonce_",bJJ));eVp=bJJ;var adZ={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 AAn;AAn=1;_.ns=function(p){this.veData=p};
_.fr=function(p){return new _.ns({trackingParams:p})};
_.vt=function(p,x,F,N,h,c){var M=AAn++;return new _.ns({veType:p,veCounter:M,elementIndex:F,dataElement:x,youtubeData:N,jspbYoutubeData:h,loggingDirectives:c})};
_.l=_.ns.prototype;
_.l.getAsJson=function(){var p={};this.veData.trackingParams!==void 0?p.trackingParams=this.veData.trackingParams:(p.veType=this.veData.veType,this.veData.veCounter!==void 0&&(p.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(p.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(p.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(p.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(p.isCounterfactual=!0);
return p};
_.l.getAsJspb=function(){var p=new s8l;this.veData.trackingParams!==void 0?p.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.WW(p,2,this.veData.veType),this.veData.veCounter!==void 0&&_.WW(p,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.WW(p,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Nc(p,5,!0));if(this.veData.dataElement!==void 0){var x=this.veData.dataElement.getAsJspb();_.f6(p,7,x)}this.veData.youtubeData!==void 0&&_.f6(p,8,this.veData.jspbYoutubeData);
return p};
_.l.toString=function(){return JSON.stringify(this.getAsJson())};
_.l.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.l.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.ox("yt_logging_screen.getRootVeType",hUm);_.ox("yt_logging_screen.getCurrentCsn",_.b0);_.ox("yt_logging_screen.getCttAuthInfo",A8);_.ox("yt_logging_screen.setCurrentScreen",_.fdB);var uAZ=function(){this.events=new Map},YBI=function(p){var x=[];
p=_.a(p.events.values());for(var F=p.next();!F.done;F=p.next())x.push(F.value);return x};
uAZ.prototype.clear=function(){this.events.clear()};var G2K=function(){this.logTransport=new w6Z;this.loggedEventRegister=new uAZ;this.unloggedEventRegister=new uAZ;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10160_flushTimer=new _.eB(this.flushInterval);this.JSC$10160_flushTimer.listen("tick",this.flush,!1,this)};
G2K.prototype.flush=function(){if(this.eventsCount){var p={loggedEvents:YBI(this.loggedEventRegister),unloggedEvents:YBI(this.unloggedEventRegister)};if(_.S("export_player_version_to_ytconfig")){var x;(x=_.sd("PLAYER_CLIENT_VERSION"))?(x=x.split("-")[0].replace(/\./g,""),x=isNaN(Number(x))?"0":x):x="";var F=_.sd("PLAYER_CLIENT_VERSION");if(F){F=F.split("-");var N="";F.length>1&&(N=F[F.length-1]);F=iFp(N.startsWith("canary_experiment")?"canary":N.startsWith("canary_control")?"control":"none")}else F=
"CLIENT_CANARY_STATE_UNKNOWN";p.dimensions={playerClientVersion:x,playerCanaryState:F}}this.logTransport.flush(p);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10160_flushTimer.enabled&&this.JSC$10160_flushTimer.stop()}};
var VjZ=function(p){Hf==null&&(Hf=new G2K);var x=Hf;var F=x.loggedEventRegister;p.dimensions=p.dimensions||{};p.dimensions.csn=_.b0()||"";var N=K3p(p.dimensions).join(";");if(p.records!=null)if(F.events.has(N)){var h;(h=F.events.get(N).records)==null||h.push.apply(h,_.se(p.records))}else F.events.set(N,p);x.JSC$10160_flushTimer.enabled||x.JSC$10160_flushTimer.start();x.eventsCount++;x.eventsCount>=100&&x.flush()};var w6Z=function(){};
w6Z.prototype.flush=function(p,x){_.S("enable_client_sli_logging")&&_.E$("sliEventBatch",p,{sendIsolatedPayload:!!x})};var Hf;var HJb;HJb=function(p){var x=WpB;p=p===void 0?{}:p;x=x.name;var F=vfp("SUCCESS");VjZ({dimensions:p,records:[{name:x,state:"SLI_STATE_END",status:F}]})};
_.ClZ=function(p,x,F,N){this.name=p;this.sliId=x;this.timeoutMs=F;this.statusOnTimeout=N;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.ClZ.prototype.getId=function(){return this.sliId};
_.ZX=function(p,x){x=x===void 0?{}:x;p.ongoing||(p.ongoing=!0,p.dimensions=x,p.logSliId=pcl(),VjZ({dimensions:p.dimensions,records:[{name:p.name,state:"SLI_STATE_START",sliId:p.logSliId}]}),p.timeoutMs>0&&(p.timeoutHandle=setTimeout(function(){_.tf(p,p.statusOnTimeout)},p.timeoutMs)))};
_.tf=function(p,x){p.ongoing&&(p.timeoutMs>0&&clearTimeout(p.timeoutHandle),p.ongoing=!1,x={dimensions:p.dimensions,records:[{name:p.name,status:vfp(x),state:"SLI_STATE_END",sliId:p.logSliId}]},Wf.register.delete(p.name+"_"+p.sliId),VjZ(x))};var WpB=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var mqB=function(){rA.apply(this,arguments)};
_.E(mqB,rA);mqB.prototype.getAssociations=function(){return[]};var LrZ=new _.U("highlightTextDecoratorColorMapExtension");var O96=new _.U("styleRunColorMapExtension");var zUw=_.B$(["data-"]),ywH={};var Awp={};_.H7=function(p,x,F){_.x$.call(this,p+", errorCode="+x);this.errorCode=x;this.xhr=F;this.name="PromiseAjaxError"};
_.E(_.H7,_.x$);var Vtm=function(p){this.xhr=p};var mF=function(p){this.wrappedPromise_=p===void 0?null:p;this.state_=0;this.JSC$10192_value_=null};
mF.prototype.then=function(p,x,F){return this.wrappedPromise_?this.wrappedPromise_.then(p,x,F):this.state_===1&&p?(p=p.call(F,this.JSC$10192_value_))&&typeof p.then==="function"?p:_.oL(p):this.state_===2&&x?(p=x.call(F,this.JSC$10192_value_))&&typeof p.then==="function"?p:_.o6v(p):this};
mF.prototype.getValue=function(){return this.JSC$10192_value_};
mF.prototype.isRejected=function(){return this.state_==2};
A_l(mF);_.o6v=function(p){var x=new mF;p=p===void 0?null:p;x.state_=2;x.JSC$10192_value_=p===void 0?null:p;return x};
_.oL=function(p){var x=new mF;p=p===void 0?null:p;x.state_=1;x.JSC$10192_value_=p===void 0?null:p;return x};var Gkm={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var $hw="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var OJB=["load","abort","error"],O9=function(p,x,F){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10212_maxAspectRatio_=p;this.disableAnimation_=x===void 0?!1:x;this.disableExifRotation_=F===void 0?!1:F;this.JSC$10212_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10212_reject_=this.resolve_=null};
O9.prototype.transform=function(p){var x=this;this.mime_=p.type;Th(rZj(p),this.dataUrlRead_,this.readError_,this);Th(SQ6(p.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(F,N){x.resolve_=F;x.JSC$10212_reject_=N})};
O9.prototype.dataUrlRead_=function(p){this.dataUrl_=p;this.angle_!=null&&j3l(this)};
O9.prototype.exifRead_=function(p){if(this.disableExifRotation_)this.angle_=0;else{a:if(p=new DataView(p),p.byteLength<2||p.getUint16(0)!==65496)p=-2;else{for(var x=2,F=p.byteLength;x<F;){var N=p.getUint16(x),h=p.getUint16(x+2);if(N===65505){x+=4;N=p.getUint32(x);h=p.getUint16(x+4);if(N!==1165519206||h!==0)break;x+=6;N=p.getUint16(x)===18761;x+=p.getUint32(x+4,N);h=p.getUint16(x,N);x+=2;for(var c=0;c<h;c++){if(p.getUint16(x,N)===274){x+=8;p=p.getUint16(x,N);break a}x+=12}}else if(N>>8!==255)break;
else x+=h+2}p=-1}switch(p){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&&j3l(this)};
O9.prototype.readError_=function(){this.JSC$10212_reject_()};
var j3l=function(p){Md(p.JSC$10212_image_,OJB,p.completeTransform_,!1,p);p.JSC$10212_image_.src=_.ug(p.dataUrl_).toString();p.JSC$10212_image_.src!=Ao.toString()&&p.JSC$10212_image_.src.substr(0,11)==="data:image/"||p.JSC$10212_reject_()};
O9.prototype.completeTransform_=function(){if(this.JSC$10212_image_.src!=Ao.toString()){var p=_.ug(this.dataUrl_),x=this.JSC$10212_image_.naturalHeight?this.JSC$10212_image_.naturalWidth/this.JSC$10212_image_.naturalHeight:null;this.invalidAspectRatio=x>this.JSC$10212_maxAspectRatio_||x<1/this.JSC$10212_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var F=this.JSC$10212_image_.naturalWidth,N=this.JSC$10212_image_.naturalHeight,h=x=0,c=this.JSC$10212_image_.naturalHeight?this.JSC$10212_image_.naturalWidth/
this.JSC$10212_image_.naturalHeight:null;c>this.JSC$10212_maxAspectRatio_?(F=this.JSC$10212_maxAspectRatio_*N,x=(F-this.JSC$10212_image_.naturalWidth)/2,this.cropped=!0):c<1/this.JSC$10212_maxAspectRatio_?(N=this.JSC$10212_maxAspectRatio_*F,h=(N-this.JSC$10212_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)c=F,F=N,N=c,c=x,x=h,h=c;switch(this.angle_){case 90:h-=F;break;case 180:x-=F;h-=N;break;case 270:x-=
N}this.cropped||this.angle_%360!==0?(p=document.createElement("canvas"),p.width=F||1,p.height=N||1,this.JSC$10212_image_.naturalWidth&&this.JSC$10212_image_.naturalHeight&&(F=p.getContext("2d"),F.rotate(Math.PI/180*this.angle_),F.drawImage(this.JSC$10212_image_,x,h,this.JSC$10212_image_.naturalWidth,this.JSC$10212_image_.naturalHeight)),this.transformedData=_.ug(p.toDataURL(this.mime_))):this.transformedData=p}else this.transformedData=p;this.resolve_(this)}};var jd=function(p,x){_.th.call(this,p);this.value=x};
_.E(jd,_.th);
var L4=function(p,x,F,N,h,c,M){M=M===void 0?!1:M;_.Sc.call(this);var f=this;this.JSC$10217_url_=p;this.channelId_=x;this.maxFileSizeMb_=F;this.JSC$10217_maxAspectRatio_=N;this.dropZoneEl_=h;this.rejectInvalidAspectRatio_=M;this.selectButtonEl_=c;this.JSC$10217_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new Mo(this.dropZoneEl_);this.selectOverlay_=new De(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10217_image_=this.transfer_=null;this.handler_=new _.ps(this);_.aG(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(c,"click",function(){f.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.E(L4,_.Sc);L4.prototype.disposeInternal=function(){for(var p=this.selectButtonEl_.nextSibling;p&&p.parentNode&&p.tagName=="INPUT";)p.parentNode.removeChild(p),p=this.selectButtonEl_.nextSibling;this.cancel();_.Sc.prototype.disposeInternal.call(this)};
L4.prototype.uploadPromise=function(){if(this.JSC$10217_image_==null)return null;this.uploadPromise_||LpJ(this);return this.uploadPromise_};
L4.prototype.cancel=function(){P$k(this);this.JSC$10217_image_=null};
var P$k=function(p){p.transfer_&&p.transfer_.cancel();p.transfer_=null;p.uploadPromise_=null;p.resolve_=null;p.JSC$10217_reject_=null},LpJ=function(p){P$k(p);
p.transfer_=_.HyD(p.JSC$10217_url_,{"X-YouTube-ChannelId":p.channelId_},p.JSC$10217_image_);p.handler_.listenOnce(p.transfer_,"l",p.JSC$10219_onUploadComplete_);p.handler_.listenOnce(p.transfer_,"n",p.onUploadError_);p.transfer_.run();p.uploadPromise_=new Promise(function(x,F){p.resolve_=x;p.JSC$10217_reject_=F})};
_.l=L4.prototype;_.l.onChange_=function(p){p.files.length&&(this.JSC$10217_image_=p.files[0],this.JSC$10217_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10217_image_=null,this.dispatchEvent(new jd("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(LpJ(this),(new O9(this.JSC$10217_maxAspectRatio_)).transform(this.JSC$10217_image_).then((0,_.CH)(this.onPreview_,this),(0,_.CH)(this.onPreviewError_,this))))};
_.l.onPreview_=function(p){if(p.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10217_image_=null),this.dispatchEvent(new jd("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;p.cropped&&this.dispatchEvent(new jd("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new jd("yt.comments.ImageUploadOverlay.CHANGE_EVENT",p.transformedData))};
_.l.onPreviewError_=function(){this.JSC$10217_image_=null;this.dispatchEvent(new jd("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.l.onHover_=function(p){p.stopPropagation();p.preventDefault();if(p.type==="dragover")p=!0;else if(p.type==="dragleave")p=!1;else return;this.dispatchEvent(new jd("yt.comments.ImageUploadOverlay.HOVER_EVENT",p))};
_.l.JSC$10219_onUploadComplete_=function(){var p=(0,_.xcm)(this.transfer_.getResponseText());this.resolve_(p.encryptedBlobId)};
_.l.onUploadError_=function(){this.JSC$10217_reject_();P$k(this)};var Tml=function(p){p=p||{};var x={},F={};this.url=p.url||"";this.args=p.args||_.Q5.clone(x);this.assets=p.assets||{};this.attrs=p.attrs||_.Q5.clone(F);this.fallback=p.fallback||null;this.fallbackMessage=p.fallbackMessage||null;this.html5=!!p.html5;this.disable=p.disable||{};this.loaded=!!p.loaded;this.messages=p.messages||{}};
Tml.prototype.clone=function(){var p=new Tml,x;for(x in this)if(this.hasOwnProperty(x)){var F=this[x];p[x]=_.DIZ(F)=="object"?_.Q5.clone(F):F}return p};var BmJ,R0I,k2v,pP,iJk,I_v,$qD,e0k,pnB,xYm,F_D,NPB,hrB,lyB,cMK,ayb,Mg6,DYl,fyD,K_B,qoB,ZXj,tgj,dY6,v4B,JMB,Cuv,Son,rMK,Av6,E4m,Xnk,g4J,Q0n,zrj,s0l,n4Z,yMn,bXZ,AMB,uUI,Yok,wnB,GHZ,VgI,W_k,HXB,mYv,o4n,OXB,j0B,L_I,Puk,TPD,BPn,RrC,Pf,kHl,UYj,iXn,Iyv,$YJ,erK,pLJ,xWI,FBD,NFD,h1B,lEm,c5b,aEv,M1m,DWm,fEn,KB6,yvH,q7m,ZlC,t1D,dW6,vkv,J5m,ChK,S7J,r5B,EkZ,XLn,gk6,QzK,z1Z,szn,nkl,y5Z,blb,A5B,uOB,Y7I,wLD,GMZ,V1D,WBJ;BmJ=["account/accounts_list"];R0I=["acknowledge_channel_tou_strike"];k2v=["notification/add_upcoming_event_reminder"];
_.UqC=["att/get"];pP=["browse","music/browse","unplugged/browse"];iJk=["channel/claim_legacy_youtube_channel"];I_v=["history/clear_search_history"];$qD=["history/clear_watch_history"];e0k=["comment/perform_comment_action"];pnB=["comment/get_comment_replies"];xYm=["ypc/commerce_action"];F_D=["backstage/create_post"];NPB=["live/create_broadcast"];hrB=["channel/create_channel"];lyB=["comment/create_comment_reply"];cMK=["comment/create_comment"];ayb=["live_chat/create_poll"];Mg6=["playlist/create"];
DYl=["decorate_message"];fyD=["live_chat/delete_message"];K_B=["playlist/delete"];qoB=["video/delete"];ZXj=["like/dislike"];tgj=["dismissal/dismiss"];dY6=["flag/flag"];v4B=["flow"];JMB=["account/account_menu"];Cuv=["playlist/get_add_to_playlist"];Son=["get_answer"];rMK=["channel/get_channel_creation_form"];Av6=["offline/get_download_action"];E4m=["kids/get_kids_blocklist_picker"];Xnk=["live_chat/get_item_context_menu"];g4J=["live_chat/get_live_chat_message_buy_flow"];Q0n=["live_chat/get_live_chat_replay"];
zrj=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];s0l=["live_chat/get_live_chat_super_sticker_buy_flow"];n4Z=["notification/get_notification_menu"];yMn=["playlist/get_settings_editor"];bXZ=["backstage/get_post_video_preview"];AMB=["account/get_profile_card"];uUI=["share/get_share_panel"];Yok=["share/get_sharing_provider_data"];wnB=["get_survey"];GHZ=["notification/get_unseen_count"];VgI=["get_user_mention_suggestions"];W_k=["get_watch"];HXB=["guide"];
mYv=["feedback"];o4n=["kids/update_blacklist"];OXB=["like/like"];j0B=["live_chat/live_chat_action"];L_I=["live_chat/manage_user"];Puk=["video_manager/metadata_update"];TPD=["live_chat/moderate"];BPn=["notification/modify_channel_preference"];RrC=["notification/opt_out"];Pf=["get_panel","get_posts_by_host_panel"];kHl=["player"];UYj=["browse/edit_playlist"];iXn=["notification/record_interactions"];Iyv=["reel/reel_item_watch"];$YJ=["reel/reel_watch_sequence"];erK=["like/removelike"];pLJ=["notification/remove_upcoming_event_reminder"];
xWI=["flag/get_form"];FBD=["miniapp/report_value"];NFD=["navigation/resolve_url"];h1B=["channel/reveal_business_email"];lEm=["in_video/search"];c5b=["search","sfv/search","unplugged/search"];aEv=["live_chat/send_message"];M1m=["live_chat/send_live_chat_vote"];DWm=["account/set_setting"];fEn=["submit_caption_correction"];KB6=["subscription/subscribe"];yvH=["get_transcript"];q7m=["resolve_location","unplugged/resolve_location"];ZlC=["subscription/unsubscribe"];t1D=["backstage/update_post"];dW6=["channel_edit/update_channel_page_settings"];
vkv=["comment/update_comment_reply"];J5m=["comment/update_comment"];ChK=["comment/update_comments_settings"];S7J=["creator/update_creator_channel"];r5B=["pdg/update_enablement"];EkZ=["updated_metadata"];XLn=["channel_edit/validate_channel_handle"];gk6=["verify_age"];QzK=["next","unplugged/watch_next"];z1Z=["whitelist/edit"];szn=["ypc/cancel_recurrence"];nkl=["ypc/complete_transaction"];y5Z=["ypc/get_cart"];blb=["ypc/get_fix_instrument_params"];A5B=["ypc/get_offers"];uOB=["ypc/get_payment_instruments_params"];
Y7I=["ypc/handle_transaction"];wLD=["ypc/log_payment_server_analytics"];GMZ=["ypc/pause_subscription"];V1D=["ypc/redeem_code"];WBJ=["ypc/resume_subscription"];var Hlk=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,
74616,122224,74617,77820,74618,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,
3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,
84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,196075,194768,252201,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,
253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,
32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,
201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,
213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,
140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,82039];var v5=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.ox("yt.msgs_",v5);var Tv=new _.iE("ACTION_ROUTER_TOKEN");_.Bf=function(){this.autonavState_=_.S("kevlar_is_pupi_enabled")?2:fQw()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.Bf.prototype.getState=function(){return this.autonavState_};
_.Bf.prototype.pause=function(p){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=p):this.autonavState_==1&&(this.disabledAutonavPauseReason_=p)};
_.Bf.prototype.setState=function(p,x,F){x&&(this.autoplayChangedByUser=!0);x=this.autonavState_===3||p===3;this.autonavState_!=p&&(this.autonavState_=p,p!=3&&_.Ktd(p==2),p=_.S("kevlar_is_pupi_enabled")?F||x:!0,_.Vj.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,p,F))};
_.Bf.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.xg(_.Bf);var RL=function(){this.hasRun=!1};var ka={},Xq$=(ka.auto_search="LATENCY_ACTION_AUTO_SEARCH",ka.ad_to_ad="LATENCY_ACTION_AD_TO_AD",ka.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",ka.app_startup="LATENCY_ACTION_APP_STARTUP",ka.browse="LATENCY_ACTION_BROWSE",ka.cast_splash="LATENCY_ACTION_CAST_SPLASH",ka.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",ka.channels="LATENCY_ACTION_CHANNELS",ka.chips="LATENCY_ACTION_CHIPS",ka.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",ka.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
ka.editor="LATENCY_ACTION_EDITOR",ka.embed="LATENCY_ACTION_EMBED",ka.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",ka.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",ka.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",ka.explore="LATENCY_ACTION_EXPLORE",ka.favorites="LATENCY_ACTION_FAVORITES",ka.home="LATENCY_ACTION_HOME",ka.inboarding="LATENCY_ACTION_INBOARDING",ka.landing="LATENCY_ACTION_LANDING",ka.library="LATENCY_ACTION_LIBRARY",ka.live=
"LATENCY_ACTION_LIVE",ka.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",ka.management="LATENCY_ACTION_MANAGEMENT",ka.mini_app="LATENCY_ACTION_MINI_APP_PLAY",ka.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",ka.onboarding="LATENCY_ACTION_ONBOARDING",ka.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",ka.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",ka.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",ka.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
ka.prebuffer="LATENCY_ACTION_PREBUFFER",ka.prefetch="LATENCY_ACTION_PREFETCH",ka.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",ka.profile_switcher="LATENCY_ACTION_LOGIN",ka.projects="LATENCY_ACTION_PROJECTS",ka.reel_watch="LATENCY_ACTION_REEL_WATCH",ka.results="LATENCY_ACTION_RESULTS",ka.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",ka.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",ka.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",ka.review="LATENCY_ACTION_REVIEW",ka.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",ka.search_ui="LATENCY_ACTION_SEARCH_UI",ka.search_suggest="LATENCY_ACTION_SUGGEST",ka.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",ka.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",ka.seek="LATENCY_ACTION_PLAYER_SEEK",ka.settings="LATENCY_ACTION_SETTINGS",ka.store="LATENCY_ACTION_STORE",ka.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",ka.tenx="LATENCY_ACTION_TENX",ka.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",ka.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
ka.watch="LATENCY_ACTION_WATCH",ka.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",ka["watch,watch7"]="LATENCY_ACTION_WATCH",ka["watch,watch7_html5"]="LATENCY_ACTION_WATCH",ka["watch,watch7ad"]="LATENCY_ACTION_WATCH",ka["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",ka.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",ka.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",ka.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",ka.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",ka.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",ka.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",ka.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",ka.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",ka),HWp=0;var P3Z=function(p,x){rW.call(this,1,arguments);this.timer=x};
_.E(P3Z,rW);var LtM=new FOp("aft-recorded",P3Z);var s_$=_.Mm.ytLoggingGelSequenceIdObj_||{};_.ox("ytLoggingGelSequenceIdObj_",s_$);var U9=_.Mm.ytLoggingLatencyUsageStats_||{};_.ox("ytLoggingLatencyUsageStats_",U9);var ix=function(){this.cleanupJob=0},bWr=function(){ix.instance||(ix.instance=new ix);
return ix.instance};
_.l=ix.prototype;_.l.baseline=function(p,x,F){IL(this,"baseline_"+p)||_.E$("latencyActionBaselined",{clientActionNonce:p},{timestamp:x,cttAuthInfo:F})};
_.l.tick=function(p,x,F,N){IL(this,"tick_"+p+"_"+x)||_.E$("latencyActionTicked",{tickName:p,clientActionNonce:x},{timestamp:F,cttAuthInfo:N})};
_.l.info=function(p,x,F){var N=Object.keys(p).join("");IL(this,"info_"+N+"_"+x)||(p=Object.assign({},p),p.clientActionNonce=x,_.E$("latencyActionInfo",p,{cttAuthInfo:F}))};
_.l.jspbInfo=function(p,x,F){for(var N="",h=0;h<Qa(p).length;h++)Qa(p)[h]!==void 0&&(N=h===0?N.concat(""+h):N.concat("_"+h));IL(this,"info_"+N+"_"+x)||(_.J_(p,2,x),x={cttAuthInfo:F},F=_.S("jspb_sparse_encoded_pivot")?new dj([{}]):new dj,_.K6(F,7,j9k,p),nzB("latencyActionInfo",F,x))};
_.l.span=function(p,x,F){var N=Object.keys(p).join("");IL(this,"span_"+N+"_"+x)||(p.clientActionNonce=x,_.E$("latencyActionSpan",p,{cttAuthInfo:F}))};
var IL=function(p,x){U9[x]=U9[x]||{count:0};var F=U9[x];F.count++;F.time=(0,_.Lf)();p.cleanupJob||(p.cleanupJob=_.vZ(_.E0,function(){var N=(0,_.Lf)(),h;for(h in U9)U9[h]&&N-U9[h].time>6E4&&delete U9[h];p&&(p.cleanupJob=0)},5E3));
return F.count>5?(F.count===6&&Math.random()*1E5<1&&(F=new _.qE("CSI data exceeded logging limit with key",x.split("_")),x.indexOf("plev")>=0||_.no(F)),!0):!1};var mWJ,okB;mWJ=window;okB=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.z6=mWJ.performance||mWJ.mozPerformance||mWJ.msPerformance||mWJ.webkitPerformance||new okB;var j_p=!1,u7p=!1,T_J=(0,_.CH)(_.z6.clearResourceTimings||_.z6.webkitClearResourceTimings||_.z6.mozClearResourceTimings||_.z6.msClearResourceTimings||_.z6.oClearResourceTimings||_.Ja,_.z6);var Ol6=window;Ol6.ytcsi&&(Ol6.ytcsi.infoGel=_.uA,Ol6.ytcsi.tick=_.wH);var hSZ=function(p){rW.call(this,1,arguments);this.csn=p};
_.E(hSZ,rW);var avr=new FOp("screen-created",hSZ),Eup=[],NBw=rnM,Xxp=0,mT=new Map,lp$=new Map,cn$=new Map;var Ouk=Symbol("uf"),Uz=new WeakMap;var $a=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},a7=function(){$a.instance||($a.instance=new $a);
return $a.instance};
_.l=$a.prototype;_.l.setClient=function(p){this.client=p};
_.l.JSC$10299_newScreen=function(){this.clear();this.csn=_.b0()};
_.l.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.l.reportShown=function(p,x,F){var N=this.JSC$10299_getTrackingParams(p),h=p.visualElement?p.visualElement:N;x=this.shownElements.has(h);var c=this.visibleState.get(h);this.shownElements.add(h);this.visibleState.set(h,!0);p.impressionLog&&!x&&p.impressionLog();if(N||p.visualElement)if(F=jzb(this,p,F))if(h=LBD(this,p),ed(this,p)||h){N=p.visualElement?p.visualElement:_.fr(N);var M=p.interactionLoggingClientData;h||x?ed(this,p)&4?c||d7d(this.client,F,N,M):ed(this,p)&1&&!x&&KEw(this.client,F,N,M):KEw(this.client,
F,N,M)}};
_.l.reportHidden=function(p,x,F){var N=this.JSC$10299_getTrackingParams(p),h=p.visualElement?p.visualElement:N;x=this.hiddenElements.has(h);var c=this.visibleState.get(h);this.hiddenElements.add(h);this.visibleState.set(h,!1);if(c===!1)return!0;if(!N&&!p.visualElement)return!1;F=jzb(this,p,F);if(!F||!ed(this,p)&&LBD(this,p))return!1;N=p.visualElement?p.visualElement:_.fr(N);ed(this,p)&8?vuE(this.client,F,N):ed(this,p)&2&&!x&&(p=this.client,x=H5({cttAuthInfo:A8(F)||void 0},F),N={csn:F,ve:N.getAsJson(),
eventType:2},F==="UNDEFINED_CSN"?Oz("visualElementHidden",x,N):p?Sl("visualElementHidden",N,p,x):_.E$("visualElementHidden",N,x));return!0};
_.l.JSC$10299_getTrackingParams=function(p){var x=this.getData(p),F,N;if(_.S("il_use_view_model_logging_context")&&(x==null?0:(F=x.context)==null?0:(N=F.loggingContext)==null?0:N.loggingDirectives))return x.context.loggingContext.loggingDirectives.trackingParams||"";var h,c;if(x==null?0:(h=x.rendererContext)==null?0:(c=h.loggingContext)==null?0:c.loggingDirectives)return x.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(x==null?0:x.loggingDirectives)return x.loggingDirectives.trackingParams||
"";var M;return((M=p.veContainer)==null?0:M.trackingParams)?p.veContainer.trackingParams:(x==null?void 0:x.trackingParams)||""};
_.l.JSC$10299_elementShouldLogGesture=function(p,x){p=this.getData(p);return!!((Math.floor(Number(p&&p.loggingDirectives&&p.loggingDirectives.gestures&&p.loggingDirectives.gestures.types||""))||0)&x)};
_.l.JSC$10299_getNearestParentVe=function(p){var x=this.JSC$10299_getTrackingParams(p);return p.visualElement?p.visualElement:x?_.fr(x):p.parentElement?this.JSC$10299_getNearestParentVe(p.parentElement):null};
var jzb=function(p,x,F){var N=_.b0(F);return p.csn===null||N===p.csn||F?N:(p=new _.qE("VisibilityLogger called before newScreen",{caller:x.tagName,previous_csn:p.csn,current_csn:N}),_.no(p),null)};
$a.prototype.getData=function(p){var x,F=p.data||((x=p.props)==null?void 0:x.data);if(p.isWebComponentWrapper){var N;F=(N=Uz.get(p))==null?void 0:N[Ouk]}return F};
var LBD=function(p,x){var F;return!((F=p.getData(x))==null||!F.loggingDirectives)},ed=function(p,x){p=p.getData(x);
return Math.floor(Number(p&&p.loggingDirectives&&p.loggingDirectives.visibility&&p.loggingDirectives.visibility.types||""))||1};var pb;pb=function(){};
_.hD=function(){pb.instance||(pb.instance=new pb);return pb.instance};
pb.prototype.setClient=function(p){_.bO(a7().setClient).bind(a7())(p)};
_.PhJ=function(){_.hD();_.bO(a7().JSC$10299_newScreen).bind(a7())()};
pb.prototype.clear=function(){_.bO(a7().clear).bind(a7())()};
pb.prototype.reportShown=function(p,x,F){_.bO(a7().reportShown).bind(a7())(p,x,F)};
pb.prototype.reportHidden=function(p,x,F){return _.bO(a7().reportHidden).bind(a7())(p,x,F)};
var V$6=function(p,x){return _.bO(a7().JSC$10299_getTrackingParams).bind(a7())(x)},j5m=function(p,x){return _.bO(a7().JSC$10299_getNearestParentVe).bind(a7())(x)};var xx,TFl;xx=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};
_.cl=function(){xx.instance||(xx.instance=new xx);return xx.instance};
xx.prototype.setClient=function(p){this.client=p};
TFl=function(p,x,F){F=F===void 0?{}:F;_.bO(function(){var N,h,c,M=((N=_.r(x==null?void 0:x.commandMetadata,_.eq))==null?void 0:N.rootVe)||((h=_.r(x==null?void 0:x.commandMetadata,MXn))==null?void 0:(c=h.screenVisualElement)==null?void 0:c.uiType);if(M){N=_.r(x==null?void 0:x.commandMetadata,Pxn);if(N==null?0:N.parentTrackingParams){var f=_.fr(N.parentTrackingParams);if(N.parentCsn)var K=N.parentCsn}else F.clickedVisualElement?f=F.clickedVisualElement:x.clickTrackingParams&&(f=_.fr(x.clickTrackingParams));
a:{N=_.r(x,_.B7);h=_.r(x,t1p);if(N){if(h=q8J(N,"VIDEO")){N={token:h,videoId:N.videoId};break a}}else if(h&&(N=q8J(h,"PLAYLIST"))){N={token:N,playlistId:h.playlistId};break a}N=void 0}F=Object.assign({},{cttAuthInfo:N,parentCsn:K},F);if(_.S("expectation_logging")){var t;F.loggingExpectations=((t=_.r(x==null?void 0:x.commandMetadata,MXn))==null?void 0:t.loggingExpectations)||void 0}_.F8(p,M,f,F)}else _.no(new _.qE("Error: Trying to create a new screen without a rootVeType",x))})()};
_.F8=function(p,x,F,N){N=N===void 0?{}:N;_.bO(function(){Hlk.includes(x)||(_.no(new _.qE("createClientScreen() called with a non-page VE",x)),x=83769);N.isHistoryNavigation||(p.forwardHistoryStack=[],p.backHistoryStack.push({rootVe:x,key:N.key||""}));p.graftQueue=[];p.stateChangedQueue=[];N.dataPromises?BFZ(p,x,F,N):R1b(p,x,F,N)})()};
_.kM6=function(p,x,F){F=F===void 0?0:F;_.bO(function(){x.then(function(N){p.pendingScreenCreation.has(F)&&p.pendingScreenFn&&p.pendingScreenFn();var h=_.b0(F),c=_.yR(F);if(h&&c){var M;(N==null?0:(M=N.response)==null?0:M.trackingParams)&&of(p.client,h,c,_.fr(N.response.trackingParams));var f;(N==null?0:(f=N.playerResponse)==null?0:f.trackingParams)&&of(p.client,h,c,_.fr(N.playerResponse.trackingParams))}})})()};
xx.prototype.graftServerVe=function(p,x,F){var N=this;return _.bO(function(){var h=_.fr(p);_.NJ(N,h,x,F);return h})()};
_.L1B=function(p,x,F,N){return _.S("enable_client_ve_spec")&&x.clientVeSpec?(x=_.vt(x.clientVeSpec.uiType,void 0,x.clientVeSpec.elementIndex,x.clientVeSpec.clientYoutubeData,void 0,x),_.NJ(p,x,F,N)?x:null):x.trackingParams?p.graftServerVe(x.trackingParams,F,N):null};
_.lz=function(p,x,F,N){return _.bO(function(){if(!x.veType)return _.s$(new _.qE("Error: Trying to graft a client VE without a veType.")),null;if(x.visibilityTypes){var h=x.visibilityTypes.reduce(function(c,M){return c|M});
h={visibility:{types:String(h)}}}h=_.vt(x.veType,x.visualElement,x.elementIndex,x.clientYouTubeData,void 0,h);return _.NJ(p,h,F,N)?h:null})()};
_.NJ=function(p,x,F,N){N=N===void 0?0:N;return _.bO(function(){if(p.pendingScreenCreation.has(N))return p.graftQueue.push([x,F]),!0;var h=_.b0(N),c=F||_.yR(N);if(h&&c){if(_.S("combine_ve_grafts")){var M=p.cachedVisualElements.get(c.toString());M?M.push(x):(p.cachedRootVisualElements.set(c.toString(),c),p.cachedVisualElements.set(c.toString(),[x]));p.attachTimeout||(p.attachTimeout=_.vZ(_.E0,function(){UWj(p,h)},1200))}else of(p.client,h,c,x);
return!0}return!1})()};
_.hY=function(p,x,F){F=F===void 0?0:F;var N=p.recurringGrafts.get(F)||new Map;if(_.S("smarter_ve_dedupping"))for(var h=Array.from(N.keys()),c=0;c<h.length;c++){var M=void 0,f=void 0;var K=x;var t=h[c];t.isClientVe()&&K.isClientVe()?(M=K.getAsJson(),f=t.getAsJson(),K=M.veType!==f.veType||M.elementIndex!==f.elementIndex||M.dataElement!==f.dataElement||K.getLoggingDirectives()!==t.getLoggingDirectives()?!1:!0):K=t.veData.trackingParams!==void 0&&K.veData.trackingParams!==void 0?((f=K.veData)==null?void 0:
f.trackingParams)===((M=t.veData)==null?void 0:M.trackingParams):!1;if(K)return}else if(N.has(x))return;N.set(x,void 0);p.recurringGrafts.set(F,N);_.b0(F)==="UNDEFINED_CSN"||p.pendingScreenCreation.has(F)||_.NJ(p,x,void 0,F)};
_.lC=function(p,x,F,N){N=_.b0(N===void 0?0:N);if(!N)return!1;CU$(p.client,N,x,F);return!0};
_.cj=function(p,x,F,N){if(!x)return!1;N=_.b0(N===void 0?0:N);if(!N)return!1;CU$(p.client,N,_.fr(x),F);return!0};
_.A0=function(p,x){var F=x.getScreenLayer&&x.getScreenLayer();if(x.visualElement)return _.lC(p,x.visualElement,void 0,F);x=V$6(_.hD(),x);return _.cj(p,x,void 0,F)};
xx.prototype.clickCommand=function(p,x,F){return _.cj(this,p.clickTrackingParams,x,F===void 0?0:F)};
xx.prototype.stateChanged=function(p,x,F){this.visualElementStateChanged(_.fr(p),x,F===void 0?0:F)};
xx.prototype.visualElementStateChanged=function(p,x,F){F=F===void 0?0:F;F===0&&this.pendingScreenCreation.has(F)?this.stateChangedQueue.push([p,x]):this.logStateChanged(p,x,F)};
xx.prototype.logStateChanged=function(p,x,F){F=F===void 0?0:F;var N=_.b0(F);p=p||_.yR(F);return N&&p?(SqE(this.client,N,p,x),!0):!1};
var BFZ=function(p,x,F,N){N=N===void 0?{}:N;p.pendingScreenCreation.add(N.layer||0);p.pendingScreenFn=function(){R1b(p,x,F,N);var M=_.yR(N.layer);if(M){for(var f=_.a(p.graftQueue),K=f.next();!K.done;K=f.next())K=K.value,_.NJ(p,K[0],K[1]||M,N.layer);M=_.a(p.stateChangedQueue);for(f=M.next();!f.done;f=M.next())f=f.value,p.logStateChanged(f[0],f[1])}};
F||_.b0(N.layer)||p.pendingScreenFn();if(N.dataPromises)for(var h=_.a(N.dataPromises),c=h.next();!c.done;c=h.next())_.kM6(p,c.value,N.layer);else _.zj(Error("vf"))},R1b=function(p,x,F,N){N=N===void 0?{}:N;
var h=void 0;N.layer||(N.layer=0);h=N.parentLayer!==void 0?N.parentLayer:N.layer;var c=_.b0(h);h=_.yR(h);var M=F||h,f;M&&(N.parentCsn!==void 0?f={clientScreenNonce:N.parentCsn,visualElement:M}:c&&c!=="UNDEFINED_CSN"&&(f={clientScreenNonce:c,visualElement:M}));var K,t=_.sd("EVENT_ID");c==="UNDEFINED_CSN"&&t&&(K={servletData:{serializedServletEventId:t}});_.S("combine_ve_grafts")&&c&&UWj(p,c);_.S("no_client_ve_attach_unless_shown")&&M&&c&&fpz(M,c);try{var d=_.apd(p.client,x,f,N.csnToClone,N.cttAuthInfo,
K,N.implicitGestureType,void 0,N.loggingExpectations)}catch(X){_.yj(X,{rootVeType:x,rootVe:h,parentVisualElement:F,currentCsn:c,parentEl:f,csnToClone:N.csnToClone});_.zj(X);return}_.fdB(d,x,N.layer,N.cttAuthInfo);c&&c!=="UNDEFINED_CSN"&&h&&!MtZ(c)&&vuE(p.client,c,h,!0);p.backHistoryStack[p.backHistoryStack.length-1]&&!p.backHistoryStack[p.backHistoryStack.length-1].csn&&(p.backHistoryStack[p.backHistoryStack.length-1].csn=d||"");_.uA({clientScreenNonce:d});_.PhJ();var v=_.yR(N.layer);c&&c!=="UNDEFINED_CSN"&&
v&&(_.S("web_mark_root_visible")||_.S("music_web_mark_root_visible"))&&_.Lc(d,v);p.pendingScreenCreation.delete(N.layer||0);p.pendingScreenFn=void 0;var C;(C=p.recurringGrafts.get(N.layer))==null||C.forEach(function(X,Q){X?_.NJ(p,Q,X,N.layer):v&&_.NJ(p,Q,v,N.layer)});
ilC(p)},ilC=function(p){for(var x=0;x<p.afterNewScreenOneOffJobs.length;x++){var F=p.afterNewScreenOneOffJobs[x];
try{F()}catch(N){_.zj(N)}}for(x=p.afterNewScreenOneOffJobs.length=0;x<p.afterNewScreenRecurringJobs.length;x++){F=p.afterNewScreenRecurringJobs[x];try{F()}catch(N){_.zj(N)}}},UWj=function(p,x){if(x===void 0)for(var F=cwr(),N=0;N<F.length;N++)F[N]!==void 0&&UWj(p,F[N]);
else p.cachedVisualElements.forEach(function(h,c){(c=p.cachedRootVisualElements.get(c))&&_.MCB(p.client,x,c,h)}),p.cachedVisualElements.clear(),p.cachedRootVisualElements.clear(),p.attachTimeout=void 0};var aO=function(p){p=p===void 0?{layer:0}:p;this.hasRun=!1;this.createScreenConfig=p;p={};this.vAB=(p.response=!1,p.playerResponse=!1,p)};
_.E(aO,RL);aO.prototype.validate=function(p){return!(!p.data||!p.data.response&&!p.data.playerResponse)};
aO.prototype.handle=function(p){var x=_.cl(),F=this.createScreenConfig.layer;p.data.response&&p.data.response.trackingParams&&!this.vAB.response&&(x.graftServerVe(p.data.response.trackingParams,void 0,F),this.vAB.response=!0);p.data.playerResponse&&p.data.playerResponse.trackingParams&&!this.vAB.playerResponse&&(x.graftServerVe(p.data.playerResponse.trackingParams,void 0,F),this.vAB.playerResponse=!0)};var MJ=function(){this.ze=_.GO();this.gP=[];this.kNB=0};
MJ.prototype.processChunk=function(p){if(p){for(var x=_.a(this.gP),F=x.next();!F.done;F=x.next())F=F.value,F.validate(p)&&(F.handle(p),F.hasRun=!0);_.wH("np"+this.kNB);this.kNB++}};var ejM,e1k;_.xL=function(p,x,F,N,h,c,M){M=M===void 0?[]:M;this.buildCommandPayload=p;this.navigate=x;this.handleServiceRequest=F;this.sendAction=N;this.JSC$10340_screenManager=h;this.commandResolverMap=c;this.autoLogResolverAllowlist=M;this.pendingCommands=new Set};
ejM=function(p,x,F){var N=m3M,h=ohB,c=_.cl(),M=IE6;F=F===void 0?[]:F;_.xL.instance=new _.xL(p,x,N,h,c,M,F)};
e1k=function(p,x,F){if(!p.commandResolverMap)return!1;var N=nuZ(x,p.commandResolverMap);return N?((p.autoLogResolverAllowlist.some(function(h){return!!_.r(x,h)})||(F==null?0:F.forceClickLogging))&&$WK(p,x,F),N instanceof Promise?N.then(function(h){h.resolve(x,F)}):N.resolve(x,F),!0):!1};
_.xL.prototype.resolveCommand=function(p,x){var F=this,N=pIB(p);if(e1k(this,p,x))return!0;if(N)return xQv(this,p,x);if(!this.buildCommandPayload)return QSd(p,"Unhandled command by buildCommandPayload"),!1;var h=this.buildCommandPayload(p,x);if(x==null?0:x.commandController)h.commandController=x.commandController;if(h.type===0){if(!this.navigate)return zS$(p,"navigate"),!1;if(!F$B(h.command))return QSd(p,"Page requests need to specify a url"),!1;_.S("logging_avoid_blocking_during_navigation")&&_.PTd().transition("application_navigating");
p=this.navigate(h)||[];H2l(p).then(function(){F.pendingCommands.delete(h.command)});
return!0}if(h.type===1){if(!this.handleServiceRequest)return zS$(p,"handleServiceRequest"),!1;(x==null?0:x.forceClickLogging)&&$WK(this,h.command,x);p=this.handleServiceRequest(h);H2l(p).then(function(){F.pendingCommands.delete(h.command)});
return!0}if(h.type===2){if(!this.sendAction)return zS$(p,"sendAction"),!1;$WK(this,h.command,x);this.sendAction(h);return!0}return!1};
var $WK=function(p,x,F){if((F==null||!F.disableClickTracking)&&p.JSC$10340_screenManager)if(x.clickTrackingParams&&_.S("log_click_with_layer_from_element_in_command_handler")){var N;F=F==null?void 0:(N=F.form)==null?void 0:N.element;p.JSC$10340_screenManager.clickCommand(x,null,F&&F.getScreenLayer&&F.getScreenLayer())}else x.clickTrackingParams?p.JSC$10340_screenManager.clickCommand(x):!_.S("disable_clicked_visual_element_in_command_handler")&&(F==null?0:F.clickedVisualElement)&&_.lC(p.JSC$10340_screenManager,
F.clickedVisualElement)},pIB=function(p){var x=!!_.r(p,_.Zx),F;
p=((F=_.r(p,_.dH))==null?void 0:F.signal)==="CLIENT_SIGNAL";return x||p},xQv=function(p,x,F){var N=_.r(x,_.Zx);
if(N)var h=(N==null?void 0:N.commands)||[];else{var c;if(((c=_.r(x,_.dH))==null?void 0:c.signal)==="CLIENT_SIGNAL"){var M;h=((M=_.r(x,_.dH))==null?void 0:M.actions)||[]}}if(h){x=_.a(h);for(h=x.next();!h.done;h=x.next()){h=h.value;try{p.resolveCommand(h,F)}catch(f){f instanceof Error&&_.zj(f)}}return!0}QSd(x,"Could not handle the meta command");return!1},F$B=function(p){var x;
return!((x=_.r(p==null?void 0:p.commandMetadata,_.eq))==null||!x.url)};var D1=function(){RL.apply(this,arguments)};
_.E(D1,RL);D1.prototype.validate=function(p){var x,F;return!this.hasRun&&!!((x=p.data.response)==null?0:(F=x.onResponseReceivedEndpoints)==null?0:F.length)};
D1.prototype.handle=function(p){var x=_.xL.instance;p=_.a(p.data.response.onResponseReceivedEndpoints);for(var F=p.next();!F.done;F=p.next())x.resolveCommand(F.value)};var Nc6,hJZ,lVv;
Nc6=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=_.qt();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.fb=function(){hJZ||(hJZ=new Nc6);return hJZ};
lVv=function(){var p=_.fb();p.miniplayerButtonActivation=!1;p.userActivation=!1;p.playlistWatchPageActivation=!1;p.productDetailsPageActivation=!1;p.miniAppPageActivation=!1;p.playablesDestPageActivation=!1;p.lockupActivation=!1;p.showMiniplayerCommandActivation=!1;p.playlistSuggestionsShelfActivation=!1;p.mediaSessionPipActivation=!1;p.watchPipActivation=!1;p.watchWhileActivation=!1;p.shortsPipActivation=!1};
_.c7l=function(){var p=_.fb(),x=p.mediaSessionPipActivation,F=p.watchPipActivation,N=p.watchWhileActivation,h=p.playlistWatchPageActivation,c=p.lockupActivation,M=p.showMiniplayerCommandActivation,f=p.navigatingAwayFromWatchDeletedVideo,K=p.shortsPipActivation,t=p.playlistSuggestionsShelfActivation,d=p.productDetailsPageActivation,v=p.miniAppPageActivation,C=p.playablesDestPageActivation;return!p.miniplayerButtonActivation&&!h&&!t&&!d&&!v&&!C&&!c&&!M&&!x&&!F&&!N&&!K||f};var C9d;_.Kb=If("FEwhat_to_watch","/",3854);_.SDH=If("FEdownloads","/feed/downloads",42352);C9d=If("FEmusic_offline","browse/FEmusic_offline",42352);var Tt=function(p,x){x=x===void 0?[]:x;var F=F===void 0?[]:F;x=U8r.apply(null,[iym.apply(null,_.se(x))].concat(_.se(F)));this.store=psk(p,void 0,x)};
Tt.prototype.getState=function(){return this.store.getState()};
Tt.prototype.dispatch=function(p){return this.store.dispatch(p)};
Tt.prototype.subscribe=function(p){return this.store.subscribe(p)};
Tt.prototype.replaceReducer=function(p){return this.store.replaceReducer(p)};
Tt.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.qJ=function(p,x,F){var N=x(p.getState());return p.subscribe(function(){var h=x(p.getState());if(h!==N){var c=N;N=h;F(h,c)}})};var CxE;_.KV=function(p,x,F){return _.F4({type:"REPLACE_ENTITY",payload:{entityPayload:F,entityType:p,key:x}})};
CxE=function(p){return _.F4({type:"REPLACE_ENTITIES",payload:p})};
_.z7=function(p,x,F,N){return _.F4({type:"UPDATE_ENTITY",payload:{entityPayload:F,entityType:p,key:x,mergeOption:N}})};var O7Z=function(p){var x=this;p=p===void 0?[]:p;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;p.forEach(function(F){x.append(F)})};
_.l=O7Z.prototype;_.l.getLength=function(){return this.totalLength};
_.l.append=function(p){var x=this.arrays.length===0?!1:(x=this.arrays[this.arrays.length-1])&&x.buffer===p.buffer&&x.byteOffset+x.length===p.byteOffset;x?(x=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(x.buffer,x.byteOffset,x.length+p.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(p);this.totalLength+=p.length};
_.l.split=function(p){for(var x=new O7Z,F=new O7Z,N=_.a(this.arrays),h=N.next();!h.done;h=N.next())h=h.value,p>=h.length?(x.append(h),p-=h.length):p?(x.append(new Uint8Array(h.buffer,h.byteOffset,p)),F.append(new Uint8Array(h.buffer,h.byteOffset+p,h.length-p)),p=0):F.append(h);return{headView:x,tailView:F}};
_.l.isFocused=function(p){return p>=this.arrayPos&&p<this.arrayPos+this.arrays[this.arrayIdx].length};
_.l.focus=function(p){if(!this.isFocused(p))for(p<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=p&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
_.l.getDataView=function(p,x){p=p===void 0?0:p;x=x===void 0?-1:x;if(!this.totalLength||!x)return new DataView(new ArrayBuffer(0));x<0&&(x=this.totalLength-p);this.focus(p);if(!(p-this.arrayPos+x<=this.arrays[this.arrayIdx].length)){var F=this.arrayIdx,N=this.arrayPos;this.focus(p+x-1);N=new Uint8Array(this.arrayPos+this.arrays[this.arrayIdx].length-N);for(var h=0,c=F;c<=this.arrayIdx;c++)N.set(this.arrays[c],h),h+=this.arrays[c].length;this.arrays.splice(F,this.arrayIdx-F+1,N);this.arrayPos=this.arrayIdx=
0;this.focus(p)}F=this.arrays[this.arrayIdx];return new DataView(F.buffer,F.byteOffset+p-this.arrayPos,x)};
_.l.getUint8=function(p){this.focus(p);return this.arrays[this.arrayIdx][p-this.arrayPos]};(function(){var p=function(N){return new Uint8Array(N)},x=function(N){for(var h=new Uint8Array(N.length),c=0;c<N.length;c++)h[c]=N[c];
return h},F=new Uint8Array([1]);
return F.length===1&&F[0]===1?p:x})();
var GRJ=Array(1024),wxr=window.TextDecoder?new TextDecoder:void 0,WEm=window.TextEncoder?new TextEncoder:void 0;var ou$=function(p){this.arrayView=p;this.pos=0;this.pendingTagAndType=-1},N4=function(p){var x=p.arrayView.getUint8(p.pos);
++p.pos;if(x<128)return x;for(var F=x&127,N=1;x>=128;)x=p.arrayView.getUint8(p.pos),++p.pos,N*=128,F+=(x&127)*N;return F},jSr=function(p,x){var F=p.pendingTagAndType;
for(p.pendingTagAndType=-1;p.pos+1<=p.arrayView.totalLength;){F<0&&(F=N4(p));var N=F>>3,h=F&7;if(N===x)return!0;if(N>x){p.pendingTagAndType=F;break}F=-1;switch(h){case 0:N4(p);break;case 1:p.pos+=8;break;case 2:N=N4(p);p.pos+=N;break;case 5:p.pos+=4}}return!1};var PUz=function(){this.pos=0;this.submessagePosStack=[];this.buf=m7J(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},ci=function(p,x){x=p.pos+x;
if(!(p.buf.length>=x)){for(var F=p.buf.length*2;F<x;)F*=2;p.buf=m7J(F,p.buf.subarray(0,p.pos));p.view=new DataView(p.buf.buffer,p.buf.byteOffset,p.buf.byteLength)}},lP=function(p,x){if(x>268435455){ci(p,4);
for(var F=x&1073741823,N=0;N<4;N++)p.view.setUint8(p.pos,F&127|128),F>>=7,p.pos+=1;x=Math.floor(x/268435456)}for(ci(p,4);x>127;)p.view.setUint8(p.pos,x&127|128),x>>=7,p.pos+=1;p.view.setUint8(p.pos,x);p.pos+=1};for(var TBd={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,fakeChannel:2,
fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,transfer:120,
trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},LEk={},aV6=_.a(Object.entries(TBd)),Mvn=aV6.next();!Mvn.done;Mvn=aV6.next()){var DQ6=_.a(Mvn.value),fV6=DQ6.next().value,K$J=DQ6.next().value,qZZ=fV6,Z_k=K$J;Z_k&&(LEk[Z_k]=qZZ)};var RSJ=function(p,x){p=p===void 0?{}:p;switch(x.type){case "ENTITY_LOADED":return x.payload.reduce(function(N,h){var c,M=(c=h.options)==null?void 0:c.persistenceOption;if(M&&M!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&M!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return N;if(!h.entityKey)return _.zj(Error("xf")),N;if(h.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!h.payload)return h=new _.qE("REPLACE entity mutation is missing a payload",{entityKey:h.entityKey}),_.zj(h),N;var f=(0,_.Q5.getAnyKey)(h.payload);
return U7H(N,f,h.entityKey,h.payload[f])}if(h.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{h=h.entityKey;try{var K=_.h$(h).entityType;f=U7H(N,K,h);break a}catch(v){if(v instanceof Error){h=new _.qE("Failed to deserialize entity key",{entityKey:h,originalMessage:v.message});_.zj(h);f=N;break a}throw v;}f=void 0}return f}if(h.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!h.payload)return h=new _.qE("UPDATE entity mutation is missing a payload",{entityKey:h.entityKey}),_.zj(h),N;f=(0,_.Q5.getAnyKey)(h.payload);
var t,d;return i7J(N,f,h.entityKey,h.payload[f],(t=h.fieldMask)==null?void 0:(d=t.mergeOptions)==null?void 0:d.repeatedFieldsMergeOption)}return N},p);
case "REPLACE_ENTITY":var F=x.payload;return U7H(p,F.entityType,F.key,F.entityPayload);case "REPLACE_ENTITIES":return Object.keys(x.payload).reduce(function(N,h){var c=x.payload[h];return Object.keys(c).reduce(function(M,f){return U7H(M,h,f,c[f])},N)},p);
case "UPDATE_ENTITY":return F=x.payload,i7J(p,F.entityType,F.key,F.entityPayload,F.mergeOption);default:return p}};var IpJ;var tvC=!1,Z1,tY,dS,vj,JY,dQb=function(p){_.Jm.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!tvC){var x,F=new Uint8Array(256),N=new Uint8Array(256);var h=1;for(x=0;x<256;x++)F[h]=x,N[x]=h,h^=h<<1^(h>>7&&283);Z1=new Uint8Array(256);tY=D2(256);dS=D2(256);vj=D2(256);JY=D2(256);for(var c=0;c<256;c++){h=c?N[255^F[c]]:0;h^=h<<1^h<<2^h<<3^h<<4;h=h&255^h>>>8^99;Z1[c]=h;x=h<<1^(h>>7&&283);var M=x^h;tY[c]=x<<24|h<<16|h<<8|M;dS[c]=M<<24|tY[c]>>>8;vj[c]=h<<24|dS[c]>>>
8;JY[c]=h<<24|vj[c]>>>8}tvC=!0}h=D2(44);for(F=0;F<4;F++)h[F]=p[4*F]<<24|p[4*F+1]<<16|p[4*F+2]<<8|p[4*F+3];for(N=1;F<44;F++)p=h[F-1],F%4||(p=(Z1[p>>16&255]^N)<<24|Z1[p>>8&255]<<16|Z1[p&255]<<8|Z1[p>>>24],N=N<<1^(N>>7&&283)),h[F]=h[F-4]^p;this.key=h};
_.E(dQb,_.Jm);
dQb.prototype.encrypt=function(p){var x=p.length;p=new Uint8Array(p.buffer.slice(p.byteOffset,p.byteOffset+x));for(var F=this.cipherBlock,N=0;N<x&&this.blockOffset<16;)p[N++]^=F[this.blockOffset++];for(var h=x-(x-N)%16;N<h;)veI(this),p[N++]^=F[0],p[N++]^=F[1],p[N++]^=F[2],p[N++]^=F[3],p[N++]^=F[4],p[N++]^=F[5],p[N++]^=F[6],p[N++]^=F[7],p[N++]^=F[8],p[N++]^=F[9],p[N++]^=F[10],p[N++]^=F[11],p[N++]^=F[12],p[N++]^=F[13],p[N++]^=F[14],p[N++]^=F[15];if(N<x)for(veI(this),this.blockOffset=0;N<x;)p[N++]^=
F[this.blockOffset++];return p};
var J7I=function(p,x){for(var F=0;F<4;F++)p.counter[F]=x[F*4]<<24|x[F*4+1]<<16|x[F*4+2]<<8|x[F*4+3];p.blockOffset=16},veI=function(p){for(var x=p.key,F=p.counter[0]^x[0],N=p.counter[1]^x[1],h=p.counter[2]^x[2],c=p.counter[3]^x[3],M=3;M>=0&&!(p.counter[M]=-~p.counter[M]);M--);
for(var f,K,t=4;t<40;)M=tY[F>>>24]^dS[N>>16&255]^vj[h>>8&255]^JY[c&255]^x[t++],f=tY[N>>>24]^dS[h>>16&255]^vj[c>>8&255]^JY[F&255]^x[t++],K=tY[h>>>24]^dS[c>>16&255]^vj[F>>8&255]^JY[N&255]^x[t++],c=tY[c>>>24]^dS[F>>16&255]^vj[N>>8&255]^JY[h&255]^x[t++],F=M,N=f,h=K;p=p.cipherBlock;M=x[40];p[0]=Z1[F>>>24]^M>>>24;p[1]=Z1[N>>16&255]^M>>16&255;p[2]=Z1[h>>8&255]^M>>8&255;p[3]=Z1[c&255]^M&255;M=x[41];p[4]=Z1[N>>>24]^M>>>24;p[5]=Z1[h>>16&255]^M>>16&255;p[6]=Z1[c>>8&255]^M>>8&255;p[7]=Z1[F&255]^M&255;M=x[42];
p[8]=Z1[h>>>24]^M>>>24;p[9]=Z1[c>>16&255]^M>>16&255;p[10]=Z1[F>>8&255]^M>>8&255;p[11]=Z1[N&255]^M&255;M=x[43];p[12]=Z1[c>>>24]^M>>>24;p[13]=Z1[F>>16&255]^M>>16&255;p[14]=Z1[N>>8&255]^M>>8&255;p[15]=Z1[h&255]^M&255};var Cp6=!1;(function(){var p=function(N){return new Uint8Array(N)},x=function(N){for(var h=new Uint8Array(N.length),c=0;c<N.length;c++)h[c]=N[c];
return h},F=new Uint8Array([1]);
return F.length===1&&F[0]===1?p:x})();
var Cb;var SZv=function(p){this.JSC$10407_aesKey=p};
SZv.prototype.encrypt=function(p,x){var F=this,N,h;return _.D(function(c){if(c.nextAddress==1){a:{if(!Cp6&&!_.H8){if(Cb){var M=Cb;break a}Cb=(M=window.crypto)==null?void 0:M.subtle;var f,K,t;if(((f=Cb)==null?0:f.importKey)&&((K=Cb)==null?0:K.sign)&&((t=Cb)==null?0:t.encrypt)){M=Cb;break a}Cb=void 0}M=void 0}N=M;if(!N)return c.return(r7j(F,p,x));_.KM(c,3);return _.q(c,EeC(F,p,x,N),5)}if(c.nextAddress!=3)return c.return(c.yieldResult);h=_.v9(c);_.no(h);Cp6=!0;return c.return(r7j(F,p,x))})};
var EeC=function(p,x,F,N){var h,c;return _.D(function(M){switch(M.nextAddress){case 1:if(p.cryptoKey){M.jumpTo(2);break}return _.q(M,N.importKey("raw",p.JSC$10407_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:p.cryptoKey=M.yieldResult;case 2:return h={name:"AES-CTR",counter:F,length:128},_.q(M,N.encrypt(h,p.cryptoKey,x),4);case 4:return c=M.yieldResult,M.return(new Uint8Array(c))}})},r7j=function(p,x,F){p.encryptorPolyfill||(p.encryptorPolyfill=new dQb(p.JSC$10407_aesKey));
J7I(p.encryptorPolyfill,F);return p.encryptorPolyfill.encrypt(x)},XIb=function(p){this.JSC$10411_aesKey=p};
XIb.prototype.encrypt=function(p,x){this.encryptor||(this.encryptor=new dQb(this.JSC$10411_aesKey));J7I(this.encryptor,x);return this.encryptor.encrypt(p)};var gej={},pfJ=jQ("yt-idb-pref-storage",{objectStores:(gej.prefs={addedAtVersion:1},gej),shared:!1,upgrade:function(p,x){x(1)&&Ad(b1(p,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.Sa=function(p){this.token=p};
_.Sa.getInstance=function(){return _.D(function(p){return p.return(new Promise(function(x){_.O5().then(function(F){F?(_.Sa.instance||(_.Sa.instance=new _.Sa(F)),x(_.Sa.instance)):x(void 0)})}))})};
_.Sa.prototype.get=function(p){var x=this,F,N,h;return _.D(function(c){if(c.nextAddress==1)return _.q(c,xoH(x.token),2);if(c.nextAddress!=3)return F=c.yieldResult,_.q(c,F.get("prefs",p),3);N=c.yieldResult;if(!N)return c.return();h=(0,_.Lf)();return N.expirationTimestampMs<=h?c.return():c.return(N.value)})};
_.Sa.prototype.set=function(p,x,F){F=F===void 0?31536E3:F;var N=this,h,c,M;return _.D(function(f){if(f.nextAddress==1)return h=(0,_.Lf)(),c={key:p,value:x,expirationTimestampMs:h+F*1E3},_.q(f,xoH(N.token),2);M=f.yieldResult;return _.q(f,M.put("prefs",c),0)})};
_.Sa.prototype.remove=function(p){var x=this,F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,xoH(x.token),2);F=N.yieldResult;return _.q(N,F.delete("prefs",p),0)})};var rS={},QaB=(rS.INVALID_ENCODER_VERSION="Invalid encoder version",rS.KEY_CREATION_FAILED="Failed to create encoder key",rS.UNKNOWN_DECODE_ERROR="Failed to decode PES data",rS.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",rS.WRONG_DATA_TYPE="Encoder cannot process the data type",rS),f1=function(p,x){x=x===void 0?{}:x;_.qE.call(this,QaB[p],Object.assign({},{name:"PESEncoderError",type:p},x));this.type=p;this.level="WARNING";Object.setPrototypeOf(this,f1.prototype)};
_.E(f1,_.qE);var zJm=function(){},saC=function(p,x,F){try{return p.encodeImpl(x,F)}catch(N){leH(N,NA$)}},nen=function(p,x,F){var N;
return _.D(function(h){if(h.nextAddress==1)return _.KM(h,2),_.q(h,p.decodeAsyncImpl(x,F),4);if(h.nextAddress!=2)return h.return(h.yieldResult);N=_.v9(h);leH(N,h2H);_.JB(h)})};
zJm.prototype.decodeAsyncImpl=function(p,x){return Promise.resolve(this.decodeImpl(p,x))};var Em=function(p,x){this.aesEncryptor=p;this.aesEncryptorAsync=x};
_.E(Em,zJm);Em.prototype.encodeImpl=function(p,x){x=cS$(x);p=(new TextEncoder).encode(JSON.stringify(p));return this.aesEncryptor.encrypt(p,x)};
Em.prototype.decodeImpl=function(p,x){if(!(p instanceof Uint8Array))throw FFm(1);var F=new TextDecoder;x=cS$(x);p=this.aesEncryptor.encrypt(p,x);return JSON.parse(F.decode(p))};
Em.prototype.decodeAsyncImpl=function(p,x){var F=this,N,h,c;return _.D(function(M){if(M.nextAddress==1){if(!(p instanceof Uint8Array))throw FFm(1);N=new TextDecoder;h=cS$(x);return _.q(M,F.aesEncryptorAsync.encrypt(p,h),2)}c=M.yieldResult;return M.return(JSON.parse(N.decode(c)))})};var aew={accountLinkStatusEntity:ClK,booleanEntity:Usn,buttonEntity:ObK,captionTrack:TBB,channelHandle:Hiv,commerceAcquisitionClientPayloadEntity:f_B,commerceCartListEntity:KpC,contextNoteFeedEntityPayload:T8j,continuationTokenEntity:ycB,downloadQualityPickerEntity:Jcm,downloadsPageRefreshTokenEntity:S8I,downloadsPageViewConfigurationEntity:HWZ,downloadStatusEntity:C3l,dismissState:nxI,sfvAudioItemCurrentlyPlayingEntity:gaB,emojiFountainDataEntity:Hbn,emojiCustomizationSetEntity:WeK,fakeChannel:$sk,
fakePlaylist:eVD,fakePlaylistEntryCollection:pa6,fakeVideo:F3m,fakeVideoDescription:NWj,featuredProductsEntity:FEb,flowStateEntity:ttv,iconBadgeEntity:qBC,interstitialInteractionStateEntity:W3b,likeButtonAnimationEntity:mjZ,liveChatPollStateEntity:TWB,liveViewerLeaderboardChatEntryPointStateEntity:len,liveViewerLeaderboardPointsEntity:cSB,liveReactionsDataEntity:mJm,logoEntity:wan,macroMarkerEntity:oz6,mainDownloadsLibraryEntity:rcB,mainDownloadsListEntity:EzC,mainPlaylistDownloadStateEntity:gz6,
mainPlaylistEntity:bWb,mainPlaylistVideoEntity:Acb,mainVideoDownloadStateEntity:Q_K,mainVideoEntity:Gi6,markersEngagementPanelSyncEntity:OWZ,markersVisibilityOverrideEntity:j_D,musicAlbumReleaseDetail:Z7D,musicAlbumReleaseDownloadMetadataEntity:MCm,musicAlbumRelease:qqb,musicAlbumReleaseUserDetail:tCj,musicArtistDetail:vu6,musicArtist:d7B,musicArtistUserDetail:Jnn,musicDownloadsLibraryEntity:D7I,musicLibraryEdit:CUB,musicLibraryStatusEntity:Sq6,musicPlaylist:rnv,musicPlaylistDownloadMetadataEntity:fpC,
musicShare:XxZ,musicTrackDetail:QSB,musicTrackDownloadMetadataEntity:KEj,musicTrack:guk,musicTrackUserDetail:zSB,offlineOrchestrationActionWrapperEntity:BBZ,offlineVideoPolicy:RSk,offlineVideoStreams:kRn,offlineabilityEntity:z_Z,orchestrationWebSamplingEntity:s_B,pageHeaderEntity:AYB,pdpStateEntity:ZJI,pinnedProductEntity:NBj,playbackData:U7n,playerStateEntity:Ltv,quantityIncrementerEntity:tjD,refresh:i7k,saveToPlaylistListEntity:TAK,settingEntity:f1n,stringEntity:iFD,suggestedFeedbackChipStateEntity:P3K,
transfer:Ipk,trendingOfferEntity:hSK,videoDownloadContextEntity:$7I,videoOverviewAsyncDataEntity:mqB,videoPlaybackPositionEntity:PCB,votingEntity:Ymk,ytMainChannelEntity:VXB,youchatPendingResponseEntity:T_k,ytMainDownloadedVideoEntity:nzm,ytMainVideoEntity:Wtl};var y7C,A7B,vi,doB,va$,wIK,VvZ,Gpm,YZK;y7C=function(p,x){this.JSC$10430_wrapped=p;this.JSC$10430_encoderRegistry=x;this.changedKeys={}};
A7B=function(p,x){a:{p=b_k(p.JSC$10430_encoderRegistry,x.version);try{var F=p.decodeImpl(x.data,x.key);break a}catch(N){leH(N,h2H)}F=void 0}return F};
_.umZ=function(p,x,F){return p.JSC$10430_wrapped.objectStore("EntityStore").get(x).then(function(N){if(N){if(F&&N.entityType!==F)throw Error("yf");return A7B(p,N)}})};
vi=function(p,x,F){return F?(F=F.map(function(N){return _.umZ(p,N,x)}),nf.all(F)):p.JSC$10430_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(x)).then(function(N){return N.map(function(h){return A7B(p,h)})})};
_.td6=function(p,x,F){var N=BBp(x),h=b_k(p.JSC$10430_encoderRegistry,1),c=Object.assign({},x);return p.JSC$10430_wrapped.objectStore("EntityStore").get(N).then(function(M){if(M){if(M.entityType!==F)throw Error("yf");c.entityMetadata||(M=A7B(p,M),c.entityMetadata=M.entityMetadata)}}).then(function(){var M={key:N,
entityType:F,data:saC(h,c,N),version:1};return nf.all([p.JSC$10430_wrapped.objectStore("EntityStore").put(M),YZK(p,c,F)])}).then(function(){wIK(p,N,F);
return N})};
doB=function(p,x){var F=_.h$(x).entityType;return nf.all([p.JSC$10430_wrapped.objectStore("EntityStore").delete(x),Gpm(p,x)]).then(function(){wIK(p,x,F)})};
va$=function(p,x,F,N){var h=b_k(p.JSC$10430_encoderRegistry,1);return _.umZ(p,x,N).then(function(c){if(c){c=Yq6(c,F);var M={key:x,entityType:N,data:saC(h,c,x),version:1};return nf.all([p.JSC$10430_wrapped.objectStore("EntityStore").put(M),YZK(p,c,N)])}}).then(function(){wIK(p,x,N);
return x})};
wIK=function(p,x,F){var N=p.changedKeys[F];N||(N=new Set,p.changedKeys[F]=N);N.add(x)};
VvZ=function(p,x,F){var N=BBp(x);F=Md6(F);if(!F)return nf.resolve([]);F=new F(x);p=p.JSC$10430_wrapped.objectStore("EntityAssociationStore");x=[];F=_.a(F.getAssociations());for(var h=F.next();!h.done;h=F.next())x.push(p.put({parentEntityKey:N,childEntityKey:h.value}));return nf.all(x).then(function(c){return c.map(function(M){return M[1]})})};
Gpm=function(p,x){return p.JSC$10430_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(x))};
YZK=function(p,x,F){var N=BBp(x);return Gpm(p,N).then(function(){return VvZ(p,x,F)})};var W$J=function(){};
_.E(W$J,zJm);W$J.prototype.encodeImpl=function(p){return p};
W$J.prototype.decodeImpl=function(p){if(p instanceof Uint8Array)throw FFm(0);return p};var KFk=function(){this.cacheMap={};this.cacheMap[0]=new W$J;if(!_.S("aes_pes_encoder_killswitch")){var p=this.cacheMap;try{var x=_.ff();var F=cS$(x);var N=new Em(new XIb(F),new SZv(F))}catch(h){throw p=h instanceof Error?new f1("KEY_CREATION_FAILED",{originalMessage:h.message}):new f1("KEY_CREATION_FAILED"),_.zj(p),p;}p[1]=N}},b_k=function(p,x){x=x===void 0?0:x;
p=p.cacheMap[x];if(!p)throw x=new f1("INVALID_ENCODER_VERSION",{encoderVersion:x}),_.zj(x),x;return p};var Z2=function(p,x){_.Jm.call(this);this.token=p;this.JSC$10444_encoderRegistry=x;this.observers=[];p=new _.Mm.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.ff());p.onmessage=this.handleMessage.bind(this);this.channel=p};
_.E(Z2,_.Jm);_.db=function(p,x,F){var N,h,c,M;return _.D(function(f){if(f.nextAddress==1)return _.q(f,eS6(p.token),2);if(f.nextAddress!=3)return N=f.yieldResult,_.q(f,_.GI(N,["EntityStore","EntityAssociationStore"],x,function(K){h=new y7C(K,p.JSC$10444_encoderRegistry);return F(h)}),3);
c=f.yieldResult;h&&(M=h.changedKeys,Object.keys(M).length>0&&(p.channel.postMessage(M),H_D(p,M)));return f.return(c)})};
Z2.prototype.observe=function(p){var x=this;this.observers.push(p);return function(){var F=x.observers.indexOf(p);F>=0&&x.observers.splice(F,1)}};
var L0z=function(p){var x;return _.D(function(F){if(F.nextAddress==1)return _.q(F,_.db(p,{mode:"readonly",enableRetries:!0},function(N){return N.JSC$10430_wrapped.objectStore("EntityStore").getAll()}),2);
x=F.yieldResult;return F.return(Promise.all(x.filter(function(N){return!!N}).map(function(N){var h,c;
return _.D(function(M){if(M.nextAddress==1){h=N.key;c=N.entityType;var f=nen(b_k(p.JSC$10444_encoderRegistry,N.version),N.data,N.key);return _.q(M,f,2)}return M.return({key:h,entityType:c,data:M.yieldResult})})})))})};
Z2.prototype.handleMessage=function(p){H_D(this,p.data)};
var H_D=function(p,x){p=_.a(p.observers);for(var F=p.next();!F.done;F=p.next())F=F.value,F(x)};
Z2.prototype.disposeInternal=function(){this.channel.close()};
var Do$;var X8,oeZ,Zbw,Vdp;X8={};_.mQn=(X8.mainVideoEntity="mainVideoEntityActionMetadata",X8.mainPlaylistEntity="mainPlaylistEntityActionMetadata",X8.musicTrack="musicTrackEntityActionMetadata",X8.musicPlaylist="musicPlaylistEntityActionMetadata",X8);oeZ=new _.iE("DOWNLOADS_ENTITY_TYPE_MAP");Zbw=_.au("","downloadsPageViewConfigurationEntity");Vdp=_.au("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.vxd=_.au("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.au("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.au("SMART_DOWNLOADS_ENABLED","settingEntity");_.au("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var Eap=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var ySw=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var NSE={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var zN,xqz,kTm,j6d;zN=window;_.Vr=zN.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.qBz=zN.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.jT;xqz=zN.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Xo;kTm=zN.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||RlC;_.O_l=zN.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.f$l;j6d=zN.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||Zrn;ou({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 dqp=Fpw(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(p){return p}}}),abH=Fpw(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(p){return p}}}),cAp=new Map;var JAM=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],Kpz;var jaK=function(p){return _.F4({type:"SET_EPHEMERAL_ACTION",payload:p})};var L$B={ephemeralAction:null};var PpK={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var o6M={sharedUi:function(p,x){p=p===void 0?PpK:p;switch(x.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},p,{animatedThumbnailEnabled:x.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},p,{inlinePreviewEnabled:x.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},p,{currentPageType:x.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},p,{currentPageSubType:x.payload});default:return p}},
a11y:Ks({ephemeralAction:function(p,x){p=p===void 0?L$B.ephemeralAction:p;switch(x.type){case "SET_EPHEMERAL_ACTION":return x.payload;default:return p}}})};var YBm=Ks({isLeaderTab:function(p,x){p=p===void 0?!0:p;switch(x.type){case "SET_IS_LEADER_TAB":var F,N;return(N=x==null?void 0:(F=x.payload)==null?void 0:F.isLeaderTab)!=null?N:p;default:return p}}});var TcC=function(p){return _.F4({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:p}})};var mq$=Ks({isDesktopSmallWidth:function(p,x){switch(x.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return x.payload.isDesktopSmallWidth;default:return p===void 0?!1:p}},
isShortsActive:function(p,x){switch(x.type){case "SET_IS_SHORTS_ACTIVE":return x.payload.isShortsActive;default:return p===void 0?!1:p}},
isWatchWhileMode:function(p,x){switch(x.type){case "SET_IS_WATCH_WHILE_MODE":return x.payload.isWatchWhileMode;default:return p===void 0?!1:p}},
playerState:function(p,x){switch(x.type){case "SET_PLAYER_STATE":return x.payload.playerState;default:return p===void 0?-1:p}},
isFullscreen:function(p,x){switch(x.type){case "SET_IS_FULLSCREEN":return x.payload.isFullscreen;default:return p===void 0?!1:p}},
isSmallScreenSqueezeback:function(p,x){switch(x.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return x.payload.isSmallScreenSqueezeback;default:return p===void 0?!1:p}},
isShortsPipActive:function(p,x){switch(x.type){case "SET_IS_SHORTS_PIP_ACTIVE":return x.payload.isShortsPipActive;default:return p===void 0?!1:p}},
isPlaybackStarted:function(p,x){switch(x.type){case "SET_IS_PLAYBACK_STARTED":return x.payload.isPlaybackStarted;default:return p===void 0?!1:p}}});var g6p={playlistId:"",inviteLinkURL:""};var BcK={};var uAp=Ks({continuationCommand:function(p,x){p=p===void 0?BcK:p;switch(x.type){case "SET_CONTINUATION_COMMAND":return x.payload.continuationCommand;default:return p}}});var j3k=function(){return function(p){return function(x){var F=p(x);_.lA(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[x],!0);return F}}};var RJk;RJk=new _.FT;_.Ui=new _.iE("WATCH_PLAYER_PROMISE_TOKEN");_.kpI=new _.FT;_.UQI=new _.iE("SHORTS_PLAYER_PROMISE_TOKEN");_.pV=new _.iE("");var Lp6=function(){return function(p){return function(x){x.type==="ENTITY_LOADED"&&_.J().resolve(_.Ui).then(function(F){var N;(N=F.dispatchReduxAction)==null||N.call(F,x)});
return p(x)}}};var z0m={currentFormId:"",commandsMap:{}};var i_m={};var w6p=Ks({additionalContext:function(p,x){switch(x.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var F;return(F=x.payload)!=null?F:"";default:return p===void 0?"":p}},
impersonatedChannelUrl:function(p,x){switch(x.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var F;return(F=x.payload)!=null?F:"";default:return p===void 0?"":p}},
selectedVideoIds:function(p,x){p=p===void 0?i_m:p;switch(x.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var F={};return Object.assign({},p,(F[x.payload]=!0,F));case "VIDEO_UNSELECTED":return x=x.payload,p=Object.assign({},p),delete p[x],p;default:return p}}});var G2Z=Ks({parentClickTrackingParams:function(p,x){switch(x.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return x.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return p===void 0?"":p}}});var IVv=function(p){return _.F4({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:p})};var $QB={};var Vjp=Ks({stepStates:function(p,x){p=p===void 0?$QB:p;switch(x.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var F=p,N=x.payload,h,c,M;p={};x={selectionStates:Object.assign({},(M=(h=F[N.stepId])==null?void 0:h.selectionStates)!=null?M:{},(p[N.token]={isSelected:N.isSelected},p)),userQuery:(c=F[N.stepId])==null?void 0:c.userQuery};h={};return Object.assign({},F,(h[N.stepId]=x,h));case "TALK_TO_RECS_UPDATE_USER_QUERY":return h=p,c=x.payload,M={selectionStates:Object.assign({},
(N=(F=h[c.stepId])==null?void 0:F.selectionStates)!=null?N:{}),userQuery:{userQuery:c.userQuery,token:c.userQueryToken}},F={},Object.assign({},h,(F[c.stepId]=M,F));default:return p}}});var eJj,phZ;eJj=function(p){return _.F4({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:p})};
phZ=function(p){return _.F4({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:p})};
_.y$=function(p){return _.F4({type:"SET_CURRENT_PAGE_TYPE",payload:p})};
_.xxJ=function(p){return _.F4({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:p})};var n6w={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"};_.FoB=function(p){return _.F4({type:"SET_PLAYER_STATE",payload:{playerState:p}})};var NKB=[],hLb={width:0,height:0};var Wpd=Ks({isTheaterMode:function(p,x){p=p===void 0?_.nt("START_IN_THEATER_MODE"):p;switch(x.type){case "SET_IS_THEATER_MODE":return x.payload.isTheaterMode;default:return p}},
isWatchActive:function(p,x){switch(x.type){case "SET_IS_WATCH_ACTIVE":return x.payload.isWatchActive;default:return p===void 0?!1:p}},
isWatchFullscreen:function(p,x){switch(x.type){case "SET_IS_WATCH_FULLSCREEN":return x.payload.isWatchFullscreen;default:return p===void 0?!1:p}},
isWatchNarrowWidth:function(p,x){switch(x.type){case "SET_IS_WATCH_NARROW_WIDTH":return x.payload.isWatchNarrowWidth;default:return p===void 0?!1:p}},
isWatchRetroMode:function(p,x){switch(x.type){case "SET_IS_WATCH_RETRO_MODE":return x.payload.isWatchRetroMode;default:return p===void 0?!1:p}},
isLiveChatCollapsed:function(p,x){switch(x.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return x.payload.isLiveChatCollapsed;default:return p===void 0?!1:p}},
openEngagementPanels:function(p,x){p=p===void 0?NKB:p;var F=[].concat(_.se(p));switch(x.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return F.push(x.payload.panelToAdd),F;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return F.splice(F.indexOf(x.payload.panelToRemove),1),F;default:return p}},
playerState:function(p,x){switch(x.type){case "SET_PLAYER_STATE":return x.payload.playerState;default:return p===void 0?-1:p}},
watchScrollTop:function(p,x){switch(x.type){case "SET_WATCH_SCROLL_TOP":return x.payload.watchScrollTop;default:return p===void 0?0:p}},
watchWindowSize:function(p,x){p=p===void 0?hLb:p;switch(x.type){case "SET_WATCH_WINDOW_SIZE":return x.payload.watchWindowSize;default:return p}}});var lmD={feedbackTokens:[]};var HJr=Ks({surveyFeedbackData:function(p,x){p=p===void 0?lmD:p;switch(x.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return x.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},p,x.payload);default:return p}}});var bJ6={};var Tmk=void 0;_.S("web_enable_redux_store_on_demand")||(Tmk=P$J());var c6b=function(p,x,F){var N=this;this.listId=p;this.JSC$10577_updateCallback=x;this.isOfflineVideoCallback=F;_.Bi().subscribe(function(){N.handleUpdate()})};
c6b.prototype.getPlaylistData=function(){var p=_.Bi().getState().entities;if(this.listId&&this.listId!=="PPSV"){var x=BAp(p,this.listId,!0),F=_.au(this.listId,"mainPlaylistEntity"),N,h;p=p==null?void 0:(N=p.mainPlaylistEntity)==null?void 0:(h=N[F])==null?void 0:h.title;return Bm6(x,p,this.listId)}x=_.b4p(rYk(p));p=_.b4p(_.Qr(p));return Bm6(x.concat(p))};
c6b.prototype.getPlaylistId=function(){return this.listId};
c6b.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10577_updateCallback(this.listId,this.getPlaylistData(),{})};var sm=function(p,x,F,N){N=N===void 0?[]:N;this.JSC$10580_playlistNetworkManager=p;this.listId=x;this.JSC$10580_updateCallback=F;this.videoIds=N;this.pendingUpdates=[];this.currentIndex=0};
sm.prototype.JSC$10580_setCurrentIndex=function(p){this.currentIndex=p};
sm.prototype.setListId=function(p){this.listId=p};
var aml=function(p,x){p.currentCreateRequest&&p.currentCreateRequest.cancel(x);p.currentUpdateRequest&&p.currentUpdateRequest.cancel(x);p.currentRefreshRequest&&p.currentRefreshRequest.cancel(x)};
sm.prototype.delete=function(){aml(this,"PROXY DELETED")};
sm.prototype.addVideos=function(p,x,F){var N=this;F!==void 0?this.videoIds.splice.apply(this.videoIds,[F,0].concat(_.se(p))):this.videoIds.push.apply(this.videoIds,_.se(p));this.listId||this.currentCreateRequest?(p.forEach(function(h,c){h={addedVideoId:h,action:"ACTION_ADD_VIDEO"};F&&(h.addedVideoPosition=F+c);N.pendingUpdates.push(h)}),nb(this)):Mmk(this,x.onCreateListCommand)};
var Dxn=function(p,x,F,N,h){bpE(p.videoIds,x,F);x>p.currentIndex&&F<=p.currentIndex?p.JSC$10580_setCurrentIndex(p.currentIndex+1):x===p.currentIndex?p.JSC$10580_setCurrentIndex(F):x<p.currentIndex&&F>=p.currentIndex&&p.JSC$10580_setCurrentIndex(p.currentIndex-1);p.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:N,movedSetVideoIdPredecessor:h});nb(p)},Mmk=function(p,x){aml(p,"OBSOLETE");
p.currentCreateRequest=fmB(p.JSC$10580_playlistNetworkManager,x,p.videoIds);_.g8(p.currentCreateRequest,function(){p.currentCreateRequest=void 0}).then(function(F){p.setListId(F.playlistId);
p.pendingUpdates.length>0?nb(p):KoD(p)})},nb=function(p){if(p.pendingUpdates.length!==0&&(p.currentRefreshRequest&&p.currentRefreshRequest.cancel("OBSOLETE"),!p.currentUpdateRequest&&!p.currentCreateRequest)){var x=p.pendingUpdates.splice(0,p.pendingUpdates.length);
p.currentUpdateRequest=p.JSC$10580_playlistNetworkManager.updatePlaylist(p.listId,x);_.g8(p.currentUpdateRequest,function(){p.currentUpdateRequest=void 0}).then(function(){p.pendingUpdates.length>0?nb(p):KoD(p)}).thenCatch(function(){p.pendingUpdates.unshift.apply(p.pendingUpdates,_.se(x))})}},KoD=function(p){p.currentRefreshRequest=_.qNb(p.JSC$10580_playlistNetworkManager,p.listId,p.currentIndex,p.videoIds[p.currentIndex]);
_.g8(p.currentRefreshRequest,function(){p.currentRefreshRequest=void 0}).then(function(x){p.JSC$10580_updateCallback(x.playlistId,x.playlistPanelRenderer,x.autoplayRenderer)})};
sm.prototype.size=function(){return this.videoIds.length};var Zal=function(p,x,F,N){N=N===void 0?[]:N;sm.call(this,p,x,F,N);this.JSC$10580_playlistNetworkManager=p;this.listId=x;this.JSC$10580_updateCallback=F;this.videoIds=N};
_.E(Zal,sm);_.yG=function(p,x,F,N,h,c,M){h=h===void 0?[]:h;M=M===void 0?hh:M;sm.call(this,p,x,F,h);this.JSC$10580_playlistNetworkManager=p;this.listId=x;this.JSC$10580_updateCallback=F;this.onAuthChange=N;this.videoIds=h;this.storage=c;this.cookieReader=M;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.TT(_.E0,this.checkLoggedInStatusChange.bind(this),1E3)};
_.E(_.yG,sm);_.l=_.yG.prototype;_.l.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.TT(_.E0,this.checkLoggedInStatusChange.bind(this),1E3)};
_.l.JSC$10580_setCurrentIndex=function(p){sm.prototype.JSC$10580_setCurrentIndex.call(this,p);this.store()};
_.l.delete=function(){_.E0.cancelJob(this.queueSapisIdJob);sm.prototype.delete.call(this)};
_.l.setListId=function(p){sm.prototype.setListId.call(this,p);this.store()};
_.l.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var tm6=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],dxI=["playerResponse","videoDetails"],voJ=["response","currentVideoEndpoint","watchEndpoint","videoId"],J6l=["response","currentVideoEndpoint","watchEndpoint","playlistId"],CtJ=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],SNB=["response","contents","twoColumnWatchNextResults","playlist","playlist"],r6v=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
EoI=["response","contents","twoColumnWatchNextResults"];var bC={},I_M=(bC.WEB_UNPLUGGED="^unplugged/",bC.WEB_UNPLUGGED_ONBOARDING="^unplugged/",bC.WEB_UNPLUGGED_OPS="^unplugged/",bC.WEB_UNPLUGGED_PUBLIC="^unplugged/",bC.WEB_CREATOR="^creator/",bC.WEB_KIDS="^kids/",bC.WEB_EXPERIMENTS="^experiments/",bC.WEB_MUSIC="^music/",bC.WEB_REMIX="^music/",bC.WEB_MUSIC_EMBEDDED_PLAYER="^music/",bC.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",bC);var z1p,fmB;z1p=function(p,x){this.networkManager=p;this.innertubeTransportService=x};
fmB=function(p,x,F){if(!_.r(x,_.wA))return _.o9(Error("Cf"));_.r(x,_.wA).videoIds=F;F={create_playlist_title:_.JG("QUEUE",void 0,"Queue")};return Uqz(_.w5(p.innertubeTransportService,x,F),R0m)};
_.qNb=function(p,x,F,N){x={videoId:N,playlistId:x,playlistIndex:F};F=_.Ru(QzK);return Uqz(_.AY(p.innertubeTransportService,x,F),iJJ)};
z1p.prototype.updatePlaylist=function(p,x){return Uqz(_.w5(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:p,actions:x}}),k2M)};var uC=function(p){this.storage=p},Xhn;
uC.prototype.store=function(p,x){x=x===void 0?0:x;if(this.storage&&p.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",p),this.storage.set("TLPQindex",String(x)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(F){}};
uC.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
uC.prototype.getPlaylistId=function(){if(!this.storage)return null;var p=null;try{p=this.storage.get("TLPQplaylist")}catch(x){}return p};
uC.prototype.getIndex=function(){if(this.storage){try{var p=this.storage.get("TLPQindex")}catch(x){}p=Number(p);if(!isNaN(p))return p}};var xYB=["navigationEndpoint","watchEndpoint","videoId"],pnd=["nextButtonVideo","watchEndpoint","videoId"];_.CR=new _.iE("NETWORK_TOKEN");_.j3=new _.iE("PAGE_TOKEN");_.Yx=new _.iE("PLAYLIST_TOKEN");var goj;goj=new _.iE("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.SV=new _.iE("INNERTUBE_TRANSPORT_TOKEN");var QBl,wS,sBB,nol,ban,A6J;QBl=new Set(["ci","cr","carml"]);wS=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10627_parkedJobs=new Map;this.parkedProcessors=new Map};
_.GN=function(){wS.instance||(wS.instance=new wS);return wS.instance};
wS.prototype.onAny=function(p){return _.zLb(this,p,2)};
wS.prototype.parkOrScheduleJob=function(p,x,F,N,h){_.VG(this,F)?_.nP().addJob(p,x,N):(h&&(p=sBB(p),nol(this,p,x,F,h)),h=this.JSC$10627_parkedJobs.get(F),h||(this.JSC$10627_parkedJobs.set(F,[]),h=this.JSC$10627_parkedJobs.get(F)),h.push({job:p,priority:x,delay:N}))};
wS.prototype.addListener=function(p,x,F){F&&(x=sBB(x),nol(this,x,0,p,F));F=this.parkedProcessors.get(p);F||(this.parkedProcessors.set(p,[]),F=this.parkedProcessors.get(p));F.push(x)};
wS.prototype.processSignal=function(p){if(!_.VG(this,p)){this.inProgressSignals.add(p);var x=this.JSC$10627_parkedJobs.get(p);if(x){x=_.a(x);for(var F=x.next();!F.done;F=x.next())F=F.value,_.nP().addJob(F.job,F.priority,F.delay);this.JSC$10627_parkedJobs.delete(p)}if(x=this.parkedProcessors.get(p)){x=_.a(x);for(F=x.next();!F.done;F=x.next())F=F.value,F();this.parkedProcessors.delete(p)}this.signals.push(p);this.inProgressSignals.delete(p)}};
_.VG=function(p,x){return QBl.has(x)||_.nt("IS_HOMEPAGE_COLD")||_.nt("IS_RESULTS_PAGE_COLD")||_.nt("IS_WATCH_PAGE_COLD")?p.signals.indexOf(x)>=0:!0};
sBB=function(p){var x=!1;return function(){x||(x=!0,p())}};
nol=function(p,x,F,N,h){if(y6b.has(N))_.nP().addJob(x,F,h);else{var c=p.compoundSignals.get(N);c&&_.nP().addJob(function(){_.VG(p,N)||(c.isTimeoutConditionSatisfied?_.nP().addJob(x,F):c.timeoutConditionObservers.push(function(){_.nP().addJob(x,F)}))},F,h)}};
_.zLb=function(p,x,F){if(x.length>1){var N=[],h=Object.create(null);x=_.a(x);for(var c=x.next();!c.done;c=x.next())c=c.value,h[c]||(N.push(c),h[c]=!0);x=N}if(x.length===1)return x[0];c=x;N="";h=F===2?"|":"&";c.sort();c=_.a(c);for(var M=c.next();!M.done;M=c.next())N+=M.value+h;if(!p.compoundSignals.get(N)){h=0;c=[];M=_.a(x);for(var f=M.next();!f.done;f=M.next())f=f.value,h++,_.VG(p,f)||c.push(f);(F=F===2)&&h>c.length||!F&&!c.length?p.signals.push(N):ban(p,N,F,x,c)}return N};
ban=function(p,x,F,N,h){var c=h.length,M=function(){F||--c===0?p.processSignal(x):A6J(p,x)};
h=_.a(h);for(var f=h.next();!f.done;f=h.next())p.addListener(f.value,M);p.compoundSignals.set(x,{signals:N,isOnAny:F,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});A6J(p,x)};
A6J=function(p,x){if(!_.VG(p,x)){var F=p.compoundSignals.get(x);if(F&&!F.isTimeoutConditionSatisfied){for(var N=!1,h=0,c=0,M=_.a(F.signals),f=M.next();!f.done;f=M.next()){var K=f.value;f=!_.VG(p,K);y6b.has(K)?N=!0:(K=p.compoundSignals.get(K))?f&&!K.isTimeoutConditionSatisfied&&(c++,F.isInitialized||K.timeoutConditionObservers.push(function(){A6J(p,x)})):f&&h++}F.isInitialized=!0;
F.isOnAny?N&&(F.isTimeoutConditionSatisfied=!0):h===0&&c===0&&(F.isTimeoutConditionSatisfied=!0);if(F.isTimeoutConditionSatisfied)for(F=_.a(F.timeoutConditionObservers),N=F.next();!N.done;N=F.next())N=N.value,N()}}};
wS.prototype.processSignal=wS.prototype.processSignal;wS.prototype.parkOrScheduleJob=wS.prototype.parkOrScheduleJob;wS.prototype.onAny=wS.prototype.onAny;_.ox("ytsignals.getInstance",_.GN);wS.prototype.onAny=wS.prototype.onAny;wS.prototype.parkOrScheduleJob=wS.prototype.parkOrScheduleJob;wS.prototype.processSignal=wS.prototype.processSignal;var y6b=new Set(["eop","eocs","dl","pcl"]);_.H$=new _.iE("MINIPLAYER_SERVICE");var Wj,uhj,YNb;Wj=function(p,x,F){var N=_.Vj.getInstance();if(!Xhn){var h=new c$p;var c=void 0,M=_.sd("ID_TOKEN");M&&h.isAvailable()&&(c=new v8(h,"yt-queue"+M));Xhn=new uC(c)}h=Xhn;c=_.GN();this.JSC$10634_actionRouter=N;this.pageManager=p;this.playlistManager=x;this.JSC$10634_playlistNetworkManager=F;this.storage=h;this.signals=c;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.Hj=function(){if(!uhj){var p=_.J(),x=p.resolve(_.Bw(_.j3)),F=p.resolve(_.Bw(_.CR)),N=p.resolve(_.Bw(_.Yx));p=p.resolve(_.SV);uhj=new Wj(x,N,new z1p(F,p))}return uhj};
YNb=function(p,x,F){if(F){var N;if(((N=p.responsePlaylistData)==null?void 0:N.playlistId)!==F)return}p.responsePlaylistData&&(F=ayr(x,p.responsePlaylistData),p.responsePlaylistData=(0,_.Q5.unsafeClone)(p.responsePlaylistData),DYk(p.responsePlaylistData,F));F=p.temporaryItems.findIndex(function(h){return h.videoId===x});
F>-1&&p.temporaryItems.splice(F,1);_.me(p,_.oO(p,p.response?p.response.autoplayRenderer:void 0))};
_.whD=function(p,x){if(p.responsePlaylistData){var F=MgE(x,p.responsePlaylistData);DYk(p.responsePlaylistData,F);if(p.queueProxy){var N=p.queueProxy;F<0||(N.videoIds.splice(F,1),F<N.currentIndex&&N.JSC$10580_setCurrentIndex(N.currentIndex-1),N.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:x}),nb(N))}}_.me(p,_.oO(p,p.response?p.response.autoplayRenderer:void 0))};
Wj.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.me(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
Wj.prototype.setPlaylistData=function(p,x,F){this.temporaryItems=[];this.listId=p;this.responsePlaylistData=x;_.me(this,_.oO(this,F))};
var GKZ=function(p){return(p==null?0:p.playlistId)?p.playlistId:"PPSV"},VmZ=function(p){return p&&p.playlistId?p.playlistId==="PPSV"?!0:PxH(_.Bi().getState().entities,p.playlistId):!1};
Wj.prototype.isPlayingOfflineVideo=function(){return this.response?VmZ(this.response):!1};
Wj.prototype.closeMiniplayer=function(p){var x=this.queueProxy&&this.queueProxy.size()<=1,F=_.J().resolve(_.H$);if(!this.queueProxy||x)this.queueProxy&&this.clearQueue(),F.close(!0);else{F.pipController.getWindow()&&window.focus();x=this.responsePlaylistData;var N=this.temporaryItems.length+(x&&x.contents?x.contents.length:0);x=_.JG("QUEUE_CLEARED_UNPLURALIZED")||_.Cc("QUEUE_CLEARED",N);x=_.UJ(x);F=_.JG("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");N=_.JG("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.Cc("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",N);var h=_.JG("MINIPLAYER_CLOSE",void 0,"Close"),c=_.JG("CANCEL",void 0,"Cancel");_.Aw(this.JSC$10634_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.L1(F),dialogMessages:[_.L1(N)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.L1(h),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
x]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.L1(c)}}}}}}],p)}};
_.oO=function(p,x){var F={},N=p.response;F.autoplayRenderer=x;if(!p.responsePlaylistData&&!p.temporaryItems.length)return!N||!N.hasRelatedVideoData&&_.S("kevlar_prefetch_data_augments_network_data")||(F.playerData={rvs:N.relatedVideoArgs,endScreenRenderer:N.endScreenRenderer}),F;F.playerData={};if(p.index===void 0)return _.zj(Error("Ef")),F;F.panel=p.responsePlaylistData?(0,_.Q5.unsafeClone)(p.responsePlaylistData):{titleText:_.L1(_.JG("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
x=F.panel;if(x.contents)for(var h=_.a(p.temporaryItems),c=h.next();!c.done;c=h.next())x.contents.push({playlistPanelVideoRenderer:c.value});p.queueProxy&&N&&N.playingVideo&&N.playingVideoId&&!cMZ(N.playingVideoId,F.panel)&&(x=N.playingVideo,h=F.panel,c=p.index,h.contents&&h.contents.splice(c===void 0?0:c,0,{playlistPanelVideoRenderer:x}));N&&N.playingVideoId&&(x=p.index,h=F.panel,x=!h.contents||x>=h.contents.length?void 0:h.contents[x].playlistPanelVideoRenderer,x&&x.videoId===N.playingVideoId||(x=
ayr(N.playingVideoId,F.panel),p.index=x!==-1?x:p.index?p.index-1:0));x=ly$(p.index+1,F.panel);h=void 0;p.index>0&&(h=ly$(p.index-1,F.panel));if(h||x)F.autoplayRenderer=F_p(x,h,F.autoplayRenderer);!x&&(N==null?0:N.relatedVideoArgs)&&(F.playerData.rvs=N.relatedVideoArgs);N=N?N.playlistIndexOffset:0;p.queueProxy?qo$(F.panel,p.index,N,hr$,!0,!0,!0):qo$(F.panel,p.index,N);F.playerData.playlistPanelRenderer=F.panel;return F};
Wj.prototype.openToast=function(p){_.J().resolve(_.H$).openToast(p,_.JG("ADDED_TO_QUEUE",void 0,"Added to queue"))};
Wj.prototype.isMiniplayerActive=function(){return _.J().resolve(_.H$).isMiniplayerActive()};
_.me=function(p,x){p.playlistManager.setAutoplayRenderer(x.autoplayRenderer||null);p.playlistManager.setPlaylistData(x.panel||null);x.playerData&&p.playlistManager.setPlayerPlaybackControlData(x.playerData)};var Woj={},HaB={},mxJ={},ooB={},OaZ={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:(Woj.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",Woj),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:(HaB.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",HaB),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:(mxJ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",mxJ),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:(ooB.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",ooB),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 Rrz=[{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:OaZ},{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:OaZ}}];var W_J=[["primary",null],[null,["ytd-two-column-browse-results-renderer","style-scope"]],["masthead-ad",["ytd-rich-grid-renderer"]],[null,["ytd-rich-grid-renderer","style-scope"]],[null,["ytd-banner-promo-renderer","style-scope"]],[null,["ytd-ad-slot-renderer"]]];var Om;Om=function(p,x,F){this.wic=p;this.isAsync=x;this.oQr=F};
_.c5r=[new Om("b.f_",!1,0),new Om("j.s_",!1,2),new Om("r.s_",!1,4),new Om("e.h_",!1,6),new Om("i.s_",!0,8),new Om("s.t_",!1,10),new Om("p.h_",!1,12),new Om("s.i_",!1,14),new Om("f.i_",!1,16),new Om("a.b_",!1,18),new Om("a.o_",!1),new Om("g.o_",!1,22),new Om("p.i_",!1,24),new Om("p.m_",!1),new Om("n.k_",!0,20),new Om("i.f_",!1),new Om("a.s_",!0),new Om("m.c_",!1),new Om("n.h_",!1,26),new Om("o.p_",!1),new Om("m.p_",!0,28),new Om("o.a_",!1)].reduce(function(p,x){p[x.wic]=x;return p},{});var OX$,JM$,s0k,rMZ,g46,GHp,L_m,TPp,IyM,ja;OX$=2;JM$=2;s0k=2;rMZ=2;g46=2;GHp=2;L_m=2;TPp=["Z2xvYmFsQ2FsbGJhY2tz","b25BYm5vcm1hbGl0eURldGVjdGVk","b25BZFNraXA=","cmF3X3BsYXllcl9yZXNwb25zZQ=="];IyM=[[["kind","value"],"AD_PLACEMENT"]];ja={};_.Lon=(ja["b.f_"]=function(){return _.D(function(p){return p.nextAddress==1?_.q(p,(_.RUz()!==void 0?_.o9(Error("rf")):_.W3r()).then(function(){return 1},function(x){if(x.message==="Biscotti id is disabled")return 3;
_.no("Failed fetching bid");return 0}),2):p.return(p.yieldResult)})},ja["j.s_"]=YoJ,ja["r.s_"]=AMd,ja["e.h_"]=function(){return Vgm(ZXw(W_J))},ja["n.h_"]=function(){return Vgm(ZXw([["player-ads",
["ytd-merch-shelf-renderer","ytp-featured-product"]]]))},ja["i.s_"]=wn$,ja["p.h_"]=function(){return 2},ja["s.t_"]=function(){return OX$},ja["s.i_"]=j0d,ja["f.i_"]=SoH,ja["a.b_"]=yMH,ja["a.o_"]=o4H,ja["g.o_"]=mYM,ja["p.i_"]=HX$,ja["p.m_"]=XnJ,ja["n.k_"]=function(){return _.sd("NKDSTAT",2)},ja["i.f_"]=zrw,ja["a.s_"]=function(){return _.sd("ASDSTAT",2)},ja["m.c_"]=function(){return 2},ja["o.p_"]=function(){for(var p=[],x=0,F=0;F<TPp.length;F++)p[F]=TPp[F],x++;
p[x]="d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tz";p[x+1]="YWJfc2FfZWY=";return PuJ(p)},ja["m.p_"]=function(){return _.sd("MBSTAT",2)},ja["o.a_"]=function(){return BPH()},ja);var Ptn,TKv,BKk;Ptn=function(){this.ongoingFlowNonces=new Map};
_.as=function(){TKv||(TKv=new Ptn);return TKv};
_.lX=function(p,x,F){return{eventType:{flowEventNamespace:p,flowEventType:x},metadata:F,statusCode:void 0,csn:void 0,can:void 0}};
_.M1B=function(p,x){var F=_.as(),N=BKk(F,x,!0);_.cg(F,p,x,N)};
_.cg=function(p,x,F,N){p={flowNonce:N||BKk(p,F),flowType:F,flowEventType:x.eventType};x.metadata&&(p.flowMetadata=x.metadata);x.statusCode!==void 0&&(p.flowEventStatus=x.statusCode);x.csn&&(p.csn=x.csn);x.can&&(p.can=x.can);_.E$("flowEvent",p,void 0)};
BKk=function(p,x,F){F=F===void 0?!1:F;var N=p.ongoingFlowNonces.get(x);if(!N||F)N=sf(16),p.ongoingFlowNonces.set(x,N);return N};var lEB=function(){};
lEB.prototype.flush=function(p,x){p=p===void 0?[]:p;x=x===void 0?!1:x;if(_.S("enable_client_streamz_web")){p=_.a(p);for(var F=p.next();!F.done;F=p.next())F=syl(F.value),F={serializedIncrementBatch:_.Xc(F.JSC$7463_serializeBinary())},_.E$("streamzIncremented",F,{sendIsolatedPayload:x})}};var NB;_.RLZ=new ruI;var Lb=function(p,x,F,N,h,c,M){F=F===void 0?!1:F;N=N===void 0?!1:N;c=c===void 0?_.Hj():c;this.hasRun=!1;this.hFB=p;this.m7z=x;this.bUH=F;this.fromHistory=N;this.previousVideoId=h;this.cDc=c;this.tempData=M;this.ntX=new _.EdC};
_.E(Lb,RL);Lb.prototype.validate=function(p){return!(!p.data.playerResponse||p.data.page!=="watch"&&p.data.page!=="shorts"||this.hasRun)};
Lb.prototype.handle=function(p){var x=this,F=_.r(p.endpoint,_.B7),N=_.r(p.endpoint,_.dX);if(_.S("kevlar_continue_playback_without_player_response")&&(F==null?0:F.videoId)&&this.previousVideoId&&(F==null?void 0:F.videoId)===this.previousVideoId&&(F==null?0:F.continuePlayback)&&!this.fromHistory)this.hFB.resolve();else{var h={};F?h.watch_endpoint=F:N&&(h.watch_endpoint=N,N.endTimeSeconds&&(h.end=N.endTimeSeconds));p.data.page==="watch"?(p.data.filler||this.bUH||(_.G6("cfg"),_.Vj.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(h,kKB(this,p.endpoint)),_.S("enable_masthead_quartile_ping_fix")&&Object.assign(h,UxJ(this)),F=!_.S("web_honor_cache_for_back")&&this.fromHistory?{cached_load:!0}:void 0,Object.assign(h,F),p.data.forceExternalPlaylist&&(h.external_list=!0)):p.data.page==="shorts"&&_.Vj.getInstance().triggerAction("yt-start-loading-shorts");if(F=this.m7z()){try{F.loadVideoWithPlayerResponse(p.data.playerResponse,h),F.getPlayerPromise().then(this.hFB.resolve)}catch(c){_.zj(c),this.hFB.resolve()}this.hasRun=
!0;F.getPlayerPromise().then(function(c){c.addEventListener("onAbnormalityDetected",function(){var M=p.data.playerResponse,f=c.getVideoData().cpn;L_m=0;_.jBC=f;if(f=h1d(M))x.ntX.increment("IN_PLAYER"),_.MB(5),_.S("ab_st_vid_ks")?c.pauseVideo(!0):c.stopVideo(),M.playabilityStatus=Object.assign({},M.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:f}}),M.videoDetails=void 0,_.Vj.getInstance().triggerOptionalAction("yt-updated-playability-status",M.playabilityStatus)})})}else _.no(Error("Hf"))}};
var kKB=function(p,x){var F=_.r(x,_.B7);if(x&&F&&F.playlistId&&F.videoId&&(p=p.cDc,p.queueProxy?(p=p.queueProxy,F=p.listId===F.playlistId?p.attributionData.get(F.videoId):void 0):F=void 0,F))return{queue_info:F}},UxJ=function(p){var x;
if((x=p.tempData)==null?0:x.adpings)return{adpings:p.tempData.adpings}};var Pj=function(p,x,F){this.hasRun=!1;this.mPX=p;this.lKA=x;this.jaX=F};
_.E(Pj,RL);Pj.prototype.validate=function(p){return!!_.Q5.getValueByKeys.apply(null,[p.data].concat(_.se(EoI)))};
Pj.prototype.handle=function(p){var x=this;this.mPX.promise.then(function(){var F=p.data;var N=_.Q5.getValueByKeys.apply(null,[F].concat(_.se(tm6))),h=_.Q5.getValueByKeys.apply(null,[F].concat(_.se(SNB))),c=_.Q5.getValueByKeys.apply(null,[F].concat(_.se(voJ)));var M=(M=_.Q5.getValueByKeys.apply(null,[F].concat(_.se(dxI))))?{videoId:M.videoId,thumbnail:M.thumbnail,title:M.title?_.L1(M.title):void 0,shortBylineText:M.author?_.L1(M.author):void 0}:void 0;var f=void 0;_.S("web_get_playlist_id_from_current_endpoint_ks")||
(f=_.Q5.getValueByKeys.apply(null,[F].concat(_.se(J6l))));var K=_.Q5.getValueByKeys.apply(null,[F].concat(_.se(r6v))),t=_.Q5.getValueByKeys.apply(null,[F].concat(_.se(CtJ))),d=!!K||!!t&&!!t.results&&t.results.length>0,v=0;h&&h.currentIndex&&h.localCurrentIndex&&(v=h.currentIndex-h.localCurrentIndex);h&&h.playlistId&&(f=h.playlistId);F={rawResponse:F,autoplayRenderer:N,hasRelatedVideoData:d,playingVideo:M,playingVideoId:c,playlistPanelRenderer:h,playlistId:f,playlistIndex:h&&h.currentIndex,relatedVideoArgs:K,
endScreenRenderer:t,playlistIndexOffset:v};a:{N=x.jaX;h=x.lKA;N.response=F;if(VmZ(F))N.downloadPlaylistProxy&&N.downloadPlaylistProxy.getPlaylistId()===GKZ(F)||(N.downloadPlaylistProxy=new c6b(GKZ(F),N.setPlaylistData.bind(N),N.isPlayingOfflineVideo.bind(N))),N.responsePlaylistData=N.downloadPlaylistProxy.getPlaylistData(),N.listId=GKZ(F),N.index=0;else if(F.playlistPanelRenderer&&F.playlistId&&F.autoplayRenderer)F.playlistId.startsWith("TLPQ")?N.queueProxy?N.listId===F.playlistId?(N.index=F.playlistIndex,
N.responsePlaylistData=F.playlistPanelRenderer,N.queueProxy.JSC$10580_setCurrentIndex(N.index)):F.playingVideoId&&N.index!==void 0&&h.clientParams.autoSaveToQueue&&(N.index+=1,N.queueProxy.JSC$10580_setCurrentIndex(N.index),N.queueProxy.addVideos([F.playingVideoId],{},N.index)):(N.queueProxy=new _.yG(N.JSC$10634_playlistNetworkManager,F.playlistId,N.setPlaylistData.bind(N),N.clearQueue.bind(N),_.fyp(F.playlistPanelRenderer),N.storage),N.responsePlaylistData=F.playlistPanelRenderer,N.listId=F.playlistId,
N.index=F.playlistIndex):(N.index=F.playlistIndex,N.listId!==F.playlistId&&N.clearQueue(),N.responsePlaylistData=F.playlistPanelRenderer,N.listId=F.playlistId,N.playlistProxy=new Zal(N.JSC$10634_playlistNetworkManager,F.playlistId,N.setPlaylistData.bind(N),_.fyp(F.playlistPanelRenderer)));else if(!N.queueProxy)N.responsePlaylistData=void 0;else if(F.playingVideoId&&h.clientParams.autoSaveToQueue){if(N.index===void 0){_.zj(Error("Df"));N.clearQueue();break a}N.queueProxy.videoIds.includes(F.playingVideoId)||
(N.index+=1,N.queueProxy.JSC$10580_setCurrentIndex(N.index),N.queueProxy.addVideos([F.playingVideoId],{},N.index))}_.me(N,_.oO(N,N.response.autoplayRenderer))}})};var ial=function(p,x){x=x===void 0?_.Hj():x;MJ.call(this);this.gP.push(new Pj(this.ze,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},x));this.gP.push(new Lb(this.ze,p,!1,!1));_.S("web_response_commands_chunk_processor")&&this.gP.push(new D1)};
_.E(ial,MJ);ial.prototype.processChunk=function(p){p&&p.data.player===void 0&&this.ze.resolve();MJ.prototype.processChunk.call(this,p)};var TN=function(p,x){p=p===void 0?{layer:0}:p;this.hasRun=!1;this.createScreenConfig=p;this.kaM=x};
_.E(TN,RL);TN.prototype.validate=function(p){return!(this.hasRun||!p.endpoint)};
TN.prototype.handle=function(p){var x=_.cl(),F,N,h=(N=_.r((F=p.endpoint)==null?void 0:F.commandMetadata,_.eq))==null?void 0:N.rootVe;this.kaM&&h?_.F8(x,h,this.kaM,this.createScreenConfig):TFl(x,p.endpoint,this.createScreenConfig);this.hasRun=!0};var Bj=function(p,x){this.hasRun=!1;this.sax=p;this.previousVideoId=x};
_.E(Bj,RL);Bj.prototype.validate=function(p){return _.S("kevlar_continue_playback_without_player_response")&&(p=_.r(p.endpoint,_.B7),(p==null?0:p.videoId)&&this.previousVideoId&&(p==null?void 0:p.videoId)===this.previousVideoId&&(p==null?0:p.continuePlayback))?!1:this.sax.kNB===0};
Bj.prototype.handle=function(p){_.Vj.getInstance().triggerAction("yt-stop-old-player",p.data,!0)};var ImI=function(p){p=p===void 0?{layer:0}:p;MJ.call(this);this.gP.push(new Bj(this));this.gP.push(new TN(p));this.gP.push(new aO(p))};
_.E(ImI,MJ);var $xj=function(){this.hasRun=this.hasRun=!1};
_.E($xj,RL);$xj.prototype.validate=function(p){return!this.hasRun&&!(!p.data.csn||!p.data.rootVe)};
$xj.prototype.handle=function(p){this.hasRun=!0;_.fdB(p.data.csn,p.data.rootVe,3)};var eLj=function(){RL.apply(this,arguments)};
_.E(eLj,RL);eLj.prototype.validate=function(p){return!!p.data.preconnect};
eLj.prototype.handle=function(p){_.wH("bc");p=_.a(p.data.preconnect);for(var x=p.next();!x.done;x=p.next())x=x.value,(new Image).src=x};var pJm=function(p,x,F){F=F===void 0?{layer:0}:F;MJ.call(this);this.gP.push(new Lb(this.ze,p));this.gP.push(new TN(F));this.gP.push(new aO(F))};
_.E(pJm,MJ);var x5l=function(p,x,F,N,h){F=F===void 0?{layer:0}:F;N=N===void 0?_.Hj():N;MJ.call(this);var c=!!x&&!!x.clientParams&&!!x.clientParams.miniplayer;c&&this.gP.push(new $xj);this.gP.push(new Pj(this.ze,x,N));this.gP.push(new eLj);var M,f;this.gP.push(new Lb(this.ze,p,c,!((M=x.clientParams)==null||!M.fromHistory),(f=x.clientParams)==null?void 0:f.previousVideoId,N,x.tempData));var K;this.gP.push(new Bj(this,(K=x.clientParams)==null?void 0:K.previousVideoId));var t;(t=x.clientParams)!=null&&t.fromHistory||
(F.layer||(F=Object.assign({},F,{layer:c?3:0})),this.gP.push(new TN(F,h)),this.gP.push(new aO(F)));_.S("web_response_commands_chunk_processor")&&this.gP.push(new D1)};
_.E(x5l,MJ);var RO,hbJ;RO={};
_.FLD=(RO["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},RO["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},RO["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},RO["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},RO["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},RO["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},RO["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},RO);_.kx=new _.s0("yt-edu");_.N4j=function(){this.JSC$10729_eduDisplayedThisLoad_={}};
hbJ=function(p){var x=_.N4j.getInstance();var F=_.Ud("kevlar_tooltip_impression_cap");x=F&&parseInt(_.kx.get(p+"-impression")||0,10)>=F||_.kx.get(p+"-dismissed")?!1:(F=_.FLD[p])&&!x.JSC$10729_eduDisplayedThisLoad_[F.setKey||p]&&(F.titleText&&_.JG(F.titleText)||F.bodyText&&_.JG(F.bodyText))?!0:!1;if(!x)return null;x=_.FLD[p];if(!x)return null;F=x.bodyText?_.JG(x.bodyText):void 0;var N=x.titleText?_.JG(x.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:x.position,popup:{bubbleHintRenderer:{text:N?
_.L1(N):void 0,detailsText:F?_.L1(F):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.L1(_.JG("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:p}}]}}}}}}}},{eduImpressionAction:{key:p}}]};
_.xg(_.N4j);var DWB=!1;var Zlz={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app"};for(var lFJ="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),cK6=[],Um=6;Um>=1;Um--)cK6.push({columnCount:Um,query:Um==1?0:Um*2*107-4+32,className:"grid-"+Um+"-columns",width:Um*2*107+"px"});_.Mhk=function(p){this.actionRouter_=p=p===void 0?_.Vj.getInstance():p;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.aFm(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.aFm=function(p){var x=p.miniGuideVisible_?72:0,F=p.documentWidth_-(p.guidePersistentAndVisible_?240:x);return cK6.find(function(N){return F>N.query})};
_.xg(_.Mhk);var D5D=function(){var p=this;this.JSC$10742_keyboardInUse=!1;document.addEventListener("keydown",function(){p.onKeydown()});
document.addEventListener("mousedown",function(){p.JSC$10742_keyboardInUse=!1})},fFI;
D5D.prototype.isKeyBoardInUse=function(){return this.JSC$10742_keyboardInUse};
D5D.prototype.onKeydown=function(){this.JSC$10742_keyboardInUse=!0};var KLb,$x;_.iC=new _.s0("yt-mentions");_.IO=function(){};
KLb=function(p,x){return $x(x,"drag-to-reorder-edu-displayed")};
$x=function(p,x,F,N,h,c){F=F===void 0?"OPEN_POPUP_POSITION_TOP":F;if(x){if(_.iC.get(x))return;_.iC.set(x,!0,N)}if(h&&c!==void 0){x=Number(_.iC.get(h)||0);if(x>=c)return;_.iC.set(h,x+1)}return[{openPopupAction:{popupType:"HINT",position:F,popup:{bubbleHintRenderer:{detailsText:p,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.xg(_.IO);var qtm,ZSm,th6;qtm=function(p,x,F,N){this.JSC$10752_taskManager_=p;this.onFulfilled_=typeof x==="function"?x:null;this.onRejected_=typeof F==="function"?F:null;this.JSC$10752_context_=N};
ZSm=function(p,x){p.onFulfilled_&&_.tR(p.JSC$10752_taskManager_,function(){p.onFulfilled_.call(p.JSC$10752_context_,x)})};
th6=function(p,x){p.onRejected_&&_.tR(p.JSC$10752_taskManager_,function(){p.onRejected_.call(p.JSC$10752_context_,x)})};
_.ea=function(p){this.JSC$10755_taskManager_=p;this.callbacks_=[]};
_.ea.prototype.then=function(p,x,F){this.callbacks_.push(new qtm(this.JSC$10755_taskManager_,p,x,F));return this};
_.ea.prototype.onSuccess=function(p){this.callbacks_.forEach(function(x){ZSm(x,p)})};
_.ea.prototype.onFailure=function(p){this.callbacks_.forEach(function(x){th6(x,p)})};
_.ea.prototype.cancel=function(){this.callbacks_.length=0};
A_l(_.ea);_.dWE=null;_.CQ=new _.iE("ACTIVITY_TOKEN");var r5d=/^[a-zA-Z0-9_\-]{11}$/;var Ekp=_.Cy(function(){var p,x;return(x=(p=window).matchMedia)==null?void 0:x.call(p,"(prefers-reduced-motion: reduce)").matches});var d5v=_.Cy(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 p=_.A9("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");p||(p=_.KH("VIDEO"),_.ox("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
p));return!!(p&&p.canPlayType&&p.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var vcn;_.pJ=new _.iE("SHORTS_CONTROLLER_TOKEN");vcn=new _.iE("SHORTS_STATE_STORE_TOKEN");var x6=function(p,x){var F=_.we.apply(2,arguments);p=p===void 0?0:p;_.qE.call(this,x,F);this.errorType=p;Object.setPrototypeOf(this,this.constructor.prototype)};
_.E(x6,_.qE);var JKJ,Cim,St6,rKl,XJC,LvE,Og,qXH,sKC,zbl,Ytl,bSn,yKk;JKJ=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(p){return p+"="}).join("|"));
Cim=RegExp(".*\\?.*ybp=1.*");St6=["FEcommerce_cart","SPcommerce_checkout"];rKl=RegExp(".*\\?.*playnext=1.*");_.FA=function(p,x,F,N){this.watchEndpointMap=p;this.reelWatchEndpointMap=x;this.innerTubeTransportService=F;this.fetchPbj=N;this.forceWebFEForAdsTesting=!1};
XJC=function(p,x,F){var N=_.J().resolve(_.Bw(Ec6));_.FA.instance=new _.FA(p,x,F,N)};
_.gcZ=function(p,x){var F=_.Ud("web_pbj_log_warning_rate",0);F=F>0&&Math.random()<F;var N;if((N=_.r(x.commandMetadata,_.eq))==null||!N.rootVe)return F&&_.no(Error("Nf")),!1;var h;N=(h=_.r(x.commandMetadata,_.eq))==null?void 0:h.url;if(!N)return F&&_.no(Error("Of")),!1;if(rKl.test(N))return!0;if(JKJ.test(N))return F&&_.no(Error("Pf`"+N)),!1;var c;h=(c=_.r(x,_.Du))==null?void 0:c.browseId;if(Cim.test(N)&&(!h||!St6.includes(h)))return F&&_.no(Error("Qf`"+N)),!1;if(_.r(x,_.B7)){if(p.forceWebFEForAdsTesting)return F&&
_.no(Error("Rf")),!1;if(!(p.watchEndpointMap.watchNext&&p.watchEndpointMap.player||_.S("kevlar_fetch_initial_data_op_watch_client")))return F&&_.no(Error("Jf")),!1;p=_.Ud("web_pbj_log_warning_rate",0);p=p>0&&Math.random()<p;_.r(x,_.B7)?ChZ(x)?x=!0:(p&&_.no(Error("Kf")),x=!1):(p&&_.no(Error("Jf")),x=!1);return x}if(_.r(x,_.dX))return S76(x);if(_.r(x,_.yf))return!0;x=_.Yp(p.innerTubeTransportService,x);F&&_.no(Error("Sf"));return x};
LvE=function(p,x,F,N,h,c){x={url:x};if(F==null?0:F.itct)x.parentTrackingParams=F.itct;var M=_.Ru(NFD);return _.AY(p.innerTubeTransportService,x,M).then(function(f){(f=f.endpoint)||(f=_.Kb);(F==null?0:F.itct)&&f&&!f.trackingParams&&(f.trackingParams=F.itct);var K=KR(f);return Og(p,f,F,N,K,h,c)})};
Og=function(p,x,F,N,h,c,M){if(p.fetchPbj&&!_.gcZ(p,x)){var f=p.fetchPbj(x),K=_.qt(f.then(function(Fw){if(!Fw)throw Error("Tf");M(K)||c(x,Fw);return Fw}));
return K}var t,d={rootVe:(f=_.r(x.commandMetadata,_.eq))==null?void 0:f.rootVe,url:(t=_.r(x.commandMetadata,_.eq))==null?void 0:t.url,endpoint:x,page:h};if(_.r(x,_.B7)){var v,C={contentPlaybackContext:_.vg(F,(v=_.r(x.commandMetadata,_.eq))==null?void 0:v.url,N)},X=_.GO();_.S("web_streaming_watch")&&window.TextDecoderStream?(f=QKB(p.innerTubeTransportService,x,C,function(Fw){!d.response&&Fw.content&&(d.response=Fw.content);!d.playerResponse&&Fw.player&&(d.playerResponse=Fw.player);c(x,d)}),t=ofH(x),
t.length&&(d.preconnect=t,c(x,d)),zbl(f,X,d).catch(function(Fw){Fw instanceof x6&&Fw.errorType===2&&sKC(p,x,C,d,c,M,X)})):sKC(p,x,C,d,c,M,X);
return X.promise}if(_.r(x,_.dX)){var Q;if(((Q=_.r(x,_.dX))==null?void 0:Q.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var b=_.GO();_.ncJ(_.J().resolve(_.pJ),x).then(function(Fw){yKk(p,F,N,h,c,b,Fw)});
return b.promise}f=_.qt();var A;t={contentPlaybackContext:_.vg(F,(A=_.r(x.commandMetadata,_.eq))==null?void 0:A.url,N)};(A=p.reelWatchEndpointMap.player)&&(A=A().JSC$11755_getRequest(x,t))&&(f=_.AY(p.innerTubeTransportService,A.innerTubeRequest,A.input,x.clickTrackingParams,A.config));A=_.qt();(v=p.reelWatchEndpointMap.reelItemWatch)&&(v=v().JSC$11755_getRequest(x))&&(A=_.AY(p.innerTubeTransportService,v.innerTubeRequest,v.input,x.clickTrackingParams,v.config));v=_.qt();(Q=p.reelWatchEndpointMap.reelWatchSequence)&&
_.r(x,_.dX).sequenceParams&&(t=Q().JSC$11755_getRequest(x,t))&&(v=_.AY(p.innerTubeTransportService,t.innerTubeRequest,t.input,x.clickTrackingParams,t.config));t=_.qt(d);Q=_.GO();bSn(x,t,f,A,v,c,M,Q);return Q.promise}var Y;if(_.r(x,t1p)&&((Y=_.r(x.commandMetadata,_.eq))==null?0:Y.url))return f=saz(_.G4(n2().location.href),_.G4(_.r(x.commandMetadata,_.eq).url)).toString(),LvE(p,f,F,N,c,function(){return!1});
if(_.r(x,_.yf))return c(x,d),_.qt(d);if(_.Yp(p.innerTubeTransportService,x)){var O=_.w5(p.innerTubeTransportService,x,{tempData:F,disableCache:F.disableCache}).then(function(Fw){d.response=Fw;M(O)||c(x,d);return d});
return O}return _.qt(d)};
_.u$l=function(p,x,F,N){if(_.r(x,_.B7)||_.r(x,_.dX)&&(_.S("mweb_enable_shorts_innertube_player_prefetch")||_.S("kevlar_enable_shorts_prefetch_in_sequence"))||_.r(x,fem)&&_.S("web_enable_prefetching_videos_on_home")){var h,c={contentPlaybackContext:_.vg(F,(h=_.r(x.commandMetadata,_.eq))==null?void 0:h.url,N),prefetchPlaybackContext:gkE(F)},M,f,K;if(((M=_.r(x,_.B7))==null?void 0:(f=M.watchEndpointSupportedPrefetchConfig)==null?void 0:(K=f.prefetchHintConfig)==null?void 0:K.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(F=
p.watchEndpointMap.watchNext)if(c=F().JSC$11755_getRequest(x,c))return Promise.resolve(_.AY(p.innerTubeTransportService,c.innerTubeRequest,c.input,void 0,c.config).then(function(v){return v}))}else if(_.r(x,_.dX)&&_.S("web_prefetch_riw_for_next_video")){if(F=p.reelWatchEndpointMap.reelItemWatch)if((F=F().JSC$11755_getRequest(x,c))&&_.AY(p.innerTubeTransportService,F.innerTubeRequest,F.input,void 0,F.config).then(function(v){return v}),F=p.reelWatchEndpointMap.player)if(c=F().JSC$11755_getRequest(x,
c))return Promise.resolve(_.AY(p.innerTubeTransportService,c.innerTubeRequest,c.input,void 0,c.config).then(function(v){return v}))}else if(F=p.watchEndpointMap.player)if(c=F().JSC$11755_getRequest(x,c))return Promise.resolve(_.AY(p.innerTubeTransportService,c.innerTubeRequest,c.input,void 0,c.config).then(function(v){return v}))}else if(_.Yp(p.innerTubeTransportService,x)){var t={tempData:F},d=AKl(p.innerTubeTransportService,x);
return d?new Promise(function(v,C){var X,Q;return _.D(function(b){if(b.nextAddress==1)return _.q(b,d,2);if(b.nextAddress!=4)return X=b.yieldResult,X.JSC$11762_getStoreKey(x,t)?_.q(b,_.w5(p.innerTubeTransportService,x,t),4):(C(new _.qE("Prefetching request builder with no store key.",x)),b.jumpTo(0));Q=b.yieldResult;v(Q);_.JB(b)})}):Promise.reject(new _.qE("Prefetching unregistered request builder.",x))}return Promise.reject(new _.qE("No request builder available to prefetch endpoint.",x))};
qXH=function(p,x){var F,N,h;if(_.r(x,_.B7)){var c=p.watchEndpointMap.watchNext;c&&(F=c());(p=p.watchEndpointMap.player)&&(N=p())}else if(_.r(x,_.dX))(c=p.reelWatchEndpointMap.reelItemWatch)&&(F=c()),(c=p.reelWatchEndpointMap.player)&&(N=c()),(p=p.reelWatchEndpointMap.reelWatchSequence)&&(h=p());else{a:{p=Nfz(x,p.innerTubeTransportService.endpointMap);if(p!==void 0)if(typeof p.then==="function")_.zj(new _.qE("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",x));else break a;
p=void 0}p&&(F=p)}var M,f,K;return{content:(M=F)==null?void 0:M.JSC$11762_getStoreKey(x),player:(f=N)==null?void 0:f.JSC$11762_getStoreKey(x),reelSequence:(K=h)==null?void 0:K.JSC$11762_getStoreKey(x)}};
sKC=function(p,x,F,N,h,c,M){var f=_.qt(),K=p.watchEndpointMap.player;K&&(K=K().JSC$11755_getRequest(x,F))&&(f=_.AY(p.innerTubeTransportService,K.innerTubeRequest,K.input,x.clickTrackingParams,K.config));K=_.qt();var t=p.watchEndpointMap.watchNext;t&&(F=t().JSC$11755_getRequest(x,F))&&(K=_.AY(p.innerTubeTransportService,F.innerTubeRequest,F.input,x.clickTrackingParams,F.config));p=_.qt(N);Ytl(x,p,f,K,h,c,M)};
zbl=function(p,x,F){return _.D(function(N){if(N.nextAddress==1)return _.q(N,p,2);x.resolve(F);_.JB(N)})};
Ytl=function(p,x,F,N,h,c,M){var f,K,t,d,v;_.D(function(C){switch(C.nextAddress){case 1:return _.q(C,x,2);case 2:f=C.yieldResult;if(c(M.promise))return M.resolve(f),C.return();h(p,f);K=ofH(p);if(!K.length){C.jumpTo(3);break}return _.q(C,x,4);case 4:f.preconnect=K,h(p,f);case 3:return _.KM(C,5),_.q(C,F,7);case 7:t=C.yieldResult;_.ub(C,6);break;case 5:return d=_.v9(C),M.reject(d),C.return();case 6:if(t===void 0)return f.reload=!0,h(p,f),M.resolve(f),C.return();if(c(M.promise))return M.resolve(f),C.return();
f.playerResponse=t;h(p,f);_.KM(C,8);return _.q(C,N,10);case 10:v=C.yieldResult;_.ub(C,9);break;case 8:_.v9(C);case 9:if(v===void 0)return f.response={responseContext:{}},M.resolve(f),C.return();if(c(M.promise))return M.resolve(f),C.return();f.response=v;h(p,f);M.resolve(f);_.JB(C)}})};
bSn=function(p,x,F,N,h,c,M,f){var K,t,d,v,C,X;_.D(function(Q){switch(Q.nextAddress){case 1:return _.q(Q,x,2);case 2:K=Q.yieldResult;if(M(f.promise))return f.resolve(K),Q.return();c(p,K);t=ofH(p);if(!t.length){Q.jumpTo(3);break}return _.q(Q,x,4);case 4:K.preconnect=t,c(p,K);case 3:return _.KM(Q,5),_.q(Q,F,7);case 7:d=Q.yieldResult;_.ub(Q,6);break;case 5:return v=_.v9(Q),f.reject(v),Q.return();case 6:if(d===void 0)return K.reload=!0,c(p,K),f.resolve(K),Q.return();if(M(f.promise))return f.resolve(K),
Q.return();K.playerResponse=d;c(p,K);_.KM(Q,8);return _.q(Q,N,10);case 10:C=Q.yieldResult;_.ub(Q,9);break;case 8:_.v9(Q);case 9:if(C===void 0)return K.response={responseContext:{}},f.resolve(K),Q.return();if(M(f.promise))return f.resolve(K),Q.return();K.response=C;c(p,K);_.KM(Q,11);return _.q(Q,h,13);case 13:X=Q.yieldResult;_.ub(Q,12);break;case 11:_.v9(Q);case 12:if(M(f.promise))return f.resolve(K),Q.return();K.reelWatchSequenceResponse=X;c(p,K);f.resolve(K);_.JB(Q)}})};
yKk=function(p,x,F,N,h,c,M){var f,K,t,d,v,C;_.D(function(X){if((f=M)==null||!f.replacementEndpoint)return c.reject(),X.return();K=M.replacementEndpoint;(t=_.r(K,_.dX))?(M.sequenceContinuation&&(t.sequenceParams=M.sequenceContinuation),d=_.J().resolve(_.pJ),v=t.sequenceParams,wJB(d,K)&&delete t.sequenceParams,C=Og(p,K,x,F,N,h,function(){return!1}),C.then(function(Q){return _.D(function(b){if(b.nextAddress==1)return GJI(d,{reelWatchEndpoint:{sequenceParams:v}},Q),_.q(b,0,2);
c.resolve(Q);_.JB(b)})})):c.reject();
_.JB(X)})};_.VhD=function(p){if(p.validatedFragments_.length==0)return null;if(!p.mergedPrefetchedData_){for(var x=[],F=_.a(p.validatedFragments_),N=F.next();!N.done;N=F.next()){N=_.a(p.fragmentConfiguration_[N.value].graftedKeys);for(var h=N.next();!h.done;h=N.next())(h=p.prefetchedData_[h.value].trackingParams)&&x.push(h)}p.mergedPrefetchedData_={};Object.assign(p.mergedPrefetchedData_,p.prefetchedData_,{clientSideGrafts:x})}return p.mergedPrefetchedData_};var WLl;_.Nq=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
WLl=function(p,x,F){if(_.vkM(x))return p.prefetchCache_.get(_.J5B(x,F))};_.hA=new _.iE("NAVIGATION_TOKEN");var HSk=function(p){var x=this;var F=F===void 0?szH():F;var N=N===void 0?_.J().resolve(_.hA):N;this.onePickCommand=p;this.JSC$10857_playlistNetworkManager=F;this.navigationManager=N;this.videoPickerBuilder=_.QzZ("yt-addtoplaylist");_.ifk(jcC(LiD(Ook(this.videoPickerBuilder.setTitle(p.modalTitle).setSize(1E3).addView(Bql()).addView(Tqb())).addView("youtube"),p.selectButtonLabel)),function(h){x.handleAction(h)})};
HSk.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
HSk.prototype.handleAction=function(p){var x=this;if(p&&this.onePickCommand.listId&&p.action==="picked"&&p.docs){var F=[];p.docs.forEach(function(N){F.push({addedVideoId:N.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$10857_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,F).then(function(){_.S("playlist_add_video_hard_reload_killswitch")?x.navigationManager.reload():m5J(x.navigationManager)})}};var ocD=function(){if(this.constructor===ocD)throw new TypeError("Uf");};
_.l=ocD.prototype;_.l.dispose=function(){};
_.l.disconnect=function(){};
_.l.reconnect=function(){};
_.l.observe=function(p,x,F){return{element:p,option:F}};
_.l.unobserveByKey=function(){};var nkk=function(p,x){x=x===void 0?0:x;ocD.call(this);this.viewroot=p;this.defaultPrescanHeight=x;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),p?{root:p,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.E(nkk,ocD);_.l=nkk.prototype;_.l.dispose=function(){this.disconnect();this.handlers.clear()};
_.l.disconnect=function(p){this.isConnected=!1;this.pauseObservingUntilReconnect=p===void 0?!1:p;this.observer.disconnect();p=_.a(this.prescanObservers.values());for(var x=p.next();!x.done;x=p.next())x.value.disconnect()};
_.l.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var p=_.a(this.handlers),x=p.next();!x.done;x=p.next()){var F=_.a(x.value);x=F.next().value;var N=F.next().value;F=!1;N=_.a(N.keys());for(var h=N.next();!h.done;h=N.next())if((h=h.value)&&h.state==="prescan"){F=!0;break}F&&OSv(this,x).observe(x);this.observer.observe(x)}}};
_.l.handleObserveEvent=function(p){p=_.a(p);for(var x=p.next();!x.done;x=p.next()){x=x.value;var F=this.handlers.get(x.target);if(F){var N=x.isIntersecting;F=_.a(F);for(var h=F.next();!h.done;h=F.next()){var c=_.a(h.value);h=c.next().value;c=c.next().value;h&&(h.state==="visible"&&N||h.state==="hidden"&&!N)&&(c(x.target,h.state),h.calledOnce&&this.unobserveByKey({element:x.target,option:h}))}}}};
_.l.handlePrescanEvent=function(p){p=_.a(p);for(var x=p.next();!x.done;x=p.next()){x=x.value;var F=this.handlers.get(x.target);if(F&&x.isIntersecting){F=_.a(F);for(var N=F.next();!N.done;N=F.next()){var h=_.a(N.value);N=h.next().value;h=h.next().value;N&&N.state==="prescan"&&(h(x.target,N.state),N.calledOnce&&this.unobserveByKey({element:x.target,option:N}))}}}};
_.l.observe=function(p,x,F){var N=(N=this.handlers.get(p))&&N.has(F)?{element:p,option:F}:void 0;if(N)return N;N={element:p,option:F};this.handlers.has(p)||this.handlers.set(p,new Map);var h=this.handlers.get(p);h&&!h.has(F)&&h.set(F,x);this.pauseObservingUntilReconnect||(F.state==="prescan"&&OSv(this,p).observe(p),this.observer.observe(p));return N};
_.l.unobserveByKey=function(p){var x=this.handlers.get(p.element);if(x&&x.has(p.option)){x.delete(p.option);if(p&&p.option.state==="prescan")for(var F=_.a(this.prescanObservers.values()),N=F.next();!N.done;N=F.next())N.value.unobserve(p.element);x.size===0&&(this.handlers.delete(p.element),this.observer.unobserve(p.element))}};
var OSv=function(p,x){var F=p.defaultPrescanHeight;x.hasAttribute("prescan-height")&&(x=Number(x.getAttribute("prescan-height")),isNaN(x)||(F=x));if(p.prescanObservers.has(F))return p.prescanObservers.get(F);x="-0.1px -0.1px "+F+"px -0.1px";x=new IntersectionObserver(p.handlePrescanEvent.bind(p),p.viewroot?{root:p.viewroot,rootMargin:x}:{rootMargin:x});p.prescanObservers.set(F,x);return x};var jKK=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],LLB=function(){var p,x=this;this.JSC$10874_actionRouter=p=p===void 0?_.Vj.getInstance():p;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return x.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return x.visibilityObservedElementHandlerKeys}}},PiK,B4D,U5b;
LLB.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.S("kevlar_use_vimio_behavior")&&_.sd("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=y5p())};
LLB.prototype.dispose=function(){this.visibilityMonitor&&_.Ci(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
LLB.prototype.handleVisibilityRefreshed=function(){for(var p=_.a(this.targetMap.entries()),x=p.next();!x.done;x=p.next()){var F=_.a(x.value);x=F.next().value;F=F.next().value;_.T4B(this,x,F)}};
_.kJI=function(p,x,F){B4D(p,F);var N=_.RbB(p,x);N.element=F;p.targetedElements.set(F,x);_.T4B(p,x,N)};
B4D=function(p,x){var F=p.targetedElements.get(x);if(F){var N=p.targetMap.get(F);N&&(delete N.element,p.targetMap.set(F,N));p.targetedElements.delete(x);p.visibilityObserver&&p.visibilityObservedElementHandlerKeys&&(F=p.visibilityObservedElementHandlerKeys.get(x))&&(p.visibilityObserver.unobserveByKey(F),p.visibilityObservedElementHandlerKeys.delete(x))}};
_.T4B=function(p,x,F){var N=F.action,h=F.element;h&&N&&(jKK.includes(x)||_.sd("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||p.visibilityMonitor&&p.visibilityMonitor.isNodeVisible(h)?U5b(p,x,F):p.visibilityObserver&&(p.visibilityObservedElementHandlerKeys||(p.visibilityObservedElementHandlerKeys=new WeakMap),N=p.visibilityObserver.observe(h,function(){U5b(p,x,F);p.visibilityObservedElementHandlerKeys.delete(h)},{calledOnce:!0,
state:"visible"}),p.visibilityObservedElementHandlerKeys.set(h,N)))};
U5b=function(p,x,F){var N=F.action;(F=F.element)&&N&&(_.Aw(p.JSC$10874_actionRouter,[N],F),p.targetMap.delete(x),p.targetedElements.delete(F),p.triggeredTargets.add(x))};
_.RbB=function(p,x){var F=p.targetMap.get(x);F||(F={},p.targetMap.set(x,F));return F};
_.l$=function(){PiK||(PiK=new LLB);return PiK};var iSC=document.createElement("div");iSC.style.touchAction="pan-down";var blr=iSC.style.touchAction==="pan-down";var IFv,$5l;IFv=function(){this.hammerFn=bVI();this.JSC$10882_screenManager=_.cl();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.vt(83615);_.hY(this.JSC$10882_screenManager,this.ve);A5d()};
_.c6=function(){$5l||($5l=new IFv);return $5l};
IFv.prototype.registerTouchEvents=function(p,x,F){var N=_.we.apply(3,arguments),h=this.hammerFn(p,{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}]]});F&&h.set({touchAction:F});this.nodeManagerMapping.set(p,h);var c=
uO$(x);N=_.a(N);for(var M=N.next();!M.done;M=N.next()){M=M.value;if(M.includes("swipe")||M.includes("pinch")||M.includes("pan"))M.includes("swipe")?h.get("swipe").set({enable:!0,direction:c,velocity:.2}):M.includes("pinch")?h.get("pinch").set({enable:!0}):M.includes("pan")&&(h.get("pan").set({enable:!0,direction:c}),h.get("swipe").set({enable:!0,direction:c,velocity:.2}),h.get("swipe").recognizeWith("pan"));ebl(this,p,h,M)}};
var ebl=function(p,x,F,N){F.on(N,function(h){if(N.includes("pinch"))p.lastPinchTime=Date.now();else if(N.includes("swipe")&&Date.now()-p.lastPinchTime<400)return;h.pointerType!=="mouse"&&(h=N==="doubletap"?{coordinates:h.center}:N.includes("pan")?h:N.includes("swipe")?{target:h.target}:{},x.dispatchEvent(new CustomEvent(N,{bubbles:!0,composed:!0,detail:h})))})};
IFv.prototype.unregisterTouchEvents=function(p){var x=_.we.apply(1,arguments),F=this.nodeManagerMapping.get(p);if(F){x=_.a(x);for(var N=x.next();!N.done;N=x.next())F.off(N.value);this.nodeManagerMapping.delete(p);p.style.touchAction="unset"}};var pyZ=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var Y7m=null;var Fsj;_.a3=function(p,x,F){var N=F&&F>0?F:0;F=N?Date.now()+N*1E3:0;if((N=N?(0,_.xaC)():Fsj())&&window.JSON){typeof x!=="string"&&(x=JSON.stringify(x,void 0));try{N.set(p,x,F)}catch(h){N.remove(p)}}};
_.Mq=function(p){var x=Fsj(),F=(0,_.xaC)();if(!x&&!F||!window.JSON)return null;try{var N=x.get(p)}catch(h){}if(typeof N!=="string")try{N=F.get(p)}catch(h){}if(typeof N!=="string")return null;try{N=JSON.parse(N,void 0)}catch(h){}return N};
_.D_=function(p){try{var x=Fsj(),F=(0,_.xaC)();x&&x.remove(p);F&&F.remove(p)}catch(N){}};
_.xaC=_.Cy(function(){try{var p=new l26;var x=p.isAvailable()?p:null}catch(F){return null}return x?new _.Fb(x):null});
Fsj=_.Cy(function(){var p=new c$p;return p.isAvailable()?new _.Fb(p):null});var NEl=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},IEE=function(){NEl.instance||(NEl.instance=new NEl);
return NEl.instance},$WZ=function(p){var x=p.networkEvents;
p.networkEvents=[];return _.S("enable_network_monitoring")?x:[]};var hdK;hdK={};_.lYj=jQ("yt-serviceworker-metadata",{objectStores:(hdK.auth={addedAtVersion:1},hdK["resource-manifest-assets"]={addedAtVersion:2},hdK),shared:!0,upgrade:function(p,x){x(1)&&b1(p,"resource-manifest-assets");x(2)&&b1(p,"auth")},
version:2});var mW6=self.location.origin+"/";ok$([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//]);ok$([/purge_shell=1/]);var cLI=void 0;cLI=cLI===void 0?[]:cLI;for(var aYB=[],MRZ=_.a(rlB),Dal=MRZ.next();!Dal.done;Dal=MRZ.next())aYB.push({key:Dal.value});for(var fYj=_.a(cLI),Ksm=fYj.next();!Ksm.done;Ksm=fYj.next())aYB.push(Ksm.value);var qYn,rX=_.Mm==null?void 0:(qYn=_.Mm.performance)==null?void 0:qYn.memory,LBp=!1,e1J={},BFp={},Eb={},XT=navigator;var fJ=function(p){this.JSC$10926_expiringStorage=new tq(p)};
fJ.prototype.set=function(p,x,F){F=F!==void 0?Date.now()+F:void 0;this.JSC$10926_expiringStorage.set(p,x,F)};
fJ.prototype.get=function(p){return this.JSC$10926_expiringStorage.get(p)};
fJ.prototype.remove=function(p){this.JSC$10926_expiringStorage.remove(p)};var aVE=_.B$(["https://www.youtube.com/",""]),MvH=_.B$(["https://studio.youtube.com/",""]),Z_J="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",fVE=null,CpE;var ZUl=_.B$(["https://www.youtube.com/iframe_api"]),KJ=function(){this.playerResolver_=_.GO();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.Ja;this.playbackDurationSeconds_=0},tRm=function(p){var x=function(){return window.YT&&typeof window.YT.ready==="function"};
if(x())return _.qt(window.YT);var F=_.GO(),N=_.KH("SCRIPT");N.onload=N.onreadystatechange=function(){N.readyState&&N.readyState!="loaded"&&N.readyState!="complete"||(N.onload=_.Ja,N.onreadystatechange=_.Ja,N.onerror=_.Ja,x()?F.resolve(window.YT):F.reject(new _.qE("Failed to load the iframe player library","script.onload",N.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
N.onerror=function(h){N.onload=_.Ja;N.onreadystatechange=_.Ja;N.onerror=_.Ja;F.reject(new _.qE("Failed to load the iframe player library","script.onerror",h&&h.target&&h.target.src))};
_.UU(N,_.xH(ZUl));p.insertBefore(N,p.firstChild);return F.promise},daZ=function(p,x,F){var N,h;
_.D(function(c){switch(c.nextAddress){case 1:return p.playbackEndedCallback_=F,_.KM(c,2),_.q(c,tRm(x.parentElement||null),4);case 4:N=c.yieldResult;_.ub(c,3);break;case 2:return h=_.v9(c),h instanceof _.qE&&h.args&&h.args[0]=="script.onerror"?_.no(h):_.zj(h),c.return();case 3:N.ready(function(){return new N.Player(x,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:p.onPlayerReady_.bind(p),onStateChange:p.onPlayerStateChange_.bind(p),
onCueRangeExit:p.onCueRangeExit_.bind(p)}})}),_.JB(c)}})};
_.l=KJ.prototype;_.l.getPlayerPromise=function(){return this.playerPromise_};
_.l.onPlayerReady_=function(p){this.playerResolver_.resolve(p.target)};
_.l.onPlayerStateChange_=function(p){if(p.data==YT.PlayerState.PLAYING){p=p.target;var x=p.getCurrentTime();p.addCueRange("playback",x,x+this.playbackDurationSeconds_)}};
_.l.onCueRangeExit_=function(p){p.data=="playback"&&(p.target.stopVideo(),this.playbackEndedCallback_())};
_.l.stopVideo=function(){this.playerPromise_.then(function(p){p.stopVideo()})};
var v2k=function(p){p.playerVars_&&p.playerPromise_.then(function(x){typeof x.cueVideoByPlayerVars!="function"?_.no(new _.qE("vmh: player API not ready","cueVideoByPlayerVars",typeof x.cueVideoByPlayerVars)):x.cueVideoByPlayerVars(p.playerVars_)})};
KJ.prototype.playVideo=function(){var p=this;this.playerVars_&&this.playerPromise_.then(function(x){typeof x.loadVideoByPlayerVars!="function"?(x=new _.qE("vmh: player API not ready","loadVideoByPlayerVars",typeof x.loadVideoByPlayerVars),_.zj(x)):x.loadVideoByPlayerVars(p.playerVars_)})};
var JLv=function(p,x,F,N,h){x&&(F===void 0&&(F=0),N===void 0&&(N=0),p.playbackDurationSeconds_=N/1E3,p.playerVars_={adformat:"17_8",videoId:x,suggestedQuality:"hd720",startSeconds:F/1E3,player_params:h})};
KJ.prototype.mute=function(){this.playerPromise_.then(function(p){p.mute()})};
KJ.prototype.unMute=function(){this.playerPromise_.then(function(p){p.unMute()})};var zJB=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var qq;qq=function(){this.tokenJars={};if(this.cookiesEnabled=_.D5()){var p=_.ax.get("CONSISTENCY",void 0);p&&Ccj(this,{encryptedTokenJarContents:p})}};
_.neH=function(){qq.instance||(qq.instance=new qq);return qq.instance};
qq.prototype.handleResponse=function(p,x){if(!x)throw Error("Zf");var F,N;x=((F=x.innerTubeRequest.context)==null?void 0:(N=F.request)==null?void 0:N.consistencyTokenJars)||[];var h;(p=(h=p.responseContext)==null?void 0:h.consistencyTokenJar)&&this.replace(x,p)};
qq.prototype.replace=function(p,x){p=_.a(p);for(var F=p.next();!F.done;F=p.next())delete this.tokenJars[F.value.encryptedTokenJarContents];Ccj(this,x)};
var Ccj=function(p,x){if(x.encryptedTokenJarContents&&(p.tokenJars[x.encryptedTokenJarContents]=x,typeof x.expirationSeconds==="string")){var F=Number(x.expirationSeconds);setTimeout(function(){delete p.tokenJars[x.encryptedTokenJarContents]},F*1E3);
p.cookiesEnabled&&_.ME("CONSISTENCY",x.encryptedTokenJarContents,F,void 0,!0)}};var SYv,Z_;SYv=window.location.hostname.split(".").slice(-2).join(".");_.wX=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var p=_.sd("LOCATION_PLAYABILITY_TOKEN");_.sd("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=rLv(this))&&(p=this.localStorage.get("yt-location-playability-token"));p&&(this.locationPlayabilityToken=p,this.mostRecentPosition=void 0)};
_.wX.getInstance=function(){Z_=_.A9("yt.clientLocationService.instance");Z_||(Z_=new _.wX,_.ox("yt.clientLocationService.instance",Z_));return Z_};
_.wX.prototype.setLocationOnInnerTubeContext=function(p){p.client||(p.client={});if(this.mostRecentPosition)p.client.locationInfo||(p.client.locationInfo={}),p.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),p.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),p.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),p.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)p.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.wX.prototype.handleResponse=function(p){var x;p=(x=p.responseContext)==null?void 0:x.locationPlayabilityToken;p!==void 0&&(this.locationPlayabilityToken=p,this.mostRecentPosition=void 0,_.sd("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=rLv(this))&&this.localStorage.set("yt-location-playability-token",p,15552E3):_.ME("YT_CL",JSON.stringify({loctok:p}),15552E3,SYv,!0))};
var rLv=function(p){return p.localStorage===void 0?new _.s0("yt-client-location"):p.localStorage};
_.wX.prototype.clearLocationPlayabilityToken=function(p){p==="TVHTML5"?(this.localStorage=rLv(this))&&this.localStorage.remove("yt-location-playability-token"):_.$tE("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.wX.prototype.getCurrentPositionFromGeolocation=function(){var p=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("$f"));var x=!1,F=1E4;_.sd("INNERTUBE_CLIENT_NAME")==="MWEB"&&(x=!0,F=15E3);return new Promise(function(N,h){navigator.geolocation.getCurrentPosition(function(c){p.mostRecentPosition=c;N(c)},function(c){h(c)},{enableHighAccuracy:x,
maximumAge:0,timeout:F})})};
_.wX.prototype.createUnpluggedLocationInfo=function(p){var x={};p=p.coords;if(p==null?0:p.latitude)x.latitudeE7=Math.floor(p.latitude*1E7);if(p==null?0:p.longitude)x.longitudeE7=Math.floor(p.longitude*1E7);if(p==null?0:p.accuracy)x.locationRadiusMeters=Math.round(p.accuracy);return x};
_.wX.prototype.createLocationInfo=function(p){var x={};p=p.coords;if(p==null?0:p.latitude)x.latitudeE7=Math.floor(p.latitude*1E7);if(p==null?0:p.longitude)x.longitudeE7=Math.floor(p.longitude*1E7);return x};var E2D=function(p,x){var F=GZ();p||(p="unknown");x||(x="unknown");p="MAIN_APP_WEB_PAGE_TYPE_"+p.toUpperCase();p in fQj||(p="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");x="MAIN_APP_WEB_REQUEST_TYPE_"+x.toUpperCase();x in KtB||(x="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.ZX(F,{mainAppWeb:{pageType:p,requestType:x,isShellLoad:_.nt("IS_SHELL_LOAD",!1)}})},XyD={start:function(){_.ZX(rwJ(),{mainAppWeb:_.GF()})},
success:function(){_.tf(rwJ(),"SUCCESS")},
failure:function(){_.tf(rwJ(),"FAILURE")},
cancelled:function(){_.tf(rwJ(),"CANCELLED")}};var g2J,QpD,YZZ;g2J=_.B$(["/sw.js"]);QpD=_.B$(["/sw.js?0"]);_.zdD=_.xH(g2J);YZZ=_.xH(QpD);var spD=function(){var p=Error.apply(this,arguments);this.message=p.message;"stack"in p&&(this.stack=p.stack)};
_.E(spD,Error);_.Hg.prototype.load=function(p){this.megabloxUrl_=_.sd("YPC_MB_URL");_.VR(this.megabloxUrl_,(0,_.CH)(function(){p&&p()},this))};
_.tnk=function(p,x,F,N,h,c,M,f,K,t,d){_.GpB(K);p.load((0,_.CH)(function(){try{var v=c?c:_.sd("HL"),C=_.sd("SESSION_INDEX");_.lQw("client",function(){weD("59",{helpCenterPath:"/youtube",locale:v,window:window}).JSC$7828_loadChatSupport({authuser:String(C)})})}catch(X){throw VK(10,d,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),h&&h(X),_.zj(X),X;
}n2v(this,x,F,N,h,c,M,f,K,t,d)},p))};
_.Hg.prototype.openFixFlowDialog=function(p,x,F,N){this.load((0,_.CH)(function(){try{yLK(this,_.A9("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(p).withIntegratorCallback(x).load(F,N)}catch(h){throw _.zj(h),h;}},this))};
var yLK=function(p,x,F,N){var h=x.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.S("enable_window_constrained_buy_flow_dialog")&&(h=h.usingPopupStyle(_.A9("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));N&&(h=h.usingCloseCallback(N));x.bootstrap.fromPaymentsUrl(p.megabloxUrl_);p=x.bootstrap.asMashupMode(h);F=F?F:_.sd("HL");p.usingGaiaIndex(_.sd("SESSION_INDEX")).usingLocale(F).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.S("enable_google_payments_buyflow_material2_style_web")?
p.usingStyle(":m2;pc=#444;ac=#065fd4"):p.usingStyle(":md;pc=#444;ac=#065fd4");return p},n2v=function(p,x,F,N,h,c,M,f,K,t,d){try{var v=_.A9("payments.business.integration");
if(!v)throw new spD("payments.business.integration is undefined");var C=v.standaloneContextAuthId.forUserId(),X=yLK(p,v,c,f);M&&X.usingServerAnalyticsEventHandler(M);var Q=X.inStandaloneContext(C).buyFlow(function(b){if(b&&(!b.integratorData||b.integratorData===""||b.error))if(b.error!=null)if(String(b.error)==="-1")_.Vvp(K);else{var A=String(b.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";VK(10,d,A,b.debugCode);
_.Wg(A,K,b.debugCode);A=new _.qE("PAYMENT_ERROR_MESSAGE::"+b.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+b.internalErrorDetails);_.zj(A)}else VK(10,d,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.Wg("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",K,"EMPTY_INTEGRATOR_DATA"),_.zj(Error("bg"));F&&F(b)}).withEncryptedParameters(x);
t&&Q.withClientParameters(xTk(_.CDk(t)));Q.load(function(){VK(24,d);_.Vp("ttc",void 0,"commerce_transaction");kiM("commerce_transaction");N&&N()},function(b){if(b==null?0:b.debugCode)var A=b==null?void 0:b.debugCode;
else if(!b||(b==null?0:b.debugCode))A="EMPTY_LOAD_FAILURE_ERROR",_.zj(Error(A));else{A="EMPTY_LOAD_FAILURE_DEBUG_CODE";var Y=new _.qE("LOAD_FAILURE:"+b.message," DEBUG_CODE:"+A);_.zj(Y)}VK(10,d,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",A);_.Wg("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",K,A);_.zj(b);h&&h(b)})}catch(b){throw b instanceof spD&&(VK(10,d,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),h&&h(b)),_.zj(b),b;
}};var bUD;bUD=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.K0k=function(p,x){x=x===void 0?!1:x;p=bUD.test(p)?_.vz(p):null;!x&&window.payments||!p?(p=_.GO(),x=p.promise,p.resolve()):x=_.bE(p,{attributes:{"data-payments-main":"",id:"payment-lib"}});return x};var ALk;ALk=_.B$(["//www.googletagmanager.com/gtm.js?id=",""]);_.tA=function(p,x){_.Bt(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:x}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.sd("GL")}),x=_.KH("SCRIPT"),x.async=!0,_.UU(x,_.xH(ALk,p)),x.id="gtm",p=document.getElementsByTagName("script"),p.length==0?document.head.appendChild(x):(p=p[0],p.parentNode.insertBefore(x,p)))};
_.dm=function(p){if(p=JSON.parse(p))window.dataLayer=window.dataLayer||[],window.dataLayer.push(p)};var u9D,YYl;u9D=_.B$(["https://clients2.google.com/gr/gr_sync.js"]);_.DAZ=function(){};
_.DAZ.prototype.init=function(){if(YYl()){var p=_.GO();p.resolve();return p.promise}return _.bE(_.xH(u9D)).then(function(){if(!YYl())throw Error("cg");},function(){throw Error("dg");
})};
_.fBp=function(){if(!YYl())return"";var p=window.google.gr;p.init({async:{schedule:"sync"},merchantId:"youtube"});p.start();p=p.finish();return p==null?"":p};
YYl=function(){return window.google!=null&&window.google.gr!=null};var BKJ,Ux6=new Set,RLp;window.PolymerFakeBaseClassWithoutHtml=function(){};
_.m=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.E(_.m,PolymerFakeBaseClassWithoutHtml);_.hZ=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.E(_.hZ,PolymerFakeBaseClassWithoutHtml);var W$6=window.ShadyDOM;var J6k,dxm,SNd,r6M,XhH,gow,v6,ks;J6k=_.S("enable_shadydom_free_scoped_query_methods");dxm=_.S("enable_shadydom_free_scoped_node_methods");SNd=_.S("enable_shadydom_free_scoped_readonly_properties_batch_one");r6M=_.S("enable_shadydom_free_parent_node");XhH=_.S("enable_shadydom_free_children");gow=_.S("enable_shadydom_free_last_child");v6=window.ShadyDOM;_.$s=v6&&v6.noPatch&&v6.wrap?v6.wrap:v6?function(p){return v6.patch(p)}:function(p){return p};
ks=function(p){if(p instanceof ShadowRoot)this.host=(0,_.$s)(p.host),this.root=p;else if(p.$$){this.host=(0,_.$s)(p);var x;this.root=(x=p.root)!=null?x:this.host}else if(p.polymerController){this.host=(0,_.$s)(p);var F;this.root=(F=this.host.shadowRoot)!=null?F:this.host}else this.root=this.host=(0,_.$s)(p)};
vo6();Ct6();QBk();zLr();Eom();var wyj={querySelector:function(p,x){x=mQH(x,jV(p));p=_.LR(p);return Pg(p).prototype.querySelector.call(p,x)},
querySelectorAll:function(p,x){x=mQH(x,jV(p));p=_.LR(p);return Pg(p).prototype.querySelectorAll.call(p,x)}},G8j={appendChild:function(p,x){var F=jV(p),N=_.Ob(x);
return _.Zak(_.LR(p),F?_.Bg(x,F,N):x)},
cloneNode:function(p,x){var F=_.Ob(p);p=_.LR(p);x=Pg(p).prototype.cloneNode.call(p,x);return F?Rs(x,F):x},
contains:function(p,x){var F=jV(p),N=_.Ob(x);return F!==N?!1:tmE(p,x)},
insertBefore:function(p,x,F){var N=jV(p),h=_.Ob(x);p=_.LR(p);x=N?_.Bg(x,N,h):x;return Pg(p).prototype.insertBefore.call(p,x,F)},
removeChild:function(p,x){var F=jV(p);p=_.LR(p);x=F?Rs(x,F):x;return Pg(p).prototype.removeChild.call(p,x)},
replaceChild:function(p,x,F){var N=jV(p),h=_.Ob(x);x=N?_.Bg(x,N,h):h?Rs(x,h):x;F=N?Rs(F,N):F;p=_.LR(p);return Pg(p).prototype.replaceChild.call(p,x,F)},
getRootNode:function(p,x){x=x===void 0?{composed:!0}:x;var F;if(((F=x)!=null?F:{}).composed)p=i_B(p);else{x=p;for(p=O_k(p);p;)x=p,p=L$$(p);p=x}return p}},nok=SNd?{firstChild:amk,
nextSibling:hLr,previousSibling:c6r,firstElementChild:MmJ,lastElementChild:fmd,nextElementSibling:NKd,previousElementSibling:lmp,childNodes:Kop}:{};r6M&&(nok.parentNode=Fod);XhH&&(nok.children=qNr);gow&&(nok.lastChild=DxH);J6k&&sBd(wyj);dxm&&sBd(G8j);y6r();var baH=function(p){this.node=p instanceof ShadowRoot?p.host:p};
A66();uhw();var Vmp=new WeakMap;var Had=Symbol("vd");var LoH=new Set(["tap","track","down","up"]),PtH=_.S("pbcm_fi_query_decorators");var VRJ=function(){return _.hZ.apply(this,arguments)||this};
_.E(VRJ,_.hZ);_.l=VRJ.prototype;_.l.getState=function(){return this.store.getState()};
_.l.dispatch=function(p){this.store.dispatch(p)};
_.l.beforeRegister=function(){if(this&&typeof this==="object"){var p;var x=!!this.useSignals||!((p=this.polymerController)==null||!p.useSignals)}else x=!1;if(!x&&this.properties)for(x=_.a(Object.keys(this.properties)),p=x.next();!p.done;p=x.next()){var F=p.value;p=this.properties[F];if(p.selector){if(p.computed)throw Error("jg");F=["reduxPropertiesRecomputeTrigger",'"'+F+'"'].concat(_.se(p.selectorArgs||[])).join(",");p.computed="recomputeReduxSelector("+F+")"}}};
_.l.attached=function(){var p=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){p.reduxPropertiesRecomputeTrigger++}));
_.S("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.l.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.l.recomputeReduxSelector=function(p,x){var F=_.we.apply(2,arguments),N=this.properties[x].selector;if(!N)throw Error("hg`"+x);return N.apply(null,[this.store.getState()].concat(_.se(F)))};
_.l.select=function(p){var x=_.we.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return p.apply(null,[this.store.getState()].concat(_.se(x)))};
_.R8.Object.defineProperties(VRJ.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("ig");}}});
var JA=VRJ;JA.prototype.recomputeReduxSelector=JA.prototype.recomputeReduxSelector;_.B([_.H(),_.k("design:type",Number)],JA.prototype,"reduxPropertiesRecomputeTrigger",void 0);JA=_.B([_.l8()],JA);var CJ=[],$xw={},Wsn=function(){return U4.apply(this,arguments)||this};
_.E(Wsn,U4);Wsn.prototype._addPropertyEffect=function(p,x,F){if(x==="__observeEffects"&&F){var N,h=(N=F.info.method)!=null?N:F.info.methodName;if(h){var c=this[h];this[h]=function(){CJ.push(h);try{c==null||c.apply(this,arguments)}finally{CJ.pop()}}}}_.SX._addPropertyEffect.apply(this,[p,
x,F])};
Wsn.prototype._setPendingProperty=function(p,x,F){if(CJ.length){var N=CJ[CJ.length-1],h;(h=$xw[this.is])!=null&&h.has(N)||(eLw(this.is,N),_.E$("polymerPropertyChangedInObserver",{componentName:this.is,observerName:N}))}return _.SX._setPendingProperty.apply(this,[p,x,F])};
var JK6=Wsn;JK6=_.B([M0Z()],JK6);var pJB=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),FLp,Mu={};_.S("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=Mu);var HUC=function(){return _.hZ.apply(this,arguments)||this};
_.E(HUC,_.hZ);HUC.prototype._setUnmanagedPropertyToNode=function(p,x,F){p.loggingStatus&&(p.loggingStatus.isDeclarativeExternal=!0);if(F!==p[x]||typeof F==="object")p[x]=F;p.is&&p.polymerController&&p.polymerController!==p&&Dv(p.is,x,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");p.loggingStatus&&(p.loggingStatus.isDeclarativeExternal=!1)};
var cKE=HUC;cKE=_.B([_.l8()],cKE);x5k()&&(uL.prototype._setUnmanagedPropertyToNode=(new cKE)._setUnmanagedPropertyToNode);_.CiB={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(p){},set polymerController(p){}}]};var maD=function(){var p=U4.apply(this,arguments)||this;p.json=function(){};
return p};
_.E(maD,U4);maD.prototype.equals=function(p,x){return p===x};
maD.prototype.isEmpty=function(p){return!p||_.TB(p)&&p.length===0};
var vT=maD;vT=_.B([M0Z()],vT);var o2J=function(p){p=hVJ(p);GR.call(this,p)};
_.E(o2J,GR);o2J.prototype.addProvider=function(p){p=p.key?p:hVJ([p])[0];var x=this.keyIdToIndex.get(p.key.id);if(x){if(MhJ(p,this.providers[x]))throw Error("kg`"+p.key.displayName);}else GR.prototype.addProvider.call(this,p)};
var OUj=new o2J([]);var jpC=!1;var thE={};jpC||(ZSB(),jpC=!0);
thE.InjectBehavior={initializeInjection:function(){var p=this.provide;try{if((p=p!=null?p:[])&&p.length>0)for(var x=hVJ(p),F=_.a(x),N=F.next();!N.done;N=F.next())OUj.addProvider(N.value);var h=new Set;D5p(this.behaviors||[],h);x={};for(var c=_.a(h),M=c.next();!M.done;M=c.next()){var f=M.value;f.inject&&Object.assign(x,f.inject)}this.inject&&Object.assign(x,this.inject);for(var K=_.a(Object.keys(x)),t=K.next();!t.done;t=K.next()){var d=t.value,v=x[d];try{this[d]=OUj.resolve(v)}catch(C){throw C;}}}catch(C){throw Error(C.message);
}}};var vcH;var StE=/\bclass\b/.test(function(){}.toString()),XJz=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var Lsj=function(p){this.wasDefined=!0;Array.isArray(p)||p instanceof Array?(this.JSC$11085_getImpl=p[0],this.JSC$11085_setImpl=p[1]):this.JSC$11085_getImpl=p};
_.l=Lsj.prototype;_.l.getWithPath=function(p){return SA(this.JSC$11085_getImpl(),p)};
_.l.setWithPath=function(p,x){var F=this;if(p.length)throw Error("lg");if(!this.JSC$11085_setImpl)throw Error("mg");qG(function(){F.JSC$11085_setImpl(x)})};
_.l.notifyPath=function(){throw Error("ng");};
_.l.notifySplices=function(){throw Error("og");};
_.l.getChangeRecordSignal=function(p,x){var F=this;if(p.length)throw Error("pg");return function(){var N=F.getWithPath(p);return{path:x!=null?x:"",base:N,value:N}}};
_.l.getSplicesSignal=function(){throw Error("qg");};
_.l.getPathMutationSignal=function(){throw Error("rg");};
_.l.pop=function(){throw Error("sg");};
_.l.push=function(){throw Error("tg");};
_.l.splice=function(){throw Error("ug");};
_.l.unshift=function(){throw Error("vg");};var Sj=function(p){var x=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(p)||p instanceof Array?(this.JSC$11090_getImpl=p[0],this.JSC$11090_setImpl=p[1]):this.JSC$11090_getImpl=p;this.wasDefined=!1;NG(function(){x.wasDefined=x.JSC$11090_getImpl()!==void 0})};
Sj.prototype.getWithPath=function(p){return SA(this.JSC$11090_getImpl(),p)};
Sj.prototype.setWithPath=function(p,x){var F=this;if(p[p.length-1]!=="*"&&p[p.length-1]!=="splices"){if(p.length===0){if(!this.JSC$11090_setImpl)throw Error("wg");this.wasDefined||(this.wasDefined=x!==void 0);qG(function(){F.JSC$11090_setImpl(x)})}else{for(var N=NG(function(){return F.getWithPath([])}),h=0;h<p.length-1;h++){if(!N)return;
N=N[p[h]]}h=p[p.length-1];N&&(N[h]=x);this.wasDefined||(this.wasDefined=p.length>1||x!==void 0)}Pcl(this,p,{pathComponents:p,value:x})}};
Sj.prototype.notifyPath=function(p,x){p.length===0?x&&this.setWithPath(p,x.value):Pcl(this,p,{pathComponents:p,value:x==null?void 0:x.value,fallbackWhenUndefined:x==null?void 0:x.value})};
var Pcl=function(p,x,F,N){if(p.setMutationSignal){var h=++p.mutationIndex,c=[p.observedPath],M=p.observedPath,f;x.length===0&&(f=M);for(var K=0;K<x.length;K++){var t=M.subPaths[x[K]];if(!t)break;c.push(t);M=t;K===x.length-1&&(f=t)}for(x=!1;c.length;)M=c.shift(),M.data={index:h,mutation:F,spliceMutationIndex:N},x||(x=M===f),x&&c.push.apply(c,_.se(Object.values(M.subPaths)));qG(function(){p.setMutationSignal(h)})}};
Sj.prototype.notifySplices=function(p,x){var F=this,N=NG(function(){return F.getWithPath(p)}),h=[].concat(_.se(p),["splices"]);
Pcl(this,h,{pathComponents:h,value:{indexSplices:x}});if(N==null?0:N.length)x=this.mutationIndex,h=[].concat(_.se(p),["length"]),Pcl(this,h,{pathComponents:h,value:N.length},x)};
var TEB=function(p,x,F,N,h,c){p.notifySplices(F,[{index:N,addedCount:h,removed:c,object:x,type:"splice"}])},BEm=function(p,x){p=p.observedPath;
for(var F=0;F<x.length;F++){var N=x[F],h=p.subPaths[N];h||(h={pathComponents:x.slice(0,F+1),subPaths:{}},p.subPaths[N]=h);p=h}},k8I=function(p,x,F){BEm(p,x);
if(!p.getMutationSignal){var N=_.a(_.hu(p.mutationIndex,void 0,"QMrAub"));p.getMutationSignal=N.next().value;p.setMutationSignal=N.next().value}var h=p.getMutationSignal;return _.Kn(function(){h();return F(Rdm(p,x))},void 0,"ce54qf")};
Sj.prototype.getChangeRecordSignal=function(p,x){var F=this,N=this.mutationIndex,h;return k8I(this,p,function(c){if(c&&c.index>N){var M=c.mutation;N=c.index;h=void 0}c=NG(function(){return F.getWithPath(p)});
if(M){var f=M.pathComponents[M.pathComponents.length-1],K=[].concat(_.se(M.pathComponents));if(f==="splices"||f==="length")return{base:c,path:(x?[x].concat(_.se(K)):K).join("."),value:M.value};var t=p.length>K.length?p:K,d;return{base:c!=null?c:M.fallbackWhenUndefined,path:(x?[x].concat(_.se(t)):t).join("."),value:(d=NG(function(){return F.getWithPath(t)}))!=null?d:M.fallbackWhenUndefined}}h||(h={base:c,
path:(x?[x].concat(_.se(p)):p).join("."),value:c});return h})};
Sj.prototype.getSplicesSignal=function(p){var x=this.mutationIndex,F;return k8I(this,p,function(N){if(N&&N.index>x&&N.spliceMutationIndex!==x){var h=N.mutation;x=N.index;F=void 0}return h&&h.pathComponents[h.pathComponents.length-1]==="splices"?F=N=h.value:F})};
Sj.prototype.getPathMutationSignal=function(p){var x=this;BEm(this,p);if(!this.getMutationSignal){var F=_.a(_.hu(this.mutationIndex,void 0,"tBKh7d"));this.getMutationSignal=F.next().value;this.setMutationSignal=F.next().value}var N=this.getMutationSignal,h=this.mutationIndex,c;return _.Kn(function(){N();var M=Rdm(x,p);if(M&&M.index>h&&M.mutation&&zbk(M.mutation.pathComponents,p)){var f=M.mutation;h=M.index}if(!c||h!==c.index){var K,t;M=(t=NG(function(){return x.getWithPath(p)}))!=null?t:(K=f)==null?
void 0:K.fallbackWhenUndefined;
c={index:h,value:M}}return c},void 0,"XXmDAf")};
var Rdm=function(p,x){p=p.observedPath;x=_.a(x);for(var F=x.next();!F.done;F=x.next())p=p.subPaths[F.value];return p.data};
Sj.prototype.pop=function(p){var x=this,F=NG(function(){return x.getWithPath(p)});
if(!(F instanceof Array))throw Error("xg");var N=F.length>0,h=F.pop();N&&TEB(this,F,p,F.length,0,[h]);return h};
Sj.prototype.push=function(p){var x=_.we.apply(1,arguments),F=this,N=NG(function(){return F.getWithPath(p)});
if(!(N instanceof Array))throw Error("yg");var h=N.length,c=N.push.apply(N,_.se(x));x.length&&TEB(this,N,p,h,x.length,[]);return c};
Sj.prototype.splice=function(p,x,F){var N=_.we.apply(3,arguments),h=this,c=NG(function(){return h.getWithPath(p)});
if(!(c instanceof Array))throw Error("zg");x<0?x=c.length-Math.floor(-x):x&&(x=Math.floor(x));var M=c.splice.apply(c,[x,F].concat(_.se(N)));(N.length||M.length)&&TEB(this,c,p,x,N.length,M);return M};
Sj.prototype.unshift=function(p){var x=_.we.apply(1,arguments),F=this,N=NG(function(){return F.getWithPath(p)});
if(!(N instanceof Array))throw Error("Ag");var h=N.unshift.apply(N,_.se(x));x.length&&TEB(this,N,p,0,x.length,[]);return h};var Uaj=!0,iUZ=!1,m9d=!1,IYC=!1,rm=!1,$al=0;IYC=!1;$al=0;Uaj=!0;rm=iUZ=m9d=!1;var EB=function(p,x,F){this.model=p;this.unknownSignalResolver=x;this.options=F;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];x=_.a(GJm());p=x.next().value;x=x.next().value;this.owner=p;this.disposeImpl=x};
EB.prototype.dispose=function(){if(!this.isDisposed){for(var p=_.a(this.childSignalProxies),x=p.next();!x.done;x=p.next())x.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var edn=function(p,x){p=PS(p.owner);try{x()}finally{BS(p)}},pKl=function(p,x){var F={stack:[],
error:void 0,hasError:!1};try{_.WT(F,_.RG(p.owner)),x()}catch(N){F.error=N,F.hasError=!0}finally{_.HT(F)}};
EB.prototype.effect=function(p){_.S("web_poly_si_remove_using")?edn(this,function(){_.SO(p)}):pKl(this,function(){_.SO(p)})};
var x9J=function(p,x){p.options!=null||(p.options={});var F;(F=p.options).immutableProps!=null||(F.immutableProps=new Set);p.options.immutableProps.add(x)},HUz=function(p,x){x=""+x;
var F;if((F=p.model.__signalCache)==null?0:F.has(x))F=p.model.__signalCache.get(x),Array.isArray(F)&&x9J(p,x);var N,h,c;return(c=(N=p.options)==null?void 0:(h=N.immutableProps)==null?void 0:h.has(x))!=null?c:!1},F8D=function(p,x){var F;
p.unknownSignalResolver&&(F=p.unknownSignalResolver(x));var N,h;((N=p.options)==null?0:(h=N.immutableProps)==null?0:h.has(x))?F!=null||(F=new Lsj(_.hu(p.model[x],void 0,"SYknZd"))):F!=null||(F=new Sj(_.hu(p.model[x],void 0,"GCgq1e")));var c=p.model.hostElement;Object.defineProperty(p.model,x,{get:function(){hb6(c,x);return F.getWithPath([])},
set:function(M){f5(c,x);p.setWithPath([x],M)},
configurable:!0});return F},EQ=function(p,x){x=""+x;
var F=p.signalCache[x];if(F!==void 0)return F;F=!1;var N;if((N=p.model.__signalCache)==null?0:N.has(x))if(F=p.model.__signalCache.get(x),Array.isArray(F))F=!0,x9J(p,x);else return p.signalCache[x]=p.model.__signalCache.get(x).signal,p.signalCache[x];var h,c;N=(c=(h=p.options)==null?void 0:h.reactivityMode)!=null?c:0;var M,f;if(!((M=p.options)==null?0:(f=M.reactiveProps)==null?0:f.has(x))&&!F&&N===1)throw Error("Bg`"+x);h=F?NyK(p,x):F8D(p,x);return p.signalCache[x]=h},NyK=function(p,x){var F=Object.getOwnPropertyDescriptor(p.model.constructor.prototype,
x),N=function(){return p.model[x]};
return new Lsj(F&&F.get&&!F.set?N:[N,function(h){p.model[x]=h}])};
EB.prototype.getWithPath=function(p){var x=_.a(p);p=x.next().value;x=oG(x);hb6(this.model.hostElement,""+p);return EQ(this,p).getWithPath(x)};
EB.prototype.setWithPath=function(p,x){if(p.length){f5(this.model.hostElement,p.join("."));var F=_.a(p);p=F.next().value;F=oG(F);EQ(this,p).setWithPath(F,x)}};
EB.prototype.getPathMutationSignal=function(p){var x=_.a(p);p=x.next().value;x=oG(x);return EQ(this,p).getPathMutationSignal(x)};
EB.prototype.notifyPath=function(p,x){var F=_.a(p);p=F.next().value;F=oG(F);EQ(this,p).notifyPath(F,x)};
var hHn=function(p,x){if(x.type==="literal")return function(){return{rootWasDefined:!0,value:x.value}};
var F=C5(x.path),N=_.a(F),h=N.next().value;N=oG(N);var c,M;if(x.type==="path"&&(F.length===1||((c=p.options)==null?0:(M=c.immutableProps)==null?0:M.has(h))))return function(){var v=p.getWithPath(F.slice(0,1)),C=SA(v,F.slice(1));v=v!==void 0;rm&&(v=EQ(p,F[0]).wasDefined);return{rootWasDefined:v,value:C}};
var f=EQ(p,h);if(x.type==="path"){var K=f.getPathMutationSignal(N);return function(){var v=rm?f.wasDefined:QZ(p.owner,function(){return f.getWithPath([])})!==void 0;
var C,X=(C=K())==null?void 0:C.value;return{rootWasDefined:v,value:X}}}if(x.type==="splices"){var t=f.getSplicesSignal(N);
return function(){var v=t();return{rootWasDefined:rm?f.wasDefined:v!==void 0,value:v}}}var d=f.getChangeRecordSignal(N,""+h);
return function(){var v=d();return{rootWasDefined:rm?f.wasDefined:v!==void 0,value:v}}},u$k=function(p,x,F){var N=F.map(function(f){return hHn(p,f)}),h=F.length===0,c=[],M=F.length!==1||F[0].type!=="path"?!1:!0;
p.effect(function(){for(var f=N.length,K=[],t=!!c.length,d=0;d<f;d++){var v=N[d](),C=v.rootWasDefined;v=v.value;h||(h=C);K[d]=v;M&&(K[d+f]=t?c[d]:K[d],c[d]=v)}h&&QZ(p.owner,function(){return void x.apply(null,_.se(K))})})},sKz=function(p,x,F,N,h){var c=EQ(p,x);
h!==void 0&&c.setWithPath([],h);u$k(p,function(){var M=_.we.apply(0,arguments);f5(p.model.hostElement,x,!0);c.setWithPath([],F.apply(null,_.se(M)))},N)};
EB.prototype.arrayPush=function(p){var x=_.we.apply(1,arguments),F=_.a(p),N=F.next().value;F=oG(F);N=EQ(this,N);return N.push.apply(N,[F].concat(_.se(x)))};
EB.prototype.arraySplice=function(p,x,F){var N=_.we.apply(3,arguments),h=_.a(p),c=h.next().value;h=oG(h);c=EQ(this,c);return c.splice.apply(c,[h,x,F].concat(_.se(N)))};
EB.prototype.arrayUnshift=function(p){var x=_.we.apply(1,arguments),F=_.a(p),N=F.next().value;F=oG(F);N=EQ(this,N);return N.unshift.apply(N,[F].concat(_.se(x)))};
EB.prototype.notifySplices=function(p,x){var F=_.a(p);p=F.next().value;F=oG(F);EQ(this,p).notifySplices(F,x)};var OSM=/([^\s]+?)\(([\s\S]*)\)/,HSJ=/\.([^.]+)$/,LL$=/\\,/g,Vhp=/&comma;/g,WLk=/\\(.)/g,jKZ=[],m56={"*":"wildcard",splices:"splices"};var ebk=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"),U5r=/[A-Z]/,lgm=["class","hidden","id","on-dom-change"],xaz=new Set([].concat(_.se(lgm),
["if","notify-dom-change","restamp"])),YYk=new Set([].concat(_.se(lgm),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),wyw=new Set(["restamp"]);var o26=Symbol(),RdB=window;var x96=window;var MYE=0,hHH=0,Xf=[],ag$=0,NyZ=!1,cjd=document.createTextNode("");(new window.MutationObserver(lgB)).observe(cjd,{characterData:!0});var Qg=new Map,go=0,cjB=function(p){this.mappedHandleId=p},fgr=function(p,x,F,N){this.mappedHandleId=p;
var h=this;this.mappedHandleId=p;this.callback=x;this.waitTime=F;this.schedulerPriority=N;this.handleId=_.E0.addJob(function(){h.callback();Qg.delete(h.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.E(fgr,cjB);fgr.prototype.cancel=function(){_.E0.cancelJob(this.handleId);Qg.delete(this.mappedHandleId)};
var K8M=function(p,x){this.mappedHandleId=p;var F=this;this.mappedHandleId=p;this.callback=x;this.handleId=D9M(function(){F.callback();Qg.delete(F.mappedHandleId)})};
_.E(K8M,cjB);K8M.prototype.cancel=function(){var p=this.handleId-hHH;p<0||Xf.length<=p||(Xf[p]=null);Qg.delete(this.mappedHandleId)};var d9p=function(){};
d9p.prototype.cancel=function(){this.jobHandle!==void 0&&(q2J(this.jobHandle),this.jobHandle=void 0)};
d9p.prototype.run=function(p,x,F){var N=this;this.cancel();this.callback=p;this.jobHandle=_.zD(function(){p();N.callback=void 0},x,F)};
d9p.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var ZB6=new WeakMap;var agB=R$(function(p){for(var x=p,F=0;F<3;F++)x=Object.getPrototypeOf(x);delete x.prototype.connectedCallback;var N=function(){return p.apply(this,arguments)||this};
_.E(N,p);N.prototype._attachDom=function(h){if(!h)return null;var c=(0,_.$s)(this.hostElement);c.attachShadow({mode:"open",shadyUpgradeFragment:h});c.shadowRoot.appendChild(h);return c.shadowRoot};
N.prototype._takeAttributes=function(){for(var h=this.hostElement.attributes,c=0;c<h.length;c++){var M=h[c],f=void 0,K=void 0;(K=(f=this).__attributeReaction)==null||K.call(f,M.name,null,M.value)}};
N.prototype._readyClients=function(){p.prototype._readyClients.call(this);this.root=this};
N.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);p.prototype.connectedCallback.call(this)};
_.R8.Object.defineProperties(N,{template:{configurable:!0,enumerable:!0,get:function(){return N.prototype._template}}});
return N}),MY6=R$(function(p){var x=function(){return p.apply(this,arguments)||this};
_.E(x,p);x.prototype.created=function(){if(this.__notifyEffects)for(var F=_.a(Object.values(this.__notifyEffects)),N=F.next();!N.done;N=F.next()){N=_.a(N.value);for(var h=N.next();!h.done;h=N.next())h.value.fn=S2B}if(this.__reflectEffects)for(F=_.a(Object.values(this.__reflectEffects)),N=F.next();!N.done;N=F.next())for(N=_.a(N.value),h=N.next();!h.done;h=N.next())h.value.fn=rj6};
x.prototype._addEventListenerToNode=function(F,N,h){F=n5(F);Qd(F,N,h)||p.prototype._addEventListenerToNode.call(this,F,N,h)};
x.prototype._removeEventListenerFromNode=function(F,N,h){F=n5(F);zc(F,N,h)||p.prototype._removeEventListenerFromNode.call(this,F,N,h)};
x.prototype._propertiesChanged=function(F,N,h){if(this.__dataToNotify&&this.__notifyEffects)for(var c=_.a(Object.keys(this.__dataToNotify)),M=c.next();!M.done;M=c.next()){M=M.value;var f=Coz(M);this.__notifyEffects[f]||delete this.__dataToNotify[M]}else this.__dataToNotify=null;p.prototype._propertiesChanged.call(this,F,N,h)};
x.prototype.fire=function(F,N,h){N=N===void 0?{}:N;var c;return _.hG(n5((c=h==null?void 0:h.node)!=null?c:this),F,N,h)};
x.prototype._ensureAttribute=function(F,N){var h=n5(this);h.hasAttribute(F)||ro(h,N,F)};
x.prototype.isLightDescendant=function(F){var N=n5(this);return n5(N)!==F&&_.n(N).contains(F)&&_.n(N).getRootNode()===_.n(F).getRootNode()};
return x});
_.SC.ready=function(){var p;((p=this.hostElement)!=null?p:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var x;((x=this.hostElement)!=null?x:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.n7._subscribeIronResize=function(p){var x;((x=p.hostElement)!=null?x:p).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.n7._unsubscribeIronResize=function(p){var x;((x=p.hostElement)!=null?x:p).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var g1Z=[Array,Boolean,Date,Number,Object,String],b8=function(p,x,F,N){this.polySiInfo=p;this.polySiParams=x;this.polySiContext=F;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;N||this instanceof HTMLElement&&(N=this);if(!N)throw Error("Ig");this.allowedProps=x.allowedProps;this.hostElement=N;this.is=p.is;this.upgradeDisabled=!!x.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");p=new Set(x.reactiveSchemas.filter(function(h){return h.type!==
"observe"}).map(function(h){return h.propertyKey}));
this.signalProxy=new EB(this,void 0,{reactiveProps:p,reactivityMode:x.reactivityMode});this.__dataHasAccessor={};x=_.a(x.reactiveSchemas);for(p=x.next();!p.done;p=x.next())p=p.value,p.type==="signal"&&(this.__dataHasAccessor[p.propertyKey]=!0);this.upgradeDisabled||D9v(this)};
b8.prototype.getExtraMethodsToForward=function(){return[]};
var D9v=function(p){p.polySiContext.didRegister||(p.registered(),p.polySiContext.didRegister=!0);p.polySiContext.finalizedTemplate||(p.polySiContext.finalizedTemplate={},p.polySiParams.templateGetter&&(p.polySiContext.finalizedTemplate.processedTemplate=F8p(p.polySiParams.templateGetter,p.polySiParams.is)));fgb(p);var x=p.hostElement;x.loggingStatus!=null||(x.loggingStatus={});x.loggingStatus.isInitializing=!0;NG(function(){return void p.created()});
x.loggingStatus.isInitializing=!1;p.isPolySiElementConnected&&K8v(p)},K8v=function(p){p.didCallReady||(NG(function(){return void p.ready()}),p.didCallReady=!0);
p.isAttached=!0;p.attached()};
_.l=b8.prototype;_.l.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||K8v(this)};
_.l.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.l.attributeChangedCallback=function(p,x,F){if(this.upgradeDisabled)p==="disable-upgrade"&&F===null&&(this.upgradeDisabled=!1,D9v(this));else if(x!==F){var N=_.t8(p),h=this.polySiContext.typesForSignals[N];if(h){switch(h){case Object:try{var c=JSON.parse(F)}catch(f){c=F}break;case Array:try{c=JSON.parse(F)}catch(f){c=null}break;case Date:c=isNaN(F)?String(F):Number(F);c=new Date(c);break;case Boolean:c=F!==null;break;case Number:c=Number(F);break;default:c=F}this[N]=c}N=_.a(this.polySiParams.behaviors);
for(h=N.next();!h.done;h=N.next())c=void 0,(c=h.value.attributeChanged)==null||c.call(this,p,x,F);var M;(M=this.attributeChanged)==null||M.call(this,p,x,F)}};
_.l.attributeChangedCallbackWrapper=function(p,x,F){this.attributeChangedCallback(p,x,F)};
_.l.setPropertiesFromInitialAttributeValues=function(){for(var p=0;p<this.hostElement.attributes.length;p++){var x=this.hostElement.attributes[p];(x.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(x.name))&&this.attributeChangedCallback(x.name,null,x.value)}};
_.l.created=function(){this.provide=this.polySiParams.provide;var p;(p=this.initializeInjection)==null||p.call(this);p=_.a(this.polySiParams.reactiveSchemas);for(var x=p.next();!x.done;x=p.next())x=x.value,x.type==="signal"&&(this.mutablePropNames.add(x.propertyKey),EQ(this.signalProxy,x.propertyKey));XK$(this,this.polySiInfo,this.polySiParams.behaviors);p=_.a(this.polySiParams.reactiveSchemas);for(x=p.next();!x.done;x=p.next())x=x.value,x.type==="signal"&&x.value!==void 0&&(this.signalProxy.model[x.propertyKey]=
typeof x.value==="function"?x.value.call(this):x.value);if(this.polySiParams.signalProperties)for(p=_.a(this.polySiParams.signalProperties),x=p.next();!x.done;x=p.next()){x=x.value;var F=void 0;((F=this.__signalCache)==null?0:F.has(x))||(this.signalProxy.model[x]=void 0)}IYC||q2k(this);E16(this);p=_.a(this.polySiParams.behaviors);for(x=p.next();!x.done;x=p.next())F=void 0,(F=x.value.created)==null||F.call(this);var N;(N=this.polySiInfo.created)==null||N.call(this)};
_.l.registered=function(){var p=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var x=Object.getPrototypeOf(this);x.addReactiveSchema=function(f){p.polySiParams.reactiveSchemas.push(f)};
for(var F=_.a(this.polySiParams.behaviors),N=F.next();!N.done;N=F.next()){var h=void 0;(h=N.value.beforeRegister)==null||h.call(x)}var c;(c=this.polySiInfo.beforeRegister)==null||c.call(x);x.addReactiveSchema=zHz;F=_.a(this.polySiParams.behaviors);for(N=F.next();!N.done;N=F.next())h=void 0,(h=N.value.registered)==null||h.call(x);var M;(M=this.polySiInfo.registered)==null||M.call(x)};
_.l.ready=function(){var p;(p=this.beforeReady)==null||p.call(this);IYC&&q2k(this);var x;if(p=(x=this.polySiContext.finalizedTemplate)==null?void 0:x.processedTemplate){p=pKk(p.template,p.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:p.hasInsertionPoint,thisCtx:this});x=p.nodesById;p=p.root;var F=(0,_.$s)(this.hostElement);if(!F.attachShadow)throw Error("Bd");F.shadowRoot||(F.attachShadow({mode:"open",shadyUpgradeFragment:p}),F.shadowRoot.appendChild(p));this.root=F.shadowRoot;
this.$=x}ZBJ(this);x=_.a(this.polySiParams.behaviors);for(p=x.next();!p.done;p=x.next())F=void 0,(F=p.value.ready)==null||F.call(this);var N;(N=this.polySiInfo.ready)==null||N.call(this)};
_.l.attached=function(){for(var p=_.a(this.polySiParams.behaviors),x=p.next();!x.done;x=p.next()){var F=void 0;(F=x.value.attached)==null||F.call(this)}var N;(N=this.polySiInfo.attached)==null||N.call(this)};
_.l.detached=function(){for(var p=_.a(this.polySiParams.behaviors),x=p.next();!x.done;x=p.next()){var F=void 0;(F=x.value.detached)==null||F.call(this)}var N;(N=this.polySiInfo.detached)==null||N.call(this)};
var fgb=function(p){for(var x=_.a(p.polySiParams.behaviors),F=x.next();!F.done;F=x.next())if(F=F.value,F.listeners)for(var N in F.listeners)edH(p,p.hostElement,N,F.listeners[N]);if(p.polySiInfo.listeners)for(var h in p.polySiInfo.listeners)edH(p,p.hostElement,h,p.polySiInfo.listeners[h])},edH=function(p,x,F,N,h){p=QKd(p,N,h);
Qd(x,F,p)||x.addEventListener(F,p);return p},q2k=function(p){for(var x=_.a(p.polySiParams.reactiveSchemas),F=x.next();!F.done;F=x.next())F=F.value,F.type==="compute"||F.type==="computeWithMethod"?nc6(p.signalProxy,F,p):F.type==="redux"?AKk(p.signalProxy,F,p.store):F.type==="signal"&&F.readOnly&&bSH(p.signalProxy,F)},ZBJ=function(p){for(var x=_.a(p.polySiParams.reactiveSchemas),F=x.next(),N={};!F.done;N={schema$jscomp$12:void 0},F=x.next())N.schema$jscomp$12=F.value,N.schema$jscomp$12.type==="notify"?
Ytk(p.signalProxy,N.schema$jscomp$12,p.hostElement):N.schema$jscomp$12.type==="observe"?wJd(p.signalProxy,N.schema$jscomp$12,p):N.schema$jscomp$12.type==="reflect"&&p.signalProxy.effect(function(c){return function(){var M=p.signalProxy.getWithPath([c.schema$jscomp$12.propertyKey]);
T4$(p.hostElement,c.schema$jscomp$12.propertyKey,M)}}(N));
if(p.reflectedAttributes)for(x=_.a(Object.entries(p.reflectedAttributes)),N=x.next(),F={};!N.done;F={key$jscomp$867:void 0,value$jscomp$8537:void 0},N=x.next()){var h=_.a(N.value);N=h.next().value;h=h.next().value;F.key$jscomp$867=N;F.value$jscomp$8537=h;p.signalProxy.effect(function(c){return function(){T4$(p.hostElement,c.key$jscomp$867,(0,c.value$jscomp$8537)())}}(F))}};
_.l=b8.prototype;_.l._setPendingProperty=function(p,x){this.set(p,x);return!1};
_.l._enableProperties=function(){};
_.l._setPendingPropertyOrPath=function(p,x){this.notifyPath(p,x);return!1};
_.l._addPropertyEffect=function(){};
_.l._stampTemplate=function(){throw Error("Jg");};
_.l.fire=function(p,x,F){x=x===void 0?{}:x;F=F===void 0?{}:F;var N,h,c={bubbles:(N=F.bubbles)!=null?N:!0,cancelable:!!F.cancelable,composed:(h=F.composed)!=null?h:!0},M;return _.hG(s1k((M=F.node)!=null?M:this.hostElement),p,x,c)};
_.l.get=function(p,x){var F=C5(p);return x?SA(x,F):p==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(F)};
_.l.linkPaths=function(){};
_.l.listen=function(p,x,F){p=s1k(p);this.boundListeners!=null||(this.boundListeners=new WeakMap);var N=this.boundListeners.get(p);N||(N={},this.boundListeners.set(p,N));var h=x+F;N[h]||(N[h]=edH(this,p,x,F))};
_.l.notifyPath=function(p,x){this.signalProxy.notifyPath(C5(p),arguments.length===2?{value:x}:void 0)};
_.l.canNotifyPath=function(p){var x,F;return this.mutablePropNames.has(p)&&!((x=this.signalProxy.options)==null?0:(F=x.immutableProps)==null?0:F.has(p))};
_.l.notifySplices=function(p,x){this.signalProxy.notifySplices(C5(p),x)};
_.l.pop=function(p){var x=this.signalProxy;p=C5(p);var F=_.a(p);p=F.next().value;F=oG(F);return EQ(x,p).pop(F)};
_.l.push=function(p){var x=_.we.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[C5(p)].concat(_.se(x)))};
_.l.set=function(p,x,F){if(F)throw Error("Kg");p==="hidden"?this.hostElement.hidden=!!x:this.signalProxy.setWithPath(C5(p),x)};
_.l.setProperties=function(p){p=_.a(Object.entries(p));for(var x=p.next();!x.done;x=p.next()){var F=_.a(x.value);x=F.next().value;F=F.next().value;this[x]=F}};
_.l.splice=function(p,x,F){var N=_.we.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[C5(p),x,F].concat(_.se(N)))};
_.l.unlinkPaths=function(){};
_.l.unlisten=function(p,x,F){p=s1k(p);if(this.boundListeners){var N=this.boundListeners.get(p);if(N){F=x+F;var h=N[F];h&&(zc(p,x,h)||p.removeEventListener(x,h),delete N[F])}}};
_.l.unshift=function(p){var x=_.we.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[C5(p)].concat(_.se(x)))};
_.R8.Object.defineProperties(b8.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 HBM=[Array,Boolean,Date,Number,Object,String];var OBE=!1;var XA=function(){var p=HTMLElement.apply(this,arguments)||this;p.restamp=!1;p.notifyDomChange=!1;p.JSC$11202_didCallConnected=!1;p.JSC$11202_renderDebouncer=null;p.disableTemplateUpdateSignalImpl=AZ()?void 0:_.hu(!1,void 0,"bmozBd");var x;p.getDisableTemplateUpdate=(x=p.disableTemplateUpdateSignalImpl)==null?void 0:x[0];var F;p.setDisableTemplateUpdate=(F=p.disableTemplateUpdateSignalImpl)==null?void 0:F[1];return p};
_.E(XA,HTMLElement);var tYC=function(p){p.conditionSignalImpl!=null||(p.conditionSignalImpl=new Sj(_.hu(!1,void 0,"NYV5Rb")));return p.conditionSignalImpl};
_.l=XA.prototype;_.l.showHideChildren=function(p){d9Z(this,p,this.if)};
_.l.attributeChangedCallback=function(p,x,F){if(this.JSC$11202_didCallConnected)throw Error("Og`"+p);p==="notify-dom-change"?this.notifyDomChange=F!==null:p==="restamp"&&(this.restamp=F!==null)};
_.l.debounceRender=function(){this.JSC$11202_renderDebouncer=_.hc(this.JSC$11202_renderDebouncer,nN,this.JSC$11202_renderImpl.bind(this));_.l3(this.JSC$11202_renderDebouncer)};
_.l.disconnectedCallback=function(){var p=(0,_.$s)(this).parentNode;(!p||p.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in p&&!p.host)&&v1n(this)};
_.l.connectedCallback=function(){var p=this;this.JSC$11202_didCallConnected=!0;Uaj?j1z():this.style.display="none";this.parentSignalProxy.effect(function(){tYC(p).getWithPath([]);p.debounceRender()})};
_.l.render=function(){_.DQ()};
_.l.JSC$11202_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var p=this.if;if(p){a:{var x=(0,_.$s)(this).parentNode;if(this.hasInstance()){var F=this.instance.children;if((F==null?0:F.length)&&(0,_.$s)(this).previousSibling!==F[F.length-1])for(var N=0;N<F.length;N++)(0,_.$s)(x).insertBefore(F[N],this)}else{if(!x){x=!1;break a}JjB(this,x)}x=!0}if(!x)return}else this.restamp&&v1n(this);d9Z(this,!1,p);p&&CoC(this);iUZ&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.l.hasInstance=function(){return!!this.instance};
var JjB=function(p,x){var F=p.parentSignalProxy;if(AZ()){var N=_.a(_.hu(!0,void 0,"tGD1cf"));var h=N.next().value;N=N.next().value;F=p.parentSignalProxy}else{var c;var M=new EB((c=S2m(p))!=null?c:{},function(K){var t=EQ(p.parentSignalProxy,K).getChangeRecordSignal([]);K=_.hu(void 0,void 0,"dOaz1b");var d=new Sj(K);M.effect(function(){if(p.getDisableTemplateUpdate&&!p.getDisableTemplateUpdate()){var v=t();d.notifyPath(C5(v.path),{value:v.value})}});
return d});
p.parentSignalProxy.childSignalProxies.push(M);var f=F=M}c=pKk(p.templateInfo,p.templateInfo.nodeInfoList,F,{eventListenerHost:p.eventListenerHost,hasInsertionPoint:p.templateInfo.hasInsertionPoint,thisCtx:p.eventListenerHost,enabledSignal:AZ()?h:void 0,scope:p.parentScope,getModel:function(){return p.parentScope?L8$(F.owner,p.parentScope):S2m(p)}}).root;
p.instance={root:c,children:[],hidden:!1,signalProxy:f,getTemplateUpdatesEnabled:h,setTemplateUpdatesEnabled:N};f=_.a(c.childNodes);for(h=f.next();!h.done;h=f.next())p.instance.children.push(h.value);(0,_.$s)(x).insertBefore(p.instance.root,p)},S2m=function(p){if((p=p.parentSignalProxy.model)&&!p.hostElement){var x={},F;
for(F in p)p.hasOwnProperty(F)&&(x[F]=p[F]);return x}},v1n=function(p){if(p.instance){var x=p.instance.children;
if(x.length){var F=(0,_.$s)(x[0]).parentNode;if(F){F=(0,_.$s)(F);for(var N=0;N<x.length;N++)F.removeChild(x[N])}}AZ()?p.instance.setTemplateUpdatesEnabled(!1):p.instance.signalProxy.dispose();p.instance=void 0}},d9Z=function(p,x,F){x=x||!F;
p.instance&&p.instance.hidden!==x&&(p.instance.hidden=x,o16(x,p.instance.children))},CoC=function(p){if(AZ()){var x=p.instance;
x&&QZ(p.parentSignalProxy.owner,function(){return!x.getTemplateUpdatesEnabled()})&&x.setTemplateUpdatesEnabled(!0)}else p.setDisableTemplateUpdate(!1)};
_.R8.Object.defineProperties(XA.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var p=this;return QZ(this.parentSignalProxy.owner,function(){return tYC(p).getWithPath([])})},
set:function(p){p||(AZ()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));tYC(this).setWithPath([],!!p)}}});
_.R8.Object.defineProperties(XA,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",XA);var rjJ=[],gm=function(){var p=HTMLElement.apply(this,arguments)||this;p.as="item";p.indexAs="index";p.itemsIndexAs="itemsIndex";p.targetFramerate=20;p.notifyDomChange=!1;p.isDetached=!1;p.JSC$11209_renderDebouncer=null;p.instances=[];p.chunkingId=null;p.chunkCount=null;p.shouldMeasureChunk=!1;p.shouldContinueChunking=!1;p.renderStartTime=null;p.JSC$11209_didCallConnected=!1;return p};
_.E(gm,HTMLElement);var E1J=function(p){p.itemSignalImpl!=null||(p.itemSignalImpl=new Sj(_.hu(rjJ,void 0,"uvlPIb")));return p.itemSignalImpl},XKB=function(p,x){Array.isArray(x)||(x=rjJ);
E1J(p).setWithPath([],x)};
_.l=gm.prototype;_.l.showHideChildren=function(p){for(var x=_.a(this.instances),F=x.next();!F.done;F=x.next())o16(p,F.value.children)};
_.l.notifyPath=function(p,x){p=C5(p);p[0]==="items"&&(p.length===1?XKB(this,x):E1J(this).setWithPath(p.slice(1),x))};
_.l.canNotifyPath=function(p){return p==="items"};
_.l.attributeChangedCallback=function(p,x,F){if(this.JSC$11209_didCallConnected)throw Error("Pg`"+p);p==="as"?this.as=F:p==="index-as"?this.indexAs=F:p==="items-index-as"?this.itemsIndexAs=F:p==="initial-count"?this.initialCount=Number(F):p==="notify-dom-change"?this.notifyDomChange=F!==null:p==="target-framerate"&&(this.targetFramerate=Number(F))};
_.l.disconnectedCallback=function(){this.isDetached=!0;for(var p=0;p<this.instances.length;p++)g1K(this,p);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.l.connectedCallback=function(){var p=this,x=E1J(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var h=x(),c=C5(h.path);if(c[0]===void 0||c[0]==="splices"||c[0]==="length")p.debounceRender();else{var M=c[0];if(M=p.instances[typeof M==="string"?Math.floor(Number(M)):M])M.type==="legacy"?(c=[p.as].concat(_.se(c.slice(1))),M.signalProxy.notifyPath(c,h)):(c=c.slice(1),M.itemSignal.notifyPath(c,h))}});
this.JSC$11209_didCallConnected=!0;Uaj?j1z():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var F=(0,_.$s)((0,_.$s)(this).parentNode),N=0;N<this.instances.length;N++)F.insertBefore(this.instances[N].root,this);this.chunkingId&&this.render()}};
_.l.debounceRender=function(){this.JSC$11209_renderDebouncer=_.hc(this.JSC$11209_renderDebouncer,nN,this.JSC$11209_renderImpl.bind(this));_.l3(this.JSC$11209_renderDebouncer)};
_.l.render=function(){this.debounceRender();_.DQ()};
_.l.JSC$11209_renderImpl=function(){var p=this,x=this.items,F=Q1v(this,x.length);zHC(this,x,F);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){p.chunkingId=null;if(p.shouldMeasureChunk){var N=performance.now()-p.renderStartTime;p.chunkCount=Math.round(Math.ceil(1E3/p.targetFramerate)/N*p.chunkCount)||1}p.shouldContinueChunking&&p.debounceRender()}));
iUZ&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var Q1v=function(p,x){var F=x,N=p.instances.length;if(p.initialCount){if(p.chunkCount){var h=Math.min(Math.max(x-N,0),p.chunkCount);F=Math.min(N+h,x)}else F=Math.min(x,p.initialCount),h=Math.max(F-N,0),p.chunkCount=h||1;p.shouldMeasureChunk=h===p.chunkCount;p.shouldContinueChunking=F<x;p.renderStartTime=performance.now()}return F},zHC=function(p,x,F){for(var N=0;N<F;N++){var h=p.instances[N],c=x[N];
h?h.type==="legacy"?(h.signalProxy.setWithPath([p.as],c),h.signalProxy.setWithPath([p.indexAs],N)):(h.itemSignal.setWithPath([],c),h.setIndex(N)):s1l(p,c,N)}for(x=p.instances.length-1;x>=N;x--)F=p,h=x,g1K(F,h),F=_.a(F.instances.splice(h,1)).next().value,F.type==="legacy"?F.signalProxy.dispose():F.setDisabled()},g1K=function(p,x){p=p.instances[x];
x=(0,_.$s)(p.root);for(var F=0;F<p.children.length;F++)x.appendChild(p.children[F])},s1l=function(p,x,F){var N={};
N=Object.assign({},n1b(p),(N[p.as]=x,N[p.indexAs]=F,N[p.itemsIndexAs]=F,N));if(_.S("dom_repeat_use_ambient_signals")||_.S("creator_dom_repeat_use_ambient_signals")){x=new Sj(_.hu(x,void 0,"g83Pb"));var h=_.a(_.hu(F,void 0,"tQRdod"));N=h.next().value;h=h.next().value;var c=_.a(Pow());var M=c.next().value,f=c.next().value;c={};var K={parentScope:p.parentScope,signals:(c[p.as]={type:"mutable",signal:x},c[p.indexAs]={type:"signal",getter:N},c[p.itemsIndexAs]={type:"signal",getter:N},c)};c=pKk(p.templateInfo,
p.templateInfo.nodeInfoList,p.parentSignalProxy,{eventListenerHost:p.eventListenerHost,getModel:function(){return L8$(p.parentSignalProxy.owner,K)},
hasInsertionPoint:p.templateInfo.hasInsertionPoint,thisCtx:p.eventListenerHost,methodInvocationRequirement:$al,enabledSignal:function(){return(p.stampingEnabled===void 0||p.stampingEnabled())&&M()},
scope:K}).root;x={type:"ambientSignal",root:c,children:[],itemSignal:x,getIndex:N,setIndex:h,getEnabled:M,setDisabled:f}}else{var t=new EB(N,function(d){if(d!==p.as&&d!==p.indexAs){if(d===p.itemsIndexAs)return EQ(t,p.indexAs);var v=EQ(p.parentSignalProxy,d).getChangeRecordSignal([]);d=_.hu(void 0,void 0,"UobVm");var C=new Sj(d);t.effect(function(){var X=v();C.notifyPath(C5(X.path),{value:X.value})});
return C}});
p.parentSignalProxy.childSignalProxies.push(t);c=pKk(p.templateInfo,p.templateInfo.nodeInfoList,t,{eventListenerHost:p.eventListenerHost,getModel:function(){var d={};return Object.assign({},n1b(p),(d[p.as]=t.model[p.as],d[p.indexAs]=t.model[p.indexAs],d[p.itemsIndexAs]=t.model[p.indexAs],d))},
hasInsertionPoint:p.templateInfo.hasInsertionPoint,thisCtx:p.eventListenerHost,methodInvocationRequirement:$al,enabledSignal:p.stampingEnabled}).root;x={type:"legacy",root:c,children:[],signalProxy:t}}N=_.a(c.childNodes);for(h=N.next();!h.done;h=N.next())x.children.push(h.value);N=(N=p.instances[F+1])?N.children[0]:p;(0,_.$s)((0,_.$s)(p).parentNode).insertBefore(x.root,N);p.instances[F]=x},n1b=function(p){if((p=p.parentSignalProxy.model)&&!p.hostElement){var x={},F;
for(F in p)p.hasOwnProperty(F)&&(x[F]=p[F]);return x}};
gm.prototype.itemForElement=function(p){var x=this,F=this.instances.find(function(N){return N.children.includes(p)});
if(F)return QZ(this.parentSignalProxy.owner,function(){return F.type==="legacy"?F.signalProxy.getWithPath([x.as]):F.itemSignal.getWithPath([])})};
gm.prototype.indexForElement=function(p){var x=this.instances.findIndex(function(F){return F.children.includes(p)});
return x>=0?x:void 0};
_.R8.Object.defineProperties(gm.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var p=this;return QZ(this.parentSignalProxy.owner,function(){return E1J(p).getWithPath([])})},
set:function(p){XKB(this,p)}},
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}}});
_.R8.Object.defineProperties(gm,{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",gm);var yjJ,bBB;_.Q_=new _.iE("STATE_STORE_TOKEN");yjJ=new _.iE("SELECT_TOKEN");bBB=new _.iE("DISPATCH_TOKEN");var iBH={getSelectFn:function(){var p;return(p=_.J().resolve(_.Bw(yjJ)))!=null?p:TyM},
getDispatchFn:function(){var p;return(p=_.J().resolve(_.Bw(bBB)))!=null?p:_.u8().dispatch.bind(_.u8())},
getAppStore:function(){return _.J().resolve(_.Q_)}},Byz,U9H=!1;var eHw=void 0;var Aj6=function(){};
Aj6.prototype.hasAttribute=function(p){if(p==="dir")return!1;if(p==="disable-upgrade"){var x,F;return(F=(x=this.hostElement)==null?void 0:x.hasAttribute("disable-upgrade"))!=null?F:!1}throw Error("Qg`"+p);};
Aj6.prototype.attributeChangedCallbackWrapper=function(p,x,F){if(p==="disable-upgrade"&&this.__isUpgradeDisabled&&F===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var N;((N=this.hostElement)!=null?N:this).isConnected&&this.connectedCallback()}else x===F||this.__isReflecting||this.attributeChangedCallback(p,x,F)};
Aj6.prototype.getExtraMethodsToForward=function(){for(var p=this,x=[],F=_.a(uyI),N=F.next(),h={};!N.done;h={tagName$jscomp$52:void 0,name$jscomp$533:void 0},N=F.next())h.name$jscomp$533=N.value,N=void 0,h.name$jscomp$533==="_setPendingProperty"?(h.tagName$jscomp$52=this.hostElement.tagName.toLowerCase(),N=function(c){return function(M,f,K){Dv(c.tagName$jscomp$52,M,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return p._setPendingProperty(M,f,K)}}(h)):N=function(c){return function(){return p[c.name$jscomp$533].apply(p,
_.se(_.we.apply(0,arguments)))}}(h),x.push([h.name$jscomp$533,
N]);return x};
for(var hsM=MY6(agB((0,_.CW)(Aj6))),MuJ=["disabled","disable-upgrade"],Y2n=(0,_.CW)(function(){}),wKJ=new Set(Object.getOwnPropertyNames(Y2n.prototype)),Z$z=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.se(wKJ))),fTp=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),uyI=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),GLZ=new Set([].concat(_.se(fTp),_.se(uyI),_.se(wKJ))),VYB=_.a(GLZ),W8l=VYB.next();!W8l.done;W8l=VYB.next())pJB.add(W8l.value);var qOm={created:function(){E16(this);this.initializeInjection()}};var Xd$=!1,L5=window.ShadyDOM,A2k=["appendChild","insertBefore","removeChild","replaceChild"],b$J=[Node];L5&&b$J.push(L5.Wrapper);var VuB,Wqd,oid={};var BT=new Set,PT="",O$m="";var TD,Rd=new Set;var i$H=new Set("context didCallReady is info params signalProxy".split(" ")),$rE="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),es6="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var HBv=Ks({entities:kRH}),m9B=new Tt(HBv);var o1J=function(){return _.hZ.apply(this,arguments)||this};
_.E(o1J,_.hZ);_.R8.Object.defineProperties(o1J.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return m9B}}});
var OB6=o1J;OB6=_.B([_.l8()],OB6);_.z2=[JA.prototype,OB6.prototype];_.sB={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var p=this,x={};setTimeout(function(){var F;return _.hG((F=p.hostElement)!=null?F:p,"yt-live-chat-add-tooltip-target",x)},0);
this.handler_=x.handler},
detached:function(){if(this.handler_){var p;this.handler_.removeElementFromSupportingTooltips((p=this.hostElement)!=null?p:this)}this.handler_=null}}};_.pr=new _.iE("ICON_MANAGER_TOKEN");var j1C=[48,20,18,16,15,13,12],ET6=new Map,dym=new Set,qEd=new Set,t$B=new Set,KIZ=new Set,ZYJ=new Set,JxB=new Promise(function(p){var x=!1,F=!1,N=!1,h=[],c=function(M){if("detail"in M)if(M=M.detail,M.name==="yt-icons")vTr(M),x=!0;else if(M.name==="yt-sys-icons")vTr(M),F=!0;else{var f;((f=M.name)==null?0:f.includes("yt-sys-icons"))&&M.size!==24&&(vTr(M,!0),h.push(M.size),h.length===j1C.length&&(N=!0))}x&&F&&N&&(window.removeEventListener("iron-iconset-added",c),p())};
window.addEventListener("iron-iconset-added",c)}),SEM=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"]]);_.nJ={};_.nJ.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.Pi,computeHref_:function(p,x){x=x===void 0?!1:x;if(!p||p.commandExecutorCommand)return null;var F=YsE(p,x);return x||F!==null?F?_.S("enable_polymer_resin")?_.ug(F).toString():F:null:(_.no(new _.qE("computeHref was null",this.is,p)),null)},
computeOptionalHref_:function(p){return this.computeHref_(p,!0)},
computeNofollow_:function(p){return p?gwp(p)?"nofollow":null:null},
computeIcon_:function(p){return p&&p.iconType?_.eA(p.iconType):""},
resolveCommand:function(p,x,F){x=x===void 0?{}:x;return _.FY(p,this.hostElement,x,F===void 0?!1:F)}};var Poj,y_;_.L8B={};Poj=null;
y_={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_=y5p(this.viewroot));_.zD(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var p=this;this.unobserve_();if(_.S("kevlar_vimio_use_shared_monitor"))sFE(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 x=[];this.visibilityOptionVisible_&&x.push(this.visibilityObserver.observe(this.hostElement,function(){return p.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&x.push(this.visibilityObserver.observe(this.hostElement,function(){return p.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&x.push(this.visibilityObserver.observe(this.hostElement,function(){return p.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=x}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){Xpw(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 p=_.uk(this.parentNode,function(F){var N,h=(N=F.polymerController)!=null?N:F;return!!h.getVisibilityObserverForChild&&h.getVisibilityObserverForChild()},!0);
if(p){var x;this.localVisibilityObserver_=((x=p.polymerController)!=null?x:p).getVisibilityObserverForChild()}else Poj||(Poj=y5p()),this.localVisibilityObserver_=Poj;return this.localVisibilityObserver_},visibilityCallback:function(p){p?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.S("kevlar_use_vimio_behavior")||(y_={});y_&&!_.S("kevlar_use_vimio_behavior")&&(delete y_.attached,delete y_.detached);_.L8B.YtVisibilityObserverBehavior=[y_];var Tyv={};Tyv.YtVisualElementBehavior=[_.L8B.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.S("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.S("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var p=this.getScreenLayer&&this.getScreenLayer(),x=this.getVisibilityLogger();x&&x.reportShown(this,void 0,p)}},
onHidden:function(){if(_.S("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.S("kevlar_vimio_use_shared_monitor")){var p=this.getScreenLayer&&this.getScreenLayer(),x=this.getVisibilityLogger();x&&x.reportHidden(this,void 0,p)}},
getVisibilityLogger:function(){return _.S("kevlar_use_vimio_behavior")?_.hD():null},
shouldSkipLogging:function(){if(_.sd("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var p=this.getParentRenderer&&this.getParentRenderer();if(!p)return!1;var x,F=(x=p.polymerController)!=null?x:p;if(!F.data)return!1;p=this.data.trackingParams;p=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:p;var N;x=(N=F.data)==null?void 0:N.trackingParams;var h,c;x=((h=F.data)==null?0:h.loggingDirectives)?(c=F.data)==null?void 0:c.loggingDirectives.trackingParams:x;return p&&x&&p===
x}}];var Axp=new Map,Kr;var oW$=function(p){this.layer=p},ss=function(p){return p.layer!==void 0?p.layer:p.parent?ss(p.parent):p.layer=0};var WIE;_.e={};WIE=0;_.e.YtRendererBehavior=[_.nJ.YtComponentBehavior,Tyv.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_:_.S("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var p,x;(x=(p=this.monitorScrollElement)!=null?p:this.hostElement)==null||x.removeEventListener("scroll",_.p5(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();yxw(this.hostElement);B4D(_.l$(),this.hostElement);Uz.delete(this.hostElement)},
registerRenderer:function(p){var x;((x=p.polymerController)!=null?x:p).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(p),this.markDirty())},
unregisterRenderer_:function(p){this.useVimio_||(this.childCache_.delete(p),this.markDirty())},
attached:function(){var p=this,x=this.getParentRenderer();if(x){var F,N,h;(N=(F=(h=x.polymerController)!=null?h:x).registerRenderer)==null||N.call(F,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var c,M;(M=(c=this.monitorScrollElement)!=null?c:this.hostElement)==null||M.addEventListener("scroll",_.p5(this,this.onScroll))}_.E0.addJob(function(){uCH(p.hostElement)},8);
F=new oW$(this.screenLayer||void 0);(x=Uz.get(x))&&x.layerNode&&(F.parent=x.layerNode);x={};guJ(this.hostElement,(x.isRenderer=!0,x.layerNode=F,x[Ouk]=this.data,x))},
getParentRenderer:function(){for(var p=this.hostElement.parentNode,x,F;p&&((x=Uz.get(p))==null||!x.isRenderer)&&!((F=p.polymerController)!=null?F:p).isRenderer_;)p=p.parentNode||p.host;return p},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.S("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.nt("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.S("debug_web_ve_data")&&this.data.trackingParams){var p="";try{p=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(F){_.zj(F)}if(p){var x=k6M(p,1);x!==void 0&&(this.hostElement.dataset.veIndex=String(x));p=k6M(p,2);
p!==void 0&&(this.hostElement.dataset.ve=String(p))}}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,_.S("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.fr(this.data.loggingDirectives.trackingParams)),this.visualElement=_.lz(_.cl(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var p=this.data.targetId;_.kJI(_.l$(),p,this.hostElement)}else B4D(_.l$(),this.hostElement)},
onScroll:function(){var p=Date.now();p-this.lastHandledScroll_<50||(this.lastHandledScroll_=p,this.markDirty())},
markDirty:function(){_.S("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():HYd(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var p=this.getParentRenderer();if(p&&(p=Uz.get(p))&&p.layerNode)return ss(p.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.se(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var p=0;p<this.data.impressionEndpoints.length;p++)this.sendImpression(this.data.impressionEndpoints[p]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(p){p.clickTrackingParams&&delete p.clickTrackingParams;var x,F;(p==null?0:(x=p.commandMetadata)==null?0:(F=x.webCommandMetadata)==null?0:F.sendPost)?_.fc(this.hostElement,[p,{impression:!0}]):_.Kc(this.hostElement,[p],this.hostElement)},
logExplicitClick:function(p){var x=_.b0(this.getScreenLayer());if(x){var F,N=(F=p.polymerController)!=null?F:p;p=N.visualElement;N=N.trackingParams||N.clickTrackingParams;!p&&N&&(p=_.fr(N));p&&_.B5(x,p)}}}];var ByC={},RHC=function(){return _.hZ.apply(this,arguments)||this};
_.E(RHC,_.hZ);RHC.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
var b$=RHC;b$.prototype.onPdgItemBehaviorClick=b$.prototype.onPdgItemBehaviorClick;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],b$.prototype,"data",void 0);_.B([_.V("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],b$.prototype,"onPdgItemBehaviorClick",null);b$=_.B([_.l8()],b$);ByC.YtPdgLiveChatItemBehavior=[b$.prototype,_.e.YtRendererBehavior];var kLk;var U9n;_.AA={};_.AA.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var u$=function(){var p=U4.apply(this,arguments)||this;p.switchTemplateAtRegistration=!1;return p};
_.E(u$,U4);u$.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||jFE(this),_.v1H(this,"doRender"),this.doRender())};
u$.prototype.debounceRender=function(){this.templatingFn&&_.sQ(this,"doRender",this.doRender)};
u$.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.zj(Error("$g"))};
u$.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
var iBn=u$;iBn=_.B([M0Z()],iBn);var IgK=iBn;var $9J=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Y6={},Brw=(Y6[1]={filterString:null,isUnwrappable:null,unwrap:null},Y6[2]={filterString:function(p,x,F){return $p(F)},
isUnwrappable:function(p){return p instanceof Hz},
unwrap:function(p){return OU(p)}},Y6[3]={filterString:function(p,x,F){return $9J.test(F)?F:Ao.toString()},
isUnwrappable:function(p){return Qb(p)},
unwrap:function(p){return _.n6(p)}},Y6[4]={filterString:function(){return Ao.toString()},
isUnwrappable:function(p){return p instanceof de},
unwrap:function(p){return _.SP(p).toString()}},Y6[5]={filterString:function(p,x,F){return F},
isUnwrappable:function(p){return typeof p==="string"},
unwrap:function(p){return p.toString()}},Y6[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(p){return p instanceof _.Tl},
unwrap:function(p){return TeB(p)}},Y6[8]={filterString:function(p,x,F){F=String(F).toLowerCase();
return NgM(p,x,F)?F:"zClosurez"},
isUnwrappable:null,unwrap:null},Y6[10]={filterString:null,isUnwrappable:null,unwrap:null},Y6);BZ[s_["default"]]=kY6;var eHj=function(p,x,F,N,h){return function(){var c=_.we.apply(0,arguments),M=$jr(x,F,N,h);try{return p.apply(null,_.se(c))}finally{M()}}}(PZ,"fr_c3"),pdv=_.S("measure_framework_render")?eHj:PZ;var Fq6=function(p,x){var F=this;this.hostElement=p;this.events=new _.lb;this.props=x;this.events.subscribe("UPDATE",function(){pdv(F.hostElement,F.patchInternal.bind(F));var N;F.hostElement.data=(N=F.props)==null?void 0:N.data});
this.events.subscribe("CONNECTED",function(){xrZ(F);var N;F.hostElement.data=(N=F.props)==null?void 0:N.data});
this.events.subscribe("DISCONNECTED",function(){var N;(N=F.onDisconnected)==null||N.call(F);var h;(h=F.signalContextDispose)==null||h.call(F)});
this.events.subscribe("UPDATED",function(){var N;(N=F.onUpdated)==null||N.call(F)})};
Fq6.prototype.setState=function(p){this.state||(this.state=p);Object.assign(this.state,p);pdv(this.hostElement,this.patchInternal.bind(this))};
var xrZ=function(p){p.signalContextDispose=XD(function(x){p.owner=x;var F;(F=p.onConnected)==null||F.call(p)},!!_.LH)};
Fq6.prototype.patchInternal=function(){var p=this;if(this.owner.isDisposed)this.signalContextDispose=XD(function(F){p.owner=F;NG(function(){p.render()})},!!_.LH);
else{var x={stack:[],error:void 0,hasError:!1};try{_.WT(x,_.RG(this.owner)),NG(function(){p.render()})}catch(F){x.error=F,x.hasError=!0}finally{_.HT(x)}}};var UyB=[];var JEB=Ifp("A"),CJz=Ifp("BUTTON"),t0=Ifp("DIV"),SIr=Ifp("LABEL");(function(){var p=mV;mV=function(x){p==null||p(x);tD(function(){for(var F=0;F<x.length;F++)iYr(x[F])})}})();var Nin=function(){var p=_.hZ.apply(this,arguments)||this;p.hasUnmounted=!1;return p};
_.E(Nin,_.hZ);_.l=Nin.prototype;_.l.beforeRegister=function(){var p=this.doIdomRender;this.templatingFn?_.zj(Error("Zg")):(this.templatingFn=p,this.switchTemplateAtRegistration=!0,TrM(this))};
_.l.attached=function(){};
_.l.detached=function(){iYr(this.hostElement)};
_.l.renderIdom=function(){throw Error("bh");};
_.l.doIdomRender=function(){var p=this;PZ(this.hostElement,function(){p.renderIdom()})};
var hsv=Nin;hsv=_.B([_.l8()],hsv);var lTJ=[IgK.prototype,hsv.prototype];var c2D,aTB=function(){return c2D!==void 0?c2D:c2D=document.createElement("template")};
document.head.appendChild(aTB().content);var Muk;var Drb,fTZ=function(){return Drb!==void 0?Drb:Drb=document.createElement("template")};
document.head.appendChild(fTZ().content);var Kql;var qOI=document.head,Z$C=qOI.appendChild,tuK;if(Kql===void 0){var dr6=document.createElement("template");_.g(dr6,"\x3c!--css-build:shady--\x3e");dr6.content.insertBefore(fTZ().content.cloneNode(!0),dr6.content.firstChild);Kql=dr6}tuK=Kql;Z$C.call(qOI,tuK.content);var vil,J2v=function(){return vil!==void 0?vil:vil=document.createElement("template")};
document.head.appendChild(J2v().content);var CVb;var SOB=document.head,r2B=SOB.appendChild,Eib;if(CVb===void 0){var XdB=document.createElement("template");_.g(XdB,"\x3c!--css-build:shady--\x3e");XdB.content.insertBefore(J2v().content.cloneNode(!0),XdB.content.firstChild);CVb=XdB}Eib=CVb;r2B.call(SOB,Eib.content);var giZ=document.head,Qq6=giZ.appendChild,zsK;if(Muk===void 0){var sqD=document.createElement("template");_.g(sqD,"\x3c!--css-build:shady--\x3e");sqD.content.insertBefore(aTB().content.cloneNode(!0),sqD.content.firstChild);Muk=sqD}zsK=Muk;Qq6.call(giZ,zsK.content);var niZ,y2m=function(){return niZ!==void 0?niZ:niZ=document.createElement("template")};
document.head.appendChild(y2m().content);var b$k;_.AD=new _.iE("DARK_THEME_TOKEN");var T3w=new _.U("accessibilityProperties");var PyJ=new _.U("layoutProperties");var B3d=new _.U("imageType");var A2l={};if("ytAttributedStringLinkHoverColor"in A2l)throw Error("eh`ytAttributedStringLinkHoverColor");(function(p,x){A2l[p]="value"in x&&"unit"in x?N3J(p,x):function(F){try{return x(F)}catch(N){throw Error("ch`"+p+"`"+N.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var uek=function(p){var x=this;this.holdTime=p===void 0?500:p;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(F){var N=new CustomEvent("LONG_PRESS"),h;(h=F.changedTouches[0].target)==null||h.dispatchEvent(N)};
this.ontouchstart=function(F){x.longPressTimeout=_.rR(_.E0,function(){x.onlongpress(F);x.longPressOccurred=!0},x.holdTime)};
this.ontouchmove=function(){_.E0.cancelJob(x.longPressTimeout);x.longPressTimeout=NaN;x.longPressOccurred=!1;x.moveOccurred=!0};
this.ontouchend=function(F){if(x.longPressTimeout&&!x.longPressOccurred&&!x.moveOccurred){var N;(N=F.changedTouches[0].target)==null||N.dispatchEvent(new Event("click"))}_.E0.cancelJob(x.longPressTimeout);x.longPressTimeout=NaN;x.longPressOccurred=!1;x.moveOccurred=!1}};var zGr=function(p,x){uek.call(this,x);var F=this;this.callback=p;this.onlongpress=function(N){var h;(h=F.callback)==null||h.call(F,N)}};
_.E(zGr,uek);var sl$=function(p,x){var F=Object.assign({},x);p=_.a(new Map([["ontouchstart",p.ontouchstart],["ontouchend",p.ontouchend],["ontouchmove",p.ontouchmove]]));for(var N=p.next(),h={};!N.done;h={eventName$jscomp$88:void 0,eventHandler$jscomp$3:void 0},N=p.next()){var c=_.a(N.value);N=c.next().value;c=c.next().value;h.eventName$jscomp$88=N;h.eventHandler$jscomp$3=c;x[h.eventName$jscomp$88]=function(M){return function(f){var K;(K=F[M.eventName$jscomp$88])==null||K.call(F,f);(0,M.eventHandler$jscomp$3)(f)}}(h)}};_.RD=new _.iE("COMMAND_HANDLER_TOKEN");var lzB=new _.U("parallelCommand");var MJm=new _.U("performOnceCommand");var azJ=new _.U("serialCommand");var DZJ=void 0;var YOB=function(){this.data=[]};
YOB.prototype.push=function(p){this.data.push(p)};var cc={};_.hu(cc,void 0,"sgPmTd");_.hu(null,void 0,"jypsq");var riB=new YOB;var Cyr=[fKI,KnZ,qvk,tD6,ZZl,DIK,dIB,vBB];var jlp=new _.U("bracketTextDecorator");var bz=new _.U("highlightTextDecorator");_.YL=new _.iE("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var Wrw=function(){},wdK;
(wdK=window.requestIdleCallback)==null||wdK.bind(window);var mZB={calledOnce:!1,state:"visible"},H9J={calledOnce:!1,state:"hidden"};var LPr=new _.iE("ICON_RENDERER_TOKEN"),GVI=new _.iE("ICON_WIZ_COMPONENT_TOKEN");_.DS=_.mO(function(p){var x=p.icon;var F=p.active;var N=p.className;var h=p.style;var c=p.dataSelected;var M=p.dataDisabled;var f=p.role;var K=p.animateIcon;var t=p.themeOverride;var d=p.ariaHidden;var v=p.ariaExpanded;var C=p.ariaLabel;var X=p.id;var Q=p.size;var b=p.iconFilter;return _.Z(_.D9,{cond:x,then:function(){var A=_.J().resolve(GVI);return _.Z(A,{icon:x,dataSelected:c,dataDisabled:M,animateIcon:K,themeOverride:t,ariaExpanded:v,id:X,active:F,size:Q,role:f,className:N,ariaHidden:d,ariaLabel:C,
style:function(){return h!=null&&h()||Q==null||!Q()?h==null?void 0:h():"width: "+(Q==null?void 0:Q())+"px;height: "+((Q==null?void 0:Q())+"px;")},
iconFilter:b})}})},"b");
_.DS.idomCompat=!0;var M7p=window.devicePixelRatio||1;var qLM=new Map([["yt_outline_bag_black_24","bag"]]);var wm=function(p){var x=this;this.margin=.1;this.whenInViewportWithMargin=p;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){x.requestScan()});
window.addEventListener("touchend",function(){x.requestScan()});
window.addEventListener("updateui",function(){x.requestScan()});
var F=new _.IC((0,_.CH)(this.requestScan,this),100);window.addEventListener("scroll",function(){F.fire()},!0);
window.addEventListener("resize",(0,_.CH)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){x.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.CH)(this.requestScan,this))};
wm.prototype.observe=function(p){this.observationTargets.includes(p)||this.observationTargets.push(p)};
wm.prototype.unobserve=function(p){this.observationTargets=this.observationTargets.filter(function(x){return x!==p})};
wm.prototype.requestScan=function(){var p=this;this.scanRequested||(tD(function(){Vum(p)}),this.scanRequested=!0)};
var Vum=function(p){var x=(1+p.margin)*(document.documentElement.clientHeight||window.innerHeight);p.observationTargets=p.observationTargets.filter(function(F){var N=F.getBoundingClientRect();(N=x>N.top&&!!N.height)&&p.whenInViewportWithMargin(F);return!N&&F.parentNode});
p.scanRequested=!1};
wm.prototype.disconnect=function(){this.observationTargets=[]};var WqB,mrJ;WqB=_.a(_.hu(vbz(),void 0,"O3X2wd"));_.H$j=WqB.next().value;mrJ=WqB.next().value;window.addEventListener("resize",function(){mrJ(vbz())});var oiB={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},O$I=void 0,jqb=window.innerWidth,Lqk=window.innerHeight;window.addEventListener("resize",function(){O$I=void 0});var PVv;if("IntersectionObserver"in window)PVv=SL6();else{if(O$I===void 0){var TiB;TiB="matchMedia"in window?window.matchMedia(oiB.landscape+","+oiB.portrait).matches:void 0;O$I=TiB!==void 0?TiB:jqb>=930&&Lqk>=550||jqb>=550&&Lqk>=930}PVv=O$I?{observe:function(p){tD(function(){var x;(x=p.onViewportEntered)==null||x.call(p)})},
unobserve:function(){}}:new wm(function(p){tD(function(){var x;
(x=p.onViewportEntered)==null||x.call(p)})})}var JWm=PVv;var Bil=_.mO(function(p){var x=_.oc(),F=!1;_.rx(function(){var N,h=(N=p.data)==null?void 0:N.call(p),c,M=(c=p.getSrc)==null?void 0:c.call(p).cb,f;N=(f=p.config)==null?void 0:f.call(p);if(f=x.value){Eb$(f,N);var K;rWH(f,h||null,function(t,d){if(!F)return M?M(t,d):t},N,(K=p.lazy)==null?void 0:K.call(p))}});
_.E_(function(){F=!0});
return _.Z("img",{el:x})},"c");
Bil.idomCompat=!0;_.VE=_.mO(function(p){var x=function(){var F,N=p.data(),h,c,M,f,K,t,d,v,C,X,Q,b,A,Y,O,Fw,R,ld,pp,Kp,sM,np,Jz,Y$,xB,qI,RJ;var Ik={contentMode:(h=p.contentMode)==null?void 0:h.call(p),loadedClass:(c=p.loadedClass)==null?void 0:c.call(p),isPreloaded:(M=p.isPreloaded)==null?void 0:M.call(p),notifyOnLoaded:(f=p.notifyOnLoaded)==null?void 0:f.call(p),notifyOnUnloaded:(K=p.notifyOnUnloaded)==null?void 0:K.call(p),preferredThumbnail:(t=p.preferredThumbnail)==null?void 0:t.call(p),preserveHeight:(d=p.preserveHeight)==
null?void 0:d.call(p),preserveWidth:(v=p.preserveWidth)==null?void 0:v.call(p),objectPosition:(C=p.objectPosition)==null?void 0:C.call(p),targetWidth:(X=p.targetWidth)==null?void 0:X.call(p),targetHeight:(Q=p.targetHeight)==null?void 0:Q.call(p),shouldShowPlaceholder:(b=p.shouldShowPlaceholder)==null?void 0:b.call(p),useWidth:(A=p.useWidth)==null?void 0:A.call(p),alt:(Y=p.alt)==null?void 0:Y.call(p),className:(O=p.className)==null?void 0:O.call(p),onerror:p.onerror,onload:p.onload,style$:((Fw=p.style$)==
null?void 0:Fw.call(p))||((R=p.style)==null?void 0:R.call(p)),color:(ld=p.color)==null?void 0:ld.call(p),width:(pp=p.width)==null?void 0:pp.call(p),height:(Kp=p.height)==null?void 0:Kp.call(p),"aria-hidden$":(qI=(sM=p["aria-hidden$"])==null?void 0:sM.call(p))!=null?qI:(np=p.ariaHidden)==null?void 0:np.call(p),draggable:(Jz=p.draggable)==null?void 0:Jz.call(p),"data-disabled$":(RJ=(Y$=p["data-disabled$"])==null?void 0:Y$.call(p))!=null?RJ:(xB=p.dataDisabled)==null?void 0:xB.call(p)};return QhM(N,Ik,
(F=p.hideOn404)==null?void 0:F.call(p))};
return _.Z(_.q$,null,_.Z(_.Kt,{when:function(){var F;return((F=x())==null?void 0:F.type)==="image"}},function(){return _.Z(Bil,{data:function(){return x().image},
getSrc:{cb:function(F,N){var h=x().image.sources,c=x().config.isPreloaded,M=x().config.useWidth,f=x().config.targetWidth,K=x().config.targetHeight,t=x().config.preferredThumbnail;return _.DSm(N,h,c,M,f,K,t)||""}},
config:function(){var F=x().config,N;for(N in F)F[N]===void 0&&delete F[N];return F},
lazy:p.renderLazy})}),_.Z(_.Kt,{when:function(){var F;
return((F=x())==null?void 0:F.type)==="icon"}},function(){return _.Z(_.DS,{icon:function(){return x().iconName},
role:function(){return x().config.role},
className:function(){return x().config.className},
style:function(){return x().config.style$+";width: "+(x().config.width+"px;height: ")+(x().config.height+"px;color: ")+(x().config.color+";")},
ariaLabel:function(){return x().config["aria-label$"]},
ariaHidden:function(){return x().config["aria-hidden$"]},
dataDisabled:function(){return x().config["data-disabled$"]}})}))},"d");
_.VE.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var RsB=function(p){return function(x){return _.Z(Mww,null,function(){var F=x.data(),N=_.gx(x.config);return _.Z(Lo,null,function(){return void p(F,N)})})}}(AWw),yWE=_.mO(function(p){var x=function(N){var h,c=_.zYz(function(C){h=XD(function(){for(var X=_.a(d()),Q=X.next();!Q.done;Q=X.next()){Q=u0p(Q.value);
Q=typeof Q==="string"?document.createTextNode(Q):Q;if(!(Q instanceof Node)){X=new _.qE("Part is not a node",Q,typeof Q);_.zj(X);break}C.appendChild(Q)}})}),M=shr(function(){return kS6(N())},{isEqual:nbd}),f=_.GD(p.config),K=function(){var C,X=M();
return!((C=f())==null||!C.ariaLabel)||!(X.commandRuns&&X.commandRuns.length!==0||X.paragraphStyleRuns&&X.paragraphStyleRuns.length!==0)},t=shr(f,{isEqual:wEE}),d=function(){var C=RGp(M(),t());
i9d(C,t());return M().content?Fzk(M().content,C).parts:[]},v=!0;
_.rx(function(){M();t();if(v)v=!1;else{var C=d();Promise.resolve().then(function(){var X=c.value;if(X){X.innerText="";var Q;(Q=h)==null||Q();h=_.t9(X,function(){return _.Z(YL6,{parts:C})})}})}});
return _.Z("span",{el:c,class:function(){return M()&&uF$(M(),f())},
dir:function(){var C;return((C=f())==null?0:C.userInput)?"auto":void 0},
"aria-label":function(){var C;return K()?(C=f())==null?void 0:C.ariaLabel:void 0},
role:function(){return K()?"text":void 0}})},F;
return((F=p.config)==null?0:F.renderedFromFormattedString)?x(p.text):_.Z(_.D9,{cond:p.text,then:x})},"e");
yWE.idomCompat=!0;_.KQ=_.mO(function(p){var x=_.GD(p.text),F=Gxp(p);p.renderedFromFormattedString!==void 0&&(F.renderedFromFormattedString=!0);return _.S("attr_string_reactive")?_.Z(yWE,{text:x,config:F}):_.Z(_.D9,{cond:function(){var N;return x()&&((N=kS6(x()))==null?void 0:N.content)},
then:function(){return _.Z(RsB,{data:p.text,config:F})},
debugInstance:"Apcuac"})},"f");
_.KQ.idomCompat=!0;var WzB=function(p,x,F){x=x===void 0?"unknown":x;F=F===void 0?{}:F;_.qE.call(this,p+" ("+x+")",Object.assign({},{name:"YtWcwError",tagName:x},F));Object.setPrototypeOf(this,this.constructor.prototype)};
_.E(WzB,_.qE);_.P7M=new WeakMap;_.Lzm=!1;var jhE,TUp,mSm,O0z;_.G2=Symbol("gh");_.mJ=Symbol("hh");jhE=Symbol("ih");TUp=new Set(Object.getOwnPropertyNames(Element.prototype));mSm=!_.S("web_wcw_disable_component_function_named_child_props");O0z=Symbol("jh");var kVj=_.mO(function(p){return _.Z("yt-attributed-string",{"aria-label":p.ariaLabel,hidden:p.hidden,id:p.id,class:p.className,"force-default-style":p.forceDefaultStyle},_.Z(_.KQ,{text:p.data,ariaLabel:p.ariaLabel,ellipsisTruncate:p.ellipsisTruncate,isOverlay:p.isOverlay,linkInheritColor:p.linkInheritColor,noPreWrap:p.noPreWrap,noWrap:p.noWrap,userInput:p.userInput,noEndpoints:p.noEndpoints,headerRuns:p.headerRuns}))},"g");
_.S("web_wiz_attributed_string")&&_.o7(kVj,"yt-attributed-string",{props:{ariaHidden:_.G2,ariaLabel:_.G2,className:_.G2,ellipsisTruncate:_.G2,isOverlay:_.G2,linkInheritColor:_.G2,noEndpoints:_.G2,noStyleRuns:_.G2,noLinkColor:_.G2,noPreWrap:_.G2,noWrap:_.G2,skipOnClick:_.G2,userInput:_.G2,headerRuns:_.G2,id:_.G2,data:_.G2,hidden:_.G2,forceDefaultStyle:_.G2,text:_.mJ,stopPropagation:_.mJ,disableUpgrade:_.mJ,disable:_.mJ,slot:_.mJ}});var Urv=function(){return _.m.apply(this,arguments)||this};
_.E(Urv,_.m);Urv.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},AWw(this.data,this.config))};
var V_=Urv;_.B([_.u(lTJ),_.k("design:type",Object)],V_.prototype,"ytIdomTemplatingBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],V_.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],V_.prototype,"ariaLabel",void 0);_.B([_.H(),_.k("design:type",Boolean)],V_.prototype,"disable",void 0);_.B([_.H(),_.k("design:type",Boolean)],V_.prototype,"ellipsisTruncate",void 0);_.B([_.H(),_.k("design:type",Boolean)],V_.prototype,"isOverlay",void 0);
_.B([_.H(),_.k("design:type",Boolean)],V_.prototype,"linkInheritColor",void 0);_.B([_.H(),_.k("design:type",Boolean)],V_.prototype,"noPreWrap",void 0);_.B([_.H(),_.k("design:type",Boolean)],V_.prototype,"noWrap",void 0);_.B([_.H(),_.k("design:type",Boolean)],V_.prototype,"userInput",void 0);_.B([_.H(),_.k("design:type",Boolean)],V_.prototype,"noEndpoints",void 0);_.B([_.H(),_.k("design:type",Array)],V_.prototype,"headerRuns",void 0);
V_=_.B([_.JZ({is:"yt-attributed-string",disableElementRegistration:!0})],V_);
_.S("web_wiz_attributed_string")||_.P(V_,"yt-attributed-string",function(){if(b$k===void 0){var p=document.createElement("template");_.g(p,"\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");p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);
p.content.insertBefore(y2m().content.cloneNode(!0),p.content.firstChild);b$k=p}p=b$k;return p},{mode:2});var i$n,ITZ,$SJ;i$n=function(){this.firstThumbnailLoaded=!1};
_.$r6=function(){ITZ||(ITZ=new i$n);return ITZ};
$SJ=function(p){var x=_.$r6();x.firstThumbnailLoaded||(x.firstThumbnailLoaded=!0,_.wH("ftl",p))};
i$n.prototype.reset=function(){this.firstThumbnailLoaded=!1};var RYM=0,Ijz=new WeakMap,USw=0,Lr=new Set;var esJ,ppn=function(){return esJ!==void 0?esJ:esJ=document.createElement("template")};
document.head.appendChild(ppn().content);var xyk;var F7m,hOp,W6;_.Bl=_.Mm.caches;W6=function(){};
W6.prototype.open=function(p){return _.Bl.open(FIK(p))};
W6.prototype.has=function(p){return _.Bl.has(FIK(p))};
W6.prototype.delete=function(p){return _.Bl.delete(FIK(p))};
W6.prototype.match=function(p,x){var F=this,N,h,c,M,f,K;return _.D(function(t){switch(t.nextAddress){case 1:return _.q(t,F.keys(),2);case 2:N=t.yieldResult,h=_.a(N),c=h.next();case 3:if(c.done){t.jumpTo(5);break}M=c.value;return _.q(t,F.open(M),6);case 6:return f=t.yieldResult,_.q(t,f.match(p,x),7);case 7:if(K=t.yieldResult)return t.return(K);c=h.next();t.jumpTo(3);break;case 5:return t.return()}})};
var lk$=function(){};
_.E(lk$,W6);var FIK=function(p){if(p.includes(":"))throw Error("mh`"+p);return p+":"+_.ff("CacheStorage get")};
lk$.prototype.keys=function(){var p,x,F,N,h,c,M,f,K;return _.D(function(t){if(t.nextAddress==1)return p=[],x=_.ff("CacheStorage keys"),_.q(t,_.Bl.keys(),2);F=t.yieldResult;N=_.a(F);for(h=N.next();!h.done;h=N.next())c=h.value,M=_.xek(c),f=M.originalName,K=M.datasyncId,K===x&&p.push(f);return t.return(p)})};var Nrj=function(){var p=_.m.apply(this,arguments)||this;p.objectURL=null;p.loadTime=Infinity;return p};
_.E(Nrj,_.m);_.l=Nrj.prototype;_.l.renderIdom=function(){pGZ(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("ph");this.setConfig();this.config&&XEB(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.l.objectFitToContentMode=function(p){switch(p){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.l.logThumbnailFailureVe=function(){var p=_.vt(197497);_.NJ(_.cl(),p);var x=_.b0();x&&p&&x&&_.P5(x,[p])};
_.l.loadImageFromCacheIfExists=function(p){var x=this,F=p.target;(F==null?0:F.src)&&akk(F.src).then(function(N){x.objectURL=YE(N).toString();x.setSrc(F,x.objectURL)}).catch(function(){})};
_.l.onError=function(p){var x=this;if(_.S("web_use_cache_for_image_fallback")){var F=p.target;F&&akk(F.src).then(function(N){x.objectURL=YE(N).toString();x.setSrc(F,x.objectURL)}).catch(function(){_.S("kevlar_woffle_log_thumbnail_failure_ve")&&x.logThumbnailFailureVe();
_.S("kevlar_woffle_fallback_image")&&x.setSrc(F,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.l.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.l.setConfig=function(){var p=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(x){p.loadImageFromCacheIfExists(x);p.revokeObjectURL();eYm(p.hostElement)},
onerror:function(x){p.onError(x)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.S("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.l.setSrc=function(p,x){x&&(p.src=x)};
var H6=Nrj;_.B([_.u(lTJ),_.k("design:type",Object)],H6.prototype,"ytIdomTemplatingBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],H6.prototype,"data",void 0);_.B([_.H(),_.k("design:type",String)],H6.prototype,"alt",void 0);_.B([_.H(),_.k("design:type",Boolean)],H6.prototype,"ftlEligible",void 0);_.B([_.H(),_.k("design:type",Number)],H6.prototype,"height",void 0);_.B([_.H(),_.k("design:type",Boolean)],H6.prototype,"notifyOnLoaded",void 0);
_.B([_.H(),_.k("design:type",Boolean)],H6.prototype,"notifyOnUnloaded",void 0);_.B([_.H(),_.k("design:type",String)],H6.prototype,"objectFit",void 0);_.B([_.H(),_.k("design:type",String)],H6.prototype,"objectPosition",void 0);_.B([_.H(),_.k("design:type",String)],H6.prototype,"preferredThumbnail",void 0);_.B([_.H(),_.k("design:type",Boolean)],H6.prototype,"preserveHeight",void 0);_.B([_.H(),_.k("design:type",Boolean)],H6.prototype,"preserveWidth",void 0);
_.B([_.H({value:!0}),_.k("design:type",Boolean)],H6.prototype,"useWidth",void 0);_.B([_.H({value:function(){return!_.nt("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.k("design:type",Boolean)],H6.prototype,"shouldRenderLazy",void 0);_.B([_.H(),_.k("design:type",Number)],H6.prototype,"width",void 0);H6=_.B([_.JZ({is:"yt-image",disableElementRegistration:!0})],H6);
_.P(H6,"yt-image",function(){if(xyk===void 0){var p=document.createElement("template");_.g(p,"\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");p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);p.content.insertBefore(ppn().content.cloneNode(!0),p.content.firstChild);
xyk=p}p=xyk;return p},{mode:2});var hCB=function(){return _.m.apply(this,arguments)||this};
_.E(hCB,_.m);hCB.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var p=_.g$(this.data.onVisibleCommand);p&&this.ytComponentBehavior.resolveCommand(p)}};
var mp=hCB;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],mp.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],mp.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.AA.YtVisibilityBehavior),_.k("design:type",Object)],mp.prototype,"ytVisibilityBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],mp.prototype,"data",void 0);mp=_.B([_.JZ({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],mp);
_.P(mp,"yt-bumper-user-edu-content-view-model",function(){if(U9n===void 0){var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;kLk===void 0&&(kLk=document.createElement("template"));var N=kLk;F.call(x,N.content.cloneNode(!0),p.content.firstChild);U9n=p}p=U9n;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var lfB;var cx6,afZ=function(){if(cx6!==void 0)return cx6;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;lfB===void 0&&(lfB=document.createElement("template"));var N=lfB;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return cx6=p};var M$b;_.o3={};M$b=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"]);_.o3.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var p=this.getContext_();return p?p.getTaskManager():_.E0},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var p=_.hG(this.hostElement,"yt-get-context-provider",{});p.detail&&p.detail.contextProvider?this.cachedProviderNode_=p.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return M$b.has(this.hostElement.localName)},
getNetworkManager:function(){var p=this.getContext_();if(p)return p.getNetworkManager()}};var ZDE,DyC,KIK,ffD;_.OB=function(p){var x=DyC.get(p);if(x&&(x=x.pop()))return ffD++,x;KIK++;try{var F=document.createElement(p)}catch(N){throw new _.qE("ElementPool failed to create element",p,N.message);}return F};
ZDE=function(p){var x=p.is;if(x){var F=DyC.get(x);F||(F=[],DyC.set(x,F));var N=_.sd("ELEMENT_POOL_CONFIG")||{};F.length>=(N[x]!==void 0?N[x]:_.sd("ELEMENT_POOL_DEFAULT_CAP",0))||F.push(p)}else _.no(new _.qE("Element pool should only handle custom elements:",p.nodeName))};
DyC=new Map;KIK=0;ffD=0;var R7=new WeakMap,qVr=new WeakMap;var ZYk;_.jj=function(p,x,F){F=F===void 0?_.nP():F;this.JSC$11480_defaultPriority=p;this.signal=x;this.scheduler=F;this.nextJobDescriptor=0;this.JSC$11480_parkedJobs=[];this.scheduledJobs=new Map};
_.LJ=function(p,x){if(x){var F=_.GN();p.signal&&!_.VG(F,p.signal)?(F.addListener(p.signal,function(){p.processSignal()}),p.JSC$11480_parkedJobs.push({job:x,
priority:void 0})):qEB(p,x)}};
ZYk=function(p,x){if(x!==p.JSC$11480_defaultPriority){p.JSC$11480_defaultPriority=x;for(var F=_.a(p.scheduledJobs.values()),N=F.next();!N.done;N=F.next())N=N.value,p.scheduler.cancelJob(N.jobId),N.jobId=p.scheduler.addJob(N.jobWrapper,x)}};
_.jj.prototype.flushJobs=function(){ZYk(this,10);this.processSignal()};
_.jj.prototype.cancel=function(){for(var p=_.a(this.scheduledJobs),x=p.next();!x.done;x=p.next()){var F=_.a(x.value);x=F.next().value;F=F.next().value;this.scheduler.cancelJob(F.jobId);this.scheduledJobs.delete(x)}this.JSC$11480_parkedJobs=[]};
_.jj.prototype.processSignal=function(){for(var p=_.a(this.JSC$11480_parkedJobs),x=p.next();!x.done;x=p.next())x=x.value,qEB(this,x.job,x.priority);this.JSC$11480_parkedJobs=[]};
var qEB=function(p,x,F){F=F||p.JSC$11480_defaultPriority;if(F===10)Pl(x);else{var N=p.nextJobDescriptor++,h=function(){x();p.scheduledJobs.delete(N)},c=p.scheduler.addJob(h,F);
p.scheduledJobs.set(N,{jobWrapper:h,jobId:c,priority:F})}};_.iK(Jpp);var Cnm={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};fIp({beforeVisit:function(p){if(BT.has(p.type)){var x;(x=p.props).idomKey!=null||(x.idomKey=p.type)}else p.type.TAG_NAME&&(PT=p.type.TAG_NAME)},
afterRender:function(p,x){var F;PT=(F=x==null?void 0:x.type)!=null?F:""},
didPatch:function(){PT=""}});var t$m;_.P6={};t$m={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.P6.YtRendererstamperBehavior=[_.o3.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 p in this.stampDom){var x=this.stampDom[p];x&&x.id&&this.addReactiveSchema({type:"observe",method:{methodName:DeB(x.id),args:[{type:"wildcard",path:p}]}})}else{(p=(this.constructor.generatedFrom||this).observers)||(p=[]);for(x in this.stampDom){var F=this.stampDom[x];F&&F.id&&p.push(DeB(F.id)+"("+x+".*)")}this.constructor.generatedFrom.observers=p}},
addStampDomObserverFns_:function(){for(var p in this.stampDom){var x=this.stampDom[p];x.id?(this[DeB(x.id)]=this.rendererStamperObserver_.bind(this,p,x.id),this.hasDataPath_[p]=!1):(x=new _.qE("Bad rendererstamper config",this.is+":"+p),_.zj(x))}},
rendererStamperObserver_:function(p,x,F){if(F.path==p){if(F.value===void 0&&!this.hasDataPath_[p])return;this.hasDataPath_[p]=F.value!==void 0}this.rendererStamperApplyChangeRecord_(p,x,F)},
rendererStamperApplyChangeRecord_:function(p,x,F){var N=this.renderJobsMap_[x],h=null;p==F.path?(F=F.value,_.TB(F)||(F=F===void 0||F===null?[]:[F]),p=this.stampDom[p],p.mapping&&(h=this.stampDomArray_.bind(this,F,x,p.mapping,p.reuseComponents,p.events,p.stamperStableList)),N&&N.cancel(),F=p.usePageScheduler?this.getTaskManager():void 0,N||p.initialRenderPriority==void 0)?p.renderPriority==void 0||N||(N=new _.jj(p.renderPriority,p.waitForSignal,F),this.renderJobsMap_[x]=N):(N=new _.jj(p.initialRenderPriority,
p.waitForSignal,F),this.renderJobsMap_[x]=N,h=function(c,M){c();ZYk(M,10)}.bind(this,h,N)):h=p+".splices"==F.path?this.stampDomArraySplices_.bind(this,p,x,F.value):this.forwardRendererStamperChanges_.bind(this,p,x,F);
N?_.LJ(N,h):h()},
forwardRendererStamperChanges_:function(p,x,F){var N=F.path.slice(p.length+1),h=this.getStampContainer_(x),c=N.indexOf("."),M=N.substring(0,c),f=!1,K=0,t=parseInt(M,0);if(M[0]=="#"){f=parseInt(M.substring(1),0);t=this.get(p);var d=this.get([p,M]);t[f]==d?K=f:K=t.indexOf(d);f=!0}else isNaN(t)||(K=t,f=!0);f&&(N=N.substring(M.length+1),c=N.indexOf("."));M=_.Ef(h).children[K];var v;if(h=(v=M==null?void 0:M.polymerController)!=null?v:M)N="data"+N.slice(c),typeof h.notifyPath!=="function"?_.no(new _.qE("notifyPath missing",
this.is+": "+p+", "+x)):F.value?h.notifyPath(N,F.value):h.notifyPath(N)},
stampDomArraySplices_:function(p,x,F){if(F&&F.indexSplices){var N=this.getStampContainer_(x);if(N){for(var h=_.Ef(N),c=K7m(this.stampDom[p].reuseComponents),M=F.indexSplices.length,f=0;f<M;f++){for(var K=F.indexSplices[f],t=h.children[K.index],d=K.removed.length;d>0;d--)t&&t.parentElement&&(_.Ef(t.parentElement).removeChild(t),c&&ZDE(t),t=h.children[K.index]);d=this.stampDom[p].mapping;for(var v=K.index+K.addedCount,C=document.createDocumentFragment(),X=c,Q=K.index;Q<v;Q++){var b=K.object[Q],A=MEM(d,
b);if(A){var Y=d[A];b=b[A];A=this.getComponentName_(Y,b);var O=t?R7.has(t):!1;X&&t&&t.is==A&&O?(A=t,this.telemetry_.reuse++,t=t.nextElementSibling):X&&t&&O?(A=this.createComponent_(Y,b,c),O=_.Ef(t).nextElementSibling,h.insertBefore(A,O),ded(this.is,h,t,c),t=O):(X=!1,A=this.createComponent_(Y,b,c),C.appendChild(A));this.deferRenderStamperBinding_(A,Y,b)}else Y=new _.qE("Unimplemented type",p,x,N.tagName,Object.keys(b)[0]),_.zj(Y)}h.insertBefore(C,t)}this.flushRenderStamperComponentBindings_();this.stampDom[p].events&&
_.hG(this.hostElement,"yt-rendererstamper-finished",{container:N})}else p=new _.qE("Container object not found",x,this.hostElement?this.hostElement.is:""),_.zj(p)}},
stampDomArray_:function(p,x,F,N,h,c){var M=this.getStampContainer_(x);if(M)if(x=_.Ef(M),N=K7m(N),p){var f=0,K=0,t;if(c=c===void 0?_.nt("STAMPER_STABLE_LIST",!1):c||!1)for(t=x.firstElementChild;t&&!R7.has(t)&&p.length>K;){c=p[K];var d=MEM(F,c);if(d){if(this.getComponentName_(F[d],c[d])!=t.is){var v=this.createComponent_(F[d],c[d],N),C=_.Ef(t).nextElementSibling;C?x.insertBefore(v,C):x.appendChild(v);ded(this.is,x,t,N);t=v}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(t,F[d],c[d]);f++;
K++;t=_.Ef(t).nextElementSibling}else K++}vmz(this.is,x,f,N);f=t;if(p.length>K){c=document.createDocumentFragment();for(d=p.length;K<d;K++)if(v=p[K],C=MEM(F,v))t=this.createComponent_(F[C],v[C],N),this.deferRenderStamperBinding_(t,F[C],v[C]),c.appendChild(t);f&&_.Ef(f).parentNode&&t&&!R7.has(t)?x.insertBefore(c,f):x.appendChild(c)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();h&&_.hG(this.hostElement,"yt-rendererstamper-finished",{container:M})}else vmz(this.is,x,0,
N);else p=new _.qE("Container object not found",x,this.hostElement?this.hostElement.is:""),_.zj(p)},
getStampContainer_:function(p){return this.$&&this.$[p]||_.n(this.hostElement).querySelector("#"+p)},
getComponentName_:function(p,x){return typeof p==="string"?p:p.matcher?p.matcher.call(this,x):p.component},
createComponent_:function(p,x,F){p=this.getComponentName_(p,x);try{var N=Rd.has(p)||BT.has(p);if(F&&!N){var h=_.OB(p);try{_.eV(h)}catch(c){F="Failed to clear styles for "+p+".",c.message&&(F+=" Original error: "+c.message),_.no(new _.qE(F))}}else h=document.createElement(p)}catch(c){return h="YtRendererStamperBehavior failed to create "+p+".",c.message&&(h+=" Original description: "+c.message),c.message="YtRendererStamperBehavior failed to create element",_.yj(c,h),t$m.hasOwnProperty(p)?_.no(c):_.zj(c),
document.createElement("SPAN")}this.telemetry_.create++;return h},
deferRenderStamperBinding_:function(p,x,F){this.deferredBindingTasks_.push({component:p,typeOrConfig:x,data:F})},
flushRenderStamperComponentBindings_:function(){for(var p=0,x=this.deferredBindingTasks_.length;p<x;p++){var F=this.deferredBindingTasks_[p];if(!F)break;var N=void 0,h=void 0,c=void 0,M=void 0,f=F.component,K=F.typeOrConfig;F=F.data;var t=(M=f.polymerController)!=null?M:f;M=f.loggingStatus;try{M&&(M.isRendererStamper=!0);if(typeof K!=="string"){for(c in K.attributes)K.attributes[c]===!0?f.setAttribute(c,""):K.attributes[c]===!1?f.removeAttribute(c):f.setAttribute(c,K.attributes[c]);for(h in K.params)t[h]=
K.params[h],f!==t&&Dv(f.localName,h,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(N in K.properties){var d=K.properties[N];if(d){var v=fkM(d);t[N]=this.get(v);f!==t&&Dv(f.localName,N,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(N==="on-tap"||N==="on-click"){var C=this.get(v);f.addEventListener("click",C);qVr.set(f,{property:N,listener:{type:"element",eventName:"click",handler:C}})}}else{var X=new _.qE("Undefined property binding",N);_.zj(X)}}}if(K.classListBinding){var Q=fkM(K.classListBinding),
b=Q?this[Q]:null;if(b)for(N=0;N<b.length;N++)_.iX(f,b[N],!0)}t.data=F}finally{M&&(M.isRendererStamper=!1)}if(N=R7.get(f))f.hidden=!1,R7.delete(f),_.E0.cancelJob(N)}this.deferredBindingTasks_.length=0}}];_.T2={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(p){for(var x=_.Vj.getInstance(),F=_.a(Object.keys(p)),N=F.next();!N.done;N=F.next()){var h=N.value;N=p[h];if(this&&this[N]){var c=x.actionRoutingMap.get(h);c||(c=new Map,x.actionRoutingMap.set(h,c));x.registerActionHandler(this,h,this[N].bind(this),c)}else h=Error("hd"),h.params=N,_.yL(h)}},
unregisterActionMap:function(p){_.HZ(_.Vj.getInstance(),p,this)}}]};var iz=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}],["LIKE_VALENTINES25_HEART",{name:"animated_like_valentines25_heart_light",nameDarkTheme:"animated_like_valentines25_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_VALENTINES25_BROKEN_HEART",{name:"animated_like_valentines25_broken_heart_light",nameDarkTheme:"animated_like_valentines25_broken_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_BROKEN_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_YOUTUBE_20TH_BIRTHDAY",{name:"animated_like_youtube_20th_birthday_light",nameDarkTheme:"animated_like_youtube_20th_birthday_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_light.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_dark.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}]]);var Uu;var I7=new Map;var ulJ=window.matchMedia("(forced-colors: active)").matches;var dyI;var vTb;var VE$=new _.iE("LOTTIE_LOADER_TOKEN");_.iK(W7p);_.o7(_.mO(function(p){return _.Z("ytd-lottie-player",{id:p.id,hidden:p.hidden,class:p.className,"aria-label":p.ariaLabel,style:"display: block;"},_.Z(_.e6,{data:p.data,animationName:function(){var x;return((x=p.data().animationConfig)==null?void 0:x.name)||""},
animationRef:function(){return p.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.G2,
id:_.G2,hidden:_.G2,className:_.G2,ariaLabel:_.G2}});var Jxm=function(){var p=_.m.apply(this,arguments)||this;p.animationRef={};return p};
_.E(Jxm,_.m);_.l=Jxm.prototype;
_.l.handlePropertyChange=function(){var p=this.animatedIcon,x=this.active,F=this.isDarkTheme;if(p){var N=this.previousActive!==x;this.previousActive=x;this.animationRef.lottieEl?N&&this.toggleAnimation(x,p.totalFrames):x?this.initializeAnimationAsToggled(p.lottiePlayerProps,p.totalFrames):this.initializeAnimationAsUntoggled(p.lottiePlayerProps);p.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=p.type;this.lottiePlayerProps=this.computeLottiePlayerProps(p,F)}};
_.l.computeLottiePlayerProps=function(p,x){var F=this.deepCloneLottiePlayerProps(p);x?(x=p.nameDarkTheme,p=p.pathDarkTheme):(x=p.name,p=p.path);F.animationConfig.name=x;(x=I7.get(p))?F.animationConfig.animationData=x:F.animationConfig.path=p;return F};
_.l.initializeAnimationAsToggled=function(p,x){p.animationConfig.initialSegment=[x-1,x]};
_.l.initializeAnimationAsUntoggled=function(p){p.animationConfig.initialSegment=void 0};
_.l.toggleAnimation=function(p,x){if(p){var F;(F=this.animationRef.lottieEl)==null||F.playSegments([0,x],!0)}else{var N;(N=this.animationRef.lottieEl)==null||N.playSegments([0,1],!0)}};
_.l.deepCloneLottiePlayerProps=function(p){var x=Object.assign({},p.lottiePlayerProps.animationConfig);p=Object.assign({},p.lottiePlayerProps);p.animationConfig=x;return p};
var B6=Jxm;B6.prototype.handlePropertyChange=B6.prototype.handlePropertyChange;_.B([_.H(),_.k("design:type",Object)],B6.prototype,"animatedIcon",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],B6.prototype,"active",void 0);_.B([_.H(),_.k("design:type",Boolean)],B6.prototype,"isDarkTheme",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],B6.prototype,"animatedIconType",void 0);_.B([_.H(),_.k("design:type",Boolean)],B6.prototype,"previousActive",void 0);
_.B([_.H(),_.k("design:type",Object)],B6.prototype,"lottiePlayerProps",void 0);_.B([_.H(),_.k("design:type",Object)],B6.prototype,"animationRef",void 0);_.B([_.W("animatedIcon","active","isDarkTheme"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],B6.prototype,"handlePropertyChange",null);B6=_.B([_.JZ({is:"yt-animated-icon",disableElementRegistration:!0})],B6);
_.P(B6,"yt-animated-icon",function(){if(vTb===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;dyI===void 0&&(dyI=document.createElement("template"));var N=dyI;F.call(x,N.content.cloneNode(!0),p.content.firstChild);vTb=p}p=vTb;return p},{mode:2});var CRC;var SEv;var omE=_.mO(function(p){var x=_.O$(),F=Sr(function(){return{value:null}});
_.E_(function(){var K;(K=F.value)==null||K.cancel()});
var N=_.Kn(function(){return p.data().iconName},void 0,"dGBPh"),h=_.Kn(function(){return p.data().iconStyle},void 0,"ipXHMb"),c=_.Kn(function(){return p.data().iconSize},void 0,"oPwZue"),M=_.Kn(function(){return p.data().iconSelected},void 0,"fKE56d"),f=_.Kn(function(){return p.data().iconSetName},void 0,"yCb9md");
_.rx(function(){var K={iconName:N(),iconStyle:h(),iconSize:c(),iconSelected:M(),iconSetName:f()},t,d=(t=p.options)==null?void 0:t.call(p),v;t=(v=p.iconManager)==null?void 0:v.call(p);mep(x,F,K,d,t)});
return _.Z("span",{class:"yt-icon-shape",el:x})},"i");
omE.idomCompat=!0;var mKE=["youtube_fill","youtube_outline"];var rxB=new _.gB({type:"iconset",value:void 0}),ETJ=function(){var p=_.m.apply(this,arguments)||this;p.isDarkTheme=document.documentElement.hasAttribute("dark");p.iconName="";p.iconsetName="yt-icons";p.iconset=null;p.missingIconSet=!1;p.iconType=null;p.iconShapeDataSignal=_.hu(void 0,void 0,"RQ9kUb");p.renderingOptionsSignal=_.hu({iconWidth:"100%",iconHeight:"100%",iconFilter:p.iconFilter},void 0,"qtx8Ef");p.wizHasRendered=!1;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.E(ETJ,_.m);_.l=ETJ.prototype;_.l.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&(this.isDarkTheme=p)};
_.l.handlePropertyChange=function(){var p=this,x,F,N,h,c,M,f,K,t,d,v;return _.D(function(C){switch(C.nextAddress){case 1:if(x=!p.icon&&!p.iconName||!p.isAttached)return C.return();F=p;N=F.icon;h=F.size;c=F.defaultToFilled;M=F.active;f=F.targetContainer;p.toggleContainerClass(f);_.S("kevlar_use_wil_icons")&&N&&(K=ffp(N),K.length?_.S("kevlar_icon_type_fix_killswitch")?(t=K[1].toUpperCase(),p.iconType=VtI[t],p.iconType||(p.iconType=K[1])):p.iconType=K[1]:p.iconType=null);if(N){C.jumpTo(2);break}p.iconsetName=
"";p.iconName="";return _.q(C,p.renderIcon(f,N),3);case 3:return C.return();case 2:d=p.computeIcon(N);v=ffp(d);v.length&&(p.iconsetName=v[0],p.iconName=v[1]);if(!_.S("kevlar_use_wil_icons")){C.jumpTo(4);break}return _.q(C,p.getIconShapeData(),5);case 5:p.iconShapeData=C.yieldResult;case 4:if(p.shouldRenderIconShape(f)){C.jumpTo(6);break}return _.q(C,p.determineIconSet(d,M,c,h,f),6);case 6:return _.q(C,p.renderIcon(f,N),0)}})};
_.l.toggleContainerClass=function(p){p?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.l.computeIcon=function(p){return!_.S("default_to_innertube_icon")||p.indexOf(":")>0?p:_.eA(p)};
_.l.determineIconSet=function(p,x,F,N){var h=this;return _.D(function(c){return c.nextAddress==1?_.S("kevlar_system_icons")||_.sd("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.sd("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.q(c,h.switchToYtSysIconset(p,x,F,N),3):c.jumpTo(2):c.nextAddress!=2?c.return():_.q(c,h.useYtSysIconsetForMissingIcons(p,x,F,N),0)})};
_.l.switchToYtSysIconset=function(p,x,F,N){var h=this,c,M,f,K,t,d,v;return _.D(function(C){switch(C.nextAddress){case 1:if(!p||h.iconsetName!=="yt-icons"&&h.iconsetName!=="yt-sys-icons"){C.jumpTo(0);break}c=ffp(p);M=c[1];M=_.rx$(M);_.S("enable_polymer_icons_replace_underscores_dash")&&M.includes("_filled")&&(M=M.replace(/_filled/g,"-filled"));return _.q(C,$J(M,!0),3);case 3:return f=C.yieldResult,_.q(C,$J(M,!1),4);case 4:if((K=C.yieldResult)||x&&f)h.iconsetName="yt-sys-icons";h.iconName=h.getIconName(M,
x,F,K,f);if(N===24){C.jumpTo(0);break}t="yt-sys-icons"+N+":"+h.iconName;return _.q(C,$J(t,!1,!0),6);case 6:return d=C.yieldResult,_.q(C,$J(t,!0,!0),7);case 7:v=C.yieldResult;h.iconName=h.getIconName(M,x,F,d,v);if(!x&&d||x&&v)h.iconsetName="yt-sys-icons"+N;_.JB(C)}})};
_.l.getIconName=function(p,x,F,N,h){p.includes("-filled")&&(p=p.replace("-filled",""));return h&&(x||F)?p+"-filled":p};
_.l.useYtSysIconsetForMissingIcons=function(p,x,F,N){var h=this,c,M;return _.D(function(f){if(f.nextAddress==1)return h.iconsetName!=="yt-icons"?f.jumpTo(0):_.q(f,$J(h.iconName,!1,!1,!0),3);if(f.nextAddress!=4)return c=f.yieldResult,_.q(f,$J(h.iconName,!1),4);M=f.yieldResult;if(c||!M)return f.jumpTo(0);h.iconsetName="yt-sys-icons";return _.q(f,h.switchToYtSysIconset(p,x,F,N),0)})};
_.l.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.l.getIconManager=function(){return _.D(function(p){try{return p.return(_.J().resolve(_.pr))}catch(x){return p.return(new Promise(function(F){_.GN().parkOrScheduleJob(function(){F(_.J().resolve(_.pr))},2,"ci")}))}})};
_.l.getIconShapeData=function(){var p=this,x,F,N,h,c,M;return _.D(function(f){if(f.nextAddress==1){if(!p.iconType)return f.return(void 0);x=p.iconType.toLowerCase();F=x.endsWith("_filled")||x.endsWith("-filled");return _.q(f,p.getIconManager(),2)}N=f.yieldResult;h=p.active||p.defaultToFilled||F?"youtube_fill":"youtube_outline";c={iconName:x,iconStyle:h,iconSize:p.size,iconSetName:p.iconsetName};M=!!N.resolveIcon(c);M||(c.iconSize=void 0,M=!!N.resolveIcon(c));!M&&F&&(c.iconName=x.substring(0,x.length-
7),c.iconSize=p.size,M=!!N.resolveIcon(c),M||(c.iconSize=void 0,M=!!N.resolveIcon(c)));M||(c.iconStyle=void 0,M=!!N.resolveIcon(c));M||_.no(new _.qE("Icon not supported",{iconName:c.iconName,iconStyle:c.iconStyle,iconSize:c.iconSize,iconType:x}));return f.return(M?c:void 0)})};
_.l.shouldRenderIconShape=function(p){if(!_.S("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;p=this.getContainer(p);return!YVH(p,this.icon)};
_.l.renderIcon=function(p,x){var F=this,N,h,c,M,f,K,t,d;return _.D(function(v){switch(v.nextAddress){case 1:if(x&&F.icon!==x)return v.return();N=F.getContainer(p);h=YVH(N,F.icon);if(F.shouldRenderIconShape(p)&&F.iconType)return F.applyIconShape(h,N),v.return();F.removeIconShape();if(!N)return v.return();F.iconName===""&&F.iconset&&N&&(F.removeStaticIcon(F.iconset,N),h&&F.removeAnimatedIcon(N));if(F.iconName===""&&F.iconset||!F.iconsetName||!rxB)return v.return();F.iconset=rxB.byKey(F.iconsetName);
if(!F.iconset)return F.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.p5(F,F.onIconsetAdded)),v.return();F.missingIconSet&&(F.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.p5(F,F.onIconsetAdded)));M=(c=h||F.isAnimatedIcon?Ap6(F.icon):void 0)&&!c.lazyLoad;K=c&&((f=c)==null?void 0:f.lazyLoad)&&(c.lottiePlayerProps.animationConfig.animationData?!0:I7.get(F.isDarkTheme?c.pathDarkTheme:c.path)?!0:!1);if(M||K)return F.applyAnimatedIcon(N,c,F.iconset),v.return();if(K||
(t=c)==null||!t.lazyLoad){v.jumpTo(2);break}d=Gdr(c,F.isDarkTheme);F.applyStaticIcon(F.iconset,N,F.iconName,p,h);return _.q(v,d,3);case 3:return _.q(v,F.renderIcon(F.targetContainer,F.icon),4);case 4:return v.return();case 2:F.applyStaticIcon(F.iconset,N,F.iconName,p,h),_.JB(v)}})};
_.l.getContainer=function(p){var x,F=(x=i_B(this.hostElement))==null?void 0:x.host;x=!!F&&!!F.polymerController;if(!p||x)return p?this.getTargetContainer(p,F):this.hostElement};
_.l.getTargetContainer=function(p,x){var F=_.n(x).querySelector("#"+p);F||(p=new _.qE("yt-icon container missing",x.is,p),_.zj(p));return F};
_.l.applyStaticIcon=function(p,x,F,N,h){h&&this.removeAnimatedIcon(x);this.removeIconShape();h=h&&!!this.iconType&&!!this.iconShapeData&&_.S("kevlar_use_wil_icons");try{h?this.applyIconShape(!1,x):p.applyIcon(x,F)}catch(c){this.handleError(c,N,x)}};
_.l.applyIconShape=function(p,x){this.iconset&&x&&(this.removeStaticIcon(this.iconset,x),p&&this.removeAnimatedIcon(x));p={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var F=_.a(this.iconShapeDataSignal);x=F.next().value;F=F.next().value;var N=_.a(this.renderingOptionsSignal),h=N.next().value;N=N.next().value;F(this.iconShapeData);N(p);if(!this.wizHasRendered)for(this.wizHasRendered=!0,p=_.a(ODd(x,h)).next().value;p.firstChild;)_.n(this.hostElement).appendChild(p.firstChild)};
_.l.removeIconShape=function(){if(_.S("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.l.removeStaticIcon=function(p,x){p.removeIcon(x)};
_.l.applyAnimatedIcon=function(p,x,F){this.removeStaticIcon(F,p);this.removeIconShape();var N;F=this.animatedIconElement&&((N=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:N.type)===x.type;if(this.animatedIconElement&&F){this.animatedIconElement.polymerController.animatedIcon=x;var h;((h=this.animatedIconElement)==null?void 0:h.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(p),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=x,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.S("kevlar_use_wil_icons")?p.insertBefore(this.animatedIconElement,p.childNodes[0]):(p=_.n(p),p.insertBefore(this.animatedIconElement,p.childNodes[0]))};
_.l.removeAnimatedIcon=function(p){_.S("kevlar_use_wil_icons")?this.animatedIconElement&&p.contains(this.animatedIconElement)&&p.removeChild(this.animatedIconElement):(p=_.n(p),this.animatedIconElement&&p.contains(this.animatedIconElement)&&p.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.l.handleError=function(p,x,F){_.yj(p,this.iconName,x,F);x=YVH(F,this.icon);var N=!1;window.location.href.includes("JpymaW6Lh2w")?N=!0:F._svgIcon&&(F=(F=F._svgIcon.parentNode)?F.tagName:"unknown",_.yj(p,F),F==="YT-ICON"&&p.name==="NotFoundError"?N=!0:p.name==="NotFoundError"&&x&&(N=!0));N?_.no(p):_.zj(p)};
_.R8.Object.defineProperties(ETJ,{template:{configurable:!0,enumerable:!0,get:function(){if(SEv===void 0){var p=document.createElement("template");_.g(p,"\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");p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;
CRC===void 0&&(CRC=document.createElement("template"));var N=CRC;F.call(x,N.content.cloneNode(!0),p.content.firstChild);SEv=p}p=SEv;return p}}});
var R3=ETJ;R3.prototype.handlePropertyChange=R3.prototype.handlePropertyChange;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],R3.prototype,"actionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",String)],R3.prototype,"icon",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],R3.prototype,"active",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],R3.prototype,"defaultToFilled",void 0);
_.B([_.H({value:!1}),_.k("design:type",Boolean)],R3.prototype,"isAnimatedIcon",void 0);_.B([_.H({value:24}),_.k("design:type",Number)],R3.prototype,"size",void 0);_.B([_.H({value:""}),_.k("design:type",String)],R3.prototype,"targetContainer",void 0);_.B([_.H(),_.k("design:type",Object)],R3.prototype,"animatedIconElement",void 0);_.B([_.H(),_.k("design:type",Object)],R3.prototype,"isDarkTheme",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],R3.prototype,"ariaHidden",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],R3.prototype,"ariaLabel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],R3.prototype,"role",void 0);_.B([_.H(),_.k("design:type",String)],R3.prototype,"style",void 0);_.B([_.H(),_.k("design:type",String)],R3.prototype,"iconFilter",void 0);
_.B([_.W("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],R3.prototype,"handlePropertyChange",null);R3=_.B([_.JZ({is:"yt-icon",noInjection:!0})],R3);var Xpj;var gTk=function(){var p=document.body,x=p.appendChild;if(Xpj===void 0){var F=document.createElement("template");_.g(F,'\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>');
Xpj=F}F=Xpj;x.call(p,F.content)};
document.body?gTk():window.addEventListener("DOMContentLoaded",gTk);var QFv,zCv=function(){return QFv!==void 0?QFv:QFv=document.createElement("template")};
document.head.appendChild(zCv().content);var sF6,nTv=function(){return sF6!==void 0?sF6:sF6=document.createElement("template")};
document.head.appendChild(nTv().content);var yxj;_.dR=new _.iE("KEY_MANAGER_TOKEN");var B06={duration:1E3,easing:"ease",fill:"forwards"};_.iK(T0p);var bYl=_.xp(_.Ft);_.iK(_.Ft);_.fQ=_.mO(function(p){var x=_.oc(p.ref),F=p.aTagConfig?p.aTagConfig:_.Kn(function(){var c,M,f,K,t,d;var v=(d=_.g$((K=p.command)==null?void 0:K.call(p)))!=null?d:(t=p.command)==null?void 0:t.call(p);return _.zT({innertubeCommand:v,skipOnClick:(c=p.skipOnClick)==null?void 0:c.call(p),stopPropagation:(M=p.dangerousStopPropagation)==null?void 0:M.call(p),defaultTarget:(f=p.target)==null?void 0:f.call(p)})||{}},void 0,"gnrRge");
_.rx(function(){x.value._data=F()._data;x.value.params=F().params});
var N=_.h0(function(c){var M,f;return void((f=(M=F()).onpointerdown)==null?void 0:f.call(M,c))}),h=_.h0(function(c){var M,f;
return void((f=(M=F()).onclick)==null?void 0:f.call(M,c))});
return _.Z("a",{el:x,href:function(){return F().href$},
rel:function(){return F().rel$},
class:function(){var c,M;return(M=F().className)!=null?M:(c=p.className)==null?void 0:c.call(p)},
style:function(){var c;if((c=p.style)==null?0:c.call(p))return p.style();var M;return((M=p.disabled)==null?0:M.call(p))?"pointer-events:none":""},
"aria-haspopup":function(){return!!F()["aria-haspopup$"]},
"force-new-state":lT(function(){return F()["force-new-state$"]}),
title:lT(function(){var c,M;return(M=F().title$)!=null?M:(c=p.title)==null?void 0:c.call(p)}),
role:lT(function(){return F().role$}),
target:lT(function(){return F().target$}),
dir:lT(function(){var c;return((c=p.dir)==null?0:c.call(p))?p.dir():F().dir}),
tabindex:function(){var c;return F().tabindex$?Number(F().tabindex$):(c=p.tabIndex)==null?void 0:c.call(p)},
"aria-hidden":function(){var c,M;return(M=F()["aria-hidden$"])!=null?M:(c=p.ariaHidden)==null?void 0:c.call(p)},
"aria-label":function(){var c,M;return(M=F()["aria-label$"])!=null?M:(c=p.ariaLabel)==null?void 0:c.call(p)},
"aria-current":p.ariaCurrent,"aria-labelledby":p.ariaLabelledby,"aria-describedby":p.ariaDescribedby,"aria-selected":p.ariaSelected,"tab-identifier":p.tabIdentifier,"on:pointerdown":N,"on:click":h},p.children)},"j");var k6=function(p,x){this.fillAnimation=new Animation(ROZ(p),document.timeline);this.strokeAnimation=new Animation(kdp(x),document.timeline)};
k6.prototype.play=function(){var p,x;(x=(p=this.fillAnimation).play)==null||x.call(p);var F,N;(N=(F=this.strokeAnimation).play)==null||N.call(F)};
k6.prototype.cancel=function(){var p,x;(x=(p=this.fillAnimation).cancel)==null||x.call(p);var F,N;(N=(F=this.strokeAnimation).cancel)==null||N.call(F)};_.qC=_.mO(function(p){var x=p.model;var F=p.pointerDownEvent;var N=p.pointerUpEvent;var h=p.pointerLeaveEvent;p=_.oc();var c=_.a4({"border-radius":function(){return x().borderRadius}}),M=_.oc(),f=_.oc(),K=_.a(_.ct(function(){return(N==null?0:N())||(h==null?0:h())?!1:!(F==null||!F())||!1})),t=K.next().value,d=K.next().value,v=void 0,C=function(){!v&&f.value&&M.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(v=new k6(f.value,M.value));
var Y;(Y=v)==null||Y.play()},X=function(){var Y;
(Y=v)==null||Y.cancel()},Q=function(){var Y;
(Y=v)==null||Y.cancel()};
_.rx(function(){(N==null?0:N())&&C()});
_.rx(function(){(F==null?0:F())&&X()});
_.rx(function(){(h==null?0:h())&&Q()});
K=_.h0(function(){C();d(!1)});
var b=_.h0(function(){X();d(!0)});
_.jl(p,"pointerleave",function(){Q();d(!1)});
_.E_(function(){if(v){var Y;(Y=v)==null||Y.cancel();v=void 0}});
var A={};t=_.$L("yt-spec-touch-feedback-shape",function(){return iDH(x().color)},(A["yt-spec-touch-feedback-shape--focused"]=function(){return!!x().focused&&!x().disabled},A["yt-spec-touch-feedback-shape--circular"]=function(){return!!x().circular},A["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!x().isExtended},A["yt-spec-touch-feedback-shape--down"]=t,A["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!x().triggerEvents},A));
return _.Z("yt-touch-feedback-shape",{style:_.a4({"border-radius":"inherit"})},_.Z("div",{el:p,class:t,style:_.a4({"margin-top":function(){return x().customTopExtend?"-"+x().customTopExtend+"px":void 0}}),
"on:mousedown":b,"on:mouseup":K,"on:touchstart":b,"on:touchend":K,"aria-hidden":!0},_.Z("div",{class:"yt-spec-touch-feedback-shape__stroke",style:c,el:M}),_.Z("div",{class:"yt-spec-touch-feedback-shape__fill",style:c,el:f})))},"k");
_.qC.idomCompat=!0;var AxD={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 UB=_.rk();UB=UB.toLowerCase();if(_.vr(UB,"android")){var uCn=UB.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);uCn&&parseFloat(uCn[1])<100||UB.match("("+Object.keys(AxD).join("|")+")")};var YEJ=_.mO(function(p){return _.Z(_.D9,{cond:p.aTagConfig,then:function(x){return _.Z(_.fQ,{aTagConfig:x,disabled:p.disabled,className:p.className,style:p.style,title:p.title,ariaLabel:p.ariaLabel,ariaCurrent:function(){var F,N;return((F=p.toggleable)==null?void 0:F.call(p))&&((N=p.toggled)==null?void 0:N.call(p))}},p.children)},
else:function(){return _.Z("button",{"on:click":_.h0(function(x){var F;return(F=p.onClick)==null?void 0:F.call(p,x)}),
class:p.className,title:p.title,style:p.style,disabled:p.disabled,"aria-pressed":function(){var x,F;return((x=p.toggleable)==null?0:x.call(p))?!((F=p.toggled)==null||!F.call(p)):void 0},
"aria-label":p.ariaLabel,"aria-disabled":p.visiblyDisabled,"aria-hidden":p.ariaHidden,tabindex:p.tabIndex},p.children)}})},"l"),GYK=_.mO(function(p){var x=p.data;
var F=p.hasIconLeading;var N=p.hasIconLeadingTrailing;var h=p.hasIconTrailing;var c=p.iconButton;var M=p.iconClassName;var f=p.secondaryIconClassName;var K=p.icon;var t=p.secondaryIcon;var d=p.textContentClassName;return _.Z(i$,{className:"",style:"display: inherit; justify-content: center"},_.Z(_.D9,{cond:function(){return K&&(F()||N()||(c==null?void 0:c()))},
then:function(){return _.Z(i$,null,_.Z("div",{class:M,"aria-hidden":"true"},K==null?void 0:K()))}}),_.Z(_.D9,{cond:function(){return(x().buttonText||x().animatedTextProps||x().formattedButtonText)&&!(c==null?0:c())},
then:function(){return _.Z(i$,null,_.Z(wpK,{className:d,iconPosition:function(){return x().iconPosition},
text:function(){return x().buttonText},
oneOffCustomTextWrap:function(){return x().oneOffCustomTextWrap},
formattedButtonText:function(){return x().formattedButtonText},
animatedTextProps:function(){return x().animatedTextProps}}))}}),_.Z(_.D9,{cond:h,
then:function(){return _.Z(i$,null,_.Z("div",{class:M},K==null?void 0:K()))}}),_.Z(_.D9,{cond:N,
then:function(){return _.Z(i$,null,_.Z("div",{class:f},t==null?void 0:t()))}}),_.Z(_.D9,{cond:function(){return!x().disabled&&!0},
then:function(){return _.Z(_.qC,{model:function(){return{color:pP6(x())}}})}}))},"m"),wpK=_.mO(function(p){var x=function(){var F,N;
return((F=p.iconPosition)==null?void 0:F.call(p))==="icon-with-label"||((N=p.oneOffCustomTextWrap)==null?void 0:N.call(p))};
return _.Z("div",{class:p.className,"aria-hidden":function(){var F,N,h;return((F=p.ariaHidden)==null?void 0:F.call(p))&&(!((N=p.animatedTextProps)==null||!N.call(p))||!((h=p.formattedButtonText)==null||!h.call(p)))}},_.Z(_.q$,null,_.Z(_.Kt,{when:function(){var F;
return(F=p.animatedTextProps)==null?void 0:F.call(p)}},function(){return _.Z(bYl,{numberText:function(){return p.animatedTextProps().numberText},
numberValue:function(){return p.animatedTextProps().numberValue},
heightPx:function(){return p.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return p.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return p.animatedTextProps().shouldAnimate},
forceRollUp:function(){return p.animatedTextProps().forceRollUp}})}),_.Z(_.Kt,{when:function(){var F;
return(F=p.formattedButtonText)==null?void 0:F.call(p)}},function(){return _.Z(_.KQ,{text:function(){return Object.assign({},p.formattedButtonText(),{lineBreakMode:x()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":p.formattedButtonText().lineBreakMode,
alignment:x()?"TEXT_ALIGNMENT_CENTER":p.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!x()}})}),_.Z(_.mzB,null,function(){return p.text})))},"n"),V$J=_.mO(function(p){return _.Z(_.D9,{cond:p.hasLabel,
then:function(){var x;return _.Z("label",{class:p.className},p.children,(x=p.textContent)==null?void 0:x.call(p))},
else:function(){return p.children}})},"o"),i$=_.mO(function(p){return p.children},"p");var NVZ=T4("stamper-context");_.iK(fHB);var Kkz=new Map;var ZIr=!1,WI6=!1;var JD=function(){Fq6.apply(this,arguments);var p=this;this.state={down:!1};this.JSC$11579_onPointerUp=function(){!p.JSC$11579_currentAnimation&&p.JSC$11579_fillElement&&p.JSC$11579_strokeElement&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(p.JSC$11579_currentAnimation=new k6(p.JSC$11579_fillElement,p.JSC$11579_strokeElement));p.setState({down:!1});var x;(x=p.JSC$11579_currentAnimation)==null||x.play()};
this.JSC$11579_onPointerDown=function(){var x;(x=p.JSC$11579_currentAnimation)==null||x.cancel();p.setState({down:!0})};
this.onPointerLeave=function(){var x;(x=p.JSC$11579_currentAnimation)==null||x.cancel();p.setState({down:!1})}};
_.E(JD,Fq6);JD.prototype.onConnected=function(){this.hostElement.style.borderRadius="inherit"};
JD.prototype.render=function(){var p=this,x=this.props.model,F=x.disabled,N=x.focused,h=x.borderRadius,c=x.circular,M=x.isExtended;x=x.color;var f={};F=(f["yt-spec-touch-feedback-shape"]=!0,f["yt-spec-touch-feedback-shape--focused"]=!!N&&!F,f["yt-spec-touch-feedback-shape--circular"]=!!c,f["yt-spec-touch-feedback-shape--is-extended"]=!!M,f["yt-spec-touch-feedback-shape--down"]=!!this.state.down,f[qIM(x)]=!0,f);t0({className:_.pQ(F),onmousedown:this.JSC$11579_onPointerDown,onmouseup:this.JSC$11579_onPointerUp,
ontouchstart:this.JSC$11579_onPointerDown,ontouchend:this.JSC$11579_onPointerUp,onpointerleave:this.onPointerLeave,"aria-hidden$":!0},function(){var K=h?{borderRadius:h}:void 0;t0({className:"yt-spec-touch-feedback-shape__stroke",style:K},function(t){p.JSC$11579_strokeElement=t});
t0({className:"yt-spec-touch-feedback-shape__fill",style:K},function(t){p.JSC$11579_fillElement=t})})};
JD.tagName="yt-touch-feedback-shape";var $w=_.mO(function(p){var x=p.data;var F=p.icon;var N=p.iconName;var h=p.secondaryIcon;var c=p.secondaryIconName;var M=p.focusedOverride;Nzk();var f=Ik$(x),K=f.size,t=f.style;p=f.disabled;var d=f.onTap,v=f.alignByText,C=f.aTagConfig,X=f.customColors,Q=f.segmentedPosition,b=f.toggled,A=f.toggleable,Y=f.accessibilityLabel,O=f.onToggle,Fw=f.iconPosition,R=f.oneOffCustomTextWrap,ld=f.disableTextEllipsis,pp=f.tooltipText,Kp=f.ariaHidden,sM=f.tabIndex,np=f.buttonText,Jz=f.formattedButtonText,Y$=f.animatedTextProps,
xB=eOk(x,F,h,N,c,M),qI=xB.type;F=xB.shouldFocus;N=xB.hasIconLeading;h=xB.hasIconTrailing;c=xB.hasIconLeadingTrailing;var RJ=xB.hasIconOnly;M=xB.hasIconOnly40;var Ik=xB.hasIconWithLabel;f=xB.iconButton;var vb=xB.visiblyDisabled,CZ=xB.overrideSmallSizeIcon,sk=xB.iconToRender;xB=xB.secondaryIconToRender;var Ov={},Xj={};return _.Z(V$J,{className:_.$L("yt-spec-button-shape-with-label",(Ov["yt-spec-button-shape-with-label--is-overlay"]=function(){return t()==="overlay"||t()==="overlay-dark"},Ov)),
hasLabel:Ik,textContent:function(){return _.Z(wpK,{text:np,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:R,iconPosition:Fw,formattedButtonText:Jz,animatedTextProps:Y$})}},_.Z(YEJ,{aTagConfig:C,
className:_.$L("yt-spec-button-shape-next",function(){return hqw(qI())},function(){return vb()?void 0:lHw(t())},function(){return cEk(K())},(Xj["yt-spec-button-shape-next--disabled"]=vb,Xj["yt-spec-button-shape-next--focused"]=F,Xj["yt-spec-button-shape-next--icon-trailing"]=h,Xj["yt-spec-button-shape-next--icon-leading"]=N,Xj["yt-spec-button-shape-next--icon-leading-trailing"]=c,Xj["yt-spec-button-shape-next--icon-button"]=function(){return RJ()||Ik()},Xj["yt-spec-button-shape-next--icon-only-default"]=
M,Xj["yt-spec-button-shape-next--align-by-text"]=v,Xj["yt-spec-button-shape-next--segmented-start"]=function(){return Q()==="start"},Xj["yt-spec-button-shape-next--segmented-end"]=function(){return Q()==="end"},Xj["yt-spec-button-shape-next--override-small-size-icon"]=CZ,Xj["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=R,Xj["yt-spec-button-shape-next--disable-text-ellipsis"]=ld,Xj["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=xb6(),Xj)),
style:function(){return aHp(X()).style},
onClick:function(AC){d==null||d(AC);A()&&(O==null||O(AC))},
disabled:p,ariaLabel:Y,toggleable:A,toggled:b,title:function(){var AC;return(AC=pp())!=null?AC:""},
visiblyDisabled:vb,ariaHidden:Kp,tabIndex:sM},_.Z(GYK,{data:x,hasIconLeading:N,hasIconLeadingTrailing:c,hasIconTrailing:h,iconButton:f,icon:sk,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:xB})))},"q");
$w.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var HYB=_.mO(function(p){var x=p.data;var F=p.id;var N=p.hidden;var h=p.disableUpgrade;var c=p.className;var M=p.icon;var f=p.secondaryIcon;var K=p.iconName;var t=p.secondaryIconName;p=_.a(_.hu(!1,void 0,"O7k8w"));var d=p.next().value,v=p.next().value,C=function(){var Q=_.J().resolve(_.Bw(_.dR));Q&&v(Q.isKeyBoardInUse())},X=function(){v(!1)};
p=_.oc(function(Q){if((h==null||!h())&&_.J().resolve(_.Bw(_.dR)))return Q.addEventListener("focusin",C),Q.addEventListener("focusout",X),function(){Q.removeEventListener("focusin",C);Q.removeEventListener("focusout",X)}});
return _.Z("yt-button-shape",{el:p,id:F,class:c,hidden:function(){return(N==null?void 0:N())||(h==null?void 0:h())}},_.Z(_.D9,{cond:function(){return!(h==null?0:h())},
then:function(){return _.Z($w,{data:x,icon:M,secondaryIcon:f,iconName:K,secondaryIconName:t,focusedOverride:d})}}))},"r");
_.S("web_wiz_button_shape")&&_.o7(HYB,"yt-button-shape",{props:{data:_.G2,id:_.G2,hidden:_.G2,disableUpgrade:_.G2,className:_.G2,icon:_.mJ,secondaryIcon:_.mJ,iconName:_.G2,secondaryIconName:_.G2},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss"])});var I3=function(){var p=_.m.apply(this,arguments)||this;p.keyboardFocused=!1;return p};
_.E(I3,_.m);I3.prototype.onFocus=function(){var p=_.J().resolve(_.Bw(_.dR));p&&(this.keyboardFocused=p.isKeyBoardInUse())};
I3.prototype.onBlur=function(){this.keyboardFocused=!1};
I3.prototype.renderIdom=function(){var p=this;if(this.data){var x=dbH(this.data,!!this.iconName),F=vKB(this.data);this.data.focused=this.keyboardFocused;EKJ(this.data,function(){var N;vl("yt-icon",{icon:p.iconName,active:(N=p.data)==null?void 0:N.toggled,size:x,style:"width: "+x+"px; height: "+x+"px;",iconFilter:F},VZ)},function(){var N;
vl("yt-icon",{icon:p.secondaryIconName,active:(N=p.data)==null?void 0:N.toggled,size:x,style:"width: "+x+"px; height: "+x+"px;",iconFilter:F},VZ)});
_.hG(this.hostElement,"yt-renderidom-finished")}};
_.R8.Object.defineProperties(I3,{template:{configurable:!0,enumerable:!0,get:function(){if(yxj===void 0){var p=document.createElement("template");_.g(p,"\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");
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);p.content.insertBefore(nTv().content.cloneNode(!0),p.content.firstChild);p.content.insertBefore(zCv().content.cloneNode(!0),p.content.firstChild);yxj=p}p=yxj;return p}}});
var $6=I3;$6.prototype.onBlur=$6.prototype.onBlur;$6.prototype.onFocus=$6.prototype.onFocus;_.B([_.u(lTJ),_.k("design:type",Object)],$6.prototype,"ytIdomTemplatingBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],$6.prototype,"data",void 0);_.B([_.H(),_.k("design:type",String)],$6.prototype,"iconName",void 0);_.B([_.H(),_.k("design:type",String)],$6.prototype,"secondaryIconName",void 0);_.B([_.H(),_.k("design:type",Object)],$6.prototype,"keyboardFocused",void 0);
_.B([_.V("focusin"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$6.prototype,"onFocus",null);_.B([_.V("focusout"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$6.prototype,"onBlur",null);$6=_.B([_.JZ({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.S("web_wiz_button_shape")})],$6);_.o7(_.mO(function(p){function x(){F().seconds&&c(ibp({seconds:Number(F().seconds)-Date.now()/1E3}))}
var F=p.targetTimestamp;p=p.className;var N=_.a(_.hu("",void 0,"U1Q8Ae")),h=N.next().value,c=N.next().value;_.d1(function(){x();var M=setInterval(function(){x()},1E3);
_.E_(function(){clearInterval(M)})});
return _.Z("yt-countdown",{class:_.$L("ytCountDownHost",p)},_.Z("div",null,h))},"s"),"yt-countdown",{props:{targetTimestamp:_.G2,
className:_.mJ}});_.nV=_.mO(function(p){var x=p.data;var F=p.className;var N=p.style;var h=p.useOutlinedIcon;var c=p.buttonOverrides;var M=p.animatedTextProps;var f=p.onClick;var K=_.oc(function(Y){return function(){B4D(_.l$(),Y)}}),t=function(){return x().iconName},d=function(){var Y=x();
var O=c==null?void 0:c(),Fw=M==null?void 0:M();if(Y){var R=QmE(Y.type);var ld=!!Y.title||!!Y.titleFormatted;var pp=!(!Y.iconName&&!Y.iconImage);ld=pp&&!ld?"icon-only":pp?Y.iconTrailing||Y.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;ld==="icon-only-40"&&(R="text");var Kp,sM=(Kp=O==null?void 0:O.disabled)!=null?Kp:Y.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||Y.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";Kp=Object;pp=Kp.assign;var np=Y.title,Jz=Y.titleFormatted;
Fw=Fw&&Fw.numberText&&!isNaN(Number(Fw.numberValue))?Fw:void 0;var Y$=Y.accessibilityText,xB=gKp(Y.style),qI=zqM(Y.state),RJ=smd(Y.buttonSize),Ik=XPz(Y,K,sM,f);sM=sM&&!Y.onDisabledTap;var vb=_.zT({elementsCommand:Y.onTap,forceNewState:!0});vb=vtJ(vb)?vb:void 0;var CZ=Y.customFontColor;var sk=Y.customBackgroundColor,Ov=Y.customBorderColor;CZ={color:CZ?_.QK(CZ):void 0,backgroundColor:sk?_.QK(sk):void 0,borderColor:Ov?_.QK(Ov):void 0};Y=pp.call(Kp,{},{buttonText:np,formattedButtonText:Jz,animatedTextProps:Fw,
accessibilityLabel:Y$,style:xB,type:R,state:qI,size:RJ,iconPosition:ld,onTap:Ik,disabled:sM,aTagConfig:vb,customColors:CZ,tooltipText:Y.tooltip},O)}else Y={style:"mono",type:"text",state:"active",size:"M"};Y.focused=Q();return Y},v=function(){return dbH(d(),!!x().iconName)};
p=_.a(_.hu(!1,void 0,"vozwtc"));var C=p.next().value,X=p.next().value,Q=C;p=_.h0(function(){var Y=_.J().resolve(_.Bw(_.dR));Y&&X(Y.isKeyBoardInUse());return!1});
C=_.h0(function(){X(!1);return!1});
_.rx(function(){var Y,O=_.r(x==null?void 0:(Y=x())==null?void 0:Y.onVisible,_.XY);O&&_.QE(O,{disableClickTracking:!0})});
var b=function(){if(t()){var Y,O={activeState:(h==null?0:h())?!1:d().toggled,animateIcon:N==null?void 0:(Y=N())==null?void 0:Y.animateIcon};O.iconSize=v();_.J().resolve(LPr)(t()||null,O)}else(Y=x().iconImage)&&XEB({sources:[Y]},{alt:"",targetWidth:v(),targetHeight:v(),preserveWidth:!0,preserveHeight:!0})},A=function(){return x().iconImage?{sources:[x().iconImage]}:void 0};
_.J9(function(){K.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var Y=x().targetId;Y&&_.kJI(_.l$(),Y,K.value)});
return _.Z("button-view-model",{el:K,class:_.$L("yt-spec-button-view-model",F),"on:focusin":p,"on:focusout":C},_.S("web_wiz_button_shape_bvm")?_.Z(_.D9,{cond:A,then:function(Y){return _.Z($w,{data:d,icon:function(){return _.Z(_.VE,{data:Y,alt:"",targetWidth:v,targetHeight:v,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.Z($w,{data:d,icon:function(){return _.Z(_.DS,{icon:t,active:function(){return(h==null?0:h())?!1:d().toggled},
animateIcon:function(){var Y;return!!(N==null?0:(Y=N())==null?0:Y.animateIcon)},
size:v})}})}}):_.Z(Mww,null,function(){var Y=d();
return _.Z(Lo,null,function(){EKJ(Y,b)})}))},"t");
_.nV.idomCompat={callbacks:{onClick:!0}};_.o7(_.mO(function(p){return _.Z("yt-button-view-model",{id:p.id,class:_.$L(p.scopingClassName,p.classes),icon:function(){var x;return(x=p.icon)==null?void 0:x.call(p)},
"dialog-dismiss":function(){var x;return((x=p.dialogDismiss)==null?0:x.call(p))?"":void 0}},_.Z(_.nV,{data:function(){var x;
return(x=p.data)==null?void 0:x.call(p)},
className:function(){var x;return(x=p.className)==null?void 0:x.call(p)},
style:function(){var x;return(x=p.style)==null?void 0:x.call(p)},
useOutlinedIcon:function(){var x;return(x=p.useOutlinedIcon)==null?void 0:x.call(p)},
buttonOverrides:function(){var x;return(x=p.buttonOverrides)==null?void 0:x.call(p)},
animatedTextProps:function(){var x;return(x=p.animatedTextProps)==null?void 0:x.call(p)},
onClick:function(x){var F;return(F=p.onClick)==null?void 0:F.call(p,x)}}))},"u"),"yt-button-view-model",{props:{data:_.G2,
className:_.G2,style:_.G2,useOutlinedIcon:_.G2,buttonOverrides:_.G2,animatedTextProps:_.G2,onClick:_.mJ,scopingClassName:_.G2,id:_.G2,icon:_.G2,dialogDismiss:_.G2,classes:_.G2}});var ej=function(){var p=_.m.apply(this,arguments)||this;p.isGoalActive=!0;return p};
_.E(ej,_.m);ej.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
ej.prototype.progressBarChanged=function(){var p=_.n(this.hostElement).querySelector("#progress-bar-progress"),x,F,N,h=(N=Number((x=this.creatorGoalState)==null?void 0:x.currentGoalCount)/Number((F=this.creatorGoalState)==null?void 0:F.totalGoalCount)*100)!=null?N:0,c;p.style.width=((c=Math.min(h,100))!=null?c:0)+"%"};
ej.prototype.goalStateChanged=function(){var p;this.isGoalActive=((p=this.creatorGoalState)==null?void 0:p.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var x;p={"--yt-progress-bar-color":myE((x=this.creatorGoalState)==null?void 0:x.progressBarColor)};_.eV(this.hostElement,p)};
ej.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.R8.Object.defineProperties(ej.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var p;return this.isGoalActive&&!((p=this.creatorGoalState)==null||!p.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.creatorGoalState)==null?0:p.endTimestampMs){var x;p=Number((x=this.creatorGoalState)==null?void 0:x.endTimestampMs)/1E3;return{seconds:String(p)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.creatorGoalState)==null?0:p.themedTargetImage){var x;p=_.r((x=this.creatorGoalState)==null?void 0:x.themedTargetImage,rAm);return this.isAppDarkTheme()?p==null?void 0:p.imageDark:p==null?void 0:p.imageLight}}}});
_.R8.Object.defineProperties(ej,{template:{configurable:!0,enumerable:!0,get:function(){return afZ()}}});
var pX=ej;pX.prototype.goalStateChanged=pX.prototype.goalStateChanged;pX.prototype.progressBarChanged=pX.prototype.progressBarChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],pX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.z2),_.k("design:type",Object)],pX.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],pX.prototype,"ytRendererBehavior",void 0);
_.B([_.H({selectorArgs:["data.creatorGoalEntityKey"],selector:function(p,x){return _.M4(p.entities,"creatorGoalEntity",x)}}),
_.k("design:type",Object)],pX.prototype,"creatorGoalState",void 0);_.B([_.H(),_.k("design:type",Object)],pX.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],pX.prototype,"isGoalActive",void 0);_.B([_.w("creatorGoalState","isGoalActive"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],pX.prototype,"shouldShowCountdown",null);_.B([_.w("creatorGoalState"),_.k("design:type",Object),_.k("design:paramtypes",[])],pX.prototype,"endTimestamp",null);
_.B([_.w("creatorGoalState"),_.k("design:type",Object),_.k("design:paramtypes",[])],pX.prototype,"targetIconThemedImage",null);_.B([_.W("creatorGoalState.currentGoalCount"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pX.prototype,"progressBarChanged",null);_.B([_.W("creatorGoalState.creatorGoalState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pX.prototype,"goalStateChanged",null);
pX=_.B([_.JZ({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],pX);_.P(pX,"yt-creator-goal-progress-flow-view-model",function(){return afZ()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var my6;var oTJ;var OYJ=function(){return _.m.apply(this,arguments)||this};
_.E(OYJ,_.m);OYJ.prototype.attached=function(){var p,x,F;if(this==null?0:(p=this.data)==null?0:(x=p.pdgPurchasedBumperLoggingDirectives)==null?0:(F=x.loggingDirectives)==null?0:F.trackingParams){var N,h,c;bIp(this==null?void 0:(N=this.data)==null?void 0:(h=N.pdgPurchasedBumperLoggingDirectives)==null?void 0:(c=h.loggingDirectives)==null?void 0:c.trackingParams)}};
OYJ.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
var x4=OYJ;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],x4.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],x4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],x4.prototype,"data",void 0);x4=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],x4);
_.P(x4,"yt-live-chat-item-bumper-view-model",function(){if(oTJ===void 0){var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;my6===void 0&&(my6=document.createElement("template"));var N=my6;F.call(x,N.content.cloneNode(!0),p.content.firstChild);oTJ=p}p=oTJ;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var jF6;var LIk;_.Ht=function(p,x){this.data=p;this.actions=x;this.data=p;this.actions=x};
_.bT=function(){};_.FU={};_.FU.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(p,x){AEm(this.hostElement,p,x)},
getNavigationEndpointPopupAction:function(p){return ui6(p,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(p,x){YIZ(this.hostElement,p,x,this.openPopupConfig)}};var LkJ=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.NY={};
_.NY.YtEndpointBehavior=[_.FU.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.sd("openPopupConfig");(this.useClickHandler=_.nt("useClickHandler",!1))?this.listen(this.hostElement,"click","onEndpointClick_"):(this.listen(this.hostElement,"tap","onEndpointTap_"),this.listen(this.hostElement,"touchend","onEndpointTouchEnd_"));this.listen(this.hostElement,"touchstart","onEndpointTapStart_");this.listen(this.hostElement,"mousedown",
"onEndpointTapStart_")},
onEndpointClick_:function(p){VWd(this.hostElement,p,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(p){var x=this.hostElement,F=this.openPopupConfig,N=this.disableCommandHandlerOverride;N=N===void 0?!1:N;var h=wPZ(p);if(h){h.href&&nR(h.href);var c=p.detail;var M=c.sourceEvent;c=c.preventer;M=M.button!==void 0?M.button===0&&!J0(M):c?!J0(c):!0;h.data&&M&&GC$(x,h,p,F,N)}},
onEndpointTouchEnd_:function(p){J0(p)||wPZ(p)&&p.preventDefault()},
onEndpointTapStart_:function(p){OI6(p)}}];var PJE="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),Bzz=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var PRm={};PRm.YtPlaintextBehavior=[_.C7,{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(p){p.preventDefault();p=p.clipboardData.getData("text/plain");document.execCommand("insertText",!1,p)},
preventRichTextFormatting_:function(p){_.qL&&(p=p.detail.keyboardEvent,p.stopImmediatePropagation(),p.preventDefault())}}];var Trv;var Brj;var RCD=function(){var p=_.m.apply(this,arguments)||this;p.ignoreShadyDom=!1;p.hasChange_=!1;p.hasSetTitle_=!1;p.useIOObserverForVisibilityLogging_=_.S("kevlar_use_vimio_behavior")&&_.sd("INNERTUBE_CLIENT_NAME")==="WEB";p.ytFormattedStringObserverHandlerKeys_=void 0;return p};
_.E(RCD,_.m);_.l=RCD.prototype;_.l.created=function(){this.useIOObserverForVisibilityLogging_=_.S("kevlar_use_vimio_behavior")&&_.sd("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.l.ready=function(){_.sd("HTML_DIR")==="rtl"?this.useMixedDirectionFormattedStrings?this.hostElement.dir="rtl":this.respectHtmlDir||(this.hostElement.dir="auto"):this.respectLangDir&&(this.hostElement.dir="auto",this.hostElement.style.textAlign="left");this.enableContentEditableChanged_()};
_.l.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.l.detached=function(){this.unobserveIOObservers_()};
_.l.clearContents_=function(){for(var p=this.getRoot(),x=p.lastChild;x&&x.tagName!=="STYLE";){try{p.removeChild(x)}catch(F){break}x=p.lastChild}};
_.l.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var p=_.a(this.ytFormattedStringObserverHandlerKeys_),x=p.next();!x.done;x=p.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(x.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.l.resetForAttributedString=function(){var p=this.getRoot();!p.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),p.appendChild(this.ytAttributedStringElementRef))};
_.l.resetForFormattedString=function(){var p=this.getRoot(),x=p.querySelector("yt-attributed-string");x&&(this.ytAttributedStringElementRef=p.removeChild(x))};
_.l.textChanged=function(){this.textChanged_(this.text)};
_.l.textChanged_=function(p){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!p||!p.runs&&!p.simpleText;if(_.S("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var x=this.hostElement.firstChild;x&&x.nodeName==="FONT";){var F=x;x=x.nextSibling;this.hostElement.removeChild(F)}x=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
F=p.simpleText;var N;!F&&((N=p.runs)==null?void 0:N.length)===1&&this.isSimpleString_(p.runs[0])&&(F=p.runs[0].text);F!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.sd("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(F!==void 0){try{x.textContent=F}catch(h){}x.textContent||(this.isEmpty=!0)}else p=p.runs,F!==void 0&&(p=[{text:F}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),p&&this.updateText_(p),
x.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.l.ellipsisTruncateChanged_=function(){!this.ellipsisTruncate||this.hostElement.title&&!this.hasSetTitle_?this.hasSetTitle_&&(this.hostElement.removeAttribute("title"),this.hasSetTitle_=!1):(this.hostElement.title=this.getRawText(),this.hasSetTitle_=!0)};
_.l.computeAriaLabel_=function(p){return p};
_.l.computeEllipsisTruncateStyling=function(p,x){return p&&!x};
_.l.computeUseAttributedString=function(p){return _.S("web_replace_formatted_with_attributed_string")&&FrE(p)&&!this.disableAttributedString&&!this.enableContentEditable};
_.l.setNodeStyle_=function(p,x){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.S("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?x.removeAttribute("dir"):x.setAttribute("dir","auto");x.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");x.style.color="";var F=null;this.noStyles||(p.bold&&(x.classList.add("bold"),F="bold"),p.deemphasize&&(x.classList.add("deemphasize"),F="deemphasize"),p.italics&&x.classList.add("italic"),
p.strikethrough&&x.classList.add("strikethrough"),p.errorUnderline&&(x.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),p.bracket&&x.classList.add("bracket"),p.textColor&&(x.style.color=_.gX(p.textColor)));F!==x.getAttribute("style-target")&&(F?x.setAttribute("style-target",F):x.removeAttribute("style-target"))};
_.l.setUpVisibilityLogging_=function(p,x){var F=this;this.setNodeTrackingParams_(p,x);var N;((N=x.data)==null?0:N.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(p=this.ytRendererBehavior.visibilityObserver.observe(x,function(h){var c=F.ytRendererBehavior.getVisibilityLogger();c&&c.reportShown(h)},this.ytRendererBehavior.visibilityOptionVisible_),x=this.ytRendererBehavior.visibilityObserver.observe(x,function(h){var c=F.ytRendererBehavior.getVisibilityLogger();
c&&c.reportHidden(h)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(p),this.ytFormattedStringObserverHandlerKeys_.push(x))};
_.l.setNodeTrackingParams_=function(p,x){x.data||(x.data={});if((p=p.loggingDirectives?p.loggingDirectives.trackingParams:null)||x.data.trackingParams)x.data.trackingParams=p};
_.l.computeHasLinkOnly_=function(p){return!(!p||p.length!==1||this.noEndpoints||!p[0].navigationEndpoint)};
_.l.getRoot=function(){var p=this.buildScopeDomOptions();return this.enableContentEditable?_.n(_.n(this.hostElement,p).querySelector("[contenteditable]")):_.n(this.hostElement,p)};
_.l.fixContenteditableScope=function(){var p=function(x){x&&(x.nodeType===1&&x.classList&&(x.classList.add("style-scope"),x.classList.add("yt-formatted-string")),x.childNodes&&x.childNodes.forEach(function(F){p(F)}))};
p(this.getRoot())};
_.l.updateText_=function(p){for(var x=p.length,F=this.getRoot(),N=F.firstChild;N&&N.nodeName==="STYLE";)N=N.nextSibling;for(var h=0;h<x&&N;){var c=p[h],M=_.S("remove_cr_char")&&c.text?c.text.replace("\r",""):c.text;if(this.isSimpleString_(c)&&!this.useMixedDirectionFormattedStrings)if(N.nodeName==="#text"){N.textContent!=M&&(N.textContent=M);h++;N=N.nextSibling;continue}else break;if(_.r(c,r$))break;else if(!this.noEndpoints&&c.navigationEndpoint){if(N.nodeName!=="A")break;this.setDataOnAnchor_(N,
c.navigationEndpoint)}else if(N.nodeName!=="SPAN")break;this.setNodeStyle_(c,N);this.setUpVisibilityLogging_(c,N);N.textContent!=M&&(N.textContent=M);h++;N=N.nextSibling}if(N)for(c=F.lastChild,N=h?N.previousSibling:null;c&&c!=N;){try{F.removeChild(c)}catch(f){break}c=F.lastChild}h!==x&&this.addTextNodes_(p,h)};
_.l.addTextNodes_=function(p,x){for(var F=document.createDocumentFragment(),N=p.length;x<N;x++){var h=p[x],c=_.S("remove_cr_char")&&h.text?h.text.replace("\r",""):h.text;if(this.isSimpleString_(h)&&!this.useMixedDirectionFormattedStrings)F.appendChild(document.createTextNode(c));else{var M=_.r(h,r$);if(M){if(M.image){var f=document.createElement("img");M.isCustomEmoji||f.classList.add("small-emoji");f.classList.add("emoji");M.isCustomEmoji&&(f.dataset.emojiId=M.emojiId);f.src=_.Ou(M.image.thumbnails,
this.emojiSize);(h=this.get("image.accessibility.accessibilityData.label",M))?f.alt=h:M.shortcuts&&M.shortcuts.length>0?f.alt=M.shortcuts[0]:M.emojiId&&(f.alt=M.emojiId);F.appendChild(f);this.hasEmoji=!0}}else!this.noEndpoints&&h.navigationEndpoint?(f=document.createElement("a"),f.classList.add("yt-simple-endpoint"),f.setAttribute("spellcheck","false"),this.setDataOnAnchor_(f,h.navigationEndpoint)):f=document.createElement("span"),this.setNodeStyle_(h,f),this.setUpVisibilityLogging_(h,f),f.appendChild(document.createTextNode(c)),
F.appendChild(f)}}this.getRoot().appendChild(F)};
_.l.isSimpleString_=function(p){return(this.noEndpoints||!p.navigationEndpoint)&&!_.r(p,r$)&&(this.noStyles||!(p.bold||p.deemphasize||p.italics||p.strikethrough||p.errorUnderline||p.bracket||p.textColor))&&!p.loggingDirectives};
_.l.getRawText=function(){return _.Pi(this.text)};
_.l.getFirstRunText=function(){var p;if(((p=this.text)==null?0:p.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.l.setFirstRunText=function(p){var x;((x=this.text)==null?0:x.runs)&&this.text.runs[0]&&(this.text.runs[0].text=p,this.textChanged_(this.text))};
_.l.setDataOnAnchor_=function(p,x){var F=this;!_.S("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(x)||this.isSignalServiceEndpoint_(x)?(p.onclick=this.serviceEndpointHandler_(x),Wz(p,"#")):EwB({text:this.text,command:x},function(){w2$(p,x,F.target)})};
_.l.isServiceEndpoint_=function(p){var x;return!((x=_.r(p==null?void 0:p.commandMetadata,_.eq))==null||!x.sendPost)};
_.l.isSignalServiceEndpoint_=function(p){return!!_.r(p,_.dH)};
_.l.serviceEndpointHandler_=function(p){var x=this;return function(F){_.fc(x.hostElement,[p]);F.preventDefault()}};
_.l.overrideAriaLabelChanged_=function(){var p=this.getRoot();this.enableContentEditable&&p&&p.setAttribute("aria-label",this.overrideAriaLabel)};
_.l.enableContentEditableChanged_=function(){var p=this,x=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),x=_.n(this.hostElement,x),!x.lastChild||x.lastChild instanceof HTMLElement&&x.lastChild.id!=="contenteditable-root"){var F=document.createElement("div");F.id="contenteditable-root";F.setAttribute("contenteditable","true");F.setAttribute("dir","auto");F.onfocus=function(){p.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
x.appendChild(F);this.overrideAriaLabel&&F.setAttribute("aria-label",this.overrideAriaLabel)}}else F=_.Ub(this.hostElement).firstChild,F instanceof HTMLElement&&F.id==="contenteditable-root"&&_.n(this.hostElement,x).removeChild(F)};
_.l.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.l.getNodesForVisibilityLogging_=function(){return _.cW(this.getRoot().childNodes,function(p){var x;return!((x=p.data)==null||!x.trackingParams)})};
_.l.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.l.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var p=this.ytRendererBehavior.getVisibilityLogger();p&&this.getNodesForVisibilityLogging_().forEach(function(x){p.reportShown(x)})}};
_.l.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var p=this.ytRendererBehavior.getVisibilityLogger();p&&this.getNodesForVisibilityLogging_().forEach(function(x){p.reportHidden(x)})}};
_.R8.Object.defineProperties(RCD.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.S("enable_mixed_direction_formatted_strings")}}});
var hM=RCD;hM.prototype.enableContentEditableChanged_=hM.prototype.enableContentEditableChanged_;hM.prototype.overrideAriaLabelChanged_=hM.prototype.overrideAriaLabelChanged_;hM.prototype.ellipsisTruncateChanged_=hM.prototype.ellipsisTruncateChanged_;hM.prototype.textChanged=hM.prototype.textChanged;_.B([_.u(PRm.YtPlaintextBehavior),_.k("design:type",Object)],hM.prototype,"ytPlaintextBehavior",void 0);
_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],hM.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],hM.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],hM.prototype,"text",void 0);_.B([_.H(),_.k("design:type",Boolean)],hM.prototype,"noEndpoints",void 0);_.B([_.H(),_.k("design:type",Boolean)],hM.prototype,"noStyles",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],hM.prototype,"isDarkTheme",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],hM.prototype,"splitLines",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],hM.prototype,"forceDefaultStyle",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],hM.prototype,"ellipsisTruncate",void 0);_.B([_.H(),_.k("design:type",Object)],hM.prototype,"ignoreShadyDom",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.k("design:type",Boolean)],hM.prototype,"ellipsisTruncateStyling",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.k("design:type",String)],hM.prototype,"ariaLabel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],hM.prototype,"isEmpty",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.k("design:type",Boolean)],hM.prototype,"hasLinkOnly_",void 0);_.B([_.H(),_.k("design:type",Boolean)],hM.prototype,"hasEmoji",void 0);_.B([_.H(),_.k("design:type",Boolean)],hM.prototype,"disableAttributedString",void 0);_.B([_.H(),_.k("design:type",Boolean)],hM.prototype,"isOverlay",void 0);_.B([_.H(),_.k("design:type",Boolean)],hM.prototype,"linkInheritColor",void 0);
_.B([_.H(),_.k("design:type",Boolean)],hM.prototype,"noPreWrap",void 0);_.B([_.H(),_.k("design:type",Boolean)],hM.prototype,"userInput",void 0);_.B([_.H({value:16}),_.k("design:type",Number)],hM.prototype,"emojiSize",void 0);_.B([_.H(),_.k("design:type",String)],hM.prototype,"target",void 0);_.B([_.H(),_.k("design:type",Boolean)],hM.prototype,"enableContentEditable",void 0);_.B([_.H(),_.k("design:type",String)],hM.prototype,"overrideAriaLabel",void 0);
_.B([_.H(),_.k("design:type",Boolean)],hM.prototype,"respectHtmlDir",void 0);_.B([_.H(),_.k("design:type",Boolean)],hM.prototype,"respectLangDir",void 0);_.B([_.w("plaintextOnly"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],hM.prototype,"useMixedDirectionFormattedStrings",null);_.B([_.H({computed:"computeUseAttributedString(text)"}),_.k("design:type",Boolean)],hM.prototype,"useYtAttributedString",void 0);
_.B([_.W("text"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hM.prototype,"textChanged",null);_.B([_.W("ellipsisTruncate"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hM.prototype,"ellipsisTruncateChanged_",null);_.B([_.W("overrideAriaLabel"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hM.prototype,"overrideAriaLabelChanged_",null);
_.B([_.W("enableContentEditable"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hM.prototype,"enableContentEditableChanged_",null);hM=_.B([_.JZ({is:"yt-formatted-string",disableElementRegistration:!0})],hM);
_.P(hM,"yt-formatted-string",function(){if(Brj===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Trv===void 0&&(Trv=document.createElement("template"));var N=Trv;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Brj=p}p=Brj;return p});var kYJ;var Uym;var iYb;var IfD;var $yn=function(){var p=_.m.apply(this,arguments)||this;p.focused=!1;p.disabled=!1;p.isOverlay=!1;return p};
_.E($yn,_.m);$yn.prototype.triggerDown=function(){if(!this.disabled){_.iX(this.hostElement,"down",!0);var p;(p=this.JSC$11666_currentAnimation)==null||p.cancel()}};
$yn.prototype.triggerUp=function(){if(!this.disabled){_.iX(this.hostElement,"down",!1);var p=this.JSC$11666_fillElement;var x=this.JSC$11666_strokeElement;typeof GroupEffect==="function"?(p=new GroupEffect([ROZ(p),kdp(x)]),p=new Animation(p,document.timeline)):p=new k6(p,x);this.JSC$11666_currentAnimation=p;var F;(F=this.JSC$11666_currentAnimation)==null||F.play()}};
var lu=$yn;_.B([_.Ff(".stroke"),_.k("design:type",HTMLElement)],lu.prototype,"JSC$11666_strokeElement",void 0);_.B([_.Ff(".fill"),_.k("design:type",HTMLElement)],lu.prototype,"JSC$11666_fillElement",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],lu.prototype,"focused",void 0);_.B([_.H(),_.k("design:type",Object)],lu.prototype,"disabled",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],lu.prototype,"isOverlay",void 0);
lu=_.B([_.JZ({is:"yt-interaction",disableElementRegistration:!0})],lu);
_.P(lu,"yt-interaction",function(){if(IfD===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;iYb===void 0&&(iYb=document.createElement("template"));var N=iYb;F.call(x,N.content.cloneNode(!0),p.content.firstChild);IfD=p}p=IfD;return p},{mode:2});var eCD=function(){return _.m.apply(this,arguments)||this};
_.E(eCD,_.m);_.l=eCD.prototype;_.l.ready=function(){var p=this,x=_.n(this.hostElement).querySelector("#button");x.addEventListener("focus",function(){fFI||(fFI=new D5D);p.keyboardFocused=fFI.isKeyBoardInUse()});
x.addEventListener("blur",function(){p.keyboardFocused=!1;p.rippleUp_()})};
_.l.computeTabIndex_=function(p){return p?-1:0};
_.l.computeButtonAriaPressed_=function(p){if(this.toggleable)return p?"true":"false"};
_.l.rippleDown_=function(){_.n(this.hostElement).querySelector("#interaction").triggerDown()};
_.l.rippleUp_=function(){_.n(this.hostElement).querySelector("#interaction").triggerUp()};
_.l.onPressedChanged_=function(){var p=_.Ub(_.n(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.Ub(_.n(this.hostElement).querySelector("#button")).children[0];p&&(p.active=this.pressed)};
var cn=eCD;cn.prototype.onPressedChanged_=cn.prototype.onPressedChanged_;cn.prototype.rippleUp_=cn.prototype.rippleUp_;cn.prototype.rippleDown_=cn.prototype.rippleDown_;_.B([_.H(),_.k("design:type",String)],cn.prototype,"label",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],cn.prototype,"disabled",void 0);_.B([_.H(),_.k("design:type",Boolean)],cn.prototype,"pressed",void 0);_.B([_.H(),_.k("design:type",Object)],cn.prototype,"toggleable",void 0);
_.B([_.H(),_.k("design:type",Boolean)],cn.prototype,"untabbable",void 0);_.B([_.H(),_.k("design:type",Boolean)],cn.prototype,"keyboardFocused",void 0);_.B([_.V("down"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cn.prototype,"rippleDown_",null);_.B([_.V("up"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cn.prototype,"rippleUp_",null);
_.B([_.W("pressed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cn.prototype,"onPressedChanged_",null);cn=_.B([_.JZ({is:"yt-icon-button",disableElementRegistration:!0})],cn);
_.P(cn,"yt-icon-button",function(){if(Uym===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;kYJ===void 0&&(kYJ=document.createElement("template"));var N=kYJ;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Uym=p}p=Uym;return p},{mode:2});var p36=_.B$(["aria-"]),a0={};a0.YtRenderButtonBehavior=[_.e.YtRendererBehavior,_.NY.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!!_.J().resolve(_.Bw(_.dR))&&_.S("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 p=this.computeHref_(this.endpoint,!0);p?Wz(this.elements_.endpoint,p):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){p=this.buttonClass.split(" ");p=_.a(p);for(var x=p.next();!x.done;x=p.next())x=x.value,_.iX(this.hostElement,x,!0),this.elements_.button&&_.iX(this.elements_.button,x,!0),this.elements_.text&&_.iX(this.elements_.text,x,!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&&(p=null,this.buttonAccessibility&&(p=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=p:p?_.$E([_.ei(p36)],this.elements_.button,"aria-label",p):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var p=_.J().resolve(_.Bw(_.dR));p&&(this.keyboardFocused=p.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.OB("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,_.Ef(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Ef(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(p,x){if(x)for(p=x.split(" "),p=_.a(p),x=p.next();!x.done;x=p.next())x=x.value,_.iX(this.hostElement,x,!1),this.elements_.button&&_.iX(this.elements_.button,x,!1),this.elements_.text&&_.iX(this.elements_.text,x,!1)},
buttonIconChanged_:function(p){this.elements_.icon?p?(this.elements_.icon.icon=p,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Ef(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.Is(this.hostElement,"is-paper-button-with-icon",!1)):p&&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"&&_.Ef(this.elements_.button).appendChild(this.elements_.icon):_.Ef(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.Is(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(p){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,p){var x=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(p){case "yt_icon_button_with_label":x=!0;_.iX(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();p=_.Ef(this.elements_.button).firstElementChild;
this.elements_.icon=p;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Ef(this.elements_.endpoint).appendChild(this.elements_.button);_.Ef(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.OB("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;_.Ef(this.elements_.button).appendChild(this.elements_.text);_.Ef(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":x=!0,this.elements_.button=this.getYtIconButton_(),p=_.Ef(this.elements_.button).firstElementChild,this.elements_.icon=p,this.setIconActive_(this.elements_.icon),
_.Ef(this.elements_.endpoint).appendChild(this.elements_.button)}_.Is(this.hostElement,"is-icon-button",x);_.Is(this.hostElement,"is-paper-button",!x);_.Is(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 F;_.n((F=this.container.hostElement)!=null?F:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Ef(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(p){if(p!=void 0||this.disabled)this.disabled=p,this.elements_.button&&(this.elements_.button.disabled=p)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(p){_.S("kevlar_system_icons")&&p&&this.data&&(this.data.isSelected!==void 0?p.active=this.data.isSelected:this.data.isToggled!==void 0&&(p.active=this.data.isToggled))},
observeBasicPalette_:function(p){_.S3(this.hostElement,p)},
disabledChanged_:function(p){this.data&&this.set("data.isDisabled",p)},
onYtButtonTap_:function(p){if(this.disabled)p.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.fc(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(p=this.disableCommandHandlerOverride,!this.data||!this.data.command||p||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.S("handle_service_request_actions")||_.fc(this.hostElement,[this.serviceEndpoint]),
_.hG(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.S("handle_service_request_actions")?(p=[],this.serviceEndpoint&&p.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&p.push(this.data.command),p.length&&_.Kc(this.hostElement,p,this.hostElement)):this.data&&this.data.command&&(p=this.data.command,p.accountUnlinkCommand||p.accountLinkCommand||p.insertAdCommand||p.insertHighlightMarkerCommand||
p.createLivestreamHighlightClipCommand||p.getVideoUploadFeedbackCommand||p.musicDeletePrivatelyOwnedEntityCommand||p.ypcCancelRecurrenceEndpoint||p.getMultiSelectCommandEndpoint?_.fc(this.hostElement,[p]):_.Kc(this.hostElement,[p],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 p,x=_.n((p=this.container.hostElement)!=null?p:this.container);x.lastChild&&x.lastChild.tagName!="STYLE";)try{x.removeChild(x.lastChild)}catch(F){break}},
getYtIconButton_:function(){var p=this.reuseEnabled_()?_.OB("yt-icon-button"):document.createElement("yt-icon-button"),x=_.Ef(p).firstElementChild;if(x&&x.is!="yt-icon"){for(x=_.Ef(p);x.lastChild;)x.removeChild(x.lastChild);x=null}x||(x=this.getIcon_(),this.setIconActive_(x),_.Ef(p).appendChild(x));return p},
reuseEnabled_:function(){return _.S("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.OB("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.OB("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.xZJ={};
_.xZJ.YtButtonBehavior=[a0.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var p=this.data;p&&(this._setEndpoint(this.computeEndpoint_(p)),this._setServiceEndpoint(this.computeServiceEndpoint_(p)),this._setCommand(this.computeCommand_(p)),this._setButtonIcon(this.computeButtonIcon_(p)),this._setButtonText(this.computeButtonText_(p,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(p)),this._setButtonTooltip(this.computeTooltip_(p)),this._setButtonClass(this.computeButtonClass_(p)),this._setIconPositionType(this.computeIconPositionType_(p)),this.updateRenderedElements())},
setPressedState:function(p){var x;if((x=this.elements_)==null?0:x.button)this.elements_.button.pressed=!!p},
computeIconPositionType_:function(p){return p&&p.iconPosition||null},
computeEndpoint_:function(p){var x=p&&p.navigationEndpoint,F=this.get("data.command.commandMetadata.webCommandMetadata.url"),N=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return x?x:p&&p.command&&p.command.modalEndpoint?p.command:F&&!N&&p.command?p.command:null},
computeServiceEndpoint_:function(p){var x=p&&p.serviceEndpoint,F=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return x?x:F&&p.command?p.command:null},
computeCommand_:function(p){return p&&p.command||null},
computeButtonIcon_:function(p){return p&&p.icon&&p.icon.iconType?_.eA(p.icon.iconType):null},
computeButtonText_:function(p,x){return!x&&p&&p.text||null},
computeAccessibility_:function(p){return this.get("accessibilityData.accessibilityData",p)||p&&p.accessibility||(p&&p.text?{label:this.getSimpleString(p.text)}:null)},
computeTooltip_:function(p){return p?p.isDisabled&&p.disabledTooltip||p.tooltip||null:null},
computeButtonClass_:function(p){var x=p&&p.style?p.style.toLowerCase().replace(/_/g,"-")+" ":"";x+=p&&p.size?p.size.toLowerCase().replace(/_/g,"-")+" ":"";p.colorData&&p.colorData.basicColorPaletteData&&p.colorData.basicColorPaletteData.borderColor&&(x+="palette-with-border");return x.trim()}}];var r5={};var Fr6;var N3k;var hGv,lzm=function(){return hGv!==void 0?hGv:hGv=document.createElement("template")};
document.head.appendChild(lzm().content);var csl;var azk,MJI=function(){return azk!==void 0?azk:azk=document.createElement("template")};
document.head.appendChild(MJI().content);var DZk;var fzk,Krm=function(){return fzk!==void 0?fzk:fzk=document.createElement("template")};
document.head.appendChild(Krm().content);var qGD;var Z9n=document.head,tJn=Z9n.appendChild,dZK;if(qGD===void 0){var vtk=document.createElement("template");_.g(vtk,"\x3c!--css-build:shady--\x3e");vtk.content.insertBefore(Krm().content.cloneNode(!0),vtk.content.firstChild);qGD=vtk}dZK=qGD;tJn.call(Z9n,dZK.content);var JsJ=document.head,Cyb=JsJ.appendChild,SGK;if(DZk===void 0){var rsv=document.createElement("template");_.g(rsv,"\x3c!--css-build:shady--\x3e");rsv.content.insertBefore(MJI().content.cloneNode(!0),rsv.content.firstChild);DZk=rsv}SGK=DZk;Cyb.call(JsJ,SGK.content);var EtJ=document.head,X3n=EtJ.appendChild,gtJ;if(csl===void 0){var Qlv=document.createElement("template");_.g(Qlv,"\x3c!--css-build:shady--\x3e");Qlv.content.insertBefore(lzm().content.cloneNode(!0),Qlv.content.firstChild);csl=Qlv}gtJ=csl;X3n.call(EtJ,gtJ.content);_.Ei("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");var zGb=_.S("web_button_rework")&&_.nt("BUTTON_REWORK")||_.S("web_button_rework_with_live"),MY=function(){return _.m.apply(this,arguments)||this};
_.E(MY,_.m);MY.prototype.created=function(){this.openPopupConfig=_.sd("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
MY.prototype.onYtNavigate_=function(p){var x=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(p.detail.endpoint);x&&(this.ytOpenPopupBehavior.openPopup(x),p.stopPropagation(),p.preventDefault())};
_.R8.Object.defineProperties(MY,{template:{configurable:!0,enumerable:!0,get:function(){if(N3k===void 0){var p=document.createElement("template");_.g(p,"\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");p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);
var x=p.content,F=x.insertBefore;Fr6===void 0&&(Fr6=document.createElement("template"));var N=Fr6;F.call(x,N.content.cloneNode(!0),p.content.firstChild);N3k=p}p=N3k;return p}}});
_.Dy=MY;_.Dy.prototype.onYtNavigate_=_.Dy.prototype.onYtNavigate_;_.B([_.u(_.FU.YtOpenPopupBehavior),_.k("design:type",Object)],_.Dy.prototype,"ytOpenPopupBehavior",void 0);_.B([_.u(_.xZJ.YtButtonBehavior),_.k("design:type",Object)],_.Dy.prototype,"ytButtonBehavior",void 0);_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],_.Dy.prototype,"onYtNavigate_",null);
_.Dy=_.B([_.JZ({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:zGb})],_.Dy);var slB;var ntB=_.S("web_button_rework")&&_.nt("BUTTON_REWORK")||_.S("web_button_rework_with_live"),fX=function(){var p=_.m.apply(this,arguments)||this;p.isPressed=!1;p.forceIconButton=!1;p.forceIconOnly=!1;p.forceModernIconButton=!1;p.skipCommandHandling=!1;p.alignByText=!1;p.fitToVisibleBounds=!0;p.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};p.onTap=function(x){_.hG(p.hostElement,"yt-service-request-sent-button-renderer",x)};
return p};
_.E(fX,_.m);_.l=fX.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.l.onClick=function(p){var x,F=this.disabled||((x=this.data)==null?void 0:x.isDisabled);x=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");F&&x&&p.stopPropagation()};
_.l.computeIcon=function(){var p,x,F=(p=this.data)==null?void 0:(x=p.icon)==null?void 0:x.iconType;if(F)return _.eA(F)};
_.l.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.l.handleUpdateButtonAction=function(p){p=_.r(p,ZFZ);var x=_.r(p==null?void 0:p.updatedButton,_.AS);if(this.data&&p&&x){var F=this.data;F.targetId&&p.targetId&&F.targetId===p.targetId&&(this.data=x)}};
_.R8.Object.defineProperties(fX.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var p=this;if(this.data){var x=$br({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.hG(p.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.hG(p.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});x.alignByText=this.alignByText;return x}}}});
_.R8.Object.defineProperties(fX,{template:{configurable:!0,enumerable:!0,get:function(){if(slB===void 0){var p=document.createElement("template");_.g(p,'\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>');slB=p}p=slB;return p}}});
var KX=fX;KX.prototype.onClick=KX.prototype.onClick;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],KX.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],KX.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],KX.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],KX.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],KX.prototype,"isPressed",void 0);_.B([_.H(),_.k("design:type",Object)],KX.prototype,"forceIconButton",void 0);_.B([_.H(),_.k("design:type",Object)],KX.prototype,"forceIconOnly",void 0);_.B([_.H(),_.k("design:type",Object)],KX.prototype,"forceModernIconButton",void 0);_.B([_.H(),_.k("design:type",Object)],KX.prototype,"skipCommandHandling",void 0);_.B([_.H(),_.k("design:type",Object)],KX.prototype,"alignByText",void 0);
_.B([_.H(),_.k("design:type",Object)],KX.prototype,"buttonTooltipPosition",void 0);_.B([_.H(),_.k("design:type",Object)],KX.prototype,"fitToVisibleBounds",void 0);_.B([_.H({computed:"computeTooltip(data)"}),_.k("design:type",Object)],KX.prototype,"tooltip",void 0);_.B([_.H(),_.k("design:type",Object)],KX.prototype,"overrides",void 0);_.B([_.H(),_.k("design:type",Boolean)],KX.prototype,"disabled",void 0);
_.B([_.V("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],KX.prototype,"onClick",null);_.B([_.w("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.k("design:type",Object),_.k("design:paramtypes",[])],KX.prototype,"computedButtonShape",null);
KX=_.B([_.JZ({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!ntB,cssBuildOptOut:!0}),_.JZ({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!ntB,cssBuildOptOut:!0})],KX);var ysB;var b9B;var AsD=function(){var p=_.m.apply(this,arguments)||this;p.empty_=!0;p.loadTime=Infinity;p.pendingPaint=!1;p.hasChange_=!1;p.oldThumbnail_=null;p.oldDelayedSrc_="";p.objectURL_=null;return p};
_.E(AsD,_.m);_.l=AsD.prototype;_.l.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.l.ready=function(){var p=this.shouldShowPlaceholder_();_.iX(this.hostElement,"no-transition",!0);p&&this.hostElement.classList.add("with-placeholder")};
_.l.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.l.isThumbPreloaded_=function(p){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",p)};
_.l.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||uFB};
_.l.computeThumbnailSrc_=function(p){return p&&p.thumbnails?_.Ou(p.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.l.computeAlt_=function(){var p=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&p||""};
_.l.thumbnailChanged_=function(){var p=_.a([this.thumbnail,this.oldThumbnail_]),x=p.next().value;p=p.next().value;this.oldThumbnail_=x;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(p=this.computeThumbnailSrc_(p),this.computeThumbnailSrc_(x)===p))return;_.S("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(x)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):x&&_.nt("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.jB(this,this.onReload_):_.jB(this,this.onShow_):this.resetImage_();x&&(this.hostElement.style.opacity=""+x.opacity)}};
_.l.delayedSrcChanged_=function(){var p=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===p||this.resetImage_()};
_.l.setSrc_=function(p){p?(_.n(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.n(this.hostElement).querySelector("#img").src=p):(_.n(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.l.resetImage_=function(){pGZ(this.hostElement);this.empty_=!0;this.setSrc_(uFB);this.ytRendererBehavior.invalidate(!1)};
_.l.observePlaceholderColor_=function(){var p=this.thumbnail&&this.thumbnail.placeholderColor;p?this.hostElement.style.backgroundColor=_.gX(p):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.l.onLoad_=function(){_.n(this.hostElement).querySelector("#img").src&&_.n(this.hostElement).querySelector("#img").src!==uFB&&(eYm(this.hostElement),this.notifyOnLoaded&&_.hG(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.l.onError_=function(){var p=this;if(_.S("web_use_cache_for_image_fallback"))akk(_.n(this.hostElement).querySelector("#img").src).then(function(x){p.objectURL_=YE(x).toString();p.setSrc_(p.objectURL_)}).catch(function(){_.S("kevlar_woffle_fallback_image")&&p.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.l.onPrescanVisible=function(){this.onShow_()};
_.l.onVisible=function(){if(_.S("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.l.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var p=this.computeSrc_();p!==_.n(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(p))}};
_.l.onReload_=function(){this.empty_=!1;var p=this.computeSrc_();p!==_.n(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(p))};
_.l.shouldShowPlaceholder_=function(){return _.S("kevlar_thumbnail_bg")};
var qY=AsD;qY.prototype.observePlaceholderColor_=qY.prototype.observePlaceholderColor_;qY.prototype.delayedSrcChanged_=qY.prototype.delayedSrcChanged_;qY.prototype.thumbnailChanged_=qY.prototype.thumbnailChanged_;_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],qY.prototype,"alt",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],qY.prototype,"ariaHidden",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],qY.prototype,"ariaLabel",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],qY.prototype,"hidden",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],qY.prototype,"id",void 0);_.B([_.u(_.AA.YtVisibilityBehavior),_.k("design:type",Object)],qY.prototype,"ytVisibilityBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],qY.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",String)],qY.prototype,"delayedSrc",void 0);
_.B([_.H(),_.k("design:type",Object)],qY.prototype,"thumbnail",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],qY.prototype,"loaded",void 0);_.B([_.H(),_.k("design:type",Boolean)],qY.prototype,"notifyOnLoaded",void 0);_.B([_.H(),_.k("design:type",Number)],qY.prototype,"height",void 0);_.B([_.H(),_.k("design:type",Number)],qY.prototype,"width",void 0);_.B([_.H({value:function(){return"width"}}),
_.k("design:type",String)],qY.prototype,"dimension",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],qY.prototype,"fit",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],qY.prototype,"fitHeight",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],qY.prototype,"fitWidth",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],qY.prototype,"objectFit",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],qY.prototype,"objectPosition",void 0);_.B([_.H(),_.k("design:type",String)],qY.prototype,"preferredThumbnail",void 0);_.B([_.H({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.k("design:type",String)],qY.prototype,"alt_",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],qY.prototype,"sharedTooltipText",void 0);
_.B([_.H(),_.k("design:type",Boolean)],qY.prototype,"ftlEligible",void 0);_.B([_.H({value:void 0}),_.k("design:type",String)],qY.prototype,"observeHiddenOption",void 0);_.B([_.H({value:"observe_once"}),_.k("design:type",String)],qY.prototype,"observePrescanOption",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],qY.prototype,"roundedContainer",void 0);
_.B([_.cT("thumbnail"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qY.prototype,"thumbnailChanged_",null);_.B([_.cT("delayedSrc"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qY.prototype,"delayedSrcChanged_",null);_.B([_.W("thumbnail.placeholderColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qY.prototype,"observePlaceholderColor_",null);
qY=_.B([_.JZ({is:"yt-img-shadow",disableElementRegistration:!0})],qY);var uFB=_.nt("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.kJ()(qY,"yt-img-shadow",function(){if(b9B===void 0){var p=document.createElement("template");_.g(p,'\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">');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;ysB===void 0&&(ysB=document.createElement("template"));var N=ysB;F.call(x,N.content.cloneNode(!0),p.content.firstChild);b9B=p}p=b9B;return p},{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 Ttz;_.Zy=new _.iE("SCREEN_MANAGER_TOKEN");Ttz=new _.iE("LOG_INITIAL_SCREEN_TOKEN");_.QP=_.mO(function(p){function x(Kp){return _.r(Kp,_.X6)}
function F(){var Kp=N().isTogglingDisabled||C()?b():!b();A(Kp);O(!1);if(!N().isTogglingDisabled){var sM;(sM=M)==null||sM(!!Kp)}var np;((np=c)==null?0:np())||_.cj(_.J().resolve(_.Zy),N().trackingParams);var Jz;if(!Kp||!x(N().defaultButtonViewModel)||(Jz=c)!=null&&Jz()){var Y$;!x(N().toggledButtonViewModel)||((Y$=c)==null?0:Y$())||_.cj(_.J().resolve(_.Zy),x(N().toggledButtonViewModel).trackingParams)}else _.cj(_.J().resolve(_.Zy),x(N().defaultButtonViewModel).trackingParams)}
var N=p.data,h=p.buttonShapeOverrides,c=p.disableExplicitClickLogging,M=p.onToggle,f=p.style,K=p.useOutlinedIcon,t=p.className,d=function(){var Kp,sM;return b()?(Kp=p.animatedTextPropsToggled)==null?void 0:Kp.call(p):(sM=p.animatedTextPropsDefault)==null?void 0:sM.call(p)},v=_.Kn(function(){return d()?Object.assign({},d(),{shouldAnimate:Y()}):void 0},void 0,"ZKEa0b"),C=function(){var Kp;
return((Kp=ld())==null?void 0:Kp.isToggled)!==void 0},X=_.a(_.ct(function(){var Kp,sM,np;
return C()?(Kp=ld())==null?void 0:Kp.isToggled:(np=h==null?void 0:(sM=h())==null?void 0:sM.toggled)!=null?np:N().isToggled})),Q=X.next().value;
X=X.next().value;var b=Q,A=X;X=_.a(_.ct(function(){var Kp,sM;return(Kp=p.animatedTextPropsToggled)==null?void 0:(sM=Kp.call(p))==null?void 0:sM.shouldAnimate}));
Q=X.next().value;X=X.next().value;var Y=Q,O=X;Q=_.a(_.hu(!1,void 0,"S11hid"));var Fw=Q.next().value,R=Q.next().value,ld=_.g5(function(Kp){var sM;a:{var np=N().entityKey,Jz=N().toggledStateEntitySelectorType;if(Jz&&np)switch(Jz){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var Y$;Kp=(Y$=_.M4(Kp.entities,"sfvAudioItemCurrentlyPlayingEntity",np))!=null?Y$:void 0;Y$=(sM=Kp==null?void 0:Kp.sfvAudioItemPlaybackState)!=null?sM:void 0;if(Y$==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){sM={isToggled:!0};
break a}if(Y$){sM={isToggled:!1};break a}break;default:_.no(new _.qE("Error: entitySelectorType defined but not matched in selector.",Kp,Jz))}sM=void 0}return sM});
Q=_.h0(function(){var Kp=_.J().resolve(_.Bw(_.dR));Kp&&R(Kp.isKeyBoardInUse());return!1});
X=_.h0(function(){R(!1);return!1});
var pp=function(){return Object.assign({},h==null?void 0:h(),{onToggle:F,toggleable:!0,toggled:b(),focused:Fw()})};
return _.Z("toggle-button-view-model",{"on:focusin":Q,"on:focusout":X,class:t},_.Z(_.D9,{cond:function(){return b()?x(N().toggledButtonViewModel):x(N().defaultButtonViewModel)},
then:function(Kp){return _.Z(_.nV,{data:Kp,className:t,style:f,useOutlinedIcon:K,buttonOverrides:pp,animatedTextProps:v})}}))},"v");
_.QP.idomCompat={callbacks:{onToggle:!0}};_.o7(_.mO(function(p){return _.Z("yt-toggle-button-view-model",{class:function(){var x;return(x=p.scopingClassName)==null?void 0:x.call(p)}},_.Z(_.QP,{data:function(){var x;
return(x=p.data)==null?void 0:x.call(p)},
buttonShapeOverrides:function(){var x;return(x=p.overrides)==null?void 0:x.call(p)},
animatedTextPropsDefault:function(){var x;return(x=p.animatedTextPropsDefault)==null?void 0:x.call(p)},
animatedTextPropsToggled:function(){var x;return(x=p.animatedTextPropsToggled)==null?void 0:x.call(p)},
disableExplicitClickLogging:function(){var x;return(x=p.disableExplicitClickLogging)==null?void 0:x.call(p)},
onToggle:function(x){var F;return(F=p.onToggle)==null?void 0:F.call(p,x)},
style:function(){var x;return(x=p.style)==null?void 0:x.call(p)},
useOutlinedIcon:function(){var x;return(x=p.useOutlinedIcon)==null?void 0:x.call(p)},
className:function(){var x;return(x=p.className)==null?void 0:x.call(p)}}))},"w"),"yt-toggle-button-view-model",{props:{data:_.G2,
buttonShapeOverrides:_.G2,overrides:_.G2,animatedTextPropsDefault:_.G2,animatedTextPropsToggled:_.G2,disableExplicitClickLogging:_.G2,onToggle:_.mJ,style:_.G2,useOutlinedIcon:_.G2,className:_.G2,scopingClassName:_.G2}});var YGB=function(){return _.m.apply(this,arguments)||this};
_.E(YGB,_.m);YGB.prototype.onTap=function(p){p.stopPropagation();p=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.z7("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:p})):this.ytLiveChatReduxBehavior.dispatch(_.KV("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:p}))};
_.R8.Object.defineProperties(YGB.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.engagementState)==null?void 0:p.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var p=_.r(this.data.toggleButton,_.gR),x;if(Number(((x=this.likeCountState)==null?void 0:x.likeCountIfIndifferentNumber)||"0")===0){var F;x=((F=this.data.likeCountPlaceholder)==null?void 0:F.content)||""}else{var N,h,c;x=((N=this.likeCountState)==null?void 0:(h=N.likeCountIfIndifferent)==null?void 0:h.content)||((c=this.data.likeCountPlaceholder)==null?void 0:c.content)||""}var M,f;F=((M=this.likeCountState)==null?void 0:(f=
M.likeCountIfLiked)==null?void 0:f.content)||"1";M=_.r(p.toggledButtonViewModel,_.X6);return Object.assign({},p,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.r(p.defaultButtonViewModel,_.X6),{title:x})},toggledButtonViewModel:{buttonViewModel:Object.assign({},M,{title:F})}})}}}});
var tM=YGB;tM.prototype.onTap=tM.prototype.onTap;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],tM.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],tM.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.z2),_.k("design:type",Object)],tM.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],tM.prototype,"data",void 0);
_.B([_.H({selectorArgs:["data.likeCountEntityKey"],selector:eqZ}),_.k("design:type",Object)],tM.prototype,"likeCountState",void 0);_.B([_.H({selectorArgs:["data.engagementStateKey"],selector:nKm}),_.k("design:type",Object)],tM.prototype,"engagementState",void 0);_.B([_.w("data","engagementState"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],tM.prototype,"isLiked",null);
_.B([_.w("data","likeCountState","isLiked"),_.k("design:type",Object),_.k("design:paramtypes",[])],tM.prototype,"toggleButton",null);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],tM.prototype,"onTap",null);tM=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],tM);
_.P(tM,"yt-live-chat-like-button-view-model",function(){if(LIk===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;jF6===void 0&&(jF6=document.createElement("template"));var N=jF6;F.call(x,N.content.cloneNode(!0),p.content.firstChild);LIk=p}p=LIk;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var w3I;var GSv;var VJI=function(){return _.m.apply(this,arguments)||this};
_.E(VJI,_.m);var dP=VJI;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],dP.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],dP.prototype,"data",void 0);dP=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],dP);
_.P(dP,"yt-live-chat-paid-message-footer-renderer",function(){if(GSv===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;w3I===void 0&&(w3I=document.createElement("template"));var N=w3I;F.call(x,N.content.cloneNode(!0),p.content.firstChild);GSv=p}p=GSv;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Wrj;var H9k;var mZm;var otZ,O9J=function(){if(otZ!==void 0)return otZ;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;mZm===void 0&&(mZm=document.createElement("template"));var N=mZm;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return otZ=p};var vn=function(){return _.m.apply(this,arguments)||this};
_.E(vn,_.m);vn.prototype.onTap=function(p){p.stopPropagation()};
_.R8.Object.defineProperties(vn.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var p=_.r(this.data.replyButton,_.X6),x,F,N,h,c,M,f,K=Number(((x=this.replyCountState)==null?void 0:x.replyCountNumber)||"0")===0?(F=this.data)==null?void 0:(N=F.replyCountPlaceholder)==null?void 0:N.content:((h=this.replyCountState)==null?void 0:(c=h.replyCount)==null?void 0:c.content)||((M=this.data)==null?void 0:(f=M.replyCountPlaceholder)==null?void 0:f.content)||"",t;return Object.assign({},
p,{title:K,accessibilityText:(t=this.replyCountState)==null?void 0:t.replyButtonAccessibilityText})}}}});
_.R8.Object.defineProperties(vn,{template:{configurable:!0,enumerable:!0,get:function(){return O9J()}}});
var JM=vn;JM.prototype.onTap=JM.prototype.onTap;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],JM.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],JM.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.z2),_.k("design:type",Object)],JM.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],JM.prototype,"data",void 0);
_.B([_.H({selectorArgs:["data.replyCountEntityKey"],selector:function(p,x){return _.M4(p.entities,"replyCountEntity",x)}}),
_.k("design:type",Object)],JM.prototype,"replyCountState",void 0);_.B([_.w("data","replyCountState"),_.k("design:type",Object),_.k("design:paramtypes",[])],JM.prototype,"buttonViewModel",null);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],JM.prototype,"onTap",null);JM=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],JM);
_.P(JM,"yt-live-chat-reply-button-view-model",function(){return O9J()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var jlZ;var LrK;var CX=function(){var p=_.m.apply(this,arguments)||this;p.ariaLabel="";return p};
_.E(CX,_.m);
CX.prototype.dataChanged=function(){for(var p=(0,_.$s)(_.n(this.hostElement).querySelector("#image"));p.firstChild;)p.removeChild(p.firstChild);if(this.data)if(this.data.icon){var x=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(x.polymerController.icon="yt-sys-icons:shield-filled",x.polymerController.defaultToFilled=!0):x.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();p.appendChild(x)}else if(this.data.customThumbnail){x=document.createElement("img");
var F=_.BUk(this.data.customThumbnail.thumbnails,16);F?(x.src=F,p.appendChild(x),x.setAttribute("alt",this.hostElement.ariaLabel||"")):_.no(new _.qE("Could not compute URL for thumbnail",this.data.customThumbnail))}};
CX.prototype.identity=function(p){return p};
CX.prototype.computeType=function(p){return i8(p||void 0)};
var Sg=CX;Sg.prototype.dataChanged=Sg.prototype.dataChanged;_.B([_.H(),_.k("design:type",Object)],Sg.prototype,"data",void 0);_.B([_.H({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.k("design:type",Object)],Sg.prototype,"ariaLabel",void 0);_.B([_.H({computed:"computeType(data)",reflectToAttribute:!0}),_.k("design:type",String)],Sg.prototype,"type",void 0);
_.B([_.H({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.k("design:type",String)],Sg.prototype,"sharedTooltipText",void 0);_.B([_.H({reflectToAttribute:!0,value:function(){return _.S("live_chat_enable_new_moderator_badge")}}),
_.k("design:type",Boolean)],Sg.prototype,"enableNewModeratorBadge",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sg.prototype,"dataChanged",null);Sg=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Sg);
_.P(Sg,"yt-live-chat-author-badge-renderer",function(){if(LrK===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;jlZ===void 0&&(jlZ=document.createElement("template"));var N=jlZ;F.call(x,N.content.cloneNode(!0),p.content.firstChild);LrK=p}p=LrK;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Pyk;var T3j;var B3B=function(){return _.m.apply(this,arguments)||this};
_.E(B3B,_.m);_.l=B3B.prototype;_.l.configureRendererStamper=function(){return{badgesBeforeChip:{id:"prepend-chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesOutsideChip:{id:"chat-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}},badgesInsideChip:{id:"chip-badges",mapping:{liveChatAuthorBadgeRenderer:{component:"yt-live-chat-author-badge-renderer"}}}}};
_.l.computeBadgesInsideChip=function(p){return p?p.filter(function(x){return i8(x.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.l.computeBadgesOutsideChip=function(p){return this.prependChatBadges||!p?[]:p.filter(function(x){x=i8(x.liveChatAuthorBadgeRenderer);return x!=="verified"&&x!=="owner"})};
_.l.computeBadgesBeforeChip=function(p){return this.prependChatBadges&&p?p.filter(function(x){x=i8(x.liveChatAuthorBadgeRenderer);return x!=="verified"&&x!=="owner"}):[]};
_.l.computeIsHighlighted=function(p,x){var F=!!FIZ(p,"owner"),N=!!FIZ(p,"verified");p=!!FIZ(p,"moderator");return(F||N&&!p)&&!x};
_.l.computeAuthorType=function(p){return xyJ(p)};
_.l.computeAuthorClass=function(p,x){return x?(p?p+" ":"")+"single-line":p};
_.l.onSeedColorChanged=function(){_.S("live_chat_author_name_color_usernames")||_.S("live_chat_seed_color_usernames")||_.S("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):_.S("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
var rP=B3B;rP.prototype.onSeedColorChanged=rP.prototype.onSeedColorChanged;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],rP.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],rP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],rP.prototype,"authorName",void 0);_.B([_.H(),_.k("design:type",Array)],rP.prototype,"authorBadges",void 0);
_.B([_.H({computed:"computeAuthorType(authorBadges)"}),_.k("design:type",String)],rP.prototype,"authorType",void 0);_.B([_.H({computed:"computeAuthorClass(authorType, singleLine)"}),_.k("design:type",String)],rP.prototype,"authorClass",void 0);_.B([_.H({computed:"computeBadgesInsideChip(authorBadges)"}),_.k("design:type",Array)],rP.prototype,"badgesInsideChip",void 0);_.B([_.H({computed:"computeBadgesOutsideChip(authorBadges)"}),_.k("design:type",Array)],rP.prototype,"badgesOutsideChip",void 0);
_.B([_.H({computed:"computeBadgesBeforeChip(authorBadges)"}),_.k("design:type",Array)],rP.prototype,"badgesBeforeChip",void 0);_.B([_.H({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.k("design:type",Boolean)],rP.prototype,"isHighlighted",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],rP.prototype,"singleLine",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],rP.prototype,"disableHighlighting",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],rP.prototype,"dashboardMoneyFeed",void 0);_.B([_.H({value:_.S("live_chat_prepend_badges"),reflectToAttribute:!0}),_.k("design:type",Boolean)],rP.prototype,"prependChatBadges",void 0);_.B([_.H(),_.k("design:type",String)],rP.prototype,"authorNameColor",void 0);_.B([_.Ff("#author-name"),_.k("design:type",HTMLDivElement)],rP.prototype,"username",void 0);
_.B([_.W("authorNameColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rP.prototype,"onSeedColorChanged",null);rP=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],rP);
_.P(rP,"yt-live-chat-author-chip",function(){if(T3j===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Pyk===void 0&&(Pyk=document.createElement("template"));var N=Pyk;F.call(x,N.content.cloneNode(!0),p.content.firstChild);T3j=p}p=T3j;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var RGD;var kSJ;var UZk=function(){var p=_.m.apply(this,arguments)||this;p.debounceCommand=_.S0(function(x){p.ytComponentBehavior.resolveCommand(x)},1500);
return p};
_.E(UZk,_.m);UZk.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var p=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",x,F,N=this.isHearted?(x=this.data)==null?void 0:x.unheartCommand:(F=this.data)==null?void 0:F.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.z7("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:p}));(p=_.g$(N))&&this.debounceCommand(p)}};
_.R8.Object.defineProperties(UZk.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var p,x;if(!((p=this.data)==null?0:(x=p.creatorThumbnail)==null?0:x.sources))return{};p={thumbnails:[]};x={};x.url=this.data.creatorThumbnail.sources[0].url;p.thumbnails.push(x);return p}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.engagementState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((x=this.engagementState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.engagementState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((x=this.engagementState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.engagementState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return((p=this.engagementState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((x=this.engagementState)==null?void 0:x.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((F=this.engagementState)==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_HEARTED"}},
label:{configurable:!0,enumerable:!0,get:function(){return this.data?(this.isHearted?this.data.heartedAccessibilityLabel:this.data.unheartedAccessibilityLabel)||"":""}},
heartHoverText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.isHearted?this.data.heartedHoverText:this.data.unheartedHoverText}}});
var Eo=UZk;Eo.prototype.onTap=Eo.prototype.onTap;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Eo.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Eo.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.z2),_.k("design:type",Object)],Eo.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Eo.prototype,"data",void 0);
_.B([_.H({selectorArgs:["data.engagementStateKey"],selector:nKm}),_.k("design:type",Object)],Eo.prototype,"engagementState",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Eo.prototype,"thumbnailDetails",null);_.B([_.w("data","engagementState"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Eo.prototype,"isHearted",null);_.B([_.w("data","engagementState"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Eo.prototype,"isEditable",null);
_.B([_.w("data","engagementState"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Eo.prototype,"showCreatorView",null);_.B([_.w("data","engagementState"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Eo.prototype,"showButton",null);_.B([_.w("data","isHearted"),_.k("design:type",String),_.k("design:paramtypes",[])],Eo.prototype,"label",null);_.B([_.w("data","isHearted"),_.k("design:type",Object),_.k("design:paramtypes",[])],Eo.prototype,"heartHoverText",null);
_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Eo.prototype,"onTap",null);Eo=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],Eo);
_.P(Eo,"yt-live-chat-creator-heart-view-model",function(){if(kSJ===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;RGD===void 0&&(RGD=document.createElement("template"));var N=RGD;F.call(x,N.content.cloneNode(!0),p.content.firstChild);kSJ=p}p=kSJ;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var XU=function(p,x){this.serviceId=new n3B(p,x)};
XU.prototype.toString=function(){return this.serviceId.toString()};var i9B=function(){this.internalMap={}};
_.l=i9B.prototype;_.l.contains=function(p){return Object.prototype.hasOwnProperty.call(this.internalMap,p)};
_.l.get=function(p){if(this.contains(p))return this.internalMap[p]};
_.l.set=function(p,x){this.internalMap[p]=x};
_.l.getKeys=function(){return Object.keys(this.internalMap)};
_.l.remove=function(p){delete this.internalMap[p]};var gP=function(){this.mappings=new i9B;this.errorCallbacks=new Set};
gP.prototype.getModuleId=function(p){return p.serviceId.getModuleId()};
gP.prototype.get=function(p){var x=this.mappings.get(p.toString());return Izm(this,x,p)};
gP.prototype.getMultipleAsync=function(){var p=_.we.apply(0,arguments),x=this,F=p.map(function(K){return x.getModuleId(K)}),N=p.map(function(K){return x.mappings.get(K.toString())}).filter(function(K){return K});
if(N.length===p.length)return _.qt(N.map(function(K,t){return Izm(x,K,p[t])}));
var h=gv().loadMultiple(F);N=_.Xq(F.map(function(K){return h[K]}));
var c=document.hidden,M=-1,f=_.Ud("get_async_timeout_ms",-1);f>-1&&(M=setTimeout(function(){_.no(new _.qE("Module timeout.",F,c,document.hidden))},f));
return _.g8(N.then(function(){return p.map(function(K){return Izm(x,x.mappings.get(K.toString()),K)})}).thenCatch(function(K){for(var t=_.a(x.errorCallbacks),d=t.next();!d.done;d=t.next())d=d.value,d(K);
throw K;}),function(){clearTimeout(M)})};
gP.prototype.registerService=function(p,x){this.mappings.set(p.toString(),{type:"mapping",value:x});return p};
var Izm=function(p,x,F){switch(x.type){case "mapping":return x.value;case "factory":return x=x.value(),p.mappings.set(F.toString(),{type:"mapping",value:x}),x;default:return _.Pb(x)}};
gP.prototype.onLoadError=function(p){var x=this;this.errorCallbacks.add(p);return function(){x.errorCallbacks.delete(p)}};
_.Qx=new gP;var $Z6=function(){};
_.l=$Z6.prototype;
_.l.JSC$11755_getRequest=function(p,x,F){x=x===void 0?{}:x;F=F===void 0?nMv:F;var N=x;if(this.isNavigationCommand()){var h,c=(h=_.r(p==null?void 0:p.commandMetadata,_.eq))==null?void 0:h.url;N=_.y7z(p.clickTrackingParams,!0,!1,c,this.JSC$11755_getClientScreen(N))}else N=_.y7z(p.clickTrackingParams,!1,this.includeCsn);N={context:N};if(h=this.getExtension(p))return this.JSC$11755_buildRequest(N,h,x),h=this.getApiUrl(p),c=Object.assign({},{command:p},this.getRequestConfig(p,x)),N={input:h,requestShell:P7(h),
innerTubeRequest:N,config:c},N.config.authStrategy?N.config.authStrategy.identity=F:N.config.authStrategy={identity:F},(p=this.JSC$11755_getRequestKey(p,x))&&!N.config.requestKey&&(N.config.requestKey=p),N;p=new _.qE("Error: Failed to create Request from Command.",p);_.zj(p)};
_.l.getApiUrl=function(p){var x=_.Ru(this.getApiPaths(p)),F;(p=(F=_.r(p.commandMetadata,_.eq))==null?void 0:F.apiUrl)&&(x=p);return mhM(Hqw(x))};
_.l.isNavigationCommand=function(){return!1};
_.l.JSC$11755_getClientScreen=function(){};
_.l.JSC$11755_getRequestKey=function(){};
_.l.getRequestConfig=function(){};
_.R8.Object.defineProperties($Z6.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var zH=function(){};
_.E(zH,$Z6);zH.prototype.JSC$11762_getStoreKey=function(){};
zH.prototype.JSC$11755_getRequestKey=function(p,x){x=x===void 0?{}:x;return this.JSC$11762_getStoreKey(p,x)};var so=function(){};
_.E(so,zH);so.prototype.JSC$11755_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:P7("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
so.prototype.getApiPaths=function(){return[]};
so.prototype.getExtension=function(){};
so.prototype.JSC$11755_buildRequest=function(){};var eGB={},pEk=(eGB.GET_DATASYNC_IDS=si(so),eGB);var xSD,Fzl,NUD,QKB,nX,cWJ,AKl,ljj,hYb;xSD="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");Fzl=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.uT=function(p,x,F,N,h,c,M,f,K){this.endpointMap=p;this.networkManager=x;this.authService=F;this.responseProcessorMap=N;this.innertubeResponseStore=h;this.contextProcessors=c;this.asyncContextProcessors=M;this.localInnertubeRouter=f;this.requestSequencer=K;this.inflightRequests=new Map;p.signalEndpointMap||(p.signalEndpointMap={});p.signalEndpointMap=Object.assign({},pEk,p.signalEndpointMap)};
NUD=function(p,x,F,N,h,c,M,f,K){if(_.uT.instance!==void 0){if(N=_.uT.instance,p=[p!==N.endpointMap,x!==N.networkManager,F!==N.authService,h!==N.innertubeResponseStore,c!==N.contextProcessors,M!==N.asyncContextProcessors,f!==N.localInnertubeRouter],p.some(function(t){return t}))throw new _.qE("InnerTubeTransportService is already initialized",p);
}else _.uT.instance=new _.uT(p,x,F,N,h,c,M,f,K)};
_.w5=function(p,x,F){var N=N===void 0?nMv:N;var h=AKl(p,x);return h?new _.cZ(function(c,M){var f,K,t,d,v;return _.D(function(C){switch(C.nextAddress){case 1:return _.q(C,h,2);case 2:f=C.yieldResult;K=f.JSC$11755_getRequest(x,F,N);if(!K){M(new _.qE("Error: Failed to build request for command.",x));C.jumpTo(0);break}nR(K.input);d=((t=K.requestShell)==null?void 0:t.mode)==="cors"?"cors":void 0;if(p.authService.syncHeaders){v=hYb(K.config,d);C.jumpTo(4);break}return _.q(C,ljj(K.config,d),5);case 5:v=
C.yieldResult;case 4:c(cWJ(p,K,v)),_.JB(C)}})}):_.o9(new _.qE("Error: No request builder found for command.",x))};
QKB=function(p,x,F,N){var h=h===void 0?nMv:h;var c,M,f,K,t,d,v,C,X,Q,b,A,Y,O,Fw,R,ld,pp;return _.D(function(Kp){switch(Kp.nextAddress){case 1:c=Fyw(x,p.endpointMap);if(!c)throw new _.qE("Error: No streaming request builder found for command",x);M=c.JSC$11755_getRequest(x,F,h);if(!M)throw new _.qE("Failed to build YtRequest for streaming Command",x);if((f=p.localInnertubeRouter)==null||!f.shouldPreferLocalResponse(M.input,M.innerTubeRequest)){Kp.jumpTo(2);break}return _.q(Kp,p.localInnertubeRouter.localInnertubeResponse(M.input,
M.innerTubeRequest),3);case 3:return K=Kp.yieldResult,t={},K.playerResponse&&(nX(p,K.playerResponse,M),t.player=K.playerResponse,(d=N)==null||d(t,K)),K.watchNextResponse&&(nX(p,K.watchNextResponse,M),t.content=K.watchNextResponse,(v=N)==null||v(t,K)),Kp.return(t);case 2:X=((C=M.requestShell)==null?void 0:C.mode)==="cors"?"cors":void 0;if(p.authService.syncHeaders){Q=hYb(M.config,X);Kp.jumpTo(4);break}return _.q(Kp,ljj(M.config,X),5);case 5:Q=Kp.yieldResult;case 4:return Y=(A=(b=M.requestShell)==null?
void 0:b.headers)!=null?A:{},M.requestShell=Object.assign({},M.requestShell,{headers:Object.assign({},Y,Q)}),O=Object.assign({},M.requestShell),Fw=JSON.stringify(M.innerTubeRequest),M.requestShell.method==="POST"&&(O=Object.assign({},O,{body:Fw})),R=function(sM,np){nX(p,np.playerResponse||np.watchNextResponse||np.reelItemWatchResponse||np.reelWatchSequenceResponse,M);N==null||N(sM,np)},ld={},_.q(Kp,aj6(p.networkManager,M.input,O,R),6);
case 6:return ld=Kp.yieldResult,((pp=M.config)==null?0:pp.responseTick)&&_.wH(M.config.responseTick),Kp.return(ld)}})};
_.AY=function(p,x,F,N,h){h=h===void 0?{authStrategy:{identity:nMv}}:h;var c=c===void 0?!0:c;var M=function(){};
M=FEr(pxm(F));x.context||(x.context=_.y7z(N,c));return new _.cZ(function(f){var K,t,d,v,C;return _.D(function(X){if(X.nextAddress==1)return K=Hqw(F),t=_.Ls(K),p.authService.syncHeaders?(d=hYb(h,t),X.jumpTo(2)):_.q(X,ljj(h,t),3);X.nextAddress!=2&&(d=X.yieldResult);v=mhM(Hqw(F));C={input:v,requestShell:P7(v),innerTubeRequest:x,config:h};f(cWJ(p,C,d,M));_.JB(X)})})};
nX=function(p,x,F){var N;if(x&&!(x==null?0:(N=x.sequenceMetaData)==null?0:N.skipProcessing)&&p.responseProcessorMap){N=_.a(xSD);for(var h=N.next();!h.done;h=N.next())h=h.value,p.responseProcessorMap[h]&&p.responseProcessorMap[h].handleResponse(x,F)}};
cWJ=function(p,x,F,N){N=N===void 0?function(){}:N;
var h,c,M,f,K,t,d,v,C,X,Q,b,A,Y,O,Fw,R,ld,pp,Kp,sM,np,Jz,Y$,xB,qI,RJ,Ik,vb,CZ,sk,Ov,Xj,AC,Jo,Bz,aJ,he,Bb,PH;return _.D(function(dl){switch(dl.nextAddress){case 1:M=(h=x.config)==null?void 0:(c=h.storeStrategy)==null?void 0:c.storeKey;if(!(M&&p.innertubeResponseStore&&p.innertubeResponseStore.has(M))||((f=x.config)==null?0:(K=f.storeStrategy)==null?0:K.disableCache)){dl.jumpTo(2);break}return _.q(dl,p.innertubeResponseStore.get(M),3);case 3:if((t=dl.yieldResult)&&!t.isExpired())return dl.return(Promise.resolve(_.ai(t)));
case 2:if(!((d=x)==null?0:(v=d.innerTubeRequest)==null?0:v.context)){dl.jumpTo(4);break}C=x.innerTubeRequest.context;if(!(p.asyncContextProcessors&&p.asyncContextProcessors.length>0)){dl.jumpTo(5);break}X=[];Q=_.a(p.asyncContextProcessors);for(b=Q.next();!b.done;b=Q.next())A=b.value,Y=A.processContext(x),Y.wrappedPromise_&&X.push(Y.wrappedPromise_);if(!(X.length>0)){dl.jumpTo(5);break}return _.q(dl,Promise.all(X),5);case 5:O=_.a(p.contextProcessors||[]),Fw=O.next();case 8:if(Fw.done){dl.jumpTo(4);
break}R=Fw.value;return _.q(dl,R.processContext(C),9);case 9:Fw=O.next();dl.jumpTo(8);break;case 4:if((ld=p.localInnertubeRouter)==null||!ld.shouldPreferLocalResponse(x.input,x.innerTubeRequest)){dl.jumpTo(12);break}return _.q(dl,p.localInnertubeRouter.localInnertubeResponse(x.input,x.innerTubeRequest),13);case 13:return pp=dl.yieldResult,nX(p,pp,x),dl.return(pp);case 12:return(np=(sM=x.config)==null?void 0:sM.requestKey)&&p.inflightRequests.has(np)?Kp=p.inflightRequests.get(np):(Jz=JSON.stringify(x.innerTubeRequest),
qI=(xB=(Y$=x.requestShell)==null?void 0:Y$.headers)!=null?xB:{},x.requestShell=Object.assign({},x.requestShell,{headers:Object.assign({},qI,F)}),RJ=Object.assign({},x.requestShell),x.requestShell.method==="POST"&&(RJ=Object.assign({},RJ,{body:Jz})),((Ik=x.config)==null?0:Ik.requestTick)&&_.wH(x.config.requestTick),vb=function(){return p.networkManager.fetch(x.input,RJ,x.config)},Kp=p.requestSequencer?M7Z(p.requestSequencer,x,vb):vb(),np&&p.inflightRequests.set(np,Kp)),_.q(dl,Kp,14);
case 14:if((CZ=dl.yieldResult)&&"error"in CZ&&((sk=CZ)==null?0:(Ov=sk.error)==null?0:Ov.details))for(Xj=CZ.error.details,AC=_.a(Xj),Jo=AC.next();!Jo.done;Jo=AC.next())Bz=Jo.value,(aJ=Bz["@type"])&&Fzl.indexOf(aJ)>-1&&(delete Bz["@type"],CZ=Bz);np&&p.inflightRequests.has(np)&&p.inflightRequests.delete(np);((he=x.config)==null?0:he.responseTick)&&_.wH(x.config.responseTick);if(CZ||(Bb=p.localInnertubeRouter)==null||!Bb.canProvideFallbackResponse(x.input,x.innerTubeRequest)){dl.jumpTo(15);break}return _.q(dl,
p.localInnertubeRouter.localFallbackInnertubeResponse(x.input,x.innerTubeRequest),16);case 16:CZ=dl.yieldResult;case 15:return nX(p,CZ,x),((PH=x.config)==null?0:PH.processorTick)&&_.wH(x.config.processorTick),N(),dl.return(CZ||void 0)}})};
_.Yp=function(p,x){return xP$(x,p.endpointMap)};
AKl=function(p,x){p=Nfz(x,p.endpointMap);if(p!==void 0)return Promise.resolve(p)};
ljj=function(p,x){var F,N,h,c;return _.D(function(M){if(M.nextAddress==1){h=(F=p)==null?void 0:(N=F.authStrategy)==null?void 0:N.sessionIndex;var f=_.qt(ZRd({sessionIndex:h}));return _.q(M,f,2)}c=M.yieldResult;return M.return(Promise.resolve(Object.assign({},hMm(x),c)))})};
hYb=function(p,x){var F;p=p==null?void 0:(F=p.authStrategy)==null?void 0:F.sessionIndex;F=ZRd({sessionIndex:p});return Object.assign({},hMm(x),F)};var DSI,fjj,Kzk,qLv,Z0v,t7n,JWI,C76,AM,SLJ,rWn,vbC,EbB;DSI=0;fjj=/tone[1-5]/;Kzk=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");qLv="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
Z0v=Number.MAX_SAFE_INTEGER;t7n=RegExp("\ufe0f","g");_.yx=function(p){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;p&&_.dSZ(this,p)};
_.dSZ=function(p,x){try{_.NE(x,{context:p,onSuccess:function(N,h){Array.isArray(h)?p.load(h):(N=new _.qE("Emoji manager JSON response was not an array!",{response:h}),_.zj(N))},
onError:function(N){N=new _.qE("Failed to retrieve emoji manager initial JSON data!",{url:x,statusCode:$F(N).toString()});_.no(N)}})}catch(N){var F=new _.qE("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:x});
_.no(F)}};
_.yx.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.yx.prototype.load=function(p,x){if(x)if(p.length)p=p.concat(x.emojis);else{this.emojis=x.emojis;this.emojiMap=x.emojiMap;this.emojiShortcutMap=x.emojiShortcutMap;this.emojiShortcutCharMap=vbC(x);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=x.emojiRegex;return}this.emojis=[].concat(_.se(new Set(this.emojis.concat(p))));this.hasInitializedShortcutCharMap=!1;p=Array(this.emojis.length);for(x=0;x<this.emojis.length;x++){var F=this.emojis[x];if(F.emojiId){this.emojiMap[F.emojiId]=F;this.emojiMap[F.emojiId].index=
x;for(var N=0;F.shortcuts&&N<F.shortcuts.length;N++)this.emojiShortcutMap[F.shortcuts[N].toLocaleLowerCase()]=F;p[x]=F.isCustomEmoji&&F.shortcuts?F.shortcuts[0]:F.emojiId}}p.sort(function(h,c){return c.length-h.length});
if(p.length)try{this.emojiRegex=new RegExp(p.join("|").replace("*","\\*"),"gi")}catch(h){this.emojiRegex=/$./}else this.emojiRegex=/$./};
JWI=function(p,x){x=_.a(x);for(var F=x.next();!F.done;F=x.next()){var N=F.value;if(N.emojiId&&p.emojiMap[N.emojiId]){F=Object.assign({},p.emojiMap[N.emojiId],N);p.emojiMap[N.emojiId]=F;var h=void 0;F.index&&((h=p.emojis[F.index])==null?void 0:h.emojiId)===N.emojiId&&(p.emojis[F.index]=F);N=void 0;if((N=F.shortcuts)==null?0:N.length)for(p.hasInitializedShortcutCharMap=!1,N=_.a(F.shortcuts),h=N.next();!h.done;h=N.next())p.emojiShortcutMap[h.value.toLocaleLowerCase()]=F}}};
C76=function(p){var x,F;_.D(function(N){if(N.nextAddress==1)return _.q(N,_.Sa.getInstance(),2);if(N.nextAddress!=3)return(x=N.yieldResult)?_.q(N,x.get("ytlc-emoji-pref"),3):N.return();(F=N.yieldResult)&&JWI(p,Object.keys(F).map(function(h){return{emojiId:h,stickyPrefId:F[h]}}).filter(function(h){return!!h.emojiId&&!!h.stickyPrefId}));
_.JB(N)})};
_.bu=function(p,x,F){return(p=p.emojiMap[x])&&(!p.isLocked||F!==void 0&&F)?p:void 0};
AM=function(p,x,F){F=_.bu(p,x,F===void 0?!1:F);var N=x.match("\u200d");F&&p.skinTone!==0&&(p=(N==null?void 0:N.length)===1?_.bu(p,x.replace("\u200d",Kzk[p.skinTone]+"\u200d")):_.bu(p,x+Kzk[p.skinTone]))&&(F=p);return F};
SLJ=function(p,x){var F=p.emojiMap[x];return(F==null?0:F.stickyPrefId)?p.emojiMap[F.stickyPrefId]:AM(p,x)};
_.pE=function(p,x){p=p.emojiShortcutMap[x.toLocaleLowerCase()];return!p||p.isLocked?null:p};
rWn=function(p,x,F){return vbC(p,F===void 0?!1:F)[x]||{}};
vbC=function(p,x){x=x===void 0?!1:x;if(!p.hasInitializedShortcutCharMap){p.hasInitializedShortcutCharMap=!0;for(var F=0;F<p.emojis.length;F++){var N=p.emojis[F];if(!(N.isLocked||x&&N.isCustomEmoji&&N.emojiId&&!p.pickerCustomEmojiIds.includes(N.emojiId)))for(var h=0;N.shortcuts&&h<N.shortcuts.length;h++){var c=N.shortcuts[h];c.startsWith(":_")&&N.isCustomEmoji&&(p.emojiShortcutCharMap[":_"]==null&&(p.emojiShortcutCharMap[":_"]=Object.create(null)),p.emojiShortcutCharMap[":_"][c]=N);if(!(c.length<3||
!N.isCustomEmoji&&fjj.test(c))){var M=c.substr(0,3).toLocaleLowerCase();p.emojiShortcutCharMap[M]==null&&(p.emojiShortcutCharMap[M]=Object.create(null));p.emojiShortcutCharMap[M][c]=N}}}}return p.emojiShortcutCharMap};
_.yx.prototype.createEmoji=function(p,x){x=x===void 0?!0:x;var F=document.createElement("img");p.isCustomEmoji||F.classList.add("small-emoji");F.classList.add("emoji");F.classList.add("yt-formatted-string");F.src=p.image?_.Ou(p.image.thumbnails,this.emojiSize)||"":"";var N=void 0;p.image&&p.image.accessibility&&p.image.accessibility.accessibilityData&&(N=p.image.accessibility.accessibilityData.label);F.alt=N?N:(p.isCustomEmoji&&p.shortcuts?p.shortcuts[0]:p.emojiId)||"";p.isCustomEmoji&&(F.dataset.emojiId=
p.emojiId);_.ML&&(F.setAttribute("contenteditable","false"),F.setAttribute("unselectable","on"));x&&(p.shortcuts&&p.shortcuts.length&&F.setAttribute("shared-tooltip-text",p.shortcuts[0]),F.id="emoji-"+DSI++);return F};
_.yx.prototype.createDocumentFragment=function(p,x,F,N){x=x===void 0?!1:x;F=F===void 0?!0:F;N=N===void 0?!1:N;p=p.replace(t7n,"");for(var h=document.createDocumentFragment(),c=0,M,f=0;(M=this.emojiRegex.exec(p))!=null;){var K=_.bu(this,M[0])||_.pE(this,M[0]);!K||K.isCustomEmoji&&!x||(K=this.createEmoji(K,F),c!==M.index&&h.appendChild(document.createTextNode(p.substring(c,M.index))),h.appendChild(K),c=M.index+M[0].length,f++)}if(!N||f)return h.appendChild(document.createTextNode(p.substr(c))),h};
EbB=function(p,x,F){var N,h,c,M,f,K,t,d,v;return _.D(function(C){if(C.nextAddress==1){if(!x.emojiId||!p.emojiMap[x.emojiId])return C.return();N=Object.assign({},p.emojiMap[x.emojiId],{stickyPrefId:F});p.emojiMap[x.emojiId]=N;x.index&&((h=p.emojis[x.index])==null?void 0:h.emojiId)===x.emojiId&&(p.emojis[x.index]=N);if((c=x.shortcuts)==null?0:c.length)for(p.hasInitializedShortcutCharMap=!1,M=_.a(x.shortcuts),f=M.next();!f.done;f=M.next())K=f.value,p.emojiShortcutMap[K.toLocaleLowerCase()]=N;return _.q(C,
_.Sa.getInstance(),2)}if(C.nextAddress!=4)return(t=C.yieldResult)?_.q(C,t.get("ytlc-emoji-pref"),4):C.jumpTo(0);v=(d=C.yieldResult)!=null?d:{};v[x.emojiId]=F;return _.q(C,t.set("ytlc-emoji-pref",v,Z0v),0)})};
_.uu=new _.yx;var Qhv;_.Y4={};
Qhv={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.S("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:_.S("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 OJ(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 p=_.n(this.hostElement||this).querySelector("#inline-action-button-container");p&&p.setAttribute("aria-hidden","true");this.menuButton=_.n(this.hostElement).querySelector("#menu-button")},
attached:function(){var p=this.menuButton;p&&(p.addEventListener("focusin",_.p5(this,this.onMenuButtonFocus_)),p.addEventListener("focusout",_.p5(this,this.onMenuButtonBlur_)))},
detached:function(){var p=this.menuButton;p&&(p.removeEventListener("focusin",_.p5(this,this.onMenuButtonFocus_)),p.removeEventListener("focusout",_.p5(this,this.onMenuButtonBlur_)))},
identity:_.Wr,truthy:function(p){return!!p},
computeTimestampString:function(p){return p?p.timestampText?this.getSimpleString(p.timestampText):this.TIME_FORMATTER.format(new Date(p.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(p){return _.S("live_chat_whole_message_clickable")&&p},
computeMenuVisible_:function(p,x){return p||x},
computeHasInlineActionButtons:function(p){if(!p)return!1;var x,F;return!((x=p.inlineActionButtons)==null||!x.length)||!((F=p.additionalInlineActionButtons)==null||!F.length)},
createDocumentFragmentFromString:function(p){var x=_.uu.createDocumentFragment.bind(_.uu),F;if((F=this.participantsManager)==null||!F.viewerRegex)return x(p);F=document.createDocumentFragment();for(var N=0,h;(h=this.participantsManager.viewerRegex.exec(p))!=null;){if(h.index>0){var c=":"+h[0]+":";if((_.bu(_.uu,c)||_.pE(_.uu,c))&&p.indexOf(c)===h.index-1)continue}F.appendChild(x(p.substring(N,h.index)));N=document.createElement("span");N.appendChild(x(h[0]));N.classList.add("mention");F.appendChild(N);
N=h.index+h[0].length}F.appendChild(x(p.substring(N)));return F},
createDocumentFragment:function(p){var x=document.createDocumentFragment();if(p.simpleText)return x.appendChild(this.createDocumentFragmentFromString(p.simpleText)),x;if(!p.runs)return x;for(var F=0;F<p.runs.length;F++){var N=p.runs[F];if(N.emoji)x.appendChild(_.uu.createEmoji(N.emoji));else if(N.text)if(N.navigationEndpoint){var h=document.createElement("a");h.classList.add("yt-simple-endpoint");w2$(h,N.navigationEndpoint);_.n(h).appendChild(this.createDocumentFragmentFromString(N.text));x.appendChild(h)}else x.appendChild(this.createDocumentFragmentFromString(N.text))}return x},
hasModerationOverlayVisible:function(){var p;return((p=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:p.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(p){p.composedPath().some(function(x){return(x=x instanceof Element?x:null)?x.tagName&&(x.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||x.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.S("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(p)},
colorFromDecimal:function(p){return myE(p)},
markAsDeleted:function(p,x){this.set("data.deletedStateMessage",p);this.set("data.showOriginalContentMessage",x)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(p){if(this.data.contextMenuEndpoint){var x=_.J().resolve(_.CR),F=this.data.contextMenuEndpoint,N;(N=_.uT.instance)&&_.Yp(N,F)?(x=XEm(x,F),N=_.AY(N,{},x)):N=_.gbD(x,F);N.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);p&&p.stopPropagation()}},
handleGetContextMenuResponse_:function(p){var x=_.uT.instance;x&&_.Yp(x,{liveChatEndpoint:{}})||(p=p.response);p.liveChatItemContextMenuSupportedRenderers&&p.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(p.liveChatItemContextMenuSupportedRenderers.menuRenderer);p.actions&&_.lA(this.hostElement,"yt-live-chat-actions",[p.actions])},
handleGetContextMenuError:function(p){if(p instanceof Error||p instanceof Object||p instanceof String)var x=p;_.zj(new _.qE("Error encountered calling GetLiveChatItemContextMenu",x))},
showContextMenu_:function(p){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:p}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.hG(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.hG(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.Y4.YtLiveChatItemBehavior=[Qhv,_.nJ.YtComponentBehavior,_.FU.YtOpenPopupBehavior];_.wP=function(){};var zYC;var shb;var nbB;var yW6;var b0B=function(){var p=_.m.apply(this,arguments)||this;p.active=!1;p.identity=_.Wr;return p};
_.E(b0B,_.m);b0B.prototype.dataChanged=function(){this.active=!1};
b0B.prototype.onClick=function(){_.hG(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
var GH=b0B;GH.prototype.dataChanged=GH.prototype.dataChanged;_.B([_.H(),_.k("design:type",Object)],GH.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],GH.prototype,"active",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],GH.prototype,"dataChanged",null);GH=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],GH);
_.P(GH,"yt-live-chat-text-input-field-suggestion",function(){if(yW6===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;nbB===void 0&&(nbB=document.createElement("template"));var N=nbB;F.call(x,N.content.cloneNode(!0),p.content.firstChild);yW6=p}p=yW6;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});_.Vx=function(p,x,F){return CustomEvent.call(this,p,{detail:{value:x,path:F}})||this};
_.E(_.Vx,CustomEvent);var AWj=function(){var p=_.m.apply(this,arguments)||this;p.viewerName=null;p.actionMap={"yt-live-chat-actions":"onChatMessage_"};p.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];p.PARTICIPANT_TIME_USEC_=3E8;return p};
_.E(AWj,_.m);_.l=AWj.prototype;_.l.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.l.addParticipant=function(p){var x=_.n$E(this.participants,p,function(N,h){N=N[Object.keys(N)[0]];h=h[Object.keys(h)[0]];N=String(_.Pi(N.authorName)).toLowerCase();h=String(_.Pi(h.authorName)).toLowerCase();return N<h?-1:N==h?0:1}.bind(this));
if(x>=0){var F=this.participants[x];F[Object.keys(F)[0]].timestampUsec&&this.splice("participants",x,1,p)}else this.splice("participants",-x-1,0,p);p=p[Object.keys(p)[0]];x=_.Pi(p.authorName).toLocaleLowerCase();F=x.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(F)||(this.allParticipantsCharMap_[F]={});this.allParticipantsCharMap_[F][x]=p};
_.l.getAuthorsFromPrefix=function(p){return this.allParticipantsCharMap_.hasOwnProperty(p)?this.allParticipantsCharMap_[p]:null};
_.l.computeViewerRegex_=function(p){if(!p)return null;p=p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp("([@#]"+p.replace(/ /g,"\\s*")+"|^"+p.replace(/ /g,"\\s*")+"$|^"+p.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+p.replace(/ /g,"\\s*")+"$|(?<=\\s)"+p.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.l.checkForStaleParticipants_=function(){var p=this;this.trimOldParticipants_();this.asyncHandle_&&q2J(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.zD(function(){p.checkForStaleParticipants_()},3E4))};
_.l.onChatMessage_=function(p){var x=this,F=Date.now()*1E3;p.forEach(function(N){if(N=_.r(N,OqB)){N=N.item;var h=Object.keys(N)[0];x.SUPPORTED_ITEM_TYPES_.indexOf(h)!=-1&&N[h].timestampUsec>=F-x.PARTICIPANT_TIME_USEC_&&x.addParticipant(N)}},this);
this.checkForStaleParticipants_()};
_.l.trimOldParticipants_=function(){for(var p=Date.now()*1E3,x=this.participants.length-1;x>=0;x--){var F=this.participants[x];F=F[Object.keys(F)[0]];F.timestampUsec&&F.timestampUsec<p-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",x,1)}};
_.Wn=AWj;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],_.Wn.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],_.Wn.prototype,"viewerName",void 0);_.B([_.H({computed:"computeViewerRegex_(viewerName)"}),_.k("design:type",Object)],_.Wn.prototype,"viewerRegex",void 0);_.B([_.H({value:function(){return[]},
notify:!0}),_.k("design:type",Array)],_.Wn.prototype,"participants",void 0);_.Wn=_.B([_.JZ({is:"yt-live-chat-participants-manager",noInjection:!0})],_.Wn);var u0Z=/.*([:@#].*?)$/,Hn=/\u00a0/g,YLJ=String.fromCharCode(160),wE6={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"},GxZ=function(){var p=_.m.apply(this,arguments)||this;p.disabled=!1;p.liveChatRichMessageInput=null;p.messageInput=null;p.isValidWithNoInputText=!1;p.suggestions=[];p.emojiManager=_.uu;p.inputMethodEditorActive=
!1;p.suggestionIndex=-1;p.JSC$11810_lastSuggestionRange=null;return p};
_.E(GxZ,_.m);_.l=GxZ.prototype;_.l.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.l.attached=function(){_.Dr&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.l.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.l.dataChanged=function(){if(!this.ignoreColorMapping){var p=!1,x={},F;for(F in wE6)this.data&&this.data.hasOwnProperty(F)&&(x[wE6[F]]=this.colorFromDecimal(this.data[F]),p=!0);p&&_.eV(this.hostElement,x)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.l.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.l.colorFromDecimal=function(p){p=Math.floor(Number(p));return"rgba("+[p>>16&255,p>>8&255,p&255,(p>>24&255)/255].join()+")"};
_.l.preventDrag=function(p){p.dataTransfer&&(p.dataTransfer.dropEffect="none");p.preventDefault()};
_.l.preventResize=function(p){p.returnValue=!1};
_.l.onInputChange=function(){var p=this.characterCount,x=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&x&&x.remove();if(!x&&this.characterCount>this.maxCharacterLimit){var F=window.getSelection();if(F){var N=F.getRangeAt(0);F.removeAllRanges();F.addRange(N)}}if(F=this.getCurrentRange())N=this.calculateTextBeforeRange(F),this.completeEmojisInRange(F,N,!0)||this.updateSuggestions(F,N);N=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(N);
_.hG(this.hostElement,"yt-live-chat-message-input-change",N);x&&this.characterCount===0&&x.remove();F&&F.commonAncestorContainer.parentElement.id==="input"&&F.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>p):F&&!F.collapsed&&F.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(p=this.input.childNodes.length-1;p>=0;p--)this.input.childNodes[p].nodeName==="BR"&&this.input.childNodes[p].remove()};
_.l.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.l.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var p=this.getCurrentRange();p&&p.commonAncestorContainer.parentElement.id==="input"&&p.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.l.mergeOverflowText=function(p){if(p){var x=document.createRange();x.selectNodeContents(p);x=x.extractContents();this.input.insertBefore(x,p)}};
_.l.checkRangeAtEndOfInput=function(){var p=this.getCurrentRange();if(p){var x=_.n(this.hostElement).querySelector("#overflow-text"),F=document.createRange();x&&x.previousSibling?x.previousSibling instanceof HTMLImageElement?F.selectNode(x.previousSibling):F.selectNodeContents(x.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?F.selectNode(this.input.lastChild):F.selectNodeContents(this.input.lastChild));F.collapse(!1);return F.isPointInRange(p.startContainer,
p.startOffset)}return!1};
_.l.handleOverflowText=function(p){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var x=_.n(this.hostElement).querySelector("#overflow-text"),F=this.getCurrentRange();this.input.normalize();p=this.checkRangeAtEndOfInput()&&p;this.mergeOverflowText(x);for(var N,h=0,c=0,M,f=this.input.childNodes,K=0;K<f.length;K++){var t=f[K];t instanceof Text?(c+=t.textContent.length,c>this.maxCharacterLimit&&(N=t,h=this.maxCharacterLimit+t.textContent.length-c)):t instanceof HTMLImageElement&&
(N=void 0,c=t.dataset.emojiId&&((N=this.data)==null?0:N.emojiCharacterCount)?c+this.data.emojiCharacterCount:c+t.alt.length,N=this.input,h=K);if(c>this.maxCharacterLimit&&N){M=document.createRange();M.collapse(!1);x?(c=this.input.lastChild.previousSibling,c instanceof Text?M.setEnd(this.input.lastChild.previousSibling,c.textContent.length):c instanceof HTMLImageElement&&M.setEnd(this.input,this.input.childNodes.length-1)):M.selectNodeContents(this.input);M.setStart(N,h);break}}M&&(N=!1,F&&(p=M.isPointInRange(F.startContainer,
F.startOffset-1)),x||(x=document.createElement("span"),x.id="overflow-text",x.textContent="",x.setAttribute("contenteditable","true"),_.n(_.n(this.hostElement).querySelector("#input")).appendChild(x),N=!0),x&&(F=M.extractContents(),x.insertBefore(F,x.firstChild),p&&x.firstChild&&(F=document.createRange(),N?F.setStartAfter(x.lastChild):F.setStartAfter(x.firstChild),F.collapse(!0),x=window.getSelection(),x.removeAllRanges(),x.addRange(F))))}};
_.l.checkForDuplicateSpans=function(){for(var p=0;p<this.input.childNodes.length;p++){var x=this.input.childNodes[p];if(x.nodeName==="SPAN"){var F=document.createRange();F.selectNodeContents(x);F=F.extractContents();this.input.insertBefore(F,x);x.remove()}}this.handleOverflowText(!0)};
_.l.getCurrentRange=function(){var p=window.getSelection();return p&&p.rangeCount?p.getRangeAt(0).cloneRange():null};
_.l.getInputRange=function(){var p=this.getCurrentRange();if(p){for(var x=p.commonAncestorContainer,F=!1,N=_.n(this.hostElement).querySelector("#input");x;){if(x===N){F=!0;break}x=x.parentNode}F||(p=null)}p||(p=this.getRangeAtEnd());return p};
_.l.getRangeAtEnd=function(){var p=document.createRange(),x=_.n(this.hostElement).querySelector("#input").lastChild;!x||x.nodeName!=="#text"&&x.nodeName!=="SPAN"?(p.selectNodeContents(_.n(this.hostElement).querySelector("#input")),p.collapse(!1)):x.nodeName==="#text"?p.setStart(x,x.textContent.length):p.setStart(x,x.childNodes.length);return p};
_.l.getSuggestions=function(p){var x=[],F=p.substring(0,3),N=rWn(_.uu,F,!0);if(N)for(var h in N)if(h.toLocaleLowerCase().indexOf(p)===0){var c=N[h];if(c&&c.emojiId){if(c=SLJ(_.uu,c.emojiId)){var M=void 0,f=void 0,K=void 0,t=void 0,d=((M=c.image)==null?0:(f=M.accessibility)==null?0:(K=f.accessibilityData)==null?0:K.label)||c.isCustomEmoji?(t=c.shortcuts)==null?void 0:t[0]:c.emojiId;x.push({suggestion:{emoji:!0,image:c.image,alt:d,text:h,textToInsertWhenSelected:c.isCustomEmoji?h:d}})}if(x.length>=
64)break}}if(!this.participantsManager)return null;h=_.S("enable_web_yt_handles")||_.S("enable_live_chat_yt_handles");if(F.indexOf("@")===0||F.indexOf("#")===0)if(N=F.charAt(0),h&&F.indexOf("@")===0?F=F.substring(0,2):(p=p.substring(1),F=F.substring(1)),F=this.participantsManager.getAuthorsFromPrefix(F))for(var v in F)if(v.indexOf(p)===0&&(h=F[v],c=_.Pi(h.authorName),x.push({suggestion:{author:!0,authorType:N,image:h.authorPhoto,alt:c,text:c}}),x.length>=64))break;return x?x.sort(function(C,X){return X.suggestion.text<
C.suggestion.text?-1:X.suggestion.text===C.suggestion.text?0:1}):null};
_.l.insertSuggestion=function(p){p.emoji?this.insertTextAtRange(this.JSC$11810_lastSuggestionRange,p.textToInsertWhenSelected||""):p.author&&this.insertTextAtRange(this.JSC$11810_lastSuggestionRange,p.authorType+p.text+YLJ)};
_.l.updateSuggestionsAtCaret=function(){var p=this.getCurrentRange();p&&this.updateSuggestions(p,this.calculateTextBeforeRange(p))};
_.l.offsetStartOfRangeBy=function(p,x){for(;x>0;)if(p.startOffset-x>=0){p.setStart(p.startContainer,p.startOffset-x);break}else{x=p.startContainer instanceof HTMLImageElement?x-p.startContainer.alt.length:x-p.startOffset;var F=p.startContainer.previousSibling;if(!F){p.setStart(p.startContainer,0);break}if(_.S("live_chat_require_space_for_autocomplete_emoji")){var N=void 0,h=void 0;p.setStart(F,((N=F)==null?void 0:(h=N.textContent)==null?void 0:h.length)||0)}else p.setStart(F,F.childNodes.length||
0)}};
_.l.updateSuggestions=function(p,x){var F=this;this.JSC$11810_lastSuggestionRange&&(this.JSC$11810_lastSuggestionRange.detach(),this.JSC$11810_lastSuggestionRange=null);if((x=u0Z.exec(x))&&x.length&&(x=x[x.length-1].toLocaleLowerCase(),x.length>2&&(this.offsetStartOfRangeBy(p,x.length),this.JSC$11810_lastSuggestionRange=p,(p=this.getSuggestions(x))&&p.length))){this.suggestions=p;_.jB(this,function(){_.n(F.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(p.length-1);return}this.dropdown.opened=!1};
_.l.completeEmojisInRange=function(p,x,F){var N=x.replace(/[\s\xa0]+$/,"");x=x.length-N.length;N=N.split(" ");N=N[N.length-1].trim().toLocaleLowerCase();var h=N.lastIndexOf(":");if(F&&!x&&h!==N.length-1)return!1;h!==-1&&(F=N.lastIndexOf(":",h-1),F!==-1&&(N=N.substring(F)));if((F=_.pE(_.uu,N))&&F.emojiId){F=SLJ(_.uu,F.emojiId)||null;this.offsetStartOfRangeBy(p,N.length+x);var c,M,f,K;N=(((c=F)==null?0:c.isCustomEmoji)?(M=F)==null?void 0:(f=M.shortcuts)==null?void 0:f[0]:(K=F)==null?void 0:K.emojiId)||
"";x&&(N+=YLJ);this.insertTextAtRange(p,N);this.dropdown.opened=!1;return!0}return!1};
_.l.onSuggestion=function(p){this.insertSuggestion(p.detail);this.dropdown.opened=!1};
_.l.onKeyPress=function(p){p.keyCode===13&&(p.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.hG(this.hostElement,"yt-live-chat-send-message"))};
_.l.completeEmojis=function(){var p=document.createRange(),x=_.n(this.hostElement).querySelector("#input").lastChild;x?p.setStart(x,x.childNodes.length):(p.selectNodeContents(_.n(this.hostElement).querySelector("#input")),p.collapse(!1));this.completeEmojisInRange(p,this.calculateTextBeforeRange(p),_.S("live_chat_require_space_for_autocomplete_emoji"))};
_.l.maybePreventTextFormatting=function(p){!_.qL||!p.ctrlKey&&!p.metaKey||p.keyCode!==66&&p.keyCode!==73||(p.stopImmediatePropagation(),p.preventDefault())};
_.l.onKeyDown=function(p){this.maybePreventTextFormatting(p);if(this.dropdown.opened)switch(p.keyCode){case 27:this.dropdown.opened=!1;p.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;p.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);p.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),p.preventDefault()}};
_.l.onKeyUp=function(p){switch(p.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.ML)this.onInputChange()};
_.l.changeSuggestionIndex=function(p){if(this.dropdown.opened){var x=_.n(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<x.children.length&&(x.children[this.suggestionIndex].active=!1);var F=this.suggestions.length;this.suggestionIndex=(p+F)%F;p=x.children[this.suggestionIndex];p.active=!0;x.scrollTop=p.offsetTop}};
_.l.onInputPaste=function(p){p.preventDefault();(p=p.clipboardData)&&p.types&&(p=p.getData("text/plain")||"",p=p.replace(/\n/g,""),this.insertText(p));(p=this.getCurrentRange())&&p.commonAncestorContainer.parentElement.id==="input"&&p.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.l.onFocus=function(){this._setFocused(!0)};
_.l.onBlur=function(){this._setFocused(!1)};
_.l.insertText=function(p){this.insertTextAtRange(this.getInputRange(),p)};
_.l.insertTextAtRange=function(p,x){if(p&&(p.collapsed||p.deleteContents(),x=_.uu.createDocumentFragment(x,!0,!1))){for(var F=_.a((x==null?void 0:x.childNodes)||[]),N=F.next();!N.done;N=F.next()){N=N.value;var h=void 0,c=void 0,M=void 0,f=void 0,K=void 0;(M=(h=window)==null?void 0:(c=h.ShadyCSS)==null?void 0:c.ScopingShim)==null||(K=(f=M).scopeNode)==null||K.call(f,N,this.hostElement.localName)}F=x.lastChild;p.insertNode(x);this.focused||this.input.focus();if(this.focused){p=p.cloneRange();p.selectNodeContents(F);
p.collapse(!1);if(x=window.getSelection())x.removeAllRanges(),x.addRange(p);p.commonAncestorContainer.parentElement.id==="input"&&p.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}p=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(p);_.hG(this.hostElement,"yt-live-chat-message-input-change",p)}};
_.l.setLiveChatRichMessageInput=function(p){_.n(_.n(this.hostElement).querySelector("#input")).textContent="";if(p&&p.textSegments){for(var x=0;x<p.textSegments.length;x++){var F=p.textSegments[x];F.text?_.n(_.n(this.hostElement).querySelector("#input")).appendChild(_.uu.createDocumentFragment(F.text,!0,!1)):F.emojiId&&(F=_.bu(_.uu,F.emojiId))&&_.n(_.n(this.hostElement).querySelector("#input")).appendChild(_.uu.createEmoji(F,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.l.setText=function(p){this.setLiveChatRichMessageInput(p?{textSegments:[{text:p}]}:null)};
_.l.calculateTextBeforeRange=function(p){var x="",F=p.startContainer;if(F&&F instanceof Text){var N;x=((N=F.textContent)==null?void 0:N.substring(0,p.startOffset))||"";F=F.previousSibling}for(;F&&F instanceof Text;)x=F.textContent+x,F=F.previousSibling;return x.replace(Hn," ")};
_.l.calculateLiveChatRichMessageInput=function(){for(var p=[],x="",F=_.n(_.n(this.hostElement).querySelector("#input")).childNodes,N=0;N<F.length;N++){var h=F[N];h instanceof Text?x+=h.textContent:h instanceof HTMLImageElement&&(h.dataset.emojiId?(x&&(p.push({text:x.replace(Hn," ")}),x=""),p.push({emojiId:h.dataset.emojiId})):x+=h.alt)}x&&p.push({text:x.replace(Hn," ")});if(F=_.n(this.hostElement).querySelector("#overflow-text")){x="";F=F.childNodes;for(N=0;N<F.length;N++)h=F[N],h instanceof Text?
x+=h.textContent:h instanceof HTMLImageElement&&(h.dataset.emojiId?(x&&(p.push({text:x.replace(Hn," ")}),x=""),p.push({emojiId:h.dataset.emojiId})):x+=h.alt);x&&p.push({text:x.replace(Hn," ")})}return{textSegments:p}};
_.l.computeCharacterCount=function(p){if(!p||!p.textSegments)return 0;for(var x=0,F=0;F<p.textSegments.length;F++){var N=p.textSegments[F];if(N.text)x+=N.text.length;else if(N.emojiId){var h=void 0;if((h=this.data)==null?0:h.emojiCharacterCount)x+=this.data.emojiCharacterCount;else{var c=h=void 0,M=void 0;x+=((c=_.bu(_.uu,(h=N)==null?void 0:h.emojiId))==null?void 0:(M=c.shortcuts)==null?void 0:M[0].length)||0}}}return x};
_.l.characterCountChanged=function(){_.hG(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.l.focusedChanged=function(){this.hostElement.dispatchEvent(new _.Vx("focused-changed",this.focused))};
_.l.focus=function(){this.setFocus(!1)};
_.l.focusAtEnd=function(){this.setFocus(!0)};
_.l.setFocus=function(p){p=p?this.getRangeAtEnd():this.getInputRange();_.n(this.hostElement).querySelector("#input").focus();var x=window.getSelection();x&&(x.removeAllRanges(),x.addRange(p))};
_.l.insertEmoji=function(p){var x,F=((p==null?0:p.isCustomEmoji)?(x=p.shortcuts)==null?void 0:x[0]:p==null?void 0:p.emojiId)||"";this.insertText(F)};
_.l.computeText=function(p){if(!p||!p.textSegments)return"";for(var x="",F=0;F<p.textSegments.length;F++){var N=p.textSegments[F];if(N.text)x+=N.text;else if(N.emojiId){var h=void 0,c=void 0,M=void 0;x+=((c=_.bu(_.uu,(h=N)==null?void 0:h.emojiId))==null?void 0:(M=c.shortcuts)==null?void 0:M[0])||""}}return x};
_.l.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.R8.Object.defineProperties(GxZ.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.maxCharacterLimit)||0}},
characterCount:{configurable:!0,enumerable:!0,get:function(){return this.computeCharacterCount(this.liveChatRichMessageInput)}},
remainingCharacterCount:{configurable:!0,enumerable:!0,get:function(){return this.maxCharacterLimit-this.characterCount}},
hasText:{configurable:!0,enumerable:!0,get:function(){return this.characterCount>0}},
isInputValid:{configurable:!0,enumerable:!0,get:function(){return this.characterCount===0?this.isValidWithNoInputText:this.characterCount<=this.maxCharacterLimit}}});
var m_=GxZ;m_.prototype.focusedChanged=m_.prototype.focusedChanged;m_.prototype.characterCountChanged=m_.prototype.characterCountChanged;m_.prototype.onSuggestion=m_.prototype.onSuggestion;m_.prototype.onMessageSet=m_.prototype.onMessageSet;m_.prototype.dataChanged=m_.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],m_.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],m_.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],m_.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],m_.prototype,"disabled",void 0);_.B([_.w("disabled"),_.k("design:type",Number),_.k("design:paramtypes",[])],m_.prototype,"inputTabIndex",null);
_.B([_.w("data.maxCharacterLimit"),_.H({readOnly:!0,notify:!0}),_.k("design:type",Number),_.k("design:paramtypes",[])],m_.prototype,"maxCharacterLimit",null);_.B([_.w("liveChatRichMessageInput"),_.H({readOnly:!0,notify:!0}),_.k("design:type",Number),_.k("design:paramtypes",[])],m_.prototype,"characterCount",null);_.B([_.w("maxCharacterLimit, characterCount"),_.H({readOnly:!0,notify:!0}),_.k("design:type",Number),_.k("design:paramtypes",[])],m_.prototype,"remainingCharacterCount",null);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],m_.prototype,"isChatMessageInput",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],m_.prototype,"inputExpanded",void 0);_.B([_.H({readOnly:!0,notify:!0}),_.k("design:type",Object)],m_.prototype,"liveChatRichMessageInput",void 0);_.B([_.H(),_.k("design:type",Object)],m_.prototype,"messageInput",void 0);_.B([_.H(),_.k("design:type",Boolean)],m_.prototype,"ignoreColorMapping",void 0);
_.B([_.w("characterCount"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],m_.prototype,"hasText",null);_.B([_.H(),_.k("design:type",Object)],m_.prototype,"isValidWithNoInputText",void 0);_.B([_.w("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.H(),_.k("design:type",Boolean),_.k("design:paramtypes",[])],m_.prototype,"isInputValid",null);_.B([_.H({readOnly:!0,value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],m_.prototype,"focused",void 0);
_.B([_.H(),_.k("design:type",Array)],m_.prototype,"suggestions",void 0);_.B([_.H(),_.k("design:type",_.yx)],m_.prototype,"emojiManager",void 0);_.B([_.H(),_.k("design:type",_.Wn)],m_.prototype,"participantsManager",void 0);_.B([_.H(),_.k("design:type",Boolean)],m_.prototype,"noUnderline",void 0);_.B([_.H(),_.k("design:type",Object)],m_.prototype,"inputMethodEditorActive",void 0);_.B([_.Ff("#dropdown"),_.k("design:type",Object)],m_.prototype,"dropdown",void 0);
_.B([_.Ff("#input"),_.k("design:type",HTMLElement)],m_.prototype,"input",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],m_.prototype,"dataChanged",null);_.B([_.W("messageInput"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],m_.prototype,"onMessageSet",null);
_.B([_.V("yt-live-chat-select-suggestion"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],m_.prototype,"onSuggestion",null);_.B([_.W("characterCount"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],m_.prototype,"characterCountChanged",null);_.B([_.W("focused"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],m_.prototype,"focusedChanged",null);
m_=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],m_);
_.V7n=_.P(m_,"yt-live-chat-text-input-field-renderer",function(){if(shb===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;zYC===void 0&&(zYC=document.createElement("template"));var N=zYC;F.call(x,N.content.cloneNode(!0),p.content.firstChild);shb=p}p=shb;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Wzm=function(){var p=_.m.apply(this,arguments)||this;p.buttonOverrides={style:"overlay",type:"filled"};p.allowAnimations=!1;p.modern=_.S("web_button_rework_with_live");p.noPadding=!1;return p};
_.E(Wzm,_.m);_.l=Wzm.prototype;_.l.shouldSupportInlineActionButtons=function(){return!0};
_.l.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{liveChatPaidMessageFooterRenderer:"yt-live-chat-paid-message-footer-renderer"}},"data.buyButton":{id:"lower-buy-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.buyFlowButton":{id:"buy-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}},
"data.pdgLikeButton":{id:"like-button",mapping:{pdgLikeViewModel:{component:"yt-live-chat-like-button-view-model"}}},"data.replyButton":{id:"reply-button",mapping:{pdgReplyButtonViewModel:{component:"yt-live-chat-reply-button-view-model"}}},"data.leaderboardBadge":{id:"leaderboard-badge",mapping:{buttonViewModel:{component:"yt-button-view-model"}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}}}};
_.l.ready=function(){var p=document.querySelector("yt-live-chat-app");p&&p.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.l.attached=function(){this.allowAnimations=!1};
_.l.dataChanged=function(){if(this.data){var p={"--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)};_.eV(this.hostElement,p);this.allowAnimations=!0}};
_.l.messageChanged=function(){var p,x=(p=this.data)==null?void 0:p.message;p=_.n(_.n(this.hostElement).querySelector("#message"));p.textContent="";x&&p.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(x))};
_.l.computeShowOnlyHeader=function(p,x){return!p||p.pdgLikeButton||p.replyButton||p.buyFlowButton?!1:this.isEmpty(p,x)&&!p.footer};
_.l.computeShowFooterDivider=function(p,x,F){return p?!!p.footer&&!this.isEmpty(p,x)&&!F:!1};
_.l.computeIsUserEditable=function(p){return!!p.inputField};
_.l.computeHasHeartButton=function(p){return(p==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(p==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(p==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.l.computeNoveltyImage=function(p){if(p.headerOverlayImage&&p.headerOverlayImage.thumbnails.length){var x=p.headerOverlayImage.thumbnails[0],F,N;if((F=p.pdgPurchasedNoveltyLoggingDirectives)==null?0:(N=F.loggingDirectives)==null?0:N.trackingParams){var h,c;bIp((h=p.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(c=h.loggingDirectives)==null?void 0:c.trackingParams)}return x.width||0}return 0};
_.l.computeAuthorPhotoSize=function(p){return(p==null?0:p.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.l.inputFocus=function(){var p=_.n(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");p&&p.focus()};
_.l.inputInsertEmoji=function(p){var x=_.n(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");x&&x.insertEmoji(p)};
_.l.inputMessage=function(){var p=_.n(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),x;return p&&((x=this.data)==null?0:x.inputField)?(p.completeEmojis(),_.ym(p.liveChatRichMessageInput)):null};
_.l.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.l.isEmpty=function(p,x){return p?p.empty||!(p.message||p.inputField||x):!0};
_.l.onLowerBuyButtonClick=function(){var p,x=_.r((p=this.data)==null?void 0:p.buyButton,_.AS);x&&x.trackingParams&&!OY6(x.command)&&(p=_.fr(x.trackingParams))&&(x=_.b0())&&_.B5(x,p)};
_.l.shouldSupportWholeItemClick=function(){return!0};
_.R8.Object.defineProperties(Wzm.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?0:p.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
var o0=Wzm;o0.prototype.isDeletedChanged=o0.prototype.isDeletedChanged;o0.prototype.messageChanged=o0.prototype.messageChanged;o0.prototype.dataChanged=o0.prototype.dataChanged;_.B([_.u(ByC.YtPdgLiveChatItemBehavior),_.k("design:type",Object)],o0.prototype,"ytPdgLiveChatItemBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],o0.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.z2),_.k("design:type",Object)],o0.prototype,"ytLiveChatReduxBehavior",void 0);
_.B([_.u(_.Y4.YtLiveChatItemBehavior),_.k("design:type",_.wP)],o0.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],o0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],o0.prototype,"data",void 0);_.B([_.H({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:nKm}),_.k("design:type",Object)],o0.prototype,"engagementState",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.k("design:type",Boolean)],o0.prototype,"isUserEditable",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.k("design:type",Boolean)],o0.prototype,"hasHeartButton",void 0);_.B([_.H({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.k("design:type",Boolean)],o0.prototype,"showOnlyHeader",void 0);
_.B([_.H({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.k("design:type",Boolean)],o0.prototype,"showFooterDivider",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Object)],o0.prototype,"allowAnimations",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],o0.prototype,"dashboardMoneyFeed",void 0);_.B([_.H({computed:"computeNoveltyImage(data)"}),_.k("design:type",Number)],o0.prototype,"noveltyWidth",void 0);
_.B([_.H({computed:"computeAuthorPhotoSize(data)"}),_.k("design:type",Number)],o0.prototype,"authorPhotoSize",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],o0.prototype,"modern",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],o0.prototype,"noPadding",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],o0.prototype,"dataChanged",null);
_.B([_.W("data.message"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],o0.prototype,"messageChanged",null);_.B([_.w("data","dashboardMoneyFeed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],o0.prototype,"hideLowerBumper",null);_.B([_.W("isDeleted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],o0.prototype,"isDeletedChanged",null);
o0=_.B([_.L({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],o0);
_.P(o0,"yt-live-chat-paid-message-renderer",function(){if(H9k===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Wrj===void 0&&(Wrj=document.createElement("template"));var N=Wrj;F.call(x,N.content.cloneNode(!0),p.content.firstChild);H9k=p}p=H9k;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var H0C;var mSI;var obB=function(){var p=_.hZ.apply(this,arguments)||this;p._noAccessors=!0;return p};
_.E(obB,_.hZ);obB.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.sd("openPopupConfig")};
var O0C=obB;_.B([_.u(_.FU.YtOpenPopupBehavior),_.k("design:type",Object)],O0C.prototype,"ytOpenPopupBehavior",void 0);O0C=_.B([_.l8()],O0C);_.Oo=[_.FU.YtOpenPopupBehavior,O0C.prototype];var jh6;var Vm=[_.Du,Y1D,_.n4,_.fR,_.B7,_.OFk,_.dX,_.BAD,_.ua,QAp];_.S("web_watch_get_updated_metadata_response_processing")&&Vm.push(_.DJv);_.S("web_continuation_response_processing")&&Vm.push(_.zO);var C6p=new _.iE("RESPONSE_RECEIVED_COMMANDS"),rJB=new _.iE("RESPONSE_RECEIVED_COMMANDS");var ZwB="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),qrM=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],Kyk=["GET_UNSEEN_NOTIFICATION_COUNT"];var jg=function(){var p=_.hZ.apply(this,arguments)||this;p._noAccessors=!0;p.serviceEndpointHandlers=[];return p};
_.E(jg,_.hZ);jg.prototype.created=function(){var p=this;this.endpointHandlerActionMap={"yt-service-request":function(x,F,N,h){var c;return fcp(p.hostElement,x,F,N,h,p.serviceEndpointHandlers,(c=p.onEntitiesUpdated)==null?void 0:c.bind(p))}}};
jg.prototype.attached=function(){_.WZ(_.Vj.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
jg.prototype.detached=function(){_.HZ(_.Vj.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
var LzI=jg;LzI=_.B([_.l8()],LzI);_.P7v=[LzI.prototype];var TUD,BUl=function(){return TUD!==void 0?TUD:TUD=document.createElement("template")};
document.head.appendChild(BUl().content);var RYv;var kxj=document.head,USj=kxj.appendChild,i0m;if(RYv===void 0){var IjC=document.createElement("template");_.g(IjC,"\x3c!--css-build:shady--\x3e");IjC.content.insertBefore(BUl().content.cloneNode(!0),IjC.content.firstChild);RYv=IjC}i0m=RYv;USj.call(kxj,i0m.content);var $Sk,eYI=function(){return $Sk!==void 0?$Sk:$Sk=document.createElement("template")};
document.head.appendChild(eYI().content);var pGK;var xel=document.head,F7I=xel.appendChild,N0n;if(pGK===void 0){var hOZ=document.createElement("template");_.g(hOZ,"\x3c!--css-build:shady--\x3e");hOZ.content.insertBefore(eYI().content.cloneNode(!0),hOZ.content.firstChild);pGK=hOZ}N0n=pGK;F7I.call(xel,N0n.content);_.Ei("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.Ei("sharingRendererButtons","buttonRenderer","ytd-button-renderer");var lkB=_.S("web_button_rework")&&_.nt("BUTTON_REWORK")||_.S("web_button_rework_with_live"),cpZ=function(){var p=_.m.apply(this,arguments)||this;p.isPressed=!1;p.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return p};
_.E(cpZ,_.m);_.l=cpZ.prototype;_.l.created=function(){this.showTooltips=!0};
_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.onHintIdChanged=function(){var p=this,x,F,N=(x=this.ytButtonBehavior.data)==null?void 0:(F=x.hint)==null?void 0:F.hintRenderer;if(N&&N.hintId){x=_.Mt(this.hostElement,"yt-get-opened-popups-action");x=(x&&x.length===1?x[0]:[]).length>0;var h=null;N.hintId!=="sponsor-pre-purchase"||x?N.hintId.startsWith("sponsor-post-purchase")&&!x?h=hbJ("membership-manage"):N.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!x&&(h=hbJ("membership-freebie-join")):h=hbJ("membership-join");h&&_.E0.addLowPriorityJob(function(){for(var c=
_.a(h),M=c.next();!M.done;M=c.next())p.ytComponentBehavior.resolveCommand(M.value)})}};
_.l.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.l.onYtNavigate=function(p){var x=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(p.detail.endpoint);x&&(p.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(x))};
_.l.onYtServiceRequestSent=function(p,x){this.handleServiceRequestActions(x);_.hG(this.hostElement,"yt-service-request-sent-button-renderer")};
_.l.onServiceRequestCompleted=function(p,x){this.handleServiceRequestActions(x);_.hG(this.hostElement,"yt-service-request-completed-button-renderer")};
_.l.updateButton=function(p){var x;if(p=(x=_.r(p,ZFZ))==null?void 0:x.updatedButton)this.ytButtonBehavior.data=_.r(p,_.AS)};
_.l.handleUpdateButtonAction=function(p){var x=this.ytButtonBehavior.data;x.targetId&&p.updateButtonAction.targetId&&x.targetId===p.updateButtonAction.targetId&&this.updateButton(p)};
_.l.handleServiceRequestActions=function(p){if(p=p.actions)for(var x=0;x<p.length;x++)this.updateButton(p[x])};
_.R8.Object.defineProperties(cpZ,{template:{configurable:!0,enumerable:!0,get:function(){if(jh6===void 0){var p=document.createElement("template");_.g(p,"\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");p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);jh6=p}p=jh6;return p}}});
_.LX=cpZ;_.LX.prototype.onServiceRequestCompleted=_.LX.prototype.onServiceRequestCompleted;_.LX.prototype.onYtServiceRequestSent=_.LX.prototype.onYtServiceRequestSent;_.LX.prototype.onYtNavigate=_.LX.prototype.onYtNavigate;_.LX.prototype.onPressedStateChanged=_.LX.prototype.onPressedStateChanged;_.LX.prototype.onHintIdChanged=_.LX.prototype.onHintIdChanged;_.B([_.H(),_.k("design:type",Object)],_.LX.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],_.LX.prototype,"isPressed",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],_.LX.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.xZJ.YtButtonBehavior),_.k("design:type",Object)],_.LX.prototype,"ytButtonBehavior",void 0);_.B([_.u(_.Oo),_.k("design:type",Object)],_.LX.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],_.LX.prototype,"ytComponentBehavior",void 0);
_.B([_.u(a0.YtRenderButtonBehavior),_.k("design:type",Object)],_.LX.prototype,"ytRenderButtonBehavior",void 0);_.B([_.W("data.hint.hintRenderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],_.LX.prototype,"onHintIdChanged",null);_.B([_.W("isPressed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],_.LX.prototype,"onPressedStateChanged",null);
_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],_.LX.prototype,"onYtNavigate",null);_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],_.LX.prototype,"onYtServiceRequestSent",null);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Ht]),_.k("design:returntype")],_.LX.prototype,"onServiceRequestCompleted",null);_.LX=_.B([_.L({is:"ytd-button-renderer",disableElementRegistration:lkB})],_.LX);var akl=function(){var p=_.m.apply(this,arguments)||this;p.modern=_.S("web_button_rework_with_live");p.buttonOverrides={style:"overlay",type:"filled"};return p};
_.E(akl,_.m);_.l=akl.prototype;_.l.configureRendererStamper=function(){return{"data.buyButton":{id:"buy-flow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}},"data.creatorHeartButton":{id:"creator-heart-button",mapping:{creatorHeartViewModel:{component:"yt-live-chat-creator-heart-view-model"}}}}};
_.l.ready=function(){var p=document.querySelector("yt-live-chat-app");p&&p.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.l.dataChanged=function(){if(this.data&&this.data.sticker){var p=_.Ou(this.data.sticker.thumbnails,this.stickerWidth);p||_.nUM(p).thenCatch(function(){_.no(new _.qE("Failed to load Super Sticker with url",p))})}};
_.l.computeAuthorPhotoSize=function(p){return(p==null?0:p.isV2Style)?32:40};
_.l.computeIsV2Style=function(p){return(p==null?0:p.isV2Style)?!0:!1};
_.l.onStickerLoaded=function(p){var x,F,N;(x=_.os(p))==null||(F=x.parentNode)==null||(N=F.classList)==null||N.add("sticker-loaded")};
_.l.computeNoveltyImageWidth=function(p){var x,F;if(p==null?0:(x=p.headerOverlayImage)==null?0:(F=x.thumbnails)==null?0:F.length){x=p.headerOverlayImage.thumbnails[0];var N,h;if((N=p.pdgPurchasedNoveltyLoggingDirectives)==null?0:(h=N.loggingDirectives)==null?0:h.trackingParams){var c,M;bIp((c=p.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(M=c.loggingDirectives)==null?void 0:M.trackingParams)}return x.width||0}return 0};
_.l.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.l.updateStickerStyles=function(){var p=this.data;p&&(p={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(p.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(p.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(p.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(p.authorNameTextColor)},
_.eV(this.hostElement,p))};
_.l.onBuyButtonClick=function(){var p,x=_.r((p=this.data)==null?void 0:p.buyButton,_.AS);x&&!OY6(x.command)&&this.ytRendererBehavior.logExplicitClick(x)};
_.l.shouldSupportWholeItemClick=function(){return!0};
_.R8.Object.defineProperties(akl.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 p;return((p=this.data)==null?0:p.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
var Pn=akl;Pn.prototype.updateStickerStyles=Pn.prototype.updateStickerStyles;Pn.prototype.isDeletedChanged=Pn.prototype.isDeletedChanged;Pn.prototype.onStickerLoaded=Pn.prototype.onStickerLoaded;Pn.prototype.dataChanged=Pn.prototype.dataChanged;_.B([_.u(ByC.YtPdgLiveChatItemBehavior),_.k("design:type",Object)],Pn.prototype,"ytPdgLiveChatItemBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Pn.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.Y4.YtLiveChatItemBehavior),_.k("design:type",_.wP)],Pn.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Pn.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Pn.prototype,"data",void 0);
_.B([_.H({computed:"computeAuthorPhotoSize(data)"}),_.k("design:type",Number)],Pn.prototype,"authorPhotoSize",void 0);_.B([_.H(),_.k("design:type",Boolean)],Pn.prototype,"isDeleted",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Pn.prototype,"dashboardMoneyFeed",void 0);_.B([_.H({computed:"computeNoveltyImageWidth(data)"}),_.k("design:type",Number)],Pn.prototype,"noveltyWidth",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Pn.prototype,"modern",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.k("design:type",Boolean)],Pn.prototype,"isV2Style",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Pn.prototype,"dataChanged",null);_.B([_.V("yt-img-shadow-loaded"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Pn.prototype,"onStickerLoaded",null);
_.B([_.w("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],Pn.prototype,"stickerWidth",null);_.B([_.w("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],Pn.prototype,"stickerHeight",null);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Pn.prototype,"hasHeartButton",null);_.B([_.w("data","dashboardMoneyFeed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Pn.prototype,"hideLowerBumper",null);
_.B([_.W("isDeleted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Pn.prototype,"isDeletedChanged",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Pn.prototype,"updateStickerStyles",null);Pn=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],Pn);
_.P(Pn,"yt-live-chat-paid-sticker-renderer",function(){if(mSI===void 0){var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;H0C===void 0&&(H0C=document.createElement("template"));var N=H0C;F.call(x,N.content.cloneNode(!0),p.content.firstChild);mSI=p}p=mSI;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var MEv;var Dem;var fkv,K7I=function(){return fkv!==void 0?fkv:fkv=document.createElement("template")};
document.head.appendChild(K7I().content);var qVb,ZD6=function(){return qVb!==void 0?qVb:qVb=document.createElement("template")};
document.head.appendChild(ZD6().content);var tEB;var deB,vmC=function(){return deB!==void 0?deB:deB=document.createElement("template")};
document.head.appendChild(vmC().content);var JpD;var CnI=document.head,SVK=CnI.appendChild,rpZ;if(JpD===void 0){var EmB=document.createElement("template");_.g(EmB,"\x3c!--css-build:shady--\x3e");EmB.content.insertBefore(vmC().content.cloneNode(!0),EmB.content.firstChild);JpD=EmB}rpZ=JpD;SVK.call(CnI,rpZ.content);var XGD=document.head,gmB=XGD.appendChild,QgI;if(tEB===void 0){var TH=document.createElement("template");_.g(TH,"\x3c!--css-build:shady--\x3e");TH.content.insertBefore(ZD6().content.cloneNode(!0),TH.content.firstChild);TH.content.insertBefore(K7I().content.cloneNode(!0),TH.content.firstChild);tEB=TH}QgI=tEB;gmB.call(XGD,QgI.content);var Bn=function(){var p=_.hZ.apply(this,arguments)||this;p.focusedIndex=0;p.verticalOffset=0;p.verticalAlign="top";p.dynamicAlign=!0;return p};
_.E(Bn,_.hZ);Bn.prototype.emojiUrl=function(p){p=_.bu(this.emojiManager,p);if(!p)return"";var x;p=(x=p.image)==null?void 0:x.thumbnails;return _.Ou(p,24)||""};
var zOv=function(p){var x;p.emojiVariants&&(x=p.data)!=null&&x.target&&_.jB(p,function(){p.set("verticalOffset",-1*p.hostElement.clientHeight);var F=_.n(p.hostElement).querySelector("img");F&&F.focus()})};
_.l=Bn.prototype;_.l.onKeyboardEnter=function(){};
_.l.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.l.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.l.onKeyDown=function(p){switch(p.keyCode){case 13:this.onKeyboardEnter();p.preventDefault();break;case 40:this.changeFocus(1);p.preventDefault();break;case 38:this.changeFocus(-1);p.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.l.onYtEmojiSelect=function(p){var x=this,F,N,h,c,M,f,K,t;return _.D(function(d){if(d.nextAddress==1)return N=(F=x.data)==null?void 0:F.emoji,M=((h=N)==null?void 0:h.stickyPrefId)||((c=N)==null?void 0:c.emojiId),K=(f=p.detail)==null?void 0:f.emojiId,M&&K&&M!==K?_.q(d,(t=x.emojiManager)==null?void 0:EbB(t,N,K),2):d.return();_.lA(x.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[N,K]);_.JB(d)})};
_.l.changeFocus=function(p){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+p+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(p=_.n(this.hostElement).querySelector("#variants"))&&p.children[this.focusedIndex].focus())};
_.R8.Object.defineProperties(Bn.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
var R0=Bn;R0.prototype.onYtEmojiSelect=R0.prototype.onYtEmojiSelect;R0.prototype.onKeyDown=R0.prototype.onKeyDown;R0.prototype.onEmojiVariantsChanged=R0.prototype.onEmojiVariantsChanged;R0.prototype.onVerticalOffsetOrPositionTargetChanged=R0.prototype.onVerticalOffsetOrPositionTargetChanged;_.B([_.u(_.jC),_.k("design:type",Object)],R0.prototype,"ironOverlayBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],R0.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",_.yx)],R0.prototype,"emojiManager",void 0);_.B([_.H(),_.k("design:type",Object)],R0.prototype,"emojiVariants",void 0);_.B([_.H(),_.k("design:type",Object)],R0.prototype,"focusedIndex",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],R0.prototype,"positionTarget",null);_.B([_.H({reflectToAttribute:!0}),_.w("verticalOffset","data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],R0.prototype,"isPositioned",null);
_.B([_.H(),_.k("design:type",Object)],R0.prototype,"verticalOffset",void 0);_.B([_.H(),_.k("design:type",Object)],R0.prototype,"verticalAlign",void 0);_.B([_.H(),_.k("design:type",Object)],R0.prototype,"dynamicAlign",void 0);_.B([_.W("verticalOffset","positionTarget"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],R0.prototype,"onVerticalOffsetOrPositionTargetChanged",null);
_.B([_.W("emojiVariants"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],R0.prototype,"onEmojiVariantsChanged",null);_.B([_.V("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent]),_.k("design:returntype")],R0.prototype,"onKeyDown",null);_.B([_.V("yt-emoji-select"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype",Promise)],R0.prototype,"onYtEmojiSelect",null);R0=_.B([_.l8()],R0);var sgv=[R0.prototype];var nmj;var ypm;var bDk=/medium-light|medium-dark|light|medium|dark/,ApJ=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,ulk=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),YVn=function(){var p=_.m.apply(this,arguments)||this;p.userSelection={left:null,right:null};p.scrollAction="lock";p.isEmojiDraftInProgress=!1;return p};
_.E(YVn,_.m);_.l=YVn.prototype;_.l.onClick=function(p){p=_.os(p);p instanceof HTMLImageElement&&this.selectOrUpdateEmoji(p)};
_.l.selectOrUpdateEmoji=function(p){var x=p.getAttribute("selection");x&&(x==="default"?_.hG(this.hostElement,"yt-emoji-select",_.bu(this.emojiManager,p.id)):x==="left"?this.userSelection=Object.assign({},this.userSelection,{left:p.src}):x==="right"?this.userSelection=Object.assign({},this.userSelection,{right:p.src}):x==="user"&&this.userSelection.left&&this.userSelection.right&&_.hG(this.hostElement,"yt-emoji-select",_.bu(this.emojiManager,p.id)))};
_.l.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.l.onMultiSelectorThumbnailRowChanged=function(){var p,x,F;((p=this.data)==null?0:(x=p.emoji)==null?0:(F=x.multiSelectorThumbnailRow)==null?0:F.length)&&this.openSelector()};
_.l.getThumbnailFromEmojiRow=function(p){var x,F;return(p==null?void 0:(x=p.thumbnails)==null?void 0:(F=x[0])==null?void 0:F.url)||""};
_.l.getEmojiAltTextForPartialSelector=function(p){var x;return((x=this.getThumbnailFromEmojiRow(p).match(ApJ))==null?void 0:x[0])||""};
_.l.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.l.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.l.getRowSelection=function(p){return["left","right"][p]};
_.l.getIdFromComposedEmoji=function(p){return(p==null?void 0:p.emojiId)||""};
_.l.getEmojiFromPartialSelections=function(p,x){if(!p&&!x)return null;var F,N,h=(F=this.data)==null?void 0:(N=F.emoji)==null?void 0:N.variantIds;if(!h||!h.length)return null;var c;p=(c=p.match(bDk))==null?void 0:c[0];var M;x=(M=x.match(bDk))==null?void 0:M[0];if(!p||!x)return null;var f=ulk.get(p);M=ulk.get(x);if(f===M){M=Array.from(ulk.values()).filter(function(t){return t!==f}).join("|");
var K=new RegExp("^((?!("+M+")).)*"+f+"$")}else K=new RegExp(f+".*"+M);return(h=h.find(function(t){return K.test(t)}))&&_.bu(this.emojiManager,h)||null};
_.l.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var p,x=this.ytEmojiSelectorBehavior.emojiUrl(((p=this.data.emoji)==null?void 0:p.emojiId)||"");_.n(this.hostElement).querySelector('[selection="user"]').src.includes(x)||(this.isEmojiDraftInProgress=!0)}};
_.l.onDomChange=function(){zOv(this.ytEmojiSelectorBehavior)};
_.l.getFocusableElements=function(){return _.n(this.hostElement).querySelectorAll("img").filter(function(p){return p.getAttribute("role")==="option"})};
_.l.changeFocus=function(p){var x=this.getFocusableElements();x!=null&&x.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+p+x.length)%x.length,this.ytEmojiSelectorBehavior.focusedIndex<x.length&&(p=x[this.ytEmojiSelectorBehavior.focusedIndex])&&p.focus())};
_.l.onKeyboardEnter=function(){var p=this.getFocusableElements();p!=null&&p.length&&(p=p[this.ytEmojiSelectorBehavior.focusedIndex])&&p instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(p),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.R8.Object.defineProperties(YVn.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var p=this,x,F,N;return this.emojiManager&&((x=this.data)==null?0:(F=x.emoji)==null?0:(N=F.variantIds)==null?0:N.length)?this.data.emoji.variantIds.map(function(h){return!!h&&_.bu(p.emojiManager,h)}).filter(function(h){return!!h}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var p,x=(p=this.userSelection)==null?void 0:p.left,F;p=(F=this.userSelection)==null?void 0:F.right;return x&&p?this.getEmojiFromPartialSelections(x,p):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.composedEmojiSelection)==null?0:p.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var x;p=(x=this.userSelection)==null?void 0:x.left;var F;x=(F=this.userSelection)==null?void 0:F.right;if(!p&&!x){var N;return this.ytEmojiSelectorBehavior.emojiUrl(((N=this.data.emoji)==null?void 0:N.emojiId)||"")}return p&&!x?p:!p&&x?x:""}}});
var k4=YVn;k4.prototype.onMultiSelectorThumbnailRowChanged=k4.prototype.onMultiSelectorThumbnailRowChanged;k4.prototype.onClick=k4.prototype.onClick;_.B([_.u(_.jC),_.k("design:type",Object)],k4.prototype,"ironOverlayBehavior",void 0);_.B([_.u(sgv),_.k("design:type",Object)],k4.prototype,"ytEmojiSelectorBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],k4.prototype,"data",void 0);_.B([_.H(),_.k("design:type",_.yx)],k4.prototype,"emojiManager",void 0);
_.B([_.H(),_.k("design:type",Object)],k4.prototype,"userSelection",void 0);_.B([_.H(),_.k("design:type",Object)],k4.prototype,"scrollAction",void 0);_.B([_.H(),_.k("design:type",Object)],k4.prototype,"isEmojiDraftInProgress",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],k4.prototype,"emojiVariants",null);_.B([_.w("data","userSelection"),_.k("design:type",Object),_.k("design:paramtypes",[])],k4.prototype,"composedEmojiSelection",null);
_.B([_.V("click"),_.k("design:type",Function),_.k("design:paramtypes",[MouseEvent]),_.k("design:returntype")],k4.prototype,"onClick",null);_.B([_.W("data.emoji.multiSelectorThumbnailRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],k4.prototype,"onMultiSelectorThumbnailRowChanged",null);_.B([_.w("data","userSelection","composedEmojiSelection"),_.k("design:type",String),_.k("design:paramtypes",[])],k4.prototype,"draftEmojiUrl",null);
k4=_.B([_.JZ({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],k4);
_.P(k4,"yt-emoji-multi-person-selector",function(){if(ypm===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;nmj===void 0&&(nmj=document.createElement("template"));var N=nmj;F.call(x,N.content.cloneNode(!0),p.content.firstChild);ypm=p}p=ypm;return p},{mode:2});var wGK;var Gdb;var VEB=function(){var p=_.m.apply(this,arguments)||this;p.tooltip_=null;return p};
_.E(VEB,_.m);_.l=VEB.prototype;_.l.dataChanged_=function(){var p;if((p=this.data)==null?0:p.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.n(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.$s)(this.tooltip_).textContent=this.data.tooltip};
_.l.computeTargetId=function(){var p;return((p=this.data)==null?void 0:p.targetId)||""};
_.l.computeId_=function(p){return p};
_.l.computeIcon_=function(p){return _.eA(p)};
_.l.onTap_=function(){this.active=!this.active;_.hG(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.l.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Vx("active-changed",this.active))};
_.R8.Object.defineProperties(VEB.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var p,x;if((p=this.data)==null?0:(x=p.icon)==null?0:x.iconType)return this.data.icon.iconType==="SUPER_STICKER";var F,N;return((F=this.data)==null?void 0:(N=F.icon)==null?void 0:N.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
var Uo=VEB;Uo.prototype.activeChangedForBinding=Uo.prototype.activeChangedForBinding;Uo.prototype.dataChanged_=Uo.prototype.dataChanged_;_.B([_.u(_.sB.YtLiveChatTooltipTargetingBehavior),_.k("design:type",Object)],Uo.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Uo.prototype,"data",void 0);_.B([_.H({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.k("design:type",String)],Uo.prototype,"id",void 0);
_.B([_.H({computed:"computeTargetId(data.targetId)"}),_.k("design:type",String)],Uo.prototype,"targetId",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Uo.prototype,"active",void 0);_.B([_.H({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.k("design:type",String)],Uo.prototype,"icon",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Uo.prototype,"dataChanged_",null);
_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Uo.prototype,"iconFilled",null);_.B([_.W("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Uo.prototype,"activeChangedForBinding",null);Uo=_.B([_.JZ({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],Uo);
_.P(Uo,"yt-emoji-picker-category-button-renderer",function(){if(Gdb===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;wGK===void 0&&(wGK=document.createElement("template"));var N=wGK;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Gdb=p}p=Gdb;return p},{mode:2});var W7D;var HDj;var meD=function(){var p=_.m.apply(this,arguments)||this;p.ariaLabel=null;p.ariaActivedescendant=null;p.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};p.JSC$11875_ignoreNextFocus_=!1;p.longPressTimeoutId=-1;return p};
_.E(meD,_.m);_.l=meD.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.l.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.l.emojiChanged_=function(){this.changeFocus_(0,!1);for(var p=_.cl(),x=0;x<this.emoji.length;x++){var F={veType:88013,elementIndex:x},N=this.emoji[x];N.isCustomEmoji&&(N=document.querySelector(("#"+N.emojiId).replace("/","\\/")))&&(F=_.lz(p,F))&&(N.visualElement=F)}};
_.l.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.l.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.l.emojiSkinToneChanged_=function(p){this.skinTone=p};
_.l.dataChanged=function(){this.data&&this.data.emojiData&&JWI(this.emojiManager,this.data.emojiData)};
_.l.emojiUrl=function(p){p=this.getEmoji(p);if(!p)return"";var x;p=(x=p.image)==null?void 0:x.thumbnails;return _.Ou(p,24)||""};
_.l.emojiAlt=function(p){var x=this.get("image.accessibility.accessibilityData.label",p);return x?x:p.isCustomEmoji?p.shortcuts[0]:p.emojiId};
_.l.emojiAriaLabel=function(p){return p.shortcuts?p.shortcuts[0]:""};
_.l.emojiAriaSelected=function(p,x,F){return p&&F==x?"true":"false"};
_.l.getEmoji=function(p){if(this.emojiManager)return this.shouldUseStickyPreferences?SLJ(this.emojiManager,p):AM(this.emojiManager,p)};
_.l.computeId_=function(p){return p.categoryId||""};
_.l.computeEmoji=function(p){var x=this;return this.emojiManager?p.emojiIds?p.emojiIds.map(function(F){return F?_.bu(x.emojiManager,F):null}).filter(yJH):p.emojiData?p.emojiData.map(function(F){var N=!!F.emojiId&&_.bu(x.emojiManager,F.emojiId);
return N?Object.assign({},N,F):null}).filter(yJH):[]:[]};
_.l.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.l.computeAriaLabel_=function(p){return _.Pi(p)};
_.l.computeAriaActivedescendant_=function(p,x){return p&&p[x]?p[x].emojiId||"":""};
_.l.handleLongPressEmojiWithVariants=function(p,x){this.changeFocusToEmoji(p.emojiId,!1);this.openVariantSelector(p,x)};
_.l.onMouseDown=function(p){var x=this;this.hostElement!==document.activeElement&&(this.JSC$11875_ignoreNextFocus_=!0);if(p.button===0){var F=_.os(p);if(F instanceof HTMLImageElement){var N=_.n(this.hostElement).querySelector("#repeat").itemForElement(F);this.emojiContainsVariants(N)&&(this.longPressTimeoutId=setTimeout(function(){x.handleLongPressEmojiWithVariants(N,F)},500))}}};
_.l.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.l.onFocus=function(){this.JSC$11875_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11875_ignoreNextFocus_=!1};
_.l.onBlur_=function(){this.showFocus=!1};
_.l.emojiContainsVariants=function(p){return!!(p&&p.variantIds&&p.variantIds.length)};
_.l.onClick=function(p){clearTimeout(this.longPressTimeoutId);p=_.os(p);if(p instanceof HTMLImageElement){var x=p.id;this.changeFocusToEmoji(x,!1);var F=this.getEmoji(x),N;if(N=this.shouldUseStickyPreferences&&this.emojiContainsVariants(F)){var h;N=!((h=this.emojiManager.emojiMap[x])!=null&&h.stickyPrefId)}N?(h=_.n(this.hostElement).querySelector("#repeat").itemForElement(p),this.openVariantSelector(h,p)):_.hG(this.hostElement,"yt-emoji-select",F)}};
_.l.isActiveEmojiWithVariants=function(p,x){return p&&x?x.stickyPrefId?p===x.stickyPrefId:p===x.emojiId:!1};
_.l.onCloseEmojiVariantSelector=function(p){this.activeEmojiWithVariantsId===p&&(this.activeEmojiWithVariantsId="")};
_.l.onMouseOver_=function(p){p=_.os(p);p instanceof HTMLImageElement&&_.hG(this.hostElement,"yt-emoji-hover",_.bu(this.emojiManager,p.id))};
_.l.changeFocus_=function(p,x){this.focusedIndex=(this.focusedIndex+p+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(p=this.emoji[this.focusedIndex],x&&(this.showFocus=!0,_.n(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.hG(this.hostElement,"yt-emoji-hover",p)))};
_.l.changeFocusToEmoji=function(p,x){if(p){var F=this.emoji.findIndex(function(N){return N.emojiId===p});
F!==-1&&this.changeFocus_(F-this.focusedIndex,x)}};
_.l.onKeyDown_=function(p){switch(p.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var x=this.emoji[this.focusedIndex];if(x&&x.emojiId){if(this.emojiContainsVariants(x)){var F=_.n(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(x,F)}else _.hG(this.hostElement,"yt-emoji-select",AM(this.emojiManager,x.emojiId)),this.hostElement.focus();p.preventDefault()}}break;case 40:this.changeFocus_(1,!0);p.preventDefault();break;case 38:this.changeFocus_(-1,!0),p.preventDefault()}};
_.l.onEmojiStickyPreferenceChanged=function(p,x){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&p.emojiId&&p.variantIds&&p.variantIds.includes(x)&&this.activeEmojiWithVariantsId!==x&&this.setStickyEmojiPreference(p.emojiId,x)};
_.l.openVariantSelector=function(p,x){this.activeEmojiWithVariantsId=p.stickyPrefId||p.emojiId||"";_.hG(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:p,target:x})};
_.l.setStickyEmojiPreference=function(p,x){if(this.data){var F=this.emoji.findIndex(function(h){return h.emojiId===p});
if(F!==-1){var N=this.emoji[F];N.stickyPrefId=x;this.set("emoji."+F,Object.assign({},N));this.activeEmojiWithVariantsId=x}}};
var iu=meD;iu.prototype.onKeyDown_=iu.prototype.onKeyDown_;iu.prototype.onMouseOver_=iu.prototype.onMouseOver_;iu.prototype.onClick=iu.prototype.onClick;iu.prototype.onBlur_=iu.prototype.onBlur_;iu.prototype.onFocus=iu.prototype.onFocus;iu.prototype.onMouseUp=iu.prototype.onMouseUp;iu.prototype.onMouseDown=iu.prototype.onMouseDown;iu.prototype.dataChanged=iu.prototype.dataChanged;iu.prototype.disableIncrementalLoadingChanged_=iu.prototype.disableIncrementalLoadingChanged_;
iu.prototype.emojiManagerChanged_=iu.prototype.emojiManagerChanged_;iu.prototype.emojiChanged_=iu.prototype.emojiChanged_;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],iu.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],iu.prototype,"data",void 0);_.B([_.H({computed:"computeId_(data)"}),_.k("design:type",String)],iu.prototype,"id",void 0);_.B([_.H({computed:"computeEmoji(data)"}),_.k("design:type",Array)],iu.prototype,"emoji",void 0);
_.B([_.H(),_.k("design:type",Number)],iu.prototype,"skinTone",void 0);_.B([_.H(),_.k("design:type",_.yx)],iu.prototype,"emojiManager",void 0);_.B([_.H(),_.k("design:type",Boolean)],iu.prototype,"disableIncrementalLoading",void 0);_.B([_.H({value:0}),_.k("design:type",Number)],iu.prototype,"focusedIndex",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],iu.prototype,"showFocus",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.k("design:type",Object)],iu.prototype,"ariaLabel",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.k("design:type",Object)],iu.prototype,"ariaActivedescendant",void 0);_.B([_.H({value:60}),_.k("design:type",Number)],iu.prototype,"domRepeatTargetFramerate",void 0);_.B([_.H({value:1}),_.k("design:type",Number)],iu.prototype,"domRepeatInitialCount",void 0);
_.B([_.H({value:""}),_.k("design:type",String)],iu.prototype,"activeEmojiWithVariantsId",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],iu.prototype,"shouldUseStickyPreferences",void 0);_.B([_.W("emoji"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iu.prototype,"emojiChanged_",null);_.B([_.W("emojiManager"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iu.prototype,"emojiManagerChanged_",null);
_.B([_.W("disableIncrementalLoading"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iu.prototype,"disableIncrementalLoadingChanged_",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iu.prototype,"dataChanged",null);_.B([_.V("mousedown"),_.k("design:type",Function),_.k("design:paramtypes",[Object]),_.k("design:returntype")],iu.prototype,"onMouseDown",null);
_.B([_.V("mouseup"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iu.prototype,"onMouseUp",null);_.B([_.V("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iu.prototype,"onFocus",null);_.B([_.V("blur"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iu.prototype,"onBlur_",null);
_.B([_.V("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],iu.prototype,"onClick",null);_.B([_.V("mouseover"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],iu.prototype,"onMouseOver_",null);_.B([_.V("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],iu.prototype,"onKeyDown_",null);
iu=_.B([_.JZ({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],iu);
_.P(iu,"yt-emoji-picker-category-renderer",function(){if(HDj===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;W7D===void 0&&(W7D=document.createElement("template"));var N=W7D;F.call(x,N.content.cloneNode(!0),p.content.firstChild);HDj=p}p=HDj;return p},{mode:2});var om6;var ODB;var jgj;var L7C;var PnK=function(){var p=_.m.apply(this,arguments)||this;p.ariaLabel=null;p.ariaActivedescendant=null;p.getFormattedStringRawText=_.Pi;p.JSC$11881_ignoreNextFocus_=!1;return p};
_.E(PnK,_.m);_.l=PnK.prototype;_.l.attached=function(){this.hostElement.hasAttribute("aria-live")||this.hostElement.setAttribute("aria-live","polite");this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.l.emojiUrl=function(p){var x,F;p=(x=AM(this.emojiManager,p,!0))==null?void 0:(F=x.image)==null?void 0:F.thumbnails;return _.Ou(p,24)||""};
_.l.emojiAlt=function(p){var x=this.get("image.accessibility.accessibilityData.label",p);return x?x:p.isCustomEmoji?p.shortcuts[0]:p.emojiId};
_.l.emojiId=function(p){return"emoji"+p};
_.l.computeId_=function(p){return p.categoryId||""};
_.l.computeAriaActivedescendant_=function(p){return this.emoji&&p<this.emoji.length?this.emojiId(p):""};
_.l.emojiChanged_=function(){this.changeFocus_(0,!1);for(var p=_.cl(),x=0;x<this.emoji.length;x++){var F={veType:88013,elementIndex:x},N=this.emoji[x];N.isCustomEmoji&&(N=document.querySelector(("#"+N.emojiId).replace("/","\\/")))&&(F=_.lz(p,F))&&(N.visualElement=F)}};
_.l.computeEmoji_=function(p){var x=this;return this.emojiManager?p.emojiIds.map(function(F){return _.bu(x.emojiManager,F,!0)}).filter(bwJ):[]};
_.l.titleOffsetChanged_=function(){var p=this.hostElement.getBoundingClientRect(),x=_.n(this.hostElement).querySelector("#title").getBoundingClientRect();p=Math.max(0,Math.min(this.titleOffset,p.height-x.height));_.n(this.hostElement).querySelector("#title").style.top=p+"px"};
_.l.onEmojiMouseOver_=function(p){_.hG(this.hostElement,"yt-emoji-hover",p.model.item)};
_.l.onEmojiTap_=function(p){this.data.command&&(p=HIH(_.J().resolve(_.Bw(wj)),this.data.command,p),_.hG(this.hostElement,"yt-navigate",p))};
_.l.emojiAriaLabel=function(p){return p.shortcuts[0]};
_.l.emojiAriaSelected=function(p,x,F){return p&&F==x?"true":"false"};
_.l.changeFocus_=function(p,x){var F=this.emoji.length;this.focusedIndex=(this.focusedIndex+p+F)%F;p=this.emoji[this.focusedIndex];if(x){var N;(N=_.n(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||N.scrollIntoView(!1);_.hG(this.hostElement,"yt-emoji-hover",p)}};
_.l.onMouseDown_=function(){this.JSC$11881_ignoreNextFocus_=!0};
_.l.onFocus_=function(){this.JSC$11881_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11881_ignoreNextFocus_=!1};
_.l.onBlur_=function(){this.showFocus=!1};
_.l.onKeyDown_=function(p){switch(p.keyCode){case 13:this.onEmojiTap_(p);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);p.preventDefault();break;case 38:this.changeFocus_(-1,!0),p.preventDefault()}};
var I0=PnK;I0.prototype.onKeyDown_=I0.prototype.onKeyDown_;I0.prototype.onBlur_=I0.prototype.onBlur_;I0.prototype.onFocus_=I0.prototype.onFocus_;I0.prototype.onMouseDown_=I0.prototype.onMouseDown_;I0.prototype.onEmojiTap_=I0.prototype.onEmojiTap_;I0.prototype.titleOffsetChanged_=I0.prototype.titleOffsetChanged_;I0.prototype.emojiChanged_=I0.prototype.emojiChanged_;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],I0.prototype,"ytComponentBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],I0.prototype,"data",void 0);_.B([_.H({computed:"computeId_(data)"}),_.k("design:type",String)],I0.prototype,"id",void 0);_.B([_.H({computed:"computeEmoji_(data)"}),_.k("design:type",Array)],I0.prototype,"emoji",void 0);_.B([_.H({value:0}),_.k("design:type",Number)],I0.prototype,"titleOffset",void 0);_.B([_.H({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.k("design:type",Object)],I0.prototype,"ariaLabel",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.k("design:type",Object)],I0.prototype,"ariaActivedescendant",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],I0.prototype,"showFocus",void 0);_.B([_.H({value:0}),_.k("design:type",Number)],I0.prototype,"focusedIndex",void 0);_.B([_.H(),_.k("design:type",_.yx)],I0.prototype,"emojiManager",void 0);
_.B([_.W("emoji"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],I0.prototype,"emojiChanged_",null);_.B([_.W("titleOffset"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],I0.prototype,"titleOffsetChanged_",null);_.B([_.V("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],I0.prototype,"onEmojiTap_",null);
_.B([_.V("mousedown"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],I0.prototype,"onMouseDown_",null);_.B([_.V("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],I0.prototype,"onFocus_",null);_.B([_.V("blur"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],I0.prototype,"onBlur_",null);
_.B([_.V("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],I0.prototype,"onKeyDown_",null);I0=_.B([_.JZ({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],I0);
_.P(I0,"yt-emoji-picker-upsell-category-renderer",function(){if(L7C===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;jgj===void 0&&(jgj=document.createElement("template"));var N=jgj;F.call(x,N.content.cloneNode(!0),p.content.firstChild);L7C=p}p=L7C;return p},{mode:2});var T0D;var B0J;var ROK=function(){var p=_.m.apply(this,arguments)||this;p.scrollAction="lock";p.verticalAlign="top";return p};
_.E(ROK,_.m);_.l=ROK.prototype;_.l.onClick=function(p){p=_.os(p);p instanceof HTMLImageElement&&_.hG(this.hostElement,"yt-emoji-select",_.bu(this.emojiManager,p.id))};
_.l.openSelector=function(){this.ironOverlayBehavior.open()};
_.l.onDomChange=function(){zOv(this.ytEmojiSelectorBehavior)};
_.l.computeIsFamilySelector=function(p){var x;return(p==null?void 0:(x=p.emoji)==null?void 0:x.emojiId)==="\ud83d\udc6a"};
_.l.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var p=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];p&&p.emojiId&&(_.hG(this.hostElement,"yt-emoji-select",_.bu(this.emojiManager,p.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.R8.Object.defineProperties(ROK.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var p=this,x,F,N;return this.emojiManager&&((x=this.data)==null?0:(F=x.emoji)==null?0:(N=F.variantIds)==null?0:N.length)?this.data.emoji.variantIds.map(function(h){return!!h&&_.bu(p.emojiManager,h)}).filter(function(h){return!!h}):[]}}});
var $4=ROK;$4.prototype.onClick=$4.prototype.onClick;_.B([_.u(_.jC),_.k("design:type",Object)],$4.prototype,"ironOverlayBehavior",void 0);_.B([_.u(sgv),_.k("design:type",Object)],$4.prototype,"ytEmojiSelectorBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],$4.prototype,"data",void 0);_.B([_.H(),_.k("design:type",_.yx)],$4.prototype,"emojiManager",void 0);_.B([_.H(),_.k("design:type",Object)],$4.prototype,"scrollAction",void 0);
_.B([_.H(),_.k("design:type",Object)],$4.prototype,"verticalAlign",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.k("design:type",Boolean)],$4.prototype,"isFamilySelector",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],$4.prototype,"emojiVariants",null);_.B([_.V("click"),_.k("design:type",Function),_.k("design:paramtypes",[MouseEvent]),_.k("design:returntype")],$4.prototype,"onClick",null);
$4=_.B([_.JZ({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],$4);
_.P($4,"yt-emoji-variant-selector",function(){if(B0J===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;T0D===void 0&&(T0D=document.createElement("template"));var N=T0D;F.call(x,N.content.cloneNode(!0),p.content.firstChild);B0J=p}p=B0J;return p},{mode:2});var kdD=/:/g,UeJ=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],iDn=function(){var p=_.m.apply(this,arguments)||this;p.emojiVariantSelector=null;p.emojiMultiPersonSelector=null;p.identity=_.Wr;p.lastAnimationTime_=0;p.animationStart_=null;p.animationEnd_=null;return p};
_.E(iDn,_.m);_.l=iDn.prototype;
_.l.configureRendererStamper=function(){return{categories:{id:"categories",mapping:{emojiPickerCategoryRenderer:{component:"yt-emoji-picker-category-renderer",properties:{disableIncrementalLoading:"[[disableIncrementalLoading]]",emojiManager:"[[emojiManager]]",shouldUseStickyPreferences:"[[shouldUseStickyPreferences]]"}},emojiPickerUpsellCategoryRenderer:{component:"yt-emoji-picker-upsell-category-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},categoryButtons:{id:"category-buttons",mapping:{emojiPickerCategoryButtonRenderer:"yt-emoji-picker-category-button-renderer"}},
emojiVariantSelector:{id:"emoji-variant-selector",mapping:{ytEmojiVariantSelector:{component:"yt-emoji-variant-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1},emojiMultiPersonSelector:{id:"emoji-multi-person-selector",mapping:{ytEmojiMultiPersonSelector:{component:"yt-emoji-multi-person-selector",properties:{emojiManager:"[[emojiManager]]"}}},reuseComponents:!1}}};
_.l.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.uu)};
_.l.attached=function(){_.ML&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&C76(this.emojiManager)};
_.l.dataChanged=function(){var p;if((p=this.data)==null?0:p.categories){p=this.emojiManager;var x=this.getCustomEmojiIds();p.pickerCustomEmojiIds=[].concat(_.se(qLv),_.se(x))}};
_.l.getCustomEmojiIds=function(){var p,x=(p=this.data.categories)==null?void 0:p.find(function(c){var M;return((M=c.emojiPickerCategoryRenderer)==null?void 0:M.categoryId)&&UeJ.includes(c.emojiPickerCategoryRenderer.categoryId)}),F;
p=(F=this.data.categories)==null?void 0:F.find(function(c){return c.emojiPickerUpsellCategoryRenderer});
var N,h;return[x==null?void 0:(N=x.emojiPickerCategoryRenderer)==null?void 0:N.emojiIds,p==null?void 0:(h=p.emojiPickerUpsellCategoryRenderer)==null?void 0:h.emojiIds].flat().filter(function(c){return!!c})};
_.l.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.l.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.l.updateCategoriesAndPlaceholderInternal=function(p,x){var F=this;p&&x&&(this.categories=p.categories||[],this.categoryButtons=p.categoryButtons||[],this.resetPlaceholder(),this.search="",_.zD(function(){F.updateButtons_()}))};
_.l.computeId_=function(p){return p.id||""};
_.l.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(p){return p.emojiPickerCategoryRenderer&&p.emojiPickerCategoryRenderer.emojiData}):!1};
_.l.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.l.onShowEmojiVariantSelector=function(p){var x=p.detail.emojiData;x.variantIds&&x.variantIds.length&&(x.multiSelectorThumbnailRow&&x.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:x,target:p.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:x,target:p.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.l.onIronOverlayClosed=function(p){var x=SLJ(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");x&&p.composedPath&&(p.composedPath().includes(_.n(this.hostElement).querySelector("#emoji-variant-selector"))||p.composedPath().includes(_.n(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.lA(this.hostElement,"yt-close-emoji-variant-selector",[x.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.l.onEmojiVariantSelectorMouseup=function(p){var x=p.target.firstChild;this.variantSelectorOpened&&x&&_.zD(function(){x.noCancelOnOutsideClick=!1},100)};
_.l.onEmojiVariantSelectorMousedown=function(p){p=p.target.firstChild;this.variantSelectorOpened&&p&&(p.noCancelOnOutsideClick=!1)};
_.l.onSelectCategory_=function(p){var x=this.search!="";this.search="";for(var F=_.n(this.hostElement).querySelector("#categories").children,N=0;N<F.length;N++){var h=F[N];if(h.id==p.detail.categoryId){x?(_.n(this.hostElement).querySelector("#categories").scrollTop=h.offsetTop,this.updateButtons_()):(this.animationStart_=_.n(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=h.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.l.onEmojiHover_=function(p){this.placeholder=p.detail.shortcuts?p.detail.shortcuts[0]:""};
_.l.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.l.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.l.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.l.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.l.computeSearchCategory_=function(p){p=p.replace(kdD,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();p=p.split(" ");for(var x=[],F=this.emojiManager.emojis,N=0;N<F.length;N++){var h=F[N];if(h.searchTerms)for(var c=0;c<h.searchTerms.length;c++){for(var M=h.searchTerms[c].toLocaleLowerCase(),f=!1,K=0;K<p.length;K++)if(M.indexOf(p[K])!=-1){f=!0;break}if(f&&(!h.isCustomEmoji||!h.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(h.emojiId))){x.push(h.emojiId);
break}}}return{categoryId:-1,emojiIds:x}};
_.l.computeSearchEmptyMessage_=function(p,x){return p&&x&&x.emojiIds&&x.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.l.computeSearching_=function(p){return this.emojiManager&&p.replace(kdD,"").length>1};
_.l.computeSkinToneHidden=function(){var p;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((p=this.data)==null||!p.hideSkinTonePicker)};
_.l.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.l.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.l.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.l.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.l.selectSkinTone_=function(p){p=Number(p.target.getAttribute("tone"));this.set("emojiManager.skinTone",p);_.lA(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[p]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.l.skinToneChanged_=function(){_.n(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var p=_.n(this.hostElement).querySelector("#dropdown-content").children,x=0;x<p.length;x++)x===this.skinTone?p[x].setAttribute("selected",""):p[x].removeAttribute("selected")};
_.l.animateScroll_=function(p){this.lastAnimationTime_||(this.lastAnimationTime_=p);p-=this.lastAnimationTime_;p<200?(_.n(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*p/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.n(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.l.searchChanged_=function(){this.updateButtons_()};
_.l.updateButtons_=function(){var p=null;if(!this.search)for(var x=_.n(this.hostElement).querySelector("#categories").scrollTop,F=_.n(this.hostElement).querySelector("#categories").children,N=0;N<F.length;N++){var h=F[N];h.offsetTop<=x&&(p=h.id)}x=_.n(this.hostElement).querySelector("#category-buttons").children;for(F=0;F<x.length;F++)N=x[F],N.active=N.id===p};
var eg=iDn;eg.prototype.searchChanged_=eg.prototype.searchChanged_;eg.prototype.skinToneChanged_=eg.prototype.skinToneChanged_;eg.prototype.onEmojiHover_=eg.prototype.onEmojiHover_;eg.prototype.onSelectCategory_=eg.prototype.onSelectCategory_;eg.prototype.onShowEmojiVariantSelector=eg.prototype.onShowEmojiVariantSelector;eg.prototype.updateCategoriesAndPlaceholder_=eg.prototype.updateCategoriesAndPlaceholder_;eg.prototype.dataChanged=eg.prototype.dataChanged;
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],eg.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],eg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],eg.prototype,"data",void 0);_.B([_.H({value:function(){return[]}}),
_.k("design:type",Array)],eg.prototype,"categories",void 0);_.B([_.H({value:function(){return[]}}),
_.k("design:type",Array)],eg.prototype,"categoryButtons",void 0);_.B([_.H({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.k("design:type",Boolean)],eg.prototype,"disableScroll",void 0);_.B([_.H({computed:"computeId_(data)",reflectToAttribute:!0}),_.k("design:type",String)],eg.prototype,"id",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],eg.prototype,"selected",void 0);
_.B([_.H({value:!1}),_.k("design:type",Boolean)],eg.prototype,"disableIncrementalLoading",void 0);_.B([_.H(),_.k("design:type",String)],eg.prototype,"placeholder",void 0);_.B([_.H({value:""}),_.k("design:type",String)],eg.prototype,"search",void 0);_.B([_.H({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.k("design:type",Boolean)],eg.prototype,"searching",void 0);_.B([_.H({computed:"computeSearchCategory_(search)"}),_.k("design:type",Object)],eg.prototype,"searchCategory",void 0);
_.B([_.H({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.k("design:type",Object)],eg.prototype,"searchEmptyMessage",void 0);_.B([_.H({computed:"identity(emojiManager.skinTone)"}),_.k("design:type",Number)],eg.prototype,"skinTone",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],eg.prototype,"skinToneOpened",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],eg.prototype,"variantSelectorOpened",void 0);
_.B([_.H({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.k("design:type",Boolean)],eg.prototype,"skinToneHidden",void 0);_.B([_.H(),_.k("design:type",_.yx)],eg.prototype,"emojiManager",void 0);_.B([_.H(),_.k("design:type",Object)],eg.prototype,"emojiVariantSelector",void 0);_.B([_.H(),_.k("design:type",Object)],eg.prototype,"emojiMultiPersonSelector",void 0);
_.B([_.H({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.k("design:type",Boolean)],eg.prototype,"shouldUseStickyPreferences",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eg.prototype,"dataChanged",null);_.B([_.W("data","selected"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eg.prototype,"updateCategoriesAndPlaceholder_",null);
_.B([_.V("yt-show-emoji-variant-selector"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],eg.prototype,"onShowEmojiVariantSelector",null);_.B([_.V("yt-emoji-picker-select-category"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],eg.prototype,"onSelectCategory_",null);_.B([_.V("yt-emoji-hover"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],eg.prototype,"onEmojiHover_",null);
_.B([_.W("skinTone"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eg.prototype,"skinToneChanged_",null);_.B([_.W("search"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eg.prototype,"searchChanged_",null);eg=_.B([_.JZ({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],eg);
_.P(eg,"yt-emoji-picker-renderer",function(){if(ODB===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;om6===void 0&&(om6=document.createElement("template"));var N=om6;F.call(x,N.content.cloneNode(!0),p.content.firstChild);ODB=p}p=ODB;return p},{mode:2});var IkB=function(){var p=_.m.apply(this,arguments)||this;p.emojiManager=_.uu;p.isDarkTheme=document.documentElement.hasAttribute("dark");p.selectedIndex=1;p.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return p};
_.E(IkB,_.m);_.l=IkB.prototype;_.l.handleEmojiCustomizationVisible=function(p){this.emojiPickerRenderer.selected=p;this.selectedIndex=1;p?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.l.emojiCustomizationSetChanged=function(){var p;(p=this.data)!=null&&p.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.pZ(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.l.updateSaveButtonState=function(p){var x;(x=this.data)!=null&&x.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.KV("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:p}))};
_.l.emojiUrl=function(p){p=_.bu(this.emojiManager,p);if(!p)return"";var x;p=(x=p.image)==null?void 0:x.thumbnails;return _.Ou(p,24)||""};
_.l.emojiAlt=function(p){var x=_.bu(this.emojiManager,p);if(!x)return p;var F,N,h,c=(x==null?void 0:(F=x.image)==null?void 0:(N=F.accessibility)==null?void 0:(h=N.accessibilityData)==null?void 0:h.label)||"";return c?c:x.isCustomEmoji?x.shortcuts[0]:x.emojiId||p};
_.l.emojiAriaLabel=function(p){var x,F;return((x=_.bu(this.emojiManager,p))==null?void 0:(F=x.shortcuts)==null?void 0:F[0])||p};
_.l.onEmojiClick=function(p){p.model.index!==0&&(this.selectedIndex=p.model.index)};
_.l.onEmojiSelect=function(p){p=p.detail;var x,F;((x=this.data)==null?0:x.emojiCustomizationSetEntityKey)&&((F=this.emojiCustomizationSet)==null?0:F.emojiId)&&p.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,p.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.KV("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,p.emojiId,this.selectedIndex)}))};
_.l.canEditEmoji=function(p,x,F){p=p.indexOf(x);return p===F||p===0||F===0?!1:!0};
_.l.getUpdatedEmojiIdList=function(p,x,F){var N=p.indexOf(x);p=[].concat(_.se(p));N>=0&&(p[N]=p[F]);p[F]=x;return p};
_.R8.Object.defineProperties(IkB,{template:{configurable:!0,enumerable:!0,get:function(){if(Dem===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;MEv===void 0&&(MEv=document.createElement("template"));var N=MEv;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Dem=p}p=Dem;return p}}});
var pl=IkB;pl.prototype.onEmojiSelect=pl.prototype.onEmojiSelect;_.B([_.u(_.z2),_.k("design:type",Object)],pl.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],pl.prototype,"ytActionHandlerBehavior",void 0);_.B([_.Ff("yt-emoji-picker-renderer"),_.k("design:type",Object)],pl.prototype,"emojiPickerRenderer",void 0);
_.B([_.H({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(p,x){return _.M4(p.entities,"emojiCustomizationSetEntity",x)},
observer:"emojiCustomizationSetChanged"}),_.k("design:type",Object)],pl.prototype,"emojiCustomizationSet",void 0);_.B([_.H(),_.k("design:type",Object)],pl.prototype,"originalEmojiSet",void 0);_.B([_.H(),_.k("design:type",_.yx)],pl.prototype,"emojiManager",void 0);_.B([_.H(),_.k("design:type",Object)],pl.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],pl.prototype,"isDarkTheme",void 0);_.B([_.H(),_.k("design:type",Object)],pl.prototype,"selectedIndex",void 0);
_.B([_.V("yt-emoji-select"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],pl.prototype,"onEmojiSelect",null);pl=_.B([_.JZ({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],pl);var $eD;var eOl;var pPJ;var xbJ;var FkJ=function(){var p=_.m.apply(this,arguments)||this;p.authorBadges=[];return p};
_.E(FkJ,_.m);_.l=FkJ.prototype;_.l.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.l.configureRendererStamper=function(){return{"data.inlineActionButtons":{id:"inline-action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[filledButtonOverrides]]"}}}},"data.beforeContentButtons":{id:"before-content-buttons",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.l.dataChanged=function(){var p=xyJ(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",p)};
_.l.updateMessage=function(){var p=this.data.message,x=_.n(_.n(this.hostElement).querySelector("#message"));x.textContent="";p&&x.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(p))};
_.l.shouldSupportWholeItemClick=function(){return!0};
_.l.onShowOriginalClick=function(p){p.preventDefault();this.showOriginal=!0};
_.l.computeShowBar=function(p,x,F){return p&&x||F};
_.l.computeAuthorBadges=function(p){return p.authorBadges||[]};
_.l.computeAuthorIsOwner=function(p){return!!FIZ(p.authorBadges,"owner")};
_.l.computeAuthorNameColor=function(p){var x;if(_.S("live_chat_author_name_color_usernames")&&(p==null?0:(x=p.authorName)==null?0:x.simpleText))return _.M$r(_.Dyz(p.authorName.simpleText));if(_.S("live_chat_seed_color_usernames")&&(p==null?0:p.authorSeedColorArgb))return _.M$r(_.Id(p.authorSeedColorArgb));if(_.S("live_chat_colored_usernames"))return"#cc0000";var F;return _.S("live_chat_simple_color_usernames")&&(p==null?0:(F=p.authorName)==null?0:F.simpleText)&&(p==null?0:p.authorUsernameColorLight)&&
(p==null?0:p.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.Id(p.authorUsernameColorDark):_.Id(p.authorUsernameColorLight):""};
var xk=FkJ;xk.prototype.updateMessage=xk.prototype.updateMessage;xk.prototype.dataChanged=xk.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],xk.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.Y4.YtLiveChatItemBehavior),_.k("design:type",_.wP)],xk.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],xk.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],xk.prototype,"data",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],xk.prototype,"showOriginal",void 0);_.B([_.H({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.k("design:type",Boolean)],xk.prototype,"isDimmed",void 0);_.B([_.H({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.k("design:type",Boolean)],xk.prototype,"showBar",void 0);
_.B([_.H({computed:"computeAuthorBadges(data)"}),_.k("design:type",Array)],xk.prototype,"authorBadges",void 0);_.B([_.H({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],xk.prototype,"authorIsOwner",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],xk.prototype,"inCollapsedBanner",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],xk.prototype,"inBanner",void 0);
_.B([_.H({value:_.S("live_chat_hide_avatars"),reflectToAttribute:!0}),_.k("design:type",Boolean)],xk.prototype,"avatarHidden",void 0);_.B([_.H({computed:"computeAuthorNameColor(data)"}),_.k("design:type",String)],xk.prototype,"authorNameColor",void 0);_.B([_.H(),_.k("design:type",_.Wn)],xk.prototype,"participantsManager",void 0);_.B([_.H({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.k("design:type",Object)],xk.prototype,"filledButtonOverrides",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xk.prototype,"dataChanged",null);_.B([_.W("data.message"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xk.prototype,"updateMessage",null);xk=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],xk);
_.P(xk,"yt-live-chat-text-message-renderer",function(){if(xbJ===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;pPJ===void 0&&(pPJ=document.createElement("template"));var N=pPJ;F.call(x,N.content.cloneNode(!0),p.content.firstChild);xbJ=p}p=xbJ;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var FO=function(){var p=_.m.apply(this,arguments)||this;p.tonalButtonOverrides={type:"tonal",style:"overlay"};return p};
_.E(FO,_.m);
FO.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]]"}}}}}};
FO.prototype.shouldSupportInlineActionButtons=function(){return!0};
FO.prototype.shouldSupportWholeItemClick=function(){return!0};
_.R8.Object.defineProperties(FO.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
var NW=FO;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],NW.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.Y4.YtLiveChatItemBehavior),_.k("design:type",_.wP)],NW.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],NW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],NW.prototype,"data",void 0);_.B([_.H(),_.k("design:type",_.Wn)],NW.prototype,"participantsManager",void 0);
_.B([_.H(),_.k("design:type",Object)],NW.prototype,"tonalButtonOverrides",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("data.infoDialogButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],NW.prototype,"hasInfoDialogButton",null);NW=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],NW);
_.P(NW,"yt-live-chat-auto-mod-message-renderer",function(){if(eOl===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;$eD===void 0&&($eD=document.createElement("template"));var N=$eD;F.call(x,N.content.cloneNode(!0),p.content.firstChild);eOl=p}p=eOl;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Nzl;var hqj;var lHj;var cEl=function(){return _.m.apply(this,arguments)||this};
_.E(cEl,_.m);var aHD=cEl;_.B([_.H(),_.k("design:type",Object)],aHD.prototype,"data",void 0);aHD=_.B([_.L({is:"ytd-factoid-renderer",disableElementRegistration:!0})],aHD);
_.P(aHD,"ytd-factoid-renderer",function(){if(lHj!==void 0)return lHj;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return lHj=p},{mode:1});var MWv=function(){return _.m.apply(this,arguments)||this};
_.E(MWv,_.m);MWv.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
var h5=MWv;_.B([_.H(),_.k("design:type",Object)],h5.prototype,"data",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],h5.prototype,"ytRendererstamperBehavior",void 0);h5=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],h5);
_.P(h5,"yt-live-chat-channel-activity-reputation-renderer",function(){if(hqj===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Nzl===void 0&&(Nzl=document.createElement("template"));var N=Nzl;F.call(x,N.content.cloneNode(!0),p.content.firstChild);hqj=p}p=hqj;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var DbJ;var fHm;var KkC=function(){return _.m.apply(this,arguments)||this};
_.E(KkC,_.m);KkC.prototype.ready=function(){var p=document.querySelector("yt-live-chat-app");p&&p.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
var lh=KkC;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],lh.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Boolean)],lh.prototype,"menuFocused",void 0);_.B([_.H(),_.k("design:type",Object)],lh.prototype,"data",void 0);_.B([_.u(_.Y4.YtLiveChatItemBehavior),_.k("design:type",_.wP)],lh.prototype,"ytLiveChatItemBehavior",void 0);lh=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],lh);
_.P(lh,"yt-live-chat-donation-announcement-renderer",function(){if(fHm===void 0){var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;DbJ===void 0&&(DbJ=document.createElement("template"));var N=DbJ;F.call(x,N.content.cloneNode(!0),p.content.firstChild);fHm=p}p=fHm;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var qIv;var JJK,CvB=function(){if(JJK!==void 0)return JJK;var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;qIv===void 0&&(qIv=document.createElement("template"));var N=qIv;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return JJK=p};var Srn=function(){return _.m.apply(this,arguments)||this};
_.E(Srn,_.m);_.R8.Object.defineProperties(Srn,{template:{configurable:!0,enumerable:!0,get:function(){return CvB()}}});
var cL=Srn;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],cL.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],cL.prototype,"data",void 0);cL=_.B([_.JZ({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],cL);_.P(cL,"yt-live-chat-empty-feed-view-model",function(){return CvB()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var rJm;var EUn;var XBv=function(){return _.m.apply(this,arguments)||this};
_.E(XBv,_.m);XBv.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"}}}}}};
_.R8.Object.defineProperties(XBv.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var p,x;return{runs:[{text:(p=this.data)==null?void 0:(x=p.channelName)==null?void 0:x.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var p=[],x;if((x=this.data)==null||!x.channelBadges)return p;var F;x=_.a((F=this.data)==null?void 0:F.channelBadges);for(F=x.next();!F.done;F=x.next()){F=_.r(F.value,$hj);var N=void 0,h=void 0;if((N=F)==null?0:(h=N.badgeImage)==null?0:h.sources)N=void 0,h={liveChatAuthorBadgeRenderer:{tooltip:F.tooltip,accessibility:{accessibilityData:{label:(N=_.r(F.rendererContext,_.Os))==null?void 0:N.label}}}},F.badgeImage.sources[0].clientResource?h.liveChatAuthorBadgeRenderer.icon=
{iconType:F.badgeImage.sources[0].clientResource.imageName}:h.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:F.badgeImage.sources},p.push(h)}return p}}});
var az=XBv;_.B([_.H(),_.k("design:type",Object)],az.prototype,"data",void 0);_.B([_.w("data.channelName"),_.k("design:type",Object),_.k("design:paramtypes",[])],az.prototype,"channelName",null);_.B([_.w("data.channelBadges"),_.k("design:type",Array),_.k("design:paramtypes",[])],az.prototype,"channelBadges",null);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],az.prototype,"ytRendererstamperBehavior",void 0);
az=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],az);
_.P(az,"yt-live-chat-identity-view-model",function(){if(EUn===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;rJm===void 0&&(rJm=document.createElement("template"));var N=rJm;F.call(x,N.content.cloneNode(!0),p.content.firstChild);EUn=p}p=EUn;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var gUl;var QAD;var zMB;var sAK;var nUv=function(){var p=_.m.apply(this,arguments)||this;p.hidden=!1;p.supportsInlineActionButtons=!0;return p};
_.E(nUv,_.m);nUv.prototype.ready=function(){var p;((p=document.querySelector("yt-live-chat-app"))==null?0:p.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
nUv.prototype.dataChanged=function(p){var x=(0,_.$s)(_.n(this.hostElement).querySelector("#detail-text"));x.textContent="";(p==null?0:p.detailText)&&x.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(p.detailText))};
var MW=nUv;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.Y4.YtLiveChatItemBehavior),_.k("design:type",_.wP)],MW.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],MW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H({observer:"dataChanged"}),_.k("design:type",Object)],MW.prototype,"data",void 0);
_.B([_.H({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.k("design:type",Object)],MW.prototype,"hidden",void 0);MW=_.B([_.L({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],MW);
_.P(MW,"yt-live-chat-legacy-paid-message-renderer",function(){if(sAK===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;zMB===void 0&&(zMB=document.createElement("template"));var N=zMB;F.call(x,N.content.cloneNode(!0),p.content.firstChild);sAK=p}p=sAK;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var yJn;var bwk;var AJC={},uSZ=function(){return _.hZ.apply(this,arguments)||this};
_.E(uSZ,_.hZ);uSZ.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
var DE=uSZ;DE.prototype.onLiveChatMembershipItemBehaviorClick=DE.prototype.onLiveChatMembershipItemBehaviorClick;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],DE.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],DE.prototype,"data",void 0);_.B([_.V("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],DE.prototype,"onLiveChatMembershipItemBehaviorClick",null);DE=_.B([_.l8()],DE);
AJC.YtLiveChatMembershipItemBehavior=[DE.prototype,_.e.YtRendererBehavior];var Yrl=function(){var p=_.m.apply(this,arguments)||this;p.supportsInlineActionButtons=!0;p.hasPrimaryHeaderText=!1;p.showOnlyHeader=!1;p.authorBadges=[];p.modern=_.S("web_button_rework_with_live");p.buttonOverrides={style:"overlay",type:"filled"};return p};
_.E(Yrl,_.m);_.l=Yrl.prototype;_.l.shouldSupportInlineActionButtons=function(){return!0};
_.l.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.l.ready=function(){var p=document.querySelector("yt-live-chat-app");p&&p.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.l.messageChanged=function(){var p=this.data.message,x=(0,_.$s)(_.n(this.hostElement).querySelector("#message"));x.textContent="";p&&x.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(p))};
_.l.computeHasPrimaryHeaderText=function(p){return!(!p||!p.headerPrimaryText)};
_.l.computeShowOnlyHeader=function(p,x){return this.isMessageEmpty(p,x)};
_.l.computeAuthorBadges=function(p){return p.authorBadges||[]};
_.l.isMessageEmpty=function(p,x){return!p||p.empty?!0:!p.message&&!p.inputField&&!x};
_.l.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.l.getInputElement=function(){return _.n(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.l.inputFocus=function(){var p=this.getInputElement();p&&p.focus()};
_.l.inputInsertEmoji=function(p){var x=this.getInputElement();x&&x.insertEmoji(p)};
_.l.inputMessage=function(){var p=this.getInputElement();return p&&this.data.inputField?(p.completeEmojis(),_.ym(p.liveChatRichMessageInput)):null};
_.l.onFooterButtonClick=function(){this.data.footerButton&&_.hG(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.l.shouldSupportWholeItemClick=function(){return!0};
var fl=Yrl;fl.prototype.isDeletedChanged=fl.prototype.isDeletedChanged;fl.prototype.messageChanged=fl.prototype.messageChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],fl.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.Y4.YtLiveChatItemBehavior),_.k("design:type",_.wP)],fl.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.u(AJC.YtLiveChatMembershipItemBehavior),_.k("design:type",Object)],fl.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],fl.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],fl.prototype,"data",void 0);_.B([_.H({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.k("design:type",Object)],fl.prototype,"hasPrimaryHeaderText",void 0);_.B([_.H({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.k("design:type",Object)],fl.prototype,"showOnlyHeader",void 0);
_.B([_.H({computed:"computeAuthorBadges(data)"}),_.k("design:type",Array)],fl.prototype,"authorBadges",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],fl.prototype,"modern",void 0);_.B([_.W("data.message"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fl.prototype,"messageChanged",null);_.B([_.W("isDeleted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fl.prototype,"isDeletedChanged",null);
fl=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],fl);
_.P(fl,"yt-live-chat-membership-item-renderer",function(){if(bwk===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;yJn===void 0&&(yJn=document.createElement("template"));var N=yJn;F.call(x,N.content.cloneNode(!0),p.content.firstChild);bwk=p}p=bwk;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var wBB;var G$J;var VIJ=function(){return _.m.apply(this,arguments)||this};
_.E(VIJ,_.m);VIJ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
var Kl=VIJ;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Kl.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Kl.prototype,"data",void 0);Kl=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Kl);
_.P(Kl,"yt-live-chat-mode-change-message-renderer",function(){if(G$J===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;wBB===void 0&&(wBB=document.createElement("template"));var N=wBB;F.call(x,N.content.cloneNode(!0),p.content.firstChild);G$J=p}p=G$J;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var WyJ;var Hwm;var mPB=function(){return _.m.apply(this,arguments)||this};
_.E(mPB,_.m);var qW=mPB;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],qW.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.Y4.YtLiveChatItemBehavior),_.k("design:type",_.wP)],qW.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],qW.prototype,"data",void 0);qW=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],qW);
_.P(qW,"yt-live-chat-moderation-message-renderer",function(){if(Hwm===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;WyJ===void 0&&(WyJ=document.createElement("template"));var N=WyJ;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Hwm=p}p=Hwm;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var oUJ;var Owl;var jAn=function(){var p=_.m.apply(this,arguments)||this;p.modern=_.S("web_button_rework");return p};
_.E(jAn,_.m);jAn.prototype.onClick=function(){var p;if((p=this.data)!=null&&p.onClickCommand){var x;_.xL.instance.resolveCommand((x=this.data)==null?void 0:x.onClickCommand)}};
var ZE=jAn;_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],ZE.prototype,"modern",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ZE.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.z2),_.k("design:type",Object)],ZE.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.u(_.Y4.YtLiveChatItemBehavior),_.k("design:type",_.wP)],ZE.prototype,"ytLiveChatItemBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ZE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ZE.prototype,"data",void 0);ZE=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],ZE);
_.P(ZE,"yt-live-chat-offer-click-count-message-renderer",function(){if(Owl===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;oUJ===void 0&&(oUJ=document.createElement("template"));var N=oUJ;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Owl=p}p=Owl;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var LyC;var Pv6=function(){return _.m.apply(this,arguments)||this};
_.E(Pv6,_.m);var Tfk=Pv6;_.B([_.H(),_.k("design:type",Object)],Tfk.prototype,"data",void 0);Tfk=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],Tfk);
_.P(Tfk,"yt-live-chat-placeholder-item-renderer",function(){if(LyC===void 0){var p=document.createElement("template");_.g(p,"\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");p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);LyC=p}p=LyC;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var BfB;var RMm;var k$m=new OJ(7),UPb=function(){var p=_.m.apply(this,arguments)||this;p.data={};return p};
_.E(UPb,_.m);UPb.prototype.dataChanged=function(){var p;((p=this.data)==null?0:p.class)&&_.iX(this.hostElement,this.data.class,!0);var x;((x=this.oldData)==null?0:x.class)&&_.iX(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
UPb.prototype.computeTimestampString=function(p){return k$m.format(new Date(p/1E3))};
var t5=UPb;t5.prototype.dataChanged=t5.prototype.dataChanged;_.B([_.H(),_.k("design:type",Object)],t5.prototype,"data",void 0);_.B([_.H({computed:"computeTimestampString(data.timestampUsec)"}),_.k("design:type",String)],t5.prototype,"timestampString",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],t5.prototype,"dataChanged",null);t5=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],t5);
_.P(t5,"yt-live-chat-server-error-message",function(){if(RMm===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;BfB===void 0&&(BfB=document.createElement("template"));var N=BfB;F.call(x,N.content.cloneNode(!0),p.content.firstChild);RMm=p}p=RMm;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var iwn;var IcC;var $Pl=function(){var p=_.m.apply(this,arguments)||this;p.defaultToFilledIcon=!1;return p};
_.E($Pl,_.m);$Pl.prototype.computeHasPrimaryColorIcon=function(p){return p==="SPARK"||p==="SPONSORSHIP_STAR"};
$Pl.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
var dF=$Pl;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],dF.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.Y4.YtLiveChatItemBehavior),_.k("design:type",_.wP)],dF.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],dF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],dF.prototype,"defaultToFilledIcon",void 0);_.B([_.H(),_.k("design:type",Object)],dF.prototype,"data",void 0);
_.B([_.H({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.k("design:type",Boolean)],dF.prototype,"hasPrimaryColorIcon",void 0);dF=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],dF);
_.P(dF,"yt-live-chat-viewer-engagement-message-renderer",function(){if(IcC===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;iwn===void 0&&(iwn=document.createElement("template"));var N=iwn;F.call(x,N.content.cloneNode(!0),p.content.firstChild);IcC=p}p=IcC;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var eMl;var pCm=function(){var p=_.m.apply(this,arguments)||this;p.modernUpdate=!1;p.buttonStyle="overlay";p.buttonType="filled";return p};
_.E(pCm,_.m);pCm.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
pCm.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
var vL=pCm;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],vL.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],vL.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],vL.prototype,"modernUpdate",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],vL.prototype,"buttonStyle",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],vL.prototype,"buttonType",void 0);
vL=_.B([_.L({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],vL);
_.P(vL,"ytd-ad-hover-text-button-renderer",function(){if(eMl!==void 0)return eMl;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return eMl=p},{mode:1});var xUJ;var FCI=function(){var p=_.m.apply(this,arguments)||this;p.buttonOverrides={size:"XS"};p.modern=_.S("web_button_rework");return p};
_.E(FCI,_.m);FCI.prototype.onHelpTap=function(p){this.data&&this.data.informationDialog&&(_.hG(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),p.preventDefault(),p.stopPropagation())};
var J5=FCI;_.B([_.H(),_.k("design:type",Object)],J5.prototype,"buttonOverrides",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],J5.prototype,"modern",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],J5.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],J5.prototype,"data",void 0);J5=_.B([_.L({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],J5);
_.P(J5,"ytd-live-chat-purchased-product-message-renderer",function(){if(xUJ!==void 0)return xUJ;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return xUJ=p},{mode:1});var NOB;var hwv;var lMD=function(){var p=_.m.apply(this,arguments)||this;p.isContainerDeleted=!1;return p};
_.E(lMD,_.m);lMD.prototype.onContextMenuClick=function(p){this.ytLiveChatItemBehavior.showContextMenu(p)};
lMD.prototype.isContainerDeletedChanged=function(){this.isContainerDeleted&&(this.set("data.authorName",null),this.set("data.authorBadges",null),this.set("data.authorPhoto",null),this.set("data.primaryText",null),this.set("data.secondaryText",null),this.set("data.image",null))};
var Cl=lMD;Cl.prototype.isContainerDeletedChanged=Cl.prototype.isContainerDeletedChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Cl.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.Y4.YtLiveChatItemBehavior),_.k("design:type",_.wP)],Cl.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Cl.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Cl.prototype,"isContainerDeleted",void 0);
_.B([_.H(),_.k("design:type",String)],Cl.prototype,"deletedStateMessage",void 0);_.B([_.W("isContainerDeleted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Cl.prototype,"isContainerDeletedChanged",null);Cl=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],Cl);
_.P(Cl,"ytd-sponsorships-live-chat-header-renderer",function(){if(hwv!==void 0)return hwv;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return hwv=p},{mode:1});var S1=function(){var p=_.m.apply(this,arguments)||this;p.modern=_.S("web_button_rework_with_live");p.buttonOverrides={style:"overlay",type:"filled"};return p};
_.E(S1,_.m);S1.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]]"}}}}}};
S1.prototype.onCtaButtonClick=function(){var p,x=_.r((p=this.data)==null?void 0:p.optInPrompt,_.AS);if(p=this.maybeGetButtonCommand(x)){var F;(F=_.cl())==null||F.clickCommand(p)}};
S1.prototype.maybeGetButtonCommand=function(p){return!p||!p.command||_.r(p.command,rYl)===void 0&&_.r(p.command,Sm6)===void 0?null:p.command};
S1.prototype.shouldHideOptinPrompt=function(p,x){return!p||x};
var rF=S1;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],rF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.Y4.YtLiveChatItemBehavior),_.k("design:type",_.wP)],rF.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],rF.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],rF.prototype,"modern",void 0);
rF=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],rF);
_.P(rF,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(NOB!==void 0)return NOB;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return NOB=p},{mode:1});var cXk;var aMD=function(){return _.m.apply(this,arguments)||this};
_.E(aMD,_.m);aMD.prototype.onContextMenuClick=function(p){this.ytLiveChatItemBehavior.showContextMenu(p)};
aMD.prototype.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorBadges",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
var E7=aMD;E7.prototype.isDeletedChanged=E7.prototype.isDeletedChanged;_.B([_.u(_.Y4.YtLiveChatItemBehavior),_.k("design:type",_.wP)],E7.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],E7.prototype,"data",void 0);_.B([_.W("isDeleted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],E7.prototype,"isDeletedChanged",null);
E7=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],E7);
_.P(E7,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(cXk!==void 0)return cXk;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return cXk=p},{mode:1});var MUI=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return p};
_.E(MUI,_.m);_.l=MUI.prototype;
_.l.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatAutoModMessageRenderer:"yt-live-chat-auto-mod-message-renderer",liveChatPaidMessageRenderer:"yt-live-chat-paid-message-renderer",liveChatLegacyPaidMessageRenderer:"yt-live-chat-legacy-paid-message-renderer",liveChatMembershipItemRenderer:"yt-live-chat-membership-item-renderer",liveChatTextMessageRenderer:"yt-live-chat-text-message-renderer",liveChatPaidStickerRenderer:"yt-live-chat-paid-sticker-renderer",liveChatDonationAnnouncementRenderer:"yt-live-chat-donation-announcement-renderer",
liveChatModeChangeMessageRenderer:"yt-live-chat-mode-change-message-renderer",liveChatModerationMessageRenderer:"yt-live-chat-moderation-message-renderer",liveChatOfferClickCountMessageRenderer:"yt-live-chat-offer-click-count-message-renderer",liveChatPlaceholderItemRenderer:"yt-live-chat-placeholder-item-renderer",liveChatPurchasedProductMessageRenderer:"ytd-live-chat-purchased-product-message-renderer",liveChatSponsorshipsGiftPurchaseAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",
liveChatSponsorshipsGiftRedemptionAnnouncementRenderer:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",liveChatViewerEngagementMessageRenderer:"yt-live-chat-viewer-engagement-message-renderer",serverErrorMessage:"yt-live-chat-server-error-message"}}}};
_.l.handleLiveChatAction=function(p){_.r(p,L3B)?this.handleMarkChatItemAsDeletedAction(_.r(p,L3B)):_.r(p,j$B)&&this.handleRemoveChatItemAction(_.r(p,j$B))};
_.l.handleLiveChatActions=function(p){p.forEach(this.handleLiveChatAction,this)};
_.l.handleMarkChatItemAsDeletedAction=function(p){var x=this,F;((F=this.data)==null?0:F.items)&&this.data.items.forEach(function(N,h){var c=Object.keys(N)[0];Object.values(N)[0].id===p.targetItemId&&x.markAsDeleted("data.items",h,c,p.deletedStateMessage,p.showOriginalContentMessage)})};
_.l.handleRemoveChatItemAction=function(p){var x=this,F;((F=this.data)==null?0:F.items)&&this.data.items.forEach(function(N,h){Object.values(N)[0].id===p.targetItemId&&x.splice("data.items",h,1)})};
_.l.markAsDeleted=function(p,x,F,N,h){p=[p,x,F].join(".");this.set(p+".deletedStateMessage",N);this.set(p+".showOriginalContentMessage",h)};
var XO=MUI;_.B([_.H(),_.k("design:type",Object)],XO.prototype,"data",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],XO.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],XO.prototype,"ytActionHandlerBehavior",void 0);XO=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],XO);
_.P(XO,"yt-live-chat-item-display-list-renderer",function(){if(QAD===void 0){var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;gUl===void 0&&(gUl=document.createElement("template"));var N=gUl;F.call(x,N.content.cloneNode(!0),p.content.firstChild);QAD=p}p=QAD;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var DUC;var fMK,KCK=function(){if(fMK!==void 0)return fMK;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;DUC===void 0&&(DUC=document.createElement("template"));var N=DUC;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return fMK=p};var qCl=function(){var p=_.m.apply(this,arguments)||this;p.isHeader=!1;return p};
_.E(qCl,_.m);qCl.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.R8.Object.defineProperties(qCl,{template:{configurable:!0,enumerable:!0,get:function(){return KCK()}}});
var gF=qCl;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],gF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],gF.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],gF.prototype,"isHeader",void 0);gF=_.B([_.JZ({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],gF);
_.P(gF,"yt-live-chat-item-display-renderer",function(){return KCK()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Zdl,tUj,SCD,CZj;
Zdl={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}};tUj={home:"eohps",search:"eosps",watch:"eowps"};_.dUl=["watch","search","home"];
_.QX=function(){this.JSC$11992_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$11992_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.sd("PRECONSTRUCTION_DELAY",0);this.signals_=_.GN();this.targetPage_=""};
_.QX.prototype.init=function(p,x){p=p===void 0?"":p;x=x===void 0?null:x;if(this.JSC$11992_isInitialized_)this.abort();else if(this.JSC$11992_isInitialized_=!0,p&&_.vGD(this,p),x){var F=_.VG(this.signals_,"pcl")?0:10,N=function(){for(var h=0,c;c=_.dUl[h++];)c!=p&&c!=x&&this.pendingPages_.push(c);_.JXn(this)}.bind(this);
this.signals_.parkOrScheduleJob(N,F,"pcl")}};
_.QX.prototype.abort=function(){this.fragmentJobId_&&(_.E0.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);CZj(this)};
_.vGD=function(p,x){p.JSC$11992_isInitialized_&&!p.targetPage_&&(p.targetPage_=x,SCD(p,x),p.isInitialPass_=!1,SCD(p,x),p.signals_.processSignal(tUj[p.targetPage_]),CZj(p),_.JXn(p))};
_.JXn=function(p){p.pendingPages_.length&&!p.pagePreparerJobId_&&(p.pagePreparerJobId_=_.vZ(_.E0,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.vGD(this,this.pendingPages_.shift())}.bind(p),p.DEFAULT_DELAY_))};
SCD=function(p,x){if(x=Zdl[x])for(var F in x){var N=!1,h=F;F.charAt(0)=="~"&&(N=!0,h=F.substring(1));var c=x[F];c=typeof c=="object"?c:{count:c};x[F]=c;c.componentName=h;c.count>0&&(p.isInitialPass_?N||p.isSeenDuringInitialPass_[h]||(p.JSC$11992_queue_.push({componentName:h,count:1,signals:c.signals}),p.isSeenDuringInitialPass_[h]=!0,c.count--):p.JSC$11992_queue_.push(c))}};
CZj=function(p){p.JSC$11992_queue_.length=0;p.targetPage_="";p.isInitialPass_=!0;p.signals_.processSignal("eop")};
_.QX.getInstance=function(){return _.la(_.QX)};var rXk=function(){this.signals=_.GN();this.init()};
rXk.prototype.startPreconstruction=function(){_.QX.getInstance().init(_.nt("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
rXk.prototype.init=function(){EGk(this);window.Polymer&&q4l&&fEH();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var p=_.Mm.ytcsi;if(p&&p.gt&&(p=p.gt())&&p.tick&&(p.tick.aft>0||p.tick.pbs>0)&&(_.nt("IS_HOMEPAGE_COLD")||_.nt("IS_RESULTS_PAGE_COLD")||_.nt("IS_WATCH_PAGE_COLD"))){XCn(this);break a}lvM(LtM,this.onNotifications,this)}};
var EGk=function(p){var x=function(){p.signals.processSignal("dl")};
document.readyState==="complete"?(_.uO(Error("sh"),"WARNING"),x()):_.GTH(window,"load",x)};
rXk.prototype.onNotifications=function(p){p.timer||(_.nt("IS_HOMEPAGE_COLD")||_.nt("IS_RESULTS_PAGE_COLD")||_.nt("IS_WATCH_PAGE_COLD"))&&XCn(this)};
var XCn=function(p){p.signals.parkOrScheduleJob(function(){p.signals.processSignal("eocs")},10,"eor")};
new rXk;var zM,gGl=function(){return _.hZ.apply(this,arguments)||this};
_.E(gGl,_.hZ);_.l=gGl.prototype;_.l.enableActiveViewMeasurement=function(p){if(this.isActiveViewEnabled(p)){var x=this.getUrlPrefixesFromCommand(p.viewableCommands);p=this.getUrlPrefixesFromCommand(p.endOfSessionCommands);zM||(zM=new o7w(this.getVersion()));OGd(zM,this.hostElement);jYZ(zM,this.hostElement,x,p)}};
_.l.stopActiveViewMeasurement=function(){zM&&OGd(zM,this.hostElement)};
_.l.isActiveViewEnabled=function(p){return!!p&&(this.hasAtLeastOneUrl(p.viewableCommands)||this.hasAtLeastOneUrl(p.endOfSessionCommands))};
_.l.hasAtLeastOneUrl=function(p){return!!p&&p.length>0&&p[0].loggingUrls!=null&&p[0].loggingUrls.length>0};
_.l.getVersion=function(){var p=_.sd("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(p==null?void 0:p.length)===2?p[1]:null};
_.l.getUrlPrefixesFromCommand=function(p){if(!p)return[];var x=[];p=_.a(p);for(var F=p.next();!F.done;F=p.next())if(F=F.value,F.loggingUrls){F=_.a(F.loggingUrls);for(var N=F.next();!N.done;N=F.next())N=N.value,N.baseUrl&&x.push(N.baseUrl)}return x};
var Qjb=gGl;Qjb=_.B([_.l8()],Qjb);var s7=[Qjb.prototype];var zw6=function(){return _.hZ.apply(this,arguments)||this};
_.E(zw6,_.hZ);_.R8.Object.defineProperties(zw6.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_entity_store_from_dependency_injection")?_.u8():_.Bi()}}});
var sjn=zw6;sjn=_.B([_.l8()],sjn);_.nl=[JA.prototype,sjn.prototype];var nGn=["ytd-rich-shelf-renderer"],yX6=function(){var p=_.hZ.apply(this,arguments)||this;p._noAccessors=!0;p.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";p.followUpDialogPromise=null;p.followUpDialogPromiseResolve=null;p.followUpDialogPromiseReject=null;return p};
_.E(yX6,_.hZ);_.l=yX6.prototype;_.l.dismissibleItemIsDismissedChanged_=function(p){_.S("kevlar_fluid_dismiss")&&(p?_.hG(this.hostElement,"yt-dismissible-item-dismissed"):_.hG(this.hostElement,"yt-dismissible-item-undismissed"))};
_.l.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.l.dismissibleItemReset_=function(){var p=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 _.cZ(function(x,F){p.followUpDialogPromiseResolve=x;p.followUpDialogPromiseReject=F});
_.hG(this.hostElement,"yt-enable-lockup-interaction")};
_.l.dismissibleItemOnYtServiceRequestSent_=function(p,x){x.actions&&this.dismissibleItemProcessActions(x.actions,p)};
_.l.dismissibleItemOnRequestSent=function(p){if(_.S("web_button_rework"))for(var x=_.a(p.detail),F=x.next();!F.done;F=x.next()){var N=void 0;(F=(N=_.r(F.value,_.dH))==null?void 0:N.actions)&&this.dismissibleItemProcessActions(F,p)}};
_.l.dismissibleItemOnCommandSent=function(p,x){x&&this.dismissibleItemProcessActions(x,p)};
_.l.setAndGetDismissedContentId=function(p){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+p};
_.l.replayDismissAction=function(p){this.dismissibleItemProcessActions([p])};
_.l.dismissibleItemProcessActions=function(p,x){for(var F=0;F<p.length;F++){var N=p[F],h=void 0;((h=_.r(N,_.Zx))==null?0:h.commands)&&this.dismissibleItemProcessActions(_.r(N,_.Zx).commands,x);if(_.r(N,_.JS)){if(h=_.r(N,_.JS),!h.replaceParentSection||nGn.includes(this.hostElement.nodeName.toLowerCase()))_.S("web_see_fewer_shorts_reactive_dismissal")&&h.groupDismissal&&AJz(this,h.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(h),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.KV("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:N})),N=void 0,(N=x)==null||N.stopPropagation()}else if(_.r(N,xi6))this.dismissibleItemHandleHideEnclosingAction_(),N=void 0,(N=x)==null||N.stopPropagation();else if(_.r(N,qPI))_.S("web_see_fewer_shorts_reactive_dismissal")&&(N=_.r(N,qPI),h=void 0,((h=N)==null?0:h.targetGroupId)&&AJz(this,{targetGroupId:N.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.KV("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),N=void 0,(N=x)==null||N.stopPropagation();else if(_.r(N,_.dH))(N=_.r(N,_.dH).actions)&&_.Kc(this.hostElement,N,this.hostElement),N=void 0,(N=x)==null||N.stopPropagation();else{var c=h=void 0;((h=_.r(N,_.Yl))==null?void 0:h.signal)!=="TELL_US_WHY"||((c=_.r(N,_.Yl))==null?0:c.targetId)&&_.S("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),N=void 0,(N=x)==null||N.stopPropagation())}}};
_.l.dismissibleItemOnYtServiceRequestCompleted_=function(p,x){var F=this.get("feedbackResponses.0.followUpDialog",x.data);F?this.followUpDialogPromiseResolve(F):x.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(x.actions,p)};
_.l.dismissibleItemHandleReplaceEnclosingAction_=function(p){this.dismissedRenderer=p.item;this.isDismissed=!0;var x=null;(x=_.n(this.hostElement).querySelector("#dismissed"))&&_.jB(this,function(){_.on(x)});
_.hG(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.l.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.l.dismissibleItemHandleUndoFeedbackAction_=function(){_.hG(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.l.dismissibleItemHandleTellUsWhySignalAction_=function(){var p=this;this.followUpDialogPromise.then(function(x){p.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:x}})})};
var yX=yX6;yX.prototype.dismissibleItemOnYtServiceRequestCompleted_=yX.prototype.dismissibleItemOnYtServiceRequestCompleted_;yX.prototype.dismissibleItemOnCommandSent=yX.prototype.dismissibleItemOnCommandSent;yX.prototype.dismissibleItemOnRequestSent=yX.prototype.dismissibleItemOnRequestSent;yX.prototype.dismissibleItemOnYtServiceRequestSent_=yX.prototype.dismissibleItemOnYtServiceRequestSent_;yX.prototype.dismissibleItemDataChanged_=yX.prototype.dismissibleItemDataChanged_;
yX.prototype.dismissibleItemIsDismissedChanged_=yX.prototype.dismissibleItemIsDismissedChanged_;_.B([_.u(_.Oo),_.k("design:type",Object)],yX.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],yX.prototype,"ytdReduxBehavior",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],yX.prototype,"isDismissed",void 0);_.B([_.H(),_.k("design:type",Object)],yX.prototype,"dismissedRenderer",void 0);
_.B([_.W("isDismissed"),_.k("design:type",Function),_.k("design:paramtypes",[Boolean]),_.k("design:returntype")],yX.prototype,"dismissibleItemIsDismissedChanged_",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yX.prototype,"dismissibleItemDataChanged_",null);
_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],yX.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.B([_.V("yt-service-request-sent-button-renderer"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],yX.prototype,"dismissibleItemOnRequestSent",null);
_.B([_.V("yt-dismissible-item-action"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Array]),_.k("design:returntype")],yX.prototype,"dismissibleItemOnCommandSent",null);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Ht]),_.k("design:returntype")],yX.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);yX=_.B([_.l8()],yX);_.bh=[_.Oo,_.nl,yX.prototype];var A5=function(){var p=_.hZ.apply(this,arguments)||this;p.disableGridStateAware=!1;p.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};p.currentGridClass="";return p};
_.E(A5,_.hZ);A5.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.jB(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var p=this.gridStateAwareGetElement();_.iX(p,"grid",!0)}};
A5.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
A5.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.n(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
A5.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var p="grid-disabled";else{p=_.Mhk.getInstance();var x=this.get("pageSubtype");p=x&&lFJ.includes(x)?"grid-disabled":p.currentSnapState_?p.currentSnapState_.className:null}(x=this.gridStateAwareGetElement())&&p!==this.currentGridClass&&(p&&_.iX(x,p,!0),this.currentGridClass&&_.iX(x,this.currentGridClass,!1),this.currentGridClass=p)};
var uh=A5;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],uh.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",String)],uh.prototype,"gridStateAwareSizingElementSelector",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],uh.prototype,"disableGridStateAware",void 0);uh=_.B([_.l8()],uh);_.Yk=[uh.prototype,_.T2.YtActionHandlerBehavior];_.wF=new _.iE("GUIDE_TOKEN");var bdJ;_.GM={};bdJ=function(){var p=_.hZ.apply(this,arguments)||this;p.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 p};
_.E(bdJ,_.hZ);_.l=bdJ.prototype;_.l.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.l.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var p=_.J().resolve(_.Bw(_.wF));p&&(this.guidePersistentAndVisible=p.getGuidePersistentAndVisible(),this.activeEndpoint=p.getActiveEndpoint(),this.guideOpened=p.getGuideOpened(),this.miniGuideVisible=p.getMiniGuideVisible())};
_.l.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.l.handleGuideStateAction=function(p){this.guidePersistentAndVisible=p};
_.l.handleMiniGuideStateAction=function(p){this.miniGuideVisible=p};
_.l.handleGuideOpenedAction=function(p){this.guideOpened=p};
_.l.handleActiveEndpointAction=function(p){this.activeEndpoint=p};
var VX=bdJ;VX.prototype.onActiveEndpointChange=VX.prototype.onActiveEndpointChange;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],VX.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],VX.prototype,"guidePersistentAndVisible",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],VX.prototype,"miniGuideVisible",void 0);_.B([_.H(),_.k("design:type",Object)],VX.prototype,"activeEndpoint",void 0);
_.B([_.W("activeEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],VX.prototype,"onActiveEndpointChange",null);_.B([_.H(),_.k("design:type",Boolean)],VX.prototype,"guideOpened",void 0);VX=_.B([_.l8()],VX);_.GM.YtdGuideStateAwareBehavior=[];_.GM.YtdGuideStateAwareBehavior.push(VX.prototype,_.T2.YtActionHandlerBehavior);var AXB=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],usn=function(){var p=_.hZ.apply(this,arguments)||this;p.hoverJobId=0;p.JSC$12023_touched=!1;return p};
_.E(usn,_.hZ);_.l=usn.prototype;_.l.created=function(){this.useExpandableTooltip=!AXB.includes(this.is)};
_.l.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.l.detached=function(){this.useExpandableTooltip=!1};
_.l.lockupOnDown=function(p){this.interactionElement&&!_.mx(_.m9(p),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.l.lockupOnUp=function(p){this.interactionElement&&!_.mx(_.m9(p),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.l.onTouchStart=function(){this.JSC$12023_touched=!0};
_.l.lockupOnMouseEnter=function(){var p=this,x=_.Ud("kevlar_lockup_hover_delay",-1);this.JSC$12023_touched&&x>=0?(_.E0.cancelJob(this.hoverJobId),this.hoverJobId=_.E0.addJob(function(){p.lockupIsHovered=!0},8,x),this.JSC$12023_touched=!1):this.lockupIsHovered=!0};
_.l.lockupOnMouseLeave=function(){this.hoverJobId&&(_.E0.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.l.lockupOnPopupClosed=function(p,x){var F;((F=x.popupRenderer)==null?void 0:F.is)==="ytd-menu-popup-renderer"&&(p=x.popupRenderer.veData,x=_.b0(),p&&x&&_.T6(x,[p]))};
_.l.lockupOnLockupRequested=function(p){var x=p.detail.videoIds[0],F;p.detail&&x===((F=this.data)==null?void 0:F.videoId)&&(p.detail.returnValue=[this.data])};
_.l.lockupOnYtServiceRequestSent=function(p,x){if(p=x.actions)for(var F=0;F<p.length;F++){var N=p[F];if(N.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&x.ajaxPromise){var h=void 0,c=(h=_.r(x.endpoint,_.n4))==null?void 0:h.playlistId;h=void 0;N=(h=N.removedVideoId)!=null?h:"";YNb(_.Hj(),N,c)}else N.action==="ACTION_REMOVE_VIDEO"&&x.ajaxPromise&&(c=void 0,N=(c=N.setVideoId)!=null?c:"",_.whD(_.Hj(),N))}};
_.l.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.l.lockupOnLockupEnabled=function(){if(!this.$){var p=_.J().resolve(_.j3).getCurrentPage(),x=this.getParentRenderer?this.getParentRenderer():void 0;_.no(new _.qE("component not ready",this.is,this.isAttached,p==null?void 0:p.is,x==null?void 0:x.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
var WL=usn;WL.prototype.lockupOnLockupEnabled=WL.prototype.lockupOnLockupEnabled;WL.prototype.lockupOnLockupDisabled=WL.prototype.lockupOnLockupDisabled;WL.prototype.lockupOnYtServiceRequestSent=WL.prototype.lockupOnYtServiceRequestSent;WL.prototype.lockupOnLockupRequested=WL.prototype.lockupOnLockupRequested;WL.prototype.lockupOnPopupClosed=WL.prototype.lockupOnPopupClosed;WL.prototype.lockupOnMouseLeave=WL.prototype.lockupOnMouseLeave;WL.prototype.lockupOnMouseEnter=WL.prototype.lockupOnMouseEnter;
WL.prototype.onTouchStart=WL.prototype.onTouchStart;WL.prototype.lockupOnUp=WL.prototype.lockupOnUp;WL.prototype.lockupOnDown=WL.prototype.lockupOnDown;_.B([_.H(),_.k("design:type",Object)],WL.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Boolean)],WL.prototype,"lockupIsHovered",void 0);_.B([_.H(),_.k("design:type",Boolean)],WL.prototype,"lockupTouchTriggered",void 0);_.B([_.H(),_.k("design:type",Boolean)],WL.prototype,"useExpandableTooltip",void 0);
_.B([_.Ff("#interaction"),_.k("design:type",Object)],WL.prototype,"interactionElement",void 0);_.B([_.V("down"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],WL.prototype,"lockupOnDown",null);_.B([_.V("up"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],WL.prototype,"lockupOnUp",null);
_.B([_.V("touchstart"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],WL.prototype,"onTouchStart",null);_.B([_.V("mouseenter"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],WL.prototype,"lockupOnMouseEnter",null);_.B([_.V("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],WL.prototype,"lockupOnMouseLeave",null);
_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],WL.prototype,"lockupOnPopupClosed",null);_.B([_.V("yt-lockup-requested"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],WL.prototype,"lockupOnLockupRequested",null);
_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],WL.prototype,"lockupOnYtServiceRequestSent",null);_.B([_.V("yt-disable-lockup-interaction"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],WL.prototype,"lockupOnLockupDisabled",null);
_.B([_.V("yt-enable-lockup-interaction"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],WL.prototype,"lockupOnLockupEnabled",null);WL=_.B([_.l8()],WL);_.HL=[WL.prototype];_.YCv={YtdReduxBehavior:[]};_.YCv.YtdReduxBehavior.push.apply(_.YCv.YtdReduxBehavior,_.nl);var wCC=function(){var p=_.hZ.apply(this,arguments)||this;p._noAccessors=!0;p.disableNowPlaying=!1;p.disableTooltips=!1;p.useHoveredProperty=!1;p.hovered=!1;p.isThumbnailHovered_=!1;p.addBackground=_.S("kevlar_thumbnail_bg");p.nowPlaying=!1;p.disableRounding=!1;p.size="small";return p};
_.E(wCC,_.hZ);_.l=wCC.prototype;_.l.computeThumbnailOverlaySidePanelWidth_=function(p,x){return p-x};
_.l.computeSize=function(p,x){if(!this.disableRounding){if(!p&&!x)return"small";p=Math.max(p||0,x||0);return p>=256?"large":p>=96?"medium":"small"}};
_.l.computeFinalHoveredState_=function(p,x,F){return this.nowPlaying?!1:_.S("kevlar_thumbnail_fluid")&&p?x:F};
_.l.computeHoverOverlays_=function(p,x){return p&&x?x:void 0};
_.l.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.l.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.l.checkMiniplayer_=function(){var p;if(((p=this.data)==null?0:p.playlistSetVideoId)&&_.S("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{p=_.fb();var x=p.currentEndpoint;!this.disableNowPlaying&&x&&_.r(x,_.B7)&&this.data?(x=_.r(x,_.B7),this.nowPlaying=this.data.playlistId?x.playlistId===this.data.playlistId:x.videoId===this.data.videoId,this.isVideoPlaying=p==null?void 0:p.isVideoPlaying):this.nowPlaying=!1}};
var mB=wCC;mB.prototype.checkMiniplayer_=mB.prototype.checkMiniplayer_;mB.prototype.onMouseLeave_=mB.prototype.onMouseLeave_;mB.prototype.onMouseEnter_=mB.prototype.onMouseEnter_;mB.prototype.computeHoverOverlays_=mB.prototype.computeHoverOverlays_;mB.prototype.computeFinalHoveredState_=mB.prototype.computeFinalHoveredState_;mB.prototype.computeSize=mB.prototype.computeSize;mB.prototype.computeThumbnailOverlaySidePanelWidth_=mB.prototype.computeThumbnailOverlaySidePanelWidth_;
_.B([_.u(_.nl),_.k("design:type",Object)],mB.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],mB.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Number)],mB.prototype,"height",void 0);_.B([_.H(),_.k("design:type",Boolean)],mB.prototype,"bottomSidePanel",void 0);_.B([_.H(),_.k("design:type",Number)],mB.prototype,"width",void 0);_.B([_.H(),_.k("design:type",Object)],mB.prototype,"disableNowPlaying",void 0);
_.B([_.H({selector:_.bP}),_.k("design:type",Boolean)],mB.prototype,"miniplayerIsActive",void 0);_.B([_.H(),_.k("design:type",Object)],mB.prototype,"disableTooltips",void 0);_.B([_.H(),_.k("design:type",Object)],mB.prototype,"useHoveredProperty",void 0);_.B([_.H(),_.k("design:type",Object)],mB.prototype,"hovered",void 0);_.B([_.H(),_.k("design:type",Object)],mB.prototype,"isThumbnailHovered_",void 0);
_.B([_.H({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.k("design:type",Boolean)],mB.prototype,"finalHoveredState_",void 0);_.B([_.H({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.k("design:type",Number)],mB.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],mB.prototype,"addBackground",void 0);
_.B([_.H({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.k("design:type",Object)],mB.prototype,"hoverOverlays_",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],mB.prototype,"nowPlaying",void 0);_.B([_.H(),_.k("design:type",Boolean)],mB.prototype,"isVideoPlaying",void 0);_.B([_.H(),_.k("design:type",Object)],mB.prototype,"disableRounding",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.k("design:type",Object)],mB.prototype,"size",void 0);_.B([_.V("mouseenter"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mB.prototype,"onMouseEnter_",null);_.B([_.V("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mB.prototype,"onMouseLeave_",null);
_.B([_.W("data","disableNowPlaying","miniplayerIsActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mB.prototype,"checkMiniplayer_",null);mB=_.B([_.l8()],mB);var G0J=[mB.prototype];_.oz={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(p,x){return p+":"+_.$$(x)},
getPlayerListener_:function(p,x,F){p=this.getPlayerListenerKey_(p,x);x=this.playerListeners_.get(p);F&&this.playerListeners_.delete(p);return x},
savePlayerListener_:function(p,x){var F=x.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(p,x),F);return F},
listenToPlayerEvent:function(p,x,F){F=this.savePlayerListener_(x,F);p.addEventListener(x,F)},
listenToPlayerEvents:function(p,x){x.forEach(function(F,N){this.listenToPlayerEvent(p,N,F)}.bind(this))},
unlistenFromPlayerEvent:function(p,x,F){F=this.getPlayerListener_(x,F,!0);p.removeEventListener(x,F)},
unlistenFromPlayerEvents:function(p,x){x.forEach(function(F,N){this.unlistenFromPlayerEvent(p,N,F)}.bind(this))}}};
_.O7=function(){};_.VUn=new _.iE("PLAYER_API_TOKEN");var VI6=!1,oU6,HwB=!1,jAH;var R4=function(p,x,F,N,h){_.Jm.call(this);var c=this;this.playerId=x;this.webPlayerContextConfig=N;this.v6L=h;this.oXB=!1;this.api={};this.gAO=this.mj=null;this.i1s=new _.lb;this.nS={};this.cSr=this.gYH=this.elementId=this.uWw=this.config=null;this.rSM=!1;this.dH=this.lJr=null;this.mt8={};this.zFx=["onReady"];this.lastError=null;this.vkE=NaN;this.i2M={};this.brf=0;this.c8=this.targetElement=p;_.aG(this,this.i1s);WCK(this);F?this.brf=setTimeout(function(){c.loadNewVideoConfig(F)},0):N&&(HdB(this),
mUv(this))};
_.E(R4,_.Jm);R4.prototype.getId=function(){return this.playerId};
R4.prototype.loadNewVideoConfig=function(p){if(!this.isDisposed()){this.brf&&(clearTimeout(this.brf),this.brf=0);var x=p||{};x instanceof Tml||(x=new Tml(x));this.config=x;this.setConfig(p);mUv(this);this.isReady()&&oGv(this)}};
var HdB=function(p){var x;p.webPlayerContextConfig?x=p.webPlayerContextConfig.rootElementId:x=p.config.attrs.id;p.elementId=x||p.elementId;p.elementId==="video-player"&&(p.elementId=p.playerId,p.webPlayerContextConfig?p.webPlayerContextConfig.rootElementId=p.playerId:p.config.attrs.id=p.playerId);var F;((F=p.c8)==null?void 0:F.id)===p.elementId&&(p.elementId+="-player",p.webPlayerContextConfig?p.webPlayerContextConfig.rootElementId=p.elementId:p.config.attrs.id=p.elementId)};
R4.prototype.setConfig=function(p){this.uWw=p;this.config=OdK(p);HdB(this);if(!this.gYH){var x;this.gYH=jjB(this,((x=this.config.args)==null?void 0:x.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var F;if((F=this.config)==null?0:F.attrs)p=this.config.attrs,(x=p.width)&&this.c8&&(this.c8.style.width=OR(Number(x)||x,!0)),(p=p.height)&&this.c8&&(this.c8.style.height=OR(Number(p)||p,!0))};
var oGv=function(p){if(p.config&&p.config.loaded!==!0)if(p.config.loaded=!0,!p.config.args||p.config.args.autoplay!=="0"&&p.config.args.autoplay!==0&&p.config.args.autoplay!==!1){var x;p.api.loadVideoByPlayerVars((x=p.config.args)!=null?x:null)}else p.api.cueVideoByPlayerVars(p.config.args)},PZj=function(p){var x=!0,F=p.getPlayerElement();
F&&p.config&&(x=F.dataset.version===LCv(p));return x&&!!_.A9("yt.player.Application.create")},mUv=function(p){if(!p.isDisposed()&&!p.rSM){var x=PZj(p);
if(x&&(p.getPlayerElement()?"html5":null)==="html5")p.cSr="html5",p.isReady()||TOv(p);else if(BOl(p),p.cSr="html5",x&&p.dH&&p.targetElement)p.targetElement.appendChild(p.dH),TOv(p);else{p.config&&(p.config.loaded=!0);var F=!1;p.lJr=function(){F=!0;var N=RwI(p,"player_bootstrap_method")?_.A9("yt.player.Application.createAlternate")||_.A9("yt.player.Application.create"):_.A9("yt.player.Application.create");var h=p.config?OdK(p.config):void 0;N&&N(p.targetElement,h,p.webPlayerContextConfig,p.v6L);TOv(p)};
p.rSM=!0;x?p.lJr():(_.VR(LCv(p),p.lJr),(x=k0J(p))&&Dj$(x||""),UUm(p)&&!F&&_.ox("yt.player.Application.create",null))}}};
R4.prototype.getPlayerElement=function(){var p=_.Bt(document,this.elementId);!p&&this.c8&&this.c8.querySelector&&(p=this.c8.querySelector("#"+this.elementId));return p};
var TOv=function(p){if(!p.isDisposed()){var x=p.getPlayerElement(),F=!1;x&&x.getApiInterface&&x.getApiInterface()&&(F=!0);if(F){p.rSM=!1;if(!RwI(p,"html5_remove_not_servable_check_killswitch")){var N;if((x==null?0:x.isNotServable)&&p.config&&(x==null?0:x.isNotServable((N=p.config.args)==null?void 0:N.video_id)))return}idZ(p)}else p.vkE=setTimeout(function(){TOv(p)},50)}},idZ=function(p){WCK(p);
p.oXB=!0;var x=p.getPlayerElement();if(x){p.mj=IMB(p,x,"addEventListener");p.gAO=IMB(p,x,"removeEventListener");var F=x.getApiInterface();F=F.concat(x.getInternalApiInterface());for(var N=p.api,h=0;h<F.length;h++){var c=F[h];N[c]||(N[c]=IMB(p,x,c))}}for(var M in p.nS)p.nS.hasOwnProperty(M)&&p.mj&&p.mj(M,p.nS[M]);oGv(p);p.gYH&&p.gYH(p.api);p.i1s.publish("onReady",p.api)},IMB=function(p,x,F){var N=x[F];
return function(){var h=_.we.apply(0,arguments);try{return p.lastError=null,N.apply(x,h)}catch(c){if(F!=="sendAbandonmentPing")throw c.params=F,p.lastError=c,h=new _.qE("PlayerProxy error in method call",{error:c,method:F,playerId:p.playerId}),h.level="WARNING",h;}}},WCK=function(p){p.oXB=!1;
if(p.gAO)for(var x in p.nS)p.nS.hasOwnProperty(x)&&p.gAO(x,p.nS[x]);for(var F in p.i2M)p.i2M.hasOwnProperty(F)&&clearTimeout(Number(F));p.i2M={};p.mj=null;p.gAO=null;x=p.api;for(var N in x)x.hasOwnProperty(N)&&(x[N]=null);x.addEventListener=function(h,c){p.addEventListener(h,c)};
x.removeEventListener=function(h,c){p.removeEventListener(h,c)};
x.destroy=function(){p.dispose()};
x.getLastError=function(){return p.getLastError()};
x.getPlayerType=function(){return p.getPlayerType()};
x.getCurrentVideoConfig=function(){return p.uWw};
x.loadNewVideoConfig=function(h){p.loadNewVideoConfig(h)};
x.isReady=function(){return p.isReady()}};
R4.prototype.isReady=function(){return this.oXB};
R4.prototype.addEventListener=function(p,x){var F=this;this.isDisposed();var N=jjB(this,x);N&&(_.oJ(this.zFx,p)||this.nS[p]||(x=$U6(this,p),this.mj&&this.mj(p,x)),this.i1s.subscribe(p,N),p==="onReady"&&this.isReady()&&setTimeout(function(){N(F.api)},0))};
R4.prototype.removeEventListener=function(p,x){this.isDisposed()||(x=jjB(this,x))&&this.i1s.unsubscribe(p,x)};
var jjB=function(p,x){var F=x;if(typeof x==="string"){if(p.mt8[x])return p.mt8[x];F=function(){var N=_.we.apply(0,arguments),h=_.A9(x);if(h)try{h.apply(_.Mm,N)}catch(c){throw N=new _.qE("PlayerProxy error when executing callback",{error:c}),N.level="ERROR",N;}};
p.mt8[x]=F}return F?F:null},$U6=function(p,x){var F=function(N){var h=function(){p.isDisposed();
if(!p.isDisposed())try{p.i1s.publish(x,N!=null?N:void 0)}catch(f){var M=new _.qE("PlayerProxy error when creating global callback",{error:f.message,event:x,playerId:p.playerId,data:N,originalStack:f.stack,componentStack:f.componentStack});M.level="WARNING";throw M;}};
if(RwI(p,"web_player_publish_events_immediately"))h();else{var c=setTimeout(function(){h();_.Q5.remove(p.i2M,String(c))},0);
_.Q5.add(p.i2M,String(c),!0)}};
return p.nS[x]=F};
R4.prototype.getPlayerType=function(){return this.cSr||(this.getPlayerElement()?"html5":null)};
R4.prototype.getLastError=function(){return this.lastError};
var BOl=function(p){p.cancel();WCK(p);p.cSr=null;p.config&&(p.config.loaded=!1);var x=p.getPlayerElement();x&&(PZj(p)||!UUm(p)?p.dH=x:(x&&x.destroy&&x.destroy(),p.dH=null));p.targetElement&&_.wM(p.targetElement)};
R4.prototype.cancel=function(){this.lJr&&_.uQw(LCv(this),this.lJr);clearTimeout(this.vkE);this.rSM=!1};
R4.prototype.disposeInternal=function(){BOl(this);if(this.dH&&this.config&&this.dH.destroy)try{this.dH.destroy()}catch(x){var p=new _.qE("PlayerProxy error during disposal",{error:x});p.level="ERROR";throw p;}this.mt8=null;for(p in this.nS)this.nS.hasOwnProperty(p)&&delete this.nS[p];this.uWw=this.config=this.api=null;delete this.targetElement;delete this.c8;_.Jm.prototype.disposeInternal.call(this)};
var UUm=function(p){var x,F;p=(x=p.config)==null?void 0:(F=x.args)==null?void 0:F.fflags;return!!p&&p.indexOf("player_destroy_old_version=true")!==-1},LCv=function(p){return p.webPlayerContextConfig?p.webPlayerContextConfig.jsUrl:(p=p.config.assets)?p.js:""},k0J=function(p){return p.webPlayerContextConfig?p.webPlayerContextConfig.cssUrl:(p=p.config.assets)?p.css:""},RwI=function(p,x){if(p.webPlayerContextConfig)var F=p.webPlayerContextConfig.serializedExperimentFlags;
else{var N;if((N=p.config)==null?0:N.args)F=p.config.args.fflags}return(F||"").split("&").includes(x+"=true")},OdK=function(p){for(var x={},F=_.a(Object.keys(p)),N=F.next();!N.done;N=F.next()){N=N.value;
var h=p[N];x[N]=typeof h==="object"?_.Q5.clone(h):h}return x};var RMB={},Bf$="player_uid_"+(Math.random()*1E9>>>0);var j1=function(p,x,F,N,h,c){x=x===void 0?document.createElement("div"):x;this.webPlayerContextConfig=p;this.container=x;this.commandResolver=F;this.apiResolver=iwH();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.FT;N||c?ewZ(this):p4C(this);this.pendingPlayerResponse=N;this.pendingWatchNextResponse=h;this.pendingPlayerVars=c;x_k(this)};
j1.prototype.loadVideoWithPlayerResponse=function(p,x,F){this.loadVideo(p,x,F)};
j1.prototype.loadVideoWithPlayerVars=function(p){return this.loadVideo(void 0,void 0,p)};
j1.prototype.destroy=function(p){if(p=_.Bt(document,p))p=Bf$+"_"+_.$$(p),(p=RMB[p])&&p.dispose()};
var NQC=function(p,x){var F;_.D(function(N){if(N.nextAddress==1)return p.pendingWatchNextResponse=x,p.synchronousApi?(F=p.synchronousApi,N.jumpTo(2)):_.q(N,p.api,3);N.nextAddress!=2&&(F=N.yieldResult);FPb(p,F);p.pendingWatchNextResponse&&(F.updateVideoData({raw_watch_next_response:p.pendingWatchNextResponse}),p.pendingWatchNextResponse=void 0);_.JB(N)})},FPb=function(p,x){var F;
if(!(x==null?0:(F=x.isReady)==null?0:F.call(x))){var N;p=new _.qE("playerApi is falsey",{synchronousApi:p.synchronousApi,apiResolved:p.apiResolver.resolved,playerApiUndefined:x===void 0,playerApiNull:x===null,playerApiReady:(x==null?void 0:(N=x.isReady)==null?void 0:N.call(x))===!0,playerApiMethods:x?Object.keys(x):[]});_.zj(p)}},hAI=function(p,x){if(typeof p[x]==="function")return p[x]()},lLj=function(p){var x=window,F,N=(F=x.ytplayer)==null?void 0:F.bootstrapPlayerContainer;
if((F=N==null?void 0:N.firstElementChild)&&_.oX(F,"html5-video-player")){var h,c,M=(h=x.ytplayer)==null?void 0:(c=h.bootstrapWebPlayerContextConfig)==null?void 0:c.contextId;h=p.webPlayerContextConfig.contextId;if(M&&M===h){N!==p.container&&(N=!1,hAI(F,"getPlayerState")===2&&(N=!0),p.container.appendChild(F),N||hAI(F,"playVideo"));var f;if((f=x.ytplayer)==null?0:f.bootstrapPlayerResponse)p.bootstrapPlayerResponse=x.ytplayer.bootstrapPlayerResponse}}},x_k=function(p){var x,F,N,h,c;
_.D(function(M){if(M.nextAddress==1)return p.pageReadyOrDataAvailable?M.jumpTo(2):_.q(M,p.pageReadyOrDataAvailableResolver.promise,2);if(M.nextAddress!=4)return!_.S("kevlar_player_unified_player_loading")||Wy6()&&mP$()?M.jumpTo(4):_.q(M,PvE(),4);lLj(p);if(p.pendingPlayerResponse||p.pendingPlayerVars)x=TfJ(p.pendingPlayerResponse,p.pendingWatchNextResponse,p.pendingPlayerVars),p.pendingPlayerResponse&&p.pendingPlayerResponse===p.bootstrapPlayerResponse&&(x.loaded=!0),p.bootstrapPlayerResponse=void 0;
F=UPr(p.container,x,p.webPlayerContextConfig);((N=x)==null?0:N.loaded)&&p.pendingWatchNextResponse?(NQC(p,p.pendingWatchNextResponse),p.pendingPlayerResponse=void 0,p.pendingPlayerVars=void 0):ctb(p);h=function(f){F.removeEventListener("onReady",h);p.synchronousApi=f;p.apiResolver.resolve(f)};
F.addEventListener("onReady",h);p.commandResolver!==void 0&&(c=p.commandResolver,F.addEventListener("innertubeCommand",function(f){c(f)}));
_.JB(M)})};
j1.prototype.loadVideo=function(p,x,F){var N=this,h,c,M,f,K,t,d,v,C;return _.D(function(X){if(X.nextAddress==1)return N.pendingPlayerResponse=p,N.pendingWatchNextResponse=x,N.pendingPlayerVars=F,ewZ(N),N.synchronousApi?(h=N.synchronousApi,X.jumpTo(2)):_.q(X,N.api,3);X.nextAddress!=2&&(h=X.yieldResult);FPb(N,h);M=new Promise(function(Q){c=Q});
f=function(){var Q=h.getPlayerResponse();Q&&(h.removeEventListener("onVideoDataChange",f),c(Q))};
h.addEventListener("onVideoDataChange",f);if(N.pendingPlayerResponse||N.pendingPlayerVars)N.pendingPlayerResponse&&N.pendingPlayerResponse===N.bootstrapPlayerResponse?(c(N.pendingPlayerResponse),N.pendingWatchNextResponse&&NQC(N,N.pendingWatchNextResponse)):(K=TfJ(N.pendingPlayerResponse,N.pendingWatchNextResponse,N.pendingPlayerVars),(C=(t=N.pendingPlayerResponse)==null?void 0:(d=t.playerConfig)==null?void 0:(v=d.playbackStartConfig)==null?void 0:v.startPaused)?h.cueVideoByPlayerVars(K.args):h.loadVideoByPlayerVars(K.args)),
ctb(N),N.bootstrapPlayerResponse=void 0;return X.return(M)})};
var p4C=function(p){if(document.readyState==="complete"||document.readyState==="interactive")ewZ(p);else{var x=function(){document.removeEventListener("DOMContentLoaded",x);ewZ(p)};
document.addEventListener("DOMContentLoaded",x)}},ewZ=function(p){p.pageReadyOrDataAvailable=!0;
p.pageReadyOrDataAvailableResolver.resolve()},ctb=function(p){p.pendingPlayerResponse=void 0;
p.pendingWatchNextResponse=void 0;p.pendingPlayerVars=void 0};
_.R8.Object.defineProperties(j1.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var Ll=function(p){y1.call(this,p===void 0?"document_active":p);var x=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(F){x.transition("document_disposed",{event:F})});
window.addEventListener("beforeunload",function(F){x.transition("document_disposed_preventable",{event:F})});
window.addEventListener("unload",function(F){x.transition("document_disposed",{event:F});x.hasRun=new Map})};
_.E(Ll,y1);
Ll.prototype.runPreventableDispose=function(p,x){if(!this.hasRun.get("document_disposed_preventable")){p(x==null?void 0:x.event);var F,N;if((x==null?0:(F=x.event)==null?0:F.defaultPrevented)||(x==null?0:(N=x.event)==null?0:N.returnValue)){x.event.returnValue||(x.event.returnValue=!0);x.event.defaultPrevented||x.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")};
Ll.prototype.runDispose=function(p,x){this.hasRun.get("document_disposed")?this.transition("document_active"):(p(x==null?void 0:x.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
Ll.prototype.runFlush=function(p,x){p(x==null?void 0:x.event);this.transition("document_active")};
Ll.prototype.runActive=function(){};var BL=function(p){y1.call(this,p===void 0?"document_visibility_unknown":p);var x=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(F){document.visibilityState==="visible"?x.transition("document_visible",{event:F}):x.transition("document_hidden",
{event:F})});
_.S("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(F){x.transition("document_backgrounded",{event:F})}),window.addEventListener("focus",function(F){x.transition("document_foregrounded",{event:F})}))};
_.E(BL,y1);BL.prototype.runVisible=function(p,x){p(x==null?void 0:x.event);_.S("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
BL.prototype.runHidden=function(p,x){p(x==null?void 0:x.event);_.S("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
BL.prototype.runBackgrounded=function(p,x){p(x==null?void 0:x.event)};
BL.prototype.runForegrounded=function(p,x){p(x==null?void 0:x.event)};var Rz=function(){this.teardownLifecycle=new Ll;this.visibilityLifecycle=new BL};
Rz.prototype.install=function(){var p=_.we.apply(0,arguments),x=this;p.forEach(function(F){x.teardownLifecycle.install(F)});
p.forEach(function(F){x.visibilityLifecycle.install(F)})};var kk=function(){Rz.call(this);var p={};this.install((p.document_disposed={callback:this.abortSlisAndFlush},p));_.S("combine_ve_grafts")&&(p={},this.install((p.document_disposed={callback:this.flushInteractionLoggingAttachVes},p)));p={};this.install((p.flush_logs={callback:this.logFinalPayload},p));_.S("web_log_cfg_cee_ks")||_.vZ(_.E0,aLn)};
_.E(kk,Rz);var Icz=function(){kk.loggingInstance||(kk.loggingInstance=new kk);return kk.loggingInstance};
kk.prototype.logFinalPayload=function(){if(_.S("web_fp_via_jspb")){var p=new OsC,x=_.b0();x&&_.J_(p,1,x);x=_.S("jspb_sparse_encoded_pivot")?new dj([{}]):new dj;_.K6(x,380,j9k,p);nzB("finalPayload",x);_.S("web_fp_via_jspb_and_json")&&_.E$("finalPayload",{csn:_.b0()})}else _.E$("finalPayload",{csn:_.b0()})};
kk.prototype.abortSlisAndFlush=function(){yAK(Wf);Hf!=null&&Hf.flush()};
kk.prototype.flushInteractionLoggingAttachVes=function(){UWj(_.cl())};
var aLn=function(){var p=_.sd("CLIENT_EXPERIMENT_EVENTS");if(p){var x=Umd();p=_.a(p);for(var F=p.next();!F.done;F=p.next())F=F.value,x(F)&&_.E$("genericClientExperimentEvent",{eventType:F});delete _.QL.CLIENT_EXPERIMENT_EVENTS}};var MfI={};
MfI.YtPlayerBehavior=[_.oz.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 p=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.FT;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;$Pk(function(){p.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.s4(this,"pan-down"),_.S("kevlar_pinch_fullscreen")&&_.c6().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.S("kevlar_pinch_fullscreen")&&_.c6().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(p,x,F){var N=this;kp(this.useUnifiedPlayer_());if(this.mainAppPlayer_)kp(!1,"MainAppPlayer already created.");else{var h=_.S("kevlar_player_container_query_killswitch")?this.$.container:_.n(this.hostElement).querySelector("#container");this.mainAppPlayer_=new j1(this.getWebPlayerContextConfig_(),h,function(c){return _.FY(c,N.hostElement)},p,x,F);
this.mainAppPlayer_.api.then(function(c){N.player_=c;N.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&RJk.resolve(c)})}},
loadVideoWithPlayerResponse:function(p,x){var F=this;if(this.useUnifiedPlayer_()){var N=this.watchNextData,h,c=(h=p.videoDetails)==null?void 0:h.videoId,M,f,K;(h=(M=this.watchNextData)==null?void 0:(f=M.currentVideoEndpoint)==null?void 0:(K=f.watchEndpoint)==null?void 0:K.videoId)&&c!=h&&(N=void 0,_.S("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(p,N,x):this.createMainAppPlayer_(p,N,x);this.mainAppPlayer_.api.then(function(){_.hG(F.hostElement,
"yt-player-updated")})}else this.update(Yrk(p,x))},
loadVideoWithPlayerVars:function(p){var x=this;this.useUnifiedPlayer_()?(_.S("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(p):this.createMainAppPlayer_(void 0,void 0,p),this.mainAppPlayer_.api.then(function(){_.hG(x.hostElement,"yt-player-updated")})):this.update({args:p})},
update:function(p){var x=this;if(this.useUnifiedPlayer_())kp(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(p);var F=PlB(p.args);F&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==F&&Object.assign(p.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(p).then(function(N){_.hG(x.hostElement,"yt-player-updated",_.S("kevlar_player_updated_obsolete_player_killswitch")?
N:void 0)})}_.s$(new _.qE("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(p){var x=this,F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,x.getPlayerPromise(),2);F=N.yieldResult;if(!F)throw Error("uh");p&&x.updatePlayerPlaylist_(p);_.JB(N)})},
acquireApi_:function(p){var x=this;if(this.useUnifiedPlayer_())kp(!1,"Invalid method call in kevlar_unified_player.");else return _.E0.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(kp(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(F){x.shouldAutoplay_(p)?F.loadVideoByPlayerVars(p.args):F.cueVideoByPlayerVars(p.args)})):this.initPlayerPromise_=this.initPlayerContainer_(p),this.initPlayerPromise_},
initPlayerContainer_:function(p){var x=this;if(this.useUnifiedPlayer_())kp(!1,"Invalid method call in kevlar_unified_player.");else return kp(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.no(Error("vh")),kp(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.S("kevlar_player_container_query_killswitch")?this.$.container:_.n(this.hostElement).querySelector("#container"),PvE().then(function(){var F=x.initPlayer_(p);x.playerResolver_.resolve(F);
return F})},
onPlayerReady_:function(p,x){this.useUnifiedPlayer_()?kp(!1,"Invalid method call in kevlar_unified_player."):(p.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&RJk.resolve(p),x(p))},
maybeCallApiMethodOnElement_:function(p,x){if(typeof p[x]==="function")return p[x]()},
maybeAdoptBootstrapPlayer_:function(){var p=window,x,F=(x=p.ytplayer)==null?void 0:x.bootstrapPlayerContainer;if((x=F==null?void 0:F.firstElementChild)&&x.classList.contains("html5-video-player")){var N,h,c=(N=p.ytplayer)==null?void 0:(h=N.bootstrapWebPlayerContextConfig)==null?void 0:h.contextId;N=this.getWebPlayerContextConfig_().contextId;if(c&&c===N){F!==this.playerContainer_&&(F=!1,this.maybeCallApiMethodOnElement_(x,"getPlayerState")===2&&(F=!0),this.playerContainer_.appendChild(x),F||this.maybeCallApiMethodOnElement_(x,
"playVideo"));var M;if((M=p.ytplayer)==null?0:M.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=p.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(p){var x=this;if(this.useUnifiedPlayer_())kp(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(F){x.maybeAdoptBootstrapPlayer_();var N=p?wBd(p):void 0;N&&N==x.bootstrapPlayerResponse_&&(p.loaded=!0);N=x.playerContainer_;var h=x.getWebPlayerContextConfig_();N=UPr(N,p,h);x.player_=N;x.onPlayerReadyEvent_=x.onPlayerReady_.bind(x,x.player_,F);x.player_.addEventListener("onReady",x.onPlayerReadyEvent_);x.player_.addEventListener("innertubeCommand",
x.onPlayerInnerTubeCommand_.bind(x))})},
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(p){p.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(p){p.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var p=_.J().resolve(_.j3).getCurrentPage();p&&p.getScrollTop()<=0?_.s4(this,"pan-down"):_.s4(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(p){p.isFullscreen()||p.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(p){p.isFullscreen()&&p.toggleFullscreen()})},
updatePlayerPlaylist_:function(p){var x=this,F,N,h;return _.D(function(c){if(c.nextAddress==1)return F=_.J().resolve(_.Bw(_.Yx)),N=!!(F&&F.playlistComponent&&F.playlistComponent.loopOn),_.q(c,x.getPlayerPromise(),2);var M=h=c.yieldResult,f=M.updatePlaylist,K=[];if(_.S("kevlar_player_playlist_use_local_index")){var t,d;var v=(d=(t=p.localCurrentIndex)!=null?t:p.currentIndex)!=null?d:0}else{var C;v=(C=p.currentIndex)!=null?C:0}if(p.contents)for(t=0;t<p.contents.length;t++)if((d=p.contents[t])&&d.playlistPanelVideoRenderer)if(NP$(d)){d=
d.playlistPanelVideoRenderer;C="";d.shortBylineText&&(C=_.Pi(d.shortBylineText));var X="";d.title?X=_.Pi(d.title):d.unplayableText&&(X=_.Pi(d.unplayableText));K.push({author:C,title:X,encrypted_id:d.videoId})}else t<v&&--v;f.call(M,{index:v,list:p.playlistId?p.playlistId:"",loop:N,playlist_title:p.title,playlist_length:K.length,video:K,fetch:0,external_list:"1",title:p.title?p.title:"",playlist_author:p.ownerName?_.Pi(p.ownerName):void 0});_.JB(c)})},
focusOnPlayer:function(){_.jB(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var p=this.playerContainer_.querySelector(".html5-video-player");p&&(_.D_v(_.J().resolve(_.CQ)),p.focus())}})},
preparePlayer:function(){var p=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(x){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")x();else{var F=function(){document.removeEventListener("DOMContentLoaded",F);x()};
document.addEventListener("DOMContentLoaded",F)}})).then(function(){return PvE()}).then(function(){p.initPlayerPromise_||p.preparePlayerJobId_||(p.preparePlayerJobId_=_.vZ(_.E0,function(){p.initPlayerPromise_||(p.initPlayerPromise_=p.initPlayerContainer_())}))}):_.s$(new _.qE("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(p){this.useUnifiedPlayer_()?kp(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(p)||(p.args.autoplay="0")},
shouldAutoplay_:function(p){if(this.useUnifiedPlayer_())kp(!1,"Invalid method call in kevlar_unified_player.");else{var x=this.get("args.el",p);return x&&x!="detailpage"&&this.isMiniplayerActive_()||x&&(x=="sponsorshipsoffer"||x=="handlesclaiming")&&this.get("args.autoplay",p)=="0"?!1:(p=wBd(p))&&this.get("playerConfig.playbackStartConfig.startPaused",p)?!1:!0}},
isMiniplayerActive_:function(){return _.J().resolve(_.H$).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var p=this.getPlayer();if(p){var x=p.getPlayerState();_.S("kevlar_player_check_ad_state_on_stop")&&(x=p.getPlayerState(p.getPresentingPlayerType()));x!=5&&p.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(p,x,F){F=F===void 0?!1:F;var N=this,h,c,M,f;return _.D(function(K){if(K.nextAddress==1)return x||(x=N.hostElement),h=N.useUnifiedPlayer_()?!!N.mainAppPlayer_:!!N.initPlayerPromise_,h?_.q(K,N.getPlayerPromise(),2):(F?p.insertBefore(x,p.firstChild):p.appendChild(x),K.return());c=K.yieldResult;M=c.getPlayerState(c.getPresentingPlayerType());f=!1;if(M==-1||M==1||M==3)f=!0;F?p.insertBefore(x,p.firstChild):p.appendChild(x);f&&c.playVideo();c.setSize(NaN,NaN);_.JB(K)})},
watchNextDataChanged_:function(p){var x=this;p&&(this.useUnifiedPlayer_()&&_.S("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&NQC(this.mainAppPlayer_,p):this.getPlayerPromise().then(function(F){F.updateVideoData(x.computeWatchNextPlayerVars_(p))}))},
computeWatchNextPlayerVars_:function(p){if(this.useUnifiedPlayer_()&&_.S("kevlar_unified_player_update_watch_next_killswitch"))kp(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:p}},
maybeSendAbandonmentPing_:function(){var p=this.getPlayer();p&&p.getPlayerState()!=5&&p.getPlayerState()!=0&&p.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var p=_.sd("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(p=Object.assign({},p),p.rootElementId=this.playerId);p.serializedExperimentIds&&p.serializedExperimentFlags||_.no(Error("wh"));return p},
hasWebPlayerContextConfig_:function(){return!!_.sd("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(p){this.useUnifiedPlayer_()?kp(!1,"Invalid method call in kevlar_unified_player."):_.FY(p,this.hostElement)},
useUnifiedPlayer_:function(){var p=_.S("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.S("kevlar_unified_player")||p}}];var fL6={};fL6.YtPlaylistPanelBehavior=[_.e.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(p){p=p.detail;if(p.actions.loop!=void 0||p.actions["yt-icons:loop"]!=void 0)this.loopOn=p.actions.loop||p.actions["yt-icons:loop"];if(p.actions.shuffle!=void 0||p.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=p.actions.shuffle||p.actions["yt-icons:shuffle"]},
setMenuData_:function(p){if(!p||!p.playlistButtons||p.isInfinite)return null;for(var x=p.playlistButtons.menuRenderer.topLevelButtons,F=x.length,N=0;N<F;N++)if(x[N].toggleButtonRenderer){var h=x[N].toggleButtonRenderer;h.defaultIcon.iconType=="LOOP"&&this.loopOn?h.isToggled=this.loopOn:h.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(h.isToggled=this.shuffleOn)}return p.playlistButtons}}];var KPv=function(p){xQ.call(this,p,132);this.isDocument=p===document.documentElement};
_.E(KPv,xQ);KPv.prototype.calculateScrollDelta=function(p,x,F){var N=0;p<x?N=p<x-100?-48:-8:p>x+F&&(N=p>x+F+100?48:8);return N};
KPv.prototype.JSC$9140_onMouseMove=function(p){this.isDocument||(p.clientX=p.event_.pageX,p.clientY=p.event_.pageY);xQ.prototype.JSC$9140_onMouseMove.call(this,p)};var U7=function(){var p=_.hZ.apply(this,arguments)||this;p._noAccessors=!0;p.scrollElement=document.documentElement;p.JSC$12082_dragListGroup=null;p.dragScrollSupport=null;p.onDraggerCreated=function(x){var F=x.JSC$9136_dragger;F.scrollTarget_=p.scrollElement;x=x.draggerEl;F&&x.menuOpened&&F.setEnabled(!1)};
p.onDragStart=function(x){var F=x.draggerEl;x=x.currDragItem;var N=Object.assign({},x==null?void 0:x.data);N.trackingParams=void 0;F.data=N;F.style.position="absolute";F.style.width=(x==null?void 0:x.clientWidth)+"px";F.style.zIndex="2030";F.onDrag&&F.onDrag();_.S("web_owner_document_fallback_killswitch")?(x=document.querySelector("ytd-app"))&&_.n(x).appendChild(F):(x=_.y5(F),(N=x.querySelector("ytd-app"))?_.n(N).appendChild(F):x.body.appendChild(F));p.dragScrollSupport=new KPv(p.scrollElement);p.dragScrollSupport.horizontalScrolling_=
!1;F=p.dragScrollSupport;F.constrainScroll_=!!F.margin_&&!1};
p.onDrop=function(x){p.handleDrop(x);p.dragScrollSupport&&(_.RR(p.dragScrollSupport),p.dragScrollSupport=null)};
p.onReorderableScroll=function(){if(p.JSC$12082_dragListGroup){var x=p.JSC$12082_dragListGroup;YQJ(x,x.currDragItem_)}};
return p};
_.E(U7,_.hZ);U7.prototype.detached=function(){_.qAZ(this)};
_.qAZ=function(p){p.JSC$12082_dragListGroup&&(_.Ci(p.JSC$12082_dragListGroup,gJK,p.onDragStart),_.Ci(p.JSC$12082_dragListGroup,nJC,p.onDragStart),p.JSC$12082_dragListGroup.dispose(),p.JSC$12082_dragListGroup=null);p.dragScrollSupport&&(_.RR(p.dragScrollSupport),p.dragScrollSupport=null);p.scrollElement.removeEventListener("scroll",p.onReorderableScroll)};
_.ZKb=function(p,x,F,N){N=N===void 0?"":N;_.qAZ(p);F&&(p.scrollElement=F);p.JSC$12082_dragListGroup=new Vs;p.JSC$12082_dragListGroup.hysteresisDistance_=2;b5Z(p.JSC$12082_dragListGroup,x);p.JSC$12082_dragListGroup.draggerElClasses_=_.hH("dragging").split(" ");N&&AZb(p.JSC$12082_dragListGroup,function(h){var c=h||document,M=null;c.getElementsByClassName?M=c.getElementsByClassName(N)[0]:M=$HZ("*",N,h);return M||h});
_.qd(p.JSC$12082_dragListGroup,EJ6,p.onDraggerCreated);_.qd(p.JSC$12082_dragListGroup,gJK,p.onDragStart);_.qd(p.JSC$12082_dragListGroup,nJC,p.onDrop);p.JSC$12082_dragListGroup.init();p.scrollElement.addEventListener("scroll",p.onReorderableScroll,{passive:!0})};
U7.prototype.handleDrop=function(){};
_.R8.Object.defineProperties(U7.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
var tfI=U7;_.B([_.H({value:100}),_.k("design:type",Number)],tfI.prototype,"scrollMargin",void 0);tfI=_.B([_.l8()],tfI);_.d_6=[tfI.prototype];_.ih={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(p,x,F){var N=this.getClickTarget_(x);if(N&&this.isClickAllowed_(N)){x.preventDefault();p=(0,_.Q5.unsafeClone)(p);var h=this.getContainerBoundingRect();x=this.getRelativeClickXy_(x,h);this.expandEndpointUrlMacros_(p,{NX:x[0],NY:x[1],NB:N.code});F&&this.truncateWebCommendMetadataUrl_(p);_.hG(this.hostElement,"yt-navigate",{endpoint:p})}},
getClickTarget_:function(p){if(!this.clickTargetMap)return null;p=_.m9(p)||[];p=_.a(p);for(var x=p.next();!x.done;x=p.next()){x=x.value;if(x===_.n(this.hostElement).querySelector("#menu"))break;if(x=this.clickTargetMap.get(x.id))return x}return null},
getRelativeClickXy_:function(p,x){var F=p.detail.x,N=p.detail.y;_.S("use_on_click_for_desktop_display_ad")&&p.clientX!=null&&p.clientY!=null&&(F=p.clientX,N=p.clientY);p=Math.round(F-x.left);x=Math.round(N-x.top);return p<0||x<0?[null,null]:[p,x]},
getContainerBoundingRect:function(){return _.n(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(p,x){for(var F=_.a(p.loggingUrls||[]),N=F.next();!N.done;N=F.next())N=N.value,N.baseUrl&&(N.baseUrl=WXw(N.baseUrl,x));p.urlEndpoint&&p.urlEndpoint.url&&(p.urlEndpoint.url=WXw(p.urlEndpoint.url,x));p.commandMetadata&&p.commandMetadata.webCommandMetadata&&p.commandMetadata.webCommandMetadata.url&&(p.commandMetadata.webCommandMetadata.url=WXw(p.commandMetadata.webCommandMetadata.url,x))},
truncateWebCommendMetadataUrl_:function(p){if(p.commandMetadata&&p.commandMetadata.webCommandMetadata&&p.commandMetadata.webCommandMetadata.url){var x=p.commandMetadata.webCommandMetadata.url,F=x.indexOf("&pp=");if(F>0){var N=x.indexOf("&",F+1);p.commandMetadata.webCommandMetadata.url=N>F&&N<x.length?x.slice(0,F)+x.slice(N):x.slice(0,F)}}},
configureClickTargets:function(p,x,F){this.containerId=p;this.clickTargetMap=new Map;p=_.a(x);for(x=p.next();!x.done;x=p.next())if(x=x.value,x.location){var N=F.get(x.location);N&&(_.iX(_.n(this.hostElement).querySelector("#"+N),"yt-simple-endpoint",this.isClickAllowed_(x)),this.clickTargetMap.set(N,x))}},
isClickAllowed_:function(p){return p.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||p.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||p.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||p.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.Iz={};
_.Iz.YtLazyListBehavior=[_.o3.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 p=(this.constructor.generatedFrom||this).observers;p||(p=[]);p.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
p}},
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 p=this.renderElementsOutsideVisibleArea_;p&&(ZYk(p,4),p.processSignal())},
deepLazyListObserver_:function(p){var x=this;if(p){var F=p.value||[];if(this.itemsPath==p.path){var N=this.nonDeferredItemCount;p=0;N>-1&&F.length>N&&(p=_.sd("REMAINING_DOVA_DEFERRED_CHUNKS",-1));p>0?(N>0&&(N=F.slice(0,N),this.setInitialItemsOnDataChanged(N)),(N=this.renderElementsOutsideVisibleArea_)?N.cancel():(N=this.renderElementsOutsideVisibleArea_=new _.jj(2,"eocs"),_.GTH(window,"scroll",function(){return x.renderDeferredElements()})),_.LJ(N,function(){x.setInitialItemsOnDataChanged(F)}),_.zn("REMAINING_DOVA_DEFERRED_CHUNKS",
p-1)):this.setInitialItemsOnDataChanged(F)}else if(this.itemsPath+".splices"==p.path)this.onItemsUpdated_(F);
else N="shownItems"+p.path.substr(this.itemsPath.length),this.useSignals&&N==="shownItems.length"||this.notifyPath(N,p.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(p){p&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(p),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(p){p=p.indexSplices;for(var x=0,F=p.length;x<F;x++){var N=p[x];if(N.index<this.shownCount&&(N.removed&&this.splice("shownItems",N.index,N.removed.length),N.addedCount)){var h=N.object.slice(N.index,N.index+N.addedCount);N=["shownItems",N.index,0];N.push.apply(N,h);this.splice.apply(this,N)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(p){this.cancelPendingTasks_();p||(p=[]);this.items_=p;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&&(_.nt("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.jB(this,this.tryRenderChunk_)))},
fillRange_:function(p,x){this.canShowMore&&this.items_&&(p=this.items_.slice(p,x),p.unshift("shownItems"),this.push.apply(this,p),this.shownCount=x,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var p=this;this.canShowMore&&_.sQ(this,"renderChunk",function(){p.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.nt("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.tR(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var p=this.renderElementsOutsideVisibleArea_;p&&(p.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var p=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(p-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=p;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(p){return Math.ceil(1E3/p)},
onCanShowMoreUpdated_:function(p){this.data&&this.items_!==null&&(p?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(p){!this.shouldUseTaskManager()&&this.data&&(!p&&this.canShowMore?(_.v1H(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):p&&this.partiallyRenderedItems_.has(this.items_)&&(_.S("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var p_;_.$k={};
p_=function(){var p=_.hZ.apply(this,arguments)||this;p.atStart=!0;p.atEnd=!0;p.startIndex=0;p.endIndex=0;p.scrollCount=0;p.initialStartIndex=0;p.disableScrollEventListener=!1;p.useFloorScrolling=!1;p.isSearch=!1;p.dragging=!1;p.dragMouseStart=0;p.dragOffsetStart=0;p.disableWheelScroll=!1;p.centerListItems=!1;p.offset=0;p.minComponentWidth=0;p.marginWidthRight=0;p.marginWidthLeft=0;p.setButtonsStateRequested=!1;p.itemsVisibilityObserver=null;p.fullyVisibleItemsIndices=[];p.JSC$12093_onWheelScroll=function(x){if(p.isSearch&&
!p.disableWheelScroll&&_.S("desktop_enable_dmpanel_wheel_scroll")){var F=x.shiftKey?Math.abs(x.deltaY)>Math.abs(x.deltaX)?x.deltaY:x.deltaX:x.deltaX;F!==0&&(x.preventDefault(),p.ytLazyListBehavior.fillRemainingListItems(),p.offset+=F,e1(p),p.reposition_())}};
p.JSC$12093_onPointerDown=function(x){vrn(p)&&(p.dragMouseStart=x.clientX,p.dragOffsetStart=p.offset,p.dragging=!0)};
p.onPointerMove=function(x){vrn(p)&&p.dragging&&(p.ytLazyListBehavior.fillRemainingListItems(),p.offset=p.dragOffsetStart-(x.clientX-p.dragMouseStart),e1(p),p.reposition_())};
p.JSC$12093_onPointerUp=function(){vrn(p)&&(p.dragging=!1)};
return p};
_.E(p_,_.hZ);var JtJ=function(p){var x=_.n(p.hostElement).querySelector("#items").children;if(!x)return 0;var F=0;p=_.a(p.fullyVisibleItemsIndices);for(var N=p.next();!N.done;N=p.next())F+=x[N.value].clientWidth;return F},vrn=function(p){return p.isSearch&&_.S("desktop_enable_dmpanel_click_drag_scroll")};
p_.prototype.created=function(){this.cachedViewportWidth=_.sd("initialInnerWidth")||window.innerWidth;this.JSC$12093_cachedViewportHeight=_.sd("initialInnerHeight")||window.innerHeight;_.sd("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.zn("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
p_.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.S("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();CwD(this)};
p_.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.S("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var p;(p=this.itemsVisibilityObserver)==null||p.disconnect();this.itemsVisibilityObserver=null;var x;(x=this.itemsObserver)==null||x.disconnect()};
var CwD=function(p){var x=_.n(p.hostElement).querySelector("#scroll-container");if(x){if(!p.itemsVisibilityObserver){var F=window.getComputedStyle(x).marginRight;p.itemsVisibilityObserver=new IntersectionObserver(function(N){SAK(p,N)},{root:x,
rootMargin:F,threshold:.98})}if(x=_.n(p.hostElement).querySelector("#items"))p.itemsObserver=new fuB(x,function(N){rtD(p,N)})}},rtD=function(p,x){ErC(p)&&(Array.from(x.addedNodes).filter(function(F){return F.nodeType===Node.ELEMENT_NODE}).forEach(function(F){p.itemsVisibilityObserver&&p.itemsVisibilityObserver.observe(F)}),Array.from(x.removedNodes).filter(function(F){return F.nodeType===Node.ELEMENT_NODE}).forEach(function(F){p.itemsVisibilityObserver&&p.itemsVisibilityObserver.unobserve(F)}))},
SAK=function(p,x){var F=new Set(p.fullyVisibleItemsIndices);
x=_.a(x);for(var N=x.next();!N.done;N=x.next()){N=N.value;var h=N.target.parentElement;h?(h=Array.from(h.children).indexOf(N.target),N.isIntersecting?F.add(h):F.has(h)&&F.delete(h)):_.no(new _.qE("Parent element not found",N.target.nodeName))}p.fullyVisibleItemsIndices=Array.from(F).sort(function(c,M){return c-M});
F.size===0?_.no(new _.qE("No visible entries in horizontal list")):(p.startIndex=p.fullyVisibleItemsIndices[0],p.endIndex=p.fullyVisibleItemsIndices[p.fullyVisibleItemsIndices.length-1])},ErC=function(p){p.data?p=(p=p.data)&&p.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===p.itemSizeConstraint:!1:p=!1;
return p};
_.l=p_.prototype;_.l.addScrollEventListeners=function(){var p=_.n(this.hostElement).querySelector("#scroll-container");p.style.touchAction="pan-y";p.addEventListener("wheel",this.JSC$12093_onWheelScroll);p.addEventListener("pointerdown",this.JSC$12093_onPointerDown);p.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.JSC$12093_onPointerUp)};
_.l.removeScrollEventListeners=function(){var p=_.n(this.hostElement).querySelector("#scroll-container");p.removeEventListener("wheel",this.JSC$12093_onWheelScroll);p.removeEventListener("pointerdown",this.JSC$12093_onPointerDown);p.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.JSC$12093_onPointerUp)};
_.l.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.jB(this,this.setStartIndex,[this.initialStartIndex])};
_.l.reposition_=function(){var p=_.sd("HTML_DIR")=="rtl"?"":"-",x=_.n(this.hostElement).querySelector("#items");x&&(x.style.transform="translateX("+p+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.l.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.jB(this,this.setButtonsState_))};
_.l.setButtonsState_=function(){this.setButtonsStateRequested=!1;var p=_.n(this.hostElement).querySelector("#items").firstElementChild;if(p){this.minComponentWidth||(this.minComponentWidth=X4b(this,p));p=_.n(this.hostElement).querySelector("#scroll-container").clientWidth;var x=_.n(this.hostElement).querySelector("#items").clientWidth,F=this.get(this.ytLazyListBehavior.itemsPath,this);if(F){var N=Math.round(p/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+N,F.length)-1)}this.ytLazyListBehavior.canShowMore?x+this.minComponentWidth>=this.offset+p&&(this.atEnd=!1):this.atEnd=this.offset+p>=x-20?!0:!1;this.atStart=this.offset<=20}};
_.l.setStartIndex=function(p){if(!this.minComponentWidth){var x=_.n(this.hostElement).querySelector("#items").firstElementChild;if(!x)return;this.minComponentWidth=X4b(this,x)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*p;e1(this);this.reposition_()};
_.l.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.DQ();var p=_.n(this.hostElement).querySelector("#scroll-container").clientWidth;_.S("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=X4b(this,_.n(this.hostElement).querySelector("#items").firstElementChild));p=this.useFloorScrolling?Math.floor(p/this.minComponentWidth)||1:Math.round(p/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&grk(this);this.offset+=ErC(this)?
JtJ(this):p*this.minComponentWidth;e1(this);this.reposition_();this.scrollCount++};
_.l.prevClick_=function(){var p=_.n(this.hostElement).querySelector("#scroll-container").clientWidth;p=this.useFloorScrolling?Math.floor(p/this.minComponentWidth)||1:Math.round(p/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=ErC(this)?JtJ(this):this.minComponentWidth*this.scrollCount-1):this.offset-=ErC(this)?JtJ(this):p*this.minComponentWidth;this.centerListItems&&grk(this);e1(this);this.reposition_()};
_.l.onIronResize_=function(){this.resizeSupportEnabled&&_.jB(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.l.onItemsTransitionEnd_=function(p){_.os(p)===_.n(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.l.onChildElementFocus_=function(p){p=p.target.closest("#items > *");var x=_.n(this.hostElement).querySelector("#scroll-container");if(x.contains(p)){if(_.S("web_horizontal_list_behavior_focus_killswitch"))if(p.offsetLeft<this.offset)this.offset=Math.abs(p.offsetLeft)<p.clientWidth?0:p.offsetLeft;else if(p.offsetLeft+p.clientWidth>this.offset+x.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.DQ(),this.offset=p.offsetLeft+p.clientWidth-x.clientWidth;else return;else{var F=_.n(this.hostElement).querySelector("#items"),
N=_.sd("HTML_DIR")==="rtl",h=N?F.clientWidth-p.offsetLeft:p.offsetLeft;F=N?F.clientWidth-(p.offsetLeft+p.clientWidth):p.offsetLeft+p.clientWidth;var c=N?h>this.offset+x.clientWidth:h<this.offset,M=N?F<this.offset:F>this.offset+x.clientWidth,f=N?c:M;if(N?M:c)x=N?F:h,this.offset=Math.abs(x)<p.clientWidth?0:x;else if(f)this.ytLazyListBehavior.fillRemainingListItems(),_.DQ(),this.offset=(N?h:F)-x.clientWidth;else return}e1(this);this.reposition_()}};
_.l.observeShownItems_=function(){this.reset()};
_.l.checkComponentWidthResize=function(){var p=_.n(this.hostElement).querySelector("#items").firstElementChild;p&&(p=X4b(this,p),this.centerListItems||p!==this.minComponentWidth)&&(this.minComponentWidth=p,this.offset=p*this.scrollCount,this.centerListItems&&grk(this),e1(this),this.reposition_())};
var X4b=function(p,x){var F=window.getComputedStyle(x).marginRight;F=Math.floor(Number(F.replace("px","")));var N=window.getComputedStyle(x).marginLeft;N=Math.floor(Number(N.replace("px","")));p.centerListItems&&!p.marginWidthRight&&(p.marginWidthRight=F,p.marginWidthLeft=N);return p.resizeSupportEnabled?x.getBoundingClientRect().width+F:x.offsetWidth+F},e1=function(p){var x=_.n(p.hostElement).querySelector("#scroll-container").clientWidth,F=_.n(p.hostElement).querySelector("#items").clientWidth;
p.offset<0?p.offset=0:p.offset+x>=F&&(p.offset=F-x)},grk=function(p){p.offset-=(_.n(p.hostElement).querySelector("#scroll-container").clientWidth+p.marginWidthRight-p.minComponentWidth)/2-p.marginWidthLeft};
_.R8.Object.defineProperties(p_.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var p=_.sd("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(p==-1)p=this.JSC$12093_cachedViewportHeight,p=p>1320?5:p>1020?4:p>730?3:p>430?2:1;else if(p==0)return 0;_.zn("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",p-1);p=_.sd("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(p>-1)return p;p=this.cachedViewportWidth;p=p>1600?6:p>1400?5:p>1300?4:p>1090?5:p>870?4:p>660?3:2;_.zn("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
p);return p},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.S("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
var xe=p_;xe.prototype.observeShownItems_=xe.prototype.observeShownItems_;xe.prototype.onChildElementFocus_=xe.prototype.onChildElementFocus_;xe.prototype.onItemsTransitionEnd_=xe.prototype.onItemsTransitionEnd_;xe.prototype.onIronResize_=xe.prototype.onIronResize_;xe.prototype.prevClick_=xe.prototype.prevClick_;xe.prototype.nextClick_=xe.prototype.nextClick_;xe.prototype.setButtonsState_=xe.prototype.setButtonsState_;xe.prototype.requestButtonsStateUpdate_=xe.prototype.requestButtonsStateUpdate_;
xe.prototype.reposition_=xe.prototype.reposition_;xe.prototype.reset=xe.prototype.reset;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],xe.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.Iz.YtLazyListBehavior),_.k("design:type",Object)],xe.prototype,"ytLazyListBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],xe.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],xe.prototype,"atStart",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],xe.prototype,"atEnd",void 0);_.B([_.H(),_.k("design:type",Object)],xe.prototype,"startIndex",void 0);_.B([_.H(),_.k("design:type",Object)],xe.prototype,"endIndex",void 0);_.B([_.H({value:6}),_.k("design:type",Number)],xe.prototype,"initialCount",void 0);_.B([_.H(),_.k("design:type",Object)],xe.prototype,"scrollCount",void 0);_.B([_.H(),_.k("design:type",Object)],xe.prototype,"initialStartIndex",void 0);
_.B([_.H(),_.k("design:type",Object)],xe.prototype,"disableScrollEventListener",void 0);_.B([_.H(),_.k("design:type",Object)],xe.prototype,"supportComponentResize",void 0);_.B([_.H({value:function(){var p=this;return function(){return p.prevClick_()}}}),
_.k("design:type",Function)],xe.prototype,"boundPrevClick",void 0);_.B([_.H({value:function(){var p=this;return function(){return p.nextClick_()}}}),
_.k("design:type",Function)],xe.prototype,"boundNextClick",void 0);_.B([_.H(),_.k("design:type",Object)],xe.prototype,"useFloorScrolling",void 0);_.B([_.H(),_.k("design:type",Object)],xe.prototype,"isSearch",void 0);_.B([_.H(),_.k("design:type",Object)],xe.prototype,"dragging",void 0);_.B([_.H(),_.k("design:type",Object)],xe.prototype,"dragMouseStart",void 0);_.B([_.H(),_.k("design:type",Object)],xe.prototype,"dragOffsetStart",void 0);
_.B([_.H(),_.k("design:type",Object)],xe.prototype,"disableWheelScroll",void 0);_.B([_.H(),_.k("design:type",Object)],xe.prototype,"centerListItems",void 0);_.B([_.V("iron-resize"),_.W("guideOpened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xe.prototype,"onIronResize_",null);_.B([_.V("transitionend"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],xe.prototype,"onItemsTransitionEnd_",null);
_.B([_.V("focusin"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],xe.prototype,"onChildElementFocus_",null);_.B([_.W("shownItems"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xe.prototype,"observeShownItems_",null);xe=_.B([_.l8()],xe);_.$k.YtdHorizontalListBehavior=[];_.$k.YtdHorizontalListBehavior.push(_.n7,_.e.YtRendererBehavior,_.Iz.YtLazyListBehavior,_.GM.YtdGuideStateAwareBehavior,xe.prototype);var pCB=["APP_STATE","PI"];var QPn=_.B$(["about:blank"]),zAB={pushState:window.history.pushState,replaceState:window.history.replaceState};var Fm=function(p){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=p;this.internalPushState=p.pushState.bind(p);this.internalReplaceState=p.replaceState.bind(p)};
Fm.prototype.init=function(){this.initialized=!0};
Fm.prototype.pushState=function(p,x){this.initialized||this.init();this.internalPushState&&this.internalPushState(p,"",x)};
Fm.prototype.replaceState=function(p,x){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(p,"",x)};
Fm.prototype.getState=function(){return this.history&&this.history.state};var sPB=function(p){var x=function(){var F=p.apply(this,arguments)||this;F.boundHistoryPushState=!1;F.boundHistoryReplaceState=!1;F.debugInfo={};return F};
_.E(x,p);x.prototype.init=function(){var F=_.KH("IFRAME");_.jP(F,_.xH(QPn));F.sandbox="allow-same-origin";F.style.display="none";this.iframe=F;document.body.appendChild(F);this.bindHistoryStateFunctions();p.prototype.init.call(this)};
x.prototype.bindHistoryStateFunctions=function(){var F=this,N=[],h;this.iframe&&((h=this.iframe.contentWindow)==null?0:h.history)&&(h=this.iframe.contentWindow.history)&&(N.push(h),Object.getPrototypeOf(h)&&N.push(Object.getPrototypeOf(h)));window.history&&N.push(window.history);h=window.history;Object.getPrototypeOf(h)&&N.push(Object.getPrototypeOf(h));N.push(zAB);h=function(M){for(var f=null,K=0;K<N.length;K++){var t=N[K][M];if(typeof t==="function"){f=t.bind(window.history);F.debugInfo[M]=K;break}}return f};
if(!this.boundHistoryReplaceState){var c=h("replaceState");c&&(this.internalReplaceState=c,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(h=h("pushState"))&&(this.internalPushState=h,this.boundHistoryPushState=!0)};
return x}(Fm),nrk=function(){return sPB.call(this,window.history)||this};
_.E(nrk,sPB);nrk.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var NQ=function(p){this.browserHistory=p;this.initialized=!1};
NQ.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
NQ.prototype.pushState=function(p,x){this.initialized||this.init();this.browserHistory.pushState(p,x)};
NQ.prototype.replaceState=function(p,x){this.initialized||this.init();this.browserHistory.replaceState(p,x)};
NQ.prototype.handlePopstate=function(p){return p.state};_.ytj=function(p,x,F,N,h){this.endpoint=p;this.forward=x;this.historyEntry=F;this.JSC$26264_savedComponentState=N;this.legacyBorder=h===void 0?!1:h};var bKb=function(p,x){this.rootData=p;this.scrollTop=x};var Q$=new _.iE("PAGE_REQUEST_TOKEN"),Ec6=new _.iE("FETCH_PBJ_TOKEN");_.h7=new _.iE("EPHEMERAL_STORE_TOKEN");_.lp=function(p){this.data=Object.assign({},p);var x;(x=this.data.innertubeResponse)==null||delete x.frameworkUpdates};
_.lp.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.Lf)()};
_.ai=function(p){return Object.assign({},p.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var At6=function(){this.maxSize=100;this.timeToDataCache=new Map};
At6.prototype.get=function(p){var x=this.timeToDataCache.get(p);x&&(this.timeToDataCache.delete(p),this.timeToDataCache.set(p,x));if(x&&x.rootData&&(_.S("web_use_response_store_for_history_cache")||_.S("mweb_use_new_history_manager"))){var F=_.J().resolve(_.h7),N=uzB(x),h=!!N;if(N){if(N.content){var c=cI(F,N.content);h&&c?x.rootData.response=_.ai(c):h=!1}N.player&&(c=cI(F,N.player),h&&c?x.rootData.playerResponse=_.ai(c):h=!1);N.reelSequence&&(F=cI(F,N.reelSequence),h&&F?x.rootData.reelWatchSequenceResponse=
_.ai(F):h=!1)}h||(this.timeToDataCache.delete(p),x=void 0)}return x};
At6.prototype.set=function(p,x){if(x.rootData&&(_.S("web_use_response_store_for_history_cache")||_.S("mweb_use_new_history_manager"))){var F=uzB(x),N=Object.assign({},x.rootData);F&&(F.content&&x.rootData.response&&(YAK(this,F.content,x.rootData.response),N.response=null),F.player&&x.rootData.playerResponse&&(YAK(this,F.player,x.rootData.playerResponse),N.playerResponse=null),F.reelSequence&&x.rootData.reelWatchSequenceResponse&&(YAK(this,F.reelSequence,x.rootData.reelWatchSequenceResponse),N.reelWatchSequenceResponse=
null));x=new bKb(N,x.scrollTop)}this.timeToDataCache.has(p)?this.timeToDataCache.delete(p):this.timeToDataCache.size>=this.maxSize&&(F=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(F.value));this.maxSize!==0&&this.timeToDataCache.set(p,x)};
At6.prototype.clear=function(){this.timeToDataCache.clear()};
var uzB=function(p){var x=_.J().resolve(_.Bw(Q$)),F;if((F=p.rootData)==null?0:F.endpoint)return x==null?void 0:qXH(x,p.rootData.endpoint);var N;_.no(new _.qE("History snapshot response data does not contain endpoint",(N=p.rootData)==null?void 0:N.url));return null},YAK=function(p,x,F){if(p.maxSize>0){var N;
(p=(N=F.responseContext)==null?void 0:N.maxAgeSeconds)&&Number(p)>0&&(N=_.J().resolve(_.h7),F=I4(F,p),N.put(x,new _.lp(F)))}};var w4l=function(p,x,F){this.endpoint=x;this.JSC$26269_savedComponentState=F===void 0?null:F;this.entryTime=p};var cXJ=1;var aa=function(p){var x=function(){var F=p.apply(this,[].concat(_.se(_.we.apply(0,arguments))))||this;F.historyEntryTime=0;F.historySnapshotCache=F.createHistoryCache();return F};
_.E(x,p);x.prototype.createHistoryCache=function(){return new At6};
x.prototype.saveAndReplace=function(F,N,h){var c=window.location.href;var M=M===void 0?{}:M;var f=(f=this.browserHistory.getState())&&f.entryTime?f.entryTime:aMp();F=this.createNewHistoryEntry(F,M,f);this.saveSnapshot(f,N,h);this.replaceState(F,c||window.location.href)};
x.prototype.saveAndPush=function(F,N,h,c,M){M=M===void 0?{}:M;this.saveSnapshot(this.historyEntryTime,h,c);h=this.historySnapshotCache;c=this.historyEntryTime;var f=h.timeToDataCache.keys();f=_.a(f);for(var K=f.next();!K.done;K=f.next())K=K.value,K>c&&h.timeToDataCache.delete(K);N=this.createNewHistoryEntry(N,M);this.pushState(N,F)};
x.prototype.saveSnapshot=function(F,N,h){this.historySnapshotCache.set(F,new bKb(N,h))};
x.prototype.createNewHistoryEntry=function(F,N,h){h=h===void 0?aMp():h;return new w4l(h,F,N)};
x.prototype.handlePopstate=function(F){var N=p.prototype.handlePopstate.call(this,F),h=null,c=null,M=!1,f=null;N&&N.entryTime&&(f=this.historySnapshotCache.get(N.entryTime)||null,M=N.entryTime>this.historyEntryTime,this.historyEntryTime=N.entryTime,h=N.endpoint,c=N.JSC$26269_savedComponentState);this.handleHistoryCacheLoad(new _.ytj(h,M,f,c),F);return N};
x.prototype.pushState=function(F,N){Number(F==null?void 0:F.entryTime)>=0&&(this.historyEntryTime=F.entryTime);p.prototype.pushState.call(this,F,N)};
x.prototype.replaceState=function(F,N){Number(F==null?void 0:F.entryTime)>=0&&(this.historyEntryTime=F.entryTime);p.prototype.replaceState.call(this,F,N)};
x.prototype.handleHistoryCacheLoad=function(){};
return x}(NQ),GQm=function(){var p=aa.call(this,new nrk)||this;
p.dispatchElement=null;p.entryIndex=0;return p};
_.E(GQm,aa);_.l=GQm.prototype;_.l.init=function(p){p=p===void 0?!0:p;aa.prototype.init.call(this);this.initialized||(p||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.l.handlePopstate=function(p){var x=null;p.state||(x="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return aa.prototype.handlePopstate.call(this,p);var F=new CustomEvent("yt-history-pop",{cancelable:!0});_.lA(this.dispatchElement,"yt-history-pop",[F,{errorMsg:x}]);_.Mt(this.dispatchElement,"yt-close-all-popups-action");if(!F.defaultPrevented){F=_.J().resolve(_.j3);x=F.getCurrentData();var N=F.getCurrentPage();F=0;N?(N=_.lA(this.dispatchElement,"yt-get-page-offset",
[N]),N.length>0&&(F=N[0])):_.no(new _.qE("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:x?x.page:"undefined"}));x&&(x.csn=_.b0());this.saveSnapshot(this.historyEntryTime,x,F)}return aa.prototype.handlePopstate.call(this,p)};
_.l.handleHistoryCacheLoad=function(p,x){x.state&&(p.legacyBorder=!!x.state["spf-timestamp"]||!!x.state.blazer);p.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.a(_.Mt(this.dispatchElement,"yt-history-will-navigate",[x])).next().value||_.lA(this.dispatchElement,"yt-history-load",[x,p]))};
_.l.pushState=function(p,x){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var F=new _.qE("history.pushState is not a function",this.getDebugString());_.zj(F)}aa.prototype.pushState.call(this,p,x)};
_.l.replaceState=function(p,x){if(!this.browserHistory.boundHistoryReplaceState){var F=new _.qE("history.replaceState is not a function",this.getDebugString());_.zj(F)}aa.prototype.replaceState.call(this,p,x)};
_.l.saveAndPush=function(p,x,F,N,h){h=h===void 0?{}:h;F&&(F.csn=_.b0());aa.prototype.saveAndPush.call(this,p,x,F,N,h)};
_.l.getDebugString=function(){var p=[];this.initialized&&p.push("i");this.browserHistory.boundHistoryReplaceState&&p.push("bhr");this.browserHistory.boundHistoryPushState&&p.push("bhs");"replaceState"in this.browserHistory.debugInfo&&p.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&p.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&p.push("ei:"+String(this.entryIndex));return p.join(",")};
_.l.replaceUrl=function(p){this.init(!0);var x=this.browserHistory.getState();this.replaceState(x,iT(p))};
_.l.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.VfC=new _.iE("DESKTOP_HISTORY_MANAGER_TOKEN");var WPk=[10,20,30,40,50,60],MQ=function(){this.currentPartitionIndex=0},HKC=function(p){HJb({mainAppWeb:_.GF(),
survivalSli:{partitionMinute:p,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},m_C=function(p){HJb({mainAppWeb:_.GF(),
survivalSli:{partitionMinute:p,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},orl=function(p){return p.currentPartitionIndex>=0&&p.currentPartitionIndex<WPk.length?WPk[p.currentPartitionIndex]:-1},OKZ=function(p){return p.currentPartitionIndex>0&&p.currentPartitionIndex-1<WPk.length?WPk[p.currentPartitionIndex-1]:-1};
MQ.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var p=OKZ(this);p>0&&m_C(p);p=orl(this);p>0&&HKC(p);jPk(this)}};
var jPk=function(p){var x=orl(p);if(x>0){var F=OKZ(p);F<0&&(F=0);p.intervalId=_.E0.addJob(function(){var N=OKZ(p);N>0&&m_C(N);N=orl(p);N>0&&HKC(N);jPk(p)},3,(x-F)*6E4);
p.currentPartitionIndex+=1}else p.currentPartitionIndex=-1};var LPb=function(){this.skipNextNavigation=!1},PwB=function(p,x,F){if(!x)return!1;
if(p.skipNextNavigation)return p.skipNextNavigation=!1;if(_.r(F,_.Gj))return!1;var N,h,c;if((N=_.r(F,_.Du))==null?0:(h=N.browseEndpointContextSupportedConfigs)==null?0:(c=h.browseEndpointContextMainConfig)==null?0:c.skipConfirmation)return!1;var M;return((M=_.r(x.commandMetadata,_.eq))==null?void 0:M.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
LPb.prototype.showConfirmationDialog=function(p,x){this.navigateParams=x;this.customConfirmationCommand?_.J().resolve(_.RD).resolveCommand(this.customConfirmationCommand):(x={openPopupAction:{popup:{confirmDialogRenderer:{title:_.L1(_.JG("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.L1(_.JG("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.L1(_.JG("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.L1(_.JG("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.Vj.getInstance().triggerAction("yt-open-popup-action",x,p))};
LPb.prototype.cancelPendingNavigation=function(){var p;((p=this.navigateParams)==null?void 0:p.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var TQ6=function(){},RAn=function(p,x,F,N,h,c){F=F===void 0?{}:F;
var M=_.FA.instance,f,K=(f=_.r(x,_.Gj))==null?void 0:f.url;return K?LvE(M,K,F,window.location.href,function(t,d){BQv(p,t,d,!1,!0,F,c,N)},function(){return!1}):Og(M,x,F,window.location.href,KR(x),function(t,d){BQv(p,t,d,!1,!0,F,c,N)},h)},BQv=function(p,x,F,N,h,c,M,f){if(!p.JSC$12151_chunkHandler)if(F.page==="watch")if(h||N){if(_.S("kevlar_continue_playback_without_player_response")){var K;
var t=(K=_.r(f,_.B7))==null?void 0:K.videoId}p.JSC$12151_chunkHandler=new x5l(_.Pt,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:N,previousVideoId:t},tempData:c},M)}else p.JSC$12151_chunkHandler=new ial(_.Pt);else F.page==="shorts"&&h&&!N?p.JSC$12151_chunkHandler=new pJm(_.Pt,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:c},M):p.JSC$12151_chunkHandler=new ImI(M);p.JSC$12151_chunkHandler.processChunk({endpoint:x,data:F});return p.JSC$12151_chunkHandler.ze.promise},
kQv=function(p,x,F,N,h){(F=_.VhD(F))&&BQv(p,x,F,!1,!0,N,void 0,h)};var U_B=function(){this.pendingNavigationPromise=null};
_.l=U_B.prototype;_.l.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.l.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.l.addEventListener=function(){throw Error("xh");};
_.l.dispatchEvent=function(){throw Error("xh");};
_.l.removeEventListener=function(){throw Error("xh");};var iKD=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],DV=function(){_.Sc.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];ILI(this)};
_.E(DV,_.Sc);DV.prototype.verifyUser=function(){var p=ILI(this),x=p.logout;if(!p.sessionChange)return!0;this.dispatchEvent("ytsessionchange");x&&this.dispatchEvent("ytuserinvalid");return!1};
var ILI=function(p){var x=iKD.map(function(h){var c;return(c=_.ax.get(h))!=null?c:""}),F=x.some(function(h,c){return p.sessionCookies&&p.sessionCookies[c]!==""&&h===""}),N=x.some(function(h,c){return p.sessionCookies&&p.sessionCookies[c]!==h});
p.sessionCookies=x;return{logout:F,sessionChange:N}};
DV.prototype.clearTimeout=function(){this.scheduledJobId&&(_.E0.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var qCk=new _.iE("POSTMESSAGE_TUNNEL_TOKEN");var DUz=["/parent_tools","/file_download","/artist_roster"],dUk=[fKI,KnZ,qvk,tD6,ZZl,DIK,dIB,vBB];var f_=new _.iE("NAVIGATION_CONFIRMATION_SERVICE");var $_6="/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(" "),eAb=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
K_=function(p){this.pendingNavigationPromise=null;this.JSC$12169_clientRoot=p;this.logger=null;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new TQ6;this.debugString=p.is;p={"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};_.WZ(_.Vj.getInstance(),p,this.JSC$12169_clientRoot)},hPJ,lan,c3j,aaB,NhK;
_.E(K_,U_B);K_.prototype.reload=function(){_.yK(window.location.href)};
var m5J=function(p){p.currentEndpoint&&_.r(p.currentEndpoint,_.dX)?p.reload():p.currentEndpoint&&p.navigate(p.currentEndpoint,!0,void 0,{disableCache:!0})};
K_.prototype.navigate=function(p,x,F,N,h,c,M){x=x===void 0?!1:x;F=F===void 0?{}:F;N=N===void 0?{}:N;var f=_.J().resolve(f_),K;if(!M&&PwB(f,(K=this.currentEndpoint)!=null?K:void 0,p))return f.showConfirmationDialog(this.JSC$12169_clientRoot.parentElement,{endpoint:p,reload:x,params:F,tempData:N,requestType:h,createScreenConfig:c}),!1;var t=_.GN();_.VG(t,"eocs")||t.parkOrScheduleJob(function(){t.processSignal("eocs")},10,"eor");
M=KR(p);f=N.autonav==="1";K=_.b0();DV.instance||(DV.instance=new DV);var d=DV.instance.verifyUser(),v;if(_.S("enable_dark_theme_only_on_shorts")){var C=document.documentElement.hasAttribute("dark"),X=_.AF(!0)==="USER_INTERFACE_THEME_DARK";if(M==="shorts"){if(!C)if(_.S("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var Q;_.yK((Q=_.r(p==null?void 0:p.commandMetadata,_.eq))==null?void 0:Q.url,void 0,void 0,window.top)}}else{var b;_.yK(_.Ww((b=_.r(p==null?
void 0:p.commandMetadata,_.eq))==null?void 0:b.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.S("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!C){var A;_.yK(_.Ww((A=_.r(p==null?void 0:p.commandMetadata,_.eq))==null?void 0:A.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(X!==C){var Y;_.yK(_.Ww((Y=_.r(p==null?void 0:p.commandMetadata,_.eq))==null?void 0:Y.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(M==="watch"){if(p1I(_.J().resolve(_.H$),
p)&&(d||_.S("fix_miniplayer_navigation_killswitch")))return!1;_.S("block_all_player_prefetch_requests")||(v=WLl(_.la(_.Nq),p,f))}else{var O,Fw=(O=_.r(this.currentEndpoint,_.B7))==null?void 0:O.videoId;Fw&&_.Sa.getInstance().then(function(Jz){Jz&&Jz.set("yt-miniplayer-shown-video-id",Fw)})}v&&(F.frags=v.missingFragments_.join(","));
Q=null;var R;b=(R=_.r(p==null?void 0:p.commandMetadata,_.eq))==null?void 0:R.ignoreNavigation;if(!b)if(_.S("kevlar_command_url")){var ld;Q=(ld=_.r(p==null?void 0:p.commandMetadata,_.eq))==null?void 0:ld.url}else Q=_.X2k(p,F);if(Q&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&Q==this.lastNavigationUrl)return _.uA({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.tf(GZ(),"CANCELLED")}Q&&(this.lastNavigationUrl=Q);aEM();_.zn("IS_HOMEPAGE_COLD",
!1);_.zn("IS_RESULTS_PAGE_COLD",!1);_.zn("IS_WATCH_PAGE_COLD",!1);p.loggingUrls&&p.loggingUrls.forEach(function(Jz){Jz.baseUrl&&_.YS(Jz.baseUrl)});
_.SCp(p,c?c.layer:0)&&_.S("kevlar_flush_logs_on_away_navigation")&&_.Xx();if(vGp(p))return!1;E2D(M,h);if(!Q)return b||_.no(new _.qE("Can't construct url for endpoint",p)),_.tf(GZ(),"FAILURE"),!1;_.MUm();R=p&&_.r(p,_.Du)&&_.r(p,_.Du).browseId.startsWith("UC");F=(ld=_.S("enable_dark_theme_only_on_shorts")&&M==="shorts"?!1:_.uX()&&document.documentElement.hasAttribute("dark")!==_.bX())?{themeRefresh:1}:{};ld&&!_.D5()&&_.AF()==="USER_INTERFACE_THEME_DARK"&&(F.theme="dark");R=ld||x0k(Q)&&!R&&!_.S("kevlar_disable_url_allowlist");
d||(R=!0);if(R||_.sd("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var pp;var Kp=(pp=window.top)==null?void 0:pp.location.href}catch(Jz){var sM;Kp=(sM=Jz)==null?void 0:sM.message}_.no(new _.qE("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Kp}))}p=_.S("kevlar_redirect_on_window_killswitch")?window.top:window;nR(Q);_.yK(_.Ww(Q,F),void 0,void 0,p);_.tf(GZ(),"ABORTED");return!1}_.S("kevlar_early_popup_close")&&_.lA(this.JSC$12169_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12151_chunkHandler=void 0;var np;Kp=KR((np=this.currentEndpoint)!=null?np:void 0);(np=M==="shorts"&&Kp==="shorts")||_.R_E();_.bO(Y8$)("nr",void 0);f&&_.uA({webInfo:{navigationReason:"an"}});p.clickTrackingParams&&(N.itct=p.clickTrackingParams,N.csn=K);qZp(N);N.endpoint=JSON.stringify(p);_.S("enable_unknown_lact_fix_on_html5")&&(_.J().resolve(_.CQ),N.lact=_.U0());_.Q5.isEmpty(N)||_.I9(Q,N);!_.S("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(c=Object.assign({},{layer:0},c,{parentLayer:3}));this.pendingNavigationPromise=c=RAn(this.pageFetcher,p,N,this.currentEndpoint,this.JSC$12169_isNetworkPromiseStale.bind(this),c);c=c.then(this.handleNavigateSuccess.bind(this,c,p,v,N),this.handleNavigateFail.bind(this,c,p));_.fb().navigationFinishPromise=c;x={endpoint:p,pageType:M,url:iT(Q),reload:!!x,noProgressBar:_.S("web_disable_page_navigation_progress")||np};h&&(x.type=h);this.fireEvent("yt-navigate-start",x);v&&kQv(this.pageFetcher,
p,v,N,this.currentEndpoint);return!0};
K_.prototype.JSC$12169_isNetworkPromiseStale=function(p){return p!=this.pendingNavigationPromise};
var F1v=function(p,x,F,N,h){var c=KR(x);x={endpoint:x,pageType:c};h&&(x.errorMessage=h);_.no(F);x.navigationDoneMs=_.wH("nd");x.navigationErrorReason=N;p.fireEvent("yt-navigate-error",x)};
K_.prototype.handleNavigateFail=function(p,x,F){var N=void 0;F instanceof _.mw&&(N=F,rRz(F));if(this.JSC$12169_isNetworkPromiseStale(p))return _.o9(N);_.tf(GZ(),"FAILURE");F1v(this,x,F,"101");return _.o9(F)};
K_.prototype.handleNavigateSuccess=function(p,x,F,N,h){if(this.JSC$12169_isNetworkPromiseStale(p))return _.qt();this.pendingNavigationPromise=null;if(!h)return x=new _.qE("Missing data in response for navigation endpoint",x),_.o9(x);if(h.reload)return window.location.reload(!0),_.qt();F&&(p={},_.Q5.extend(p,_.VhD(F),h),h=p);var c,M;F=(c=h)==null?void 0:(M=c.timing)==null?void 0:M.responseStart;F!=null&&_.wH("srt",F);_.wH("pdc");var f,K;c=(f=h)==null?void 0:(K=f.timing)==null?void 0:K.info;c!=null&&
(f=_.bO(_.Wtk)(c),_.uA(f));_.tf(GZ(),"SUCCESS");NhK(this,x,h,1,N);return _.qt()};
var x0k=function(p){var x=p;_.S("kevlar_no_redirect_to_classic_2_ks")||(x=(new _.R9(p)).getPath());if(x==="/"||x==="/red")return!1;var F=!0;$_6.forEach(function(N){p.indexOf(N)===0&&(F=!1)});
eAb.forEach(function(N){var h=N.url;_.S(N.expFlag)&&p.indexOf(h)===0&&(F=!1)});
return F};
K_.prototype.publishPageData=function(p){this.fireEvent("yt-page-data-fetched",{pageData:p})};
hPJ=function(p,x,F,N,h,c){var M=null;x.page!=="watch"||N?x.filler||_.lA(p.JSC$12169_clientRoot,"yt-stop-old-player",[x]):M=BQv(p.pageFetcher,h,x,F,!1,c,void 0,p.currentEndpoint);if(M)return M.then(p.publishPageData.bind(p,x));p.publishPageData(x);return _.qt()};
lan=function(p,x,F){var N=null;if(!F)return N=new _.qE("Empty data",p.debugString,x);var h=F.response;if(!h)return N;var c={endpointType:KR(x)||"unknown"};h.responseContext?(h=h.responseContext.errors)&&(N=new _.qE("Errors in response context",p.debugString,x,h,c)):N=h.error||h.errorMetadata?new _.qE("Errors in response",p.debugString,x,h.error,h.errorMetadata,c):new _.qE("responseContext missing",p.debugString,x,Object.keys(h).sort().join(","),c);var M,f,K,t;if(p=F==null?void 0:(M=F.response)==null?
void 0:(f=M.responseContext)==null?void 0:(K=f.webResponseContextExtensionData)==null?void 0:(t=K.webResponseContextDebugData)==null?void 0:t.debugErrorMessages)for(M=0;M<p.length;M++);return N};
c3j=function(p){var x,F,N,h;return p==null?void 0:(x=p.response)==null?void 0:(F=x.responseContext)==null?void 0:(N=F.errors)==null?void 0:(h=N.error)==null?void 0:h["0"]};
aaB=function(p,x){var F;if(F=x.url&&!x.url.startsWith("/clip"))F=x.url,F=!_.S("webfe_parse_debug_param_in_resolveurl_service")&&p.searchDebugUrlMatcher.test(F)||nv$(F)?!0:!1;if(F)nv$(x.url)&&_.VL(window.location.href).themeRefresh?p.fireEvent("yt-navigate-redirect",{url:_.$Q(x.url,"themeRefresh")}):x.url&&!hwM(x.url)&&p.fireEvent("yt-navigate-redirect",{url:x.url});else if(x.endpoint){var N,h,c;(F=(N=x.endpoint)==null?void 0:(h=N.commandMetadata)==null?void 0:(c=h.webCommandMetadata)==null?void 0:
c.url)&&!hwM(F)&&p.fireEvent("yt-navigate-redirect",{url:F});F&&x.url&&F!=x.url&&!x.url.match("playnext=1")&&new _.qE("Response url mismatch in response data",p.debugString,F,x.url)}};
_.MyB=function(p,x,F,N,h,c,M,f){c=c===void 0?!1:c;var K=_.J().resolve(f_),t;if(!f&&PwB(K,(t=p.currentEndpoint)!=null?t:void 0,x))return K.showConfirmationDialog(p.JSC$12169_clientRoot.parentElement,{endpoint:x,data:F,navigationType:N,tempData:h,isMiniplayer:c,isForwardHistoryNavigation:M==null?void 0:M.forward}),_.qt();p.pageFetcher.JSC$12151_chunkHandler=void 0;return NhK(p,x,F,N,h,c)};
NhK=function(p,x,F,N,h,c){c=c===void 0?!1:c;p.isMiniplayerExpansion=c;var M=N===2;p.currentEndpoint=x;p.numNavigations++;p.numNavigations&&(e1J.navigationCount=p.numNavigations);_.zn("NUM_NAV",p.numNavigations);var f=lan(p,x,F);if(f)return F1v(p,x,f,"102",c3j(F)),_.o9(f);var K,t,d,v;f=F.rootVe||(F==null?void 0:(K=F.response)==null?void 0:(t=K.responseContext)==null?void 0:(d=t.webResponseContextExtensionData)==null?void 0:(v=d.ytConfigData)==null?void 0:v.rootVisualElementType);!M&&F&&aaB(p,F);var C,
X;K=F==null?void 0:(C=F.response)==null?void 0:(X=C.responseContext)==null?void 0:X.maxAgeSeconds;if(!M&&!isNaN(K)){var Q;_.S("kevlar_use_response_ttl_to_invalidate_cache")?Q=(0,_.Lf)()+1E3*K:_.S("kevlar_always_invalidate_cache")&&(Q=0);isNaN(Q)||(F.expirationTime=Q)}_.S("html5_enable_ssap_entity_id")&&M&&F.playerResponse&&(F.playerResponse.cacheMetadata={isCacheHit:!0});_.la(_.Nq).prefetchCache_.clear();M||F.page!=="watch"||F.type!=="reduced"&&N!==1?N=hPJ(p,F,M,!!c,x,h):(p.publishPageData(F),N=_.qt());
h=N.then(function(){var b=KR(x);b={endpoint:x,pageType:b,fromHistory:M,response:F};b.navigationDoneMs=_.wH("nd");p.fireEvent("yt-navigate-finish",b)});
F.csn&&f&&F.clientSideGrafts&&N.then(p.attachClientSideGrafts.bind(p,F,_.yR()));return h};
_.l=K_.prototype;_.l.attachClientSideGrafts=function(p,x){p.clientSideGrafts&&x&&p.clientSideGrafts.forEach(function(F){if(x&&F){var N=_.fr(F);_.S("combine_ve_grafts")?_.cl().graftServerVe(F,x):_.jz(p.csn,x,N)}})};
_.l.handleSignalActionHistoryBack=function(){window.history.back()};
_.l.handleSignalActionCloseWindow=function(){window.close()};
_.l.handleSignalActionReloadPage=function(){this.reload()};
_.l.handleSignalActionSoftReloadPage=function(){m5J(this)};
_.l.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.l.fireEvent=function(p,x){p=new CustomEvent(p,{bubbles:!0,cancelable:!1,composed:!0,detail:x});this.dispatchEvent(p)};
_.l.addEventListener=function(p,x){this.JSC$12169_clientRoot.addEventListener(p,x)};
_.l.dispatchEvent=function(p){return this.JSC$12169_clientRoot.dispatchEvent(p)};
_.l.removeEventListener=function(p,x){this.JSC$12169_clientRoot.removeEventListener(p,x)};_.eoZ=new XU("browse","h8y2qb");_.pYr=new XU("search","JzFVk");_.xvp=new XU("shorts","xwEKAe");_.Fld=new XU("watchFixie","nmfa2d");_.N9J=new XU("watchFlexy","CF909");_.h7$=new XU("watchGrid","Tm0L3c");_.lo6=new XU("watchLearningJourney","L3n37");var D0l;var faC=function(){return _.m.apply(this,arguments)||this};
_.E(faC,_.m);_.R8.Object.defineProperties(faC,{template:{configurable:!0,enumerable:!0,get:function(){if(D0l===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);D0l=p}p=D0l;return p}}});
var K1D=faC;_.B([_.u(MfI.YtPlayerBehavior),_.k("design:type",Object)],K1D.prototype,"ytPlayerBehavior",void 0);K1D=_.B([_.L({is:"ytd-player"})],K1D);var q3b;var ZuZ;var tyB;var qQ=function(){var p=_.m.apply(this,arguments)||this;p.forceModernIconButton=!1;p.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return p};
_.E(qQ,_.m);qQ.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]]"}}}}}};
qQ.prototype.handleAccountLinkingStateChangedCommand=function(p){if(p=_.r(p,JwI)){var x,F=(x=this.data)==null?void 0:x.providerKey;x=p.providerKey;F&&x&&F.id===x.id&&F.subject===x.subject&&(p=p.linked,p!==void 0&&(this.set("data.linked",p),this.notifyPath("data.linked"),_.S("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(p)))}};
qQ.prototype.setPlayerAccountLinkState=function(p){var x=new Ia$;iuB(x,$0B(new ePm,p));var F=_.Pt();F&&F.getPlayerPromise().then(function(N){N.setAccountLinkState(_.Xc(x.JSC$9906_serializeBinary(),4));N.updateAccountLinkingConfig(p)})};
qQ.prototype.handleShowAccountLinkDialog=function(){var p=this.get("button.buttonRenderer.command");p&&_.tG([p],this.hostElement)};
_.R8.Object.defineProperties(qQ.prototype,{button:{configurable:!0,enumerable:!0,get:function(){if(this.data){if(this.data.linked&&this.data.warningButton&&this.data.isWarning)return this.data.warningButton;if(this.data.linked&&this.data.linkedButton)return this.data.linkedButton;if(!this.data.linked&&this.data.unlinkedButton)return this.data.unlinkedButton}}}});
var ZV=qQ;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ZV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ZV.prototype,"ytRendererBehavior",void 0);_.B([_.u([_.T2.YtActionHandlerBehavior]),_.k("design:type",Object)],ZV.prototype,"actionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ZV.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],ZV.prototype,"overrides",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],ZV.prototype,"forceModernIconButton",void 0);_.B([_.H({value:"bottom"}),_.k("design:type",String)],ZV.prototype,"buttonTooltipPosition",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],ZV.prototype,"forceIconButton",void 0);_.B([_.H(),_.k("design:type",Boolean)],ZV.prototype,"disableTextTransform",void 0);
_.B([_.w("data","data.linked","data.isWarning"),_.k("design:type",Object),_.k("design:paramtypes",[])],ZV.prototype,"button",null);ZV=_.B([_.L({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],ZV);
_.P(ZV,"ytd-account-link-button-renderer",function(){if(tyB!==void 0)return tyB;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return tyB=p},{mode:1});var d0m;var vWK=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],t7=function(){return _.m.apply(this,arguments)||this};
_.E(t7,_.m);t7.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
t7.prototype.updateButtonActiveState=function(){var p=this,x=!!vWK.find(function(F){return p.currentState===F});
this.button&&(this.button.isPressed=x)};
_.R8.Object.defineProperties(t7.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.playlistLoopStateEntity)==null?void 0:p.state)||((x=this.data)==null?void 0:x.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var p=void 0,x;if(this.currentState&&((x=this.data)==null?0:x.states)){x=_.a(this.data.states);for(var F=x.next();!F.done;F=x.next()){F=_.r(F.value,_.WND);var N=void 0;if(((N=F)==null?void 0:N.state)===this.currentState){p=F;break}}}return p}}});
var dc=t7;dc.prototype.updateButtonActiveState=dc.prototype.updateButtonActiveState;_.B([_.u(_.nl),_.k("design:type",Object)],dc.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],dc.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],dc.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.H({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.zwE}),_.k("design:type",Object)],dc.prototype,"playlistLoopStateEntity",void 0);_.B([_.H(),_.k("design:type",Object)],dc.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Boolean)],dc.prototype,"forceIconOnly",void 0);_.B([_.Ff("ytd-button-renderer"),_.k("design:type",_.LX)],dc.prototype,"button",void 0);
_.B([_.w("data","playlistLoopStateEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],dc.prototype,"currentState",null);_.B([_.W("currentButtonStateRenderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dc.prototype,"updateButtonActiveState",null);_.B([_.w("currentState"),_.k("design:type",Object),_.k("design:paramtypes",[])],dc.prototype,"currentButtonStateRenderer",null);
dc=_.B([_.L({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],dc);
_.P(dc,"ytd-playlist-loop-button-renderer",function(){if(d0m!==void 0)return d0m;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return d0m=p},
{mode:1});var J3C;var CfK=_.JG("DOWNLOAD",{},"Download"),S3K=_.JG("DOWNLOADING",{},"Downloading"),r3b=_.JG("DOWNLOADED",{},"Downloaded"),EWb=_.JG("RETRY",{},"Retry"),X1I=function(){var p=_.m.apply(this,arguments)||this;p.forceIconButton=!1;p.forceIconOnly=!1;p.overrides=!1;p.buttonTooltipPosition=!1;p.styleActionButton=!1;p.disableTextTransform=!1;p.downloadProgress=0;p.isDownloadComplete=!1;p.isHidden=!0;p.transferState="TRANSFER_STATE_UNKNOWN";p.isVideoDeletedByUser=!1;p.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return p};
_.E(X1I,_.m);_.l=X1I.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.dataChanged=function(){var p;(p=this.data)!=null&&p.text||(p=_.uP(_.Bi().getState(),this.videoId),this.updateButtonState(p))};
_.l.computeVideoId=function(p){return p};
_.l.showHideButton=function(){this.updateButtonVisibility()};
_.l.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.l.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.l.updateButtonState=function(p){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==S3K||!_.C1(p))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(p){case "TRANSFER_STATE_UNKNOWN":p=CfK;var x="OFFLINE_DOWNLOAD";var F="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":p=EWb;x="OFFLINE_DOWNLOAD";F="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":p=r3b;x="OFFLINE_PIN";F="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":p=
S3K;x="OFFLINE_DOWNLOADING_ZERO";F="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":p=EWb;x="OFFLINE_DOWNLOAD";F="ACTION_RETRY";break;default:p=CfK,x="OFFLINE_DOWNLOAD",F="ACTION_ADD"}this.isVideoDeletedByUser&&(p=CfK,x="OFFLINE_DOWNLOAD",F="ACTION_ADD");var N=Object.assign({},this.data);N.text=_.L1(p);N.tooltip=p;N.icon={iconType:x};N.size="SIZE_DEFAULT";N.style="STYLE_DEFAULT";_.r(N.command,_.lr)&&(_.r(N.command,_.lr).action=F);this.set("data",N)}};
_.l.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var p="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?p="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?p="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?p="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?p="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?p="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(p="OFFLINE_PIN",this.isDownloadComplete=!0);var x;p!==((x=this.data.icon)==null?void 0:x.iconType)&&(x=Object.assign({},this.data),x.text=_.L1(S3K),x.tooltip=S3K,x.icon={iconType:p},_.r(x.command,_.lr)&&(_.r(x.command,_.lr).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",x))}};
var vI=X1I;vI.prototype.updateProgress=vI.prototype.updateProgress;vI.prototype.onTransferStateChanged=vI.prototype.onTransferStateChanged;vI.prototype.showHideButton=vI.prototype.showHideButton;vI.prototype.dataChanged=vI.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],vI.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],vI.prototype,"forceIconButton",void 0);
_.B([_.H(),_.k("design:type",Object)],vI.prototype,"forceIconOnly",void 0);_.B([_.H(),_.k("design:type",Object)],vI.prototype,"overrides",void 0);_.B([_.H(),_.k("design:type",Object)],vI.prototype,"buttonTooltipPosition",void 0);_.B([_.H(),_.k("design:type",Object)],vI.prototype,"styleActionButton",void 0);_.B([_.H(),_.k("design:type",Object)],vI.prototype,"disableTextTransform",void 0);
_.B([_.H({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.k("design:type",String)],vI.prototype,"videoId",void 0);_.B([_.H(),_.k("design:type",Object)],vI.prototype,"data",void 0);_.B([_.H({selector:wb,selectorArgs:["videoId"]}),_.k("design:type",Object)],vI.prototype,"downloadProgress",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],vI.prototype,"isDownloadComplete",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],vI.prototype,"isHidden",void 0);_.B([_.H({selector:_.uP,selectorArgs:["videoId"]}),_.k("design:type",String)],vI.prototype,"transferState",void 0);_.B([_.H({selector:_.TSM,selectorArgs:["videoId"]}),_.k("design:type",Object)],vI.prototype,"isVideoDeletedByUser",void 0);_.B([_.H({selector:oxw,selectorArgs:["videoId"]}),_.k("design:type",Object)],vI.prototype,"offlineabilityState",void 0);
_.B([_.H({value:!0}),_.k("design:type",Boolean)],vI.prototype,"showTooltips",void 0);_.B([_.H({value:!0}),_.k("design:type",Boolean)],vI.prototype,"sendCommandWhenDisabled",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],vI.prototype,"disabled",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vI.prototype,"dataChanged",null);
_.B([_.cT("offlineabilityState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vI.prototype,"showHideButton",null);_.B([_.cT("transferState","isVideoDeletedByUser"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vI.prototype,"onTransferStateChanged",null);_.B([_.cT("downloadProgress"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vI.prototype,"updateProgress",null);
vI=_.B([_.L({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],vI);
_.P(vI,"ytd-download-button-renderer",function(){if(J3C!==void 0)return J3C;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return J3C=p},{mode:2});var gWZ;var Q5l,zPD=function(){if(Q5l!==void 0)return Q5l;var p=document.createElement("template");_.g(p,'\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 Q5l=p};var s5D=_.S("web_button_rework")&&_.nt("BUTTON_REWORK")||_.S("web_button_rework_with_live"),nWB=_.Ud("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,y3l=function(){var p=_.m.apply(this,arguments)||this;p.isPressed=!1;p.forceIconButton=!1;p.forceIconOnly=!1;p.forceModernIconButton=!1;p.alignByText=!1;p.isShorts=!1;p.animatedText=!1;p.shouldAnimate=!1;p.JSC$12207_browserSupportsAnimation=_.S("web_supports_animations_api");p.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};p.onTap=function(){var x;if((x=p.data)==null||!x.defaultNavigationEndpoint){var F;x=!((F=p.data)==null?0:F.isToggled);var N;if((N=p.data)==null||!N.preventAutoToggle){p.shouldAnimate=!1;p.disableTextUpdateJobId&&_.E0.cancelJob(p.disableTextUpdateJobId);p.disableTextUpdateJobId=_.E0.addLowPriorityJob(function(){p.disableTextUpdateJobId=void 0},nWB);
var h;p.set("data.isToggled",!((h=p.data)==null?0:h.isToggled));F=p.getInnertubeIcon();N={toggled:x,actions:{}};F&&(N.actions[F.toLowerCase()]=x);_.hG(p.hostElement,"yt-toggle-button",N)}}};
return p};
_.E(y3l,_.m);_.l=y3l.prototype;_.l.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.E0.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.toggle=function(p){var x;this.set("data.isToggled",p!==void 0?p:!((x=this.data)==null?0:x.isToggled))};
_.l.handleUpdateToggleButtonStateCommand=function(p){if(this.data){p=_.r(p,n9v);var x,F,N,h=(x=this.data)==null?void 0:(F=x.toggleButtonSupportedData)==null?void 0:(N=F.toggleButtonIdData)==null?void 0:N.id;h&&p&&h===(p==null?void 0:p.buttonId)&&this.set("data.isToggled",p.toggled)}};
_.l.handleUpdateToggleButtonTextAction=function(p){if(this.data){p=_.r(p,BSK);var x,F,N,h=(x=this.data)==null?void 0:(F=x.toggleButtonSupportedData)==null?void 0:(N=F.toggleButtonIdData)==null?void 0:N.id;h&&p&&h===(p==null?void 0:p.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=p.defaultNumericalValue,this.set("data.defaultText",p.defaultText),this.set("data.toggledText",p.toggledText),this.shouldAnimate=!1)}};
_.l.getInnertubeIcon=function(){var p=this.data;if(p){var x,F,N=((x=p.defaultIcon)==null?0:x.iconType)?(F=p.defaultIcon)==null?void 0:F.iconType:null,h,c;x=((h=p.toggledIcon)==null?0:h.iconType)?(c=p.toggledIcon)==null?void 0:c.iconType:N;return p.isToggled?x:N}};
_.l.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.R8.Object.defineProperties(y3l.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var p={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$12207_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var x=p.renderer;var F=p.element;var N=p.toggled;var h=p.onTapCallback;var c=p.commandClientArgs;var M=p.overrides;var f=p.forceIcon;var K=p.forceModernIconButton;var t=p.forceDisabled;var d=p.useAnimatedText;var v=p.animatedTextProps;p=bd6(x,N);f=!x.defaultIcon||!f&&x.defaultText?x.defaultIcon?"leading":void 0:K?"icon-only":"icon-only-40";f==="icon-only-40"&&(p.type="text");var C;K=Object;var X=K.assign,Q;a:switch((Q=
x.style)==null?void 0:Q.styleType){case "STYLE_COMPACT_GRAY":Q={size:"S"};break a;default:Q={size:"M"}}var b=!!N;var A=(A=N&&x.toggledText||x.defaultText)?_.S6(A):void 0;d?(d=_.Pi(N&&x.toggledText||x.defaultText))&&v&&!isNaN(Number(v.numberValue))?(v.numberText=d,N&&(v.numberValue+=1),d=v):d=void 0:d=void 0;var Y,O,Fw,R;var ld=(v=((O=N?x.toggledAccessibilityData||((ld=x.toggledText)==null?void 0:ld.accessibility):x.accessibilityData||((Y=x.defaultText)==null?void 0:Y.accessibility))==null?void 0:
(Fw=O.accessibilityData)==null?void 0:Fw.label)||((R=x.accessibility)==null?void 0:R.label))?v:_.Pi(N&&x.toggledText||x.defaultText);t=t===void 0?x.isDisabled:t;F=yXE(x,N,h,F,c);N=nGH(x,N);N!=null&&N.length?(N=_.zT({innertubeCommand:dZZ(N),forceNewState:!0}),N=vtJ(N)?N:void 0):N=void 0;x=X.call(K,{},p,Q,{iconPosition:f},M,{focused:!1,toggled:b,toggleable:!0,formattedButtonText:A,animatedTextProps:d,accessibilityLabel:ld,disabled:t,onTap:F,aTagConfig:N},Rq$((C=x.colorData)==null?void 0:C.basicColorPaletteData));
x.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(x.type="filled");return x}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var p=this.getInnertubeIcon();if(p)return _.eA(p)}}});
var J7=y3l;J7.prototype.resetAnimation=J7.prototype.resetAnimation;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],J7.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],J7.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],J7.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],J7.prototype,"isPressed",void 0);_.B([_.H(),_.k("design:type",Object)],J7.prototype,"forceIconButton",void 0);_.B([_.H(),_.k("design:type",Object)],J7.prototype,"forceIconOnly",void 0);_.B([_.H(),_.k("design:type",Object)],J7.prototype,"forceModernIconButton",void 0);_.B([_.H(),_.k("design:type",Object)],J7.prototype,"alignByText",void 0);_.B([_.H(),_.k("design:type",Object)],J7.prototype,"overrides",void 0);
_.B([_.H(),_.k("design:type",Boolean)],J7.prototype,"disabled",void 0);_.B([_.H(),_.k("design:type",Object)],J7.prototype,"isShorts",void 0);_.B([_.H(),_.k("design:type",Object)],J7.prototype,"buttonTooltipPosition",void 0);_.B([_.H(),_.k("design:type",Object)],J7.prototype,"animatedText",void 0);_.B([_.H(),_.k("design:type",String)],J7.prototype,"textNumberValue",void 0);_.B([_.H({computed:"computeTooltip(data, data.isToggled)"}),_.k("design:type",Object)],J7.prototype,"tooltip",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],J7.prototype,"resetAnimation",null);_.B([_.w("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.k("design:type",Object),_.k("design:paramtypes",[])],J7.prototype,"computedButtonShape",null);_.B([_.w("data.*"),_.k("design:type",Object),_.k("design:paramtypes",[])],J7.prototype,"computedIcon",null);
J7=_.B([_.L({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],J7);s5D&&_.P(J7,"ytd-toggle-button-renderer",zPD,{mode:_.UQ("kevlar_poly_si_batch_j081")?1:2});var oGM=[],OdZ=!1;_.iK(PZw);var buJ,A3J;buJ=_.mO(function(p){function x(t){var d;return _.D(function(v){if(v.nextAddress==1)return(d=!usH(t,f())||!f().enabled)?v.jumpTo(2):_.q(v,Hdd(),3);v.nextAddress!=2&&(d=v.yieldResult);if(d)return v.return();F();setTimeout(function(){M(!1)},1500);
_.JB(v)})}
function F(){setTimeout(function(){M(!0);var t;(t=N.lottieEl)==null||t.goToAndPlay(0)},150)}
var N=_.F6(),h=_.a(_.hu(!1,void 0,"xffAp")),c=h.next().value,M=h.next().value,f=_.GD(p.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.J9(function(){var t,d;((t=p.settings)==null?void 0:(d=t.call(p))==null?void 0:d.uniqueId)==="this is not intended behavior"&&_.no(new _.qE("Smartimation Settings is undefined"))});
_.rx(function(){f().experimentEnabled&&(f().enabled?YCM(x):(M(!1),wCz(x)),_.E_(function(){wCz(x)}))});
_.rx(function(){WCZ(f().timings);f().experimentEnabled&&(G06(f()),_.E_(function(){VUH(f())}))});
var K=_.Kn(function(){return AXd(N,f())},void 0,"sphkxc");
h={};return _.Z("yt-smartimation",{class:_.$L(p.className,"smartimation",(h["smartimation--experiment-enabled"]=function(){return f().experimentEnabled},h["smartimation--active-border"]=c,h["smartimation--enable-masking"]=TOM(),h))},_.Z(_.D9,{cond:function(){return f().experimentEnabled},
then:function(){return _.Z("div",{class:"smartimation__border"},_.Z(_.e6,{className:"smartimation__border-gradient",data:K,animationName:function(){return K().animationConfig.name}}))}}),_.Z("div",{class:"smartimation__content"},p.children))},"x");
_.A36=_.S("web_enable_sink_smartimations")?buJ:PZw;A3J=_.S("web_enable_sink_smartimations")?buJ:_.xp(PZw);buJ.idomCompat=!0;_.S("web_enable_sink_smartimations")?_.o7(A3J,"yt-smartimation",{props:{className:_.G2,settings:_.G2}}):_.kL(_.A36,"yt-smartimation",{propNames:["className","settings"]});var C_=function(){var p=_.m.apply(this,arguments)||this;p.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};p.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};p.shouldEnableSmartimation=!1;return p};
_.E(C_,_.m);C_.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
C_.prototype.onDataChanged=function(){var p,x;this.shouldEnableSmartimation=(((p=this.data)==null?void 0:(x=p.timedAnimationData)==null?void 0:x.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
C_.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var p=_.r(this.data.likeButton,_.ux),x=_.r(this.data.dislikeButton,_.ux);return!!((p==null?0:p.isToggled)||(x==null?0:x.isToggled))};
C_.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]]"}}}}}};
_.R8.Object.defineProperties(C_.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var p,x,F=((p=this.data)==null?void 0:(x=p.timedAnimationData)==null?void 0:x.animationTiming)||[];return{uniqueId:"like-dislike",timings:F,enabled:this.shouldEnableSmartimation,experimentEnabled:F.length>0}}}});
var Sv=C_;Sv.prototype.onDataChanged=Sv.prototype.onDataChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Sv.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Sv.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Sv.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Sv.prototype,"likeButtonOverride",void 0);
_.B([_.H(),_.k("design:type",Object)],Sv.prototype,"dislikeButtonOverride",void 0);_.B([_.w("shouldEnableSmartimation"),_.k("design:type",Object),_.k("design:paramtypes",[])],Sv.prototype,"smartimationSettings",null);_.B([_.W("data"),_.V("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sv.prototype,"onDataChanged",null);Sv=_.B([_.L({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],Sv);
_.P(Sv,"ytd-segmented-like-dislike-button-renderer",function(){if(gWZ!==void 0)return gWZ;var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return gWZ=p},{mode:1});var uRl;var Y3k;(Y3k=document.body)==null||Y3k.setAttribute("rounded-container","");var w1n={};w1n.YtToggleButtonBehavior=[_.T2.YtActionHandlerBehavior,a0.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 p=this.data.isToggled;if(!this.isModal_(p)){if(!this.data.preventAutoToggle){this.toggle();var x={toggled:this.data.isToggled,actions:{}};x.actions[this.buttonIcon]=this.data.isToggled;_.hG(this.hostElement,"yt-toggle-button",x)}x=this.data.defaultServiceEndpoint||null;var F=this.data.toggledServiceEndpoint||null;if(x&&F||x&&this.data.preventAutoToggle)p=p?F:x,x=this.disableCommandHandlerOverride,_.S("killswitch_toggle_button_behavior_resolve_command")||x?_.fc(this.hostElement,
[p]):_.FY(p,this.hostElement),_.hG(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:p})}},
stateChanged_:function(){var p=this.data;if(p){var x=p.isToggled;this._setEndpoint(this.computeEndpoint_(p));this._setServiceEndpoint(this.computeServiceEndpoint_(p));this._setButtonIcon(this.computeButtonIcon_(p,x));this._setButtonText(this.computeButtonText_(p,x));this._setButtonAccessibility(this.computeAccessibility_(p,x));this._setButtonTooltip(this.computeTooltip_(p,x));this._setButtonClass(this.computeButtonClass_(p,x));this._setIconPositionType(this.computeIconPositionType_(p));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=x):this.elements_.button.setAttribute("aria-pressed",x));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=x)}},
shouldSetIconActiveState_:function(){return _.S("kevlar_system_icons")},
toggle:function(p){this.set("data.isToggled",p!==void 0?p:!this.data.isToggled);_.S("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(p){if(p){var x,F;return!!((x=this.data)==null?0:(F=x.toggledServiceEndpoint)==null?0:F.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(p){return p&&p.defaultNavigationEndpoint||null},
computeButtonIcon_:function(p,x){var F=p&&p.defaultIcon?_.eA(p.defaultIcon.iconType):null;p=p&&p.toggledIcon?_.eA(p.toggledIcon.iconType):F;return x?p:F},
handleUpdateToggleButtonStateCommand_:function(p){p=p.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==p.buttonId&&this.toggle(p.toggled)},
computeButtonText_:function(p,x){return p?x&&p.toggledText||p.defaultText||null:null},
computeAccessibility_:function(p,x){return p?(x?this.get("toggledAccessibilityData.accessibilityData",p):this.get("accessibilityData.accessibilityData",p))||p.accessibility||null:null},
computeTooltip_:function(p,x){return p?x&&p.toggledTooltip||p.defaultTooltip||null:null},
computeButtonClass_:function(p,x){if(!p)return"";var F="",N=p.toggledStyle||p.style;if(x=x?N:p.style){x.styleType&&(x=x.styleType);try{F+=x.toLowerCase().replace(/_/g,"-")+" "}catch(h){_.yj(h,x,typeof x),_.no(h)}}if(p=p.size){p.sizeType&&(p=p.sizeType);try{F+=p.toLowerCase().replace(/_/g,"-")+" "}catch(h){_.yj(h,p,typeof p),_.no(h)}}return F.trim()},
computeIconPositionType_:function(p){return p&&p.iconPosition||null},
computeServiceEndpoint_:function(p){var x=p&&p.serviceEndpoint,F=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return x?x:F&&p.command?p.command:null},
handleUpdateToggleButtonTextAction_:function(p){p=p.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==p.buttonId&&(this.set("data.defaultText",p.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",p.toggledText),this.notifyPath("data.toggledText"))}}];_.Ei("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var GfD=_.S("web_button_rework")&&_.nt("BUTTON_REWORK")||_.S("web_button_rework_with_live"),rc=function(){var p=_.m.apply(this,arguments)||this;p.systemIcons=_.S("kevlar_system_icons");p.roundedContainer=!0;return p};
_.E(rc,_.m);rc.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
rc.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var p=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var x={toggled:!!this.data.isToggled,actions:{}};x.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var F,N;x.actions.playlistId=(F=this.data.defaultServiceEndpoint)==null?void 0:(N=F.playlistEditEndpoint)==null?void 0:N.playlistId;_.hG(this.hostElement,"yt-toggle-button",x)}(p=p?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(p)}};
rc.prototype.onYtNavigate=function(p){var x=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(p.detail.endpoint);x&&(p.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(x))};
_.R8.Object.defineProperties(rc,{template:{configurable:!0,enumerable:!0,get:function(){if(uRl===void 0){var p=document.createElement("template");_.g(p,"\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");p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);uRl=p}p=uRl;return p}}});
var EZ=rc;EZ.prototype.onYtNavigate=EZ.prototype.onYtNavigate;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],EZ.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],EZ.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.Oo),_.k("design:type",Object)],EZ.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.u(w1n.YtToggleButtonBehavior),_.k("design:type",Object)],EZ.prototype,"ytToggleButtonBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],EZ.prototype,"data",void 0);_.B([_.H({value:!0}),_.k("design:type",Boolean)],EZ.prototype,"showTooltips",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],EZ.prototype,"systemIcons",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],EZ.prototype,"roundedContainer",void 0);_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],EZ.prototype,"onYtNavigate",null);
EZ=_.B([_.L({is:"ytd-toggle-button-renderer",disableElementRegistration:GfD})],EZ);var VyD;_.Xm=new _.iE("PANEL_CONTROLLER_TOKEN");_.gc=new _.iE("SHEET_CONTROLLER_TOKEN");_.Qc=new _.iE("DIALOG_CONTROLLER_TOKEN");VyD=new _.iE("DIALOG_CONTAINER_TOKEN");var p4z=_.JG("DOWNLOAD",{},"Download"),x_J=_.JG("DOWNLOADING",{},"Downloading"),FPr=_.JG("DOWNLOADED",{},"Downloaded"),NQz=_.JG("RETRY",{},"Retry");var W1C=_.mO(function(p){var x=KPM,F=function(){return""},N=aLH(p.data),h=Mfm(p.data),c=D_M(p.data),M=fLE(p.data);
x=function(){var f=p.data(),K=$UE(f,N(),h(),c(),M()),t=!!f.videoId,d=K.text;return{title:t?d:void 0,tooltip:t?void 0:d,accessibilityText:d,onTap:K.onTap,iconName:K.iconType,style:f.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:K.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:f.buttonSize}};
F={};F=_.$L("ytDownloadButtonViewModelHost",(F.ytDownloadButtonViewModelIsHidden=function(){var f=p.data(),K=M();return f.playlistId||K()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||K()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},F));
return _.Z("download-button-view-model",{class:F},_.Z(_.nV,{data:x}))},"y");
W1C.idomCompat=!0;_.iK(tfm);_.iK(qAp);var m06=_.mO(function(p){var x=p.backgroundLottieRef;var F=p.foregroundLottieRef;var N=p.children;var h=p.wrapperClass;var c=p.disableAnimation;p=function(){return(_.S("web_animated_actions")||_.S("web_animated_actions_v2"))&&!(c==null?0:c())};
return _.Z("yt-animated-action",{class:_.$L("animated-action__container",h)},_.Z("div",{class:"animated-action__content-with-background"},_.Z(_.D9,{cond:p,then:function(){return _.Z(Hum,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:x==null?void 0:x(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(d_E()?"dark":"light")+"_v5.json"}}}})}}),N),_.Z(_.D9,{cond:p,
then:function(){return _.Z(Hum,{lottiePlayerProps:function(){return{animationRef:F==null?void 0:F(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(d_E()?"dark":"light")+"_v4.json"}}}})}}))},"z");
m06.idomCompat=!0;var BQM=_.S("web_enable_sink_animated_actions")?m06:tfm,oWB=_.S("web_enable_sink_animated_actions")?m06:_.xp(tfm),Hum=_.mO(function(p){var x=p.wrapperClass;var F=p.lottieClass;var N=p.lottiePlayerProps;return _.Z("div",{class:_.$L("animated-action__lottie",x),"aria-hidden":"true"},_.Z(_.e6,{className:F,data:N,animationName:function(){return N().animationConfig.name}}))},"A");var vrH={isOpen:!1};var Cwp={isAllowed:!1};var rtp={errorMessage:"",title:"",privacy:"",isDisabled:!0};var X4r={isOpen:!1};var QPH={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var Oul={response:void 0};var sP$=function(p,x){p=p===void 0?Oul:p;switch(x.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},p,{response:x.payload});default:return p}};var j5I={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var nrJ=function(p,x){p=p===void 0?j5I:p;switch(x.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},p,{nextDisabled:x.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},p,{nextCommand:x.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},p,{footerSubmissionData:x.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},p,{isImpersonationValid:x.payload});default:return p}};var L1m={reportFormData:void 0,reportDetailsFormData:void 0};var ytw=function(p,x){p=p===void 0?L1m:p;switch(x.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},p,{reportFormData:x.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},p,{reportDetailsFormData:x.payload});default:return p}};var PfB=void 0;_.S("mweb_enable_redux_store_on_demand")||(PfB=new Tt(bKr()));var TQE=_.mO(function(p){p=_.Vg(p,{themeOverride:void 0,animationRef:{}});var x=p.animatedIconType,F=p.active,N=p.themeOverride,h=p.animationRef;p=p.staticIconFn;var c=_.a(_.hu(void 0,void 0,"P5a72b")),M=c.next().value,f=c.next().value,K=function(){a:{var A=x();var Y=N==null?void 0:N();var O;Y=(Y==null?void 0:Y.useDarkTheme)||((O=_.J().resolve(_.Bw(_.AD)))==null?void 0:O());switch(A){case "LIKE":b:{PfB||(PfB=new Tt(bKr()));if((A=zOM(PfB.getState()))&&A.animationStyle)switch(A.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":A=
uzd({name:Y?"valentines25_heart_dark":"valentines25_heart_light",path:Y?"animated_like_valentines25_heart_dark_v5":"animated_like_valentines25_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":A=uzd({name:Y?"valentines25_broken_heart_dark":"valentines25_broken_heart_light",path:Y?"animated_like_valentines25_broken_heart_dark_v5":"animated_like_valentines25_broken_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":A=
uzd({name:Y?"youtube_20th_birthday_dark":"youtube_20th_birthday_light",path:Y?"animated_like_youtube_20th_birthday_dark":"animated_like_youtube_20th_birthday_light",totalFrames:60});break b}A=void 0}if(A){Y=A;break a}Y="animated_like_icon_"+(Y?"dark_v4":"light_v4");Y={lottiePlayerProps:{animationConfig:{name:Y,path:AtE("animated_like_icon",Y),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":Y={lottiePlayerProps:{animationConfig:{name:Y?
"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(Y?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}Y=void 0}return Y},t=function(){var A,Y;
return(Y=(A=K())==null?void 0:A.lottiePlayerProps.animationConfig.name)!=null?Y:""},d=function(){if(K()){var A=K().lottiePlayerProps.animationConfig.path;
return I7.get(A)||M()}};
c=_.a(_.hu(!1,void 0,"h6xR3c"));var v=c.next().value;c=c.next().value;var C=w4k(c),X=function(){var A=K(),Y,O,Fw;return(Fw=A==null?void 0:(Y=A.lottiePlayerProps.animationConfig)==null?void 0:(O=Y.rendererSettings)==null?void 0:O.className)!=null?Fw:""},Q=void 0,b=void 0;
_.rx(function(){var A=K(),Y=t(),O=d(),Fw=v(),R=F();if(A&&(b!==Y&&(b=Y,Q=R,Y=h(),C.animationConfig=A.lottiePlayerProps.animationConfig,C.animationRef=Y,O&&(C.animationConfig.animationData=O,C.animationConfig.path=void 0),Y=A.lottiePlayerProps.animationConfig.path,!I7.get(Y)&&A.lazyLoad&&Y&&YAZ(Y,f)),!(Fw||A.lazyLoad&&!O))){if(O=!h().lottieEl)R?(Fw=A.totalFrames,C.animationConfig.initialSegment=[Fw-1,Fw]):C.animationConfig.initialSegment=void 0;if(Q!==R&&!O)if(O=h(),R){var ld;(ld=O.lottieEl)==null||
ld.playSegments([0,A.totalFrames],!0)}else{var pp;(pp=O.lottieEl)==null||pp.playSegments([0,1],!0)}Q=R}});
return _.Z("animated-icon",{class:"ytAnimatedIconHost"},_.Z(_.D9,{cond:function(){var A,Y;return!((A=K())==null||!A.lottiePlayerProps.animationConfig.path||((Y=K())==null?0:Y.lazyLoad)&&!d()||v())},
then:function(){return _.Z(_.e6,{data:C,animationName:t,className:X,animationRef:h})},
else:p}))},"B");_.iK(RAH);var ThC,RPC;ThC=_.mO(function(p){var x=_.oc(),F=_.oc(),N=_.oc(),h=_.F6(),c=_.F6(),M=_.F6(),f=_.MN(_.e3,function(){return p.data().stateEntityStoreKey}),K=_.MN(rXJ,function(){var vb,CZ;
return(CZ=(vb=p.data().notificationStateEntityStoreKeys)==null?void 0:vb.subsNotificationStateKey)!=null?CZ:""}),t=function(){return!p.data().enableSubscribeButtonPostClickAnimation},d=_.a(_.hu(0,void 0,"LZz2ld")),v=d.next().value,C=d.next().value;
d=_.a(_.hu(0,void 0,"DTJZzd"));var X=d.next().value,Q=d.next().value;d=_.a(_.hu(!1,void 0,"vYdJ9e"));var b=d.next().value,A=d.next().value;d=_.a(_.hu(!1,void 0,"HsSmhb"));var Y=d.next().value,O=d.next().value,Fw=!1,R="";d=_.a(_.hu(!1,void 0,"p20o0d"));var ld=d.next().value,pp=d.next().value,Kp=function(){O(!0);_.tR(_.E0,function(){O(!1)},1500)};
_.rx(function(){var vb=Y();NG(function(){vb&&!t()&&f()&&eAr(h,c,M)})});
_.rx(function(){var vb=f();NG(function(){if(!t()&&vb){var CZ;((CZ=p.animateWidth)==null?0:CZ.call(p))&&$_E(x.value,!!vb.subscribed,v(),X());vb.subscribed&&vb.key===R&&Kp();vb.key&&(R=vb.key)}})});
d=_.Kn(function(){var vb,CZ,sk,Ov=p.data(),Xj=!((vb=f())==null||!vb.subscribed);vb=!((CZ=p.isOverlay)==null||!CZ.call(p));CZ=b()?x.value:void 0;var AC=(sk=K())==null?void 0:sk.state;sk=ld();ILm(Ov,AC);return Dt({model:Ov,subscribed:Xj,isOverlay:vb,element:CZ,notificationState:AC,disableTextEllipsis:!0,focused:sk})},void 0,"CJfYod");
var sM=function(){var vb;if(!t()&&((vb=p.animateWidth)==null?0:vb.call(p))&&(F==null?0:F.value)&&(N==null?0:N.value)&&!Fw){vb=f();var CZ=_.a((vb==null?0:vb.subscribed)?[F,N]:[N,F]),sk=CZ.next().value;CZ=CZ.next().value;sk=Math.ceil(sk.value.getBoundingClientRect().width);CZ=Math.ceil(CZ.value.getBoundingClientRect().width);C(sk);Q(CZ);$_E(x.value,!(vb==null||!vb.subscribed),sk,CZ);Fw=!0}},np=function(){var vb=_.J().resolve(_.Bw(_.dR));
vb&&pp(vb.isKeyBoardInUse())},Jz=function(){pp(!1)};
_.jl(x,"yt-service-request-sent",function(vb){sM();var CZ=f();CZ&&(vb.detail.endpoint.subscribeEndpoint||vb.detail.endpoint.unsubscribeEndpoint)&&U_d(x.value,!CZ.subscribed,CZ)});
_.mi("yt-player-subscribe",function(vb){var CZ=f();CZ&&vb===p.data().channelId&&U_d(x.value,!0,CZ)});
_.mi("yt-player-unsubscribe",function(vb){var CZ=f();CZ&&vb===p.data().channelId&&U_d(x.value,!1,CZ)});
_.mi("yt-update-subscribe-button-action",function(vb){vb=_.r(vb,Pwd);var CZ=f();CZ&&vb&&vb.channelId===p.data().channelId&&U_d(x.value,!!vb.subscribed,CZ)});
_.J9(function(){x.value&&(x.value.addEventListener("focusin",np),x.value.addEventListener("focusout",Jz));_.vZ(_.E0,function(){sM()});
A(!0);_.E_(function(){x.value&&(x.value.removeEventListener("focusin",np),x.value.removeEventListener("focusout",Jz))})});
var Y$=function(){var vb,CZ,sk;if(sk=!((vb=f())==null||!vb.subscribed))vb=!!p.data().disableNotificationBell,sk=(CZ=K())==null?void 0:CZ.state,sk=!vb&&!!sk;return sk},xB=function(){var vb;
return!((vb=f())==null?0:vb.subscribed)},qI=function(){var vb,CZ;
if(CZ=xB()){CZ=!!p.data().disableNotificationBell;var sk=(vb=K())==null?void 0:vb.state;CZ=!CZ&&!!sk}return CZ},RJ={},Ik={};
return _.Z("yt-subscribe-button-view-model",{class:_.$L("yt-subscribe-button-view-model-wiz",(RJ["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var vb,CZ;return!((vb=f())==null||!vb.subscribed)&&((CZ=p.animateWidth)==null?void 0:CZ.call(p))&&Y()},RJ["yt-subscribe-button-view-model-wiz--hidden"]=function(){var vb;
return!((vb=f())==null?0:vb.subscribed)&&p.data().hideWhenUnsubscribed},RJ)),
el:x},_.Z(oWB,{backgroundLottieRef:h,foregroundLottieRef:c,wrapperClass:_.$L("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(Ik["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var vb;return((vb=p.animateWidth)==null?void 0:vb.call(p))&&Y()},Ik["yt-subscribe-button-view-model-wiz__static-width"]=function(){var vb;
return!((vb=p.animateWidth)==null?0:vb.call(p))},Ik)),
disableAnimation:t},_.Z("div",{el:F,class:"yt-subscribe-button-view-model-wiz__container"},_.Z($w,{data:d,icon:function(){return _.Z(_.D9,{cond:Y$,then:function(){var vb=function(){var CZ;return kQM((CZ=K())==null?void 0:CZ.state)};
return _.Z(_.D9,{cond:function(){return t()||vb()!=="NOTIFICATIONS_NONE"},
then:function(){return _.Z(_.DS,{icon:vb})},
else:function(){return _.Z(TQE,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:M})}})}})},
secondaryIconName:function(){return Y$()?"EXPAND":void 0}}))),_.Z("div",{el:N,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.Z(_.D9,{cond:function(){var vb;return((vb=p.animateWidth)==null?void 0:vb.call(p))&&!t()&&!Fw},
then:function(){return _.Z($w,{data:_.Kn(function(){var vb;return Dt({model:p.data(),subscribed:xB(),isOverlay:!((vb=p.isOverlay)==null||!vb.call(p)),element:x.value,disableTextEllipsis:!0})},void 0,"smNF2c"),
iconName:function(){var vb;return qI()?kQM((vb=K())==null?void 0:vb.state):void 0},
secondaryIconName:function(){return qI()?"EXPAND":void 0}})}})))},"C");
_.Bhj=_.S("web_enable_sink_yt_subscribe_button_view_model")?ThC:RAH;RPC=_.S("web_enable_sink_yt_subscribe_button_view_model")?ThC:_.xp(RAH);ThC.idomCompat=!0;var p1m=new _.iE("RENDERER_STAMPER_OPTIONS_TOKEN");var So;_.CV=new DCj;So=new Map;var vWZ="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),CfZ=["notificationTextRenderer","notificationMultiActionRenderer"],J3z="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
d0B=Myd(function(p){return _.gx(p==null?void 0:p.targetId)}).useUpdatableData;var ty$=0;_.Es.debugName="EjJbCe";var kfv=_.mO(function(p){var x=p.data;var F=_.MN(_.e3,function(){return x().subscriptionStateEntityKey});
return _.Z(_.D9,{cond:function(){var N=x(),h=F();return!N.hideWhenUnsubscribed||(h==null?0:h.subscribed)?_.r(x().button,_.X6):void 0},
then:function(N){return _.Z("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.Z(_.nV,{data:N,buttonOverrides:function(){return{toggled:!x().isPurchasable}}}))}})},"D");var EWr=_.JR({buttonViewModel:_.nV,subscribeButtonViewModel:_.Bhj,downloadButtonViewModel:W1C,toggleButtonViewModel:_.QP,subscribePlusButtonViewModel:kfv});_.iK(gWp);var U0b=_.mO(function(p){return _.Z(_.Es,{data:function(){return p.actionRow().actions}},{buttonViewModel:function(x){var F=x.data;
return _.Z(zp,{isRow:p.isRow,isIconOnlyButton:function(){return Q5k(F())},
useIntrinsicWidth:p.useIntrinsicWidth},_.Z(_.nV,{data:F}))},
subscribeButtonViewModel:function(x){return _.Z(zp,{isRow:p.isRow},_.Z(RPC,{data:x.data,isOverlay:!1,animateWidth:function(){return!p.isRow()}}))},
downloadButtonViewModel:function(x){var F=x.data;return _.Z(zp,{isRow:p.isRow,isIconOnlyButton:function(){return!!F().playlistId}},_.Z(W1C,{data:F}))},
toggleButtonViewModel:function(x){var F=x.data;return _.Z(zp,{isRow:p.isRow,isIconOnlyButton:function(){var N=F();return Q5k(_.r(N.isToggled?N.toggledButtonViewModel:N.defaultButtonViewModel,_.X6))}},_.Z(_.QP,{data:F}))},
subscribePlusButtonViewModel:function(x){return _.Z(zp,{isRow:p.isRow},_.Z(kfv,{data:x.data}))}})},"E"),zp=_.mO(function(p){var x={};
return _.Z("div",{class:_.$L("yt-flexible-actions-view-model-wiz__action",(x["yt-flexible-actions-view-model-wiz__action--row-action"]=p.isRow,x["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=p.useIntrinsicWidth,x["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,x["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=p.isIconOnlyButton,x))},p.children)},"F"),ium=_.mO(function(p){var x=function(){var N;
return((N=p.layout)==null?void 0:N.call(p))===1},F={};
return _.Z("yt-flexible-actions-view-model",{class:_.$L("yt-flexible-actions-view-model-wiz",p.className,(F["yt-flexible-actions-view-model-wiz--inline"]=function(){return!x()},F["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return p.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},F))},_.Z(_.ft,{each:function(){return p.data().actionsRows||[]}},function(N){return _.Z(_.D9,{cond:x,
then:function(){return _.Z("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.Z(U0b,{actionRow:N,isRow:x,useIntrinsicWidth:function(){return!!p.data().respectActionIntrinsicWidth}}))},
else:function(){return _.Z(U0b,{actionRow:N,isRow:x})}})}))},"G"),IaB=_.S("web_enable_sink_lockups_batch")?ium:gWp,$0m=_.S("web_enable_sink_lockups_batch")?ium:_.xp(gWp);
ium.idomCompat=!0;_.o7($0m,"yt-flexible-actions-view-model",{props:{data:_.G2,layout:_.G2,justifyContentOverride:_.G2,className:_.G2}});_.ePI=_.xp(zPp);_.iK(zPp);_.pV6=_.xp(nW$);_.iK(nW$);_.iK(uRk);_.kL(uRk,"segmented-like-dislike-button-view-model",{propNames:["data"]});var HuB=0;_.o7(pVE,"account-link-button-view-model",{props:{data:_.G2,className:_.mJ,setMinWidth:_.mJ,forceIconOnly:_.mJ}});_.Ei("menuRenderer","menuRenderer","ytd-menu-renderer");
var x2v={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"}},
FKk=_.S("web_fix_missing_action_buttons")?100:200,sZ=function(){var p=_.m.apply(this,arguments)||this;p.safeArea=!_.S("kevlar_flex_menu_safe_area_killswitch");p.tonalOverride=!1;p.threeDotSize="M";p.isOverlay=!1;p.useOverlayDark=!1;p.topLevelIconsOnly=!1;p.JSC$12356_lastWidth=0;p.maybeUpdateFlexibleMenu=function(){_.S("web_fix_missing_action_buttons")?requestAnimationFrame(p.maybeUpdateFlexibleMenuImpl):p.maybeUpdateFlexibleMenuImpl()};
p.maybeUpdateFlexibleMenuImpl=function(){var x;if((x=p.data)!=null&&x.flexibleItems){p.maybeFlushDebouncer();x=p.hostElement.clientWidth;var F=x>p.JSC$12356_lastWidth,N,h=((N=p.topLevelButtonsContainer)==null?void 0:N.scrollHeight)||0,c;N=((c=p.flexibleItemButtonsContainer)==null?void 0:c.scrollHeight)||0;c=p.hostElement.scrollHeight>Math.max(h,N)+8;F?(p.resetFlexibleItems(),p.JSC$12356_lastWidth=p.hostElement.clientWidth,p.maybeUpdateFlexibleMenu()):c&&(p.shrinkFlexibleMenu(),p.JSC$12356_lastWidth=
x)}};
p.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){p.onOverflowTap()},
iconPosition:"icon-only",style:p.isOverlay?p.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:p.threeDotSize,state:"active",accessibilityLabel:p.computeAccessibilityLabel(p.data)},p.threeDotButtonOverride)};
p.onOverflowTap=function(){if(p.data.fetchMenuCommand)_.S("web_ytd_menu_renderer_command_resolver_ks")?_.fc(p.hostElement,[p.data.fetchMenuCommand]):_.J().resolve(_.RD).resolveCommand(p.data.fetchMenuCommand,{form:{element:p.hostElement}});else if(p.data.isDisabled&&p.data.disabledCommand)_.FY(p.data.disabledCommand,p.hostElement);else{var x=p.createMenuRendererVe(),F={items:p.items};p.data.menuPopupAccessibility&&(F.menuPopupAccessibility=p.data.menuPopupAccessibility);p.data.footer&&(F.footer=p.data.footer);
x={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:F},veData:x}};_.J().resolve(_.gc).openSheet({openPopupActionCommand:x},p.hostElement)}};
return p};
_.E(sZ,_.m);_.l=sZ.prototype;_.l.updateButtonOverrides=function(){if(!_.S("menu_renderer_label_update_upkillswitch")){var p=_.n(this.hostElement).querySelector("yt-button-view-model");p&&(p.buttonOverrides=this.buttonOverrides)}};
_.l.computeHasItems=function(){var p;return((p=this.topLevelButtonData)==null?void 0:p.length)||this.hasFlexibleItems};
_.l.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.l.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.eV(this.hostElement,{"--ytd-menu-renderer-button-color":_.gX(this.data.iconColor)}))};
_.l.onStamperFinished=function(){this.JSC$12356_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.l.setupFlexibleMenu=function(){var p=this,x;(x=this.data)!=null&&x.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.IC(this.maybeUpdateFlexibleMenu,FKk,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){p.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement)),
this.resetFlexibleItems()):(this.flexAsTopLevelButtons=void 0,this.hostElement.removeEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.removeEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0))};
_.l.maybeFlushDebouncer=function(){if(_.S("web_replace_formatted_with_attributed_string")){var p;(p=this.topLevelButtons)==null||p.forEach(function(F){var N;(F=(N=F.getElementsByTagName("yt-attributed-string"))==null?void 0:N[0])&&Jj$(F)});
var x;(x=this.flexibleItemButtons)==null||x.forEach(function(F){var N;(F=(N=F.getElementsByTagName("yt-attributed-string"))==null?void 0:N[0])&&Jj$(F)})}};
_.l.resetFlexibleItems=function(){var p;if((p=this.data)!=null&&p.flexibleItems){_.S("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var x;this.flexAsTopLevelButtons=(x=this.data.flexibleItems)==null?void 0:x.map(function(F){return _.r(F,_.wfB).topLevelButton});
_.S("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.l.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.l.shrinkFlexibleMenu=function(){var p;(p=this.flexAsTopLevelButtons)!=null&&p.length&&(this.flexAsTopLevelButtons=[].concat(_.se(this.flexAsTopLevelButtons.slice(0,-1))))};
_.l.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:x2v,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:x2v,events:!0}}};
_.l.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.l.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.l.detached=function(){this.icon="yt-icons:more_vert"};
_.l.computeTopLevelButtonData=function(p){if(!p)return[];var x;p=(x=p==null?void 0:p.topLevelButtons)!=null?x:[];return _.Q5.unsafeClone([].concat(_.se(p)))};
_.l.computeItems=function(p,x){if(!p)return[];var F=[];if(x){var N=(p.flexibleItems||[]).map(function(M){return _.r(M,_.wfB)});
N=_.a(N);for(var h=N.next();!h.done;h=N.next())h=h.value,x.includes(h.topLevelButton)||(h=h.menuItem)&&F.push(h)}var c;p=(c=p==null?void 0:p.items)!=null?c:[];return[].concat(_.se(F),_.se(p))};
_.l.computeMenuActive=function(p,x){return p||x};
_.l.onPopupOpened=function(){this.overlayOpen=!0;_.hG(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.l.onPopupClosed=function(){this.overlayOpen=!1;_.hG(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.l.onPopupCanceled=function(){this.overlayOpen=!1;_.hG(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.l.computeAccessibilityLabel=function(p){return this.get("accessibility.accessibilityData.label",p)};
_.l.isHidden=function(p,x){return this.tonalOverride||!p?!0:p.fetchMenuCommand||p.isDisabled&&p.disabledCommand?!1:!(x==null?0:x.length)};
_.l.isModernOverflowHidden=function(p,x){return this.tonalOverride&&p?p.fetchMenuCommand?!1:!(x==null?0:x.length):!0};
_.l.createMenuRendererVe=function(){var p=this.data.trackingParams,x=_.b0(),F=_.yR();return p&&x&&F?(p=_.fr(p),F=_.vt(7591),_.S("combine_ve_grafts")?_.NJ(_.cl(),F,p):_.jz(x,p,F),F):null};
_.R8.Object.defineProperties(sZ.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.flexAsTopLevelButtons)==null||!p.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
sZ.prototype.onPopupCanceled=sZ.prototype.onPopupCanceled;sZ.prototype.onPopupClosed=sZ.prototype.onPopupClosed;sZ.prototype.onPopupOpened=sZ.prototype.onPopupOpened;sZ.prototype.tonalOverrideChanged=sZ.prototype.tonalOverrideChanged;sZ.prototype.resetFlexibleItems=sZ.prototype.resetFlexibleItems;sZ.prototype.setupFlexibleMenu=sZ.prototype.setupFlexibleMenu;sZ.prototype.iconButtonColorChanged=sZ.prototype.iconButtonColorChanged;sZ.prototype.updateButtonOverrides=sZ.prototype.updateButtonOverrides;
_.B([_.u(_.Oo),_.k("design:type",Object)],sZ.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],sZ.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],sZ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.Ff("#button-shape"),_.k("design:type",$6)],sZ.prototype,"buttonShape",void 0);_.B([_.Ff("#button"),_.k("design:type",Object)],sZ.prototype,"button",void 0);
_.B([_.H(),_.k("design:type",Object)],sZ.prototype,"data",void 0);_.B([_.H({computed:"computeTopLevelButtonData(data)"}),_.k("design:type",Array)],sZ.prototype,"topLevelButtonData",void 0);_.B([_.H(),_.k("design:type",Array)],sZ.prototype,"flexAsTopLevelButtons",void 0);_.B([_.H({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.k("design:type",Array)],sZ.prototype,"items",void 0);_.B([_.H({value:"yt-icons:more_vert"}),_.k("design:type",String)],sZ.prototype,"icon",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],sZ.prototype,"safeArea",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.k("design:type",Boolean)],sZ.prototype,"menuActive",void 0);_.B([_.H(),_.k("design:type",Boolean)],sZ.prototype,"menuFocused",void 0);_.B([_.H({value:"bottom"}),_.k("design:type",String)],sZ.prototype,"buttonTooltipPosition",void 0);_.B([_.H(),_.k("design:type",Boolean)],sZ.prototype,"overlayOpen",void 0);
_.B([_.H({value:!0}),_.k("design:type",Boolean)],sZ.prototype,"forceIconButton",void 0);_.B([_.H(),_.k("design:type",Boolean)],sZ.prototype,"styleActionButton",void 0);_.B([_.H(),_.k("design:type",Boolean)],sZ.prototype,"disableTextTransformOnButtons",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],sZ.prototype,"tonalOverride",void 0);_.B([_.H(),_.k("design:type",Object)],sZ.prototype,"threeDotSize",void 0);
_.B([_.H(),_.k("design:type",Object)],sZ.prototype,"threeDotButtonOverride",void 0);_.B([_.H(),_.k("design:type",Object)],sZ.prototype,"isOverlay",void 0);_.B([_.H(),_.k("design:type",Object)],sZ.prototype,"useOverlayDark",void 0);_.B([_.H({computed:"computeButtonOverride(tonalOverride)"}),_.k("design:type",Object)],sZ.prototype,"buttonOverride",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],sZ.prototype,"hasCustomIconColor",void 0);
_.B([_.H({reflectToAttribute:!0}),_.w("flexAsTopLevelButtons"),_.k("design:type",Object),_.k("design:paramtypes",[])],sZ.prototype,"hasFlexibleItems",null);_.B([_.H({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.k("design:type",Boolean)],sZ.prototype,"hasItems",void 0);_.B([_.H(),_.k("design:type",Object)],sZ.prototype,"topLevelIconsOnly",void 0);
_.B([_.W("topLevelIconsOnly"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sZ.prototype,"updateButtonOverrides",null);_.B([_.w("topLevelIconsOnly"),_.k("design:type",Object),_.k("design:paramtypes",[])],sZ.prototype,"buttonOverrides",null);_.B([_.Ff("#top-level-buttons-computed"),_.k("design:type",HTMLElement)],sZ.prototype,"topLevelButtonsContainer",void 0);_.B([_.Nu(".top-level-buttons > *"),_.k("design:type",Array)],sZ.prototype,"topLevelButtons",void 0);
_.B([_.Ff("#flexible-item-buttons"),_.k("design:type",HTMLElement)],sZ.prototype,"flexibleItemButtonsContainer",void 0);_.B([_.Nu("#flexible-item-buttons > *"),_.k("design:type",Array)],sZ.prototype,"flexibleItemButtons",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sZ.prototype,"iconButtonColorChanged",null);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sZ.prototype,"setupFlexibleMenu",null);_.B([_.cT("topLevelIconsOnly"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sZ.prototype,"resetFlexibleItems",null);_.B([_.W("tonalOverride"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sZ.prototype,"tonalOverrideChanged",null);
_.B([_.V("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sZ.prototype,"onPopupOpened",null);_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sZ.prototype,"onPopupClosed",null);_.B([_.V("yt-popup-canceled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sZ.prototype,"onPopupCanceled",null);
_.P(sZ,"ytd-menu-renderer",function(){if(ZuZ===void 0){var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);ZuZ=p}p=ZuZ;return p},{mode:_.UQ("kevlar_poly_si_batch_j030")?1:2});var NCZ;var hQB;_.kw=_.mO(function(p){var x=p.data;var F=function(){if(x().icon)a:{var N={iconName:x().icon};for(var h=_.J().resolve(_.pr),c=_.a([12,24]),M=c.next();!M.done;M=c.next()){var f=M.value;M=Object.assign({},N,{iconStyle:"youtube_fill",iconSize:f});f=Object.assign({},N,{iconStyle:"youtube_outline",iconSize:f});if(h.resolveIcon(M)){N=M;break a}if(h.resolveIcon(f)){N=f;break a}}N=void 0}else N=void 0;return N};
p={};return _.Z("badge-shape",{class:_.$L("badge-shape-wiz",function(){return NCp(x().type)},(p["badge-shape-wiz--overlay"]=function(){return x().isOverlay},p["badge-shape-wiz--ads-include-dot"]=function(){return x().adsIncludeDot},p["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(x().type){case 16:case 17:case 18:var N=!0;
break a;default:N=!1}return N},p["badge-shape-wiz--status-badge"]=function(){a:switch(x().type){case 11:case 12:case 13:case 14:case 15:var N=!0;
break a;default:N=!1}return N},p["badge-shape-wiz--no-text"]=function(){return!x().text},p["badge-shape-wiz--modern"]=function(){return x().modern},p)),
style:_.a4({"background-color":function(){var N;return(N=x().customColors)==null?void 0:N.backgroundColor}}),
role:function(){return x().accessibilityText?"img":void 0},
"aria-label":function(){return x().accessibilityText}},_.Z(_.D9,{cond:function(){return x().animation},
then:function(N){return _.Z(_.e6,{className:"badge-shape-wiz__icon",data:N,animationName:function(){return N().animationConfig.name||""}})}}),_.Z(_.D9,{cond:function(){var N;
return F()&&!((N=x())==null?0:N.animation)},
then:function(){return _.Z("div",{class:"badge-shape-wiz__icon"},_.Z(omE,{data:function(){return F()}}))}}),_.Z("div",{class:"badge-shape-wiz__text"},function(){var N;
return(N=x())==null?void 0:N.text}))},"H");
_.kw.idomCompat=!0;_.o7(_.kw,"badge-shape",{props:{data:_.G2}});var lbn=function(){var p=_.m.apply(this,arguments)||this;p.systemIcons=_.S("kevlar_system_icons");p.animated=_.S("animated_live_badge_icon");p.useBadgeShape=_.S("web_badge_shape_defrag");return p};
_.E(lbn,_.m);_.l=lbn.prototype;_.l.addTooltips=function(){for(var p=_.n(this.hostElement).querySelectorAll(".badge"),x=0,F;F=p[x++];){var N=this.repeatElement.itemForElement(F);F=_.n(F);F.lastChild&&F.lastChild.is==="tp-yt-paper-tooltip"&&F.removeChild(F.lastChild);if(N=N.metadataBadgeRenderer&&N.metadataBadgeRenderer.tooltip){var h=_.OB("tp-yt-paper-tooltip");(0,_.$s)(h).textContent=N;h.setAttribute("position","top");F.appendChild(h)}}};
_.l.badgesChanged=function(){var p=this;_.GN().parkOrScheduleJob(function(){p.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.l.standaloneRoundedBadgeChanged=function(){var p=this.useRoundedBadge?this.useRoundedBadge:void 0;p&&(this.useRoundedBadge=p)};
_.l.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.l.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.l.computeStyle=function(p){_.S("enable_html5_teal_ad_badge")&&p==="BADGE_STYLE_TYPE_AD"&&(p="badge-style-type-ad-alternate");_.S("kevlar_ytb_live_badges")&&p==="BADGE_STYLE_TYPE_LIVE_NOW"&&(p="badge-style-type-live-now-alternate");return p?p.toLowerCase().replace(/_/g,"-"):""};
_.l.computeRole=function(p){return this.computeAriaLabel(p)?"img":"status"};
_.l.computeAriaLabel=function(p){var x;return(p==null?void 0:(x=p.accessibilityData)==null?void 0:x.label)||(p==null?void 0:p.label)};
_.l.computeBadgeShape=function(p){var x;if(p){var F,N=x2M(p.style),h=FKJ(p.style),c=p.label,M=((F=p.accessibilityData)==null?void 0:F.label)||p.label;p=(x=p.icon)==null?void 0:x.iconType;x={type:N,brNzRatingBadgeType:h,text:c,accessibilityText:M,icon:p!=="PREMIUM"?p:void 0}}else x={};return x};
_.l.updateComputedBadges=function(p,x,F){var N=this;(x=x?[x]:F?[F]:void 0)?this.computedBadges=x:this.computedBadges=p==null?void 0:p.filter(function(h){var c;if((c=h.metadataBadgeRenderer)==null?0:c.groups){c=!1;h=_.a(h.metadataBadgeRenderer.groups);for(var M=h.next();!M.done;M=h.next()){M=M.value;var f=void 0;c=c||((f=N.hiddenBadgeGroups)==null?void 0:f.includes(M))}return!c}return!0})};
_.l.useFilledIcons=function(p){return _.S("kevlar_system_icons")&&(p==="AUDIO_BADGE"||p==="CHECK_CIRCLE_THICK"||p==="OFFICIAL_ARTIST_BADGE"||p==="SPONSORSHIP_STAR"||p==="PERSON_RADAR_FILLED"||p==="PERSON_RADAR")};
_.l.computeIcon=function(p){var x,F;p=p==null?void 0:(x=p.metadataBadgeRenderer)==null?void 0:(F=x.icon)==null?void 0:F.iconType;if(p!=="PREMIUM"&&p)return _.eA(p)};
_.l.computeStandaloneBadge=function(p){var x;p=p==null?void 0:(x=p.icon)==null?void 0:x.iconType;return p==="PREMIUM_STANDALONE"||p==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
var n_=lbn;n_.prototype.hiddenBadgeGroupsChanged=n_.prototype.hiddenBadgeGroupsChanged;n_.prototype.standaloneBadgeChanged=n_.prototype.standaloneBadgeChanged;n_.prototype.standaloneRoundedBadgeChanged=n_.prototype.standaloneRoundedBadgeChanged;n_.prototype.badgesChanged=n_.prototype.badgesChanged;_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],n_.prototype,"hidden",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],n_.prototype,"componentBehavior",void 0);
_.B([_.H(),_.k("design:type",Array)],n_.prototype,"badges",void 0);_.B([_.H(),_.k("design:type",Object)],n_.prototype,"topStandaloneBadge",void 0);_.B([_.H(),_.k("design:type",Object)],n_.prototype,"bottomStandaloneBadge",void 0);_.B([_.H(),_.k("design:type",Object)],n_.prototype,"computedBadges",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],n_.prototype,"mediumFontAdBadge",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],n_.prototype,"useRoundedBadge",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],n_.prototype,"largeFontAdBadge",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],n_.prototype,"overlayAd",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],n_.prototype,"overlayPremium",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],n_.prototype,"noDotAdBadge",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],n_.prototype,"collectionTruncate",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],n_.prototype,"isThumbnailBadge",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],n_.prototype,"wrapBadges",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],n_.prototype,"systemIcons",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],n_.prototype,"animated",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],n_.prototype,"useBadgeShape",void 0);_.B([_.H({value:[]}),_.k("design:type",Array)],n_.prototype,"hiddenBadgeGroups",void 0);_.B([_.Ff("#repeat"),_.k("design:type",Zv)],n_.prototype,"repeatElement",void 0);_.B([_.cT("badges"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],n_.prototype,"badgesChanged",null);
_.B([_.cT("useRoundedBadge"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],n_.prototype,"standaloneRoundedBadgeChanged",null);_.B([_.cT("topStandaloneBadge","bottomStandaloneBadge"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],n_.prototype,"standaloneBadgeChanged",null);_.B([_.cT("hiddenBadgeGroups"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],n_.prototype,"hiddenBadgeGroupsChanged",null);
n_=_.B([_.L({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],n_);
var crj=_.kJ()(n_,"ytd-badge-supported-renderer",function(){if(hQB===void 0){var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);hQB=p}p=hQB;return p},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.UQ("kevlar_poly_si_batch_j053")?1:2});var yc,abn=function(){var p=_.m.apply(this,arguments)||this;p.iconType="STAR";p.standardizeIconSize=_.S("kevlar_system_icons");p.mediaHoverOverlayInitialVisibility=_.S("enable_top_landscape_image_button_command_web");p.noBottomMargin=!1;p.thumbnailObjectFit="CONTAIN";p.thumbnailFitHeight=!0;p.actionMap={"yt-mute-ad-action":"handleMuteAd"};return p};
_.E(abn,_.m);_.l=abn.prototype;
_.l.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"},params:{mediumFontAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.image":{id:"media",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.image.thumbnail]]",width:"[[mediaThumbnailWidth]]",fitHeight:"[[thumbnailFitHeight]]",objectFit:"[[thumbnailObjectFit]]"}}}},
"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",
notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.l.dataChanged=function(){this.clickCommand=this.get("data.clickCommand.commandExecutorCommand.commands.0");this.clickCommand||(this.clickCommand=this.get("data.clickCommand"));this.clickCommand&&(this.updateMediaBackgroundImage(),this.ytSparklesClickLocationBehavior.configureClickTargets("root",yc.JSC$12368_DEFAULT_CLICK_LOCATION_BEHAVIOR,yc.JSC$12368_CLICK_LOCATION_ID_MAP))};
_.l.onTap=function(p){if(!_.S("use_on_click_for_desktop_display_ad"))this.onTapOrClick(p)};
_.l.onClick=function(p){if(_.S("use_on_click_for_desktop_display_ad"))this.onTapOrClick(p)};
_.l.onTapOrClick=function(p){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,p,!1)};
_.l.updateMediaBackgroundImage=function(){var p=this.get("data.image.thumbnail.thumbnails");p&&(p=_.Ou(p,0))&&_.eV(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+p+")"})};
_.l.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var p=0;p<this.data.impressionEndpoints.length;p++){var x=this.data.impressionEndpoints[p];x.clickTrackingParams&&delete x.clickTrackingParams;_.S("web_ytd_display_ad_renderer_command_resolver_ks")?_.fc(this.hostElement,[x]):_.J().resolve(_.RD).resolveCommand(x,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var F;((F=this.data)==null?0:F.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,
17)}};
_.l.handleMuteAd=function(){};
_.l.attached=function(){var p=this;_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&p.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.R8.Object.defineProperties(abn.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.titleText)return"";var x;return _.JG("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((x=this.data)==null?void 0:x.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?0:p.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?0:p.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?0:p.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?0:p.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?0:p.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 p;return!((p=this.data)==null||!p.energyIcon)}},
computeSecondaryTextHidden:{configurable:!0,enumerable:!0,get:function(){return!(this.computeRatingHidden&&this.computePriceHidden)}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.layout?this.data.layout.toLowerCase().replace(/_/g,"-"):""}},
mediaThumbnailWidth:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.layout&&this.data.layout==="DISPLAY_AD_LAYOUT_VERTICAL_CAROUSEL_ITEM")return 135}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.layout==="display-ad-layout-top-landscape-image"}}});
var bp=yc=abn;yc.prototype.onClick=yc.prototype.onClick;yc.prototype.onTap=yc.prototype.onTap;yc.prototype.dataChanged=yc.prototype.dataChanged;bp.VERTICAL_CAROUSEL_ITEM_IMAGE_WIDTH=135;
bp.JSC$12368_CLICK_LOCATION_ID_MAP=_.S("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"]]);
bp.JSC$12368_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.S("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"}];_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],bp.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],bp.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u(_.bh),_.k("design:type",Object)],bp.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],bp.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.ih.YtSparklesClickLocationBehavior),_.k("design:type",Object)],bp.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.u(s7),_.k("design:type",Object)],bp.prototype,"ytdActiveViewBehavior",void 0);_.B([_.u([_.T2.YtActionHandlerBehavior]),_.k("design:type",Object)],bp.prototype,"actionHandlerBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],bp.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],bp.prototype,"clickCommand",void 0);_.B([_.H({reflectToAttribute:!0,selector:_.n1}),_.k("design:type",Boolean)],bp.prototype,"miniMode",void 0);_.B([_.H(),_.k("design:type",String)],bp.prototype,"iconType",void 0);_.B([_.w("data.titleText"),_.k("design:type",String),_.k("design:paramtypes",[])],bp.prototype,"titleAriaLabel",null);
_.B([_.w("data.rating"),_.k("design:type",Object),_.k("design:paramtypes",[])],bp.prototype,"getRating",null);_.B([_.w("data.price"),_.k("design:type",Object),_.k("design:paramtypes",[])],bp.prototype,"getPrice",null);_.B([_.w("data.thirdLine"),_.k("design:type",Object),_.k("design:paramtypes",[])],bp.prototype,"getThirdLine",null);_.B([_.w("data.fourthLine"),_.k("design:type",Object),_.k("design:paramtypes",[])],bp.prototype,"getFourthLine",null);
_.B([_.w("data.fifthLine"),_.k("design:type",Object),_.k("design:paramtypes",[])],bp.prototype,"getFifthLine",null);_.B([_.w("getRating"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bp.prototype,"computeRatingHidden",null);_.B([_.w("getPrice"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bp.prototype,"computePriceHidden",null);_.B([_.w("getThirdLine"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bp.prototype,"computeThirdLineHidden",null);
_.B([_.w("getFourthLine"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bp.prototype,"computeFourthLineHidden",null);_.B([_.w("getFifthLine"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bp.prototype,"computeFifthLineHidden",null);_.B([_.H({reflectToAttribute:!0}),_.w("data.energyIcon"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bp.prototype,"hasEnergyIcon",null);
_.B([_.w("computePriceHidden","computeRatingHidden"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bp.prototype,"computeSecondaryTextHidden",null);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],bp.prototype,"standardizeIconSize",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],bp.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],bp.prototype,"noBottomMargin",void 0);
_.B([_.H({reflectToAttribute:!0}),_.w("data.layout"),_.k("design:type",String),_.k("design:paramtypes",[])],bp.prototype,"layout",null);_.B([_.w("data.layout"),_.k("design:type",Object),_.k("design:paramtypes",[])],bp.prototype,"mediaThumbnailWidth",null);_.B([_.w("layout"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bp.prototype,"useRoundedBadge",null);_.B([_.H(),_.k("design:type",String)],bp.prototype,"thumbnailObjectFit",void 0);
_.B([_.H(),_.k("design:type",Object)],bp.prototype,"thumbnailFitHeight",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bp.prototype,"dataChanged",null);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],bp.prototype,"onTap",null);_.B([_.V("click"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],bp.prototype,"onClick",null);
bp=yc=_.B([_.L({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],bp);
_.P(bp,"ytd-display-ad-renderer",function(){if(NCZ!==void 0)return NCZ;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return NCZ=p},{mode:1});var M8v;var D2b;var fbv;var KKZ=function(){var p=_.m.apply(this,arguments)||this;p.DEFAULT_TOOLTIP_OFFSET="10";p.TOOLTIP_OFFSET_NO_BANNER="-8";p.badges=null;p.noEndpoints=!1;p.wrapText=!1;p.forceVerified=!1;p.tooltipPosition="top";p.compactStyle=!1;p.height=0;p.lineHeight=0;return p};
_.E(KKZ,_.m);_.l=KKZ.prototype;_.l.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.l.attached=function(){var p=this;this.observer=new MutationObserver(function(x,F){p.handleResized();F.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.l.detached=function(){this.observer&&this.observer.disconnect()};
_.l.logTooltipEvent=function(){_.S("kevlar_wiz_tooltip_event_killswitch")||WI6||(_.ZS("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),WI6=!0)};
_.l.handleWindowResized=function(){this.handleResized()};
_.l.onChannelNameChanged=function(){this.verified?this.handleResized():(this.textEl&&this.textEl.style.removeProperty("width"),this.textContainerEl&&(this.textContainerEl.style.removeProperty("padding"),this.textContainerEl.style.removeProperty("margin-right"),this.textContainerEl.style.removeProperty("margin-left")))};
_.l.onHeightChanged=function(){if(this.verified){var p=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.sd("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=p:this.textContainerEl.style.marginRight=p}};
_.l.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.sd("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.l.handleResized=function(){var p=this;this.verified&&_.E0.addLowPriorityJob(function(){p.fitBackgroundToText();var x=getComputedStyle(p.hostElement).lineHeight;x&&(x=x.match(/\d+/))&&x.length&&(p.lineHeight=Number(x[0]));p.height=p.lineHeight&&!p.wrapText?p.lineHeight:p.textEl.offsetHeight})};
_.l.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var p=document.createRange(),x=_.n(this.textEl).children;x.length>0?p.selectNodeContents(x[0]):p.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(p.getBoundingClientRect().width)+"px"}};
_.l.computeChannelBadgeStyle=function(p){var x;if((p==null?0:(x=p.runs)==null?0:x.length)&&p.runs[0].textColor)return"--ytd-badge-icon-color:"+_.gX(p.runs[0].textColor)+";"};
_.R8.Object.defineProperties(KKZ.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"?_.L1(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var p=this.get("badges.0.metadataBadgeRenderer.tooltip");if(p)return p}return _.Pi(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
var A7=KKZ;A7.prototype.onLineHeightChanged=A7.prototype.onLineHeightChanged;A7.prototype.onHeightChanged=A7.prototype.onHeightChanged;A7.prototype.onChannelNameChanged=A7.prototype.onChannelNameChanged;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],A7.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],A7.prototype,"badges",void 0);_.B([_.H(),_.k("design:type",Object)],A7.prototype,"channelName",void 0);
_.B([_.H(),_.k("design:type",Object)],A7.prototype,"noEndpoints",void 0);_.B([_.H(),_.k("design:type",Object)],A7.prototype,"wrapText",void 0);_.B([_.H(),_.k("design:type",Object)],A7.prototype,"forceVerified",void 0);_.B([_.H(),_.k("design:type",Object)],A7.prototype,"tooltipPosition",void 0);_.B([_.H(),_.k("design:type",String)],A7.prototype,"tooltip",void 0);_.B([_.H(),_.k("design:type",Boolean)],A7.prototype,"hasChannelArt",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],A7.prototype,"compactStyle",void 0);_.B([_.Ff("#text-container"),_.k("design:type",HTMLElement)],A7.prototype,"textContainerEl",void 0);_.B([_.Ff("#text"),_.k("design:type",Object)],A7.prototype,"textEl",void 0);_.B([_.Ff("#verified-tooltip"),_.k("design:type",HTMLElement)],A7.prototype,"verifiedTooltip",void 0);_.B([_.H(),_.k("design:type",Object)],A7.prototype,"height",void 0);
_.B([_.H(),_.k("design:type",Object)],A7.prototype,"lineHeight",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("badges","forceVerified"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],A7.prototype,"verified",null);_.B([_.w("badges","verified"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],A7.prototype,"hideBadges",null);_.B([_.w("channelName"),_.k("design:type",Object),_.k("design:paramtypes",[])],A7.prototype,"formattedName",null);
_.B([_.w("badges","verified","formattedName"),_.k("design:type",String),_.k("design:paramtypes",[])],A7.prototype,"tooltipText",null);_.B([_.w("hasChannelArt"),_.k("design:type",String),_.k("design:paramtypes",[])],A7.prototype,"tooltipOffset",null);_.B([_.W("channelName"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],A7.prototype,"onChannelNameChanged",null);
_.B([_.W("height"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],A7.prototype,"onHeightChanged",null);_.B([_.W("lineHeight","height"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],A7.prototype,"onLineHeightChanged",null);A7=_.B([_.L({is:"ytd-channel-name",disableElementRegistration:!0})],A7);
_.P(A7,"ytd-channel-name",function(){if(fbv!==void 0)return fbv;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return fbv=p},{mode:_.UQ("kevlar_poly_si_batch_j036")?1:2});var up=function(){var p=_.m.apply(this,arguments)||this;p.standardizeIconSize=_.S("kevlar_system_icons");p.enableModernCommentBadges=_.S("enable_modern_comment_badges");return p};
_.E(up,_.m);up.prototype.basicPaletteChanged=function(){var p;(p=this.data.color)!=null&&p.basicColorPaletteData&&_.S3(this.hostElement,this.data.color.basicColorPaletteData)};
up.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var p,x=this.get("basicColorPaletteData.backgroundColor",(p=this.data)==null?void 0:p.color),F;p=this.get("basicColorPaletteData.foregroundTitleColor",(F=this.data)==null?void 0:F.color);F={};x?(x=_.gX(x),F["--ytd-author-comment-badge-background-color"]=x):(F["--ytd-author-comment-badge-icon-background-color"]="transparent",F["--ytd-author-comment-badge-background-color"]="transparent");p?(x=_.gX(p),F["--ytd-author-comment-badge-name-color"]=
x,F["--ytd-author-comment-badge-icon-color"]=x):F["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(F).length>0&&_.eV(this.hostElement,F)}};
up.prototype.useFilledIcons=function(p){return _.S("kevlar_system_icons")&&(p==="CHECK_CIRCLE_THICK"||p==="OFFICIAL_ARTIST_BADGE")};
_.R8.Object.defineProperties(up.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
var Ye=up;Ye.prototype.colorChanged=Ye.prototype.colorChanged;Ye.prototype.basicPaletteChanged=Ye.prototype.basicPaletteChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ye.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ye.prototype,"standardizeIconSize",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ye.prototype,"enableModernCommentBadges",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("data.authorUnifiedVerified"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ye.prototype,"verified",null);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ye.prototype,"creator",null);
_.B([_.W("data.color.basicColorPaletteData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ye.prototype,"basicPaletteChanged",null);_.B([_.W("data.color"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ye.prototype,"colorChanged",null);Ye=_.B([_.L({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],Ye);
_.P(Ye,"ytd-author-comment-badge-renderer",function(){if(D2b!==void 0)return D2b;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return D2b=p},{mode:1});var qhn;var ZLl=function(){return _.m.apply(this,arguments)||this};
_.E(ZLl,_.m);ZLl.prototype.computeThumbnailWidth=function(p){if(p==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
var wc=ZLl;wc.communityTabWidth=638;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],wc.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],wc.prototype,"data",void 0);_.B([_.H({computed:"computeIcon_(data.icon)"}),_.k("design:type",String)],wc.prototype,"icon",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],wc.prototype,"surface",void 0);
_.B([_.H({reflectToAttribute:!0,value:_.S("enable_shrink_image_size_on_web_posts_singleton")}),_.k("design:type",Boolean)],wc.prototype,"searchSxsUx",void 0);wc=_.B([_.L({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],wc);
_.P(wc,"ytd-backstage-image-renderer",function(){if(qhn!==void 0)return qhn;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return qhn=p},{mode:1});var t8j;var d2j=function(){var p=_.m.apply(this,arguments)||this;p.isLoading=!1;p.selectedItemIndex=-1;return p};
_.E(d2j,_.m);_.l=d2j.prototype;_.l.computeIsChannelOwner=function(p){if(!p)return!0;p=p[0];return!(p&&(p.signinEndpoint||p.selectServiceEndpoint))};
_.l.computeIsImagePoll=function(p){return(p==null?void 0:p.type)==="POLL_TYPE_IMAGE"};
_.l.computeIsTotalVotesDisabled=function(p){return!(p==null?0:p.totalVotes)};
_.l.thumbnailSrc=function(p){var x,F,N,h;return(p==null?0:(x=p.thumbnails)==null?0:(F=x[0])==null?0:F.url)?_.ug((N=p.thumbnails)==null?void 0:(h=N[0])==null?void 0:h.url):void 0};
_.l.progressWidth=function(p){return"width:"+(p?p*100:0)+"%;"};
_.l.textAreaWidth=function(p){return this.isImagePoll?null:"width:"+(p?p*100:0)+"%;"};
_.l.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.l.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var p=this.data.choices,x=0;x<p.length;x++)if(p[x].selected){this.selectedItemIndex=x;break}};
_.l.onPopupClosed=function(p,x){p=Number(this.pollVotes.selected);x.confirmed&&(this.selectChoice(p,!1),_.lA(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.l.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.l.onYtCommentPollRevert=function(p,x){x&&(this.selectChoice(x.selectedChoiceIndex,!0),this.set("data.totalVotes",x.totalVotes))};
_.l.onYtServiceRequestSent=function(p,x){if(x.actions)for(p=0;p<x.actions.length;p++){var F=x.actions[p];_.r(F,E9)&&this.set("data.totalVotes",_.r(F,E9).totalVotes)}};
_.l.onYtServiceRequestCompleted=function(p){var x=this.get("detail.data.actionResults.0.feedback",p);p=this.get("detail.data.actionResults.0.status",p);if(x==="FEEDBACK_DESELECT"||x==="FEEDBACK_SELECT")this.isLoading=!1,p==="STATUS_FAILED"?_.hG(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.l.getEndpoint=function(p,x){return x===p?this.data.choices[x].deselectServiceEndpoint||null:this.data.choices[p].selectServiceEndpoint||null};
_.l.selectChoice=function(p,x){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var F=0;F<this.data.choices.length;F++){var N;if(p===this.selectedItemIndex){var h=!1;var c=N=null}else N=(h=F===p)?this.data.choices[F].voteRatioIfSelected:this.data.choices[F].voteRatioIfNotSelected,c=h?this.data.choices[F].votePercentageIfSelected:this.data.choices[F].votePercentageIfNotSelected;this.set("data.choices."+F+".voteRatio",N);
this.set("data.choices."+F+".votePercentage",c);this.set("data.choices."+F+".selected",h)}x||(this.isLoading=!0,(x=this.getEndpoint(p,this.selectedItemIndex))&&_.fc(this.hostElement,[x]));this.selectedItemIndex=this.selectedItemIndex===p?-1:p};
_.R8.Object.defineProperties(d2j.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
var Gp=d2j;Gp.prototype.onYtServiceRequestCompleted=Gp.prototype.onYtServiceRequestCompleted;Gp.prototype.onYtServiceRequestSent=Gp.prototype.onYtServiceRequestSent;Gp.prototype.onYtCommentPollRevert=Gp.prototype.onYtCommentPollRevert;Gp.prototype.onPopupClosed=Gp.prototype.onPopupClosed;Gp.prototype.dataChanged=Gp.prototype.dataChanged;_.B([_.u(_.TR),_.k("design:type",Object)],Gp.prototype,"paperItemBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Gp.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.Oo),_.k("design:type",Object)],Gp.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Gp.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Gp.prototype,"isLoading",void 0);_.B([_.H({computed:"computeIsChannelOwner(data.choices)"}),_.k("design:type",Boolean)],Gp.prototype,"isChannelOwner",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.k("design:type",Boolean)],Gp.prototype,"isImagePoll",void 0);_.B([_.H({computed:"computeIsTotalVotesDisabled(data)"}),_.k("design:type",Boolean)],Gp.prototype,"isTotalVotesDisabled",void 0);_.B([_.H(),_.k("design:type",Object)],Gp.prototype,"previousPollInfo",void 0);_.B([_.H(),_.k("design:type",Object)],Gp.prototype,"selectedItemIndex",void 0);_.B([_.Ff("#poll-votes"),_.k("design:type",Object)],Gp.prototype,"pollVotes",void 0);
_.B([_.w("isChannelOwner"),_.k("design:type",Object),_.k("design:paramtypes",[])],Gp.prototype,"endpointStyle",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Gp.prototype,"dataChanged",null);_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],Gp.prototype,"onPopupClosed",null);
_.B([_.V("yt-comment-poll-revert"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],Gp.prototype,"onYtCommentPollRevert",null);_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],Gp.prototype,"onYtServiceRequestSent",null);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Gp.prototype,"onYtServiceRequestCompleted",null);Gp=_.B([_.L({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Gp);
_.P(Gp,"ytd-backstage-poll-renderer",function(){if(t8j!==void 0)return t8j;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return t8j=p},{mode:2});var vRv;var Jrv={autoplay:!1,loop:!1},C_K={simpleText:""},ShD=function(){var p=_.m.apply(this,arguments)||this;p.isLoading=!1;p.usesPanelLockup=!1;p.selectedItemIndex=-1;p.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},Jrv,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});p.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},Jrv,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});p.correctnessAnimationProps=[];p.correctnessAnimationRefs=[];return p};
_.E(ShD,_.m);_.l=ShD.prototype;_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.l.computeIsChannelOwner=function(p){if(!p)return!0;p=p[0];return!(p&&(p.signinEndpoint||p.selectServiceEndpoint))};
_.l.computeIsTotalVotesDisabled=function(p){return!(p==null?0:p.totalVotes)};
_.l.computeIsImageQuiz=function(p){return(p==null?void 0:p.type)==="POLL_TYPE_IMAGE"};
_.l.onExplanationChanged=function(){this.expander.reset()};
_.l.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var p=this.data.choices;if(p){this.maybeInitializeQuizLotties(p);for(var x=0;x<p.length;x++)if(p[x].isSelected||this.isChannelOwner&&p[x].isCorrect){this.selectedItemIndex=x;return}this.selectedItemIndex=-1}}};
_.l.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var p=this.selectedItemIndex,x=Number(this.quizVotes.selected);this.selectChoice(x);this.sendVoteAction(x,p);this.quizVotes.selected=-1;var F;p=!((F=this.data)==null?0:F.enableAnimation);this.maybePlayAnswerAnimations(p)}};
_.l.onYtCommentPollRevert=function(p,x){x&&(this.selectChoice(x.selectedChoiceIndex),this.set("data.totalVotes",x.totalVotes))};
_.l.onYtServiceRequestSent=function(p,x){if(x.actions)for(p=_.a(x.actions),x=p.next();!x.done;x=p.next())(x=_.r(x.value,E9))&&this.set("data.totalVotes",x.totalVotes)};
_.l.onYtServiceRequestCompleted=function(p){var x=this.get("detail.data.actionResults.0.feedback",p);p=this.get("detail.data.actionResults.0.status",p);if(x==="FEEDBACK_DESELECT"||x==="FEEDBACK_SELECT")this.isLoading=!1,p==="STATUS_FAILED"?_.hG(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.l.getAnimationPropsForChoiceIndex=function(p,x){return x[p]};
_.l.maybePlayAnswerAnimations=function(p){p=p===void 0?!1:p;var x;if((x=this.data)!=null&&x.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){x=_.a(this.correctnessAnimationRefs);for(var F=x.next();!F.done;F=x.next()){var N=void 0,h=void 0;(N=F.value)==null||(h=N.lottieEl)==null||h.stop()}if(!(this.selectedItemIndex<0)){x=0;p&&(x=this.isCorrect?37:25);var c,M;(c=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(M=c.lottieEl)==null||M.goToAndPlay(p?x:0,!0);if(!(this.isCorrect||
(c=this.data.choices.findIndex(function(d){return d.isCorrect}),c<0))){var f,K;
(K=(f=this.correctnessAnimationRefs[c])==null?void 0:f.lottieEl)==null||K.goToAndPlay(37,!0);var t;f=(t=this.fadeContainers)==null?void 0:t.item(c);!p&&f&&this.fadeIn(f)}}}};
_.l.thumbnailSrc=function(p){var x,F,N,h;return(p==null?0:(x=p.thumbnails)==null?0:(F=x[0])==null?0:F.url)?_.ug((N=p.thumbnails)==null?void 0:(h=N[0])==null?void 0:h.url):void 0};
_.l.a11yVotedText=function(p,x){var F,N,h=((F=this.data)==null?void 0:(N=F.correctVotedText)==null?void 0:N.simpleText)||"",c,M;F=((c=this.data)==null?void 0:(M=c.votedText)==null?void 0:M.simpleText)||"";if(!x)return"";var f,K;if((f=this.data)==null?0:(K=f.choices)==null?0:K[p].isCorrect)return h;var t,d;return((t=this.data)==null?0:(d=t.choices)==null?0:d[p].isSelected)?F:""};
_.l.getEndpoint=function(p,x){return x===p?this.data.choices[p].deselectServiceEndpoint||null:this.data.choices[p].selectServiceEndpoint||null};
_.l.sendVoteAction=function(p,x){if(p=this.getEndpoint(p,x))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(p)};
_.l.selectChoice=function(p){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var x=0;x<this.data.choices.length;x++)this.set("data.choices."+x+".isSelected",p===this.selectedItemIndex?!1:x===p);this.selectedItemIndex=this.selectedItemIndex===p?-1:p};
_.l.maybeInitializeQuizLotties=function(p){var x=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=p.map(function(F){return{animationConfig:F.isCorrect?x.baseCorrectLottiePlayerAnimationConfig:x.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){x.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(F){return F.animationRef||{}})};
_.l.fadeIn=function(p){p.classList.add("fade-in");_.TT(_.E0,function(){p.classList.remove("fade-in")},900)};
_.R8.Object.defineProperties(ShD.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.Pi(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 p,x;return((p=this.data)==null?void 0:(x=p.choices)==null?void 0:x.some(function(F){return F.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null||!p.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?C_K:this.data.choices[this.selectedItemIndex].explanation||C_K}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null||!p.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
var Vc=ShD;Vc.prototype.onYtServiceRequestCompleted=Vc.prototype.onYtServiceRequestCompleted;Vc.prototype.onYtServiceRequestSent=Vc.prototype.onYtServiceRequestSent;Vc.prototype.onYtCommentPollRevert=Vc.prototype.onYtCommentPollRevert;Vc.prototype.dataChanged=Vc.prototype.dataChanged;Vc.prototype.onExplanationChanged=Vc.prototype.onExplanationChanged;_.B([_.u(_.TR),_.k("design:type",Object)],Vc.prototype,"paperItemBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Vc.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Vc.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.o3.YtTaskEmitterBehavior),_.k("design:type",Object)],Vc.prototype,"ytTaskEmitterBehavior",void 0);_.B([_.u(_.Oo),_.k("design:type",Object)],Vc.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Vc.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],Vc.prototype,"isLoading",void 0);_.B([_.H(),_.k("design:type",Object)],Vc.prototype,"usesPanelLockup",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.k("design:type",Boolean)],Vc.prototype,"isChannelOwner",void 0);_.B([_.H({computed:"computeIsTotalVotesDisabled(data)"}),_.k("design:type",Boolean)],Vc.prototype,"isTotalVotesDisabled",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.k("design:type",Boolean)],Vc.prototype,"isImageQuiz",void 0);_.B([_.H(),_.k("design:type",Object)],Vc.prototype,"previousQuizInfo",void 0);_.B([_.H(),_.k("design:type",Object)],Vc.prototype,"selectedItemIndex",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("data","usesPanelLockup"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Vc.prototype,"shouldUseModernUi",null);
_.B([_.Nu(".fade-container"),_.k("design:type",Object)],Vc.prototype,"fadeContainers",void 0);_.B([_.H(),_.k("design:type",Array)],Vc.prototype,"correctnessAnimationProps",void 0);_.B([_.w("explanation","showCorrectAnswer"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Vc.prototype,"showExplanation",null);_.B([_.w("isChannelOwner","isAttempted"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Vc.prototype,"showCorrectAnswer",null);
_.B([_.w("isChannelOwner","isAttempted","data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Vc.prototype,"isQuizAnsweringDisabled",null);_.B([_.w("isQuizAnsweringDisabled"),_.k("design:type",Object),_.k("design:paramtypes",[])],Vc.prototype,"endpointStyle",null);_.B([_.w("data","selectedItemIndex"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Vc.prototype,"isAttempted",null);
_.B([_.w("data","selectedItemIndex"),_.k("design:type",Object),_.k("design:paramtypes",[])],Vc.prototype,"explanation",null);_.B([_.w("data","selectedItemIndex"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Vc.prototype,"isCorrect",null);_.B([_.Ff("ytd-expander"),_.k("design:type",Object)],Vc.prototype,"expander",void 0);_.B([_.Ff("#quiz-votes"),_.k("design:type",Object)],Vc.prototype,"quizVotes",void 0);
_.B([_.W("explanation"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Vc.prototype,"onExplanationChanged",null);_.B([_.W("data","isChannelOwner"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Vc.prototype,"dataChanged",null);_.B([_.V("yt-comment-quiz-revert"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],Vc.prototype,"onYtCommentPollRevert",null);
_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],Vc.prototype,"onYtServiceRequestSent",null);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Vc.prototype,"onYtServiceRequestCompleted",null);Vc=_.B([_.L({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],Vc);
_.P(Vc,"ytd-backstage-quiz-renderer",function(){if(vRv!==void 0)return vRv;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return vRv=p},{mode:1});var rrb;var ERn=function(){return _.m.apply(this,arguments)||this};
_.E(ERn,_.m);var WI=ERn;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],WI.prototype,"data",void 0);WI=_.B([_.L({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],WI);
_.P(WI,"ytd-post-uploaded-video-renderer",function(){if(rrb!==void 0)return rrb;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return rrb=p},{mode:1});var XVK;var gRm=function(){return _.m.apply(this,arguments)||this};
_.E(gRm,_.m);gRm.prototype.useFilledIcons=function(p){return p==="SPONSORSHIP_STAR"};
var HI=gRm;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],HI.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],HI.prototype,"data",void 0);HI=_.B([_.L({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],HI);
_.P(HI,"ytd-sponsors-only-badge-renderer",function(){if(XVK!==void 0)return XVK;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return XVK=p},{mode:1});var QeI;var zQn=function(){return _.m.apply(this,arguments)||this};
_.E(zQn,_.m);var m$=zQn;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],m$.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],m$.prototype,"data",void 0);m$=_.B([_.L({is:"ytd-child-video-renderer",disableElementRegistration:!0})],m$);
_.P(m$,"ytd-child-video-renderer",function(){if(QeI!==void 0)return QeI;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return QeI=p},{mode:1});var seK;var nRZ;var yrj=function(){var p=_.m.apply(this,arguments)||this;p.size=0;p.enableWebModernCollectionsV2=_.S("web_modern_collections_v2");p.fallbackImageSize={height:void 0,width:9999};p.webModernCollections=!1;return p};
_.E(yrj,_.m);_.l=yrj.prototype;_.l.computeBlurredImageSize=function(p){return p?{height:p*2,width:p*2}:this.fallbackImageSize};
_.l.computeImageSize=function(p){return p?{height:p,width:p}:this.fallbackImageSize};
_.l.computeObjectFit=function(p){return p?"FILL":"CONTAIN"};
_.l.computePreserve=function(p){return p?!0:!1};
_.l.setBackground=function(){var p,x;_.S("web_modern_collections_v2")&&((p=this.data)==null?0:(x=p.thumbnail)==null?0:x.sampledThumbnailColor)&&(p=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+p.red+","+p.green+","+p.blue+",1)")};
var oa=yrj;oa.prototype.setBackground=oa.prototype.setBackground;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],oa.prototype,"ytRendererBehavior",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],oa.prototype,"watchFeedThumbnail",void 0);_.B([_.H(),_.k("design:type",Object)],oa.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],oa.prototype,"size",void 0);
_.B([_.H({computed:"computeBlurredImageSize(size)"}),_.k("design:type",Object)],oa.prototype,"blurredImageSize",void 0);_.B([_.H({computed:"computeImageSize(size)"}),_.k("design:type",Object)],oa.prototype,"imageSize",void 0);_.B([_.H({computed:"computePreserve(size)"}),_.k("design:type",String)],oa.prototype,"preserve",void 0);_.B([_.H({computed:"computeObjectFit(size)"}),_.k("design:type",String)],oa.prototype,"objectFit",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],oa.prototype,"enableWebModernCollectionsV2",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],oa.prototype,"webModernCollections",void 0);_.B([_.W("data.thumbnail.sampledThumbnailColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],oa.prototype,"setBackground",null);oa=_.B([_.L({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],oa);
_.P(oa,"ytd-playlist-custom-thumbnail-renderer",function(){if(nRZ!==void 0)return nRZ;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return nRZ=p},{mode:1});var bLn;var Arm=function(){return _.m.apply(this,arguments)||this};
_.E(Arm,_.m);var OZ=Arm;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],OZ.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],OZ.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Number)],OZ.prototype,"width",void 0);OZ=_.B([_.L({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],OZ);
_.P(OZ,"ytd-playlist-video-thumbnail-renderer",function(){if(bLn!==void 0)return bLn;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return bLn=p},{mode:1});var uWl;var YhI=function(){return _.m.apply(this,arguments)||this};
_.E(YhI,_.m);var jv=YhI;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],jv.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],jv.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Number)],jv.prototype,"width",void 0);jv=_.B([_.L({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],jv);
_.P(jv,"ytd-show-custom-thumbnail-renderer",function(){if(uWl!==void 0)return uWl;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return uWl=p},{mode:1});var wVb;var L_=function(){return _.m.apply(this,arguments)||this};
_.E(L_,_.m);L_.prototype.useFilledIcons=function(p){return p==="MUSIC"||p==="COURSE"};
L_.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=zF(this.overlayColor,"0.8");else if(this.overlayColor){var p=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+p.red+","+p.green+","+p.blue+",0.8)"}};
_.R8.Object.defineProperties(L_.prototype,{overlayStyle:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.text||!this.data.icon)}},
overlayTextStyle:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.text||this.data.icon)}}});
var PI=L_;PI.prototype.overlayColorChanged=PI.prototype.overlayColorChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],PI.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],PI.prototype,"overlayColor",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("data.icon","data.text"),_.k("design:type",Object),_.k("design:paramtypes",[])],PI.prototype,"overlayStyle",null);
_.B([_.H({reflectToAttribute:!0}),_.w("data.icon","data.text"),_.k("design:type",Object),_.k("design:paramtypes",[])],PI.prototype,"overlayTextStyle",null);_.B([_.W("overlayColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PI.prototype,"overlayColorChanged",null);PI=_.B([_.L({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],PI);
_.P(PI,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(wVb!==void 0)return wVb;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return wVb=p},{mode:1});var GP6;var V8n=function(){var p=_.m.apply(this,arguments)||this;p.active=!1;return p};
_.E(V8n,_.m);V8n.prototype.computeIsSpinnerHidden=function(p){return(p==null?void 0:p.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
V8n.prototype.computeOverlayIcon=function(p){return(p==null?void 0:p.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(p==null?void 0:p.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
var Tp=V8n;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Tp.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Tp.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Tp.prototype,"active",void 0);Tp=_.B([_.L({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],Tp);
_.P(Tp,"ytd-thumbnail-overlay-downloading-renderer",function(){if(GP6!==void 0)return GP6;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return GP6=p},{mode:1});var WKv;var HLv=function(){return _.m.apply(this,arguments)||this};
_.E(HLv,_.m);_.R8.Object.defineProperties(HLv.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
var BI=HLv;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],BI.prototype,"data",void 0);_.B([_.w("data.text"),_.k("design:type",Object),_.k("design:paramtypes",[])],BI.prototype,"text",null);BI=_.B([_.L({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],BI);
_.P(BI,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(WKv!==void 0)return WKv;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return WKv=p},{mode:1});var m2I,oRZ=function(){if(m2I!==void 0)return m2I;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return m2I=p};var OLZ=function(){return _.m.apply(this,arguments)||this};
_.E(OLZ,_.m);_.R8.Object.defineProperties(OLZ,{template:{configurable:!0,enumerable:!0,get:function(){return oRZ()}}});
var jeB=OLZ;_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],jeB.prototype,"animateEqualizer",void 0);jeB=_.B([_.L({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],jeB);_.kJ()(jeB,"ytd-thumbnail-overlay-equalizer",function(){return oRZ()},{allowedProps:["animateEqualizer"],
mode:1});var LKD;var P_C=function(){var p=_.m.apply(this,arguments)||this;p.nowPlayingBadge=_.S("web_now_playing_badge");p.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return p};
_.E(P_C,_.m);P_C.prototype.activeChanged=function(){var p=this;_.S("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.jB(this,function(){_.hG(p.hostElement,"yt-playlist-lockup-now-playing-active",p)})};
P_C.prototype.onMiniplayerPlayStateChanged=function(p){var x,F=(x=_.r(_.fb().currentEndpoint,_.B7))==null?void 0:x.videoId;this.isVideoPlaying=p&&(_.S("web_limit_now_playing_animation_killswitch")||this.videoId===F)};
var Ra=P_C;Ra.prototype.activeChanged=Ra.prototype.activeChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ra.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Ra.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ra.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Boolean)],Ra.prototype,"isVideoPlaying",void 0);_.B([_.H(),_.k("design:type",String)],Ra.prototype,"videoId",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ra.prototype,"equalizerOnly",void 0);_.B([_.H(),_.k("design:type",Boolean)],Ra.prototype,"isActive",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ra.prototype,"nowPlayingBadge",void 0);_.B([_.W("isActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ra.prototype,"activeChanged",null);
Ra=_.B([_.L({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],Ra);
_.P(Ra,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(LKD!==void 0)return LKD;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return LKD=p},{mode:1});var TCl;var BCK=function(){return _.m.apply(this,arguments)||this};
_.E(BCK,_.m);var ke=BCK;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ke.prototype,"data",void 0);ke=_.B([_.L({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],ke);
_.P(ke,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(TCl!==void 0)return TCl;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return TCl=p},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var RQD;var kPl=function(){return _.m.apply(this,arguments)||this};
_.E(kPl,_.m);kPl.prototype.onDurationChanged=function(){var p,x;_.n(this.hostElement).querySelector("#progress").style.width=((x=(p=this.data)==null?void 0:p.percentDurationWatched)!=null?x:0)+"%"};
var UZ=kPl;UZ.prototype.onDurationChanged=UZ.prototype.onDurationChanged;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],UZ.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],UZ.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],UZ.prototype,"isLive",void 0);_.B([_.W("data.percentDurationWatched"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],UZ.prototype,"onDurationChanged",null);
UZ=_.B([_.L({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],UZ);
_.P(UZ,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(RQD!==void 0)return RQD;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return RQD=p},{mode:1});var U2I;var iLB=function(){var p=_.m.apply(this,arguments)||this;p.bottomPanel=!1;p.richGridOverlay=!1;p.watchFeedOverlay=!1;p.isCompact=!1;return p};
_.E(iLB,_.m);iLB.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.R8.Object.defineProperties(iLB.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.data)==null?void 0:(x=p.icon)==null?void 0:x.iconType)==="PLAY_ALL"&&_.S("kevlar_system_icons")}}});
var ip=iLB;ip.prototype.widthChanged=ip.prototype.widthChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ip.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ip.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Number)],ip.prototype,"width",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],ip.prototype,"bottomPanel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],ip.prototype,"richGridOverlay",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],ip.prototype,"watchFeedOverlay",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],ip.prototype,"isCompact",void 0);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ip.prototype,"isIconFilled",null);_.B([_.W("width","watchFeedOverlay"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ip.prototype,"widthChanged",null);
ip=_.B([_.L({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],ip);
_.P(ip,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(U2I!==void 0)return U2I;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return U2I=p},{mode:1});var IbZ;var $2C=["CLIP","SHORTS"],eQJ=function(){var p=_.m.apply(this,arguments)||this;p.animated=_.S("animated_live_badge_icon");p.hasIcon=!1;p.updateTimerIntervalId=0;p.timeSinceLive=0;return p};
_.E(eQJ,_.m);_.l=eQJ.prototype;_.l.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.l.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.l.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.l.hasIconOrText=function(){var p,x;return!!(((p=this.data)==null?0:p.icon)||((x=this.data)==null?0:x.text))};
_.l.initializeLiveBadgeTimer=function(){var p=this,x,F=(x=this.liveBadgeData)==null?void 0:x.startTimestampSec;if(F&&this.canShowLiveBadgeTimer()){var N;x=Number((N=this.liveBadgeData)==null?void 0:N.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(F);this.updateTimerIntervalId=_.pf(function(){p.canShowLiveBadgeTimer()?p.timeSinceLive++:(p.timeSinceLive=0,window.clearInterval(p.updateTimerIntervalId))},x)}else this.timeSinceLive=0};
_.l.canShowLiveBadgeTimer=function(){var p=Date.now(),x,F;return p<(Number((x=this.liveBadgeData)==null?void 0:x.endTimestampSec)-1)*1E3&&p>Number((F=this.liveBadgeData)==null?void 0:F.startTimestampSec)*1E3};
_.R8.Object.defineProperties(eQJ.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var p=this.data;var x=this.timeSinceLive;var F,N,h,c;a:{var M=p.style;if(M===void 0)M=16;else switch(M){case "LIVE":M=17;break a;default:M=16}}x={type:M,text:x?ibp({seconds:x}):_.Pi(p.text),accessibilityText:(F=p.text)==null?void 0:(N=F.accessibility)==null?void 0:(h=N.accessibilityData)==null?void 0:h.label,icon:(c=p.icon)==null?void 0:c.iconType}}else x={};return x}},
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 p;return(p=this.data)==null?void 0:p.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 $2C.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
var Ia=eQJ;Ia.prototype.initializeLiveBadgeTimer=Ia.prototype.initializeLiveBadgeTimer;Ia.prototype.dataChanged=Ia.prototype.dataChanged;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Ia.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ia.prototype,"data",void 0);_.B([_.H({computed:"computeIcon_(data.icon)"}),_.k("design:type",String)],Ia.prototype,"icon",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ia.prototype,"animated",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.k("design:type",Boolean)],Ia.prototype,"hideTimeStatus",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ia.prototype,"hasIcon",void 0);_.B([_.H(),_.k("design:type",Object)],Ia.prototype,"timeSinceLive",void 0);_.B([_.w("data","timeSinceLive"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ia.prototype,"badgeShapeData",null);
_.B([_.w("data","overlayType"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ia.prototype,"hideBadgeShape",null);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ia.prototype,"dataChanged",null);_.B([_.H({reflectToAttribute:!0}),_.w("data.style"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ia.prototype,"overlayStyle",null);
_.B([_.w("data.liveBadgeData"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ia.prototype,"liveBadgeData",null);_.B([_.H({reflectToAttribute:!0}),_.w("data.type"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ia.prototype,"overlayType",null);_.B([_.w("overlayType","overlayStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ia.prototype,"useFilledIcon",null);
_.B([_.cT("liveBadgeData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ia.prototype,"initializeLiveBadgeTimer",null);Ia=_.B([_.L({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],Ia);
_.P(Ia,"ytd-thumbnail-overlay-time-status-renderer",function(){if(IbZ!==void 0)return IbZ;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return IbZ=p},{mode:_.UQ("kevlar_poly_si_batch_j035")?1:2});var pNZ;var $e=function(){return _.m.apply(this,arguments)||this};
_.E($e,_.m);$e.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"}}}}};
$e.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(p){if(this.hasPlaybackProgressBar)return{percentDurationWatched:p.percentDurationWatched}};
$e.prototype.computeHasPlaybackProgressBar=function(p){return!!p.percentDurationWatched&&p.percentDurationWatched>0};
var ev=$e;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ev.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ev.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ev.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.k("design:type",Boolean)],ev.prototype,"hasPlaybackProgressBar",void 0);
ev=_.B([_.L({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],ev);
_.P(ev,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(pNZ!==void 0)return pNZ;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return pNZ=p},{mode:1});var xOC;_.iK(crw);var F2b=_.mO(function(p){var x=p.data;var F=p.children;var N=function(){return!!x().doubleStack};
return _.Z("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!x().experimentEnabled}},_.Z(_.D9,{cond:x,
then:function(){return _.Z("div",null,_.Z(_.D9,{cond:N,then:function(){var h={};return _.Z("div",{class:_.$L("collections-stack-wiz__collection-stack2",function(){return x().customClassName2ndStack},(h["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return x().enableResponsiveMode},h)),
style:_.a4({"background-color":function(){return hQd(x())}})})}}),_.Z("div",{class:_.$L("collections-stack-wiz__collection-stack1",function(){return x().customClassName1stStack},function(){return lbH(x().thumbnailSize?x().thumbnailSize:"medium")}),
style:_.a4({"background-color":function(){return hQd(x())}})}),F)}}))},"I");_.o7(F2b,"yt-collections-stack",{props:{data:_.G2}});var NLZ=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};p.webModernCollections=!1;p.isSearch=!1;p.isDoubleStack=!1;p.thumbnailSize="medium";p.enableWebModernCollectionsV2=_.S("web_modern_collections_v2");return p};
_.E(NLZ,_.m);_.l=NLZ.prototype;
_.l.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:"ytd-thumbnail-overlay-now-playing-renderer",tvfilmShowWatchForwardOverlayRenderer:"ytd-tvfilm-show-watch-forward-overlay-renderer"}},hoverOverlays_:{id:"hover-overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer"}},
"data.thumbnailRenderer":{id:"playlist-thumbnails",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",properties:{width:"[[width]]"}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",properties:{size:"[[customThumbnailSize]]",watchFeedThumbnail:"[[watchFeedThumbnail]]",webModernCollections:"[[webModernCollections]]"}},showCustomThumbnailRenderer:{component:"ytd-show-custom-thumbnail-renderer",properties:{width:"[[width]]"}}}}}};
_.l.getThumbnailDetails=function(p){if(p!=null&&p.thumbnailRenderer){var x=p.thumbnailRenderer,F;if((F=x.playlistVideoThumbnailRenderer)==null?0:F.thumbnail)return x.playlistVideoThumbnailRenderer.thumbnail;var N;if((N=x.playlistCustomThumbnailRenderer)==null?0:N.thumbnail)return x.playlistCustomThumbnailRenderer.thumbnail;p=p.thumbnailRenderer;var h;if((h=p.showCustomThumbnailRenderer)==null?0:h.thumbnail)return p.showCustomThumbnailRenderer.thumbnail}};
_.l.computeOverlayColor=function(p){var x,F;if((x=this.getThumbnailDetails(p))==null?0:(F=x.darkColorPalette)==null?0:F.section2Color)return this.getThumbnailDetails(p).darkColorPalette.section2Color;var N;return(N=this.getThumbnailDetails(p))==null?void 0:N.sampledThumbnailColor};
_.l.computeWebModernCollections=function(p){if(p==null||!p.thumbnailOverlays)return!1;p=_.a(p.thumbnailOverlays);for(var x=p.next();!x.done;x=p.next()){var F=void 0;if((F=x.value)==null?0:F.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.l.computeNavigationEndpoint=function(p){return An6(p==null?void 0:p.navigationEndpoint)};
_.R8.Object.defineProperties(NLZ.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var p=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:p==null?void 0:p.sampledThumbnailColor,vibrantColorPalette:p==null?void 0:p.vibrantColorPalette,darkColorPalette:p==null?void 0:p.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
var pa=NLZ;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],pa.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],pa.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(G0J),_.k("design:type",Object)],pa.prototype,"ytdThumbnailBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],pa.prototype,"componentBehavior",void 0);
_.B([_.H({value:!1}),_.k("design:type",Boolean)],pa.prototype,"watchFeedThumbnail",void 0);_.B([_.H(),_.k("design:type",Number)],pa.prototype,"customThumbnailSize",void 0);_.B([_.H({value:!0}),_.k("design:type",Boolean)],pa.prototype,"hideAria",void 0);_.B([_.H(),_.k("design:type",Object)],pa.prototype,"data",void 0);_.B([_.H({computed:"computeOverlayColor(data)"}),_.k("design:type",Object)],pa.prototype,"overlayColor",void 0);
_.B([_.H({computed:"computeWebModernCollections(data)"}),_.k("design:type",Object)],pa.prototype,"webModernCollections",void 0);_.B([_.H({computed:"computeNavigationEndpoint(data)"}),_.k("design:type",Object)],pa.prototype,"computedNavigationEndpoint",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],pa.prototype,"isSearch",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],pa.prototype,"isDoubleStack",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],pa.prototype,"thumbnailSize",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],pa.prototype,"enableWebModernCollectionsV2",void 0);_.B([_.w("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.k("design:type",Object),_.k("design:paramtypes",[])],pa.prototype,"collectionStack",null);pa=_.B([_.L({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],pa);
_.P(pa,"ytd-playlist-thumbnail",function(){if(xOC!==void 0)return xOC;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return xOC=p},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var hXv;var lAZ=function(){var p=_.m.apply(this,arguments)||this;p.noEndpoints=!1;p.amsterdamPostMvp=_.S("web_amsterdam_post_mvp_playlists");p.badges=[];p.transferState="TRANSFER_STATE_UNKNOWN";return p};
_.E(lAZ,_.m);_.l=lAZ.prototype;_.l.getMetadata=function(p){if(!p)return[];var x=[],F=p.shortViewCountText||p.viewCountText;F&&x.push(_.Pi(F));p.publishedTimeText&&x.push(_.Pi(p.publishedTimeText));p.upcomingEventData&&p.upcomingEventData.upcomingEventText&&x.push(_.yP(_.Pi(p.upcomingEventData.upcomingEventText),Number(p.upcomingEventData.startTime)));return x};
_.l.observeDataForBylineSeparator=function(){this.data&&_.iX(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.l.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.gX(this.metadataColor)};
_.l.getSimpleString=function(p){return _.Pi(p)};
_.l.isBylineHidden=function(p){return this.noByline||!((p==null?0:p.longBylineText)||(p==null?0:p.shortBylineText))};
_.l.isMetadataHidden=function(p){var x;return((x=this.getMetadata(p))==null?void 0:x.length)===0};
_.l.isBylineMetadataSeparatorHidden=function(p){return this.isMetadataHidden(p)||!this.shouldShowVideoInfo};
_.l.isLongByline=function(p,x){return x&&!(p==null||!p.longBylineText)};
_.R8.Object.defineProperties(lAZ.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var p;return this.amsterdamPostMvp&&!((p=this.data)==null||!p.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 _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
var xo=lAZ;xo.prototype.metadataColorChanged=xo.prototype.metadataColorChanged;xo.prototype.observeDataForBylineSeparator=xo.prototype.observeDataForBylineSeparator;_.B([_.u(_.nl),_.k("design:type",Object)],xo.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],xo.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],xo.prototype,"noEndpoints",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],xo.prototype,"isSlimShort",void 0);
_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],xo.prototype,"radioMeta",void 0);_.B([_.H({selector:_.br}),_.k("design:type",Object)],xo.prototype,"isGridViewEnabled",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],xo.prototype,"richMeta",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],xo.prototype,"amsterdamPostMvp",void 0);_.B([_.H(),_.k("design:type",Boolean)],xo.prototype,"noByline",void 0);
_.B([_.H({computed:"isLongByline(data, radioMeta)"}),_.k("design:type",Boolean)],xo.prototype,"longByline",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],xo.prototype,"truncateMetadataLine",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],xo.prototype,"miniMode",void 0);_.B([_.H(),_.k("design:type",Number)],xo.prototype,"metadataColor",void 0);_.B([_.H(),_.k("design:type",Array)],xo.prototype,"badges",void 0);
_.B([_.H({selector:_.uP,selectorArgs:["data.videoId"]}),_.k("design:type",String)],xo.prototype,"transferState",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],xo.prototype,"isDownloading",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],xo.prototype,"typographyBump",void 0);_.B([_.Ff("#metadata-line"),_.k("design:type",HTMLElement)],xo.prototype,"metadataLine",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xo.prototype,"observeDataForBylineSeparator",null);_.B([_.W("metadataColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xo.prototype,"metadataColorChanged",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],xo.prototype,"shouldShowVideoInfo",null);
_.B([_.w("badges"),_.k("design:type",String),_.k("design:paramtypes",[])],xo.prototype,"inlineBadgeClass",null);_.B([_.w("longByline"),_.k("design:type",String),_.k("design:paramtypes",[])],xo.prototype,"longBylineClass",null);_.B([_.w("data","longByline"),_.k("design:type",Object),_.k("design:paramtypes",[])],xo.prototype,"bylineText",null);_.B([_.w("isGridViewEnabled","data"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xo.prototype,"watchFeedBigThumbs",null);
xo=_.B([_.L({is:"ytd-video-meta-block",disableElementRegistration:!0})],xo);
_.P(xo,"ytd-video-meta-block",function(){if(hXv!==void 0)return hXv;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return hXv=p},{mode:_.UQ("kevlar_poly_si_batch_j080")?1:2});_.Ei("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var c1k=function(){var p=_.m.apply(this,arguments)||this;p.displayItemCount=2;p.isBackstagePlaylist=!1;p.isPostCompactPlaylist=!1;p.shouldShowChannelThumbnail=!1;p.useModernCollectionsV2=_.S("web_modern_collections_v2");return p};
_.E(c1k,_.m);_.l=c1k.prototype;_.l.computeFirstVideos=function(p,x){return p===void 0||x===void 0?[]:p.slice(0,x)};
_.l.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var p=this.data.thumbnailRenderer;p.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",p.playlistVideoThumbnailRenderer.thumbnail);p.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",p.playlistCustomThumbnailRenderer.thumbnail)}};
_.l.computeThumbnailHeight=function(p,x,F,N,h){return N?h==="BIG"?280:h==="MASSIVE"?337:234:F?240:x?72:p?118:138};
_.l.computeThumbnailWidth=function(p,x,F,N,h){return N?h==="MEDIUM"?450:h==="BIG"?500:h==="MASSIVE"?600:420:F?360:x?128:p?210:246};
_.l.computeUseBiggerThumbs=function(p){return p&&_.S("enable_desktop_search_bigger_thumbs")};
_.l.computeShouldShowChannelThumbnail=function(p,x){return p&&!(x==null||!x.channelThumbnail)};
_.R8.Object.defineProperties(c1k.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
var Fh=c1k;Fh.prototype.dataChanged=Fh.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Fh.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.HL),_.k("design:type",Object)],Fh.prototype,"ytdLockupBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],Fh.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Fh.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Fh.prototype,"displayItemCount",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Fh.prototype,"isBackstagePlaylist",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Fh.prototype,"isPostCompactPlaylist",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Fh.prototype,"isSearch",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.k("design:type",Boolean)],Fh.prototype,"useBiggerThumbs",void 0);_.B([_.H({reflectToAttribute:!0,value:function(){return _.iO("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],Fh.prototype,"biggerThumbsStyle",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Fh.prototype,"isDownloads",void 0);_.B([_.H({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.k("design:type",Object)],Fh.prototype,"shouldShowChannelThumbnail",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Fh.prototype,"useModernCollectionsV2",void 0);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Fh.prototype,"dataChanged",null);_.B([_.w("isSearch"),_.k("design:type",String),_.k("design:paramtypes",[])],Fh.prototype,"stackThumbnailSize",null);Fh=_.B([_.L({is:"ytd-playlist-renderer",disableElementRegistration:!0})],Fh);
_.P(Fh,"ytd-playlist-renderer",function(){if(seK===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);seK=p}p=seK;return p},{mode:1});var aAv;var MFB;var Nx=function(){var p=_.m.apply(this,arguments)||this;p.collections=!!_.S("web_modern_collections_v2");p.startX=0;return p};
_.E(Nx,_.m);Nx.prototype.onEndpointMouseDown=function(p){this.startX=p.clientX};
Nx.prototype.onEndpointClick=function(p){this.startX!==p.clientX&&(p.preventDefault(),p.stopPropagation())};
Nx.prototype.computeObjectFit=function(p){return p==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||p==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||p==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
Nx.prototype.computeCardStyle=function(p){return p?p.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.R8.Object.defineProperties(Nx.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var p,x;return this.collections&&((p=this.data)==null?void 0:(x=p.searchRefinementCardRendererStyle)==null?void 0:x.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
var h6=Nx;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],h6.prototype,"data",void 0);_.B([_.H({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.k("design:type",Number)],h6.prototype,"objectFit",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.k("design:type",String)],h6.prototype,"cardStyle",void 0);
_.B([_.H({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],h6.prototype,"roundContainer",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],h6.prototype,"collections",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],h6.prototype,"isAlbumCard",null);_.B([_.w("data","collections","isAlbumCard"),_.k("design:type",Object),_.k("design:paramtypes",[])],h6.prototype,"collectionStack",null);
h6=_.B([_.L({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],h6);
_.P(h6,"ytd-search-refinement-card-renderer",function(){if(MFB!==void 0)return MFB;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return MFB=p},{mode:1});var DOI;var fAZ=function(){var p=_.m.apply(this,arguments)||this;p.isRichGrid=!1;return p};
_.E(fAZ,_.m);var lt=fAZ;_.B([_.H(),_.k("design:type",Object)],lt.prototype,"data",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],lt.prototype,"componentBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],lt.prototype,"ytdReduxBehavior",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],lt.prototype,"isRichGrid",void 0);_.B([_.H({reflectToAttribute:!0,selector:_.n1}),_.k("design:type",Boolean)],lt.prototype,"miniMode",void 0);
lt=_.B([_.L({is:"ytd-game-details-renderer",disableElementRegistration:!0})],lt);
_.P(lt,"ytd-game-details-renderer",function(){if(DOI!==void 0)return DOI;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return DOI=p},{mode:1});var K2D;var qpk;var ZzI=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return p};
_.E(ZzI,_.m);_.l=ZzI.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.currentStateData=function(p){var x=p||this.data;return x&&x.states&&x.currentStateId!=null?x.states.find(function(F){return F.stateId===x.currentStateId})||null:null};
_.l.currentStateRendererData=function(p){return(p=this.currentStateData(p))&&p.state&&p.state.buttonRenderer?p.state.buttonRenderer:null};
_.l.stateChanged=function(){this&&this.data&&(this.ytRenderButtonBehavior._setEndpoint(null),this.ytRenderButtonBehavior._setServiceEndpoint(this.computeServiceEndpoint(this.data)),this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data)),this.ytRenderButtonBehavior._setButtonText(null),this.ytRenderButtonBehavior._setButtonAccessibility(this.computeAccessibility(this.data)),this.ytRenderButtonBehavior._setButtonClass(this.computeButtonClass(this.data)),this.ytRenderButtonBehavior.updateRenderedElements())};
_.l.computeButtonIcon=function(p){p=this.currentStateRendererData(p);var x;return(p==null?0:(x=p.icon)==null?0:x.iconType)?p.icon.iconType.toLowerCase():null};
_.l.computeAccessibility=function(p){return(p=this.currentStateRendererData(p))&&p.accessibilityData?p.accessibilityData.accessibilityData||null:null};
_.l.computeButtonClass=function(p){var x=this.currentStateRendererData(p);if(!x)return"";p="";var F=x.style;F&&(p+=F.toLowerCase().replace(/_/g,"-")+" ");(x=x.size)&&(p+=x.toLowerCase().replace(/_/g,"-")+" ");return p.trim()};
_.l.computeServiceEndpoint=function(p){if(!p)return null;var x=p&&p.serviceEndpoint,F=this.get("command.commandMetadata.webCommandMetadata.sendPost",p);return x?x:F&&p.command?p.command:null};
_.l.computeBellMenuItemParams=function(p){var x;p=(x=_.r(p==null?void 0:p.command,_.Zx))==null?void 0:x.commands;if(!p||p.length===0)return null;x=_.r(p[0],_.X3);var F,N;return(x==null?0:(F=x.popup)==null?0:(N=F.menuPopupRenderer)==null?0:N.items)?x.popup.menuPopupRenderer.items.map(function(h){return h.menuServiceItemRenderer.trackingParams}):null};
_.l.handleBellMenuOpenSelectedAction=function(p){var x=p.trackingParams,F=this.computeBellMenuItemParams(this.data);this.data&&x&&F&&F.includes(x)&&this.ytRenderButtonBehavior._setButtonIcon(p.icon.iconType.toLowerCase())};
_.l.onYtServiceRequestCompleted=function(p,x){(p=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",x))&&this.set("data",p)};
_.l.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.l.resetState=function(){this.set("data.currentStateId",3)};
_.l.onYtButtonTapHandler=function(){if(this.data){var p=this.currentStateRendererData(this.data);p&&this.ytRendererBehavior.logExplicitClick(p)}};
var Ka=ZzI;Ka.prototype.onYtServiceRequestError=Ka.prototype.onYtServiceRequestError;Ka.prototype.onYtServiceRequestCompleted=Ka.prototype.onYtServiceRequestCompleted;Ka.prototype.stateChanged=Ka.prototype.stateChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Ka.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.u(a0.YtRenderButtonBehavior),_.k("design:type",Object)],Ka.prototype,"ytRenderButtonBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ka.prototype,"data",void 0);_.B([_.cT("data","data.currentStateId"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ka.prototype,"stateChanged",null);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Ht]),_.k("design:returntype")],Ka.prototype,"onYtServiceRequestCompleted",null);_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Ka.prototype,"onYtServiceRequestError",null);Ka=_.B([_.L({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Ka);
_.P(Ka,"ytd-subscription-notification-toggle-button-renderer",function(){if(qpk!==void 0)return qpk;var p=document.createElement("template");_.g(p,"\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");p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return qpk=p},{mode:1});var tFB;var dOJ=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};p.tapHandler=function(){if(p.data){var x=p.currentStateRendererData();x&&p.ytRendererBehavior.logExplicitClick(x)}};
return p};
_.E(dOJ,_.m);_.l=dOJ.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.currentStateData=function(){var p=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(x){return x.stateId===p.data.currentStateId})||null:null};
_.l.currentStateRendererData=function(){var p=this.currentStateData();return p&&p.state&&p.state.buttonRenderer?p.state.buttonRenderer:null};
_.l.computeAccessibilityLabel=function(){var p,x,F;return(p=this.currentStateRendererData())==null?void 0:(x=p.accessibilityData)==null?void 0:(F=x.accessibilityData)==null?void 0:F.label};
_.l.computeBellMenuItemParams=function(){var p,x,F=(x=_.r((p=this.data)==null?void 0:p.command,_.Zx))==null?void 0:x.commands;if(!F||F.length===0)return null;p=_.r(F[0],_.X3);var N,h;return(p==null?0:(N=p.popup)==null?0:(h=N.menuPopupRenderer)==null?0:h.items)?p.popup.menuPopupRenderer.items.map(function(c){return c.menuServiceItemRenderer.trackingParams}):null};
_.l.handleBellMenuOpenSelectedAction=function(p){var x=p.trackingParams,F=this.computeBellMenuItemParams();if(this.data&&x&&F&&F.includes(x)&&(p==null||!p.isDisabled)){var N;((N=_.r(p.serviceEndpoint,_.dH))==null?void 0:N.signal)!=="CLIENT_SIGNAL"&&(this.icon=p.icon.iconType)}};
_.l.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.l.onYtServiceRequestCompleted=function(p,x){if(p=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",x))this.icon=void 0,this.set("data",p)};
_.l.onYtServiceRequestError=function(){this.icon=void 0};
_.R8.Object.defineProperties(dOJ.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var p=this.data,x=this.textLabel,F=this.hostElement,N=this.computeAccessibilityLabel(),h=this.tapHandler,c=this.isOverlay?"overlay":"mono",M=(p==null?0:p.disableButton)?"disabled":"active";x=x?_.S6(x):void 0;return{style:c,type:"tonal",state:M,size:"M",focused:!1,formattedButtonText:x,iconPosition:"leading-trailing",onTap:D2r(p,h,F),accessibilityLabel:N}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var p=this.currentStateRendererData(),x,F,N=(F=this.icon)!=null?F:p==null?void 0:(x=p.icon)==null?void 0:x.iconType;if(N)return _.eA(N)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var p,x,F=(p=this.data)==null?void 0:(x=p.secondaryIcon)==null?void 0:x.iconType;if(F)return _.eA(F)}}});
var qx=dOJ;qx.prototype.onYtServiceRequestError=qx.prototype.onYtServiceRequestError;qx.prototype.onYtServiceRequestCompleted=qx.prototype.onYtServiceRequestCompleted;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],qx.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],qx.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],qx.prototype,"textLabel",void 0);_.B([_.H(),_.k("design:type",String)],qx.prototype,"icon",void 0);_.B([_.H(),_.k("design:type",Boolean)],qx.prototype,"isOverlay",void 0);_.B([_.w("data.*","textLabel"),_.k("design:type",Object),_.k("design:paramtypes",[])],qx.prototype,"computedButtonShape",null);_.B([_.w("data.*","icon"),_.k("design:type",Object),_.k("design:paramtypes",[])],qx.prototype,"computedIcon",null);
_.B([_.w("data.*"),_.k("design:type",Object),_.k("design:paramtypes",[])],qx.prototype,"computedSecondaryIcon",null);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Ht]),_.k("design:returntype")],qx.prototype,"onYtServiceRequestCompleted",null);_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],qx.prototype,"onYtServiceRequestError",null);
qx=_.B([_.L({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],qx);_.P(qx,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(tFB!==void 0)return tFB;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return tFB=p},{mode:_.UQ("kevlar_poly_si_batch_j081")?1:2});var vAJ;_.S("web_enable_sink_animated_actions")?_.o7(oWB,"yt-animated-action",{props:{backgroundLottieRef:_.G2,foregroundLottieRef:_.G2,wrapperClass:_.G2,disableAnimation:_.G2},unsafeExternallySettableAttributes:new Set(["key"])}):_.kL(BQM,"yt-animated-action",{propNames:["backgroundLottieRef","foregroundLottieRef"]});var J1b=function(){var p=_.m.apply(this,arguments)||this;p.animatedActionEnabled=_.S("web_animated_actions");p.foregroundLottieRef={};p.backgroundLottieRef={};p.forceIconOnly=!1;p.showTextWhileAnimating=!1;p.keyboardFocused=!1;p.isAnimating=!1;p.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return p};
_.E(J1b,_.m);_.l=J1b.prototype;_.l.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.l.configureRendererStamper=function(){return{"data.notificationPreferenceToggleButton":{id:"notification-preference-toggle-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{forceIconOnly:"[[forceIconOnly]]"}}}},"data.notificationPreferenceButton":{id:"notification-preference-button",mapping:{subscriptionNotificationToggleButtonRenderer:{component:"ytd-subscription-notification-toggle-button-renderer-next",properties:{textLabel:"[[subscribedButtonText]]",
forceIconOnly:"[[forceIconOnly]]",isOverlay:"[[overlayButton]]"}}}}}};
_.l.attached=function(){this.keyboardFocused=!1};
_.l.onYtServiceRequestSent=function(p,x){(this.get("endpoint.subscribeEndpoint",x)||this.get("endpoint.unsubscribeEndpoint",x))&&this.updateSubscriptionState(!this.subscribed)};
_.l.onYtServiceRequestCompleted=function(p,x){(p=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",x.data))&&this.bellButton&&(this.bellButton.data=p)};
_.l.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.eV(this.hostElement)};
_.l.onPlayerSubscribe=function(p){this.isCompactRed()||p!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.l.onPlayerUnsubscribe=function(p){this.isCompactRed()||p!==this.data.channelId||this.updateSubscriptionState(!1)};
_.l.handleUpdateSubscribeButtonAction=function(p){p=_.r(p,Pwd);var x;p&&p.channelId===((x=this.data)==null?void 0:x.channelId)&&this.updateSubscriptionState(!!p.subscribed)};
_.l.computeButtonStyle=function(p){return this.get("style.styleType",p)||null};
_.l.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.l.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.l.updateSubscriptionState=function(p){if(p!==this.subscribed){this.set("data.subscribed",p);var x,F=(x=this.data)==null?void 0:x.subscribedEntityKey;F&&this.ytdReduxBehavior.dispatch(_.KV("subscriptionStateEntity",F,{key:F,subscribed:p}));this.isCompactRed()||_.hG(this.hostElement,"yt-subscription-changed",p);p||(_.lA(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!p),p&&this.hasBellButton&&this.startAnimation())}};
_.l.startAnimation=function(){var p=this;if(!this.isAnimating){this.isAnimating=!0;var x;(x=this.backgroundLottieRef.lottieEl)==null||x.goToAndPlay(0);var F;(F=this.foregroundLottieRef.lottieEl)==null||F.goToAndPlay(0);_.E0.addJob(function(){p.maybeAnimateBellIcon()},2,300);
_.E0.addJob(function(){p.isAnimating=!1},2,1500)}};
_.l.maybeAnimateBellIcon=function(){var p=_.Ub(this.hostElement).querySelector("yt-animated-icon");if(p){var x;(x=p.animationRef.lottieEl)==null||x.goToAndPlay(0)}};
_.l.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.l.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.l.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var p;this.unsubscribedWidth=(p=this.subscribeButtonShape)==null?void 0:p.getBoundingClientRect().width}var x;this.subscribedWidth=(x=this.bellButton)==null?void 0:x.getBoundingClientRect().width}};
_.l.updateContainerToFitContent=function(p){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(this.hostElement.style.width=p?this.subscribedWidth+"px":this.unsubscribedWidth+"px")};
_.l.clearContainerSize=function(){this.hostElement.style.width=""};
_.l.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.R8.Object.defineProperties(J1b.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 p;return(p=this.data)==null?void 0:p.subscribedButtonText}var x;return this.forceIconOnly?void 0:(x=this.data)==null?void 0:x.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var p,x,F=((p=this.data)==null?void 0:(x=p.timedAnimationData)==null?void 0:x.animationTiming)||[];return{uniqueId:"subscribe",timings:F,enabled:F.length>0&&!this.subscribed,experimentEnabled:F.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var p;return!this.subscribed&&((p=this.data)==null?void 0:p.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 p={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var x=p.renderer;var F=p.element;var N=p.subscribed;var h=p.commandController;var c=p.isOverlay;p=p.config;var M=ZLk(x,N);c&&(M.style="overlay");c=Object;var f=c.assign,K;a:switch((K=x.style)==null?void 0:K.styleType){case "COMPACT_GRAY":case "COMPACT_RED":K={size:"S"};break a;default:K={size:"M"}}var t=qhH(x,N);var d=
(d=N?x.subscribedButtonText:x.unsubscribedButtonText)?_.S6(d):void 0;return f.call(c,{},M,K,{focused:!1,toggled:N,accessibilityLabel:t,formattedButtonText:d,onTap:KKp(x,p,N,F,h)})}}}});
var Zm=J1b;Zm.prototype.onMouseDown=Zm.prototype.onMouseDown;Zm.prototype.onDataChanged=Zm.prototype.onDataChanged;Zm.prototype.observedSubscribed=Zm.prototype.observedSubscribed;Zm.prototype.onYtServiceRequestCompleted=Zm.prototype.onYtServiceRequestCompleted;Zm.prototype.onYtServiceRequestSent=Zm.prototype.onYtServiceRequestSent;Zm.prototype.maybeUpdateBellButtonText=Zm.prototype.maybeUpdateBellButtonText;
_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Zm.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Zm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Zm.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Zm.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.u(_.nl),_.k("design:type",Object)],Zm.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Zm.prototype,"data",void 0);_.B([_.H({selectorArgs:["data.subscribedEntityKey"],selector:_.e3}),_.k("design:type",Object)],Zm.prototype,"subscriptionStateEntity",void 0);_.B([_.H({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Zm.prototype,"subscribed",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Zm.prototype,"branded",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Zm.prototype,"animatedActionEnabled",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Zm.prototype,"foregroundLottieRef",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Zm.prototype,"backgroundLottieRef",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Zm.prototype,"overlayButton",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.k("design:type",Object)],Zm.prototype,"buttonStyle",void 0);_.B([_.H(),_.k("design:type",Object)],Zm.prototype,"forceIconOnly",void 0);_.B([_.H(),_.k("design:type",Object)],Zm.prototype,"showTextWhileAnimating",void 0);_.B([_.H({value:function(){return!!_.J().resolve(_.Bw(_.dR))&&_.S("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.k("design:type",Boolean)],Zm.prototype,"useKeyboardFocused",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Zm.prototype,"keyboardFocused",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Zm.prototype,"isAnimating",void 0);_.B([_.w("data.notificationPreferenceButton.*"),_.k("design:type",Object),_.k("design:paramtypes",[])],Zm.prototype,"hasBellButton",null);
_.B([_.W("subscribedButtonText"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zm.prototype,"maybeUpdateBellButtonText",null);_.B([_.w("data.subscribedButtonText","forceIconOnly","isAnimating"),_.k("design:type",Object),_.k("design:paramtypes",[])],Zm.prototype,"subscribedButtonText",null);_.B([_.w("data.timedAnimationData.animationTiming","subscribed"),_.k("design:type",Object),_.k("design:paramtypes",[])],Zm.prototype,"smartimationSettings",null);
_.B([_.H({reflectToAttribute:!0}),_.w("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.k("design:type",Object),_.k("design:paramtypes",[])],Zm.prototype,"subscribeButtonHidden",null);_.B([_.H({reflectToAttribute:!0}),_.w("subscribed","hasBellButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],Zm.prototype,"subscribeButtonInvisible",null);
_.B([_.H({reflectToAttribute:!0}),_.w("subscribed"),_.k("design:type",Object),_.k("design:paramtypes",[])],Zm.prototype,"unsubscribeButtonHidden",null);_.B([_.Ff("ytd-subscription-notification-toggle-button-renderer-next"),_.k("design:type",Object)],Zm.prototype,"bellButton",void 0);_.B([_.Ff("#subscribe-button-shape"),_.k("design:type",HTMLElement)],Zm.prototype,"subscribeButtonShape",void 0);
_.B([_.w("overlayButton","subscribed","data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Zm.prototype,"buttonShape",null);_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],Zm.prototype,"onYtServiceRequestSent",null);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Ht]),_.k("design:returntype")],Zm.prototype,"onYtServiceRequestCompleted",null);
_.B([_.W("subscribed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zm.prototype,"observedSubscribed",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zm.prototype,"onDataChanged",null);_.B([_.V("mousedown"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Zm.prototype,"onMouseDown",null);
Zm=_.B([_.L({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],Zm);
_.P(Zm,"ytd-subscribe-button-renderer",function(){if(vAJ!==void 0)return vAJ;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return vAJ=p},{mode:1});var CSJ=function(){var p=_.m.apply(this,arguments)||this;p.isRichGrid=!1;return p};
_.E(CSJ,_.m);CSJ.prototype.configureRendererStamper=function(){return{"data.game":{id:"game",mapping:{gameDetailsRenderer:{component:"ytd-game-details-renderer",properties:{isRichGrid:"[[isRichGrid]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
var t6=CSJ;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],t6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],t6.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],t6.prototype,"isRichGrid",void 0);t6=_.B([_.L({is:"ytd-game-card-renderer",disableElementRegistration:!0})],t6);
_.P(t6,"ytd-game-card-renderer",function(){if(K2D!==void 0)return K2D;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return K2D=p},{mode:1});var dK={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.S("defer_menus")&&!pyZ?0:void 0,waitForSignal:"eocs"};var SpJ;var r1l;var EAk=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return p};
_.E(EAk,_.m);_.l=EAk.prototype;_.l.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.l.onSeriesReminderStateEntityChange=function(){var p,x,F;((p=this.eventReminderStateEntity)==null?0:p.key)&&((x=this.seriesReminderStateEntity)==null?void 0:x.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((F=this.eventReminderStateEntity)==null?void 0:F.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.KV("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.l.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.l.onYtServiceRequestError=function(){var p;this.updateReminderStateEntitiesFromButtonState((p=this.data)==null?void 0:p.currentState)};
_.l.handleUpdateUpcomingEventReminderButtonStateCommand=function(p){if(p=_.r(p,XjB)){var x,F=(x=this.data)==null?void 0:x.targetId;F&&p.targetId===F&&_.zD(this.updateReminderStateEntitiesFromButtonState.bind(this,p.state))}};
_.l.getButtonStateFromReminderState=function(){var p;if(((p=this.seriesReminderStateEntity)==null?void 0:p.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var x;if(((x=this.eventReminderStateEntity)==null?void 0:x.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var F,N;if(((F=this.seriesReminderStateEntity)==null?void 0:F.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((N=this.eventReminderStateEntity)==
null?void 0:N.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var h;return(h=this.data)==null?void 0:h.currentState};
_.l.updateReminderStateEntitiesFromButtonState=function(p){if(p){switch(p){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":p="UPCOMING_EVENT_REMINDER_STATE_NONE";var x="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":p="UPCOMING_EVENT_REMINDER_STATE_SINGLE";x="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":p="UPCOMING_EVENT_REMINDER_STATE_NONE";x="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var F;
((F=this.eventReminderStateEntity)==null?0:F.key)&&this.ytdReduxBehavior.dispatch(_.KV("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:p})));var N;((N=this.seriesReminderStateEntity)==null?0:N.key)&&this.ytdReduxBehavior.dispatch(_.KV("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:x})))}};
_.R8.Object.defineProperties(EAk.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var p=this.getButtonStateFromReminderState(),x,F;if(p&&((x=this.data)==null?0:(F=x.states)==null?0:F.length))for(x=_.a(this.data.states),F=x.next();!F.done;F=x.next()){F=F.value;var N=void 0;if(((N=_.r(F,gxZ))==null?void 0:N.state)===p)return _.r(F,gxZ)}}}});
var vh=EAk;vh.prototype.onYtServiceRequestError=vh.prototype.onYtServiceRequestError;vh.prototype.onYtServiceRequestCompleted=vh.prototype.onYtServiceRequestCompleted;vh.prototype.onSeriesReminderStateEntityChange=vh.prototype.onSeriesReminderStateEntityChange;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],vh.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],vh.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],vh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],vh.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],vh.prototype,"data",void 0);_.B([_.H({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:EGJ}),_.k("design:type",Object)],vh.prototype,"eventReminderStateEntity",void 0);
_.B([_.H({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(p,x){return _.M4(p.entities,"sportsSeriesReminderStateEntity",x)}}),
_.k("design:type",Object)],vh.prototype,"seriesReminderStateEntity",void 0);_.B([_.w("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],vh.prototype,"currentButtonStateRenderer",null);_.B([_.W("seriesReminderStateEntity"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vh.prototype,"onSeriesReminderStateEntityChange",null);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vh.prototype,"onYtServiceRequestCompleted",null);_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vh.prototype,"onYtServiceRequestError",null);vh=_.B([_.L({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],vh);
_.P(vh,"ytd-upcoming-event-reminder-button-renderer",function(){if(r1l!==void 0)return r1l;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);
return r1l=p},{mode:1});var XNC;var gAI=function(){return _.m.apply(this,arguments)||this};
_.E(gAI,_.m);gAI.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.R8.Object.defineProperties(gAI.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(_.S("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
var J6=gAI;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],J6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],J6.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],J6.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],J6.prototype,"shelfDismissal",void 0);
_.B([_.w("data.responseText"),_.k("design:type",Object),_.k("design:paramtypes",[])],J6.prototype,"text",null);_.B([_.w("data.responseText"),_.k("design:type",Object),_.k("design:paramtypes",[])],J6.prototype,"textAriaLabel",null);J6=_.B([_.L({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],J6);
_.P(J6,"ytd-notification-multi-action-renderer",function(){if(XNC!==void 0)return XNC;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return XNC=p},{mode:1});var QTj;var zXj=function(){return _.m.apply(this,arguments)||this};
_.E(zXj,_.m);zXj.prototype.ready=function(){var p=this;_.n(this.hostElement).querySelector("#undo").addEventListener("tap",function(){p.onUndoTap()})};
zXj.prototype.onUndoTap=function(){this.data.undoEndpoint&&(_.S("web_ytd_notification_text_renderer_command_resolver_ks")?_.fc(this.hostElement,[this.data.undoEndpoint]):_.J().resolve(_.RD).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}}))};
var Ca=zXj;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ca.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ca.prototype,"data",void 0);Ca=_.B([_.L({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],Ca);
_.P(Ca,"ytd-notification-text-renderer",function(){if(QTj!==void 0)return QTj;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return QTj=p},{mode:1});var sTm;var nAB=function(){var p=_.m.apply(this,arguments)||this;p.mouseOverDelayJobId=0;p.fadeInImageDelayJobId=0;p.startTimeMs=-1;p.loadingStartTimeMs=-1;p.loadingEndTimeMs=-1;p.hasVideoPreview=!1;return p};
_.E(nAB,_.m);_.l=nAB.prototype;_.l.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.l.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.l.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.l.showThumbnail=function(){var p=this;this.csn=_.b0();_.G6("fmth");_.E0.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.TT(_.E0,function(){p.loadingStartTimeMs=(0,_.Lf)();var x=_.n(p.hostElement).querySelector("#thumbnail");x.complete?p.displayMouseOverImage():x.addEventListener("load",_.p5(p,p.displayMouseOverImage))},150):_.iX(_.n(this.hostElement).querySelector("#play"),"show",!0)};
_.l.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.l.onTap=function(){this.removeVideoPreview()};
_.l.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var p=this.videoId,x=this.csn,F=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,N=this.startTimeMs,h=this.hasVideoPreview,c=_.fr(this.trackingParams),M={isMovingThumbnail:h};h&&N>0&&(F>0&&(M.movingThumbnailLoadingDurationMs=Math.round(F)),M.durationHoveredMs=Math.round((0,_.Lf)()-N));p&&(M.videoId=p);_.Rf(x,c,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:M});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.l.removeVideoPreview=function(){_.E0.cancelJob(this.mouseOverDelayJobId);_.E0.cancelJob(this.fadeInImageDelayJobId);var p=_.n(this.hostElement).querySelector("#thumbnail");_.iX(p,"fade-in",!1);p.removeEventListener("load",_.p5(this,this.displayMouseOverImage));p=_.n(this.hostElement).querySelector("#play");_.iX(p,"fade-in",!1);_.iX(p,"show",!1)};
_.l.displayMouseOverImage=function(){var p=_.n(this.hostElement).querySelector("#thumbnail"),x=_.n(this.hostElement).querySelector("#play");this.isImageAvailable(p)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.Lf)(),this.startTimeMs=(0,_.Lf)(),this.fadeInImageDelayJobId=_.TT(_.E0,function(){_.iX(p,"fade-in",!0)},50)):_.iX(x,"fade-in",!0)};
_.l.computeThumbnail=function(p,x){var F;p&&p.movingThumbnailDetails&&p.movingThumbnailDetails.thumbnails&&x?F=_.Ou(p.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):F=x?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(F)return _.ug(F)};
_.l.isImageAvailable=function(p){return!(!p.src||p.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||p.naturalWidth===120)};
var Sm=nAB;Sm.prototype.onTap=Sm.prototype.onTap;Sm.prototype.dataChanged=Sm.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Sm.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Sm.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Sm.prototype,"csn",void 0);
_.B([_.H(),_.k("design:type",Object)],Sm.prototype,"trackingParams",void 0);_.B([_.H(),_.k("design:type",String)],Sm.prototype,"videoId",void 0);_.B([_.H(),_.k("design:type",Boolean)],Sm.prototype,"isAttachedAndDataSet",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sm.prototype,"dataChanged",null);_.B([_.V("click"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sm.prototype,"onTap",null);
Sm=_.B([_.L({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Sm);
_.P(Sm,"ytd-moving-thumbnail-renderer",function(){if(sTm!==void 0)return sTm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return sTm=p},{mode:1});var y1j;_.qg=function(p){this.hostElement=p;this.eventSink=null;this.eventList=[]};
_.qg.prototype.shouldForward=function(){var p,x;return(x=(p=this.eventSink)==null?void 0:p.isConnected)!=null?x:document.body.contains(this.eventSink)};
_.qg.prototype.start=function(p,x){this.eventSink&&this.stop();for(var F=0;F<p.length;F++)this.hostElement.addEventListener(p[F],_.p5(this,this.forwardEvent));var N;this.eventSink=(N=x.hostElement)!=null?N:x;this.eventList=p};
_.qg.prototype.stop=function(){for(var p=0;p<this.eventList.length;p++)this.hostElement.removeEventListener(this.eventList[p],_.p5(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.qg.prototype.forwardEvent=function(p,x){this.shouldForward()&&(p.stopPropagation(),this.eventSink instanceof Element?_.hG(this.eventSink,p.type,x):_.no(new _.qE("eventSink is not an element")))};_.rK={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.qg(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(p,x){this.forwarder_.start(p,x)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var bzZ=function(){return _.m.apply(this,arguments)||this};
_.E(bzZ,_.m);_.l=bzZ.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");this.tooltip.position=_.sd("HTML_DIR")==="rtl"?"right":"left"};
_.l.dataChanged=function(){this.popupOpen=!1};
_.l.computeAriaLabel=function(p){return _.r(p,R4I).label};
_.l.onTap=function(p){p.stopPropagation();p.preventDefault();this.data.command&&(_.S("web_ytd_thumbnail_overlay_button_renderer_command_resolver_ks")?_.fc(this.hostElement,[this.data.command]):_.J().resolve(_.RD).resolveCommand(this.data.command,{form:{element:this.hostElement}}))};
_.l.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.l.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
var EN=bzZ;EN.prototype.onPopupClosed=EN.prototype.onPopupClosed;EN.prototype.onPopupOpened=EN.prototype.onPopupOpened;EN.prototype.onTap=EN.prototype.onTap;EN.prototype.dataChanged=EN.prototype.dataChanged;_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],EN.prototype,"eventForwardingBehavior",void 0);_.B([_.u(_.bU),_.k("design:type",Object)],EN.prototype,"ironButtonState",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],EN.prototype,"componentBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],EN.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,value:-1}),_.k("design:type",Number)],EN.prototype,"tabindex",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.k("design:type",Object)],EN.prototype,"ariaLabel",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],EN.prototype,"disableTooltips",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],EN.prototype,"popupOpen",void 0);
_.B([_.H(),_.k("design:type",Element)],EN.prototype,"eventSink",void 0);_.B([_.Ff("#tooltip"),_.k("design:type",Object)],EN.prototype,"tooltip",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EN.prototype,"dataChanged",null);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],EN.prototype,"onTap",null);
_.B([_.V("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EN.prototype,"onPopupOpened",null);_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EN.prototype,"onPopupClosed",null);EN=_.B([_.L({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],EN);
_.P(EN,"ytd-thumbnail-overlay-button-renderer",function(){if(y1j!==void 0)return y1j;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return y1j=p},{mode:1});var A1K;var uv6=function(){return _.m.apply(this,arguments)||this};
_.E(uv6,_.m);var Xh=uv6;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Xh.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Xh.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Xh.prototype,"disableAnimation",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Xh.prototype,"rounded",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Xh.prototype,"transparentBackground",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Xh.prototype,"noPadding",void 0);Xh=_.B([_.L({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Xh);
_.P(Xh,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(A1K!==void 0)return A1K;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return A1K=p},{mode:1});var Ypv;var gK=function(){return _.m.apply(this,arguments)||this};
_.E(gK,_.m);gK.prototype.computeIconPosition=function(p){return this.get("iconPosition",p)||null};
gK.prototype.computeIconStyle=function(p){return this.get("iconStyle",p)||null};
gK.prototype.computeIsIconStyleFilled=function(p){if(!p)return!1;var x;return p.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((x=p.icon)==null?void 0:x.iconType)==="ERROR_BLACK"};
var Q0=gK;_.B([_.H(),_.k("design:type",Object)],Q0.prototype,"data",void 0);_.B([_.H({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.k("design:type",Object)],Q0.prototype,"iconPosition",void 0);_.B([_.H({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.k("design:type",Object)],Q0.prototype,"iconStyle",void 0);_.B([_.H({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Q0.prototype,"iconStyleFilled",void 0);
Q0=_.B([_.L({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],Q0);
_.P(Q0,"ytd-thumbnail-overlay-icon-renderer",function(){if(Ypv!==void 0)return Ypv;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Ypv=p},{mode:1});var wNB;var GwD=function(){return _.m.apply(this,arguments)||this};
_.E(GwD,_.m);var zK=GwD;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],zK.prototype,"data",void 0);zK=_.B([_.L({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],zK);
_.P(zK,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(wNB!==void 0)return wNB;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return wNB=p},{mode:1});var VFn;var W2v=function(){var p=_.m.apply(this,arguments)||this;p.isPreviewLoading=!1;return p};
_.E(W2v,_.m);var sN=W2v;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],sN.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],sN.prototype,"isPreviewLoading",void 0);sN=_.B([_.L({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],sN);
_.P(sN,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(VFn!==void 0)return VFn;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return VFn=p},{mode:1});var HzC;var mOZ=function(){return _.m.apply(this,arguments)||this};
_.E(mOZ,_.m);var na=mOZ;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],na.prototype,"data",void 0);na=_.B([_.L({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],na);
_.P(na,"ytd-thumbnail-overlay-pinking-renderer",function(){if(HzC!==void 0)return HzC;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return HzC=p},{mode:1});var oAZ;var OzC=function(){var p=_.m.apply(this,arguments)||this;p.disableTooltips=!1;p.isLoading=!1;p.useExpandableTooltip=!1;p.toggled=!1;p.hovered=!1;p.mouseoverDelayJobId=0;p.toggleDelayJobId=0;p.expandAnimationDelayJobId=0;return p};
_.E(OzC,_.m);_.l=OzC.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1");this.hostElement.hasAttribute("top-right-overlay")||this.hostElement.setAttribute("top-right-overlay","true");_.n(this.hostElement).querySelector("#tooltip").position=_.sd("HTML_DIR")==="rtl"?"right":"left"};
_.l.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.E0.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.E0.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.E0.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.l.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.E0.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.E0.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.E0.cancelJob(this.expandAnimationDelayJobId)};
_.l.computeIcon=function(p,x,F){return(p=F?x:p)&&p.iconType?_.eA(p.iconType):void 0};
_.l.computeAriaLabel=function(p,x,F){return _.r(F?x:p,R4I).label};
_.l.computeTooltip=function(p,x,F){return F?x:p};
_.l.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.l.computeIconOnHover=function(p,x){if((p==null?0:p.iconType)&&!x)return _.eA(p.iconType)};
_.l.onTap=function(p){var x=this;p.stopPropagation();p.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(p=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(p),this.useExpandableTooltip&&(this.toggleDelayJobId=_.TT(_.E0,function(){x.hovered=!1;x.data&&!x.data.toggledServiceEndpoint&&(x.expandAnimationDelayJobId=_.TT(_.E0,function(){x.set("data.isToggled",
!1)},200))},2E3))};
_.l.onMouseenter=function(){var p=this;this.mouseoverDelayJobId=_.TT(_.E0,function(){p.hovered=!0},300)};
_.l.onMouseleave=function(){_.E0.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.l.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.l.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.l.onServiceRequestCompleted=function(p,x){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(x)||this.set("data.isToggled",!this.data.isToggled)};
_.l.serviceRequestWasSuccessful=function(p){return _.r(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.n4)?p.data.status==="STATUS_SUCCEEDED":!0};
var y0=OzC;y0.prototype.onServiceRequestCompleted=y0.prototype.onServiceRequestCompleted;y0.prototype.onPopupClosed=y0.prototype.onPopupClosed;y0.prototype.onPopupOpened=y0.prototype.onPopupOpened;y0.prototype.onMouseleave=y0.prototype.onMouseleave;y0.prototype.dataChanged=y0.prototype.dataChanged;_.B([_.u(_.bU),_.k("design:type",Object)],y0.prototype,"ironButtonState",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],y0.prototype,"ytComponentBehavior",void 0);
_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],y0.prototype,"ytEventForwardingBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],y0.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.k("design:type",Object)],y0.prototype,"ariaLabel",void 0);_.B([_.H(),_.k("design:type",Object)],y0.prototype,"disableTooltips",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],y0.prototype,"popupOpen",void 0);_.B([_.H(),_.k("design:type",Object)],y0.prototype,"isLoading",void 0);_.B([_.H(),_.k("design:type",Element)],y0.prototype,"eventSink",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],y0.prototype,"useExpandableTooltip",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.k("design:type",Object)],y0.prototype,"toggled",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],y0.prototype,"hovered",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.k("design:type",Object)],y0.prototype,"iconOnHover",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],y0.prototype,"dataChanged",null);
_.B([_.V("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],y0.prototype,"onMouseleave",null);_.B([_.V("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],y0.prototype,"onPopupOpened",null);_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],y0.prototype,"onPopupClosed",null);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Ht]),_.k("design:returntype")],y0.prototype,"onServiceRequestCompleted",null);y0=_.B([_.L({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],y0);
_.P(y0,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(oAZ!==void 0)return oAZ;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return oAZ=p},{mode:_.UQ("kevlar_poly_si_batch_j053")?1:2});var jTn;var L26=_.mO(function(p){var x=p.data;var F=function(){return x().enableSegmentView};
return _.Z("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.Z(_.D9,{cond:F,then:function(){return _.Z("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.Z("div",{class:_.pQ("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+x().startPercent+"%"}}),_.Z("div",{class:_.pQ("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+x().segmentDurationPercent+"%"}},_.Z("div",{class:_.pQ("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.Z("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.Z("div",null," ",function(){return x().segmentLabel})),_.Z("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.Z("div",{class:_.pQ("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.Z(_.D9,{cond:function(){return!F()&&x().startPercent},
then:function(){var N={};return _.Z("div",{class:_.pQ("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(N.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.S("web_enable_modern_progress_bar_overlay"),N))},_.Z("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+x().startPercent+"%"}}))}}))},"J");
L26.idomCompat=!0;var PSB=_.mO(function(p){var x=_.F6(),F=_.g5(function(h){var c,M,f;a:{var K=(c=p.data())==null?void 0:c.animationActivationTargetId;c=((M=p.data())==null?void 0:M.animationActivationEntityKey)||"";M=(f=p.data())==null?void 0:f.animationActivationEntitySelectorType;if(c&&K)switch(M){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":h=_.M4(h.entities,"playerStateEntity",c);f=_.J().resolve(_.Bw(_.H$));K=!!(h&&h.videoId===K&&(f==null?0:f.isMiniplayerActive()));K={activated:K,playAnimation:K&&
h.playerState==="PLAYER_STATE_PLAYING"};break a}K=void 0}return K});
_.rx(function(){var h;if((h=F())==null?0:h.activated){var c;if((c=F())==null?0:c.playAnimation){var M;(M=x.lottieEl)==null||M.goToAndPlay(0)}else{var f;(f=x.lottieEl)==null||f.goToAndStop(0)}}});
var N=function(){var h,c=!((h=F())==null||!h.activated);if(p.data()){h=p.data();var M=void 0;h.icon&&(M=cW6(h.icon),M=Z0M(M));var f=void 0,K;if((K=h.backgroundColor)==null?0:K.lightTheme){var t;f={backgroundColor:zF((t=h.backgroundColor)==null?void 0:t.lightTheme,"0.8")}}if(h.text||M||c){if(c&&h.lottieData&&x){t=h.lottieData;var d,v,C;K={animationConfig:{name:t.url,path:t.url,autoplay:(d=t.settings)==null?void 0:d.autoplay,loop:(C=(v=t.settings)==null?void 0:v.loop)!=null?C:!0},animationRef:x}}else K=
void 0;if(c)d=16;else b:switch(h.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":d=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":d=18;break b;default:d=16}c={type:d,text:c&&h.animatedText?h.animatedText:h.text,icon:M,customColors:f,animation:K}}else c=void 0}else c=void 0;return c};
return _.Z("yt-thumbnail-badge-view-model",{class:_.$L("yt-thumbnail-badge-view-model-wiz",p.class)},_.Z(_.D9,{cond:N,then:function(){return _.Z(_.kw,{data:function(){return N()}})}}))},"K");var TLv=_.mO(function(p){var x={};return _.Z("yt-thumbnail-bottom-overlay-view-model",{class:_.$L("ytThumbnailBottomOverlayViewModelHost",(x.ytThumbnailBottomOverlayViewModelHostBackground=function(){return p.data().enableGradientBackground},x))},_.Z("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.Z(_.Es,{data:function(){return p.data().progressBar}},{thumbnailOverlayProgressBarViewModel:L26}),_.Z(_.Es,{data:function(){return p.data().badge}},{thumbnailBadgeViewModel:function(F){return _.Z(PSB,
{data:F.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.Z(_.Es,{data:function(){return p.data().badges}},{thumbnailBadgeViewModel:function(F){return _.Z(PSB,{data:F.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"L");
TLv.idomCompat=!0;_.o7(TLv,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.mJ}});var gRB={calledOnce:!1,state:"visible"},Qem={calledOnce:!1,state:"hidden"};_.iK(nRp);var BLb=_.mO(function(p){var x=p.data;var F=p.className;p=p.alwaysShow;var N=_.oc();_.oC(N,function(){return x().rendererContext});
var h=_.d2w(),c={};return _.Z("thumbnail-hover-overlay-view-model",{el:N,class:_.$L("ytThumbnailHoverOverlayViewModelHost",F,(c.ytThumbnailHoverOverlayViewModelHostForceHover=p,c)),"aria-label":function(){var M;return(M=_.r(x().rendererContext,_.Os))==null?void 0:M.label},
role:function(){return _.wR(x().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.wR(x().rendererContext)!==void 0?0:void 0},
"on:keypress":h},_.Z("div",{class:_.$L("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(x().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var M="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:M="ytThumbnailHoverOverlayViewModelStyleCover"}return M})},_.Z(_.D9,{cond:function(){return x().icon},
then:function(M){return _.Z(_.VE,{data:M,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.Z(_.D9,{cond:function(){return x().text},
then:function(M){return _.Z(_.KQ,{text:M,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"M"),RXl=_.S("web_enable_sink_lockups_batch")?BLb:nRp,kwv=_.S("web_enable_sink_lockups_batch")?BLb:_.xp(nRp);
BLb.idomCompat=!0;var LV=_.mO(function(p){var x=p.data;return _.Z(_.Es,{data:function(){return x==null?void 0:x().overlays}},{thumbnailHoverOverlayViewModel:kwv})},"N");
LV.idomCompat=!0;var UOC={};var jo=_.mO(function(p){var x=p.data;var F=p.image;var N=p.state;var h=p.iconType;var c=p.overlays;var M=p.isOverlay;var f=_.O$();p=_.a(_.hu(!0,void 0,"xOB8yb"));var K=p.next().value,t=p.next().value,d=_.GD(h,"LIVE");_.J9(function(){requestAnimationFrame(function(){var C=x().size;var X=x().badgeText;if(f.value===null)X=!0;else{var Q=yrw(C);X in UOC?C=UOC[X]:(C=f.value.clientWidth,UOC[X]=C);(X=C>Q)?f.value.style.display="none":f.value.style.visibility="visible"}t(X)})});
var v=function(){var C={};return C["yt-spec-avatar-shape__image"]=!0,C["yt-spec-avatar-shape__image--ads-app"]=x().type===1,C};
h=_.h0(function(C){var X,Q;return void((Q=(X=x()).onTap)==null?void 0:Q.call(X,C))});
return _.Z("yt-avatar-shape",null,_.Z("div",{class:function(){var C={};C=(C["yt-spec-avatar-shape"]=!0,C["yt-spec-avatar-shape__button"]=!0,C[ArB(x().size)]=!0,C["yt-spec-avatar-shape__button--tappable"]=!!x().onTap,C);var X=x().avatarButtonCustomClassName;X&&(C[X]=!0);return _.pQ(C)},
"on:click":h,"on:keydown":_.ur(),"aria-label":function(){return x().onTap?x().accessibilityText:""},
role:function(){return x().onTap?"button":void 0},
tabindex:function(){return x().onTap?0:void 0}},_.Z("div",{class:function(){var C,X=x(),Q=N==null?void 0:N(),b=M==null?void 0:M(),A=!((C=X.decorations)==null||!C.includes(2)||X.size!=="medium"&&X.size!=="large"),Y=X.size==="tiny"||X.size==="extra-small",O,Fw,R,ld,pp={};
C=(pp["yt-spec-avatar-shape--live-ring"]=!!(((O=X.decorations)==null?0:O.includes(0))&&Yhm(X.size)),pp["yt-spec-avatar-shape--stories-watched"]=A&&!(Q==null||!Q.storiesWatched),pp["yt-spec-avatar-shape--stories-unwatched"]=A&&!(Q==null?0:Q.storiesWatched),pp["yt-spec-avatar-shape--background-border"]=wVr(X.decorations)&&!Y,pp["yt-spec-avatar-shape--background-border-thin"]=wVr(X.decorations)&&Y,pp["yt-spec-avatar-shape__on-select-border"]=!((Fw=X.decorations)==null||!Fw.includes(4)),pp["yt-spec-avatar-shape__white-border"]=
!((R=X.decorations)==null||!R.includes(5)),pp["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((ld=X.decorations)==null?0:ld.includes(5))&&Y),pp["yt-spec-avatar-shape--is-overlay"]=!!b,pp);return _.pQ(C)}},_.Z("div",{class:function(){var C={};
C=(C[bLH(x().size)]=!0,C["yt-spec-avatar-shape--no-margin"]=wVr(x().decorations),C);return _.pQ(C)}},_.Z(_.VE,{data:F,
alt:function(){return!x().onTap&&x().accessibilityText?x().accessibilityText:""},
targetWidth:function(){return uWk(x().size)},
targetHeight:function(){return uWk(x().size)},
className:function(){return _.pQ(v())}}),_.Z(_.D9,{cond:function(){var C;
return((C=x().decorations)==null?void 0:C.includes(0))&&Yhm(x().size)},
then:function(){return _.Z("div",{class:function(){var C={};C=(C["yt-spec-avatar-shape__live-badge"]=!0,C["yt-spec-avatar-shape__live-badge--badge-small"]=x().size==="small",C["yt-spec-avatar-shape__live-badge--badge-medium"]=x().size==="medium"||x().size==="48",C["yt-spec-avatar-shape__live-badge--badge-large"]=x().size==="large",C["yt-spec-avatar-shape__live-badge--badge-extra-large"]=x().size==="extra-large"||x().size==="extra-extra-large"||x().size==="giant",C);return _.pQ(C)}},_.Z(_.D9,{cond:function(){return x().badgeText},
then:function(C){return _.Z("div",{class:"yt-spec-avatar-shape__badge-text",el:f},C)}}),_.Z(_.D9,{cond:K,
then:function(){return _.Z("div",{class:"yt-spec-avatar-shape__badge-icon"},_.Z(_.DS,{icon:d,size:function(){a:switch(x().size){case "extra-large":var C=16;break a;default:C=13}return C}}))}}))}}),_.Z(_.D9,{cond:function(){var C,X;
return((C=x().decorations)==null?void 0:C.includes(1))||((X=x().decorations)==null?void 0:X.includes(0))&&!Yhm(x().size)},
then:function(){return _.Z("div",{class:function(){var C=x(),X,Q,b={};var A=(b["yt-spec-avatar-shape__live-dot"]=!((X=C.decorations)==null||!X.includes(0)||Yhm(C.size)),b["yt-spec-avatar-shape__new-content"]=!((Q=C.decorations)==null||!Q.includes(1)),b);return _.pQ(A)}})}}),_.je(c,function(){return _.Z("div",{class:function(){var C={};
C=Object.assign((C["yt-spec-avatar-shape__image-overlays"]=!0,C),v());return _.pQ(C)}},c==null?void 0:c())})))))},"O");
jo.idomCompat={callbacks:{overlays:!0}};var izn=_.mO(function(p){function x(){F().endpoint&&_.su(F().endpoint)}
var F=p.data;var N=p.decorations;var h=p.avatarButtonCustomClassName;var c=p.isOverlay;return _.Z("avatar-view-model",null,_.Z(_.D9,{cond:function(){return F().image},
then:function(M){return _.Z(jo,{data:function(){return V8H({data:F(),onTap:F().endpoint?x:void 0,decorations:N==null?void 0:N(),badgeText:void 0,accessibilityText:F().accessibilityText,avatarButtonCustomClassName:h==null?void 0:h()})},
image:M,iconType:"RADAR_LIVE",overlays:function(){return _.Z(LV,{data:F})},
isOverlay:c})}}))},"P");
izn.idomCompat=!0;_.zu=_.S("mweb_enable_sink_avatar_view_model")||_.S("web_enable_sink_lockups_batch")?izn:WKM;_.bt=_.S("mweb_enable_sink_avatar_view_model")||_.S("web_enable_sink_lockups_batch")?izn:_.xp(_.zu);_.iK(WKM);_.iK(OLp);var IAj,$Ob;IAj=_.mO(function(p){var x=p.data;p=p.className;var F=_.O$(),N=function(){return _.r(x().avatar,_.P2)},h=_.Kn(function(){var c,M=x(),f=N(),K=_.wR(x().rendererContext),t=(c=F.value)!=null?c:void 0;
return f?m2m({data:M,avatar:f,onTap:K,element:t}):{size:"medium"}},void 0,"v09a6");
return _.Z("yt-decorated-avatar-view-model",{class:_.$L("yt-decorated-avatar-view-model-wiz",p),el:F},_.Z(_.D9,{cond:function(){var c;return(c=N())==null?void 0:c.image},
then:function(c){return _.Z(jo,{data:h,image:c,iconType:"RADAR_LIVE",overlays:function(){return _.Z(LV,{data:N})}})}}))},"Q");
$Ob=_.S("web_enable_sink_lockups_batch")?IAj:OLp;_.A6=_.S("web_enable_sink_lockups_batch")?IAj:_.xp(OLp);IAj.idomCompat=!0;var TCk=_.JR({avatarViewModel:_.zu,decoratedAvatarViewModel:$Ob});_.iK(BCZ);var eXb,xkZ;eXb=_.mO(function(p){var x=_.oc(),F=function(){return x&&_.H2(p.data().rendererContext)};
_.oC(x,function(){return p.data().rendererContext});
var N=function(){var c=p.data().avatars,M,f;return(f=(M=(c==null?0:c[0])?_.r(c[0],_.P2):void 0)==null?void 0:M.avatarImageSize)!=null?f:"AVATAR_SIZE_UNKNOWN"},h={};
return _.Z("yt-avatar-stack-view-model",{el:x,class:_.$L("yt-avatar-stack-view-model-wiz",p.className,(h["yt-avatar-stack-view-model-wiz--tappable"]=F,h["yt-avatar-stack-view-model-wiz--is-overlay"]=p.isOverlay,h["yt-avatar-stack-view-model-wiz--medium-text"]=p.useMediumText,h)),tabindex:function(){return F()?0:void 0},
role:function(){return F()?"link":void 0},
"aria-label":function(){var c,M;return(M=(c=_.r(p.data().rendererContext,_.Os))==null?void 0:c.label)!=null?M:""}},_.Z(_.D9,{cond:function(){var c;
return p.data().avatars&&!((c=p.hideAvatar)==null?0:c.call(p))},
then:function(){return _.Z("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.Z(_.D9,{cond:function(){return p.data().decoratedText},
then:function(c){var M={};return _.Z("div",{class:_.$L("yt-avatar-stack-view-model-wiz__text-container",(M["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return N()==="AVATAR_SIZE_XXS"||N()==="AVATAR_SIZE_XS"},M["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var f;
return((f=p.isOverlay)==null?void 0:f.call(p))&&(N()==="AVATAR_SIZE_XXS"||N()==="AVATAR_SIZE_XS")},M)),
style:_.a4({width:function(){return RQp(N())+"px"},
height:function(){return RQp(N())+"px"}})},_.Z(_.KQ,{text:c,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.Z(_.Es,{data:function(){return p.data().avatars.slice().reverse()}},{avatarViewModel:function(c){return _.Z("div",{class:function(){return kPk(N())}},_.Z(_.bt,{data:c.data,
decorations:function(){var M;if((M=p.decorations)==null?0:M.call(p))M=p.decorations();else{M=p.data();var f=0;M.avatars&&(f+=M.avatars.length);M.decoratedText&&(f+=1);M=f>1?[3]:[]}return M},
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:p.isOverlay}))},
decoratedAvatarViewModel:function(c){return _.Z("div",{class:function(){return kPk(N())}},_.Z(_.A6,{data:c.data}))}}))}}),_.Z(_.D9,{cond:function(){return p.data().text},
then:function(c){return _.Z(_.KQ,{text:c,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"R");
_.pFC=_.S("web_enable_sink_lockups_batch")?eXb:BCZ;xkZ=_.S("web_enable_sink_lockups_batch")?eXb:_.xp(BCZ);eXb.idomCompat=!0;_.o7(_.mO(function(p){var x=p.data;var F=p.thumbnailSize;return _.Z("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.Z("div",{class:_.$L("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return U2m(F==null?void 0:F())})},_.Z(_.Es,{data:function(){return x().avatarStack}},{avatarStackViewModel:function(N){return _.Z(xkZ,{data:N.data,
decorations:[5]})}})))},"S"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.G2,
thumbnailSize:_.G2}});_.iK(iLd);var Fu6=_.mO(function(p){p=_.Vg(p,{hidden:!1});var x=p.data;return _.Z("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:p.hidden},_.Z(_.KQ,{text:function(){return x().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.Z(_.D9,{cond:function(){return x().subtitle},
then:function(){return _.Z(_.KQ,{text:function(){return x().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"T"),Ndn=_.S("web_enable_sink_lockups_batch")?Fu6:iLd,hIB=_.S("web_enable_sink_lockups_batch")?Fu6:_.xp(iLd);
Fu6.idomCompat=!0;_.S("web_enable_sink_lockups_batch")?_.o7(hIB,"yt-thumbnail-overlay-title-view-model",{props:{data:_.G2,hidden:_.G2}}):_.kL(Ndn,"yt-thumbnail-overlay-title-view-model",{propNames:["data"]});var lUl=_.mO(function(p){p=_.Vg(p,{isClip:!1});var x=p.data,F=p.thumbnailSize,N={};return _.Z("yt-thumbnail-overlay-badge-view-model",{class:_.$L("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(x().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var h="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:h="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return h},function(){return Ibp(F==null?void 0:F())},(N["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
p.isClip,N))},_.Z(_.Es,{data:function(){return x().thumbnailBadges}},{thumbnailBadgeViewModel:function(h){return _.Z(PSB,{data:h.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"U");
lUl.idomCompat=!0;_.o7(lUl,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.G2,thumbnailSize:_.G2,isClip:_.G2}});_.iK($2z);_.kL($2z,"yt-page-indicator-view-model",{propNames:["data"]});var c4D=function(){var p=_.m.apply(this,arguments)||this;p.eventSink=function(){return p};
p.disableInteraction=!1;p.noRoundedCorners=!1;p.isPreviewLoading=!1;p.isOriginalAspectRatio=!1;p.computedObjectFit=!1;p.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return p};
_.E(c4D,_.m);_.l=c4D.prototype;
_.l.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer",
thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model",
properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:_.S("defer_overlays")?1:void 0,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",
eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}},thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",
mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer",properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}};
_.l.onImageLoaded=function(){this.loaded=!0};
_.l.onImageUnloaded=function(){this.loaded=!1};
_.l.computeRichThumbnail=function(p,x,F,N){if(p&&x&&!N&&!_.S("disable_moving_thumbs_handling")&&!F)return x};
_.l.computeImageWidth=function(p,x){return x||9999};
_.l.computeIsOriginalAspectRatio=function(p){return p};
_.l.computeIsLive=function(p){if(p==null?0:p.badges)for(var x=0;x<p.badges.length;x++){var F=p.badges[x];if(F.metadataBadgeRenderer&&F.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(p==null?0:p.thumbnailOverlays)for(x=0;x<p.thumbnailOverlays.length;x++)if(F=p.thumbnailOverlays[x],F.thumbnailOverlayTimeStatusRenderer&&F.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.l.computeObjectFit=function(p,x){return x||(p?"CONTAIN":"")};
_.l.computeNavigationEndpoint=function(p,x,F){return p?x:F};
_.l.computeHasClip=function(p){p=_.a(p||[]);for(var x=p.next();!x.done;x=p.next())if(x.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.l.computeOverlayColor=function(p){var x;return(p==null?0:(x=p.darkColorPalette)==null?0:x.section2Color)?p.darkColorPalette.section2Color:p==null?void 0:p.sampledThumbnailColor};
_.R8.Object.defineProperties(c4D.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return Oi(this.width)}}});
var ut=c4D;ut.prototype.onImageUnloaded=ut.prototype.onImageUnloaded;ut.prototype.onImageLoaded=ut.prototype.onImageLoaded;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],ut.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ut.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(G0J),_.k("design:type",Object)],ut.prototype,"ytdThumbnailBehavior",void 0);
_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],ut.prototype,"componentBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],ut.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ut.prototype,"data",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],ut.prototype,"circular",void 0);
_.B([_.H({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.k("design:type",Object)],ut.prototype,"richThumbnail",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.k("design:type",Boolean)],ut.prototype,"hasClip",void 0);_.B([_.H(),_.k("design:type",Object)],ut.prototype,"eventSink",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],ut.prototype,"queued",void 0);
_.B([_.H({value:!1}),_.k("design:type",Boolean)],ut.prototype,"richGridThumbnail",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],ut.prototype,"useExpandableTooltip",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],ut.prototype,"useUntranslatedNavigationEndpoint",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],ut.prototype,"disableInteraction",void 0);
_.B([_.H({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.k("design:type",Object)],ut.prototype,"computedNavigationEndpoint",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],ut.prototype,"nowPlayingEqualizerOnly",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],ut.prototype,"hidePlaybackStatus",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],ut.prototype,"objectFit",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],ut.prototype,"noRoundedCorners",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],ut.prototype,"watchFeedThumbnail",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],ut.prototype,"isPreviewLoading",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.k("design:type",Object)],ut.prototype,"isOriginalAspectRatio",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.k("design:type",Object)],ut.prototype,"computedObjectFit",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.k("design:type",Boolean)],ut.prototype,"isLiveVideo",void 0);
_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],ut.prototype,"loaded",void 0);_.B([_.H({computed:"computeOverlayColor(data.thumbnail)"}),_.k("design:type",Object)],ut.prototype,"overlayColor",void 0);_.B([_.H({selector:_.nxm}),_.k("design:type",Boolean)],ut.prototype,"inlinePreviewIsEnabled",void 0);_.B([_.H(),_.k("design:type",Number)],ut.prototype,"width",void 0);
_.B([_.w("inlinePreviewIsEnabled"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ut.prototype,"isPreviewDisabled",null);_.B([_.w("width"),_.k("design:type",String),_.k("design:paramtypes",[])],ut.prototype,"thumbnailSize",null);_.B([_.V("image-loaded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ut.prototype,"onImageLoaded",null);
_.B([_.V("image-unloaded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ut.prototype,"onImageUnloaded",null);ut=_.B([_.L({disableElementRegistration:!0,is:"ytd-thumbnail"})],ut);
var aU6=_.kJ()(ut,"ytd-thumbnail",function(){if(jTn===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);jTn=p}p=jTn;return p},{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 F2r=function(p){var x=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12638_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12638_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(F){M9m(x,F)};
this.onLockupMouseLeaveFn=function(F){F=F.relatedTarget;var N,h;((N=document.getElementsByTagName("ytd-video-preview"))==null?0:(h=N.item(0))==null?0:h.contains(F))||(x.terminateVideoPreview(),Yo(x))};
this.onThumbnailMouseDownFn=function(){x.terminateVideoPreview();Yo(x)};
this.onTouchStart=function(){x.JSC$12638_touched=!0};
this.mediaRenderer=p.mediaRenderer;this.thumbnailElement=p.thumbnailElement;this.lockupElement=p.lockupElement;this.videoPreviewOptsInput=p.videoPreviewOpts;Dkb(this);wK(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)):
_.no(Error("Bh")):_.no(Error("Ch")):fUm(this)},MD=function(p){fUm(p);
var x;(x=p.lockupElement)==null||x.removeEventListener("mouseenter",p.onMouseMoveFn);var F;(F=p.lockupElement)==null||F.removeEventListener("mouseleave",p.onLockupMouseLeaveFn);var N;(N=p.lockupElement)==null||N.removeEventListener("touchstart",p.onTouchStart);var h;(h=p.thumbnailElement)==null||h.removeEventListener("mousedown",p.onThumbnailMouseDownFn);Yo(p)},Dkb=function(p){p.inlinePreviewIsEnabledForUser=_.Bi().getState().ui.inlinePreviewIsEnabled;
p.unsubscribeFromInlinePreviewIsEnabled=_.qJ(_.Bi(),_.nxm,function(x){(p.inlinePreviewIsEnabledForUser=x)||Yo(p)});
p.JSC$12638_unsubscribeFromInlinePreviewIsActive=_.qJ(_.Bi(),_.sOE,function(x){(p.inlinePreviewIsActive=x)||Yo(p)})},fUm=function(p){p.unsubscribeFromInlinePreviewIsEnabled();
p.unsubscribeFromInlinePreviewIsEnabled=function(){};
p.JSC$12638_unsubscribeFromInlinePreviewIsActive();p.JSC$12638_unsubscribeFromInlinePreviewIsActive=function(){}},M9m=function(p,x){x.buttons>0||(x=_.Ud("kevlar_lockup_hover_delay",-1),p.JSC$12638_touched&&x>=0?(_.E0.cancelJob(p.videoPreviewJobId),p.videoPreviewJobId=_.TT(_.E0,function(){KuJ(p)},x),p.JSC$12638_touched=!1):KuJ(p))},qaD=function(p){p.videoPreviewJobId=_.TT(_.E0,function(){var x,F,N,h;
return _.D(function(c){if(c.nextAddress==1){if(!wK(p))return c.return();x=p.getVideoPreviewOpts();return x?(N=(F=_.Mt(p.mediaRenderer.hostElement,"yt-open-video-preview-action",[x]))&&F[0])?_.q(c,F[0],3):c.jumpTo(2):c.return()}c.nextAddress!=2&&(N=c.yieldResult===1);N&&pNp((h=p.mediaRenderer)==null?void 0:h.data);_.JB(c)})},2E3)},KuJ=function(p){!p.previewTriggered&&wK(p)&&(p.inlinePreviewIsActive&&p.terminateVideoPreview(),p.previewTriggered=!0,p.mediaRenderer.isInlinePreviewTriggered=!0,_.E0.cancelJob(p.videoPreviewJobId),
p.videoPreviewJobId=_.TT(_.E0,function(){var x,F,N,h;
return _.D(function(c){if(c.nextAddress==1){if(!wK(p))return c.return();x=p.getVideoPreviewOpts();return x?(N=(F=_.Mt(p.mediaRenderer.hostElement,"yt-open-video-preview-action",[x]))&&F[0])?_.q(c,F[0],3):c.jumpTo(2):c.return()}c.nextAddress!=2&&(N=c.yieldResult===1);N&&pNp((h=p.mediaRenderer)==null?void 0:h.data);_.JB(c)})}))};
F2r.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var p,x;if((x=(p=this.videoPreviewOptsInput)==null?void 0:p.videoPreviewData)!=null)p=x;else if(p=this.mediaRenderer.data)if(eQ6(p))p={inlinePlaybackEndpoint:_.g$(p.inlinePlayerData.onVisible),navigationEndpoint:_.g$(p.onTap),thumbnail:"image"in p?p.image:p.thumbnail,thumbnailOverlays:void 0,accessibilityText:xOz(p)};else if("multipleInlinePlaybackEndpoint"in p){var F=_.r(_.r(p.multipleInlinePlaybackEndpoint,BJZ),RVn);if(F!=
null&&F.playerDescriptors){x=[];F=_.a(F.playerDescriptors);for(var N=F.next();!N.done;N=F.next())N=N.value,x.push({inlinePlaybackEndpoint:N.inlinePlaybackEndpoint,navigationEndpoint:N.navigationEndpoint,thumbnail:N.thumbnail,thumbnailOverlays:N.thumbnailOverlays,accessibilityText:xOz(p)});p=x}else p=void 0}else p={inlinePlaybackEndpoint:p.inlinePlaybackEndpoint,navigationEndpoint:p.navigationEndpoint,thumbnail:p.thumbnail,thumbnailOverlays:p.thumbnailOverlays,accessibilityText:xOz(p)};else p=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:p,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var wK=function(p){var x;if(x=p.inlinePreviewIsEnabledForUser)x=(p=p.mediaRenderer.data)?"inlinePlaybackEndpoint"in p&&p.inlinePlaybackEndpoint||eQ6(p)&&p.inlinePlayerData||"multipleInlinePlaybackEndpoint"in p&&p.multipleInlinePlaybackEndpoint?!0:!1:!1;return x};
F2r.prototype.terminateVideoPreview=function(){_.lA(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var Yo=function(p){_.E0.cancelJob(p.videoPreviewJobId);p.inlinePreviewIsActive=!1;p.previewTriggered=!1;p.mediaRenderer.isInlinePreviewTriggered=!1};var ZAj=_.B$(["#"]),t9j=function(){var p=_.m.apply(this,arguments)||this;p.isDisabled=!1;return p};
_.E(t9j,_.m);_.l=t9j.prototype;_.l.configureRendererStamper=function(){return{"data.menu":dK,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.l.attached=function(){this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.getMetadata=function(p){var x=[];if(p.metadataText&&Object.keys(p.metadataText).length>0){var F=this.ytRendererBehavior.getSimpleString(p.metadataText);p.upcomingEventData&&p.upcomingEventData.upcomingEventText&&(F=_.yP(F,Number(p.upcomingEventData.startTime)));x.push(F)}else p.shortViewCountText&&x.push(this.ytRendererBehavior.getSimpleString(p.shortViewCountText)),p.publishedTimeText&&x.push(this.ytRendererBehavior.getSimpleString(p.publishedTimeText)),p.upcomingEventData&&p.upcomingEventData.upcomingEventText&&
(F=this.ytRendererBehavior.getSimpleString(p.upcomingEventData.upcomingEventText),x.push(_.yP(F,Number(p.upcomingEventData.startTime))));return x};
_.l.calculateBylineText=function(p){return p.shortBylineText?p.shortBylineText:p.bylineText?p.bylineText:null};
_.l.calculateIsDisabled=function(p){return!!p.isDisabled};
_.l.computeHrefWithDefault=function(p){return this.ytComponentBehavior.computeHref_(p)||_.Gl(ZAj)};
_.l.onDetailsTap=function(p){var x=this.data&&this.data.navigationEndpoint;x&&!_.mx(_.m9(p)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.S("kevlar_grid_video_renderer_killswitch")?_.hG(this.hostElement,"yt-navigate",{endpoint:x}):this.ytComponentBehavior.resolveCommand(x))};
_.l.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12642_inlinePreviewHoverListener=T7({mediaRenderer:this,lockupElement:_.n(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.n(this.hostElement).querySelector("ytd-thumbnail")})};
_.l.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$12642_inlinePreviewHoverListener)==null||MD(p)};
_.l.computeThumbnailWidth=function(p,x){return x&&x>0?x:p?360:210};
_.l.computeShowChannelThumbnail=function(p,x){var F;return x&&!!(p==null?0:(F=p.channelThumbnailSupportedRenderers)==null?0:F.channelThumbnailWithLinkRenderer)};
_.R8.Object.defineProperties(t9j.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.JSC$12642_inlinePreviewHoverListener)==null?0:wK(p))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var GK=t9j;GK.prototype.dataChanged=GK.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],GK.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],GK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],GK.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.u(_.HL),_.k("design:type",Object)],GK.prototype,"ytdLockupBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],GK.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],GK.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Boolean)],GK.prototype,"noEndpoints",void 0);_.B([_.H({computed:"calculateBylineText(data)"}),_.k("design:type",Object)],GK.prototype,"bylineText",void 0);
_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],GK.prototype,"isSearch",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],GK.prototype,"isDownloading",void 0);_.B([_.H({reflectToAttribute:!0,value:0}),_.k("design:type",Number)],GK.prototype,"width",void 0);_.B([_.H({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.k("design:type",Object)],GK.prototype,"isDisabled",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],GK.prototype,"dataChanged",null);_.B([_.w("lockupIsHovered"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],GK.prototype,"isHovered",null);GK=_.B([_.L({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],GK);
_.P(GK,"ytd-grid-video-renderer",function(){if(SpJ!==void 0)return SpJ;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return SpJ=p},{mode:_.UQ("kevlar_poly_si_batch_j047")?1:2});var dkZ;var V0=function(){var p=_.m.apply(this,arguments)||this;p.roundedContainer=!0;p.skipRoundingTop=!1;p.disableTopPadding=!1;p.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");return p};
_.E(V0,_.m);V0.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
V0.prototype.onClick=function(p){var x,F=(x=this.data)==null?void 0:x.sourceEndpoint;!_.mx(_.m9(p),this.hostElement,["A".toString()])&&F&&_.hG(this.hostElement,"yt-navigate",{endpoint:F})};
_.R8.Object.defineProperties(V0.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 p;return!((p=this.data)==null||!p.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var p,x;return(x=(p=this.data)==null?void 0:p.paragraphMaxLines)!=null?x:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
var Wh=V0;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Wh.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Wh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Wh.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Wh.prototype,"showVerticalDividers",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Wh.prototype,"roundedContainer",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Wh.prototype,"skipRoundingTop",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Wh.prototype,"disableTopPadding",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Wh.prototype,"amsterdamEnabled",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Wh.prototype,"showMetadataAtTop",null);
_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Wh.prototype,"showMetadataBelowTitle",null);_.B([_.H({reflectToAttribute:!0}),_.w("data.menu"),_.k("design:type",Object),_.k("design:paramtypes",[])],Wh.prototype,"hasMenu",null);_.B([_.H({reflectToAttribute:!0}),_.w("data.truncateParagraphs"),_.k("design:type",Object),_.k("design:paramtypes",[])],Wh.prototype,"truncateParagraphs",null);
_.B([_.H({reflectToAttribute:!0}),_.w("data.paragraphMaxLines"),_.k("design:type",Number),_.k("design:paramtypes",[])],Wh.prototype,"paragraphMaxLines",null);_.B([_.H({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.w("data.background"),_.k("design:type",Object),_.k("design:paramtypes",[])],Wh.prototype,"background",null);Wh=_.B([_.L({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],Wh);
_.P(Wh,"ytd-info-panel-content-renderer",function(){if(dkZ!==void 0)return dkZ;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return dkZ=p},{mode:_.UQ("kevlar_poly_si_batch_j076")?1:2});var vYJ;var J4l;var CNB;var Sa6;var r4B=function(){return _.m.apply(this,arguments)||this};
_.E(r4B,_.m);r4B.prototype.computeStyle=function(p){return p};
var Hh=r4B;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Hh.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Hh.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.k("design:type",String)],Hh.prototype,"style_",void 0);Hh=_.B([_.JZ({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],Hh);
_.P(Hh,"yt-channel-thumbnail-with-link-renderer",function(){if(Sa6===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;CNB===void 0&&(CNB=document.createElement("template"));var N=CNB;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Sa6=p}p=Sa6;return p},{mode:2});var mo=function(){var p=_.m.apply(this,arguments)||this;p.modernTypography=_.S("web_modern_typography");return p};
_.E(mo,_.m);mo.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"}}}};
mo.prototype.computeTitleStyle=function(p){return p||null};
mo.prototype.computeAvatarStyle=function(p){return p||null};
mo.prototype.computeShowNavigationButton=function(p,x){return!(p==null||!p.navigationButton||x)};
var oB=mo;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],oB.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],oB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],oB.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.k("design:type",String)],oB.prototype,"titleStyle",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.k("design:type",String)],oB.prototype,"avatarStyle",void 0);_.B([_.H(),_.k("design:type",Boolean)],oB.prototype,"hideNavigationButton",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],oB.prototype,"isModernSd",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],oB.prototype,"modernTypography",void 0);
oB=_.B([_.L({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],oB);
_.P(oB,"ytd-rich-list-header-renderer",function(){if(J4l!==void 0)return J4l;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return J4l=p},{mode:_.UQ("kevlar_poly_si_batch_j058")?1:2});var EYK=function(){return _.m.apply(this,arguments)||this};
_.E(EYK,_.m);EYK.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{richListHeaderRenderer:"ytd-rich-list-header-renderer"}},"data.contents":{id:"contents",mapping:{gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
var ON=EYK;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ON.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ON.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ON.prototype,"data",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],ON.prototype,"isSearch",void 0);ON=_.B([_.L({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],ON);
_.P(ON,"ytd-preview-card-renderer",function(){if(vYJ!==void 0)return vYJ;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return vYJ=p},{mode:1});var XFZ;var jm=function(){return _.m.apply(this,arguments)||this};
_.E(jm,_.m);jm.prototype.configureRendererStamper=function(){return{"data.menu":dK}};
jm.prototype.dataChanged=function(){var p=this.get("colorExtractionPalette.section1Color",this.data);p=_.gX(p);_.eV(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":p})};
jm.prototype.computeCardStyle=function(p){return this.get("style.value",p)||null};
var La=jm;La.prototype.dataChanged=La.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],La.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],La.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],La.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.k("design:type",String)],La.prototype,"cardStyle",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],La.prototype,"dataChanged",null);La=_.B([_.L({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],La);
_.P(La,"ytd-compact-channel-recommendation-card-renderer",function(){if(XFZ!==void 0)return XFZ;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return XFZ=p},{mode:1});var gYb;var Qrj;var zII=function(){var p=_.m.apply(this,arguments)||this;p.alignAuto=!1;p.collapsed=!0;p.isToggled=!1;p.alwaysCollapsed=!1;p.canToggle=!0;p.collapsedHeight=80;p.disableToggle=!1;p.alwaysToggleable=!1;p.reversed=!1;p.shouldUseNumberOfLines=!1;p.recomputeOnResize=!1;p.canToggleJobId=0;p.lastReversed=!1;return p};
_.E(zII,_.m);_.l=zII.prototype;_.l.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.l.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.l.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var p=_.n(this.hostElement),x=p.childNodes,F=document.createDocumentFragment(),N=p.childNodes.length-1;N>=0;N--)_.n(F).appendChild(x[N]);_.S("enable_shadydom_free_scoped_node_methods")?_.Ub(this.hostElement).appendChild(F):p.appendChild(F)}};
_.l.ready=function(){var p=this;_.zD(function(){p.initChildrenObserver()},1)};
_.l.detached=function(){this.detachObserver()};
_.l.toggle=function(p,x){this.canToggle&&(this.isToggled=x,_.hG(this.hostElement,"yt-refit"),p&&p.stopPropagation())};
_.l.reset=function(){this.childrenChanged()};
_.l.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.l.computeIsMoreVisible=function(p,x){return p&&!x};
_.l.computeShouldUseNumberOfLines=function(p){try{return!!p&&window.CSS.supports("-webkit-line-clamp","1")}catch(x){}return!1};
_.l.computeIsLessVisible=function(p,x){return p&&x};
_.l.observeCollapsedHeightAndMaxLines=function(){var p=this.collapsedHeight,x=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.eV(this.hostElement,{"--ytd-expander-max-lines":""+x,"--ytd-expander-collapsed-height":""}):_.eV(this.hostElement,{"--ytd-expander-collapsed-height":p+"px","--ytd-expander-max-lines":""})};
_.l.handleMoreTap=function(p){this.disableToggle||(_.hG(this.hostElement,"yt-expander-more-tapped"),this.toggle(p,!0))};
_.l.handleLessTap=function(p){_.hG(this.hostElement,"yt-expander-less-tapped");this.toggle(p,!1)};
_.l.initChildrenObserver=function(){var p=this;this.observer=new MutationObserver(function(){p.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.l.childrenChanged=function(){var p=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Pl(function(){p.canToggleJobId=0;p.calculateCanCollapse()})}))};
_.l.calculateCanCollapse=function(){this.canToggle=this.shouldUseNumberOfLines?this.alwaysToggleable||this.isToggled||this.content&&this.content.offsetHeight<this.content.scrollHeight:this.alwaysToggleable||this.isToggled||this.content&&this.content.scrollHeight>this.collapsedHeight};
_.l.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.l.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Vx("collapsed-changed",this.collapsed))};
_.l.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Vx("is-toggled-changed",this.isToggled))};
_.l.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Vx("can-toggle-changed",this.canToggle))};
_.R8.Object.defineProperties(zII.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
var Ph=zII;Ph.prototype.canToggleChangedForBinding=Ph.prototype.canToggleChangedForBinding;Ph.prototype.isToggledChangedForBinding=Ph.prototype.isToggledChangedForBinding;Ph.prototype.collapsedChangedForBinding=Ph.prototype.collapsedChangedForBinding;Ph.prototype.observeCollapsedHeightAndMaxLines=Ph.prototype.observeCollapsedHeightAndMaxLines;Ph.prototype.onIronResize=Ph.prototype.onIronResize;Ph.prototype.reversedChanged=Ph.prototype.reversedChanged;Ph.prototype.toggledChanged=Ph.prototype.toggledChanged;
Ph.prototype.alwaysToggleableChanged=Ph.prototype.alwaysToggleableChanged;_.B([_.u(_.n7),_.k("design:type",Object)],Ph.prototype,"ironResizableBehavior",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ph.prototype,"alignAuto",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ph.prototype,"collapsed",void 0);_.B([_.H(),_.k("design:type",Object)],Ph.prototype,"isToggled",void 0);_.B([_.H(),_.k("design:type",Object)],Ph.prototype,"alwaysCollapsed",void 0);
_.B([_.H(),_.k("design:type",Object)],Ph.prototype,"canToggle",void 0);_.B([_.H(),_.k("design:type",Object)],Ph.prototype,"collapsedHeight",void 0);_.B([_.H(),_.k("design:type",Object)],Ph.prototype,"disableToggle",void 0);_.B([_.H(),_.k("design:type",Object)],Ph.prototype,"alwaysToggleable",void 0);_.B([_.H(),_.k("design:type",Object)],Ph.prototype,"reversed",void 0);_.B([_.H(),_.k("design:type",Number)],Ph.prototype,"maxNumberOfLines",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.k("design:type",Object)],Ph.prototype,"shouldUseNumberOfLines",void 0);_.B([_.H(),_.k("design:type",Object)],Ph.prototype,"recomputeOnResize",void 0);_.B([_.Ff("#content"),_.k("design:type",HTMLDivElement)],Ph.prototype,"content",void 0);_.B([_.cT("alwaysToggleable"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ph.prototype,"alwaysToggleableChanged",null);
_.B([_.cT("isToggled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ph.prototype,"toggledChanged",null);_.B([_.w("canToggleJobId"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ph.prototype,"isResetting",null);_.B([_.W("reversed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ph.prototype,"reversedChanged",null);
_.B([_.V("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ph.prototype,"onIronResize",null);_.B([_.W("maxNumberOfLines","collapsedHeight"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ph.prototype,"observeCollapsedHeightAndMaxLines",null);_.B([_.W("collapsed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ph.prototype,"collapsedChangedForBinding",null);
_.B([_.W("isToggled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ph.prototype,"isToggledChangedForBinding",null);_.B([_.W("canToggle"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ph.prototype,"canToggleChangedForBinding",null);Ph=_.B([_.L({disableElementRegistration:!0,is:"ytd-expander"})],Ph);
_.P(Ph,"ytd-expander",function(){if(Qrj!==void 0)return Qrj;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Qrj=p},{mode:1});var TK=function(){return _.m.apply(this,arguments)||this};
_.E(TK,_.m);TK.prototype.computeIsCarousel=function(p){return!!p.isCarousel};
TK.prototype.observeLightsourcePalette=function(){var p,x=(p=this.data)==null?void 0:p.vibrantsourceColorPaletteData;x&&_.S3(this.hostElement,x)};
TK.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
var Bh=TK;Bh.prototype.observeLightsourcePalette=Bh.prototype.observeLightsourcePalette;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Bh.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Bh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Bh.prototype,"data",void 0);_.B([_.H({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Bh.prototype,"isCarousel",void 0);
_.B([_.W("data.vibrantsourceColorPaletteData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Bh.prototype,"observeLightsourcePalette",null);Bh=_.B([_.L({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],Bh);
_.P(Bh,"ytd-media-upsell-renderer",function(){if(gYb!==void 0)return gYb;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="arrow_drop_down" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="arrow_drop_up" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return gYb=p},{mode:2});var srB;var nYk=function(){var p=_.m.apply(this,arguments)||this;p.JSC$12670_playerEvents=new Map;p.listeningToPlayer=!1;p.startX=0;p.active=!1;p.shouldShowButtons=_.S("web_buttons_hidden_killswitch");p.isHighlighted=!1;p.useHighlightStyling=_.S("web_enable_deeper_metadata_highlight_styling");p.modern=_.S("kevlar_modern_sd");p.enableProblemWalkthrough=_.S("problem_walkthrough_sd");return p};
_.E(nYk,_.m);_.l=nYk.prototype;
_.l.configureRendererStamper=function(){return{"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.repeatButton":{id:"repeat-button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{overrides:"[[customButtonProperties]]"}}}},"data.thumbnailOverlay":{id:"overlay",mapping:{thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",params:{isVideoPlaying:!0}}}}}};
_.l.created=function(){this.JSC$12670_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.l.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.p5(this,this.onRepeatButtonToggle));_.S("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.p5(this,this.onActiveUpdate))};
_.l.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.p5(this,this.onRepeatButtonToggle));_.S("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.p5(this,this.onActiveUpdate))};
_.l.onDataChanged=function(){this.removePlayerListeners()};
_.l.onColorPaletteChange=function(){var p={},x;if(_.AF()==="USER_INTERFACE_THEME_DARK"&&((x=this.data)==null?0:x.darkColorPalette)){var F=this.data.darkColorPalette;p["--ytd-macro-markers-list-item-background-color"]=_.QK(this.get("section2Color",F))}else{var N;_.AF()==="USER_INTERFACE_THEME_LIGHT"&&((N=this.data)==null?0:N.lightColorPalette)&&(F=this.data.lightColorPalette,p["--ytd-macro-markers-list-item-background-color"]=_.QK(this.get("section3Color",F)))}F?(p["--ytd-macro-markers-list-item-title-color"]=
_.QK(this.get("primaryTitleColor",F)),p["--ytd-macro-markers-list-item-secondary-color"]=_.QK(this.get("secondaryTitleColor",F)),p["--ytd-macro-markers-list-item-timestamp-background-color"]=_.QK(this.get("section1Color",F)),this.customButtonProperties={customColors:{color:_.QK(this.get("primaryTitleColor",F))}},this.useColorSampling=!0):(p["--ytd-macro-markers-list-item-background-color"]="initial",p["--ytd-macro-markers-list-item-title-color"]="initial",p["--ytd-macro-markers-list-item-secondary-color"]=
"initial",p["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.eV(this.hostElement,p)};
_.l.onEndpointMouseDown=function(p){this.startX=p.clientX};
_.l.onEndpointClick=function(p){var x=this,F,N,h;return _.D(function(c){if(c.nextAddress==1){if(x.startX!==p.clientX)return p.preventDefault(),c.return();x.data&&x.ytRendererBehavior.logExplicitClick(x.data);if(!x.seekWithAnimationOnClick)return c.jumpTo(0);if(p.button!==0||p.shiftKey||p.altKey||p.metaKey||p.ctrlKey||_.mx(_.m9(p),x.hostElement,["BUTTON".toString()]))return c.return();p.stopPropagation();p.preventDefault();return x.data?_.q(c,_.TO().getPlayerPromise(),3):c.return()}F=c.yieldResult;
h=(N=_.r(x.data.onTap,_.B7))==null?void 0:N.startTimeSeconds;h!==void 0&&F.seekToTimeWithAnimation(h*1E3,_.Pi(x.data.title));_.JB(c)})};
_.l.computeLayout=function(p){return p};
_.l.computeIsHighlighted=function(p){return!!p};
_.l.computeCarouselType=function(p){return p};
_.l.hideModernCarousel=function(p){return this.modern&&this.hideThumbnail(p)};
_.l.hideThumbnail=function(p){return this.enableProblemWalkthrough&&p!==null&&p==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.l.onRepeatButtonToggle=function(p){var x=this;p.detail.toggled&&_.TO().getPlayerPromise().then(function(F){x.ytPlayerListenerBehavior.listenToPlayerEvents(F,x.JSC$12670_playerEvents);x.listeningToPlayer=!0})};
_.l.onLoopRangeChange=function(p){var x=_.n(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(x){var F=x.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",x.polymerController.data);if(F){var N=Number(F.endTimeMs);if(Number(F.startTimeMs)!==(p==null?void 0:p.startTimeMs)||N!==(p==null?void 0:p.endTimeMs))x.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.l.removePlayerListeners=function(){var p=this;this.listeningToPlayer&&_.TO().getPlayerPromise().then(function(x){p.ytPlayerListenerBehavior.unlistenFromPlayerEvents(x,p.JSC$12670_playerEvents);p.listeningToPlayer=!1})};
_.l.onActiveUpdate=function(p){this.active=p.detail.active};
var RB=nYk;RB.prototype.onColorPaletteChange=RB.prototype.onColorPaletteChange;RB.prototype.onDataChanged=RB.prototype.onDataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],RB.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],RB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.oz.YtPlayerListenerBehavior),_.k("design:type",_.O7)],RB.prototype,"ytPlayerListenerBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],RB.prototype,"data",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],RB.prototype,"useCustomColors",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],RB.prototype,"active",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],RB.prototype,"shouldShowButtons",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.k("design:type",String)],RB.prototype,"layout",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.k("design:type",Object)],RB.prototype,"isHighlighted",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],RB.prototype,"useHighlightStyling",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],RB.prototype,"modern",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],RB.prototype,"enableProblemWalkthrough",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.k("design:type",String)],RB.prototype,"carouselType",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],RB.prototype,"useColorSampling",void 0);_.B([_.H(),_.k("design:type",Boolean)],RB.prototype,"seekWithAnimationOnClick",void 0);_.B([_.H(),_.k("design:type",Object)],RB.prototype,"customButtonProperties",void 0);
_.B([_.Ff("#repeat-button"),_.k("design:type",HTMLElement)],RB.prototype,"repeatButton",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],RB.prototype,"onDataChanged",null);_.B([_.W("data.lightColorPalette","data.darkColorPalette"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],RB.prototype,"onColorPaletteChange",null);
RB=_.B([_.L({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],RB);
_.P(RB,"ytd-macro-markers-list-item-renderer",function(){if(srB!==void 0)return srB;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return srB=p},{mode:1});var y4B;var bAk;var A4B=function(){var p=_.m.apply(this,arguments)||this;p.modernTypography=_.S("web_modern_typography");return p};
_.E(A4B,_.m);var ko=A4B;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ko.prototype,"ytRendererBehavior",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],ko.prototype,"modernTypography",void 0);_.B([_.H(),_.k("design:type",Object)],ko.prototype,"data",void 0);ko=_.B([_.L({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],ko);
_.P(ko,"ytd-title-and-button-list-header-renderer",function(){if(bAk!==void 0)return bAk;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return bAk=p},{mode:1});var uH6;var YaD=new _.iE("BUTTON_RENDERER_WIZ_TOKEN"),wFb=new _.iE("BUTTON_RENDERER_TOKEN");_.UN=_.mO(function(p){var x=_.J().resolve(_.Bw(YaD));if(x)return _.Z(x,Object.assign({},p));var F=_.J().resolve(wFb);return F?_.Z(Mww,null,function(){return _.Z(Lo,null,function(){var N,h,c,M,f,K,t,d,v,C,X,Q;return void F(p.data(),{onButtonClickCallback:p.onButtonClickCallback,shouldShowIcons:(N=p.shouldShowIcons)==null?void 0:N.call(p),icon:(h=p.icon)==null?void 0:h.call(p),processAllEndpoints:(c=p.processAllEndpoints)==null?void 0:c.call(p),preventDefault:(M=p.preventDefault)==null?void 0:M.call(p),
stopPropagation:(f=p.stopPropagation)==null?void 0:f.call(p),disableButtonRendererClickHandling:(K=p.disableButtonRendererClickHandling)==null?void 0:K.call(p),className:(t=p.className)==null?void 0:t.call(p),buttonOverrides:(d=p.buttonOverrides)==null?void 0:d.call(p),forceModernIconButton:(v=p.forceModernIconButton)==null?void 0:v.call(p),isSubscribe:(C=p.isSubscribe)==null?void 0:C.call(p),alignByText:(X=p.alignByText)==null?void 0:X.call(p),forceDisabled:(Q=p.forceDisabled)==null?void 0:Q.call(p)})})}):
_.Z(_.TG,null)},"V");
_.UN.idomCompat=!0;var GsD=_.mO(function(p){var x=p.notification,F=_.GD(p.useSquareAspectRatio,!1);return _.Z(_.D9,{cond:function(){var N,h;return(N=x().responseText)==null?void 0:(h=N.runs)==null?void 0:h.length},
then:function(){var N={};return _.Z("div",{class:_.$L("yt-mini-game-card-view-model__dismissed-card",(N["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!F()},N["yt-mini-game-card-view-model--dismissed-square-card"]=F,N))},_.Z("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.Z(_.D9,{cond:function(){return x().responseText.runs[0].text},
then:function(h){return _.Z("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:h},h)}}),_.Z(_.Es,{data:function(){return x().buttons}},{buttonRenderer:_.UN,
buttonViewModel:_.nV})))}})},"W");var OAJ=_.mO(function(p){p=_.Vg(p,{data:{},className:"",useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var x=p.data,F=p.useFullWidth,N=p.isDesktopWeb,h=p.addSearchResultTopMargin,c=function(){return x().layout},M=function(){return x().title},f=function(){return x().genre},K=function(){return x().channelName},t=function(){return x().image},d=function(){return x().colorPalette},v=function(){return x().actionButton},C=function(){return x().overflowButton},X=function(){return x().avatar},
Q=function(){var O={};
O=_.$L("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(O["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return N()},O));
return _.Z("div",{class:O},_.Z(V9C,{imageData:t,colorPalette:d}),_.Z(IB,{onTap:function(){return x().onTap},
imageData:t,accessibilityText:function(){return x().accessibilityText},
overlayBadgeText:function(){return x().overlayBadgeText},
iconName:function(){return x().iconName},
unplayableInlinePlaybackIconName:function(){return x().unplayableInlinePlaybackIconName},
isDesktopWeb:N}),_.Z(_.D9,{cond:function(){return!N()},
then:function(){return _.Z(_.TG,null,_.Z(Wub,{layout:c,colorPalette:d,isDesktopWeb:N,overflowButton:C,avatar:X,onTap:function(){return x().onTap},
genre:f,title:M,channelName:K,entityRedesignExperiments:function(){return x().entityRedesignExperiments}}),_.Z($o,{actionButton:v}))}}))},b=function(){var O={};
O=_.$L((O["yt-mini-game-card-view-model--search-result-desktop"]=function(){return N()},O["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!N()},O["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return h()},O));
return _.Z("div",{class:O},Q(),_.Z(HAZ,{description:function(){return x().description},
isDesktopWeb:N,title:M,genre:f,onTap:function(){return x().onTap},
actionButton:v,overflowButton:C,avatar:X,channelName:K}))},A=function(){var O=function(){var sM;
return(sM=x().entityRedesignExperiments)==null?void 0:sM.changePlayablesLayoutWithCta},Fw=function(){var sM,np;
return(np=((sM=x().entityRedesignExperiments)==null?void 0:sM.changePlayablesLayoutWithCtaBelowMetadata)&&N())!=null?np:!1},R=function(){var sM,np;
return(np=((sM=x().entityRedesignExperiments)==null?void 0:sM.changePlayablesLayoutWithContentTypeBadge)&&N())!=null?np:!1},ld=function(){var sM,np;
return(np=((sM=x().entityRedesignExperiments)==null?void 0:sM.enableGameConsoleWithCinematicContainer)&&N())!=null?np:!1},pp=function(){var sM,np;
return(np=((sM=x().entityRedesignExperiments)==null?void 0:sM.enableGameConsoleWithSubtleColor)&&N())!=null?np:!1},Kp={};
Kp=_.$L("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(Kp["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return O()||Fw()||R()||ld()||pp()},Kp["yt-mini-game-card-view-model--change-layout-with-game-console"]=function(){return ld()||pp()},Kp["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return N()},Kp["yt-mini-game-card-view-model--portrait-card-desktop-aspect-ratio-experiment"]=function(){var sM;
return N()&&_.S("enable_playables_reduced_card_count")&&((sM=x().entityRedesignExperiments)==null?void 0:sM.enable11ThumbnailOnHomeShelves)},Kp["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return N()&&x().width===135},Kp["yt-mini-game-card-view-model--thumbnail-square-aspect-ratio"]=function(){var sM;
return(sM=x().entityRedesignExperiments)==null?void 0:sM.enable11ThumbnailOnHomeShelves},Kp["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return N()},Kp["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=function(){return!O()&&N()&&x().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},Kp["yt-mini-game-card-view-model--big-metadata-font"]=function(){return x().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},Kp["yt-mini-game-card-view-model--use-full-width"]=function(){return F()},
Kp["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!v()},Kp));
return _.Z("div",{class:Kp},_.Z(_.D9,{cond:function(){return O()||Fw()||R()||ld()||pp()},
then:function(){return _.Z(_.TG,null,_.Z(_.D9,{cond:function(){return R()===!0},
then:function(){return _.Z(mkj,{imageData:t,colorPalette:d,onTap:function(){return x().onTap},
accessibilityText:function(){return x().accessibilityText},
overlayBadgeText:function(){return x().overlayBadgeText},
iconName:function(){return x().iconName},
unplayableInlinePlaybackIconName:function(){return x().unplayableInlinePlaybackIconName},
contentTypeBadgeText:function(){return x().contentTypeBadgeText},
contentTypeBadgeIconName:function(){return x().contentTypeBadgeIconName},
isDesktopWeb:N})},
else:function(){return _.Z(oY6,{entityRedesignExperiments:function(){return x().entityRedesignExperiments},
colorPalette:d,isDesktopWeb:N,onTap:function(){return x().onTap},
accessibilityText:function(){return x().accessibilityText},
overlayBadgeText:function(){return x().overlayBadgeText},
iconName:function(){return x().iconName},
unplayableInlinePlaybackIconName:function(){return x().unplayableInlinePlaybackIconName},
actionButton:v,imageData:t})}}),_.Z(Wub,{layout:c,
colorPalette:d,isDesktopWeb:N,overflowButton:C,avatar:X,onTap:function(){return x().onTap},
genre:f,title:M,channelName:K,entityRedesignExperiments:function(){return x().entityRedesignExperiments}}),_.Z(_.D9,{cond:function(){return!!O()===!1&&v()},
then:function(){return _.Z($o,{actionButton:v})}}))},
else:function(){return _.Z(_.TG,null,_.Z(V9C,{imageData:t,colorPalette:d}),_.Z(IB,{onTap:function(){return x().onTap},
imageData:t,accessibilityText:function(){return x().accessibilityText},
overlayBadgeText:function(){return x().overlayBadgeText},
iconName:function(){return x().iconName},
unplayableInlinePlaybackIconName:function(){return x().unplayableInlinePlaybackIconName},
isDesktopWeb:N}),_.Z(Wub,{layout:c,colorPalette:d,isDesktopWeb:N,overflowButton:C,avatar:X,onTap:function(){return x().onTap},
genre:f,title:M,channelName:K,entityRedesignExperiments:function(){return x().entityRedesignExperiments}}),_.Z($o,{actionButton:v}))}}))},Y=function(){var O={};
O=_.$L("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(O["yt-mini-game-card-view-model--square-card-desktop"]=function(){return N()},O["yt-mini-game-card-view-model--use-full-width"]=function(){return F()},O));
return _.Z("div",{class:O},_.Z(IB,{onTap:function(){return x().onTap},
imageData:t,accessibilityText:function(){return x().accessibilityText},
overlayBadgeText:function(){return x().overlayBadgeText},
iconName:function(){return x().iconName},
unplayableInlinePlaybackIconName:function(){return x().unplayableInlinePlaybackIconName},
isDesktopWeb:N}),_.Z(Wub,{layout:c,colorPalette:d,isDesktopWeb:N,overflowButton:C,avatar:X,onTap:function(){return x().onTap},
genre:f,title:M,channelName:K,entityRedesignExperiments:function(){return x().entityRedesignExperiments}}))};
return _.Z("mini-game-card-view-model",{class:p.className},_.Z(_.q$,null,_.Z(_.Kt,{when:function(){return c()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return A()}),_.Z(_.Kt,{when:function(){return c()==="MINI_APP_LAYOUT_SQUARE"}},function(){return Y()}),_.Z(_.Kt,{when:function(){return c()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return b()})))},"X");
OAJ.idomCompat=!0;var $o=_.mO(function(p){var x=_.GD(p.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.Z(_.Es,{data:p.actionButton},{buttonViewModel:function(F){return _.Z("div",{class:x},_.Z(_.nV,{data:F.data}))}})},"Y"),jrB=_.mO(function(p){var x=p.contentTypeBadgeText;
return _.Z("div",{class:"yt-mini-game-card-view-model__attribute-badge-container"},_.Z("div",{class:"yt-mini-game-card-view-model__badge"},_.Z("div",{class:"yt-mini-game-card-view-model__badge-content-type"},_.Z(_.DS,{icon:p.iconName,className:"yt-mini-game-card-view-model__icon"}),_.Z("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},x))))},"Z"),IB=_.mO(function(p){var x=p.onTap;
var F=p.imageData;var N=p.accessibilityText;var h=p.overlayBadgeText;var c=p.iconName;var M=p.unplayableInlinePlaybackIconName;p=p.isDesktopWeb;return _.Z(_.fQ,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:x},_.Z(_.VE,{data:F,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(N==null?void 0:N())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.Z(LuK,{overlayBadgeText:h,iconName:c,unplayableInlinePlaybackIconName:M,isDesktopWeb:p}))},"$"),LuK=_.mO(function(p){var x=p.overlayBadgeText;
var F=p.iconName;var N=p.unplayableInlinePlaybackIconName;var h=p.isDesktopWeb;return _.Z("div",{class:"yt-mini-game-card-view-model__badge-container"},_.Z(_.D9,{cond:F,then:function(c){return _.Z("div",{class:"yt-mini-game-card-view-model__badge"},_.Z("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.Z(_.DS,{icon:c,className:"yt-mini-game-card-view-model__icon"}),_.Z("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},x)))}}),_.Z(_.D9,{cond:function(){return!F()&&
x()},
then:function(){return _.Z("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},x)}}),_.Z(_.D9,{cond:function(){return N()&&h()},
then:function(){return _.Z("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.Z(_.DS,{icon:N,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"aa"),PND=_.mO(function(p){var x=p.colorPalette;
var F,N=(F=_.J().resolve(_.Bw(_.AD)))==null?void 0:F();return _.Z("div",{class:"yt-mini-game-card-view-model__background-base",style:_.a4({"background-color":function(){var h="";if(N){var c,M=(c=x().darkColorPalette)==null?void 0:c.section1Color;M&&(h=zF(M,"1"))}else(c=(M=x().lightColorPalette)==null?void 0:M.section4Color)&&(h=zF(c,"1"));return h}})})},"ba"),TdJ=_.mO(function(p){var x=p.enableGameConsoleWithCinematicContainer;
var F=p.colorPalette;var N,h=(N=_.J().resolve(_.Bw(_.AD)))==null?void 0:N();return _.Z("div",{class:"yt-mini-game-card-view-model__game-console-wrapper",style:_.a4({color:function(){var c="";if(x()){var M,f=(M=F().vibrantColorPalette)==null?void 0:M.secondaryTitleColor;f&&(c=zF(f,"1"))}else if(h)(M=(f=F().darkColorPalette)==null?void 0:f.secondaryTitleColor)&&(c=zF(M,".7"));else{var K;(M=(K=F().lightColorPalette)==null?void 0:K.secondaryTitleColor)&&(c=zF(M,".7"))}return c}})},_.Z(_.DS,{icon:"GAME_CONSOLE_DPAD",
className:"yt-mini-game-card-view-model__game-console-icon",size:24}),_.Z(_.DS,{icon:"GAME_CONSOLE_FACE_BUTTONS",className:"yt-mini-game-card-view-model__game-console-icon",size:32}))},"ca"),V9C=_.mO(function(p){var x=p.colorPalette;
var F=p.imageData;var N=function(){return x().vibrantColorPalette?x().vibrantColorPalette.section2Color:x().sectionTwoColor};
return _.Z(_.TG,null,_.Z("div",{class:"yt-mini-game-card-view-model__background-base",style:_.a4({"background-color":function(){return zF(N(),"1")}})}),_.Z("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.a4({"background-image":function(){return"url("+F().sources[0].url+")"}})}),_.Z("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.a4({background:function(){return"linear-gradient(180deg,\n    "+zF(N(),".8")+" 0%,\n    "+zF(N(),".4")+" 25%,\n    "+zF(x().vibrantColorPalette?x().vibrantColorPalette.section4Color:x().sectionFourColor,".8")+" 100%)"}})}))},"da"),mkj=_.mO(function(p){var x=p.imageData;
var F=p.colorPalette;var N=p.onTap;var h=p.accessibilityText;var c=p.overlayBadgeText;var M=p.iconName;var f=p.unplayableInlinePlaybackIconName;var K=p.contentTypeBadgeText;var t=p.contentTypeBadgeIconName;p=p.isDesktopWeb;return _.Z("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.Z(V9C,{imageData:x,colorPalette:F}),_.Z(IB,{onTap:N,imageData:x,accessibilityText:h,overlayBadgeText:c,iconName:M,unplayableInlinePlaybackIconName:f,isDesktopWeb:p}),_.Z(jrB,{contentTypeBadgeText:K,
iconName:t}))},"ea"),Wub=_.mO(function(p){var x=p.layout;
var F=p.colorPalette;var N=p.overflowButton;var h=p.avatar;var c=p.onTap;var M=p.title;var f=p.channelName;var K=p.entityRedesignExperiments;var t=p.genre;var d=function(){var C;return x()!=="MINI_APP_LAYOUT_SQUARE"&&((C=F())==null?0:C.textPrimaryColor)?"color: "+zF(F().textPrimaryColor,".7"):""},v=function(){var C,X,Q;
return(K==null?void 0:(C=K())==null?void 0:C.changePlayablesLayoutWithCta)||(K==null?void 0:(X=K())==null?void 0:X.changePlayablesLayoutWithCtaBelowMetadata)||(K==null?void 0:(Q=K())==null?void 0:Q.changePlayablesLayoutWithContentTypeBadge)};
return _.Z("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.Z(_.D9,{cond:h,then:function(){return _.Z("div",{class:"yt-mini-game-card-view-model__avatar"},_.Z(_.Es,{data:h},{avatarViewModel:_.bt}))}}),_.Z(_.fQ,{command:c,
className:"yt-mini-game-card-view-model__metadata-details"},_.Z("h3",{class:"yt-mini-game-card-view-model__title",title:M},M),_.Z(_.D9,{cond:h,then:function(){return _.Z("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.Z("span",{class:"yt-mini-game-card-view-model__genre",title:f,style:d},f),_.Z("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:d},t))},
else:function(){return _.Z(_.D9,{cond:v,then:function(){return _.Z("span",{class:"yt-mini-game-card-view-model__genre",title:t},t)},
else:function(){return _.Z("span",{class:"yt-mini-game-card-view-model__genre",title:t,style:d},t)}})}})),_.Z("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.Z(_.Es,{data:N},{buttonViewModel:function(C){var X=C.data;
return _.Z(_.nV,{data:function(){return Object.assign({},X(),{customFontColor:v()?void 0:X().customFontColor})}})}})))},"fa"),oY6=_.mO(function(p){var x=p.entityRedesignExperiments;
var F=p.colorPalette;var N=p.isDesktopWeb;var h=p.onTap;var c=p.accessibilityText;var M=p.overlayBadgeText;var f=p.iconName;var K=p.unplayableInlinePlaybackIconName;var t=p.actionButton;var d=p.imageData;var v=function(){var Q;return x==null?void 0:(Q=x())==null?void 0:Q.changePlayablesLayoutWithCta},C=function(){var Q;
return x==null?void 0:(Q=x())==null?void 0:Q.enableGameConsoleWithCinematicContainer},X=function(){var Q;
return x==null?void 0:(Q=x())==null?void 0:Q.enableGameConsoleWithSubtleColor};
return _.Z("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.Z(_.D9,{cond:X,then:function(){return _.Z(PND,{colorPalette:F})},
else:function(){return _.Z(V9C,{imageData:d,colorPalette:F})}}),_.Z(IB,{onTap:h,
imageData:d,accessibilityText:c,overlayBadgeText:M,iconName:f,unplayableInlinePlaybackIconName:K,isDesktopWeb:N}),_.Z(_.D9,{cond:function(){return(v==null?void 0:v())&&(t==null?void 0:t())},
then:function(){return _.Z($o,{actionButton:t})}}),_.Z(_.D9,{cond:function(){return C()||X()},
then:function(){return _.Z(TdJ,{colorPalette:F,enableGameConsoleWithCinematicContainer:function(){return(C==null?void 0:C())||!1}})}}))},"ga"),HAZ=_.mO(function(p){var x=p.description;
var F=p.isDesktopWeb;var N=p.title;var h=p.genre;var c=p.onTap;var M=p.actionButton;var f=p.overflowButton;var K=p.avatar;p=p.channelName;var t={};t=_.$L("yt-mini-game-card-view-model--search-result-metadata-wrapper",(t["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=F,t["yt-mini-game-card-view-model--show-unplayable-on-hover"]=F,t["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!F()},t));
var d={};d=_.$L("yt-mini-game-card-view-model__search-result-info-row",(d["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!F()},d));
return _.Z("div",{class:t},_.Z("div",{class:d},_.Z(_.fQ,{command:c,className:"yt-mini-game-card-view-model__metadata-details"},_.Z("h3",{class:"yt-mini-game-card-view-model__title",title:N},N),_.Z("span",{class:"yt-mini-game-card-view-model__genre",title:h},h)),_.Z($o,{actionButton:M,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.Z("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.Z(_.Es,{data:f},{buttonViewModel:_.nV}))),_.Z("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.Z("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.Z("div",{class:"yt-mini-game-card-view-model__avatar"},_.Z(_.Es,{data:K},{avatarViewModel:function(v){var C=v.data;return _.Z(_.bt,{data:function(){return Object.assign({},C(),{avatarImageSize:F()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.Z(_.fQ,{command:c,
className:"yt-mini-game-card-view-model__description"},_.Z("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},p)),_.Z(_.fQ,{command:c,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.Z("div",null)))),_.Z(_.D9,{cond:F,then:function(){return _.Z(_.fQ,{command:c,className:"yt-mini-game-card-view-model__description"},x)}}))},"ha");var BdZ={isAdsVideo:!0},RI6={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},ksI={showPlayerControls:!1,videoPreviewDurationMs:15E3},Cep={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.S("web_shorts_imp_fullwidth_killswitch")},Ukl={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:1,cropPlayerToFillThumbnailHorizontally:!0};var iAv=function(){var p=_.m.apply(this,arguments)||this;p.isSearch=!1;p.isRichGrid=!1;return p};
_.E(iAv,_.m);_.l=iAv.prototype;_.l.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.l.dismissibleItemOnYtServiceRequestSent=function(p,x){x.actions&&this.dismissibleItemProcessActions(p,x.actions)};
_.l.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.l.attached=function(){this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.dataChanged=function(){this.dismissibleItemReset();this.updateInlinePreviewHoverListeners()};
_.l.dismissibleItemProcessActions=function(p,x){for(var F=0;F<x.length;F++){var N=x[F];_.r(N,_.JS)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.r(N,_.JS)),p.stopPropagation())}};
_.l.dismissibleItemHandleReplaceEnclosingAction=function(p){this.dismissedRenderer=p.item;this.isDismissed=!0};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.thumbnailWrapper&&(this.JSC$12707_inlinePreviewHoverListener=T7({mediaRenderer:this,lockupElement:this.miniGameCardViewModel,thumbnailElement:this.thumbnailWrapper,videoPreviewOpts:Ukl}))};
_.l.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$12707_inlinePreviewHoverListener)==null||MD(p)};
_.l.experimentalPropertiesChanged=function(){this.ytIdomTemplatingBehavior.debounceRender()};
_.l.renderIdom=function(){if(this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var p=this.data.layout==="MINI_APP_LAYOUT_SQUARE";w$(GsD)({notification:this.dismissedRenderer.notificationMultiActionRenderer,useSquareAspectRatio:p===void 0?!1:p})}else w$(OAJ)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0}),this.updateInlinePreviewHoverListeners()};
var em=iAv;em.prototype.experimentalPropertiesChanged=em.prototype.experimentalPropertiesChanged;em.prototype.dataChanged=em.prototype.dataChanged;em.prototype.dismissibleItemOnRequestSent=em.prototype.dismissibleItemOnRequestSent;em.prototype.dismissibleItemOnYtServiceRequestSent=em.prototype.dismissibleItemOnYtServiceRequestSent;_.B([_.u(lTJ),_.k("design:type",Object)],em.prototype,"ytIdomTemplatingBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],em.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],em.prototype,"isSearch",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],em.prototype,"isDismissed",void 0);_.B([_.H(),_.k("design:type",Object)],em.prototype,"dismissedRenderer",void 0);_.B([_.Ff(".yt-mini-game-card-view-model__thumbnail-wrapper"),_.k("design:type",HTMLElement)],em.prototype,"thumbnailWrapper",void 0);
_.B([_.Ff("mini-game-card-view-model"),_.k("design:type",HTMLElement)],em.prototype,"miniGameCardViewModel",void 0);_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],em.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.B([_.V("yt-service-request-sent-button-renderer"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],em.prototype,"dismissibleItemOnRequestSent",null);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],em.prototype,"dataChanged",null);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],em.prototype,"isRichGrid",void 0);_.B([_.W("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],em.prototype,"experimentalPropertiesChanged",null);
em=_.B([_.JZ({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],em);
_.P(em,"ytd-mini-game-card-view-model",function(){if(uH6!==void 0)return uH6;var p=document.createElement("template");_.g(p,"\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");p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return uH6=p},{mode:_.UQ("kevlar_poly_si_batch_j081")?1:2});var IUv;var $km;var eIZ=function(){return _.kM.apply(this,arguments)||this};
_.E(eIZ,_.kM);eIZ.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
eIZ.prototype.getContinuationUrl=function(p){var x={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(x.itct=this.data.clickTrackingParams);return _.Hw(p,x)};
var pAZ=eIZ;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],pAZ.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],pAZ.prototype,"data",void 0);pAZ=_.B([_.JZ({is:"yt-reload-continuation",noInjection:!0})],pAZ);var xwB;var F6j;var N2n=function(){var p=_.m.apply(this,arguments)||this;p.notificationData={};return p};
_.E(N2n,_.m);_.l=N2n.prototype;_.l.isMenuExpanded=function(p){return p&&p.length<=1?"undefined":"false"};
_.l.dataChanged_=function(){this.selected=void 0;var p=this.computeSelectedIndex_(this.data);p>=0&&(this.selected=p);p=this.data&&this.data.length>1;_.iX(this.hostElement,"has-items",p);_.n(this.hostElement).querySelector("#label").tabIndex=p?0:-1};
_.l.onDropdownOpen=function(){var p=_.b0();if(this.parentTrackingParams&&this.data){var x=_.fr(this.parentTrackingParams);this.data.forEach(function(F){p&&x&&F.trackingParams&&(F=_.fr(F.trackingParams),_.jz(p,x,F),_.P5(p,[F]))})}else this.parentTrackingParams||_.no(new _.qE("No parent tracking params passed in for yt-dropdown-menu."))};
_.l.hasNotification=function(p){var x;if(p.targetId&&((x=this.notificationData)==null?0:x.targetId)){var F;return p.targetId===((F=this.notificationData)==null?void 0:F.targetId)}};
_.l.computeSelectedIndex_=function(p){if(p)for(var x=0,F=p.length;x<F;x++)if(p[x].selected)return x;return-1};
_.l.computeLabel_=function(p){return this.data&&p!=void 0?this.data[p].title:""};
_.l.computeShowIcon_=function(p,x){return!x&&!!p};
_.l.computeVerticalOffset_=function(p){return p?36:0};
_.l.computeEndpoint_=function(p){return p.endpoint||p.navigationEndpoint};
_.l.onLabelClick_=function(p){this.data&&this.data.length<=1?p.stopPropagation():this.menuExpanded="true"};
_.l.onIronActivate_=function(p){p=p.detail.item;var x=_.n(this.hostElement).querySelector("#repeat").itemForElement(p);if(x&&x.trackingParams){var F=_.b0(),N=_.fr(x.trackingParams);F&&_.B5(F,N)}if(x&&x.serviceEndpoint)_.S("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(x.serviceEndpoint):_.fc(this.hostElement,[x.serviceEndpoint]),_.hG(this.hostElement,"yt-playlist-reloading");else a:{if((x=p.querySelector("yt-supported-renderers"))&&(x=
x.rendererElement)&&x.is=="yt-reload-continuation"){x.trigger();break a}(p=p.querySelector("yt-reload-continuation"))&&p.trigger()}};
_.l.onTap_=function(p){p.preventDefault()};
_.l.onItemTap_=function(p){this.ytEndpointBehavior.onEndpointTap_(p)};
_.l.onLinkFocus_=function(p){try{var x=p.target}catch(N){}if(x){var F=x.querySelector("tp-yt-paper-item");F&&_.sQ(this,"focus",function(){F.focus()})}};
_.l.onMenuClose_=function(){this.menuExpanded="false"};
_.l.isLabelIconActive_=function(p){return p==="true"};
_.l.computeHasSubtitle_=function(p){return!!p};
_.l.computeHrefForItem_=function(p){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(p))};
_.l.updateSelectedFromBinding=function(p){this.selected=p.detail.value};
var pS=N2n;pS.prototype.onMenuClose_=pS.prototype.onMenuClose_;pS.prototype.onTap_=pS.prototype.onTap_;pS.prototype.onIronActivate_=pS.prototype.onIronActivate_;pS.prototype.onDropdownOpen=pS.prototype.onDropdownOpen;pS.prototype.dataChanged_=pS.prototype.dataChanged_;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],pS.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.NY.YtEndpointBehavior),_.k("design:type",Object)],pS.prototype,"ytEndpointBehavior",void 0);
_.B([_.H(),_.k("design:type",Array)],pS.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],pS.prototype,"parentTrackingParams",void 0);_.B([_.H(),_.k("design:type",Object)],pS.prototype,"selected",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],pS.prototype,"useLabel",void 0);_.B([_.H(),_.k("design:type",String)],pS.prototype,"icon",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],pS.prototype,"iconLabel",void 0);
_.B([_.H(),_.k("design:type",String)],pS.prototype,"ariaLabel",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],pS.prototype,"disabled",void 0);_.B([_.H({computed:"isMenuExpanded(data)"}),_.k("design:type",String)],pS.prototype,"menuExpanded",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],pS.prototype,"closeOnActivate",void 0);_.B([_.H({reflectToAttribute:!0,value:_.S("web_modern_buttons")}),_.k("design:type",Boolean)],pS.prototype,"modernButtons",void 0);
_.B([_.H(),_.k("design:type",Object)],pS.prototype,"notificationData",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pS.prototype,"dataChanged_",null);_.B([_.V("paper-dropdown-open"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],pS.prototype,"onDropdownOpen",null);
_.B([_.V("iron-activate"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],pS.prototype,"onIronActivate_",null);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],pS.prototype,"onTap_",null);_.B([_.V("iron-overlay-closed"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],pS.prototype,"onMenuClose_",null);
pS=_.B([_.JZ({is:"yt-dropdown-menu",disableElementRegistration:!0})],pS);
_.P(pS,"yt-dropdown-menu",function(){if(F6j===void 0){var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[ariaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;xwB===void 0&&(xwB=document.createElement("template"));var N=xwB;F.call(x,N.content.cloneNode(!0),p.content.firstChild);F6j=p}p=F6j;return p},{mode:2});var xc=function(){var p=_.m.apply(this,arguments)||this;p.hasNotification=!1;return p};
_.E(xc,_.m);xc.prototype.computeId=function(p){return p};
xc.prototype.computeHorizontalAlign=function(p){return p?"right":"left"};
xc.prototype.computeAccessibilityLabel=function(p){var x,F;return((x=p.accessibility)==null?void 0:(F=x.accessibilityData)==null?void 0:F.label)||null};
xc.prototype.notificationDataChanged=function(){var p;this.hasNotification=!!this.notificationData&&!((p=this.data)==null?0:p.icon)};
var F$=xc;F$.prototype.notificationDataChanged=F$.prototype.notificationDataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],F$.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.sB.YtLiveChatTooltipTargetingBehavior),_.k("design:type",Object)],F$.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],F$.prototype,"data",void 0);
_.B([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.k("design:type",String)],F$.prototype,"id",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],F$.prototype,"isRightAligned",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],F$.prototype,"disabled",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],F$.prototype,"closeOnActivate",void 0);_.B([_.H(),_.k("design:type",Object)],F$.prototype,"notificationData",void 0);
_.B([_.H(),_.k("design:type",Object)],F$.prototype,"hasNotification",void 0);_.B([_.W("notificationData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],F$.prototype,"notificationDataChanged",null);F$=_.B([_.JZ({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],F$);
_.P(F$,"yt-sort-filter-sub-menu-renderer",function(){if($km===void 0){var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;IUv===void 0&&(IUv=document.createElement("template"));var N=IUv;F.call(x,N.content.cloneNode(!0),p.content.firstChild);$km=p}p=$km;return p},{mode:2});_.iK(hXM);
var hzJ=_.mO(function(p){var x=p.children;var F=p.className;var N=p.style;var h=p.role;var c=p.ariaSelected;var M=p.ariaLabel;var f=p.ariaHidden;var K=p.ariaLabelledby;var t=p.ariaDescribedby;var d=p.command;var v=p.elementsCommand;var C=p.forceNewState;var X=p.tabIdentifier;var Q=p.target;var b=p.tabIndex;var A=p.stopPropagation;p=_.Kn(function(){var Y=_.zT({innertubeCommand:d==null?void 0:d(),elementsCommand:v==null?void 0:v(),forceNewState:C==null?void 0:C(),stopPropagation:(A==null?void 0:A())!==
!1});Y||(Y={});Y["aria-hidden$"]=f==null?void 0:f();var O;Y.tabindex$=(O=b==null?void 0:b())!=null?O:Y.tabindex$;var Fw;Y["force-new-state$"]=(Fw=C==null?void 0:C())!=null?Fw:Y["force-new-state$"];var R;Y.role$=(R=h==null?void 0:h())!=null?R:Y.role$;var ld;Y["aria-hidden$"]=(ld=f==null?void 0:f())!=null?ld:Y["aria-hidden$"];var pp;Y.target$=(pp=Q==null?void 0:Q())!=null?pp:Y.target$;return Y},void 0,"SU0Mnc");
return _.Z(_.fQ,{aTagConfig:p,className:F,style:N,ariaLabel:M,ariaLabelledby:K,ariaDescribedby:t,ariaSelected:c,tabIdentifier:X},x)},"ia");var lAp=_.S("kevlar_modern_sd")?"yt-spec-place-data-view-model-shape__thumbnail-round":"",lPk=_.xp(c1J);_.iK(c1J);_.o7(lPk,"place-data-view-model",{props:{data:_.G2}});var cVl=new _.iE("INLINE_PLAYBACK_HOOK_TOKEN");var Sp6=function(p){this.setActiveSlideIndex=p;this.jobIds=[];this.isSlideshowPlaying=!1},EAJ=function(p){if(p.isSlideshowPlaying){p.isSlideshowPlaying=!1;
for(var x=p.jobIds,F=0,N=x.length;F<N;F++)_.E0.cancelJob(x[F]);p.jobIds.length=0}},r1k=function(p,x){p.isSlideshowPlaying||(p.isSlideshowPlaying=!0,aPC(p),M2n(p,x,0))},aPC=function(p){_.TT(_.E0,function(){p.setActiveSlideIndex(0)},1)},M2n=function(p,x,F){p.jobIds.push(_.TT(_.E0,function(){var N=F<x-1?F+1:0;
p.setActiveSlideIndex(N);M2n(p,x,N)},1800))};var Zzm=new _.iE("IMAGE_ON_LOAD_HANDLER_TOKEN");var DwD=_.mO(function(p){return _.Z("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.Z(_.D9,{cond:function(){var x;return(x=p.data())==null?void 0:x.thumbnail},
then:function(x){return _.Z(_.VE,{data:x,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ja");_.N5=_.mO(function(p){var x=p.data;var F=p.lockupExperiments;p={};return _.Z("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.Z("div",{class:_.$L("ytThumbnailOverlayButtonViewModelButton",(p.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var N;return F&&((N=F())==null?void 0:N.useLegacySizedIconButton)},p))},_.Z(_.Es,{data:function(){return x().overlayButton}},{buttonViewModel:function(N){return _.Z(_.nV,{data:N.data,
buttonOverrides:function(){var h;return F&&((h=F())==null?0:h.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"ka");
_.N5.idomCompat=!0;var fP6=_.mO(function(p){var x=_.h0(function(F){F.preventDefault();return!1});
return _.Z("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":x},_.Z(_.Es,{data:function(){return p.data().buttons}},{toggleButtonViewModel:function(F){return _.Z("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.Z(_.QP,{data:F.data}))}}))},"la");
fP6.idomCompat=!0;var K6j=_.mO(function(p){var x=function(){var F;return((F=_.r(p.data().rendererContext,_.Os))==null?void 0:F.label)||""};
return _.Z("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.Z(_.D9,{cond:function(){return p.data().image},
then:function(){return _.Z("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.Z(_.VE,{data:function(){return p.data().image},
alt:x}))}}),_.Z(_.D9,{cond:function(){return p.data().text},
then:function(){return _.Z("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return p.data().text})}}))},"ma");var tFd=_.JR({thumbnailOverlayTitleViewModel:Ndn,thumbnailOverlayBadgeViewModel:lUl,thumbnailBottomOverlayViewModel:TLv,thumbnailOverlayFullViewModel:K6j,thumbnailOverlayButtonViewModel:_.N5}),dO6=_.JR({thumbnailHoverOverlayViewModel:RXl,thumbnailHoverOverlayToggleActionsViewModel:fP6}),vA6=_.JR({animatedThumbnailOverlayViewModel:DwD});_.iK(J1r);var qnC=_.mO(function(p){var x=[],F=function(){var v,C;return Oi((v=p.width)==null?void 0:v.call(p),(C=p.height)==null?void 0:C.call(p))},N=_.J().resolve(_.Bw(Zzm)),h=_.oc(function(){x.push("elRef.value set");
var v;(v=p.playbackRef)==null||v.call(p,{thumbnailElRef:h,thumbnail:p.data().image,thumbnailOverlays:p.data().overlays,thumbnailSize:F()})});
_.J9(function(){x.push("onInit");_.E_(function(){x.push("onCleanup")})});
var c=_.g5(MFd),M=function(){var v,C;return(C=(v=p.aspectRatio)==null?void 0:v.call(p))!=null?C:0},f=function(){return(p.data().image?_.ljw(p.data().image):M())<=1&&M()===0},K=function(){return f()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},t=function(){h.value||_.no(new _.qE("Thumbnail elRef.value is null",x.join("\n")));
N&&h.value&&N(h.value)},d={};
return _.Z("yt-thumbnail-view-model",{class:_.$L("yt-thumbnail-view-model",p.className,function(){return CS6(M())},function(){var v,C;
a:{var X=F(),Q=(v=p.disableRounding)==null?void 0:v.call(p);v=(C=p.isClip)==null?void 0:C.call(p);if(!Q&&!v)switch(X){case "large":C="yt-thumbnail-view-model--large";break a;case "small":C="yt-thumbnail-view-model--small";break a;default:C="yt-thumbnail-view-model--medium";break a}C=void 0}return C},(d["yt-thumbnail-view-model--cinematic"]=f,d)),
style:_.a4({"background-color":function(){var v,C=f()?(v=p.data().backgroundColor)==null?void 0:v.lightTheme:void 0;return C?zF(C,"1"):void 0}}),
el:h},_.Z(_.D9,{cond:f,then:function(){return _.Z("div",{class:"yt-thumbnail-view-model__blurred-image"},_.Z(_.VE,{data:function(){return p.data().image},
alt:"",contentMode:K,targetWidth:p.width,onload:t}))}}),_.Z("div",{class:"yt-thumbnail-view-model__image"},_.Z(_.VE,{data:function(){return p.data().image},
alt:"",contentMode:K,targetWidth:p.width,onload:t}),null),_.Z(_.Es,{data:function(){return p.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:hIB,thumbnailOverlayBadgeViewModel:function(v){return _.Z(lUl,{data:v.data,thumbnailSize:F,isClip:p.isClip})},
thumbnailBottomOverlayViewModel:TLv,thumbnailOverlayFullViewModel:K6j,thumbnailOverlayButtonViewModel:function(v){return _.Z(_.N5,{data:v.data,lockupExperiments:p.lockupExperiments})}}),_.Z(_.Es,{data:function(){var v;
return((v=p.hovered)==null?0:v.call(p))?p.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(v){return _.Z(kwv,{data:v.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:fP6}),_.Z(_.Es,{data:function(){var v;return((v=p.hovered)==null?0:v.call(p))&&c()?p.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:DwD}),_.Z(_.D9,{cond:p.isClip,then:function(){return K2p()}}))},"na"),ZGb=_.S("web_enable_sink_lockups_batch")?qnC:J1r,hK=_.S("web_enable_sink_lockups_batch")?qnC:_.xp(ZGb,{callbacks:{playbackRef:!0}});
qnC.idomCompat={callbacks:{playbackRef:!0}};var XNz=_.JR({thumbnailViewModel:ZGb});_.iK(gAm);var t2j=_.mO(function(p){var x=_.a(_.hu(-1,void 0,"GEkecf")),F=x.next().value,N=x.next().value;_.J9(function(){var h=new Sp6(N);r1k(h,p.data().thumbnails.length);_.E_(function(){EAJ(h)})});
return _.Z("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.Z(_.Es,{data:function(){return p.data().thumbnails}},{thumbnailViewModel:function(h,c){return _.Z("div",{class:function(){var M=!p.data().primaryThumbnail,f=c(),K=F(),t=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
M&&f===0&&t.push("yt-collection-thumbnail-slideshow--first-slide");f<=K&&t.push("yt-collection-thumbnail-slideshow--show-slide");return t.join(" ")}},_.Z(hK,{data:h.data,
disableRounding:p.disableRounding}))}}))},"oa"),y1w=_.S("web_enable_sink_lockups_batch")?t2j:gAm,dwZ=_.S("web_enable_sink_lockups_batch")?t2j:_.xp(gAm);
t2j.idomCompat=!0;var QTw=new _.iE("DWELL_DETECTOR_REGISTRY_TOKEN");var nAd=_.JR({thumbnailViewModel:ZGb});_.iK(bzp);var JVv=_.mO(function(p){var x=sTB(p.triggeringElement),F=function(){return!!p.data().primaryThumbnail};
return _.Z("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.Z(v7D,{stackEnabled:F,thumbnailSize:function(){var N,h;return Oi((N=p.width)==null?void 0:N.call(p),(h=p.height)==null?void 0:h.call(p))},
doubleStack:p.doubleStack,stackColor:function(){return p.data().stackColor}},_.Z("div",null,_.Z(_.Es,{data:function(){return p.data().primaryThumbnail}},{thumbnailViewModel:function(N){var h={};
return _.Z(hK,{data:N.data,width:p.width,height:p.height,aspectRatio:p.aspectRatio,disableRounding:p.disableRounding,className:_.$L((h["yt-collection-thumbnail-view-model--has-stacks"]=F,h)),hovered:p.hovered,playbackRef:p.playbackRef})}}),_.Z(_.D9,{cond:function(){var N;
return x()&&((N=p.data().thumbnails)==null?void 0:N.length)},
then:function(){return _.Z("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.Z(dwZ,{data:p.data,disableRounding:function(){return!F()}}))}}))))},"pa"),CeD=_.S("web_enable_sink_lockups_batch")?JVv:_.xp(bzp,{callbacks:{playbackRef:!0}});
JVv.idomCompat={callbacks:{playbackRef:!0}};
var v7D=_.mO(function(p){var x=p.children;var F=p.stackEnabled;var N=p.thumbnailSize;var h=p.doubleStack;var c=p.stackColor;var M,f=(M=_.J().resolve(_.Bw(_.AD)))==null?void 0:M();return _.Z(_.D9,{cond:F,then:function(){return _.Z(F2b,{data:function(){var K,t;return{experimentEnabled:!0,thumbnailSize:N(),doubleStack:h==null?void 0:h(),color:f?c==null?void 0:(K=c())==null?void 0:K.darkTheme:c==null?void 0:(t=c())==null?void 0:t.lightTheme,enableResponsiveMode:!1}}},x)},
else:function(){return x}})},"qa");var SnJ=new _.iE("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var cJ;_.li={calledOnce:!0,state:"visible"};cJ={calledOnce:!0,state:"hidden"};_.aK=_.mO(function(p){var x=p.data;var F=p.customCommandResolver;var N=p.className;var h=p.delayedClassName;p=p.animationEntityKey;var c=_.oc(),M=_.GD(p,""),f=_.MN(gm$,M),K=function(){var pp,Kp;return(Kp=(pp=f())==null?void 0:pp.value)!=null?Kp:!1},t=function(){_.wo(_.KV("booleanEntity",M(),{key:M(),
value:!0}));Y=void 0};
p=_.a(_.ct(K));var d=p.next().value,v=p.next().value;p=_.a(_.ct(K));var C=p.next().value,X=p.next().value;p=_.a(_.ct(function(){var pp;return K()?(pp=x().styleTransitionConfig)==null?void 0:pp.destinationStyle:void 0}));
var Q=p.next().value,b=p.next().value,A=function(){var pp=Object.assign({},x(),Q()&&{style:Q()}),Kp,sM,np=pp.label,Jz=(Kp=pp.interaction)==null?void 0:(sM=Kp.accessibility)==null?void 0:sM.label;Kp=pp.iconImage?pp.label&&pp.label.content?pp.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:np,accessibilityLabel:Jz,style:wN$(pp.style),type:Gwp(pp.style),state:"active",size:YpM(pp.size),iconPosition:Kp,disabled:!1,aTagConfig:uvE(pp,F)}},Y;
_.U$(c,{visibilityCallback:function(pp){var Kp,sM=(Kp=x().interaction)==null?void 0:Kp.onFirstVisible;pp&&sM&&_.su(sM)},
showOption:_.li});var O=function(){return dbH(A(),!!x().iconImage)};
N=_.$L(function(){return"ytwAdButtonViewModelHost"},function(){return x().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var pp=!!x().delayedAppearanceConfig,Kp=d();
return pp?Kp?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var pp=!!x().delayedAppearanceConfig,Kp=C();
return pp?Kp?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!x().delayedAppearanceConfig||d()?h==null?void 0:h():""},N!=null?N:"");
var Fw=function(){var pp,Kp=(pp=x().delayedAppearanceConfig)==null?void 0:pp.delayedInvisibleSeconds;Kp&&(Y=_.tR(_.E0,function(){v(!0);R()},Kp*1E3))},R=function(){var pp,Kp=(pp=x().delayedAppearanceConfig)==null?void 0:pp.delayedVisibleSeconds;
Kp&&(Y=_.tR(_.E0,function(){X(!0);ld()},Kp*1E3))},ld=function(){var pp,Kp=(pp=x().styleTransitionConfig)==null?void 0:pp.styleTransitionSeconds,sM,np=(sM=x().styleTransitionConfig)==null?void 0:sM.destinationStyle;
Kp&&np?Y=_.tR(_.E0,function(){b(np);t()},Kp*1E3):t()};
_.J9(function(){var pp;((pp=x().delayedAppearanceConfig)==null?0:pp.transitionDurationSeconds)&&c.value.style.setProperty("transition-duration",x().delayedAppearanceConfig.transitionDurationSeconds+"s");Fw()});
_.E_(function(){Y&&_.E0.cancelJob(Y)});
return _.Z("ad-button-view-model",{class:N,el:c},_.Z(_.D9,{cond:A,then:function(){return _.Z($w,{data:A,icon:function(){return _.Z(_.D9,{cond:function(){return x().iconImage},
then:function(pp){return _.Z(_.VE,{data:pp,alt:"",targetWidth:O,targetHeight:O,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"ra");var rVv=_.mO(function(p){var x=p.data;p=_.oc();_.U$(p,{visibilityCallback:function(F){var N,h=(N=x().interaction)==null?void 0:N.onFirstVisible;F&&h&&_.su(h)},
showOption:_.li});return _.Z("ad-button-group-view-model",{class:function(){return"ytwAdButtonGroupViewModelHost"},
el:p},_.Z("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.Z(_.Es,{data:function(){return x().secondaryAdButton}},{adButtonViewModel:function(F){return _.Z(_.aK,{data:F.data})}})),_.Z("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.Z(_.Es,{data:function(){return x().primaryAdButton}},{adButtonViewModel:function(F){return _.Z(_.aK,{data:F.data})}})))},"sa");var E7k=_.mO(function(p){var x=function(){var F;return((F=p.data())==null?void 0:F.answers)||[]};
return _.Z("yt-survey-icons",{class:"ytSurveyIconsHost"},_.Z("div",{class:"ytSurveyIconsHeader"},_.Z("div",{class:"ytSurveyIconsTitle"},function(){var F;return(F=p.data())==null?void 0:F.text}),_.Z("div",null,_.Z($w,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var F;(F=p.onDismiss)==null||F.call(p)}}},
iconName:"DISMISSAL"}))),_.Z("div",null,_.Z("div",{class:"ytSurveyIconsAnswers"},_.Z(_.ft,{each:function(){return x()},
keyBy:"INDEX"},function(F,N){return _.Z("div",null,_.Z($w,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var h;(h=p.onSelect)==null||h.call(p,F(),N)}}},
icon:function(){return _.Z(_.DS,{icon:function(){var h,c;return(h=F())==null?void 0:(c=h.icon)==null?void 0:c.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.Z("div",{class:"ytSurveyIconsAnswersText"},_.Z("div",null,function(){return x().length?x()[0].text:""}),_.Z("div",null,function(){return x().length?x()[x().length-1].text:""}))))},"ta");var XA6=_.mO(function(p){var x=_.a(_.hu(!1,void 0,"s8HkOb")),F=x.next().value,N=x.next().value,h=_.MN(RPz,function(){var f;return(f=p.data().keys)==null?void 0:f.surveyEntityKey}),c=_.MN(kfM,function(){var f;
return(f=p.data().keys)==null?void 0:f.surveyStateEntityKey});
_.mi("ytd-slimline-survey-show-action",function(){N(!1)});
var M=function(){var f,K;var t=(f=c())==null?void 0:(K=f.questionStack)==null?void 0:K[0];if(t!==void 0){var d,v;return(d=h())==null?void 0:(v=d.questions)==null?void 0:v[t]}};
x={};return _.Z("yt-slimline-survey-view-model",{class:_.$L("ytSlimlineSurveyViewModelHost",(x.ytSlimlineSurveyViewModelCollapsed=function(){return F()},x))},_.Z("div",{class:"ytSlimlineSurveyViewModelContainer"},_.Z(_.D9,{cond:function(){var f;
return((f=M())==null?void 0:f.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.Z(E7k,{data:function(){return M()},
onSelect:function(f,K){var t,d;return _.D(function(v){N(!0);if(d=(t=p.data())==null?void 0:t.onSelectRating)_.su(d),_.wo(eJj(K));_.JB(v)})},
onDismiss:function(){N(!0)}})}})))},"ua");var g7B=_.mO(function(p){return _.Z("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.Z(_.Es,{data:function(){var x;return(x=p.data())==null?void 0:x.attachments}},{flexibleActionsViewModel:function(x){return _.Z("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Z($0m,{data:x.data,
layout:function(){var F;return((F=p.lockupStyle())==null?void 0:F.arrangement)===1?0:1},
justifyContentOverride:function(){var F;return((F=p.lockupStyle())==null?void 0:F.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(x){return _.Z("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Z(XA6,{data:x.data}))},
expandableMetadataViewModel:function(x){x=x.data;var F;return _.Z("div",{class:"ytLockupAttachmentsViewModelAttachment"},(F=_.J().resolve(_.Bw(SnJ)))==null?void 0:F({data:x}))},
adButtonGroupViewModel:function(x){return _.Z("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.Z(rVv,{data:x.data}))}}))},"va");var Ozz=_.Ud("rich_grid_min_item_width",310),mOp=_.Ud("rich_grid_max_item_width",500);var eXr=_.mO(function(p){var x=p.data;return _.Z("br-nz-badge-shape",{class:_.$L(function(){return UOz(x().brNzRatingBadgeType)}),
role:function(){return x().accessibilityText?"img":void 0},
"aria-label":function(){return x().accessibilityText}},function(){var F;
return(F=x())==null?void 0:F.text})},"wa");_.iK(pFz);var QY6,P9p;QY6=_.mO(function(p){var x=function(){var F=p.data(),N,h;return F?$Or(F,!((N=p.workaroundShortsIsThumbnailBadge)==null||!N.call(p)),(h=p.modern)==null?void 0:h.call(p)):void 0};
return _.Z("yt-badge-view-model",{class:_.$L("yt-badge-view-model-wiz",p.class)},_.Z(_.q$,null,_.Z(_.Kt,{when:function(){var F;return!((F=x())==null||!F.brNzRatingBadgeType)}},function(){return _.Z(eXr,{data:function(){return x()}})}),_.Z(_.Kt,{when:function(){return!!x()&&!x().brNzRatingBadgeType}},function(){return _.Z(_.kw,{data:function(){return x()}})})))},"xa");
P9p=_.S("web_enable_sink_lockups_batch")?QY6:pFz;_.M5=_.S("web_enable_sink_lockups_batch")?QY6:_.xp(pFz);QY6.idomCompat=!0;var FuE,xkp;FuE=16/9;xkp=2/3;_.DF=_.mO(function(p){var x=p.data;var F=p.className;var N=p.imageSizeConfig;var h=p.notifyOnLoaded;p=_.oc();var c=function(){return x().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},M=function(){var d;
return _.H2((d=x())==null?void 0:d.rendererContext)},f={};
f=(f["yt-content-preview-image-view-model-wiz"]=!0,f["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return c()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},f["yt-content-preview-image-view-model-wiz--tappable"]=function(){return M()},f);
var K=function(){var d,v;return(v=(d=_.r(x().rendererContext,_.Os))==null?void 0:d.label)!=null?v:""},t=function(){return hId(x())};
_.oC(p,function(){var d;return(d=x())==null?void 0:d.rendererContext});
return _.Z("yt-content-preview-image-view-model",{el:p,role:function(){return M()?"link":void 0},
tabindex:function(){return M()?0:void 0},
class:_.$L(F,f,function(){var d=c();var v=N==null?void 0:N();d=d==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||d==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||d==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||d==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(v==null?void 0:v.size)!=null&&v.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(v==null?void 0:v.size)!=null&&v.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return d}),
style:function(){return NdH(c(),x().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",N==null?void 0:N(),lUk(t()),x().layoutWidth,x().layoutHeight)}},_.Z(_.D9,{cond:t,
then:function(d){return _.Z(_.VE,{data:d,alt:K,"data-disabled$":function(){return!K()},
notifyOnLoaded:h})}}),_.Z(_.Es,{data:function(){var d;
return(d=x())==null?void 0:d.overlays}},{thumbnailHoverOverlayViewModel:kwv,
thumbnailOverlayButtonViewModel:_.N5}))},"ya");
_.DF.idomCompat=!0;var sYD=_.mO(function(p){var x=p.data;var F=p.className;var N=p.useSmallLayout;var h=p.useMediumText;p=_.oc();var c={};h=(c["yt-attribution-view-model-wiz"]=!0,c["yt-attribution-view-model-wiz--medium-text"]=h,c);_.oC(p,function(){var M;return(M=x())==null?void 0:M.rendererContext});
return _.Z("yt-attribution-view-model",{el:p,class:_.$L(F,h)},_.Z(_.D9,{cond:function(){return _.H2(x().rendererContext)},
then:function(){return _.Z("button",{class:"yt-attribution-view-model-wiz--tappable"},_.Z(zzC,{data:x,useSmallLayout:N}))},
else:function(){return _.Z(zzC,{data:x,useSmallLayout:N})}}))},"za"),zzC=_.mO(function(p){var x=p.data;
var F=p.useSmallLayout;var N=function(){return{size:(F==null?0:F())?16:24}};
return _.Z(_.TG,null,_.Z(_.Es,{data:function(){return x().contentPreviewImage}},{contentPreviewImageViewModel:function(h){return _.Z(_.DF,{data:h.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:N})}}),_.Z(_.Es,{data:function(){return x().badge}},{badgeViewModel:function(h){return _.Z(_.M5,{data:h.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.Z(_.D9,{cond:function(){return x().text},
then:function(){return _.Z(_.KQ,{text:function(){return x().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.Z(_.D9,{cond:function(){return x().suffix},
then:function(){return _.Z(_.KQ,{text:function(){return x().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Aa");
sYD.idomCompat=!0;var qap=_.JR({avatarStackViewModel:_.pFC,badgeViewModel:P9p});_.iK(dkp);var n7n,yVZ,bGk,AVm,urJ,Yn6,wAI;n7n=_.mO(function(p){var x=p.delimiter;var F=p.max;var N=p.index;var h=p.isStandalone;return _.Z(_.D9,{cond:function(){return F()-1>N()},
then:function(){var c={};return _.Z("span",{class:_.$L("yt-content-metadata-view-model-wiz__delimiter",(c["yt-content-metadata-view-model-wiz__delimiter--standalone"]=h,c)),"aria-hidden":!0},x)}})},"Ba");
yVZ=_.mO(function(p){var x=p.metadataPart;var F=p.maxLines;return _.Z(_.KQ,{text:function(){return x().text},
linkInheritColor:!0,className:function(){return vY6(F())},
userInput:!0})},"Ca");
bGk=_.mO(function(p){var x=p.metadataPart;var F=p.maxLines;return _.Z(_.TG,null,_.Z(_.D9,{cond:function(){return x().tooltip},
then:function(N){return _.Z("span",{title:N,role:"tooltip"},_.Z(yVZ,{metadataPart:x,maxLines:F}))},
else:function(){return _.Z(yVZ,{metadataPart:x,maxLines:F})}}))},"Da");
AVm=_.mO(function(p){var x=p.metadataPart;var F=p.isOverlay;var N=p.useMediumText;var h=p.hideAvatar;var c=function(){return x().maxLines!==void 0?x().maxLines:1};
return _.Z(_.TG,null,_.Z(_.Es,{data:function(){return x().avatarStack}},{avatarStackViewModel:function(M){return _.Z(xkZ,{data:M.data,
isOverlay:F,useMediumText:N,hideAvatar:h})},
badgeViewModel:_.M5}),_.Z(_.D9,{cond:function(){return x().text},
then:function(){return _.Z(bGk,{metadataPart:x,maxLines:c})}}))},"Ea");
urJ=_.mO(function(p){var x=p.metadataRow;var F=p.isInline;var N=p.delimiter;var h=p.isOverlay;var c=p.useMediumText;var M=p.extensions;var f=function(){var K;return aUE(M==null?void 0:(K=M())==null?void 0:K.lockupMetadata,x())};
p={};return _.Z("div",{class:_.$L("yt-content-metadata-view-model-wiz__metadata-row",(p["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=F,p["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var K;return M9B(M==null?void 0:(K=M())==null?void 0:K.lockupMetadata,x())},p["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var K;
return!!(M==null?0:(K=M())==null?0:K.lockupMetadata)&&x().badges},p))},_.Z(_.Es,{data:function(){return x().badges}},{badgeViewModel:function(K){return _.Z("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.Z(_.M5,{data:K.data}))}}),_.Z(_.ft,{each:function(){return x().metadataParts||[]}},function(K,t){return _.Z(_.TG,null,_.Z(AVm,{metadataPart:K,
isOverlay:h,useMediumText:c,hideAvatar:f}),_.Z(n7n,{delimiter:N,max:function(){return x().metadataParts.length},
index:t,isStandalone:!1}))}),_.Z(_.D9,{cond:function(){return x().isSpacerRow&&!F()},
then:function(){return _.Z("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Fa");
Yn6=_.mO(function(p){var x=_.Vg(p,{layout:0,isOverlay:!1});p=x.className;var F=x.data,N=x.layout,h=x.isOverlay,c=x.useMediumText,M=x.extensions;x=_.oc();var f=function(){return N()===0};
_.oC(x,function(){return F().rendererContext});
var K={};return _.Z("yt-content-metadata-view-model",{class:_.$L(p,"yt-content-metadata-view-model-wiz",(K["yt-content-metadata-view-model-wiz--inline"]=f,K["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.H2(F().rendererContext)},K["yt-content-metadata-view-model-wiz--medium-text"]=c,K)),
el:x},_.Z(_.ft,{each:function(){return F().metadataRows}},function(t,d){return _.Z(_.TG,null,_.Z(urJ,{metadataRow:t,
isInline:f,delimiter:function(){return F().delimiter},
isOverlay:h,useMediumText:c,extensions:M}),_.Z(_.D9,{cond:function(){return f()&&!t.isSpacerRow},
then:function(){return _.Z(n7n,{delimiter:function(){return F().delimiter},
max:function(){return F().metadataRows.length},
index:d,isStandalone:!0})}}))}))},"Ga");
wAI=_.S("web_enable_sink_lockups_batch")?Yn6:dkp;_.GbC=_.S("web_enable_sink_lockups_batch")?Yn6:_.xp(dkp);Yn6.idomCompat=!0;var ir=_.JR({avatarViewModel:_.zu,decoratedAvatarViewModel:$Ob,contentMetadataViewModel:wAI,buttonViewModel:_.nV,attributionViewModel:sYD,lockupAttachmentsViewModel:g7B});_.iK(SaE);var V2B=_.mO(function(p){var x={};return _.Z("yt-lockup-metadata-view-model",{class:_.$L("yt-lockup-metadata-view-model-wiz",function(){a:{var F=p.lockupStyle();if(F==null?0:F.isOverlay)F="yt-lockup-metadata-view-model-wiz--overlay";else switch(F==null?void 0:F.arrangement){case 1:F="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:F="yt-lockup-metadata-view-model-wiz--vertical"}}return F},function(){a:{var F=p.lockupStyle();
if(F==null?0:F.isTiny)F="yt-lockup-metadata-view-model-wiz--tiny";else switch(F==null?void 0:F.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":F="yt-lockup-metadata-view-model-wiz--compact";break a;default:F="yt-lockup-metadata-view-model-wiz--standard"}}return F},(x["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var F;
return(F=p.lockupStyle())==null?void 0:F.isOverlay},x["yt-lockup-metadata-view-model-wiz--card"]=function(){var F;
return(F=p.lockupStyle())==null?void 0:F.isCard},x["yt-lockup-metadata-view-model-wiz--centered"]=function(){var F;
return(F=p.lockupStyle())==null?void 0:F.isCentered},x["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var F;
return(F=p.lockupStyle())==null?void 0:F.typographyBump},x["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var F;
return(F=p.lockupStyle())==null?void 0:F.useLegacyTypography},x["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var F;
return(F=p.lockupStyle())==null?void 0:F.useRichGridLegacyTypography},x))},_.Z(_.Es,{data:function(){return p.data().image}},{avatarViewModel:function(F){return _.Z("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.Z(_.bt,{data:F.data}))},
decoratedAvatarViewModel:function(F){return _.Z("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.Z(_.A6,{data:F.data}))}}),_.Z("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.Z("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var F;return(F=p.data().title)==null?void 0:F.content}},_.Z(_.D9,{cond:function(){return p.data().title},
then:function(F){return _.Z(_.fQ,{command:p.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:p.lockupAccessibilityLabel},_.Z(_.KQ,{text:F}))}})),_.Z("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.Z(_.Es,{data:function(){return p.data().metadata}},{contentMetadataViewModel:function(F){return _.Z(_.GbC,{data:F.data,
layout:1,useMediumText:function(){var N,h;return((N=p.lockupStyle())==null?void 0:N.typographyBump)||((h=p.lockupStyle())==null?void 0:h.useRichGridLegacyTypography)},
extensions:function(){var N,h;return{lockupMetadata:{byline:{hideAvatar:((N=p.lockupStyle())==null?void 0:N.arrangement)===0,addPadding:((h=p.lockupStyle())==null?void 0:h.arrangement)===1}}}}})}})),_.Z(_.Es,{data:function(){return p.data().attribution}},{attributionViewModel:function(F){return _.Z("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.Z(sYD,{data:F.data,
useSmallLayout:!0}))}}),_.Z("div",null,_.Z(_.Es,{data:function(){return p.data().attachmentSlot}},{lockupAttachmentsViewModel:function(F){return _.Z(g7B,{data:F.data,
lockupStyle:p.lockupStyle})}}))),_.Z("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.Z(_.Es,{data:function(){return p.data().menuButton}},{buttonViewModel:function(F){return _.Z(_.nV,{data:F.data,
buttonOverrides:function(){var N;return((N=p.lockupStyle())==null?0:N.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ha"),W6Z=_.S("web_enable_sink_lockups_batch")?V2B:_.xp(SaE);
V2B.idomCompat=!0;var HGZ=_.mO(function(p){var x=_.oc();_.d1(function(){requestAnimationFrame(function(){_.on(x.value)})});
var F={},N={},h={};return _.Z("notification-multi-action-renderer",{class:_.$L("ytNotificationMultiActionRendererHost",(F.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var c;return(c=p.useLegacyShelfStyle)==null?void 0:c.call(p)},F)),
el:x},_.Z("span",{"aria-live":"polite",class:_.$L("ytNotificationMultiActionRendererTextContainer",(N.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var c;return(c=p.useLegacyShelfStyle)==null?void 0:c.call(p)},N))},_.Z(_.KQ,{text:function(){return p.data().responseText}})),_.Z("div",{class:_.$L("ytNotificationMultiActionRendererButtonContainer",(h.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var c;
return(c=p.useLegacyShelfStyle)==null?void 0:c.call(p)},h))},_.Z(_.Es,{data:function(){var c;
return(c=p.data().buttons)==null?void 0:c.map(function(M){if(M=M.buttonRenderer){var f,K=Object,t=K.assign,d=(f=M.icon)==null?void 0:f.iconType;f=(f=M.command||M.serviceEndpoint||M.navigationEndpoint)?{innertubeCommand:f}:void 0;M={buttonViewModel:t.call(K,{},{iconName:d,onTap:f,trackingParams:M.trackingParams,titleFormatted:M.text?_.S6(M.text):void 0},r4$(M))}}else M=void 0;return M}).filter(function(M){return!!M})}},{buttonViewModel:function(c,M){return _.Z("div",null,_.Z(_.nV,{data:c.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var f;return((f=p.useModernStyles)==null?0:f.call(p))?{type:M()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ia");var mwl=_.mO(function(p){var x=_.oc();_.d1(function(){requestAnimationFrame(function(){_.on(x.value)})});
return _.Z("notification-text-renderer",{el:x,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.Z(_.KQ,{text:function(){return p.data().successResponseText}}))},"Ja");_.o7j=_.mO(function(p){var x=_.MN(sjH,function(){var N;return EYZ((N=p.contentId)==null?void 0:N.call(p))}),F=function(){var N;
return _.r((N=x())==null?void 0:N.command,_.JS)};
return _.Z(_.D9,{cond:function(){var N;if(!(N=F())){var h;N=_.r((h=x())==null?void 0:h.command,xi6)}return N},
then:function(){return _.Z(_.D9,{cond:F,then:function(){var N={};return _.Z("div",{class:_.$L("ytDismissibleItemReplacedContent",function(){var h;return XFp((h=p.aspectRatio)==null?void 0:h.call(p))})},_.Z("div",{class:_.$L((N.ytDismissibleItemAspectRatioContainer=function(){var h;
return((h=p.aspectRatio)==null?void 0:h.call(p))!==void 0},N))},_.Z(_.Es,{data:function(){var h;
return(h=F())==null?void 0:h.item}},{notificationMultiActionRenderer:function(h){return _.Z(HGZ,{data:h.data,
useModernStyles:p.useModernStyle,useLegacyShelfStyle:p.useLegacyShelfStyle})},
notificationTextRenderer:mwl})))}})},
else:p.children})},"Ka");_.OGB=_.mO(function(p){var x=p.data;var F=p.customCommandResolver;p=_.O$();var N=function(){var c;return((c=x().interaction)==null?0:c.onTap)?function(M){var f;A1Z(M,(f=x().interaction)==null?void 0:f.onTap,F)}:void 0},h=function(){var c,M=x(),f=N(),K=(c=_.r(x().rendererContext,_.Os))==null?void 0:c.label;
a:switch(M.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":c=1;break a;default:c=0}return{size:zIm(M.size),type:c,onTap:f,accessibilityText:K}};
_.U$(p,{visibilityCallback:function(c){var M,f=(M=x().interaction)==null?void 0:M.onFirstVisible;c&&f&&_.su(f)},
showOption:_.li});return _.Z("ad-avatar-view-model",{class:function(){var c;return((c=x().interaction)==null?0:c.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:p},_.Z(_.D9,{cond:function(){return x().image},
then:function(c){return _.Z(jo,{data:h,image:c})}}))},"La");_.fS=_.mO(function(p){p=_.Vg(p,{hasDot:!1});var x=Object.assign({},p),F=p.data,N=p.hasDot;p=p.customCommandResolver;var h=(delete x.data,delete x.hasDot,delete x.customCommandResolver,x);x=function(){return F().style};
x!==void 0&&x!==null||_.uO(Error("Dh"));x=_.oc();_.B2(x,function(){return F().interaction},p);
return _.Z("ad-badge-view-model",{class:_.$L(function(){var c;return((c=F().interaction)==null?0:c.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var c=h.adRenderingContextType();
F();return c==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:x},_.Z(_.kw,{data:function(){var c;F();var M=(c=F().label)==null?void 0:c.content;c=N();var f=F().style==="AD_BADGE_STYLE_STARK_OVERLAY";return{type:2,text:M,adsIncludeDot:c,isOverlay:f}}}))},"Ma");var jYK;_.KS=_.mO(function(p){var x=p.data;var F=p.customCommandResolver;var N=p.adRenderingContextType;p=_.oc();_.B2(p,function(){return x().interaction},F);
_.U$(p,{visibilityCallback:function(h){var c,M=(c=x().interaction)==null?void 0:c.onFirstVisible;h&&M&&_.su(M)},
showOption:_.li});return _.Z("ad-details-line-view-model",{class:function(){var h;return((h=x().interaction)==null?0:h.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:p},_.Z(_.D9,{cond:function(){return x().style},
then:function(h){return _.Z(_.ft,{each:function(){var c;return((c=x())==null?void 0:c.attributes)||[]},
keyBy:"INDEX"},function(c){return _.Z(jYK,{attribute:c,style:h,adRenderingContextType:function(){return N()}})})}}))},"Na");
jYK=_.mO(function(p){var x=p.attribute;var F=p.style;var N=p.adRenderingContextType;return _.Z(_.D9,{cond:function(){return x().text},
then:function(h){return _.Z(_.KQ,{text:h,className:function(){var c=N();F();return c==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Oa");var L66=_.mO(function(p){var x=p.data;var F=function(){return x().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
return _.Z(_.TG,null,_.Z("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.Z(_.KQ,{text:function(){return x().headline},
className:function(){return F()?"ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch":"ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline"},
linkInheritColor:!0}),_.Z(_.D9,{cond:function(){return x().description},
then:function(N){return _.Z(_.KQ,{text:N,className:function(){return F()?"ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch":"ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription"},
linkInheritColor:!0})}}),_.Z("div",{class:function(){return F()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.Z(_.Es,{data:function(){return x().adBadge}},{adBadgeViewModel:function(N){return _.Z(_.fS,{data:N.data,
hasDot:function(){return!!x().adDetailsLine},
adRenderingContextType:function(){return x().adRenderingContextType}})}}),_.Z(_.Es,{data:function(){return x().adDetailsLine}},{adDetailsLineViewModel:function(N){return _.Z(_.KS,{data:N.data,
adRenderingContextType:function(){return x().adRenderingContextType}})}}))),_.Z("div",{class:function(){return F()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.Z(_.Es,{data:function(){return x().menu}},{buttonViewModel:function(N){return _.Z(_.nV,{data:N.data,
buttonOverrides:function(){a:switch(x().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var h="S";break a;default:h="M"}return{size:h}}})}})))},"Pa"),Pe6=_.mO(function(p){var x=p.data;
var F=p.noBottomMargin;var N=p.useVideoLockupTopPadding;p={};p=_.$L("ytwFeedAdMetadataViewModelHostMetadata",(p.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return F==null?void 0:F()},p.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return N==null?void 0:N()},p));
var h=function(){return x().adBadge};
h!==void 0&&h!==null||_.uO(Error("Eh"));h={};return _.Z(_.TG,null,_.Z(_.D9,{cond:function(){return x().adAvatar},
then:function(){return _.Z("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.Z(_.Es,{data:function(){return x().adAvatar}},{adAvatarViewModel:function(c){return _.Z(_.OGB,{data:c.data})}}))}}),_.Z("div",{class:p},_.Z("div",{class:"ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline"},_.Z(_.KQ,{text:function(){return x().headline},
linkInheritColor:!0})),_.Z(_.D9,{cond:function(){return x().description},
then:function(c){return _.Z(_.KQ,{text:c,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.Z("div",{class:function(){return x().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.S("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.Z(_.Es,{data:function(){return x().adBadge}},
{adBadgeViewModel:function(c){return _.Z(_.fS,{data:c.data,
hasDot:function(){return!!x().adDetailsLine},
adRenderingContextType:function(){return x().adRenderingContextType}})}}),_.Z(_.Es,{data:function(){return x().adDetailsLine}},{adDetailsLineViewModel:function(c){return _.Z(_.KS,{data:c.data,
adRenderingContextType:function(){return x().adRenderingContextType}})}})),_.Z(_.D9,{cond:function(){return x().secondaryDescription},
then:function(c){return _.Z(_.KQ,{text:c,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.Z("div",{class:_.$L("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(h.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return N==null?void 0:N()},h))},_.Z(_.Es,{data:function(){return x().menu}},{buttonViewModel:_.nV})))},"Qa"),T2l=_.mO(function(p){var x=p.data;
var F=p.noBottomMargin;var N=p.listenToTapEvent;var h=p.setTouchEndHandler;var c=p.useVideoLockupTopPadding;var M=_.oc();_.B2(M,function(){return x().interaction},void 0,function(){return N==null?void 0:N()});
p=_.a(_.hu(!1,void 0,"rVW2Qd"));var f=p.next().value,K=p.next().value;p=_.h0(function(){(h==null?0:h())&&!f()&&(M.value.click(),K(!0),setTimeout(function(){K(!1)},100));
return!1});
_.U$(M,{visibilityCallback:function(t){var d,v=(d=x().interaction)==null?void 0:d.onFirstVisible;t&&v&&_.su(v)},
showOption:_.li});return _.Z("feed-ad-metadata-view-model",{class:function(){var t;return((t=x().interaction)==null?0:t.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:M,"on:touchend":p},_.Z(_.q$,null,_.Z(_.Kt,{when:function(){return x().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.Z(L66,{data:x})}),_.Z(_.Kt,{when:function(){return x().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.Z(Pe6,{data:x,
noBottomMargin:F,useVideoLockupTopPadding:c})})))},"Ra");var q5=_.mO(function(p){return _.Z("yt-lockup-view-model",{class:_.$L(p.className)},_.Z(_.o7j,{contentId:function(){return p.data().contentId},
useModernStyle:!0,aspectRatio:function(){var x,F;return((x=p.containerType)==null?void 0:x.call(p))!==3?RXk(p.data().contentType,(F=p.force16By9ThumbnailAspectRatio)==null?void 0:F.call(p)):void 0}},function(){return _.Z(B2J,Object.assign({},p))}))},"Sa"),B2J=_.mO(function(p){p=_.Vg(p,{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 x=p.data,F=p.containerLayoutConfig,N=p.containerType,h=p.sizing,c=p.protectBackground,M=p.typographyBump,f=p.force16By9ThumbnailAspectRatio,K=p.thumbnailFixedWidth,t=p.thumbnailTargetWidth,d=p.lockupExperiments,v=p.elementsPerRow;p=_.oc();_.oC(p,function(){var Jz;return(Jz=x())==null?
void 0:Jz.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL"],!0);var C=_.g5(DOm),X=_.J().resolve(_.Bw(cVl)),Q=X?{}:void 0,b=function(){var Jz,Y$,xB;return(xB=(Y$=_.r((Jz=x())==null?void 0:Jz.rendererContext,_.Os))==null?void 0:Y$.label)!=null?xB:void 0},A=function(){var Jz=F==null?void 0:F(),Y$;
if(Jz==null?0:Jz.containerType){var xB=(Y$=x())==null?void 0:Y$.contentType;Y$=d();var qI=M(),RJ=t(),Ik=c();Jz=Object.assign({},kwM(PS$(Jz),jTH(Jz.responsiveSize),qI,xB,Jz.force16By9ThumbnailAspectRatio,RJ,Ik,Y$),{thumbnailFixedWidth:Jz.contentPreviewWidth})}else Jz=kwM(N(),h(),M(),(xB=x())==null?void 0:xB.contentType,f(),t(),c(),d());return Jz};
X&&Q&&X({enabled:function(){return C()},
itemPlaybackModel:function(){return x().itemPlayback},
thumbnailElRef:function(){return Q.thumbnailElRef},
containerElRef:p,options:function(){var Jz,Y$=(Jz=_.r(x().metadata,yYK))==null?void 0:Jz.endorsement;Jz=Q.thumbnailOverlays||[];Y$&&Jz.push(Y$);var xB,qI;return{thumbnail:Q.thumbnail,thumbnailOverlays:Jz,accessibilityText:b(),thumbnailSize:Q.thumbnailSize,enableRounding:A().isCollection,containPlayerWithinThumbnail:A().isCollection,trackingParams:(xB=_.r(x().rendererContext,_.nTM))==null?void 0:(qI=xB.loggingDirectives)==null?void 0:qI.trackingParams}}});
var Y=0;X=_.a(_.hu(!1,void 0,"HzAs3"));var O=X.next().value,Fw=X.next().value;X=_.a(_.hu(!1,void 0,"ujOXud"));var R=X.next().value,ld=X.next().value;X=_.h0(function(){var Jz=C()&&x().itemPlayback;R()?(_.E0.cancelJob(Y),Y=_.E0.addJob(function(){Fw(!Jz)},8,32)):Fw(!Jz);
return!0});
_.jl(p,"mouseleave",function(){Y&&(_.E0.cancelJob(Y),Y=0);Fw(!1)});
_.E_(function(){Y&&(_.E0.cancelJob(Y),Y=0)});
var pp=Qrw(function(){ld(!0)}),Kp=pp.touchFeedbackEvents,sM=pp.touchFeedbackOnPointerUp,np=pp.touchFeedbackOnPointerDown;
_.jl(p,"pointerleave",pp.touchFeedbackOnPointerLeave);pp={};return _.Z("div",{el:p,class:_.$L("yt-lockup-view-model-wiz",function(){a:{var Jz=A();if(Jz.isOverlay)Jz="yt-lockup-view-model-wiz--overlay";else switch(Jz.arrangement){case 1:Jz="yt-lockup-view-model-wiz--horizontal";break a;default:Jz="yt-lockup-view-model-wiz--vertical"}}return Jz},function(){a:{var Jz=A();
if(Jz.isOverlay)Jz="yt-lockup-view-model-wiz--overlay";else{switch(Jz.collectionStackNumber){case 1:Jz="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:Jz="yt-lockup-view-model-wiz--collection-stack-2";break a}Jz=void 0}}return Jz},(pp["yt-lockup-view-model-wiz--card"]=function(){return A().isCard},pp["yt-lockup-view-model-wiz--compact"]=function(){return A().isTiny||A().sizing!=="STANDARD"},pp["yt-lockup-view-model-wiz--protect-background"]=c,pp["yt-lockup-view-model-wiz--add-margins"]=
function(){return A().addMarginForFullbleed},pp["yt-lockup-view-model-wiz--centered"]=function(){return A().isCentered},pp["yt-lockup-view-model-wiz--fullbleed"]=function(){return A().fullbleed},pp["yt-lockup-view-model-wiz--single-column-grid"]=function(){return v()===1&&N()===2},pp["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var Jz;
return(Jz=d())==null?void 0:Jz.useRichGridLegacyMargin},pp)),
"on:mousedown":np,"on:mouseup":sM,"on:mouseover":X,"on:touchstart":np,"on:touchend":sM},_.Z(_.fQ,{command:function(){var Jz;return _.wR((Jz=x())==null?void 0:Jz.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return K()&&A().arrangement===1?"width: "+K():""}},_.Z(_.Es,{data:function(){var Jz;
return(Jz=x())==null?void 0:Jz.contentImage}},{thumbnailViewModel:function(Jz){return _.Z(hK,{data:Jz.data,
aspectRatio:function(){return A().aspectRatio},
disableRounding:function(){return A().disableRounding},
width:t,hovered:O,isClip:function(){var Y$;return((Y$=x())==null?void 0:Y$.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:aAM(Q),lockupExperiments:function(){return d()}})},
collectionThumbnailViewModel:function(Jz){return _.Z(CeD,{data:Jz.data,aspectRatio:function(){return A().aspectRatio},
disableRounding:function(){return A().disableRounding},
doubleStack:function(){return A().collectionStackNumber===2},
hovered:O,playbackRef:aAM(Q)})},
decoratedAvatarViewModel:_.A6})),_.Z("div",{class:"yt-lockup-view-model-wiz__metadata"},_.Z(_.Es,{data:function(){var Jz;return(Jz=x())==null?void 0:Jz.metadata}},{lockupMetadataViewModel:function(Jz){return _.Z(W6Z,{data:Jz.data,
lockupStyle:A,lockupCommand:function(){var Y$;return _.wR((Y$=x())==null?void 0:Y$.rendererContext)},
lockupAccessibilityLabel:function(){return b()}})},
feedAdMetadataViewModel:function(Jz){return _.Z(T2l,{data:Jz.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0}})}}),_.Z(_.Es,{data:function(){var Jz;
return(Jz=x())==null?void 0:Jz.attachmentSlot}},{lockupAttachmentsViewModel:function(Jz){return _.Z(g7B,{data:Jz.data,
lockupStyle:A})}})),_.Z(_.qC,{model:function(){a:{switch(A().collectionStackNumber){case 1:var Jz=8;
break a;case 2:Jz=12;break a}Jz=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:Jz}},
pointerDownEvent:Kp.pointerDownEvent,pointerUpEvent:Kp.pointerUpEvent,pointerLeaveEvent:Kp.pointerLeaveEvent}))},"Ta");
q5.idomCompat=!0;_.o7(q5,"yt-lockup-view-model",{props:{data:_.G2,containerLayoutConfig:_.G2,containerType:_.G2,sizing:_.G2,protectBackground:_.G2,typographyBump:_.G2,thumbnailFixedWidth:_.G2,thumbnailTargetWidth:_.G2,force16By9ThumbnailAspectRatio:_.G2,className:_.G2,lockupExperiments:_.G2,elementsPerRow:_.G2}});_.iK(uHE);var HAp=_.JR({buttonViewModel:_.nV}),Rzv=_.xp(V9z);_.iK(V9z);_.iK(wFr);_.iK(Gsp);_.o7(Rzv,"yt-video-attribute-view-model",{props:{data:_.G2,className:_.G2}});var kbZ=function(){var p=_.m.apply(this,arguments)||this;p.useHighlightStyling=_.S("web_enable_deeper_metadata_highlight_styling");p.isSearch=!1;p.JSC$12896_lastScrollContainerWidth=NaN;p.pageLoadingFromNavigation=!1;p.currentIndex=0;p.supportComponentResize=!1;return p};
_.E(kbZ,_.m);_.l=kbZ.prototype;
_.l.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-horizontal-card-list-renderer lockup",containerType:4,sizing:"COMPACT"}},searchRefinementCardRenderer:"ytd-search-refinement-card-renderer",compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",videoCardRenderer:"ytd-grid-video-renderer",gameCardRenderer:"ytd-game-card-renderer",miniGameCardViewModel:"ytd-mini-game-card-view-model",
mediaUpsellRenderer:"ytd-media-upsell-renderer",infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",params:{showVerticalDividers:!0}},previewCardRenderer:{component:"ytd-preview-card-renderer",properties:{isSearch:"[[isSearch]]"}},macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"}},placeDataViewModel:"place-data-view-model",videoAttributeViewModel:{component:"yt-video-attribute-view-model",properties:{className:"[[is]]"}}}},
"data.header":{id:"header",mapping:{titleAndButtonListHeaderRenderer:"ytd-title-and-button-list-header-renderer",richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",properties:{hideNavigationButton:"[[hideNavigationButton]]",isModernSd:"[[modernChapters]]"}}}},"data.sortFilter":{id:"sort-filter",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.button":{id:"header-button",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.previousButton":{id:"left-arrow-button",
mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},attributes:{arrow:!0}}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},attributes:{arrow:!0}}}},"data.footerButton":{id:"footer-section",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},dismissedRenderer:{id:"dismissed",
mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.l.attached=function(){document.addEventListener("yt-page-type-changed",_.p5(this,this.onPageChange))};
_.l.detached=function(){document.removeEventListener("yt-page-type-changed",_.p5(this,this.onPageChange))};
_.l.getItemsPath=function(){return"data.cards"};
_.l.onIronResize=function(){this.updateListStyles()};
_.l.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var p;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(p=this.data)==null?void 0:p.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.S("problem_walkthrough_sd")&&!!this.centerItems};
_.l.computeCardListStyle=function(p){return p||null};
_.l.computeEmpty=function(p){return!this.get("cards.length",p)};
_.l.computeThumbnailStyle=function(p){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",p)||null};
_.l.computeHasSubtitle=function(p){return!!this.get("header.richListHeaderRenderer.subtitle",p)};
_.l.computeInitialCountNumber=function(p){return this.hasSquareMiniApp&&p==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&p==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:p==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:p==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:p==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&p==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.l.computeUseFloorScrolling=function(p){return p==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.l.computeHasGameCard=function(p){return(p=this.get("cards",p))?p.some(function(x){return x.gameCardRenderer}):!1};
_.l.computeCenterHeaderTitle=function(p){return!(p==null||!p.centerHeaderTitle)};
_.l.computeHasPortraitMiniApp=function(p){return(p=p==null?void 0:p.cards)?p.some(function(x){return x.miniGameCardViewModel&&x.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.l.computeHasSquareMiniApp=function(p){return(p=p==null?void 0:p.cards)?p.some(function(x){return x.miniGameCardViewModel&&x.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.l.computeIncreasePortraitMiniAppWidth=function(p){return(p=p==null?void 0:p.cards)?p.some(function(x){var F;return x.miniGameCardViewModel&&((F=x.miniGameCardViewModel.entityRedesignExperiments)==null?void 0:F.enable11ThumbnailOnHomeShelves)})&&_.S("enable_playables_reduced_card_count"):!1};
_.l.computeHasSkinnyWidthPortraitMiniApp=function(p){return(p=p==null?void 0:p.cards)?p.some(function(x){return x.miniGameCardViewModel&&x.miniGameCardViewModel.width===135}):!1};
_.l.computeCenterItems=function(p){return!!p};
_.l.computeHasInfoPanel=function(p){var x;return p==null?void 0:(x=p.cards)==null?void 0:x.some(function(F){return F.infoPanelContentRenderer})};
_.l.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.l.getItemByIndex=function(p){var x=this.items.children;return x&&x.length>p?x[p]:void 0};
_.l.onPageChange=function(){var p=this;this.pageLoadingFromNavigation=!0;_.E0.addJob(function(){p.pageLoadingFromNavigation=!1;_.Mt(p.hostElement,"yt-terminate-video-preview-action")},8)};
_.l.updateListStyles=function(){if(_.S("problem_walkthrough_sd")&&this.JSC$12896_scrollContainer!==void 0){var p=this.JSC$12896_scrollContainer.clientWidth;p!==this.JSC$12896_lastScrollContainerWidth&&(this.JSC$12896_lastScrollContainerWidth=p,_.eV(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(p*.8,415)+"px"}),_.hG(this.hostElement,"iron-resize"))}};
_.R8.Object.defineProperties(kbZ.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.S("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return _.S("kevlar_modern_sd")&&!!((p=this.data)==null?0:(x=p.cards)==null?0:(F=x[0])==null?0:F.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return!!((p=this.data)==null?0:(x=p.cards)==null?0:(F=x[0])==null?0:F.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return _.S("enable_desktop_amsterdam_info_panels")&&!!((p=this.data)==null?0:(x=p.cards)==null?0:(F=x[0])==null?0:F.infoPanelContentRenderer)}}});
var ZF=kbZ;ZF.prototype.dataChanged=ZF.prototype.dataChanged;ZF.prototype.onIronResize=ZF.prototype.onIronResize;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ZF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.$k.YtdHorizontalListBehavior),_.k("design:type",Object)],ZF.prototype,"ytdHorizontalListBehavior",void 0);
_.B([_.u(_.bh),_.k("design:type",Object)],ZF.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ZF.prototype,"data",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],ZF.prototype,"useCustomColors",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],ZF.prototype,"useHighlightStyling",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.k("design:type",Object)],ZF.prototype,"cardListStyle",void 0);_.B([_.H({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.k("design:type",Boolean)],ZF.prototype,"empty",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.k("design:type",Boolean)],ZF.prototype,"hasSubtitle",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.k("design:type",Boolean)],ZF.prototype,"thumbnailStyle",void 0);_.B([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.k("design:type",Boolean)],ZF.prototype,"hasGameCard",void 0);_.B([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.k("design:type",Boolean)],ZF.prototype,"centerHeaderTitle",void 0);
_.B([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeIncreasePortraitMiniAppWidth(data)"}),_.k("design:type",Boolean)],ZF.prototype,"increasePortraitMiniAppWidth",void 0);_.B([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.k("design:type",Boolean)],ZF.prototype,"hasPortraitMiniApp",void 0);_.B([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.k("design:type",Boolean)],ZF.prototype,"hasSquareMiniApp",void 0);
_.B([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.k("design:type",Boolean)],ZF.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);_.B([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.k("design:type",Boolean)],ZF.prototype,"hasInfoPanel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],ZF.prototype,"isSearch",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],ZF.prototype,"inlineStructuredDescription",void 0);_.B([_.Ff("#scroll-container"),_.k("design:type",HTMLDivElement)],ZF.prototype,"JSC$12896_scrollContainer",void 0);_.B([_.H({computed:"computeInitialCountNumber(data.style.type)"}),_.k("design:type",Number)],ZF.prototype,"initialCount",void 0);_.B([_.H({computed:"computeUseFloorScrolling(data.style.type)"}),_.k("design:type",Boolean)],ZF.prototype,"useFloorScrolling",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.k("design:type",Boolean)],ZF.prototype,"centerItems",void 0);_.B([_.H(),_.k("design:type",Object)],ZF.prototype,"pageLoadingFromNavigation",void 0);_.B([_.H(),_.k("design:type",Object)],ZF.prototype,"currentIndex",void 0);_.B([_.H(),_.k("design:type",Number)],ZF.prototype,"scrollCount",void 0);_.B([_.H(),_.k("design:type",Object)],ZF.prototype,"supportComponentResize",void 0);
_.B([_.Ff("#items"),_.k("design:type",HTMLDivElement)],ZF.prototype,"items",void 0);_.B([_.V("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ZF.prototype,"onIronResize",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ZF.prototype,"dataChanged",null);
_.B([_.H({reflectToAttribute:!0}),_.w("inlineStructuredDescription"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ZF.prototype,"hideNavigationButton",null);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ZF.prototype,"modernChapters",null);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ZF.prototype,"hasVideoAttributeViewModels",null);
_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ZF.prototype,"modernInfoPanels",null);ZF=_.B([_.L({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],ZF);
_.P(ZF,"ytd-horizontal-card-list-renderer",function(){if(y4B!==void 0)return y4B;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return y4B=p},{mode:_.UQ("kevlar_poly_si_batch_j072")?1:2});_.iK(oYE);var Uwm=_.xp(oYE);_.kL(oYE,"video-summary-content-view-model",{propNames:["data","isSearch","className"]});var iGJ=function(){var p=_.m.apply(this,arguments)||this;var x,F;p.isExpanded=(F=(x=p.data)==null?void 0:x.isExpanded)!=null?F:!1;p.disableExpand=!1;p.showProminentLabel=!1;p.showRightSideLabel=!0;p.toggleExpandableContent=function(N){p.disableExpand||(N.stopPropagation(),_.o4(_.m9(N),p.hostElement,["info","expanded-subtitle"])||(p.isExpanded=!p.isExpanded,p.ytRendererBehavior.logExplicitClick(p.data),p.JSC$12909_cardList&&!_.S("expandable_metadata_a11y_fix_ks")&&_.jB(p,function(){_.Hu(p.hostElement)})))};
p.useSquareThumbnail=!1;p.startX=0;return p};
_.E(iGJ,_.m);_.l=iGJ.prototype;_.l.computeUseSquareThumbnail=function(){var p;return(p=this.data)==null?void 0:p.useSquareThumbnail};
_.l.configureRendererStamper=function(){return{"data.expandedContent":{id:"content",mapping:{horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]",useCustomColors:"[[useCustomColors]]"}},horizontalListRenderer:{component:"yt-horizontal-list-renderer",properties:{isSearch:"[[isSearch]]"},params:{isExpandableContent:!0}},videoSummaryContentViewModel:{component:"video-summary-content-view-model",params:{isExpandableContent:!0},properties:{isSearch:"[[isSearch]]"}},
lockupViewModel:{component:"yt-lockup-view-model",params:{isExpandableContent:!0,className:"ytd-expandable-metadata-renderer lockup",thumbnailFixedWidth:"168px",containerType:3,sizing:"COMPACT"}}}},"data.expandButton":{id:"expand",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.collapseButton":{id:"collapse",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-click":"[[toggleExpandableContent]]"}}}},"data.infoButton":{id:"info",
mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.expandedMenuFooter":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}}}};
_.l.dataChanged=function(){if(this.data){var p,x;this.isExpanded=(x=(p=this.data)==null?void 0:p.isExpanded)!=null?x:!1;var F,N,h,c;if(p=this.isDarkTheme()?(F=this.data)==null?void 0:(N=F.colorData)==null?void 0:N.darkColorPalette:(h=this.data)==null?void 0:(c=h.colorData)==null?void 0:c.lightColorPalette){var M,f;if((M=this.data)==null?0:(f=M.colorData)==null?0:f.vibrantColorPalette)p.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.S3(this.hostElement,p)}}};
_.l.isExpandedChanged=function(){this.isExpanded&&this.JSC$12909_cardList&&_.hG(this.JSC$12909_cardList,"iron-resize")};
_.l.computeIsExpanded=function(p){return!!p.isExpanded};
_.l.computeShowProminentLabel=function(p,x){var F;return!!(p==null?0:(F=p.header)==null?0:F.showLeadingCollapsedLabel)&&!x};
_.l.computeShowRightSideLabel=function(p,x){var F;return!(p==null?0:(F=p.header)==null?0:F.showLeadingCollapsedLabel)&&!x};
_.l.captureContentClick=function(p){if(!this.disableExpand)if(_.S("expandable_metadata_fix_killswitch")){var x=p.target;_.Xzj(x,"ytd-macro-markers-list-item-renderer")||p.stopPropagation();(x==null?void 0:x.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.o4(_.m9(p),this.hostElement,["items"])||_.mx(_.m9(p),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.l.timestampClick=function(p){p.stopPropagation();var x,F;(p=(x=this.data)==null?void 0:(F=x.header)==null?void 0:F.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(p)};
_.l.onDown=function(p){p.stopPropagation();this.startX=p.detail?p.detail.x:0};
_.l.onUp=function(p){this.skipKeyInteraction(p)&&p.stopPropagation()};
_.l.skipKeyInteraction=function(p){var x=p.target;if((x==null?void 0:x.id)==="scroll-container"||(x==null?void 0:x.id)==="items"||p.detail&&p.detail.x!==this.startX)return!0;p=_.m9(p);p=_.a(p);for(x=p.next();!x.done;x=p.next()){x=x.value;if(x===this.hostElement)break;if(x.hasAttribute&&x.hasAttribute("skip-key-interaction"))return!0}return!1};
_.l.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.R8.Object.defineProperties(iGJ.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var p;return!!_.r((p=this.data)==null?void 0:p.expandedContent,B_k)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var p;return!!_.r((p=this.data)==null?void 0:p.expandedContent,bbb)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var p,x;return!((p=this.data)==null||!p.useCustomColors)&&!((x=this.data)==null||!x.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var p,x;return!!((p=this.data)==null?0:(x=p.header)==null?0:x.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var p,x;return!!((p=this.data)==null?0:(x=p.header)==null?0:x.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var p,x;return!!((p=this.data)==null?0:(x=p.header)==null?0:x.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
var tK=iGJ;tK.prototype.onUp=tK.prototype.onUp;tK.prototype.onDown=tK.prototype.onDown;tK.prototype.isExpandedChanged=tK.prototype.isExpandedChanged;tK.prototype.dataChanged=tK.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],tK.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],tK.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],tK.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],tK.prototype,"isExpanded",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],tK.prototype,"disableExpand",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],tK.prototype,"isSearch",void 0);
_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],tK.prototype,"isWatch",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.k("design:type",Object)],tK.prototype,"showProminentLabel",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.k("design:type",Object)],tK.prototype,"showRightSideLabel",void 0);
_.B([_.H({value:!1,reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],tK.prototype,"hasVideoSummary",null);_.B([_.H({value:!1,reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],tK.prototype,"hasLockupViewModel",null);_.B([_.H({reflectToAttribute:!0}),_.w("data","isWatch"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],tK.prototype,"useCustomColors",null);
_.B([_.H({reflectToAttribute:!0}),_.w("data","isExpanded"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],tK.prototype,"showInfoButton",null);_.B([_.w("data","isExpanded"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],tK.prototype,"showTimestamp",null);_.B([_.w("data","isExpanded"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],tK.prototype,"showExpandedSubtitle",null);
_.B([_.w("data","isExpanded"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],tK.prototype,"showThumbnail",null);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],tK.prototype,"useVppShoppingDestinationStyle",null);_.B([_.H(),_.k("design:type",Object)],tK.prototype,"toggleExpandableContent",void 0);_.B([_.Ff("ytd-horizontal-card-list-renderer"),_.k("design:type",Object)],tK.prototype,"JSC$12909_cardList",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.k("design:type",Object)],tK.prototype,"useSquareThumbnail",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tK.prototype,"dataChanged",null);_.B([_.W("isExpanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tK.prototype,"isExpandedChanged",null);
_.B([_.V("down"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],tK.prototype,"onDown",null);_.B([_.V("up"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],tK.prototype,"onUp",null);tK=_.B([_.L({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],tK);
_.P(tK,"ytd-expandable-metadata-renderer",function(){if(aAv!==void 0)return aAv;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return aAv=p},{mode:1});var IPB,$wJ=function(){if(IPB!==void 0)return IPB;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return IPB=p};_.Ei("itemSectionRenderer","videoRenderer","ytd-video-renderer");var d4=function(){var p=_.m.apply(this,arguments)||this;p.disableExpand=!1;p.shouldShowChannelInfo=!1;p.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return p};
_.E(d4,_.m);_.l=d4.prototype;_.l.computeUseSearchUi=function(){var p,x;return this.isSearch||((p=this.data)==null?void 0:(x=p.style)==null?void 0:x.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.l.computeUseThreeLineTitle=function(){var p;return((p=this.data)==null?void 0:p.maxTitleLines)===3};
_.l.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.S("polymer_video_renderer_defer_menu")&&!pyZ?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]]"}}}}}};
_.l.attached=function(){_.iX(this.hostElement,"blue-links",_.S("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.Is(_.n(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var p=this.get("data.buttons.buttonRenderer.serviceEndpoint"),x;p&&((x=_.r(p.commandMetadata,_.gA))==null?0:x.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(p);this.updateInlinePreviewHoverListeners()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12914_inlinePreviewHoverListener=T7({mediaRenderer:this,lockupElement:this.JSC$12914_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.l.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$12914_inlinePreviewHoverListener)==null||MD(p)};
_.l.onTextWrapperClick=function(p){var x,F,N=this.hideTranslation?(x=this.data)==null?void 0:x.untranslatedNavigationEndpoint:(F=this.data)==null?void 0:F.navigationEndpoint;x=_.o4(_.m9(p),this.hostElement,["expandable-metadata"]);!N||x&&!_.S("expandable_metadata_fix_killswitch")||_.mx(_.m9(p),this.hostElement,["A".toString(),"BUTTON".toString()])||_.hG(this.hostElement,"yt-navigate",{endpoint:N})};
_.l.computeThumbnailWidth=function(p,x,F,N,h){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:N?h==="MASSIVE"?600:h==="BIG"?500:h==="MEDIUM"?450:420:F?360:x?128:p?210:246};
_.l.computeUseBiggerThumbs=function(p){return p&&_.S("enable_desktop_search_bigger_thumbs")};
_.l.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.l.computeVideoStyle=function(){if(_.S("enable_video_style")){var p,x;return(p=this.data)==null?void 0:(x=p.style)==null?void 0:x.value}};
_.l.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.l.handleHideItemSectionVideosByIdCommand=function(p){var x;p=(x=_.r(p,djl))==null?void 0:x.videoId;this.data&&this.data.videoId===p&&(this.isHidden=!0)};
_.l.getMetadataSnippetContainerClass=function(p){return p?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.l.computeTitleText=function(p,x,F){return p?F:x};
_.l.computeDescriptionSnippet=function(p,x,F){return p?F:x};
_.l.computeSnippetText=function(p,x,F){return p?F:x};
_.l.computeNavigationEndpoint=function(p,x){return p?x==null?void 0:x.untranslatedNavigationEndpoint:x==null?void 0:x.navigationEndpoint};
_.l.hideInlineTitleIcon=function(p,x){return p||!x};
_.R8.Object.defineProperties(d4.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 p;return(p=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?p:[]}return[]}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.JSC$12914_inlinePreviewHoverListener)==null?0:wK(p))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.R8.Object.defineProperties(d4,{template:{configurable:!0,enumerable:!0,get:function(){return $wJ()}}});
var vJ=d4;vJ.prototype.dataChanged=vJ.prototype.dataChanged;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],vJ.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],vJ.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],vJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],vJ.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.u(_.HL),_.k("design:type",Object)],vJ.prototype,"ytdLockupBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],vJ.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],vJ.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],vJ.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],vJ.prototype,"isBackstageVideo",void 0);
_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],vJ.prototype,"isPostCompactVideo",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],vJ.prototype,"isHistory",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],vJ.prototype,"isRichGridVideoPost",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],vJ.prototype,"isHidden",void 0);
_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],vJ.prototype,"isSearch",void 0);_.B([_.H({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.k("design:type",Boolean)],vJ.prototype,"useSearchUi",void 0);_.B([_.H({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.k("design:type",Boolean)],vJ.prototype,"useThreeLineTitle",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.k("design:type",Boolean)],vJ.prototype,"useBiggerThumbs",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.k("design:type",Object)],vJ.prototype,"videoStyle",void 0);_.B([_.H({computed:"computeDisableExpand(videoStyle)"}),_.k("design:type",Object)],vJ.prototype,"disableExpand",void 0);
_.B([_.H({computed:"computeShouldShowChannelInfo(useSearchUi, data)"}),_.k("design:type",Object)],vJ.prototype,"shouldShowChannelInfo",void 0);_.B([_.H({reflectToAttribute:!0,value:function(){return _.iO("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],vJ.prototype,"biggerThumbsStyle",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.k("design:type",String)],vJ.prototype,"inlineTitleIcon",void 0);_.B([_.H({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.k("design:type",Object)],vJ.prototype,"computedNavigationEndpoint",void 0);_.B([_.H({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(p,x){return _.M4(p.entities,"searchVideoResultEntity",x)}}),
_.k("design:type",Object)],vJ.prototype,"searchVideoResultEntity",void 0);_.B([_.Ff("ytd-thumbnail"),_.k("design:type",HTMLElement)],vJ.prototype,"thumbnail",void 0);_.B([_.Ff("#dismissible"),_.k("design:type",HTMLElement)],vJ.prototype,"JSC$12914_dismissibleMedia",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vJ.prototype,"dataChanged",null);
_.B([_.w("searchVideoResultEntity"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vJ.prototype,"hideTranslation",null);_.B([_.w("searchVideoResultEntity"),_.k("design:type",Array),_.k("design:paramtypes",[])],vJ.prototype,"hiddenBadgeGroups",null);_.B([_.w("lockupIsHovered"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vJ.prototype,"isHovered",null);vJ=_.B([_.L({is:"ytd-video-renderer",disableElementRegistration:!0})],vJ);
_.P(vJ,"ytd-video-renderer",function(){return $wJ()},{mode:_.UQ("kevlar_poly_si_batch_j047")?1:2});var ezv=function(){var p=_.m.apply(this,arguments)||this;p.editDialog=null;p.roundedContainer=!0;p.isLoading=!1;p.isRichGrid=!1;p.isRichGridRepost=!1;p.reduceSidePaddings=_.S("reduce_side_paddings_in_shelf");p.JSC$12920_spinnerEl=null;return p};
_.E(ezv,_.m);_.l=ezv.prototype;
_.l.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",properties:{isPostCompactVideo:"[[usesCompactLockup]]",
isRichGridVideoPost:"[[isRichGrid]]"}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isPostCompactPlaylist:"[[usesCompactLockup]]"}},uploadedVideoRenderer:{component:"ytd-post-uploaded-video-renderer"}}},"data.voteButton":{id:"vote-button",mapping:{buttonRenderer:"ytd-button-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},
dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.l.contentTextChanged=function(){this.expander.reset()};
_.l.dataChanged=function(){var p=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var x=0,F=this.data.actions&&this.data.actions.length;x<F;x++)this.openEditDialog(_.r(this.data.actions[x],jXk));if((x=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(x=this.get("buttonRenderer.hint.hintRenderer.hintId",x))&&x.startsWith("share-post-hint")){var N=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(N){_.IO.getInstance();var h=$x(_.L1(_.JG("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.E0.addLowPriorityJob(function(){_.Kc(p.hostElement,h,N)})}}}};
_.l.updatePoll=function(p){p>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.l.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12920_spinnerEl||(this.JSC$12920_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.n(this.hostElement).appendChild(this.JSC$12920_spinnerEl));this.JSC$12920_spinnerEl&&(this.JSC$12920_spinnerEl.active=this.isLoading)};
_.l.onYtNavigate=function(p){var x=this.get("updateCommentDialogEndpoint",p.detail.endpoint);x&&(this.openEditDialog(x),p.stopPropagation())};
_.l.onYtCommentboxDismiss=function(){this.editDialog=null};
_.l.onYtCommentPollRevert=function(p,x){x&&this.updatePoll(x.selectedChoiceIndex)};
_.l.onYtServiceRequestSent=function(p,x){var F;x.endpoint&&(_.r(x.endpoint,pjb)||_.r(x.endpoint,Ya)&&((F=_.r(x.endpoint,Ya))==null||!F.clientActions))&&(this.isLoading=!0);if(x.actions)for(p=0;p<x.actions.length;p++)F=x.actions[p],_.r(F,E9)&&(F=this.get("updateBackstagePollAction.selectedChoiceIndex",F),F==void 0&&(F=-1),this.updatePoll(F))};
_.l.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.l.openEditDialog=function(p){p&&p.dialog&&(this.editDialog=p.dialog,p=this.editDialogEl.firstElementChild)&&(p.focus(),p.openDialog&&p.openDialog())};
_.l.computeIsPostHidden=function(p,x){return!!p||x};
_.l.computeSurfaceType=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.l.computeUsesCompactLockup=function(p){return p==="BACKSTAGE_SURFACE_TYPE_HOME"||p==="BACKSTAGE_SURFACE_TYPE_SEARCH"||p==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||p==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||p==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||p==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.l.computeShowWithoutToolbar=function(p){return!p.actionButtons&&!p.actionMenu};
_.l.computePostAttachment=function(p){if(p.backstageAttachment){if(_.r(p.backstageAttachment,GvD))return"poll";if(_.r(p.backstageAttachment,Cx6))return"quiz";if(_.r(p.backstageAttachment,_.LFI))return"video";if(_.r(p.backstageAttachment,S9m))return"uploaded-videos";if(_.r(p.backstageAttachment,vjv))return p.contentText?"image":"image-only";if(_.r(p.backstageAttachment,tdJ))return"playlist"}return"none"};
_.l.computePostTabIndex=function(p){return p?0:-1};
_.l.computeButtonTooltipPosition=function(p){return this.computeUsesCompactLockup(p)?"top":"bottom"};
_.l.computeHasText=function(p){return!(p==null||!p.contentText)};
_.l.onTap=function(p){var x,F;if(((x=this.data)==null?0:x.navigationEndpoint)&&((F=this.data)==null?void 0:F.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var N;((N=this.data)==null?0:N.navigationEndpoint)&&!_.mx(_.m9(p)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.hG(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.R8.Object.defineProperties(ezv.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.voteCount)||_.L1("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.r(this.data.backstageAttachment,GvD))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.r(this.data.backstageAttachment,S9m))}}});
var JK=ezv;JK.prototype.onYtServiceRequestCompleted=JK.prototype.onYtServiceRequestCompleted;JK.prototype.onYtServiceRequestSent=JK.prototype.onYtServiceRequestSent;JK.prototype.onYtCommentPollRevert=JK.prototype.onYtCommentPollRevert;JK.prototype.onYtCommentboxDismiss=JK.prototype.onYtCommentboxDismiss;JK.prototype.onYtNavigate=JK.prototype.onYtNavigate;JK.prototype.isLoadingChanged=JK.prototype.isLoadingChanged;JK.prototype.dataChanged=JK.prototype.dataChanged;JK.prototype.contentTextChanged=JK.prototype.contentTextChanged;
_.B([_.u(_.bh),_.k("design:type",Object)],JK.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],JK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],JK.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],JK.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],JK.prototype,"editDialog",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],JK.prototype,"roundedContainer",void 0);_.B([_.H(),_.k("design:type",Object)],JK.prototype,"isLoading",void 0);_.B([_.H({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.k("design:type",String)],JK.prototype,"surface",void 0);
_.B([_.H({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.k("design:type",Boolean)],JK.prototype,"usesCompactLockup",void 0);_.B([_.H({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],JK.prototype,"showWithoutToolbar",void 0);_.B([_.H({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.k("design:type",String)],JK.prototype,"attachment",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],JK.prototype,"isRichGrid",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],JK.prototype,"isRichGridRepost",void 0);_.B([_.H({reflectToAttribute:!0,value:_.S("use_better_post_dismissals")}),_.k("design:type",Boolean)],JK.prototype,"useBetterPostDismissals",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],JK.prototype,"reduceSidePaddings",void 0);
_.B([_.H({computed:"computeHasText(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],JK.prototype,"hasText",void 0);_.B([_.Ff("#expander"),_.k("design:type",Object)],JK.prototype,"expander",void 0);_.B([_.Ff("#action-buttons"),_.k("design:type",Object)],JK.prototype,"actionButtons",void 0);_.B([_.Ff("#edit-dialog"),_.k("design:type",HTMLElement)],JK.prototype,"editDialogEl",void 0);
_.B([_.W("data.contentText"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],JK.prototype,"contentTextChanged",null);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],JK.prototype,"dataChanged",null);_.B([_.W("isLoading"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],JK.prototype,"isLoadingChanged",null);
_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],JK.prototype,"onYtNavigate",null);_.B([_.V("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],JK.prototype,"onYtCommentboxDismiss",null);_.B([_.V("yt-comment-poll-revert"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],JK.prototype,"onYtCommentPollRevert",null);
_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],JK.prototype,"onYtServiceRequestSent",null);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Ht]),_.k("design:returntype")],JK.prototype,"onYtServiceRequestCompleted",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],JK.prototype,"voteCount",null);
_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],JK.prototype,"commentCount",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],JK.prototype,"hasPoll",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],JK.prototype,"hasUploadedVideo",null);JK=_.B([_.L({is:"ytd-post-renderer",disableElementRegistration:!0})],JK);
_.P(JK,"ytd-post-renderer",function(){if(M8v!==void 0)return M8v;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return M8v=p},{mode:1});var pXl;var xRn;var F5C=function(){return _.m.apply(this,arguments)||this};
_.E(F5C,_.m);F5C.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
var CS=F5C;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],CS.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],CS.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.$k.YtdHorizontalListBehavior),_.k("design:type",Object)],CS.prototype,"ytdHorizontalListBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],CS.prototype,"componentBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],CS.prototype,"data",void 0);_.B([_.H({value:"$.items.children"}),_.k("design:type",String)],CS.prototype,"itemsPath",void 0);_.B([_.H({value:1}),_.k("design:type",Number)],CS.prototype,"initialCount",void 0);_.B([_.H(),_.k("design:type",String)],CS.prototype,"surface",void 0);CS=_.B([_.L({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],CS);
_.P(CS,"ytd-post-multi-image-renderer",function(){if(xRn!==void 0)return xRn;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return xRn=p},{mode:_.UQ("kevlar_poly_si_batch_j079")?1:2});var Nuk={"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"}}},huv=function(){var p=_.m.apply(this,arguments)||this;p.hasInlineCommentSection=!1;p.editDialog=null;p.isLoading=!1;p.shouldHideAuthor=!1;p.shouldShowVideoTime=!1;
p.isInEngagementPanel=!1;p.hideBorder=!1;p.usesFullLockup=!1;p.shouldShowMenuInCompactView=!1;p.JSC$12936_spinnerEl=null;p.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return p};
_.E(huv,_.m);_.l=huv.prototype;_.l.configureRendererStamper=function(){return Nuk};
_.l.computeIsPollHeaderEnabled=function(p){return(p==null?void 0:p.pollMetadataIcon)!=null};
_.l.getPublishTimeStampString=function(p,x){x=new Date((Number(x)-60*((new Date).getTimezoneOffset()-(new Date(Number(x)*1E3)).getTimezoneOffset()))*1E3);x=(new OJ(10)).format(x);if(p&&p.runs&&p.runs.length)for(var F=0;F<p.runs.length;F++)p.runs[F].text&&(p.runs[F].text=p.runs[F].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",x));return p};
_.l.created=function(){this.JSC$12936_spinnerEl=null};
_.l.contentTextChanged=function(){this.expander.reset()};
_.l.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var p;if((p=this.data)==null?0:p.actions){p=_.a(this.data.actions);for(var x=p.next();!x.done;x=p.next())this.openEditDialog(_.r(x.value,jXk))}};
_.l.handleSignalActionOpenPostCommentDialogAction=function(){_.n(this.hostElement).querySelector("#action-buttons").reply()};
_.l.updatePoll=function(p,x){x&&this.set("data.pollMetadataVoteCountText",x);this.hasInlineCommentSection&&(p=p>=0,x=_.n(this.hostElement).querySelector("#action-buttons"),p?x.reply():x.hideReplyDialog())};
_.l.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12936_spinnerEl||(this.JSC$12936_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.n(this.hostElement).appendChild(this.JSC$12936_spinnerEl));this.JSC$12936_spinnerEl&&(this.JSC$12936_spinnerEl.active=this.isLoading)};
_.l.onYtNavigate=function(p){var x=this.get("updateCommentDialogEndpoint",p.detail.endpoint);x&&(this.openEditDialog(x),p.stopPropagation())};
_.l.onYtCommentboxDismiss=function(){this.editDialog=null};
_.l.onYtCommentPollRevert=function(p,x){x&&this.updatePoll(x.selectedChoiceIndex,x.totalVotes)};
_.l.onYtServiceRequestSent=function(p,x){p.stopPropagation();p=_.r(x.endpoint,Ya);if(_.r(x.endpoint,pjb)||p&&!p.clientActions)this.isLoading=!0;if(x.actions)for(p=0;p<x.actions.length;p++){var F=x.actions[p],N=_.r(F,E9);N&&(F=this.get("updateBackstagePollAction.selectedChoiceIndex",F),F===void 0&&(F=-1),this.updatePoll(F,N.totalVotes))}};
_.l.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.l.openEditDialog=function(p){p&&p.dialog&&(this.editDialog=p.dialog,p=this.editDialogElement.firstElementChild)&&(p.focus(),p.openDialog&&p.openDialog())};
_.l.computeIsBodyHidden=function(p,x){return!!p||x};
_.R8.Object.defineProperties(huv.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var p,x;if((p=this.data)==null?0:(x=p.pollMetadataIcon)==null?0:x.iconType)return _.eA(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.voteCount)||_.L1("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.r(this.data.backstageAttachment,GvD))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.r(this.data.backstageAttachment,Cx6))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.r(this.data.backstageAttachment,S9m))}}});
var Sh=huv;Sh.prototype.onYtServiceRequestCompleted=Sh.prototype.onYtServiceRequestCompleted;Sh.prototype.onYtServiceRequestSent=Sh.prototype.onYtServiceRequestSent;Sh.prototype.onYtCommentPollRevert=Sh.prototype.onYtCommentPollRevert;Sh.prototype.onYtCommentboxDismiss=Sh.prototype.onYtCommentboxDismiss;Sh.prototype.onYtNavigate=Sh.prototype.onYtNavigate;Sh.prototype.isLoadingChanged=Sh.prototype.isLoadingChanged;Sh.prototype.dataChanged=Sh.prototype.dataChanged;Sh.prototype.contentTextChanged=Sh.prototype.contentTextChanged;
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Sh.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Sh.prototype,"rendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Sh.prototype,"rendererstamperBehavior",void 0);_.B([_.Ff("#contentTextExpander"),_.k("design:type",Object)],Sh.prototype,"expander",void 0);
_.B([_.Ff("#edit-dialog"),_.k("design:type",Element)],Sh.prototype,"editDialogElement",void 0);_.B([_.H(),_.k("design:type",Object)],Sh.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Sh.prototype,"hasInlineCommentSection",void 0);_.B([_.H(),_.k("design:type",Object)],Sh.prototype,"editDialog",void 0);_.B([_.H(),_.k("design:type",Object)],Sh.prototype,"isLoading",void 0);
_.B([_.H({computed:"computeIsPollHeaderEnabled(data)"}),_.k("design:type",Boolean)],Sh.prototype,"isPollHeaderEnabled",void 0);_.B([_.H(),_.k("design:type",Object)],Sh.prototype,"shouldHideAuthor",void 0);_.B([_.H(),_.k("design:type",Object)],Sh.prototype,"shouldShowVideoTime",void 0);_.B([_.H(),_.k("design:type",Object)],Sh.prototype,"isInEngagementPanel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Sh.prototype,"hideBorder",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Sh.prototype,"usesFullLockup",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Sh.prototype,"shouldShowMenuInCompactView",void 0);_.B([_.w("isInEngagementPanel"),_.k("design:type",Number),_.k("design:paramtypes",[])],Sh.prototype,"postTextMaxLines",null);_.B([_.w("data.icon.iconType"),_.k("design:type",Object),_.k("design:paramtypes",[])],Sh.prototype,"pollIcon",null);
_.B([_.W("data.contentText"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sh.prototype,"contentTextChanged",null);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sh.prototype,"dataChanged",null);_.B([_.W("isLoading"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sh.prototype,"isLoadingChanged",null);
_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Sh.prototype,"onYtNavigate",null);_.B([_.V("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sh.prototype,"onYtCommentboxDismiss",null);_.B([_.V("yt-comment-poll-revert"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],Sh.prototype,"onYtCommentPollRevert",null);
_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],Sh.prototype,"onYtServiceRequestSent",null);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Sh.prototype,"onYtServiceRequestCompleted",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Sh.prototype,"voteCount",null);
_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Sh.prototype,"commentCount",null);_.B([_.w("data.backstageAttachment"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Sh.prototype,"hasPoll",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Sh.prototype,"hasQuiz",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Sh.prototype,"hasUploadedVideo",null);
Sh=_.B([_.L({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Sh);
_.P(Sh,"ytd-backstage-post-renderer",function(){if(pXl!==void 0)return pXl;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return pXl=p},{mode:1});var lNB;var cgj=function(){var p=_.m.apply(this,arguments)||this;p.editDialog=null;p.showExpandButton=!1;p.isRichGrid=!1;p.usesFullLockup=!1;return p};
_.E(cgj,_.m);_.l=cgj.prototype;_.l.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.originalPost":{id:"original-post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{usesFullLockup:"[[usesFullLockup]]"}},postRenderer:{component:"ytd-post-renderer",properties:{isRichGridRepost:"[[isRichGrid]]"}}}},editDialog:{id:"repost-edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}}};
_.l.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.l.computeShowExpandButton=function(p){return this.usesCompactLockup||p&&p.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.l.computeUsesCompactLockup=function(p){return!!p.condensedContent};
_.l.computeShowFullContentText=function(p){return!p};
_.l.onYtNavigate=function(p){p=this.get("updateCommentDialogEndpoint",p.detail.endpoint);this.openEditDialog(p)};
_.l.onYtCommentboxDismiss=function(){this.editDialog=null};
_.l.openEditDialog=function(p){p&&p.dialog&&(this.editDialog=p.dialog,p=this.repostEditDialogEl.firstElementChild)&&(p.focus(),p.openDialog&&p.openDialog())};
_.l.onTap=function(p){if(this.data){var x=null;this.usesCompactLockup&&!_.mx(_.m9(p)||[],this.hostElement,["YT-IMG-SHADOW"])?x=this.get("navigationEndpoint",this.data):p.target===this.moreButtonEl&&(x=this.get("navigationEndpoint",p.target.data));x&&_.hG(this.hostElement,"yt-navigate",{endpoint:x})}};
var r4=cgj;r4.prototype.onYtCommentboxDismiss=r4.prototype.onYtCommentboxDismiss;r4.prototype.onYtNavigate=r4.prototype.onYtNavigate;r4.prototype.dataChanged=r4.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],r4.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],r4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],r4.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],r4.prototype,"editDialog",void 0);_.B([_.H({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],r4.prototype,"usesCompactLockup",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],r4.prototype,"showExpandButton",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],r4.prototype,"isRichGrid",void 0);
_.B([_.H({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.k("design:type",Boolean)],r4.prototype,"showFullContentText",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],r4.prototype,"usesFullLockup",void 0);_.B([_.Ff("#more"),_.k("design:type",Object)],r4.prototype,"moreButtonEl",void 0);_.B([_.Ff("#repost-content-text"),_.k("design:type",HTMLElement)],r4.prototype,"repostContentTextEl",void 0);
_.B([_.Ff("#repost-edit-dialog"),_.k("design:type",HTMLElement)],r4.prototype,"repostEditDialogEl",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],r4.prototype,"dataChanged",null);_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],r4.prototype,"onYtNavigate",null);
_.B([_.V("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],r4.prototype,"onYtCommentboxDismiss",null);r4=_.B([_.L({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],r4);
_.P(r4,"ytd-shared-post-renderer",function(){if(lNB!==void 0)return lNB;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return lNB=p},{mode:1});var aNb;var M4n;var DRb;var fNB=function(){var p=_.m.apply(this,arguments)||this;p.boundCaptureFocus=function(x){p.onCaptureFocus(x)};
return p};
_.E(fNB,_.m);_.l=fNB.prototype;_.l.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.l.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.l.onCaptureFocus=function(p){_.m9(p).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.l.getIconType=function(p){return p?"yt-icons:"+p.toLowerCase():null};
_.l.onSelect=function(){var p;if((p=this.data)==null?0:p.onSelectCommand)if(_.S("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var x;((x=_.r(this.data.onSelectCommand.commandMetadata,_.eq))==null?0:x.url)?_.hG(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.J().resolve(_.RD).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.R8.Object.defineProperties(fNB.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.Pi(this.data.label):""}},
value:{configurable:!0,enumerable:!0,get:function(){return this.data?typeof this.data.stringValue==="string"?this.data.stringValue:typeof this.data.int32Value==="number"?this.data.int32Value:null:null}}});
var Et=fNB;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Et.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Et.prototype,"data",void 0);_.B([_.Ff("#item"),_.k("design:type",HTMLElement)],Et.prototype,"item",void 0);_.B([_.w("data.label"),_.k("design:type",String),_.k("design:paramtypes",[])],Et.prototype,"label",null);
_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Et.prototype,"value",null);Et=_.B([_.L({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],Et);
_.P(Et,"ytd-privacy-dropdown-item-renderer",function(){if(DRb!==void 0)return DRb;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return DRb=p},{mode:1});var K5D=function(){var p=_.m.apply(this,arguments)||this;p.value="";p.label="";p.disabled=!1;return p};
_.E(K5D,_.m);_.l=K5D.prototype;_.l.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.l.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.l.dataChanged=function(){this.reset()};
_.l.valueChanged=function(){var p;if(this.value&&(p=this.data)!=null&&p.entries){p=_.a(this.data.entries);for(var x=p.next();!x.done;x=p.next())if((x=this.getRendererForEntry(x.value))&&this.getItemRendererValue(x)===this.value){this.label=this.ytComponentBehavior.getSimpleString(x.label);break}}};
_.l.setInitialLabel=function(){if(this.data&&this.data.entries)for(var p=_.a(this.data.entries),x=p.next();!x.done;x=p.next())if(x=this.getRendererForEntry(x.value)){if(x.isSelected){this.label=this.ytComponentBehavior.getSimpleString(x.label);break}this.data.label&&(this.label=this.data.label)}};
_.l.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var p=_.a(this.data.entries),x=p.next();!x.done;x=p.next()){x=this.getRendererForEntry(x.value);var F=void 0;if((F=x)==null?0:F.isSelected)return this.getItemRendererValue(x)||-1}return-1};
_.l.getItemRendererValue=function(p){return"stringValue"in p||"int32Value"in p?p.stringValue||p.int32Value||null:null};
_.l.getRendererForEntry=function(p){return p.dropdownItemRenderer||p.privacyDropdownItemRenderer||p.navigationDropdownItemRenderer||null};
_.l.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Vx("value-changed",this.value))};
_.l.updateValueFromBinding=function(p){this.value=p.detail.value};
var X$=K5D;X$.prototype.valueChangedForBinding=X$.prototype.valueChangedForBinding;X$.prototype.valueChanged=X$.prototype.valueChanged;X$.prototype.dataChanged=X$.prototype.dataChanged;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],X$.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],X$.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],X$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],X$.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],X$.prototype,"value",void 0);_.B([_.H(),_.k("design:type",Object)],X$.prototype,"label",void 0);_.B([_.Ff("#entries"),_.k("design:type",Object)],X$.prototype,"entries",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],X$.prototype,"disabled",void 0);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],X$.prototype,"dataChanged",null);_.B([_.cT("value"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],X$.prototype,"valueChanged",null);_.B([_.W("value"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],X$.prototype,"valueChangedForBinding",null);X$=_.B([_.L({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],X$);
_.P(X$,"ytd-flat-dropdown-renderer",function(){if(M4n!==void 0)return M4n;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return M4n=p},{mode:1});var qDn;var Zev=function(){return _.m.apply(this,arguments)||this};
_.E(Zev,_.m);Zev.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&(_.S("web_ytd_identity_chip_renderer_command_resolver_ks")?_.fc(this.hostElement,[this.data.onTapCommand]):_.J().resolve(_.RD).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}}))};
var g4=Zev;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],g4.prototype,"data",void 0);g4=_.B([_.L({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],g4);
_.P(g4,"ytd-identity-chip-renderer",function(){if(qDn!==void 0)return qDn;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return qDn=p},{mode:1});var t46;var dRJ;var v8b=function(){var p=_.m.apply(this,arguments)||this;p.images=[];p.selectedImageIndex=0;return p};
_.E(v8b,_.m);_.l=v8b.prototype;
_.l.ready=function(){_.qd(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.qd(this.JSC$12962_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.qd(this.JSC$12962_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.qd(this.JSC$12962_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.l.onThumbnailClick=function(p){if(p=p.event_.detail)this.selectedImageIndex=this.images.indexOf(p)};
_.l.updateImageThumbnails=function(p){p=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:p.event_.detail});this.images.splice(this.selectedImageIndex,1,p);this.images=[].concat(_.se(this.images))};
_.l.cancelImageRepositions=function(){this.selectedImageIndex=0;_.hG(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.l.saveImageRepositions=function(){this.selectedImageIndex=0;_.hG(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.R8.Object.defineProperties(v8b.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var p=this;return(this.images||[]).map(function(x,F){return{image:x,selected:F===p.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
var Qk=v8b;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Qk.prototype,"ytRendererstamperBehavior",void 0);_.B([_.Ff("ytd-backstage-image-preview-renderer"),_.k("design:type",Object)],Qk.prototype,"JSC$12962_imagePreviewContainer",void 0);_.B([_.Ff(".thumbnail-images-container"),_.k("design:type",HTMLElement)],Qk.prototype,"thumbnailImagesContainer",void 0);_.B([_.H(),_.k("design:type",Array)],Qk.prototype,"images",void 0);
_.B([_.H(),_.k("design:type",Object)],Qk.prototype,"repositionInstructions",void 0);_.B([_.H(),_.k("design:type",Object)],Qk.prototype,"selectedImageIndex",void 0);_.B([_.w("images","selectedImageIndex"),_.k("design:type",Array),_.k("design:paramtypes",[])],Qk.prototype,"thumbnailRendererDatas",null);_.B([_.w("images","selectedImageIndex"),_.k("design:type",Object),_.k("design:paramtypes",[])],Qk.prototype,"selectedImageData",null);
Qk=_.B([_.L({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Qk);
_.P(Qk,"ytd-backstage-multi-image-reposition-renderer",function(){if(dRJ!==void 0)return dRJ;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return dRJ=p},{mode:1});var zJ=function(p,x){_.Sc.call(this);this.uploadUrl=p;this.channelId=x;this.imagesUploadData=[]};
_.E(zJ,_.Sc);zJ.prototype.getAllUploadStatuses=function(){var p=this,x,F,N;return _.D(function(h){if(h.nextAddress==1)return _.q(h,Jgv(p),2);x=h.yieldResult;F=x.get("succeed");N=x.get("failed");return h.return(F.concat(N))})};
var SDn=function(p){var x,F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,Jgv(p),2);x=N.yieldResult;F=x.get("failed");F.length>0&&C9B(p,F);return N.return(p.getAllUploadStatuses())})},Jgv=function(p){var x,F,N,h,c,M,f;
return _.D(function(K){if(K.nextAddress==1)return x=new Map,_.q(K,Promise.allSettled(p.imagesUploadData.map(function(t){return t.uploadPromise})),2);
F=K.yieldResult;N=[];h=_.a(F);for(c=h.next();!c.done;c=h.next())M=c.value,M.status==="fulfilled"&&N.push(M.value);f=p.imagesUploadData.map(function(t){return t.image}).filter(function(t){return N.every(function(d){return d.id!==t.id})});
x.set("succeed",N);x.set("failed",f);return K.return(x)})},C9B=function(p,x){x=_.a(x);
for(var F=x.next();!F.done;F=x.next()){var N=p;F=F.value;rgD(N,F.id)>=0&&N.cancel(F.id);var h=new E8m(F),c=_.HyD(N.uploadUrl,{"X-YouTube-ChannelId":N.channelId},F.imageBlob);h.transfer=c;h.uploadPromise=XXj(c,F);N.imagesUploadData.push(h);c.run()}};
zJ.prototype.cancel=function(p){var x=rgD(this,p);x!==-1&&((x=this.imagesUploadData[x].transfer)&&x.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(F){return F.image.id!==p}))};
var rgD=function(p,x){return p.imagesUploadData.findIndex(function(F){return F.image.id===x})},XXj=function(p,x){return new Promise(function(F,N){p.listen("l",function(){var h=p.getResponseText();
h?(h=JSON.parse(h).encryptedBlobId,x.encryptedBlobId=h,F(x)):N("upload failed")});
p.listen("n",function(){N("upload failed")})})},E8m=function(p){this.image=p};var OA6=function(p,x,F,N,h){this.id=p;this.imageBlob=x;this.localImageSrc=F;this.naturalWidth=N;this.naturalHeight=h;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 g8D=[".jpeg",".jpg",".png"],QW6=function(){var p=_.m.apply(this,arguments)||this;p.showImagesPreview=!1;p.pollOptions=[];p.errorMessage="";p.optionPlaceholderText="";p.optionDefaultText="";p.JSC$12973_imageId=0;p.maxFileSizeMb=0;p.maxAspectRatio=0;p.invalidFileSizeError="";p.invalidAspectRatioError="";p.invalidFileTypeError="";p.imageSelector=new De(null,"single_file",g8D);return p};
_.E(QW6,_.m);_.l=QW6.prototype;_.l.ready=function(){_.qd(this.imageSelector,"j",this.onImageSelect,!1,this);_.qd(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.qd(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.l.dataChanged=function(){var p,x,F=_.r((p=this.data)==null?void 0:(x=p.cellTemplate)==null?void 0:x.onEmptyCellTap,ynl);if(F&&F.uploadUrl&&F.channelId){var N;this.maxFileSizeMb=((N=F.imageValidationInfo)==null?void 0:N.maxFileSizeMb)||0;var h;this.maxAspectRatio=((h=F.imageValidationInfo)==null?void 0:h.allowedMaxAspectRatio)||0;var c;this.invalidFileSizeError=this.getSimpleString((c=this.data)==null?void 0:c.invalidFileSizeError);var M;this.invalidAspectRatioError=this.getSimpleString((M=this.data)==
null?void 0:M.invalidAspectRatioError);var f;this.invalidFileTypeError=this.getSimpleString((f=this.data)==null?void 0:f.invalidFileTypeError);this.uploadManager=new zJ(F.uploadUrl,F.channelId)}};
_.l.onEditorInfoChange=function(){this.optionPlaceholderText=_.Pi(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.Pi(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.l.observeAddImageError=function(){this.errorMessage!==""&&_.hG(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.l.onPollOptionsChange=function(){for(var p=!1,x=[],F=0;F<this.pollOptions.length;F++){var N=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(F+1);this.pollOptions[F].placeholderText!==N?(p=!0,x.push(Object.assign({},this.pollOptions[F],{placeholderText:N}))):x.push(this.pollOptions[F])}p&&(this.pollOptions=x);this.isValid()?_.hG(this.hostElement,"yt-commentbox-post-enable"):_.hG(this.hostElement,"yt-commentbox-post-disable")};
_.l.createPollOptions=function(p){var x=[],F;p=(F=p==null?void 0:p.minPollOptions)!=null?F:0;for(F=0;F<p;F++)x.push(this.createPollOption());return x};
_.l.onImageSelect=function(p){var x=this,F,N,h,c,M,f;return _.D(function(K){if(K.nextAddress==1){if(x.selectedImageIndex===void 0)return K.jumpTo(0);F=p.files[0];x.errorMessage="";N=x.validateImage(F);if(N!=="")return x.errorMessage=N,K.return();h=new O9(x.maxAspectRatio,!1,!0);return _.q(K,h.transform(F),3)}if(K.nextAddress!=4)return c=K.yieldResult,c.transformedData?c.invalidAspectRatio?(x.errorMessage=x.invalidAspectRatioError,K.return()):_.q(K,jr$(x.JSC$12973_imageId,p.files[0],c.transformedData),
4):(x.errorMessage=x.invalidFileTypeError,K.return());M=K.yieldResult;x.JSC$12973_imageId++;C9B(x.uploadManager,[M]);f=Object.assign({},x.pollOptions[x.selectedImageIndex],{image:M});x.pollOptions.splice(x.selectedImageIndex,1,f);x.refreshPollOptions();_.hG(x.hostElement,"yt-backstage-poll-image-select");_.JB(K)})};
_.l.validateImage=function(p){return p.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.l.refreshPollOptions=function(){this.pollOptions=[].concat(_.se(this.pollOptions))};
_.l.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.se(this.pollOptions),[this.createPollOption()]))};
_.l.onRemovePollOption=function(p){var x=this.pollOptions[p.model.index];x&&x.image&&this.uploadManager.cancel(x.image.id);this.pollOptions.splice(p.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.hG(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.l.onTextInput=function(){this.refreshPollOptions()};
_.l.onImageButtonClick=function(p){this.selectedImageIndex=p.model.index;this.imageSelector.click()};
_.l.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.l.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.l.saveImageRepositions=function(p){p=p.event_.detail;for(var x=0,F=[],N=_.a(this.pollOptions),h=N.next();!h.done;h=N.next())h=h.value,h.image!==void 0?(h=Object.assign({},h,{image:p[x]}),F.push(h),x++):F.push(h);this.showImagesPreview=!1;this.pollOptions=[].concat(_.se(F))};
_.l.isValid=function(){if(!this.editorInfo||this.showImagesPreview||this.pollOptions.length<Number(this.editorInfo.minPollOptions)||this.pollOptions.length>Number(this.editorInfo.maxPollOptions))return!1;for(var p=0,x=_.a(this.pollOptions),F=x.next();!F.done;F=x.next())if(F=F.value,F.optionText.trim()!==""||F.image!==void 0){if(!F.image||this.hasCustomOptionText&&F.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;p++}return p>=Number(this.editorInfo.minPollOptions)};
_.l.getAllUploadStatuses=function(){var p=this,x,F,N,h;return _.D(function(c){if(c.nextAddress==1)return _.q(c,p.uploadManager.getAllUploadStatuses(),2);x=c.yieldResult;F=_.a(x);for(N=F.next();!N.done;N=F.next())if(h=N.value,h.encryptedBlobId===void 0)return c.return(SDn(p.uploadManager));return c.return(x)})};
_.l.getPostCreateOptions=function(){for(var p=[],x=_.a(this.pollOptions),F=x.next();!F.done;F=x.next())F=F.value,F.image!==void 0&&p.push({text:this.hasCustomOptionText?F.optionText:F.placeholderText,image:F.image});return p};
_.l.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.l.createButtonRenderer=function(p,x){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:p,accessibilityData:{accessibilityData:{label:this.getSimpleString(p)}},isDisabled:x}};
_.l.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.l.computeThumbnailRendererData=function(p){return p?{image:p,selected:!1}:void 0};
_.l.getSimpleString=function(p){return _.Pi(p)};
_.l.updateOptionTextFromBinding=function(p){if(p.target){var x=Array.from(_.n(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(p.target);if(x>=0){var F;this.pollOptions[x].optionText=(F=p.detail.value)!=null?F:""}}};
_.R8.Object.defineProperties(QW6.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var p,x;return this.pollOptions.length<((x=(p=this.editorInfo)==null?void 0:p.maxPollOptions)!=null?x:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(p){return p.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(p){return p.image}).map(function(p){return p.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(p){return p.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var p,x=(p=this.data)==null?void 0:p.addOptionButtonText;return x?this.createButtonRenderer(x,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var p,x=(p=this.data)==null?void 0:p.repositionImagesButtonLabel;return x?this.createButtonRenderer(x,!this.hasImages):void 0}}});
var st=QW6;st.prototype.onPollOptionsChange=st.prototype.onPollOptionsChange;st.prototype.observeAddImageError=st.prototype.observeAddImageError;st.prototype.onEditorInfoChange=st.prototype.onEditorInfoChange;st.prototype.dataChanged=st.prototype.dataChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],st.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.Ff("ytd-backstage-multi-image-reposition-renderer"),_.k("design:type",Object)],st.prototype,"imageRepositionContainer",void 0);_.B([_.H(),_.k("design:type",Object)],st.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],st.prototype,"editorInfo",void 0);_.B([_.H(),_.k("design:type",zJ)],st.prototype,"uploadManager",void 0);_.B([_.H(),_.k("design:type",Object)],st.prototype,"showImagesPreview",void 0);_.B([_.H(),_.k("design:type",Array)],st.prototype,"pollOptions",void 0);
_.B([_.H(),_.k("design:type",Object)],st.prototype,"errorMessage",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],st.prototype,"dataChanged",null);_.B([_.cT("editorInfo"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],st.prototype,"onEditorInfoChange",null);_.B([_.W("errorMessage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],st.prototype,"observeAddImageError",null);
_.B([_.cT("pollOptions"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],st.prototype,"onPollOptionsChange",null);_.B([_.w("pollOptions","editorInfo"),_.k("design:type",Object),_.k("design:paramtypes",[])],st.prototype,"isAllowedToAddOption",null);_.B([_.w("pollOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],st.prototype,"hasImages",null);
_.B([_.w("pollOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],st.prototype,"imagesToReposition",null);_.B([_.w("pollOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],st.prototype,"hasCustomOptionText",null);_.B([_.w("data","isAllowedToAddOption"),_.k("design:type",Object),_.k("design:paramtypes",[])],st.prototype,"addOptionButton",null);_.B([_.w("data","hasImages"),_.k("design:type",Object),_.k("design:paramtypes",[])],st.prototype,"repositionImagesButton",null);
st=_.B([_.L({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],st);
_.P(st,"ytd-backstage-image-poll-editor-renderer",function(){if(t46!==void 0)return t46;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return t46=p},{mode:2});var zuB;var sWm={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 n8B;var ygv;var bel=function(){var p=_.m.apply(this,arguments)||this;p.a11yConfig=sWm;p.imageDisplayOffsetTop=0;p.imageDisplayOffsetLeft=0;p.pickerDisplayOffsetTop=0;p.pickerDisplayOffsetLeft=0;p.cropCoordinatesSaved=!1;p.previewSize=0;p.startPicker=!1;p.repositionOptional=!1;return p};
_.E(bel,_.m);_.l=bel.prototype;_.l.created=function(){_.Wx.requestAvailability()};
_.l.ready=function(){};
_.l.onArrowKeysDown=function(p){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){p.detail.keyboardEvent.preventDefault();var x=0,F=0,N="";switch(p.detail.keyboardEvent.key){case "ArrowUp":LuZ(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?N=this.a11yConfig.reachBottomOfImage:x=this.imageHeight*.05*-1;break;case "ArrowDown":LuZ(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?N=this.a11yConfig.reachTopOfImage:
x=this.imageHeight*.05;break;case "ArrowLeft":LuZ(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?N=this.a11yConfig.reachRightOfImage:F=this.imageWidth*.05*-1;break;case "ArrowRight":LuZ(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?N=this.a11yConfig.reachLeftOfImage:F=this.imageWidth*.05}N&&_.JG(N)&&_.hG(this.hostElement,"iron-announce",{text:_.JG(N)});if(F||x)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+x)),p=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),p=_.JG(this.a11yConfig.imageVerticalPosition,{x_percent:""+p,y_percent:""+(100-p)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+F)),p=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),p=_.JG(this.a11yConfig.imageHorizontalPosition,{x_percent:""+p,y_percent:""+(100-p)})),p&&_.hG(this.hostElement,"iron-announce",{text:p})}};
_.l.getPreviewPosition=function(p,x,F,N){return Math.round(100*(p+x*.5-F)/N)};
_.l.displayImage=function(){var p=this.JSC$12986_pickerContainer.getBoundingClientRect().width,x=this.JSC$12986_pickerContainer.getBoundingClientRect().height,F=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),N=this.JSC$12986_imageInBackground.naturalWidth,h=this.JSC$12986_imageInBackground.naturalHeight;this.displayScale=Math.max(F/N,F/h);this.imageWidth=N*this.displayScale;this.imageHeight=h*this.displayScale;this.pickerDisplayOffsetLeft=(p-F)/2;this.pickerDisplayOffsetTop=
(x-F)/2;this.imageDisplayOffsetLeft=h>N?this.pickerDisplayOffsetLeft:(p-this.imageWidth)/2;this.imageDisplayOffsetTop=N>h?this.pickerDisplayOffsetTop:(x-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.l.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$12986_imageInBackground.src=this.imageData.toString(),this.JSC$12986_imageInPicker.src=this.imageData.toString(),this.JSC$12986_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.l.getSignedPosition=function(p,x,F){return x==="X"&&_.sd("HTML_DIR")==="rtl"?F==="-"?p+"px":p*-1+"px":F==="-"?p*-1+"px":p+"px"};
_.l.pickerMove=function(p){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var x=this.pickerOffsetX-p.clientX,F=this.pickerOffsetY-p.clientY;this.pickerOffsetX=p.clientX;this.pickerOffsetY=p.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
F)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-x))}};
_.l.pickerMoveStart=function(p){this.startPicker=!0;this.pickerOffsetX=p.clientX;this.pickerOffsetY=p.clientY};
_.l.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.l.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.hG(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.l.getPreviewOffset=function(p,x,F,N){return x&&p&&F?(N==="X"&&_.sd("HTML_DIR")==="rtl"?F/x*p:F/x*p*-1)+"px":"0px"};
_.l.getSimpleText=function(p){return p?_.Pi(p):""};
_.l.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var p=this.cropOffsetTop/this.imageHeight,x=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,F=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,N=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.n(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.hG(this.hostElement,"yt-img-crop-coordinates-update",{top:p,right:x,bottom:F,left:N})}};
_.R8.Object.defineProperties(bel.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var p=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.JG(this.a11yConfig.imageVerticalPosition,{x_percent:""+p,y_percent:""+(100-p)})+"\n"+_.JG(this.a11yConfig.verticalRepositionInstruction)}p=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.JG(this.a11yConfig.imageHorizontalPosition,{x_percent:""+p,y_percent:""+(100-p)})+"\n"+_.JG(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 p,x=(p=this.learnMore.runs[0])==null?void 0:p.navigationEndpoint,F;return((F=_.r(x,_.Gj))==null?void 0:F.url)||void 0}}}});
var nS=bel;nS.prototype.onImageDataChange=nS.prototype.onImageDataChange;_.B([_.H(),_.k("design:type",Object)],nS.prototype,"imageData",void 0);_.B([_.H(),_.k("design:type",Object)],nS.prototype,"instruction",void 0);_.B([_.H(),_.k("design:type",Object)],nS.prototype,"a11yConfig",void 0);_.B([_.H(),_.k("design:type",Number)],nS.prototype,"imageWidth",void 0);_.B([_.H(),_.k("design:type",Number)],nS.prototype,"imageHeight",void 0);_.B([_.H(),_.k("design:type",Number)],nS.prototype,"displayScale",void 0);
_.B([_.H(),_.k("design:type",Object)],nS.prototype,"imageDisplayOffsetTop",void 0);_.B([_.H(),_.k("design:type",Object)],nS.prototype,"imageDisplayOffsetLeft",void 0);_.B([_.H(),_.k("design:type",Object)],nS.prototype,"pickerDisplayOffsetTop",void 0);_.B([_.H(),_.k("design:type",Object)],nS.prototype,"pickerDisplayOffsetLeft",void 0);_.B([_.H(),_.k("design:type",Object)],nS.prototype,"cropCoordinatesSaved",void 0);_.B([_.H(),_.k("design:type",Object)],nS.prototype,"previewSize",void 0);
_.B([_.H(),_.k("design:type",Object)],nS.prototype,"startPicker",void 0);_.B([_.H(),_.k("design:type",Number)],nS.prototype,"pickerOffsetX",void 0);_.B([_.H(),_.k("design:type",Number)],nS.prototype,"pickerOffsetY",void 0);_.B([_.H(),_.k("design:type",Object)],nS.prototype,"repositionOptional",void 0);_.B([_.Ff("#picker-container"),_.k("design:type",HTMLElement)],nS.prototype,"JSC$12986_pickerContainer",void 0);_.B([_.Ff("#picker"),_.k("design:type",HTMLElement)],nS.prototype,"picker",void 0);
_.B([_.Ff("#image-in-picker-background"),_.k("design:type",HTMLImageElement)],nS.prototype,"JSC$12986_imageInBackground",void 0);_.B([_.Ff("#image-in-picker"),_.k("design:type",HTMLImageElement)],nS.prototype,"JSC$12986_imageInPicker",void 0);_.B([_.Ff("#image-in-preview-clipper"),_.k("design:type",HTMLImageElement)],nS.prototype,"JSC$12986_imageInPreviewClipper",void 0);_.B([_.Ff("#full-image-as-preview"),_.k("design:type",HTMLImageElement)],nS.prototype,"imageAsPreview",void 0);
_.B([_.w("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],nS.prototype,"altLabelForImage",null);_.B([_.w("imageHeight","imageWidth"),_.k("design:type",Number),_.k("design:paramtypes",[])],nS.prototype,"pickerSize",null);_.B([_.w("imageHeight","imageWidth"),_.k("design:type",Object),_.k("design:paramtypes",[])],nS.prototype,"imageOrientationStyle",null);
_.B([_.w("instruction.previewInstruction.editButtonLabel"),_.k("design:type",Object),_.k("design:paramtypes",[])],nS.prototype,"editButton",null);_.B([_.w("instruction.editInstruction.saveButtonLabel"),_.k("design:type",Object),_.k("design:paramtypes",[])],nS.prototype,"saveButton",null);_.B([_.w("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.k("design:type",Number),_.k("design:paramtypes",[])],nS.prototype,"cropOffsetTop",null);
_.B([_.w("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.k("design:type",Number),_.k("design:paramtypes",[])],nS.prototype,"cropOffsetLeft",null);_.B([_.w("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],nS.prototype,"pickerBackgroundStyle",null);_.B([_.w("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],nS.prototype,"pickerDisplayStyle",null);
_.B([_.w("cropOffsetLeft","cropOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],nS.prototype,"imageInPickerStyle",null);_.B([_.w("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.k("design:type",String),_.k("design:paramtypes",[])],nS.prototype,"previewClipperStyle",null);_.B([_.W("imageData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nS.prototype,"onImageDataChange",null);
_.B([_.w("cropCoordinatesSaved"),_.k("design:type",String),_.k("design:paramtypes",[])],nS.prototype,"pickerModeStyle",null);_.B([_.w("instruction.editInstruction.learnMore"),_.k("design:type",Object),_.k("design:paramtypes",[])],nS.prototype,"learnMore",null);_.B([_.w("learnMore"),_.k("design:type",Object),_.k("design:paramtypes",[])],nS.prototype,"learnMoreUrl",null);nS=_.B([_.JZ({is:"yt-img-crop-picker",disableElementRegistration:!0})],nS);
_.P(nS,"yt-img-crop-picker",function(){if(ygv===void 0){var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;n8B===void 0&&(n8B=document.createElement("template"));var N=n8B;F.call(x,N.content.cloneNode(!0),p.content.firstChild);ygv=p}p=ygv;return p},{mode:2});var Agk=function(){var p=_.m.apply(this,arguments)||this;p.errorMessage="";p.hasPreview=!1;p.isBackstagePost=!1;p.dismissButtonOverrides={size:"XS"};return p};
_.E(Agk,_.m);_.l=Agk.prototype;_.l.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}},"data.selectButton":{id:"select",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.detached=function(){this.removeOverlay()};
_.l.setPreview=function(p){_.n(this.hostElement).querySelector("#preview-picker").imageData=p;this.hasPreview=!0;_.hG(this.hostElement,"yt-backstage-image-select-preview")};
_.l.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var p=_.n(this.hostElement).querySelector("#dropzone");p.classList.remove("dragover");p.classList.remove("error");_.hG(this.hostElement,"yt-backstage-image-select-cancel")};
_.l.setupOverlay=function(){var p=this.imageUploadEndpoint;this.removeOverlay();if(p&&p.imageValidationInfo){var x=_.n(this.hostElement).querySelector("#dropzone"),F=_.n(this.hostElement).querySelector("#select");this.overlay=new L4(p.uploadUrl,p.channelId,p.imageValidationInfo.maxFileSizeMb,p.imageValidationInfo.allowedMaxAspectRatio,x,F,!0);_.qd(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.qd(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.qd(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.qd(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.qd(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.l.removeOverlay=function(){this.overlay&&(_.Ci(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.Ci(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.Ci(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.Ci(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.Ci(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.l.onDragOver=function(p){var x=_.n(this.hostElement).querySelector("#dropzone");_.iX(x,"dragover",p.value)};
_.l.onPreview=function(p){this.setPreview(p.value)};
_.l.onImageError=function(p){if(p.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var x;p=(x=this.data)==null?void 0:x.fileSizeError}else if(p.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var F;p=(F=this.data)==null?void 0:F.invalidError}else if(p.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var N;p=(N=this.data)==null?void 0:N.invalidAspectRatioError}else return;this.errorMessage=_.Pi(p);_.n(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.l.onImageAlert=function(p){this.onImageError(p)};
_.l.uploadPromise=function(){var p=this,x=this.overlay&&this.overlay.uploadPromise();if(x)return x.catch(function(){throw Error(p.data?_.Pi(p.data.uploadFailureError):"");})};
_.R8.Object.defineProperties(Agk.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var p,x;if((p=this.data)==null?0:(x=p.icon)==null?0:x.iconType)return _.eA(this.data.icon.iconType)}}});
var yk=Agk;yk.prototype.setupOverlay=yk.prototype.setupOverlay;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],yk.prototype,"rendererStamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],yk.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],yk.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],yk.prototype,"imageUploadEndpoint",void 0);_.B([_.H(),_.k("design:type",Object)],yk.prototype,"errorMessage",void 0);
_.B([_.H(),_.k("design:type",L4)],yk.prototype,"overlay",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],yk.prototype,"hasPreview",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],yk.prototype,"isBackstagePost",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],yk.prototype,"selectionCancel",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],yk.prototype,"previewCancel",null);
_.B([_.w("data.icon.iconType"),_.k("design:type",Object),_.k("design:paramtypes",[])],yk.prototype,"icon",null);_.B([_.H(),_.k("design:type",Object)],yk.prototype,"dismissButtonOverrides",void 0);_.B([_.W("imageUploadEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yk.prototype,"setupOverlay",null);yk=_.B([_.L({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],yk);
_.P(yk,"ytd-backstage-image-select-renderer",function(){if(zuB!==void 0)return zuB;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return zuB=p},{mode:1});var uMb={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 YDb;var wX6=function(){var p=_.m.apply(this,arguments)||this;p.a11yConfig=uMb;p.imageDisplayOffsetTop=0;p.imageDisplayOffsetLeft=0;p.pickerDisplayOffsetTop=0;p.pickerDisplayOffsetLeft=0;p.showPreviewContainer=!0;p.startPicker=!1;p.repositionOptional=!1;p.editOnlyMode=!1;p.savedImageDisplayOffsetTop=0;p.savedImageDisplayOffsetLeft=0;return p};
_.E(wX6,_.m);_.l=wX6.prototype;_.l.created=function(){_.Wx.requestAvailability()};
_.l.ready=function(){};
_.l.onArrowKeysDown=function(p){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){p.detail.keyboardEvent.preventDefault();var x=0,F=0,N="";switch(p.detail.keyboardEvent.key){case "ArrowUp":PNp(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?N=this.a11yConfig.reachBottomOfImage:x=this.imageHeight*.05*-1;break;case "ArrowDown":PNp(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?N=this.a11yConfig.reachTopOfImage:
x=this.imageHeight*.05;break;case "ArrowLeft":PNp(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?N=this.a11yConfig.reachRightOfImage:F=this.imageWidth*.05*-1;break;case "ArrowRight":PNp(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?N=this.a11yConfig.reachLeftOfImage:F=this.imageWidth*.05}N&&_.JG(N)&&_.hG(this.hostElement,"iron-announce",{text:_.JG(N)});if(F||x)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+x)),p=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),p=_.JG(this.a11yConfig.imageVerticalPosition,{x_percent:""+p,y_percent:""+(100-p)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+F)),p=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),p=_.JG(this.a11yConfig.imageHorizontalPosition,{x_percent:""+p,y_percent:""+(100-p)})),p&&_.hG(this.hostElement,"iron-announce",{text:p})}};
_.l.getPreviewPosition=function(p,x,F,N){return Math.round(100*(p+x*.5-F)/N)};
_.l.calculateDisplayPosition=function(){var p=this.imageData.naturalWidth,x=this.imageData.naturalHeight;this.displayScale=Math.max(200/p,200/x);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var F=p*this.displayScale*this.imageData.previewCoordinates.left,N=x*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=x>p?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-F;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=p>x?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-N;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=p*this.displayScale;this.imageHeight=x*this.displayScale};
_.l.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.l.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.l.getSignedPosition=function(p,x,F){return x==="X"&&_.sd("HTML_DIR")==="rtl"?F==="-"?p+"px":p*-1+"px":F==="-"?p*-1+"px":p+"px"};
_.l.pickerMove=function(p){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var x=this.pickerOffsetX-p.clientX,F=this.pickerOffsetY-p.clientY;this.pickerOffsetX=p.clientX;this.pickerOffsetY=p.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
F)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-x))}};
_.l.pickerMoveStart=function(p){this.startPicker=!0;this.pickerOffsetX=p.clientX;this.pickerOffsetY=p.clientY};
_.l.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var p=this.generateCropPreview();p&&_.hG(this.hostElement,"ytd-backstage-image-preview-coordinates-update",p)};
_.l.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.hG(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.l.deleteImage=function(){_.hG(this.hostElement,"ytd-backstage-image-preview-delete")};
_.l.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.l.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var p=this.generateCropPreview();p&&_.hG(this.hostElement,"ytd-backstage-image-preview-coordinates-save",p)};
_.l.getPreviewOffset=function(p,x,F){return x&&p?(F==="X"&&_.sd("HTML_DIR")==="rtl"?300/x*p:300/x*p*-1)+"px":"0px"};
_.l.getSimpleText=function(p){return p?_.Pi(p):""};
_.l.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize)return{top:this.cropOffsetTop/this.imageHeight,right:(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,bottom:(this.cropOffsetTop+this.pickerSize)/this.imageHeight,left:this.cropOffsetLeft/this.imageWidth}};
_.R8.Object.defineProperties(wX6.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var p=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.JG(this.a11yConfig.imageVerticalPosition,{x_percent:""+p,y_percent:""+(100-p)})+"\n"+_.JG(this.a11yConfig.verticalRepositionInstruction)}p=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.JG(this.a11yConfig.imageHorizontalPosition,{x_percent:""+p,y_percent:""+(100-p)})+"\n"+_.JG(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 p,x,F=(p=this.instruction)==null?void 0:(x=p.previewInstruction)==null?void 0:x.editButtonLabel;return F?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:F,accessibilityData:{accessibilityData:{label:this.getSimpleText(F)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var p,x,F,N,h=this.editOnlyMode?(p=this.instruction)==null?void 0:(x=p.editInstruction)==null?void 0:x.saveImagesButtonLabel:(F=this.instruction)==null?void 0:(N=F.editInstruction)==null?void 0:N.saveButtonLabel;return h?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:h,accessibilityData:{accessibilityData:{label:this.getSimpleText(h)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var p,x,F=(p=this.instruction)==null?void 0:(x=p.previewInstruction)==null?void 0:x.deleteButtonLabel;return F?{size:"SIZE_SMALL",text:F,accessibilityData:{accessibilityData:{label:this.getSimpleText(F)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var p,x,F=(p=this.instruction)==null?void 0:(x=p.editInstruction)==null?void 0:x.cancelButtonLabel;p=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return F?{style:p,size:"SIZE_SMALL",text:F,accessibilityData:{accessibilityData:{label:this.getSimpleText(F)}}}:void 0}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.showPreviewContainer?"preview":"edit"}}});
var bi=wX6;bi.prototype.onEditOnlyModeUpdate=bi.prototype.onEditOnlyModeUpdate;bi.prototype.onImageChange=bi.prototype.onImageChange;_.B([_.H(),_.k("design:type",OA6)],bi.prototype,"imageData",void 0);_.B([_.H(),_.k("design:type",Object)],bi.prototype,"instruction",void 0);_.B([_.H(),_.k("design:type",Object)],bi.prototype,"a11yConfig",void 0);_.B([_.H(),_.k("design:type",Number)],bi.prototype,"imageWidth",void 0);_.B([_.H(),_.k("design:type",Number)],bi.prototype,"imageHeight",void 0);
_.B([_.H(),_.k("design:type",Number)],bi.prototype,"displayScale",void 0);_.B([_.H(),_.k("design:type",Object)],bi.prototype,"imageDisplayOffsetTop",void 0);_.B([_.H(),_.k("design:type",Object)],bi.prototype,"imageDisplayOffsetLeft",void 0);_.B([_.H(),_.k("design:type",Object)],bi.prototype,"pickerDisplayOffsetTop",void 0);_.B([_.H(),_.k("design:type",Object)],bi.prototype,"pickerDisplayOffsetLeft",void 0);_.B([_.H(),_.k("design:type",Object)],bi.prototype,"showPreviewContainer",void 0);
_.B([_.H(),_.k("design:type",Object)],bi.prototype,"startPicker",void 0);_.B([_.H(),_.k("design:type",Number)],bi.prototype,"pickerOffsetX",void 0);_.B([_.H(),_.k("design:type",Number)],bi.prototype,"pickerOffsetY",void 0);_.B([_.H(),_.k("design:type",Object)],bi.prototype,"repositionOptional",void 0);_.B([_.H(),_.k("design:type",Object)],bi.prototype,"editOnlyMode",void 0);_.B([_.Ff("#picker-container"),_.k("design:type",HTMLElement)],bi.prototype,"JSC$12999_pickerContainer",void 0);
_.B([_.Ff("#picker"),_.k("design:type",HTMLElement)],bi.prototype,"picker",void 0);_.B([_.Ff("#preview-clipper"),_.k("design:type",HTMLElement)],bi.prototype,"previewClipper",void 0);_.B([_.Ff("#image-in-picker-background"),_.k("design:type",HTMLImageElement)],bi.prototype,"JSC$12999_imageInBackground",void 0);_.B([_.Ff("#image-in-picker"),_.k("design:type",HTMLImageElement)],bi.prototype,"JSC$12999_imageInPicker",void 0);
_.B([_.Ff("#image-in-preview-clipper"),_.k("design:type",HTMLImageElement)],bi.prototype,"JSC$12999_imageInPreviewClipper",void 0);_.B([_.w("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],bi.prototype,"altLabelForImage",null);_.B([_.w("imageHeight","imageWidth"),_.k("design:type",Number),_.k("design:paramtypes",[])],bi.prototype,"pickerSize",null);
_.B([_.w("imageHeight","imageWidth"),_.k("design:type",Object),_.k("design:paramtypes",[])],bi.prototype,"imageOrientationStyle",null);_.B([_.w("instruction"),_.k("design:type",Object),_.k("design:paramtypes",[])],bi.prototype,"editButton",null);_.B([_.w("instruction","editOnlyMode"),_.k("design:type",Object),_.k("design:paramtypes",[])],bi.prototype,"saveButton",null);_.B([_.w("instruction"),_.k("design:type",Object),_.k("design:paramtypes",[])],bi.prototype,"deleteButton",null);
_.B([_.w("instruction","editOnlyMode"),_.k("design:type",Object),_.k("design:paramtypes",[])],bi.prototype,"cancelButton",null);_.B([_.w("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.k("design:type",Number),_.k("design:paramtypes",[])],bi.prototype,"cropOffsetTop",null);_.B([_.w("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.k("design:type",Number),_.k("design:paramtypes",[])],bi.prototype,"cropOffsetLeft",null);
_.B([_.w("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],bi.prototype,"pickerBackgroundStyle",null);_.B([_.w("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],bi.prototype,"pickerDisplayStyle",null);_.B([_.w("cropOffsetLeft","cropOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],bi.prototype,"imageInPickerStyle",null);
_.B([_.w("cropOffsetLeft","cropOffsetTop","pickerSize"),_.k("design:type",String),_.k("design:paramtypes",[])],bi.prototype,"previewClipperStyle",null);_.B([_.cT("imageData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bi.prototype,"onImageChange",null);_.B([_.cT("editOnlyMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bi.prototype,"onEditOnlyModeUpdate",null);
_.B([_.w("showPreviewContainer"),_.k("design:type",String),_.k("design:paramtypes",[])],bi.prototype,"pickerModeStyle",null);bi=_.B([_.L({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],bi);
_.P(bi,"ytd-backstage-image-preview-renderer",function(){if(YDb!==void 0)return YDb;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return YDb=p},{mode:1});var Gzj;var V4I;var W5K=function(){var p=_.m.apply(this,arguments)||this;p.selected=!1;return p};
_.E(W5K,_.m);_.l=W5K.prototype;_.l.computeSelected=function(p){return p==null?void 0:p.selected};
_.l.computeTransform=function(p,x,F){var N,h,c=(h=(N=this.imageContainer)==null?void 0:N.getBoundingClientRect())!=null?h:{width:0,height:0};N=Math.max(c.width/x,c.height/F);F=F*N*p.top;return"translateX("+this.getSignedPosition(x*N*p.left,"X","-")+") translateY("+this.getSignedPosition(F,"Y","-")+")"};
_.l.getSignedPosition=function(p,x,F){return x==="X"&&_.sd("HTML_DIR")==="rtl"?F==="-"?p+"px":p*-1+"px":F==="-"?p*-1+"px":p+"px"};
_.l.onClick=function(){var p;_.hG(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(p=this.data)==null?void 0:p.image)};
_.l.onKeyPress=function(p){if(p.keyCode===13)this.onClick()};
_.R8.Object.defineProperties(W5K.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.data)==null?void 0:(x=p.image)==null?void 0:x.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)!=null&&p.image){var x;p=(x=this.data)==null?void 0:x.image;return p.previewCoordinates.top!==0||p.previewCoordinates.left!==0?(x=this.computeTransform(p.previewCoordinates,p.naturalWidth,p.naturalHeight),p.naturalHeight>=p.naturalWidth?"width:inherit;transform:"+x+";":"height:inherit;transform:"+x+";"):p.naturalHeight>=p.naturalWidth?"width:inherit;":"height:inherit;"}}}});
var AK=W5K;AK.prototype.onKeyPress=AK.prototype.onKeyPress;_.B([_.Ff(".image-container"),_.k("design:type",HTMLElement)],AK.prototype,"imageContainer",void 0);_.B([_.H(),_.k("design:type",Object)],AK.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.k("design:type",Object)],AK.prototype,"selected",void 0);_.B([_.w("data.image"),_.k("design:type",Object),_.k("design:paramtypes",[])],AK.prototype,"thumbnailUrl",null);
_.B([_.w("data.image","data.image.previewCoordinates"),_.k("design:type",Object),_.k("design:paramtypes",[])],AK.prototype,"thumbnailStyle",null);_.B([_.V("keypress"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],AK.prototype,"onKeyPress",null);AK=_.B([_.L({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],AK);
_.P(AK,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(V4I!==void 0)return V4I;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return V4I=p},{mode:2});var ui=function(p,x,F){F=F===void 0?!1:F;_.Sc.call(this);var N=this;this.dropZoneOverlay=new Mo(p);this.selectOverlay=F?new De(x,"multiple_file",["image/*"]):new De(x,"single_file",["image/*"]);this.handler=new _.ps(this);_.aG(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(x,"click",function(){N.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.E(ui,_.Sc);ui.prototype.onChange=function(p){var x;(x=p.files)!=null&&x.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:p.files}))};var HeD=function(){var p=_.m.apply(this,arguments)||this;p.addImageErrorMessage="";p.errorMessage="";p.images=[];p.selectedImageIndex=0;p.modern=_.S("web_modern_buttons");p.JSC$13012_imageId=0;return p};
_.E(HeD,_.m);_.l=HeD.prototype;_.l.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.hG(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.l.observeDragToReorder=function(){var p=this;if(this.showImagesPreview){var x,F=KLb(_.IO.getInstance(),(x=this.data)==null?void 0:x.dragToReorderTooltip);_.E0.addLowPriorityJob(function(){_.Kc(p.hostElement,F,p.thumbnailDragDropArea)})}};
_.l.configureRendererStamper=function(){return{selectionCancel:{id:"selection-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},previewCancel:{id:"preview-cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dataForAddImageButton:{id:"add-image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},thumbnailRenderers:{id:"thumbnail-drag-drop-area",mapping:{renderer:"ytd-backstage-multi-image-thumbnail-renderer"},events:!0,reuseComponents:!0,stamperStableList:!0}}};
_.l.computeThumbnail=function(p){return(p==null?void 0:p.localImageSrc)||void 0};
_.l.onRendererstamperFinished=function(){_.ZKb(this.ytReorderableBehavior,_.n(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.n(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.l.handleDrop=function(p){var x=p.currDragItem;if(x!=null&&x.data){p=this.images[this.selectedImageIndex];var F=x.data.image,N=this.images.indexOf(F)||0;x=_.mH(x.parentNode.children,x);this.images.splice(N,1);this.images.splice(x,0,F);this.images=[].concat(_.se(this.images));this.selectedImageIndex=this.images.indexOf(p)}};
_.l.setUpImagePicker=function(){var p=this.imageUploadEndpoint;p&&p.imageValidationInfo&&(this.uploadManager=new zJ(p.uploadUrl,p.channelId),this.initialPicker||(this.initialPicker=new ui(this.dropzone,this.selectLink,!0),_.qd(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new ui(this.addImageButtonContainer,this.addImageSelectButton),_.qd(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.qd(this.JSC$13012_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.qd(this.JSC$13012_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.qd(_.n(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.l.detached=function(){this.initialPicker&&(_.Ci(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.Ci(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.l.onInitialSelectImages=function(p){var x=this;return _.D(function(F){return _.q(F,x.onSelectImages(p,!1),0)})};
_.l.onAddImage=function(p){var x=this;return _.D(function(F){return _.q(F,x.onSelectImages(p,!0),0)})};
_.l.onSelectImages=function(p,x){var F=this,N,h,c,M,f,K,t,d,v,C,X,Q,b,A,Y,O,Fw,R,ld,pp;return _.D(function(Kp){switch(Kp.nextAddress){case 1:x?F.addImageErrorMessage="":(F.images=[],F.errorMessage="");N=p.detail;h=F.validateImages([].concat(_.se(N)));if(h!=="")return x?F.addImageErrorMessage=h:F.errorMessage=h,Kp.return();c=[].concat(_.se(N)).map(function(sM){return(new O9(F.maxAspectRatio,!1,!0)).transform(sM)});
return _.q(Kp,Promise.allSettled(c),2);case 2:M=Kp.yieldResult,f=_.a(M.entries()),K=f.next();case 3:if(K.done){Kp.jumpTo(5);break}t=K.value;d=_.a(t);v=d.next().value;C=d.next().value;X=v;Q=C;if(Q.status!=="fulfilled"){Y=A=b=void 0;x?F.addImageErrorMessage=_.Pi((b=F.data)==null?void 0:b.invalidError):F.errorMessage=F.errorMessage===""?_.Pi((A=F.data)==null?void 0:A.invalidError):_.Pi((Y=F.data)==null?void 0:Y.multiFileError);Kp.jumpTo(4);break}O=Q.value;O.cropped&&_.hG(F.hostElement,"yt-backstage-multi-image-cropped");
if(O.invalidAspectRatio){ld=R=Fw=void 0;x?F.addImageErrorMessage=_.Pi((Fw=F.data)==null?void 0:Fw.invalidAspectRatioError):F.errorMessage=F.errorMessage===""?_.Pi((R=F.data)==null?void 0:R.invalidAspectRatioError):_.Pi((ld=F.data)==null?void 0:ld.multiFileError);Kp.jumpTo(4);break}return _.q(Kp,jr$(F.JSC$13012_imageId,p.detail[X],O.transformedData),8);case 8:pp=Kp.yieldResult,F.images.push(pp),F.JSC$13012_imageId++;case 4:K=f.next();Kp.jumpTo(3);break;case 5:if(F.errorMessage!==""||F.addImageErrorMessage!==
"")return Kp.return();x?C9B(F.uploadManager,[F.images[F.images.length-1]]):C9B(F.uploadManager,F.images);F.images=[].concat(_.se(F.images));F.selectedImageIndex=x?Math.max(F.images.length-1,0):0;_.hG(F.hostElement,"yt-backstage-multi-image-select");_.JB(Kp)}})};
_.l.onThumbnailClick=function(p){if(p=p.event_.detail)this.selectedImageIndex=this.images.indexOf(p)};
_.l.validateImages=function(p){if(p.length>5){var x;return _.Pi((x=this.data)==null?void 0:x.multiImageExceedMaxImageCountError)}var F=1048576*this.maxFileSizeMb;p=p.filter(function(c){return c.size>F}).length;
if(p===0)return"";var N,h;p=p>1?(N=this.data)==null?void 0:N.multiFileError:(h=this.data)==null?void 0:h.fileSizeError;return _.Pi(p)};
_.l.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.se(this.images));this.selectedImageIndex=0};
_.l.repositionImage=function(p){this.images[this.selectedImageIndex].previewCoordinates=p.event_.detail;this.images=[].concat(_.se(this.images))};
_.l.getAllUploadStatuses=function(){var p=this,x,F,N,h;return _.D(function(c){if(c.nextAddress==1)return _.q(c,p.uploadManager.getAllUploadStatuses(),2);x=c.yieldResult;F=_.a(x);for(N=F.next();!N.done;N=F.next())if(h=N.value,h.encryptedBlobId===void 0)return c.return(SDn(p.uploadManager));return c.return(x)})};
_.l.hasImages=function(){return this.images.length>0};
_.l.cancel=function(){for(var p=this.uploadManager,x=_.a(p.imagesUploadData),F=x.next();!F.done;F=x.next())p.cancel(F.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.hG(this.hostElement,"yt-backstage-multi-image-cancel")};
_.R8.Object.defineProperties(HeD.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.imageUploadEndpoint)==null?void 0:(x=p.imageValidationInfo)==null?void 0:x.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.imageUploadEndpoint)==null?void 0:(x=p.imageValidationInfo)==null?void 0:x.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var p,x;if((p=this.data)==null?0:(x=p.icon)==null?0:x.iconType)return _.eA(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.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>=5}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]||void 0}},
thumbnailRenderers:{configurable:!0,enumerable:!0,get:function(){var p=this;return(this.images||[]).map(function(x,F){return{renderer:{image:x,selected:F===p.selectedImageIndex}}})}}});
var Yc=HeD;Yc.prototype.setUpImagePicker=Yc.prototype.setUpImagePicker;Yc.prototype.onRendererstamperFinished=Yc.prototype.onRendererstamperFinished;Yc.prototype.observeDragToReorder=Yc.prototype.observeDragToReorder;Yc.prototype.observeAddImageError=Yc.prototype.observeAddImageError;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Yc.prototype,"rendererStamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Yc.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.d_6),_.k("design:type",Object)],Yc.prototype,"ytReorderableBehavior",void 0);_.B([_.Ff("#dropzone"),_.k("design:type",HTMLElement)],Yc.prototype,"dropzone",void 0);_.B([_.Ff("#select-link"),_.k("design:type",HTMLElement)],Yc.prototype,"selectLink",void 0);_.B([_.Ff("#thumbnail-drag-drop-area"),_.k("design:type",HTMLElement)],Yc.prototype,"thumbnailDragDropArea",void 0);_.B([_.Ff("#add-image-button-container"),_.k("design:type",HTMLElement)],Yc.prototype,"addImageButtonContainer",void 0);
_.B([_.Ff("#add-image-button"),_.k("design:type",HTMLElement)],Yc.prototype,"addImageSelectButton",void 0);_.B([_.Ff("#image-preview-container"),_.k("design:type",Object)],Yc.prototype,"JSC$13012_imagePreviewContainer",void 0);_.B([_.H(),_.k("design:type",Object)],Yc.prototype,"addImageErrorMessage",void 0);_.B([_.H(),_.k("design:type",Object)],Yc.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Yc.prototype,"errorMessage",void 0);
_.B([_.H(),_.k("design:type",Object)],Yc.prototype,"imageUploadEndpoint",void 0);_.B([_.H(),_.k("design:type",Array)],Yc.prototype,"images",void 0);_.B([_.H(),_.k("design:type",ui)],Yc.prototype,"initialPicker",void 0);_.B([_.H(),_.k("design:type",ui)],Yc.prototype,"addImagePicker",void 0);_.B([_.H(),_.k("design:type",zJ)],Yc.prototype,"uploadManager",void 0);_.B([_.H(),_.k("design:type",Object)],Yc.prototype,"selectedImageIndex",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Yc.prototype,"modern",void 0);_.B([_.w("imageUploadEndpoint"),_.k("design:type",Number),_.k("design:paramtypes",[])],Yc.prototype,"maxAspectRatio",null);_.B([_.w("imageUploadEndpoint"),_.k("design:type",Number),_.k("design:paramtypes",[])],Yc.prototype,"maxFileSizeMb",null);_.B([_.w("data.icon.iconType"),_.k("design:type",Object),_.k("design:paramtypes",[])],Yc.prototype,"dropIcon",null);
_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Yc.prototype,"selectionCancel",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Yc.prototype,"previewCancel",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Yc.prototype,"dataForAddImageButton",null);_.B([_.w("errorMessage"),_.k("design:type",String),_.k("design:paramtypes",[])],Yc.prototype,"dropzoneClass",null);
_.B([_.w("images"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Yc.prototype,"showImagesPreview",null);_.B([_.w("images"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Yc.prototype,"containMaxImages",null);_.B([_.W("addImageErrorMessage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yc.prototype,"observeAddImageError",null);
_.B([_.W("showImagesPreview"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yc.prototype,"observeDragToReorder",null);_.B([_.w("images","selectedImageIndex"),_.k("design:type",Object),_.k("design:paramtypes",[])],Yc.prototype,"selectedImageData",null);_.B([_.w("images","selectedImageIndex"),_.k("design:type",Array),_.k("design:paramtypes",[])],Yc.prototype,"thumbnailRenderers",null);
_.B([_.V("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yc.prototype,"onRendererstamperFinished",null);_.B([_.W("imageUploadEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yc.prototype,"setUpImagePicker",null);Yc=_.B([_.L({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Yc);
_.P(Yc,"ytd-backstage-multi-image-select-renderer",function(){if(Gzj!==void 0)return Gzj;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Gzj=p},{mode:1});var mRl;var o8B=function(){var p=_.m.apply(this,arguments)||this;p.quizOptions=[];p.explanationPlaceholderText="";p.optionPlaceholderText="";p.correctAnswerIndex=-1;p.isMarkAnswerTooltipShown=!1;p.timer=0;return p};
_.E(o8B,_.m);_.l=o8B.prototype;_.l.dataChanged=function(){this.optionPlaceholderText=_.Pi(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.Pi(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.l.onMarkCorrectAnswer=function(p){var x,F=((x=this.quizOptions[this.correctAnswerIndex])==null?void 0:x.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[p.model.index]=Object.assign({},this.quizOptions[p.model.index],{explanationText:F,isCorrect:!0});this.correctAnswerIndex=p.model.index;this.quizOptions=[].concat(_.se(this.quizOptions))};
_.l.updatePlaceholderTexts=function(){for(var p=!1,x=[],F=0;F<this.quizOptions.length;F++){var N=this.optionPlaceholderText+" "+(F+1),h=void 0;((h=this.quizOptions[F])==null?void 0:h.placeholderText)!==N?(p=!0,x.push(Object.assign({},this.quizOptions[F],{placeholderText:N}))):x.push(this.quizOptions[F])}p&&(this.quizOptions=x);this.isValid()?_.hG(this.hostElement,"yt-commentbox-post-enable"):_.hG(this.hostElement,"yt-commentbox-post-disable")};
_.l.getSimpleString=function(p){return _.Pi(p)};
_.l.createQuizOptions=function(p){var x=[],F;p=(F=p==null?void 0:p.minQuizOptions)!=null?F:0;for(F=0;F<p;F++)x.push(this.createQuizOption());return x};
_.l.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.se(this.quizOptions),[this.createQuizOption()]))};
_.l.onInput=function(){this.quizOptions=[].concat(_.se(this.quizOptions))};
_.l.onExplanationInput=function(){_.hG(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.l.onRemoveQuizOption=function(p){this.quizOptions.splice(p.model.index,1);p.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:p.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.se(this.quizOptions));this.quizOptions.length===0&&_.hG(this.hostElement,"yt-quiz-attachment-dismiss")};
_.l.updateHintRenderer=function(){var p=this;clearTimeout(this.timer);this.timer=setTimeout(function(){p.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.l.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var p=0,x=0,F=_.a(this.quizOptions),N=F.next();!N.done;N=F.next()){N=N.value;var h=void 0;if(((h=N.optionText)==null?void 0:h.trim())!==""||N.isCorrect){N.isCorrect&&x++;h=void 0;if(this.hasCustomOptionText&&((h=N.optionText)==null?void 0:h.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;p++}}return p>=
Number(this.editorInfo.minQuizOptions)&&x===1};
_.l.getPostCreateOptions=function(){for(var p=[],x=_.a(this.quizOptions),F=x.next();!F.done;F=x.next()){F=F.value;var N=void 0;((N=F.optionText)==null?void 0:N.trim())!==""&&p.push({pollOption:{text:F.optionText,explanation:F.explanationText},isCorrect:F.isCorrect})}return p};
_.l.getExplanationText=function(){var p;return((p=this.quizOptions[this.correctAnswerIndex])==null?void 0:p.explanationText)||""};
_.l.maybeDisplayMarkAnswerEduToolTip=function(){var p,x,F,N,h,c,M;this.shouldShowMarkAnswerTooltip()&&((p=this.editorInfo)==null?0:(x=p.markAnswerButton)==null?0:(F=x.buttonRenderer)==null?0:(N=F.hint)==null?0:(h=N.hintRenderer)==null?0:(c=h.content)==null?0:(M=c.bubbleHintRenderer)==null?0:M.text)&&(_.IO.getInstance(),p=$x(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,(p==null?void 0:p.length)>0&&this.optionSelectors&&_.FY(p[0],this.optionSelectors[0]))};
_.l.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var p=0,x=_.a(this.quizOptions),F=x.next();!F.done;F=x.next()){F=F.value;var N=void 0;((N=F.optionText)==null?void 0:N.trim())!==""&&p++;if(F.isCorrect)return!1}return p<2?!1:!0};
_.l.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.l.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.l.updateOptionTextFromBinding=function(p){if(p.target){var x=Array.from(_.n(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(p.target);if(x>=0){var F;this.quizOptions[x].optionText=(F=p.detail.value)!=null?F:""}}};
_.R8.Object.defineProperties(o8B.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var p,x,F=(p=this.editorInfo)==null?void 0:(x=p.addOptionButton)==null?void 0:x.buttonRenderer;F&&(F.style="STYLE_SUGGESTIVE",F.size="SIZE_SMALL",F.isDisabled=!this.isAllowedToAddOption);return(F==null?0:F.text)?F:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var p,x;return this.quizOptions.length<((x=(p=this.editorInfo)==null?void 0:p.maxQuizOptions)!=null?x:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(p){var x;return(x=p.optionText)==null?void 0:x.trim()})}}});
var w4=o8B;w4.prototype.updatePlaceholderTexts=w4.prototype.updatePlaceholderTexts;w4.prototype.dataChanged=w4.prototype.dataChanged;_.B([_.H(),_.k("design:type",Object)],w4.prototype,"editorInfo",void 0);_.B([_.H(),_.k("design:type",Array)],w4.prototype,"quizOptions",void 0);_.B([_.H(),_.k("design:type",Object)],w4.prototype,"explanationPlaceholderText",void 0);_.B([_.Nu(".option-selector-button"),_.k("design:type",Array)],w4.prototype,"optionSelectors",void 0);
_.B([_.cT("editorInfo"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],w4.prototype,"dataChanged",null);_.B([_.w("editorInfo","isAllowedToAddOption","quizOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],w4.prototype,"addAnswerButton",null);_.B([_.w("editorInfo","quizOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],w4.prototype,"isAllowedToAddOption",null);
_.B([_.cT("quizOptions"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],w4.prototype,"updatePlaceholderTexts",null);_.B([_.w("quizOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],w4.prototype,"hasCustomOptionText",null);w4=_.B([_.L({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],w4);
_.P(w4,"ytd-backstage-quiz-editor-renderer",function(){if(mRl!==void 0)return mRl;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return mRl=p},{mode:2});var OeI;var jWn=(Xo.FIRSTDAYOFWEEK+1)%7;var L5n;var P9D=[],TuK=0,BuJ=0;TuK=0;BuJ=24;if(.25*(BuJ-TuK)<0)L5n=[];else{for(var RuZ=TuK;RuZ<BuJ;RuZ+=.25)P9D.push(RuZ);L5n=P9D}var kzC=L5n.map(function(p){p=p*60*60;return{secondsSinceMidnight:p,text:(new OJ(7)).format(new Date(0,0,0,0,0,p))}});var URb;var ieI=function(){var p=_.m.apply(this,arguments)||this;p.skipNextOpenDialog=!1;p.errorMessage="";return p};
_.E(ieI,_.m);_.l=ieI.prototype;_.l.attached=function(){var p=this,x=new MutationObserver(function(){p.JSC$13044_calendarMain.scrollHeight>0&&(x.disconnect(),p.calendarConfig&&p.calendarConfig.selectedDate&&p.scrollToDate())});
x.observe(this.JSC$13044_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){x.disconnect()},1E3)};
_.l.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.l.onDateTextChange=function(){if(this.calendarConfig){var p=this.validateDateText();p.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(p.details)):this.textbox.setAttribute("invalid","")}};
_.l.handleDayClick=function(p){p.model.day.date&&(this.commitDate(p.model.day.date),this.dialog.close())};
_.l.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var p=eIp(this.calendarConfig.selectedDate,this.renderData);p!==void 0&&this.JSC$13044_calendarMain.scrollToIndex(p)}};
_.l.scrollToNextMonth=function(){this.JSC$13044_calendarMain.scrollToIndex(this.JSC$13044_calendarMain.firstVisibleIndex+1)};
_.l.scrollToPrevMonth=function(){this.JSC$13044_calendarMain.firstVisibleIndex===0&&this.JSC$13044_calendarMain.scrollTo(0,0);this.JSC$13044_calendarMain.scrollToIndex(this.JSC$13044_calendarMain.firstVisibleIndex-1)};
_.l.onFormSubmit=function(p){p.preventDefault();this.calendarConfig&&(p=this.validateDateText(),p.isValid&&(this.commitDate(p.details),this.dialog.close()))};
_.l.onEscOrClickingOutside=function(p){p=p.detail.path&&!!p.detail.path.length&&p.detail.path[0];if(p.classList.contains("ytd-calendar-date-picker")){p===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var x=0;x<this.dropdownButton.children.length;x++)this.dropdownButton.children[x]===p&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}p=this.textbox.value!==this.dateText;x=this.validateDateText();p&&x.isValid&&this.commitDate(x.details);this.dialog.close();this.textbox.value=
this.dateText};
_.l.commitDate=function(p){this.calendarConfig&&(this.set("calendarConfig.selectedDate",p),_.hG(this.hostElement,"ytd-calendar-date-selected",p))};
_.l.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var p=this.textbox.value;var x=new Date;p=(new F5z(2)).parse(p,x,{validate:!0})===p.length?IUM(x):void 0;if(!p)return this.errorMessage=_.JG("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};x=this.calendarConfig.start;var F=this.calendarConfig.end;if(Bdp(p,x))return this.errorMessage=_.JG("ENTER_DATE_OR_LATER",{allowed_date:iAM(x)}),{isValid:!1,details:void 0};if(Bdp(F,p))return this.errorMessage=
_.JG("ENTER_DATE_OR_EARLIER",{allowed_date:iAM(F)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:p}};
_.R8.Object.defineProperties(ieI.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?iAM(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var p=this.calendarConfig,x=[],F=0;F<7;F++)x.push(Xo.NARROWWEEKDAYS[(F+jWn)%7]);F=[];for(var N=new Date(p.start.year,p.start.month);N.getFullYear()<p.end.year||N.getFullYear()===p.end.year&&N.getMonth()<=p.end.month;){var h=F,c=h.push,M=N.getFullYear(),f=N.getMonth(),K=p,t=void 0,d=[],v=Object.freeze({extraCssClass:"invisible",debugClass:""}),C=new Date(M,f),X=IUM(C);C=C.getDay();for(var Q=IUM(new Date);X.month===
f;){C!==jWn&&t||(t=Array.from({length:7}).fill(v),d.push(t));var b={date:{year:M,month:f,day:X.day},extraCssClass:"",debugClass:""};K.selectedDate&&b.date&&Td6(b.date,K.selectedDate)&&(b.extraCssClass+=" selected");if(Bdp(X,K.start)||Bdp(K.end,X))b.extraCssClass+=" disabled";Td6(X,Q)&&(b.extraCssClass+=" today");b.extraCssClass=b.extraCssClass.trim();t[(C-jWn+7)%7]=b;X=ksm(X);C=(C+1)%7}c.call(h,{weeks:d,monthLabel:Xo.SHORTMONTHS[f]+" "+M,year:M,month:f,monthLabelExtraCssClass:d[0][2]===v?"shift-down-label":
""});N.setMonth(N.getMonth()+1)}return{months:F,daysOfWeekLabel:x}}}}});
var GJ=ieI;GJ.prototype.onEscOrClickingOutside=GJ.prototype.onEscOrClickingOutside;GJ.prototype.scrollToDate=GJ.prototype.scrollToDate;_.B([_.H(),_.k("design:type",Object)],GJ.prototype,"calendarConfig",void 0);_.B([_.H(),_.k("design:type",Object)],GJ.prototype,"skipNextOpenDialog",void 0);_.B([_.H(),_.k("design:type",Object)],GJ.prototype,"errorMessage",void 0);_.B([_.Ff("#textbox"),_.k("design:type",HTMLInputElement)],GJ.prototype,"textbox",void 0);
_.B([_.Ff("#calendar-dialog"),_.k("design:type",Object)],GJ.prototype,"dialog",void 0);_.B([_.Ff("#calendar-main"),_.k("design:type",Object)],GJ.prototype,"JSC$13044_calendarMain",void 0);_.B([_.Ff("#date-picker"),_.k("design:type",HTMLElement)],GJ.prototype,"dropdownButton",void 0);_.B([_.w("calendarConfig.selectedDate"),_.k("design:type",String),_.k("design:paramtypes",[])],GJ.prototype,"dateText",null);
_.B([_.w("calendarConfig","calendarConfig.selectedDate"),_.k("design:type",Object),_.k("design:paramtypes",[])],GJ.prototype,"renderData",null);_.B([_.W("renderData","calendarConfig.selectedDate"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],GJ.prototype,"scrollToDate",null);_.B([_.V("iron-overlay-canceled"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],GJ.prototype,"onEscOrClickingOutside",null);
GJ=_.B([_.JZ({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],GJ);
_.P(GJ,"ytd-calendar-date-picker",function(){if(URb!==void 0)return URb;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return URb=p},{mode:2});var INn=_.JG("UTC_OFFSET_FORMAT",{utc_offset:(new OJ("Z")).format(new Date)}),$RC=(new Date).getTimezoneOffset()*-60,euB=new Date,p_l,xl6=ou(euB.getTimezoneOffset());p_l=P8v(BoZ(xl6,euB));var FQm=_.JG("LOCAL_TIME_GMT_LABEL",{gmt_text:p_l.replace("+0","+").replace("-0","-").replace(":00","")}),N7n=function(){var p=_.m.apply(this,arguments)||this;p.selectedTimeIndex=0;p.selectedTimezoneIndex=0;p.timeOfDayOptions=kzC;return p};
_.E(N7n,_.m);_.l=N7n.prototype;_.l.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var p=Ukk();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=p,this.selectedTimeIndex=0;else{var x=$kB(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},p,{selectedDate:x.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(F){return F.secondsSinceMidnight===x.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.l.onDatePicked=function(p){this.selectedDate=p.detail};
_.l.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.hG(this.hostElement,"ytd-date-time-selection-cancelled")};
_.l.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var p=this.selectedDate;p=new Date(p.year,p.month,p.day);_.hG(this.hostElement,"ytd-date-time-selection-update",Math.floor(p.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+p.getTimezoneOffset()*60))}};
_.l.getTimezoneFormat=function(p){return p.localizedDisplayText?p.localizedDisplayText:_.JG("TIMEZONE_FORMAT",{utc_offset_text:""+p.localizedUtcOffset,city_name:""+p.localizedName})};
_.l.updateSelectedTimeIndexFromBinding=function(p){this.selectedTimeIndex=p.detail.value};
_.l.updateSelectedTimezoneIndexFromBinding=function(p){this.selectedTimezoneIndex=p.detail.value};
_.R8.Object.defineProperties(N7n.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var p=this.data.timezoneOptions;var x={name:"Etc/Unknown",localizedName:_.JG("LOCAL_TIME_LABEL"),localizedUtcOffset:INn,utcOffsetSec:""+$RC,localizedDisplayText:FQm};p?p.length&&p[0].name!==x.name&&(p[0].localizedDisplayText||(x.localizedDisplayText=""),p.unshift(x)):p=[x];return p}}},
selectedTimezone:{configurable:!0,enumerable:!0,get:function(){if(this.timeZones&&!(this.selectedTimezoneIndex>=this.timeZones.length))return this.timeZones[this.selectedTimezoneIndex]}},
selectedTime:{configurable:!0,enumerable:!0,get:function(){return this.timeOfDayOptions[this.selectedTimeIndex]}}});
var Vk=N7n;Vk.prototype.onDateTimeTimezoneChange=Vk.prototype.onDateTimeTimezoneChange;Vk.prototype.onDatePicked=Vk.prototype.onDatePicked;Vk.prototype.updateDefaultSelectedValue=Vk.prototype.updateDefaultSelectedValue;_.B([_.H(),_.k("design:type",Object)],Vk.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Vk.prototype,"calendarConfig",void 0);_.B([_.H(),_.k("design:type",Object)],Vk.prototype,"selectedDate",void 0);
_.B([_.H(),_.k("design:type",Object)],Vk.prototype,"selectedTimeIndex",void 0);_.B([_.H(),_.k("design:type",Object)],Vk.prototype,"selectedTimezoneIndex",void 0);_.B([_.Ff("#time-listbox"),_.k("design:type",Object)],Vk.prototype,"timeListBox",void 0);_.B([_.Ff("#timezone-listbox"),_.k("design:type",Object)],Vk.prototype,"timezoneListBox",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Vk.prototype,"rendererStamperBehavior",void 0);
_.B([_.w("data.timezoneOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],Vk.prototype,"timeZones",null);_.B([_.cT("data","timeZones"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Vk.prototype,"updateDefaultSelectedValue",null);_.B([_.w("selectedTimezoneIndex","timeZones"),_.k("design:type",Object),_.k("design:paramtypes",[])],Vk.prototype,"selectedTimezone",null);
_.B([_.w("selectedTimeIndex"),_.k("design:type",Object),_.k("design:paramtypes",[])],Vk.prototype,"selectedTime",null);_.B([_.V("ytd-calendar-date-selected"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Vk.prototype,"onDatePicked",null);_.B([_.W("selectedTimezone","selectedTime","selectedDate"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Vk.prototype,"onDateTimeTimezoneChange",null);
Vk=_.B([_.L({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],Vk);
_.P(Vk,"ytd-date-time-picker-renderer",function(){if(OeI!==void 0)return OeI;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return OeI=p},{mode:1});var hpn;var WJ=function(){var p=_.m.apply(this,arguments)||this;p.boundOnTapDismissButton=function(){p.dismissTapHandler()};
p.dismissButtonOverrides={size:"XS"};return p};
_.E(WJ,_.m);WJ.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}}}}}};
WJ.prototype.dismissTapHandler=function(){_.hG(this.hostElement,"yt-backstage-attachment-dismissed")};
WJ.prototype.computeAttachmentType=function(p){return p?p.backstageImageRenderer?"image":p.videoRenderer?"video":"none":"none"};
var HJ=WJ;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],HJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],HJ.prototype,"attachmentPreview",void 0);_.B([_.H(),_.k("design:type",Object)],HJ.prototype,"dismissButton",void 0);_.B([_.H(),_.k("design:type",Object)],HJ.prototype,"boundOnTapDismissButton",void 0);
_.B([_.H(),_.k("design:type",Object)],HJ.prototype,"dismissButtonOverrides",void 0);_.B([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.k("design:type",String)],HJ.prototype,"attachmentType",void 0);HJ=_.B([_.L({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],HJ);
_.P(HJ,"ytd-backstage-dismissable-attachment",function(){if(hpn!==void 0)return hpn;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return hpn=p},{mode:1});var l4J;var cNm=function(){var p=_.m.apply(this,arguments)||this;p.selectedVideoId=void 0;p.picker=void 0;p.dismissButtonOverrides={size:"XS"};p.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return p};
_.E(cNm,_.m);_.l=cNm.prototype;_.l.onServiceRequestCompleted=function(p){p.stopPropagation()};
_.l.handleAddVideoPreviewAction=function(p){p=this.get("addVideoPreviewAction",p);this.onGetVideoPreviewSuccess(p)};
_.l.configureRendererStamper=function(){return{videoPreview:{id:"video-preview",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}}}},cancelButton:{id:"cancel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[dismissButtonOverrides]]"},params:{forceModernIconButton:!0}}}}}};
_.l.onLaunchVideoPicker=function(p){var x=this,F=_.Pi(this.get("addVideoLinkAction.title",p)),N=this.get("addVideoLinkAction.onePickHostId",p);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",p);N&&(this.picker||(F=_.ifk(_.QzZ(N).setTitle(F).addView(Bql()).addView(Tqb()),function(h){x.onPickVideo(h)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",p)||F.addView("youtube"),this.picker=F.build()),this.picker.setVisible(!0))};
_.l.onPickVideo=function(p){if(p)if(p.action==="cancel")_.hG(this.hostElement,"yt-video-link-button-cancel");else if(p.action==="picked"){p=p.docs;if(!p||p.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(p=(p==null?0:p.length)?p[0]:void 0)?p.id:void 0;this.setVideoPreview()}};
_.l.setVideoPreview=function(){var p=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){p.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.l.onGetVideoPreviewSuccess=function(p){if(p&&p.videoPreview&&p.cancelButton)this.videoPreview=p.videoPreview,this.cancelButton=p.cancelButton,_.hG(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.l.onGetVideoPreviewError=function(){this.cancel()};
_.l.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.hG(this.hostElement,"yt-video-link-cancel")};
_.l.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
var mL=cNm;mL.prototype.onServiceRequestCompleted=mL.prototype.onServiceRequestCompleted;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],mL.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],mL.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],mL.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],mL.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],mL.prototype,"videoPreview",void 0);_.B([_.H(),_.k("design:type",Object)],mL.prototype,"cancelButton",void 0);_.B([_.H(),_.k("design:type",Object)],mL.prototype,"getVideoPreviewCommand",void 0);_.B([_.H(),_.k("design:type",Object)],mL.prototype,"dismissButtonOverrides",void 0);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],mL.prototype,"onServiceRequestCompleted",null);mL=_.B([_.L({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],mL);
_.P(mL,"ytd-backstage-video-link-attachment",function(){if(l4J!==void 0)return l4J;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return l4J=p},{mode:1});var a4J;var Mk6;var DlD;var oK=function(){return _.m.apply(this,arguments)||this};
_.E(oK,_.m);oK.prototype.dataChanged=function(){this.active=!1};
oK.prototype.onTap=function(){_.hG(this.hostElement,"yt-select-emoji-suggestion",this.data)};
oK.prototype.identity=function(p){return p};
_.R8.Object.defineProperties(oK.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var p,x,F,N;if((p=this.data)==null?0:(x=p.image)==null?0:(F=x.thumbnails)==null?0:(N=F[0])==null?0:N.url)return p=this.data.image.thumbnails[0].url,p.startsWith("data:image/svg+xml")?XK(p):_.ug(p)}}});
var Ot=oK;Ot.prototype.dataChanged=Ot.prototype.dataChanged;_.B([_.H(),_.k("design:type",Object)],Ot.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ot.prototype,"active",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ot.prototype,"dataChanged",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ot.prototype,"imageSrc",null);
Ot=_.B([_.L({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Ot);
_.P(Ot,"ytd-emoji-suggestion",function(){if(DlD!==void 0)return DlD;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return DlD=p},{mode:1});var f4B=/.*([:@#].*?)$/,KQB=function(){var p=_.m.apply(this,arguments)||this;p.suggestions=[];p.suggestionIndex=-1;p.JSC$13072_lastSuggestionRange=null;return p};
_.E(KQB,_.m);_.l=KQB.prototype;_.l.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.l.getSuggestions=function(p){var x=[],F=rWn(this.emojiManager,p.substr(0,3));if(F)for(var N in F)if(N.toLocaleLowerCase().indexOf(p)===0){var h=F[N];if(h&&h.emojiId){h=AM(this.emojiManager,h.emojiId);var c=void 0,M=void 0,f=void 0,K=void 0,t=((c=h)==null?0:c.isCustomEmoji)?(M=h)==null?void 0:(f=M.shortcuts)==null?void 0:f[0]:(K=h)==null?void 0:K.emojiId;c=void 0;x.push({suggestion:{image:(c=h)==null?void 0:c.image,alt:t,text:N}});if(x.length>=64)break}}return x?x.sort(function(d,v){return v.suggestion.text<
d.suggestion.text?-1:v.suggestion.text===d.suggestion.text?0:1}):null};
_.l.insertSuggestion=function(p){_.hG(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13072_lastSuggestionRange,text:p.alt});this.dropdown.opened=!1};
_.l.updateSuggestionsAtCaret=function(p){this.updateSuggestions(p,this.retrieveTextBeforeRange(p))};
_.l.offsetStartOfRangeBy=function(p,x){p.startOffset>=x&&p.setStart(p.startContainer,p.startOffset-x)};
_.l.updateSuggestions=function(p,x){var F=this;this.JSC$13072_lastSuggestionRange&&(this.JSC$13072_lastSuggestionRange.detach(),this.JSC$13072_lastSuggestionRange=null);if((x=f4B.exec(x))&&x.length&&(x=x[x.length-1].toLocaleLowerCase(),x.length>2||x===":_")&&(this.offsetStartOfRangeBy(p,x.length),this.JSC$13072_lastSuggestionRange=p,(p=this.getSuggestions(x))&&p.length)){this.suggestions=p;_.jB(this,function(){F.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(p.length-1);return}this.dropdown.opened=!1};
_.l.onKeyDown=function(p){if(this.dropdown.opened)switch(p.key){case "Escape":this.dropdown.opened=!1;p.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);p.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);p.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),p.preventDefault()}};
_.l.onKeyUp=function(p,x){switch(p.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(x);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(x)}};
_.l.onKeyPress=function(p){p.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),p.preventDefault())};
_.l.changeSuggestionIndex=function(p){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(p+this.suggestions.length)%this.suggestions.length,p=this.dropdownContent.children[this.suggestionIndex],p.active=!0,this.dropdownContent.scrollTop=p.offsetTop)};
_.l.retrieveTextBeforeRange=function(p){var x=p.startContainer;return x&&x.nodeType===Node.TEXT_NODE?x.textContent.substr(0,p.startOffset):""};
var jh=KQB;jh.prototype.onKeyPress=jh.prototype.onKeyPress;jh.prototype.onKeyUp=jh.prototype.onKeyUp;jh.prototype.onKeyDown=jh.prototype.onKeyDown;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],jh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Array)],jh.prototype,"suggestions",void 0);_.B([_.H(),_.k("design:type",_.yx)],jh.prototype,"emojiManager",void 0);_.B([_.H(),_.k("design:type",Number)],jh.prototype,"verticalSuggestionsOffset",void 0);
_.B([_.Ff("#dropdown"),_.k("design:type",Object)],jh.prototype,"dropdown",void 0);_.B([_.Ff("#dropdown-content"),_.k("design:type",HTMLDivElement)],jh.prototype,"dropdownContent",void 0);_.B([_.V("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent]),_.k("design:returntype")],jh.prototype,"onKeyDown",null);_.B([_.V("keyup"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent,Range]),_.k("design:returntype")],jh.prototype,"onKeyUp",null);
_.B([_.V("keypress"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent]),_.k("design:returntype")],jh.prototype,"onKeyPress",null);jh=_.B([_.L({disableElementRegistration:!0,is:"ytd-emoji-input"})],jh);
_.P(jh,"ytd-emoji-input",function(){if(Mk6!==void 0)return Mk6;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Mk6=p},{mode:2});var qSv;var Zmj=function(){var p=_.m.apply(this,arguments)||this;p.hasMaxOptions=!1;return p};
_.E(Zmj,_.m);_.l=Zmj.prototype;_.l.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.l.setPrefilledChoices=function(p){var x=this;this.set("pollOptions",[]);var F;for(F=0;F<Math.min(p.length,this.data.maxPollOptions);F++)this.push("pollOptions",p[F].substring(0,this.data.maxPollOptionChars));for(;F<this.data.minPollOptions;F++)this.push("pollOptions","");this.hasMaxOptions=F>=this.data.maxPollOptions;_.jB(this,function(){for(var N=x.pollOptions,h=_.n(x.hostElement).querySelectorAll(".poll-option-input"),c=0;c<h.length;c++)h[c].value=N[c]})};
_.l.focusChanged=function(){_.eV(this.hostElement)};
_.l.onInput=function(){var p=this;_.sQ(this,"onInput",function(){p.isValid()?_.hG(p.hostElement,"yt-commentbox-post-enable"):_.hG(p.hostElement,"yt-commentbox-post-disable")},300)};
_.l.setPollOptions=function(){var p=[],x,F=((x=this.data)==null?0:x.minPollOptions)?this.data.minPollOptions:0;for(x=0;x<F;x++)p.push("");return p};
_.l.addPollOption=function(){var p=this;_.hG(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.E0.addLowPriorityJob(function(){var x;(x=_.n(p.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||x.focus()})};
_.l.onRemovePollOption=function(p){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.hG(this.hostElement,"yt-poll-attachment-dismiss")):(p=this.repeat.indexForElement(p.target.parentNode),p!==null&&(this.splice("pollOptions",p,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.hG(this.hostElement,"yt-commentbox-post-enable"))))};
_.l.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.l.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var p=0,x=this.pollOptions.length;p<x;p++)if(this.pollOptions[p].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.l.getPollOptions=function(){return this.pollOptions};
_.l.setPollOptionsFromInputs=function(){for(var p=_.n(this.hostElement).querySelectorAll(".poll-option-input"),x=0;x<p.length;x++)this.pollOptions[x]=p[x].value.trim()};
_.l.clearPollOptions=function(){var p=_.n(this.hostElement).querySelectorAll(".poll-option-input");p=_.a(p);for(var x=p.next();!x.done;x=p.next())x.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.l.getSimpleString=function(p){return _.Pi(p)};
_.l.updateValueFromBinding=function(p){if(p.target&&this.pollOptions){var x=Array.from(_.n(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(p.target);if(x>=0){var F;this.pollOptions[x]=(F=p.detail.value)!=null?F:"";this.notifyPath("pollOptions."+x)}}};
var LS=Zmj;LS.prototype.dataChanged=LS.prototype.dataChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],LS.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],LS.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Array)],LS.prototype,"pollOptions",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],LS.prototype,"hasMaxOptions",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],LS.prototype,"enableCreationBox",void 0);_.B([_.Ff("#repeat"),_.k("design:type",Zv)],LS.prototype,"repeat",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],LS.prototype,"dataChanged",null);LS=_.B([_.L({disableElementRegistration:!0,is:"ytd-poll-attachment"})],LS);
_.P(LS,"ytd-poll-attachment",function(){if(qSv!==void 0)return qSv;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return qSv=p},{mode:2});var tkK;var dlb;var vy6;var JNB;var CQk=function(){return _.m.apply(this,arguments)||this};
_.E(CQk,_.m);_.R8.Object.defineProperties(CQk.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
var PJ=CQk;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],PJ.prototype,"rendererBehaviors",void 0);_.B([_.H(),_.k("design:type",Object)],PJ.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],PJ.prototype,"focused",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("focused"),_.k("design:type",Object),_.k("design:paramtypes",[])],PJ.prototype,"ariaSelected",null);PJ=_.B([_.JZ({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],PJ);
_.P(PJ,"yt-user-mention-suggestion-renderer",function(){if(JNB===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;vy6===void 0&&(vy6=document.createElement("template"));var N=vy6;F.call(x,N.content.cloneNode(!0),p.content.firstChild);JNB=p}p=JNB;return p},{mode:2});var SSj;var rNB;var EyB=function(){var p=_.m.apply(this,arguments)||this;p.focusedSuggestionIndex=-1;return p};
_.E(EyB,_.m);_.l=EyB.prototype;_.l.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.l.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.l.setFocusedSuggestionIndex=function(p){!this.data||!this.data.suggestions||p<0||p>=this.data.suggestions.length||(this.focusedSuggestionIndex=p,p=this.getSuggestionId(p),this._setFocusedSuggestionId(p))};
_.l.advanceSuggestion=function(p){this.focusedSuggestionIndex===-1||p!==-1&&p!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+p),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.l.ensureSuggestionVisible=function(p){p=this.getSuggestionId(p);p=_.n(this.hostElement).querySelector("[id="+p+"]");p!=null&&(p.offsetTop<this.hostElement.scrollTop?p.scrollIntoView(!0):p.offsetTop+p.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&p.scrollIntoView(!1))};
_.l.getSuggestionId=function(p){return"user-mention-suggestion-"+p};
_.l.onSuggestionTap=function(p){var x=_.r(p.model.item,CC6);this.ytRendererBehavior.logExplicitClick(x);_.hG(this.hostElement,"yt-user-mention-suggestion-selected",{data:x,index:p.model.index})};
_.l.onSuggestionMouseMove=function(p){p.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(p.model.index)};
_.l.isSuggestionFocused=function(p,x){return p===x};
_.l.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.l.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Vx("focused-suggestion-id-changed",this.focusedSuggestionId))};
var TJ=EyB;TJ.prototype.focusedSuggestionIdChangedForBinding=TJ.prototype.focusedSuggestionIdChangedForBinding;TJ.prototype.onDomChange=TJ.prototype.onDomChange;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],TJ.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],TJ.prototype,"focusedSuggestionIndex",void 0);_.B([_.H({readOnly:!0}),_.k("design:type",String)],TJ.prototype,"focusedSuggestionId",void 0);
_.B([_.V("dom-change"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],TJ.prototype,"onDomChange",null);_.B([_.W("focusedSuggestionId"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],TJ.prototype,"focusedSuggestionIdChangedForBinding",null);TJ=_.B([_.JZ({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],TJ);
_.P(TJ,"yt-user-mention-suggestions-dropdown",function(){if(rNB===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;SSj===void 0&&(SSj=document.createElement("template"));var N=SSj;F.call(x,N.content.cloneNode(!0),p.content.firstChild);rNB=p}p=rNB;return p},{mode:2});var X_n=function(){var p=_.m.apply(this,arguments)||this;p.suggestionsResponse=null;p.activeMention=null;p.selectionChangeListener=p.onSelectionChange.bind(p);p.handlesEnabled=_.S("enable_handles_in_mention_suggest_posts");p.handlesInMentionSuggestionsEnabled=_.S("handles_in_mention_suggest_posts");p.zeroPrefixMentionSuggestionEnabled=_.S("enable_zero_prefix_mention_suggestion_web");p.pendingQuery=null;p.flowNonce=null;return p};
_.E(X_n,_.m);_.l=X_n.prototype;_.l.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.l.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.l.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.l.hasSuggestions=function(p){return!!(p&&p.suggestions&&p.suggestions.length>0)};
_.l.onInput=function(){var p=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var x=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),F=this.activeMention.JSC$9092_getText().slice(-1)===" ",N=this.activeMention.JSC$9092_getText().slice(-2,-1)===" ",h="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9092_getText().slice(-2,-1))>=
0;h=this.zeroPrefixMentionSuggestionEnabled&&h;if(this.activeMention.isCollapsed()||(x||N||h)&&F)this.cancelActiveMention();else{var c=this.activeMention.JSC$9092_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.sQ(this,"requestSuggestions",function(){p.requestSuggestions(c)},100)}}}};
_.l.onServiceRequestSent=function(p){p.stopPropagation()};
_.l.onServiceRequestCompleted=function(p){p.stopPropagation();p=p.detail.data;p.query&&(!this.pendingQuery||this.pendingQuery!==p.query)||!this.zeroPrefixMentionSuggestionEnabled&&p.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=p,this.hasSuggestions(p)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.l.onServiceRequestError=function(p){p.stopPropagation()};
_.l.onUserMentionSuggestionSelected=function(p){this.selectSuggestion(p.detail.data,p.detail.index)};
_.l.onSelectionChange=function(){if(this.activeMention){var p=_.Fo(),x=this.activeMention.JSC$9092_containsRange(p);p=p&&this.containsHelper(this.dropdown,p.getContainer());x||p||this.cancelActiveMention()}};
_.l.containsHelper=function(p,x){var F;if(((F=window.ShadyDOM)==null?void 0:F.noPatch)===!0)return p.contains(x);for(;x;){if(x===p)return!0;x=x instanceof ShadowRoot?x.host:x.parentNode}return!1};
_.l.maybeStartSuggest=function(){var p=_.Fo();if(p&&p.isCollapsed()){var x=p.JSC$9092_getStartNode(),F=p.JSC$9092_getStartOffset();if(x instanceof Text&&!(F<1)){var N=x.textContent;!(N=N&&N.charAt(F-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(N)<0||(this.activeMention=_.w_(x,F-1,p.JSC$9092_getEndNode(),p.JSC$9092_getEndOffset()),this.flowNonce=sf(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.l.updateActiveMention=function(){if(this.activeMention){var p=_.Fo();p&&p.isCollapsed()&&(this.activeMention=_.w_(this.activeMention.JSC$9092_getStartNode(),this.activeMention.JSC$9092_getStartOffset(),p.JSC$9092_getEndNode(),p.JSC$9092_getEndOffset()))}};
_.l.requestSuggestions=function(p){if(this.activeMention){var x={suggestions_query:p};this.pendingQuery=p;_.fc(this.hostElement,[this.suggestionsEndpoint,x])}};
_.l.cancelActiveMention=function(){this.activeMention&&this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STOPPED");this.suggestionsResponse=this.pendingQuery=this.activeMention=null;this.dropdown.clearFocusedSuggestion()};
_.l.focusPreviousSuggestion=function(p){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),p.preventDefault())};
_.l.focusNextSuggestion=function(p){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),p.preventDefault())};
_.l.selectFocusedSuggestion=function(p){if(this.hasSuggestions(this.suggestionsResponse)){var x=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.r(x,CC6)&&(this.selectSuggestion(_.r(x,CC6),this.dropdown.focusedSuggestionIndex),p.preventDefault())}};
_.l.selectSuggestion=function(p,x){if(p){var F=this.activeMention;if(F){var N=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&p.handle?_.Hk(N,"\u00a0\u2068@"+p.handle+"\u2069\u00a0"):this.handlesEnabled?_.Hk(N,"\u00a0"+p.displayName+"\u00a0"):_.Hk(N,"\u00a0@"+p.displayName+"\u00a0");Wz(N,"/channel/"+p.channelId);N.classList.add("yt-formatted-string","yt-simple-endpoint");N.setAttribute("spellcheck","false");F.isCollapsed()||F.JSC$9092_removeContents();F.insertNode(N,!0);p=document.createTextNode(" ");
N.parentNode.insertBefore(p,N.nextSibling);window.getSelection().collapse(p,1);x={suggestionSelected:{suggestionIndex:x}};if(this.zeroPrefixMentionSuggestionEnabled){var h;x.suggestionSelected.isZeroPrefix=((h=this.suggestionsResponse)==null?void 0:h.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",x);this.cancelActiveMention();_.hG(this.hostElement,"yt-mention-inserted")}}};
_.l.getPositionTarget=function(p){return p&&p.getBrowserRangeObject()};
_.l.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.l.onFocusedSuggestionIdChanged=function(p){var x=_.whp(this.hostElement)[0];x&&(p.detail.value?x.setAttribute("aria-activedescendant",p.detail.value):x.removeAttribute("aria-activedescendant"))};
_.l.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.l.logGELEvent=function(p,x){p={eventType:p,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};x&&(p=Object.assign(p,x));_.E$("userMentionAutoCompleteBoxEvent",p)};
var BJ=X_n;BJ.prototype.onDomChange=BJ.prototype.onDomChange;BJ.prototype.onUserMentionSuggestionSelected=BJ.prototype.onUserMentionSuggestionSelected;BJ.prototype.onServiceRequestError=BJ.prototype.onServiceRequestError;BJ.prototype.onServiceRequestCompleted=BJ.prototype.onServiceRequestCompleted;BJ.prototype.onServiceRequestSent=BJ.prototype.onServiceRequestSent;BJ.prototype.onInput=BJ.prototype.onInput;_.B([_.u(_.C7),_.k("design:type",Object)],BJ.prototype,"ironA11yKeysBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],BJ.prototype,"suggestionsEndpoint",void 0);_.B([_.H(),_.k("design:type",Object)],BJ.prototype,"suggestionsResponse",void 0);_.B([_.H(),_.k("design:type",Object)],BJ.prototype,"activeMention",void 0);_.B([_.Ff("#dropdown"),_.k("design:type",Object)],BJ.prototype,"dropdown",void 0);_.B([_.Ff("#iron-dropdown"),_.k("design:type",Object)],BJ.prototype,"ironDropdown",void 0);
_.B([_.V("input"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],BJ.prototype,"onInput",null);_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],BJ.prototype,"onServiceRequestSent",null);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],BJ.prototype,"onServiceRequestCompleted",null);
_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],BJ.prototype,"onServiceRequestError",null);_.B([_.V("yt-user-mention-suggestion-selected"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],BJ.prototype,"onUserMentionSuggestionSelected",null);
_.B([_.V("dom-change"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],BJ.prototype,"onDomChange",null);BJ=_.B([_.JZ({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],BJ);
_.P(BJ,"yt-user-mention-autosuggest-input",function(){if(dlb===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;tkK===void 0&&(tkK=document.createElement("template"));var N=tkK;F.call(x,N.content.cloneNode(!0),p.content.firstChild);dlb=p}p=dlb;return p},{mode:2});var RK=null;
_.qu({is:"ytd-commentbox",_template:function(){if(a4J!==void 0)return a4J;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="yt-icons:arrow_drop_down" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return a4J=p},
behaviors:[_.CiB.YtHostElementBehavior,_.C7,_.T2.YtActionHandlerBehavior,_.nJ.YtComponentBehavior,_.P6.YtRendererstamperBehavior,_.YCv.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(p,x){return _.M4(p.entities,"aadcGuidelinesStateEntityPayload",x)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(p,x){return _.M4(p.entities,"commentboxStateEntity",x)},
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 _.uu}},
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:_.S("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.S("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",_.p5(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(p){this.fire(p?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(p){this.set("submitButtonDisabled",void 0);this.clear();p&&this.computeIsEmojiButtonDisplayed_(p)&&(p=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&p.updateEmojiCategories()},
observePrefilledImage_:function(p,x,F){this.isValidPrefilledImage_(p,x,F)&&(this.prefilledAttachment_="image",this.prefilledImageData_=x,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(p,x){this.isValidPrefilledVideo_(p,x)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(p){p&&p.pollData&&p.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(p.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.DQ();this.focus()},
detached:function(){document.removeEventListener("tap",_.p5(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(p){p=p.detail;p=p.isCustomEmoji?p.shortcuts[0]:p.emojiId;var x=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(x,p);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var p=_.Fo();if(p){p=p.getBrowserRangeObject();for(var x=p.commonAncestorContainer;x;){if(x===this.getEditableTextArea_())return p;x=x.parentNode}}p=this.getEditableTextArea_();p=_.Yz(p,p.childNodes.length);p.select();return p.getBrowserRangeObject()},
insertTextWithEmojis_:function(p,x,F){(x=this.emojiManager.createDocumentFragment(x,!0,!1,F===void 0?!0:F))&&x.childNodes.length!==0&&(p.collapsed||p.deleteContents(),F=x.lastChild,p.insertNode(x),_.KOb(F).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var p=_.Fo();if(p){var x=p.JSC$9092_getStartNode(),F=p.JSC$9092_getEndNode();if(pAp(x)&&pAp(F)){var N=p.JSC$9092_getStartOffset(),h;if(_.KT&&x.nodeType===Node.ELEMENT_NODE&&(h=_.e8v(x)))_.Yz(h,0).select();else{h=eo(x)?x:_.uk(x,eo);var c=eo(F)?F:_.uk(F,eo);if(h||c)if(p.isCollapsed()){if(x.nodeType===Node.TEXT_NODE){p=!0;N===x.length&&(p=!1);if(RK==="end"||RK==="right")p=!1;x=x.parentNode;p=[].concat(_.se(x.parentNode.childNodes)).indexOf(x)+(p?0:1);_.Yz(x.parentNode,p).select()}}else h?
h.previousSibling&&h.previousSibling.length>0?_.w_(F,p.JSC$9092_getEndOffset(),h.previousSibling,h.previousSibling.length-1).select():(x=document.createTextNode("\u200b"),h.parentNode.insertBefore(x,h),_.w_(F,p.JSC$9092_getEndOffset(),x,0).select()):c&&(c.nextSibling&&c.nextSibling.length>0?_.w_(x,p.JSC$9092_getStartOffset(),c.nextSibling,1).select():(F=document.createTextNode("\u200b"),c.parentNode.insertBefore(F,c.nextSibling),_.w_(x,p.JSC$9092_getStartOffset(),F,F.length).select()));RK=null}}else RK=
null}else RK=null},
leftKeyPressed_:function(){RK="left"},
rightKeyPressed_:function(){RK="right"},
endKeyPressed_:function(){RK="end"},
maybeDeleteChip_:function(){var p=cVk(!0);if(p){var x=_.Fo(),F=x.JSC$9092_getStartNode();x=x.JSC$9092_getStartOffset();_.nW(F,x,p,p.childNodes.length).select()}},
maybeBackspaceChip_:function(){var p=cVk(!1);if(p){var x=_.Fo(),F=x.JSC$9092_getStartNode();x=x.JSC$9092_getStartOffset();_.nW(F,x,p,0).select()}},
maybeBackspaceChipWordMode_:function(p){var x=_.Fo();if(x.isCollapsed()){var F=x.JSC$9092_getStartNode();x=x.JSC$9092_getStartOffset();var N=aPz(F,x,!0);N&&(_.nW(F,x,N,0).select(),document.execCommand("delete"),p.preventDefault(),p.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(p){var x=_.Fo();if(x.isCollapsed()){var F=x.JSC$9092_getStartNode();x=x.JSC$9092_getStartOffset();var N=aPz(F,x,!1);N&&(_.nW(F,x,N,N.childNodes.length).select(),document.execCommand("delete"),p.preventDefault(),p.stopImmediatePropagation())}},
onTap_:function(p){if(!p.defaultPrevented&&(p.currentTarget.tagName==="YTD-COMMENTBOX"&&eo(p.target)&&p.preventDefault(),this.isEmojiPickerDisplayed)){var x=this.$$("#emojis"),F=this.$$("#emoji-button"),N=this.getEditableTextArea_();if((p=p.path?p.path:p.composedPath&&p.composedPath())&&!p.includes(x)&&!p.includes(N)&&!p.includes(F))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(p,x,F){return p==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&x!==void 0&&x.encryptedBlobId!==null&&x.sourceExternalVideoId!==null&&F!==void 0&&F.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(p,x){return p==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!x&&!!x.videoRenderer&&!!x.videoRenderer.videoId},
isValidPrefilledAttachment_:function(p,x,F){return this.isValidPrefilledImage_(p,x,F)||this.isValidPrefilledVideo_(p,F)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.S("enable_multi_image_post_creation")){var p=this.$$("ytd-backstage-multi-image-select-renderer");p&&p.hasImages()&&p.cancel()}else(p=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&p.cancel();(p=this.$["poll-attachment"])&&this.hasPoll_&&p.clearPollOptions();(p=this.$["image-poll-attachment"])&&this.hasImagePoll_&&p.resetPollOptions();(p=this.$["quiz-attachment"])&&this.hasQuiz_&&p.resetQuizOptions();
(p=this.$["video-link-attachment"])&&this.hasVideo_&&p.cancel();(p=this.$["access-restrictions-selector"].firstElementChild)&&p.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 _.n(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.n(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(p,x){p=F6w(p,this.emojiManager,x).cloneNode(!0);for(x=p.firstChild;x;)if(x.nodeType!==1)x=x.nextSibling;else switch(x.tagName){case "BR":var F=_.uH();_.anI(F,x);x=F.nextSibling;break;case "DIV":(F=x.lastChild)&&x.nextSibling&&_.VO(_.uH(),F);x.previousSibling&&(x.previousSibling.nodeType===1||x.previousSibling.nodeType===3&&!x.previousSibling.textContent.endsWith("\n"))&&_.Ga(_.uH(),x);F&&F.nodeName==="BR"&&_.qc(F);F=x;x.hasChildNodes()?(x=x.firstChild,
_.MPv(F)):(x=x.nextSibling,_.qc(F));break;default:x=x.nextSibling}return M2H(p)},
onAddImageError_:function(p){p.stopPropagation();this.errorMessage_=_.L1(p.detail)},
setTextAreaValue_:function(p){p||(p="");var x=this.getEditableFormattedString_();x.text="";this.getEditableTextArea_().innerText="";typeof p==="string"&&(p={runs:[{text:p}]});x.text=p},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();RK=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var p=this.getEditableTextArea_();p&&(_.Yz(p,p.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.sd("HTML_DIR")==="rtl"){var p=this.getEditableTextArea_(),x=this.getTextAreaValue()!==""?"auto":"rtl";p.setAttribute("dir",x)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var p;return UsH((p=this.$["quiz-attachment"])==null?void 0:p.getExplanationText())||UsH(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var p=null;if(this.isEmojiButtonDisplayed){var x=this.getInputRange_();x&&(p=this.emojiInput.retrieveTextBeforeRange(x))}this.insertText_(p,!0);this.updateCharCount_();this.setSubmitButton_();p=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=p.scrollHeight>p.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var p=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:p})},
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(p){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(p)},
onPasteEmoji_:function(p){p.preventDefault();p.stopImmediatePropagation();p=p.clipboardData.getData("text/plain");this.insertText_(p,!1,!1)},
insertText_:function(p,x,F){x=x===void 0?!1:x;F=F===void 0?!0:F;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&p){var N=this.getInputRange_().cloneRange();this.emojiManager&&N&&(x&&this.emojiInput.offsetStartOfRangeBy(N,p.length),this.insertTextWithEmojis_(N,p,F),xw$(this.getEditableTextArea_().lastChild)||(N=this.getInputRange_().cloneRange()),N&&(this.emojiInput.updateSuggestions(N,p),this.updateSuggestionOffset_(N)))}},
setSubmitButton_:function(){if(this.data){var p=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",x=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(p||x){var F=this.getTextAreaValue().trim();x=F===this.previousText_;F=!F||this.aboveCharLimit_;p&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(F=this.aboveCharLimit_);this.submitButtonDisabled=
x||F||!this.getTextLength();p&&_.S("enable_post_scheduling")&&(this.submitButtonDisabled=x&&!this.scheduledPublishTimeSec_||F)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.Pi,computeCreationBoxClass_:function(p){return p?"focused":"not-focused"},
computeFooterMessageClass_:function(p,x){return x?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(p,x){return x?x:p},
computeFooterMessageHidden_:function(p,x){return!x&&!p},
computePlaceholderText_:function(p,x,F){return(F==="video"||F==="image")&&(p==null?0:p.prefilledPlaceholderText)?p==null?void 0:p.prefilledPlaceholderText:x==="poll"||x==="image-poll"?p==null?void 0:p.pollPostPlaceholderText:x==="quiz"?p==null?void 0:p.quizPostPlaceholderText:x==="image"?p==null?void 0:p.imagePostPlaceholderText:p==null?void 0:p.placeholderText},
computeHideAttachmentButtons_:function(p,x,F,N){return p===void 0?!1:N&&this.getSimpleString(N)===this.getSimpleString(p.rateLimitErrorMessage)?!0:x!=="none"||F!=="none"||!p.videoLinkButton&&!p.pollButton&&!p.imagePollButton&&!p.quizButton&&!p.imageButton},
computeHideDismissableAttachment_:function(p){return p!=="image"&&p!=="video"},
computeHasVideo_:function(p){return p==="video"},
computeHasImage_:function(p){return p==="image"},
computeHasPoll_:function(p){return p==="poll"},
computeHasImagePoll_:function(p){return p==="image-poll"},
computeHasQuiz_:function(p){return p==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(p){return p&&p.backstageAttachment?p.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!p.backstageAttachment.quizRenderer&&!p.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(p){if(this.isValidPrefilledAttachment_(p.purpose,p.prefilledImageData,p.backstageAttachment))return p.backstageAttachment},
computeEditAttachment_:function(p){if(this.computePrefilledContent_(p)===void 0)return p.backstageAttachment},
computeAuthorThumbnailDimension_:function(p,x){return p&&!x?24:40},
computeImageUploadEndpoint_:function(p){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",p)},
computeRateLimitErrorCommands_:function(p){var x,F;return p==null?void 0:(x=p.advancedTierFeatures)==null?void 0:(F=x.rateLimit)==null?void 0:F.rateLimitCommands},
computeIsBackstageComment_:function(p){return!(!p||p!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(p){return this.get("submitButton.buttonRenderer.serviceEndpoint",p)||this.get("replyButton.buttonRenderer.serviceEndpoint",p)||this.get("postButton.buttonRenderer.serviceEndpoint",p)},
computeSubmitButtonOverride:function(){if(_.S("web_modern_buttons")){var p,x;return{segmentedPosition:this.dropdownSchedulePanel_||!((p=this.data)==null?0:(x=p.postOptionsMenu)==null?0:x.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.S("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(p,x){p=this.get("submitButton.buttonRenderer",p)||this.get("replyButton.buttonRenderer",p)||this.get("postButton.buttonRenderer",p);x&&(p=x);p&&(p=Object.assign({},p),p.serviceEndpoint=void 0,p.isDisabled=this.submitButtonDisabled);return p},
computeHasExternalLinksAccess_:function(p){if(_.S("enable_rfa_external_links")){var x,F,N;return(N=p==null?void 0:(x=p.advancedTierFeatures)==null?void 0:(F=x.externalLinks)==null?void 0:F.allowExternalLinks)!=null?N:!0}return!0},
computeIsEmojiButtonDisplayed_:function(p){return p.emojiButton&&p.emojiPicker&&p.emojiPicker.emojiPickerRenderer&&p.emojiPicker.emojiPickerRenderer.categories?p.emojiPicker.emojiPickerRenderer.categories.find(function(x){return x.emojiPickerCategoryRenderer?x.emojiPickerCategoryRenderer.emojiIds&&x.emojiPickerCategoryRenderer.emojiIds.length>0:x.emojiPickerUpsellCategoryRenderer?x.emojiPickerUpsellCategoryRenderer.emojis&&x.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(p){return p.charLimit?p.charLimit:null},
computeDropdownSchedulingPanel_:function(p,x){if(p==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&x)return x},
computeInlineSchedulingPanel_:function(p,x){if(p==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&x)return x},
computeHideAuthorThumbnail_:function(p,x){return p||this.computeUseIdentityChip_(x)},
computeHideIdentityChipRenderer_:function(p,x){return p||!this.computeUseIdentityChip_(x)},
computeUseIdentityChip_:function(p){return!!p&&!!p.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(p){var x,F,N,h;(p==null?0:(x=p.detail)==null?0:(F=x.endpoint)==null?0:F.ypcGetOffersEndpoint)||(p==null?0:(N=p.detail)==null?0:(h=N.endpoint)==null?0:h.ypcOffersEndpoint)?(p.stopPropagation(),_.fc(this,[p.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",p)&&(p.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(p){this.addedAttachment="video";this.selectedVideoId_=p.detail.videoId},
commentboxStateEntityChanged_:function(p){var x=this;(p==null?void 0:p.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(p==null?void 0:p.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){x.focus()})},
onYtServiceRequestSent_:function(p,x){if(x.actions)for(p=_.a(x.actions),x=p.next();!x.done;x=p.next())x.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(p){this.isLoading=!1;var x=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",p),F,N,h,c=p==null?void 0:(F=p.detail)==null?void 0:(N=F.data)==null?void 0:(h=N.actionResult)==null?void 0:h.commentboxStateEntityKey;if(x)this.errorMessage_=x;else if(c){var M;this.dismissData_=p==null?void 0:(M=p.detail)==null?void 0:M.data;this.commentboxStateKey_=c}else{this.clear();var f;this.fire("yt-commentbox-dismiss",p==null?void 0:(f=p.detail)==
null?void 0:f.data)}},
onYtServiceRequestError_:function(p){p.stopPropagation();this.isLoading=!1;var x,F;if(((x=this.data)==null?void 0:x.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((F=this.data)==null?void 0:F.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(x=this.get("detail.error.args",p)||[],x.length>1&&x[1].message){this.handlePostsServiceRequestError_(x[1].message);return}(p=this.get("detail.error.message",p))?this.errorMessage_=this.data.errorMessage||_.L1(p):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(p){if(_.S("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var x=_.a(this.rateLimitErrorCommands),F=x.next();!F.done;F=x.next())if(F=F.value,F.errorLabel===p){_.FY(F.command,this.hostElement);return}this.errorMessage_=_.L1(p)},
submitIfNotBackstagePost_:function(p){if(!this.isBackstagePost)this.onSubmit_(p)},
onSubmit_:function(p){var x=this,F,N,h,c,M,f,K,t,d,v,C,X,Q,b,A;return _.D(function(Y){switch(Y.nextAddress){case 1:p.stopPropagation();if(!x.serviceEndpoint||!x.isValidInput_())return Y.return();if(x.shouldShowPostAadcNotice_())return x.showPostAadcNotice_(),Y.return();if(x.shouldShowCommentAadcNotice_())return x.showCommentAadcNotice_(),Y.return();if(!(x.$$("ytd-backstage-multi-image-select-renderer")&&x.hasImage_&&_.S("enable_multi_image_post_creation"))){Y.jumpTo(2);break}F=x.$$("ytd-backstage-multi-image-select-renderer");
return _.q(Y,F.getAllUploadStatuses(),3);case 3:N=Y.yieldResult;if(!N)return Y.return();h=_.a(N);for(c=h.next();!c.done;c=h.next())if(M=c.value,M.encryptedBlobId===void 0)return x.isLoading=!1,K=f=void 0,x.errorMessage_=(K=(f=x.imageUploadEndpoint_)==null?void 0:f.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?K:null,Y.return();return Y.return(x.submitForm_(void 0,void 0,void 0,void 0,F.images,x.taggedVideoId_));case 2:if(!x.hasImagePoll_||!x.$["image-poll-attachment"]){Y.jumpTo(4);
break}return _.q(Y,x.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:t=Y.yieldResult;if(!t)return Y.return();d=_.a(t);for(v=d.next();!v.done;v=d.next())if(C=v.value,!C.encryptedBlobId)return x.isLoading=!1,X=void 0,x.errorMessage_=(X=x.data.errorMessage)!=null?X:null,Y.return();case 4:b=(Q=x.$$("ytd-backstage-image-select-renderer"))&&Q.uploadPromise(),A=x.getSharedPostId_(),b?b.then(function(){x.submitForm_.apply(x,_.se(_.we.apply(0,arguments)))}).catch(function(O){x.isLoading=!1;
x.errorMessage_=_.L1(O.message)}):x.selectedVideoId_?x.submitForm_(void 0,x.selectedVideoId_):x.prefilledAttachment_==="image"?x.submitForm_(x.prefilledImageData_.encryptedBlobId,void 0,void 0,x.prefilledImageData_.sourceExternalVideoId,void 0,x.taggedVideoId_):x.prefilledAttachment_==="video"?x.submitForm_(void 0,x.data.backstageAttachment.videoRenderer.videoId):A?x.submitForm_(void 0,void 0,A):x.taggedVideoId_!==void 0?x.submitForm_(void 0,void 0,void 0,void 0,void 0,x.taggedVideoId_):x.submitForm_(),
_.JB(Y)}})},
openSchedulingPanel:function(p){p&&p.scheduleButton&&p.scheduleButton.buttonRenderer&&(this.scheduleButton_=p.scheduleButton.buttonRenderer);p&&p.dateTimePicker&&this.set("data.schedulingDateTimePicker",p.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(p){p.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(p){p.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(p){p.stopPropagation();p.detail.alertMessage&&(this.alertMessage_=p.detail.alertMessage)},
onImageSelected_:function(p){p.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(p){p.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(p){p.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(p.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(p){p.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(p){var x=this.$["video-link-attachment"];x&&x.onLaunchVideoPicker(p)},
onAttachmentDismiss_:function(p){p.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"&&_.S("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.S("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 p;if(this.addedAttachment==="image-poll"&&((p=this.$["image-poll-attachment"])==null||!p.isValid()))return!1;var x;if(this.addedAttachment==="quiz"&&((x=this.$["quiz-attachment"])==null||!x.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;p=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(p=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")p=!0;return p||!!this.getTextAreaValue().trim()},
submitForm_:function(p,x,F,N,h,c){var M=this.getTextAreaValue().trim(),f={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&M===this.previousText_&&(M=void 0);M!==void 0&&(f.comment_text=M);this.isLoading=!0;c!=void 0&&(f.tagged_video_id=c);p?(f.image_blob_id=p,this.imagePreviewCoordinates_&&(f.image_preview_coordinates=this.imagePreviewCoordinates_)):x?f.attached_video_id=x:F?f.shared_post_id=F:h&&h.length>0&&(f.images_data=h.map(function(K){return{encryptedBlobId:K.encryptedBlobId,
previewCoordinates:K.previewCoordinates}}));
N&&(f.source_video_id=N);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(f.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(f.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(f.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.S("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(f.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.S("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(f.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.fc(this,[this.serviceEndpoint,f])},
onIsInputFocusChanged_:function(p,x){p?this.fire("yt-autonav-pause-focus"):x!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(p){var x=this.getEditableTextArea_();[].concat(_.se(p.dataTransfer.items)).forEach(function(F){F.kind==="string"&&F.type.match("^text/plain")&&F.getAsString(function(N){x.appendChild(document.createTextNode(N))})});
p.preventDefault()},
preventDefault_:function(p){p.preventDefault()},
onSuggestionInsert_:function(p){this.insertTextWithEmojis_(p.detail.range,p.detail.text)},
onEmojiSuggestionClick_:function(p){this.emojiInput.insertSuggestion(p.detail)},
computeSubmitButtonClass_:function(p,x){return!x||p?"":"with-options"},
updateSuggestionOffset_:function(p){if(this.emojiInput&&_.n(this.emojiInput).querySelector("#dropdown")){var x=this.getEditableTextArea_().getBoundingClientRect().bottom,F=p.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(x-F)+5;x=this.getEditableTextArea_().getBoundingClientRect().left;p=p.getBoundingClientRect().left-x;_.n(this.emojiInput).querySelector("#dropdown").style.marginLeft=p+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(p){if(_.S("enable_post_scheduling")&&this.data&&this.data.purpose){p=p.detail;if(Math.floor(Date.now()/1E3)>=p)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var x=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(x)||x!==p?this.scheduledPublishTimeSec_=p:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=p;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var p=["image-button","image-poll-button","poll-button"];_.S("enable_quiz_creation")&&p.push("quiz-button");_.S("auto_convert_posts_video_tag")||p.push("video-link-button");return p},
getButtonRenderer:function(p,x){if(p)switch(x){case "video-link-button":var F;return((F=p.videoLinkButton)==null?void 0:F.buttonRenderer)||void 0;case "image-button":var N;return((N=p.imageButton)==null?void 0:N.buttonRenderer)||void 0;case "poll-button":var h;return((h=p.pollButton)==null?void 0:h.buttonRenderer)||void 0;case "image-poll-button":var c;return((c=p.imagePollButton)==null?void 0:c.buttonRenderer)||void 0;case "quiz-button":var M;return((M=p.quizButton)==null?void 0:M.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var p;return(p=this.data)==null||!p.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var p,x;return!((p=this.data)==null||!p.openAadcDialog)&&!((x=this.aadcGuidelinesState_)==null||!x.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.sd("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var p;((p=this.data)==null?0:p.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.s0("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(p){p.clickTrackingParams&&_.cl().clickCommand(p);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.lA(this,"yt-close-popup-action")},
onHideIdentityChip:function(p){var x;this.set("data.placeholderText",(x=p.hideIdentityChipAction)==null?void 0:x.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var gyK=function(){var p=_.m.apply(this,arguments)||this;p.isOpen=!1;p.modern=_.S("web_modern_buttons");p.roundedContainer=!0;p.dropdownButtonOverride=_.S("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;p.inPopupContainer=!1;p.isCommentboxLoading=!1;var x=["image-button","image-poll-button","poll-button"];_.S("enable_quiz_creation")&&x.push("quiz-button");_.S("auto_convert_posts_video_tag")||x.push("video-link-button");p.attachmentButtonIds=x;p.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 p};
_.E(gyK,_.m);_.l=gyK.prototype;_.l.computeButtonOverride=function(){var p;return((p=this.data)==null?0:p.postOptionsMenu)&&_.S("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.l.configureRendererStamper=function(){var p={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:arrow_drop_down"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.S("auto_convert_posts_video_tag")||(p["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return p};
_.l.ready=function(){var p=this,x=_.n(this.hostElement).querySelector("#placeholder-area"),F=function(N){p.onOpen(N)};
x.addEventListener("tap",F);x.addEventListener("keypress",F)};
_.l.showButtonEduTooltip=function(){var p,x,F,N,h,c,M;if(_.S("enable_quiz_creation")&&((p=this.data)==null?0:(x=p.quizButton)==null?0:(F=x.buttonRenderer)==null?0:(N=F.hint)==null?0:(h=N.hintRenderer)==null?0:(c=h.content)==null?0:(M=c.bubbleHintRenderer)==null?0:M.text)&&(_.IO.getInstance(),p=$x(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(p==null?void 0:
p.length)>0)){this.ytComponentBehavior.resolveCommand(p[0],{form:{element:this.quizButton}});return}var f;if((f=this.data)==null?0:f.imagePollButtonTooltip)if(_.IO.getInstance(),f=$x(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(f==null?void 0:f.length)>0){this.ytComponentBehavior.resolveCommand(f[0],{form:{element:this.imagePollButton}});return}var K;_.S("enable_multi_image_post_creation")&&
((K=this.data)==null?0:K.multiImageButtonTooltip)&&(_.IO.getInstance(),K=$x(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(K==null?void 0:K.length)>0&&this.ytComponentBehavior.resolveCommand(K[0],{form:{element:this.imageButton}}))};
_.l.onCreatePollAction=function(p){_.r(p,ojv)&&(this.JSC$13129_commentbox.addedAttachment="poll",this.openDialog())};
_.l.onAddVideoLinkAction=function(p){if(_.r(p,miK))this.JSC$13129_commentbox.onAddVideoLink(p)};
_.l.onShowSchedulingPanelCommand=function(p){(p=_.r(p,tcC))&&this.openSchedulingPanel(p)};
_.l.onCreateImagePollCommand=function(p){_.r(p,vaB)&&(this.JSC$13129_commentbox.openImagePollComponent(),this.openDialog())};
_.l.onCreateQuizCommand=function(p){_.r(p,JSl)&&(this.JSC$13129_commentbox.openQuizComponent(),this.openDialog())};
_.l.openSchedulingPanel=function(p){_.S("enable_post_scheduling")&&(this.openDialog(),this.JSC$13129_commentbox.openSchedulingPanel(p))};
_.l.onCreateCommentAction=function(p){this.get("createCommentAction.contents",p)&&(this.JSC$13129_commentbox.clear(),this.closeDialog())};
_.l.onOpen=function(p){p instanceof KeyboardEvent&&p.type==="keypress"&&p.keyCode!==13&&p.keyCode!==32||(this.data.prepareAccountEndpoint?_.hG(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.l.onYtCommentboxDismiss=function(){this.closeDialog()};
_.l.onYtCommentboxLoadingStart=function(p){p.stopPropagation();this.isCommentboxLoading=!0};
_.l.onYtCommentboxLoadingEnd=function(p){p.stopPropagation();this.isCommentboxLoading=!1};
_.l.onYtVideoLinkButtonCancel=function(p){p.stopPropagation();this.onOpen(p)};
_.l.onYtVideoLinkSelected=function(p){p.stopPropagation();this.onOpen(p)};
_.l.onIronSelect=function(p){p.stopPropagation();p.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=p.detail.item.value&&(this.accessRestriction?(this.accessRestriction=p.detail.item.value,this.onOpen(p)):this.accessRestriction=p.detail.item.value)};
_.l.onYtNavigate=function(p){this.get("detail.endpoint.backstageImageUploadEndpoint",p)&&(this.JSC$13129_commentbox.addedAttachment="image",this.JSC$13129_commentbox.submitButtonDisabled=!0,this.onOpen(p))};
_.l.onRequestSent=function(p){if(_.S("web_button_rework"))for(var x=_.a(p.detail),F=x.next();!F.done;F=x.next())_.r(F.value,ynl)&&(this.JSC$13129_commentbox.addedAttachment="image",this.JSC$13129_commentbox.submitButtonDisabled=!0,this.onOpen(p))};
_.l.openDialog=function(){this.JSC$13129_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13129_commentbox.focus()};
_.l.onPopupClosed=function(){_.IO.getInstance()};
_.l.computeCreationDisabled=function(p){return!!p};
_.l.computeIsCreationDialog=function(p){return!!p&&p==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.l.computeDisabledPostButton=function(p){if(!p)return null;p.isDisabled=!0;return p};
_.l.computeIsCreationDialogWithHeader=function(p){return!this.inPopupContainer&&!!p&&!!p.authorText&&p.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.l.computeIsHeaderHidden=function(p,x){return!p||x};
_.l.computeDropdownRendererClasses=function(p){return p?["text-secondary-style"]:[]};
_.l.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var p=_.n(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;p&&p.reset()};
var kc=gyK;kc.prototype.onPopupClosed=kc.prototype.onPopupClosed;kc.prototype.onRequestSent=kc.prototype.onRequestSent;kc.prototype.onYtNavigate=kc.prototype.onYtNavigate;kc.prototype.onIronSelect=kc.prototype.onIronSelect;kc.prototype.onYtVideoLinkSelected=kc.prototype.onYtVideoLinkSelected;kc.prototype.onYtVideoLinkButtonCancel=kc.prototype.onYtVideoLinkButtonCancel;kc.prototype.onYtCommentboxLoadingEnd=kc.prototype.onYtCommentboxLoadingEnd;kc.prototype.onYtCommentboxLoadingStart=kc.prototype.onYtCommentboxLoadingStart;
kc.prototype.onYtCommentboxDismiss=kc.prototype.onYtCommentboxDismiss;kc.prototype.showButtonEduTooltip=kc.prototype.showButtonEduTooltip;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],kc.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],kc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],kc.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],kc.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],kc.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],kc.prototype,"isOpen",void 0);_.B([_.H({computed:"computeButtonOverride(data)"}),_.k("design:type",Object)],kc.prototype,"buttonOverride",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],kc.prototype,"modern",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],kc.prototype,"roundedContainer",void 0);_.B([_.H(),_.k("design:type",Object)],kc.prototype,"dropdownButtonOverride",void 0);_.B([_.H({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.k("design:type",Boolean)],kc.prototype,"creationDisabled",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],kc.prototype,"enableCreationBox",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.k("design:type",Boolean)],kc.prototype,"isCreationDialog",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],kc.prototype,"inPopupContainer",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.k("design:type",Boolean)],kc.prototype,"isCreationDialogWithHeader",void 0);_.B([_.H(),_.k("design:type",Object)],kc.prototype,"accessRestriction",void 0);
_.B([_.H({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.k("design:type",Array)],kc.prototype,"dropdownRendererClasses",void 0);_.B([_.H(),_.k("design:type",Object)],kc.prototype,"isCommentboxLoading",void 0);_.B([_.H(),_.k("design:type",Array)],kc.prototype,"attachmentButtonIds",void 0);_.B([_.Ff("#image-button"),_.k("design:type",HTMLElement)],kc.prototype,"imageButton",void 0);
_.B([_.Ff("#image-poll-button"),_.k("design:type",HTMLElement)],kc.prototype,"imagePollButton",void 0);_.B([_.Ff("#quiz-button"),_.k("design:type",HTMLElement)],kc.prototype,"quizButton",void 0);_.B([_.Ff("#commentbox"),_.k("design:type",Object)],kc.prototype,"JSC$13129_commentbox",void 0);_.B([_.W("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kc.prototype,"showButtonEduTooltip",null);
_.B([_.V("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],kc.prototype,"onYtCommentboxDismiss",null);_.B([_.V("yt-commentbox-loading-start"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],kc.prototype,"onYtCommentboxLoadingStart",null);
_.B([_.V("yt-commentbox-loading-end"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],kc.prototype,"onYtCommentboxLoadingEnd",null);_.B([_.V("yt-video-link-button-cancel"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],kc.prototype,"onYtVideoLinkButtonCancel",null);
_.B([_.V("yt-video-link-selected"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],kc.prototype,"onYtVideoLinkSelected",null);_.B([_.V("iron-select"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],kc.prototype,"onIronSelect",null);_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],kc.prototype,"onYtNavigate",null);
_.B([_.V("yt-service-request-sent-button-renderer"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],kc.prototype,"onRequestSent",null);_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kc.prototype,"onPopupClosed",null);kc=_.B([_.L({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],kc);
_.P(kc,"ytd-backstage-post-dialog-renderer",function(){if(aNb!==void 0)return aNb;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return aNb=p},{mode:1});var Q2C;var zpC;var s2v=function(){return _.m.apply(this,arguments)||this};
_.E(s2v,_.m);_.l=s2v.prototype;_.l.computeHeartButtonStyle=function(p){return(p==null?0:p.styleType)?p.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.l.onYtButtonTap=function(){if(this.data.isEnabled){var p=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(p=this.getEndpoint(p))&&_.fc(this.hostElement,[p])}else(p=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(p)};
_.l.toggle=function(p){this.set("data.isHearted",p!==void 0?p:!this.data.isHearted)};
_.l.getEndpoint=function(p){var x,F=(x=this.data)==null?void 0:x.heartEndpoint,N;x=(N=this.data)==null?void 0:N.unheartEndpoint;if(F&&x)return p?x:F};
_.l.computeButtonAccessibility=function(p,x){var F,N,h=p==null?void 0:(F=p.heartedAccessibility)==null?void 0:(N=F.accessibilityData)==null?void 0:N.label,c,M;p=p==null?void 0:(c=p.unheartedAccessibility)==null?void 0:(M=c.accessibilityData)==null?void 0:M.label;return x?h:p};
_.R8.Object.defineProperties(s2v.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 p;return _.S("kevlar_system_icons")&&!((p=this.data)==null||!p.isHearted)}}});
var Ut=s2v;Ut.prototype.onYtButtonTap=Ut.prototype.onYtButtonTap;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.Oo),_.k("design:type",Object)],Ut.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ut.prototype,"data",void 0);_.B([_.w("data.isHearted"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ut.prototype,"heartTooltip",null);
_.B([_.w("data.isHearted"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ut.prototype,"iconFilled",null);_.B([_.H({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.k("design:type",String)],Ut.prototype,"buttonAccessibility",void 0);_.B([_.H({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.k("design:type",String)],Ut.prototype,"heartButtonStyle",void 0);
_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ut.prototype,"onYtButtonTap",null);Ut=_.B([_.L({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],Ut);
_.P(Ut,"ytd-creator-heart-renderer",function(){if(zpC!==void 0)return zpC;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return zpC=p},{mode:1});var nyv=function(){var p=_.m.apply(this,arguments)||this;p.hasCreatorReply=!1;p.buttonOverrides={size:"S",iconPosition:"icon-only"};p.replyButtonOverrides={size:"S",type:"text"};p.forceIconButton=!_.S("web_modern_buttons");p.modern=_.S("web_modern_buttons");p.buttonTooltipPosition="bottom";p.systemIcons=_.S("kevlar_system_icons");p.replyDialog=null;return p};
_.E(nyv,_.m);_.l=nyv.prototype;
_.l.configureRendererStamper=function(){return{"data.creatorHeart":{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}},replyButtonBeginning:{id:"reply-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}},replyButtonEnd:{id:"reply-button-end",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{forceIconButton:!0},properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]",overrides:"[[replyButtonOverrides]]",forceIconButton:"[[forceIconButton]]"}}}},
"data.shareButton":{id:"share-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{buttonTooltipPosition:"[[buttonTooltipPosition]]"}}}}}};
_.l.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.l.dataChange=function(){this.replyDialog&&_.n(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var p,x,F;this.isLiked=this.systemIcons&&!!((p=this.data)==null?0:(x=p.likeButton)==null?0:(F=x.toggleButtonRenderer)==null?0:F.isToggled)};
_.l.computeShowVoteCountBeginning=function(p,x){return p===void 0||x===void 0?!0:p.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!x&&this.ytRendererBehavior.getSimpleString(x)!=="0"};
_.l.computeShowVoteCountEnd=function(p,x){return p===void 0||x===void 0?!0:p.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!x&&this.ytRendererBehavior.getSimpleString(x)!=="0"};
_.l.computeShowCommentCount=function(p,x){return p===void 0||x===void 0?!0:p.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!x&&this.ytRendererBehavior.getSimpleString(x)!=="0"};
_.l.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.l.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.l.showReplyDialog=function(p){p&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.n(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=p,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.l.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.l.onRequestSent=function(p){if(_.S("web_button_rework")){p=_.a(p.detail);for(var x=p.next();!x.done;x=p.next())(x=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",x.value))&&this.showReplyDialog(x)}};
_.l.onYtNavigate=function(p){var x,F;(p=(x=_.r(p.detail.endpoint,_.AnJ))==null?void 0:(F=x.dialog)==null?void 0:F.commentReplyDialogRenderer)&&this.showReplyDialog(p)};
_.l.onYtServiceRequestSent=function(p,x){p.stopPropagation();if(x.actions)for(p=0;p<x.actions.length;p++){var F=_.r(x.actions[p],LZm);F&&this.handleUpdateCommentVoteAction(F)}};
_.l.handleUpdateCommentVoteAction=function(p){this.voteCount=p.voteCount||_.L1("0");p.voteStatus==="LIKE"?this.JSC$13141_ytdDislikeToggleButtonRenderer.toggle(!1):p.voteStatus==="DISLIKE"?this.JSC$13141_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13141_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13141_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.l.computeReplyButtonHidden=function(p){return p};
_.l.computeReplyButtonBeginning=function(p){return(p==null?0:p.replyButton)&&p.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?p.replyButton:void 0};
_.l.computeReplyButtonEnd=function(p){return(p==null?0:p.replyButton)&&p.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?p.replyButton:void 0};
_.l.computeActionButtonStyle=function(p){return(p==null?0:p.style)?p.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.l.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.l.onYtToggleButton=function(p){var x,F;this.isLiked=this.systemIcons&&!!((x=p.detail)==null?0:(F=x.actions)==null?0:F.like)};
var ii=nyv;ii.prototype.onYtToggleButton=ii.prototype.onYtToggleButton;ii.prototype.onButtonTooltipPositionChanged=ii.prototype.onButtonTooltipPositionChanged;ii.prototype.onYtServiceRequestSent=ii.prototype.onYtServiceRequestSent;ii.prototype.onYtNavigate=ii.prototype.onYtNavigate;ii.prototype.onRequestSent=ii.prototype.onRequestSent;ii.prototype.onYtCommentboxDismiss=ii.prototype.onYtCommentboxDismiss;ii.prototype.dataChange=ii.prototype.dataChange;
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ii.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ii.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],ii.prototype,"voteCount",void 0);_.B([_.H(),_.k("design:type",Object)],ii.prototype,"commentCount",void 0);_.B([_.H(),_.k("design:type",Object)],ii.prototype,"replyThumbnail",void 0);
_.B([_.H(),_.k("design:type",Object)],ii.prototype,"hasCreatorReply",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],ii.prototype,"enableCreationBox",void 0);_.B([_.H({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.k("design:type",String)],ii.prototype,"actionButtonsStyle",void 0);_.B([_.H({computed:"computeReplyButtonBeginning(data)"}),_.k("design:type",Object)],ii.prototype,"replyButtonBeginning",void 0);
_.B([_.H({computed:"computeReplyButtonEnd(data)"}),_.k("design:type",Object)],ii.prototype,"replyButtonEnd",void 0);_.B([_.H(),_.k("design:type",Object)],ii.prototype,"buttonOverrides",void 0);_.B([_.H(),_.k("design:type",Object)],ii.prototype,"replyButtonOverrides",void 0);_.B([_.H(),_.k("design:type",Object)],ii.prototype,"forceIconButton",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],ii.prototype,"useCommentIcon",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],ii.prototype,"modern",void 0);_.B([_.H(),_.k("design:type",Object)],ii.prototype,"buttonTooltipPosition",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],ii.prototype,"systemIcons",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],ii.prototype,"isLiked",void 0);_.B([_.Ff("ytd-button-renderer"),_.k("design:type",Object)],ii.prototype,"ytdReplyButtonRenderer",void 0);
_.B([_.Ff("#like-button"),_.k("design:type",Object)],ii.prototype,"JSC$13141_ytdLikeToggleButtonRenderer",void 0);_.B([_.Ff("#dislike-button"),_.k("design:type",Object)],ii.prototype,"JSC$13141_ytdDislikeToggleButtonRenderer",void 0);_.B([_.Ff("#reply-dialog"),_.k("design:type",HTMLElement)],ii.prototype,"replyDialogElement",void 0);_.B([_.Ff("#reply-button"),_.k("design:type",HTMLElement)],ii.prototype,"replyButtonElement",void 0);
_.B([_.Ff("#reply-button-end"),_.k("design:type",HTMLElement)],ii.prototype,"replyButtonEndElement",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ii.prototype,"dataChange",null);_.B([_.V("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ii.prototype,"onYtCommentboxDismiss",null);
_.B([_.V("yt-service-request-sent-button-renderer"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ii.prototype,"onRequestSent",null);_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ii.prototype,"onYtNavigate",null);
_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],ii.prototype,"onYtServiceRequestSent",null);_.B([_.W("buttonTooltipPosition"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ii.prototype,"onButtonTooltipPositionChanged",null);_.B([_.V("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ii.prototype,"onYtToggleButton",null);
ii=_.B([_.L({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],ii);
_.P(ii,"ytd-comment-action-buttons-renderer",function(){if(Q2C!==void 0)return Q2C;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Q2C=p},{mode:1});var yND;var bmj=function(){return _.m.apply(this,arguments)||this};
_.E(bmj,_.m);bmj.prototype.focus=function(){_.n(this.hostElement).querySelector("#commentbox").focus()};
var IK=bmj;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],IK.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],IK.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],IK.prototype,"zeroStepChannelCreationRenderer",void 0);IK=_.B([_.L({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],IK);
_.P(IK,"ytd-comment-dialog-renderer",function(){if(yND!==void 0)return yND;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return yND=p},{mode:1});var ANk;var uIj=function(){return _.m.apply(this,arguments)||this};
_.E(uIj,_.m);var $c=uIj;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],$c.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],$c.prototype,"data",void 0);$c=_.B([_.L({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],$c);
_.P($c,"ytd-comment-inline-thumbnail-renderer",function(){if(ANk!==void 0)return ANk;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return ANk=p},{mode:1});var YSm;var w_6;var G9v=function(){var p=_.m.apply(this,arguments)||this;p.isOpen=!1;return p};
_.E(G9v,_.m);_.l=G9v.prototype;_.l.dataChanged=function(){this.isOpen=!1};
_.l.onTap=function(){this.data&&(this.data.navigationEndpoint?_.hG(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.l.focus=function(){this.JSC$13151_commentbox.focus()};
_.l.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.l.openDialog=function(){this.isOpen=!0;this.JSC$13151_commentbox.focus();this.JSC$13151_commentbox.maybeHeightChanged()};
var eh=G9v;eh.prototype.onYtCommentboxDismiss=eh.prototype.onYtCommentboxDismiss;eh.prototype.dataChanged=eh.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],eh.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],eh.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],eh.prototype,"isOpen",void 0);_.B([_.Ff("#commentbox"),_.k("design:type",Object)],eh.prototype,"JSC$13151_commentbox",void 0);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eh.prototype,"dataChanged",null);_.B([_.V("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],eh.prototype,"onYtCommentboxDismiss",null);eh=_.B([_.L({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],eh);
_.P(eh,"ytd-comment-reply-dialog-renderer",function(){if(w_6!==void 0)return w_6;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return w_6=p},{mode:1});var Vkv;var WQK=function(){return _.m.apply(this,arguments)||this};
_.E(WQK,_.m);_.R8.Object.defineProperties(WQK.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var p,x,F=(p=this.data)==null?void 0:(x=p.icon)==null?void 0:x.iconType;return F?"yt-icons:"+F.toLowerCase():null}}});
var pU=WQK;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],pU.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],pU.prototype,"data",void 0);_.B([_.H(),_.w("data.icon"),_.k("design:type",Object),_.k("design:paramtypes",[])],pU.prototype,"icon",null);pU=_.B([_.L({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],pU);
_.P(pU,"ytd-pinned-comment-badge-renderer",function(){if(Vkv!==void 0)return Vkv;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Vkv=p},{mode:1});var Hmn;var mlI={},oyj={input:!0,meta:!0,br:!0,link:!0,img:!0},x2=null;mlI.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(){x2==null&&(x2=document.createElement("tp-yt-paper-tooltip"),x2.offset=8,x2.fitToVisibleBounds=!0)},
onMouseOver_:function(p){if(p=_.uk(p.target,function(h){return h==this||h.getAttribute&&h.getAttribute("shared-tooltip-text")}.bind(this),!0)){var x=p.getAttribute("shared-tooltip-text");
if(x){var F=this,N=null;p!=this&&(p.tagName.toLowerCase()in oyj?F=p.parentElement:F=p,p.id&&(N=p.id));this.polymerController.createTooltipIfRequired_();if(x2.parentElement!=F||x2.for!=N)(0,_.$s)(x2).textContent=x,_.n(F).appendChild(x2),x2.for=N,x2.animationDelay=this.polymerController.sharedTooltipAnimationDelay,x2.position=this.polymerController.sharedTooltipPosition}}}};var F9=function(){return _.m.apply(this,arguments)||this};
_.E(F9,_.m);F9.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]]"}}}}}};
F9.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
F9.prototype.colorChanged=function(){var p,x,F,N=(p=this.data)==null?void 0:(x=p.color)==null?void 0:(F=x.basicColorPaletteData)==null?void 0:F.foregroundBodyColor;N&&(this.rgbBadgeColor=_.gX(N));_.n(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
F9.prototype.tooltipChanged=function(){var p;((p=this.data)==null?0:p.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
var Na=F9;Na.prototype.tooltipChanged=Na.prototype.tooltipChanged;Na.prototype.colorChanged=Na.prototype.colorChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Na.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Na.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(mlI.YtSharedTooltipBehavior),_.k("design:type",Object)],Na.prototype,"ytSharedTooltipBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],Na.prototype,"data",void 0);_.B([_.H({value:"#4285F4"}),_.k("design:type",String)],Na.prototype,"rgbBadgeColor",void 0);_.B([_.W("data.color"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Na.prototype,"colorChanged",null);_.B([_.W("data.tooltip"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Na.prototype,"tooltipChanged",null);
Na=_.B([_.L({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],Na);
_.P(Na,"ytd-sponsor-comment-badge-renderer",function(){if(Hmn!==void 0)return Hmn;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Hmn=p},{mode:1});var OmB;var j2b;var hL=function(){var p=_.m.apply(this,arguments)||this;p.defaultIconToFilled=!_.S("kevlar_fill_comment_chip_icon_killswitch");return p};
_.E(hL,_.m);hL.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
hL.prototype.dataChanged=function(){if(this.data){var p,x;((p=this.data.chipColorPalette)==null?0:p.backgroundColor)&&((x=this.data.chipColorPalette)==null?0:x.foregroundTitleColor)&&_.eV(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.QK(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.QK(this.data.chipColorPalette.foregroundTitleColor)});var F;((F=this.data)==null?0:F.command)?(_.eV(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.eV(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}};
hL.prototype.onTap=function(){var p;if(this.data&&(p=this.data)!=null&&p.command){var x;this.ytComponentBehavior.resolveCommand((x=this.data)==null?void 0:x.command)}};
hL.prototype.getIconSize=function(){return _.S("kevlar_fill_comment_chip_icon_killswitch")?24:12};
var lc=hL;lc.prototype.onTap=lc.prototype.onTap;lc.prototype.dataChanged=lc.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],lc.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],lc.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.C7),_.k("design:type",Object)],lc.prototype,"ironA11yKeysBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],lc.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],lc.prototype,"basePriceText",void 0);_.B([_.H(),_.k("design:type",Object)],lc.prototype,"chipIcon",void 0);_.B([_.H(),_.k("design:type",Object)],lc.prototype,"defaultIconToFilled",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],lc.prototype,"dataChanged",null);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],lc.prototype,"onTap",null);
lc=_.B([_.JZ({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],lc);
_.P(lc,"yt-pdg-comment-chip-renderer",function(){if(j2b===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;OmB===void 0&&(OmB=document.createElement("template"));var N=OmB;F.call(x,N.content.cloneNode(!0),p.content.firstChild);j2b=p}p=j2b;return p},{mode:2});var LQB=function(){var p=_.m.apply(this,arguments)||this;p.isReply=!1;p.isCreatorReply=!1;p.useSmallAvatarsEngagementPanelOnly=_.S("small_avatars_for_comments_ep");p.useSmallAvatars=_.S("small_avatars_for_comments");p.editDialog=null;p.hasPendingRequest=!1;p.linkedBadgeEl=null;p.shouldShowReadMoreInitially=!1;p.JSC$13171_spinnerEl=null;p.attachedResolver=_.GO();return p};
_.E(LQB,_.m);_.l=LQB.prototype;
_.l.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.pinnedCommentBadge":{id:"pinned-comment-badge",mapping:{pinnedCommentBadgeRenderer:"ytd-pinned-comment-badge-renderer"}},"data.sponsorCommentBadge":{id:"sponsor-comment-badge",mapping:{sponsorCommentBadgeRenderer:"ytd-sponsor-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",
mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer",commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}};
_.l.contentTextChanged=function(){var p;(p=this.expander)==null||p.reset()};
_.l.attached=function(){this.attachedResolver.resolve()};
_.l.detached=function(){this.editDialog=null};
_.l.dataChanged=function(){if(this.data&&(this.hasPendingRequest=!1,this.editDialog=null,this.linkedBadgeEl&&(this.linkedCommentBadge.removeChild(this.linkedBadgeEl),this.linkedBadgeEl=null),this.data.hiddenByDefault&&(this.hostElement.hidden=!0),this.data.actions))for(var p=0,x=this.data.actions.length;p<x;p++)this.openEditDialog(_.r(this.data.actions[p],jXk))};
_.l.hasPendingRequestChanged=function(){!this.hasPendingRequest||this.editDialog||this.JSC$13171_spinnerEl||(this.JSC$13171_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.n(this.hostElement).appendChild(this.JSC$13171_spinnerEl));this.JSC$13171_spinnerEl&&(this.JSC$13171_spinnerEl.active=this.hasPendingRequest)};
_.l.backgroundExtendedDetailsChanged=function(){var p,x;((p=this.data)==null?0:(x=p.backgroundExtendedDetails)==null?0:x.backgroundColorArgb)?(p={"--ytd-comment-paid-background-color":_.QK(this.data.backgroundExtendedDetails.backgroundColorArgb),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"},_.eV(this.hostElement,p)):_.eV(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.l.linkedCommentBadgeChanged=function(){var p=this,x;if((x=this.data)!=null&&x.linkedCommentBadge){this.linkedBadgeEl||(this.linkedBadgeEl=document.createElement("ytd-badge-supported-renderer"));this.linkedBadgeEl.topStandaloneBadge=this.data.linkedCommentBadge;this.linkedCommentBadge.appendChild(this.linkedBadgeEl);if(!_.S("disable_pause_on_linked_comment_nav"))try{var F=_.Pt();F&&F.pause()}catch(N){}this.attachedResolver.promise.then(this.afterNextRender).then(function(){var N,h=(N=_.J().resolve(_.Bw(_.j3)))==
null?void 0:N.getCurrentPage();h&&h.getScrollTop()===0&&h.setScrollTop(p.hostElement.offsetTop+p.hostElement.offsetHeight-document.documentElement.clientHeight+32)})}};
_.l.onShow=function(){_.G6("cmv",void 0,"wn_comments")};
_.l.onYtNavigate=function(p){p=p.detail.endpoint;this.openEditDialog(_.r(p,_.u5Z)||_.r(p,_.YqJ))};
_.l.onYtCommentboxDismiss=function(){this.editDialog=null;_.eV(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.l.onYtCommentboxResize=function(p){var x;(p==null?0:(x=p.detail)==null?0:x.height)&&_.eV(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":p.detail.height+"px"})};
_.l.onYtServiceRequestSent=function(p,x){p.stopPropagation();p=x==null?void 0:x.endpoint;x=_.S("enable_profile_cards_on_comments")&&(_.r(p,Mav)||_.r(p,QOB)||_.r(p,kaC)||_.r(p,_.s9)||_.r(p,_.zO));if(_.r(p,xon)||x)this.hasPendingRequest=!1;else{var F;if(_.r(p,pjb)||_.r(p,xJm)||(F=_.r(p,Ya))==null||!F.clientActions||_.r(p,pvI))this.hasPendingRequest=!0}};
_.l.onAuthorThumbnailClicked=function(){var p=this;if(_.S("enable_profile_cards_on_comments")){var x;(x=this.data)!=null&&x.authorEndpoint&&this.componentBehavior.resolveCommand(this.data.authorEndpoint,{commandController:{onSuccess:function(F,N){p.onAuthorEndpointSuccess(N)},
onServerError:function(F,N){_.no(new _.qE("Failed to resolve the command",N))}}})}};
_.l.onAuthorEndpointSuccess=function(p){if(p=p==null?void 0:p.popupCommand){this.componentBehavior.resolveCommand(p,{form:{element:this.authorThumbnail}});this.logScreenVe();p=p==null?void 0:p.clickTrackingParams;var x=_.yR();p&&x&&_.cl().graftServerVe(p,x)}};
_.l.logScreenVe=function(){_.F8(_.cl(),66557)};
_.l.onYtServiceRequestCompleted=function(){this.hasPendingRequest=!1};
_.l.openEditDialog=function(p){this.data&&p&&p.dialog&&(this.editDialog=p.dialog,this.JSC$13171_editReplyDialogContainer?this.JSC$13171_editReplyDialogContainer.openDialog():this.JSC$13171_editCommentDialogContainer&&this.JSC$13171_editCommentDialogContainer.focus())};
_.l.computeAuthorTextClass=function(p){return p.authorIsChannelOwner?"channel-owner":""};
_.l.computeIsBodyHidden=function(p,x){return!!p||x};
_.l.computeCommentStyle=function(p){return p.style?p.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.l.onYtExpanderMoreTapped=function(){var p,x,F=(p=this.data)==null?void 0:(x=p.expandButton)==null?void 0:x.buttonRenderer;F&&this.ytRendererBehavior.logExplicitClick(F)};
_.l.afterNextRender=function(){var p=this;return new Promise(function(x){_.jB(p,x)})};
_.R8.Object.defineProperties(LQB.prototype,{optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.S("web_watch_compact_comments")||_.S("optimal_reading_width_comments_ep")&&this.engagementPanel}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.voteCount)||_.L1("0")}},
replyThumbnail:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.currentUserReplyThumbnail}},
hasCreatorReply:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return!!(((p=this.data)==null?0:(x=p.creatorReply)==null?0:x.commentRenderer)||((F=this.data)==null?0:F.containsCreatorReply))}},
authorTextCommand:{configurable:!0,enumerable:!0,get:function(){var p;if(_.S("enable_profile_cards_on_comments")&&((p=this.data)==null?0:p.channelPageEndpoint)){var x;return(x=this.data)==null?void 0:x.channelPageEndpoint}var F;return(F=this.data)==null?void 0:F.authorEndpoint}},
hidePaidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null?0:p.paidCommentChipRenderer)}}});
var cy=LQB;cy.prototype.onYtExpanderMoreTapped=cy.prototype.onYtExpanderMoreTapped;cy.prototype.onYtServiceRequestCompleted=cy.prototype.onYtServiceRequestCompleted;cy.prototype.onYtServiceRequestSent=cy.prototype.onYtServiceRequestSent;cy.prototype.onYtCommentboxResize=cy.prototype.onYtCommentboxResize;cy.prototype.onYtCommentboxDismiss=cy.prototype.onYtCommentboxDismiss;cy.prototype.onYtNavigate=cy.prototype.onYtNavigate;cy.prototype.linkedCommentBadgeChanged=cy.prototype.linkedCommentBadgeChanged;
cy.prototype.backgroundExtendedDetailsChanged=cy.prototype.backgroundExtendedDetailsChanged;cy.prototype.hasPendingRequestChanged=cy.prototype.hasPendingRequestChanged;cy.prototype.dataChanged=cy.prototype.dataChanged;cy.prototype.contentTextChanged=cy.prototype.contentTextChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],cy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],cy.prototype,"componentBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],cy.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.AA.YtVisibilityBehavior),_.k("design:type",Object)],cy.prototype,"ytVisibilityBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],cy.prototype,"data",void 0);_.B([_.H({computed:"computeCommentStyle(data)",reflectToAttribute:!0}),_.k("design:type",String)],cy.prototype,"commentStyle",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],cy.prototype,"isReply",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],cy.prototype,"isCreatorReply",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],cy.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],cy.prototype,"useSmallAvatars",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],cy.prototype,"engagementPanel",void 0);
_.B([_.H({reflectToAttribute:!0}),_.w("data","engagementPanel"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],cy.prototype,"optimalReadingWidthComments",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],cy.prototype,"voteCount",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],cy.prototype,"replyThumbnail",null);_.B([_.H(),_.k("design:type",Object)],cy.prototype,"editDialog",void 0);
_.B([_.w("data","data.containsCreatorReply"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],cy.prototype,"hasCreatorReply",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],cy.prototype,"authorTextCommand",null);_.B([_.H(),_.k("design:type",Object)],cy.prototype,"hasPendingRequest",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],cy.prototype,"noActions",void 0);_.B([_.H(),_.k("design:type",Object)],cy.prototype,"linkedBadgeEl",void 0);
_.B([_.H(),_.k("design:type",Object)],cy.prototype,"shouldShowReadMoreInitially",void 0);_.B([_.Ff("ytd-expander"),_.k("design:type",Object)],cy.prototype,"expander",void 0);_.B([_.Ff("#linked-comment-badge"),_.k("design:type",HTMLElement)],cy.prototype,"linkedCommentBadge",void 0);_.B([_.Ff("#body"),_.k("design:type",HTMLElement)],cy.prototype,"body",void 0);_.B([_.Ff("#author-thumbnail > a"),_.k("design:type",HTMLElement)],cy.prototype,"authorThumbnail",void 0);
_.B([_.Ff("ytd-comment-dialog-renderer"),_.k("design:type",Object)],cy.prototype,"JSC$13171_editCommentDialogContainer",void 0);_.B([_.Ff("ytd-comment-reply-dialog-renderer"),_.k("design:type",Object)],cy.prototype,"JSC$13171_editReplyDialogContainer",void 0);_.B([_.W("data.contentText"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cy.prototype,"contentTextChanged",null);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cy.prototype,"dataChanged",null);_.B([_.W("hasPendingRequest"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cy.prototype,"hasPendingRequestChanged",null);_.B([_.W("data.backgroundExtendedDetails"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cy.prototype,"backgroundExtendedDetailsChanged",null);
_.B([_.W("data.linkedCommentBadge"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cy.prototype,"linkedCommentBadgeChanged",null);_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],cy.prototype,"onYtNavigate",null);_.B([_.V("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],cy.prototype,"onYtCommentboxDismiss",null);
_.B([_.V("yt-commentbox-resize"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],cy.prototype,"onYtCommentboxResize",null);_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],cy.prototype,"onYtServiceRequestSent",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],cy.prototype,"hidePaidCommentChipRenderer",null);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],cy.prototype,"onYtServiceRequestCompleted",null);_.B([_.V("yt-expander-more-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cy.prototype,"onYtExpanderMoreTapped",null);cy=_.B([_.L({is:"ytd-comment-renderer",disableElementRegistration:!0})],cy);
_.P(cy,"ytd-comment-renderer",function(){if(YSm!==void 0)return YSm;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-renderer"></div>\n<div id="linked-comment-badge" hidden="[[!data.linkedCommentBadge]]" class="style-scope ytd-comment-renderer"></div>\n<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-comment-renderer">\n  <div id="author-thumbnail" class="style-scope ytd-comment-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-comment-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" on-click="onAuthorThumbnailClicked" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-comment-renderer">\n    <div id="header" class="style-scope ytd-comment-renderer">\n      <div id="pinned-comment-badge" hidden="[[!data.pinnedCommentBadge]]" class="style-scope ytd-comment-renderer"></div>\n      <div id="header-author" class="style-scope ytd-comment-renderer">\n        <h3 class="style-scope ytd-comment-renderer">\n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-renderer" href$="[[computeOptionalHref_(authorTextCommand)]]" data="[[authorTextCommand]]" hidden="[[data.authorCommentBadge]]">\n            <yt-formatted-string class$="[[computeAuthorTextClass(data)]] style-scope ytd-comment-renderer" respect-lang-dir="" text="[[data.authorText]]">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-comment-renderer"></span>\n        <span id="sponsor-comment-badge" hidden="[[!data.sponsorCommentBadge]]" class="style-scope ytd-comment-renderer"></span>\n        <yt-formatted-string class="published-time-text style-scope ytd-comment-renderer" link-inherit-color="" text="[[data.publishedTimeText]]">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-comment-renderer"></span>\n      </div>\n    </div>\n    <div id="comment-content" class="style-scope ytd-comment-renderer">\n      \n      <ytd-comment-inline-thumbnail-renderer id="inline-thumbnail-renderer" data="[[data.videoThumbnail.commentVideoThumbnailRenderer]]" hidden="[[!data.videoThumbnail]]" class="style-scope ytd-comment-renderer">\n      </ytd-comment-inline-thumbnail-renderer>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-renderer">\n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[data.paidCommentChipRenderer.pdgCommentChipRenderer]]" hidden="[[hidePaidCommentChipRenderer]]" class="style-scope ytd-comment-renderer">\n      </yt-pdg-comment-chip-renderer>\n      <yt-formatted-string id="content-text" slot="content" split-lines="" text="[[data.contentText]]" user-input="" class="style-scope ytd-comment-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-comment-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-comment-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n  </div>\n    <ytd-comment-action-buttons-renderer id="action-buttons" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" reply-thumbnail="[[replyThumbnail]]" vote-count="[[voteCount]]" class="style-scope ytd-comment-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n  <div id="action-menu" class="style-scope ytd-comment-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-renderer"></div>\n\n');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return YSm=p},{mode:1});var PQl;var T7m;var ap=function(){return _.m.apply(this,arguments)||this};
_.E(ap,_.m);ap.prototype.attached=function(){var p=this;this.networkStatusManager||(this.networkStatusManager=new _.GW,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){p.onlineHandler()}))};
ap.prototype.detached=function(){var p=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){p.onlineHandler()}),delete this.networkStatusManager)};
ap.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
var Ma=ap;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ma.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Ma.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ma.prototype,"data",void 0);Ma=_.B([_.L({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Ma);
_.P(Ma,"ytd-reload-page-button-renderer",function(){if(T7m!==void 0)return T7m;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);
return T7m=p},{mode:1});var B7m={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"},RpD=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.E(RpD,_.m);_.l=RpD.prototype;_.l.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.l.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.l.computeHasBodyText=function(p){return!!p.bodyText};
_.l.computeButtons=function(p){var x=[];p.ctaButton&&x.push(p.ctaButton);p.secondaryButton&&x.push(p.secondaryButton);return x};
_.l.computeRendererStyle=function(p){return p.style?p.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():p.icon?"":"no-icon"};
_.l.getIconName=function(p,x){x=x===void 0?!1:x;if(p===void 0)return"";p=this.get("icon.iconType",p);var F;_.S("enable_hlp_client_icon_pick")?F=this.getThemedIcon(p,x):F=p;(x=B7m[F])||(x="yt-icons");return[x,F].join(":")};
_.l.getThemedIcon=function(p,x){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(p)?x?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(p)?x?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":p};
_.l.isThumbnail=function(p){return!!p.thumbnail};
_.l.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.l.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
var DY=RpD;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],DY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],DY.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],DY.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],DY.prototype,"data",void 0);
_.B([_.H({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.k("design:type",String)],DY.prototype,"rendererStyle",void 0);_.B([_.H({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.k("design:type",String)],DY.prototype,"iconName",void 0);_.B([_.H({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],DY.prototype,"thumbnail",void 0);_.B([_.H({computed:"computeButtons(data)"}),_.k("design:type",Array)],DY.prototype,"buttons",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],DY.prototype,"isDarkTheme",void 0);_.B([_.H({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],DY.prototype,"hasBodyText",void 0);DY=_.B([_.L({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],DY);
_.P(DY,"ytd-background-promo-renderer",function(){if(PQl!==void 0)return PQl;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return PQl=p},{mode:1});var k9C;var Ulk=function(){var p=_.m.apply(this,arguments)||this;p.collections=_.S("web_modern_collections_v2");return p};
_.E(Ulk,_.m);_.R8.Object.defineProperties(Ulk.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var p,x,F,N,h,c;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(p=this.data)==null?void 0:(x=p.thumbnail)==null?void 0:x.sampledThumbnailColor,vibrantColorPalette:(F=this.data)==null?void 0:(N=F.thumbnail)==null?void 0:N.vibrantColorPalette,darkColorPalette:(h=this.data)==null?void 0:(c=h.thumbnail)==null?void 0:c.darkColorPalette,experimentEnabled:this.collections}}}});
var fU=Ulk;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],fU.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],fU.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],fU.prototype,"collections",void 0);_.B([_.w("data","collections"),_.k("design:type",Object),_.k("design:paramtypes",[])],fU.prototype,"collectionStack",null);fU=_.B([_.L({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],fU);
_.P(fU,"ytd-compact-station-renderer",function(){if(k9C!==void 0)return k9C;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return k9C=p},{mode:1});var iml;var I4n=function(){var p=_.m.apply(this,arguments)||this;p.isRichGrid=!1;return p};
_.E(I4n,_.m);I4n.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
var KU=I4n;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],KU.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],KU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],KU.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],KU.prototype,"isRichGrid",void 0);KU=_.B([_.L({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],KU);
_.P(KU,"ytd-grid-channel-renderer",function(){if(iml!==void 0)return iml;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return iml=p},{mode:1});var $lJ;var epb=function(){return _.m.apply(this,arguments)||this};
_.E(epb,_.m);var qa=epb;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],qa.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],qa.prototype,"data",void 0);qa=_.B([_.L({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],qa);
_.P(qa,"ytd-grid-movie-playlist-renderer",function(){if($lJ!==void 0)return $lJ;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return $lJ=p},{mode:1});var pRZ;var ZY=function(){var p=_.m.apply(this,arguments)||this;p.downloadProgress=0;p.transferState="TRANSFER_STATE_UNKNOWN";p.modernButtons=_.S("web_modern_buttons");p.useModernCollectionsV2=_.S("web_modern_collections_v2");return p};
_.E(ZY,_.m);ZY.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
ZY.prototype.configureRendererStamper=function(){return{"data.menu":dK}};
ZY.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
ZY.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.S("woffle_playlist_renderer_killswitch")){var p,x=E6z(this.entityInfo,this.transferState,this.downloadProgress,(p=this.data)==null?void 0:p.playlistId,this.isOnline);p=x.viewPlaylistText;var F=x.badges;x=x.thumbnailOverlays;this.isDownloads=!!p||!!F;this.set("data.viewPlaylistText",p);F&&F.length>0&&this.set("data.badges",F);x&&x.length>0&&this.set("data.thumbnailOverlays",
x)}};
_.R8.Object.defineProperties(ZY.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 p;return!((p=this.data)==null?0:p.menu)}}});
var tL=ZY;tL.prototype.transferStateChanged=tL.prototype.transferStateChanged;tL.prototype.dataChanged=tL.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],tL.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.HL),_.k("design:type",Object)],tL.prototype,"ytdLockupBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],tL.prototype,"ytdReduxBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],tL.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H({selector:_.WeZ,selectorArgs:["data.playlistId"]}),_.k("design:type",Object)],tL.prototype,"downloadProgress",void 0);_.B([_.H({selector:_.YO,selectorArgs:["data.playlistId"]}),_.k("design:type",Object)],tL.prototype,"transferState",void 0);_.B([_.H({selector:Vad,selectorArgs:["data.playlistId"]}),_.k("design:type",Object)],tL.prototype,"entityInfo",void 0);
_.B([_.H({selector:bbr}),_.k("design:type",Boolean)],tL.prototype,"isOnline",void 0);_.B([_.H(),_.k("design:type",Object)],tL.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],tL.prototype,"downloadRenderData",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],tL.prototype,"modernButtons",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],tL.prototype,"isDownloads",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],tL.prototype,"useModernCollectionsV2",void 0);_.B([_.w("transferState"),_.H({reflectToAttribute:!0}),_.k("design:type",String),_.k("design:paramtypes",[])],tL.prototype,"downloadState",null);_.B([_.w("data"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],tL.prototype,"menuHidden",null);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tL.prototype,"dataChanged",null);_.B([_.cT("transferState","downloadProgress","isOnline"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tL.prototype,"transferStateChanged",null);tL=_.B([_.L({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],tL);
_.P(tL,"ytd-grid-playlist-renderer",function(){if(pRZ!==void 0)return pRZ;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return pRZ=p},{mode:1});var xXk;var Fa6=function(){var p=_.m.apply(this,arguments)||this;p.collections=_.S("web_modern_collections_v2");return p};
_.E(Fa6,_.m);Fa6.prototype.configureRendererStamper=function(){return{"data.menu":dK,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.R8.Object.defineProperties(Fa6.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var p,x,F,N,h,c;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(p=this.data)==null?void 0:(x=p.thumbnail)==null?void 0:x.sampledThumbnailColor,vibrantColorPalette:(F=this.data)==null?void 0:(N=F.thumbnail)==null?void 0:N.vibrantColorPalette,darkColorPalette:(h=this.data)==null?void 0:(c=h.thumbnail)==null?void 0:c.darkColorPalette,experimentEnabled:this.collections}}}});
var dE=Fa6;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],dE.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],dE.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.u(_.HL),_.k("design:type",Object)],dE.prototype,"ytdLockupBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],dE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],dE.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],dE.prototype,"collections",void 0);_.B([_.w("data","collections"),_.k("design:type",Object),_.k("design:paramtypes",[])],dE.prototype,"collectionStack",null);dE=_.B([_.L({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],dE);
_.P(dE,"ytd-grid-radio-renderer",function(){if(xXk!==void 0)return xXk;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return xXk=p},{mode:1});var NZC;var hkB=function(){var p=_.m.apply(this,arguments)||this;p.useModernCollectionsV2=_.S("web_modern_collections_v2");return p};
_.E(hkB,_.m);hkB.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
hkB.prototype.computeNavigationEndpoint=function(p){return An6(p==null?void 0:p.navigationEndpoint)};
var vy=hkB;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],vy.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],vy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.HL),_.k("design:type",Object)],vy.prototype,"ytdLockupBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],vy.prototype,"data",void 0);
_.B([_.H({computed:"computeNavigationEndpoint(data)"}),_.k("design:type",Object)],vy.prototype,"computedNavigationEndpoint",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],vy.prototype,"useModernCollectionsV2",void 0);vy=_.B([_.L({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],vy);
_.P(vy,"ytd-grid-show-renderer",function(){if(NZC!==void 0)return NZC;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return NZC=p},{mode:1});var lwb;_.JL=function(p){this.playerClient=p};
_.ciD=function(p,x,F){F=F===void 0?{}:F;return p.playerClient.setOption("ad",x,F)};
_.JL.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.JL.prototype.executeCommand=function(p,x){this.getOptions().includes("executeCommand")?_.ciD(this,"executeCommand",{command:p,layoutId:x}):_.hI("Calling executeCommand when adModule is not loaded")};var awn=function(){return _.m.apply(this,arguments)||this};
_.E(awn,_.m);awn.prototype.getLayoutId=function(){var p=_.A9("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.layoutId:null};
awn.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var p=_.Pt(),x=this.getLayoutId(),F=this.data.clickthroughEndpoint;p&&x&&_.S("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?p.getPlayerPromise().then(function(N){(new _.JL(N)).executeCommand(F,x)}):_.hG(this.hostElement,"yt-navigate",{endpoint:F})}};
var CU=awn;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],CU.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],CU.prototype,"data",void 0);CU=_.B([_.L({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],CU);
_.P(CU,"ytd-shopping-companion-item-renderer",function(){if(lwb!==void 0)return lwb;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return lwb=p},{mode:1});var Mxn;var DXB=function(){var p=_.m.apply(this,arguments)||this;p.isExpandableContent=!1;return p};
_.E(DXB,_.m);_.R8.Object.defineProperties(DXB.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return((p=this.data)==null?void 0:p.price)||((x=this.data)==null?void 0:(F=x.dealsData)==null?void 0:F.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var p,x;if((p=this.data)!=null&&p.dealsData&&((x=this.data)==null||!x.priceReplacementText)){p=this.data.dealsData;var F,N,h;return((F=p.salesData)==null?void 0:F.originalPrice)||((N=p.priceDropData)==null?void 0:N.referencePrice)||((h=p.promotionData)==null?void 0:h.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var p,x;return(p=this.data)==null?void 0:(x=p.dealsData)==null?void 0:x.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
var SR=DXB;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],SR.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],SR.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],SR.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],SR.prototype,"isExpandableContent",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],SR.prototype,"showCta",null);
_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],SR.prototype,"ctaText",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],SR.prototype,"hasPriceTopPosition",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],SR.prototype,"hasPriceBottomPosition",null);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],SR.prototype,"useNewStyle",null);
_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],SR.prototype,"showPriceReplacementText",null);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],SR.prototype,"priceValue",null);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],SR.prototype,"showDeal",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],SR.prototype,"showAffiliateDisclaimer",null);
_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],SR.prototype,"useSaleStyle",null);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],SR.prototype,"useFromBrandCtaStyle",null);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],SR.prototype,"useFromVendorCtaStyle",null);
_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],SR.prototype,"useShoppingCollectionCtaStyle",null);SR=_.B([_.L({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],SR);
_.P(SR,"ytd-vertical-product-card-renderer",function(){if(Mxn!==void 0)return Mxn;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Mxn=p},{mode:1});var fwJ;var KaB=function(){return _.m.apply(this,arguments)||this};
_.E(KaB,_.m);KaB.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
var rE=KaB;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],rE.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],rE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.HL),_.k("design:type",Object)],rE.prototype,"ytdLockupBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],rE.prototype,"data",void 0);rE=_.B([_.L({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],rE);
_.P(rE,"ytd-grid-movie-renderer",function(){if(fwJ!==void 0)return fwJ;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return fwJ=p},{mode:1});var qlj;var Z3C=function(){var p=_.m.apply(this,arguments)||this;p.rounded=!0;p.itemStyle="small-item";return p};
_.E(Z3C,_.m);Z3C.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var p,x,F,N,h=(x=_.r((p=this.data)==null?void 0:p.buttonCommand,_.psl))==null?void 0:(F=x.item)==null?void 0:(N=F.notificationTextRenderer)==null?void 0:N.successResponseText;h&&_.Dwp(this.hostElement,h)}};
_.R8.Object.defineProperties(Z3C.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.data)==null?void 0:p.isProductPlaceholder)!==void 0&&((x=this.data)==null?void 0:x.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
var EY=Z3C;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],EY.prototype,"ytRendererBehavior",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],EY.prototype,"rounded",void 0);_.B([_.H(),_.k("design:type",Object)],EY.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],EY.prototype,"itemStyle",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],EY.prototype,"hasPrice",null);
_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],EY.prototype,"hasPriceReplacementText",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],EY.prototype,"hasAdditionalFeesText",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],EY.prototype,"hasAffiliateDisclaimer",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],EY.prototype,"isProductPlaceholder",null);
_.B([_.H(),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],EY.prototype,"hideOpenInNewIcon",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],EY.prototype,"ariaLabel",null);EY=_.B([_.L({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],EY);
_.P(EY,"ytd-merch-shelf-item-renderer",function(){if(qlj!==void 0)return qlj;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return qlj=p},{mode:1});var txJ=_.mO(function(p){var x=_.oc();_.oC(x,function(){return p.data().rendererContext});
return _.Z("button-card-view-model",{el:x,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return p.data().title},
role:"button"},_.Z(_.qC,{model:{}}),_.Z("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.Z("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.Z(_.D9,{cond:function(){return p.data().image},
then:function(F){return _.Z(_.VE,{data:F,alt:function(){var N;return(N=p.data().title)!=null?N:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.Z("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return p.data().title})))},"Ua");_.S("web_button_view_model_wcw_registration_killswitch")||_.o7(txJ,"button-card-view-model",{props:{data:_.G2}});_.o7(_.mO(function(p){p=_.Vg(p,{className:void 0});var x=p.data;p=p.className;var F=_.Kn(function(){return x().onTapCommand},void 0,"NprDr");
return _.Z("ytd-shopping-item-card",{class:_.$L("ytdShoppingItemCardHost",p)},_.Z(_.fQ,{command:F,className:"ytdShoppingItemCardHostLink"},_.Z("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.Z(_.Es,{data:function(){return x().thumbnailViewModel}},{thumbnailViewModel:function(N){return _.Z(hK,{data:N.data,
aspectRatio:3})}})),_.Z("div",null,_.Z("p",{class:"ytdShoppingItemCardHostItemTitle"},_.Z(_.KQ,{text:function(){return x().itemTitle}})),_.Z("p",{class:"ytdShoppingItemCardHostPrice"},_.Z(_.KQ,{text:function(){return x().priceOrStatus}})))))},"Va"),"ytd-shopping-item-card",{props:{data:_.G2,
className:_.G2}});var lW=null,fPE={};var ZGr="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(" "),X9={},t2w=(X9.FEwhat_to_watch="home",X9.FEhashtag="hashtag",X9.FEtrending="trending",X9.FEhistory="history",X9.SPunlimited="premium",X9.FEmemberships_and_purchases="paid_memberships",X9.SPredeem_code="redeem",X9.SPverify_location="locate",X9.SPminor_moment="minor_moment",
X9.FEmini_app_container="mini_app",X9.FEnews_destination="news",X9.SPopen_in_app="open_in_app",X9.FEexplore="explore",X9.FEsubscriptions="subscriptions",X9.FEsfv_audio_pivot="sfv_audio_pivot",X9.FEplaylist_aggregation="playlist_aggregation",X9);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");_.qt("init");var rVM=_.JR({badgeViewModel:P9p}),JVM=function(){},dX6=_.xp(g7d),v0K=_.mO(function(p){var x=_.Kn(function(){var F=p.data().entityId;
return F?F.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"oz73f");
return _.Z("ytm-shorts-lockup-view-model-v2",{class:_.$L("shortsLockupViewModelHost",p.className)},_.Z(_.o7j,{contentId:x,aspectRatio:function(){var F;if(((F=p.aspectRatio)==null?void 0:F.call(p))===1)return 1;var N;return((N=p.aspectRatio)==null?void 0:N.call(p))===2?2:4}},function(){return _.Z(dX6,Object.assign({},p))}))},"Wa");
_.iK(g7d);_.iK(Sn6);_.iK(XAE);_.iK(QYE);_.iK(E7J);_.o7(v0K,"ytm-shorts-lockup-view-model-v2",{props:{data:_.mJ,inlineMetadata:_.mJ,aspectRatio:_.mJ,scrimStyle:_.mJ,className:_.mJ,useDefaultStyle:_.mJ}});var Jib=16/9*210,gE=function(){var p=_.m.apply(this,arguments)||this;p.isExpandableContent=!1;p.hideShelfHeader=!1;p.engagementPanel=!1;p.buttonClasses=["arrow"];p.isSearch=!1;p.disableScrollEventListener=!1;p.containsLockup=!1;p.overrideArrowPositionForProductCard=!1;p.overrideArrowPositionForShoppingItemCard=!1;p.overrideArrowPositionForReelItems=!1;p.overrideArrowPositionForGridMovie=!1;p.overrideArrowPositionToCenter=!1;p.isSearchPostShelf=!1;p.overrideArrowPositionForMixedShelf=!1;p.overrideArrowPositionForMixedShelfShortsOnly=
!1;p.hasBigThumbsReelItems=!1;p.shouldUseMixedListHeight=!1;p.shouldUseShortsListHeight=!1;p.gridVideoWidth=0;p.isSearchVodShelf=!1;p.disableWheelScroll=!1;p.sizing="COMPACT";p.shortsLockupAspectRatio=0;return p};
_.E(gE,_.m);_.l=gE.prototype;
_.l.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"yt-horizontal-list-renderer lockup",containerType:4},properties:{force16By9ThumbnailAspectRatio:"[[data.force16By9ThumbnailAspectRatio]]",sizing:"[[sizing]]"}},backgroundPromoRenderer:"ytd-background-promo-renderer",compactStationRenderer:"ytd-compact-station-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",shoppingItemCardViewModel:{component:"ytd-shopping-item-card",
params:{className:"yt-horizontal-list-renderer"}},gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]",width:"[[gridVideoWidth]]"}},merchShelfItemRenderer:"ytd-merch-shelf-item-renderer",shoppingCompanionCarouselItemRenderer:"ytd-shopping-companion-item-renderer",displayAdRenderer:"ytd-display-ad-renderer",
commentRenderer:"ytd-comment-renderer",compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",postRenderer:"ytd-post-renderer",reelItemRenderer:{component:"ytd-reel-item-renderer",properties:{isSearch:"[[isSearch]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",params:{className:"yt-horizontal-list-renderer"},properties:{aspectRatio:"[[shortsLockupAspectRatio]]"}},sharedPostRenderer:"ytd-shared-post-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",
properties:{isExpandableContent:"[[isExpandableContent]]"}},buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonCardViewModel:{component:"button-card-view-model"}}},"data.previousButton":{id:"left-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},classListBinding:"[[buttonClasses]]"}},initialRenderPriority:0,waitForSignal:"eocs"},"data.nextButton":{id:"right-arrow",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"},classListBinding:"[[buttonClasses]]"}}}}};
_.l.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.S("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.l.computeInitialCountNumber=function(p){if(!p)return 6;var x=p.items.some(function(c){return!!c.topicRecommendationsChipRenderer}),F=p.items.some(function(c){return!!c.displayAdRenderer}),N=this.computeShouldListItemsHaveEqualHeight(p),h=p.items.some(function(c){return!!c.gridPlaylistRenderer});
p=p.items.some(function(c){return!!c.shoppingItemCardViewModel});
return x?9:F?8:h||N?10:p?7:6};
_.l.computeContainsPost=function(p){return!!p&&!!p.items&&p.items.some(function(x){return!!x.postRenderer})};
_.l.computeContainsLockup=function(){if(_.S("web_horizontal_list_lockup_arrow_killswitch"))return!1;var p,x;return(p=this.data)==null?void 0:(x=p.items)==null?void 0:x.some(function(F){return!!F.lockupViewModel})};
_.l.maybeUpdateLockupAspectRatio=function(){var p,x;if(this.computeContainsLockup()&&((p=this.data)==null?0:(x=p.items)==null?0:x.length)){var F;p=RXk((F=this.data.items[0].lockupViewModel)==null?void 0:F.contentType,this.data.force16By9ThumbnailAspectRatio);F=uSp(p);F=this.computeLockupWidth()/F;_.eV(this.hostElement,{"--yt-horizontal-list-content-height":F+"px"})}};
_.l.computeOverrideArrowPositionForProductCard=function(p){if(this.isExpandableContent)return!1;var x;return!!(p==null?0:(x=p.items)==null?0:x.some(function(F){return!!F.verticalProductCardRenderer}))};
_.l.computeOverrideArrowPositionForShoppingItemCard=function(p){var x;return!!(p==null?0:(x=p.items)==null?0:x.some(function(F){return!!F.shoppingItemCardViewModel}))};
_.l.computeOverrideArrowPositionForReelItemRenderer=function(p){return this.containsReelItemRenderer(p)};
_.l.computeHasBigThumbsReelItems=function(p,x){return p&&this.containsReelItemRenderer(x)};
_.l.computeShouldListItemsHaveEqualHeight=function(p){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(p==null?void 0:p.itemSizeConstraint)};
_.l.computeShouldListItemsHaveShortsHeight=function(p){return this.computeShouldListItemsHaveEqualHeight(p)&&!this.containsGridVideoRenderer(p)};
_.l.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.l.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.l.containsReelItemRenderer=function(p){var x;return!!(p==null?0:(x=p.items)==null?0:x.some(function(F){return!(!F.reelItemRenderer&&!F.shortsLockupViewModel)}))};
_.l.containsGridVideoRenderer=function(p){var x;return!!(p==null?0:(x=p.items)==null?0:x.some(function(F){return!!F.gridVideoRenderer||!!F.lockupViewModel}))};
_.l.computeContainsGridMovieRenderer=function(p){var x;return!!(p==null?0:(x=p.items)==null?0:x.some(function(F){return!!F.gridMovieRenderer}))};
_.l.computeOverrideArrowPositionToCenter=function(p){return this.computeIsSearchPostShelf(p)};
_.l.computeIsSearchPostShelf=function(p){var x;return!!(p==null?0:(x=p.items)==null?0:x.some(function(F){var N,h;return((h=(N=F.postRenderer)==null?void 0:N.surface)!=null?h:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.l.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(p){var x;return!!(p==null?0:(x=p.items)==null?0:x.some(function(F){var N,h,c;return((c=(N=F.backgroundPromoRenderer)==null?void 0:(h=N.style)==null?void 0:h.value)!=null?c:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.l.computeIsSearchVodShelf=function(p,x){return p&&this.containsGridVideoRenderer(x)};
_.l.computeDisableWheelScroll=function(p,x){return this.computeIsSearchVodShelf(p,x)};
_.l.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.l.computeShortsLockupAspectRatio=function(p){return p&&_.S("web_shorts_2_by_3_lockups_no_search")&&!_.S("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.l.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.eV(this.hostElement,{"--ytd-reel-item-thumbnail-height":Jib+"px"})};
gE.prototype.dataChanged=gE.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],gE.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],gE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.$k.YtdHorizontalListBehavior),_.k("design:type",Object)],gE.prototype,"ytdHorizontalListBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],gE.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],gE.prototype,"isExpandableContent",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],gE.prototype,"hideShelfHeader",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],gE.prototype,"engagementPanel",void 0);_.B([_.H(),_.k("design:type",Array)],gE.prototype,"buttonClasses",void 0);_.B([_.H(),_.k("design:type",Object)],gE.prototype,"isSearch",void 0);
_.B([_.H(),_.k("design:type",Object)],gE.prototype,"disableScrollEventListener",void 0);_.B([_.H({computed:"computeInitialCountNumber(data)"}),_.k("design:type",Number)],gE.prototype,"initialCount",void 0);_.B([_.H({computed:"computeContainsPost(data)"}),_.k("design:type",Boolean)],gE.prototype,"supportComponentResize",void 0);_.B([_.H({computed:"computeContainsPost(data)"}),_.k("design:type",Boolean)],gE.prototype,"containsPost",void 0);
_.B([_.H({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.k("design:type",Object)],gE.prototype,"containsLockup",void 0);_.B([_.H({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],gE.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.B([_.H({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.k("design:type",Object)],gE.prototype,"overrideArrowPositionForProductCard",void 0);_.B([_.H({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.k("design:type",Object)],gE.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.B([_.H({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.k("design:type",Object)],gE.prototype,"overrideArrowPositionForReelItems",void 0);_.B([_.H({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.k("design:type",Object)],gE.prototype,"overrideArrowPositionForGridMovie",void 0);
_.B([_.H({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.k("design:type",Object)],gE.prototype,"overrideArrowPositionToCenter",void 0);_.B([_.H({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.k("design:type",Object)],gE.prototype,"isSearchPostShelf",void 0);_.B([_.H({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.k("design:type",Object)],gE.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.B([_.H({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.k("design:type",Object)],gE.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.B([_.H({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.k("design:type",Object)],gE.prototype,"hasBigThumbsReelItems",void 0);
_.B([_.H({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.k("design:type",Object)],gE.prototype,"shouldUseMixedListHeight",void 0);_.B([_.H({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.k("design:type",Object)],gE.prototype,"shouldUseShortsListHeight",void 0);_.B([_.H({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.k("design:type",Object)],gE.prototype,"gridVideoWidth",void 0);
_.B([_.H({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.k("design:type",Object)],gE.prototype,"isSearchVodShelf",void 0);_.B([_.H({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.k("design:type",Object)],gE.prototype,"disableWheelScroll",void 0);_.B([_.H({computed:"computeSizing(isSearch)"}),_.k("design:type",Object)],gE.prototype,"sizing",void 0);
_.B([_.H({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.k("design:type",Object)],gE.prototype,"shortsLockupAspectRatio",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gE.prototype,"dataChanged",null);
_.P(gE,"yt-horizontal-list-renderer",function(){if(q3b===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);q3b=p}p=q3b;return p},{mode:1});var Csk;var Sl6=[10,12,14,16,18,20,24,28,32,36],rim=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],E0j=function(){var p=_.m.apply(this,arguments)||this;p.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";p.hideOverflow=!1;p.useRoboto=!1;p.fontClass="";p.overflown=!1;p.actionMap={"yt-window-resized":"resize"};return p};
_.E(E0j,_.m);_.l=E0j.prototype;
_.l.attached=function(){var p=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();_.jB(this,function(){p.resize()});
if(!_.ML){var x,F,N;(x=document)==null||(F=x.fonts)==null||(N=F.ready)==null||N.then(function(){p.resize()})}};
_.l.dataChanged=function(){this.resize()};
_.l.guideIsExpandedChanged=function(){this.resize()};
_.l.resize=function(){if(this.textNode.offsetWidth||this.textNode.offsetWidth){this.overflown&&(this.overflown=!1,this.textNode.classList.remove("overflown"));this.textNode.style.visibility="hidden";var p=this.getMaxNumLines(),x=this.getMinFont(),F=this.getMaxFont(),N=this.useRoboto?Sl6:rim;for(N=N.filter(function(c){return c<=F&&c>=x});N.length>1;){var h=Math.floor(N.length/2);
this.updateFontSize(N[h]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=p)N=N.slice(h,N.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>p)N=N.slice(0,h);else break}this.updateFontSize(N[N.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(p)}};
_.l.handleOverflow=function(p){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>p&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",p.toString()))};
_.l.updateFontSize=function(p){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+p;this.textNode.classList.add(this.fontClass)};
_.l.getMaxFont=function(){var p=this.useRoboto?Sl6:rim;p=p[p.length-1];return this.maxFontSize&&this.maxFontSize<=p?this.maxFontSize:p};
_.l.getMinFont=function(){var p=(this.useRoboto?Sl6:rim)[0];return this.minFontSize&&this.minFontSize>=p?this.minFontSize:p};
_.l.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.l.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.l.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.Pi(this.text).split("\n").length-1:Infinity};
_.l.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Fh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
var Qw=E0j;Qw.prototype.guideIsExpandedChanged=Qw.prototype.guideIsExpandedChanged;Qw.prototype.dataChanged=Qw.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Qw.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],Qw.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Qw.prototype,"actionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Qw.prototype,"text",void 0);
_.B([_.H(),_.k("design:type",String)],Qw.prototype,"fontFamily",void 0);_.B([_.H(),_.k("design:type",Number)],Qw.prototype,"maxWidth",void 0);_.B([_.H(),_.k("design:type",Number)],Qw.prototype,"maxHeight",void 0);_.B([_.H(),_.k("design:type",Number)],Qw.prototype,"maxFontSize",void 0);_.B([_.H(),_.k("design:type",Number)],Qw.prototype,"minFontSize",void 0);_.B([_.H(),_.k("design:type",Number)],Qw.prototype,"maxLines",void 0);_.B([_.H(),_.k("design:type",Object)],Qw.prototype,"hideOverflow",void 0);
_.B([_.H({selector:_.gxp}),_.k("design:type",Boolean)],Qw.prototype,"guideIsExpanded",void 0);_.B([_.Ff("#container"),_.k("design:type",HTMLElement)],Qw.prototype,"containerNode",void 0);_.B([_.Ff("#text"),_.k("design:type",HTMLElement)],Qw.prototype,"textNode",void 0);_.B([_.cT("text"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qw.prototype,"dataChanged",null);
_.B([_.cT("guideIsExpanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qw.prototype,"guideIsExpandedChanged",null);Qw=_.B([_.L({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],Qw);
_.P(Qw,"yt-dynamic-sizing-formatted-string",function(){if(Csk!==void 0)return Csk;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Csk=p},{mode:1});var XRn;_.g0j=function(p){_.x$.call(this,p)};
_.E(_.g0j,_.x$);var Q6n=function(p){_.x$.call(this,p)};
_.E(Q6n,_.g0j);var z8=function(){return _.m.apply(this,arguments)||this};
_.E(z8,_.m);z8.prototype.onTapSuspendedChannel=function(){var p;if((p=this.data)!=null&&p.serviceEndpoint){var x,F;(p=(F=_.r((x=this.data)==null?void 0:x.serviceEndpoint,_.Gj))==null?void 0:F.url)?_.yK(p,void 0,void 0,window.top):(x=new Q6n("Did not handle suspended account tap. No appealUrl."),_.zj(x))}else x=new Q6n("Did not handle suspended account tap. No serviceEndpoint."),_.zj(x)};
z8.prototype.onTap=function(){var p=this,x=_.cl(),F,N=(F=_.lz(x,{veType:7116}))!=null?F:void 0;_.A0(x,{visualElement:N});_.sb();this.saveRoleText();var h;if((h=this.data)==null?0:h.youtubeSuspended)this.onTapSuspendedChannel();else{var c=!1,M,f;(x=(f=_.r((M=this.data)==null?void 0:M.serviceEndpoint,_.cYI))==null?void 0:f.supportedTokens)&&x.forEach(function(K){if(K.accountSigninToken)if(c=!0,p.onAccountItemTap)p.onAccountItemTap(K.accountSigninToken.signinUrl);else _.yK(K.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!c){if(M=this.get("serviceEndpoint",this.data))c=!0,this.ytComponentBehavior.resolveCommand(M);c||_.s$(new Q6n("Did not handle account switch tap. No token."))}}};
z8.prototype.saveRoleText=function(){if(this.data){var p=this.data,x=p.channelDelegationRole;if(x){var F,N=(F=_.r(p==null?void 0:p.serviceEndpoint,_.cYI))==null?void 0:F.supportedTokens;if(!N){var h,c,M,f;N=(h=_.r(p==null?void 0:p.serviceEndpoint,_.X3))==null?void 0:(c=h.popup)==null?void 0:(M=c.confirmDialogRenderer)==null?void 0:(f=M.confirmButton)==null?void 0:f.buttonRenderer;var K;N=(K=_.r(N==null?void 0:N.command,_.Zx))==null?void 0:K.commands;if(!N)return;var t;N=(t=_.r(N[1],_.cYI))==null?
void 0:t.supportedTokens}if(N){K=void 0;t=_.a(N);for(N=t.next();!N.done;N=t.next())if(N=N.value,N.datasyncIdToken){K=N.datasyncIdToken.datasyncIdToken;break}if(K){var d;a:{if(_.lVM()&&(t=_.a2$(K+"::pom"))){t=new fJ(t);break a}t=void 0}(d=t)==null||d.set("role_text",x);if((CpE?CpE:window.location).href.indexOf("studio")!==-1&&(d=c7k())){t=d.src?(new URL(d.src)).origin:"*";var v;(v=d.contentWindow)==null||v.postMessage({action:"save_pom_role",datasyncId:K,roleText:x},t)}}}}}};
_.R8.Object.defineProperties(z8.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var p,x,F=(p=this.data)==null?void 0:(x=p.accountPhoto)==null?void 0:x.thumbnails;return F&&F.length>0&&(F[0].height===36||F[0].height===48)?F[0].height:40}}});
var sY=z8;sY.prototype.onTap=sY.prototype.onTap;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],sY.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],sY.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],sY.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!1}),_.k("design:type",Function)],sY.prototype,"onAccountItemTap",void 0);
_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],sY.prototype,"enableRingForActiveAccount",null);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],sY.prototype,"thumbnailSize",null);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sY.prototype,"onTap",null);sY=_.B([_.L({is:"ytd-account-item-renderer",disableElementRegistration:!0})],sY);
_.P(sY,"ytd-account-item-renderer",function(){if(XRn!==void 0)return XRn;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return XRn=p},{mode:1});var zkD;var s6B;var n0B;var yiZ;var b36=function(){var p=_.m.apply(this,arguments)||this;p.richItemMinWidth=_.Ud("wn_grid_min_item_width",310);p.isShorts=!1;p.isWatchNext=!1;p.isExploreHub=!1;return p};
_.E(b36,_.m);_.R8.Object.defineProperties(b36.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var p=[],x=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.eV(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var F;if(((F=this.data)==null?0:F.rows)&&x)for(x*=this.data.rows,F=0;F<x;F++)p.push({});return p}}});
var nU=b36;_.B([_.u(_.nl),_.k("design:type",Object)],nU.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],nU.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,selector:_.yr,value:3}),_.k("design:type",Number)],nU.prototype,"itemsPerRow",void 0);_.B([_.H({selector:_.Xjd,value:6}),_.k("design:type",Number)],nU.prototype,"slimItemsPerRow",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Number)],nU.prototype,"richItemMinWidth",void 0);_.B([_.H({reflectToAttribute:!0,selector:_.n1}),_.k("design:type",Boolean)],nU.prototype,"miniMode",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],nU.prototype,"isShorts",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],nU.prototype,"isWatchNext",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],nU.prototype,"isExploreHub",void 0);
_.B([_.w("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.k("design:type",Array),_.k("design:paramtypes",[])],nU.prototype,"cardItems",null);nU=_.B([_.L({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],nU);
_.Ail=_.kJ()(nU,"ytd-ghost-grid-renderer",function(){if(yiZ===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);yiZ=p}p=yiZ;return p},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.o7(_.mO(function(p){var x=_.Vg(p,{numberOfComments:3}).numberOfComments,F=_.Vg(p,{isInitialLoad:!1}).isInitialLoad,N=_.g5(_.A$),h=function(){return Math.min(Number(x==null?void 0:x())||20,20)};
return _.Z("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.Z(_.D9,{cond:function(){return(N==null?void 0:N())&&(F==null?void 0:F())},
then:function(){return _.Z("div",{class:"ytGhostCommentsComments"},_.Z("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.Z("div",{class:_.$L("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.Z("div",{class:_.$L("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.Z("div",{class:"ytGhostCommentsGhostCard"},_.Z("div",{class:"ytGhostCommentsAvatar"},_.Z("div",{class:"ytGhostCommentsCircle"})),_.Z("div",{class:"ytGhostCommentsComments"},_.Z("div",{class:"ytGhostCommentsMeta"},
_.Z("div",{class:_.$L("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.Z("div",{class:_.$L("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.Z("div",{class:"ytGhostCommentsComments"},_.Z(_.ft,{each:function(){return Array((h==null?void 0:h())||3)}},function(){return _.Z("div",{class:"ytGhostCommentsGhostCard"},_.Z("div",{class:"ytGhostCommentsAvatar"},_.Z("div",{class:"ytGhostCommentsCircle"})),_.Z("div",{class:"ytGhostCommentsHost"},_.Z("div",{class:"ytGhostCommentsMeta"},
_.Z("div",{class:_.$L("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.Z("div",{class:_.$L("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.Z("div",{class:_.$L("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.Z("div",{class:"ytGhostCommentsGhostLikeDislike"},_.Z("div",{class:_.$L("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.Z("div",{class:_.$L("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"Xa"),"yt-ghost-comments",{props:{numberOfComments:_.G2,
isInitialLoad:_.G2}});_.Ei("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var uum=function(){var p=_.m.apply(this,arguments)||this;p.isOverridable=!1;p.spinnerActive=!1;p.showButton=!1;p.isCommentsSection=!1;p.isShortsGrid=!1;p.isShortsPage=!1;p.isWatchPage=!1;p.ghostCardExperimentEnabled=_.S("show_ghost_comments_shorts_watch")||_.S("show_ghost_comments_desktop_watch");p.originalShowButton=!1;p.endOfList=!1;return p};
_.E(uum,_.m);_.l=uum.prototype;_.l.resetIntersectionObserver=function(){var p;(p=this.observer)==null||p.disconnect();this.observer=void 0};
_.l.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var p,x;((p=this.data)==null?void 0:p.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((x=this.data)==null?0:x.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.l.initializeIntersectionObserver=function(){var p=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(x){x=_.a(x);for(var F=x.next();!F.done;F=x.next())F.value.isIntersecting&&(p.triggerContinuation(),p.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.l.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostEngagementPanelRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.l.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var p;((p=this.data)==null?0:p.continuationEndpoint)&&(p=_.r(this.data.continuationEndpoint,_.zO))&&this.ytdReduxBehavior.dispatch(_.F4({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:p}}))};
_.l.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.l.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.l.onServiceRequestCompleted=function(p,x){if(!_.S("kevlar_hide_spinner_on_empty_continuation_killswitch")){var F;(F=x.actions)!=null&&F.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.l.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.l.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.l.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.l.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var p=3;if(this.isShortsPage){var x,F,N;p=Math.floor(((((x=this.hostElement)==null?void 0:(F=x.parentElement)==null?void 0:(N=F.parentElement)==null?void 0:N.scrollHeight)||108)-108)/108);p=this.isInitialLoad?Math.max(p,3):3}x=[].concat(_.se(this.hostElement.querySelectorAll("yt-ghost-comments")));x=_.a(x);for(F=x.next();!F.done;F=x.next())F=F.value,F.numberOfComments=p,F.isInitialLoad=this.isInitialLoad}};
_.l.detached=function(){this.resetIntersectionObserver()};
_.R8.Object.defineProperties(uum.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return _.S("show_ghost_comments_shorts_watch")&&this.isShortsPage&&this.isCommentsSection&&!this.showButton||_.S("show_ghost_comments_desktop_watch")&&this.isWatchPage&&this.isCommentsSection&&!this.showButton?{ghostEngagementPanelRenderer:!0}:!1}}});
var yw=uum;yw.prototype.numberOfGhostCommentsChanged=yw.prototype.numberOfGhostCommentsChanged;yw.prototype.continuationTriggerOffsetChanged=yw.prototype.continuationTriggerOffsetChanged;yw.prototype.showButtonChanged=yw.prototype.showButtonChanged;yw.prototype.onYtServiceRequestCompletedForButtonRenderer=yw.prototype.onYtServiceRequestCompletedForButtonRenderer;yw.prototype.onServiceRequestCompleted=yw.prototype.onServiceRequestCompleted;yw.prototype.onYtServiceRequestSentForButtonRenderer=yw.prototype.onYtServiceRequestSentForButtonRenderer;
yw.prototype.observeData=yw.prototype.observeData;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],yw.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],yw.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.AA.YtVisibilityBehavior),_.k("design:type",Object)],yw.prototype,"ytVisibilityBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],yw.prototype,"ytComponentBehavior",void 0);
_.B([_.u(_.nl),_.k("design:type",Object)],yw.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],yw.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],yw.prototype,"isOverridable",void 0);_.B([_.H(),_.k("design:type",Object)],yw.prototype,"spinnerActive",void 0);_.B([_.H(),_.k("design:type",Object)],yw.prototype,"showButton",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],yw.prototype,"isCommentsSection",void 0);
_.B([_.H(),_.k("design:type",Object)],yw.prototype,"isShortsGrid",void 0);_.B([_.H({reflectToAttribute:!0,selector:_.zv$}),_.k("design:type",Object)],yw.prototype,"isShortsPage",void 0);_.B([_.H({reflectToAttribute:!0,selector:_.A$}),_.k("design:type",Object)],yw.prototype,"isWatchPage",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],yw.prototype,"ghostCardExperimentEnabled",void 0);_.B([_.H(),_.k("design:type",Number)],yw.prototype,"continuationTriggerOffset",void 0);
_.B([_.H(),_.k("design:type",Object)],yw.prototype,"endOfList",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],yw.prototype,"isInitialLoad",void 0);_.B([_.Ff("ytd-button-renderer"),_.k("design:type",_.LX)],yw.prototype,"buttonRenderer",void 0);_.B([_.H(),_.k("design:type",Object)],yw.prototype,"buttonOverrides",void 0);
_.B([_.H(),_.w("isCommentsSection","showButton","isShortsPage","isWatchPage"),_.k("design:type",Object),_.k("design:paramtypes",[])],yw.prototype,"isShortsCommentsSection",null);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yw.prototype,"observeData",null);_.B([_.V("yt-service-request-sent-button-renderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yw.prototype,"onYtServiceRequestSentForButtonRenderer",null);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Ht]),_.k("design:returntype")],yw.prototype,"onServiceRequestCompleted",null);_.B([_.V("yt-service-request-completed-button-renderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yw.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);
_.B([_.cT("showButton"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yw.prototype,"showButtonChanged",null);_.B([_.cT("continuationTriggerOffset"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yw.prototype,"continuationTriggerOffsetChanged",null);_.B([_.W("isInitialLoad","isShortsPage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yw.prototype,"numberOfGhostCommentsChanged",null);
yw=_.B([_.L({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],yw);
_.P(yw,"ytd-continuation-item-renderer",function(){if(n0B!==void 0)return n0B;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return n0B=p},{mode:1});var Ylv;var bc=function(){var p=_.m.apply(this,arguments)||this;p.downloadProgress=0;p.transferState="TRANSFER_STATE_UNKNOWN";p.downloadState="DOWNLOAD_STATE_UNKNOWN";p.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";p.offlineVideoPolicyExpirationTimestamp=0;p.downloadedVideoPlaybackPosition=0;return p};
_.E(bc,_.m);bc.prototype.dataChanged=function(){var p;this.videoData=_.r((p=this.data)==null?void 0:p.renderer,oaZ);this.transferStateChanged()};
bc.prototype.downloadProgressChanged=function(){if(this.entityInfo){var p=Object.assign({},this.videoData),x=X6E(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),F=x.publishedTimeText,N=x.badges;p.shortViewCountText=x.shortViewCountText;p.publishedTimeText=F;p.badges=N;this.set("videoData",p)}};
bc.prototype.transferStateChanged=function(){if(this.entityInfo){var p=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",x=_.C1(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!J$(this.entityInfo.policyEntity),F=Object.assign({},this.videoData),N=X6E(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),h=N.publishedTimeText,c=N.badges;F.shortViewCountText=
N.shortViewCountText;F.publishedTimeText=h;F.badges=c;F.isDisabled=x;F.isWatched=this.downloadedVideoPlaybackPosition>0;F.navigationEndpoint=x?void 0:ynk(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var M;p&&((M=this.videoData)==null?0:M.videoId)&&!_.S("dl_resume_click_killswitch")&&(F.isDisabled=!1,F.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});F.thumbnailOverlays=rAB(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",F)}};
var AL=bc;AL.prototype.transferStateChanged=AL.prototype.transferStateChanged;AL.prototype.downloadProgressChanged=AL.prototype.downloadProgressChanged;AL.prototype.dataChanged=AL.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],AL.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],AL.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],AL.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],AL.prototype,"videoData",void 0);_.B([_.H({selector:wb,selectorArgs:["videoData.videoId"]}),_.k("design:type",Object)],AL.prototype,"downloadProgress",void 0);_.B([_.H(),_.k("design:type",Number)],AL.prototype,"relativeDateReference",void 0);_.B([_.H({selector:_.uP,selectorArgs:["videoData.videoId"]}),_.k("design:type",Object)],AL.prototype,"transferState",void 0);
_.B([_.H({selector:BSZ,selectorArgs:["videoData.videoId"]}),_.k("design:type",Object)],AL.prototype,"downloadState",void 0);_.B([_.H({selector:u8B,selectorArgs:["videoData.videoId"]}),_.k("design:type",Object)],AL.prototype,"offlinePolicyAction",void 0);_.B([_.H({selector:YmJ,selectorArgs:["videoData.videoId"]}),_.k("design:type",Object)],AL.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.B([_.H({selector:Gt,selectorArgs:["videoData.videoId"]}),_.k("design:type",Object)],AL.prototype,"downloadedVideoPlaybackPosition",void 0);_.B([_.H({selector:GNw,selectorArgs:["videoData.videoId"]}),_.k("design:type",Object)],AL.prototype,"entityInfo",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],AL.prototype,"isDownloading",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],AL.prototype,"dataChanged",null);
_.B([_.cT("downloadProgress"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],AL.prototype,"downloadProgressChanged",null);_.B([_.cT("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],AL.prototype,"transferStateChanged",null);
AL=_.B([_.L({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],AL);
_.P(AL,"ytd-downloaded-video-grid-video-renderer",function(){if(Ylv!==void 0)return Ylv;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Ylv=p},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var wR6;var uc=function(){};
uc.prototype.resolve=function(p,x){var F=this;return _.D(function(N){return _.q(N,F.resolveCommand(p,x),0)})};var Gq6,Y2;Gq6=Myd(function(p){return p.targetId},{shouldPersist:!1});
Y2=Gq6.updateData;_.Vxm=Gq6.useUpdatableData;var Wav,H3k;Wav=Myd(function(p){return p.targetId});
H3k=Wav.updateData;_.mXm=Wav.useUpdatableData;var o0C=zzz.bind(null,Y2),O36=zzz.bind(null,H3k);(function(p,x,F){var N=_.r(F==null?void 0:F.updatedRenderer,_.dom);return N?p({targetId:x},function(){return N}):!1}).bind(null,Y2);var wE=function(){};
_.E(wE,uc);wE.prototype.resolveCommand=function(p){var x;return _.D(function(F){x=_.r(p,_.XBM);if(!x)return F.return();o0C(x.targetId,x);_.JB(F)})};var j6B=function(){var p=_.hZ.apply(this,arguments)||this;p.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return p};
_.E(j6B,_.hZ);_.l=j6B.prototype;_.l.configureContinuationPathMap=function(){return{}};
_.l.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.l.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.l.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.l.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.l.handleAppendContinuationItemsAction=function(p){var x=_.r(p,_.$iB);if(this.data&&this.data.targetId&&x&&this.continuationPathMap&&x.targetId===this.data.targetId){var F=sCw(p);if((p=F&&this.continuationPathMap[F])&&F){F=this.get(p,this.data);var N;a:{for(N=0;N<F.length;N++){var h=F[N],c=void 0,M=!!_.r((c=_.r(h,YP6))==null?void 0:c.content,_.VdZ);if(_.r(h,_.hf)||M)break a}N=F.length}p="data."+p;x.continuationItems?N===F.length-1?(this.pop(p),this.push.apply(this,[p].concat(_.se(x.continuationItems)))):
N===F.length?this.push.apply(this,[p].concat(_.se(x.continuationItems))):this.splice.apply(this,[p,N,1].concat(_.se(x.continuationItems))):this.splice(p,N,1);(_.S("web_enable_voting_animation")||_.S("enable_music_web_cairo_voting_animation"))&&_.hG(this.hostElement,"yt-append-continuation-items-action-finished");_.hG(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.no(new _.qE("append continuation path does not exist",F))}};
_.l.handleReloadContinuationItemsCommand=function(p){var x=_.r(p,_.XBM);if(this.data&&x){if(_.S("web_explore_hub")||_.S("web_client_explore_hub"))try{_.J().resolve(wE).resolveCommand(p)}catch(c){}if(this.data.targetId&&this.continuationPathMap&&x.targetId===this.data.targetId&&(!_.S("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||x.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var F,N=(F=x.slot)==null?void 0:F.replace("RELOAD_CONTINUATION_SLOT_","");F=(p=sCw(p)+
"-"+(N==null?void 0:N.toLowerCase()))&&this.continuationPathMap[p];if(!F||!p||!N)_.no(new _.qE("reload continuation path does not exist",p));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(x)){if(x.replaceWithFirstItem){var h;this.set("data."+F,((h=x.continuationItems)==null?0:h.length)?x.continuationItems[0]:{})}else this.set("data."+F,x.continuationItems?x.continuationItems:[]);this.continuationIsReloading=!1;_.hG(this.hostElement,"yt-reload-continuation-finish",
null,{bubbles:!1})}}}};
_.l.handleShowReloadUiCommand=function(p){p=_.r(p,KNZ);var x;((x=this.data)==null?0:x.targetId)&&(p==null?0:p.targetId)&&p.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
var G8=j6B;G8.prototype.observeData=G8.prototype.observeData;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],G8.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],G8.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],G8.prototype,"data",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],G8.prototype,"continuationIsReloading",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],G8.prototype,"observeData",null);G8=_.B([_.l8()],G8);_.Vw=[_.nJ.YtComponentBehavior,_.T2.YtActionHandlerBehavior,G8.prototype];_.Wy={};_.Wy.YtNextContinuationBehavior=[_.o3.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",_.p5(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.p5(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(p,x){p.stopPropagation();if(this.nextContinuation.requestPath){p=this.nextContinuation.requestPath;var F={};_.S("direct_innertube_click_tracking_reporting")&&(F={context:{clickTracking:{clickTrackingParams:this.nextContinuation.clickTrackingParams}}});this.makeNextContinuationRequest_(p,x,F)}else p={locationRetrieved:function(N,h){var c={};_.S("direct_innertube_click_tracking_reporting")&&h.clickTrackingParams&&Object.assign(c,{context:{clickTracking:{clickTrackingParams:h.clickTrackingParams}}});
this.makeNextContinuationRequest_(N,x,c)}.bind(this)},_.hG(this.hostElement,"yt-retrieve-location",p)},
makeNextContinuationRequest_:function(p,x,F){_.G6("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();p=x(p);var N;this.canUseContextualNetworkManager_()&&(N=this.getNetworkManager());N||(N=_.J().resolve(_.CR));x=_.uT.instance;if(_.sd("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&x){N=_.Ru([p.startsWith("/")?p.substr(1):p]);var h,c;F=_.AY(x,{},N,F==null?void 0:(h=F.context)==null?void 0:(c=h.clickTracking)==null?void 0:c.clickTrackingParams).then(function(M){return{response:M}})}else F=
this.nextContinuation.usePost?N.postData(p,F):N.fetchData(p);
F.then(this.updateNextContinuationData_.bind(this,p));this.pendingContinuationRequest_=F;this.startListeningForNavigate_()},
updateNextContinuationData_:function(p,x){var F=this;_.G6("ncl");this.pendingContinuationRequest_=void 0;if(x){var N={};this.nextContinuation&&(N=this.nextContinuation);if(x.response&&x.response.continuationContents&&x.response.continuationContents[N.continuationType]){p=x.response.continuationContents[N.continuationType];var h=N.header||"data.header",c=p[N.responseHeaderKey||"header"];c&&this.set(h,c);h=N.contentsArray||"data.contents";c=this.getContents_(p,N.responseContentsKey||"contents")||[];
this.pathExists_(h)?(c.unshift(h),this.push.apply(this,c)):this.set(h,c);c&&(sYp(_.cl(),x.response,this.hostElement,function(M){_.lA(F.hostElement,"yt-store-grafted-ve-action",[M])}),_.hG(this.hostElement,"yt-next-continuation-data-updated",{continuationData:x,
page:this,contentsArray:h}));this.set(N.continuationsArray||"data.continuations",p[N.responseContinuationsKey||"continuations"]||[])}else x.reload?_.no(new _.qE("Reloading from continuation is unsupported")):x.responseContext&&x.responseContext.errors||(delete x.xsrf_token,delete x.timing,delete x.endpoint,delete x.csn,x.responseContext&&delete x.responseContext.serviceTrackingParams,h={request:_.Ww(p,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(x).sort()},x.response&&(h.responseContentKeys=
Object.keys(x.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(h.continuationType=this.nextContinuation.continuationType.substr(0,256)),x=new _.qE("Malformed continuation",h),p.indexOf("/comment_service_ajax")==0?_.no(x):_.zj(x)),this.set(N.continuationsArray||"data.continuations",[])}else _.s$(new _.qE("Missing continuation response",p))},
getContents_:function(p,x){x=x.split(".");return _.Q5.getValueByKeys(p,x)},
pathExists_:function(p){var x=this;p=p.toString().split(".");for(var F=0;F<p.length;F++)if(x=x[p[F]],x===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var LaB;var Ps6;var TZJ=function(){var p=_.m.apply(this,arguments)||this;p.triggered_=!1;return p};
_.E(TZJ,_.m);_.l=TZJ.prototype;_.l.attached=function(){this.maybeTriggerAutoload()};
_.l.detached=function(){this.hasBeenTriggered_=!1};
_.l.onPrescanVisible=function(){this.onShow()};
_.l.onShow=function(){this.showButton||this.trigger()};
_.l.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.hG(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.l.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.l.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.l.computeLabel_=function(p,x){return p===void 0?null:p.label||!x?p.label:this.showMoreText_};
_.l.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.l.getContinuationUrl=function(p){var x={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(x.itct=this.data.clickTrackingParams);return _.Hw(p,x)};
_.l.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
var Hy=TZJ;Hy.prototype.showButtonChanged_=Hy.prototype.showButtonChanged_;Hy.prototype.observeData_=Hy.prototype.observeData_;_.B([_.u(_.AA.YtVisibilityBehavior),_.k("design:type",Object)],Hy.prototype,"ytVisibilityBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Hy.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Hy.prototype,"data",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Hy.prototype,"showButton",void 0);
_.B([_.H({value:!1}),_.k("design:type",Boolean)],Hy.prototype,"showIcon",void 0);_.B([_.H({computed:"computeLabel_(data, showButton)"}),_.k("design:type",Object)],Hy.prototype,"label",void 0);_.B([_.H({value:_.L1(_.JG("SHOW_MORE",void 0,"Show More"))}),_.k("design:type",Object)],Hy.prototype,"showMoreText_",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Hy.prototype,"spinnerActive_",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Hy.prototype,"hasBeenTriggered_",void 0);
_.B([_.H({value:void 0}),_.k("design:type",String)],Hy.prototype,"observeVisibleOption",void 0);_.B([_.H({value:void 0}),_.k("design:type",String)],Hy.prototype,"observeHiddenOption",void 0);_.B([_.H({value:"observe_once"}),_.k("design:type",Object)],Hy.prototype,"observePrescanOption",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Hy.prototype,"observeData_",null);
_.B([_.W("showButton"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Hy.prototype,"showButtonChanged_",null);Hy=_.B([_.JZ({is:"yt-next-continuation",disableElementRegistration:!0})],Hy);
_.P(Hy,"yt-next-continuation",function(){if(Ps6===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;LaB===void 0&&(LaB=document.createElement("template"));var N=LaB;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Ps6=p}p=Ps6;return p},{mode:2});var BZj;var Rkb;var kq6=function(){return _.m.apply(this,arguments)||this};
_.E(kq6,_.m);kq6.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
var ms=kq6;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ms.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ms.prototype,"data",void 0);ms=_.B([_.JZ({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],ms);
_.P(ms,"yt-music-pass-small-feature-info-renderer",function(){if(Rkb===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;BZj===void 0&&(BZj=document.createElement("template"));var N=BZj;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Rkb=p}p=Rkb;return p},{mode:2});_.Ei("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var UXb=function(){var p=_.m.apply(this,arguments)||this;p.isCollapsible=!1;p.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return p};
_.E(UXb,_.m);_.l=UXb.prototype;_.l.computeIsCollapsible=function(p){return!!(((p==null?0:p.showMoreText)||(p==null?0:p.visibleRowCount))&&(p==null?0:p.isCollapsible))};
_.l.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-grid-renderer lockup",containerType:2,sizing:"COMPACT",force16By9ThumbnailAspectRatio:!0}},continuationItemRenderer:"ytd-continuation-item-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",
playlistRenderer:"ytd-playlist-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:"ytd-grid-video-renderer",downloadedVideoGridVideoRenderer:"ytd-downloaded-video-grid-video-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",musicPassSmallFeatureInfoRenderer:"yt-music-pass-small-feature-info-renderer",gameCardRenderer:"ytd-game-card-renderer",verticalProductCardRenderer:{component:"ytd-vertical-product-card-renderer",noInjection:!0}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:"yt-next-continuation"}}}};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.l.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.l.onIronResize=function(){var p=this;_.sQ(this,"updateGridInitItems",function(){p.maybeUpdateInitialItemsDisplayed()})};
_.l.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var p=this.getVisibleWidth();p!==0&&(p=Math.floor(p/214)*(this.data.visibleRowCount||2),p!==this.initialCount&&(this.initialCount=p,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.l.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.l.computeExpandVisible=function(p,x,F,N){return p&&x&&F&&!!N&&!!N.showMoreText};
_.l.computeShowMoreButton=function(p){return{text:p,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.l.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.l.initCollapsed=function(){var p=this;this.ytLazyListBehavior.canShowMore=!1;var x;(this.collapsed=!((x=this.data)==null||!x.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.jB(this,function(){_.Mt(p.hostElement,"yt-refit-popups-action")})};
_.l.fillRestIfNotCollapsible=function(){var p=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!p||this.ytLazyListBehavior.fillRemainingListItems()};
_.l.computeViewAllHidden=function(p,x){return p||!x.viewAllEndpoint};
var op=UXb;op.prototype.fillRestIfNotCollapsible=op.prototype.fillRestIfNotCollapsible;op.prototype.initCollapsed=op.prototype.initCollapsed;op.prototype.onIronResize=op.prototype.onIronResize;op.prototype.persistentGuideChanged=op.prototype.persistentGuideChanged;_.B([_.u(_.n7),_.k("design:type",Object)],op.prototype,"ironResizableBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],op.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],op.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.Iz.YtLazyListBehavior),_.k("design:type",Object)],op.prototype,"ytLazyListBehavior",void 0);_.B([_.u(_.Wy.YtNextContinuationBehavior),_.k("design:type",Object)],op.prototype,"ytNextContinuationBehavior",void 0);_.B([_.u(_.GM.YtdGuideStateAwareBehavior),_.k("design:type",Object)],op.prototype,"ytdGuideStateAwareBehavior",void 0);
_.B([_.u(_.Vw),_.k("design:type",Object)],op.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],op.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Boolean)],op.prototype,"collapsed",void 0);_.B([_.H(),_.k("design:type",Number)],op.prototype,"initialCount",void 0);_.B([_.H({computed:"computeShowMoreButton(data.showMoreText)"}),_.k("design:type",Object)],op.prototype,"showMoreButton",void 0);
_.B([_.H({computed:"computeIsCollapsible(data)"}),_.k("design:type",Object)],op.prototype,"isCollapsible",void 0);_.B([_.Ff("#items"),_.k("design:type",HTMLElement)],op.prototype,"items",void 0);_.B([_.cT("guidePersistentAndVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],op.prototype,"persistentGuideChanged",null);_.B([_.V("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],op.prototype,"onIronResize",null);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],op.prototype,"initCollapsed",null);_.B([_.cT("canShowMore"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],op.prototype,"fillRestIfNotCollapsible",null);op=_.B([_.L({is:"ytd-grid-renderer",disableElementRegistration:!0})],op);
_.P(op,"ytd-grid-renderer",function(){if(wR6!==void 0)return wR6;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return wR6=p},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var i3b=function(){return _.m.apply(this,arguments)||this};
_.E(i3b,_.m);
i3b.prototype.configureRendererStamper=function(){return{"data.adMetadata.displayAdRenderer":{id:"badge",mapping:{badge:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adMetadata.displayAdRenderer.badge]]"},params:{largeFontAdBadge:!0}}}},"data.adMetadata.displayAdRenderer.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{useFloorScrolling:!0}},gridRenderer:"ytd-grid-renderer"}}}};
var OY=i3b;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],OY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],OY.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],OY.prototype,"data",void 0);OY=_.B([_.L({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],OY);
_.P(OY,"ytd-carousel-ad-renderer",function(){if(s6B!==void 0)return s6B;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return s6B=p},{mode:1});var IwB;var jR,$XK=function(){return _.m.apply(this,arguments)||this};
_.E($XK,_.m);_.l=$XK.prototype;_.l.configureRendererStamper=function(){return{"data.content.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.content.adBadge]]"}}}},"data.content.closeButton":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content.ctaButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,jR.JSC$13336_CLICK_LOCATION_ID_MAP))};
_.l.onSitelinkTap=function(p){p.stopPropagation();var x,F,N=p==null?void 0:(x=p.model)==null?void 0:(F=x.item)==null?void 0:F.onTap;N&&this.ytSparklesClickLocationBehavior.handleClick(N,p,!1)};
_.l.onTap=function(p){var x=this.data&&this.data.content&&this.data.content.navigationEndpoint;x&&this.ytSparklesClickLocationBehavior.handleClick(x,p,!1)};
_.l.sendImpression=function(){if(this.data&&this.data.content)for(var p=_.a(this.data.content.impressionEndpoints||[]),x=p.next();!x.done;x=p.next()){x=_.a(x.value.loggingUrls||[]);for(var F=x.next();!F.done;F=x.next())F=F.value,F.baseUrl&&ww(F.baseUrl,F.attributionSrcMode)}};
var LU=jR=$XK;jR.prototype.onTap=jR.prototype.onTap;jR.prototype.dataChanged=jR.prototype.dataChanged;LU.JSC$13336_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"]]);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],LU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],LU.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.ih.YtSparklesClickLocationBehavior),_.k("design:type",Object)],LU.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],LU.prototype,"data",void 0);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],LU.prototype,"dataChanged",null);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],LU.prototype,"onTap",null);LU=jR=_.B([_.L({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],LU);
_.P(LU,"ytd-promoted-sparkles-text-search-renderer",function(){if(IwB!==void 0)return IwB;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return IwB=p},{mode:1});var ekZ;var Py,pDJ=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-mute-ad-action":"handleMuteAd"};return p};
_.E(pDJ,_.m);_.l=pDJ.prototype;
_.l.configureRendererStamper=function(){return{"data.menu":{id:_.S("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search",
mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.l.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.l.computeHasAdBadge=function(p){return!(p==null||!p.adBadge)};
_.l.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",Py.JSC$13343_DEFAULT_AD_BADGE_RENDERER),_.iX(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,Py.JSC$13343_CLICK_LOCATION_ID_MAP))};
_.l.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var p;(((p=this.data)==null?void 0:p.impressionCommands)||[]).forEach(function(x){x=_.a(x.loggingUrls||[]);for(var F=x.next();!F.done;F=x.next())F=F.value,F.baseUrl&&ww(F.baseUrl,F.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.l.onTap=function(p){var x,F=(x=this.data)==null?void 0:x.navigationEndpoint,N;(x=(N=this.data)==null?void 0:N.thumbnailNavigationEndpoint)&&_.o4(_.m9(p),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(x,p,!1):F&&this.ytSparklesClickLocationBehavior.handleClick(F,p,!1)};
_.l.handleMuteAd=function(){this.collapsed=!0};
_.l.attached=function(){var p=this;_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&p.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.R8.Object.defineProperties(pDJ.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var p;return!(((p=this.data)==null?void 0:p.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var p;return!(((p=this.data)==null?void 0:p.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
hideActionButton:{configurable:!0,enumerable:!0,get:function(){return!(this.data&&this.data.actionButton)}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.webSearchLayout}}});
var T8=Py=pDJ;Py.prototype.dataChanged=Py.prototype.dataChanged;
T8.JSC$13343_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"]]);
T8.JSC$13343_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.JG("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],T8.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],T8.prototype,"ytRendererBehavior",void 0);_.B([_.u(s7),_.k("design:type",Object)],T8.prototype,"ytdActiveViewBehavior",void 0);
_.B([_.u([_.T2.YtActionHandlerBehavior]),_.k("design:type",Object)],T8.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.ih.YtSparklesClickLocationBehavior),_.k("design:type",Object)],T8.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],T8.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],T8.prototype,"collapsed",void 0);_.B([_.H({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.k("design:type",Boolean)],T8.prototype,"useBiggerThumbs",void 0);_.B([_.H({reflectToAttribute:!0,value:function(){return _.iO("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],T8.prototype,"biggerThumbsStyle",void 0);_.B([_.H({reflectToAttribute:!0,value:function(){return _.S("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.k("design:type",Boolean)],T8.prototype,"fixAlignmentSmallScreens",void 0);_.B([_.H({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs_square")}}),
_.k("design:type",Boolean)],T8.prototype,"useBiggerThumbsSquare",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("data.mediaHoverOverlay"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],T8.prototype,"hideHoverOverlay",null);_.B([_.H({reflectToAttribute:!0}),_.w("data.promotedSparklesWebStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],T8.prototype,"webSearchLayout",null);
_.B([_.H({reflectToAttribute:!0}),_.w("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],T8.prototype,"webSearchLayoutLandscape",null);_.B([_.H({reflectToAttribute:!0}),_.w("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],T8.prototype,"webSearchLayoutSquare",null);
_.B([_.H({reflectToAttribute:!0}),_.w("data.promotedSparklesWebStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],T8.prototype,"sparklesCtaNoBackground",null);_.B([_.H({reflectToAttribute:!0}),_.w("data.actionButton"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],T8.prototype,"hideActionButton",null);_.B([_.H({computed:"computeButtonOverride(uiUpdate)"}),_.k("design:type",Object)],T8.prototype,"buttonOverride",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.k("design:type",Boolean)],T8.prototype,"hasNewAdBadge",void 0);_.B([_.w("data.promotedSparklesWebStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],T8.prototype,"useRoundedBadge",null);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T8.prototype,"dataChanged",null);T8=Py=_.B([_.L({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],T8);
_.P(T8,"ytd-promoted-sparkles-web-renderer",function(){if(ekZ!==void 0)return ekZ;var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return ekZ=p},{mode:1});var xKK;var By,Fbm=function(){return _.m.apply(this,arguments)||this};
_.E(Fbm,_.m);_.l=Fbm.prototype;_.l.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.ctaRenderer":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.l.computeShowCta=function(p){return!(p==null||!p.ctaRenderer)};
_.l.onCtaClick=function(){var p,x,F,N=(p=this.data)==null?void 0:(x=p.ctaRenderer)==null?void 0:(F=x.buttonRenderer)==null?void 0:F.command;N&&this.ytComponentBehavior.resolveCommand(N)};
_.l.onWatchButtonClick=function(){var p,x,F,N=(p=this.data)==null?void 0:(x=p.watchButtonRenderer)==null?void 0:(F=x.buttonRenderer)==null?void 0:F.command;N&&this.ytComponentBehavior.resolveCommand(N)};
_.l.onTap=function(){};
_.l.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",By.JSC$13346_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",By.JSC$13346_DEFAULT_CLICK_LOCATION_BEHAVIOR,By.JSC$13346_CLICK_LOCATION_ID_MAP),this.thumbnail)){var p=this.thumbnail.getElementsByTagName("a");p.length>0&&(p=p.namedItem("thumbnail"))&&p.removeAttribute("href")}};
_.l.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var p=_.a(this.data.impressionUrls),x=p.next();!x.done;x=p.next())x=x.value,DdH(x,KJd(x));this.data.impressionsFired=!0}};
_.l.maybeComputeHref=function(){return null};
_.l.computeIsShortDR=function(p){return!(p==null||!p.watchButtonRenderer)&&!(p==null||!p.ctaRenderer)&&!!this.enableShortDR};
_.l.computeIsNewUiOrShortDr=function(p){return!!this.enableUiUpdate||this.computeIsShortDR(p)};
_.l.computeIsNewUiAndNotShortDr=function(p){return!!this.enableUiUpdate&&!this.computeIsShortDR(p)};
_.l.computeHideAvatar=function(p){return!((p==null?0:p.channelThumbnail)&&this.computeIsNewUiOrShortDr(p))};
_.l.onClick=function(p){var x,F=(x=this.data)==null?void 0:x.navigationEndpoint;if(this.enableShortDR&&F&&(_.r(F,_.B7)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(F,p,!!_.r(F,_.B7)),p.stopPropagation();else if(F&&_.r(F,_.B7))this.ytSparklesClickLocationBehavior.handleClick(F,p,!0),p.stopPropagation();else if(F){var N,h;((N=this.data)==null?0:N.navigationEndpoint)&&((h=this.data)==null?0:h.adPlaybackContextParams)&&eUp(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(F)}};
_.l.computeButtonOverride=function(p){if(this.computeIsNewUiOrShortDr(p))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.l.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.l.onThumbnailContainerClick=function(p){this.onClick(p)};
_.l.computeThumbnailWidth=function(p,x){return p?x==="MASSIVE"?600:x==="BIG"?500:x==="MEDIUM"?450:420:360};
_.l.attached=function(){var p=this;_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&p.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
var Rp=By=Fbm;By.prototype.dataChanged=By.prototype.dataChanged;By.prototype.onTap=By.prototype.onTap;Rp.JSC$13346_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.JG("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};Rp.JSC$13346_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Rp.JSC$13346_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"}];_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Rp.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);_.B([_.u(s7),_.k("design:type",Object)],Rp.prototype,"ytdActiveViewBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Rp.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.ih.YtSparklesClickLocationBehavior),_.k("design:type",Object)],Rp.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Rp.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.k("design:type",Boolean)],Rp.prototype,"useBiggerThumbs",void 0);_.B([_.H({reflectToAttribute:!0,value:function(){return _.S("enable_video_display_compact_button_group_for_desktop_search")}}),
_.k("design:type",Boolean)],Rp.prototype,"enableShortDR",void 0);_.B([_.H({reflectToAttribute:!0,value:function(){return _.S("enable_vac_ui_update_for_desktop_search")}}),
_.k("design:type",Boolean)],Rp.prototype,"enableUiUpdate",void 0);_.B([_.H({reflectToAttribute:!0,value:function(){return _.iO("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],Rp.prototype,"biggerThumbsStyle",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.k("design:type",Boolean)],Rp.prototype,"showCta",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.k("design:type",Boolean)],Rp.prototype,"isShortDr",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.k("design:type",Boolean)],Rp.prototype,"isShortDrOrNewUi",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.k("design:type",Boolean)],Rp.prototype,"isNewUiAndNotShortDr",void 0);_.B([_.H({computed:"computeButtonOverride(data)"}),_.k("design:type",Object)],Rp.prototype,"buttonOverride",void 0);_.B([_.H({computed:"computeSecondaryButtonOverride(data)"}),_.k("design:type",Object)],Rp.prototype,"secondaryButtonOverride",void 0);_.B([_.Ff("ytd-thumbnail"),_.k("design:type",HTMLElement)],Rp.prototype,"thumbnail",void 0);
_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Rp.prototype,"onTap",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Rp.prototype,"dataChanged",null);Rp=By=_.B([_.L({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],Rp);
_.P(Rp,"ytd-promoted-video-renderer",function(){if(xKK!==void 0)return xKK;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return xKK=p},{mode:1});var NTZ;var k2,hek=function(){var p=_.m.apply(this,arguments)||this;p.useRoundedBadge=!0;p.sitelinkIds=[];return p};
_.E(hek,_.m);_.l=hek.prototype;
_.l.configureRendererStamper=function(){return{"data.menu":{id:_.S("enable_text_ad_web_thumbnail_scaling_fix")?"new-menu":"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},
"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.l.dataChanged=function(){var p;(p=this.data)!=null&&p.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,k2.JSC$13353_CLICK_LOCATION_ID_MAP)};
_.l.onTap=function(p){var x,F=(x=this.data)==null?void 0:x.navigationCommand;F&&!_.o4(_.m9(p),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(F,p,!1)};
_.l.onSitelinkTap=function(p){var x,F,N=p==null?void 0:(x=p.model)==null?void 0:(F=x.item)==null?void 0:F.onTap;N&&this.ytSparklesClickLocationBehavior.handleClick(N,p,!1)};
_.l.configureSitelinkClickTargets=function(){var p=this,x,F,N=(x=this.data)==null?void 0:(F=x.clickLocationTargets)==null?void 0:F.find(function(h){return h.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
N&&_.n(this.hostElement).querySelectorAll(".sitelink").forEach(function(h){_.iX(h,"yt-simple-endpoint",!0);p.sitelinkIds.push(h.id);var c,M;(c=p.ytSparklesClickLocationBehavior)==null||(M=c.clickTargetMap)==null||M.set(h.id,N)})};
_.l.sendImpression=function(){var p,x,F=((p=this.data)==null?void 0:(x=p.impressionCommand)==null?void 0:x.loggingUrls)||[];p=_.a(F);for(x=p.next();!x.done;x=p.next())x=x.value,x.baseUrl&&ww(x.baseUrl,x.attributionSrcMode)};
_.l.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.R8.Object.defineProperties(hek.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
var UY=k2=hek;k2.prototype.onTap=k2.prototype.onTap;k2.prototype.dataChanged=k2.prototype.dataChanged;
UY.JSC$13353_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"]]);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],UY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],UY.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.ih.YtSparklesClickLocationBehavior),_.k("design:type",Object)],UY.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],UY.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],UY.prototype,"showFavicon",null);_.B([_.H({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.k("design:type",Boolean)],UY.prototype,"useBiggerThumbs",void 0);_.B([_.H({reflectToAttribute:!0,value:function(){return _.iO("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],UY.prototype,"biggerThumbsStyle",void 0);_.B([_.H({reflectToAttribute:!0,value:function(){return _.S("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.k("design:type",Boolean)],UY.prototype,"enableThumbnailScalingFix",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],UY.prototype,"dataChanged",null);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],UY.prototype,"onTap",null);UY=k2=_.B([_.L({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],UY);
_.P(UY,"ytd-text-image-no-button-layout-renderer",function(){if(NTZ!==void 0)return NTZ;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return NTZ=p},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var lGv;var ic,cvj=function(){var p=_.m.apply(this,arguments)||this;p.isInlinePlaybackState=!1;p.uiUpdate=_.S("web_modern_buttons");p.hideCta=_.S("hide_cta_for_home_web_video_ads");p.noBottomMargin=!1;p.animateInTimeStamp=_.Ud("hide_cta_for_home_web_video_ads_animate_in_time");p.animateInCta=!1;p.isHovered=!1;p.player=null;p.JSC$13360_playerEvents=new Map;p.JSC$13360_preventProgressSaveTimer=null;p.delayedCtaJobId=null;return p};
_.E(cvj,_.m);_.l=cvj.prototype;_.l.configureRendererStamper=function(){return{"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.adCtaButton":{id:"call-to-action",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}}}};
_.l.attached=function(){this.JSC$13360_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13360_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.S("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.l.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13360_playerEvents)};
_.l.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",ic.JSC$13359_DEFAULT_CLICK_LOCATION_BEHAVIOR,ic.JSC$13359_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.l.hoverChanged=function(){var p=this;this.delayedCtaJobId&&(_.E0.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.S("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.tR(_.E0,function(){p.buttonContainer.classList.add("show-delayed-buttons")},_.Ud("delayed_cta_on_web_delay_milliseconds")))};
_.l.setPlayer=function(){var p=this,x;return _.D(function(F){if(F.nextAddress==1)return(x=_.Mt(p.hostElement,"yt-get-inline-preview-player-action"))&&x[0]?_.q(F,x[0].getPlayerPromise(),3):F.jumpTo(0);p.player=F.yieldResult;p.ytPlayerListenerBehavior.listenToPlayerEvents(p.player,p.JSC$13360_playerEvents);_.JB(F)})};
_.l.onPlaybackStart=function(){var p=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13360_preventProgressSaveTimer=_.TT(_.E0,function(){p.JSC$13360_preventProgressSaveTimer=null},1E4))};
_.l.onVideoProgress=function(p){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&p>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.l.resetPreventProgressSaveTimer=function(){_.E0.cancelJob(this.JSC$13360_preventProgressSaveTimer);this.JSC$13360_preventProgressSaveTimer=null};
_.l.getSimpleString=function(p){return _.Pi(p)};
_.l.onClick=function(p){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var x,F=(x=this.data)==null?void 0:x.navigationEndpoint,N;x=(N=this.data)==null?void 0:N.channelEndpoint;var h,c;(N=(c=_.r((h=this.data)==null?void 0:h.adCtaButton,_.AS))==null?void 0:c.command)&&_.o4(_.m9(p),this.hostElement,["call-to-action"])?_.S("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(N,p,!1):x&&_.o4(_.m9(p),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(x,p,!1):!_.o4(_.m9(p),this.hostElement,["secondary-button"])&&F&&(_.S("enable_short_dr_for_desktop_launchable")?(h=!!_.r(F,_.B7),this.isInlinePlaybackState&&h&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(F,p,h)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(F,p,!0)))}};
_.l.updateWatchEndpointStartTime=function(){var p,x;this.player&&((p=this.data)==null?0:p.inlinePlaybackEndpoint)&&((x=this.data)==null?0:x.navigationEndpoint)&&!this.JSC$13360_preventProgressSaveTimer&&(p=Math.floor(this.player.getCurrentTime()),_.r(this.data.navigationEndpoint,_.B7).startTimeSeconds=p,_.r(this.data.inlinePlaybackEndpoint,_.B7).startTimeSeconds=p)};
_.l.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.l.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.R8.Object.defineProperties(cvj.prototype,{isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var p,x;return!((p=this.data)==null||!p.watchButton)&&!((x=this.data)==null||!x.adCtaButton)}}});
var Ip=ic=cvj;ic.prototype.hoverChanged=ic.prototype.hoverChanged;ic.prototype.dataChanged=ic.prototype.dataChanged;
Ip.JSC$13359_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"]]);
Ip.JSC$13359_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"}];
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ip.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Ip.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],Ip.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.ih.YtSparklesClickLocationBehavior),_.k("design:type",Object)],Ip.prototype,"ytSparklesClickLocationBehavior",void 0);
_.B([_.u(_.oz.YtPlayerListenerBehavior),_.k("design:type",_.O7)],Ip.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ip.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ip.prototype,"isInlinePlaybackState",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Ip.prototype,"miniMode",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ip.prototype,"uiUpdate",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ip.prototype,"hideCta",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ip.prototype,"noBottomMargin",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ip.prototype,"animateInCta",void 0);_.B([_.H({computed:"computeButtonOverride(uiUpdate)"}),_.k("design:type",Object)],Ip.prototype,"buttonOverride",void 0);
_.B([_.H({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.k("design:type",Object)],Ip.prototype,"secondaryButtonOverride",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ip.prototype,"isHovered",void 0);_.B([_.Ff("#button-container"),_.k("design:type",HTMLElement)],Ip.prototype,"buttonContainer",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ip.prototype,"dataChanged",null);
_.B([_.W("isHovered"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ip.prototype,"hoverChanged",null);_.B([_.w("data"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ip.prototype,"isButtonGroup",null);Ip=ic=_.B([_.L({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Ip);
_.P(Ip,"ytd-ad-inline-playback-meta-block",function(){if(lGv!==void 0)return lGv;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return lGv=p},{mode:_.UQ("kevlar_poly_si_batch_j065")?1:2});var aGK;var $2,MMl=function(){var p=_.m.apply(this,arguments)||this;p.noBottomMargin=!1;p.isInlinePreviewTriggered=!1;p.JSC$13365_activeViewMeasurementDataResolver=_.GO();return p};
_.E(MMl,_.m);_.l=MMl.prototype;_.l.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.l.attached=function(){var p=this;this.updateInlinePreviewHoverListeners();this.JSC$13365_activeViewMeasurementDataResolver.promise.then(function(x){p.ytdActiveViewBehavior.enableActiveViewMeasurement(x,15)});
_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&p.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){this.clearInlinePreviewHoverListeners();_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13365_inlinePreviewHoverListener=T7({mediaRenderer:this,lockupElement:this.JSC$13365_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:BdZ})};
_.l.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$13365_inlinePreviewHoverListener)==null||MD(p)};
_.l.onDataChanged=function(){var p;((p=this.data)==null?0:p.activeView)&&this.JSC$13365_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",$2.JSC$13364_DEFAULT_CLICK_LOCATION_BEHAVIOR,$2.JSC$13364_CLICK_LOCATION_ID_MAP);this.thumbnail&&(p=this.thumbnail.getElementsByTagName("a"),p.length>0&&(p=p.namedItem("thumbnail"))&&p.removeAttribute("href"));var x;if((x=this.data)==
null?0:x.hasAutoplay){var F;(F=this.JSC$13365_inlinePreviewHoverListener)==null||qaD(F)}};
_.l.onThumbnailContainerClick=function(p){if(this.data&&this.data.navigationEndpoint){var x,F=(x=this.data)==null?void 0:x.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(F,p,!!_.r(F,_.B7));p.stopPropagation()}};
_.l.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.l.impressionLog=function(){var p=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var x,F,N=(F=_.r((x=this.data)==null?void 0:x.onImpression,_.Zx))==null?void 0:F.commands;N&&(N.forEach(function(h){h.clickTrackingParams&&delete h.clickTrackingParams;p.ytComponentBehavior.resolveCommand(h)}),this.data.impressionsFired=!0)}};
_.R8.Object.defineProperties(MMl.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.JSC$13365_inlinePreviewHoverListener)==null?0:wK(p))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var eR=$2=MMl;$2.prototype.onDataChanged=$2.prototype.onDataChanged;eR.JSC$13364_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);eR.JSC$13364_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"}];_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],eR.prototype,"ytComponentBehavior",void 0);
_.B([_.u(s7),_.k("design:type",Object)],eR.prototype,"ytdActiveViewBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],eR.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],eR.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],eR.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.u(_.HL),_.k("design:type",Object)],eR.prototype,"ytdLockupBehavior",void 0);
_.B([_.u(_.nl),_.k("design:type",Object)],eR.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.ih.YtSparklesClickLocationBehavior),_.k("design:type",Object)],eR.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],eR.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],eR.prototype,"noBottomMargin",void 0);_.B([_.H(),_.k("design:type",Object)],eR.prototype,"isInlinePreviewTriggered",void 0);
_.B([_.H({reflectToAttribute:!0,selector:_.n1}),_.k("design:type",Boolean)],eR.prototype,"miniMode",void 0);_.B([_.Ff("ytd-thumbnail"),_.k("design:type",HTMLElement)],eR.prototype,"thumbnail",void 0);_.B([_.Ff("#dismissible"),_.k("design:type",HTMLElement)],eR.prototype,"JSC$13365_dismissibleMedia",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eR.prototype,"onDataChanged",null);
_.B([_.w("lockupIsHovered"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],eR.prototype,"isHovered",null);eR=$2=_.B([_.L({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],eR);
_.P(eR,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(aGK!==void 0)return aGK;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return aGK=p},{mode:1});var DKJ;var pB,fGn=function(){var p=_.m.apply(this,arguments)||this;p.isInlinePreviewTriggered=!1;p.JSC$13368_activeViewMeasurementDataResolver=_.GO();return p};
_.E(fGn,_.m);_.l=fGn.prototype;_.l.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.l.attached=function(){var p=this;this.updateInlinePreviewHoverListeners();this.JSC$13368_activeViewMeasurementDataResolver.promise.then(function(x){p.ytdActiveViewBehavior.enableActiveViewMeasurement(x,15)})};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13368_inlinePreviewHoverListener=T7({mediaRenderer:this,lockupElement:this.JSC$13368_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:BdZ})};
_.l.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$13368_inlinePreviewHoverListener)==null||MD(p)};
_.l.onDataChanged=function(){var p;((p=this.data)==null?0:p.activeView)&&this.JSC$13368_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",pB.JSC$13367_DEFAULT_CLICK_LOCATION_BEHAVIOR,pB.JSC$13367_CLICK_LOCATION_ID_MAP);this.thumbnail&&(p=this.thumbnail.getElementsByTagName("a"),p.length>0&&(p=p.namedItem("thumbnail"))&&p.removeAttribute("href"))};
_.l.onThumbnailContainerClick=function(p){if(this.data&&this.data.navigationEndpoint){var x,F=(x=this.data)==null?void 0:x.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(F,p,!0);p.stopPropagation()}};
_.l.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.l.impressionLog=function(){var p=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var x,F,N=(F=_.r((x=this.data)==null?void 0:x.onImpression,_.Zx))==null?void 0:F.commands;N&&(N.forEach(function(h){h.clickTrackingParams&&delete h.clickTrackingParams;_.S("web_ytd_video_display_full_buttoned_renderer_command_resolver_ks")?_.fc(p.hostElement,[h]):_.J().resolve(_.RD).resolveCommand(h,{form:{element:p.hostElement}})}),this.data.impressionsFired=!0)}};
_.R8.Object.defineProperties(fGn.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.JSC$13368_inlinePreviewHoverListener)==null?0:wK(p))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var x1=pB=fGn;pB.prototype.onDataChanged=pB.prototype.onDataChanged;x1.JSC$13367_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);x1.JSC$13367_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"}];_.B([_.u(s7),_.k("design:type",Object)],x1.prototype,"ytdActiveViewBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],x1.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],x1.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],x1.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.u(_.HL),_.k("design:type",Object)],x1.prototype,"ytdLockupBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],x1.prototype,"ytdReduxBehavior",void 0);
_.B([_.u(_.ih.YtSparklesClickLocationBehavior),_.k("design:type",Object)],x1.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],x1.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],x1.prototype,"isInlinePreviewTriggered",void 0);_.B([_.H({reflectToAttribute:!0,selector:_.n1}),_.k("design:type",Boolean)],x1.prototype,"miniMode",void 0);_.B([_.Ff("ytd-thumbnail"),_.k("design:type",HTMLElement)],x1.prototype,"thumbnail",void 0);
_.B([_.Ff("#dismissible"),_.k("design:type",HTMLElement)],x1.prototype,"JSC$13368_dismissibleMedia",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],x1.prototype,"onDataChanged",null);_.B([_.w("lockupIsHovered"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],x1.prototype,"isHovered",null);x1=pB=_.B([_.L({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],x1);
_.P(x1,"ytd-video-display-full-buttoned-renderer",function(){if(DKJ!==void 0)return DKJ;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return DKJ=p},{mode:1});var ZD=function(p,x,F,N){N=N===void 0?!1:N;_.x$.call(this,p);this.adsClientErrorMessage=F;this.aggressivelySample=N;this.args=[];x&&this.args.push(x)};
_.E(ZD,_.x$);var KE=function(p,x,F,N){N=N===void 0?!1:N;_.x$.call(this,p);this.adsClientErrorMessage=F;this.aggressivelySample=N;this.args=[];x&&this.args.push(x)};
_.E(KE,_.x$);var Kbv=function(p){_.Jm.call(this);var x=this;this.initializationFunction=p;this.instance=null;this.addOnDisposeCallback(function(){_.RR(x.instance);x.instance=null})};
_.E(Kbv,_.Jm);Kbv.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.hI("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var Gbz=function(){var p=new Map;[].forEach(function(x){p.set(x.JSC$26686_getType(),x)})};new Promise(function(){});var bGJ=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"]]),n7H=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"}]]),qxj=function(p){this.experimentApiProvider=p;p=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=p<.1};var Fy=function(p,x,F,N){_.Jm.call(this);this.adsControlFlowEventListeners=x;this.adEventLogger=F;this.experimentApiProvider=N;this.adsControlFlowManagerHelper=p(this,this,this,this,this);_.aG(this,this.adsControlFlowManagerHelper);p=_.a(x);for(x=p.next();!x.done;x=p.next())_.aG(this,x.value)};
_.E(Fy,_.Jm);var ZhZ=function(p,x,F,N){N9(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",x,F,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,N);p=_.a(p.adsControlFlowEventListeners);for(N=p.next();!N.done;N=p.next())ZhZ(N.value,x,F)};
_.l=Fy.prototype;_.l.onOpportunityProcessedExternallyManaged=function(p,x,F,N){N9(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",p,F,x,void 0,void 0,void 0,void 0,void 0,void 0,void 0,N)};
_.l.onSlotReceivedExternallyManaged=function(p,x){hj(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",p,x)};
_.l.onSlotEntered=function(p){if(lo(this.adsControlFlowManagerHelper,p)!=null){hj(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",p);this.adsControlFlowManagerHelper.onSlotEntered(p);for(var x=_.a(this.adsControlFlowEventListeners),F=x.next();!F.done;F=x.next())F.value.onSlotEntered(p);if(lo(this.adsControlFlowManagerHelper,p)!=null&&lo(this.adsControlFlowManagerHelper,p).isOccupyingSlotType()&&cK(this.adsControlFlowManagerHelper,p)&&!tMj(this.adsControlFlowManagerHelper,p)){var N;a1(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",p,(N=cK(this.adsControlFlowManagerHelper,p))!=null?N:void 0);p=lo(this.adsControlFlowManagerHelper,p);p.slotLifecycleStage!=="entered"&&M9(p.slot,p.slotLifecycleStage,"enterLayoutForSlot");p.slotLifecycleStage="rendering";p.registeredLayoutRenderingAdapter.startRendering(p.layout)}}};
_.l.onSlotExited=function(p){if(lo(this.adsControlFlowManagerHelper,p)!=null){hj(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",p);this.adsControlFlowManagerHelper.onSlotExited(p);for(var x=_.a(this.adsControlFlowEventListeners),F=x.next();!F.done;F=x.next())F.value.onSlotExited(p);lo(this.adsControlFlowManagerHelper,p)!=null&&lo(this.adsControlFlowManagerHelper,p).markedForUnscheduleAfterOutboundAdapterRequests&&dKm(this,p)}};
_.l.onLayoutReceivedExternallyManaged=function(p,x,F){p.managerLayer!=="core"&&a1(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",p,x,F)};
var vIm=function(p,x,F){if(lo(p.adsControlFlowManagerHelper,x)!=null){a1(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",x,F);p=_.a(p.adsControlFlowEventListeners);for(var N=p.next();!N.done;N=p.next())vIm(N.value,x,F)}};
Fy.prototype.onLayoutExited=function(p,x,F){if(lo(this.adsControlFlowManagerHelper,p)!=null){a1(this.adEventLogger,yVp(F),p,x);this.adsControlFlowManagerHelper.onLayoutExited(p,x);for(var N=_.a(this.adsControlFlowEventListeners),h=N.next();!h.done;h=N.next())h.value.onLayoutExited(p,x,F);(F=cK(this.adsControlFlowManagerHelper,p))&&x.layoutId===F.layoutId&&Jvb(this,p)}};
Fy.prototype.disposeInternal=function(){var p=CDl(this.adsControlFlowManagerHelper);p=_.a(p);for(var x=p.next();!x.done;x=p.next())dKm(this,x.value);_.Jm.prototype.disposeInternal.call(this)};
var dKm=function(p,x){if(lo(p.adsControlFlowManagerHelper,x)!=null)if(lo(p.adsControlFlowManagerHelper,x).JSC$26717_isSlotExitRequested()||lo(p.adsControlFlowManagerHelper,x).JSC$26717_isLayoutExitRequested())lo(p.adsControlFlowManagerHelper,x).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(lo(p.adsControlFlowManagerHelper,x).isOccupyingSlotType())lo(p.adsControlFlowManagerHelper,x).markedForUnscheduleAfterOutboundAdapterRequests=!0,Jvb(p,x);else if(lo(p.adsControlFlowManagerHelper,x).JSC$26717_isSlotFillRequested())lo(p.adsControlFlowManagerHelper,
x).markedForUnscheduleAfterOutboundAdapterRequests=!0,lo(p.adsControlFlowManagerHelper,x)!=null&&(hj(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",x),x=lo(p.adsControlFlowManagerHelper,x),x.fulfillmentLifecycleStage="fill_cancel_requested",x.registeredFulfillmentAdapter.cancelSlotFilling());else{var F=cK(p.adsControlFlowManagerHelper,x),N;p.experimentApiProvider.get();(N=_.S("h5_enable_layout_unscheduling_events"))&&(F?SxI(p,x,F):_.hI(Error("Hh"),x,F,void 0,!1));hj(p.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",x);var h=lo(p.adsControlFlowManagerHelper,x),c=x.slotEntryTrigger,M=h.registeredSlotEntryTriggerAdapters.get(c.triggerId);M&&(M.unregisterTrigger(c),h.registeredSlotEntryTriggerAdapters.delete(c.triggerId));c=_.a(x.slotFulfillmentTriggers);for(M=c.next();!M.done;M=c.next()){M=M.value;var f=h.registeredFulfillmentTriggerAdapters.get(M.triggerId);f&&(f.unregisterTrigger(M),h.registeredFulfillmentTriggerAdapters.delete(M.triggerId))}c=_.a(x.slotExpirationTriggers);
for(M=c.next();!M.done;M=c.next())if(M=M.value,f=h.registeredExpirationTriggerAdapters.get(M.triggerId))f.unregisterTrigger(M),h.registeredExpirationTriggerAdapters.delete(M.triggerId);h.hasLayout()&&(c=h.layout,Dg(h,c.layoutExitNormalTriggers),Dg(h,c.layoutExitSkipTriggers),Dg(h,c.layoutExitMuteTriggers),Dg(h,c.layoutExitUserInputSubmittedTriggers),Dg(h,c.layoutExitUserCancelledTriggers));h.registeredFulfillmentAdapter=void 0;h.registeredSlotAdapter!=null&&(h.registeredSlotAdapter.release(),h.registeredSlotAdapter=
void 0);h.registeredLayoutRenderingAdapter!=null&&(h.registeredLayoutRenderingAdapter.release(),h.registeredLayoutRenderingAdapter=void 0);h=p.adsControlFlowManagerHelper;lo(h,x)&&(h=rvj(h,x.slotType+"_"+x.slotPhysicalPosition))&&h.delete(x.slotId);hj(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",x);p=_.a(p.adsControlFlowEventListeners);for(h=p.next();!h.done;h=p.next())h=h.value,h.onSlotUnscheduled(x),F&&!N&&SxI(h,x,F)}},SxI=function(p,x,F){a1(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
x,F);
a1(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",x,F);p=_.a(p.adsControlFlowEventListeners);for(var N=p.next();!N.done;N=p.next())N=N.value,F&&SxI(N,x,F)},Jvb=function(p,x){if(lo(p.adsControlFlowManagerHelper,x)!=null&&lo(p.adsControlFlowManagerHelper,x).isOccupyingSlotType()){var F=cK(p.adsControlFlowManagerHelper,x);
if(F&&tMj(p.adsControlFlowManagerHelper,x)){if(lo(p.adsControlFlowManagerHelper,x)!=null){var N=p.adEventLogger,h;var c=((h=n7H.get("abandoned"))==null?void 0:h.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";a1(N,c,x,F);p=lo(p.adsControlFlowManagerHelper,x);p.slotLifecycleStage!=="rendering"&&M9(p.slot,p.slotLifecycleStage,"exitLayout");p.slotLifecycleStage="rendering_stop_requested";p.registeredLayoutRenderingAdapter.stopRendering(F,"abandoned")}}else{hj(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
x);try{N=lo(p.adsControlFlowManagerHelper,x);if(!N)throw new KE("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");N.slotLifecycleStage!=="enter_requested"&&N.slotLifecycleStage!=="entered"&&N.slotLifecycleStage!=="rendering"&&M9(N.slot,N.slotLifecycleStage,"exitSlot");N.slotLifecycleStage="exit_requested";if(N.registeredSlotAdapter===void 0)throw N.slotLifecycleStage="scheduled",new KE("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
N.registeredSlotAdapter.exit()}catch(M){M instanceof KE&&M.adsClientErrorMessage?(EIv(p.adEventLogger,M.adsClientErrorMessage,x),_.hI(M,x,void 0,void 0,M.aggressivelySample)):(EIv(p.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",x),_.hI(M,x))}}}};var fB=function(p,x,F,N,h,c){_.Jm.call(this);this.registry=p;this.experimentApiProvider=c;this.slotMap=new Map};
_.E(fB,_.Jm);var rvj=function(p,x){return(p=p.slotMap.get(x))?p:new Map},lo=function(p,x){return rvj(p,x.slotType+"_"+x.slotPhysicalPosition).get(x.slotId)},CDl=function(p){var x=[];
p.slotMap.forEach(function(F){F=_.a(F.values());for(var N=F.next();!N.done;N=F.next())x.push(N.value.slot)});
return x};
fB.prototype.onSlotEntered=function(p){p=lo(this,p);p.slotLifecycleStage!=="enter_requested"&&M9(p.slot,p.slotLifecycleStage,"onSlotEntered");p.slotLifecycleStage="entered"};
var tMj=function(p,x){p=lo(p,x);return p.hasLayout()&&p.isRendering()},cK=function(p,x){(p=lo(p,x))?p.hasLayout()&&!p.layout&&_.hI("Unexpected empty layout",x):_.hI("Unexpected undefined slotState",x);
return(p==null?void 0:p.layout)||null};
fB.prototype.onSlotExited=function(p){p=lo(this,p);p.slotLifecycleStage!=="exit_requested"&&M9(p.slot,p.slotLifecycleStage,"onSlotExited");p.slotLifecycleStage="scheduled"};
fB.prototype.onLayoutExited=function(p,x){p=lo(this,p);p.isPrimaryLayout(x)&&(p.slotLifecycleStage!=="rendering_stop_requested"&&M9(p.slot,p.slotLifecycleStage,"onLayoutExited"),p.slotLifecycleStage="entered")};
var Dg=function(p,x){x=_.a(x);for(var F=x.next();!F.done;F=x.next()){F=F.value;var N=p.registeredLayoutExitTriggerAdapters.get(F.triggerId);N&&(N.unregisterTrigger(F),p.registeredLayoutExitTriggerAdapters.delete(F.triggerId))}},M9=function(p,x,F){_.hI("Slot stage was "+x+" when calling method "+F,p)};var gIB=function(p){_.Jm.call(this);this.deps=p;this.JSC$13417_adsControlFlowManager=XDI(this)};
_.E(gIB,_.Jm);var XDI=function(p){var x=new Fy(function(F,N,h,c){return new fB(p.deps.registry,F,N,h,c,p.deps.experimentApiProvider)},new Set(wAm(p.deps.registry).concat(p.deps.listeners)),p.deps.adEventLogger,p.deps.experimentApiProvider);
_.aG(p,x);return x};var QZj=function(p,x){_.Jm.call(this);this.experimentApiProvider=p;this.eventLoggingSettingsProvider=x;this.eventCount=0};
_.E(QZj,_.Jm);QZj.prototype.logEvent=function(p){N9(this,p)};
var hj=function(p,x,F,N){N9(p,x,void 0,void 0,void 0,F,void 0,void 0,void 0,F.adSlotLoggingData,void 0,void 0,N)},a1=function(p,x,F,N,h){N9(p,x,void 0,void 0,void 0,F,N?N:void 0,void 0,void 0,F.adSlotLoggingData,N?N.adLayoutLoggingData:void 0,void 0,h)},EIv=function(p,x,F){N9(p,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,F,void 0,void 0,void 0,F.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:x})},N9=function(p,x,F,N,h,c,M,f,K,t,d,v,C){C=C===void 0?0:C;
zeB(p.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+x,"slot:",c,"layout:",M,"ping:",f,"Opportunity:",{opportunityType:F,associatedSlotId:N,slotsFromOpportunity:h,triggerBundle:K,adSlotLoggingData:t,adLayoutLoggingData:d});try{var X=function(){p.experimentApiProvider.get();if(x!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){x||_.hI("Empty PACF event type",c,M);var Q=p.eventLoggingSettingsProvider.get();var b;(b=Q.alwaysIncludeDebugData)||(Q.experimentApiProvider.get(),b=
!1);Q=b;b={eventType:x,eventOrder:++p.eventCount};var A={};c&&(A.slotData=ur6(Q,c));if(M){var Y={type:M.layoutType,controlFlowManagerLayer:bGJ.get(M.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Q&&(Y.debugData={layoutId:M.layoutId});A.layoutData=Y}f&&(A.pingData={pingDispatchStatus:f.dispatchStatus,serializedAdPingMetadata:f.ping.serializedAdPingMetadata,pingIndex:f.index});K&&(A.triggerData=AVB(K.trigger,K.category));F&&(A.opportunityData=YnE(Q,F,N,h));b.adClientData=A;t&&(b.serializedSlotAdServingData=
t.serializedSlotAdServingDataEntry);d&&(b.serializedAdServingData=d.serializedAdServingDataEntry);v&&(b.errorInfo=v);_.E$("adsClientStateChange",{adsClientEvent:b})}};
C&&C>0?_.vZ(_.nP(),function(){return X()},C):X()}catch(Q){zeB(p.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.vZ(_.nP(),function(){_.hI(Q instanceof Error?Q:String(Q),c,M,{pacf_message:"exception during pacf logging"})})}};var sZB=function(p,x){QZj.call(this,p,x)};
_.E(sZB,QZj);var nID=function(){},zeB=function(p,x){return _.S(x)};var bhK=function(){var p=new yvn;this.JSC$13436_adsControlFlowManager=(new gIB(p)).JSC$13417_adsControlFlowManager},yvn=function(){_.Jm.call(this);
var p=this;this.experimentApiProvider=new Kbv(function(){return new nID});
var x=new Kbv(function(){return new qxj(p.experimentApiProvider)});
this.adEventLogger=new sZB(this.experimentApiProvider,x);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.E(yvn,_.Jm);var AvJ=function(){},uZm,KB=function(){uZm||(uZm=new AvJ);
return uZm},q9=function(p){if(!p.JSC$13447_externallyManagedSlotAdapterCallback){var x=(new bhK).JSC$13436_adsControlFlowManager;
p.JSC$13447_externallyManagedSlotAdapterCallback=x}return p.JSC$13447_externallyManagedSlotAdapterCallback},Yxl=function(p,x,F){var N=x.opportunityType,h=Error("Ih");
if(N!==void 0){var c=q9(p);ZhZ(c,N,void 0,F)}else _.hI(h,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});c=[];if(x.adSlotAndLayoutMetadata!==void 0){x=_.a(x.adSlotAndLayoutMetadata);for(var M=x.next();!M.done;M=x.next()){var f=M.value;if(M=f.adSlotMetadata)if(c.push(M),p.onSlotReceivedExternallyManaged(M,F),f.adLayoutMetadata){f=_.a(f.adLayoutMetadata);for(var K=f.next();!K.done;K=f.next())p.onLayoutReceivedExternallyManaged(M,K.value,F)}else F>0&&_.hI("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
N,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else F>0&&_.hI("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+N,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else F>0&&_.hI("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+N,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(N!==void 0)p.onOpportunityProcessedExternallyManaged(N,c,void 0,F);else _.hI(h,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
AvJ.prototype.onSlotReceivedExternallyManaged=function(p,x){p=qD(p);if(p instanceof KE)_.hI(p,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else q9(this).onSlotReceivedExternallyManaged(p,x)};
AvJ.prototype.onLayoutReceivedExternallyManaged=function(p,x,F){p=qD(p);x=V2d(x);if(p instanceof KE)_.hI(p,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(x instanceof ZD)_.hI(x,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else q9(this).onLayoutReceivedExternallyManaged(p,x,F)};
AvJ.prototype.onOpportunityProcessedExternallyManaged=function(p,x,F,N){var h=[];x=_.a(x);for(var c=x.next();!c.done;c=x.next())c=qD(c.value),c instanceof KE?_.hI(c,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):h.push(c);q9(this).onOpportunityProcessedExternallyManaged(p,h,F,N)};
var wDI=function(p,x){x=qD(x);if(x instanceof KE)_.hI(x,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var F=q9(p);hj(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",x);F=_.a(F.adsControlFlowEventListeners);for(var N=F.next();!N.done;N=F.next())N=lo(N.value,x),N.slotLifecycleStage!=="not_scheduled"&&M9(N.slot,N.slotLifecycleStage,"onSlotScheduled"),N.slotLifecycleStage="scheduled";p=q9(p);hj(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",x);p=_.a(p.adsControlFlowEventListeners);
for(F=p.next();!F.done;F=p.next())F.value.onSlotEntered(x)}},Gg6=function(p,x){x=qD(x);
if(x instanceof KE)_.hI(x,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var F=q9(p);hj(F.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",x);F=_.a(F.adsControlFlowEventListeners);for(var N=F.next();!N.done;N=F.next())N.value.onSlotExited(x);p=q9(p);hj(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",x);p=_.a(p.adsControlFlowEventListeners);for(F=p.next();!F.done;F=p.next())F.value.onSlotUnscheduled(x)}},VMB=function(p,x,F){x=qD(x);
F=V2d(F);if(x instanceof KE)_.hI(x,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(F instanceof ZD)_.hI(F,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var N=q9(p);a1(N.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",x,F);N=_.a(N.adsControlFlowEventListeners);for(var h=N.next();!h.done;h=N.next())h.value.onLayoutScheduled(x,F);p=q9(p);a1(p.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",x,F);p=_.a(p.adsControlFlowEventListeners);
for(N=p.next();!N.done;N=p.next())vIm(N.value,x,F)}},Zg=function(p,x,F){x=qD(x);
F=V2d(F);if(x instanceof KE)_.hI(x,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(F instanceof ZD)_.hI(F,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var N=q9(p);a1(N.adEventLogger,yVp("normal"),x,F);N=_.a(N.adsControlFlowEventListeners);for(var h=N.next();!h.done;h=N.next())h.value.onLayoutExited(x,F,"normal");p=q9(p);p=_.a(p.adsControlFlowEventListeners);for(N=p.next();!N.done;N=p.next())SxI(N.value,x,F)}};_.tj=_.mO(function(p){var x=_.Vg(p,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});p=Object.assign({},x);var F=x.data;x=x.customCommandResolver;var N=(delete p.data,delete p.customCommandResolver,p),h=_.oc();_.B2(h,function(){return F().interaction},x,function(){var f;
return(f=N.listenToTapEvent)==null?void 0:f.call(N)});
_.U$(h,{visibilityCallback:function(f){var K,t=(K=F().interaction)==null?void 0:K.onFirstVisible;f&&(t&&_.su(t),N.setOnErrorHandler()&&W6p(h))},
showOption:_.li});p=_.a(_.hu(!1,void 0,"eiYvIe"));var c=p.next().value,M=p.next().value;p=_.h0(function(){var f;((f=N.setTouchEndHandler)==null?0:f.call(N))&&!c()&&(h.value.click(),M(!0),setTimeout(function(){M(!1)},100));
return!1});
return _.Z("ad-image-view-model",{class:function(){var f,K=[((f=F().interaction)==null?0:f.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],t;((t=N.isGridViewEnabled)==null?0:t.call(N))&&K.push("ytwAdImageViewModelHostInGridView");return K.join(" ")},
el:h,"on:touchend":p},_.Z("div",{class:"ytwAdImageViewModelHostImageContainer"},_.Z(_.VE,{data:function(){var f;return{sources:F().imageSources,contentMode:(f=F().imageProperties)==null?void 0:f.contentMode}},
alt:function(){var f,K;return((f=F().interaction)==null?void 0:(K=f.accessibility)==null?void 0:K.label)||""},
targetHeight:N.targetHeight,targetWidth:N.targetWidth,preserveHeight:N.preserveHeight,preserveWidth:N.preserveWidth,useWidth:N.useWidth,style:function(){var f,K;return"vertical-align: bottom;"+(((f=F().background)==null?0:f.color)?"background-color:"+_.gX((K=F().background)==null?void 0:K.color)+";":"")},
className:function(){return N.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var f,K;return(K=(f=N.setDraggable)==null?void 0:f.call(N))!=null?K:void 0}})))},"Ya");var Wb6=_.mO(function(p){var x=p.data,F=p.listenToTapEvent,N=_.oc();_.S("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.B2(N,function(){return x().interaction},void 0,function(){return F==null?void 0:F()});
_.U$(N,{visibilityCallback:function(c){var M,f=(M=x().interaction)==null?void 0:M.onFirstVisible;c&&f&&_.su(f)},
showOption:_.li});p=_.h0(function(){if(_.S("enable_web_home_top_landscape_image_layout_legacy_click_command")){var c,M=(c=x().interaction)==null?void 0:c.onTap;M&&_.hG(N.value,"yt-navigate",{endpoint:_.g$(M)})}});
var h=function(){};
return _.Z("ad-button-hover-overlay-view-model",{"on:click":p,class:function(){var c;return((c=x().interaction)==null?0:c.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:N},function(){return _.S("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.Z(_.Es,{data:function(){return x().button}},{adButtonViewModel:function(c){return _.Z(_.aK,{data:c.data,
customCommandResolver:h})}}):_.Z(_.Es,{data:function(){return x().button}},{adButtonViewModel:_.aK})}())},"Za");var tI;_.o7(_.mO(function(p){var x=p.data;var F=_.oc();_.S("stop_av_measurement_on_detach")&&_.E_(function(){vc(F)});
_.B2(F,function(){return x().interaction},void 0,function(){return!0});
_.U$(F,{visibilityCallback:function(c){if(c){var M;(c=(M=x().interaction)==null?void 0:M.onFirstVisible)&&_.su(c);var f;if(M=(f=x().adLayoutData)==null?void 0:f.activeViewData)dV(F,M),_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&vc(F)})}else _.S("stop_av_measurement_on_detach")&&vc(F)},
showOption:_.li,hideOption:cJ});p=_.a(_.hu(!1,void 0,"yzu6qe"));var N=p.next().value,h=p.next().value;_.jl(F,"mouseenter",function(){h(!0)});
_.jl(F,"mouseleave",function(){h(!1)});
return _.Z("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:F},_.Z("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.a4({"max-width":function(){return _.S("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.Z("div",{class:function(){var c;
a:{var M;switch((c=_.r(x().thumbnailImage,C4))==null?void 0:(M=c.imageProperties)==null?void 0:M.renderingAspect){case "RENDERING_ASPECT_SQUARE":c="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":c="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}c=void 0}return c}},_.Z(_.Es,{data:function(){return x().thumbnailImage}},{adImageViewModel:function(c){return _.Z(_.tj,
{data:c.data,
listenToTapEvent:!0,setTouchEndHandler:_.S("enable_top_landscape_image_experiment_dom_id_web")})}})),_.Z("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.Z(_.D9,{cond:function(){var c,M,f;
return(c=_.r(x().thumbnailImage,C4))==null?void 0:(M=c.imageProperties)==null?void 0:(f=M.overlayIcon)==null?void 0:f.iconImage},
then:function(c){return _.Z(_.VE,{data:c,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.Z("div",{class:function(){return N()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.Z(_.Es,{data:function(){return x().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(c){return _.Z(Wb6,
{data:c.data,
listenToTapEvent:!0})}}))),_.Z("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.Z(_.Es,{data:function(){return x().feedAdMetadata}},{feedAdMetadataViewModel:function(c){return _.Z(T2l,{data:c.data,
listenToTapEvent:!0,setTouchEndHandler:_.S("enable_top_landscape_image_experiment_dom_id_web")})}})))},"$a"),"compact-landscape-no-button-layout-view-model",{props:{data:_.G2}});_.o7(_.mO(function(p){var x=p.data;var F=_.oc();_.S("stop_av_measurement_on_detach")&&_.E_(function(){vc(F)});
var N=_.g5(_.br);_.B2(F,function(){return x().interaction});
_.U$(F,{visibilityCallback:function(t){if(t){var d;(t=(d=x().interaction)==null?void 0:d.onFirstVisible)&&_.su(t);var v;if(d=(v=x().adLayoutData)==null?void 0:v.activeViewData)dV(F,d),_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&vc(F)})}else _.S("stop_av_measurement_on_detach")&&vc(F)},
showOption:_.li,hideOption:cJ});var h=_.h0(function(t){var d,v,C=(d=_.r(x().adImage,C4))==null?void 0:(v=d.interaction)==null?void 0:v.onTap;C&&(_.S("enable_square_image_components_ui_web_with_custom_event")?_.hG(F.value,"yt-navigate",{endpoint:_.g$(C)}):A1Z(t,C))}),c=_.h0(function(){var t,d,v=(t=_.r(x().adButton,q1D))==null?void 0:(d=t.interaction)==null?void 0:d.onTap;
v&&_.hG(F.value,"yt-navigate",{endpoint:_.g$(v)})}),M=function(){};
p={};var f={},K={};return _.Z("square-image-layout-view-model",{class:_.$L("ytwSquareImageLayoutViewModelHost",(p.ytwSquareImageLayoutViewModelHostColumn=N,p)),el:F},_.Z("div",{class:_.$L("ytwSquareImageLayoutViewModelHostImage",(f.ytwSquareImageLayoutViewModelHostColumnImage=N,f))},function(){return _.S("enable_square_image_components_ui_web_with_native_img")?_.Z("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var t,d,v;return((t=_.r(x().adImage,C4))==null?void 0:(d=t.imageSources)==
null?void 0:(v=d[0])==null?void 0:v.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:!1,"on:click":h}):_.Z(_.Es,{data:function(){return x().adImage}},{adImageViewModel:function(t){return _.Z(_.tj,{data:t.data,
isGridViewEnabled:N,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.Z("div",{class:_.$L("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(K.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=N,K))},_.Z(_.Es,{data:function(){return x().feedAdMetadata}},{feedAdMetadataViewModel:T2l}),function(){return _.S("enable_square_image_components_ui_web_with_float_button")?_.Z("div",{"on:click":c},_.Z(_.Es,{data:function(){return x().adButton}},
{adButtonViewModel:function(t){var d={};
return _.Z(_.aK,{data:t.data,customCommandResolver:M,className:_.$L((d.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,d.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=N,d))})}})):_.Z(_.Es,{data:function(){return x().adButton}},{adButtonViewModel:function(t){var d={};
return _.Z(_.aK,{data:t.data,className:_.$L((d.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,d.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=N,d))})}})}()))},"ab"),"square-image-layout-view-model",{props:{data:_.G2}});_.o7(_.mO(function(p){var x=p.data;var F=p.noBottomMargin;var N=_.oc();_.S("stop_av_measurement_on_detach")&&_.E_(function(){vc(N)});
_.S("enable_web_home_top_landscape_image_layout_level_click")&&_.B2(N,function(){return x().interaction},void 0,function(){return!0});
p=function(){return x().interaction};
p!==void 0&&p!==null||_.uO(Error("Jh"));_.U$(N,{visibilityCallback:function(K){if(K){var t;(K=(t=x().interaction)==null?void 0:t.onFirstVisible)&&_.su(K);var d;if(t=(d=x().adLayoutData)==null?void 0:d.activeViewData)dV(N,t),_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&vc(N)})}else _.S("stop_av_measurement_on_detach")&&vc(N)},
showOption:_.li,hideOption:cJ});var h=function(){var K,t,d;return(K=_.r(x().thumbnailImage,C4))==null?void 0:(t=K.background)==null?void 0:(d=t.backgroundImageSource)==null?void 0:d.imageSources};
p=_.a(_.hu(!1,void 0,"rWKgsf"));var c=p.next().value,M=p.next().value;_.jl(N,"mouseenter",function(){M(!0)});
_.jl(N,"mouseleave",function(){M(!1)});
var f=function(){return c()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.Z("top-landscape-image-layout-view-model",{class:function(){var K;return((K=x().interaction)==null?0:K.onTap)&&_.S("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:N},_.Z("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.Z(_.D9,{cond:function(){return h()&&h().length>0},
then:function(){return _.Z("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.a4({top:"0","background-image":function(){return"url("+String(h()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.Z(_.D9,{cond:function(){return!!x().adButtonHoverOverlay},
then:function(){return _.Z("div",{class:f},_.Z(_.Es,{data:function(){return x().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:Wb6}))}}),_.Z("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.Z(_.Es,{data:function(){return x().thumbnailImage}},{adImageViewModel:function(K){return _.Z(_.tj,{data:K.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.S("enable_web_home_top_landscape_image_layout_level_click")})}})),_.Z("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.Z(_.VE,{data:{sources:[{clientResource:{imageName:"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.Z("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.Z(_.Es,{data:function(){return x().feedAdMetadata}},{feedAdMetadataViewModel:function(K){return _.Z(T2l,{data:K.data,
noBottomMargin:function(){return F==null?void 0:F()},
listenToTapEvent:function(){return _.S("enable_web_home_top_landscape_image_layout_level_click")}})}})))},"bb"),"top-landscape-image-layout-view-model",{props:{data:_.G2,
noBottomMargin:_.G2}});_.o7(_.mO(function(p){var x=p.data;var F=_.oc();_.S("stop_av_measurement_on_detach")&&_.E_(function(){vc(F)});
_.U$(F,{visibilityCallback:function(N){if(N){var h;(N=(h=x().interaction)==null?void 0:h.onFirstVisible)&&_.su(N);var c;if(h=(c=x().adLayoutData)==null?void 0:c.activeViewData)dV(F,h),_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&vc(F)})}else _.S("stop_av_measurement_on_detach")&&vc(F)},
showOption:_.li,hideOption:cJ});return _.Z("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:F},_.Z("div",null,_.Z(_.Es,{data:function(){return x().videoLockup}},{lockupViewModel:function(N){return _.Z(q5,{data:N.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999})}})))},"cb"),"video-display-button-group-layout-view-model",{props:{data:_.G2,
noBottomMargin:_.G2}});_.o7(_.mO(function(p){var x=p.data;var F=_.oc();_.S("stop_av_measurement_on_detach")&&_.E_(function(){vc(F)});
_.U$(F,{visibilityCallback:function(N){if(N){var h;(N=(h=x().interaction)==null?void 0:h.onFirstVisible)&&_.su(N);var c;if(h=(c=x().adLayoutData)==null?void 0:c.activeViewData)dV(F,h),_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&vc(F)})}else _.S("stop_av_measurement_on_detach")&&vc(F)},
showOption:_.li,hideOption:cJ});return _.Z("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:F},_.Z("div",null,_.Z(_.Es,{data:function(){return x().videoLockup}},{lockupViewModel:function(N){return _.Z(q5,{data:N.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999})}})))},"db"),"video-display-full-layout-view-model",{props:{data:_.G2,
noBottomMargin:_.G2}});_.Hhv=_.mO(function(p){var x=p.data;p=_.oc();return _.Z("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:p},_.Z(_.D9,{cond:function(){return x().imageBadge},
then:function(F){return _.Z(_.VE,{data:F,alt:""})}}))},"eb");var mK6=_.mO(function(p){var x=p.data;var F=p.customCommandResolver;p=_.oc();_.B2(p,function(){return x().interaction},F);
_.U$(p,{visibilityCallback:function(N){var h,c=(h=x().interaction)==null?void 0:h.onFirstVisible;N&&c&&_.su(c)},
showOption:_.li});return _.Z("carousel-ad-card-image-view-model",{class:function(){var N;return((N=x().interaction)==null?0:N.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:p,"aria-label":function(){var N,h;return(N=x().interaction)==null?void 0:(h=N.accessibility)==null?void 0:h.label}},_.Z(_.Es,{data:function(){return x().adImage}},{adImageViewModel:function(N){return _.Z(_.tj,{data:N.data,
customCommandResolver:F})}}),_.Z("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.Z(_.Es,{data:function(){return x().badge}},{adCardBadgeViewModel:_.Hhv})),_.Z(_.qC,{model:{color:4}}))},"fb");var oIB=_.mO(function(p){var x=_.a(_.hu(0,void 0,"RmZkje")),F=x.next().value,N=x.next().value,h=_.a(_.hu(!1,void 0,"uS7ese"));x=h.next().value;var c=h.next().value,M;_.E_(function(){clearTimeout(M)});
h=_.h0(function(){var t;((t=p.animate)==null?0:t.call(p))?(c(!0),M=setTimeout(function(){c(!1);f()},200)):f();
return!1});
var f=function(){N(tlZ(function(t){return(t+p.numShownItems())%p.data().length}))},K={};
return _.Z("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.Z("div",{class:_.$L("ytwHorizontalCarouselCarouselWrapper")},_.Z("div",{class:_.$L("ytwHorizontalCarouselCarouselInnerWrapper",(K.ytwHorizontalCarouselAnimating=x,K))},_.Z(_.ft,{each:p.data,keyBy:"INDEX"},function(t,d){return _.Z("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.a4({"flex-basis":function(){return"calc((100% - (8px * "+(p.numShownItems()-1)+")) / "+p.numShownItems()+")"},
order:function(){var v=d-F();v<0&&(v+=p.data().length);return v}})},p.children(t,d))}))),_.Z("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":h},p.nextButton()))},"gb");var Ohl=_.mO(function(p){var x=p.data;var F=p.customCommandResolver;var N=p.expansive;p=_.oc();_.U$(p,{visibilityCallback:function(h){var c,M=(c=x().interaction)==null?void 0:c.onFirstVisible;h&&M&&_.su(M)},
showOption:_.li});return _.Z("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:p},_.Z(oIB,{data:function(){var h;return((h=x())==null?void 0:h.carouselAdCards)||[]},
nextButton:function(){return _.Z(_.Es,{data:function(){return x().nextButton}},{buttonViewModel:function(h){var c=h.data;
return _.Z(_.nV,{data:function(){return(N==null?0:N())?Object.assign({},c(),{style:"mono"}):c()},
className:_.S("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(h){return _.Z(_.Es,{data:h},{carouselAdCardImageViewModel:function(c){return _.Z(mK6,{data:c.data,customCommandResolver:F})}})}))},"hb");var jZJ=_.mO(function(p){var x=p.data;var F=p.customCommandResolver;var N=p.className;var h=p.buttonClassName;var c=p.animationEntityKey;var M=p.expansive;return _.Z("carousel-button-view-model",{class:_.$L("ytwCarouselButtonViewModelHost",N)},_.Z(_.Es,{data:function(){return x().carousel}},{carouselAdCardCollectionViewModel:function(f){return _.Z(Ohl,{data:f.data,
customCommandResolver:F,expansive:M})}}),_.Z(_.Es,{data:function(){return x().button}},{adButtonViewModel:function(f){var K=f.data;
return _.Z(_.aK,{data:function(){return(M==null?0:M())?Object.assign({},K(),{style:"AD_BUTTON_STYLE_TONAL"}):K()},
className:h,customCommandResolver:F,animationEntityKey:c})}}))},"ib");_.Lbv=_.mO(function(p){var x=p.data;p=p.className;var F=_.oc();_.J9(function(){var N;((N=x())==null?0:N.backgroundColor)&&F.value.setAttribute("data-background-color",String(x().backgroundColor))});
return _.Z("pivot-button-view-model",{el:F,class:_.$L("ytwPivotButtonViewModelHost",p)},_.Z(_.fQ,{command:function(){var N=x();N=N.onClickCommand?_.g$(N.onClickCommand):N.contentDescription?_.UJ(N.contentDescription):void 0;return N},
ariaLabel:function(){return x().contentDescription}},_.Z(_.D9,{cond:function(){return x().thumbnail},
then:function(N){return _.Z(_.VE,{data:N,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.Z(_.D9,{cond:function(){return x().icon},
then:function(N){return _.Z(_.DS,{icon:function(){return N().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"jb");_.PDI=_.mO(function(p){var x=p.data;var F=p.buttonShapeOverrideables;return _.Z("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.Z(_.Es,{data:function(){return x().buttonViewModels}},{buttonViewModel:function(N){return _.Z(_.nV,{data:N.data,
buttonOverrides:F})},
likeButtonViewModel:function(N){return _.Z(_.pV6,{data:N.data,buttonShapeOverrideables:F})},
dislikeButtonViewModel:function(N){return _.Z(_.ePI,{data:N.data,buttonShapeOverrideables:F})}}))},"kb");var TTl=_.mO(function(p){var x=p.avatar;var F=p.headline;var N=p.badge;var h=p.description;var c=p.expansive;p={};return _.Z("yt-ad-metadata-shape",{class:_.$L("ytAdMetadataShapeHost",(p.ytAdMetadataShapeHostLarge=c,p))},_.Z("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.Z(_.D9,{cond:x,then:function(M){return _.Z(_.OGB,{data:function(){return(c==null?0:c())?Object.assign({},M(),{size:"AD_AVATAR_SIZE_MPLUS"}):M()}})}}),_.Z("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.Z(_.KQ,{text:F,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.Z(_.D9,{cond:N,then:function(M){return _.Z(_.fS,{data:function(){return(c==null?0:c())?Object.assign({},M(),{style:"AD_BADGE_STYLE_STARK"}):M()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.Z("h2",{class:"ytAdMetadataShapeHostDescription"},_.Z(_.KQ,{text:h,
linkInheritColor:!0})))},"lb");var BTZ=_.mO(function(p){var x=p.data;var F=p.onShow;var N=p.expansive;p=_.oc();_.B2(p,function(){return x().interaction});
_.J9(function(){var c,M=(c=x().animatedRenderingConfig)==null?void 0:c.delayedSecondsToVisible;if(M){var f=setTimeout(F,M*1E3);_.E_(function(){clearTimeout(f)})}});
var h={};return _.Z("reels-ad-card-buttoned-view-model",{class:_.$L(function(){var c;return((c=x().interaction)==null?0:c.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(h.ytwReelsAdCardButtonedViewModelHostExpansive=N,h)),
el:p},_.Z(TTl,{avatar:function(){return _.r(x().avatar,fqv)},
headline:function(){return x().headline},
badge:function(){return _.r(x().adBadge,KZv)},
description:function(){return x().description},
expansive:N}),_.Z(_.Es,{data:function(){return x().ctaButton}},{adButtonViewModel:function(c){var M=c.data;
return _.Z(_.aK,{data:function(){return(N==null?0:N())?Object.assign({},M(),{style:"AD_BUTTON_STYLE_FILLED"}):M()}})}}))},"mb");var Rej=_.mO(function(p){var x=p.data;p=p.expansive;var F=_.oc();_.S("web_ad_metadata_clickable")&&_.B2(F,function(){return x().interaction});
var N={};N=_.pQ("ytwReelsAdMetadataViewModelHost",(N.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.S("web_ad_metadata_clickable"),N));return _.Z("reels-ad-metadata-view-model",{class:N,el:F},_.Z(TTl,{avatar:function(){return _.r(x().avatar,fqv)},
headline:function(){return x().headline},
badge:function(){return _.r(x().adBadge,KZv)},
description:function(){return x().description},
expansive:p}))},"nb");var kgm={iconPosition:"icon-with-label",size:"L"},UKB=_.mO(function(p){var x=p.data;p=p.overlayDensity;var F=_.oc(),N=_.GD(p,0);_.rx(function(){F.value.setAttribute("overlay-density",String(N()))});
var h=function(){var v;return(v=x().reelsAdCardButtonedEntityKey)!=null?v:""},c=function(){return h()+"/ad_button"},M=_.MN(gm$,h),f=function(){var v,C;
return(C=(v=M())==null?void 0:v.value)!=null?C:!1},K=_.g5(L6E),t=function(){return Object.assign({},kgm,(K()||N()===2)&&{style:"overlay-dark"})};
p={};var d={};return _.Z("reels-player-overlay-layout-view-model",{class:_.$L("ytwReelsPlayerOverlayLayoutViewModelHost",(p.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!x().extension},p.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},p)),
el:F},_.Z("div",{class:_.$L("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(d.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},d))},_.Z("div",{"aria-hidden":function(){return f()},
class:_.$L("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return f()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.a4({"transition-duration":function(){return B26(x())}})},_.Z(_.Es,{data:function(){return x().adMetadata}},{reelsAdMetadataViewModel:function(v){return _.Z(Rej,{data:v.data,
expansive:function(){return N()===1}})}}),_.Z(_.D9,{cond:function(){return x().extension},
then:function(v){return _.Z("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.Z(_.Es,{data:v},{adButtonViewModel:function(C){return _.Z(_.aK,{data:C.data,animationEntityKey:c,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(C){return _.Z(jZJ,{data:C.data,animationEntityKey:c,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return N()===1}})}}))}})),_.Z("div",{"aria-hidden":function(){return!f()},
class:_.$L("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return f()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.a4({"transition-duration":function(){return B26(x())}})},_.Z(_.Es,{data:function(){return x().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(v){return _.Z(BTZ,{data:v.data,
onShow:function(){_.wo(_.KV("booleanEntity",h(),{key:h(),value:!0}))},
expansive:function(){return N()===1}})}}))),_.Z("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.Z(_.Es,{data:function(){return x().actions}},{reelActionBarViewModel:function(v){return _.Z(_.PDI,{data:v.data,
buttonShapeOverrideables:t})}}),_.Z(_.Es,{data:function(){return x().menu}},{buttonViewModel:function(v){return _.Z(_.nV,{data:v.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},t(),{type:"tonal"})}})}}),_.Z(_.Es,{data:function(){return x().pivotButton}},{pivotButtonViewModel:function(v){return _.Z(_.Lbv,{data:v.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"ob");_.o7(UKB,"reels-player-overlay-layout-view-model",{props:{data:_.G2,overlayDensity:_.G2}});var ihk=function(){var p=_.m.apply(this,arguments)||this;p.noBottomMargin=!1;p.overlayDensity=0;return p};
_.E(ihk,_.m);_.l=ihk.prototype;
_.l.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.S("enable_short_dr_for_desktop_launchable")?
{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]"}}}}}};
_.l.ready=function(){var p=this;$Pk(function(){p.isAttached&&DD(p.JSC$13488_storedAdSlotMetadata,p.JSC$13488_storedAdLayoutMetadata,p.adSlotMetadata,p.adLayoutMetadata)&&Zg(KB(),p.JSC$13488_storedAdSlotMetadata,p.JSC$13488_storedAdLayoutMetadata)})};
_.l.attached=function(){DD(this.JSC$13488_storedAdSlotMetadata,this.JSC$13488_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&VMB(KB(),this.JSC$13488_storedAdSlotMetadata,this.JSC$13488_storedAdLayoutMetadata)};
_.l.detached=function(){DD(this.JSC$13488_storedAdSlotMetadata,this.JSC$13488_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Zg(KB(),this.JSC$13488_storedAdSlotMetadata,this.JSC$13488_storedAdLayoutMetadata)};
_.l.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13488_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13488_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13488_storedAdLayoutMetadata!==void 0&&this.JSC$13488_storedAdSlotMetadata!==void 0&&Zg(KB(),this.JSC$13488_storedAdSlotMetadata,this.JSC$13488_storedAdLayoutMetadata),VMB(KB(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13488_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13488_storedAdSlotMetadata=this.adSlotMetadata)};
_.R8.Object.defineProperties(ihk.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.adLayoutMetadata}}});
var dy=ihk;dy.prototype.onAdMetadataChanged=dy.prototype.onAdMetadataChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],dy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],dy.prototype,"rendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],dy.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],dy.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],dy.prototype,"noBottomMargin",void 0);_.B([_.H(),_.k("design:type",Object)],dy.prototype,"overlayDensity",void 0);_.B([_.w("data.adLayoutMetadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],dy.prototype,"adLayoutMetadata",null);_.B([_.H(),_.k("design:type",Object)],dy.prototype,"adSlotMetadata",void 0);
_.B([_.W("adLayoutMetadata","adSlotMetadata"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dy.prototype,"onAdMetadataChanged",null);dy=_.B([_.L({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],dy);
_.P(dy,"ytd-in-feed-ad-layout-renderer",function(){if(zkD!==void 0)return zkD;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return zkD=p},
{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var IGv;var $KB;var eek=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return p};
_.E(eek,_.m);_.l=eek.prototype;_.l.computeHasLiveDescription=function(p){return!(p==null||!p.liveDescription)};
_.l.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.l.onYtToggleButton=function(p){var x,F=(x=this.data)==null?void 0:x.videoReminderEntityKey;F&&this.ytdReduxBehavior.dispatch(_.KV("upcomingEventReminderStateEntity",F,{key:F,state:p.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.l.attached=function(){this.updateChannelBanner()};
_.l.dataChanged=function(){this.updateChannelBanner()};
_.l.videoReminderStateChanged=function(){var p;this.videoReminderState&&_.r((p=this.data)==null?void 0:p.cta,_.ux)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.l.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var p=_.Ou(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);p&&(p.startsWith("//")&&(p="https:"+p),this.hostElement.classList.add("channel-banner"),_.eV(this.hostElement,{"--ytvmh-channel-banner":"url("+p+")"}))}else _.S("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.l.onPlayerReady=function(){this.onIronResize()};
_.l.maybeFlushDebouncer=function(){_.S("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(p){var x;p=(x=p.getElementsByTagName("yt-attributed-string"))==null?void 0:x[0];Jj$(p==null?void 0:p.polymerController)})};
_.l.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var p=_.n(this.hostElement).querySelector("#live-description"),x;p&&((x=this.data)==null?0:x.shortLiveDescription)&&p.clientWidth<p.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
var vK=eek;vK.prototype.onIronResize=vK.prototype.onIronResize;vK.prototype.videoReminderStateChanged=vK.prototype.videoReminderStateChanged;vK.prototype.dataChanged=vK.prototype.dataChanged;vK.prototype.onYtToggleButton=vK.prototype.onYtToggleButton;_.B([_.u(_.n7),_.k("design:type",Object)],vK.prototype,"ironResizableBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],vK.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],vK.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],vK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],vK.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],vK.prototype,"data",void 0);_.B([_.H({selectorArgs:["data.videoReminderEntityKey"],selector:EGJ}),_.k("design:type",Object)],vK.prototype,"videoReminderState",void 0);
_.B([_.H({reflectToAttribute:!0,value:_.S("web_modern_buttons")}),_.k("design:type",Boolean)],vK.prototype,"rounded",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.k("design:type",Boolean)],vK.prototype,"hasLiveDescription",void 0);_.B([_.H({reflectToAttribute:!0,value:_.S("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.k("design:type",Boolean)],vK.prototype,"resizableAdBannerSafariFix",void 0);
_.B([_.H({reflectToAttribute:!0,value:_.S("align_three_dot_menu_with_title_description")}),_.k("design:type",Boolean)],vK.prototype,"menuFix",void 0);_.B([_.Nu("yt-formatted-string"),_.k("design:type",Array)],vK.prototype,"formattedStrings",void 0);_.B([_.Ff("#cta-button"),_.k("design:type",HTMLElement)],vK.prototype,"ctaButton",void 0);_.B([_.V("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],vK.prototype,"onYtToggleButton",null);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vK.prototype,"dataChanged",null);_.B([_.W("videoReminderState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vK.prototype,"videoReminderStateChanged",null);_.B([_.V("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vK.prototype,"onIronResize",null);
vK=_.B([_.L({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],vK);
_.P(vK,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if($KB!==void 0)return $KB;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return $KB=p},{mode:1});var poI;var xAC=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};p.isLocked=!1;return p};
_.E(xAC,_.m);_.l=xAC.prototype;_.l.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.l.onExpandedChanged=function(){this.expanded&&_.Mt(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.l.onMouseOver=function(){this.maybeExpand()};
_.l.onTap=function(){this.maybeExpand()};
_.l.onExpandableTileExpanding=function(p){p!==this&&(this.expanded=!1)};
_.l.onExpandableTileLockAndCollapse=function(p){this.isLocked=!0;p!==this&&(this.expanded=!1)};
_.l.onExpandableTileUnlock=function(){this.isLocked=!1};
var Jj=xAC;Jj.prototype.onTap=Jj.prototype.onTap;Jj.prototype.onMouseOver=Jj.prototype.onMouseOver;Jj.prototype.onExpandedChanged=Jj.prototype.onExpandedChanged;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Jj.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Jj.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Jj.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Jj.prototype,"expanded",void 0);_.B([_.cT("expanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Jj.prototype,"onExpandedChanged",null);_.B([_.V("mouseover"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Jj.prototype,"onMouseOver",null);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Jj.prototype,"onTap",null);
Jj=_.B([_.L({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],Jj);
_.P(Jj,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(poI!==void 0)return poI;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return poI=p},{mode:1});var F06;var CB,NGv=function(){var p=_.m.apply(this,arguments)||this;p.buttonOverrides={style:"overlay"};p.useYtdPlayer=_.S("use_ytd_player_for_desktop_masthead");p.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};p.playbackFinished=!1;p.JSC$13500_playerManager=null;p.JSC$13500_mastheadCounter=new CGm;return p};
_.E(NGv,_.m);_.l=NGv.prototype;_.l.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.l.created=function(){this.JSC$13500_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13500_playerManager=new KJ)};
_.l.ready=function(){var p=this;this.JSC$13500_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var x=_.n(this.hostElement).querySelector("#player");this.useYtdPlayer?x.style.display="none":(this.ytdPlayer.style.display="none",daZ(this.JSC$13500_playerManager,x,function(){p.onPlaybackEnded()}),_.n(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var F;
((F=p.data)==null?0:F.navigationEndpoint)&&_.hG(p.hostElement,"yt-navigate",{endpoint:p.data.navigationEndpoint})}))};
_.l.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13500_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.l.attached=function(){var p=this;_.zD(function(){p.maybePlayVideo()})};
_.l.maybePlayVideo=function(){var p=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$13500_playerManager.playVideo(),this.getPlayerPromise().then(function(){p.JSC$13500_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.l.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13500_playerManager.stopVideo()};
_.l.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var p,x={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((p=this.data.playbackStartMs)!=null?p:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(x);this.setupYtdPlayer()}else JLv(this.JSC$13500_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(v2k(this.JSC$13500_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.l.getPlayerPromise=function(){return this.JSC$13500_playerManager.getPlayerPromise()};
_.l.onYtToggleButton=function(p){this.useYtdPlayer?this.toggleMute(p.detail.toggled):p.detail.toggled?this.JSC$13500_playerManager.mute():this.JSC$13500_playerManager.unMute()};
_.l.onYtNavigate=function(p){var x=r7w(p.detail.endpoint),F=Eez(this.data.clickthroughReportingData);x&&F&&(p.detail.endpoint.watchEndpoint?p.detail.tempData=F:_.I9(x,F,30))};
_.l.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.l.onExpandedChanged=function(){this.expanded?(_.Mt(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.l.onMouseOver=function(){this.maybeExpand()};
_.l.onTap=function(){this.maybeExpand()};
_.l.onExpandableTileExpanding=function(p){p!==this&&(this.stopVideo(),this.expanded=!1)};
_.l.onExpandableTileLockAndCollapse=function(p){p!==this&&(this.isLocked=!0,this.expanded=!1)};
_.l.onExpandableTileUnlock=function(){this.isLocked=!1};
_.l.lockAndCollapseExpandableTiles=function(){_.lA(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.l.unlockExpandableTiles=function(){_.lA(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.l.setupYtdPlayer=function(){var p=this,x;return _.D(function(F){if(F.nextAddress==1)return _.q(F,p.ytdPlayer.getPlayerPromise(),2);x=F.yieldResult;x.addEventListener("onStateChange",function(N){p.onPlayerStateChange(N)});
x.addEventListener("onCueRangeExit",function(N){p.onCueRangeExit(N)});
_.JB(F)})};
_.l.onPlayerStateChange=function(p){if(p===1&&(p=this.ytdPlayer.getPlayer())){var x=p.getCurrentTime(),F,N,h=x+((N=(F=this.data)==null?void 0:F.playbackDurationMs)!=null?N:0)/1E3;p.addCueRange("playback",x,h);this.JSC$13500_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.l.onCueRangeExit=function(p){p==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.l.toggleMute=function(p){var x=this,F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,x.ytdPlayer.getPlayerPromise(),2);F=N.yieldResult;p?F.mute():F.unMute();_.JB(N)})};
var SY=CB=NGv;CB.prototype.onTap=CB.prototype.onTap;CB.prototype.onMouseOver=CB.prototype.onMouseOver;CB.prototype.onExpandedChanged=CB.prototype.onExpandedChanged;CB.prototype.onYtNavigate=CB.prototype.onYtNavigate;CB.prototype.onYtToggleButton=CB.prototype.onYtToggleButton;CB.prototype.dataChanged=CB.prototype.dataChanged;SY.JSC$13499_PLAYBACK_CUE_RANGE="playback";_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],SY.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],SY.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],SY.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],SY.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],SY.prototype,"expanded",void 0);_.B([_.H(),_.k("design:type",Object)],SY.prototype,"buttonOverrides",void 0);
_.B([_.H(),_.k("design:type",Object)],SY.prototype,"useYtdPlayer",void 0);_.B([_.Ff("#ytd-player"),_.k("design:type",Object)],SY.prototype,"ytdPlayer",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],SY.prototype,"dataChanged",null);_.B([_.V("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],SY.prototype,"onYtToggleButton",null);
_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],SY.prototype,"onYtNavigate",null);_.B([_.cT("expanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],SY.prototype,"onExpandedChanged",null);_.B([_.V("mouseover"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],SY.prototype,"onMouseOver",null);
_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],SY.prototype,"onTap",null);SY=CB=_.B([_.L({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],SY);
_.P(SY,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(F06!==void 0)return F06;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return F06=p},{mode:1});var hFJ;var ry=function(){return _.m.apply(this,arguments)||this};
_.E(ry,_.m);ry.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
ry.prototype.onShow=function(){var p=_.n(this.hostElement).querySelector("#live-description"),x;p&&((x=this.data)==null?0:x.shortLiveDescription)&&p.clientWidth<p.scrollWidth&&this.hostElement.classList.add("short-live-description")};
ry.prototype.onYtToggleButton=function(p){var x,F=(x=this.data)==null?void 0:x.videoReminderEntityKey;F&&this.ytdReduxBehavior.dispatch(_.KV("upcomingEventReminderStateEntity",F,{key:F,state:p.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
ry.prototype.videoReminderStateChanged=function(){var p;this.videoReminderState&&_.r((p=this.data)==null?void 0:p.cta,_.ux)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
var E2=ry;E2.prototype.videoReminderStateChanged=E2.prototype.videoReminderStateChanged;E2.prototype.onYtToggleButton=E2.prototype.onYtToggleButton;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],E2.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],E2.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],E2.prototype,"ytdReduxBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],E2.prototype,"data",void 0);_.B([_.H({selectorArgs:["data.videoReminderEntityKey"],selector:EGJ}),_.k("design:type",Object)],E2.prototype,"videoReminderState",void 0);_.B([_.V("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],E2.prototype,"onYtToggleButton",null);
_.B([_.W("videoReminderState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],E2.prototype,"videoReminderStateChanged",null);E2=_.B([_.L({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],E2);
_.P(E2,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(hFJ!==void 0)return hFJ;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return hFJ=p},{mode:_.UQ("kevlar_poly_si_batch_j065")?1:2});var lBl;var Xy,cyb=function(){var p=_.m.apply(this,arguments)||this;p.useYtdPlayer=_.S("use_ytd_player_for_desktop_masthead");p.buttonOverrides={style:"overlay"};p.JSC$13508_playerManager=null;p.JSC$13508_mastheadCounter=new CGm;p.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return p};
_.E(cyb,_.m);_.l=cyb.prototype;_.l.configureRendererStamper=function(){return{"data.muteButton":{id:"mute-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.replayButton":{id:"replay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.thumbnailOverlays":{id:"thumbnail-overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.l.created=function(){this.JSC$13508_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13508_playerManager=new KJ)};
_.l.ready=function(){var p=this;this.JSC$13508_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var x;(x=this.embeddedPlayer)==null||x.remove()}else{var F;(F=this.ytdPlayer)==null||F.remove();daZ(this.JSC$13508_playerManager,this.embeddedPlayer,function(){p.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){p.data&&p.data.navigationEndpoint&&_.hG(p.hostElement,"yt-navigate",{endpoint:p.data.navigationEndpoint})})}};
_.l.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13508_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.l.dataChanged=function(){var p=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var x=!this.data.disableAutoPlayback,F,N={autoplay:x,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((F=this.data.playbackStartMs)!=null?F:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(x?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(N);this.setupYtdPlayer()}else JLv(this.JSC$13508_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(v2k(this.JSC$13508_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13508_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.lA(p.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");p.JSC$13508_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.l.getPlayerPromise=function(){return this.JSC$13508_playerManager.getPlayerPromise()};
_.l.onYtToggleButton=function(p){this.useYtdPlayer?this.toggleMute(p.detail.toggled):p.detail.toggled?this.JSC$13508_playerManager.mute():this.JSC$13508_playerManager.unMute()};
_.l.onYtNavigate=function(p){var x=r7w(p.detail.endpoint),F=Eez(this.data.clickthroughReportingData);x&&F&&(p.detail.endpoint.watchEndpoint?p.detail.tempData=F:_.I9(x,F,30))};
_.l.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13508_playerManager.stopVideo()};
_.l.setupYtdPlayer=function(){var p=this,x;return _.D(function(F){if(F.nextAddress==1)return _.q(F,p.ytdPlayer.getPlayerPromise(),2);x=F.yieldResult;x.addEventListener("onStateChange",function(N){p.onPlayerStateChange(N)});
x.addEventListener("onCueRangeExit",function(N){p.onCueRangeExit(N)});
_.JB(F)})};
_.l.onPlayerStateChange=function(p){if(p===1&&(p=this.ytdPlayer.getPlayer())){var x=p.getCurrentTime(),F,N,h=x+((N=(F=this.data)==null?void 0:F.playbackDurationMs)!=null?N:0)/1E3;p.addCueRange("playback",x,h);_.lA(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13508_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.l.onCueRangeExit=function(p){p==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.l.toggleMute=function(p){var x=this,F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,x.ytdPlayer.getPlayerPromise(),2);F=N.yieldResult;p?F.mute():F.unMute();_.JB(N)})};
_.R8.Object.defineProperties(cyb.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var p,x;if(!((p=this.data)==null?0:(x=p.accessibilityData)==null?0:x.label))return"Ad primary link";var F,N;return _.JG("AD_TITLE",{title:(F=this.data)==null?void 0:(N=F.accessibilityData)==null?void 0:N.label})}}});
var gy=Xy=cyb;Xy.prototype.onYtMastheadHidden=Xy.prototype.onYtMastheadHidden;Xy.prototype.onYtNavigate=Xy.prototype.onYtNavigate;Xy.prototype.onYtToggleButton=Xy.prototype.onYtToggleButton;Xy.prototype.dataChanged=Xy.prototype.dataChanged;gy.JSC$13507_PLAYBACK_CUE_RANGE="playback";_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],gy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],gy.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],gy.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],gy.prototype,"useYtdPlayer",void 0);_.B([_.Ff("ytd-toggle-button-renderer"),_.k("design:type",Object)],gy.prototype,"muteButton",void 0);_.B([_.H(),_.k("design:type",Object)],gy.prototype,"buttonOverrides",void 0);
_.B([_.w("data.accessibilityData.label"),_.k("design:type",String),_.k("design:paramtypes",[])],gy.prototype,"titleAriaLabel",null);_.B([_.Ff("#replay-button"),_.k("design:type",Object)],gy.prototype,"replayButton",void 0);_.B([_.Ff("#player-container"),_.k("design:type",Object)],gy.prototype,"playerContainer",void 0);_.B([_.Ff("#player"),_.k("design:type",Object)],gy.prototype,"embeddedPlayer",void 0);_.B([_.Ff("#ytd-player"),_.k("design:type",Object)],gy.prototype,"ytdPlayer",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gy.prototype,"dataChanged",null);_.B([_.V("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],gy.prototype,"onYtToggleButton",null);_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],gy.prototype,"onYtNavigate",null);
_.B([_.V("yt-masthead-hidden"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gy.prototype,"onYtMastheadHidden",null);gy=Xy=_.B([_.L({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],gy);
_.P(gy,"ytd-video-masthead-ad-primary-video-renderer",function(){if(lBl!==void 0)return lBl;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return lBl=p},{mode:2});var aBn;var Mnj=function(){var p=_.m.apply(this,arguments)||this;p.collapsed=!1;p.impressionResolver=_.GO();p.JSC$13512_activeViewMeasurementDataResolver=_.GO();p.actionMap={"yt-mute-ad-action":"handleMuteAd"};return p};
_.E(Mnj,_.m);_.l=Mnj.prototype;_.l.configureRendererStamper=function(){return{"data.expandableTiles":{id:"expandable-tile-container",mapping:{videoMastheadAdExpandableThumbnailTileRenderer:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",videoMastheadAdExpandableVideoTileRenderer:"ytd-video-masthead-ad-expandable-video-tile-renderer"}},"data.showAdRenderer":{id:"show-ad",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.ready=function(){var p=this;_.n(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){p.expandAd()});
this.hostElement.addEventListener("yt-action",function(x){if(x.detail.actionName==="yt-service-request"){var F=x.detail.args[1];F.videoMastheadAdMuteCommand&&(p.collapseAd(F.videoMastheadAdMuteCommand.encryptedMastheadId),x.stopPropagation())}})};
_.l.attached=function(){var p=this;_.zD(function(){p.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(x){if(!p.collapsed){x=_.a(x);for(var F=x.next();!F.done;F=x.next())F=F.value,ww(F.baseUrl,F.attributionSrcMode);p.data.impressionCommand=void 0}});
this.JSC$13512_activeViewMeasurementDataResolver.promise.then(function(x){p.ytdActiveViewBehavior.enableActiveViewMeasurement(x,15)});
_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&p.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.dataChanged=function(){var p;((p=this.data.impressionCommand)==null?0:p.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var x;((x=this.data)==null?0:x.activeView)&&this.JSC$13512_activeViewMeasurementDataResolver.resolve(this.data.activeView);(p=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(p.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.l.computeWidescreen=function(p){var x;return!!(p&&((x=_.r(p,lqZ))==null?0:x.isWidescreen))};
_.l.computeExpandable=function(p){return!!(p&&p.length>0)};
_.l.onIronResize=function(){if(this.expandable){var p=_.n(this.hostElement).querySelector("#expandable-tile-container :first-child");p&&!p.expanded&&(p.expanded=!0)}};
_.l.handleMuteAd=function(){this.collapseAd(null)};
_.l.restoreCollapsedState=function(p){this.collapsed=_.rH().get("HIDDEN_MASTHEAD_ID")===p};
_.l.collapseAd=function(p){if(p){var x=_.rH();x.set("HIDDEN_MASTHEAD_ID",p);x.save()}(p=_.n(this.hostElement).querySelector("#video"))&&_.hG(p,"yt-masthead-hidden");this.collapsed=!0};
_.l.expandAd=function(){var p=_.rH();p.set("HIDDEN_MASTHEAD_ID",!1);p.save();location.reload()};
_.l.detached=function(){_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
var QT=Mnj;QT.prototype.onIronResize=QT.prototype.onIronResize;QT.prototype.dataChanged=QT.prototype.dataChanged;_.B([_.u(_.n7),_.k("design:type",Object)],QT.prototype,"ironResizableBehavior",void 0);_.B([_.u(s7),_.k("design:type",Object)],QT.prototype,"ytdActiveViewBehavior",void 0);_.B([_.u(_.Yk),_.k("design:type",Object)],QT.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],QT.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],QT.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],QT.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.k("design:type",Boolean)],QT.prototype,"widescreen",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.k("design:type",Boolean)],QT.prototype,"expandable",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],QT.prototype,"collapsed",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],QT.prototype,"dataChanged",null);
_.B([_.V("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],QT.prototype,"onIronResize",null);QT=_.B([_.L({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],QT);
_.P(QT,"ytd-video-masthead-ad-v3-renderer",function(){if(aBn!==void 0)return aBn;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return aBn=p},{mode:2});var DAK=function(){return _.m.apply(this,arguments)||this};
_.E(DAK,_.m);_.l=DAK.prototype;_.l.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.l.ready=function(){var p=this;$Pk(function(){p.isAttached&&DD(p.JSC$13517_storedAdSlotMetadata,p.JSC$13517_storedAdLayoutMetadata,p.adSlotMetadata,p.adLayoutMetadata)&&Zg(KB(),p.JSC$13517_storedAdSlotMetadata,p.JSC$13517_storedAdLayoutMetadata)})};
_.l.attached=function(){DD(this.JSC$13517_storedAdSlotMetadata,this.JSC$13517_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&VMB(KB(),this.JSC$13517_storedAdSlotMetadata,this.JSC$13517_storedAdLayoutMetadata)};
_.l.detached=function(){DD(this.JSC$13517_storedAdSlotMetadata,this.JSC$13517_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Zg(KB(),this.JSC$13517_storedAdSlotMetadata,this.JSC$13517_storedAdLayoutMetadata)};
_.l.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13517_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13517_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13517_storedAdLayoutMetadata!==void 0&&this.JSC$13517_storedAdSlotMetadata!==void 0&&Zg(KB(),this.JSC$13517_storedAdSlotMetadata,this.JSC$13517_storedAdLayoutMetadata),VMB(KB(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13517_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13517_storedAdSlotMetadata=this.adSlotMetadata)};
_.R8.Object.defineProperties(DAK.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.adLayoutMetadata}}});
var zL=DAK;zL.prototype.onAdMetadataChanged=zL.prototype.onAdMetadataChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],zL.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],zL.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],zL.prototype,"data",void 0);_.B([_.w("data.adLayoutMetadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],zL.prototype,"adLayoutMetadata",null);
_.B([_.H(),_.k("design:type",Object)],zL.prototype,"adSlotMetadata",void 0);_.B([_.W("adLayoutMetadata","adSlotMetadata"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zL.prototype,"onAdMetadataChanged",null);zL=_.B([_.L({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],zL);
_.P(zL,"ytd-page-top-ad-layout-renderer",function(){if(IGv!==void 0)return IGv;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return IGv=
p},{mode:_.UQ("kevlar_poly_si_batch_j070")?1:2});var fBD;var K0l=function(){var p=_.m.apply(this,arguments)||this;p.noBottomMargin=!1;p.overlayDensity=0;return p};
_.E(K0l,_.m);_.l=K0l.prototype;
_.l.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.l.ready=function(){var p=this;$Pk(function(){p.isAttached&&p.adSlotMetadata&&Gg6(KB(),p.adSlotMetadata)})};
_.l.attached=function(){if(this.adSlotMetadata){var p;if(this.adSlotMetadata===((p=this.data)==null?void 0:p.adSlotMetadata))wDI(KB(),this.adSlotMetadata);else{var x;_.no(Error("Kh`"+this.adSlotMetadata+"`"+((x=this.data)==null?void 0:x.adSlotMetadata)))}}};
_.l.detached=function(){this.adSlotMetadata&&Gg6(KB(),this.adSlotMetadata)};
_.l.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&Gg6(KB(),this.adSlotMetadata),wDI(KB(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.R8.Object.defineProperties(K0l.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var p,x,F=_.r((p=this.data)==null?void 0:(x=p.fulfillmentContent)==null?void 0:x.fulfilledLayout,_.aqB),N;return(p=(N=_.r(F==null?void 0:F.renderingContent,chC))==null?void 0:N.layout)?p.toLowerCase().replace(/_/g,"-"):""}}});
var s2=K0l;s2.prototype.onAdSlotMetadataChanged=s2.prototype.onAdSlotMetadataChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],s2.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],s2.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],s2.prototype,"rendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],s2.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],s2.prototype,"noBottomMargin",void 0);_.B([_.H(),_.k("design:type",Object)],s2.prototype,"overlayDensity",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",String),_.k("design:paramtypes",[])],s2.prototype,"layout",null);_.B([_.W("data.adSlotMetadata"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],s2.prototype,"onAdSlotMetadataChanged",null);
s2=_.B([_.L({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],s2);
_.P(s2,"ytd-ad-slot-renderer",function(){if(fBD!==void 0)return fBD;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return fBD=p},{mode:_.UQ("kevlar_poly_si_batch_j077")?
1:2});var qcD;var Zvj=function(){return _.m.apply(this,arguments)||this};
_.E(Zvj,_.m);_.l=Zvj.prototype;_.l.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"},params:{noDotAdBadge:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.l.onTap=function(){this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&eUp(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.l.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var p=_.a(this.data.impressionUrls),x=p.next();!x.done;x=p.next())x=x.value,DdH(x,KJd(x));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.l.attached=function(){var p=this;_.S("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&p.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){_.S("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.R8.Object.defineProperties(Zvj.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
var nB=Zvj;nB.prototype.dataChanged=nB.prototype.dataChanged;nB.prototype.onTap=nB.prototype.onTap;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],nB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.B([_.u(s7),_.k("design:type",Object)],nB.prototype,"ytdActiveViewBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],nB.prototype,"ytdReduxBehavior",void 0);
_.B([_.H({selector:_.br}),_.k("design:type",Object)],nB.prototype,"isGridViewEnabled",void 0);_.B([_.w("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nB.prototype,"watchFeedBigThumbs",null);_.B([_.w("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.k("design:type",String),_.k("design:paramtypes",[])],nB.prototype,"thumbnailWidth",null);_.B([_.H(),_.k("design:type",Object)],nB.prototype,"data",void 0);
_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nB.prototype,"onTap",null);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nB.prototype,"dataChanged",null);nB=_.B([_.L({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],nB);
_.P(nB,"ytd-compact-promoted-video-renderer",function(){if(qcD!==void 0)return qcD;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-promoted-video-renderer">\n</ytd-thumbnail>\n<div class="details style-scope ytd-compact-promoted-video-renderer">\n  <a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-promoted-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n      <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n      </ytd-video-meta-block>\n      <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n        <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n      </div>\n    </div>\n  </a>\n  <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n</div>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return qcD=p},{mode:1});var tnl;_.Ei("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var dAj=function(){return _.m.apply(this,arguments)||this};
_.E(dAj,_.m);dAj.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
var yT=dAj;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],yT.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],yT.prototype,"data",void 0);yT=_.B([_.L({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],yT);
_.P(yT,"ytd-search-pyv-renderer",function(){if(tnl!==void 0)return tnl;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return tnl=p},{mode:1});var vPJ;var JyI;var CYC=function(){var p=_.m.apply(this,arguments)||this;p.hasSpam=!1;p.showButton=!0;p.actionMap={"yt-approve-comment-action":"approveCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction","yt-remove-comment-action":"removeCommentAction","yt-load-next-continuation":"onLoadNextContinuation"};p.nextContinuation={contentsArray:"data.contents",continuationType:"commentModerationPanelContinuation",requestPath:"/comment_service_ajax?action_get_comment_replies=1&pbj=1",
usePost:!0};return p};
_.E(CYC,_.m);_.l=CYC.prototype;_.l.configureRendererStamper=function(){return{"data.continuations":{id:"continuation",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}}},"data.contents":{id:"held-comments",mapping:{commentRenderer:{component:"ytd-comment-renderer"}}},"data.likelySpamContents":{id:"likely-spam-comments",mapping:{commentRenderer:{component:"ytd-comment-renderer"}}}}};
_.l.ready=function(){var p=this,x=_.n(this.hostElement).querySelector("#moderation-contents");x&&x.addEventListener("scroll",function(){p.onPanelScroll()})};
_.l.dataChanged=function(){this.expander.collapsed=!0};
_.l.computeSettingsButton=function(p){var x,F,N;return(N=p==null?void 0:(x=p.expander)==null?void 0:(F=x.commentModerationPanelExpanderRenderer)==null?void 0:F.settingsButton)==null?void 0:N.buttonRenderer};
_.l.onPanelScroll=function(){var p=this;_.sQ(this,"onPanelScroll",function(){var x=_.n(p.hostElement).querySelector("#moderation-contents");if(x){x=x.scrollTop===0;var F,N;_.iX((N=(F=p.expander.children[1])==null?void 0:F.offsetParent)!=null?N:p.hostElement,"scrolling",x)}},50)};
_.l.onNextContinuationDataUpdated=function(p,x){p=x.continuationData.response;var F,N;if(!((F=p.continuationContents)==null?0:(N=F.commentModerationPanelContinuation)==null?0:N.contents)){var h,c;if((h=p.continuationContents)==null?0:(c=h.commentModerationPanelContinuation)==null?0:c.likelySpamContents){var M;this.data.spamHeaderText=(M=p.continuationContents)==null?void 0:M.commentModerationPanelContinuation.spamHeaderText;var f;this.set("data.likelySpamContents",(f=p.continuationContents)==null?
void 0:f.commentModerationPanelContinuation.likelySpamContents);this.nextContinuation={contentsArray:"data.likelySpamContents",continuationType:"commentModerationPanelContinuation",responseContentsKey:"likelySpamContents",usePost:!0};this.hasSpam=!0}}};
_.l.computeHasContinuation=function(p){return!!p};
_.l.hideSpamDivider=function(p){return!p||p&&this.data.contents.length===0};
_.l.computeSpamHeaderText=function(p,x){return p?x:_.L1("")};
_.l.triggerContinuation=function(){this.hostElement.querySelector("yt-next-continuation").trigger();this.showButton=!1};
_.l.approveCommentAction=function(p){(p=this.get("approveCommentAction.commentId",p))&&this.removeComment(p)};
_.l.banAuthorAction=function(p){(p=this.get("banAuthorAction.commentId",p))&&this.removeComment(p)};
_.l.removeCommentAction=function(p){(p=this.get("removeCommentAction.commentId",p))&&this.removeComment(p)};
_.l.hideReportedCommentAction=function(p){(p=this.get("hideReportedCommentAction.commentId",p))&&this.removeComment(p)};
_.l.removeComment=function(p){var x=this.commentIdToHeldCommentsIndex(p);p=this.commentIdToLikelySpamCommentsIndex(p);x>=0?this.splice("data.contents",x,1):p>=0&&this.splice("data.likelySpamContents",p,1);this.data.contents&&this.data.contents.length!==0||this.data.likelySpamContents&&this.data.likelySpamContents.length!==0||_.hG(this.hostElement,"ytd-comment-moderation-panel-empty")};
_.l.commentIdToHeldCommentsIndex=function(p){var x;if((x=this.data)==null||!x.contents)return-1;for(x=0;x<this.data.contents.length;x++)if(this.data.contents[x].commentRenderer.commentId===p)return x;return-1};
_.l.commentIdToLikelySpamCommentsIndex=function(p){var x;if((x=this.data)==null||!x.likelySpamContents)return-1;for(x=0;x<this.data.likelySpamContents.length;x++)if(this.data.likelySpamContents[x].commentRenderer.commentId===p)return x;return-1};
var bo=CYC;bo.prototype.onNextContinuationDataUpdated=bo.prototype.onNextContinuationDataUpdated;bo.prototype.dataChanged=bo.prototype.dataChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],bo.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],bo.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],bo.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.Wy.YtNextContinuationBehavior),_.k("design:type",Object)],bo.prototype,"ytNextContinuationBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],bo.prototype,"data",void 0);_.B([_.H({computed:"computeSettingsButton(data)"}),_.k("design:type",Object)],bo.prototype,"settingsButton",void 0);_.B([_.H(),_.k("design:type",Object)],bo.prototype,"hasSpam",void 0);_.B([_.H({computed:"computeHasContinuation(data.continuations)"}),_.k("design:type",Boolean)],bo.prototype,"hasContinuation",void 0);
_.B([_.H(),_.k("design:type",Object)],bo.prototype,"showButton",void 0);_.B([_.Ff("#expander"),_.k("design:type",Object)],bo.prototype,"expander",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bo.prototype,"dataChanged",null);_.B([_.V("yt-next-continuation-data-updated"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],bo.prototype,"onNextContinuationDataUpdated",null);
bo=_.B([_.L({is:"ytd-comment-moderation-panel-renderer",disableElementRegistration:!0})],bo);
_.P(bo,"ytd-comment-moderation-panel-renderer",function(){if(JyI!==void 0)return JyI;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-moderation-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-expander id="expander" align-auto="" always-toggleable="" collapsed-height="0" reversed="" class="style-scope ytd-comment-moderation-panel-renderer">\n  <div class="more-button style-scope ytd-comment-moderation-panel-renderer" slot="more-button" on-click="triggerContinuation">\n    <span class="expander-text style-scope ytd-comment-moderation-panel-renderer">\n      [[getSimpleString(data.expander.commentModerationPanelExpanderRenderer.text)]]\n    </span>\n    <div class="icons style-scope ytd-comment-moderation-panel-renderer">\n      <ytd-button-renderer class="settings-button style-scope ytd-comment-moderation-panel-renderer" data="[[settingsButton]]">\n      </ytd-button-renderer>\n      <yt-icon id="expander-icon" icon="yt-icons:expand-more" class="style-scope ytd-comment-moderation-panel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div class="less-button style-scope ytd-comment-moderation-panel-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-comment-moderation-panel-renderer">\n      [[getSimpleString(data.expander.commentModerationPanelExpanderRenderer.text)]]\n    </span>\n    <div class="icons style-scope ytd-comment-moderation-panel-renderer">\n      <ytd-button-renderer class="settings-button style-scope ytd-comment-moderation-panel-renderer" data="[[settingsButton]]">\n      </ytd-button-renderer>\n      <yt-icon id="expander-icon" icon="yt-icons:expand-less" class="style-scope ytd-comment-moderation-panel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="moderation-contents" slot="content" class="style-scope ytd-comment-moderation-panel-renderer">\n    <div id="held-comments" class="style-scope ytd-comment-moderation-panel-renderer"></div>\n    <div id="likely-spam-divider" hidden="[[hideSpamDivider(hasSpam)]]" class="style-scope ytd-comment-moderation-panel-renderer"></div>\n    <yt-formatted-string id="likely-spam-header" text="[[computeSpamHeaderText(data.likelySpamContents, data.spamHeaderText)]]" class="style-scope ytd-comment-moderation-panel-renderer">\n    </yt-formatted-string>\n    <div id="likely-spam-comments" class="style-scope ytd-comment-moderation-panel-renderer"></div>\n    <div id="continuation" class="style-scope ytd-comment-moderation-panel-renderer"></div>\n  </div>\n</ytd-expander>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return JyI=p},{mode:1});_.Ei("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var ScZ=function(){var p=_.m.apply(this,arguments)||this;p.roundedContainer=!0;p.JSC$13546_handleOpenPostCommentDialogActionAfterStamp=!1;p.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return p};
_.E(ScZ,_.m);_.l=ScZ.prototype;
_.l.configureRendererStamper=function(){return{"data.post":{id:"post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{hasInlineCommentSection:"[[hasInlineCommentSection]]",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.moderationPanel":{id:"moderation-panel",mapping:{commentModerationPanelRenderer:"ytd-comment-moderation-panel-renderer"}},"data.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}};
_.l.onStampFinished=function(){this.JSC$13546_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.l.handleSignalActionOpenPostCommentDialogAction=function(){var p=_.n(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");p?p.openDialog():this.JSC$13546_handleOpenPostCommentDialogActionAfterStamp=!0};
_.l.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.l.computeHasInlineCommentSection=function(p){return!!p};
_.l.computeHideBorder=function(){return this.isInEngagementPanel};
_.l.computeIsCompact=function(){return this.isInEngagementPanel};
_.l.computeUsesCompactLockup=function(p){return p==="BACKSTAGE_SURFACE_TYPE_HOME"||p==="BACKSTAGE_SURFACE_TYPE_SEARCH"||p==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||p==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||p==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||p==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.l.computeUsesFullLockup=function(){var p,x=(p=this.data)==null?void 0:p.post,F;p=(F=_.r(x,Jhl))==null?void 0:F.surface;var N;F=(N=_.r(x,S16))==null?void 0:N.originalPost;var h;if(N=p||((h=_.r(F,Jhl))==null?void 0:h.surface))return!this.computeUsesCompactLockup(N)&&this.useUpdatedRepostUi;var c;return((c=_.r(x,S16))==null?void 0:c.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.R8.Object.defineProperties(ScZ.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var p,x;return((x=_.r((p=this.data)==null?void 0:p.post,Jhl))==null?void 0:x.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.useUpdatedRepostUi}}});
var Aj=ScZ;Aj.prototype.onYtCommentModerationPanelEmpty=Aj.prototype.onYtCommentModerationPanelEmpty;Aj.prototype.onStampFinished=Aj.prototype.onStampFinished;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Aj.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Aj.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Aj.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],Aj.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Aj.prototype,"roundedContainer",void 0);_.B([_.H({computed:"computeHasInlineCommentSection(data.comments)"}),_.k("design:type",Boolean)],Aj.prototype,"hasInlineCommentSection",void 0);_.B([_.H({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Aj.prototype,"hideBorder",void 0);
_.B([_.H({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Aj.prototype,"isCompact",void 0);_.B([_.H({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Aj.prototype,"usesFullLockup",void 0);_.B([_.V("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Aj.prototype,"onStampFinished",null);
_.B([_.V("ytd-comment-moderation-panel-empty"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Aj.prototype,"onYtCommentModerationPanelEmpty",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Aj.prototype,"isInEngagementPanel",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Aj.prototype,"useUpdatedRepostUi",null);
Aj=_.B([_.L({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],Aj);
_.P(Aj,"ytd-backstage-post-thread-renderer",function(){if(vPJ!==void 0)return vPJ;var p=document.createElement("template");_.g(p,'\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>\n<div id="comments" hidden="[[!data.comments]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return vPJ=p},{mode:1});var ryk;var uo=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.E(uo,_.m);uo.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
uo.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var p=this.data.thumbnail.thumbnails;this.isDarkTheme&&(p=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(p=_.Ou(p,24,void 0,"height"))?p:void 0}};
uo.prototype.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
uo.prototype.computeHasText=function(){var p;return!((p=this.data)==null||!p.text)};
_.R8.Object.defineProperties(uo.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.ug(this.bannerImageUrl))+'");'}}});
var Y1=uo;Y1.prototype.computeHasText=Y1.prototype.computeHasText;Y1.prototype.computeBannerImageUrl=Y1.prototype.computeBannerImageUrl;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Y1.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Y1.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Y1.prototype,"ytRendererBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],Y1.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Boolean)],Y1.prototype,"isDarkTheme",void 0);_.B([_.H(),_.k("design:type",String)],Y1.prototype,"bannerImageUrl",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.k("design:type",Boolean)],Y1.prototype,"hasText",void 0);_.B([_.W("data","isDarkTheme"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Y1.prototype,"computeBannerImageUrl",null);
_.B([_.W("data.text"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Y1.prototype,"computeHasText",null);_.B([_.w("bannerImageUrl"),_.k("design:type",Object),_.k("design:paramtypes",[])],Y1.prototype,"bannerStyle",null);Y1=_.B([_.L({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],Y1);
_.P(Y1,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(ryk!==void 0)return ryk;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return ryk=p},{mode:1});var EPk;var Xom=function(){return _.m.apply(this,arguments)||this};
_.E(Xom,_.m);var wy=Xom;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],wy.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],wy.prototype,"data",void 0);wy=_.B([_.L({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],wy);
_.P(wy,"ytd-backstage-zero-state-renderer",function(){if(EPk!==void 0)return EPk;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return EPk=p},{mode:1});var gPB;var Qbv=function(){return _.m.apply(this,arguments)||this};
_.E(Qbv,_.m);var GL=Qbv;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],GL.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],GL.prototype,"data",void 0);_.B([_.H({computed:"computeIcon_(data.icon)"}),_.k("design:type",String)],GL.prototype,"icon",void 0);GL=_.B([_.L({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],GL);
_.P(GL,"ytd-post-filter-zero-state-renderer",function(){if(gPB!==void 0)return gPB;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return gPB=p},{mode:1});var zFC;var sbl={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},nPD=function(){return _.m.apply(this,arguments)||this};
_.E(nPD,_.m);nPD.prototype.configureRendererStamper=function(){return sbl};
var VT=nPD;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],VT.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],VT.prototype,"rendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],VT.prototype,"data",void 0);_.B([_.H({computed:"computeIcon_(data.icon)"}),_.k("design:type",String)],VT.prototype,"icon",void 0);VT=_.B([_.L({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],VT);
_.P(VT,"ytd-post-scheduling-zero-state-renderer",function(){if(zFC!==void 0)return zFC;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return zFC=p},{mode:1});var yyB;var WK=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return p};
_.E(WK,_.m);WK.prototype.onTabsActivate=function(p){this.data&&this.data.tabs&&_.hG(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[p.detail.selected].navigationEndpoint})};
WK.prototype.shouldShowTotalCount=function(p){return p&&p.totalCount!==void 0};
WK.prototype.handleUpdatePostsTotalCountAction=function(p){var x=this.get(["data.tabs",1,"totalCount"]),F=this.get("updatePostsTotalCountAction.updateType",p);p=this.get("updatePostsTotalCountAction.number",p);x!==void 0&&F!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&p&&(F==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(x)+p):F==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(x)-p))};
_.R8.Object.defineProperties(WK.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var p=0,x=this.data.tabs.length;p<x;p++)if(this.data.tabs[p].selected)return p;return 0}}});
var HK=WK;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],HK.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],HK.prototype,"rendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],HK.prototype,"data",void 0);_.B([_.w("data.tabs"),_.k("design:type",Number),_.k("design:paramtypes",[])],HK.prototype,"selected",null);HK=_.B([_.L({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],HK);
_.P(HK,"ytd-post-stream-filter-renderer",function(){if(yyB!==void 0)return yyB;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return yyB=p},{mode:1});var bvJ;var Ayb=function(){return _.m.apply(this,arguments)||this};
_.E(Ayb,_.m);var m8=Ayb;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],m8.prototype,"kevlarBehaviors",void 0);_.B([_.H(),_.k("design:type",Object)],m8.prototype,"data",void 0);m8=_.B([_.L({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],m8);
_.P(m8,"ytd-channel-age-gate-renderer",function(){if(bvJ!==void 0)return bvJ;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return bvJ=p},{mode:1});var uXm;_.Ei("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var YcK=function(){var p=_.m.apply(this,arguments)||this;p.data=null;return p};
_.E(YcK,_.m);YcK.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R8.Object.defineProperties(YcK.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return((p=this.data)==null?0:(x=p.title)==null?0:(F=x.runs)==null?0:F.length)?147:160}}});
var o1=YcK;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],o1.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],o1.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],o1.prototype,"imageSizePx",null);o1=_.B([_.L({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],o1);
_.P(o1,"ytd-channel-owner-empty-state-renderer",function(){if(uXm!==void 0)return uXm;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return uXm=p},{mode:1});var wol;var GAn;var VnI=function(){var p=_.m.apply(this,arguments)||this;p.boundSubmitSearch=function(){p.submitSearch()};
p.boundClearSearch=function(){p.clearSearch()};
return p};
_.E(VnI,_.m);_.l=VnI.prototype;_.l.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmitSearch]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundClearSearch]]"}}}}}};
_.l.toggleClearButton=function(){this.hideClearButton=Sjp||!this.input.value};
_.l.submitOnEnterKeyUp=function(p){p.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.l.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.l.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.l.submit=function(){_.hG(this.hostElement,"search-query-changed",this.input.value)};
var O2=VnI;O2.prototype.toggleClearButton=O2.prototype.toggleClearButton;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],O2.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],O2.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],O2.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],O2.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],O2.prototype,"hideClearButton",void 0);_.B([_.H(),_.k("design:type",Object)],O2.prototype,"boundSubmitSearch",void 0);_.B([_.H(),_.k("design:type",Object)],O2.prototype,"boundClearSearch",void 0);_.B([_.Ff("#input"),_.k("design:type",Object)],O2.prototype,"input",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],O2.prototype,"toggleClearButton",null);
O2=_.B([_.L({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],O2);
_.P(O2,"ytd-channel-switcher-search-box-renderer",function(){if(GAn!==void 0)return GAn;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return GAn=p},{mode:1});var W0K;var HvK=function(){var p=_.m.apply(this,arguments)||this;p.boundSubmit=function(){p.submit()};
return p};
_.E(HvK,_.m);_.l=HvK.prototype;_.l.configureRendererStamper=function(){return{"data.searchButton":{id:"search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundSubmit]]"}}}},"data.clearButton":{id:"clear-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.l.ready=function(){var p=this;this.form.addEventListener("submit",function(x){return p.onSubmit(x)})};
_.l.onSubmit=function(p){p.preventDefault();return!1};
_.l.toggleClearButton=function(){this.hideClearButton=Sjp||!this.input.value};
_.l.submitOnEnterKeyUp=function(p){p.keyCode===13&&this.submit()};
_.l.submit=function(){var p=this.data.endpoint,x=(0,_.Q5.unsafeClone)(p);_.r(x,_.Du)?_.r(x,_.Du).query=this.input.value:_.r(x,_.fR)&&(_.r(x,_.fR).query=this.input.value);var F=_.r(x.commandMetadata,_.eq);(F==null?0:F.url)?(F.url=_.AT(F.url,"query",this.input.value),_.hG(this.hostElement,"yt-navigate",{endpoint:x})):_.r(x,e4v)?(_.r(x,e4v).channelSwitcherQuery=this.input.value,_.S("web_ytd_search_box_renderer_command_resolver_ks")?_.fc(this.hostElement,[x]):_.J().resolve(_.RD).resolveCommand(x,{form:{element:this.hostElement}})):
(p=Error("Lh`"+JSON.stringify(p)),_.zj(p))};
_.l.getUrl=function(p){return this.get("commandMetadata.webCommandMetadata.url",p)};
var jY=HvK;jY.prototype.toggleClearButton=jY.prototype.toggleClearButton;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],jY.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],jY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],jY.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],jY.prototype,"hideClearButton",void 0);
_.B([_.H(),_.k("design:type",Object)],jY.prototype,"boundSubmit",void 0);_.B([_.Ff("#form"),_.k("design:type",HTMLFormElement)],jY.prototype,"form",void 0);_.B([_.Ff("#input"),_.k("design:type",Object)],jY.prototype,"input",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jY.prototype,"toggleClearButton",null);jY=_.B([_.L({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],jY);
_.P(jY,"ytd-search-box-renderer",function(){if(W0K!==void 0)return W0K;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return W0K=p},{mode:2});var mAn=function(){var p=_.m.apply(this,arguments)||this;p.showSearchBox=!0;return p};
_.E(mAn,_.m);mAn.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
var LB=mAn;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],LB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],LB.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],LB.prototype,"showSearchBox",void 0);LB=_.B([_.L({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],LB);
_.P(LB,"ytd-channel-switcher-header-renderer",function(){if(wol!==void 0)return wol;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return wol=p},{mode:1});var oPJ;var OvJ;var jbB=function(){var p=_.m.apply(this,arguments)||this;p.isDisplayed=!0;return p};
_.E(jbB,_.m);_.l=jbB.prototype;_.l.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.dataChanged=function(){this.isDisplayed=!0};
_.l.computeType=function(p){return p||"UNKNOWN"};
_.l.onYtServiceRequestCompleted=function(p){p.stopPropagation();this.isDisplayed=!1};
_.l.onClose=function(){this.isDisplayed=!1};
var PK=jbB;PK.prototype.onYtServiceRequestCompleted=PK.prototype.onYtServiceRequestCompleted;PK.prototype.dataChanged=PK.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],PK.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],PK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],PK.prototype,"data",void 0);
_.B([_.H({computed:"computeType(data.type)",reflectToAttribute:!0}),_.k("design:type",String)],PK.prototype,"type",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],PK.prototype,"isDisplayed",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PK.prototype,"dataChanged",null);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],PK.prototype,"onYtServiceRequestCompleted",null);PK=_.B([_.L({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],PK);
_.P(PK,"ytd-alert-with-button-renderer",function(){if(OvJ!==void 0)return OvJ;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return OvJ=p},{mode:1});var L0C=function(){var p=_.m.apply(this,arguments)||this;p.noResult=!1;p.enableAlertBanner=!1;p.dismissedAlertBanner=!1;p.hideCreateChannelButton=!1;p.boundDismissAlertBanner=function(){p.dismissAlertBanner()};
p.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return p};
_.E(L0C,_.m);_.l=L0C.prototype;_.l.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.l.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.l.updateChannelSwitcherAction=function(p){var x;p=(x=_.r(p,upB))==null?void 0:x.page;_.r(p,Ak6)!==void 0&&(this.data=_.r(p,Ak6))};
_.l.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{channelSwitcherHeaderRenderer:"ytd-channel-switcher-header-renderer"}},"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}},accountItemRenderer:"ytd-account-item-renderer",continuationItemRenderer:"ytd-continuation-item-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundDismissAlertBanner]]"}}}}}};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.l.searchQueryChanged=function(p,x){if(this.data&&this.data.contents&&this.data.contents.length){p=[];var F=[];this.hideCreateChannelButton=this.noResult=!1;for(var N=document.querySelectorAll("ytd-account-item-renderer"),h=_.a(N),c=h.next();!c.done;c=h.next())c=c.value,F.push(c),c.style.display="block";this.resetRightBorder(F);if(x){this.hideCreateChannelButton=!0;for(F=1;F<this.data.contents.length;F++)if(c=this.data.contents[F],_.r(c,iyI)){var M=void 0,f=void 0;h=(M=_.r(c,iyI))==null?void 0:(f=
M.accountName)==null?void 0:f.simpleText;f=M=void 0;c=(M=_.r(c,iyI))==null?void 0:(f=M.channelHandle)==null?void 0:f.simpleText;(M=N[F-1])&&h&&_.Sp(h,x)?p.push(M):_.S("enable_handle_search_on_channel_switcher")&&M&&c&&_.Sp(c.toString(),x.toString())?p.push(M):M.style.display="none"}p.length===0&&(this.noResult=!0);this.resetRightBorder(p)}}};
_.l.resetRightBorder=function(p){for(var x=0;x<p.length;x++)p[x].style.borderRight=!this.hideCreateChannelButton&&(x+2)%3===0||this.hideCreateChannelButton&&(x+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.l.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.l.setShowSearchBox=function(p){if(p&&p.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var x=0;x<p.contents.length;x++)_.r(p.contents[x],_.hf)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.l.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.R8.Object.defineProperties(L0C.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null?0:p.contents)}}});
var TL=L0C;TL.prototype.onContinuationItemsUpdated=TL.prototype.onContinuationItemsUpdated;TL.prototype.searchQueryChanged=TL.prototype.searchQueryChanged;TL.prototype.onDataChanged=TL.prototype.onDataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],TL.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],TL.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],TL.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.Vw),_.k("design:type",Object)],TL.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],TL.prototype,"data",void 0);_.B([_.Ff("ytd-channel-switcher-header-renderer"),_.k("design:type",Object)],TL.prototype,"channelSwitcherHeaderRenderer",void 0);_.B([_.H(),_.k("design:type",Object)],TL.prototype,"noResult",void 0);
_.B([_.H(),_.k("design:type",Object)],TL.prototype,"enableAlertBanner",void 0);_.B([_.H(),_.k("design:type",Object)],TL.prototype,"dismissedAlertBanner",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],TL.prototype,"hideCreateChannelButton",void 0);_.B([_.w("data.contents"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],TL.prototype,"isLoading",null);_.B([_.H(),_.k("design:type",Object)],TL.prototype,"boundDismissAlertBanner",void 0);
_.B([_.H({computed:"computeButtonOverride()"}),_.k("design:type",Object)],TL.prototype,"buttonOverride",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],TL.prototype,"onDataChanged",null);_.B([_.V("search-query-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,String]),_.k("design:returntype")],TL.prototype,"searchQueryChanged",null);
_.B([_.V("yt-next-continuation-data-updated"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],TL.prototype,"onContinuationItemsUpdated",null);TL=_.B([_.L({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],TL);
_.P(TL,"ytd-channel-switcher-page-renderer",function(){if(oPJ!==void 0)return oPJ;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return oPJ=p},{mode:1});var PYD;var TGj=function(){var p=_.m.apply(this,arguments)||this;p.buttonOverrides={size:"S",iconPosition:"icon-only"};p.replyButtonOverrides={size:"S",type:"text"};return p};
_.E(TGj,_.m);_.l=TGj.prototype;_.l.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.l.detached=function(){this.replyBox&&this.replyBox.remove()};
_.l.showReplyDialog=function(p){if(p){var x=this.replyBox;x||(x=document.createElement("ytd-comment-reply-dialog-renderer"),x.id="replybox",_.n(this.replyDialogDiv).appendChild(x));x.data=p;this.replyDialogDiv.hidden=!1;x.openDialog()}};
_.l.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.l.onYtServiceRequestSent=function(p,x){p.stopPropagation();if(x.actions)for(var F=0;F<x.actions.length;F++){var N=_.r(x.actions[F],LZm);N?this.handleUpdateCommentVoteAction(N):p.target===this.heartButton&&this.toggleHeartState()}};
_.l.handleUpdateCommentVoteAction=function(p){var x;(x=this.toolbarState)!=null&&x.key&&this.ytdReduxBehavior.dispatch(_.z7("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:p.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":p.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.l.toggleHeartState=function(){var p;(p=this.toolbarState)!=null&&p.key&&this.ytdReduxBehavior.dispatch(_.z7("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.R8.Object.defineProperties(TGj.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return(((p=this.toolbarState)==null?void 0:p.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(x=this.toolbarData)==null?void 0:x.likeCountLiked:(F=this.toolbarData)==null?void 0:F.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.toolbarSurface)==null?void 0:p.commentDisabledActionCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.toolbarSurface)==null?void 0:p.prepareAccountCommand)!==void 0&&!_.S("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var p,x=_.r((p=this.toolbarSurface)==null?void 0:p.prepareAccountCommand,_.XY),F,N,h,c,M,f,K,t,d;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((F=this.toolbarSharedData)==null||!F.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((N=this.toolbarState)==null?void 0:N.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:x!=null?x:_.r((h=this.toolbarSurface)==null?void 0:h.likeCommand,_.XY),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:x!=null?x:_.r((c=this.toolbarSurface)==null?void 0:c.unlikeCommand,_.XY),defaultCommand:this.isVisiblyDisabled?_.r((M=this.toolbarSurface)==null?void 0:M.commentDisabledActionCommand,_.XY):void 0,defaultTooltip:(f=this.toolbarData)==null?void 0:f.likeInactiveTooltip,toggledTooltip:(K=this.toolbarData)==null?void 0:K.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(t=this.toolbarData)==null?void 0:t.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(d=this.toolbarSharedData)==null?void 0:d.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var p,x=_.r((p=this.toolbarSurface)==null?void 0:p.prepareAccountCommand,_.XY),F,N,h,c,M,f,K,t,d,v;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((F=this.toolbarSharedData)==null||!F.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((N=this.toolbarState)==null?void 0:N.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:x!=null?x:_.r((h=this.toolbarSurface)==null?void 0:h.dislikeCommand,_.XY),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:x!=null?x:_.r((c=this.toolbarSurface)==null?void 0:c.undislikeCommand,_.XY),defaultCommand:this.isVisiblyDisabled?_.r((M=this.toolbarSurface)==null?void 0:M.commentDisabledActionCommand,_.XY):void 0,defaultTooltip:(f=this.toolbarData)==null?void 0:f.dislikeInactiveTooltip,toggledTooltip:(K=this.toolbarData)==null?void 0:
K.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(t=this.toolbarSharedData)==null?void 0:t.dislikeReplyButtonA11y:(d=this.toolbarSharedData)==null?void 0:d.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(v=this.toolbarSharedData)==null?void 0:v.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var p,x,F;if(((p=this.toolbarState)==null?void 0:p.heartState)!==void 0&&((x=this.toolbarState)==null?void 0:x.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((F=this.toolbarState)==null?void 0:F.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var N,h,c,M,f,K,t,d,v,C,X,Q,b,A;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(N=this.toolbarData)==null?void 0:N.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((h=this.toolbarState)==null?void 0:h.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((c=this.toolbarState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((M=this.toolbarState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((f=this.toolbarState)==null?void 0:f.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.r((K=this.toolbarSurface)==null?void 0:K.heartCommand,
_.XY),unheartEndpoint:this.isVisiblyDisabled?void 0:_.r((t=this.toolbarSurface)==null?void 0:t.unheartCommand,_.XY),disabledEndpoint:this.isVisiblyDisabled?_.r((d=this.toolbarSurface)==null?void 0:d.commentDisabledActionCommand,_.XY):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(v=this.toolbarData)==null?void 0:v.heartActiveTooltip,unheartedTooltip:(C=this.toolbarData)==null?void 0:C.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((X=
this.toolbarState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(Q=this.toolbarSharedData)==null?void 0:Q.unheartButtonA11y:(b=this.toolbarSharedData)==null?void 0:b.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(A=this.toolbarSharedData)==null?void 0:A.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.toolbarSurface)==null||!p.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(p=this.commentStrings)==null?void 0:p.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled?void 0:_.r((x=this.toolbarSurface)==null?void 0:x.replyCommand,_.XY),command:this.isVisiblyDisabled?_.r((F=this.toolbarSurface)==null?void 0:F.commentDisabledActionCommand,_.XY):void 0}}}});
var BK=TGj;BK.prototype.onYtServiceRequestSent=BK.prototype.onYtServiceRequestSent;BK.prototype.hideReplyDialogDiv=BK.prototype.hideReplyDialogDiv;_.B([_.H(),_.k("design:type",Object)],BK.prototype,"commentStrings",void 0);_.B([_.H(),_.k("design:type",Boolean)],BK.prototype,"isReply",void 0);_.B([_.H(),_.k("design:type",Object)],BK.prototype,"toolbarData",void 0);_.B([_.H(),_.k("design:type",Object)],BK.prototype,"toolbarSharedData",void 0);
_.B([_.H(),_.k("design:type",String)],BK.prototype,"toolbarStateKey",void 0);_.B([_.H(),_.k("design:type",String)],BK.prototype,"toolbarSurfaceKey",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],BK.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],BK.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],BK.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.Ff("#reply-dialog"),_.k("design:type",HTMLElement)],BK.prototype,"replyDialogDiv",void 0);_.B([_.Ff("#replybox"),_.k("design:type",Object)],BK.prototype,"replyBox",void 0);_.B([_.Ff("ytd-creator-heart-renderer"),_.k("design:type",Object)],BK.prototype,"heartButton",void 0);_.B([_.H({selector:function(p,x){return _.M4(p.entities,"engagementToolbarStateEntityPayload",x)},
selectorArgs:["toolbarStateKey"]}),_.k("design:type",Object)],BK.prototype,"toolbarState",void 0);_.B([_.H({selector:XCH,selectorArgs:["toolbarSurfaceKey"]}),_.k("design:type",Object)],BK.prototype,"toolbarSurface",void 0);_.B([_.H(),_.k("design:type",Object)],BK.prototype,"buttonOverrides",void 0);_.B([_.V("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BK.prototype,"hideReplyDialogDiv",null);
_.B([_.w("toolbarData","toolbarState"),_.k("design:type",String),_.k("design:paramtypes",[])],BK.prototype,"likeCount",null);_.B([_.w("likeCount"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],BK.prototype,"showLikeCount",null);_.B([_.w("toolbarSurface"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],BK.prototype,"isVisiblyDisabled",null);_.B([_.w("toolbarSurface"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],BK.prototype,"hasPrepareAccountCommand",null);
_.B([_.w("toolbarData","toolbarState","toolbarSurface"),_.k("design:type",Object),_.k("design:paramtypes",[])],BK.prototype,"likeToggleButtonRenderer",null);_.B([_.w("isReply","toolbarData","toolbarState","toolbarSurface"),_.k("design:type",Object),_.k("design:paramtypes",[])],BK.prototype,"dislikeToggleButtonRenderer",null);_.B([_.w("toolbarData","toolbarState","toolbarSurface"),_.k("design:type",Object),_.k("design:paramtypes",[])],BK.prototype,"creatorHeartSupportedRenderer",null);
_.B([_.w("toolbarSurface"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],BK.prototype,"hasReplyCommand",null);_.B([_.w("toolbarSurface","commentStrings","isVisiblyDisabled"),_.k("design:type",Object),_.k("design:paramtypes",[])],BK.prototype,"replyButtonRenderer",null);_.B([_.H(),_.k("design:type",Object)],BK.prototype,"replyButtonOverrides",void 0);
_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],BK.prototype,"onYtServiceRequestSent",null);BK=_.B([_.L({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],BK);
_.P(BK,"ytd-comment-engagement-bar",function(){if(PYD!==void 0)return PYD;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return PYD=p},{mode:1});var BG6;var RF6=function(){return _.m.apply(this,arguments)||this};
_.E(RF6,_.m);var kAl=RF6;_.B([_.H(),_.k("design:type",Object)],kAl.prototype,"data",void 0);kAl=_.B([_.L({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],kAl);
_.P(kAl,"ytd-comment-pause-composer-renderer",function(){if(BG6!==void 0)return BG6;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return BG6=p},{mode:1});var UAj;var ivK;var IBI;var R1=function(){return _.m.apply(this,arguments)||this};
_.E(R1,_.m);R1.prototype.computeState=function(p){switch(p==null?void 0:p.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"}};
R1.prototype.updateStateIdentifier=function(p){if(this.viewModel.triStateKey){var x=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.z7("triStateButtonStateEntityPayload",x,{key:x,stateIdentifier:p}))}};
R1.prototype.onClick=function(){var p=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(){p.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){p.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.R8.Object.defineProperties(R1.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 p;return((p=this.data)==null?void 0:p.buttonText)||""}}});
var k1=R1;_.B([_.H(),_.k("design:type",Object)],k1.prototype,"viewModel",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],k1.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],k1.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);
_.B([_.H({selector:gGk,selectorArgs:["viewModel.triStateKey"]}),_.k("design:type",Object)],k1.prototype,"triStateButtonStateEntity",void 0);_.B([_.H({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.k("design:type",String)],k1.prototype,"state",void 0);_.B([_.w("viewModel","state"),_.k("design:type",Object),_.k("design:paramtypes",[])],k1.prototype,"data",null);_.B([_.w("data"),_.k("design:type",String),_.k("design:paramtypes",[])],k1.prototype,"buttonText",null);
k1=_.B([_.L({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],k1);
_.P(k1,"ytd-tri-state-button-view-model",function(){if(IBI!==void 0)return IBI;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return IBI=p},{mode:1});var $AZ=function(){var p=_.m.apply(this,arguments)||this;p.useSmallAvatars=_.S("small_avatars_for_comments");p.webWatchCompactComments=_.S("web_watch_compact_comments");p.editDialog=null;return p};
_.E($AZ,_.m);_.l=$AZ.prototype;_.l.onShow=function(){_.G6("cmv",void 0,"wn_comments")};
_.l.configureRendererStamper=function(){return{authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},linkedCommentBadge:{id:"linked-comment-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[linkedCommentBadge]]"}}}},pinnedCommentBadge:{id:"pinned-comment-badge",mapping:{renderer:"ytd-pinned-comment-badge-renderer"}},sponsorCommentBadge:{id:"sponsor-comment-badge",mapping:{renderer:"ytd-sponsor-comment-badge-renderer"}},
editDialog:{id:"edit-dialog",mapping:{commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}};
_.l.detached=function(){this.editDialog=null;this.expander.reset()};
_.l.updateBackgroundColor=function(){if(this.backgroundColor){var p={"--ytd-comment-paid-background-color":_.QK(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.eV(this.hostElement,p)}else _.eV(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.l.resetExpander=function(){var p;(p=this.expander)==null||p.reset()};
_.l.openEditDialog=function(p){p.dialog&&(this.editDialog=p.dialog,this.JSC$13614_editReplyDialogContainer?this.JSC$13614_editReplyDialogContainer.openDialog():this.JSC$13614_editCommentDialogContainer&&this.JSC$13614_editCommentDialogContainer.focus())};
_.l.onYtNavigate=function(p){var x=p.detail.endpoint;if(x=_.r(x,_.u5Z)||_.r(x,_.YqJ))p.stopPropagation(),this.openEditDialog(x)};
_.l.onYtCommentboxDismiss=function(){this.editDialog=null;_.eV(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.l.onAuthorThumbnailClicked=function(){var p=this;_.S("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(x,F){p.onAuthorThumbnailEndpointSuccess(F)},
onServerError:function(x,F){_.no(new _.qE("Failed to resolve the command",F))}}})};
_.l.onAuthorThumbnailEndpointSuccess=function(p){if((p=p==null?void 0:p.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(p,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();p=p==null?void 0:p.clickTrackingParams;var x=_.yR();p&&x&&_.cl().graftServerVe(p,x)}};
_.l.logScreenVe=function(){_.F8(_.cl(),66557)};
_.l.onYtCommentboxResize=function(p){var x;(p==null?0:(x=p.detail)==null?0:x.height)&&_.eV(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":p.detail.height+"px"})};
_.R8.Object.defineProperties($AZ.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 p,x=(p=this.commentEntity)==null?void 0:p.author;return x&&(x.isCreator||x.isVerified||x.isArtist)?{renderer:{authorEndpoint:x.channelPageEndpoint?_.r(x.channelPageEndpoint,_.XY):_.r(x.channelCommand,_.XY),authorText:{runs:[{text:x.displayName}]},color:x.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:x.isArtist?{iconType:"AUDIO_BADGE"}:
x.isVerified?{iconType:x.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:x.isArtist||x.isVerified?x.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var p,x=(p=this.commentEntity)==null?void 0:p.author;return x!=null&&x.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:x.sponsorBadgeUrl}]},tooltip:x.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var p;return _.r((p=this.commentSurfaceEntity)==null?void 0:p.pdgCommentChip,_.aej)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var p;return this.voiceReplyContainerViewModel&&((p=this.voiceReplyContainerViewModel)==null?void 0:p.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var p;return _.r((p=this.commentSurfaceEntity)==null?void 0:p.voiceReplyContainerViewModel,iiB)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var p;return this.voiceReplyContainerViewModel&&(p=this.voiceReplyContainerViewModel)!=null&&p.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var p,x;return(x=(p=this.commentSurfaceEntity)==null?void 0:p.commentBackgroundColor)!=null?x:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.S("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var p,x;return(((p=this.commentEntity)==null?void 0:(x=p.properties)==null?void 0:x.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var p,x;if(_.S("enable_profile_cards_on_comments")&&((p=this.commentEntity)==null?0:(x=p.author)==null?0:x.profileCardEndpoint)&&this.viewModel.allowProfileCard){var F,N;return _.r((F=this.commentEntity)==null?void 0:(N=F.author)==null?void 0:N.profileCardEndpoint,_.XY)}var h,c;return _.r((h=this.commentEntity)==null?void 0:(c=h.avatar)==null?void 0:c.endpoint,_.XY)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var p,x;if(_.S("enable_profile_cards_on_comments")&&((p=this.commentEntity)==null?0:(x=p.author)==null?0:x.channelPageEndpoint)){var F,N;return _.r((F=this.commentEntity)==null?void 0:(N=F.author)==null?void 0:N.channelPageEndpoint,_.XY)}var h,c;return _.r((h=this.commentEntity)==null?void 0:(c=h.avatar)==null?void 0:c.endpoint,_.XY)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var p,x,F,N,h=(p=this.commentEntity)==null?void 0:(x=p.avatar)==null?void 0:(F=x.image)==null?void 0:(N=F.sources)==null?void 0:N[0];return h?{thumbnails:[{url:h.url,width:h.width,height:h.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.commentEntity)==null?0:(x=p.author)==null?0:x.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.commentEntity)==null?void 0:(x=p.author)==null?void 0:x.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.commentEntity)==null?void 0:(x=p.properties)==null?void 0:x.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var p;return _.r((p=this.commentSurfaceEntity)==null?void 0:p.publishedTimeCommand,_.XY)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var p,x;if(((p=this.commentEntity)==null?0:p.translatedContent)&&((x=this.translateButtonState)==null?void 0:x.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var F;if((F=this.voiceReplyContainerViewModel)==null?0:F.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var N,h;return((N=this.commentEntity)==null?void 0:(h=N.properties)==null?void 0:h.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.commentSharedEntity)==null?void 0:(x=p.strings)==null?void 0:x.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.commentSharedEntity)==null?void 0:(x=p.strings)==null?void 0:x.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.commentEntity)==null||!p.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var p,x,F=(x=_.r((p=this.viewModel)==null?void 0:p.translateButton,Uiv))!=null?x:{},N,h,c,M,f,K,t,d,v,C,X;return Object.assign({},F,{untoggledStateData:Object.assign({},F.untoggledStateData,{buttonText:(N=this.commentEntity)==null?void 0:(h=N.translateData)==null?void 0:h.text}),togglingStateData:Object.assign({},F.togglingStateData,{buttonText:(c=this.commentSharedEntity)==null?
void 0:(M=c.strings)==null?void 0:M.translatingText}),toggledStateData:Object.assign({},F.toggledStateData,{buttonText:(f=this.commentSharedEntity)==null?void 0:(K=f.strings)==null?void 0:K.seeOriginalText}),transitionCommand:((t=this.commentEntity)==null?0:t.translatedContent)?void 0:_.r((d=this.commentEntity)==null?void 0:(v=d.translateData)==null?void 0:v.translateComment,_.XY),triStateKey:(C=this.commentEntity)==null?void 0:(X=C.properties)==null?void 0:X.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return((x=_.r(_.r((p=this.toolbarSurface)==null?void 0:p.menuCommand,_.XY),wxb))==null?void 0:(F=x.menu)==null?void 0:F.menuRenderer)||null}}});
var U2=$AZ;U2.prototype.onYtCommentboxResize=U2.prototype.onYtCommentboxResize;U2.prototype.onYtCommentboxDismiss=U2.prototype.onYtCommentboxDismiss;U2.prototype.onYtNavigate=U2.prototype.onYtNavigate;U2.prototype.resetExpander=U2.prototype.resetExpander;U2.prototype.updateBackgroundColor=U2.prototype.updateBackgroundColor;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],U2.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.nl),_.k("design:type",Object)],U2.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],U2.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],U2.prototype,"ytRendererstamperBehavior",void 0);_.B([_.Ff("#author-thumbnail > button"),_.k("design:type",HTMLElement)],U2.prototype,"authorThumbnailAnchor",void 0);
_.B([_.H({reflectToAttribute:!0}),_.w("viewModel"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],U2.prototype,"linked",null);_.B([_.w("viewModel","linked"),_.k("design:type",Object),_.k("design:paramtypes",[])],U2.prototype,"linkedCommentBadge",null);_.B([_.H({reflectToAttribute:!0}),_.w("viewModel"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],U2.prototype,"pinned",null);
_.B([_.w("viewModel","pinned"),_.k("design:type",Object),_.k("design:paramtypes",[])],U2.prototype,"pinnedCommentBadge",null);_.B([_.w("commentEntity","commentSharedEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],U2.prototype,"authorCommentBadge",null);_.B([_.H({reflectToAttribute:!0}),_.w("authorCommentBadge"),_.k("design:type",Object),_.k("design:paramtypes",[])],U2.prototype,"hasAuthorBadge",null);
_.B([_.w("commentEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],U2.prototype,"sponsorCommentBadge",null);_.B([_.H({reflectToAttribute:!0}),_.w("sponsorCommentBadge"),_.k("design:type",Object),_.k("design:paramtypes",[])],U2.prototype,"hasSponsorBadge",null);_.B([_.w("commentSurfaceEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],U2.prototype,"pdgCommentChipRenderer",null);
_.B([_.H({reflectToAttribute:!0}),_.w("voiceReplyContainerViewModel"),_.k("design:type",Object),_.k("design:paramtypes",[])],U2.prototype,"hasVoiceReply",null);_.B([_.w("commentSurfaceEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],U2.prototype,"voiceReplyContainerViewModel",null);_.B([_.w("voiceReplyContainerViewModel"),_.k("design:type",Object),_.k("design:paramtypes",[])],U2.prototype,"voiceReplyUnavailableText",null);_.B([_.H(),_.k("design:type",Object)],U2.prototype,"data",void 0);
_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],U2.prototype,"viewModel",null);_.B([_.H({selector:function(p,x){return _.M4(p.entities,"commentSharedEntityPayload",x)},
selectorArgs:["viewModel.sharedKey"]}),_.k("design:type",Object)],U2.prototype,"commentSharedEntity",void 0);_.B([_.H({selector:function(p,x){return _.M4(p.entities,"commentEntityPayload",x)},
selectorArgs:["viewModel.commentKey"]}),_.k("design:type",Object)],U2.prototype,"commentEntity",void 0);_.B([_.H({selector:function(p,x){return _.M4(p.entities,"commentSurfaceEntityPayload",x)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.k("design:type",Object)],U2.prototype,"commentSurfaceEntity",void 0);_.B([_.H({selector:XCH,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.k("design:type",Object)],U2.prototype,"toolbarSurface",void 0);_.B([_.H({selector:gGk,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.k("design:type",Object)],U2.prototype,"translateButtonState",void 0);
_.B([_.w("commentSurfaceEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],U2.prototype,"backgroundColor",null);_.B([_.H({reflectToAttribute:!0}),_.w("viewModel"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],U2.prototype,"optimalReadingWidthComments",null);_.B([_.Ff("ytd-expander"),_.k("design:type",Object)],U2.prototype,"expander",void 0);
_.B([_.W("backgroundColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],U2.prototype,"updateBackgroundColor",null);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],U2.prototype,"useSmallAvatars",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],U2.prototype,"webWatchCompactComments",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("commentEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],U2.prototype,"isReply",null);
_.B([_.w("commentEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],U2.prototype,"authorThumbnailEndpoint",null);_.B([_.w("commentEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],U2.prototype,"authorNameEndpoint",null);_.B([_.w("commentEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],U2.prototype,"authorThumbnail",null);_.B([_.w("commentEntity"),_.k("design:type",String),_.k("design:paramtypes",[])],U2.prototype,"authorTextClass",null);
_.B([_.w("commentEntity"),_.k("design:type",String),_.k("design:paramtypes",[])],U2.prototype,"authorChannelName",null);_.B([_.w("commentEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],U2.prototype,"publishedTime",null);_.B([_.w("commentSurfaceEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],U2.prototype,"publishedTimeCommand",null);
_.B([_.w("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.k("design:type",Object),_.k("design:paramtypes",[])],U2.prototype,"contentText",null);_.B([_.W("contentText"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],U2.prototype,"resetExpander",null);_.B([_.w("commentEntity"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],U2.prototype,"shouldShowReadMoreInitially",null);
_.B([_.w("commentSharedEntity"),_.k("design:type",String),_.k("design:paramtypes",[])],U2.prototype,"expandText",null);_.B([_.w("commentSharedEntity"),_.k("design:type",String),_.k("design:paramtypes",[])],U2.prototype,"collapseText",null);_.B([_.w("commentEntity"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],U2.prototype,"shouldShowTranslateButton",null);
_.B([_.w("commentEntity","commentSharedEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],U2.prototype,"translateButton",null);_.B([_.w("toolbarSurface"),_.k("design:type",Object),_.k("design:paramtypes",[])],U2.prototype,"overflowMenuRenderer",null);_.B([_.H(),_.k("design:type",Object)],U2.prototype,"editDialog",void 0);_.B([_.Ff("ytd-comment-dialog-renderer"),_.k("design:type",Object)],U2.prototype,"JSC$13614_editCommentDialogContainer",void 0);
_.B([_.Ff("ytd-comment-reply-dialog-renderer"),_.k("design:type",Object)],U2.prototype,"JSC$13614_editReplyDialogContainer",void 0);_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],U2.prototype,"onYtNavigate",null);_.B([_.V("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],U2.prototype,"onYtCommentboxDismiss",null);
_.B([_.V("yt-commentbox-resize"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],U2.prototype,"onYtCommentboxResize",null);U2=_.B([_.L({disableElementRegistration:!0,is:"ytd-comment-view-model"})],U2);
_.P(U2,"ytd-comment-view-model",function(){if(ivK!==void 0)return ivK;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return ivK=p},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var eFD=function(){var p=_.m.apply(this,arguments)||this;p.modern=_.S("web_modern_buttons");p.isWatchGrid=_.S("kevlar_watch_grid");p.buttonOverrides={style:"call-to-action"};p.JSC$13631_spinnerEl=null;p.nextContinuation={continuationType:"commentRepliesContinuation",usePost:!0};return p};
_.E(eFD,_.m);_.l=eFD.prototype;_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.l.configureRendererStamper=function(){return{"data.continuations":{id:"continuation",mapping:{nextContinuationData:{component:"yt-next-continuation",params:{showButton:!0,showIcon:!0}}}},"data.teaserContents":{id:"teaser-replies",mapping:{commentRenderer:{component:"ytd-comment-renderer",params:{isReply:!0}},commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentRenderer:{component:"ytd-comment-renderer",params:{isReply:!0}},commentViewModel:{component:"ytd-comment-view-model"},
continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.l.attached=function(){this.isShowRepliesVisible=!0};
_.l.created=function(){this.domRepeatInitialCount=10};
_.l.dataChanged=function(){var p=this.expanderContents;p&&(p.hidden=!0);this.isLoading=!1};
_.l.onContentsDomChange=function(){this.domRepeatInitialCount=_.n(this.hostElement).querySelectorAll("ytd-comment-renderer").length};
_.l.onRetrieveLocation=function(p,x){x.locationRetrieved("/comment_service_ajax?action_get_comment_replies=1&pbj=1",void 0);p.stopPropagation()};
_.l.triggerFirstContinuation=function(){this.data.contents||this.continuation&&this.continuation.trigger();this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.l.isLoadingChanged=function(){this.isLoading&&!this.JSC$13631_spinnerEl&&(this.JSC$13631_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.n(this.expanderContents).appendChild(this.JSC$13631_spinnerEl));this.JSC$13631_spinnerEl&&(this.JSC$13631_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var p;(p=this.contents)==null||p.classList.remove("reloading")}};
_.l.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var p=_.r(this.data.viewReplies,_.AS);p&&this.ytRendererBehavior.logExplicitClick(p)};
_.l.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var p=_.r(this.data.hideReplies,_.AS);p&&this.ytRendererBehavior.logExplicitClick(p)};
_.l.isShowMoreChanged=function(){var p=_.n(this.hostElement).querySelector("#expander-contents");p&&(p.hidden=this.isShowRepliesVisible)};
_.l.computeAlign=function(){if(this.modern){var p;return!((p=this.data)==null?0:p.viewRepliesCreatorThumbnail)}};
_.R8.Object.defineProperties(eFD.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var p,x=(p=this.data)==null?void 0:p.contents,F;return!((F=this.data)==null||!F.continuations)||!!x&&x.length>0&&!!x[x.length-1].continuationItemRenderer}}});
var io=eFD;io.prototype.isShowMoreChanged=io.prototype.isShowMoreChanged;io.prototype.isLoadingChanged=io.prototype.isLoadingChanged;io.prototype.triggerFirstContinuation=io.prototype.triggerFirstContinuation;io.prototype.onRetrieveLocation=io.prototype.onRetrieveLocation;io.prototype.dataChanged=io.prototype.dataChanged;_.B([_.u(_.Wy.YtNextContinuationBehavior),_.k("design:type",Object)],io.prototype,"ytNextContinuationBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],io.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],io.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.Vw),_.k("design:type",Object)],io.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],io.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],io.prototype,"modern",void 0);
_.B([_.H(),_.k("design:type",Boolean)],io.prototype,"isLoading",void 0);_.B([_.H({value:!0}),_.k("design:type",Boolean)],io.prototype,"isShowRepliesVisible",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],io.prototype,"useNewFormatting",void 0);_.B([_.H({value:10}),_.k("design:type",Number)],io.prototype,"domRepeatInitialCount",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],io.prototype,"isWatchGrid",void 0);
_.B([_.H(),_.k("design:type",Object)],io.prototype,"buttonOverrides",void 0);_.B([_.Ff("#expander-contents"),_.k("design:type",HTMLElement)],io.prototype,"expanderContents",void 0);_.B([_.Ff("yt-next-continuation"),_.k("design:type",Object)],io.prototype,"continuation",void 0);_.B([_.Ff("ytd-continuation-item-renderer"),_.k("design:type",Object)],io.prototype,"continuationItemRenderer",void 0);_.B([_.Ff("#contents"),_.k("design:type",HTMLElement)],io.prototype,"contents",void 0);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],io.prototype,"dataChanged",null);_.B([_.w("data.continuations","data.contents"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],io.prototype,"hasContinuation",null);_.B([_.V("yt-retrieve-location"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],io.prototype,"onRetrieveLocation",null);
_.B([_.V("yt-expander-more-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],io.prototype,"triggerFirstContinuation",null);_.B([_.W("isLoading"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],io.prototype,"isLoadingChanged",null);_.B([_.W("isShowRepliesVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],io.prototype,"isShowMoreChanged",null);
io=_.B([_.L({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],io);
_.P(io,"ytd-comment-replies-renderer",function(){if(UAj!==void 0)return UAj;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return UAj=p},{mode:1});var pUJ;var x3m=function(){var p=_.m.apply(this,arguments)||this;p.isOpen=!1;p.commentDialog=null;p.useSmallAvatars=_.S("small_avatars_for_comments");p.useSmallAvatarsEngagementPanelOnly=_.S("small_avatars_for_comments_ep");p.placeholderFocusListener=null;p.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return p};
_.E(x3m,_.m);_.l=x3m.prototype;_.l.configureRendererStamper=function(){return{"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},commentDialog:{id:"comment-dialog",mapping:{commentDialogRenderer:{component:"ytd-comment-dialog-renderer",properties:{zeroStepChannelCreationRenderer:"[[data.zeroStep.zeroStepChannelCreationRenderer]]"}}}}}};
_.l.ready=function(){var p=this,x=_.n(this.hostElement).querySelector("#placeholder-area"),F=_.n(this.hostElement).querySelector("#simplebox-placeholder"),N=function(h){h.stopPropagation();h instanceof KeyboardEvent&&h.type==="keypress"&&h.keyCode!==13&&h.keyCode!==32||p.openDialog()};
this.placeholderFocusListener=N;F.addEventListener("focus",this.placeholderFocusListener);x.addEventListener("tap",N);x.addEventListener("keypress",N)};
_.l.maybeRemoveFocusEventListener=function(){var p;(p=this.data)!=null&&p.prepareAccountEndpoint&&!_.S("web_comments_simplebox_modal_focus_on_tap_ks")&&(p=_.n(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(p.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.l.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.l.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.S("web_comment_simplebox_resolve_polymer_command_ks")?_.xL.instance.resolveCommand(this.data.prepareAccountEndpoint):_.FY(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.n(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.l.onYtCommentboxDismiss=function(p){p.stopPropagation();this.isOpen=!1};
_.l.onCreateCommentAction=function(p){this.get("createCommentAction.contents",p)&&(this.isOpen=!1)};
_.l.computeCommentDialog=function(p){return{placeholderText:p.placeholderText,authorThumbnail:p.authorThumbnail,submitButton:p.submitButton,imageButton:p.imageButton,cancelButton:p.cancelButton,emojiButton:p.emojiButton,emojis:p.emojis,emojiPicker:p.emojiPicker,aadcGuidelinesStateEntityKey:p.aadcGuidelinesStateEntityKey,openAadcDialog:p.openAadcDialog,unicodeEmojisUrl:p.unicodeEmojisUrl}};
_.l.onHideIdentityChip=function(p){_.r(p,OiB)&&this.set("data.placeholderText",_.r(p,OiB).placeholderText)};
var I1=x3m;I1.prototype.onYtCommentboxDismiss=I1.prototype.onYtCommentboxDismiss;I1.prototype.dataChanged=I1.prototype.dataChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],I1.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],I1.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],I1.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],I1.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],I1.prototype,"isOpen",void 0);_.B([_.H(),_.k("design:type",Object)],I1.prototype,"commentDialog",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],I1.prototype,"engagementPanel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],I1.prototype,"useSmallAvatars",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],I1.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],I1.prototype,"enableCreationBox",void 0);_.B([_.H(),_.k("design:type",Boolean)],I1.prototype,"showCreateDialog",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],I1.prototype,"dataChanged",null);
_.B([_.V("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],I1.prototype,"onYtCommentboxDismiss",null);I1=_.B([_.L({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],I1);
_.P(I1,"ytd-comment-simplebox-renderer",function(){if(pUJ!==void 0)return pUJ;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return pUJ=p},{mode:1});var FvB;_.Ei("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var $1=function(){var p=_.m.apply(this,arguments)||this;p.addHoverEffect=_.S("swatcheroo_comments_hover_effect");return p};
_.E($1,_.m);$1.prototype.onTap=function(p){if(this.addHoverEffect&&!this.engagementPanel&&!_.mx(_.m9(p)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var x;((x=window.getSelection())==null?0:x.toString().length)||_.FY({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
$1.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.R8.Object.defineProperties($1.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)!=null&&p.commentViewModel)return _.r(this.data.commentViewModel,khn)}}});
var eY=$1;eY.prototype.onTap=eY.prototype.onTap;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],eY.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],eY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],eY.prototype,"addHoverEffect",void 0);_.B([_.H(),_.k("design:type",Object)],eY.prototype,"data",void 0);
_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],eY.prototype,"commentViewModel",null);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],eY.prototype,"engagementPanel",void 0);_.B([_.V("tap"),_.V("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],eY.prototype,"onTap",null);eY=_.B([_.L({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],eY);
_.P(eY,"ytd-comment-thread-renderer",function(){if(FvB!==void 0)return FvB;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.comment.commentRenderer]]" class="style-scope ytd-comment-thread-renderer">\n  <ytd-comment-renderer id="comment" data="[[data.comment.commentRenderer]]" engagement-panel="[[engagementPanel]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-renderer>\n</template>\n<template is="dom-if" if="[[data.commentViewModel]]" class="style-scope ytd-comment-thread-renderer">\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</template>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return FvB=p},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var Nt6;var hjZ=function(){var p=_.m.apply(this,arguments)||this;p.modernTypography=_.S("web_modern_typography");p.compactHeader=_.S("web_watch_compact_comments_header");p.hidePanelButton=!1;p.isPostSchedulingEnabled=_.S("enable_post_scheduling");p.hasFinishedStamping=!1;p.JSC$13649_handleOpenPostCommentDialogActionAfterStamp=!1;p.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return p};
_.E(hjZ,_.m);_.l=hjZ.prototype;
_.l.configureRendererStamper=function(){return{"data.createRenderer":{id:"simple-box",mapping:{commentSimpleboxRenderer:{component:"ytd-comment-simplebox-renderer",properties:{engagementPanel:"[[engagementPanel]]",showCreateDialog:"[[data.showCreateDialog]]"}}}},"data.pausedCommentsMessage":{id:"paused-comments-message",mapping:{messageRenderer:"ytd-comment-pause-composer-renderer"}},backstagePostDialog:{id:"backstage-post-dialog",mapping:{backstagePostDialogRenderer:{component:"ytd-backstage-post-dialog-renderer"}},events:!0},
"data.sortMenu":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.alerts":{id:"alert",mapping:{alertWithButtonRenderer:"ytd-alert-with-button-renderer"},renderPriority:0,waitForSignal:"eocs"},"data.zeroStateMessage":{id:"zero-state-message",mapping:{backstageZeroStateRenderer:"ytd-backstage-zero-state-renderer",postFilterZeroStateRenderer:"ytd-post-filter-zero-state-renderer"}},"data.prefilledCreateDialogHeaderMessage":{id:"prefilled-dialog-header",mapping:{backstagePrefilledPostDialogHeaderRenderer:"ytd-backstage-prefilled-post-dialog-header-renderer"}},
"data.postStreamFilter":{id:"post-stream-filter",mapping:{postStreamFilterRenderer:"ytd-post-stream-filter-renderer"}},"data.schedulingZeroStateMessage":{id:"scheduling-zero-state-message",mapping:{postSchedulingZeroStateRenderer:"ytd-post-scheduling-zero-state-renderer"}}}};
_.l.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.l.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13649_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.l.onYtServiceRequestSent=function(p,x){if(!_.S("kevlar_command_handler")&&x.actions)for(p=0;p<x.actions.length;p++){var F=x.actions[p];_.r(F,tcC)&&_.n(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.r(F,tcC))}};
_.l.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var p;if(this.getPrefilledBackstagePostDialog((p=this.data)==null?void 0:p.actions)){_.n(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var x=_.n(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;x&&_.jB(this,function(){x.focus();x.openDialog&&x.openDialog()})}}else this.hasActionsChange=!0};
_.l.computeIsBackstage=function(p){return p};
_.l.onYtCommentboxDismiss=function(){_.n(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.l.removePrefilledDialog=function(p){if(p==null?0:p.actions){for(var x=p.actions.length-1;x>=0;x--){var F=void 0;((F=_.r(p.actions[x],b7I))==null?0:F.dialog)&&delete p.actions[x]}this.set("data",void 0);this.set("data",p)}};
_.l.getPrefilledBackstagePostDialog=function(p){if(p)for(var x=0;x<p.length;x++){var F=p[x],N=void 0;if((N=_.r(F,b7I))==null?0:N.dialog)return _.r(F,b7I).dialog}return null};
_.l.computeBackstagePostDialog=function(p){return p&&(this.getPrefilledBackstagePostDialog(p.actions)||p.createRenderer)};
_.l.dataChanged=function(){if(this.data){var p=this.data.customEmojis,x=this.data.unicodeEmojisUrl;_.uu.clear();x&&_.dSZ(_.uu,x);p&&_.uu.load(p)}};
_.l.handleSignalActionOpenPostCommentDialogAction=function(){var p=_.n(this.hostElement).querySelector("ytd-comment-simplebox-renderer");p?p.openDialog():this.JSC$13649_handleOpenPostCommentDialogActionAfterStamp=!0};
_.R8.Object.defineProperties(hjZ.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.S("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var p,x,F,N,h,c,M;return!this.hidePanelButton&&_.S("kevlar_watch_comments_panel_button")&&((M=_.r((p=this.data)==null?void 0:(x=p.sortMenu)==null?void 0:(F=x.sortFilterSubMenuRenderer)==null?void 0:(N=F.subMenuItems)==null?void 0:(h=N[0])==null?void 0:(c=h.serviceEndpoint)==null?void 0:c.commandMetadata,_.eq))==null?void 0:M.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.JG("MINIPLAYER_EXPAND_LABEL"),text:_.L1(_.JG("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
var p$=hjZ;p$.prototype.dataChanged=p$.prototype.dataChanged;p$.prototype.onYtCommentboxDismiss=p$.prototype.onYtCommentboxDismiss;p$.prototype.observePrefilledBackstagePostDialog=p$.prototype.observePrefilledBackstagePostDialog;p$.prototype.onYtServiceRequestSent=p$.prototype.onYtServiceRequestSent;p$.prototype.onStampFinished=p$.prototype.onStampFinished;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],p$.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],p$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],p$.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],p$.prototype,"modernTypography",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],p$.prototype,"compactHeader",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],p$.prototype,"engagementPanel",void 0);_.B([_.H(),_.k("design:type",Object)],p$.prototype,"hidePanelButton",void 0);_.B([_.H({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.k("design:type",Boolean)],p$.prototype,"isBackstage",void 0);_.B([_.H({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.k("design:type",Object)],p$.prototype,"backstagePostDialog",void 0);
_.B([_.H(),_.k("design:type",Object)],p$.prototype,"isPostSchedulingEnabled",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("data","showCommentsPanelButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],p$.prototype,"useSpaceBetween",null);_.B([_.H({reflectToAttribute:!0}),_.w("data","hidePanelButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],p$.prototype,"showCommentsPanelButton",null);
_.B([_.w("data","showCommentsPanelButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],p$.prototype,"commentsPanelButtonData",null);_.B([_.V("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],p$.prototype,"onStampFinished",null);_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],p$.prototype,"onYtServiceRequestSent",null);
_.B([_.W("data.actions"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],p$.prototype,"observePrefilledBackstagePostDialog",null);_.B([_.V("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],p$.prototype,"onYtCommentboxDismiss",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],p$.prototype,"dataChanged",null);
p$=_.B([_.L({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],p$);
_.P(p$,"ytd-comments-header-renderer",function(){if(Nt6!==void 0)return Nt6;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Nt6=p},{mode:1});var lib;var cbb=function(){return _.m.apply(this,arguments)||this};
_.E(cbb,_.m);var xi=cbb;_.B([_.H(),_.k("design:type",Object)],xi.prototype,"data",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],xi.prototype,"ytRendererBehavior",void 0);xi=_.B([_.L({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],xi);
_.P(xi,"ytd-destination-button-renderer",function(){if(lib!==void 0)return lib;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return lib=p},{mode:1});var ai6;var MKJ=function(){var p=_.m.apply(this,arguments)||this;p.isRichGrid=!1;p.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};p.modernTypography=_.S("web_modern_typography");return p};
_.E(MKJ,_.m);_.l=MKJ.prototype;_.l.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.l.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.l.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.l.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var p;if((p=this.data)==null||!p.isExpanded){p=this.hostElement.clientWidth;var x;if(p&&(x=this.data)!=null&&x.destinationButtons){x=Math.floor((p+4)/214);p=this.data.destinationButtons.length;var F=Math.ceil(p/x);this.fullyVisibleRows=p%x===1&&F===2?1:Math.min(F,2);this.isShowMoreVisible=this.fullyVisibleRows<F}}}};
_.l.updateRichGridDestinationButtonsVisibility=function(){var p,x;if(this.isRichGrid&&((p=this.data)==null||!p.isExpanded)&&(x=this.data)!=null&&x.destinationButtons){p=this.richGridItemsPerRow+1;x=this.data.destinationButtons.length;var F=Math.ceil(x/p);this.fullyVisibleRows=x%p===1&&F===2?1:Math.min(F,2);this.isShowMoreVisible=this.fullyVisibleRows<F}};
_.l.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
var Fe=MKJ;Fe.prototype.updateRichGridDestinationButtonsVisibility=Fe.prototype.updateRichGridDestinationButtonsVisibility;_.B([_.H(),_.k("design:type",Object)],Fe.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Number)],Fe.prototype,"fullyVisibleRows",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Fe.prototype,"isShowMoreVisible",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Fe.prototype,"isRichGrid",void 0);
_.B([_.H({selector:_.yr,value:0}),_.k("design:type",Number)],Fe.prototype,"richGridItemsPerRow",void 0);_.B([_.H(),_.k("design:type",Object)],Fe.prototype,"gridStateActionMap",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Fe.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Fe.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Fe.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],Fe.prototype,"ytdReduxBehavior",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Fe.prototype,"modernTypography",void 0);_.B([_.W("data","richGridItemsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Fe.prototype,"updateRichGridDestinationButtonsVisibility",null);
Fe=_.B([_.L({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],Fe);
_.P(Fe,"ytd-destination-shelf-renderer",function(){if(ai6!==void 0)return ai6;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return ai6=p},{mode:1});var D3K;var fiB=function(){return _.m.apply(this,arguments)||this};
_.E(fiB,_.m);fiB.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var Nr=fiB;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Nr.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Nr.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Nr.prototype,"data",void 0);Nr=_.B([_.L({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],Nr);
_.P(Nr,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(D3K!==void 0)return D3K;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return D3K=p},{mode:1});var KvB;var qKv=function(){var p=_.m.apply(this,arguments)||this;p.disableAnimation=!1;p.isSlimlineSurvey=!1;p.isSlimlineSurveyFollowUp=!1;p.isShortsStyle=!1;return p};
_.E(qKv,_.m);qKv.prototype.onTap=function(p){p.preventDefault();this.data&&_.hG(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.R8.Object.defineProperties(qKv.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 p,x,F,N,h;return((p=this.data)==null?0:p.checked)?(x=this.data)==null?void 0:(F=x.onStateIcon)==null?void 0:F.iconType:(N=this.data)==null?void 0:(h=N.defaultStateIcon)==null?void 0:h.iconType}}});
var h2=qKv;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],h2.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],h2.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],h2.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],h2.prototype,"disableAnimation",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],h2.prototype,"isSlimlineSurvey",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],h2.prototype,"isSlimlineSurveyFollowUp",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],h2.prototype,"isShortsStyle",void 0);_.B([_.w("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],h2.prototype,"isAnimatedIcon",null);
_.B([_.w("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.k("design:type",Number),_.k("design:paramtypes",[])],h2.prototype,"iconSize",null);_.B([_.w("isShortsStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],h2.prototype,"isDarkTheme",null);_.B([_.w("data.checked"),_.k("design:type",Object),_.k("design:paramtypes",[])],h2.prototype,"icon",null);h2=_.B([_.L({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],h2);
_.P(h2,"ytd-rating-survey-option-renderer",function(){if(KvB!==void 0)return KvB;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return KvB=p},{mode:2});var ZOK;var tK6=function(){var p=_.m.apply(this,arguments)||this;p.firstResponseText=null;p.lastResponseText=null;p.selectedNonStarOption=null;p.hideOptions=!1;p.hideUndoButton=!0;p.disableAnimation=!1;p.showResponseRangeText=!1;p.selectedRatingIndex=-1;p.isSlimlineSurvey=!1;p.isSlimlineSurveyFollowUp=!1;p.isShortsStyle=!1;p.slimlineSurveyRatingSelectedIndex=-1;return p};
_.E(tK6,_.m);_.l=tK6.prototype;_.l.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.l.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.l.onOptionChange=function(p,x){var F=this;p=x.onStateIcon&&x.defaultStateIcon&&x.onStateIcon.iconType===x.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(M,f){M.responseText===x.responseText?F.isSlimlineSurvey?(F.selectedRatingIndex=f,F.ytdReduxBehavior.dispatch(eJj(f))):(F.setSurveyOptionValue(f,!0,"checked"),F.setSurveyOptionValue(f,!0,"selected")):(F.setSurveyOptionValue(f,!1,"checked"),F.setSurveyOptionValue(f,
!1,"selected"))});
else if(p)this.selectedNonStarOption=x,this.hideOptions=!0;else{var N=this.ytRendererBehavior.getSimpleString(x.responseText),h=!0;this.getOptionRenderers().forEach(function(M,f){F.setSurveyOptionValue(f,h,"checked");F.setSurveyOptionValue(f,!1,"selected");F.ytRendererBehavior.getSimpleString(M.responseText)===N&&(h=!1,F.setSurveyOptionValue(f,!0,"selected"))})}p=x.responseEndpoint;
var c;x.followUpCommand&&(c=_.r(x.followUpCommand,ldm));this.isSlimlineSurvey?(this.resetComponent(),_.lA(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.lA(this.hostElement,"ytd-inline-survey-rating-select-action",[p,c])};
_.l.showSelectedOption=function(){var p=this;_.E0.addJob(function(){var x=p.getOptionRenderers()[p.slimlineSurveyRatingSelectedIndex];p.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),x)},8,100)};
_.l.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(p){var x;return(x=_.r(p,adK))!=null?x:{}}):[]};
_.l.onUndoClick=function(){this.resetComponent();_.lA(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.l.setSurveyOptionValue=function(p,x,F){this.notifyPath("data.ratings."+p+".ratingSurveyOptionRenderer."+F);this.set("data.ratings."+p+".ratingSurveyOptionRenderer."+F,x)};
_.l.resetComponent=function(){var p=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var x=this.getOptionRenderers(),F,N;this.firstResponseText=(N=(F=x[0])==null?void 0:F.responseText)!=null?N:null;var h,c;this.lastResponseText=(c=(h=x[x.length-1])==null?void 0:h.responseText)!=null?c:null;x.forEach(function(M,f){p.setSurveyOptionValue(f,!1,"checked");p.setSurveyOptionValue(f,!1,"selected")})};
_.R8.Object.defineProperties(tK6.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
var lV=tK6;lV.prototype.onOptionChange=lV.prototype.onOptionChange;lV.prototype.dataChanged=lV.prototype.dataChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],lV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],lV.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],lV.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],lV.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],lV.prototype,"firstResponseText",void 0);_.B([_.H(),_.k("design:type",Object)],lV.prototype,"lastResponseText",void 0);_.B([_.H(),_.k("design:type",Object)],lV.prototype,"selectedNonStarOption",void 0);_.B([_.H(),_.k("design:type",Object)],lV.prototype,"hideOptions",void 0);_.B([_.H(),_.k("design:type",Object)],lV.prototype,"hideUndoButton",void 0);_.B([_.H(),_.k("design:type",Object)],lV.prototype,"disableAnimation",void 0);
_.B([_.H(),_.k("design:type",Object)],lV.prototype,"showResponseRangeText",void 0);_.B([_.H(),_.k("design:type",Object)],lV.prototype,"selectedRatingIndex",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],lV.prototype,"isSlimlineSurvey",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],lV.prototype,"isSlimlineSurveyFollowUp",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],lV.prototype,"isShortsStyle",void 0);_.B([_.H({selector:function(p){return p.ui.slimlineSurveyRatingSelectedIndex}}),
_.k("design:type",Object)],lV.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.B([_.w("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],lV.prototype,"isSingleSelect",null);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],lV.prototype,"dataChanged",null);
_.B([_.V("ytd-rating-survey-option-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],lV.prototype,"onOptionChange",null);lV=_.B([_.L({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],lV);
_.P(lV,"ytd-rating-survey-renderer",function(){if(ZOK!==void 0)return ZOK;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return ZOK=p},{mode:1});var d3J;var vhm;var JbB;var ezM=(Xo.FIRSTDAYOFWEEK+1)%7,C5l=function(p,x,F,N){var h="";if(N.selection&&UwB(N.selection))Sw(p,N.selection)&&(h+=" selected");else if(N.selection&&iG6(N.selection)){var c=N.selection.selectionState||"START_DATE";Sw(p,N.selection.start)&&(h+=" period-start ",c==="START_DATE"&&(h+="selected"));Sw(p,N.selection.end)&&(h+=" period-end ",c==="END_DATE"&&(h+="selected"));rV(p,N.selection.start)||rV(N.selection.end,p)||(h+=" highlighted")}if(rV(x,N.start)||rV(N.end,x))h+=" disabled";N.circleToday&&
Sw(x,F)&&(h+=" today");return h};var SKk=function(){return _.m.apply(this,arguments)||this};
_.E(SKk,_.m);_.l=SKk.prototype;_.l.attached=function(){var p=this;_.jB(this,function(){p.JSC$13683_calendarMain.scrollHeight>0&&(p.calendarConfig.selection?p.scrollToDate(IP$(p.calendarConfig.selection)):p.scrollToDate(p.calendarConfig.end))})};
_.l.updateSelection=function(p){p=pXk(Object.assign({},this.calendarConfig,{selection:p}),C5l);this.splice.apply(this,["renderData.months",0,p.length].concat(_.se(p)))};
_.l.scrollToDate=function(p){this.renderData&&(p=xRH(p,this.renderData),p!==void 0&&this.JSC$13683_calendarMain.scrollToIndex(p))};
_.l.scrollToNextMonth=function(){this.JSC$13683_calendarMain.scrollToIndex(this.JSC$13683_calendarMain.firstVisibleIndex+1)};
_.l.scrollToPrevMonth=function(){this.JSC$13683_calendarMain.firstVisibleIndex===0&&this.JSC$13683_calendarMain.scrollTo(0,0);this.JSC$13683_calendarMain.scrollToIndex(this.JSC$13683_calendarMain.firstVisibleIndex-1)};
_.l.handleDayClick=function(p){_.lA(this.hostElement,"ytd-calendar-date-clicked",[p.model.day.date])};
_.l.handleDayMouseDown=function(p){p.preventDefault();_.lA(this.hostElement,"ytd-calendar-date-mousedown",[p.model.day.date])};
_.l.handleDayMouseUp=function(p){_.lA(this.hostElement,"ytd-calendar-date-mouseup",[p.model.day.date])};
_.l.handleDayMouseEnter=function(p){p.preventDefault();_.lA(this.hostElement,"ytd-calendar-date-mouseenter",[p.model.day.date])};
_.l.handleDayMouseLeave=function(p){_.lA(this.hostElement,"ytd-calendar-date-mouseleave",[p.model.day.date])};
_.R8.Object.defineProperties(SKk.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var p=this.calendarConfig,x=C5l;x=x===void 0?C5l:x;for(var F=[],N=0;N<7;N++)F.push(Xo.NARROWWEEKDAYS[(N+ezM)%7]);return{months:pXk(p,x),daysOfWeekLabel:F}}}});
var cd=SKk;_.B([_.H(),_.k("design:type",Object)],cd.prototype,"calendarConfig",void 0);_.B([_.Ff("#calendar-main"),_.k("design:type",Object)],cd.prototype,"JSC$13683_calendarMain",void 0);_.B([_.w("calendarConfig"),_.k("design:type",Object),_.k("design:paramtypes",[])],cd.prototype,"renderData",null);cd=_.B([_.L({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],cd);
_.P(cd,"ytd-scrollable-calendar",function(){if(JbB!==void 0)return JbB;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return JbB=p},{mode:2});var rbI;var Eh6;var XUn=function(){var p=_.m.apply(this,arguments)||this;p.hideCharCounter=!1;p.hideLabel=!1;p.noLabelFloat=!1;p.autoValidate=!0;p.invalid=!1;p.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return p};
_.E(XUn,_.m);_.l=XUn.prototype;_.l.reset=function(p){this.value=p&&this.data?this.data.value=p:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.l.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.l.focusTextInput=function(){this.input.focus()};
_.l.validate=function(){if(!this.autoValidate)return!this.invalid;if(!this.input)return!1;if(this.isMultiline&&this.data&&this.value!=null&&this.data.validValueRegexp&&!RegExp("^"+this.data.validValueRegexp+"$").test(this.input.value))return this.input.autoValidate=!1,this.invalid=!0,!1;this.input.autoValidate=!0;return this.input.validate()};
_.l.valueChanged=function(){var p,x;if(((p=this.data)==null?0:p.value)||((x=this.data)==null?void 0:x.value)==="")this.value=this.data.value;else{var F;((F=this.data)==null?void 0:F.value)!==void 0||this.value||(this.value="")}};
_.l.computeLabel=function(p,x){return x?"":_.Pi(p)};
_.l.computeAriaLabel=function(p,x){return x?_.Pi(p):""};
_.l.computeErrorMessage=function(p,x,F,N){!p&&x?p=F||this.strings.REQUIRED_LABEL:(p=_.Pi(N),p=_.vr(p,"&")?"document"in _.Mm?gBl(p):Qkm(p):p);return p};
_.l.computeType=function(p){return p==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.l.onTextValueChanged=function(p){this.value=p.detail.value;var x;(x=this.onValueChanged)==null||x.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.l.handleUpdateTextInputFormFieldRendererCommand=function(p){(p=_.r(p,swI))&&this.data&&this.data.id===p.id&&(p.invalid!==void 0&&(this.invalid=p.invalid),p.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",p.invalidValueErrorMessage))};
_.l.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Vx("value-changed",this.value))};
_.l.updateInvalidFromBinding=function(p){this.invalid=p.detail.value};
_.R8.Object.defineProperties(XUn.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var p;return!((p=this.data)==null||!p.isMultiline)}}});
var aq=XUn;aq.prototype.valueChangedForBinding=aq.prototype.valueChangedForBinding;aq.prototype.valueChanged=aq.prototype.valueChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],aq.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],aq.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],aq.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],aq.prototype,"data",void 0);_.B([_.H(),_.k("design:type",String)],aq.prototype,"value",void 0);_.B([_.H(),_.k("design:type",String)],aq.prototype,"pattern",void 0);_.B([_.H(),_.k("design:type",String)],aq.prototype,"errorMessage",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],aq.prototype,"componentStyle",void 0);_.B([_.H(),_.k("design:type",Object)],aq.prototype,"hideCharCounter",void 0);
_.B([_.H(),_.k("design:type",Object)],aq.prototype,"hideLabel",void 0);_.B([_.H(),_.k("design:type",Object)],aq.prototype,"noLabelFloat",void 0);_.B([_.H(),_.k("design:type",Function)],aq.prototype,"onValueChanged",void 0);_.B([_.H(),_.k("design:type",Boolean)],aq.prototype,"isMultilineOverride",void 0);_.B([_.H(),_.k("design:type",Object)],aq.prototype,"autoValidate",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],aq.prototype,"invalid",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],aq.prototype,"enableOverlayTheme",void 0);_.B([_.H({value:{REQUIRED_LABEL:_.JG("REQUIRED_LABEL",void 0,"Required")}}),_.k("design:type",Object)],aq.prototype,"strings",void 0);_.B([_.Ff("#input"),_.k("design:type",Object)],aq.prototype,"input",void 0);_.B([_.w("data","isMultilineOverride"),_.k("design:type",Object),_.k("design:paramtypes",[])],aq.prototype,"isMultiline",null);
_.B([_.cT("data.value"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],aq.prototype,"valueChanged",null);_.B([_.W("value"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],aq.prototype,"valueChangedForBinding",null);aq=_.B([_.JZ({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],aq);
_.P(aq,"yt-text-input-form-field-renderer",function(){if(Eh6===void 0){var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;rbI===void 0&&(rbI=document.createElement("template"));var N=rbI;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Eh6=p}p=Eh6;return p},{mode:2});var ghb=function(){var p=_.m.apply(this,arguments)||this;p.data=void 0;p.selectionState="START_DATE";p.isStartDateInvalid=!1;p.isEndDateInvalid=!1;p.autoapply=!1;p.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 p};
_.E(ghb,_.m);_.l=ghb.prototype;_.l.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.applyButton":{id:"apply-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.l.focus=function(){this.startDateInput.focus()};
_.l.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:EW(this.data.selection.start),end:EW(this.data.selection.end)})};
_.l.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.l.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.Pb(this.selectionState)}};
_.l.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.l.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.l.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.l.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var p=this.calendar.calendarConfig,x=p.end;p=NuJ({start:p.start,end:this.endDate||x},this.startDateInput.value||"");this.isStartDateInvalid=!p.isValid;p.isValid&&(p=p.value,this.selection=this.endDate?{start:p,end:this.endDate}:p,this.calendar.scrollToDate(p));this.updateInvalidState()}};
_.l.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var p=this.calendar.calendarConfig,x=p.start;p=NuJ({start:this.startDate||x,end:p.end},this.endDateInput.value||"");this.isEndDateInvalid=!p.isValid;p.isValid&&(p=p.value,this.selection={start:this.startDate,end:p},this.calendar.scrollToDate(p));this.updateInvalidState()}};
_.l.handleCalendarDateClicked=function(p){var x=this.selection&&IP$(this.selection),F=this.selection&&$w6(this.selection);x&&!rV(p,x)&&this.selectionState==="END_DATE"?(this.selection={start:x,end:p},this.selectionState="START_DATE"):(F&&!rV(F,p)?this.selection={start:p,end:F}:this.selection=p,this.selectionState="END_DATE")};
_.l.handleCalendarDateMouseDown=function(p){this.selection&&!UwB(this.selection)&&(this.dragPivot=Sw(p,this.selection.start)?this.selection.end:Sw(p,this.selection.end)?this.selection.start:p)};
_.l.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.l.handleCalendarDateMouseEnter=function(p){this.dragPivot&&(this.selection={start:function(x,F){return rV(x,F)?x:F}(this.dragPivot,p),
end:function(x,F){return rV(x,F)?F:x}(this.dragPivot,p)},this.dragPivot||(this.selectionState="START_DATE"))};
_.l.handleCalendarDateMouseLeave=function(){};
_.l.handleCalendarSubmitDateRange=function(){this.selection&&!UwB(this.selection)&&_.lA(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.l.updateInvalidState=function(){var p=function(x,F){F?x.setAttribute("invalid",""):x.removeAttribute("invalid")};
p(this.startDateInput,this.isStartDateInvalid);p(this.endDateInput,this.isEndDateInvalid)};
_.l.updateDateStrings=function(){this.selection&&(UwB(this.selection)?kbp(this.selection):(kbp(this.selection.start),kbp(this.selection.end)))};
_.l.updateCalendarSelection=function(p){this.calendar.updateSelection(Object.assign({},p,{selectionState:this.selectionState}))};
_.l.updateIsStartDateInvalidFromBinding=function(p){this.isStartDateInvalid=p.detail.value};
_.l.updateIsEndDateInvalidFromBinding=function(p){this.isEndDateInvalid=p.detail.value};
_.l.updateStartDateStringFromBinding=function(){};
_.l.updateEndDateStringFromBinding=function(){};
_.R8.Object.defineProperties(ghb.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:EW(this.data.dateRangeStart),end:EW(this.data.dateRangeEnd),selection:{start:EW(this.data.selection.start),end:EW(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&IP$(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&$w6(this.selection)}}});
var Mr=ghb;Mr.prototype.resetTextboxes=Mr.prototype.resetTextboxes;Mr.prototype.observeSelection=Mr.prototype.observeSelection;Mr.prototype.dataChanged=Mr.prototype.dataChanged;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Mr.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Mr.prototype,"ytRendererstamperBehavior",void 0);_.B([_.Ff("#calendar"),_.k("design:type",Object)],Mr.prototype,"calendar",void 0);
_.B([_.Ff("#start-date"),_.k("design:type",Object)],Mr.prototype,"startDateInput",void 0);_.B([_.Ff("#end-date"),_.k("design:type",Object)],Mr.prototype,"endDateInput",void 0);_.B([_.H(),_.k("design:type",Object)],Mr.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Mr.prototype,"selection",void 0);_.B([_.H(),_.k("design:type",String)],Mr.prototype,"selectionState",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Mr.prototype,"calendarConfig",null);
_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Mr.prototype,"errorMessage",null);_.B([_.w("selection"),_.k("design:type",Object),_.k("design:paramtypes",[])],Mr.prototype,"startDate",null);_.B([_.w("selection"),_.k("design:type",Object),_.k("design:paramtypes",[])],Mr.prototype,"endDate",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mr.prototype,"dataChanged",null);
_.B([_.W("selection","selectionState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mr.prototype,"observeSelection",null);_.B([_.W("selectionState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mr.prototype,"resetTextboxes",null);Mr=_.B([_.L({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],Mr);
_.P(Mr,"ytd-date-period-picker-renderer",function(){if(vhm!==void 0)return vhm;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return vhm=p},{mode:1});var QNk=function(){var p=_.m.apply(this,arguments)||this;var x={};p.actionMap=(x["ytd-date-period-picker-apply"]="handleDateRangeUpdated",x);return p};
_.E(QNk,_.m);QNk.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
QNk.prototype.handleDateRangeUpdated=function(){};
var DT=QNk;_.B([_.H(),_.k("design:type",Object)],DT.prototype,"data",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],DT.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],DT.prototype,"rendererstamperBehavior",void 0);DT=_.B([_.L({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],DT);
_.P(DT,"ytd-report-history-section-header-renderer",function(){if(d3J!==void 0)return d3J;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return d3J=p},{mode:1});var zjK;var sNb;var nhD;var ybv=function(){return _.m.apply(this,arguments)||this};
_.E(ybv,_.m);_.R8.Object.defineProperties(ybv.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.data)==null?0:(x=p.icon)==null?0:x.iconType)?_.eA(this.data.icon.iconType):""}}});
var f$=ybv;_.B([_.H(),_.k("design:type",Object)],f$.prototype,"data",void 0);_.B([_.w("data"),_.k("design:type",String),_.k("design:paramtypes",[])],f$.prototype,"icon",null);f$=_.B([_.L({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],f$);
_.P(f$,"ytd-report-history-table-text-cell-renderer",function(){if(nhD!==void 0)return nhD;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return nhD=p},{mode:1});var bOk=function(){return _.m.apply(this,arguments)||this};
_.E(bOk,_.m);bOk.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
var K$=bOk;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],K$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],K$.prototype,"data",void 0);K$=_.B([_.L({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],K$);
_.P(K$,"ytd-report-history-table-reason-cell-renderer",function(){if(sNb!==void 0)return sNb;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return sNb=p},{mode:1});var Abn=function(){return _.m.apply(this,arguments)||this};
_.E(Abn,_.m);Abn.prototype.configureRendererStamper=function(){return{"data.cell":{id:"cell-container",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer",reportHistoryTableReasonCellRenderer:"ytd-report-history-table-reason-cell-renderer"}}}};
var qr=Abn;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],qr.prototype,"rendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],qr.prototype,"data",void 0);qr=_.B([_.L({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],qr);
_.P(qr,"ytd-report-history-table-cell-renderer",function(){if(zjK!==void 0)return zjK;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);
return zjK=p},{mode:1});var uLB;var ZT=function(){var p=_.m.apply(this,arguments)||this;p.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 p};
_.E(ZT,_.m);ZT.prototype.onDataChanged=function(){var p;if((p=this.data)==null?0:p.style)this.componentStyle=this.getStyleName(this.data.style)};
ZT.prototype.getCellForColumn=function(p){return this.cells.find(function(x){var F;return((F=_.r(x==null?void 0:x.cell,fdm)||_.r(x==null?void 0:x.cell,DhB))==null?void 0:F.columnId)===p.type})};
ZT.prototype.getClassForColumn=function(p){switch(p){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
ZT.prototype.getStyleName=function(p){switch(p){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.R8.Object.defineProperties(ZT.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var p;return(((p=this.data)==null?void 0:p.cells)||[]).map(function(x){return _.r(x,MtK)})}}});
var t2=ZT;t2.prototype.onDataChanged=t2.prototype.onDataChanged;_.B([_.H(),_.k("design:type",Object)],t2.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Array)],t2.prototype,"columnRenderData",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],t2.prototype,"componentStyle",void 0);_.B([_.w("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],t2.prototype,"cells",null);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],t2.prototype,"onDataChanged",null);t2=_.B([_.L({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],t2);
_.P(t2,"ytd-report-history-table-row-renderer",function(){if(uLB!==void 0)return uLB;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return uLB=p},{mode:1});var YKJ;var wU6;var huM={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},lNd={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var di=function(){return _.m.apply(this,arguments)||this};
_.E(di,_.m);di.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"}}}}}};
di.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.R8.Object.defineProperties(di.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?0:p.columns)?fN$(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return M4H(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var p=this.tableSpec,x=huM;x=x===void 0?lNd:x;x=DRr(p.columnDimensions,p.columnsToShow||[],x);p=0;x=_.a(x);for(var F=x.next();!F.done;F=x.next())F=F.value,p+=F.minWidth+F.paddingLeft+F.paddingRight;return p}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
var vd=di;_.B([_.u(_.Vw),_.k("design:type",Object)],vd.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],vd.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],vd.prototype,"data",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],vd.prototype,"tableSpec",null);_.B([_.w("tableSpec"),_.k("design:type",Array),_.k("design:paramtypes",[])],vd.prototype,"columnRenderData",null);
_.B([_.w("tableSpec"),_.k("design:type",Number),_.k("design:paramtypes",[])],vd.prototype,"totalMinWidth",null);_.B([_.w("totalMinWidth"),_.k("design:type",String),_.k("design:paramtypes",[])],vd.prototype,"tableWidthStyle",null);vd=_.B([_.L({is:"ytd-table-renderer",disableElementRegistration:!0})],vd);
_.P(vd,"ytd-table-renderer",function(){if(wU6!==void 0)return wU6;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return wU6=p},{mode:1});var GrK=function(){return _.m.apply(this,arguments)||this};
_.E(GrK,_.m);GrK.prototype.configureRendererStamper=function(){return{"data.reportedContent":{id:"content-info",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}},"data.reasonsTable":{id:"reasons-table",mapping:{tableRenderer:"ytd-table-renderer"}},"data.doneButton":{id:"done-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
var J2=GrK;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],J2.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],J2.prototype,"data",void 0);J2=_.B([_.L({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],J2);
_.P(J2,"ytd-report-reason-history-modal-renderer",function(){if(YKJ!==void 0)return YKJ;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return YKJ=p},{mode:1});var VKl;var Wvl;var HOl;var m3v=function(){return _.m.apply(this,arguments)||this};
_.E(m3v,_.m);var C$=m3v;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],C$.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],C$.prototype,"data",void 0);C$=_.B([_.L({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],C$);
_.P(C$,"ytd-profile-column-stats-entry-renderer",function(){if(HOl!==void 0)return HOl;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return HOl=p},{mode:1});var ohm;var OOZ=function(){return _.m.apply(this,arguments)||this};
_.E(OOZ,_.m);OOZ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
var Su=OOZ;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Su.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Su.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Su.prototype,"data",void 0);Su=_.B([_.L({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],Su);
_.P(Su,"ytd-profile-column-stats-renderer",function(){if(ohm!==void 0)return ohm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return ohm=p},{mode:1});var jNJ;var Lv6=function(){return _.m.apply(this,arguments)||this};
_.E(Lv6,_.m);_.R8.Object.defineProperties(Lv6.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.useThumbnailSize)return 80;var x,F;p=(x=this.data)==null?void 0:(F=x.thumbnail)==null?void 0:F.thumbnails;var N;return p&&((N=p[0])==null?void 0:N.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.useThumbnailSize)return 80;var x,F;p=(x=this.data)==null?void 0:(F=x.thumbnail)==null?void 0:F.thumbnails;var N;return p&&((N=p[0])==null?void 0:N.height)||80}}});
var ri=Lv6;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ri.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ri.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],ri.prototype,"componentStyle",void 0);_.B([_.w("data.useThumbnailSize"),_.k("design:type",Object),_.k("design:paramtypes",[])],ri.prototype,"thumbnailWidth",null);
_.B([_.w("data.useThumbnailSize"),_.k("design:type",Object),_.k("design:paramtypes",[])],ri.prototype,"thumbnailHeight",null);ri=_.B([_.L({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],ri);
_.P(ri,"ytd-profile-column-user-info-renderer",function(){if(jNJ!==void 0)return jNJ;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return jNJ=p},{mode:1});var P5B=function(){return _.m.apply(this,arguments)||this};
_.E(P5B,_.m);P5B.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsRenderer:{component:"ytd-profile-column-stats-renderer",noInjection:!0},profileColumnUserInfoRenderer:{component:"ytd-profile-column-user-info-renderer",noInjection:!0,properties:{componentStyle:"[[componentStyle]]"}}}}}};
var EO=P5B;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],EO.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],EO.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],EO.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],EO.prototype,"componentStyle",void 0);EO=_.B([_.L({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],EO);
_.P(EO,"ytd-profile-column-renderer",function(){if(Wvl!==void 0)return Wvl;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Wvl=p},{mode:1});var TtC=function(){var p=_.m.apply(this,arguments)||this;p.componentStyle="NON_CENTERED_PROFILE";return p};
_.E(TtC,_.m);TtC.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
TtC.prototype.getIcon=function(p){return p?"settings:"+p.toLowerCase():null};
var Xe=TtC;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Xe.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Xe.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Xe.prototype,"data",void 0);Xe=_.B([_.L({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],Xe);
_.P(Xe,"ytd-page-introduction-renderer",function(){if(VKl!==void 0)return VKl;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return VKl=p},{mode:1});var BtI;var RjD=function(){return _.m.apply(this,arguments)||this};
_.E(RjD,_.m);var gi=RjD;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],gi.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],gi.prototype,"data",void 0);gi=_.B([_.L({is:"ytd-report-description-renderer",disableElementRegistration:!0})],gi);
_.P(gi,"ytd-report-description-renderer",function(){if(BtI!==void 0)return BtI;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return BtI=p},{mode:1});var krb;var U3Z;var iOK=function(){return _.m.apply(this,arguments)||this};
_.E(iOK,_.m);iOK.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
var QB=iOK;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],QB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],QB.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],QB.prototype,"data",void 0);QB=_.B([_.L({is:"ytd-video-report-renderer",disableElementRegistration:!0})],QB);
_.P(QB,"ytd-video-report-renderer",function(){if(U3Z!==void 0)return U3Z;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return U3Z=p},{mode:1});var Iim;_.Ei("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.Ei("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var zV=function(){return _.m.apply(this,arguments)||this};
_.E(zV,_.m);zV.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]]"}}}}}};
zV.prototype.computeMessageStyle=function(p){return p};
zV.prototype.computeButtonOverride=function(p){var x;if((p==null?0:(x=p.style)==null?0:x.value)&&p.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
var sO=zV;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],sO.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],sO.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],sO.prototype,"shelf",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],sO.prototype,"panel",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.k("design:type",Boolean)],sO.prototype,"componentStyle",void 0);_.B([_.H({computed:"computeButtonOverride(data)"}),_.k("design:type",Object)],sO.prototype,"buttonOverride",void 0);sO=_.B([_.L({is:"ytd-message-renderer",disableElementRegistration:!0})],sO);
_.P(sO,"ytd-message-renderer",function(){if(Iim!==void 0)return Iim;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Iim=p},{mode:1});var n$=function(){return _.m.apply(this,arguments)||this};
_.E(n$,_.m);n$.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"}}}};
n$.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
n$.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.R8.Object.defineProperties(n$.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var p,x;return!!(((p=this.data)==null?0:p.header)&&((x=this.data)==null?0:x.table))}}});
var yB=n$;yB.prototype.onRequestError=yB.prototype.onRequestError;_.B([_.u(_.Vw),_.k("design:type",Object)],yB.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],yB.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],yB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],yB.prototype,"data",void 0);
_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],yB.prototype,"isUnifiedReportHistory",null);_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yB.prototype,"onRequestError",null);yB=_.B([_.L({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],yB);
_.P(yB,"ytd-report-history-section-renderer",function(){if(krb!==void 0)return krb;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return krb=p},{mode:1});var $3B;var ejv=function(){var p=_.m.apply(this,arguments)||this;p.answerExpanded=!1;return p};
_.E(ejv,_.m);ejv.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
var bV=ejv;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],bV.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],bV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],bV.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],bV.prototype,"answerExpanded",void 0);bV=_.B([_.L({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],bV);
_.P(bV,"ytd-handles-claiming-faq-renderer",function(){if($3B!==void 0)return $3B;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return $3B=p},{mode:1});var pOI;var xVC=function(){return _.m.apply(this,arguments)||this};
_.E(xVC,_.m);var FGB=xVC;_.B([_.H(),_.k("design:type",Object)],FGB.prototype,"data",void 0);FGB=_.B([_.L({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],FGB);
_.P(FGB,"ytd-handles-claiming-faq-section-renderer",function(){if(pOI!==void 0)return pOI;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return pOI=p},{mode:1});var NIJ;var hom=function(){var p=_.m.apply(this,arguments)||this;p.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";p.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";p.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";p.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";p.leftSquiggly=p.leftSquigglyLight;p.rightSquiggly=p.rightSquigglyLight;
p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};p.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return p};
_.E(hom,_.m);_.l=hom.prototype;_.l.updateLeftSquigglyStyle=function(){_.eV(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.l.updateRightSquigglyStyle=function(){_.eV(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.l.ready=function(){var p=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(p)};
_.l.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&(this.set("isDarkTheme",p),p?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.l.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
var A2=hom;A2.prototype.updateRightSquigglyStyle=A2.prototype.updateRightSquigglyStyle;A2.prototype.updateLeftSquigglyStyle=A2.prototype.updateLeftSquigglyStyle;_.B([_.H(),_.k("design:type",Object)],A2.prototype,"data",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],A2.prototype,"isDarkTheme",void 0);_.B([_.H(),_.k("design:type",String)],A2.prototype,"leftSquiggly",void 0);_.B([_.H(),_.k("design:type",String)],A2.prototype,"rightSquiggly",void 0);
_.B([_.W("leftSquiggly"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],A2.prototype,"updateLeftSquigglyStyle",null);_.B([_.W("rightSquiggly"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],A2.prototype,"updateRightSquigglyStyle",null);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],A2.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],A2.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],A2.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],A2.prototype,"actionButtonOverride",void 0);A2=_.B([_.L({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],A2);
_.P(A2,"ytd-handles-claiming-header-renderer",function(){if(NIJ!==void 0)return NIJ;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return NIJ=p},{mode:1});var l6k;var cQj=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};p.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";p.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";p.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";p.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
p.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";p.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";p.image0SquigglyBackground=p.image0LightSquigglyBackground;p.image1SquigglyBackground=p.image1LightSquigglyBackground;p.image3SquigglyBackground=p.image3LightSquigglyBackground;return p};
_.E(cQj,_.m);_.l=cQj.prototype;_.l.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.l.onDataChanged=function(){this.updateTitleAndImages()};
_.l.onThemeChanged=function(){this.updateTitleAndImages()};
_.l.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&(this.isDarkTheme=p)};
_.l.updateImage0SquigglyBackground=function(){_.eV(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.l.updateImage1SquigglyBackground=function(){_.eV(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.l.updateImage3SquigglyBackground=function(){_.eV(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.l.updateTitleAndImages=function(){var p,x;((p=this.data)==null?void 0:(x=p.titleImages)==null?void 0:x.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3=
this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage,
this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))};
var uV=cQj;uV.prototype.updateImage3SquigglyBackground=uV.prototype.updateImage3SquigglyBackground;uV.prototype.updateImage1SquigglyBackground=uV.prototype.updateImage1SquigglyBackground;uV.prototype.updateImage0SquigglyBackground=uV.prototype.updateImage0SquigglyBackground;uV.prototype.onThemeChanged=uV.prototype.onThemeChanged;uV.prototype.onDataChanged=uV.prototype.onDataChanged;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],uV.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],uV.prototype,"isDarkTheme",void 0);_.B([_.H(),_.k("design:type",Object)],uV.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],uV.prototype,"title0",void 0);_.B([_.H(),_.k("design:type",Object)],uV.prototype,"title1",void 0);_.B([_.H(),_.k("design:type",Object)],uV.prototype,"title2",void 0);_.B([_.H(),_.k("design:type",Object)],uV.prototype,"title3",void 0);
_.B([_.H(),_.k("design:type",Object)],uV.prototype,"title4",void 0);_.B([_.H(),_.k("design:type",Object)],uV.prototype,"image0",void 0);_.B([_.H(),_.k("design:type",Object)],uV.prototype,"image1",void 0);_.B([_.H(),_.k("design:type",Object)],uV.prototype,"image2",void 0);_.B([_.H(),_.k("design:type",Object)],uV.prototype,"image3",void 0);_.B([_.H(),_.k("design:type",Object)],uV.prototype,"image4",void 0);_.B([_.H(),_.k("design:type",String)],uV.prototype,"image0SquigglyBackground",void 0);
_.B([_.H(),_.k("design:type",String)],uV.prototype,"image1SquigglyBackground",void 0);_.B([_.H(),_.k("design:type",String)],uV.prototype,"image3SquigglyBackground",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uV.prototype,"onDataChanged",null);_.B([_.W("isDarkTheme"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uV.prototype,"onThemeChanged",null);
_.B([_.W("image0SquigglyBackground"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uV.prototype,"updateImage0SquigglyBackground",null);_.B([_.W("image1SquigglyBackground"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uV.prototype,"updateImage1SquigglyBackground",null);
_.B([_.W("image3SquigglyBackground"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uV.prototype,"updateImage3SquigglyBackground",null);uV=_.B([_.L({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],uV);
_.P(uV,"ytd-handles-claiming-title-images-section-renderer",function(){if(l6k!==void 0)return l6k;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return l6k=p},{mode:1});var a6v;var Yi=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.E(Yi,_.m);Yi.prototype.ready=function(){var p=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(p)};
Yi.prototype.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&this.set("isDarkTheme",p)};
Yi.prototype.onCopyButtonClick=function(){var p=this,x,F,N;return _.D(function(h){return(x=p.data)!=null&&x.primaryChannelUrl?_.q(h,navigator.clipboard.writeText(((F=p.data)==null?0:F.encodedChannelUrl)?p.data.encodedChannelUrl:"https://"+_.Pi((N=p.data)==null?void 0:N.primaryChannelUrl)),0):h.jumpTo(0)})};
var wi=Yi;_.B([_.H(),_.k("design:type",Object)],wi.prototype,"data",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],wi.prototype,"ytComponentBehavior",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],wi.prototype,"isDarkTheme",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],wi.prototype,"ytActionHandlerBehavior",void 0);wi=_.B([_.L({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],wi);
_.P(wi,"ytd-handles-claiming-update-social-renderer",function(){if(a6v!==void 0)return a6v;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return a6v=p},{mode:1});var M5I;var GV=function(){var p=_.m.apply(this,arguments)||this;p.JSC$13778_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";p.JSC$13778_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};p.squigglyBackground=p.JSC$13778_squigglyBackgroundLight;return p};
_.E(GV,_.m);GV.prototype.updateSquigglyBackgroundStyle=function(){_.eV(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
GV.prototype.ready=function(){var p=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",p);this.squigglyBackground=p?this.JSC$13778_squigglyBackgroundDark:this.JSC$13778_squigglyBackgroundLight};
GV.prototype.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&(this.set("isDarkTheme",p),this.squigglyBackground=p?this.JSC$13778_squigglyBackgroundDark:this.JSC$13778_squigglyBackgroundLight)};
var VB=GV;VB.prototype.updateSquigglyBackgroundStyle=VB.prototype.updateSquigglyBackgroundStyle;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],VB.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],VB.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],VB.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],VB.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],VB.prototype,"isDarkTheme",void 0);_.B([_.H(),_.k("design:type",String)],VB.prototype,"squigglyBackground",void 0);_.B([_.W("squigglyBackground"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],VB.prototype,"updateSquigglyBackgroundStyle",null);VB=_.B([_.L({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],VB);
_.P(VB,"ytd-handles-claiming-vanity-info-renderer",function(){if(M5I!==void 0)return M5I;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return M5I=p},{mode:1});var DVI;var f6j=function(){var p=_.m.apply(this,arguments)||this;p.JSC$13781_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";p.JSC$13781_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";p.squigglyBackground=p.JSC$13781_squigglyBackgroundLight;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.E(f6j,_.m);_.l=f6j.prototype;_.l.ready=function(){var p=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(p)};
_.l.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&(this.set("isDarkTheme",p),this.squigglyBackground=p?this.JSC$13781_squigglyBackgroundDark:this.JSC$13781_squigglyBackgroundLight)};
_.l.updateSquigglyBackgroundStyle=function(){_.eV(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.l.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.l.detached=function(){this.stop()};
_.l.stop=function(){this.playerElement.stop()};
_.l.setupVideoPlayer=function(){var p=this,x,F;return _.D(function(N){x=p.data.videoId;F="http://i1.ytimg.com/vi/"+x+"/maxresdefault.jpg";p.playerElement.loadVideoWithPlayerVars({video_id:x,iurlhq:F});_.JB(N)})};
var Wd=f6j;Wd.prototype.onDataChanged=Wd.prototype.onDataChanged;Wd.prototype.updateSquigglyBackgroundStyle=Wd.prototype.updateSquigglyBackgroundStyle;_.B([_.H({value:!1}),_.k("design:type",Boolean)],Wd.prototype,"isDarkTheme",void 0);_.B([_.H(),_.k("design:type",String)],Wd.prototype,"squigglyBackground",void 0);_.B([_.Ff("#player"),_.k("design:type",Object)],Wd.prototype,"playerElement",void 0);_.B([_.H(),_.k("design:type",Object)],Wd.prototype,"data",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Wd.prototype,"ytActionHandlerBehavior",void 0);_.B([_.W("squigglyBackground"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Wd.prototype,"updateSquigglyBackgroundStyle",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Wd.prototype,"onDataChanged",null);
Wd=_.B([_.L({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],Wd);
_.P(Wd,"ytd-handles-claiming-video-item-renderer",function(){if(DVI!==void 0)return DVI;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return DVI=p},{mode:1});var KGZ;var mq=function(){var p=_.hZ.apply(this,arguments)||this;p.dragging=!1;p.dragMouseStart=0;p.dragOffsetStart=0;p.containerWidthDiff=0;p.boundPrevClick=function(){p.set("offset",Hd(p,p.offset-(p.scrollDistance||320)))};
p.boundNextClick=function(){p.set("offset",Hd(p,p.offset+(p.scrollDistance||320)))};
p.boundScrollContainerMouseDown=function(x){p.dragMouseStart=x.clientX;p.dragOffsetStart=p.offset;p.dragging=!0};
p.boundScrollContainerDrag=function(x){p.dragging&&p.set("offset",Hd(p,p.dragOffsetStart-(x.clientX-p.dragMouseStart)))};
p.boundMouseUp=function(){p.onMouseUp()};
p.boundWheelScroll=function(x){var F=0;Math.abs(x.deltaX)>=Math.abs(x.deltaY)?F=x.deltaX:x.shiftKey&&(F=x.deltaY);F!==0&&(p.offset+=F,x.stopPropagation(),x.preventDefault())};
p.boundChipCloudChipScrollIntoView=function(x){(x=x.detail)&&p.scrollChipIntoView(x)};
return p};
_.E(mq,_.hZ);mq.prototype.attached=function(){var p=_.n(this.hostElement).querySelector("#scroll-container");p.addEventListener("wheel",this.boundWheelScroll);p.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);p.style.touchAction="pan-y";p.addEventListener("pointerdown",this.boundScrollContainerMouseDown);p.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
mq.prototype.detached=function(){var p=_.n(this.hostElement).querySelector("#scroll-container");p.removeEventListener("wheel",this.boundWheelScroll);p.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);p.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);p.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
mq.prototype.reset=function(){this.set("offset",0);_.jB(this,this.setContainerWidthDiff);oq(this)};
var Hd=function(p,x){return Math.min(Math.max(x,0),p.containerWidthDiff)};
mq.prototype.onMouseUp=function(){this.dragging=!1};
mq.prototype.transformContainer=function(){this.offset=Hd(this,this.offset);var p=_.sd("HTML_DIR")==="rtl"?"":"-";_.n(this.hostElement).querySelector("#chips").style.transform="translateX("+p+this.offset+"px)";oq(this)};
var oq=function(p){_.jB(p,p.setButtonsState)};
mq.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=Hd(this,this.offset));this.atStart=this.offset<=0};
mq.prototype.setContainerWidthDiff=function(){var p=_.n(this.hostElement).querySelector("#scroll-container"),x=_.n(this.hostElement).querySelector("#chips");p&&x&&(this.containerWidthDiff=x.clientWidth-p.clientWidth)};
mq.prototype.scrollChipIntoView=function(p){var x=_.n(this.hostElement).querySelector("#scroll-container");if(x){var F=this.atStart?0:106,N=this.atEnd?0:106;p.offsetLeft<this.offset+F?this.offset=Hd(this,p.offsetLeft-F):p.offsetLeft+p.clientWidth>this.offset+x.clientWidth-N&&(this.offset=Hd(this,p.offsetLeft+p.clientWidth+N-x.clientWidth))}};
var OO=mq;OO.prototype.transformContainer=OO.prototype.transformContainer;_.B([_.H({value:0}),_.k("design:type",Number)],OO.prototype,"offset",void 0);_.B([_.H({value:!0,reflectToAttribute:!0}),_.k("design:type",Boolean)],OO.prototype,"atStart",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],OO.prototype,"atEnd",void 0);_.B([_.H(),_.k("design:type",Number)],OO.prototype,"scrollDistance",void 0);
_.B([_.W("offset"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],OO.prototype,"transformContainer",null);OO=_.B([_.l8()],OO);var qwZ;var ZxJ;var vNZ=_.mO(function(p){var x=p.data;p=_.a(_.hu(!1,void 0,"icHmSe"));var F=p.next().value,N=p.next().value;p={};p=_.$L("ytChipShapeChip",function(){a:switch(x==null?void 0:x().state){case 0:var f="ytChipShapeActive";break a;case 1:f="ytChipShapeDisabled";break a;default:f="ytChipShapeInactive"}return f},function(){var f=x().type===1||x().type===2,K=x();
return f||K!=null&&K.startIcon?K==null||!K.startIcon||K!=null&&K.text?f?"ytChipShapeEndIconPadding":(K==null?0:K.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(p.ytChipShapeFocused=function(){var f;
return F()&&((f=x())==null?void 0:f.state)!==1},p));
var h=function(f){if((x==null?void 0:x().state)!==1){var K,t;(t=(K=x()).onTap)==null||t.call(K,f)}},c=_.h0(function(){var f=_.J().resolve(_.Bw(_.dR));
if(f){N(f.isKeyBoardInUse());var K,t;(t=(K=x()).onFocusIn)==null||t.call(K)}return!1}),M=_.h0(function(){N(!1);
return!1});
return _.Z("chip-shape",{class:"ytChipShapeHost","on:focusin":c,"on:focusout":M},_.Z(t5I,{shouldWrapInButton:function(){return x().type!==2},
selected:function(){return x().state===0},
onClick:h,isDropdown:function(){return x().type===1},
accessibilityLabel:function(){return x().accessibilityLabel}},_.Z("div",{class:p},_.Z(_.D9,{cond:function(){return x().startIcon},
then:function(){return _.Z(_.DS,{icon:function(){var f;return(f=x())==null?void 0:f.startIcon},
className:function(){return x().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return x().text},_.Z(dVn,{shape:x,
onClick:h}))))},"pb");
vNZ.idomCompat=!0;var t5I=_.mO(function(p){var x=_.h0(function(F){p.onClick(F);return!1});
return _.Z(_.D9,{cond:p.shouldWrapInButton,then:function(){return _.Z("button",{class:"ytChipShapeButtonReset","on:click":x,role:function(){return p.isDropdown()?"combobox":"tab"},
"aria-label":p.accessibilityLabel,"aria-selected":p.selected},p.children)},
else:function(){return p.children}})},"qb"),dVn=_.mO(function(p){var x=p.shape;
var F=p.onClick;var N=_.h0(function(h){F(h);return!1});
return _.Z(_.q$,null,_.Z(_.Kt,{when:function(){return x().type===1}},function(){return _.Z(_.DS,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.Z(_.Kt,{when:function(){return x().type===2}},function(){return _.Z("button",{class:"ytChipShapeButtonReset",
"on:click":N},_.Z(_.DS,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.Z(_.Kt,{when:function(){return x().type===0}},function(){return _.Z(_.TG,null)}))},"rb");_.o7(vNZ,"chip-shape",{props:{data:_.G2}});var JQK=function(){var p=_.m.apply(this,arguments)||this;p.disableDeselectEvent=!1;p.modern=_.S("web_modern_typography");p.useChipShape=_.S("web_chip_shape_defrag");p.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return p};
_.E(JQK,_.m);_.l=JQK.prototype;_.l.beforeRegister=function(){_.S("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.l.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.l.onSelectChipCommand=function(p){if(!this.selected&&this.data&&(p=_.r(p,Jkk),p.targetId&&p.targetId===this.data.targetId))this.onTap()};
_.l.onFilterChipTransformCommand=function(p){if(!this.selected&&this.data){var x;(p=(x=_.r(p,gjK))==null?void 0:x.chipUniqueId)&&p===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.l.dataChanged=function(){var p=this;_.jB(this,function(){p.data&&p.data.isSelected&&!p.selected&&(p.scrollChipIntoView(),p.onTap())})};
_.l.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.l.computeChipStyle=function(p){return p!=null?p:"STYLE_DEFAULT"};
_.l.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.lA(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.lA(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.l.onFocus=function(){var p=_.J().resolve(_.Bw(_.dR));p&&p.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.l.scrollChipIntoView=function(){_.hG(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.R8.Object.defineProperties(JQK.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return v8r({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
var ju=JQK;ju.prototype.onFocus=ju.prototype.onFocus;ju.prototype.onTap=ju.prototype.onTap;ju.prototype.selectionChanged=ju.prototype.selectionChanged;ju.prototype.dataChanged=ju.prototype.dataChanged;_.B([_.u(_.Eq),_.k("design:type",Object)],ju.prototype,"ironButtonState",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],ju.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],ju.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.C7),_.k("design:type",Object)],ju.prototype,"ironA11yKeysBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ju.prototype,"disableDeselectEvent",void 0);_.B([_.H(),_.k("design:type",Object)],ju.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("data.icon"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ju.prototype,"hasIcon",null);
_.B([_.H({reflectToAttribute:!0}),_.w("data.uniqueId"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ju.prototype,"isGnomeChip",null);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],ju.prototype,"modern",void 0);_.B([_.H({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.k("design:type",String)],ju.prototype,"chipStyle",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],ju.prototype,"selected",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],ju.prototype,"useChipShape",void 0);_.B([_.w("data","selected"),_.k("design:type",Object),_.k("design:paramtypes",[])],ju.prototype,"chipShapeData",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ju.prototype,"dataChanged",null);_.B([_.W("selected"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ju.prototype,"selectionChanged",null);
_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ju.prototype,"onTap",null);_.B([_.V("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ju.prototype,"onFocus",null);ju=_.B([_.JZ({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],ju);
_.P(ju,"yt-chip-cloud-chip-renderer",function(){if(ZxJ===void 0){var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n<div id="chip-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <yt-icon class="leading-icon style-scope yt-chip-cloud-chip-renderer" hidden="[[!hasIcon]]" icon="[[data.icon.iconType]]">\n    </yt-icon>\n    <yt-formatted-string id="text" ellipsis-truncate="" text="[[data.text]]" class="style-scope yt-chip-cloud-chip-renderer">\n    </yt-formatted-string>\n</div>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;qwZ===void 0&&(qwZ=document.createElement("template"));var N=qwZ;F.call(x,N.content.cloneNode(!0),p.content.firstChild);ZxJ=p}p=ZxJ;return p},{mode:2});var C4v=function(){var p=_.m.apply(this,arguments)||this;p.isDarkTheme=!1;p.notSticky=!1;p.transparentBackground=!1;p.shouldHide=!1;p.disableSticky=!1;p.fluidWidth=!1;p.isClipList=!1;p.defaultChipIndex=0;p.isPlaylist=!1;p.playlistVotingAnimationEnabled=_.S("web_enable_voting_animation");p.toolbarHeight=0;p.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return p};
_.E(C4v,_.m);_.l=C4v.prototype;
_.l.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundPrevClick]]"},params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.l.attached=function(){var p=this;document.addEventListener("scroll",_.p5(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var x;this.toolbarHeight=((x=document.querySelector("ytd-masthead"))==null?void 0:x.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(F){p.handleIntersect(F)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){p.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.l.detached=function(){var p;(p=this.intersectionObserver)==null||p.disconnect();var x;(x=this.resizeObserver)==null||x.disconnect();document.removeEventListener("scroll",_.p5(this,this.updateChipBarWidthAndTop))};
_.l.dataChanged=function(){var p=this,x,F,N;((N=_.r((x=this.data)==null?void 0:(F=x.contents)==null?void 0:F[0],H4Z))==null?void 0:N.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var h=this.findSelectedChipIndex();this.selectedIndex!==h&&(this.selectedIndex=-1);_.jB(this,function(){p.selectedIndex=h;p.updating=!1;p.ytScrollableChipCloudBehavior.reset()})};
_.l.findSelectedChipIndex=function(){var p;if((p=this.data)==null||!p.contents)return 0;p=this.data.contents;for(var x=0;x<p.length;x++){var F=void 0;if((F=_.r(p[x],H4Z))==null?0:F.isSelected)return x}return 0};
_.l.computeStyle=function(p){return p};
_.l.handleChipCloudChipSelectAction=function(p){p=this.JSC$13800_chipsSelector.indexOf(p);p>-1&&this.JSC$13800_chipsSelector.selectIndex(p)};
_.l.handleChipCloudChipDeselectAction=function(){if(_.S("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var p,x,F,N=(F=_.r((p=this.data)==null?void 0:(x=p.contents)==null?void 0:x[0],H4Z))==null?void 0:F.navigationEndpoint;N&&_.lA(this.hostElement,"yt-browse-section-list-reload-endpoint",[N]);this.JSC$13800_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.l.onGuideIsExpandedChanged=function(){var p=this.ytScrollableChipCloudBehavior;_.jB(p,p.setContainerWidthDiff);oq(this.ytScrollableChipCloudBehavior)};
_.l.onResize=function(){var p=this.ytScrollableChipCloudBehavior;_.jB(p,p.setContainerWidthDiff);oq(this.ytScrollableChipCloudBehavior)};
_.l.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.l.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.l.handleIntersect=function(p){_.S("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||p[0].intersectionRatio===1)};
_.l.updateDimensions=function(){var p=this.ytRendererBehavior.parentComponent;if(p){var x,F=(x=p.headerElement)!=null?x:p;_.eV(this.hostElement,{"--ytd-rich-grid-chips-bar-width":F.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.l.updateSelectedIndexFromBinding=function(p){this.selectedIndex=p.detail.value};
_.l.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var p;(p=this.sortFilterHeaderRendererElement)==null||p.setAttribute("is-playlist-page-with-filters","")}};
_.l.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.F4({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.R8.Object.defineProperties(C4v.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 p,x,F=(p=this.data)==null?void 0:(x=p.contents)==null?void 0:x.find(function(N){return _.r(N,jLJ)});
return{sortFilterHeaderRenderer:_.r(F,jLJ)}}}});
var L$=C4v;L$.prototype.dispatchChipBarIsSticky=L$.prototype.dispatchChipBarIsSticky;L$.prototype.isPlaylistPageChanged=L$.prototype.isPlaylistPageChanged;L$.prototype.updateChipBarWidthAndTop=L$.prototype.updateChipBarWidthAndTop;L$.prototype.onResize=L$.prototype.onResize;L$.prototype.onGuideIsExpandedChanged=L$.prototype.onGuideIsExpandedChanged;L$.prototype.dataChanged=L$.prototype.dataChanged;
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],L$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],L$.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],L$.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.n7),_.k("design:type",Object)],L$.prototype,"ironResizableBehavior",void 0);_.B([_.u(),_.k("design:type",OO)],L$.prototype,"ytScrollableChipCloudBehavior",void 0);
_.B([_.u(_.nl),_.k("design:type",Object)],L$.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],L$.prototype,"data",void 0);_.B([_.H({value:0}),_.k("design:type",Number)],L$.prototype,"selectedIndex",void 0);_.B([_.H({value:320}),_.k("design:type",Number)],L$.prototype,"scrollDistance",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],L$.prototype,"isDarkTheme",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],L$.prototype,"notSticky",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],L$.prototype,"transparentBackground",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.k("design:type",String)],L$.prototype,"componentStyle",void 0);_.B([_.H({selector:_.gxp}),_.k("design:type",Boolean)],L$.prototype,"guideIsExpanded",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],L$.prototype,"shouldHide",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],L$.prototype,"disableSticky",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],L$.prototype,"fluidWidth",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],L$.prototype,"isClipList",void 0);_.B([_.H(),_.k("design:type",Object)],L$.prototype,"defaultChipIndex",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],L$.prototype,"isPlaylist",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],L$.prototype,"playlistVotingAnimationEnabled",void 0);_.B([_.Ff("#chips"),_.k("design:type",Object)],L$.prototype,"JSC$13800_chipsSelector",void 0);_.B([_.Ff("ytd-sort-filter-header-renderer"),_.k("design:type",HTMLElement)],L$.prototype,"sortFilterHeaderRendererElement",void 0);
_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],L$.prototype,"updating",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],L$.prototype,"dataChanged",null);_.B([_.W("guideIsExpanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],L$.prototype,"onGuideIsExpandedChanged",null);
_.B([_.V("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],L$.prototype,"onResize",null);_.B([_.cT("isChannelPageGrid","disableSticky","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],L$.prototype,"updateChipBarWidthAndTop",null);_.B([_.w("componentStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],L$.prototype,"isChannelPageGrid",null);
_.B([_.w("componentStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],L$.prototype,"isHashtagLandingPage",null);_.B([_.W("isPlaylistPage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],L$.prototype,"isPlaylistPageChanged",null);_.B([_.w("componentStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],L$.prototype,"isPlaylistPage",null);
_.B([_.w("componentStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],L$.prototype,"isDisableDeselectEvent",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],L$.prototype,"sortFilterHeaderRendererData",null);_.B([_.H({reflectToAttribute:!0,selector:_.AYd}),_.k("design:type",String)],L$.prototype,"frostedGlassMode",void 0);
_.B([_.W("notSticky"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],L$.prototype,"dispatchChipBarIsSticky",null);L$=_.B([_.L({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],L$);
_.P(L$,"ytd-feed-filter-chip-bar-renderer",function(){if(KGZ!==void 0)return KGZ;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return KGZ=p},{mode:1});var Swj;var rQD=_.mO(function(p){var x=p.data;var F=p.buttonIndex;var N=p.selectedIndex;var h=p.onSelect;var c=function(){return F()===N()},M=function(){var K,t;
return(t=(K=x().text)==null?void 0:K.content)!=null?t:""};
_.h0(function(){});
p=_.ur();var f=_.h0(function(){h(x().onSubmitCommand);return!1});
return _.Z("yt-toggleable-image-button-view-model",{class:function(){var K={};K=(K["toggleable-image-button-view-model-wiz"]=!0,K[""]=!0,K["toggleable-image-button-view-model-wiz__semi-transparent"]=N()!==-1&&!c(),K);return _.pQ(K)},
tabindex:0,"aria-label":M,"aria-pressed":c,role:"button","on:keydown":p,"on:click":f},_.Z(_.D9,{cond:function(){return x().logo},
then:function(K){return _.Z(_.VE,{data:K,className:function(){var t={};t=(t["toggleable-image-button-view-model-wiz__image"]=!0,t["toggleable-image-button-view-model-wiz__circular-radius"]=!(!x().backgroundColor||!x().backgroundColorDarkMode),t["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(c()&&x().backgroundColor&&x().backgroundColorDarkMode),t);return _.pQ(t)},
alt:M,useWidth:!1,style:function(){if(c()&&x().backgroundColor&&x().backgroundColorDarkMode){var t=zF(Number(x().backgroundColorDarkMode),"1");var d=zF(Number(x().backgroundColor),"1");t="background: linear-gradient(180deg,"+t+","+d+") border-box;"}else t="";return t}})}}),_.Z(_.qC,{model:{borderRadius:"16px"}}),_.Z("p",{class:function(){var K={};
K=(K["toggleable-image-button-view-model-wiz__label"]=!0,K["toggleable-image-button-view-model-wiz__bold-text"]=c(),K);return _.pQ(K)}},_.Z(_.KQ,{text:function(){return x().text}})))},"sb");
rQD.idomCompat=!0;var XOm=_.mO(function(p){var x=p.data;p=_.a(_.hu({index:-1,command:{}},void 0,"Zcqtsb"));var F=p.next().value,N=p.next().value;return _.Z("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.Z("div",{class:"nudge-form-view-model-wiz__form-options"},_.Z(_.Es,{data:function(){return x().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(h,c){return _.Z(rQD,{data:h.data,buttonIndex:c,selectedIndex:function(){return F().index},
onSelect:function(M){N({index:c(),command:M})}})}})),_.Z(_.KQ,{text:function(){return x().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.Z("div",{class:"nudge-form-view-model-wiz__submit"},_.Z(_.Es,{data:function(){return x().submitButton}},{buttonViewModel:function(h){return _.Z(ENB,{data:h.data,
isDisabled:function(){return F().index===-1},
onClick:function(){_.su(F().command)}})}})))},"tb");
XOm.idomCompat=!0;var ENB=_.mO(function(p){var x=_.Kn(function(){return Object.assign({},p.data(),{state:p.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.Z(_.nV,{data:x,onClick:p.onClick})},"ub");_.o7(XOm,"yt-nudge-form-view-model",{props:{data:_.G2}});var gNl=function(){var p=_.m.apply(this,arguments)||this;p.roundedContainer=!0;p.buttonUpdate=_.S("web_modern_buttons");p.isDarkMode=!1;p.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return p};
_.E(gNl,_.m);_.l=gNl.prototype;_.l.computeNudgeStyle=function(p){return p?"modernized-nudge":""};
_.l.handleDarkModeToggledAction=function(p){this.isDarkMode=p};
_.l.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.l.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{chipCloudChipRenderer:"yt-chip-cloud-chip-renderer",nudgeFormViewModel:"yt-nudge-form-view-model"}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed-content",
mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.l.computeIsHorizontalButtons=function(p){return p?!!p.applyModernizedStyle&&!!p.enableHorizontalButtons&&!!p.secondaryButton:!1};
_.R8.Object.defineProperties(gNl.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var p,x;return(x=(p=this.data)==null?void 0:p.backgroundStyle)!=null?x:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var p,x;return(x=(p=this.data)==null?void 0:p.contentsLocation)!=null?x:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null?0:p.lightIconImage)}}});
var Pd=gNl;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Pd.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Pd.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],Pd.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Pd.prototype,"actionHandlerBehavior",void 0);
_.B([_.H({reflectToAttribute:!0}),_.w("isHideEnclosingAction"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Pd.prototype,"isHidden",null);_.B([_.H(),_.k("design:type",Object)],Pd.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Pd.prototype,"roundedContainer",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Pd.prototype,"buttonUpdate",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.k("design:type",String)],Pd.prototype,"nudgeStyle",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("data.trimStyle"),_.k("design:type",String),_.k("design:paramtypes",[])],Pd.prototype,"trimStyle",null);_.B([_.H({reflectToAttribute:!0}),_.w("data.backgroundStyle"),_.k("design:type",String),_.k("design:paramtypes",[])],Pd.prototype,"backgroundStyle",null);
_.B([_.H({reflectToAttribute:!0}),_.w("data.contentsLocation"),_.k("design:type",String),_.k("design:paramtypes",[])],Pd.prototype,"contentsLocation",null);_.B([_.H({reflectToAttribute:!0}),_.w("data.disableDropShadow"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Pd.prototype,"noShadow",null);_.B([_.H({reflectToAttribute:!0}),_.w("data.lightIconImage"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Pd.prototype,"noIcon",null);
_.B([_.H({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.k("design:type",Boolean)],Pd.prototype,"isHorizontalButtons",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Object)],Pd.prototype,"isDarkMode",void 0);Pd=_.B([_.L({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Pd);
_.P(Pd,"ytd-feed-nudge-renderer",function(){if(Swj!==void 0)return Swj;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Swj=p},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var QVj;var zoD;var TV=function(){var p=_.m.apply(this,arguments)||this;p.collapsed=!1;p.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return p};
_.E(TV,_.m);TV.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"}}}};
TV.prototype.handleRatingSelect=function(){var p;((p=this.data)==null?0:p.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
TV.prototype.handleShowSurvey=function(){this.collapsed=!1};
var Bd=TV;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Bd.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Bd.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Bd.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Bd.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.bh),_.k("design:type",Object)],Bd.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Bd.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Bd.prototype,"collapsed",void 0);Bd=_.B([_.L({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],Bd);
_.P(Bd,"ytd-slimline-survey-renderer",function(){if(zoD!==void 0)return zoD;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return zoD=p},{mode:1});var sVb;var nNB=function(){return _.m.apply(this,arguments)||this};
_.E(nNB,_.m);nNB.prototype.maybeGetBackgroundColor=function(p){return this.isDarkMode?p.section2Color:p.section3Color};
nNB.prototype.colorPaletteChanged=function(){var p=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;p&&(p==null?0:p.secondaryTitleColor)&&this.maybeGetBackgroundColor(p)?(this.hostElement.style.backgroundColor=_.gX(this.maybeGetBackgroundColor(p)),this.hostElement.style.color=_.gX(p.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
var Rq=nNB;Rq.prototype.colorPaletteChanged=Rq.prototype.colorPaletteChanged;_.B([_.u(_.nl),_.k("design:type",Object)],Rq.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Rq.prototype,"data",void 0);_.B([_.H({selector:function(p){return p.ui.darkModeIsEnabled}}),
_.k("design:type",Boolean)],Rq.prototype,"isDarkMode",void 0);_.B([_.H(),_.k("design:type",Object)],Rq.prototype,"lightColorPalette",void 0);_.B([_.H(),_.k("design:type",Object)],Rq.prototype,"darkColorPalette",void 0);_.B([_.W("darkColorPalette","lightColorPalette","data","isDarkMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Rq.prototype,"colorPaletteChanged",null);Rq=_.B([_.L({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Rq);
_.P(Rq,"ytd-endorsement-header-renderer",function(){if(sVb!==void 0)return sVb;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return sVb=p},{mode:1});_.o7(_.A6,"yt-decorated-avatar-view-model",{props:{data:_.G2,className:_.G2}});var yQK=function(){var p=_.m.apply(this,arguments)||this;p.fullHeight=_.S("web_rich_grid_media_full_height");p.showChannelAvatar=!0;p.hasPlaylistThumbnail=!1;p.prepareThumbnailForPageTransition=function(){_.S("web_thumbnail_to_watch_transition")&&(p.thumbnail.style.viewTransitionName="thumbnail-to-watch",p.cleanupThumbnailAfterPageTransition(p.thumbnail))};
return p};
_.E(yQK,_.m);_.l=yQK.prototype;
_.l.configureRendererStamper=function(){return{lazyLoadMenu:dK,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"decorated-avatar",mapping:{decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.l.attached=function(){this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.shouldLazyLoadMenu=function(){var p=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.S("kevlar_modern_downloads_page")||!p};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13825_inlinePreviewHoverListener=T7({mediaRenderer:this,lockupElement:this.JSC$13825_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.l.getVideoPreviewOpts=function(){var p={},x;if((x=this.data)==null?0:x.multipleInlinePlaybackEndpoint)p=ksI;this.isRadio&&(p=RI6);return _.S("web_thumbnail_to_watch_transition")?Object.assign({},p,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):p};
_.l.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$13825_inlinePreviewHoverListener)==null||MD(p)};
_.l.getOwner=function(){var p,x,F;return((p=this.data)==null?void 0:(x=p.channelThumbnailSupportedRenderers)==null?void 0:x.channelThumbnailWithLinkRenderer)||_.r((F=this.data)==null?void 0:F.showProviderChannelThumbnail,GhI)};
_.l.updateLockupSize=function(){var p;((p=this.getOwner())==null?0:p.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.l.getFeedbackEndpoint=function(p){if(_.r(p,_.ua))return p;var x,F;p=(F=(x=_.r(p,_.Zx))==null?void 0:x.commands)!=null?F:[];x=_.a(p);for(F=x.next();!F.done;F=x.next())if(F=this.getFeedbackEndpoint(F.value))return F;return null};
_.l.computeNavigationEndpoint=function(p){return An6(p==null?void 0:p.navigationEndpoint)};
_.l.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var p=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(p)!==JSON.stringify(this.data)&&this.set("data",p)}};
_.l.onDataChanged=function(){var p=this,x=this.getOwner();if(x){this.set("data.owner",x);var F,N,h,c,M,f=((F=this.data)==null?void 0:(N=F.shortBylineText)==null?void 0:(h=N.runs)==null?void 0:(c=h[0])==null?void 0:c.text)||((M=x.name)==null?void 0:M.simpleText);this.set("data.owner.title",f)}var K,t,d,v,C,X;x=((K=this.data)==null?void 0:(t=K.thumbnailRenderer)==null?void 0:t.playlistVideoThumbnailRenderer)||((d=this.data)==null?void 0:(v=d.thumbnailRenderer)==null?void 0:v.playlistCustomThumbnailRenderer)||
((C=this.data)==null?void 0:(X=C.thumbnailRenderer)==null?void 0:X.showCustomThumbnailRenderer);var Q;((Q=this.data)==null?0:Q.thumbnail)||!x||this.set("data.thumbnail",x.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){p.updateLockupSize()});
var b;if(K=((b=this.data)==null?void 0:b.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(K);var A;((A=this.dismissActionToReplayEntity)==null?0:A.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.l.onHiddenChanged=function(){this.updateLockupSize()};
_.l.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.lA(this.hostElement,"yt-terminate-video-preview-action");else{var p;(p=this.videoTitleLink)==null||p.focus()}};
_.l.metadataColorChanged=function(){var p;if(this.metadataColor&&((p=this.videoTitle)==null?0:p.style))this.videoTitle.style.color=_.gX(this.metadataColor);else{var x,F;!this.metadataColor&&((x=this.videoTitle)==null?0:(F=x.style)==null?0:F.color)&&(this.videoTitle.style.color="")}};
_.l.onDetailsClick=function(p){var x=this.computedNavigationEndpoint;x&&(_.mx(_.m9(p),this.hostElement,["A","BUTTON"])||_.hG(this.hostElement,"yt-navigate",{endpoint:x}))};
_.l.cleanupThumbnailAfterPageTransition=function(p){_.GTH(document,"yt-page-type-changed",function(){p.style.viewTransitionName=""})};
_.l.onRendererTap=function(){this.prepareThumbnailForPageTransition();var p,x,F=((p=this.data)==null?void 0:p.serviceEndpoint)||this.getFeedbackEndpoint((x=this.data)==null?void 0:x.navigationEndpoint);F&&_.r(F,_.ua)&&this.ytComponentBehavior.resolveCommand(F)};
_.l.onMouseDown=function(p){var x=p.target,F=this.computedNavigationEndpoint,N;p=x.href||((N=_.r(F==null?void 0:F.commandMetadata,_.eq))==null?void 0:N.url);N=x.data||F;p&&N&&jmw(p,N)};
_.l.computeVideoTitleText=function(){var p;if((p=this.data)==null?0:p.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.l.computeHasPlaylistThumbnail=function(p){var x,F,N,h,c;if((((x=p.thumbnailRenderer)==null?0:x.playlistVideoThumbnailRenderer)||((F=p.thumbnailRenderer)==null?0:F.playlistCustomThumbnailRenderer)||((N=p.thumbnailRenderer)==null?0:N.showCustomThumbnailRenderer)||((h=p.thumbnailRenderer)==null?0:h.playlistVideoThumbnailRenderer)||((c=p.thumbnailRenderer)==null?0:c.playlistCustomThumbnailRenderer))&&p.thumbnailOverlays)for(x=0;x<p.thumbnailOverlays.length;x++)if(F=void 0,(F=p.thumbnailOverlays[x])==
null?0:F.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.R8.Object.defineProperties(yQK.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.S("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var p;return(p=this.data)==null?void 0:p.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var p;return(p=this.data)==null?void 0:p.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.JSC$13825_inlinePreviewHoverListener)==null?0:wK(p))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.q7B(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.data)==null?void 0:p.videoId)||((x=this.data)==null?void 0:x.playlistId)||""}}});
var ki=yQK;ki.prototype.onMouseDown=ki.prototype.onMouseDown;ki.prototype.metadataColorChanged=ki.prototype.metadataColorChanged;ki.prototype.onIsDismissedChanged=ki.prototype.onIsDismissedChanged;ki.prototype.onHiddenChanged=ki.prototype.onHiddenChanged;ki.prototype.onDataChanged=ki.prototype.onDataChanged;ki.prototype.handleReloadDownloadsInfo=ki.prototype.handleReloadDownloadsInfo;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ki.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ki.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],ki.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],ki.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.u(_.HL),_.k("design:type",Object)],ki.prototype,"ytdLockupBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],ki.prototype,"ytdReduxBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],ki.prototype,"data",void 0);_.B([_.H(),_.k("design:type",String)],ki.prototype,"entitySelectorType",void 0);_.B([_.H(),_.k("design:type",Boolean)],ki.prototype,"noEndpoints",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],ki.prototype,"isRadio",void 0);_.B([_.H({reflectToAttribute:!0,selector:_.n1}),_.k("design:type",Boolean)],ki.prototype,"miniMode",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],ki.prototype,"fullHeight",void 0);
_.B([_.H(),_.k("design:type",Boolean)],ki.prototype,"showDarkVideoMetadata",void 0);_.B([_.H(),_.k("design:type",Boolean)],ki.prototype,"showLightVideoMetadata",void 0);_.B([_.H(),_.k("design:type",Number)],ki.prototype,"metadataColor",void 0);_.B([_.H(),_.k("design:type",Object)],ki.prototype,"showChannelAvatar",void 0);_.B([_.H(),_.k("design:type",Boolean)],ki.prototype,"hidden",void 0);_.B([_.H({value:!0}),_.k("design:type",Boolean)],ki.prototype,"showYtInteraction",void 0);
_.B([_.H(),_.k("design:type",String)],ki.prototype,"dismissedContentId",void 0);_.B([_.H({selectorArgs:["dismissedContentId"],selector:sjH}),_.k("design:type",Object)],ki.prototype,"dismissActionToReplayEntity",void 0);
_.B([_.H({selectorArgs:["entitySelectorType","mediaId"],selector:function(p,x,F){if(_.S("kevlar_modern_downloads_page")&&F&&x&&x!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(x){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var N=GNw(p,F);if(N){x=_.uP(p,F);var h=wb(p,F),c=BSZ(p,F);p=Gt(p,F);var M=X6E(N,x,h,c);h=M.shortViewCountText;var f=M.publishedTimeText;M=M.badges;var K=p>0;c=rAB(N,x,c,p);N=_.C1(x)||x==="TRANSFER_STATE_FAILED"||x==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!J$(N.policyEntity)?
void 0:ynk(F,p,N.videoEntity.lengthSeconds);x==="TRANSFER_STATE_PAUSED_BY_USER"&&F&&!_.S("dl_resume_click_killswitch")&&(N={offlineVideoEndpoint:{videoId:F,action:"ACTION_RESUME"}});F={shortViewCountText:h,publishedTimeText:f,badges:M,isWatched:K,navigationEndpoint:N,thumbnailOverlays:c}}else F=void 0;return F;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(x=Vad(p,F))if(N=_.YO(p,F),c=_.WeZ(p,F),N!=="TRANSFER_STATE_UNKNOWN"){F=E6z(x,N,c,F,bbr(p));break a}F=void 0}return F;default:_.no(new _.qE("Error: entitySelectorType defined but not matched in selector.",
p,x))}}}),
_.k("design:type",Object)],ki.prototype,"entityDrivenState",void 0);_.B([_.H({computed:"computeVideoTitleText(data)"}),_.k("design:type",Object)],ki.prototype,"videoTitleText",void 0);_.B([_.H({computed:"computeHasPlaylistThumbnail(data)"}),_.k("design:type",Object)],ki.prototype,"hasPlaylistThumbnail",void 0);_.B([_.H({computed:"computeNavigationEndpoint(data)"}),_.k("design:type",Object)],ki.prototype,"computedNavigationEndpoint",void 0);
_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],ki.prototype,"typographyBump",void 0);_.B([_.w("typographyBump"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ki.prototype,"typographyBumpV2",null);_.B([_.Ff("#video-title"),_.k("design:type",HTMLElement)],ki.prototype,"videoTitle",void 0);_.B([_.Ff("#video-title-link"),_.k("design:type",HTMLElement)],ki.prototype,"videoTitleLink",void 0);
_.B([_.Ff("#thumbnail"),_.k("design:type",HTMLElement)],ki.prototype,"thumbnail",void 0);_.B([_.Ff("#dismissible"),_.k("design:type",HTMLElement)],ki.prototype,"JSC$13825_dismissibleMedia",void 0);_.B([_.w("data.menu"),_.k("design:type",Object),_.k("design:paramtypes",[])],ki.prototype,"lazyLoadMenu",null);_.B([_.w("data.menu"),_.k("design:type",Object),_.k("design:paramtypes",[])],ki.prototype,"immediateLoadMenu",null);
_.B([_.cT("entityDrivenState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ki.prototype,"handleReloadDownloadsInfo",null);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ki.prototype,"onDataChanged",null);_.B([_.cT("hidden"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ki.prototype,"onHiddenChanged",null);
_.B([_.W("isDismissed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ki.prototype,"onIsDismissedChanged",null);_.B([_.W("metadataColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ki.prototype,"metadataColorChanged",null);_.B([_.V("mousedown"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ki.prototype,"onMouseDown",null);
_.B([_.w("lockupIsHovered"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ki.prototype,"isHovered",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ki.prototype,"useAvatar",null);_.B([_.w("data","entitySelectorType"),_.k("design:type",String),_.k("design:paramtypes",[])],ki.prototype,"mediaId",null);ki=_.B([_.L({is:"ytd-rich-grid-media",disableElementRegistration:!0})],ki);
var bxn=_.kJ()(ki,"ytd-rich-grid-media",function(){if(QVj!==void 0)return QVj;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="decorated-avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return QVj=p},{mode:_.UQ("kevlar_poly_si_batch_j072")?1:2});var AQC;var u1l=function(){var p=_.m.apply(this,arguments)||this;p.removeMaxWidth=!0;p.insetMetadata=!1;return p};
_.E(u1l,_.m);_.l=u1l.prototype;_.l.configureRendererStamper=function(){return{innerMenu:dK,outerMenu:Object.assign({},dK,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.l.onDataChanged=function(){var p,x=((p=this.data)==null?void 0:p.trackingParams)||"";x&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(x));var F;((F=this.dismissActionToReplayEntity)==null?0:F.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.l.attached=function(){this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13831_inlinePreviewHoverListener=T7({mediaRenderer:this,lockupElement:this.JSC$13831_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Cep})};
_.l.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$13831_inlinePreviewHoverListener)==null||MD(p)};
_.l.onRendererTap=function(){var p,x,F=(p=this.data)==null?void 0:(x=p.serviceEndpoints)==null?void 0:x[0];_.r(F,_.ua)&&this.componentBehavior.resolveCommand(F)};
_.l.onDetailsClick=function(p){var x,F=(x=this.data)==null?void 0:x.navigationEndpoint;F&&(_.mx(_.m9(p),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(F))};
_.l.onShow=function(){var p=this.data;p.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(p.onFirstVisibleCommand),delete p.onFirstVisibleCommand)};
_.R8.Object.defineProperties(u1l.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var p;return this.insetMetadata?void 0:(p=this.data)==null?void 0:p.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var p;return this.insetMetadata?(p=this.data)==null?void 0:p.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var p=this.data;if(p!=null&&p.badge&&(p=_.r(p.badge,ASB))){var x,F,N;return[{metadataBadgeRenderer:{label:((x=p.label)==null?void 0:(F=x.runs)==null?void 0:F[0].text)||((N=p.label)==null?void 0:N.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var p=this.data;return Object.assign({},p.headline,{accessibility:p.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return this.isSlimShort?(p=this.computedTitle)==null?void 0:(x=p.accessibility)==null?void 0:(F=x.accessibilityData)==null?void 0:F.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.JSC$13831_inlinePreviewHoverListener)==null?0:wK(p))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var UO=u1l;UO.prototype.onDataChanged=UO.prototype.onDataChanged;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],UO.prototype,"componentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.HL),_.k("design:type",Object)],UO.prototype,"ytdLockupBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],UO.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u(_.bh),_.k("design:type",Object)],UO.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],UO.prototype,"ytdReduxBehavior",void 0);_.B([_.Ff("ytd-thumbnail"),_.k("design:type",HTMLElement)],UO.prototype,"thumbnail",void 0);_.B([_.Ff("#dismissible"),_.k("design:type",HTMLElement)],UO.prototype,"JSC$13831_dismissibleMedia",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],UO.prototype,"removeMaxWidth",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],UO.prototype,"insetMetadata",void 0);_.B([_.H(),_.k("design:type",String)],UO.prototype,"dismissedContentId",void 0);_.B([_.H({selectorArgs:["dismissedContentId"],selector:sjH}),_.k("design:type",Object)],UO.prototype,"dismissActionToReplayEntity",void 0);_.B([_.w("insetMetadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],UO.prototype,"thumbnailObjectFit",null);
_.B([_.w("data","insetMetadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],UO.prototype,"innerMenu",null);_.B([_.w("data","insetMetadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],UO.prototype,"outerMenu",null);_.B([_.H(),_.k("design:type",Object)],UO.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,selector:_.n1}),_.k("design:type",Boolean)],UO.prototype,"miniMode",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],UO.prototype,"onDataChanged",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],UO.prototype,"shortsBadges",null);_.B([_.w("data"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],UO.prototype,"isShort",null);_.B([_.w("data"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],UO.prototype,"isSlimShort",null);
_.B([_.w("data","isShort"),_.k("design:type",Object),_.k("design:paramtypes",[])],UO.prototype,"computedTitle",null);_.B([_.w("isSlimShort","computedTitle"),_.k("design:type",Object),_.k("design:paramtypes",[])],UO.prototype,"computedAccessibilityLabel",null);_.B([_.w("lockupIsHovered"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],UO.prototype,"isHovered",null);UO=_.B([_.L({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],UO);
_.P(UO,"ytd-rich-grid-slim-media",function(){if(AQC!==void 0)return AQC;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return AQC=p},{mode:_.UQ("kevlar_poly_si_batch_j063")?1:2});var YwI;var wOb;var iV=function(){var p=_.m.apply(this,arguments)||this;p.darkerDarkTheme=_.S("web_darker_dark_theme");return p};
_.E(iV,_.m);iV.prototype.computeIcon=function(p){return p&&p.iconType?"yt-sys-icons:"+p.iconType.toLowerCase():""};
iV.prototype.onMouseEnter=function(){this.isHovered=!0};
iV.prototype.onMouseLeave=function(){this.isHovered=!1};
var Iq=iV;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Iq.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Iq.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Iq.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Iq.prototype,"data",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Iq.prototype,"isHovered",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Iq.prototype,"darkerDarkTheme",void 0);Iq=_.B([_.L({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],Iq);
_.P(Iq,"ytd-expand-on-hover-card-renderer",function(){if(wOb!==void 0)return wOb;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return wOb=p},{mode:1});var Go6,V5j=function(){if(Go6!==void 0)return Go6;var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Go6=p};_.Ei("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var WGC=function(){var p=_.m.apply(this,arguments)||this;p.compactStyle=!1;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.E(WGC,_.m);_.l=WGC.prototype;_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.channelMembershipsButton":{id:"channel-memberships-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.computeHideDot=function(p){return!(p&&p.subscriberCountText&&p.videoCountText)||this.compactStyle};
_.l.hasDualButtons=function(p){return p&&p.purchaseButton&&p.subscribeButton};
_.l.backgroundColorChanged=function(){if(this.data!==void 0){var p=this.data.backgroundColor;this.isDarkTheme&&(p=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=p!=null?_.gX(p):"transparent"}};
_.l.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.l.onTap=function(p){var x,F,N=((x=this.data)==null?void 0:x.navigationEndpoint)||((F=this.data)==null?void 0:F.serviceEndpoint);_.r(N,_.aI)&&(N&&(_.S("web_ytd_channel_renderer_command_resolver_ks")?_.fc(this.hostElement,[N]):_.J().resolve(_.RD).resolveCommand(N,{form:{element:this.hostElement}})),p.preventDefault())};
_.l.computeChannelEndpoint=function(p){return _.r(p,_.aI)?null:p};
_.l.computeHrefEndpoint=function(p){return _.r(p,_.aI)?null:this.componentBehavior.computeHref_(p)};
_.l.computeChannelRendererStyle=function(p){return p};
_.l.computeIconSize=function(p){return p?108:136};
_.R8.Object.defineProperties(WGC,{template:{configurable:!0,enumerable:!0,get:function(){return V5j()}}});
var $i=WGC;$i.prototype.backgroundColorChanged=$i.prototype.backgroundColorChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],$i.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],$i.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.Oo),_.k("design:type",Object)],$i.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],$i.prototype,"componentBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],$i.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Boolean)],$i.prototype,"isDarkTheme",void 0);_.B([_.H({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.k("design:type",String)],$i.prototype,"channelRendererStyle",void 0);_.B([_.H({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],$i.prototype,"dualButtons",void 0);_.B([_.H({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.k("design:type",Boolean)],$i.prototype,"useBiggerThumbs",void 0);_.B([_.H({reflectToAttribute:!0,value:function(){return _.iO("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],$i.prototype,"biggerThumbStyle",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$i.prototype,"compactStyle",void 0);_.B([_.W("data","isDarkTheme"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$i.prototype,"backgroundColorChanged",null);$i=_.B([_.L({is:"ytd-channel-renderer",disableElementRegistration:!0})],$i);_.P($i,"ytd-channel-renderer",function(){return V5j()},{mode:1});var Hxl;var mVn;_.Ei("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var oNI=function(){var p=_.m.apply(this,arguments)||this;p.displayItemCount=2;p.collections=_.S("web_modern_collections_v2");p.hasPlaylistThumbnail=!1;p.stackThumbnailSize="large";return p};
_.E(oNI,_.m);_.l=oNI.prototype;_.l.attached=function(){this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.l.computeFirstVideos=function(p,x){return p&&x?p.slice(0,x):[]};
_.l.computeThumbnailWidth=function(p,x){return p?x==="BIG"?500:x==="MASSIVE"?600:x==="MEDIUM"?450:420:360};
_.l.computeThumbnailHeight=function(p,x){return p?x==="BIG"?280:x==="MASSIVE"?337:234:202};
_.l.clearInlinePreviewHoverListeners=function(){var p;(p=this.JSC$13844_inlinePreviewHoverListener)==null||MD(p)};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13844_inlinePreviewHoverListener=T7({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:ksI,thumbnailElement:this.thumbnail})};
_.l.computeHasPlaylistThumbnail=function(p){var x,F;if((((x=p.thumbnailRenderer)==null?0:x.playlistVideoThumbnailRenderer)||((F=p.thumbnailRenderer)==null?0:F.playlistCustomThumbnailRenderer))&&p.thumbnailOverlays)for(x=0;x<p.thumbnailOverlays.length;x++)if(F=void 0,(F=p.thumbnailOverlays[x])==null?0:F.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.R8.Object.defineProperties(oNI.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.JSC$13844_inlinePreviewHoverListener)==null?0:wK(p))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var eu=oNI;eu.prototype.dataChanged=eu.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.HL),_.k("design:type",Object)],eu.prototype,"ytdLockupBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],eu.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],eu.prototype,"displayItemCount",void 0);_.B([_.H({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.k("design:type",Boolean)],eu.prototype,"useBiggerThumbs",void 0);_.B([_.H({reflectToAttribute:!0,value:function(){return _.iO("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],eu.prototype,"biggerThumbsStyle",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],eu.prototype,"collections",void 0);_.B([_.H({computed:"computeHasPlaylistThumbnail(data)"}),_.k("design:type",Object)],eu.prototype,"hasPlaylistThumbnail",void 0);_.B([_.H(),_.k("design:type",String)],eu.prototype,"stackThumbnailSize",void 0);_.B([_.Ff("ytd-thumbnail"),_.k("design:type",HTMLElement)],eu.prototype,"thumbnail",void 0);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eu.prototype,"dataChanged",null);_.B([_.w("lockupIsHovered"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],eu.prototype,"isHovered",null);eu=_.B([_.L({is:"ytd-radio-renderer",disableElementRegistration:!0})],eu);
_.P(eu,"ytd-radio-renderer",function(){if(mVn!==void 0)return mVn;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return mVn=p},{mode:_.UQ("kevlar_poly_si_batch_j058")?1:2});var Oxm;_.Ei("itemSectionRenderer","showRenderer","ytd-show-renderer");var pY=function(){return _.m.apply(this,arguments)||this};
_.E(pY,_.m);pY.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
pY.prototype.computeThumbnailWidth=function(p){return p?360:246};
pY.prototype.computeUseProminentThumbs=function(p){return p};
var xT=pY;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],xT.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],xT.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],xT.prototype,"data",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],xT.prototype,"isSearch",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.k("design:type",Boolean)],xT.prototype,"useProminentThumbs",void 0);xT=_.B([_.L({is:"ytd-show-renderer",disableElementRegistration:!0})],xT);
_.P(xT,"ytd-show-renderer",function(){if(Oxm!==void 0)return Oxm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Oxm=p},{mode:1});_.Ei("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var jVK=function(){var p=_.m.apply(this,arguments)||this;p.isRichGrid=!1;return p};
_.E(jVK,_.m);jVK.prototype.configureRendererStamper=function(){return{"data.item":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:{matcher:function(){return this.isRichGrid?"ytd-rich-grid-media":"ytd-video-renderer"}}}}}};
var FC=jVK;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],FC.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],FC.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],FC.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],FC.prototype,"isRichGrid",void 0);FC=_.B([_.L({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],FC);
_.P(FC,"ytd-feed-entry-renderer",function(){if(Hxl!==void 0)return Hxl;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Hxl=p},{mode:1});var LGK;var P46=function(){return _.m.apply(this,arguments)||this};
_.E(P46,_.m);P46.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
var Ny=P46;_.B([_.u(_.nl),_.k("design:type",Object)],Ny.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ny.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Ny.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ny.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,selector:_.yr,value:3}),_.k("design:type",Number)],Ny.prototype,"itemsPerRow",void 0);
Ny=_.B([_.L({is:"ytd-link-card-renderer",disableElementRegistration:!0})],Ny);
_.P(Ny,"ytd-link-card-renderer",function(){if(LGK!==void 0)return LGK;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return LGK=p},{mode:1});var TIj;var BIJ=function(){return _.m.apply(this,arguments)||this};
_.E(BIJ,_.m);_.l=BIJ.prototype;_.l.configureRendererStamper=function(){return{"data.menu":dK,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.l.onRendererTap=function(p){if(!this.ytdDismissibleItemBehavior.isDismissed){var x,F=(x=this.data)==null?void 0:x.navigationEndpoint;F&&!_.mx(_.m9(p),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(F)?_.mx(_.m9(p),this.hostElement,["A"])||_.hG(this.hostElement,"yt-navigate",{endpoint:F}):this.ytComponentBehavior.resolveCommand(F,{}))}};
_.l.maybeComputeHref=function(p){return this.ytComponentBehavior.computeHref_(p,!0)};
_.l.getNavigationCommand=function(p){return this.isNavigationCommand(p)?p:null};
_.l.isNavigationCommand=function(p){return p?_.r(p,_.Du)||_.r(p,_.B7)||_.r(p,_.Gj)?!0:!1:!1};
var hx=BIJ;hx.prototype.onRendererTap=hx.prototype.onRendererTap;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],hx.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],hx.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],hx.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],hx.prototype,"ytComponentBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],hx.prototype,"data",void 0);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],hx.prototype,"onRendererTap",null);hx=_.B([_.L({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],hx);
_.P(hx,"ytd-lumiere-promo-item-image-renderer",function(){if(TIj!==void 0)return TIj;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return TIj=p},{mode:1});var Ron;var kol=function(){return _.m.apply(this,arguments)||this};
_.E(kol,_.m);kol.prototype.computeLandscapeThumbnail=function(){var p;return((p=this.data)==null?void 0:p.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
var lR=kol;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],lR.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],lR.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,selector:_.n1}),_.k("design:type",Boolean)],lR.prototype,"miniMode",void 0);_.B([_.H({reflectToAttribute:!0,selector:_.yr}),_.k("design:type",Number)],lR.prototype,"itemsPerRow",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.k("design:type",Boolean)],lR.prototype,"landscapeThumbnail",void 0);lR=_.B([_.L({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],lR);
_.P(lR,"ytd-lumiere-shelf-details-renderer",function(){if(Ron!==void 0)return Ron;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Ron=p},{mode:_.UQ("kevlar_poly_si_batch_j076")?1:2});var UVk;var ixl=function(){return _.m.apply(this,arguments)||this};
_.E(ixl,_.m);ixl.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var cp=ixl;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],cp.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],cp.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],cp.prototype,"data",void 0);cp=_.B([_.L({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],cp);
_.P(cp,"ytd-primetime-promo-details-renderer",function(){if(UVk!==void 0)return UVk;var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return UVk=p},{mode:1});var I6b;var $V6=function(){return _.m.apply(this,arguments)||this};
_.E($V6,_.m);var aF=$V6;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],aF.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],aF.prototype,"data",void 0);aF=_.B([_.L({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],aF);
_.P(aF,"ytd-panel-show-style-metadata-renderer",function(){if(I6b!==void 0)return I6b;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return I6b=p},{mode:1});var eoK;var pYb=function(){return _.m.apply(this,arguments)||this};
_.E(pYb,_.m);_.l=pYb.prototype;_.l.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.l.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.l.computeThumbnail=function(p){if(p)return p.smallFormFactorBackgroundThumbnail||p.largeFormFactorBackgroundThumbnail};
_.l.maybeComputeHref=function(p){return this.ytComponentBehavior.computeHref_(p,!0)};
_.l.isNavigationCommand=function(p){return p?_.r(p,_.Du)||_.r(p,_.B7)||_.r(p,_.Gj)?!0:!1:!1};
_.l.getNavigationCommand=function(p){return this.isNavigationCommand(p)?p:null};
var My=pYb;My.prototype.onPanelTap=My.prototype.onPanelTap;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],My.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],My.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],My.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],My.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],My.prototype,"roundedContainer",void 0);_.B([_.H({reflectToAttribute:!0,value:_.S("web_modern_buttons")}),_.k("design:type",Boolean)],My.prototype,"modernButtons",void 0);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],My.prototype,"onPanelTap",null);My=_.B([_.L({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],My);
_.P(My,"ytd-primetime-promo-panel-renderer",function(){if(eoK!==void 0)return eoK;var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return eoK=p},{mode:1});_.o7(_.mO(function(p){p=_.Vg(p,{data:{},useFullWidth:!1});var x=p.data,F=p.useFullWidth,N=function(){return x().caption},h=function(){return x().image},c=function(){return _.g$(x().onTap)};
p={};p=_.$L("ytTeaserCardViewModelHost",(p.ytTeaserCardViewModelUseFullWidth=function(){return F()},p));
return _.Z("teaser-card-view-model",{class:p},_.Z(_.D9,{cond:function(){return c()},
then:function(){return _.Z(hzJ,{className:"ytTeaserCardViewModelLink",command:c,forceNewState:!0,useATagConfig:!0},_.Z("div",{class:"ytTeaserCardViewModelImageContainer"},_.Z(_.D9,{cond:h,then:function(M){return _.Z(_.VE,{data:M,className:"ytTeaserCardViewModelImage",alt:""})}})),_.Z("p",{class:"ytTeaserCardViewModelCaption"},N))}}))},"vb"),"teaser-card-view-model",{props:{data:_.G2,
useFullWidth:_.G2}});var xvD=new _.iE("RICH_GRID_VIDEO_RENDERER_TOKEN");_.o7(_.mO(function(p){var x=p.data;var F=p.showYtInteractionInContent;var N=function(){return!!x().selectableFeedback};
p=_.a(_.hu(!1,void 0,"nblDw"));var h=p.next().value,c=p.next().value;_.J9(function(){var C=_.r(x().primaryButton,_.gR);(C==null?0:C.isToggled)&&c(C.isToggled)});
p=_.h0(function(C){if(!N())return!1;if(h()){var X;var Q=(X=x().selectableFeedback)==null?void 0:X.onDeselect}else{var b;Q=(b=x().selectableFeedback)==null?void 0:b.onSelect}Q&&_.su(Q,{form:{element:C.target}});c(!h());if(C=_.r(x().primaryButton,_.gR))C.isToggled=h();return!1});
var M=function(){if(!N()){var C,X=(C=x().loggingDirectives)==null?void 0:C.trackingParams;X&&_.cj(_.J().resolve(_.Zy),X)}},f=_.d2w(),K=function(){var C;
return N()?(C=x().selectableFeedback)==null?void 0:C.a11yLabel:void 0},t=function(){return N()?{toggled:h()}:{}},d=_.J().resolve(_.Bw(xvD)),v={};
return _.Z("yt-feedback-item-renderer",{class:_.$L("ytFeedbackItemRendererHost",(v.ytFeedbackItemRendererSelectableFeedback=N,v)),"on:click":p,"on:keydown":f,title:K,"aria-label":K,"aria-pressed":function(){return N()?h():void 0},
tabindex:function(){return N()?0:void 0},
role:function(){return N()?"button":void 0}},_.Z("div",{class:"ytFeedbackItemRendererContentContainer"},_.Z(_.Es,{data:function(){return x().content}},{videoRenderer:function(C){return _.Z(d,{data:C.data,
showYtInteraction:F})},
lockupViewModel:function(C){return _.Z(q5,{data:C.data,containerType:2})}})),_.Z("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.Z(_.Es,{data:function(){return x().primaryButton}},{toggleButtonViewModel:function(C){return _.Z(_.QP,{data:C.data,
buttonShapeOverrides:t,disableExplicitClickLogging:!0,onToggle:M})}})))},"wb"),"yt-feedback-item-renderer",{props:{data:_.G2,
showYtInteractionInContent:_.G2}});var FlB=function(){var p=_.m.apply(this,arguments)||this;p.isShortsGrid=!1;p.isCompactGrid=!1;p.isShortsPanelGrid=!1;p.enablePlayablesReducedCardCount=_.S("enable_playables_reduced_card_count");p.renderedFromRichGrid=!1;p.isInFirstColumn=!1;p.noGutterMargins=!1;p.isInlineGroupItem=!1;p.insetMetadata=!1;p.noBottomMarginInAds=_.S("web_no_bottom_margin_for_home_ad_buttons");p.force16By9ThumbnailAspectRatio=!1;p.useCompactList=!1;p.containerType=2;p.thumbnailTargetWidth=9999;p.isResponsiveGrid=!1;p.lockupExperiments=
{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};p.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};p.hoverListener=p.hover.bind(p);p.leaveListener=p.leave.bind(p);p.highlighted=!1;p.JSC$13879_unsubscribeFromInlinePreviewIsActive=function(){};
return p};
_.E(FlB,_.m);_.l=FlB.prototype;_.l.computeContainerType=function(){return this.useCompactList?3:2};
_.l.computeThumbnailTargetWidth=function(){var p;return(p=this.itemWidth)!=null?p:9999};
_.l.updateIsInFirstColumn=function(){var p;this.isInFirstColumn=((p=this.data)==null?void 0:p.colIndex)===0};
_.l.observerContainerType=function(){if(this.lockup){var p=this.lockup;p.containerType=this.containerType;p.sizing=this.sizing;p.typographyBump=this.typographyBump;p.itemWidth=this.itemWidth}this.richGridMedia&&_.S("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump)};
_.l.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",params:{isRichGrid:!0}},
expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.l.leave=function(p){p=p.relatedTarget;var x=document.querySelector("ytd-video-preview");p&&x&&_.Ub(x).contains(p)||this.removeAndCleanupHighlight()};
_.l.hover=function(){var p;if(!this.highlighted&&(!_.S("web_enable_rich_item_on_focus_effect")||(p=this.data)!=null&&p.onFocusEffect)){var x,F;((x=this.data)==null?void 0:(F=x.onFocusEffect)==null?void 0:F.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(p=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:p,boxShadow:"0 0 0 10px "+p}));var N,h;((N=this.data)==null?void 0:(h=N.onFocusEffect)==null?void 0:
h.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.l.removeAndCleanupHighlight=function(){this.hostElement.classList.remove("ytd-rich-item-renderer-highlight");this.hostElement.classList.remove("ytd-rich-item-renderer-highlight-border");Object.assign(this.hostElement.style,{backgroundColor:"",boxShadow:""});this.highlighted=!1};
_.l.registerHoverHighlightListeners=function(){var p=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$13879_unsubscribeFromInlinePreviewIsActive=_.qJ(_.Bi(),_.sOE,function(x){p.highlighted&&!x&&p.removeAndCleanupHighlight()})};
_.l.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$13879_unsubscribeFromInlinePreviewIsActive()};
_.l.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.l.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.l.getBackgroundColor=function(){var p,x,F=(p=this.data)==null?void 0:(x=p.onFocusEffect)==null?void 0:x.onFocusColor;if(F){if(document.documentElement.hasAttribute("dark")&&(F==null?0:F.darkTheme))return _.gX(F==null?void 0:F.darkTheme);if(F==null?0:F.lightTheme)return _.gX(F==null?void 0:F.lightTheme)}};
_.l.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var p=_.b0(),x,F,N;p&&((x=this.data)==null?0:x.trackingParams)&&((F=this.data)==null?void 0:F.colIndex)!=null&&((N=this.data)==null?void 0:N.rowIndex)!=null&&_.kv(p,_.fr(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.l.isSlimMediaRenderer=function(p){return!!_.r(p==null?void 0:p.content,_.apB)||!!_.r(p==null?void 0:p.content,cnB)||!!_.r(p==null?void 0:p.content,_.bx)||!!_.r(p==null?void 0:p.content,naJ)};
_.l.isPostRenderer=function(){var p,x;return!!_.r((p=this.data)==null?void 0:p.content,CMB)||!!_.r((x=this.data)==null?void 0:x.content,S16)};
_.l.computeIsGameCardShelf=function(){var p;return!!_.r((p=this.data)==null?void 0:p.content,vfZ)};
_.l.computeIsMiniGameCardShelf=function(){var p,x;return!!_.r((p=this.data)==null?void 0:p.content,uQj)||!!_.r((x=this.data)==null?void 0:x.content,YHI)};
_.l.computeIsTeaserCard=function(){var p;return!!_.r((p=this.data)==null?void 0:p.content,YHI)};
_.l.computeIsSelectableFeedbackItem=function(){var p,x;return!((x=_.r((p=this.data)==null?void 0:p.content,_.GkI))==null||!x.selectableFeedback)};
_.l.computeContainsLumierePosters=function(){var p,x;return((x=_.r((p=this.data)==null?void 0:p.content,biD))==null?void 0:x.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.l.computeIsExpandOnHoverCardShelf=function(){var p;return!!_.r((p=this.data)==null?void 0:p.content,yhC)};
_.l.computeIsLinkCardShelf=function(){var p;return!!_.r((p=this.data)==null?void 0:p.content,C$v)};
_.l.computeIsReelItemStyleAvatarCircle=function(p){var x;return((x=_.r(p==null?void 0:p.content,_.bx))==null?void 0:x.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.l.computeIsLinkCardFullWidth=function(p,x){var F;return((F=_.r(p==null?void 0:p.content,C$v))==null?void 0:F.useFullWidth)||x<=2};
_.R8.Object.defineProperties(FlB.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&&_.S("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.S("web_enable_rich_item_on_focus_effect")||_.S("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.S("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.S("web_shorts_2_by_3_lockups_study")||_.S("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
var Df=FlB;Df.prototype.richGridHoverHighlightChanged=Df.prototype.richGridHoverHighlightChanged;Df.prototype.observerContainerType=Df.prototype.observerContainerType;Df.prototype.updateIsInFirstColumn=Df.prototype.updateIsInFirstColumn;_.B([_.u(_.nl),_.k("design:type",Object)],Df.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Df.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Df.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Df.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.HL),_.k("design:type",Object)],Df.prototype,"ytdLockupBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Df.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.k("design:type",Boolean)],Df.prototype,"isPost",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.k("design:type",Boolean)],Df.prototype,"containsLumierePosters",void 0);_.B([_.H({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.k("design:type",Boolean)],Df.prototype,"isSlimMedia",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.k("design:type",Boolean)],Df.prototype,"isGameCardShelf",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.k("design:type",Boolean)],Df.prototype,"isMiniGameCardShelf",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.k("design:type",Boolean)],Df.prototype,"isTeaserCard",void 0);_.B([_.H({computed:"computeIsSelectableFeedbackItem(data)"}),_.k("design:type",Boolean)],Df.prototype,"isSelectableFeedbackItem",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Df.prototype,"isShortsGrid",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Df.prototype,"isSlimGrid",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Df.prototype,"isCompactGrid",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Df.prototype,"isShortsPanelGrid",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.k("design:type",Boolean)],Df.prototype,"isExpandOnHoverCardShelf",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Df.prototype,"enablePlayablesReducedCardCount",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.k("design:type",Boolean)],Df.prototype,"isLinkCardShelf",void 0);
_.B([_.H({reflectToAttribute:!0,selector:_.yr,value:3}),_.k("design:type",Number)],Df.prototype,"itemsPerRow",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Df.prototype,"renderedFromRichGrid",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Df.prototype,"isInFirstColumn",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Df.prototype,"noGutterMargins",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Df.prototype,"isInlineGroupItem",void 0);_.B([_.H(),_.k("design:type",Object)],Df.prototype,"insetMetadata",void 0);_.B([_.H(),_.k("design:type",Object)],Df.prototype,"noBottomMarginInAds",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Df.prototype,"isShelfItem",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.k("design:type",Boolean)],Df.prototype,"isReelItemStyleAvatarCircle",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.k("design:type",Boolean)],Df.prototype,"isLinkCardFullWidth",void 0);_.B([_.H(),_.k("design:type",Object)],Df.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Df.prototype,"useCompactList",void 0);_.B([_.H(),_.k("design:type",String)],Df.prototype,"sizing",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Df.prototype,"typographyBump",void 0);_.B([_.H(),_.k("design:type",Number)],Df.prototype,"itemWidth",void 0);_.B([_.H(),_.k("design:type",Boolean)],Df.prototype,"isHomeShelf",void 0);_.B([_.Ff("yt-lockup-view-model"),_.k("design:type",HTMLElement)],Df.prototype,"lockup",void 0);
_.B([_.Ff("ytd-rich-grid-media"),_.k("design:type",HTMLElement)],Df.prototype,"richGridMedia",void 0);_.B([_.H({computed:"computeContainerType(useCompactList)"}),_.k("design:type",Object)],Df.prototype,"containerType",void 0);_.B([_.H({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.k("design:type",Object)],Df.prototype,"thumbnailTargetWidth",void 0);
_.B([_.w("showYtInteractionOnRichItem"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Df.prototype,"showYtInteractionOnRichGridMedia",null);_.B([_.w("isSelectableFeedbackItem","richGridHoverHighlight"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Df.prototype,"showYtInteractionOnRichItem",null);_.B([_.w("typographyBump"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Df.prototype,"richTypographyBump",null);
_.B([_.H({reflectToAttribute:!0}),_.w("isShortsGrid","isCompactGrid"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Df.prototype,"richGridHoverHighlight",null);_.B([_.w("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.k("design:type",Number),_.k("design:paramtypes",[])],Df.prototype,"shortsLockupViewModelAspectRatio",null);_.B([_.w("isInlineGroupItem"),_.k("design:type",Number),_.k("design:paramtypes",[])],Df.prototype,"shortsLockupViewModelScrimStyle",null);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Df.prototype,"updateIsInFirstColumn",null);_.B([_.W("containerType","sizing","typographyBump"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Df.prototype,"observerContainerType",null);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Df.prototype,"isResponsiveGrid",void 0);_.B([_.H(),_.k("design:type",Object)],Df.prototype,"lockupExperiments",void 0);
_.B([_.W("richGridHoverHighlight"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Df.prototype,"richGridHoverHighlightChanged",null);Df=_.B([_.L({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],Df);
_.N9k=_.kJ()(Df,"ytd-rich-item-renderer",function(){if(YwI===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);YwI=p}p=YwI;return p},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var zud={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var wXE=_.L1(_.JG("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var h7B;var loJ=function(){var p=_.m.apply(this,arguments)||this;p.useResponsiveGrid=!1;p.hidden=!1;p.standardShelfMargins=_.S("web_rich_grid_standard_shelf_margins");p.isShowMoreHidden=!1;p.isExpanded=!1;p.isInnerShelf=!1;p.allVideosCount=0;p.allPlaylistCount=0;p.haveSmartDownloadsCompleted=!1;p.isShowLessHidden=!0;p.restrictContentsOverflow=!1;p.firstShownIndex=0;p.horizontalOffset=0;p.atEnd=!0;p.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};p.nextClick=function(){var x;(x=p.data)!=null&&x.contents&&(p.firstShownIndex+=p.currentElementsPerRow,p.updateHorizontalOffset(),p.updateHorizontalItemVisibility())};
p.previousClick=function(){var x;(x=p.data)!=null&&x.contents&&(p.firstShownIndex-=p.currentElementsPerRow,p.updateHorizontalOffset(),p.updateHorizontalItemVisibility())};
return p};
_.E(loJ,_.m);_.l=loJ.prototype;
_.l.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.sd("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.l.attached=function(){this.requestElementsPerRow()};
_.l.refreshGridLayoutNew=function(){var p;if((p=this.data)!=null&&p.contents&&this.containerWidth){var x;((x=this.data.responsiveContainerConfiguration)==null?0:x.responsiveSize)?(p=_.W5Z(this.data.responsiveContainerConfiguration,this.containerWidth),p=_.RC(Object.assign({},p,{standardUnitMinWidth:this.standardUnitMinWidth}))):p=_.RC({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=p.typographyBump;if(this.elementsPerRow!==
p.numItems||this.gutter!==p.gutter)this.elementsPerRow=p.numItems,this.gutter=p.gutter,this.itemWidth=p.itemWidth,_.eV(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":p.gutter+"px"})}};
_.l.computeSizing=function(){if(!(this.isLumiere||this.isShortsShelf()&&_.S("web_use_layout_library_for_rich_grid_disable_shorts"))){var p=_.L2E(this.data);if(p)return p;if(_.S("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.l.computeUseResponsiveGrid=function(){return this.isShortsShelf()&&_.S("web_use_layout_library_for_rich_grid_disable_shorts")?!1:!this.isLumiere&&this.sizing};
_.l.computeButton=function(p){var x=_.r(p,_.AS);p=Object.assign({},_.r(p,_.AS));return x?(p.text||(p.text={simpleText:p.tooltip}),p.style="STYLE_MONO_OUTLINE",p.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",p):x};
_.l.onRowIndexChange=function(){var p=_.b0(),x,F;((x=this.data)==null?0:x.trackingParams)&&((F=this.data)==null?void 0:F.rowIndex)!=null&&p&&_.kv(p,_.fr(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.l.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var p,x=((p=this.getRichItemRenderers()[0])==null?void 0:p.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*x;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.l.requestElementsPerRow=function(){_.hG(this.hostElement,"yt-request-elements-per-row")};
_.l.onUpdateElementsPerRowAction=function(p,x,F,N,h,c){if(this.containerWidth!==c&&(this.containerWidth=c,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&p&&x&&F&&N&&h&&(this.elementsPerRow!==p||this.postsPerRow!==x||this.slimItemsPerRow!==F||this.gameCardsPerRow!==N||this.miniGameCardsPerRow!==h)&&(this.elementsPerRow=p,this.postsPerRow=x,this.slimItemsPerRow=F,this.gameCardsPerRow=N,this.miniGameCardsPerRow=h,this.updateItemVisibility())};
_.l.getRichItemRenderers=function(){return _.n(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.l.updateItemVisibility=function(){var p=this;if(this.data&&this.data.contents){var x=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(N,h){var c;((c=p.data)==null?0:c.isExpanded)?(N.hidden=h>x-1,N.ytRendererBehavior.markDirty()):N.hidden=h>p.currentElementsPerRow-1||h>x-1});
var F=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||F||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||F||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.l.setHeightToSingleRow=function(){var p=this.getRichItemRenderers(),x=Number.parseInt(getComputedStyle(p[0]).marginBottom,10)||0;p=p.slice(0,this.currentElementsPerRow).reduce(function(F,N){return Math.max(F,N.getBoundingClientRect().height+x)},0);
this.contents.style.height=p+"px"};
_.l.focusNextExpandedItem=function(){var p;((p=this.data)==null?0:p.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.l.focusItem=function(p,x){var F=this.getRichItemRenderers();if(F[p]&&(p=F[p].querySelector(".focus-on-expand"))){if(x){var N;(N=F[this.currentElementsPerRow])==null||N.scrollIntoView({behavior:"smooth",block:"center"})}p.focus({preventScroll:!0})}};
_.l.onDataChange=function(){var p=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.jB(this,function(){p.updateItemVisibility()});
var x;if((x=this.data)==null?0:x.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.eV(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),x=0;x<this.data.contents.length;x++){var F=_.r(this.data.contents[x],_.Qf)||{};F.colIndex=x;F.rowIndex=this.data.rowIndex}};
_.l.handleRerenderDownloadsData=function(){_.S("kevlar_modern_downloads_page")&&this.entityDrivenRichShelfData&&(this.set("data.contents",this.entityDrivenRichShelfData.contents),this.entityDrivenRichShelfData.subtitle&&this.set("data.subtitle",this.entityDrivenRichShelfData.subtitle),this.updateItemVisibility())};
_.l.blockInlinePreview=function(p){var x=this,F;return _.D(function(N){(F=x.inlinePreviewIsEnabled)&&x.ytdReduxBehavior.dispatch(_.xxJ(!1));return N.return(new Promise(function(h){p(function(){F&&x.ytdReduxBehavior.dispatch(_.xxJ(!0));h()})}))})};
_.l.expandShelf=function(){var p=this;if(this.data){var x,F=(x=_.r(this.data.showMoreButton,_.AS))==null?void 0:x.trackingParams;F&&_.cj(_.cl(),F);this.data.isExpanded=!0;this.blockInlinePreview(function(N){p.setHeightToSingleRow();p.updateItemVisibility();p.contents.style.height=p.contents.scrollHeight+"px";_.E0.addJob(function(){p.contents.style.height="auto";p.focusNextExpandedItem();N()},2,200)})}};
_.l.collapseShelf=function(){var p=this;return _.D(function(x){if(x.nextAddress==1){if(!p.data)return x.return();p.data.isExpanded=!1;return _.q(x,p.blockInlinePreview(function(F){p.contents.style.height=p.contents.scrollHeight+"px";p.setHeightToSingleRow();_.E0.addJob(function(){p.updateItemVisibility();p.contents.style.height="auto";F()},2,200)}),2)}_.hG(p.hostElement,"yt-rich-shelf-renderer-collapse",p.data.trackingParams);
p.focusItem(0,!1);_.JB(x)})};
_.l.updateArrowButtonStatus=function(){var p=this.getRichItemRenderers().length;if(!_.S("web_rich_shelf_renderer_use_data_contents_killswitch")){var x,F;p=((x=this.data)==null?void 0:(F=x.contents)==null?void 0:F.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=p};
_.l.onChildElementFocus=function(p){this.hasChevronButtons&&(p=p.target.closest("#contents > *"),this.contents.contains(p)&&(p.offsetLeft<this.horizontalOffset?this.previousClick():p.offsetLeft+p.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.l.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.sd("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.l.updateHorizontalOffset=function(){var p=this.getRichItemRenderers(),x=p.length;if(!_.S("web_rich_shelf_renderer_use_data_contents_killswitch")){var F,N;x=((F=this.data)==null?void 0:(N=F.contents)==null?void 0:N.length)||0}var h;p=((h=p[0])==null?void 0:h.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>x?this.firstShownIndex=x-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*p};
_.l.isSlimMediaShelfRenderer=function(){var p,x,F,N=(F=_.r((p=this.data)==null?void 0:(x=p.contents)==null?void 0:x[0],_.Qf))==null?void 0:F.content;return!!(_.r(N,_.apB)||_.r(N,cnB)||_.r(N,_.bx)||_.r(N,naJ))};
_.l.isGameCardShelf=function(){var p,x,F,N=(F=_.r((p=this.data)==null?void 0:(x=p.contents)==null?void 0:x[0],_.Qf))==null?void 0:F.content;return!!_.r(N,vfZ)};
_.l.isGnomeShelf=function(){var p,x,F,N=(F=_.r((p=this.data)==null?void 0:(x=p.contents)==null?void 0:x[0],_.Qf))==null?void 0:F.content;return!!_.r(N,_.GkI)};
_.l.isMiniGameCardShelf=function(){var p,x,F,N=(F=_.r((p=this.data)==null?void 0:(x=p.contents)==null?void 0:x[0],_.Qf))==null?void 0:F.content;return!!_.r(N,uQj)||!!_.r(N,YHI)};
_.l.hasGameBoxArtAvatarStyle=function(){var p;return((p=this.data)==null?void 0:p.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.l.hasRoundedGameBoxArtAvatarStyle=function(){var p;return((p=this.data)==null?void 0:p.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.l.isShortsShelf=function(){var p,x,F,N=(F=_.r((p=this.data)==null?void 0:(x=p.contents)==null?void 0:x[0],_.Qf))==null?void 0:F.content;return!!_.r(N,_.bx)||!!_.r(N,naJ)};
_.l.isPostShelfRenderer=function(){var p,x,F,N=(F=_.r((p=this.data)==null?void 0:(x=p.contents)==null?void 0:x[0],_.Qf))==null?void 0:F.content;return!(!_.r(N,CMB)&&!_.r(N,S16))};
_.l.isLumiereShelf=function(){var p,x,F=_.r((p=this.data)==null?void 0:(x=p.contents)==null?void 0:x[0],_.Qf);return!!_.r(F==null?void 0:F.content,biD)};
_.l.isLumiereShelfWithPosters=function(){var p,x,F=_.r((p=this.data)==null?void 0:(x=p.contents)==null?void 0:x[0],_.Qf),N;return((N=_.r(F==null?void 0:F.content,biD))==null?void 0:N.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.l.isExpandOnHoverCardShelf=function(){var p,x,F,N=(F=_.r((p=this.data)==null?void 0:(x=p.contents)==null?void 0:x[0],_.Qf))==null?void 0:F.content;return!!_.r(N,yhC)};
_.l.computeHasFeaturedBadge=function(){var p,x,F=_.r((p=this.data)==null?void 0:(x=p.badges)==null?void 0:x[0],_.G3k);return F?F.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.l.computeHasPaygatedFeaturedBadge=function(){var p,x,F=_.r((p=this.data)==null?void 0:(x=p.badges)==null?void 0:x[0],_.G3k);return F?(F==null?void 0:F.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.l.computeHeaderHidden=function(){var p,x,F,N,h,c;return!((p=this.data)==null?0:p.icon)&&!((x=this.data)==null?0:x.title)&&!((F=this.data)==null?0:F.subtitle)&&!((N=this.data)==null?0:N.thumbnail)&&!((h=this.data)==null?0:h.badges)&&!((c=this.data)==null?0:c.menu)};
_.l.showCtaButton=function(){var p;return!((p=this.data)==null||!p.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.l.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.l.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.l.computeForce16By9ThumbnailAspectRatio=function(){var p,x;return((p=this.data)==null?void 0:(x=p.responsiveContainerConfiguration)==null?void 0:x.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.l.onSectionReactiveDismissal=function(p,x,F){var N,h;var c=(N=this.data)==null?void 0:(h=N.targetingContext)==null?void 0:h.targetGroupId;this&&c&&x.targetGroupId&&c.includes(x.targetGroupId)?(N=this.rowIndex,p=N===void 0?!1:!(x.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&N<=p)):p=!1;p&&(this.hidden=F)};
_.R8.Object.defineProperties(loJ.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var p=this.elementsPerRow;this.isPostShelfRenderer()?p=this.postsPerRow:this.isSlimMediaShelfRenderer()?p=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?p=this.slimItemsPerRow-1:this.isGameCardShelf()?p=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(p=this.miniGameCardsPerRow);return p}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.S("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var p,x;return!((p=this.data)==null||!p.previousButton)&&!((x=this.data)==null||!x.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 p;return((p=_.J().resolve(_.j3).getCurrentPage())==null?void 0:p.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var p,x,F,N;return!((p=this.data)==null?0:(x=p.thumbnail)==null?0:(F=x.accessibility)==null?0:(N=F.accessibilityData)==null?0:N.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
var fY=loJ;fY.prototype.onChildElementFocus=fY.prototype.onChildElementFocus;fY.prototype.handleRerenderDownloadsData=fY.prototype.handleRerenderDownloadsData;fY.prototype.onDataChange=fY.prototype.onDataChange;fY.prototype.onRowIndexChange=fY.prototype.onRowIndexChange;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],fY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],fY.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.bh),_.k("design:type",Object)],fY.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],fY.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],fY.prototype,"ytdReduxBehavior",void 0);_.B([_.H({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.k("design:type",Object)],fY.prototype,"useResponsiveGrid",void 0);_.B([_.H(),_.k("design:type",Object)],fY.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Number)],fY.prototype,"standardUnitMinWidth",void 0);_.B([_.H({reflectToAttribute:!0,value:3}),_.k("design:type",Number)],fY.prototype,"elementsPerRow",void 0);_.B([_.H({value:3}),_.k("design:type",Number)],fY.prototype,"postsPerRow",void 0);_.B([_.H({value:6}),_.k("design:type",Number)],fY.prototype,"slimItemsPerRow",void 0);_.B([_.H({value:6}),_.k("design:type",Number)],fY.prototype,"gameCardsPerRow",void 0);
_.B([_.H({value:6}),_.k("design:type",Number)],fY.prototype,"miniGameCardsPerRow",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],fY.prototype,"hidden",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],fY.prototype,"standardShelfMargins",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],fY.prototype,"isShowMoreHidden",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],fY.prototype,"isExpanded",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],fY.prototype,"isInnerShelf",void 0);_.B([_.H({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.k("design:type",Boolean)],fY.prototype,"isShorts",void 0);_.B([_.H({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.k("design:type",Boolean)],fY.prototype,"isLumiere",void 0);_.B([_.H({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.k("design:type",Boolean)],fY.prototype,"hasBoxArtThumbnailStyle",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.k("design:type",Boolean)],fY.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.k("design:type",Boolean)],fY.prototype,"hasFeaturedBadge",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.k("design:type",Boolean)],fY.prototype,"hasPaygatedFeaturedBadge",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.k("design:type",Boolean)],fY.prototype,"isHeaderHidden",void 0);_.B([_.H({selector:_.wjE}),_.k("design:type",Object)],fY.prototype,"allVideosCount",void 0);_.B([_.H({selector:V4m}),_.k("design:type",Object)],fY.prototype,"allPlaylistCount",void 0);_.B([_.H({selector:PC$}),_.k("design:type",Object)],fY.prototype,"haveSmartDownloadsCompleted",void 0);
_.B([_.H({selectorArgs:["entitySelectorType"],selector:function(p,x){if(_.S("kevlar_modern_downloads_page")&&x&&x!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var F=p.entities;switch(x){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":x=_.Qr(F);p=QY(x);var N=_.ST(x);F=_.sJ(F);F=_.ez(n8$(N,F,x.length));return{contents:p,subtitle:F};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return F=_.Qr(F),{contents:QY(F)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return F=
_.zt(F),{contents:QY(F)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return F=_.KeJ(F),{contents:QY(F)};default:_.no(new _.qE("Error: entitySelectorType defined but not matched in selector.",p,x))}}}}),
_.k("design:type",Object)],fY.prototype,"entityDrivenRichShelfData",void 0);_.B([_.H({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.k("design:type",Boolean)],fY.prototype,"hasTopCtaButton",void 0);_.B([_.H({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.k("design:type",Boolean)],fY.prototype,"hasBottomCtaButton",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.k("design:type",Boolean)],fY.prototype,"force16By9ThumbnailAspectRatio",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],fY.prototype,"isShowLessHidden",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],fY.prototype,"restrictContentsOverflow",void 0);_.B([_.H({selector:_.nxm}),_.k("design:type",Boolean)],fY.prototype,"inlinePreviewIsEnabled",void 0);
_.B([_.H({computed:"computeSizing(data)"}),_.k("design:type",String)],fY.prototype,"sizing",void 0);_.B([_.H(),_.k("design:type",Boolean)],fY.prototype,"typographyBump",void 0);_.B([_.H(),_.k("design:type",Number)],fY.prototype,"itemWidth",void 0);_.B([_.H(),_.k("design:type",Object)],fY.prototype,"firstShownIndex",void 0);_.B([_.H(),_.k("design:type",Object)],fY.prototype,"horizontalOffset",void 0);_.B([_.H(),_.k("design:type",Object)],fY.prototype,"atEnd",void 0);
_.B([_.Ff("#contents"),_.k("design:type",HTMLElement)],fY.prototype,"contents",void 0);_.B([_.W("data.rowIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fY.prototype,"onRowIndexChange",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fY.prototype,"onDataChange",null);
_.B([_.W("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fY.prototype,"handleRerenderDownloadsData",null);_.B([_.V("focusin"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],fY.prototype,"onChildElementFocus",null);_.B([_.H({reflectToAttribute:!0}),_.w("data","isHomePage"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],fY.prototype,"isTruncated",null);
_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],fY.prototype,"hideBottomDivider",null);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],fY.prototype,"hasChevronButtons",null);_.B([_.w("firstShownIndex"),_.k("design:type",Object),_.k("design:paramtypes",[])],fY.prototype,"previousButtonOverride",null);
_.B([_.w("atEnd"),_.k("design:type",Object),_.k("design:paramtypes",[])],fY.prototype,"nextButtonOverride",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],fY.prototype,"isHomePage",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],fY.prototype,"thumbnailAriaHidden",null);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],fY.prototype,"initiallyIsExpanded",null);
_.B([_.w("data"),_.k("design:type",String),_.k("design:paramtypes",[])],fY.prototype,"entitySelectorType",null);fY=_.B([_.L({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],fY);
_.cPm=_.kJ()(fY,"ytd-rich-shelf-renderer",function(){if(h7B===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);h7B=p}p=h7B;return p},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var aoD;var MLm=function(){var p=_.m.apply(this,arguments)||this;p.tileLottieAnimationRef={};p.backgroundLottieAnimationRef={};p.isOnHoverBehaviorForLottieEnabled=!0;p.useBiggerShowcaseImage=_.S("enable_desktop_search_bigger_thumbs");p.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return p};
_.E(MLm,_.m);_.l=MLm.prototype;_.l.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.l.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},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"}}}};
_.l.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var p=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);p!==this.hasTile&&this.set("hasTile",p);p=this.hasLogo(this.data)||!!this.data.badgeText;p!==this.hasMetadata&&this.set("hasMetadata",p);p=this.data.overflowButton?!1:p;p!==this.showLogoImage&&this.set("showLogoImage",p);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.l.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.l.currentColorChanged=function(){this.updateButtonPalette()};
_.l.computeBackgroundStyle=function(p){if(p&&this.data){var x=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var F=_.j6((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);F&&x.push('background-image: url("'+F+'");')}var N;((N=p.basicColorData)==null?void 0:N.backgroundColor)!==void 0&&x.push("background-color: "+_.QK(p.basicColorData.backgroundColor)+";");return x.join("")}};
_.l.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&this.set("isDarkTheme",p)};
_.l.getCurrentLogo=function(p,x){if(p)return x?p.darkLogoImage:p.lightLogoImage};
_.l.getCurrentStaticTileImage=function(p,x){if(this.hasStaticTile(p))return p.darkTileImage?x?p.darkTileImage:p.tileImage:p.tileImage};
_.l.computeTitleStyle=function(p){if(this.data&&this.data.title&&p&&p.basicColorData&&p.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.gX(p.basicColorData.foregroundTitleColor)+";"};
_.l.computeSubtitleStyle=function(p){if(this.data&&this.data.subtitle&&p&&p.basicColorData&&p.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.gX(p.basicColorData.foregroundBodyColor)+";"};
_.l.computeSupplementalStyle=function(p){if(this.data&&this.data.supplementalText&&p&&p.supplementalTextColor!==void 0)return p=_.gX(p.supplementalTextColor),"color:"+p+";--yt-endpoint-color:"+p+";--yt-endpoint-hover-color:"+p+";--yt-endpoint-visited-color:"+p+";--yt-formatted-string-bold-font-weight:700;"};
_.l.computeBadgeStyle=function(p){if(this.data&&this.data.badgeText&&p&&p.basicColorData&&p.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.gX(p.basicColorData.foregroundActivatedColor)+";"};
_.l.computeDismissIconStyle=function(p){var x,F;if((p==null?0:(x=p.dismissButtonColorData)==null?0:x.foregroundTitleColor)&&(p==null?0:(F=p.dismissButtonColorData)==null?0:F.backgroundColor))return"--yt-button-color:"+_.QK(p.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.QK(p.dismissButtonColorData.backgroundColor)+";"};
_.l.computeOverflowIconStyle=function(p){var x,F;if((p==null?0:(x=p.dismissButtonColorData)==null?0:x.foregroundTitleColor)&&(p==null?0:(F=p.dismissButtonColorData)==null?0:F.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.QK(p.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.QK(p.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.QK(p.dismissButtonColorData.foregroundTitleColor)+";"};
_.l.computeBannerStyle=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.l.computeLocation=function(p){switch(p==null?void 0:p.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.l.shouldShowTileSection=function(p,x,F){return!this.shouldExpandLogo(p,x,F)&&x};
_.l.shouldShowExpandedLogoSection=function(p,x,F){return this.shouldExpandLogo(p,x,F)&&p!==void 0&&this.hasLogo(p)};
_.l.shouldExpandLogo=function(p,x,F){return p&&x?!1:F>=2};
_.l.hasStaticTile=function(p){return!(p==null||!p.tileImage)};
_.l.hasTileLottie=function(p){var x;return!!(p==null?0:(x=p.tileLottie)==null?0:x.url)};
_.l.hasLogo=function(p){return this.getCurrentLogo(p,this.isDarkTheme)!==void 0};
_.l.getLogoHeight=function(p){return this.logoWithPadding(p)?"26":"20"};
_.l.getExpandedLogoHeight=function(p){return this.logoWithPadding(p)?"31":"24"};
_.l.getLogoImageId=function(p){return this.logoWithPadding(p)?"logo-image-with-padding":"logo-image"};
_.l.hasBackgroundLottie=function(p){var x;return!!(p==null?0:(x=p.backgroundLottie)==null?0:x.url)};
_.l.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var p,x;(p=this.tileLottieAnimationRef)==null||(x=p.lottieEl)==null||x.play();var F,N;(F=this.backgroundLottieAnimationRef)==null||(N=F.lottieEl)==null||N.play()}};
_.l.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var p,x;(p=this.tileLottieAnimationRef)==null||(x=p.lottieEl)==null||x.pause();var F,N;(F=this.backgroundLottieAnimationRef)==null||(N=F.lottieEl)==null||N.pause()}};
_.l.pauseLottie=function(){var p,x;(p=this.tileLottieAnimationRef)==null||(x=p.lottieEl)==null||x.pause();var F,N;(F=this.backgroundLottieAnimationRef)==null||(N=F.lottieEl)==null||N.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.l.performPrimaryButtonAction=function(){var p,x,F;((p=this.data)==null?0:(x=p.primaryButton)==null?0:(F=x.buttonRenderer)==null?0:F.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.l.requestElementsPerRow=function(){_.hG(this.hostElement,"yt-request-elements-per-row")};
_.l.updateButtonPalette=function(){if(this.data&&this.currentColorData){var p;((p=this.data.dismissButton)==null?0:p.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 x;if((x=this.data.primaryButton)==null?0:x.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 F;if((F=this.data.secondaryButton)==
null?0:F.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 N;((N=this.data.primaryButton)==null?0:N.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var h;((h=this.data.secondaryButton)==null?0:h.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.l.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var p=this.getTileLottieDataBasedOnTheme(),x,F;if(p.url!==((x=this.tileLottiePlayerProps)==null?void 0:(F=x.animationConfig)==null?void 0:F.path)){var N,h;(N=this.tileLottieAnimationRef)==null||(h=N.lottieEl)==null||h.destroy();var c;this.isOnHoverBehaviorForLottieEnabled=!((c=p.settings)==null?0:c.autoplay);var M,f;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(f=(M=p.settings)==null?void 0:M.autoplay)!=null?f:!1,loop:this.getLottieLoopValue(p.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof p.url==="string"?this.tileLottiePlayerProps.animationConfig.path=p.url:this.tileLottiePlayerProps.animationConfig.animationData=p.url}}};
_.l.getOverflowButton=function(p){return _.r(p.overflowButton,Y9n)};
_.l.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var p=this.getBackgroundLottieDataBasedOnTheme(),x,F;if(p.url!==((x=this.backgroundLottiePlayerProps)==null?void 0:(F=x.animationConfig)==null?void 0:F.path)){var N,h;(N=this.backgroundLottieAnimationRef)==null||(h=N.lottieEl)==null||h.destroy();var c;this.isOnHoverBehaviorForLottieEnabled=!((c=p.settings)==null?0:c.autoplay);var M,f;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(f=(M=p.settings)==null?void 0:M.autoplay)!=null?f:!1,loop:this.getLottieLoopValue(p.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof p.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=p.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
p.url}}};
_.l.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var p;((p=this.tileLottieAnimationRef)==null?void 0:p.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var x;((x=this.backgroundLottieAnimationRef)==null?void 0:x.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.l.getTileLottieDataBasedOnTheme=function(){var p;if(this.isDarkTheme&&((p=this.data)==null?0:p.darkThemeTileLottie))return this.data.darkThemeTileLottie;var x;return((x=this.data)==null?0:x.tileLottie)?this.data.tileLottie:{}};
_.l.getBackgroundLottieDataBasedOnTheme=function(){var p;if(this.isDarkTheme&&((p=this.data)==null?0:p.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var x;return((x=this.data)==null?0:x.backgroundLottie)?this.data.backgroundLottie:{}};
_.l.onUpdateElementsPerRowAction=function(p){p&&this.elementsPerRow!==p&&(this.elementsPerRow=p)};
_.l.getLottieLoopValue=function(p){return p?p.loop!==void 0?p.loop:p.loopCount?p.loopCount-1:!0:!0};
_.l.logoWithPadding=function(p){var x,F,N;return(p=(x=this.getCurrentLogo(p,this.isDarkTheme))==null?void 0:(F=x.thumbnails)==null?void 0:(N=F[0])==null?void 0:N.height)&&p%31===0?!0:!1};
var KY=MLm;KY.prototype.currentColorChanged=KY.prototype.currentColorChanged;KY.prototype.themeChanged=KY.prototype.themeChanged;KY.prototype.dataChanged=KY.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],KY.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],KY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],KY.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],KY.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],KY.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],KY.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],KY.prototype,"primaryButton",void 0);_.B([_.H(),_.k("design:type",Object)],KY.prototype,"secondaryButton",void 0);
_.B([_.H({reflectToAttribute:!0,value:3}),_.k("design:type",Number)],KY.prototype,"elementsPerRow",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],KY.prototype,"isDarkTheme",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],KY.prototype,"hasTile",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],KY.prototype,"hasMetadata",void 0);
_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],KY.prototype,"showLogoImage",void 0);_.B([_.H(),_.k("design:type",Object)],KY.prototype,"currentColorData",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.k("design:type",String)],KY.prototype,"bannerStyle",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.k("design:type",String)],KY.prototype,"location",void 0);
_.B([_.H(),_.k("design:type",Object)],KY.prototype,"tileLottiePlayerProps",void 0);_.B([_.H(),_.k("design:type",Object)],KY.prototype,"tileLottieAnimationRef",void 0);_.B([_.H(),_.k("design:type",Object)],KY.prototype,"backgroundLottiePlayerProps",void 0);_.B([_.H(),_.k("design:type",Object)],KY.prototype,"backgroundLottieAnimationRef",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],KY.prototype,"useBiggerShowcaseImage",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],KY.prototype,"isHideEnclosingAction",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],KY.prototype,"dataChanged",null);_.B([_.cT("isDarkTheme"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],KY.prototype,"themeChanged",null);
_.B([_.cT("currentColorData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],KY.prototype,"currentColorChanged",null);KY=_.B([_.L({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],KY);
_.P(KY,"ytd-statement-banner-renderer",function(){if(aoD!==void 0)return aoD;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n    <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n  </ytd-lottie-player></div>\n  <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n    <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n      <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n        <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n        </yt-img-shadow>\n        <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n      </ytd-lottie-player></div>\n    </div>\n    <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n      <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n        <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n      <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-dynamic-sizing-formatted-string>\n          <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n        </div>\n        <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n        </div>\n      </div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return aoD=p},{mode:1});var DvC;var foC=function(){var p=_.m.apply(this,arguments)||this;p.isSearch=!1;p.hideShelfHeader=!1;p.engagementPanel=!1;p.disableMouseScroll=!0;p.useFloorScrolling=!0;p.modernTypography=_.S("web_modern_typography");return p};
_.E(foC,_.m);foC.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.JG("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.JG("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
foC.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
var qy=foC;qy.prototype.onDataChanged=qy.prototype.onDataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],qy.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],qy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],qy.prototype,"isSearch",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],qy.prototype,"hideShelfHeader",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],qy.prototype,"engagementPanel",void 0);_.B([_.H(),_.k("design:type",Object)],qy.prototype,"disableMouseScroll",void 0);_.B([_.H(),_.k("design:type",Object)],qy.prototype,"useFloorScrolling",void 0);_.B([_.H(),_.k("design:type",Object)],qy.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],qy.prototype,"modernTypography",void 0);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qy.prototype,"onDataChanged",null);qy=_.B([_.L({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],qy);
_.P(qy,"ytd-reel-shelf-renderer",function(){if(DvC!==void 0)return DvC;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return DvC=p},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var KlC;var qXn=_.mO(function(p){var x=p.data;p=p.useSmallFont;var F={},N={};return _.Z("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.Z(_.D9,{cond:function(){return x().favicon},
then:function(h){return _.Z(_.VE,{data:h,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.Z("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.Z(_.KQ,{text:function(){return x().title},
className:_.$L("yt-channel-external-link-view-model-wiz__title",(F["yt-channel-external-link-view-model-wiz__title--title-small-font"]=p,F)),ellipsisTruncate:!0,userInput:!0}),_.Z(_.KQ,{text:function(){return x().link},
className:_.$L("yt-channel-external-link-view-model-wiz__link",(N["yt-channel-external-link-view-model-wiz__link--link-small-font"]=p,N)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"xb");
qXn.idomCompat=!0;_.o7(qXn,"yt-channel-external-link-view-model",{props:{data:_.G2,useSmallFont:_.G2}});_.Ei("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var ZCv=function(){var p=_.m.apply(this,arguments)||this;p.revealButtonClass="button";p.businessEmailDisplayState="HIDE_SECTION";return p};
_.E(ZCv,_.m);_.l=ZCv.prototype;_.l.refit=function(){var p=this;_.zD(function(){_.Mt(p.hostElement,"yt-refit-popups-action")});
_.jB(this,function(){_.Mt(p.hostElement,"yt-refit-popups-action")})};
_.l.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.VR("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.l.businessEmailMetadataChanged=function(){this.revealButton||this.businessEmail||this.metadata.signInForBusinessEmail?this.metadata.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.metadata.businessEmail&&(this.businessEmail=this.metadata.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.l.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.l.configureRendererStamper=function(){return{"data.flaggingButton":{id:"flagging-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.shareChannel":{id:"share-channel",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"metadata.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:"yt-channel-external-link-view-model"}}}};
_.l.computeEmailHref=function(p){return"mailto:"+p};
_.l.computeSafeUrl=function(p){if(p)return _.ug(p)};
_.l.linkEndpoint=function(p){return _.r(p.onTap,_.XY)};
_.l.linkEndpointToHref=function(p){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(p))};
_.l.onYtServiceRequestCompleted=function(p){var x;if((x=p.detail.data)==null?0:x.businessEmail)this.businessEmail=p.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var F;if((F=p.detail.data)==null?0:F.errorMessage)this.businessEmailErrorMessage=p.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.l.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var p=this.JSC$13982_captchaTextarea.value;if(p){p={recaptcha_response_token:p,channel_id:this.metadata.channelId};var x=_.r(this.metadata.onBusinessEmailRevealClickCommand,_.XY);x&&this.ytComponentBehavior.resolveCommand(x,{form:p})}}};
_.l.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.R8.Object.defineProperties(ZCv.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var p;return _.r((p=this.data)==null?void 0:p.metadata,wsC)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.r(this.metadata.businessEmailRevealButton,_.X6)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var p=new URL(this.metadata.canonicalChannelUrl);return p.host+p.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 _.r(this.metadata.learnMoreOnTap,_.XY)}}});
var Zf=ZCv;Zf.prototype.onYtServiceRequestCompleted=Zf.prototype.onYtServiceRequestCompleted;Zf.prototype.businessEmailMetadataChanged=Zf.prototype.businessEmailMetadataChanged;Zf.prototype.refit=Zf.prototype.refit;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Zf.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Zf.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Zf.prototype,"ytRendererstamperBehavior",void 0);_.B([_.Ff("#g-recaptcha-response"),_.k("design:type",HTMLTextAreaElement)],Zf.prototype,"JSC$13982_captchaTextarea",void 0);_.B([_.H(),_.k("design:type",Object)],Zf.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Zf.prototype,"revealButtonClass",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Zf.prototype,"metadata",null);
_.B([_.w("metadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],Zf.prototype,"revealButton",null);_.B([_.w("metadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],Zf.prototype,"channelDisplayUrl",null);_.B([_.cT("metadata"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zf.prototype,"refit",null);_.B([_.w("metadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],Zf.prototype,"formattedDescription",null);
_.B([_.w("metadata","learnMoreCommand"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Zf.prototype,"shouldRendereVerifiedPhoneStatus",null);_.B([_.w("metadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],Zf.prototype,"learnMoreCommand",null);_.B([_.H(),_.k("design:type",String)],Zf.prototype,"businessEmailDisplayState",void 0);_.B([_.H(),_.k("design:type",String)],Zf.prototype,"businessEmail",void 0);
_.B([_.H(),_.k("design:type",String)],Zf.prototype,"businessEmailErrorMessage",void 0);_.B([_.cT("metadata"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zf.prototype,"businessEmailMetadataChanged",null);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Zf.prototype,"onYtServiceRequestCompleted",null);
Zf=_.B([_.L({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Zf);
_.P(Zf,"ytd-about-channel-renderer",function(){if(KlC!==void 0)return KlC;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return KlC=p},{mode:1});var tLB;var dvI=function(){return _.m.apply(this,arguments)||this};
_.E(dvI,_.m);var tx=dvI;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],tx.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],tx.prototype,"data",void 0);tx=_.B([_.L({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],tx);
_.P(tx,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(tLB!==void 0)return tLB;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return tLB=p},{mode:1});var vn6;var JP6=function(){return _.m.apply(this,arguments)||this};
_.E(JP6,_.m);JP6.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
var dr=JP6;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],dr.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],dr.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],dr.prototype,"aligment",void 0);dr=_.B([_.L({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],dr);
_.P(dr,"ytd-channel-list-sub-menu-renderer",function(){if(vn6!==void 0)return vn6;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return vn6=
p},{mode:1});var C6D;var SXv=function(){return _.m.apply(this,arguments)||this};
_.E(SXv,_.m);SXv.prototype.configureRendererStamper=function(){return{"data.playAllButton":{id:"play-all",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.rightButtons":{id:"right-buttons",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.sortSetting":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",params:{isRightAligned:!0}}}}}};
var vp=SXv;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],vp.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],vp.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],vp.prototype,"data",void 0);vp=_.B([_.L({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],vp);
_.P(vp,"ytd-channel-sub-menu-renderer",function(){if(C6D!==void 0)return C6D;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return C6D=p},{mode:1});var rPj;var EnB;var XYj=function(){var p=_.m.apply(this,arguments)||this;p.isCompact=!1;return p};
_.E(XYj,_.m);_.R8.Object.defineProperties(XYj.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var p,x;return((x=_.r((p=this.data)==null?void 0:p.endpoint,_.Gj))==null?void 0:x.target)==="TARGET_NEW_WINDOW"}}});
var Jx=XYj;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Jx.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Jx.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Jx.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Jx.prototype,"isCompact",void 0);_.B([_.w("isCompact"),_.k("design:type",Number),_.k("design:paramtypes",[])],Jx.prototype,"thumbnailWidth",null);
_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Jx.prototype,"openNewWindow",null);Jx=_.B([_.L({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],Jx);
_.P(Jx,"ytd-media-lockup-renderer",function(){if(EnB!==void 0)return EnB;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return EnB=p},{mode:1});var gnb;var QHj=function(){return _.m.apply(this,arguments)||this};
_.E(QHj,_.m);var CY=QHj;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],CY.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],CY.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],CY.prototype,"data",void 0);CY=_.B([_.L({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],CY);
_.P(CY,"ytd-structured-description-channel-lockup-renderer",function(){if(gnb!==void 0)return gnb;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return gnb=p},{mode:1});var z7D;var sHj=function(){var p=_.m.apply(this,arguments)||this;p.isCompact=!1;p.collections=_.S("web_modern_collections_v2");p.collectionsStackColor=_.S("modernize_structured_description_playlist_lockups_v2");return p};
_.E(sHj,_.m);sHj.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:_.S("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.R8.Object.defineProperties(sHj.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var p,x,F,N,h,c;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(p=this.data)==null?void 0:(x=p.thumbnail)==null?void 0:x.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(F=this.data)==null?void 0:(N=F.thumbnail)==null?void 0:N.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(h=this.data)==null?void 0:(c=h.thumbnail)==
null?void 0:c.vibrantColorPalette:void 0}}}});
var S$=sHj;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],S$.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],S$.prototype,"componentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],S$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],S$.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],S$.prototype,"showSidePanelThumbnailOverlay",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],S$.prototype,"isCompact",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],S$.prototype,"collections",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],S$.prototype,"collectionsStackColor",void 0);
_.B([_.w("data"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],S$.prototype,"twoLineTitle",null);_.B([_.w("data","collections","collectionsStackColor"),_.k("design:type",Object),_.k("design:paramtypes",[])],S$.prototype,"collectionStack",null);S$=_.B([_.L({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],S$);
_.P(S$,"ytd-structured-description-playlist-lockup-renderer",function(){if(z7D!==void 0)return z7D;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return z7D=p},{mode:1});var nnK;var yPJ=function(){return _.m.apply(this,arguments)||this};
_.E(yPJ,_.m);var rr=yPJ;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],rr.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],rr.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],rr.prototype,"data",void 0);rr=_.B([_.L({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],rr);
_.P(rr,"ytd-structured-description-video-lockup-renderer",function(){if(nnK!==void 0)return nnK;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return nnK=p},{mode:2});var bCI=function(){return _.m.apply(this,arguments)||this};
_.E(bCI,_.m);
bCI.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",params:{showSidePanelThumbnailOverlay:!0,isCompact:!0}},structuredDescriptionVideoLockupRenderer:"ytd-structured-description-video-lockup-renderer",structuredDescriptionChannelLockupRenderer:"ytd-structured-description-channel-lockup-renderer",mediaLockupRenderer:{component:"ytd-media-lockup-renderer",params:{isCompact:!0}}}}}};
var EE=bCI;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],EE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],EE.prototype,"data",void 0);EE=_.B([_.L({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],EE);
_.P(EE,"ytd-compact-infocard-renderer",function(){if(rPj!==void 0)return rPj;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return rPj=p},{mode:1});var APB;var ug6=function(){var p=_.m.apply(this,arguments)||this;p.useModernCollectionsV2=_.S("web_modern_collections_v2");return p};
_.E(ug6,_.m);ug6.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.R8.Object.defineProperties(ug6.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"":"94"}}});
var XC=ug6;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],XC.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],XC.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],XC.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],XC.prototype,"ytdReduxBehavior",void 0);_.B([_.H({selector:_.br}),_.k("design:type",Object)],XC.prototype,"isGridViewEnabled",void 0);
_.B([_.w("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],XC.prototype,"watchFeedBigThumbs",null);_.B([_.w("isGridViewEnabled","data"),_.H({reflectToAttribute:!0,value:"168"}),_.k("design:type",String),_.k("design:paramtypes",[])],XC.prototype,"thumbnailWidth",null);_.B([_.w("isGridViewEnabled","data"),_.H({reflectToAttribute:!0,value:"94"}),_.k("design:type",String),_.k("design:paramtypes",[])],XC.prototype,"customThumbnailSize",null);
_.B([_.H(),_.k("design:type",Object)],XC.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],XC.prototype,"useModernCollectionsV2",void 0);XC=_.B([_.L({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],XC);
_.P(XC,"ytd-compact-playlist-renderer",function(){if(APB!==void 0)return APB;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return APB=p},{mode:1});var YX6;var wYb=function(){var p=_.m.apply(this,arguments)||this;p.darkerDarkTheme=_.S("web_darker_dark_theme");p.roundedContainer=!0;p.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return p};
_.E(wYb,_.m);_.l=wYb.prototype;_.l.attached=function(){this.requestElementsPerRow()};
_.l.configureRendererStamper=function(){return{"data.actionButton":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.l.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.l.computeViewStyle=function(p){return p.style?p.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.l.onUpdateElementsPerRowAction=function(p){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&p===1};
_.l.requestElementsPerRow=function(){_.hG(this.hostElement,"yt-request-elements-per-row")};
var gr=wYb;gr.prototype.dataChanged=gr.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],gr.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],gr.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],gr.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],gr.prototype,"actionHandlerBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],gr.prototype,"data",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],gr.prototype,"hideThumbnail",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.k("design:type",String)],gr.prototype,"viewStyle",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],gr.prototype,"darkerDarkTheme",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],gr.prototype,"roundedContainer",void 0);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gr.prototype,"dataChanged",null);gr=_.B([_.L({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],gr);
_.P(gr,"ytd-compact-promoted-item-renderer",function(){if(YX6!==void 0)return YX6;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return YX6=p},{mode:1});var G_l;var QW=function(){var p=_.m.apply(this,arguments)||this;p.collections=_.S("web_modern_collections_v2");return p};
_.E(QW,_.m);QW.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
QW.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
QW.prototype.onYtNavigate=function(p,x){var F=this;if(x.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",x)){var N=this.get("watchEndpoint.videoId",x.endpoint),h=_.Mt(this.hostElement,"yt-get-current-video-id-action")[0];_.S("kevlar_mix_handle_first_endpoint_different")&&N&&h&&N!==h||(p.stopPropagation(),_.TO().getPlayerPromise().then(function(c){if(c.getPlayerState()===0&&F.data.secondaryNavigationEndpoint)var M=F.data.secondaryNavigationEndpoint;else{M=
Object.assign({},x.endpoint);var f=_.r(M.commandMetadata,_.eq);f&&(c=Math.floor(c.getCurrentTime()),f.url=_.Hw(f.url,{t:c}),!_.S("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(f=_.r(M,_.B7)))&&(f.startTimeSeconds=c)}_.hG(F.hostElement,"yt-navigate",{endpoint:M})}))}};
_.R8.Object.defineProperties(QW.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var p,x,F,N,h,c;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(p=this.data)==null?void 0:(x=p.thumbnail)==null?void 0:x.sampledThumbnailColor,vibrantColorPalette:(F=this.data)==null?void 0:(N=F.thumbnail)==null?void 0:N.vibrantColorPalette,darkColorPalette:(h=this.data)==null?void 0:(c=h.thumbnail)==null?void 0:c.darkColorPalette,experimentEnabled:this.collections}}}});
var zY=QW;zY.prototype.onYtNavigate=zY.prototype.onYtNavigate;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],zY.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.NY.YtEndpointBehavior),_.k("design:type",Object)],zY.prototype,"ytEndpointBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],zY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],zY.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.u(_.HL),_.k("design:type",Object)],zY.prototype,"ytdLockupBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],zY.prototype,"ytdReduxBehavior",void 0);_.B([_.H({selector:_.br}),_.k("design:type",Object)],zY.prototype,"isGridViewEnabled",void 0);_.B([_.w("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],zY.prototype,"watchFeedBigThumbs",null);
_.B([_.w("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.k("design:type",String),_.k("design:paramtypes",[])],zY.prototype,"thumbnailWidth",null);_.B([_.H(),_.k("design:type",Object)],zY.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],zY.prototype,"collections",void 0);_.B([_.w("data","collections"),_.k("design:type",Object),_.k("design:paramtypes",[])],zY.prototype,"collectionStack",null);
_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],zY.prototype,"onYtNavigate",null);zY=_.B([_.L({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],zY);
_.P(zY,"ytd-compact-radio-renderer",function(){if(G_l!==void 0)return G_l;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return G_l=p},{mode:1});var VL6;var WlZ=function(){return _.m.apply(this,arguments)||this};
_.E(WlZ,_.m);WlZ.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
WlZ.prototype.computeRendererStyle=function(p){return p.style?p.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
var sE=WlZ;_.B([_.H(),_.k("design:type",Object)],sE.prototype,"data",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],sE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],sE.prototype,"rendererBehavior",void 0);_.B([_.H({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.k("design:type",String)],sE.prototype,"rendererStyle",void 0);
sE=_.B([_.L({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],sE);
_.P(sE,"ytd-compact-text-promo-renderer",function(){if(VL6!==void 0)return VL6;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return VL6=p},{mode:1});var HCB;var mvJ=function(){var p=_.m.apply(this,arguments)||this;p.isShortsStyle=!1;return p};
_.E(mvJ,_.m);_.l=mvJ.prototype;_.l.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.l.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.hG(this.hostElement,"yt-disable-lockup-interaction"):_.hG(this.hostElement,"yt-enable-lockup-interaction"))};
_.l.isMetaBlockEmpty=function(p){return!p||!p.longBylineText&&!p.shortBylineText&&!p.shortViewCountText&&!p.viewCountText};
_.l.computeHasOneLineTitle=function(p){return this.forceOneLineTitle||!(p==null||!p.buttons)};
_.l.computeDisableInteraction=function(){var p;return!((p=this.data)==null?0:p.navigationEndpoint)};
_.l.hasSingularTopStandaloneBadge=function(){var p;return!((p=this.data)==null||!p.topStandaloneBadge)};
_.R8.Object.defineProperties(mvJ.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("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 p;return this.hasSingularTopStandaloneBadge()?[(p=this.data)==null?void 0:p.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var p;return this.shouldShowTopBadges?((p=this.data)==null?void 0:p.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
var nY=mvJ;nY.prototype.disableInteractionChanged=nY.prototype.disableInteractionChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],nY.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],nY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],nY.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.u(_.HL),_.k("design:type",Object)],nY.prototype,"ytdLockupBehavior",void 0);
_.B([_.u(_.nl),_.k("design:type",Object)],nY.prototype,"ytdReduxBehavior",void 0);_.B([_.H({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.k("design:type",Boolean)],nY.prototype,"metaBlockEmpty",void 0);_.B([_.H({selector:_.br}),_.k("design:type",Object)],nY.prototype,"isGridViewEnabled",void 0);_.B([_.w("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nY.prototype,"watchFeedBigThumbs",null);
_.B([_.w("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.k("design:type",String),_.k("design:paramtypes",[])],nY.prototype,"thumbnailWidth",null);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],nY.prototype,"isShortsStyle",void 0);_.B([_.H(),_.k("design:type",Object)],nY.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.k("design:type",Boolean)],nY.prototype,"hasOneLineTitle",void 0);
_.B([_.H(),_.k("design:type",Boolean)],nY.prototype,"hideThumbnail",void 0);_.B([_.H(),_.k("design:type",Boolean)],nY.prototype,"forceOneLineTitle",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.k("design:type",Boolean)],nY.prototype,"disableInteraction",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],nY.prototype,"musicMetadataVideoLockup",void 0);
_.B([_.W("disableInteraction"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nY.prototype,"disableInteractionChanged",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nY.prototype,"shouldShowTopBadges",null);_.B([_.w("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],nY.prototype,"topBadges",null);
_.B([_.w("shouldShowTopBadges","data"),_.k("design:type",Array),_.k("design:paramtypes",[])],nY.prototype,"inlineMetadataBadges",null);_.B([_.w("shouldShowTopBadges"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nY.prototype,"shouldShowBadgesBelowMetadata",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],nY.prototype,"compactTitleClass",null);nY=_.B([_.L({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],nY);
_.P(nY,"ytd-compact-video-renderer",function(){if(HCB!==void 0)return HCB;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return HCB=p},{mode:_.UQ("kevlar_poly_si_batch_j067")?1:2});var onl;_.Ei("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var OC6=function(){return _.m.apply(this,arguments)||this};
_.E(OC6,_.m);var yW=OC6;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],yW.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],yW.prototype,"data",void 0);yW=_.B([_.L({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],yW);
_.P(yW,"ytd-counterfactual-renderer",function(){if(onl!==void 0)return onl;var p=document.createElement("template");_.g(p,"\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");p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return onl=p},{mode:1});var jHC;var bR=function(){var p=_.m.apply(this,arguments)||this;p.hidden=!1;return p};
_.E(bR,_.m);bR.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&(_.S("web_ytd_dropdown_item_renderer_command_resolver_ks")?_.fc(this.hostElement,[this.data.onSelectCommand]):_.J().resolve(_.RD).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}}))};
bR.prototype.computeHidden=function(p){return!!p};
_.R8.Object.defineProperties(bR.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.label)}},
value:{configurable:!0,enumerable:!0,get:function(){if(this.data&&(typeof this.data.stringValue==="string"||typeof this.data.int32Value==="number"))return this.data.stringValue?this.data.stringValue:this.data.int32Value}}});
var Ax=bR;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ax.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ax.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.k("design:type",Object)],Ax.prototype,"hidden",void 0);_.B([_.w("data.label"),_.k("design:type",String),_.k("design:paramtypes",[])],Ax.prototype,"label",null);
_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ax.prototype,"value",null);Ax=_.B([_.L({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],Ax);
_.P(Ax,"ytd-dropdown-item-renderer",function(){if(jHC!==void 0)return jHC;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return jHC=p},{mode:1});var LlB;var P6n;var T9v=function(){return _.m.apply(this,arguments)||this};
_.E(T9v,_.m);var uR=T9v;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],uR.prototype,"data",void 0);_.B([_.H({computed:"getSimpleString(data.label)"}),_.k("design:type",String)],uR.prototype,"label",void 0);uR=_.B([_.L({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],uR);
_.P(uR,"ytd-navigation-dropdown-item-renderer",function(){if(P6n!==void 0)return P6n;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return P6n=p},{mode:1});var B9m=function(){var p=_.m.apply(this,arguments)||this;p.disabled=!1;p.value="";p.noLabelFloat=!1;p.noUnderline=!1;p.usePrimaryColor=!1;p.hasBackground=!1;p.verticalAlign="top";p.autosize=!1;p.minAutosizeWidth=100;p.autosizeFont="14px Roboto";return p};
_.E(B9m,_.m);_.l=B9m.prototype;_.l.configureRendererStamper=function(){return{"data.entries":{id:"entries",mapping:{dropdownItemRenderer:"ytd-dropdown-item-renderer",privacyDropdownItemRenderer:"ytd-privacy-dropdown-item-renderer",navigationDropdownItemRenderer:"ytd-navigation-dropdown-item-renderer"}}}};
_.l.open=function(){this.inputEl.open()};
_.l.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.l.dataChanged=function(){this.reset()};
_.l.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Vx("value-changed",this.value))};
_.l.stopPropagation=function(p){p.stopPropagation()};
_.l.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var p=this.canvas.getContext("2d");p&&(p.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(p.measureText(this.inputEl.value).width)+24)+"px")}};
_.l.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var p=0,x=this.data.entries.length;p<x;p++){var F=this.data.entries[p],N;for(N in F)if(F.hasOwnProperty(N)){var h=F[N];if("isSelected"in h&&h.isSelected)return"stringValue"in h?h.stringValue||"":"int32Value"in h?h.int32Value||0:0}}return null};
_.l.updateValueFromBinding=function(p){this.value=p.detail.value};
_.R8.Object.defineProperties(B9m.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 p=0,x=this.data.entries.length;p<x;p++){var F=this.data.entries[p],N;for(N in F)if(F.hasOwnProperty(N)){var h=F[N];if("isSelected"in h&&h.isSelected&&"label"in h)return this.ytRendererBehavior.getSimpleString(h.label)}}return null}}});
var wr=B9m;wr.prototype.autoSizeLabel=wr.prototype.autoSizeLabel;wr.prototype.stopPropagation=wr.prototype.stopPropagation;wr.prototype.valueChangedForBinding=wr.prototype.valueChangedForBinding;wr.prototype.dataChanged=wr.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],wr.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],wr.prototype,"ytRendererStamperBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],wr.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],wr.prototype,"disabled",void 0);_.B([_.H(),_.k("design:type",Object)],wr.prototype,"value",void 0);_.B([_.H(),_.k("design:type",Object)],wr.prototype,"noLabelFloat",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],wr.prototype,"noUnderline",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],wr.prototype,"theme",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],wr.prototype,"usePrimaryColor",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],wr.prototype,"hasBackground",void 0);_.B([_.H(),_.k("design:type",Object)],wr.prototype,"verticalAlign",void 0);_.B([_.H(),_.k("design:type",Object)],wr.prototype,"autosize",void 0);_.B([_.H(),_.k("design:type",Object)],wr.prototype,"minAutosizeWidth",void 0);_.B([_.H(),_.k("design:type",Object)],wr.prototype,"autosizeFont",void 0);
_.B([_.Ff("#entries"),_.k("design:type",Object)],wr.prototype,"entries",void 0);_.B([_.Ff("#input"),_.k("design:type",Object)],wr.prototype,"inputEl",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wr.prototype,"dataChanged",null);_.B([_.cT("value"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wr.prototype,"valueChangedForBinding",null);
_.B([_.V("iron-overlay-opened"),_.V("iron-overlay-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],wr.prototype,"stopPropagation",null);_.B([_.V("iron-select"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wr.prototype,"autoSizeLabel",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],wr.prototype,"label",null);
wr=_.B([_.L({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],wr);
_.P(wr,"ytd-dropdown-renderer",function(){if(LlB!==void 0)return LlB;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return LlB=p},{mode:1});var R7D;var GY=function(){var p=_.m.apply(this,arguments)||this;p.isConstrainedList=!1;return p};
_.E(GY,_.m);GY.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"}}}};
GY.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
GY.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
GY.prototype.computeViewAllHidden=function(p,x){return p||!x.viewAllEndpoint};
var VW=GY;VW.prototype.fillRestIfNoShowMore=VW.prototype.fillRestIfNoShowMore;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],VW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.Iz.YtLazyListBehavior),_.k("design:type",Object)],VW.prototype,"ytLazyListBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],VW.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],VW.prototype,"isConstrainedList",void 0);_.B([_.cT("data","canShowMore"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],VW.prototype,"fillRestIfNoShowMore",null);VW=_.B([_.L({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],VW);
_.P(VW,"ytd-expanded-shelf-contents-renderer",function(){if(R7D!==void 0)return R7D;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return R7D=p},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var k_C;var UvB=function(){return _.m.apply(this,arguments)||this};
_.E(UvB,_.m);UvB.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.viewChannelButton":{id:"view-channel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
var Wp=UvB;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Wp.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Wp.prototype,"data",void 0);Wp=_.B([_.L({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Wp);
_.P(Wp,"ytd-feed-channel-filter-header-renderer",function(){if(k_C!==void 0)return k_C;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return k_C=p},{mode:1});var iCl;var Iom;var $vK;var e7m=function(){return _.m.apply(this,arguments)||this};
_.E(e7m,_.m);_.l=e7m.prototype;_.l.onClick=function(p){var x,F=(x=this.data)==null?void 0:x.sectionEndpoint;!_.mx(_.m9(p),this.hostElement,["A".toString()])&&F&&_.hG(this.hostElement,"yt-navigate",{endpoint:F})};
_.l.computeHasSectionEndpoint=function(p){return(p==null?void 0:p.sectionEndpoint)!==void 0};
_.l.computeShowHeaderAsLink=function(p){return(p==null?void 0:p.header)!==void 0&&(p==null?void 0:p.sectionEndpoint)!==void 0};
_.l.computeShowSubheaderAsLink=function(p){return(p==null?void 0:p.subheader)!==void 0&&(p==null?void 0:p.sectionEndpoint)!==void 0&&(p==null?void 0:p.header)===void 0};
_.l.getHeaderAsLinkClass=function(p){var x=[],F;(p==null?0:(F=p.headerIcon)==null?0:F.iconType)&&x.push("header-link-active");return x.join(" ")};
var Hp=e7m;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Hp.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Hp.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Hp.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Hp.prototype,"data",void 0);
_.B([_.H({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Hp.prototype,"hasSectionEndpoint",void 0);_.B([_.H({computed:"computeShowHeaderAsLink(data)"}),_.k("design:type",Boolean)],Hp.prototype,"showHeaderAsLink",void 0);_.B([_.H({computed:"computeShowSubheaderAsLink(data)"}),_.k("design:type",Boolean)],Hp.prototype,"showSubheaderAsLink",void 0);Hp=_.B([_.L({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Hp);
_.P(Hp,"ytd-medical-panel-section-renderer",function(){if($vK!==void 0)return $vK;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return $vK=p},{mode:1});var p0m=function(){var p=_.m.apply(this,arguments)||this;p.isExpanded=!1;p.roundedContainer=!0;p.skipRoundingTop=!1;p.toggleExpandableSection=function(){p.isExpanded=!p.isExpanded};
return p};
_.E(p0m,_.m);
p0m.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]]"}}}}}};
p0m.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
var mI=p0m;mI.prototype.dataChanged=mI.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],mI.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],mI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],mI.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],mI.prototype,"isExpanded",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],mI.prototype,"roundedContainer",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],mI.prototype,"skipRoundingTop",void 0);_.B([_.H(),_.k("design:type",Object)],mI.prototype,"toggleExpandableSection",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mI.prototype,"dataChanged",null);
mI=_.B([_.L({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],mI);
_.P(mI,"ytd-medical-panel-content-renderer",function(){if(Iom!==void 0)return Iom;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Iom=p},{mode:1});_.Ei("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var oF=function(){var p=_.m.apply(this,arguments)||this;p.roundedContainer=!0;p.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");p.hasTitle=!1;p.linkIcon="OPEN_IN_NEW";p.isDismissed=!1;return p};
_.E(oF,_.m);
oF.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"}}}};
oF.prototype.computeHasTitle=function(p){return!(p==null||!p.title)};
oF.prototype.onClick=function(p){var x,F=(x=this.data)==null?void 0:x.headerEndpoint;!_.mx(_.m9(p),this.hostElement,["BUTTON".toString()])&&F&&this.ytComponentBehavior.resolveCommand(F)};
_.R8.Object.defineProperties(oF.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 p;return((p=this.data)==null?void 0:p.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.data)==null?void 0:p.disableBottomDivider)||!((x=this.data)==null?0:x.title)}}});
var OE=oF;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],OE.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],OE.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],OE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],OE.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],OE.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],OE.prototype,"roundedContainer",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],OE.prototype,"amsterdamEnabled",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.k("design:type",Object)],OE.prototype,"hasTitle",void 0);
_.B([_.H({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.w("data.background"),_.k("design:type",Object),_.k("design:paramtypes",[])],OE.prototype,"background",null);_.B([_.H({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.w("data.titleStyle"),_.k("design:type",Object),_.k("design:paramtypes",[])],OE.prototype,"titleStyle",null);
_.B([_.H({type:_.S("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.w("data.titleStyle"),_.k("design:type",Object),_.k("design:paramtypes",[])],OE.prototype,"showLinkIcon",null);_.B([_.H(),_.k("design:type",String)],OE.prototype,"linkIcon",void 0);_.B([_.H({type:_.S("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],OE.prototype,"hideDivider",null);
_.B([_.H({selectorArgs:["data.dismissStateEntityKey"],selector:function(p,x){p=_.M4(p.entities,"dismissState",x);return(p==null?void 0:p.isDismissed)||(p==null?void 0:p.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(p==null?void 0:p.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.k("design:type",Object)],OE.prototype,"isDismissed",void 0);OE=_.B([_.L({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],OE);
_.P(OE,"ytd-info-panel-container-renderer",function(){if(iCl!==void 0)return iCl;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return iCl=p},{mode:1});var xTl;_.Ei("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var F4m=function(){var p=_.m.apply(this,arguments)||this;p.modernTypography=_.S("web_modern_typography");return p};
_.E(F4m,_.m);F4m.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
F4m.prototype.computeStyle=function(p){return p?p:""};
var j$=F4m;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],j$.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],j$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],j$.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.k("design:type",String)],j$.prototype,"titleStyle",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],j$.prototype,"modernTypography",void 0);j$=_.B([_.L({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],j$);
_.P(j$,"ytd-item-section-header-renderer",function(){if(xTl!==void 0)return xTl;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return xTl=p},{mode:1});var NNv;var hNZ,lll=function(){return hNZ!==void 0?hNZ:hNZ=document.createElement("template")};
document.head.appendChild(lll().content);var cUm;_.LY=new _.iE("VOTING_ANIMATION_CONTROLLER_TOKEN");var MNI=_.mO(function(p){var x=p.data;var F=_.oc(),N=_.oc();p=_.a(_.hu("VOTE_STATUS_NONE",void 0,"FVF7mc"));var h=p.next().value,c=p.next().value,M=_.MN(Hep,function(){var C;return(C=x())==null?void 0:C.entityKey}),f=_.S("web_enable_voting_animation")||_.S("enable_music_web_cairo_voting_animation");
_.J9(function(){var C;((C=x().initialState)==null?0:C.status)&&c(x().initialState.status)});
var K=function(){var C,X,Q=(X=(C=x().initialState)==null?void 0:C.votes)!=null?X:0,b;C=(b=x().initialState)==null?void 0:b.status;return C==="VOTE_STATUS_UPVOTED"?Q-1:C==="VOTE_STATUS_DOWNVOTED"?Q+1:Q},t=function(){return h()==="VOTE_STATUS_UPVOTED"?K()+1:h()==="VOTE_STATUS_DOWNVOTED"?K()-1:K()},d=function(C){var X=C?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
c(X);var Q=t(),b=_.J().resolve(_.Bw(_.LY)),A=M();A&&(C&&(A==null?0:A.upvoteDefaultButtonOnTap)?_.su(A.upvoteDefaultButtonOnTap,{form:{element:F.value},disableClickTracking:!0}):(A==null?0:A.upvoteToggledButtonOnTap)&&_.su(A.upvoteToggledButtonOnTap,{form:{element:F.value},disableClickTracking:!0}));var Y;C=(Y=A==null?void 0:A.enableOptimisticReordering)!=null?Y:x().enableOptimisticReordering;f&&b&&x().itemId&&C&&alB(b,x().itemId,Q,X)},v=function(C){var X=C?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
c(X);var Q=t(),b=_.J().resolve(_.Bw(_.LY)),A=M();A&&(C&&(A==null?0:A.downvoteDefaultButtonOnTap)?_.su(A.downvoteDefaultButtonOnTap,{form:{element:N.value},disableClickTracking:!0}):(A==null?0:A.downvoteToggledButtonOnTap)&&_.su(A.downvoteToggledButtonOnTap,{form:{element:N.value},disableClickTracking:!0}));var Y;C=(Y=A==null?void 0:A.enableOptimisticReordering)!=null?Y:x().enableOptimisticReordering;f&&b&&x().itemId&&C&&alB(b,x().itemId,Q,X)};
p={};p=_.$L("ytVotingViewModelVoteCount",(p.ytVotingViewModelVoteCountDisabled=function(){return x().isDisabled},p));
return _.Z("voting-view-model",{class:"ytVotingViewModelHost"},_.Z("div",{el:F},_.Z(_.Es,{data:function(){var C=_.r(x().upvoteButton,_.gR);return{toggleButtonViewModel:Object.assign({},C,{isToggled:h()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(C){return _.Z(_.QP,{data:C.data,
onToggle:d})}})),_.Z("div",{class:p},function(){var C,X,Q;
return h()==="VOTE_STATUS_UPVOTED"?(C=x().initialState)==null?void 0:C.compactVotesUpvoted:h()==="VOTE_STATUS_DOWNVOTED"?(X=x().initialState)==null?void 0:X.compactVotesDownvoted:(Q=x().initialState)==null?void 0:Q.compactVotes}),_.Z("div",{el:N},_.Z(_.Es,{data:function(){var C=_.r(x().downvoteButton,_.gR);
return{toggleButtonViewModel:Object.assign({},C,{isToggled:h()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(C){return _.Z(_.QP,{data:C.data,
onToggle:v})}})))},"yb");_.o7(_.mO(function(p){var x=p.data;return _.Z("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.Z("div",{class:_.$L("ytEngagementBarViewModelEngagementBarWrapper",p.className)},_.Z(_.Es,{data:function(){return x().actions}},{votingViewModel:MNI})))},"zb"),"engagement-bar-view-model",{props:{data:_.G2,
className:_.G2}});var DTB=function(){var p=_.m.apply(this,arguments)||this;p.amsterdamPostMvp=_.S("web_amsterdam_post_mvp_playlists");p.cairoCollabPlaylistPostMvp=_.S("web_collab_playlist_thumbnail_size");p.playlistVotingAnimationEnabled=_.S("web_enable_voting_animation");p.downloadProgress=0;p.transferState="TRANSFER_STATE_UNKNOWN";p.downloadState="DOWNLOAD_STATE_UNKNOWN";p.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";p.offlineVideoPolicyExpirationTimestamp=0;return p};
_.E(DTB,_.m);_.l=DTB.prototype;_.l.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.engagementBar":{id:"engagement-bar",mapping:{engagementBarViewModel:"engagement-bar-view-model"}}}};
_.l.canReorderChanged=function(){this.persistentDragHandle=_.S("kevlar_playlist_drag_handles")&&this.canReorder};
_.l.onDrag=function(){if(this.thumbnail){var p=_.n(this.thumbnail).querySelector("yt-image");p&&(p.shouldRenderLazy=!1)}};
_.l.onMenuOverlayChanged=function(p,x){this.menuOpened=x};
_.l.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.l.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.l.onContentsTap=function(p){var x,F=(x=this.data)==null?void 0:x.serviceEndpoints;if(F&&F.length===1&&_.r(F[0],dwp)&&!_.mx(_.m9(p),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(F[0]);else{var N;(x=(N=this.data)==null?void 0:N.navigationEndpoint)&&_.S("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?flJ(_.J().resolve(_.H$),x):(_.fb().playlistSuggestionsShelfActivation=
!0,_.K4C(_.J().resolve(_.H$),x)):x&&!_.mx(_.m9(p),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.S("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.hG(this.hostElement,"yt-navigate",{endpoint:x}):this.ytComponentBehavior.resolveCommand(x))}};
_.l.computeStyle=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.l.computeThumbnailWidth=function(p){return p==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.l.downloadStateChanged=function(){this.isDownloads=!1;if(this.entityInfo||this.downloadRenderData){if(!this.entityInfo&&this.downloadRenderData)this.downloadRenderData={shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};else{if(!this.entityInfo)return;this.downloadRenderData=X6E(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference,!0);this.isDownloads=Object.keys(this.downloadRenderData).length>0}this.set("data",
Object.assign({},this.data,this.downloadRenderData))}};
_.l.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.l.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.l.dataChanged=function(){if(this.data){var p,x,F,N=((p=this.downloadRenderData)==null?void 0:p.badges)&&((x=this.downloadRenderData)==null?void 0:x.badges)!==((F=this.data)==null?void 0:F.badges),h,c,M;p=((h=this.downloadRenderData)==null?void 0:h.thumbnailOverlays)&&((c=this.downloadRenderData)==null?void 0:c.thumbnailOverlays)!==((M=this.data)==null?void 0:M.thumbnailOverlays);(!this.downloadRenderData||N||p)&&this.downloadStateChanged()}};
_.l.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var p,x,F=(p=this.data.menu)==null?void 0:(x=p.menuRenderer)==null?void 0:x.items;if(F)for(p=_.a(F),x=p.next();!x.done;x=p.next())if(x=x.value,F=void 0,_.r((F=x.menuServiceItemRenderer)==null?void 0:F.serviceEndpoint,_.n4)){var N=F=void 0,h=void 0;x=(F=x)==null?void 0:(N=F.menuServiceItemRenderer)==null?void 0:(h=N.serviceEndpoint)==null?void 0:h.playlistEditEndpoint;h=N=void 0;if(F=(N=x)==null?void 0:(h=N.actions)==null?void 0:
h[0])N=void 0,F.setVideoId=(N=this.data)==null?void 0:N.setVideoId;h=N=F=void 0;if(x=(F=x)==null?void 0:(N=F.clientActions)==null?void 0:(h=N[0])==null?void 0:h.playlistRemoveVideosAction)F=void 0,x.setVideoIds=[(F=this.data)==null?void 0:F.setVideoId]}}};
_.R8.Object.defineProperties(DTB.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
var Pp=DTB;Pp.prototype.setVideoIdChanged=Pp.prototype.setVideoIdChanged;Pp.prototype.dataChanged=Pp.prototype.dataChanged;Pp.prototype.downloadStateChanged=Pp.prototype.downloadStateChanged;Pp.prototype.onMenuOverlayChanged=Pp.prototype.onMenuOverlayChanged;Pp.prototype.canReorderChanged=Pp.prototype.canReorderChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Pp.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],Pp.prototype,"ytdReduxBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Pp.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.HL),_.k("design:type",Object)],Pp.prototype,"ytdLockupBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],Pp.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Pp.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Pp.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Pp.prototype,"amsterdamPostMvp",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Pp.prototype,"canReorder",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Pp.prototype,"menuOpened",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Pp.prototype,"handleIsHovered",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Pp.prototype,"persistentDragHandle",void 0);
_.B([_.H(),_.k("design:type",Object)],Pp.prototype,"downloadRenderData",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.k("design:type",String)],Pp.prototype,"styleType",void 0);_.B([_.H({computed:"computeThumbnailWidth(data.style)"}),_.k("design:type",Number)],Pp.prototype,"thumbnailWidth",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Pp.prototype,"isDownloads",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Pp.prototype,"cairoCollabPlaylistPostMvp",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Pp.prototype,"playlistVotingAnimationEnabled",void 0);_.B([_.H({selector:wb,selectorArgs:["data.videoId"]}),_.k("design:type",Object)],Pp.prototype,"downloadProgress",void 0);_.B([_.H(),_.k("design:type",Number)],Pp.prototype,"relativeDateReference",void 0);
_.B([_.H({selector:_.uP,selectorArgs:["data.videoId"]}),_.k("design:type",Object)],Pp.prototype,"transferState",void 0);_.B([_.H({selector:BSZ,selectorArgs:["data.videoId"]}),_.k("design:type",Object)],Pp.prototype,"downloadState",void 0);_.B([_.H({selector:u8B,selectorArgs:["data.videoId"]}),_.k("design:type",Object)],Pp.prototype,"offlinePolicyAction",void 0);_.B([_.H({selector:YmJ,selectorArgs:["data.videoId"]}),_.k("design:type",Object)],Pp.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.B([_.H({selector:GNw,selectorArgs:["data.videoId"]}),_.k("design:type",Object)],Pp.prototype,"entityInfo",void 0);_.B([_.H({selector:_.bP}),_.k("design:type",Boolean)],Pp.prototype,"miniplayerIsActive",void 0);_.B([_.w("data"),_.k("design:type",String),_.k("design:paramtypes",[])],Pp.prototype,"playlistVideoId",null);_.B([_.Ff("#thumbnail"),_.k("design:type",Object)],Pp.prototype,"thumbnail",void 0);
_.B([_.cT("canReorder"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Pp.prototype,"canReorderChanged",null);_.B([_.V("yt-menu-overlay-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Boolean]),_.k("design:returntype")],Pp.prototype,"onMenuOverlayChanged",null);
_.B([_.cT("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Pp.prototype,"downloadStateChanged",null);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Pp.prototype,"dataChanged",null);
_.B([_.cT("data.setVideoId"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Pp.prototype,"setVideoIdChanged",null);Pp=_.B([_.L({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],Pp);
_.P(Pp,"ytd-playlist-video-renderer",function(){if(cUm!==void 0)return cUm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);p.content.insertBefore(lll().content.cloneNode(!0),p.content.firstChild);return cUm=p},{mode:1});var qjj;var Zjj=function(){return _.m.apply(this,arguments)||this};
_.E(Zjj,_.m);var TY=Zjj;_.B([_.H(),_.k("design:type",Object)],TY.prototype,"data",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],TY.prototype,"rendererBehavior",void 0);TY=_.B([_.L({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],TY);
_.P(TY,"ytd-premium-browse-footer-renderer",function(){if(qjj!==void 0)return qjj;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return qjj=p},{mode:1});var tNJ;var dTB=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return p};
_.E(dTB,_.m);_.l=dTB.prototype;_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.handleDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.l.computeHeaderLogoThumbnail=function(p,x){if(p)return x?p.darkLogo:p.lightLogo};
_.l.computeHeaderLogoHeight=function(p,x){var F,N,h;return(p=(F=this.computeHeaderLogoThumbnail(p,x))==null?void 0:(N=F.thumbnails)==null?void 0:(h=N[0])==null?void 0:h.height)&&p%31===0?"31":"24"};
_.l.computeHeaderLogoMarginBottom=function(p,x){return this.computeHeaderLogoHeight(p,x)==="24"?"0":"-7"};
var Bp=dTB;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Bp.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Bp.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Bp.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Boolean)],Bp.prototype,"isDarkTheme",void 0);_.B([_.H({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.k("design:type",Object)],Bp.prototype,"themeLogo",void 0);
_.B([_.H({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.k("design:type",String)],Bp.prototype,"logoHeight",void 0);_.B([_.H({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.k("design:type",String)],Bp.prototype,"logoMarginBottom",void 0);Bp=_.B([_.L({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Bp);
_.P(Bp,"ytd-primetime-promo-header-renderer",function(){if(tNJ!==void 0)return tNJ;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return tNJ=p},{mode:1});var vXJ;_.iK(Oem);var Rup;Rup=_.JR({flexibleActionsViewModel:IaB});_.RF=_.xp(kzz);_.iK(kzz);_.o7(_.RF,"yt-section-header-view-model",{props:{data:_.G2,className:_.G2,disableHorizontalPadding:_.G2,disableVerticalPadding:_.G2,forceSmallLayout:_.G2,useResponsiveLayout:_.G2,isOverlay:_.G2}});_.Ei("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var JU6=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return p};
_.E(JU6,_.m);_.l=JU6.prototype;_.l.attached=function(){this.requestElementsPerRow()};
_.l.configureRendererStamper=function(){return{"data.panels":{id:"panels",mapping:{richItemRenderer:"ytd-rich-item-renderer"}},"data.header":{id:"header-contents",mapping:{primetimePromoHeaderRenderer:"ytd-primetime-promo-header-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.sectionHeader":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.details":{id:"details-panel",mapping:{primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer"}}}};
_.l.onDataChange=function(){var p=this;_.jB(this,function(){p.updateItemVisibility()})};
_.l.onUpdateElementsPerRowAction=function(p){p&&this.elementsPerRow!==p&&(this.elementsPerRow=p,this.updateItemVisibility())};
_.l.updateItemVisibility=function(){var p=this;this.data&&this.data.panels&&_.n(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(x,F){x.hidden=F>p.elementsPerRow-1})};
_.l.requestElementsPerRow=function(){_.hG(this.hostElement,"yt-request-elements-per-row")};
var kT=JU6;kT.prototype.onDataChange=kT.prototype.onDataChange;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],kT.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],kT.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],kT.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],kT.prototype,"actionHandlerBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],kT.prototype,"data",void 0);_.B([_.H({value:3}),_.k("design:type",Number)],kT.prototype,"elementsPerRow",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kT.prototype,"onDataChange",null);kT=_.B([_.L({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],kT);
_.P(kT,"ytd-primetime-promo-renderer",function(){if(vXJ!==void 0)return vXJ;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return vXJ=p},{mode:1});var CjB;var UE=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return p};
_.E(UE,_.m);UE.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
UE.prototype.handleButtonRefreshAction=function(p){if(p=_.r(p,_.FZK))this.set("data.button",p.membershipButton),this.notifyPath("data.button")};
_.R8.Object.defineProperties(UE.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.data)==null?void 0:(x=p.avatars)==null?void 0:x.slice(0,8))||[]}}});
var iR=UE;_.B([_.H(),_.k("design:type",Object)],iR.prototype,"data",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],iR.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],iR.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],iR.prototype,"rendererBehavior",void 0);_.B([_.w("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],iR.prototype,"avatars",null);
iR=_.B([_.L({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],iR);
_.P(iR,"ytd-recognition-shelf-renderer",function(){if(CjB!==void 0)return CjB;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return CjB=p},{mode:1});var SjD;var rUB;var EXj=function(){var p=_.m.apply(this,arguments)||this;p.modernButtons=_.S("web_modern_buttons");return p};
_.E(EXj,_.m);_.l=EXj.prototype;
_.l.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",
videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.l.dataChanged=function(){this.collapsed=!0};
_.l.computeVisibleItems=function(p,x){return p!==void 0&&p.items?x?p.items.slice(0,this.data.collapsedItemCount):p.items:[]};
_.l.computeHideShowMore=function(p,x,F){return p>=x||!F};
_.l.computeHideShowAll=function(p,x,F){return!(p&&x)||F};
_.l.onMoreClick=function(){this.collapsed=!1};
_.R8.Object.defineProperties(EXj.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.S("use_modern_typography_on_search")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
var IF=EXj;IF.prototype.dataChanged=IF.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],IF.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],IF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],IF.prototype,"data",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],IF.prototype,"isSearch",void 0);
_.B([_.H({computed:"computeVisibleItems(data,collapsed)"}),_.k("design:type",Array)],IF.prototype,"visibleItems",void 0);_.B([_.H({value:!0}),_.k("design:type",Boolean)],IF.prototype,"collapsed",void 0);_.B([_.H({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.k("design:type",Boolean)],IF.prototype,"hideShowMore",void 0);
_.B([_.H({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.k("design:type",Boolean)],IF.prototype,"hideShowAll",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],IF.prototype,"modernButtons",void 0);_.B([_.w("isSearch"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],IF.prototype,"typographyBump",null);
_.B([_.w("isSearch"),_.k("design:type",String),_.k("design:paramtypes",[])],IF.prototype,"thumbnailWidth",null);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IF.prototype,"dataChanged",null);IF=_.B([_.L({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],IF);
_.P(IF,"ytd-vertical-list-renderer",function(){if(rUB!==void 0)return rUB;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return rUB=p},{mode:1});var X0Z=_.B$(["#"]);_.Ei("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var gXD=function(){var p=_.m.apply(this,arguments)||this;p.isConstrainedList=!1;p.modernTypography=_.S("web_modern_typography");return p};
_.E(gXD,_.m);_.l=gXD.prototype;
_.l.configureRendererStamper=function(){return{"data.content":{id:"contents",mapping:{gridRenderer:"ytd-grid-renderer",horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:118},properties:{isSearch:"[[isSearch]]"}},horizontalMovieListRenderer:{component:"yt-horizontal-list-renderer",params:{thumbnailHeight:302}},expandedShelfContentsRenderer:{component:"ytd-expanded-shelf-contents-renderer",properties:{isConstrainedList:"[[isConstrainedList]]"}},messageRenderer:{component:"ytd-message-renderer",
params:{shelf:!0}},verticalListRenderer:{component:"ytd-vertical-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.playAllButton":{id:"play-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",attributes:{condensed:!0},properties:{icon:"[[menuIcon]]"}}}},"data.sortFilter":{id:"sort-filter",
mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.l.computeThumbnailStyle=function(p){return p||""};
_.l.computePlaceAnnotationUnderTitle=function(){var p;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((p=this.data)==null?void 0:p.thumbnailStyle)||"")};
_.l.computeHrefWithDefault=function(p){return this.ytComponentBehavior.computeHref_(p)||_.Gl(X0Z)};
_.l.computeIsPromoShelf=function(p){var x;return(p=p==null?void 0:(x=p[0])==null?void 0:x.metadataBadgeRenderer)?p.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.l.computePlaceBadgeBesideTitle=function(p){var x;return(p==null?0:(x=p[0])==null?0:x.metadataBadgeRenderer)?!this.computeIsPromoShelf(p):!1};
_.l.computeMenuIcon=function(p){return this.computeIsPromoShelf(p)?"yt-icons:more_vert":"yt-icons:more"};
_.l.onDataChange=function(){var p,x;((p=this.data)==null?0:(x=p.content)==null?0:x.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.l.onLockupRequested=function(p){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&p.detail&&p.detail.videoIds){for(var x=this.data.content.gridRenderer.items,F=new Set,N=_.a(p.detail.videoIds),h=N.next();!h.done;h=N.next())F.add(h.value);p.detail.returnValue=x.filter(function(c){return c.gridVideoRenderer&&c.gridVideoRenderer.videoId&&F.has(c.gridVideoRenderer.videoId)}).map(function(c){return c.gridVideoRenderer})}};
_.l.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
var $T=gXD;$T.prototype.onLockupRequested=$T.prototype.onLockupRequested;$T.prototype.onDataChange=$T.prototype.onDataChange;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],$T.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],$T.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],$T.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],$T.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.n7),_.k("design:type",Object)],$T.prototype,"ironResizableBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],$T.prototype,"data",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],$T.prototype,"isSearch",void 0);_.B([_.H(),_.k("design:type",Object)],$T.prototype,"isConstrainedList",void 0);_.B([_.H({reflectToAttribute:!0,value:function(){return _.S("kevlar_fluid_dismiss")}}),
_.k("design:type",Boolean)],$T.prototype,"enableFluidDismiss",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.k("design:type",String)],$T.prototype,"thumbnailStyle",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$T.prototype,"modernTypography",void 0);_.B([_.H({computed:"computeMenuIcon(data.badges)"}),_.k("design:type",String)],$T.prototype,"menuIcon",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$T.prototype,"onDataChange",null);_.B([_.V("yt-lockup-requested"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],$T.prototype,"onLockupRequested",null);$T=_.B([_.L({is:"ytd-shelf-renderer",disableElementRegistration:!0})],$T);
_.P($T,"ytd-shelf-renderer",function(){if(SjD!==void 0)return SjD;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return SjD=p},{mode:1});var Qo6;var zNm=function(){return _.m.apply(this,arguments)||this};
_.E(zNm,_.m);zNm.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.R8.Object.defineProperties(zNm.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
var e$=zNm;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],e$.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],e$.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],e$.prototype,"data",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],e$.prototype,"isPlaylist",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],e$.prototype,"isClipList",void 0);
_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],e$.prototype,"isPlaylistPageWithFilters",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],e$.prototype,"hasTitle",null);_.B([_.H(),_.w("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.k("design:type",Object),_.k("design:paramtypes",[])],e$.prototype,"isRightAligned",null);
e$=_.B([_.L({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],e$);
_.P(e$,"ytd-sort-filter-header-renderer",function(){if(Qo6!==void 0)return Qo6;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Qo6=p},{mode:1});var som;var p9=function(){return _.m.apply(this,arguments)||this};
_.E(p9,_.m);
p9.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]]"}}}}}};
p9.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.R8.Object.defineProperties(p9.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.S("enable_creator_details_shelf_m2")){var p=[],x;((x=this.data)==null?0:x.creatorVideosButton)&&p.push(this.data.creatorVideosButton);var F;((F=this.data)==null?0:F.creatorAboutButton)&&p.push(this.data.creatorAboutButton);x=_.a(this.data.creatorCustomUrlButtons||[]);for(F=x.next();!F.done;F=x.next())p.push(F.value);return p}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.S("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
var xt=p9;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],xt.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],xt.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.$k.YtdHorizontalListBehavior),_.k("design:type",Object)],xt.prototype,"ytdHorizontalListBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],xt.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],xt.prototype,"engagementPanel",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],xt.prototype,"creatorCustomUrlButtons",null);_.B([_.H({reflectToAttribute:!0}),_.w("data","creatorCustomUrlButtons"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xt.prototype,"showCreatorCustomUrlButtons",null);
_.B([_.w("showCreatorCustomUrlButtons"),_.k("design:type",Number),_.k("design:paramtypes",[])],xt.prototype,"channelAvatarSize",null);xt=_.B([_.L({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],xt);
_.P(xt,"ytd-video-description-infocards-section-renderer",function(){if(som!==void 0)return som;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return som=p},{mode:_.UQ("kevlar_poly_si_batch_j067")?1:2});var nXk;var yUm=function(){return _.m.apply(this,arguments)||this};
_.E(yUm,_.m);var FF=yUm;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],FF.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],FF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],FF.prototype,"data",void 0);_.B([_.H({computed:"computeIcon_(data.infoIcon)"}),_.k("design:type",Object)],FF.prototype,"infoIcon",void 0);
FF=_.B([_.L({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],FF);
_.P(FF,"ytd-eom-settings-disclaimer-renderer",function(){if(nXk!==void 0)return nXk;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return nXk=p},{mode:1});var bjl;var AUB=function(){return _.m.apply(this,arguments)||this};
_.E(AUB,_.m);_.R8.Object.defineProperties(AUB.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.suppressPaddingDisclaimer)}}});
var NZ=AUB;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],NZ.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],NZ.prototype,"componentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],NZ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],NZ.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],NZ.prototype,"suppressPaddingDisclaimer",null);NZ=_.B([_.L({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],NZ);
_.P(NZ,"ytd-product-list-header-renderer",function(){if(bjl!==void 0)return bjl;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return bjl=p},{mode:1});var ukj;var Yjb=function(){return _.m.apply(this,arguments)||this};
_.E(Yjb,_.m);Yjb.prototype.computeThumbnailStyle=function(p){if(p&&(p=_.gX(p)))return"background-color:"+p+";"};
var hs=Yjb;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],hs.prototype,"rendererBehaviors",void 0);_.B([_.H(),_.k("design:type",Object)],hs.prototype,"data",void 0);hs=_.B([_.L({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],hs);
_.P(hs,"ytd-hashtag-tile-renderer",function(){if(ukj!==void 0)return ukj;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return ukj=p},{mode:1});var w0m;var GeB=function(){return _.m.apply(this,arguments)||this};
_.E(GeB,_.m);GeB.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
var ly=GeB;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ly.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ly.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ly.prototype,"data",void 0);ly=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],ly);
_.P(ly,"ytd-sponsorships-alert-renderer",function(){if(w0m!==void 0)return w0m;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return w0m=p},{mode:1});var VNb;var W4D=function(){return _.m.apply(this,arguments)||this};
_.E(W4D,_.m);W4D.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.R8.Object.defineProperties(W4D.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.S("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.S("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
var c3=W4D;_.B([_.u(_.bh),_.k("design:type",Object)],c3.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.u(_.HL),_.k("design:type",Object)],c3.prototype,"ytdLockupBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],c3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],c3.prototype,"ytRendererBehavior",void 0);_.B([_.H({selector:_.br}),_.k("design:type",Object)],c3.prototype,"isGridViewEnabled",void 0);
_.B([_.w("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],c3.prototype,"watchFeedBigThumbs",null);_.B([_.w("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.k("design:type",String),_.k("design:paramtypes",[])],c3.prototype,"thumbnailWidth",null);_.B([_.H(),_.k("design:type",Object)],c3.prototype,"data",void 0);c3=_.B([_.L({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],c3);
_.P(c3,"ytd-compact-movie-renderer",function(){if(VNb!==void 0)return VNb;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return VNb=p},{mode:1});var HjC;var mTk;var oXj=_.sd("HTML_DIR")==="rtl",OjC=function(){var p=_.m.apply(this,arguments)||this;p.engagementPanel=!1;p.maxLines=2;p.expandButtonOffset=0;p.showExpandButton=!1;p.isTruncated=!1;p.isExpanded=!1;p.currentSnippetType=2;p.alwaysShowExpandButton=!1;p.JSC$14130_lastWidth=NaN;p.observer=null;p.left=0;p.right=0;p.mid=0;p.longestSnippetLength=0;p.isFinalSnippet=!1;p.isFirstMutation=!1;p.isResetMutation=!1;p.OVERFLOW_THRESHOLD=5;return p};
_.E(OjC,_.m);_.l=OjC.prototype;_.l.onClick=function(p){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.mx(_.m9(p)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var x;if((x=window.getSelection())==null||!x.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.l.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.l.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.l.updateTextOnSnippetTypeChange=function(){_.S("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.l.setUpBinarySearch=function(p){p=p*this.maxLines/8;this.left=0;var x,F;this.right=Math.min(p*2,(F=(x=this.simpleText)==null?void 0:x.length)!=null?F:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.l.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.l.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.no(new _.qE("AttributedSnippet is empty when the description is not empty",this.text))};
_.l.mutationCallback=function(){if(this.observer!=null){var p=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var x=Math.floor(p*this.maxLines/8);this.setSnippetText(this.text,x);x!==0||this.attributedTextIsEmpty()||_.no(new _.qE("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;p=p*this.maxLines/8;this.left=0;var F;this.right=Math.min(p*2,(F=(x=this.simpleText)==null?void 0:x.length)!=null?F:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.l.mutationObserve=function(p){var x=this;this.observer||(this.observer=new MutationObserver(function(){x.mutationCallback()}));
this.observer.observe(p,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.l.attached=function(){var p=this;_.jB(this,function(){p.resize()})};
_.l.isExpandedChanged=function(){_.hG(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.l.updateSnippetContainerMaxHeight=function(){this.isExpanded?(this.snippetContainer.style.setProperty("overflow",""),this.snippetContainer.style.setProperty("max-height","")):(this.snippetContainer.style.setProperty("overflow","hidden"),this.snippetContainer.style.setProperty("max-height",2*this.maxLines+"rem"));this.resize(!0)};
_.l.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var p="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((oXj?"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",p);this.snippetContainer.style.setProperty("mask-image",
p)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(oXj?"right":"left",this.expandButtonOffset+"px")};
_.l.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.l.setSnippetText=function(p,x){p||(p={});if(_.uz(p)){var F=VJm(p,x);F.attachmentRuns||F.commandRuns||F.decorationRuns||F.styleRuns||F.alignment||F.lineBreakMode?this.attributedSnippetTextEl?(_.S("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=VJm(p,x),this.attributedSnippetTextEl.headerRuns=GSM(x,this.headerRuns)):this.attributedSnippetText={data:VJm(p,x),headerRuns:GSM(x,this.headerRuns)},this.currentSnippetType=0):_.no(new _.qE("Tried to set snippet text when HTML element was null",
p)):(this.plainSnippetText.textContent=yE(p.content||"",x),this.currentSnippetType=2)}else{a:{F=URr(p,x);if(F.runs){F=_.a(F.runs);for(var N=F.next();!N.done;N=F.next())if(N=N.value,N.bold||N.deemphasize||N.italics||N.strikethrough||N.textColor||N.navigationEndpoint||_.r(N,r$)){F=!0;break a}}F=!1}F?this.formattedSnippetText?(this.formattedSnippetText.text=URr(p,x),this.currentSnippetType=1):_.no(new _.qE("Tried to set snippet text when HTML element was null",p)):(this.plainSnippetText.textContent=
yE(_.Pi(p),x),this.currentSnippetType=2)}};
_.l.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.l.attributedTextIsEmpty=function(){var p=this.text;if(!_.uz(p))return!0;var x;return((x=p.content)==null?void 0:x.length)===0?!0:!1};
_.l.resize=function(p){if(this.snippetText){if(p===void 0?0:p)this.JSC$14130_lastWidth=NaN;var x=this.hostElement.offsetWidth;if(x!==this.JSC$14130_lastWidth&&!this.isExpanded)if(this.JSC$14130_lastWidth=x,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;p=0;var F,N;x=Math.min(x*this.maxLines/8*2,(N=(F=this.simpleText)==null?void 0:F.length)!=null?N:0)-1;for(F=0;p<=x;)N=Math.floor(p+(x-p)/2),this.setSnippetText(this.text,N),this.isOverflowing()?x=N-1:(p=N+1,F=N);this.setSnippetText(this.text,F);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.l.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.l.onExpandClick=function(){var p=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.S("inline_expander_reset_focus_killswitch")||_.jB(this,function(){var x;((x=_.J().resolve(_.Bw(_.dR)))==null?0:x.isKeyBoardInUse())&&_.Hu(p.hostElement)});
_.hG(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.l.onCollapseClick=function(){this.collapse();_.hG(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.l.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.l.computeExpandButtonOffset=function(){var p=this.expandSizer;return p?oXj?p.offsetParent?p.offsetParent.offsetWidth-p.offsetWidth-p.offsetLeft:0:p.offsetLeft:0};
_.R8.Object.defineProperties(OjC.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.uz(this.text)?this.text.content||"":_.Pi(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 _.uz(this.text)?!0:this.text&&_.S("web_replace_formatted_with_attributed_string")&&FrE(this.text)?(this.text=_.S6(this.text),!0):!1}},
showCollapseButton:{configurable:!0,enumerable:!0,get:function(){return!!this.collapseLabel&&this.isExpanded}},
useAttributedSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===0}},
useFormattedSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===1}},
usePlainSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===2}}});
var al=OjC;al.prototype.onTextChanged=al.prototype.onTextChanged;al.prototype.updateMaskAndExpandButtonOffset=al.prototype.updateMaskAndExpandButtonOffset;al.prototype.updateSnippetContainerMaxHeight=al.prototype.updateSnippetContainerMaxHeight;al.prototype.isExpandedChanged=al.prototype.isExpandedChanged;al.prototype.updateTextOnSnippetTypeChange=al.prototype.updateTextOnSnippetTypeChange;al.prototype.updateIsFormattedExpanded=al.prototype.updateIsFormattedExpanded;
al.prototype.updateIsAttributedExpanded=al.prototype.updateIsAttributedExpanded;al.prototype.onClick=al.prototype.onClick;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],al.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],al.prototype,"text",void 0);_.B([_.H(),_.k("design:type",Array)],al.prototype,"headerRuns",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],al.prototype,"engagementPanel",void 0);
_.B([_.H(),_.k("design:type",Object)],al.prototype,"maxLines",void 0);_.B([_.H(),_.k("design:type",String)],al.prototype,"expandLabel",void 0);_.B([_.H(),_.k("design:type",String)],al.prototype,"collapseLabel",void 0);_.B([_.H(),_.k("design:type",Object)],al.prototype,"expandCommand",void 0);_.B([_.H(),_.k("design:type",Object)],al.prototype,"expandButtonOffset",void 0);_.B([_.w("text"),_.k("design:type",String),_.k("design:paramtypes",[])],al.prototype,"simpleText",null);
_.B([_.V("click"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],al.prototype,"onClick",null);_.B([_.w("text","isExpanded"),_.k("design:type",Object),_.k("design:paramtypes",[])],al.prototype,"expandedText",null);_.B([_.w("headerRuns","isExpanded"),_.k("design:type",Object),_.k("design:paramtypes",[])],al.prototype,"expandedHeaderRuns",null);
_.B([_.w("text"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],al.prototype,"hasAttributedStringText",null);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],al.prototype,"showExpandButton",void 0);_.B([_.w("collapseLabel","isExpanded"),_.k("design:type",Object),_.k("design:paramtypes",[])],al.prototype,"showCollapseButton",null);_.B([_.H(),_.k("design:type",Object)],al.prototype,"isTruncated",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],al.prototype,"isExpanded",void 0);_.B([_.H(),_.k("design:type",Boolean)],al.prototype,"isAttributedExpanded",void 0);_.B([_.W("isExpanded","hasAttributedStringText"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],al.prototype,"updateIsAttributedExpanded",null);_.B([_.H(),_.k("design:type",Boolean)],al.prototype,"isFormattedExpanded",void 0);
_.B([_.W("isExpanded","hasAttributedStringText"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],al.prototype,"updateIsFormattedExpanded",null);_.B([_.H(),_.k("design:type",Number)],al.prototype,"currentSnippetType",void 0);_.B([_.w("currentSnippetType"),_.k("design:type",Object),_.k("design:paramtypes",[])],al.prototype,"useAttributedSnippet",null);
_.B([_.w("currentSnippetType"),_.k("design:type",Object),_.k("design:paramtypes",[])],al.prototype,"useFormattedSnippet",null);_.B([_.w("currentSnippetType"),_.k("design:type",Object),_.k("design:paramtypes",[])],al.prototype,"usePlainSnippet",null);_.B([_.H(),_.k("design:type",Object)],al.prototype,"alwaysShowExpandButton",void 0);_.B([_.W("currentSnippetType"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],al.prototype,"updateTextOnSnippetTypeChange",null);
_.B([_.H(),_.k("design:type",Object)],al.prototype,"attributedSnippetText",void 0);_.B([_.Ff("#snippet"),_.k("design:type",HTMLElement)],al.prototype,"snippetContainer",void 0);_.B([_.Ff("#snippet-text"),_.k("design:type",HTMLElement)],al.prototype,"snippetText",void 0);_.B([_.Ff("#plain-snippet-text"),_.k("design:type",HTMLElement)],al.prototype,"plainSnippetText",void 0);_.B([_.Ff("#formatted-snippet-text"),_.k("design:type",Object)],al.prototype,"formattedSnippetText",void 0);
_.B([_.Ff("#attributed-snippet-text"),_.k("design:type",Object)],al.prototype,"attributedSnippetTextEl",void 0);_.B([_.Ff("#expand"),_.k("design:type",HTMLElement)],al.prototype,"expandButton",void 0);_.B([_.Ff("#expand-sizer"),_.k("design:type",HTMLElement)],al.prototype,"expandSizer",void 0);_.B([_.cT("isExpanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],al.prototype,"isExpandedChanged",null);
_.B([_.W("isExpanded","maxLines"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],al.prototype,"updateSnippetContainerMaxHeight",null);_.B([_.W("isTruncated","showExpandButton","expandButtonOffset"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],al.prototype,"updateMaskAndExpandButtonOffset",null);
_.B([_.cT("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],al.prototype,"onTextChanged",null);al=_.B([_.L({is:"ytd-text-inline-expander",disableElementRegistration:!0})],al);
_.P(al,"ytd-text-inline-expander",function(){if(mTk===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);mTk=p}p=mTk;return p},{mode:2});var MZ=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return p};
_.E(MZ,_.m);MZ.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
MZ.prototype.handleUpdateDescriptionAction=function(p){if(p=_.r(p,_.TSv))if(p.attributedDescription)this.set("data.attributedDescriptionBodyText",p.attributedDescription);else if(p.description){var x;((x=this.data)==null?0:x.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.S6(p.description)):this.set("data.descriptionBodyText",p.description)}};
_.R8.Object.defineProperties(MZ.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var p,x;return!((p=this.data)==null||!p.attributedDescriptionBodyText)||!((x=this.data)==null||!x.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null?0:p.collapsedLineCount){var x;return(x=this.data)==null?void 0:x.collapsedLineCount}p=_.Ud("web_watch_description_collapsed_default_lines",12);if(_.S("ww_desc_line_page_size_ks"))return p;x=Math.round(_.tF().height*_.Ud("web_watch_description_screen_height_percentage",.5)/20);return Math.max(x,p)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return(F=(p=this.data)==null?void 0:p.descriptionBodyText)!=null?F:(x=this.data)==null?void 0:x.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.sourceAttributions}}});
var Dz=MZ;Dz.prototype.panelContentVisibleChanged=Dz.prototype.panelContentVisibleChanged;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Dz.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Dz.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Dz.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Dz.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Boolean)],Dz.prototype,"panelContentVisible",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Dz.prototype,"engagementPanel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Dz.prototype,"shortsPanel",void 0);_.B([_.Ff("#inline-expander"),_.k("design:type",Object)],Dz.prototype,"inlineExpander",void 0);
_.B([_.W("panelContentVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Dz.prototype,"panelContentVisibleChanged",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Dz.prototype,"hasDescriptionText",null);_.B([_.w("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],Dz.prototype,"collapsedLines",null);
_.B([_.w("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.k("design:type",Object),_.k("design:paramtypes",[])],Dz.prototype,"descriptionText",null);_.B([_.w("data","data.headerRuns"),_.k("design:type",Object),_.k("design:paramtypes",[])],Dz.prototype,"headerRuns",null);_.B([_.w("data","data.sourceAttributions"),_.k("design:type",Object),_.k("design:paramtypes",[])],Dz.prototype,"sourceAttributions",null);
Dz=_.B([_.L({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],Dz);
_.P(Dz,"ytd-expandable-video-description-body-renderer",function(){if(HjC!==void 0)return HjC;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return HjC=p},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var joC;var L4b=_.mO(function(p){var x=p.data;return _.Z("factoid-renderer",{class:"ytwFactoidRendererHost"},_.Z("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return x().accessibilityText}},_.Z("span",{class:"ytwFactoidRendererValue"},_.Z(_.KQ,{text:function(){return x().value}})),_.Z("span",{class:"ytwFactoidRendererLabel"},_.Z(_.KQ,{text:function(){return x().label}}))))},"Ab");_.o7(L4b,"factoid-renderer",{props:{data:_.G2}});_.o7(_.mO(function(p){var x=p.data;return _.Z("upload-time-factoid-renderer",null,_.Z(_.Es,{data:function(){return x().factoid}},{factoidRenderer:L4b}))},"Bb"),"upload-time-factoid-renderer",{props:{data:_.mJ}});_.o7(_.mO(function(p){var x=p.data;return _.Z("view-count-factoid-renderer",null,_.Z(_.Es,{data:function(){return x().factoid}},{factoidRenderer:L4b}))},"Cb"),"view-count-factoid-renderer",{props:{data:_.mJ}});var PjD=function(){var p=_.m.apply(this,arguments)||this;p.shortsPanel=!1;p.engagementPanel=!1;p.watchWhileSdp=_.S("shorts_desktop_watch_while_sdp");return p};
_.E(PjD,_.m);PjD.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"}}}}};
_.R8.Object.defineProperties(PjD.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var p;return(p=this.data)==null?void 0:p.channel}}});
var f9=PjD;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],f9.prototype,"componentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],f9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],f9.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],f9.prototype,"shortsPanel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],f9.prototype,"engagementPanel",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],f9.prototype,"watchWhileSdp",void 0);_.B([_.w("shortsPanel","engagementPanel","data.channel"),_.k("design:type",Object),_.k("design:paramtypes",[])],f9.prototype,"showChannelInfo",null);f9=_.B([_.L({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],f9);
_.P(f9,"ytd-video-description-header-renderer",function(){if(joC!==void 0)return joC;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return joC=p},{mode:1});var TNk;var BNm=function(){return _.m.apply(this,arguments)||this};
_.E(BNm,_.m);var K9=BNm;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],K9.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],K9.prototype,"ytRendererBehavior",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],K9.prototype,"noPadding",void 0);_.B([_.H(),_.k("design:type",Object)],K9.prototype,"data",void 0);K9=_.B([_.L({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],K9);
_.P(K9,"ytd-list-item-view-model",function(){if(TNk!==void 0)return TNk;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return TNk=p},{mode:1});var RNm;var keB;var UTv;var ijk;var qZ=function(){var p=_.m.apply(this,arguments)||this;p.adaptiveFullWidth=!1;p.modernButtons=_.S("web_modern_buttons");p.buttonOverrides={style:"call-to-action",type:"filled"};p.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return p};
_.E(qZ,_.m);qZ.prototype.handleSetTimestamp_=function(p){this.data&&this.data.shortUrl&&(_.n(this.hostElement).querySelector("#share-url").value=p.isSet?_.rM(this.data.shortUrl,"t",p.timestamp):this.data.shortUrl)};
qZ.prototype.handleSignalActionCopyShareUrl_=function(p,x){(_.S("killswitch_copy_link_target_check")||_.n(this.hostElement).querySelector("#copy-button")===x)&&this.copyUrlToClipboard()};
qZ.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.n(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
qZ.prototype.computeStyle_=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
var Zz=qZ;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Zz.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Zz.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.k("design:type",String)],Zz.prototype,"rendererStyle",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Zz.prototype,"adaptiveFullWidth",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Zz.prototype,"modernButtons",void 0);_.B([_.H(),_.k("design:type",Object)],Zz.prototype,"buttonOverrides",void 0);Zz=_.B([_.JZ({is:"yt-copy-link-renderer",disableElementRegistration:!0})],Zz);
_.P(Zz,"yt-copy-link-renderer",function(){if(ijk===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;UTv===void 0&&(UTv=document.createElement("template"));var N=UTv;F.call(x,N.content.cloneNode(!0),p.content.firstChild);ijk=p}p=ijk;return p},{mode:2});_.Ei("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var IlJ=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return p};
_.E(IlJ,_.m);_.l=IlJ.prototype;_.l.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.l.attached=function(){this.keyboardFocused=!1};
_.l.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var p=_.J().resolve(_.Bw(_.dR));p&&(this.keyboardFocused=p.isKeyBoardInUse())}};
_.l.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.l.computeDescription_=function(){if(this.data){if(this.data.toggled&&this.data.toggledDescription)return this.data.toggledDescription;if(!this.data.toggled&&this.data.description)return this.data.description}};
_.l.onChange_=function(){if(this.data){var p=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;p&&this.ytComponentBehavior.resolveCommand(p);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.l.handleUpdateToggleAction_=function(p){(p=_.r(p,t_j))&&this.data&&p.targetId==this.data.targetId&&this.set("data.toggled",p.toggled)};
_.l.toBoolean_=function(p){return!!p};
_.l.reset=function(){};
_.l.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Vx("data-changed",this.data))};
_.l.updateDataToggledFromBinding=function(p){this.set("data.toggled",p.detail.value)};
var ts=IlJ;ts.prototype.dataChangedForBinding=ts.prototype.dataChangedForBinding;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],ts.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ts.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],ts.prototype,"ytComponentBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ts.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ts.prototype,"data",void 0);_.B([_.H({computed:"computeDescription_(data.*)"}),_.k("design:type",Object)],ts.prototype,"description_",void 0);_.B([_.H({value:function(){return!!_.J().resolve(_.Bw(_.dR))&&_.S("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.k("design:type",Boolean)],ts.prototype,"useKeyboardFocused",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],ts.prototype,"keyboardFocused",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ts.prototype,"dataChangedForBinding",null);ts=_.B([_.JZ({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],ts);
_.P(ts,"yt-toggle-form-field-renderer",function(){if(keB===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;RNm===void 0&&(RNm=document.createElement("template"));var N=RNm;F.call(x,N.content.cloneNode(!0),p.content.firstChild);keB=p}p=keB;return p},{mode:2});var $Tm;var eNZ;var pMB=function(){var p=_.m.apply(this,arguments)||this;p.isDarkTheme=!1;p.isSearch=!1;p.darkerDarkTheme=_.S("web_darker_dark_theme");p.noTopMargin=_.S("kevlar_watch_no_top_margin");p.maskFade=_.S("web_watch_chips_mask_fade");p.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 p};
_.E(pMB,_.m);_.l=pMB.prototype;_.l.configureRendererStamper=function(){return{"data.chips":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer"}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.l.dataChanged=function(){var p=this.getSelectedIndex();if(p>0)this.selected=p;else{this.selected=0;var x,F;(x=this.ytScrollableChipCloudBehavior)==null||(F=x.reset)==null||F.call(x)}};
_.l.getSelectedIndex=function(){var p;if((p=this.data)==null||!p.chips)return-1;p=-1;for(var x,F=0;F<((x=this.data)==null?void 0:x.chips.length);F++){var N=void 0,h=void 0;if((N=this.data)==null?0:(h=N.chips[F].chipCloudChipRenderer)==null?0:h.isSelected){p=F;break}}return p};
_.l.onResize=function(){var p=this.ytScrollableChipCloudBehavior;_.jB(p,p.setContainerWidthDiff);oq(this.ytScrollableChipCloudBehavior)};
_.l.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.l.handleRelatedChipCommand=function(p,x){p=this.JSC$14157_chipsSelector.indexOf(x);p!==-1&&this.JSC$14157_chipsSelector.selectIndex(p)};
_.l.handleChipCloudChipSelectAction=function(p){p=this.JSC$14157_chipsSelector.indexOf(p);p>-1&&this.JSC$14157_chipsSelector.selectIndex(p)};
_.l.handleChipCloudChipDeselectAction=function(){var p=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14157_chipsSelector&&((p==null?0:p.continuationCommand)?_.fc(this.hostElement,[p]):(p==null?0:p.searchEndpoint)?this.ytComponentBehavior.resolveCommand(p):p&&_.Kc(this.hostElement,[p],this.hostElement),this.JSC$14157_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.l.updateSelectedFromBinding=function(p){this.selected=p.detail.value};
var d3=pMB;d3.prototype.onResize=d3.prototype.onResize;d3.prototype.dataChanged=d3.prototype.dataChanged;d3.prototype.isSearchChanged=d3.prototype.isSearchChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],d3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],d3.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],d3.prototype,"actionHandlerBehavior",void 0);
_.B([_.u(_.n7),_.k("design:type",Object)],d3.prototype,"ironResizableBehavior",void 0);_.B([_.u(),_.k("design:type",OO)],d3.prototype,"ytScrollableChipCloudBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],d3.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],d3.prototype,"data",void 0);_.B([_.H({value:0}),_.k("design:type",Number)],d3.prototype,"selected",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],d3.prototype,"isDarkTheme",void 0);_.B([_.H({value:160}),_.k("design:type",Number)],d3.prototype,"scrollDistance",void 0);_.B([_.H(),_.k("design:type",Object)],d3.prototype,"isSearch",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],d3.prototype,"darkerDarkTheme",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],d3.prototype,"noTopMargin",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],d3.prototype,"maskFade",void 0);_.B([_.Ff("#chips"),_.k("design:type",Object)],d3.prototype,"JSC$14157_chipsSelector",void 0);_.B([_.W("isSearch"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],d3.prototype,"isSearchChanged",null);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],d3.prototype,"dataChanged",null);
_.B([_.V("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],d3.prototype,"onResize",null);d3=_.B([_.JZ({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],d3);
_.P(d3,"yt-chip-cloud-renderer",function(){if(eNZ===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;$Tm===void 0&&($Tm=document.createElement("template"));var N=$Tm;F.call(x,N.content.cloneNode(!0),p.content.firstChild);eNZ=p}p=eNZ;return p},{mode:2});var x6v,FSB=function(){return x6v!==void 0?x6v:x6v=document.createElement("template")};
document.head.appendChild(FSB().content);var NpJ;var hBn=document.head,lsZ=hBn.appendChild,cOv;if(NpJ===void 0){var asb=document.createElement("template");_.g(asb,"");asb.content.insertBefore(FSB().content.cloneNode(!0),asb.content.firstChild);NpJ=asb}cOv=NpJ;lsZ.call(hBn,cOv.content);var MbD=_.mO(function(p){var x=p.data;return _.Z("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.Z("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.Z("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.Z(_.D9,{cond:function(){return _.Us(x().image)},
then:function(F){return _.Z("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.Z(_.VE,{data:F,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.Z("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.Z(_.KQ,{text:function(){return x().title}})),_.Z("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.Z(_.KQ,{text:function(){return x().subtitle}})))),_.Z(_.D9,{cond:function(){var F;
return(F=x())==null?void 0:F.hasBottomDivider},
then:function(){return _.Z("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Db");var D6B=_.mO(function(p){var x=p.data;return _.Z("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.Z("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.Z(_.Es,{data:function(){var F;return(F=x().offerPlanDetailsItem)!=null?F:[]}},{offerPlanDetailsItemViewModel:function(F){return _.Z("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.Z(MbD,{data:F.data}))}})),_.Z("div",null,_.Z(_.D9,{cond:function(){return x().hasBottomDivider},
then:function(){return _.Z("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.Z("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.Z("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.Z("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.Z("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Eb");var fsv=_.mO(function(p){var x=p.data;p=_.a(_.hu(!1,void 0,"SpEGQd"));var F=p.next().value,N=p.next().value,h=_.h0(function(){N(!F());return!1}),c=function(){var M;
return(M=x().offerPlanDetailsContainer)!=null?M:[]};
return _.Z("lp-complex-offer-card-details-view-model",null,_.Z("div",null,_.Z(_.D9,{cond:function(){return F()},
then:function(){return _.Z("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.Z("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":h,"aria-expanded":F},_.Z(_.KQ,{text:function(){return x().expandedTitle}})),_.Z("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.Z(_.Es,{data:c},{offerPlanDetailsContainerViewModel:function(M){return _.Z("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.Z(D6B,{data:M.data}))}})),_.Z("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.Z(_.KQ,{text:function(){return x().legalText}})))},
else:function(){return _.Z("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":h,"aria-expanded":F},_.Z(_.KQ,{text:function(){return x().collapsedTitle}}),_.Z("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.Z(_.DS,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Fb");var KSK=_.mO(function(p){var x=p.data;return _.Z("lp-complex-offer-card-option-view-model",null,_.Z(_.D9,{cond:function(){return x().primaryButton},
then:function(){return _.Z("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.Z(_.Es,{data:function(){return x().primaryButton}},{buttonViewModel:function(F){return _.Z(_.nV,{data:F.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}}))},"Gb");var qFI=_.mO(function(p){var x=p.data;var F=function(){var c;return((c=x())==null?void 0:c.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
p={};var N={},h={};return _.Z("ytm-lp-complex-offer-card-view-model",null,_.Z("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.Z("div",{class:_.$L((p.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=F,p),"ytmLpComplexOfferCardViewModelCardContainer")},_.Z(_.D9,{cond:function(){var c;return(c=x())==null?void 0:c.bannerText},
then:function(){return _.Z("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.Z("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.Z(_.KQ,{text:function(){return x().bannerText}})))}}),_.Z(_.D9,{cond:function(){return _.Us(x().logo)},
then:function(c){var M={};return _.Z("div",{class:_.$L((M.ytmLpComplexOfferCardViewModelLogoAlignLeft=F,M),"ytmLpComplexOfferCardViewModelLogo")},_.Z(_.VE,{data:c,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.Z("div",{class:_.$L((N.ytmLpComplexOfferCardViewModelTitleAlignLeft=F,N),"ytmLpComplexOfferCardViewModelTitle")},_.Z(_.KQ,{text:function(){return x().title}})),_.Z(_.D9,{cond:function(){var c;
return(c=x())==null?void 0:c.subtitle},
then:function(){var c={};return _.Z("div",{class:_.$L((c.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=F,c),"ytmLpComplexOfferCardViewModelSubtitle")},_.Z(_.KQ,{text:function(){return x().subtitle}}))}}),_.Z(_.D9,{cond:function(){return x().planPricingPrimary},
then:function(){return _.Z("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.Z(_.KQ,{text:function(){return x().planPricingPrimary}}))}}),_.Z(_.D9,{cond:function(){return x().planPricingSecondary},
then:function(){return _.Z("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.Z(_.KQ,{text:function(){return x().planPricingSecondary}}))}}),_.Z(_.D9,{cond:function(){return x().purchaseButton},
then:function(){return _.Z("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.Z(_.Es,{data:function(){return x().purchaseButton}},{buttonViewModel:function(c){return _.Z(_.nV,{data:c.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.Z(_.D9,{cond:function(){var c;
return(c=x())==null?void 0:c.offerOptions},
then:function(){return _.Z("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.Z(_.Es,{data:function(){return x().offerOptions}},{lpComplexOfferCardOptionViewModel:KSK}))}}),_.Z("div",{class:_.$L((h.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=F,h),"ytmLpComplexOfferCardViewModelLegalText")},_.Z(_.KQ,{text:function(){return x().legalText}})),_.Z(_.D9,{cond:function(){var c;
return(c=x())==null?void 0:c.offerCardDetails},
then:function(){return _.Z("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.Z(_.Es,{data:function(){return x().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:fsv}))}}))))},"Hb");var Zkm=_.mO(function(p){var x=p.data;var F=function(){var M;return((M=x())==null?void 0:M.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
p={};var N={},h={},c={};return _.Z("ytm-lp-complex-offer-card-section-view-model",null,_.Z("div",{class:_.$L("ytmLpComplexOfferCardSectionViewModelHost")},_.Z("div",{class:_.$L((p.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=F,p),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.Z("div",{class:_.$L((N.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=F,N),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.Z("h2",{class:_.$L((h.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
F,h),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.Z(_.KQ,{text:function(){return x().title}}))),_.Z(_.D9,{cond:function(){var M;
return(M=x())==null?void 0:M.subtitle},
then:function(){var M={},f={};return _.Z("div",{class:_.$L((M.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=F,M),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.Z("div",{class:_.$L((f.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=F,f),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.Z(_.KQ,{text:function(){return x().subtitle}})))}}),_.Z("div",{class:_.$L((c.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=F,c),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.Z(_.Es,{data:function(){var M;
return(M=x().offerPlans)!=null?M:[]}},{lpComplexOfferCardViewModel:function(M){return _.Z("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.Z(qFI,{data:M.data}))}})))))},"Ib");_.AI=Hgb.getInstance();var tbb=_.mO(function(p){return _.Z("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":p.shouldAriaHideContent},_.Z("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:p.questionId},_.Z(_.KQ,{text:p.question})))},"Jb"),d6l=_.mO(function(p){var x=p.data;
var F=p.themeOverride;p=_.a(_.hu(!1,void 0,"ljTVPd"));var N=p.next().value,h=p.next().value;p=_.h0(function(){h(!N());return!1});
var c=function(){return N()?"EXPAND_LESS":"EXPAND_MORE"},M=("faq-container"+_.bW(_.AI)).toString(),f="faq-question-and-answers-section-question"+_.bW(_.AI),K={},t={};
return _.Z("faq-entry-view-model-c3",null,_.Z("div",{class:_.$L("yt-lp-faq-entry-view-model",(K["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return F==null?void 0:F().useDarkTheme},K))},_.Z("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":p,role:"button","aria-expanded":N,"aria-labelledby":f.toString(),"tab-index":"0"},_.Z(tbb,{question:function(){return x().question},
questionId:f,shouldAriaHideContent:!0}),_.Z(_.D9,{cond:function(){return N()!==void 0},
then:function(){return _.Z("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.Z(_.DS,{icon:c,ariaHidden:!0}),_.Z("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.Z("div",{class:_.$L("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(t["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!N()},t))},_.Z("div",{id:M},_.Z(_.ft,{each:function(){return x().answers||[]}},function(d){return _.Z("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.Z(_.KQ,{text:d}))})))))},"Kb");
d6l.idomCompat=!0;var vDK=_.mO(function(p){var x=p.data;var F=p.themeOverride;p={};return _.Z("lp-faq-section-view-model-c3",null,_.Z("div",{class:_.$L("yt-lp-faq-section-view-model",(p["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return x().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},p["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(F==null||!F().useDarkTheme)},p))},_.Z("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.Z(_.D9,{cond:function(){return x().header},
then:function(N){return _.Z("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.Z(_.KQ,{text:N}))}}),_.Z("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.Z(_.Es,{data:function(){return x().faqs}},{faqEntryViewModel:function(N){return _.Z(d6l,{data:N.data,
themeOverride:F})}})),_.Z("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.Z(_.ft,{each:function(){return x().footers||[]}},function(N){return _.Z(_.KQ,{text:N})})),_.Z(_.D9,{cond:function(){return x().legal},
then:function(N){return _.Z("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.Z(_.KQ,{text:N}))}}))))},"Lb");
vDK.idomCompat=!0;var JOv=_.mO(function(p){var x=p.data;var F=p.themeOverride;_.J9(function(){var M=x().gtmId;M&&_.tA(M,_.sd("GL",""))});
var N={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var M,f,K;return(K=(M=x().logo)==null?void 0:(f=M.accessibilityData)==null?void 0:f.label)!=null?K:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},h=_.J().resolve(_.Bw(_.AD)),c=function(){return h&&h()||(F==null?void 0:F().useDarkTheme)};
return _.Z("lp-header-section-view-model",null,_.Z("div",{class:function(){var M=x().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",f=x().marginType==="LP_SECTION_MARGIN_TYPE_TOP",K=F==null?void 0:F().useDarkTheme,t=["lp-header-section-view-model"];M&&t.push("lp-header-section-view-model--ptc-layout-type");f&&t.push("lp-header-section-view-model__lp-header-section-margin");K&&t.push("lp-header-section-view-model--premium-force-dark-mode");return t.join(" ")}},_.Z(_.D9,{cond:function(){return x().logo},
then:function(){return _.Z("div",null,_.Z(_.D9,{cond:c,then:function(){return _.Z(_.D9,{cond:function(){var M;return(M=x().logo)==null?void 0:M.imageDark},
then:function(M){return _.Z(_.VE,Object.assign({},{data:M},N))}})},
else:function(){return _.Z(_.D9,{cond:function(){var M;return(M=x().logo)==null?void 0:M.imageLight},
then:function(M){return _.Z(_.VE,Object.assign({},{data:M},N))}})}}))}}),_.Z(_.D9,{cond:function(){return x().title},
then:function(M){return _.Z("div",{class:"lp-header-section-view-model__lp-header-title"},_.Z(_.KQ,{text:M}))}}),_.Z("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.Z(_.D9,{cond:function(){return x().subtitles},
then:function(M){return _.Z(_.ft,{each:M},function(f){return _.Z("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.Z(_.KQ,{text:f}))})}})),_.Z(_.D9,{cond:function(){return x().additionalInfo},
then:function(M){return _.Z("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.Z(_.KQ,{text:M}))}}),_.Z("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.Z(_.D9,{cond:function(){return x().primaryButton},
then:function(M){return _.Z("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.Z(_.Es,{data:M},{buttonViewModel:_.nV}))}}),_.Z(_.D9,{cond:function(){return x().secondaryButton},
then:function(M){return _.Z("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.Z(_.Es,{data:M},{buttonViewModel:_.nV}))}})),_.Z(_.D9,{cond:function(){return x().otherOffersInfo},
then:function(M){return _.Z("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.Z(_.KQ,{text:M}))}}),_.Z("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.Z(_.D9,{cond:function(){return x().billingInfo},
then:function(M){return _.Z(_.ft,{each:M},function(f){return _.Z("div",null,_.Z(_.KQ,{text:f}))})}}))))},"Mb");
JOv.idomCompat=!0;var CFb=_.mO(function(p){var x=p.data;var F=_.GD(p.themeOverride,{useDarkTheme:!1});p={};p=_.$L("ytm-lp-headline-section-view-model",(p["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return F().useDarkTheme},p));
return _.Z("lp-headline-section-view-model",null,_.Z("div",{class:p},_.Z("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.Z(_.KQ,{text:function(){return x().title}})),_.Z(_.D9,{cond:function(){return x().subtitle},
then:function(N){return _.Z("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.Z(_.KQ,{text:N}))}})))},"Nb");var SFK=_.mO(function(p){var x=p.data;var F=p.themeOverride;var N=_.J().resolve(_.Bw(_.AD)),h=function(){return N&&N()||(F==null?void 0:F().useDarkTheme)},c=function(){var t,d;
var v=h()?(t=x().textBackgroundImage)==null?void 0:t.imageDark:(d=x().textBackgroundImage)==null?void 0:d.imageLight;return hYr((v==null?void 0:v.sources)||[])},M=function(){var t,d;
return h()?(t=x().featureImage)==null?void 0:t.imageDark:(d=x().featureImage)==null?void 0:d.imageLight},f=function(){return x().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},K=function(){var t,d;
return h()?(t=x().logo)==null?void 0:t.imageDark:(d=x().logo)==null?void 0:d.imageLight};
return _.Z("ytm-lp-large-feature-section-view-model",null,_.Z("div",{class:function(){var t=x().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",d=x().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",v=(x().index||0)%2===1,C=F==null?void 0:F().useDarkTheme,X=["yt-lp-large-feature-section-view-model"];t?X.push("yt-lp-large-feature-section-view-model--music-feature-type"):d?X.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):v||X.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
C&&X.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return X.join(" ")}},_.Z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.Z(_.D9,{cond:M,
then:function(){return _.Z(_.VE,{data:function(){return M()},
alt:function(){var t,d,v;return(v=(t=x().featureImage)==null?void 0:(d=t.accessibilityData)==null?void 0:d.label)!=null?v:""},
contentMode:f})}})),_.Z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var t;return((t=c())==null?0:t.url)?"background-image: url("+_.ug(c().url)+");":""}},_.Z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.Z(_.D9,{cond:K,
then:function(){return _.Z(_.VE,{data:function(){return K()},
alt:function(){var t,d,v;return(v=(t=x().logo)==null?void 0:(d=t.accessibilityData)==null?void 0:d.label)!=null?v:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.Z(_.D9,{cond:function(){return x().eyebrowText},
then:function(){return _.Z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.Z(_.KQ,{text:function(){return x().eyebrowText}}))}}),_.Z(_.D9,{cond:function(){return x().title},
then:function(){return _.Z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.Z(_.KQ,{text:function(){return x().title}}))}}),_.Z(_.D9,{cond:function(){return x().subtitles},
then:function(){return _.Z("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.Z(_.ft,{each:function(){return x().subtitles||[]}},function(t){return _.Z(_.KQ,{text:t})}))}})))))},"Ob");
SFK.idomCompat=!0;var rOj=_.mO(function(p){return _.Z("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.Z("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.Z(_.DS,{icon:function(){var x;return(x=p.data())==null?void 0:x.iconType},
className:function(){var x;return((x=p.data())==null?void 0:x.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.Z("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.Z(_.KQ,{text:function(){var x;
return(x=p.data())==null?void 0:x.text}}))))},"Pb");var EDJ=_.mO(function(p){p=_.Vg(p,{config:void 0,themeOverride:void 0});var x=p.data,F=p.config,N=p.themeOverride;p={};p=_.$L("ytm-lp-offer-card-option-view-model",(p["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var K;return(K=N())==null?void 0:K.useDarkTheme},p));
var h=_.h0(function(){var K,t;(K=F())==null||(t=K.handleRadioButtonClick)==null||t.call(K,x());return!1}),c=function(){var K;
return(K=F())==null?void 0:K.shouldDisplayRadioButton},M=_.h0(function(){if(c()){var K,t;
(K=F())==null||(t=K.handleRadioButtonClick)==null||t.call(K,x())}return!1}),f=function(){var K;
return(K=x().featureListItems)!=null?K:[]};
return _.Z("ytm-lp-offer-card-option-view-model",null,_.Z("div",{class:p,"on:click":M},_.Z(_.D9,{cond:c,then:function(){return _.Z("div",null,_.Z("input",{type:"radio","on:click":h,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var K;return!((K=F())==null||!K.isOptionSelected)}}))}}),_.Z("div",null,_.Z("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.Z(_.KQ,{text:function(){return x().eyebrowText}})),_.Z("div",{class:"ytm-lp-offer-card-option-view-model__title"},
_.Z(_.KQ,{text:function(){return x().title}})),_.Z("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},_.Z(_.KQ,{text:function(){return x().subtitle}})),_.Z(_.D9,{cond:function(){return f().length>0},
then:function(){return _.Z("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.Z(_.Es,{data:f},{lpFeatureListItemViewModel:rOj}))}}),_.Z("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.Z(_.KQ,{text:function(){return x().description}})))))},"Qb");
EDJ.idomCompat=!0;var XMC=_.mO(function(p){var x=p.data;var F=p.themeOverride;p=_.a(_.ct(function(){var c,M=(c=x().offerOptions)==null?void 0:c[0];return _.r(M,EaZ)||{}}));
var N=p.next().value,h=p.next().value;p={};return _.Z("ytm-lp-offer-card-view-model",null,_.Z("div",{class:_.$L("ytm-lp-offer-card-view-model",(p["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(F==null||!F().useDarkTheme)},p))},_.Z("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.Z(_.D9,{cond:function(){return x().titleIconType},
then:function(){return _.Z("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.Z(_.DS,{icon:function(){var c;return((c=x().titleIconType)==null?void 0:c.toString())||""}}))}}),_.Z("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.Z(_.KQ,{text:function(){return x().title}})),_.Z(_.Es,{data:function(){return x().titleBadge}},{badgeViewModel:function(c){return _.Z("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.Z(_.M5,{data:c.data}))}})),_.Z("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.Z(_.Es,{data:function(){return x().offerOptions}},{lpOfferCardOptionViewModel:function(c){var M=c.data;
return _.Z(_.TG,null,_.Z("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.Z(EDJ,{data:M,config:function(){var f;return{shouldDisplayRadioButton:(x().offerOptions||[]).length>1,isOptionSelected:M().id===((f=N())==null?void 0:f.id),handleRadioButtonClick:function(K){return void h(K)}}},
themeOverride:F}))}})),_.Z("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.Z(_.Es,{data:function(){var c;
return(c=N())==null?void 0:c.purchaseButtonOverride}},{buttonViewModel:_.nV}))))},"Rb");
XMC.idomCompat=!0;var gDB=_.mO(function(p){var x=p.data;var F=p.themeOverride;p={};p=_.$L("ytm-lp-offer-card-section-view-model",(p["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var N;return F==null?void 0:(N=F())==null?void 0:N.useDarkTheme},p));
return _.Z("ytm-lp-offer-card-section-view-model",null,_.Z("div",{class:p},_.Z(_.D9,{cond:function(){return x().title!==void 0},
then:function(){return _.Z("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.Z("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.Z(_.KQ,{text:function(){return x().title}})),_.Z(_.D9,{cond:function(){return x().subtitle},
then:function(){return _.Z("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.Z(_.KQ,{text:function(){return x().subtitle}}))}}))}}),_.Z("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.Z(_.Es,{data:function(){return x().offerCards}},{lpOfferCardViewModel:function(N){return _.Z("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.Z(XMC,{data:N.data,
themeOverride:F}))}})),_.Z(_.D9,{cond:function(){return x().footer},
then:function(){return _.Z("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.Z(_.KQ,{text:function(){return x().footer}}))}})))},"Sb");var QQC=_.mO(function(p){var x=p.data;return _.Z("lp-offer-table-cell-content-view-model",null,_.Z("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.Z(_.q$,null,_.Z(_.Kt,{when:function(){return x().title}},function(){return _.Z(_.KQ,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return x().title}})}),_.Z(_.Kt,{when:function(){return x().subTitle}},function(){return _.Z(_.KQ,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return x().subTitle}})}),_.Z(_.Kt,{when:function(){return x().featureDescription}},function(){return _.Z(_.KQ,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return x().featureDescription}})}),_.Z(_.Kt,{when:function(){return x().description}},function(){return _.Z(_.KQ,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return x().description}})}),_.Z(_.Kt,{when:function(){return x().iconType}},function(){return _.Z("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.Z(_.DS,{icon:function(){return x().iconType.toString()}}))}),_.Z(_.Kt,{when:function(){return x().purchaseButton}},function(){return _.Z(_.Es,{data:function(){return x().purchaseButton}},{buttonViewModel:function(F){return _.Z("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.Z(_.nV,{data:F.data}))}})}),_.Z(_.Kt,{when:function(){return x().note}},function(){return _.Z(_.KQ,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return x().note}})}),_.Z(_.Kt,{when:function(){return x().featureDetail}},function(){return _.Z(_.KQ,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return x().featureDetail}})}),_.Z(_.Kt,{when:function(){return x().badge}},function(){return _.Z(_.Es,{data:function(){return x().badge}},{badgeViewModel:_.M5})}))))},"Tb");
QQC.idomCompat=!0;var zBZ=_.mO(function(p){var x=p.data;return _.Z("lp-offer-table-cell-view-model",null,_.Z("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(x().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;"}}},_.Z(_.Es,{data:function(){return x().contents}},{lpOfferTableCellContentViewModel:QQC})))},
"Ub");
zBZ.idomCompat=!0;var sQ6=_.mO(function(p){var x=p.data;var F=p.lpTableIsFirstRow;var N=p.lpTableIsLastRow;var h=function(){return(F==null?0:F())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},c=function(){return(F==null?0:F())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(N==null?0:N())?"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 _.Z("ytm-lp-offer-table-row-view-model",null,_.Z("div",{class:"yt-lp-offer-table-row-view-model"},_.Z(_.Es,{data:function(){return x().rowHeaderCell}},{lpOfferTableCellViewModel:function(M){return _.Z("div",{class:h},_.Z(zBZ,{data:M.data}))}}),_.Z(_.Es,{data:function(){return x().contentCells}},{lpOfferTableCellViewModel:function(M){return _.Z("div",{class:c},_.Z(zBZ,{data:M.data}))}})))},"Vb");
sQ6.idomCompat=!0;var nDJ=_.mO(function(p){var x=p.data;var F=p.themeOverride;var N=_.J().resolve(_.Bw(_.AD)),h=function(){return _.r(x().logo,rAm)||{}};
p={};return _.Z("ytm-lp-offer-table-section-view-model",null,_.Z("div",{class:"yt-lp-offer-table-view-model"},_.Z(_.D9,{cond:function(){var c,M;return N&&N()||(F==null?0:F().useDarkTheme)?(c=h())==null?void 0:c.imageDark:(M=h())==null?void 0:M.imageLight},
then:function(c){return _.Z(_.VE,{data:c,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var M,f,K;return(K=(M=h())==null?void 0:(f=M.accessibilityData)==null?void 0:f.label)!=null?K:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.Z("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.Z(_.KQ,{text:function(){return x().title}})),_.Z("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.Z(_.KQ,{text:function(){return x().subtitle}})),_.Z(_.D9,{cond:function(){return x().disclaimers},
then:function(c){return _.Z("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.Z(_.ft,{each:c},function(M){return _.Z("div",null,_.Z(_.KQ,{text:M}))}))}}),_.Z("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.Z(_.Es,{data:function(){return x().rows}},{lpOfferTableRowViewModel:function(c,M){return _.Z(sQ6,{data:c.data,
lpTableIsFirstRow:function(){return M()===0},
lpTableIsLastRow:function(){return M()===x().rows.length-1}})}})),_.Z("div",{class:_.$L((p["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return x().hasFooterBackground},p))},_.Z(_.D9,{cond:function(){return x().footer},
then:function(){return _.Z("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.Z(_.KQ,{text:function(){return x().footer}}))}}),_.Z(_.D9,{cond:function(){return x().footerTitle},
then:function(){return _.Z("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.Z(_.KQ,{text:function(){return x().footerTitle}}))}}),_.Z(_.D9,{cond:function(){return x().footerDescription},
then:function(){return _.Z("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.Z(_.KQ,{text:function(){return x().footerDescription}}))}}))))},"Wb");
nDJ.idomCompat=!0;var yOb=_.mO(function(p){var x=p.data;var F=p.themeOverride;var N=_.J().resolve(_.Bw(_.AD)),h=function(){var f;return F==null?void 0:(f=F())==null?void 0:f.useDarkTheme},c=function(){var f,K;
return N&&N()||h()?(f=x().image)==null?void 0:f.imageDark:(K=x().image)==null?void 0:K.imageLight};
p={};p=_.$L("ytm-lp-small-feature-section-view-model",(p["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=h,p));var M=function(){var f,K,t;return(t=(f=x().image)==null?void 0:(K=f.accessibilityData)==null?void 0:K.label)!=null?t:""};
return _.Z("ytm-lp-small-feature-section-view-model",{class:p},_.Z(_.D9,{cond:function(){return c()&&!JgM},
then:function(){return _.Z("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.Z(_.VE,{data:function(){return c()},
alt:M,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.Z("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.Z("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.Z(_.D9,{cond:function(){return x().title},
then:function(f){return _.Z(_.KQ,{text:f})}})),_.Z("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.Z(_.KQ,{text:function(){return x().description}}))))},"Xb");
yOb.idomCompat=!0;var bkC=_.mO(function(p){var x=p.data;var F=p.themeOverride;p={};return _.Z("ytm-lp-small-feature-section-group-view-model",null,_.Z("div",{class:_.$L("ytm-lp-small-feature-section-group-view-model",(p["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(F==null||!F().useDarkTheme)},p))},_.Z("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.Z(_.Es,{data:function(){return x().smallFeatures}},{lpSmallFeatureSectionViewModel:function(N){return _.Z("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.Z(yOb,{data:N.data,
themeOverride:F}))}}))))},"Yb");
bkC.idomCompat=!0;_.o7(_.mO(function(p){var x=p.data;var F=function(){return x().forcedTheme==="USER_INTERFACE_THEME_DARK"},N=function(){return x().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},h=function(){var M="",f,K;
var t=_.J().resolve(_.Bw(_.AD));t=F()||(t==null?0:t())?(f=x().themedImageViewModel)==null?void 0:f.imageDark:(K=x().themedImageViewModel)==null?void 0:K.imageLight;(f=hYr((t==null?void 0:t.sources)||[]))&&f.url&&(M=N()?"background-image: linear-gradient(to bottom, transparent, "+(x().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.ug(f.url)+");":"background-image: url("+_.ug(f.url)+");");return M},c=function(){return{useDarkTheme:F()}};
p={};return _.Z("yt-section-group-view-model",null,_.Z("div",{class:_.$L("yt-lp-section-group-view-model",(p["yt-lp-section-group-view-model--premium-force-dark-mode"]=F,p["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return x().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},p))},_.Z(_.D9,{cond:function(){return h().length},
then:function(){var M={};return _.Z("div",{class:_.$L("yt-lp-section-group-view-model__bg-image",(M["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=N,M)),style:h})}}),_.Z("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.Z(_.Es,{data:function(){return x().sections}},{lpFaqSectionViewModel:function(M){return _.Z(vDK,{data:M.data,
themeOverride:c})},
lpHeaderSectionViewModel:function(M){return _.Z(JOv,{data:M.data,themeOverride:c})},
lpHeadlineSectionViewModel:function(M){return _.Z(CFb,{data:M.data,themeOverride:c})},
lpLargeFeatureSectionViewModel:function(M){return _.Z(SFK,{data:M.data,themeOverride:c})},
lpOfferCardSectionViewModel:function(M){return _.Z(gDB,{data:M.data,themeOverride:c})},
lpComplexOfferCardSectionViewModel:function(M){return _.Z(Zkm,{data:M.data})},
lpOfferTableSectionViewModel:function(M){return _.Z(nDJ,{data:M.data,themeOverride:c})},
lpSmallFeatureSectionGroupViewModel:function(M){return _.Z(bkC,{data:M.data,themeOverride:c})}}))))},"Zb"),"yt-section-group-view-model",{props:{data:_.G2}});var $Rz=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.AO6=_.mO(function(p){function x(){if($Rz.has(p.data().displayType)){var t=!N(),d;if((d=p.disableDeselection)==null||!d.call(p)||t){p.data().selected=t;d=Object.assign({},M(),{selected:t});f(d);var v;(v=p.callback)==null||v.call(p,d,t)}}}
var F=_.oc(),N=function(){var t,d;return!!(((t=p.selected)==null?void 0:t.call(p))!==void 0?(d=p.selected)==null?0:d.call(p):M().selected)},h=_.a(_.ct(p.data)),c=h.next().value;
h=h.next().value;var M=c,f=h,K=_.MN(INH,function(){return p.data().chipEntityKey||""});
return _.Z("chip-view-model",{class:"ytChipViewModelHost",el:F},_.Z(vNZ,{data:function(){var t,d=Object.assign({},M(),{selected:N()}),v=K(),C=(t=p.disableDeselection)==null?void 0:t.call(p);a:switch(d.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":t=1;break a;default:t=0}return{text:(v==null?void 0:v.text)||d.text,state:d.disabled?1:d.selected?0:2,type:t,onTap:eu$(d,F,x,C),accessibilityLabel:d.accessibilityLabel||d.text}}}))},"$b");
_.AO6.idomCompat={callbacks:{callback:!0}};_.o7(_.mO(function(p){var x=_.MN(iem,function(){var M;return(M=p.data())==null?void 0:M.chipBarStateEntityKey}),F=function(){return p.data().disableDeselection},N=_.a(_.ct(function(){var M;
if(((M=x())==null?void 0:M.selectedIndex)!=void 0)return x().selectedIndex;var f,K;M=_.a(((f=p.data())==null?void 0:(K=f.chips)==null?void 0:K.entries())||[]);for(f=M.next();!f.done;f=M.next()){f=_.a(f.value);K=f.next().value;f=f.next().value;var t=void 0;if((t=_.r(f,_.Gv))==null?0:t.selected)return K}return-1})),h=N.next().value,c=N.next().value;
return _.Z("chip-bar-view-model",{class:_.$L("ytChipBarViewModelHost",p.className),role:"tablist"},_.Z(_.Es,{data:function(){return p.data().chips}},{chipViewModel:function(M,f){return _.Z("div",{class:"ytChipBarViewModelChipWrapper"},_.Z(_.AO6,{data:M.data,
selected:function(){return f()===h()},
callback:function(K,t){K=!!t;t=f();c(K?t:-1);var d,v=(d=p.data())==null?void 0:d.chipBarStateEntityKey;v&&K&&_.wo(_.KV("chipBarStateEntity",v,{key:v,selectedIndex:t}))},
disableDeselection:p.disableDeselection||F}))}}))},"ac"),"chip-bar-view-model",{props:{data:_.mJ,
className:_.mJ,disableDeselection:_.mJ}});var nE=new Map,sW=new Map,FQB=0,yY;var Dlp=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],qSM={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var udb,YFD;udb=function(p){return function(x){return function(){return String(x())+p}}};
_.v3=udb("px");YFD=udb("s");var GEB=_.mO(function(p){function x(R){return function(){var ld=X().numItemsPerGridRow,pp=R()*ld;ld=pp+ld;var Kp,sM;return(sM=(Kp=N().contents)==null?void 0:Kp.slice(pp,ld))!=null?sM:[]}}
var F=_.Vg(p,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),N=F.data,h=F.layoutContainerWidth,c=F.shouldUseOwnContainerSize,M=F.marginSettings;F=_.a(_.hu(!0,void 0,"qgr2Je"));var f=F.next().value,K=F.next().value,t=function(){var R,ld=(R=_.r(N().showMoreButton,_.X6))==null?void 0:R.trackingParams;ld&&_.cj(_.cl(),ld);K(!1)},d=function(){var R,ld=(R=_.r(N().showLessButton,_.X6))==null?void 0:R.trackingParams;
ld&&_.cj(_.cl(),ld);K(!0)};
F=_.oc();var v=tkZ(F),C=function(){var R;return(R=N().contentAspectRatio)!=null?R:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},X=_.Kn(function(){var R=_.RC({containerWidth:c()&&v.width()>0?v.width()||h():h(),
sizing:"EXTRA_COMPACT",marginSettings:M(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:R.maxContainerWidth,numItemsPerGridRow:R.numItems,contentPadding:c()?R.margin:R.contentMargin,itemWidth:R.itemWidth,itemMargin:R.gutter/2}},void 0,"pqVdjc"),Q=function(){if(N().enableVerticalExpansion){if(f())return 1;
var R,ld,pp=(ld=(R=N().contents)==null?void 0:R.length)!=null?ld:0;return Math.ceil(pp/X().numItemsPerGridRow)}return X().numItemsPerGridRow<=2?2:1},b=function(){return N().enableVerticalExpansion&&N().showLessButton&&!f()&&Q()>1},A=function(){var R,ld;
return N().enableVerticalExpansion&&N().showMoreButton&&f()&&((ld=(R=N().contents)==null?void 0:R.length)!=null?ld:0)>X().numItemsPerGridRow},Y=function(){return!b()},O=function(){return!A()},Fw={};
return _.Z("grid-shelf-view-model",{class:_.$L("ytGridShelfViewModelHost",p.className,(Fw.ytGridShelfViewModelHostHasBottomButton=function(){return b()||A()},Fw)),
el:F,style:_.a4({"margin-left":(0,_.v3)(function(){return X().contentPadding}),
"margin-right":(0,_.v3)(function(){return X().contentPadding})})},_.Z(_.D9,{cond:function(){return _.r(N().header,wj6)},
then:function(R){return _.Z(_.RF,{data:R,disableHorizontalPadding:!0})}}),_.Z("div",null,_.Z(_.ft,{each:function(){return Array(Q())}},function(R,ld){return _.Z(wMn,{className:p.className,
items:x(ld),responsiveGridShelfLayout:X,contentAspectRatio:C})})),_.Z("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.Z(_.Es,{data:function(){return N().showMoreButton}},{buttonViewModel:function(R){return _.Z("div",{hidden:O},_.Z(_.nV,{data:R.data,
onClick:t}))}}),_.Z(_.Es,{data:function(){return N().showLessButton}},{buttonViewModel:function(R){return _.Z("div",{hidden:Y},_.Z(_.nV,{data:R.data,
onClick:d}))}})))},"gc");
GEB.idomCompat=!0;var wMn=_.mO(function(p){var x=p.items;var F=p.responsiveGridShelfLayout;var N=p.contentAspectRatio;p=p.className;var h=_.oc();xlE(h,function(){a:{var M=h.value;for(var f=x(),K=[],t=0;t<f.length;t++){var d=_.r(f[t],naJ);if(!d||d==null||!d.inlinePlayerData){M=null;break a}var v=M.children.item(t);if(!v){M=null;break a}K.push({thumbnailElement:v,videoData:d})}M={gridVideoPreviewData:{gridItems:K}}}return M});
var c=(0,_.v3)(function(){return-F().itemMargin});
return _.Z("div",{el:h,class:_.$L("ytGridShelfViewModelGridShelfRow",p),style:_.a4({"margin-left":c,"margin-right":c})},_.Z(_.Es,{data:x,replacementWrapper:function(M){return _.Z(Vbj,{responsiveGridShelfLayout:F},M)}},{shortsLockupViewModel:function(M){return _.Z(Vbj,{responsiveGridShelfLayout:F},_.Z(v0K,{data:M.data,
aspectRatio:function(){return N()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"hc"),Vbj=_.mO(function(p){return _.Z("div",{style:_.a4({width:(0,_.v3)(function(){return p.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+p.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},p.children)},"ic");_.o7(GEB,"grid-shelf-view-model",{props:{data:_.G2,layoutContainerWidth:_.G2,shouldUseOwnContainerSize:_.G2,marginSettings:_.G2,className:_.G2}});_.o7(_.mO(function(p){var x=_.a(_.hu(!1,void 0,"YYtxR")),F=x.next().value,N=x.next().value;x={};return _.Z("yt-alert-banner-view-model",{class:_.$L("ytAlertBannerViewModelHost",function(){var h;a:switch((h=p.data())==null?void 0:h.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":h="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":h="ytAlertBannerViewModelWarning";break a;default:h="ytAlertBannerViewModelInformational"}return h},(x.ytAlertBannerViewModelDismissed=F,x.ytAlertBannerViewModelFullbleed=
p.fullbleed,x.ytAlertBannerViewModelNarrow=p.narrow,x.ytAlertBannerViewModelIsInRichGrid=p.isInRichGrid,x))},_.Z(_.D9,{cond:function(){var h;
return!((h=p.data())==null?0:h.hideIcon)},
then:function(){return _.Z("div",{class:"ytAlertBannerViewModelIcon"},_.Z(_.DS,{icon:function(){return"info_circle"}}))}}),_.Z("div",{class:"ytAlertBannerViewModelOuterContainer"},_.Z("div",{class:"ytAlertBannerViewModelContainer"},_.Z("div",{class:"ytAlertBannerViewModelContent"},_.Z("div",{class:"ytAlertBannerViewModelHeading"},_.Z(_.KQ,{text:function(){var h;
return(h=p.data())==null?void 0:h.heading}})),_.Z("div",{class:"ytAlertBannerViewModelBody"},_.Z(_.KQ,{text:function(){var h;
return(h=p.data())==null?void 0:h.body}})))),_.Z(_.Es,{data:function(){var h;
return(h=p.data())==null?void 0:h.actionButton}},{buttonViewModel:function(h){return _.Z(_.nV,{data:h.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.Z(_.Es,{data:function(){var h;
return(h=p.data())==null?void 0:h.dismissButton}},{buttonViewModel:function(h){return _.Z(_.nV,{data:h.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var c;((c=p.data())==null?0:c.disableLocalDismissBehavior)||N(!0)}})}}))},"jc"),"yt-alert-banner-view-model",{props:{data:_.G2,
fullbleed:_.G2,narrow:_.G2,isInRichGrid:_.G2}});var dlr;dlr=_.JR({chipViewModel:_.AO6,buttonViewModel:_.nV});_.WSk=_.xp(vyE,{callbacks:{callback:!0}});_.iK(vyE);_.o7(_.WSk,"chips-shelf-view-model",{props:{data:_.G2,callback:_.mJ,enableSingleChipSelection:_.G2}});var Hkk=_.mO(function(p){p=_.Vg(p,{disabled:!1});var x=p.active,F=p.disabled;p={};p=_.$L("ytSwitchShapeTrack",(p.ytSwitchShapeTrackActive=function(){return x()},p.ytSwitchShapeTrackDisabled=function(){return F()},p));
var N={};N=_.$L("ytSwitchShapeKnob",(N.ytSwitchShapeKnobActive=function(){return x()},N));
return _.Z("switch-shape",{class:"ytSwitchShapeHost"},_.Z("div",{class:p}),_.Z("div",{class:N}))},"kc");var m6v=_.mO(function(p){var x=_.Vg(p,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),F=x.data;p=x.className;var N=x.handleOnTapEventInParent,h=x.parentActive;x=_.a(_.ct(function(){var v;return(v=h())!=null?v:F().switchedOnByDefault||!1}));
var c=x.next().value,M=x.next().value,f=function(){return F().isDisabled},K=_.oc();
x=_.h0(function(v){return v.key==="Enter"?(v.preventDefault(),K.value.click(),!1):!0});
var t=_.h0(function(v){if(F().handleOnTapEventInParent||N())return!0;if(f())return!1;CQJ(F(),c(),v);M(!c());return!1}),d={};
d=_.$L("ytSwitchButtonViewModelButton",(d.ytSwitchButtonViewModelTappable=function(){return!f()},d));
return _.Z("switch-button-view-model",{class:_.$L("ytSwitchButtonViewModelHost",p)},_.Z("button",{el:K,class:d,"on:click":t,"on:keydown":x,"aria-label":function(){return c()?F().a11yLabelSwitchedOn:F().a11yLabelSwitchedOff},
"aria-pressed":c,"aria-disabled":f},_.Z(Hkk,{active:c,disabled:f})))},"lc");_.iK(X_H);_.oDm=_.xp(Q2z,{callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}});_.iK(Q2z);var zpz;zpz=_.JR({buttonViewModel:_.nV,switchButtonViewModel:m6v,avatarViewModel:_.zu,accountLinkButtonViewModel:pVE,subscribeButtonViewModel:_.Bhj,collectionThumbnailViewModel:CeD,toggleButtonViewModel:_.QP});_.Js=_.xp(yNp,{callbacks:{onTap:!0}});_.iK(yNp);_.OkD=_.mO(function(p){var x=p.data;var F=p.onTap;var N=p.onSwitch;var h=p.overrideDisabled;p=_.a(_.ct(function(){var d;return((d=rNd(t()))==null?void 0:d.switchedOnByDefault)||!1}));
var c=p.next().value,M=p.next().value;p=_.a(_.hu(!1,void 0,"Ri8Twb"));var f=p.next().value,K=p.next().value,t=function(){var d;if(!(d=x().switchButton)){var v=x();d=h==null?void 0:h();v={switchOnCommand:v.switchOnCommand,switchOffCommand:v.switchOffCommand,switchedOnByDefault:v.switchedOnByDefault,isDisabled:v.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:v.a11yLabelSwitchedOn,a11yLabelSwitchedOff:v.a11yLabelSwitchedOff};d!==void 0&&(v.isDisabled=d);d={switchButtonViewModel:v}}return d};
return _.Z("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.Z(_.Js,{data:function(){return{title:x().title,subtitle:x().attributedSubtitle,leadingImage:x().leadingImage,leadingAccessory:x().leadingAccessory,isDisabled:x().isDisabled}},
onTap:function(d){var v=rNd(t());!v||v.isDisabled||x().ignoreTapUntilCommandCompletes&&f()||(F==null||F(d),CQJ(v,c(),d,x().ignoreTapUntilCommandCompletes,K),M(!c()),N==null||N(c()))},
trailingAccessory:_.Z(_.Es,{data:t},{switchButtonViewModel:function(d){return _.Z(m6v,{data:d.data,parentActive:c,handleOnTapEventInParent:!!F})}})}))},"mc");var jQm=_.JG("DOWNLOAD",{},"Download"),LSK=_.JG("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),PFj=_.JG("RETRY",{},"Retry"),Tpm=_.JG("PAUSE_DOWNLOADING",{},"Pause downloading"),BpZ=_.JG("RESUME_DOWNLOAD",{},"Resume download"),bmw={text:jQm,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},uW={text:LSK,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},YSB={text:PFj,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
ANJ={text:Tpm,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},uIw={text:BpZ,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var RBm=_.mO(function(p){var x=function(){var f=p.data();f=_.wR(f.rendererContext);var K;return(K=_.r(f,_.lr))==null?void 0:K.videoId},F=_.g5(function(f){var K=x(),t=VkM(p.data());
return K?_.uP(f,K):t?_.YO(f,t):"TRANSFER_STATE_UNKNOWN"}),N=_.MN(_.TSM,x),h=_.g5(function(f){return _.mJB(f,x(),VkM(p.data()))}),c=function(){return G9M(F(),N(),_.wR(p.data().rendererContext),!!VkM(p.data()))},M=function(){return h()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.Z("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:M},_.Z(_.D9,{cond:function(){return!M()},
then:function(){return _.Z(_.D9,{cond:c,then:function(f){return _.Z(_.ft,{each:f},function(K){return _.Z(_.Js,{data:K,isCompact:p.isCompact,isMenuItem:p.isMenuItem,inPopup:p.inPopup})})}})}}))},"nc");
RBm.idomCompat=!0;var HmH;HmH=_.JR({listItemViewModel:yNp,downloadListItemViewModel:RBm,switchListItemViewModel:_.OkD});_.kEC=_.xp(mlm);_.iK(mlm);var U6k=_.mO(function(p){var x=p.data;var F=p.isOverlay;p={};return _.Z("yt-course-perks-view-model",{class:_.$L("ytwCoursePerksViewModelHost",(p.ytwCoursePerksViewModelHostOverlay=F,p))},_.Z("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.Z(_.KQ,{text:function(){return x().title}})),_.Z("div",null,_.Z(_.D9,{cond:function(){return x().perks},
then:function(N){return _.Z(_.kEC,{data:function(){return{listItems:N()}},
isCompact:!0,isOverlay:F})}})))},"oc");_.o7(U6k,"yt-course-perks-view-model",{props:{data:_.mJ,isOverlay:_.mJ}});_.o7(_.mO(function(p){var x=p.data;return _.Z("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.Z("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.Z(_.KQ,{text:function(){return x().title}})),_.Z("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.Z(_.KQ,{text:function(){return x().progressSummary}})),_.Z("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.Z("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.a4({width:function(){return x().progressPercentage*100+"%"}})})))},"pc"),"yt-course-progress-view-model",{props:{data:_.G2}});var ikb=_.mO(function(p){var x=_.Vg(p,{}).data;return _.Z("yt-progress-view-model",{class:"ytwProgressViewModelHost"},_.Z(_.D9,{cond:function(){return x().progressSummary},
then:function(F){return _.Z("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.Z(_.KQ,{text:F}))}}),_.Z("div",{class:"ytwProgressViewModelHostProgressContainer"},_.Z("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.Z(_.KQ,{text:function(){var F;
return(F=x())==null?void 0:F.leadingLabel}})),_.Z("div",{class:"ytwProgressViewModelHostProgressBar"},_.Z("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){var F;return"width: "+(((F=x())==null?void 0:F.progressPercentage)||0)*100+"%"}}))))},"qc");var C9=_.mO(function(p){var x=p.starNumber;var F=p.data;var N=function(){var h;return((h=F())==null?void 0:h.rating)||0};
return _.Z(_.D9,{cond:function(){return x()},
then:function(h){return _.Z(_.q$,null,_.Z(_.Kt,{when:function(){return N()>=h()-.25}},function(){return _.Z("div",{class:"ytStarRatingViewModelHostStar"},_.Z(_.DS,{icon:"STAR_FILLED"}))}),_.Z(_.Kt,{when:function(){return N()>=h()-.75}},function(){return _.Z("div",{class:"ytStarRatingViewModelHostStar"},_.Z(_.DS,{icon:"STAR_HALF"}))}),_.Z(_.mzB,null,function(){return _.Z("div",{class:"ytStarRatingViewModelHostStar"},_.Z(_.DS,{icon:"STAR_BORDER"}))}))}})},"rc"),Isl=_.mO(function(p){p=p.data;
return _.Z("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.Z(C9,{starNumber:1,data:p}),_.Z(C9,{starNumber:2,data:p}),_.Z(C9,{starNumber:3,data:p}),_.Z(C9,{starNumber:4,data:p}),_.Z(C9,{starNumber:5,data:p}))},"sc");_.o7(_.mO(function(p){var x=_.Vg(p,{}).data;return _.Z("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.Z("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.Z(_.KQ,{text:function(){var F;return(F=x())==null?void 0:F.title}})),_.Z("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.Z(_.D9,{cond:function(){return x().starProgressViewModels},
then:function(F){return _.Z("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.Z(_.Es,{data:F},{progressViewModel:ikb}))}}),_.Z("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.Z("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.Z(_.KQ,{text:function(){var F;
return(F=x())==null?void 0:F.averageRatingLabel}})),_.Z(_.D9,{cond:function(){return x().zeroStateText},
then:function(F){return _.Z("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.Z(_.KQ,{text:F}))}}),_.Z(_.D9,{cond:function(){return x().starRatingViewModel},
then:function(F){return _.Z("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.Z(_.Es,{data:F},{starRatingViewModel:Isl}))}}),_.Z("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.Z(_.KQ,{text:function(){var F;
return(F=x())==null?void 0:F.totalRatingsCountLabel}})))))},"tc"),"yt-course-ratings-view-model",{props:{data:_.mJ}});var $6j;$6j={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.eBZ=_.mO(function(p){var x=_.oc(),F=_.F6();_.d1(function(){requestAnimationFrame(function(){var M;(M=F.lottieEl)==null||M.addEventListener("DOMLoaded",function(){var f;(f=p.onLottieLoaded)==null||f.call(p)})});
var N,h=_.xl({browseEndpoint:{params:(N=p.data)==null?void 0:N.call(p).params,browseId:"FElearning_destination"},commandMetadata:{webCommandMetadata:{url:"/learning",rootVe:256690,apiUrl:"/youtubei/v1/browse",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}),c;((c=p.shouldSkipRequest)==null?0:c.call(p))||_.hG(x.value,"yt-navigate",{endpoint:h})});
return _.Z("yt-learning-journey-loader-view-model",{class:_.$L("learningJourneyLoaderViewModelHost",p.className),"data-target-id":function(){var N;return((N=p.data)==null?void 0:N.call(p).targetId)||""},
el:x},_.Z(_.e6,{className:_.$L("learningJourneyLoaderViewModelLoader",p.className),animationName:function(){return $6j.animationConfig.name},
data:$6j,animationRef:F}))},"uc");_.o7(_.eBZ,"yt-learning-journey-loader-view-model",{props:{data:_.G2,className:_.mJ,onLottieLoaded:_.mJ,shouldSkipRequest:_.mJ}});var prH=_.mO(function(p){var x=p.data;p=_.a(_.hu(-1,void 0,"r4B6h"));var F=p.next().value,N=p.next().value,h=function(K){return F()===K},c=function(K){return x().correctAnswerIndex===K},M=function(){return F()!==-1},f=_.h0(function(){N(-1);
return!1});
return _.Z("learning-journey-quiz-view-model",{class:"learningJourneyQuizViewModelHost",style:_.a4({background:function(){return Gu(Yq(x())).backgroundColor}})},_.Z(_.D9,{cond:function(){return!!x().video},
then:function(){return _.Z("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.a4({background:function(){return Gu(Yq(x())).videoBackgroundColor}})},_.Z(_.Es,{data:function(){return x().video}},{lockupViewModel:function(K){return _.Z(q5,{data:K.data,
className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.Z("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.Z("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.Z("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.Z("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.Z("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.a4({color:function(){return Gu(Yq(x())).primaryTextColor}})},_.Z(_.KQ,{text:function(){var K=x(),t=M(),d=F()===x().correctAnswerIndex;
return t?d?K.successTitle:K.failureTitle:K.questionHeaderText}})),_.Z(_.D9,{cond:M,
then:function(){return _.Z("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":f,role:"button","aria-label":"Reset","tab-index":"0"},_.Z("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.a4({fill:function(){return Gu(Yq(x())).primaryTextColor}})},_.Z("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"})))}})),
_.Z("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.a4({color:function(){return Gu(Yq(x())).secondaryTextColor}})},_.Z(_.KQ,{text:function(){var K=x();
return M()?K.explanationText:K.questionSubheaderText}}))),_.Z("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.Z(_.ft,{each:function(){return x().optionsData||[]}},function(K,t){var d={};
return _.Z("div",{class:_.$L("learningJourneyQuizViewModelHostQuizOptions",(d.learningJourneyQuizViewModelHostQuizHover=function(){return!M()},d.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return F()===x().correctAnswerIndex&&h(t())},d.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return F()!==x().correctAnswerIndex&&h(t())},d.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return M()&&!h(t())},d)),
"on:click":_.h0(function(){if(M())return!1;N(t());return!1}),
style:_.a4({background:function(){return M()&&h(t())?"":Gu(Yq(x())).optionColor}}),
role:"button","aria-disabled":M,"tab-index":"0"},_.Z(_.D9,{cond:M,then:function(){return _.Z("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var v=t();return c(v)?"0 0 24 24":"0 -960 960 960"},
style:_.a4({fill:function(){return Gu(Yq(x())).primaryTextColor}})},_.Z("path",{d:function(){var v=t();
return c(v)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M330-120L120-330v-300l210-210h300l210 210v300L630-120H330zm36-190l114-114 114 114 56-56-114-114 114-114-56-56-114 114-114-114-56 56 114 114-114 114 56 56z"}}))}}),_.Z(_.KQ,{text:K.optionText}))})))))},"vc");
prH.idomCompat=!0;_.o7(prH,"learning-journey-quiz-view-model",{props:{data:_.G2}});var xm_=_.mO(function(p){var x=_.oc();_.oC(x,function(){return p.data().rendererContext});
var F=_.Vg(p,{palette:void 0,isLastItem:!1}),N=F.palette,h=F.isLastItem,c=function(){return p.data().isHighlighted},M=function(){var t;
return oyw((t=N())==null?void 0:t.iconDisabledColor)},f=function(){var t;
return oyw((t=N())==null?void 0:t.primaryTitleColor)},K=function(){var t;
return oyw((t=N())==null?void 0:t.secondaryTitleColor)};
F={};return _.Z("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:x},_.Z(_.Es,{data:function(){return p.data().thumbnail}},{thumbnailViewModel:hK}),_.Z("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.Z("div",{class:_.$L("ytMacroMarkerListItemViewModelTimeDescription",(F.ytMacroMarkerListItemViewModelHighlighted=c,F)),
style:_.a4({"background-color":function(){return c()?f():M()},
color:function(){return c()?"":K()}})},_.Z(_.KQ,{text:function(){return p.data().timestamp}})),_.Z("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.a4({"background-color":function(){return h()?"transparent":M()}})}),_.Z("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(c()?f():K())}},_.Z(_.KQ,{text:function(){return p.data().title}}))))},"wc");_.SJ=_.mO(function(p){function x(Ov){Y("transform:translateX("+(_.sd("HTML_DIR")==="rtl"?"":"-")+Ov+"px)")}
function F(Ov){return Math.min(Math.max(Ov,0),A()-pp())}
function N(){var Ov=R()+Jz();return h()?(Math.round(pp()/Ov)||1)*Ov:0}
var h=function(){return p.data().items||[]},c=function(){return p.data().previousButton},M=function(){return p.data().nextButton},f=function(){var Ov,Xj;
return(Xj=(Ov=p.disableArrows)==null?void 0:Ov.call(p))!=null?Xj:!1},K=function(){var Ov;
return!((Ov=p.forceNarrowLayout)==null||!Ov.call(p))},t=_.oc(),d=_.oc(),v=_.a(_.hu(0,void 0,"yngx7d")),C=v.next().value,X=v.next().value;
v=_.a(_.hu(0,void 0,"rUOyGb"));var Q=v.next().value,b=v.next().value,A=Q;Q=_.a(_.hu("",void 0,"jv2kWc"));v=Q.next().value;var Y=Q.next().value;Q=_.a(_.hu(0,void 0,"Xb0f0d"));var O=Q.next().value,Fw=Q.next().value,R=O;Q=_.a(_.hu(0,void 0,"pt5wQ"));O=Q.next().value;var ld=Q.next().value,pp=O;Q=_.a(_.hu(!1,void 0,"FfPefe"));var Kp=Q.next().value,sM=Q.next().value;Q=_.a(_.hu(0,void 0,"kB5mhb"));O=Q.next().value;var np=Q.next().value,Jz=O;Q=_.a(_.hu(0,void 0,"dnDmUd"));var Y$=Q.next().value,xB=Q.next().value,
qI=function(){var Ov,Xj=(Ov=p.data())==null?void 0:Ov.responsiveContainerConfiguration,AC,Jo;return Xj?jTH(Xj==null?void 0:Xj.responsiveSize):(Jo=(AC=p.sizing)==null?void 0:AC.call(p))!=null?Jo:"STANDARD"};
Q=_.Kn(function(){return!f()&&C()>0},void 0,"ZIGxke");
O=_.Kn(function(){return!f()&&C()<A()-pp()},void 0,"OJzhRd");
var RJ=function(){X(F(C()-N()));x(C())},Ik=function(){X(F(C()+N()));
x(C())},vb=function(){t.value!==null&&sk()},CZ;
_.J9(function(){sk();window.ResizeObserver?(CZ=new ResizeObserver(_.S0(vb,0)),CZ.observe(t.value)):window.addEventListener("resize",vb)});
_.E_(function(){if(window.ResizeObserver){var Ov;(Ov=CZ)==null||Ov.disconnect()}else window.removeEventListener("resize",vb)});
var sk=function(){var Ov=t.value.clientWidth,Xj=p.includeMargin!==void 0?p.includeMargin():!1,AC;var Jo=p.hasPeek!==void 0?p.hasPeek():!((AC=p.data())==null||!AC.hasPeek);Ov=_.RC({containerWidth:Ov,hasPeek:Jo,sizing:qI(),marginSettings:Xj?K()?4:1:0});np(Ov.gutter);xB(Ov.margin);Fw(Ov.itemWidth);sM(Ov.maxContainerWidth<528||K());ld(Ov.maxContainerWidth);h()&&b((Ov.itemWidth+Ov.gutter)*h().length-Ov.gutter)};
return _.Z("horizontal-shelf-view-model",{class:_.$L("ytwHorizontalShelfViewModelHost",p.className),el:t},_.Z(_.D9,{cond:function(){return p.data().header},
then:function(){return _.Z("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.a4({width:function(){return pp()+"px"},
padding:function(){return"0 "+Y$()+"px"}})},_.Z(_.Es,{data:function(){return p.data().header}},{sectionHeaderViewModel:function(Ov){return _.Z(_.RF,{data:Ov.data,
disableHorizontalPadding:!0,forceSmallLayout:Kp,useResponsiveLayout:!0})}}))}}),_.Z("div",{class:"ytwHorizontalShelfViewModelOuterContainer"},_.Z("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.a4({width:function(){return pp()+"px"},
padding:function(){return"0 "+Y$()+"px"},
overflow:function(){return f()?"auto":"hidden"}})},_.Z("div",{class:"ytwHorizontalShelfViewModelItems",
el:d,style:v},_.Z(_.Es,{data:h},{macroMarkerListItemViewModel:function(Ov,Xj){return _.Z("div",{style:_.a4({width:function(){return R()+"px"},
"margin-right":function(){return(Xj()===h().length-1?0:Jz())+"px"}})},_.Z(xm_,{data:Ov.data,
palette:_.GD(p.palette),isLastItem:function(){return Xj()===h().length-1}}))},
lockupViewModel:function(Ov,Xj){var AC=Ov.data;return _.Z("div",{style:_.a4({width:function(){return R()+"px"},
"margin-right":function(){return(Xj()===h().length-1?0:Jz())+"px"}})},_.Z(q5,{data:AC,
containerType:4,sizing:qI,protectBackground:p.protectBackground,thumbnailFixedWidth:function(){return Om$(AC())+"px"},
thumbnailTargetWidth:function(){return Om$(AC())}}))}}))),_.Z(_.D9,{cond:Q,
then:function(){return _.Z("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.Z(_.Es,{data:c},{buttonViewModel:function(Ov){return _.Z(_.nV,{data:Ov.data,onClick:RJ})}}))}}),_.Z(_.D9,{cond:O,
then:function(){return _.Z("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.Z(_.Es,{data:M},{buttonViewModel:function(Ov){return _.Z(_.nV,{data:Ov.data,onClick:Ik})}}))}})))},"xc");
_.SJ.idomCompat=!0;var FHk=_.mO(function(p){var x=function(){return p.data().targetId||""},F=function(){var K;
return((K=p.data())==null?void 0:K.expansionEntityKey)||""},N=_.MN(_.pBd,F),h=function(){var K;
return N()?N().value===x():(K=p.data())==null?void 0:K.isExpanded},c=function(){if(h()){var K=!0;
p.onCollapse!==void 0&&(K=p.onCollapse());K&&_.wo(_.KV("stringEntity",F(),{key:F(),value:""}))}else _.wo(_.KV("stringEntity",F(),{key:F(),value:x()}))},M={},f={};
return _.Z("yt-accordion-item-view-model",{class:_.$L("ytAccordionItemViewModelHost",p.className,(M.ytAccordionItemViewModelExpanded=function(){return h()},M.ytAccordionItemViewModelHidden=function(){var K;
return(K=p.hideIfNotExpanded)==null?void 0:K.call(p)},M.ytAccordionItemViewModelMini=function(){var K;
return(((K=p.accordionStyle)==null?void 0:K.call(p))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},M)),
"data-target-id":x},_.Z("div",{class:"ytAccordionItemViewModelContainer"},_.Z("div",{class:"ytAccordionItemViewModelLeftSection"},_.Z(_.KQ,{text:function(){return p.data().title},
className:"ytAccordionItemViewModelLabel"})),_.Z("div",{class:"ytAccordionItemViewModelRightSection"},_.Z(_.Es,{data:function(){return h()?p.data().expandButton:p.data().collapseButton}},{buttonViewModel:function(K){return _.Z(_.nV,{data:K.data,
className:"ytAccordionItemViewModelToggleButton",onClick:c})}}))),_.Z("div",{class:"ytAccordionItemViewModelContainer"},_.Z("div",{class:_.$L("ytAccordionItemViewModelContent",(f.ytAccordionItemViewModelExpandedSubtitle=function(){return h()},f))},_.Z(_.KQ,{text:function(){return p.data().description},
className:"ytAccordionItemViewModelSubtitle"}),_.Z(_.Es,{data:function(){return p.data().content}},{horizontalShelfViewModel:function(K){return _.Z(_.SJ,{data:K.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"yc");_.Nkm=_.mO(function(p){var x=_.a((0,_.Vxm)(p.data)).next().value,F=function(){return p.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},N=function(){return F()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},h=_.a(_.hu(!0,void 0,"ewf0jb")),c=h.next().value,M=h.next().value,f=function(){return N()&&c()},K=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){M(!c())}}};
h={};return _.Z("yt-accordion-view-model",{class:_.$L("ytAccordionViewModelHost",(h.ytAccordionViewModelMinimized=function(){return f()},h)),
"data-target-id":function(){return p.data().targetId||""}},_.Z(_.D9,{cond:function(){return N()||!!x().title},
then:function(){return _.Z("div",{class:"ytAccordionViewModelHeader"},_.Z(_.KQ,{text:function(){return x().title},
className:"ytAccordionViewModelTitle"}),_.Z(_.D9,{cond:N,then:function(){return _.Z($w,{data:K,iconName:function(){return f()?"chevron_down":"chevron_up"}})}}))}}),_.Z("div",{class:"ytAccordionViewModelContent"},_.Z(_.Es,{data:function(){return x().contents}},{accordionItemViewModel:function(t){return _.Z(FHk,{data:t.data,
className:"ytAccordionViewModelRow",accordionStyle:F,hideIfNotExpanded:f,onCollapse:function(){return N()?(M(!0),!1):!0}})}})))},"zc");_.o7(_.Nkm,"yt-accordion-view-model",{props:{data:_.G2}});_.o7(_.mO(function(p){var x,F=(x=_.J().resolve(_.Bw(_.AD)))==null?void 0:x(),N=_.a(_.hu(!1,void 0,"TMXtne"));x=N.next().value;var h=N.next().value;N=_.a(_.hu(!0,void 0,"WK6Hlb"));var c=N.next().value,M=N.next().value,f=function(){h(!0);_.su(p.data().searchEndpoint||{});return!1},K=_.oc();
N=_.h0(function(){M(K.value.value.length===0)});
var t=_.h0(function(C){C.key!=="Enter"||C.shiftKey||c()||(C.preventDefault(),f())}),d={},v={};
return _.Z("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.Z("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.Z(_.VE,{data:function(){return p.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.Z("div",{class:_.$L("ytLearningJourneyZeroStateSearchBarContainer",(d.ytLearningJourneyZeroStateSearchBarContainerDark=F,d))},_.Z("textarea",{class:_.$L("ytLearningJourneyZeroStateTextInput",(v.ytLearningJourneyZeroStateTextInputDark=F,v)),el:K,"on:keyup":N,"on:keydown":t,placeholder:"What do you want to learn?",rows:1}),_.Z(_.nV,{data:function(){return _.r(p.data().searchButton,_.X6)},
className:"ytLearningJourneyZeroStateSearchButton",onClick:f,buttonOverrides:function(){return{disabled:c(),style:F?"mono-inverse":"mono"}}})),_.Z(_.D9,{cond:x,
then:function(){return _.Z("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.Z(_.Es,{data:function(){return p.data().loader}},{learningJourneyLoaderViewModel:function(C){return _.Z(_.eBZ,{data:C.data,
shouldSkipRequest:!0})}}))},
else:function(){return _.Z("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.Z(_.Es,{data:function(){return p.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(C){return _.Z($0m,{data:C.data,
layout:1})}}))}}))},"Ac"),"yt-learning-journey-zero-state",{props:{data:_.G2}});var hEm=_.mO(function(p){var x=p.data;return _.Z("ytvl-live-leaderboard-item-action-content-view-model",{class:_.$L("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.Z(_.KQ,{text:function(){var F;return(F=x())==null?void 0:F.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.Z(_.Es,{data:function(){return x().actionButton}},{buttonViewModel:function(F){return _.Z(_.nV,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:F.data})}}))},"Bc");var lZe=_.mO(function(p){var x=p.data;return _.Z("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.$L("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.Z(_.KQ,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var F;return(F=x())==null?void 0:F.displayName},
ellipsisTruncate:!0}),_.Z(_.Es,{data:function(){return x().badge}},{buttonViewModel:function(F){return _.Z(_.nV,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:F.data})}}))},"Cc");_.o7(_.mO(function(p){var x=p.data;return _.Z("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.Z("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.Z(_.KQ,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var F;return(F=x())==null?void 0:F.rank}})),_.Z("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.Z(_.Es,{data:function(){return x().avatar}},{avatarViewModel:_.bt})),_.Z("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.Z(_.Es,{data:function(){return x().content}},{liveLeaderboardItemChannelContentViewModel:lZe,
liveLeaderboardItemActionContentViewModel:hEm})),_.Z(_.KQ,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var F;return(F=x())==null?void 0:F.points}}))},"Dc"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.G2}});_.o7(_.mO(function(p){var x=p.data;return _.Z("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.Z(_.KQ,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var F,N;return(F=x())==null?void 0:(N=F.ranking)==null?void 0:N.rank}}),_.Z("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.Z(_.Es,{data:function(){return x().avatar}},{avatarViewModel:_.bt})),_.Z(_.KQ,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var F,N;return(F=x())==null?void 0:(N=F.channelContent)==null?void 0:N.channelName}}),_.Z(_.KQ,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var F;return(F=x())==null?void 0:F.points}}))},"Ec"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.G2}});var czm=_.mO(function(p){p=_.Vg(p,{wrapper:!1}).wrapper;return _.Z(_.D9,{cond:p,then:function(){return _.Z("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.Z("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.Z("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Fc");
czm.idomCompat=!0;var aZm=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],Mpt=_.mO(function(p){var x=p.data;var F=_.oc(),N=_.Kn(function(){return x().command},void 0,"CGDtVe");
_.rx(function(){N()&&_.QE(N(),{form:{element:F.value}})});
return _.Z("div",{el:F},_.Z(_.D9,{cond:function(){return x().qrCodeImage},
then:function(h){return _.Z(_.VE,{data:h,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.Z(_.D9,{cond:function(){return x().spinner},
then:function(){return _.Z(czm,null)}})}}),_.Z(_.D9,{cond:function(){return x().label},
then:function(h){return _.Z(_.KQ,{text:h,className:"YtQrCodeRendererHostLabel"})}}),_.Z(_.D9,{cond:function(){return x().labels},
then:function(h){return _.Z("div",{class:"YtQrCodeRendererHostLabels"},_.Z(_.ft,{each:h},function(c){return _.Z(_.KQ,{text:c})}))}}))},"Hc");_.o7(_.mO(function(p){var x=p.data;var F=_.Kn(function(){return x().qrEntityKey},void 0,"joYCxd"),N=_.Kn(function(){return x().deleteEntityOnDismiss},void 0,"x3yAde"),h=_.Kn(function(){return x().command},void 0,"dJe1Re"),c=_.MN(Qgm,F);
p=_.Kn(function(){return x().style&&aZm.includes(x().style)},void 0,"rGILzf");
var M=_.oc();_.U$(M,{visibilityCallback:function(f){f&&h()&&_.QE(h())},
showOption:{calledOnce:!0,state:"visible"}});_.J9(function(){_.E_(function(){N()&&F()&&_.u8().dispatch(_.KV("qrCodeEntity",F()))})});
return _.Z("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:M},_.Z(_.D9,{cond:p,then:function(){return _.Z(_.D9,{cond:c,then:function(f){return _.Z(Mpt,{data:f})}})}}))},"Gc"),"yt-qr-code-renderer",{props:{data:_.G2}});var Dmt=_.mO(function(p){var x=p.data;var F=p.topbarOffset;var N,h=((N=_.J().resolve(_.Bw(_.AD)))==null?void 0:N())||!1;return _.Z("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var c=x();var M,f,K=h?(M=c.config)==null?void 0:M.darkThemeBackgroundColor:(f=c.config)==null?void 0:f.lightThemeBackgroundColor;c=K?_.gX(K):void 0;c="background-color: "+c+";";F!==void 0&&(c+="top: -"+F()+"px;");return c},
"aria-hidden":!0},_.Z(_.D9,{cond:function(){var c,M,f;return!!((c=x().backgroundImageConfig)==null?0:(M=c.image)==null?0:(f=M.sources)==null?0:f.length)},
then:function(){return _.Z(_.VE,{data:function(){var c;return(c=x().backgroundImageConfig)==null?void 0:c.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.Z("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+j2r(h,x().gradientColorConfig)+";"}}))},"Ic");
Dmt.idomCompat=!0;var fZX=_.xp(LQ$);_.iK(LQ$);var KHm=_.mO(function(p){var x=p.data;var F=p.isOverlay;return _.Z("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.Z("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.Z(_.Es,{data:function(){return x().header}},{sectionHeaderViewModel:function(N){return _.Z(_.RF,{data:N.data,
isOverlay:F})}})),_.Z("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.Z(_.Es,{data:function(){return x().channelInfoButtons}},{flexibleActionsViewModel:$0m})),_.Z("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.Z(_.Es,{data:function(){return x().description}},{descriptionPreviewViewModel:function(N){return _.Z(fZX,{data:N.data,
isOverlay:F})}})))},"Jc");
KHm.idomCompat=!0;var qM8=_.mO(function(p){var x=p.data;var F={};return _.Z("factoid-view-model",{class:_.$L("ytwFactoidViewModelHost",(F.ytwFactoidViewModelHostOverlay=p.isOverlay,F))},_.Z(_.KQ,{text:function(){return x().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.Z(_.KQ,{text:function(){return x().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Kc");
qM8.idomCompat=!0;var Zp8=_.mO(function(p){var x=p.data;var F=p.isOverlay;return _.Z("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.Z(_.Es,{data:function(){return x().factoids}},{factoidViewModel:function(N){return _.Z(qM8,{data:N.data,
isOverlay:F})}}))},"Lc");
Zp8.idomCompat=!0;_.tpX=_.mO(function(p){var x=p.data;var F=p.isOverlay;return _.Z("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.Z(_.Es,{data:function(){return x().items}},{channelInfoViewModel:function(N){return _.Z("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Z(KHm,{data:N.data,
isOverlay:F}))},
coursePerksViewModel:function(N){return _.Z("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Z(U6k,{data:N.data,isOverlay:F}))},
descriptionPreviewViewModel:function(N){return _.Z("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Z(fZX,{data:N.data,isOverlay:F}))},
factoidsRowViewModel:function(N){return _.Z("div",{class:"ytwCourseMetadataViewModelHostItem"},_.Z(Zp8,{data:N.data,isOverlay:F}))}}))},"Mc");var dmc=_.mO(function(p){return _.Z("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.Z(_.Es,{data:function(){return p.data().content}},{courseMetadataViewModel:function(x){return _.Z(_.tpX,{data:x.data,
isOverlay:p.isOverlay})}}))},"Nc");var v$c=_.mO(function(p){var x=p.data;p=p.className;var F=_.oc(),N=function(){var c;return _.H2((c=x())==null?void 0:c.rendererContext)},h={};
h=(h["dynamic-text-view-model-wiz"]=!0,h["dynamic-text-view-model-wiz--tappable"]=function(){return N()},h);
_.oC(F,function(){var c;return(c=x())==null?void 0:c.rendererContext});
return _.Z("yt-dynamic-text-view-model",{el:F,role:function(){return N()?"link":void 0},
tabindex:function(){return N()?0:void 0},
class:_.$L(p,h)},_.Z("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var c,M,f;return(f=(M=_.r((c=x())==null?void 0:c.rendererContext,_.Os))==null?void 0:M.label)!=null?f:""}},_.Z(_.KQ,{text:function(){return x().text},
userInput:!0})))},"Oc");
v$c.idomCompat=!0;_.Jzt=_.mO(function(p){var x=p.data;var F=p.isPositionRelative;var N=_.O$(),h=_.Rpp("(max-width: 527.9px)"),c=function(){var M,f;return(f=(M=x())==null?void 0:M.style)!=null?f:"IMAGE_BANNER_STYLE_FULL_BLEED"};
p={};p=(p["yt-image-banner-view-model-wiz"]=!0,p["yt-image-banner-view-model-wiz--inset"]=function(){return k9z(c())},p["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.gx(!0)&&!(F==null?0:F())},p["yt-image-banner-view-model-wiz--small-inset"]=function(){return k9z(c())&&h()},p["yt-image-banner-view-model-wiz--tappable"]=function(){var M;
return _.gx(N.value)&&_.H2((M=x())==null?void 0:M.rendererContext)},p);
_.oC(N,function(){var M;return(M=x())==null?void 0:M.rendererContext});
return _.Z("yt-image-banner-view-model",{el:N,class:_.$L(p)},_.Z(_.D9,{cond:function(){var M;return(M=x())==null?void 0:M.image},
then:function(){return _.Z(_.VE,{data:function(){return x().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.Z(_.Es,{data:function(){var M;
return(M=x())==null?void 0:M.overlays}},{thumbnailHoverOverlayViewModel:kwv}))},"Pc");
_.Jzt.idomCompat=!0;var VY;VY=_.JR({descriptionPreviewViewModel:LQ$,dynamicTextViewModel:v$c,contentPreviewImageViewModel:_.DF,contentMetadataViewModel:wAI,flexibleActionsViewModel:IaB,attributionViewModel:sYD,imageBannerViewModel:_.Jzt,decoratedAvatarViewModel:$Ob,cinematicContainerViewModel:Dmt,flexibleContainer:dmc});_.Cda=_.xp(_.pRp);_.iK(_.pRp);_.o7(_.mO(function(p){var x=_.a(_.hu(!1,void 0,"vVRl3b")),F=x.next().value,N=x.next().value;return _.Z("yt-official-card-view-model",{class:_.$L("ytOfficialCardViewModelHost",p.className),style:_.a4({"background-color":function(){var h,c=mRk((h=p.data())==null?void 0:h.backgroundColor);return c?_.QK(c):void 0}})},_.Z(_.Es,{data:function(){return p.data().header}},{pageHeaderViewModel:function(h){return _.Z(_.Cda,{data:h.data,
noPadding:!0})}}),_.Z(_.Es,{data:function(){return p.data().contents}},{horizontalShelfViewModel:_.SJ}),_.Z(_.D9,{cond:F,
then:function(){return _.Z("div",{class:"ytOfficialCardViewModelExpandedContent"},_.Z(_.Es,{data:function(){return p.data().expandedContents}},{horizontalShelfViewModel:function(h){return _.Z(_.SJ,{data:h.data,
sizing:"MINI"})}}),_.Z("div",{class:"ytOfficialCardViewModelCollapseButton"},_.Z(_.Es,{data:function(){return p.data().collapseButton}},{buttonViewModel:function(h){return _.Z(_.nV,{data:h.data,
onClick:function(){N(!F())}})}})))},
else:function(){return _.Z("div",{class:"ytOfficialCardViewModelExpandButton"},_.Z(_.Es,{data:function(){return p.data().expandButton}},{buttonViewModel:function(h){return _.Z(_.nV,{data:h.data,
onClick:function(){N(!F())}})}}))}}))},"Qc"),"yt-official-card-view-model",{props:{data:_.G2,
className:_.G2}});var xXJ=_.JR({buttonViewModel:_.nV});_.iK(FaE);_.kL(FaE,"ytw-search-friction-view-model",{propNames:["data"]});_.r3=_.mO(function(p){var x=_.oc(),F,N=(F=_.J().resolve(_.Bw(_.AD)))==null?void 0:F();_.rx(function(){var h=x.value;var c=new wHk,M=new Map(c.JSC$7161_sanitizerTable.globalAttributePolicies);M.set("style",{policyAction:4});c.JSC$7161_sanitizerTable=new ER(c.JSC$7161_sanitizerTable.allowedElements,c.JSC$7161_sanitizerTable.elementPolicies,c.JSC$7161_sanitizerTable.allowedGlobalAttributes,M,c.JSC$7161_sanitizerTable.globallyAllowedAttributePrefixes);var f=["data-time"];if(f===void 0)M=new Set(c.JSC$7161_sanitizerTable.globallyAllowedAttributePrefixes),
M.add("data-"),c.JSC$7161_sanitizerTable=new ER(c.JSC$7161_sanitizerTable.allowedElements,c.JSC$7161_sanitizerTable.elementPolicies,c.JSC$7161_sanitizerTable.allowedGlobalAttributes,c.JSC$7161_sanitizerTable.globalAttributePolicies,M);else{M=new Set(c.JSC$7161_sanitizerTable.allowedGlobalAttributes);f=_.a(f);for(var K=f.next();!K.done;K=f.next()){K=K.value;if(K.indexOf("data-")!==0)throw Error("qa`"+K);M.add(K)}c.JSC$7161_sanitizerTable=new ER(c.JSC$7161_sanitizerTable.allowedElements,c.JSC$7161_sanitizerTable.elementPolicies,
M,c.JSC$7161_sanitizerTable.globalAttributePolicies,c.JSC$7161_sanitizerTable.globallyAllowedAttributePrefixes)}M=new Set(c.JSC$7161_sanitizerTable.allowedGlobalAttributes);M.add("class");c.JSC$7161_sanitizerTable=new ER(c.JSC$7161_sanitizerTable.allowedElements,c.JSC$7161_sanitizerTable.elementPolicies,M,c.JSC$7161_sanitizerTable.globalAttributePolicies,c.JSC$7161_sanitizerTable.globallyAllowedAttributePrefixes);_.ig(h,_.yeC(c.build(),hk$(p.text())));lwr(x.value)});
F={};return _.Z("div",null,_.Z("markdown-div",{class:_.$L("ytwMarkdownDivHost",(F.ytwMarkdownDivDark=N,F.ytwMarkdownDivHostSmall=function(){var h;return((h=p.isSmallText)==null?void 0:h.call(p))||!1},F)),
el:x}))},"Rc");
_.r3.idomCompat=!0;var SMm=_.mO(function(p){var x=p.imageData;var F=_.GD(p.isInList,!1),N=function(){return F()?{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 _.Z("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.Z(_.D9,{cond:function(){return x().image},
then:function(h){return _.Z(_.VE,{data:h,alt:function(){return N().alt},
contentMode:function(){return N().contentMode},
targetWidth:function(){return N().targetWidth},
targetHeight:function(){return N().targetHeight},
className:function(){return N().className}})}}),_.Z("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.Z("div",{class:_.$L("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.Z(_.KQ,{text:function(){return x().title}})),_.Z(_.ft,{each:function(){var h;
return(h=x().description)!=null?h:[]}},function(h){return _.Z("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.Z(EG,{content:h}))})))},"Sc"),rzk=_.mO(function(p){var x=p.list;
var F=function(){var N;return(N=x().items)!=null?N:[]};
return _.Z("div",{class:"ytwGenAiRichTextViewModelListContent"},_.Z(_.D9,{cond:function(){return x().title},
then:function(N){return _.Z("div",{class:_.$L("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.Z(_.KQ,{text:N}))}}),_.Z(_.D9,{cond:function(){return x().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.Z("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.Z(_.ft,{each:F},function(N){return _.Z("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.Z(EG,{content:N,isInList:!0}))}))}}),_.Z(_.D9,{cond:function(){return x().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.Z("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.Z(_.ft,{each:F},function(N){return _.Z("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.Z(EG,{content:N,isInList:!0}))}))}}),_.Z(_.D9,{cond:function(){return x().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.Z("div",{class:"ytwGenAiRichTextViewModelImageList"},_.Z(_.ft,{each:F},function(N){return _.Z("div",{class:"ytwGenAiRichTextViewModelListItem"},_.Z(EG,{content:N,isInList:!0}))}))}}))},"Tc"),E$8=_.mO(function(p){var x=p.table;
return _.Z("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.Z("thead",null,_.Z("tr",null,_.Z(_.ft,{each:function(){var F,N;return(N=(F=x().header)==null?void 0:F.cells)!=null?N:[]}},function(F){return _.Z("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.Z(_.ft,{each:function(){return F.contents}},function(N){return _.Z(EG,{content:N})}))}))),_.Z("tbody",null,_.Z(_.ft,{each:function(){var F;
return(F=x().rows)!=null?F:[]}},function(F){return _.Z("tr",null,_.Z(_.ft,{each:function(){return F.cells}},function(N){return _.Z("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.Z(_.ft,{each:function(){return N.contents}},function(h){return _.Z(EG,{content:h})}))}))})))},"Uc"),EG=_.mO(function(p){var x=p.content;
var F=_.GD(p.isInList,!1),N=function(){var h,c;return(c=(h=x().contentBlock)==null?void 0:h.contents)!=null?c:[]};
return _.Z("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.Z(_.D9,{cond:function(){return x().text},
then:function(h){return _.Z(_.KQ,{className:"ytwGenAiRichTextViewModelText",text:h})}}),_.Z(_.D9,{cond:function(){return x().image},
then:function(h){return _.Z(SMm,{imageData:h,isInList:F})}}),_.Z(_.D9,{cond:function(){return x().list},
then:function(h){return _.Z(rzk,{list:h})}}),_.Z(_.D9,{cond:function(){return x().contentBlock},
then:function(){return _.Z("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.Z(_.ft,{each:N},function(h){return _.Z(EG,{content:h,isInList:!1})}))}}),_.Z(_.D9,{cond:function(){return x().table},
then:function(h){return _.Z(E$8,{table:h})}}))},"Vc"),Xrt=_.mO(function(p){var x={};
x=_.pQ("ytwGenAiRichTextViewModelHost",(x.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.iO("search_overview_link_style")),x));return _.Z("gen-ai-rich-text-view-model",{class:x},_.Z(EG,{content:function(){return p.data().content}}))},"Wc");_.iK(cip);_.iK(Wc);_.g$m=_.mO(function(p){var x=p.data;var F=function(){var b;return((b=x().loadingUi)!=null?b:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},N=function(){return x().isLoading&&(F()==="UNSPECIFIED"||F()==="GHOST_CARD")},h=function(){return!x().isLoading},c=function(){return!!x().content&&!x().contents},M=function(){return!!x().contents},f=function(){return!!x().nextQueryButtons},K=function(){return x().isLoading&&F()==="INVISIBLE"},t=function(){var b,A;
return(A=(b=x().headerIcon)==null?void 0:b.iconType)!=null?A:""},d=function(){var b;
return(b=x().content)!=null?b:""},v=function(){return!!x().sourcesSection},C,X=!((C=_.J().resolve(_.Bw(_.AD)))==null||!C()),Q=_.Kn(function(){var b=[],A=x().contents;
if(A)for(var Y=0;Y<A.length;Y++){var O=_.r(A&&A[Y],R2v);O&&b.push(O)}return b},void 0,"ycU97e");
_.J9(function(){x().isLoading||_.wH("so_re",void 0,"search_overview_answer")});
return _.Z("ytd-overview-answer-view-model",{class:function(){var b={};b=(b.ytdOverviewAnswerViewModelHost=!0,b.ytdOverviewAnswerViewModelDarkBackground=X&&!K(),b.ytdOverviewAnswerViewModelLightBackground=!X&&!K(),b);return _.pQ(b)}},_.Z(_.D9,{cond:function(){return!K()},
then:function(){return _.Z(_.TG,null,_.Z("h2",null,_.Z("div",{class:"ytdOverviewAnswerViewModelHeader"},_.Z(_.D9,{cond:t,then:function(b){return _.Z("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.Z(_.DS,{icon:b}))}}),_.Z("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.Z("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return x().headerText}),_.Z("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.Z(_.KQ,{text:function(){return x().headerSubtext}}))))),_.Z(_.D9,
{cond:N,
then:function(){return cip()}}),_.Z(_.D9,{cond:h,
then:function(){return _.Z(_.TG,null,_.Z(_.D9,{cond:c,then:function(){return _.Z("div",{class:"ytdOverviewAnswerViewModelText"},_.Z(_.r3,{text:d,isSmallText:!0}))}}),_.Z(_.D9,{cond:M,
then:function(){return _.Z("div",{class:"ytdOverviewAnswerViewModelRichText"},_.Z(_.ft,{each:Q},function(b){return _.Z(Xrt,{data:b})}))}}),_.Z(_.D9,{cond:f,
then:function(){return _.Z("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.Z(_.Es,{data:function(){return x().nextQueryButtons}},{buttonViewModel:function(b){return _.Z(_.nV,{data:b.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.SJ}))}}),_.Z("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.Z("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.Z(_.D9,{cond:function(){return!!_.r(x().likeButtonViewModel,y3k)&&!!_.r(x().dislikeButtonViewModel,bu6)},
then:function(){return _.Z("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.Z(_.pV6,{data:function(){return _.r(x().likeButtonViewModel,y3k)},
disableIconAnimation:!0}),_.Z(_.ePI,{data:function(){return _.r(x().dislikeButtonViewModel,bu6)}}))}})),_.Z(_.D9,{cond:function(){var b;
return(b=x().sourcesSection)==null?void 0:b.headerText},
then:function(b){return _.Z("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.Z(_.KQ,{text:b}))}})),_.Z(_.D9,{cond:v,
then:function(){return _.Z("div",{class:"ytdOverviewAnswerViewModelSources"},_.Z(_.Es,{data:function(){var b;return(b=x().sourcesSection)==null?void 0:b.sourcesShelf}},{buttonViewModel:_.nV,
horizontalShelfViewModel:function(b){return _.Z(_.SJ,{data:b.data,includeMargin:!0,hasPeek:!0})}}))}}),_.Z(_.D9,{cond:function(){return x().disclaimerText},
then:function(){return _.Z("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.Z(_.KQ,{text:function(){return x().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Xc");var QJk=_.mO(function(p){var x=p.data;var F=p.active;var N=_.oc();_.rx(function(){var h,c,M,f=((h=_.J().resolve(_.Bw(_.AD)))==null?0:h())?(c=x())==null?void 0:c.darkThemeColorPalette:(M=x())==null?void 0:M.lightThemeColorPalette;f&&(f.invertedBackground&&N.value.style.setProperty("--timestamp-active-background-color",_.QK(f.invertedBackground)),f.additiveBackground&&N.value.style.setProperty("--timestamp-background-color",_.QK(f.additiveBackground)),f.textPrimaryInverse&&N.value.style.setProperty("--timestamp-active-color",
_.QK(f.textPrimaryInverse)),f.textSecondary&&N.value.style.setProperty("--timestamp-color",_.QK(f.textSecondary)))},"PUzFSd");
p={};return _.Z("transcript-segment-view-model",{class:_.$L("ytwTranscriptSegmentViewModelHost",(p.ytwTranscriptSegmentViewModelHostActive=F,p.ytwTranscriptSegmentViewModelHostModern=_.S("enable_timeline_view_modern_transcript")||_.S("enable_timeline_view_modern_transcript_fe"),p)),el:N},_.Z(_.D9,{cond:function(){var h;return(h=x())==null?void 0:h.timestamp},
then:function(h){var c={};return _.Z("div",{class:_.$L("ytwTranscriptSegmentViewModelTimestamp",(c.ytwTranscriptSegmentViewModelTimestampActive=F,c))},h)}}),_.Z(_.KQ,{text:function(){var h,c,M;
return(M=(h=x())==null?void 0:h.attributedText)!=null?M:{content:(c=x())==null?void 0:c.simpleText}},
linkInheritColor:!0}))},"Yc");var zEX=_.mO(function(p){var x=p.data;return _.Z("div",{class:"yt-video-attributes-section-view-model__header"},_.Z("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return x().headerTitle}),_.Z(_.D9,{cond:function(){return x().headerSubtitle},
then:function(){return _.Z("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return x().headerSubtitle})}}))},"Zc"),sJc=_.mO(function(p){function x(Q){return Math.max(Math.min(Q,0),t()-f())}
var F=p.data;var N=_.oc(),h=_.oc();p=_.a(_.hu(0,void 0,"ucDlDf"));var c=p.next().value,M=p.next().value,f=c;p=_.a(_.hu(0,void 0,"lHzSub"));c=p.next().value;var K=p.next().value,t=c;p=_.a(_.hu(0,void 0,"Q8fDIe"));var d=p.next().value,v=p.next().value;_.J9(function(){var Q=function(){M(h.value.scrollWidth);K(N.value.clientWidth)};
Q();if(window.ResizeObserver){var b=new ResizeObserver(Q);b.observe(N.value);_.E_(function(){b.disconnect()})}});
var C=function(){v(x(d()+t()))},X=function(){v(x(d()-t()))};
return _.Z("yt-video-attributes-section-view-model",null,_.Z("div",{class:"yt-video-attributes-section-view-model"},_.Z(_.D9,{cond:function(){return F().headerTitle},
then:function(){return _.Z(zEX,{data:F})}}),_.Z("div",{class:_.$L("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:N},_.Z("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.a4({transform:function(){var Q=d();_.sd("HTML_DIR")==="rtl"&&(Q*=-1);return"translateX("+Q+"px)"}}),
el:h},_.Z(_.Es,{data:function(){return F().videoAttributeViewModels}},{videoAttributeViewModel:Rzv}))),_.Z(_.Es,{data:function(){return F().footerButton}},{buttonViewModel:function(Q){return _.Z(_.nV,{data:Q.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.Z(_.D9,{cond:function(){return d()<0&&F().previousButton},
then:function(){return _.Z("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.Z(_.Es,{data:function(){return F().previousButton}},{buttonViewModel:function(Q){return _.Z(_.nV,{data:Q.data,
onClick:C})}}))}}),_.Z(_.D9,{cond:function(){return d()>t()-f()&&F().nextButton},
then:function(){return _.Z("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.Z(_.Es,{data:function(){return F().nextButton}},{buttonViewModel:function(Q){return _.Z(_.nV,{data:Q.data,
onClick:X})}}))}})))},"$c");
sJc.idomCompat=!0;var n$8=_.mO(function(p){var x=p.data;var F=p.active;var N={},h={};return _.Z("timeline-item-view-model",{class:_.$L("ytwTimelineItemViewModelHost",(N.ytwTimelineItemViewModelHostChapterChild=p.chapterChild,N.ytwTimelineItemViewModelModern=_.S("enable_timeline_view_modern_transcript")||_.S("enable_timeline_view_modern_transcript_fe"),N))},_.Z("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.Z("div",{class:_.$L("ytwTimelineItemViewModelTimestamp",(h.ytwTimelineItemViewModelTimestampActive=
F,h))},function(){return x().timestamp})),_.Z("div",{class:"ytwTimelineItemViewModelContentItems"},_.Z(_.Es,{data:function(){return x().contentItems}},{transcriptSegmentViewModel:function(c){return _.Z(QJk,{data:c.data,
active:F})},
videoAttributesSectionViewModel:sJc})))},"ad");var yzX=_.mO(function(p){var x=p.data;p={};return _.Z("timeline-chapter-view-model",{class:_.$L("ytwTimelineChapterViewModelHost")},_.Z("div",{class:_.$L("ytwTimelineChapterViewModelTitle",(p.ytwTimelineChapterViewModelModern=_.S("enable_timeline_view_modern_transcript")||_.S("enable_timeline_view_modern_transcript_fe"),p))},function(){return x().title}),_.Z(_.Es,{data:function(){return x().contents}},{timelineItemViewModel:function(F){return _.Z(n$8,{data:F.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(F){return _.Z(sJc,{data:F.data})}}))},"bd");var bp8=_.mO(function(p){var x=p.data;var F=_.oc(),N=_.MN(_.SVZ,function(){var c;return(c=x().markersEngagementPanelSyncEntityKey)!=null?c:""}),h=function(){var c;
return((c=N())==null?void 0:c.activeItemIndex)===x().index};
p=_.h0(function(c){var M,f,K,t,d;return _.D(function(v){if(v.nextAddress==1)return c.stopPropagation(),_.vRM(_.Yw(c),F.value,["A".toString(),"BUTTON".toString()])?v.return():(M=_.g$(x().onTap))?_.q(v,_.xw(),2):v.return();f=v.yieldResult;t=(K=_.r(M,_.B7))==null?void 0:K.startTimeSeconds;t===void 0||(d=f)!=null&&d.seekTo(t,!0);_.JB(v)})});
return _.Z("macro-markers-panel-item-view-model",{class:_.$L("ytwMacroMarkersPanelItemViewModelHost",{"is-active":h}),el:F,"on:click":p,tabindex:0},_.Z(_.Es,{data:function(){var c;return(c=x())==null?void 0:c.item}},{timelineChapterViewModel:function(c){return _.Z(yzX,{data:c.data,
active:h})},
timelineItemViewModel:function(c){return _.Z(n$8,{data:c.data,active:h})},
videoAttributeViewModel:Rzv}))},"cd");
bp8.idomCompat=!0;_.o7(bp8,"macro-markers-panel-item-view-model",{props:{data:_.G2}});_.o7(sJc,"yt-video-attributes-section-view-model",{props:{data:_.G2}});var Azm=_.mO(function(p){var x=function(){var F,N,h;return(h=(F=p.data().leadingLogoAccessibility)==null?void 0:(N=F.accessibilityData)==null?void 0:N.label)!=null?h:""};
return _.Z("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.Z(_.D9,{cond:function(){return p.data().leadingLogo},
then:function(F){return _.Z(_.VE,{className:"ytwFantasySectionHeaderViewModelLogo",data:F,alt:x})}}),_.Z("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.Z(_.KQ,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return p.data().title}}),_.Z(_.KQ,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return p.data().subtitle}})),_.Z(_.Es,{data:function(){return p.data().trailingButton}},{buttonViewModel:function(F){return _.Z(_.nV,{data:F.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"dd");var uw8=_.mO(function(p){var x={};x=_.$L("ytwFantasyTeamViewModelHost",(x.ytwFantasyTeamViewModelCompact=function(){var h;return!((h=p.compact)==null||!h.call(p))},x.ytwFantasyTeamViewModelUser=function(){return p.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},x.ytwFantasyTeamViewModelOpponent=function(){return p.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},x));
var F=function(){var h,c,M;return(M=(h=p.data().teamLogoAccessibility)==null?void 0:(c=h.accessibilityData)==null?void 0:c.label)!=null?M:""},N=_.MN(Emd,function(){return p.data().teamEntityKey});
return _.Z("ytw-fantasy-team-view-model",{class:x},_.Z(_.D9,{cond:function(){return p.data().teamLogo},
then:function(h){return _.Z(_.VE,{className:"ytwFantasyTeamViewModelLogo",data:h,alt:F})}}),_.Z("div",{class:"ytwFantasyTeamViewModelMetadata"},_.Z("div",{class:"ytwFantasyTeamViewModelHeader"},_.Z(_.KQ,{className:"ytwFantasyTeamViewModelScore",
text:function(){var h;return(h=N())==null?void 0:h.score}}),_.Z(_.DS,{icon:function(){var h;
return(h=N())==null?void 0:h.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.Z(_.KQ,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var h;return(h=N())==null?void 0:h.projectedScore}})),_.Z(_.KQ,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return p.data().primaryText}}),_.Z(_.KQ,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return p.data().secondaryText}}),_.Z(_.KQ,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return p.data().tertiaryText}})),_.Z(_.KQ,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var h;return(h=N())==null?void 0:h.score}}))},"ed");_.o7(_.mO(function(p){return _.Z("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.Z("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.Z(_.Es,{data:function(){return p.data().summaryHeader}},{fantasySectionHeaderViewModel:Azm})),_.Z(_.Es,{data:function(){return p.data().userTeam}},{fantasyTeamViewModel:uw8}),_.Z(_.Es,{data:function(){return p.data().opponentTeam}},{fantasyTeamViewModel:uw8}))},"fd"),"fantasy-league-summary-view-model",{props:{data:_.G2}});var YMm=_.mO(function(p){var x=_.Vg(p,{shape:{},useCustomTabRenderable:!1}),F=x.shape;x=x.useCustomTabRenderable;var N=p.customTabRenderable,h=function(){return F().disabled},c=function(){return F().selected},M=function(){return F().title},f=_.oc();
p=_.h0(function(d){var v;if(!h()&&((v=F().aTagConfig)==null?0:v.onclick))F().aTagConfig.onclick(d);return!1});
var K=_.h0(function(d){if(d.key==="Enter"||d.key==="ArrowUp"||d.key==="ArrowDown")d.preventDefault(),f.value.click();return!1}),t={};
return _.Z("yt-tab-shape",{class:_.$L("yt-tab-shape-wiz",function(){return F().className},(t["yt-tab-shape-wiz__tab--last-tab"]=function(){return F().isLastTab},t["yt-tab-shape-wiz--host-disabled"]=h,t["yt-tab-shape-wiz--host-clickable"]=!N,t)),
role:N?void 0:"tab","aria-selected":c!=null?c:!1,"aria-disabled":h,tabindex:N?void 0:0,"on:click":p,"on:keydown":K,el:f,"tab-identifier":function(){return F().identifier},
"tab-title":M},_.Z(_.D9,{cond:x,then:function(){return N()},
else:function(){var d={},v={};return _.Z(_.TG,null,_.Z("div",{class:_.$L("yt-tab-shape-wiz__tab",(d["yt-tab-shape-wiz__tab--tab-selected"]=c,d))},M),_.Z("div",{class:_.$L("yt-tab-shape-wiz__tab-bar",(v["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=c,v))}))}}))},"gd");
YMm.idomCompat={callbacks:{customTabRenderable:!0}};_.GBX=_.mO(function(p){var x=p.shape;p=_.a(_.hu(48,void 0,"S7XsSd"));var F=p.next().value,N=p.next().value;p=_.a(_.hu(0,void 0,"CzMxb"));var h=p.next().value,c=p.next().value,M=function(){return x().tabs},f=_.oc(),K=function(){var t,d;
return(d=(t=M())==null?void 0:t.findIndex(function(v){return v.selected}))!=null?d:-1};
_.J9(function(){var t=f.value.querySelectorAll("yt-tab-shape"),d=K()>-1?t[K()]:void 0;requestAnimationFrame(function(){N((d==null?void 0:d.getBoundingClientRect().width)||0)})});
_.rx(function(){var t=K();requestAnimationFrame(function(){var d=f.value.querySelectorAll("yt-tab-shape"),v;N(((v=t>-1?d[t]:void 0)==null?void 0:v.getBoundingClientRect().width)||0);for(var C=v=0;C<t;C++)v+=d[C].offsetWidth+24;_.sd("HTML_DIR")==="rtl"&&(v=-v);c(v)})});
p={};return _.Z("yt-tab-group-shape",{class:_.$L("yt-tab-group-shape-wiz",(p["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return x().isOverflowHidden},p)),
el:f},_.Z(_.D9,{cond:M,then:function(t){return _.Z(_.TG,null,_.Z("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.Z(_.ft,{each:t},function(d,v){return _.Z(YMm,{shape:function(){return Object.assign({},d,{isLastTab:v()===t().length-1})},
customTabRenderable:d.customTabRenderable,useCustomTabRenderable:!!d.customTabRenderable})})),_.Z(wrm,{width:F,
sliderOffset:h}))}}))},"hd");
_.GBX.idomCompat=!0;var wrm=_.mO(function(p){var x=_.GD(p.sliderOffset,0),F=p.width;return _.Z("div",{class:"yt-tab-group-shape-wiz__slider",style:_.a4({width:function(){return F()+"px"},
transform:function(){return"translateX("+x()+"px)"}})})},"id");var Vpt=_.mO(function(p){var x=function(){var c,M,f;return(f=(c=p.data().playerLogoAccessibility)==null?void 0:(M=c.accessibilityData)==null?void 0:M.label)!=null?f:""},F=_.MN(XGp,function(){return p.data().playerEntityKey}),N={};
N=_.$L("ytwFantasyPlayerViewModelHost",(N.ytwFantasyPlayerViewModelPlaying=function(){var c;return!((c=F())==null||!c.isPlayerPlaying)},N.ytwFantasyPlayerViewModelOnField=function(){var c;
return((c=F())==null?void 0:c.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},N.ytwFantasyPlayerViewModelRedZone=function(){var c;
return((c=F())==null?void 0:c.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},N));
var h=function(){var c,M,f,K=((c=_.J().resolve(_.Bw(_.AD)))==null?0:c())?(M=p.data().playerLogoBackgroundColor)==null?void 0:M.darkTheme:(f=p.data().playerLogoBackgroundColor)==null?void 0:f.lightTheme;return K===void 0?"":_.QK(K)};
return _.Z("ytw-fantasy-player-view-model",{class:N},_.Z(_.D9,{cond:function(){return p.data().playerLogo},
then:function(c){return _.Z("div",{class:"ytwFantasyPlayerViewModelLogo"},_.Z("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.Z(_.VE,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.a4({"background-color":h}),data:c,alt:x})),_.Z("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.Z(_.DS,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.Z("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.Z("div",{class:"ytwFantasyPlayerViewModelHeader"},_.Z(_.KQ,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var c;return(c=p.data())==null?void 0:c.playerNameText}}),_.Z(_.KQ,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var c;return(c=p.data())==null?void 0:c.playerDescriptionText}})),_.Z("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.Z(_.KQ,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var c;return(c=F())==null?void 0:c.gamePeriodText}}),_.Z(_.KQ,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var c;return(c=p.data())==null?void 0:c.opponentTeamText}}),_.Z(_.KQ,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var c;return(c=F())==null?void 0:c.gameStatusText}}),_.Z(_.KQ,{className:_.$L("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var c;return(c=F())==null?void 0:c.playerStatusText}})),_.Z("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.Z(_.KQ,{text:function(){var c;
return(c=F())==null?void 0:c.playerStatsText}}))),_.Z(_.KQ,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var c;return(c=F())==null?void 0:c.fantasyScore}}))},"jd");var WHm=_.mO(function(p){return _.Z("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.Z(_.D9,{cond:function(){return p.data().players},
then:function(x){return _.Z(_.Es,{data:x},{fantasyPlayerViewModel:Vpt})}}))},"kd");var Hpe=_.mO(function(p){var x=_.a(_.ct(function(){var h;return(h=p.data().selectedTabIdentifierKey)!=null?h:""})),F=x.next().value,N=x.next().value;
_.d1(function(){var h;(h=p.setSelectedTabSignal)==null||h.call(p,F)});
return _.Z("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.Z("div",{class:"ytTabbedViewModelTabGroup"},_.Z(_.GBX,{shape:function(){var h=p.data(),c=[],M={tabs:c};if(!h.tabs)return M;h=_.a(h.tabs);for(var f=h.next(),K={};!f.done;K={tabViewModel:void 0},f=h.next())if(K.tabViewModel=_.r(f.value,jOC),K.tabViewModel){var t=f=void 0;c.push({aTagConfig:{onclick:function(d){return function(){var v;N((v=d.tabViewModel.tabIdentifier)!=null?v:"")}}(K)},
identifier:K.tabViewModel.tabIdentifier,selected:F()===K.tabViewModel.tabIdentifier,title:(t=(f=K.tabViewModel.title)==null?void 0:f.content)!=null?t:""})}return M}})),_.Z(_.Es,{data:function(){var h,c=_.a((h=p.data().tabs)!=null?h:[]);
for(h=c.next();!h.done;h=c.next())if((h=_.r(h.value,jOC))&&h.tabIdentifier===F())return h.content}},{fantasyRosterViewModel:WHm}))},"ld");_.o7(_.mO(function(p){var x=_.a(awH()),F=x.next().value,N=x.next().value;return _.Z("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.Z(_.KQ,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return p.data().title}}),_.Z(_.D9,{cond:function(){return p.data().tabbedViewModel},
then:function(h){return _.Z(_.Es,{data:h},{tabbedViewModel:function(c){return _.Z(Hpe,{data:c.data,setSelectedTabSignal:N})}})}}),_.Z(_.D9,{cond:function(){var h,c=(h=_.r(p.data().tabbedViewModel,LeD))==null?void 0:h.tabs;
h=_.r(c==null?void 0:c[0],jOC);c=_.r(c==null?void 0:c[1],jOC);var M=h==null?void 0:h.tabIdentifier;if(F()===M){var f,K;if(!((f=_.r(h==null?void 0:h.content,hUI))==null?0:(K=f.players)==null?0:K.length))return p.data().noUserTeamPlayersText}else{var t,d;if(!((t=_.r(c==null?void 0:c.content,hUI))==null?0:(d=t.players)==null?0:d.length))return p.data().noOpponentTeamPlayersText}},
then:function(h){return _.Z(_.KQ,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:h})}}))},"md"),"ytw-fantasy-matchup-view-model",{props:{data:_.G2}});_.o7(_.mO(function(p){return _.Z("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.Z(_.KQ,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return p.data().title}}),_.Z(_.D9,{cond:function(){return p.data().matchupTeamPairs},
then:function(x){return _.Z(_.ft,{each:x,keyBy:"INDEX"},function(F){return _.Z("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.Z(_.Es,{data:function(){return[F().firstTeam,F().secondTeam]}},{fantasyTeamViewModel:function(N){return _.Z(uw8,{data:N.data,
compact:!0})}}))})}}))},"nd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.G2}});_.o7(_.mO(function(p){var x=function(){var h,c,M;return(M=(h=p.data().userLogoAccessibility)==null?void 0:(c=h.accessibilityData)==null?void 0:c.label)!=null?M:""},F=function(){var h,c,M;
return(M=(h=p.data().opponentLogoAccessibility)==null?void 0:(c=h.accessibilityData)==null?void 0:c.label)!=null?M:""},N=_.MN(rpp,function(){return p.data().entityKey});
return _.Z("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.Z("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.Z(_.D9,{cond:function(){return p.data().userLogo},
then:function(h){return _.Z(_.VE,{className:"ytwFantasyWinProbabilityViewModelLogo",data:h,alt:x})}}),_.Z("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.Z(_.KQ,{text:function(){return p.data().title}})),_.Z(_.D9,{cond:function(){return p.data().opponentLogo},
then:function(h){return _.Z(_.VE,{className:"ytwFantasyWinProbabilityViewModelLogo",data:h,alt:F})}})),_.Z("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.Z("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.Z(_.KQ,{text:function(){var h;
return(h=N())==null?void 0:h.userWinNumberLabel}})),_.Z("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.Z("div",{class:_.$L("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.a4({flex:function(){var h,c;return(c=(h=N())==null?void 0:h.userWinNumber)!=null?c:50}})}),_.Z("div",{class:_.$L("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.a4({flex:function(){var h,c;return(c=(h=N())==null?void 0:h.opponentWinNumber)!=null?c:50}})})),_.Z("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.Z(_.KQ,{text:function(){var h;
return(h=N())==null?void 0:h.opponentWinNumberLabel}}))))},"od"),"fantasy-win-probability-view-model",{props:{data:_.G2}});_.Ei("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var mmH=function(){var p=_.m.apply(this,arguments)||this;p.darkerPanels=_.S("web_watch_darker_panels");p.commentsHidePanelButton=!1;p.isWatchGrid=!1;p.continuationShowButton=!1;p.isSearch=!1;p.isConstrainedList=!1;p.isWatch=!1;p.eligibleToSwitchToGrid=!1;p.epRestyle=!1;p.isCarouselInFeed=!0;p.topSpacingZero=!1;p.continuationIsInitialLoad=!0;p.enableSqueezebackPanels=_.S("web_shorts_enable_squeezeback_panels");p.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");p.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};p.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return p};
_.E(mmH,_.m);_.l=mmH.prototype;_.l.updateLockupContainerTypes=function(p){if(this.eligibleToSwitchToGrid){var x;(x=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||x.forEach(function(F){F.containerType=p})}};
_.l.getItemsPath=function(){return"data.contents"};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.l.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.S("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.S("kevlar_low_priority_continuation")}}};
_.l.created=function(){this.JSC$14360_cachedViewportHeight=_.sd("initialInnerHeight")||window.innerHeight};
_.l.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var p=_.n(this.hostElement).querySelector("ytd-comments-header-renderer");p&&(p.hidePanelButton=this.commentsHidePanelButton)}};
_.l.onRetrieveLocation=function(p,x){this.containsComments()&&(this.firstCommentsLoaded=x.hasComments=!0)};
_.l.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.l.onLoadReloadContinuation=function(p,x){var F=this;p.stopPropagation();this.isReloading=!0;_.hG(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(N){var h=_.J().resolve(_.CR);N=x(N);h.postData(N).then(function(c){F.onReloadContinuationData(c)})}})};
_.l.onReloadContinuationData=function(p){if(p=this.get("response.continuationContents.itemSectionContinuation",p)||this.get("response.contents.itemSectionRenderer",p)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",p)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",p))this.set("data.contents",p.contents||p.results),p.header&&this.set("data.header",p.header),this.set("data.continuations",
p.continuations||[]);this.isReloading=!1};
_.l.computeContentsClass=function(p){return p?"reloading":""};
_.l.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.l.computeSectionIdentifier=function(p){return p==null?void 0:p.sectionIdentifier};
_.l.computeFitContainer=function(p){return(p==null?void 0:p.sectionIdentifier)==="youchat-item-section"};
_.l.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.S("kevlar_disable_comments_auto_load")};
_.l.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.l.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.l.computeHasDestinationShelfRenderer=function(p){var x,F;return!!(p==null?0:(x=p.contents)==null?0:(F=x[0])==null?0:F.destinationShelfRenderer)};
_.l.computeHasSectionGroupViewModel=function(p){var x,F;return!!(p==null?0:(x=p.contents)==null?0:(F=x[0])==null?0:F.sectionGroupViewModel)};
_.l.computeStaticCommentsHeader=function(p){return p&&this.containsComments()};
_.l.computeEpRestyle=function(p){return _.S("web_ep_restyling")&&p&&this.containsComments()};
_.l.computeIsContinuationCommentSection=function(p){return(p==null?void 0:p.targetId)==="shorts-engagement-panel-comments-section"||(p==null?void 0:p.targetId)==="comments-section"};
_.l.computeSuppressPaddingDisclaimer=function(){var p,x,F,N;return!!((p=this.data)==null?0:(x=p.contents)==null?0:(F=x[0])==null?0:(N=F.productListHeaderRenderer)==null?0:N.suppressPaddingDisclaimer)};
_.l.computeHeaderStyle=function(p){switch(p==null?void 0:p.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.l.dataChanged=function(){this.firstCommentsLoaded=!1};
_.l.observeDataContentsLength=function(){var p,x;((p=this.data)==null?0:(x=p.contents)==null?0:x.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.l.onYtDismissibleItemDismissedChange=function(p){this._setItemDismissed(p.type==="yt-dismissible-item-dismissed")};
_.l.triggerContinuations=function(){for(var p=_.n(this.hostElement).querySelector("#continuations").children,x=0;x<p.length;x++)p[x].trigger()};
_.l.triggerInitialContinuations=function(){for(var p=_.n(this.hostElement).querySelector("#continuations").children,x=0;x<p.length;x++)p[x].triggerIfNotPreviouslyTriggered()};
_.l.handleYtItemSectionContinuation=function(p,x){var F;x&&((F=this.data)==null?void 0:F.sectionIdentifier)!==x||(this.set("data.continuations",[p]),this.triggerContinuations())};
_.l.handleYtItemSectionReplace=function(p,x){var F;x&&((F=this.data)==null?void 0:F.sectionIdentifier)!==x||(this.set("data.contents",p),this.set("data.continuations",[]))};
_.l.computeUseHeightHack=function(p){return p&&!_.S("kevlar_disable_height_hack")};
_.l.computeTopSpacingZero=function(p){return p};
_.l.continuationShowButtonChanged=function(){var p=_.n(this.hostElement).querySelector("ytd-continuation-item-renderer");p&&(p.showButton=this.continuationShowButton)};
_.l.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Vx("data-changed",this.data))};
_.R8.Object.defineProperties(mmH.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.S("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 p,x,F;return!!((p=this.data)==null?0:(x=p.contents)==null?0:(F=x[0])==null?0:F.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var p,x,F,N,h,c,M;return!!((p=this.data)==null?0:(x=p.contents)==null?0:(F=x[0])==null?0:(N=F.shelfRenderer)==null?0:(h=N.content)==null?0:(c=h.gridRenderer)==null?0:(M=c.targetId)==null?0:M.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return!!((p=this.data)==null?0:(x=p.contents)==null?0:(F=x[0])==null?0:F.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return!!((p=this.data)==null?0:(x=p.contents)==null?0:(F=x[0])==null?0:F.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.iO("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.S("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.S("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14360_cachedViewportHeight-130)/150)},
set:function(){}}});
var XF=mmH;XF.prototype.dataChangedForBinding=XF.prototype.dataChangedForBinding;XF.prototype.continuationShowButtonChanged=XF.prototype.continuationShowButtonChanged;XF.prototype.onYtDismissibleItemDismissedChange=XF.prototype.onYtDismissibleItemDismissedChange;XF.prototype.observeDataContentsLength=XF.prototype.observeDataContentsLength;XF.prototype.dataChanged=XF.prototype.dataChanged;XF.prototype.onServiceRequestCompleted=XF.prototype.onServiceRequestCompleted;
XF.prototype.onLoadReloadContinuation=XF.prototype.onLoadReloadContinuation;XF.prototype.onRetrieveLocation=XF.prototype.onRetrieveLocation;XF.prototype.commentsHidePanelButtonChanged=XF.prototype.commentsHidePanelButtonChanged;XF.prototype.updateLockupContainerTypes=XF.prototype.updateLockupContainerTypes;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],XF.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],XF.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],XF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.Iz.YtLazyListBehavior),_.k("design:type",Object)],XF.prototype,"ytLazyListBehavior",void 0);_.B([_.u(_.Wy.YtNextContinuationBehavior),_.k("design:type",Object)],XF.prototype,"ytNextContinuationBehavior",void 0);
_.B([_.u(_.Vw),_.k("design:type",Object)],XF.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],XF.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],XF.prototype,"ytdReduxBehavior",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],XF.prototype,"darkerPanels",void 0);_.B([_.H(),_.k("design:type",Object)],XF.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Boolean)],XF.prototype,"engagementPanel",void 0);_.B([_.H(),_.k("design:type",Object)],XF.prototype,"commentsHidePanelButton",void 0);_.B([_.H(),_.k("design:type",Object)],XF.prototype,"isWatchGrid",void 0);_.B([_.H(),_.k("design:type",Object)],XF.prototype,"continuationShowButton",void 0);_.B([_.H({computed:"computeIsContinuationCommentSection(data)"}),_.k("design:type",Boolean)],XF.prototype,"continuationIsCommentsSection",void 0);
_.B([_.H({value:!0}),_.k("design:type",Boolean)],XF.prototype,"autoFill",void 0);_.B([_.H(),_.k("design:type",Boolean)],XF.prototype,"continuationDisablePrescanVisibility",void 0);_.B([_.H(),_.k("design:type",Boolean)],XF.prototype,"isReloading",void 0);_.B([_.H(),_.k("design:type",Object)],XF.prototype,"isSearch",void 0);_.B([_.H(),_.k("design:type",Object)],XF.prototype,"isConstrainedList",void 0);_.B([_.H(),_.k("design:type",Object)],XF.prototype,"isWatch",void 0);
_.B([_.H(),_.k("design:type",Object)],XF.prototype,"eligibleToSwitchToGrid",void 0);_.B([_.H({selector:_.br}),_.k("design:type",Object)],XF.prototype,"isGridViewEnabled",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.k("design:type",Object)],XF.prototype,"epRestyle",void 0);_.B([_.w("isWatch"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],XF.prototype,"hideShortsShelfHeader",null);
_.B([_.w("isSearch","isWatch"),_.k("design:type",String),_.k("design:paramtypes",[])],XF.prototype,"thumbnailWidth",null);_.B([_.w("isSearch","isWatch"),_.k("design:type",String),_.k("design:paramtypes",[])],XF.prototype,"sizing",null);_.B([_.w("isWatch","isGridViewEnabled","data"),_.H({reflectToAttribute:!0}),_.k("design:type",Number),_.k("design:paramtypes",[])],XF.prototype,"lockupContainerType",null);
_.B([_.W("lockupContainerType","data"),_.k("design:type",Function),_.k("design:paramtypes",[Number]),_.k("design:returntype")],XF.prototype,"updateLockupContainerTypes",null);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],XF.prototype,"pageSubtype",void 0);_.B([_.H({computed:"computeContainerWidth()"}),_.k("design:type",Number)],XF.prototype,"containerWidth",void 0);_.B([_.H(),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],XF.prototype,"isPlaylist",null);
_.B([_.H(),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],XF.prototype,"isClipList",null);_.B([_.H(),_.k("design:type",Object)],XF.prototype,"isCarouselInFeed",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],XF.prototype,"isPlaylistVideoContainer",null);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],XF.prototype,"isSearchFrictionPage",null);
_.B([_.H({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.k("design:type",Boolean)],XF.prototype,"useHeightHack",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.k("design:type",Object)],XF.prototype,"topSpacingZero",void 0);_.B([_.H({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.k("design:type",Boolean)],XF.prototype,"showButton",void 0);
_.B([_.H(),_.k("design:type",Boolean)],XF.prototype,"firstCommentsLoaded",void 0);_.B([_.H(),_.k("design:type",Object)],XF.prototype,"continuationIsInitialLoad",void 0);_.B([_.H(),_.k("design:type",Boolean)],XF.prototype,"isSearchDova",void 0);_.B([_.H({reflectToAttribute:!0,readOnly:!0}),_.k("design:type",Boolean)],XF.prototype,"itemDismissed",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.k("design:type",String)],XF.prototype,"sectionIdentifier",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.k("design:type",String)],XF.prototype,"fitContainer",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.k("design:type",Boolean)],XF.prototype,"hasDestinationShelfRenderer",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.k("design:type",Boolean)],XF.prototype,"staticCommentsHeader",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],XF.prototype,"enableSqueezebackPanels",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],XF.prototype,"enableAnchoredPanel",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.k("design:type",Boolean)],XF.prototype,"hasSectionGroupViewModel",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.k("design:type",Boolean)],XF.prototype,"suppressDisclaimerSeparator",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.k("design:type",String)],XF.prototype,"headerStyle",void 0);_.B([_.w("isSearch"),_.k("design:type",Object),_.k("design:paramtypes",[])],XF.prototype,"lockupExperiments",null);
_.B([_.w("isSearch"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],XF.prototype,"typographyBump",null);_.B([_.Ff("#header"),_.k("design:type",HTMLElement)],XF.prototype,"header",void 0);_.B([_.W("commentsHidePanelButton"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XF.prototype,"commentsHidePanelButtonChanged",null);
_.B([_.V("yt-retrieve-location"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],XF.prototype,"onRetrieveLocation",null);_.B([_.V("yt-load-reload-continuation"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Function]),_.k("design:returntype")],XF.prototype,"onLoadReloadContinuation",null);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XF.prototype,"onServiceRequestCompleted",null);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XF.prototype,"dataChanged",null);_.B([_.cT("data.contents.length"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XF.prototype,"observeDataContentsLength",null);
_.B([_.V("yt-dismissible-item-dismissed"),_.V("yt-dismissible-item-undismissed"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],XF.prototype,"onYtDismissibleItemDismissedChange",null);_.B([_.W("continuationShowButton"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XF.prototype,"continuationShowButtonChanged",null);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XF.prototype,"dataChangedForBinding",null);XF=_.B([_.L({is:"ytd-item-section-renderer",disableElementRegistration:!0})],XF);
_.P(XF,"ytd-item-section-renderer",function(){if(NNv!==void 0)return NNv;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return NNv=p},{mode:1});var o$H;var qlw=_.L1(_.JG("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var MxH={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var OpH={},Ka$=(OpH[0]={title:_.ez(_.JG("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ez(_.JG("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:If("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},OpH[1]={title:_.ez(_.JG("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:If("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},OpH);_.Ei("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var g3=function(){var p=_.m.apply(this,arguments)||this;p.allVideosCount=0;p.allPlaylistCount=0;p.shouldRenderDownloadsBanner=!1;p.hasOptedIntoSmartDownloads=!1;p.areAllSmartDownloadsDeleted=!1;p.smartDownloadsCompleted=!1;return p};
_.E(g3,_.m);g3.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
g3.prototype.attached=function(){this.downloadsToRenderChanged()};
g3.prototype.detached=function(){this.set("renderableData",{})};
g3.prototype.downloadsToRenderChanged=function(){var p=_.Bi().getState().entities,x=_.Qr(p),F=_.S("kevlar_playlist_dl_page_killswitch")?rYk(p):_.zt(p),N=_.dJp(p),h=_.ST(x);p=_.sJ(p);this.set("renderableData",tx6(F,x,N,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,h,p))};
var QU=g3;QU.prototype.downloadsToRenderChanged=QU.prototype.downloadsToRenderChanged;_.B([_.u(_.nl),_.k("design:type",Object)],QU.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],QU.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],QU.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],QU.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],QU.prototype,"renderableData",void 0);_.B([_.H({selector:_.wjE}),_.k("design:type",Object)],QU.prototype,"allVideosCount",void 0);_.B([_.H({selector:V4m}),_.k("design:type",Object)],QU.prototype,"allPlaylistCount",void 0);_.B([_.H({selector:_.ObZ}),_.k("design:type",Object)],QU.prototype,"shouldRenderDownloadsBanner",void 0);_.B([_.H({selector:_.jOz}),_.k("design:type",Object)],QU.prototype,"hasOptedIntoSmartDownloads",void 0);
_.B([_.H({selector:_.Lep}),_.k("design:type",Object)],QU.prototype,"areAllSmartDownloadsDeleted",void 0);_.B([_.H({selector:PC$}),_.k("design:type",Object)],QU.prototype,"smartDownloadsCompleted",void 0);_.B([_.cT("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],QU.prototype,"downloadsToRenderChanged",null);
QU=_.B([_.L({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],QU);
_.P(QU,"ytd-offline-item-section-renderer",function(){if(o$H!==void 0)return o$H;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return o$H=p},
{mode:1});var jJH;var LHD;var PdH=function(){return _.m.apply(this,arguments)||this};
_.E(PdH,_.m);
PdH.prototype.onDataChanged=function(){if(this.JSC$14386_lastData){var p=this.getFilterClass(this.JSC$14386_lastData.status);p&&this.hostElement.classList.remove(p)}var x;(p=this.getFilterClass((x=this.data)==null?void 0:x.status))&&this.hostElement.classList.add(p);p==="selected"?_.n(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.n(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");p==="disabled"?_.n(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.n(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14386_lastData=this.data};
PdH.prototype.getFilterClass=function(p){switch(p){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
var zS=PdH;zS.prototype.onDataChanged=zS.prototype.onDataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],zS.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],zS.prototype,"data",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zS.prototype,"onDataChanged",null);zS=_.B([_.L({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],zS);
_.P(zS,"ytd-search-filter-renderer",function(){if(LHD!==void 0)return LHD;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return LHD=p},{mode:_.UQ("kevlar_poly_si_batch_j075")?1:2});var Tkk=function(){return _.m.apply(this,arguments)||this};
_.E(Tkk,_.m);var sG=Tkk;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],sG.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],sG.prototype,"data",void 0);sG=_.B([_.L({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],sG);
_.P(sG,"ytd-search-filter-group-renderer",function(){if(jJH!==void 0)return jJH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return jJH=p},{mode:_.UQ("kevlar_poly_si_batch_j075")?1:2});var Bkk;var n9=function(){return _.m.apply(this,arguments)||this};
_.E(n9,_.m);n9.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.DQ());this.isCollapsed=!this.isCollapsed};
n9.prototype.navigateToAboutTheseResultsPage=function(){var p=bg("https://www.youtube.com/howyoutubeworks/product-features/search/");p?_.L6(window,p,"_blank"):_.yL(Error("Qh"))};
n9.prototype.dataChanged=function(){this.isCollapsed=!0};
n9.prototype.computeShowBottomBorder=function(){var p,x,F;return!!((p=this.data)==null?0:(x=p.button)==null?0:x.toggleButtonRenderer)||!((F=this.data)==null||!F.aboutTheseResultsButton)};
var yU=n9;yU.prototype.dataChanged=yU.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],yU.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],yU.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.k("design:type",Boolean)],yU.prototype,"showBottomBorder",void 0);_.B([_.H(),_.k("design:type",Boolean)],yU.prototype,"renderCollapsibleMenu",void 0);
_.B([_.H(),_.k("design:type",Boolean)],yU.prototype,"isCollapsed",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yU.prototype,"dataChanged",null);yU=_.B([_.L({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],yU);
_.P(yU,"ytd-search-sub-menu-renderer",function(){if(Bkk!==void 0)return Bkk;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Bkk=p},{mode:1});var REe;var kBc=new _.iE("SECTION_LIST_RENDERER_TOKEN");var Umm;var ipD=function(){return _.m.apply(this,arguments)||this};
_.E(ipD,_.m);ipD.prototype.computeStyle=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
var by=ipD;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],by.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],by.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.k("design:type",String)],by.prototype,"headerStyle",void 0);by=_.B([_.L({is:"ytd-text-header-renderer",disableElementRegistration:!0})],by);
_.P(by,"ytd-text-header-renderer",function(){if(Umm!==void 0)return Umm;var p=document.createElement("template");_.g(p,"\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");p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Umm=p},{mode:1});var IZX;var $m8=function(){return _.m.apply(this,arguments)||this};
_.E($m8,_.m);var As=$m8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],As.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],As.prototype,"data",void 0);As=_.B([_.L({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],As);
_.P(As,"ytd-minor-moment-header-renderer",function(){if(IZX!==void 0)return IZX;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return IZX=p},{mode:1});var eEH;var pb8=function(){return _.m.apply(this,arguments)||this};
_.E(pb8,_.m);var uy=pb8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],uy.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],uy.prototype,"data",void 0);uy=_.B([_.L({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],uy);
_.P(uy,"ytd-minor-moment-setting-alert-renderer",function(){if(eEH!==void 0)return eEH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return eEH=p},{mode:1});var xIH;var FnH;var Nlc=function(){var p=_.m.apply(this,arguments)||this;p.booleanSettingById=!1;p.smartDownloadsEnabledVE=_.vt(128287);p.smartDownloadsDisabledVE=_.vt(128286);p.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return p};
_.E(Nlc,_.m);_.l=Nlc.prototype;_.l.attachSmartDownloadsSettingVes=function(){var p;this.activeVeForLogging||((p=this.data)==null?void 0:p.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.NJ(_.cl(),this.smartDownloadsEnabledVE),_.NJ(_.cl(),this.smartDownloadsDisabledVE))};
_.l.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.hG(this.hostElement,"yt-settings-switch-ready")};
_.l.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.l.onSwitchChange=function(p){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(p=_.os(p).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.S("kevlar_settings_switch_resolve_command_killswitch")?_.S("web_ytd_settings_switch_renderer_command_resolver_ks")?_.fc(this.hostElement,[p]):_.J().resolve(_.RD).resolveCommand(p,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(p)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.l.handleUpdateSettingsSwitch=function(p){(p=_.r(p,QwI))&&this.data&&this.data.id===p.id&&this.set("data.enabled",!!p.enabled)};
_.l.onToggleSettingsSwitch=function(p,x){this.data&&this.data.id===p&&this.set("data.enabled",x!=null?x:!this.data.enabled)};
_.l.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.Bf.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.l.maybeLogSmartDownloadsSettingVisibility=function(){var p=_.b0(),x;p&&((x=this.data)==null?void 0:x.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.P5(p,[this.smartDownloadsEnabledVE]),_.T6(p,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.P5(p,[this.smartDownloadsDisabledVE]),_.T6(p,[this.smartDownloadsEnabledVE])))};
_.l.maybeLogSmartDownloadsSettingClick=function(){var p;((p=this.data)==null?void 0:p.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.lC(_.cl(),this.activeVeForLogging)};
_.l.updateDataEnabledFromBinding=function(p){this.set("data.enabled",p.detail.value)};
_.R8.Object.defineProperties(Nlc.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var p=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!p&&(p=this.ytRendererBehavior.getSimpleString(this.data.title));return p}}});
var Yt=Nlc;Yt.prototype.dataChanged=Yt.prototype.dataChanged;_.B([_.u(_.nl),_.k("design:type",Object)],Yt.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Yt.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Yt.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Yt.prototype,"ytComponentBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],Yt.prototype,"data",void 0);_.B([_.H({selector:function(p,x){if(Object.keys(p==null?void 0:p.entities).length)switch(x){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return Exz(p.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.k("design:type",Object)],Yt.prototype,"booleanSettingById",void 0);_.B([_.H(),_.k("design:type",_.ns)],Yt.prototype,"activeVeForLogging",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Yt.prototype,"toggleAriaLabel",null);_.B([_.cT("data"),_.cT("booleanSettingById"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yt.prototype,"dataChanged",null);
Yt=_.B([_.L({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Yt);
_.P(Yt,"ytd-settings-switch-renderer",function(){if(FnH!==void 0)return FnH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return FnH=p},{mode:1});var h6m=function(){return _.m.apply(this,arguments)||this};
_.E(h6m,_.m);h6m.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}}}}};
_.R8.Object.defineProperties(h6m.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var p=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(p+=" remove-left-margin");this.data.extraBottomSpace&&(p+=" extra-bottom-space");return p}}});
var w3=h6m;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],w3.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],w3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],w3.prototype,"data",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],w3.prototype,"contentsClassName",null);w3=_.B([_.L({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],w3);
_.P(w3,"ytd-minor-moment-setting-section-renderer",function(){if(xIH!==void 0)return xIH;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return xIH=p},{mode:1});var lKD;var cCm=function(){return _.m.apply(this,arguments)||this};
_.E(cCm,_.m);var GS=cCm;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],GS.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],GS.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],GS.prototype,"data",void 0);GS=_.B([_.L({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],GS);
_.P(GS,"ytd-empty-product-details-renderer",function(){if(lKD!==void 0)return lKD;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return lKD=p},{mode:1});var aKH;var MDa;var DI8=function(){var p=_.m.apply(this,arguments)||this;p.expanded=!0;return p};
_.E(DI8,_.m);DI8.prototype.getBadgeRowClass=function(p,x,F){for(var N=_.a(this.hostElement.querySelectorAll("yt-img-shadow")),h=N.next();!h.done;h=N.next())h.value.onShow();p=p.selected;return F?p!==-1?p===x?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(p!==void 0?p:0)===x?"badge-line":"badge-hidden"};
var VU=DI8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],VU.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],VU.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],VU.prototype,"expanded",void 0);VU=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],VU);
_.P(VU,"ytd-sponsorships-loyalty-badges-renderer",function(){if(MDa!==void 0)return MDa;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return MDa=p},{mode:1});var fKH;var Kn8=function(){var p=_.m.apply(this,arguments)||this;p.expanded=!0;return p};
_.E(Kn8,_.m);Kn8.prototype.getContainerClasses=function(p,x){p=p?"expanded":"collapsed";x&&(p+=" item");return p};
var W3=Kn8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],W3.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],W3.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],W3.prototype,"expanded",void 0);W3=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],W3);
_.P(W3,"ytd-sponsorships-perk-renderer",function(){if(fKH!==void 0)return fKH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return fKH=p},{mode:1});var qvt;var ZZD=function(){var p=_.m.apply(this,arguments)||this;p.expanded=!0;return p};
_.E(ZZD,_.m);var H3=ZZD;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],H3.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],H3.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],H3.prototype,"expanded",void 0);H3=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],H3);
_.P(H3,"ytd-sponsorships-perks-renderer",function(){if(qvt!==void 0)return qvt;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return qvt=p},{mode:1});var mr=function(){var p=_.m.apply(this,arguments)||this;p.isCollapsed=!1;return p};
_.E(mr,_.m);mr.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
mr.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
mr.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var p;this.expandCollapseButton=_.r((p=this.data)==null?void 0:p.expandButton,_.AS)}else{var x;this.expandCollapseButton=_.r((x=this.data)==null?void 0:x.collapseButton,_.AS)}};
var ol=mr;ol.prototype.updateExpandCollapseButton=ol.prototype.updateExpandCollapseButton;ol.prototype.onDataChanged=ol.prototype.onDataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ol.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ol.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],ol.prototype,"isCollapsed",void 0);_.B([_.H(),_.k("design:type",Object)],ol.prototype,"expandCollapseButton",void 0);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ol.prototype,"onDataChanged",null);_.B([_.cT("data","isCollapsed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ol.prototype,"updateExpandCollapseButton",null);ol=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],ol);
_.P(ol,"ytd-sponsorships-expandable-perks-renderer",function(){if(aKH!==void 0)return aKH;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return aKH=p},{mode:1});var tD8;var dIm=function(){return _.m.apply(this,arguments)||this};
_.E(dIm,_.m);dIm.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
var OG=dIm;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],OG.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],OG.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],OG.prototype,"data",void 0);OG=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],OG);
_.P(OG,"ytd-sponsorships-actionable-message-renderer",function(){if(tD8!==void 0)return tD8;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return tD8=p},{mode:1});var vB_;var JCc=function(){return _.m.apply(this,arguments)||this};
_.E(JCc,_.m);_.l=JCc.prototype;_.l.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.l.getExpansionIcon=function(p){return p?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.l.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.l.computeMessageContainerStyle=function(p){var x=p.expandableItems?" style-clickable":"";return p.messageContainerStyle?p.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+x:"style-unspecified"+x};
_.l.isSinglePerk=function(p){return!!p.messageContainerStyle&&(p.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||p.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.l.onExpandedChanged=function(){var p=this;if(this.expanded)for(var x=_.a(this.hostElement.querySelectorAll("yt-img-shadow")),F=x.next();!F.done;F=x.next())F.value.onShow();_.jB(this,function(){_.hG(p.hostElement,"yt-refit")})};
_.l.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
var jJ=JCc;jJ.prototype.onDataChanged=jJ.prototype.onDataChanged;jJ.prototype.onExpandedChanged=jJ.prototype.onExpandedChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],jJ.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],jJ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],jJ.prototype,"data",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],jJ.prototype,"expanded",void 0);
_.B([_.W("expanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jJ.prototype,"onExpandedChanged",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jJ.prototype,"onDataChanged",null);jJ=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],jJ);
_.P(jJ,"ytd-sponsorships-expandable-message-renderer",function(){if(vB_!==void 0)return vB_;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return vB_=p},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var CBm;var SvH=function(){return _.m.apply(this,arguments)||this};
_.E(SvH,_.m);SvH.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"}}}}};
SvH.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.r(this.data.endButton,_.AS).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
var L9=SvH;L9.prototype.onDataChanged=L9.prototype.onDataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],L9.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],L9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],L9.prototype,"data",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],L9.prototype,"onDataChanged",null);
L9=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],L9);
_.P(L9,"ytd-sponsorships-heading-renderer",function(){if(CBm!==void 0)return CBm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return CBm=p},{mode:1});var rCm;var EBt=function(){return _.m.apply(this,arguments)||this};
_.E(EBt,_.m);var P3=EBt;_.B([_.H(),_.k("design:type",Object)],P3.prototype,"data",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],P3.prototype,"ytRendererBehavior",void 0);P3=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],P3);
_.P(P3,"ytd-sponsorships-links-renderer",function(){if(rCm!==void 0)return rCm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return rCm=p},{mode:1});var Xbc;var gBD=function(){return _.m.apply(this,arguments)||this};
_.E(gBD,_.m);_.l=gBD.prototype;_.l.onDataChanged=function(){if(this.data&&this.data.expandableItems){var p;(p=_.n(this.hostElement).querySelector("tp-yt-paper-button"))==null||p.setAttribute("role","button")}else{var x;(x=_.n(this.hostElement).querySelector("tp-yt-paper-button"))==null||x.removeAttribute("role")}};
_.l.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.l.getExpansionIcon=function(p){return p?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.l.getTileClasses=function(p){return p?"tile expandable-tile":"tile"};
_.l.getButtonDisabled=function(p){return p?void 0:""};
var TS=gBD;TS.prototype.onDataChanged=TS.prototype.onDataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],TS.prototype,"data",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],TS.prototype,"expanded",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],TS.prototype,"onDataChanged",null);
TS=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],TS);
_.P(TS,"ytd-sponsorships-list-tile-renderer",function(){if(Xbc!==void 0)return Xbc;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Xbc=p},{mode:1});var QkX;var z6k;var skk=function(){return _.m.apply(this,arguments)||this};
_.E(skk,_.m);skk.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
var B3=skk;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],B3.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],B3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],B3.prototype,"data",void 0);B3=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],B3);
_.P(B3,"ytd-sponsorships-promotion-renderer",function(){if(z6k!==void 0)return z6k;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return z6k=p},{mode:1});var nBt;var yCc=function(){return _.m.apply(this,arguments)||this};
_.E(yCc,_.m);yCc.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
var Rl=yCc;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Rl.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Rl.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Rl.prototype,"data",void 0);Rl=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Rl);
_.P(Rl,"ytd-sponsorships-purchase-option-renderer",function(){if(nBt!==void 0)return nBt;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return nBt=p},{mode:1});var bZk;var ACH;var ujm=function(){return _.m.apply(this,arguments)||this};
_.E(ujm,_.m);var Yv8=ujm;_.B([_.H(),_.k("design:type",Object)],Yv8.prototype,"data",void 0);Yv8=_.B([_.L({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],Yv8);
_.P(Yv8,"ytd-ypc-offer-promo-renderer",function(){if(ACH!==void 0)return ACH;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return ACH=p},{mode:1});var wbm=function(){return _.m.apply(this,arguments)||this};
_.E(wbm,_.m);_.l=wbm.prototype;
_.l.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.expandableMessage":{id:"expandable-message",mapping:{sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.purchaseOption":{id:"purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},"data.alternativePurchaseOption":{id:"alternative-purchase-option",mapping:{sponsorshipsPurchaseOptionRenderer:{component:"ytd-sponsorships-purchase-option-renderer"}}},
"data.offerPromoCard":{id:"offer-promo",mapping:{ypcOfferPromoRenderer:{component:"ytd-ypc-offer-promo-renderer"}}}}};
_.l.expansionCTA=function(p,x){return p&&(x?p.collapseCallToAction:p.expansionCallToAction)};
_.l.getExpansionIcon=function(p){return p?"arrow_drop_up":"arrow_drop_down"};
_.l.expansionCallToActionTap=function(){var p=this;this.expanded=!this.expanded;_.jB(this,function(){_.hG(p.hostElement,"yt-refit")})};
_.l.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var p,x=(p=this.data)==null?void 0:p.onVisible;x&&this.ytComponentBehavior.resolveCommand(x)};
_.l.computeDisplayTitle=function(p){return!(!p||this.titledisplaystatus!=="show")};
_.l.computeDisplaySeparator=function(){return!1};
_.l.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
var kt=wbm;kt.prototype.onDataChanged=kt.prototype.onDataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],kt.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],kt.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],kt.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],kt.prototype,"data",void 0);
_.B([_.H({value:!1}),_.k("design:type",Boolean)],kt.prototype,"expanded",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],kt.prototype,"purchaseButtonClicked",void 0);_.B([_.H({reflectToAttribute:!0,value:"show"}),_.k("design:type",String)],kt.prototype,"titledisplaystatus",void 0);_.B([_.H({computed:"computeDisplayTitle(data.title)"}),_.k("design:type",Boolean)],kt.prototype,"displayTitle",void 0);
_.B([_.H({computed:"computeDisplaySeparator(data)"}),_.k("design:type",Boolean)],kt.prototype,"displaySeparator",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kt.prototype,"onDataChanged",null);kt=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],kt);
_.P(kt,"ytd-sponsorships-tier-renderer",function(){if(bZk!==void 0)return bZk;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return bZk=p},{mode:2});var Gma=function(){return _.m.apply(this,arguments)||this};
_.E(Gma,_.m);
Gma.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"},sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"},sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.sidebar":{id:"sidebar",mapping:{sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsActionableMessageRenderer:{component:"ytd-sponsorships-actionable-message-renderer"},
sponsorshipsLinksRenderer:{component:"ytd-sponsorships-links-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
var UG=Gma;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],UG.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],UG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],UG.prototype,"data",void 0);UG=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],UG);
_.P(UG,"ytd-sponsorships-management-renderer",function(){if(QkX!==void 0)return QkX;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return QkX=p},{mode:1});var VD8;var Wnk=function(){return _.m.apply(this,arguments)||this};
_.E(Wnk,_.m);var iy=Wnk;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],iy.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],iy.prototype,"data",void 0);iy=_.B([_.L({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],iy);
_.P(iy,"ytd-open-in-native-app-view-model",function(){if(VD8!==void 0)return VD8;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return VD8=p},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var HZc;var mIX;var oBD=_.B$(["top-"]),OZa=_.B$(["bottom-"]),jkc=_.B$(["left-"]),LnH=_.B$(["right-"]),PBm={},Tle=function(p,x,F){p.removeAttribute("top-"+F);p.removeAttribute("bottom-"+F);p.removeAttribute("left-"+F);p.removeAttribute("right-"+F);x&&(x.top&&_.$E([_.ei(oBD)],p,"top-"+F,x.top),x.bottom&&_.$E([_.ei(OZa)],p,"bottom-"+F,x.bottom),x.left&&_.$E([_.ei(jkc)],p,"left-"+F,x.left),x.right&&_.$E([_.ei(LnH)],p,"right-"+F,x.right))};
PBm.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(p){var x,F=_.n((x=this.hostElement)!=null?x:this),N;x=this.cardItemBoxBehaviorMarginTargetId&&F?F.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(N=this.hostElement)!=null?N:this;Tle(x,p,"margin")},
cardItemContainerPaddingChanged_:function(p){var x,F=_.n((x=this.hostElement)!=null?x:this),N;x=this.cardItemBoxBehaviorPaddingTargetId&&F?F.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(N=this.hostElement)!=null?N:this;Tle(x,p,"padding")}}];var Il={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 Bl8;var R6m;var kma=function(){return _.m.apply(this,arguments)||this};
_.E(kma,_.m);kma.prototype.textColorChanged_=function(){this.hostElement.style.color=Il[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
var $t=kma;$t.prototype.textColorChanged_=$t.prototype.textColorChanged_;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],$t.prototype,"ytRendererBehavior",void 0);_.B([_.u(PBm.YtCardItemBoxBehavior),_.k("design:type",Object)],$t.prototype,"ytCardItemBoxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],$t.prototype,"data",void 0);_.B([_.W("data.textColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$t.prototype,"textColorChanged_",null);
$t=_.B([_.JZ({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],$t);
_.P($t,"yt-card-item-text-renderer",function(){if(R6m===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Bl8===void 0&&(Bl8=document.createElement("template"));var N=Bl8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);R6m=p}p=R6m;return p},{mode:2});var UIH;var iZm;var IK_=function(){return _.m.apply(this,arguments)||this};
_.E(IK_,_.m);var eJ=IK_;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],eJ.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],eJ.prototype,"data",void 0);eJ=_.B([_.JZ({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],eJ);
_.P(eJ,"yt-card-item-badge-renderer",function(){if(iZm===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;UIH===void 0&&(UIH=document.createElement("template"));var N=UIH;F.call(x,N.content.cloneNode(!0),p.content.firstChild);iZm=p}p=iZm;return p},{mode:2});var $I8;var e6H;var pHD=function(){return _.m.apply(this,arguments)||this};
_.E(pHD,_.m);pHD.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
var p0=pHD;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],p0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],p0.prototype,"data",void 0);p0=_.B([_.JZ({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],p0);
_.P(p0,"yt-card-item-text-collection-renderer",function(){if(e6H===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;$I8===void 0&&($I8=document.createElement("template"));var N=$I8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);e6H=p}p=e6H;return p},{mode:2});var xH8;var Fmm;var NDm=function(){return _.m.apply(this,arguments)||this};
_.E(NDm,_.m);NDm.prototype.configureRendererStamper=function(){return{"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:"yt-card-item-text-collection-renderer"}},"data.buttonRenderer":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{iconSize:"[[iconSize]]"}}}}}};
var xb=NDm;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],xb.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],xb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],xb.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Number)],xb.prototype,"iconSize",void 0);xb=_.B([_.JZ({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],xb);
_.P(xb,"yt-card-item-text-with-button-renderer",function(){if(Fmm===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;xH8===void 0&&(xH8=document.createElement("template"));var N=xH8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Fmm=p}p=Fmm;return p},{mode:2});var h88=function(){return _.m.apply(this,arguments)||this};
_.E(h88,_.m);h88.prototype.configureRendererStamper=function(){return{"data.summaryText":{id:"summary-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer",cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer",params:{iconSize:18}}}},"data.additionalMetadataText":{id:"additional-metadata-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
var F0=h88;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],F0.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],F0.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],F0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],F0.prototype,"data",void 0);F0=_.B([_.L({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],F0);
_.P(F0,"ytd-commerce-cart-summary-line-item-renderer",function(){if(mIX!==void 0)return mIX;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return mIX=p},{mode:1});_.Ei("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var l88=function(){var p=_.m.apply(this,arguments)||this;p.hidden=!1;return p};
_.E(l88,_.m);_.l=l88.prototype;_.l.configureRendererStamper=function(){return{"data.estimatedTotalLineItem":{id:"estimated-total-line-item",mapping:{commerceCartSummaryLineItemRenderer:"ytd-commerce-cart-summary-line-item-renderer"}},"data.checkoutButton":{id:"checkout-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.cartButton":{id:"cart-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.l.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.l.updateSummary=function(){var p=this.commerceCartCheckoutButtonEntity,x;if(((x=this.data)==null?0:x.cartButton)&&p.checkoutSummaryText){var F,N=Hc((F=this.data)==null?void 0:F.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+N+".cardItemTextRenderer.text",mD(p.checkoutSummaryText));if(p.checkoutDetailText){var h;F=Hc((h=this.data)==null?void 0:h.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+F+".cardItemTextRenderer.text",mD(p.checkoutDetailText))}if(p.checkoutAdditionalMetadataText){var c;
h=Hc((c=this.data)==null?void 0:c.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+h+".cardItemTextRenderer.text",mD(p.checkoutAdditionalMetadataText))}}else p.estimatedTotalPrice&&(c=Hc((N=this.data)==null?void 0:N.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+c+".cardItemTextRenderer.text",mD(p.estimatedTotalPrice)))};
_.l.updateIsHidden=function(){var p,x=(p=this.commerceCartCheckoutButtonEntity)==null?void 0:p.isHidden;x!==void 0&&(this.hidden=x)};
_.l.updateCheckoutButton=function(){var p,x=(p=this.commerceCartCheckoutButtonEntity)==null?void 0:p.isDisabled;x!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",x);var F;p=(F=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:F.innertubeCommand;p!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",p);var N;F=(N=this.commerceCartCheckoutButtonEntity)==null?void 0:N.checkoutButtonText;F!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:F})};
var NS=l88;NS.prototype.entityChanged=NS.prototype.entityChanged;_.B([_.u(_.nl),_.k("design:type",Object)],NS.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],NS.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],NS.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],NS.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],NS.prototype,"fullWidth",void 0);_.B([_.H(),_.k("design:type",Object)],NS.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],NS.prototype,"compact",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],NS.prototype,"hidden",void 0);
_.B([_.H({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:Qjr}),_.k("design:type",Object)],NS.prototype,"commerceCartCheckoutButtonEntity",void 0);_.B([_.W("commerceCartCheckoutButtonEntity","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],NS.prototype,"entityChanged",null);NS=_.B([_.L({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],NS);
_.P(NS,"ytd-commerce-cart-checkout-button-renderer",function(){if(HZc!==void 0)return HZc;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return HZc=p},{mode:2});var ceX;_.a8_={};
_.a8_.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",_.p5(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.p5(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(p){!this.tappableItemBehaviorTapEnabled||p.keyCode!==13&&p.keyCode!==32||p.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var p=this.data.onTap;p.ypcGetCartEndpoint?(_.fc(this.hostElement,[p]),this.tappableItemBehaviorTapEnabled=!1):p.ypcOffersEndpoint?_.fc(this.hostElement,[p]):_.Kc(this.hostElement,[p],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(p){this.tappableItemBehaviorTapEnabled=!!p},
tappableItemBehaviorOnTapEnabledChanged_:function(){var p=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(p.setAttribute("tabIndex",0),p.setAttribute("role","button")):(p.removeAttribute("tabIndex"),p.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(p){p.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var MHH;var DH8;var f8t=function(){return _.m.apply(this,arguments)||this};
_.E(f8t,_.m);f8t.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.Xt("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.Xt("sharingToggleButtonAndDefaultButton")}}};
var hW=f8t;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],hW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],hW.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],hW.prototype,"data",void 0);hW=_.B([_.JZ({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],hW);
_.P(hW,"yt-card-item-actions-renderer",function(){if(DH8===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;MHH===void 0&&(MHH=document.createElement("template"));var N=MHH;F.call(x,N.content.cloneNode(!0),p.content.firstChild);DH8=p}p=DH8;return p},{mode:2});var Km8;var qkD;var Z88;var tHc;var dHa;var v_8;var l7=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return p};
_.E(l7,_.m);l7.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
l7.prototype.handleDarkModeToggledAction_=function(p){this.isDarkTheme_=p};
l7.prototype.computeThemeImage_=function(p,x){if(!p||!p.imageLight)return!1;this.isCircular_=p.isCircular;p.imageWidth&&(this.hostElement.style.width=p.imageWidth+"px");p.imageHeight&&(this.hostElement.style.height=p.imageHeight+"px");p.borderWidth&&(this.image.style.borderWidth=p.borderWidth+"px",this.image.style.borderStyle="solid");p.borderColor&&(this.image.style.borderColor=_.QK(p.borderColor));return x&&p.imageDark?p.imageDark:p.imageLight};
l7.prototype.computeThemeIcon_=function(p){var x,F;if(!(p==null?0:(x=p.themedIcon)==null?0:(F=x.icon)==null?0:F.iconType))return!1;this.icon.style.color=Il[p.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(p.imageWidth||18)+"px";this.icon.style.height=(p.imageHeight||18)+"px";return _.eA(p.themedIcon.icon.iconType)};
var cE=l7;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],cE.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],cE.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(PBm.YtCardItemBoxBehavior),_.k("design:type",Object)],cE.prototype,"ytCardItemBoxBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],cE.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],cE.prototype,"data",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],cE.prototype,"fit",void 0);_.B([_.H(),_.k("design:type",Boolean)],cE.prototype,"isDarkTheme_",void 0);_.B([_.H({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.k("design:type",Object)],cE.prototype,"themeImage_",void 0);_.B([_.H({computed:"computeThemeIcon_(data)"}),_.k("design:type",Object)],cE.prototype,"themeIcon_",void 0);
_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Object)],cE.prototype,"isCircular_",void 0);_.B([_.Ff("#image"),_.k("design:type",Object)],cE.prototype,"image",void 0);_.B([_.Ff("#icon"),_.k("design:type",Object)],cE.prototype,"icon",void 0);cE=_.B([_.JZ({is:"yt-themed-image-renderer",disableElementRegistration:!0})],cE);
_.P(cE,"yt-themed-image-renderer",function(){if(v_8===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;dHa===void 0&&(dHa=document.createElement("template"));var N=dHa;F.call(x,N.content.cloneNode(!0),p.content.firstChild);v_8=p}p=v_8;return p},{mode:2});var Je8=function(){return _.m.apply(this,arguments)||this};
_.E(Je8,_.m);Je8.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"}}}}};
Je8.prototype.computeImagePlacement_=function(p){return p||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
var ah=Je8;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ah.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ah.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ah.prototype,"data",void 0);_.B([_.H({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.k("design:type",String)],ah.prototype,"imagePlacement",void 0);
ah=_.B([_.JZ({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],ah);
_.P(ah,"yt-card-item-text-with-image-renderer",function(){if(tHc===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Z88===void 0&&(Z88=document.createElement("template"));var N=Z88;F.call(x,N.content.cloneNode(!0),p.content.firstChild);tHc=p}p=tHc;return p},{mode:2});var CmH=function(){return _.m.apply(this,arguments)||this};
_.E(CmH,_.m);CmH.prototype.configureRendererStamper=function(){return{"data.errorTextRenderer":{id:"error-text-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}}}};
var MS=CmH;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],MS.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],MS.prototype,"data",void 0);MS=_.B([_.JZ({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],MS);
_.P(MS,"yt-card-item-error-renderer",function(){if(qkD===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Km8===void 0&&(Km8=document.createElement("template"));var N=Km8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);qkD=p}p=qkD;return p},{mode:2});var Sk8;var rem;_.Ei("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var E_H=function(){return _.m.apply(this,arguments)||this};
_.E(E_H,_.m);_.l=E_H.prototype;
_.l.configureRendererStamper=function(){return{"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",
mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"},cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},themedImageRenderer:{component:"yt-themed-image-renderer"},cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}},"data.errorRenderer":{id:"error-renderer",mapping:{cardItemErrorRenderer:{component:"yt-card-item-error-renderer"}}},"data.headerPromoRenderer":{id:"header-promo-renderer",
mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.footerRenderer":{id:"footer-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.l.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.l.backgroundColorChanged_=function(){var p,x=(p=this.data)==null?void 0:p.backgroundColor;p=Il[x||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.n(this.hostElement).querySelector("#main-content").style.backgroundColor=p};
_.l.headerPromoBackgroundColorChanged_=function(){var p,x=(p=this.data)==null?void 0:p.headerPromoBackgroundColor;p=Il[x||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.n(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=p};
_.l.errorRendererVisibilityChanged_=function(){var p=this.isExpanded_,x;this.isErrorRendererVisible_=!((x=this.data)==null||!x.errorRenderer)&&!p};
_.l.onYtToggleButton_=function(p,x){this.isExpanded_=x.toggled};
var Dj=E_H;Dj.prototype.onYtToggleButton_=Dj.prototype.onYtToggleButton_;Dj.prototype.errorRendererVisibilityChanged_=Dj.prototype.errorRendererVisibilityChanged_;Dj.prototype.headerPromoBackgroundColorChanged_=Dj.prototype.headerPromoBackgroundColorChanged_;Dj.prototype.backgroundColorChanged_=Dj.prototype.backgroundColorChanged_;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Dj.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(PBm.YtCardItemBoxBehavior),_.k("design:type",Object)],Dj.prototype,"ytCardItemBoxBehavior",void 0);_.B([_.u(_.a8_.YtTappableItemBehavior),_.k("design:type",Object)],Dj.prototype,"ytTappableItemBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Dj.prototype,"data",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Dj.prototype,"isExpanded_",void 0);
_.B([_.H({value:!1}),_.k("design:type",Boolean)],Dj.prototype,"isErrorRendererVisible_",void 0);_.B([_.W("data.backgroundColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Dj.prototype,"backgroundColorChanged_",null);_.B([_.W("data.headerPromoBackgroundColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Dj.prototype,"headerPromoBackgroundColorChanged_",null);
_.B([_.W("data.errorRenderer","isExpanded_"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Dj.prototype,"errorRendererVisibilityChanged_",null);_.B([_.V("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[Event,Object]),_.k("design:returntype")],Dj.prototype,"onYtToggleButton_",null);Dj=_.B([_.JZ({is:"yt-card-item-renderer",disableElementRegistration:!0})],Dj);
_.P(Dj,"yt-card-item-renderer",function(){if(rem===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;Sk8===void 0&&(Sk8=document.createElement("template"));var N=Sk8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);rem=p}p=rem;return p},{mode:2});_.Ei("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var XHk=function(){var p=_.m.apply(this,arguments)||this;p.hidden=!1;return p};
_.E(XHk,_.m);_.l=XHk.prototype;_.l.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.l.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.l.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var p,x=(p=this.commerceCartHeaderEntity)==null?void 0:p.isHidden;x!==void 0&&(this.hidden=x)}};
_.l.updateTitle=function(){var p=this.commerceCartHeaderEntity.isDisabled,x,F,N=(F=_.r((x=this.data)==null?void 0:x.item,dqZ))==null?void 0:F.headingRenderer;N&&(x=Hc(N,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+x+".0.cardItemTextRenderer.textColor",p?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.l.updateSummaryText=function(){var p=this.commerceCartHeaderEntity;if(this.compact){var x,F,N=(F=_.r((x=this.data)==null?void 0:x.item,dqZ))==null?void 0:F.headingRenderer;N&&(x=Hc(N,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+x+".1.cardItemTextRenderer.text",p.shortHeaderSummaryText?mD(p.shortHeaderSummaryText):p.headerSummaryText?mD(p.headerSummaryText):""))}else{var h;if(x=(h=_.r((N=this.data)==null?void 0:N.item,dqZ))==null?void 0:h.additionalInfoRenderer)x=Hc(x,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+x+".text",p.headerSummaryText?mD(p.headerSummaryText):"")}};
_.l.updateCheckoutButton=function(){var p=this.commerceCartHeaderEntity,x,F,N=(F=_.r((x=this.data)==null?void 0:x.item,dqZ))==null?void 0:F.additionalInfoRenderer;x=Hc(N,"buttonRenderer");var h;F=(h=this.commerceCartHeaderEntity)==null?void 0:h.isButtonDisabled;var c;h=(c=this.commerceCartHeaderEntity)==null?void 0:c.isButtonHidden;F!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+x+".buttonRenderer.isDisabled",F);h!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
h);var M;p=(M=p.checkoutButtonCommand)==null?void 0:M.innertubeCommand;p!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+x+".buttonRenderer.command",p)};
var f0=XHk;f0.prototype.entityChanged=f0.prototype.entityChanged;_.B([_.u(_.nl),_.k("design:type",Object)],f0.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],f0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],f0.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],f0.prototype,"compact",void 0);_.B([_.H({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(p,x){return _.M4(p.entities,"commerceCartHeaderEntity",x)}}),
_.k("design:type",Object)],f0.prototype,"commerceCartHeaderEntity",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],f0.prototype,"hidden",void 0);_.B([_.W("commerceCartHeaderEntity","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],f0.prototype,"entityChanged",null);f0=_.B([_.L({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],f0);
_.P(f0,"ytd-commerce-cart-header-renderer",function(){if(ceX!==void 0)return ceX;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return ceX=p},{mode:1});var g_c;var QtX=_.S0(function(p,x){var F;return(F=p.onChangeCallback)==null?void 0:F.call(p,x)},1E3),z8_=_.mO(function(p){var x=p.data;
var F=p.iconMinus;p=p.iconPlus;var N=function(){return!!x().disabled},h=_.a(_.hu(0,void 0,"r56zNb")),c=h.next().value,M=h.next().value;
h={};h=_.$L("yt-spec-quantity-incrementer-shape__icon",(h["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return N()||c()===(x().onRemoveCommand?0:1)},h));
var f={};f=_.$L("yt-spec-quantity-incrementer-shape__icon",(f["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return c()>=x().maxValue||N()},f));
var K={};K=_.$L("yt-spec-quantity-incrementer-shape__text",(K["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return c()>x().maxValue},K["yt-spec-quantity-incrementer-shape__text--text-disabled"]=N,K));
var t=_.h0(function(){if(c()===1){var v,C;(C=(v=x()).onRemoveCommand)==null||C.call(v)}v=c()>x().maxValue?x().maxValue:c()-1;M(v);QtX(x(),v);return!1}),d=_.h0(function(){if(c()===x().maxValue)return!1;
var v=c()+1;M(v);QtX(x(),v);return!1});
_.d1(function(){M(x().value)});
return _.Z("quantity-incrementer-shape",null,_.Z("div",{class:"yt-spec-quantity-incrementer-shape"},_.Z("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return c()===(x().onRemoveCommand?0:1)||N()},
"aria-label":function(){return c()!==1?x().minusLabel:x().minimumReachedLabel},
"on:click":t},_.Z(_.qC,{model:{circular:!0}}),_.Z("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.Z("div",{class:h},F()))),_.Z("div",{class:K},c),_.Z("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return c()>=x().maxValue||N()},
"aria-label":function(){return c()!==x().maxValue?x().plusLabel:x().maximumReachedLabel},
"on:click":d},_.Z(_.qC,{model:{circular:!0}}),_.Z("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.Z("div",{class:f},p())))))},"pd");_.o7(_.mO(function(p){function x(){F().onRemoveCommand&&_.su(F().onRemoveCommand)}
var F=p.data;var N=_.MN(U0r,function(){return F().quantityIncrementerEntityKey});
return _.Z("yt-quantity-incrementer-view-model",null,_.Z(z8_,{data:function(){var h=F(),c;var M=N()?!((c=N())==null||!c.disabled):!1;var f;c=N()?(f=N())==null?void 0:f.quantity:F().quantity;return Jir(h,M,x,c)},
iconMinus:function(){return _.Z(_.DS,{icon:"BAR_HORIZONTAL",className:_.pQ("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.Z(_.DS,{icon:"ADD",className:_.pQ("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"qd"),"yt-quantity-incrementer-view-model",{props:{data:_.G2}});var K0=function(){var p=_.m.apply(this,arguments)||this;p.compact=!1;p.hasQuantityIncrementer=!1;return p};
_.E(K0,_.m);K0.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"}}}};
K0.prototype.computeHasQuantityIncrementer=function(){var p;return!!_.r((p=this.data)==null?void 0:p.picker,SBB)};
K0.prototype.onLabelClick=function(){var p;(p=this.dropdownEl)==null||p.open()};
var qS=K0;_.B([_.Ff("ytd-dropdown-renderer"),_.k("design:type",Object)],qS.prototype,"dropdownEl",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],qS.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],qS.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],qS.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],qS.prototype,"quantityColor",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],qS.prototype,"compact",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.k("design:type",Object)],qS.prototype,"hasQuantityIncrementer",void 0);qS=_.B([_.L({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],qS);
_.P(qS,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(g_c!==void 0)return g_c;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return g_c=p},{mode:1});var stm;var n_a;var Zj=function(){return _.m.apply(this,arguments)||this};
_.E(Zj,_.m);Zj.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Zj.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
Zj.prototype.updateTitle=function(){var p=this.disabledCartItemEntity;p.disableActionName&&this.set("data.title",mD(p.disableActionName))};
Zj.prototype.updateButton=function(){var p,x=(p=this.disabledCartItemEntity.undoCommand)==null?void 0:p.innertubeCommand;x!==void 0&&(this.set("data.actionButton.buttonRenderer.command",x),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
var tW=Zj;tW.prototype.entityChanged=tW.prototype.entityChanged;_.B([_.u(_.nl),_.k("design:type",Object)],tW.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],tW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(p,x){return _.M4(p.entities,"disabledCartItemEntity",x)}}),
_.k("design:type",Object)],tW.prototype,"disabledCartItemEntity",void 0);_.B([_.H(),_.k("design:type",Object)],tW.prototype,"data",void 0);_.B([_.W("disabledCartItemEntity","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tW.prototype,"entityChanged",null);tW=_.B([_.L({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],tW);
_.P(tW,"ytd-disabled-cart-item-renderer",function(){if(n_a!==void 0)return n_a;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return n_a=p},{mode:1});_.Ei("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var yee=function(){var p=_.m.apply(this,arguments)||this;p.compact=!1;p.hidden=!1;p.errorHidden=!1;p.noOnTap=!1;return p};
_.E(yee,_.m);_.l=yee.prototype;
_.l.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.textMetadata":{id:"text-metadata",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.merchantUpdateText":{id:"merchant-update-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.cartItemNotification":{id:"cart-item-notification",mapping:{cardItemTextWithImageRenderer:"yt-card-item-text-with-image-renderer"}},"data.cardItemActions":{id:"cart-item-actions",
mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{disableTextTransform:"[[compact]]"}}},events:!0},"data.quantityPicker":{id:"quantity-picker",mapping:{commerceCartItemQuantityPickerRenderer:{component:"ytd-commerce-cart-item-quantity-picker-renderer",properties:{compact:"[[compact]]",quantityColor:"[[commerceCartItemEntity.quantityColor]]"}}}},"data.disabledCartItem":{id:"disabled-cart-item",mapping:{disabledCartItemRenderer:"ytd-disabled-cart-item-renderer"}}}};
_.l.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.l.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var p=this.firstButtonElement;p.alignByText=!0;p.iconAlignByText=!0}};
_.l.computeNoOnTap=function(p){return!p};
_.l.updateQuantityColor=function(){if(this.pickerElement){var p,x=(p=this.commerceCartItemEntity)==null?void 0:p.quantityColor;this.pickerElement.quantityColor=x}};
_.l.updateTotalPriceColor=function(){var p,x=(p=this.commerceCartItemEntity)==null?void 0:p.totalPriceColor;if(x){var F;p=_.r((F=this.data)==null?void 0:F.quantityPicker,JAv);if(F=_.r(p==null?void 0:p.price,v6n))F.textColor=x}};
_.l.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var p,x=(p=this.commerceCartItemEntity)==null?void 0:p.isHidden;x!==void 0&&(this.hidden=x)}};
_.l.updateHideErrorMessage=function(){var p,x=(p=this.commerceCartItemEntity)==null?void 0:p.hideErrorMessage;x!==void 0&&(this.errorHidden=x)};
_.l.updateQuantity=function(){var p=this,x,F=(x=this.commerceCartItemEntity)==null?void 0:x.quantity,N;x=(N=this.commerceCartItemEntity)==null?void 0:N.totalPrice;if(F){this.updateTotalPriceColor();this.updateQuantityColor();var h;N=_.r((h=this.data)==null?void 0:h.quantityPicker,JAv);if(h=_.r(N==null?void 0:N.price,v6n))h.text=x?{simpleText:x.content}:void 0;if(x=_.r(N==null?void 0:N.picker,SBB))x.quantity=F;var c;if(h=(c=_.r(N==null?void 0:N.picker,mok))==null?void 0:c.entries){c=!1;x=void 0;h=
_.a(h);for(N=h.next();!N.done;N=h.next())N=N.value,N.dropdownItemRenderer&&(x||(x=N.dropdownItemRenderer),N.dropdownItemRenderer.isSelected=!1,F===N.dropdownItemRenderer.int32Value&&(c=!0,N.dropdownItemRenderer.isSelected=!0));!c&&x&&(x.isSelected=!0)}_.jB(this,function(){var M;p.set("data.quantityPicker",_.Q5.unsafeClone((M=p.data)==null?void 0:M.quantityPicker))})}};
var dU=yee;dU.prototype.onYtRendererstamperFinished=dU.prototype.onYtRendererstamperFinished;dU.prototype.entityChanged=dU.prototype.entityChanged;_.B([_.H(),_.k("design:type",Object)],dU.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],dU.prototype,"compact",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],dU.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],dU.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],dU.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],dU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(p,x){return _.M4(p.entities,"commerceCartItemEntity",x)}}),
_.k("design:type",Object)],dU.prototype,"commerceCartItemEntity",void 0);_.B([_.H(),_.k("design:type",Object)],dU.prototype,"quantityPicker",void 0);_.B([_.H(),_.k("design:type",Object)],dU.prototype,"compactQuantityPicker",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],dU.prototype,"hidden",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],dU.prototype,"errorHidden",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.k("design:type",Object)],dU.prototype,"noOnTap",void 0);_.B([_.Ff("ytd-commerce-cart-item-quantity-picker-renderer"),_.k("design:type",Object)],dU.prototype,"pickerElement",void 0);_.B([_.Ff("yt-button-renderer"),_.k("design:type",Element)],dU.prototype,"firstButtonElement",void 0);
_.B([_.W("commerceCartItemEntity","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dU.prototype,"entityChanged",null);_.B([_.V("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dU.prototype,"onYtRendererstamperFinished",null);dU=_.B([_.L({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],dU);
_.P(dU,"ytd-commerce-cart-item-renderer",function(){if(stm!==void 0)return stm;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return stm=p},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var b8X;var Ae8;var vE=function(){return _.m.apply(this,arguments)||this};
_.E(vE,_.m);vE.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}}}}}};
vE.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
vE.prototype.updateCheckoutLineItems=function(){var p,x=(p=this.commerceCartCheckoutButtonEntity)==null?void 0:p.checkoutLineItems;x&&(p=x.map(function(F){a:{var N=F.price;var h=F.description;switch(F.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":F={cardItemTextRenderer:{text:mD(h),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"}}};
N={cardItemTextRenderer:{text:mD(N),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"}}};N={commerceCartSummaryLineItemRenderer:{summaryText:F,price:N}};break a;default:F={cardItemTextRenderer:{text:mD(h),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"}}},N={cardItemTextRenderer:{text:mD(N),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"}}},N={commerceCartSummaryLineItemRenderer:{summaryText:F,price:N}}}}return N}),this.set("data.summaryLineItems",p))};
vE.prototype.updateIsHidden=function(){var p,x=(p=this.commerceCartCheckoutButtonEntity)==null?void 0:p.isHidden;x!==void 0&&(this.hostElement.hidden=x)};
var JW=vE;JW.prototype.entityChanged=JW.prototype.entityChanged;_.B([_.u(_.nl),_.k("design:type",Object)],JW.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],JW.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],JW.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],JW.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],JW.prototype,"data",void 0);_.B([_.H({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:Qjr}),_.k("design:type",Object)],JW.prototype,"commerceCartCheckoutButtonEntity",void 0);_.B([_.W("commerceCartCheckoutButtonEntity","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],JW.prototype,"entityChanged",null);JW=_.B([_.L({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],JW);
_.P(JW,"ytd-commerce-cart-summary-renderer",function(){if(Ae8!==void 0)return Ae8;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Ae8=p},{mode:1});var uct={};uct.InjectBehavior=[thE.InjectBehavior];var Ykm;var wHt;var C0=function(){return _.m.apply(this,arguments)||this};
_.E(C0,_.m);
C0.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:_.Xt("menuRenderer")}}};
C0.prototype.onMenuTap=function(p){p.stopPropagation()};
_.R8.Object.defineProperties(C0.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 p,x;return!(((p=this.data)==null||!p.sectionHeading)&&((x=this.data)==null?void 0:x.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var p,x;return!(((p=this.data)==null||!p.image)&&((x=this.data)==null?void 0:x.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var p,x;return!(((p=this.data)==null||!p.menu)&&((x=this.data)==null?void 0:x.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
var sL=C0;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],sL.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],sL.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.a8_.YtTappableItemBehavior),_.k("design:type",Object)],sL.prototype,"ytTappableItemBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],sL.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.w("data.accessibilityData"),_.k("design:type",String),_.k("design:paramtypes",[])],sL.prototype,"ariaLabel",null);_.B([_.w("data.sectionHeading","data.layout"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],sL.prototype,"sectionHeadingVisible",null);_.B([_.w("data.image","data.layout"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],sL.prototype,"imageVisible",null);
_.B([_.w("data.menu","data.layout"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],sL.prototype,"menuVisible",null);sL=_.B([_.JZ({is:"yt-activity-item-renderer",disableElementRegistration:!0})],sL);
_.P(sL,"yt-activity-item-renderer",function(){if(wHt===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Ykm===void 0&&(Ykm=document.createElement("template"));var N=Ykm;F.call(x,N.content.cloneNode(!0),p.content.firstChild);wHt=p}p=wHt;return p},{mode:2});var GXH;var VHm;var Wmm;var H8D;var mH8=function(){return _.m.apply(this,arguments)||this};
_.E(mH8,_.m);
mH8.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"}}}}};
mH8.prototype.backgroundColorChanged_=function(){var p,x=(p=this.data)==null?void 0:p.backgroundColor;this.hostElement.style.backgroundColor=Il[x||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
var n0=mH8;n0.prototype.backgroundColorChanged_=n0.prototype.backgroundColorChanged_;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],n0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],n0.prototype,"data",void 0);
_.B([_.W("data.backgroundColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],n0.prototype,"backgroundColorChanged_",null);n0=_.B([_.JZ({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],n0);
_.P(n0,"yt-offer-item-upsell-renderer",function(){if(H8D===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Wmm===void 0&&(Wmm=document.createElement("template"));var N=Wmm;F.call(x,N.content.cloneNode(!0),p.content.firstChild);H8D=p}p=H8D;return p},{mode:2});_.Ei("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var o_c=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};p.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return p};
_.E(o_c,_.m);_.l=o_c.prototype;
_.l.configureRendererStamper=function(){return{"data.baseRenderer":{id:"base",mapping:{cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0}}},"data.contents":{id:"contents",mapping:{commerceCartHeaderRenderer:{component:"ytd-commerce-cart-header-renderer",properties:{compact:"[[compact]]"},noInjection:!0},commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{fullWidth:"[[compact]]"}},commerceCartItemRenderer:{component:"ytd-commerce-cart-item-renderer",noInjection:!0,
properties:{compact:"[[compact]]"}},cardItemRenderer:{component:"yt-card-item-renderer",noInjection:!0},offerItemUpsellRenderer:{component:"yt-offer-item-upsell-renderer",noInjection:!0},activityItemRenderer:{component:"yt-activity-item-renderer",noInjection:!0}}},"data.continuationSection":{id:"continuation-section",mapping:_.Xt("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.l.computeContainerStyle_=function(p){return p};
_.l.computeContainerIsHidden_=function(p){return p&&!!p.isHidden};
_.l.computeShowSpinner_=function(p,x){return p&&x==="in-progress"};
_.l.computeShowMoreContentsButton_=function(p,x,F,N,h){return!(!(N&&N.length||h&&h.length&&F)||!p||x)};
_.l.onToggleButton_=function(p){var x=this;p.stopPropagation();this.isExpanded_=p.detail&&p.detail.toggled;var F,N;this.isExpanded_&&!this.data.continuationSection.length&&((F=this.data)==null?0:(N=F.continuation)==null?0:N.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.hG(this.hostElement,"yt-load-next-continuation",function(h){return x.getContinuationUrl_(x.data.continuation.onClickContinuationData,h)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.fc(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.l.onShowMoreContentsButtonClicked_=function(p){var x=this;p.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.hG(this.hostElement,"yt-load-next-continuation",function(F){return x.getContinuationUrl_(x.data.continuations[0].nextContinuationData,F)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.fc(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.l.getContinuationUrl_=function(p,x){var F=p.continuation;p=p.clickTrackingParams;var N=_.b0();p&&N&&_.B5(N,_.fr(p));return _.Hw(x,{continuation:F})};
_.l.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var p=_.n(this.hostElement).querySelector("#continuation-section");p&&(p=p.querySelectorAll("ytmusic-item-section-renderer"))&&p.forEach(function(x){return x.classList.add("memberships-and-purchases")})};
_.l.dataChanged_=function(){var p;this.isExpanded_=!((p=this.data)==null||!p.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.l.updateCardOnClickCommand_=function(p){p=_.r(p,a_J);var x,F;this.data&&((x=this.data)==null?0:x.targetId)&&p&&p.targetId===((F=this.data)==null?void 0:F.targetId)&&p.onClickCommand&&(this.data.onClickCommand=p.onClickCommand,this.isOnClickCommand_=!0)};
_.l.backgroundColorChanged_=function(){var p,x=(p=this.data)==null?void 0:p.backgroundColor;this.hostElement.style.backgroundColor=Il[x||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
var y7=o_c;y7.prototype.backgroundColorChanged_=y7.prototype.backgroundColorChanged_;y7.prototype.dataChanged_=y7.prototype.dataChanged_;y7.prototype.nextContinuationDataUpdated_=y7.prototype.nextContinuationDataUpdated_;y7.prototype.onToggleButton_=y7.prototype.onToggleButton_;_.B([_.u(_.Vw),_.k("design:type",Object)],y7.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],y7.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],y7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.Wy.YtNextContinuationBehavior),_.k("design:type",Object)],y7.prototype,"ytNextContinuationBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],y7.prototype,"ytRendererBehavior",void 0);_.B([_.u(uct.InjectBehavior),_.k("design:type",Object)],y7.prototype,"injectBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],y7.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],y7.prototype,"compact",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],y7.prototype,"isExpanded_",void 0);_.B([_.H({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.k("design:type",String)],y7.prototype,"containerStyle_",void 0);_.B([_.H({value:"not-started"}),_.k("design:type",String)],y7.prototype,"continuationStatus_",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.k("design:type",Boolean)],y7.prototype,"showSpinner_",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],y7.prototype,"isOnClickCommand_",void 0);_.B([_.H({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.k("design:type",Boolean)],y7.prototype,"showMoreContentsButton_",void 0);
_.B([_.H({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(p,x){return!x||p.entities?null:_.M4(p.entities,"cardItemContainerEntity",x)}}),
_.k("design:type",Object)],y7.prototype,"cardItemContainerEntity_",void 0);_.B([_.V("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],y7.prototype,"onToggleButton_",null);_.B([_.V("yt-next-continuation-data-updated"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],y7.prototype,"nextContinuationDataUpdated_",null);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],y7.prototype,"dataChanged_",null);_.B([_.W("data.backgroundColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],y7.prototype,"backgroundColorChanged_",null);y7=_.B([_.JZ({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],y7);
_.P(y7,"yt-card-item-container-renderer",function(){if(VHm===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;GXH===void 0&&(GXH=document.createElement("template"));var N=GXH;F.call(x,N.content.cloneNode(!0),p.content.firstChild);VHm=p}p=VHm;return p},{mode:2});var b7=function(){return _.m.apply(this,arguments)||this};
_.E(b7,_.m);b7.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"}}}};
b7.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
b7.prototype.computeLoadingHidden=function(){var p;return!((p=this.commerceCartPageStateEntity)==null?0:p.cartActionInProgress)};
b7.prototype.updateNotification=function(){var p,x=(p=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:p.summaryText;x&&this.set("data.cartNotification",mD(x))};
var AW=b7;AW.prototype.notificationEntityChanged=AW.prototype.notificationEntityChanged;_.B([_.u(_.nl),_.k("design:type",Object)],AW.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],AW.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],AW.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],AW.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],AW.prototype,"data",void 0);_.B([_.H({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(p,x){return _.M4(p.entities,"commerceCartExpandableNotificationEntity",x)}}),
_.k("design:type",Object)],AW.prototype,"commerceCartExpandableNotificationEntity",void 0);_.B([_.H({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(p,x){return _.M4(p.entities,"commerceCartPageStateEntity",x)}}),
_.k("design:type",Object)],AW.prototype,"commerceCartPageStateEntity",void 0);_.B([_.Ff("#spinner"),_.k("design:type",HTMLElement)],AW.prototype,"spinner",void 0);_.B([_.W("commerceCartExpandableNotificationEntity","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],AW.prototype,"notificationEntityChanged",null);AW=_.B([_.L({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],AW);
_.P(AW,"ytd-commerce-cart-renderer",function(){if(b8X!==void 0)return b8X;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return b8X=p},{mode:1});var O88;var jtH=function(){var p=_.m.apply(this,arguments)||this;p.bigImage=!1;return p};
_.E(jtH,_.m);_.R8.Object.defineProperties(jtH.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.placeholderImageUrl}}});
var u7=jtH;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],u7.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],u7.prototype,"bigImage",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],u7.prototype,"placeholderImageUrl",null);u7=_.B([_.L({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],u7);
_.P(u7,"ytd-empty-product-shelf-renderer",function(){if(O88!==void 0)return O88;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return O88=p},{mode:1});var Lm8;var PmH=function(){var p=_.m.apply(this,arguments)||this;p.itemStyle="link-item";p.watchMetadataRefresh=!1;p.skinnyMode=!1;p.metaPanel=!1;p.inStructuredDescription=!1;p.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};p.updateOnResizeDebouncer=null;return p};
_.E(PmH,_.m);_.l=PmH.prototype;_.l.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.l.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{iconSize:16}},menuRenderer:"ytd-menu-renderer"}},"data.emptyProductShelf":{id:"empty-product",mapping:{emptyProductShelfRenderer:{component:"ytd-empty-product-shelf-renderer"}}}}};
_.l.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.l.attachVEs=function(p){p.trackingParams&&_.cl().graftServerVe(p.trackingParams)};
_.l.handleUpdateMerchShelfAction=function(p){var x=this,F=_.r(p.updateMerchandiseShelfAction.merchandiseShelf,_.lpB);F&&(F.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){x.attachVEs(F);x.data=F},Number(F.renderDelayMs))):(this.attachVEs(F),this.data=F))};
_.l.updateOnResize=function(){if(this.JSC$14554_scrollContainer!==void 0&&this.JSC$14554_scrollContainer.clientWidth!==0&&this.items!==void 0){var p=this.JSC$14554_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-p));this.ytdHorizontalListBehavior.reposition_();var x;switch((x=this.data)==null?void 0:x.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var F,
N;((F=this.data)==null?void 0:(N=F.items)==null?void 0:N.length)===1?this.itemStyle="cta-item":this.itemStyle=p>=740?"large-item":"small-item"}}};
_.l.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.hc(this.updateOnResizeDebouncer,_.Ba.after(100),this.updateOnResize)};
var Yb=PmH;Yb.prototype.debouncedUpdateOnResize=Yb.prototype.debouncedUpdateOnResize;Yb.prototype.dataChanged=Yb.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Yb.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Yb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.$k.YtdHorizontalListBehavior),_.k("design:type",Object)],Yb.prototype,"ytdHorizontalListBehavior",void 0);
_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Yb.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Yb.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Yb.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Yb.prototype,"itemStyle",void 0);_.B([_.H({value:6}),_.k("design:type",Number)],Yb.prototype,"initialCount",void 0);
_.B([_.H({value:"data.items"}),_.k("design:type",String)],Yb.prototype,"itemsPath",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Yb.prototype,"watchMetadataRefresh",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Yb.prototype,"skinnyMode",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Yb.prototype,"metaPanel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Yb.prototype,"inStructuredDescription",void 0);
_.B([_.Ff("#items"),_.k("design:type",HTMLDivElement)],Yb.prototype,"items",void 0);_.B([_.Ff("#scroll-container"),_.k("design:type",HTMLDivElement)],Yb.prototype,"JSC$14554_scrollContainer",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yb.prototype,"dataChanged",null);_.B([_.V("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yb.prototype,"debouncedUpdateOnResize",null);
Yb=_.B([_.L({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],Yb);
_.P(Yb,"ytd-merch-shelf-renderer",function(){if(Lm8!==void 0)return Lm8;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Lm8=p},{mode:2});var TD8;var BDa=function(){var p=_.m.apply(this,arguments)||this;p.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 p};
_.E(BDa,_.m);_.l=BDa.prototype;
_.l.addBackstagePostAction=function(p){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(p=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",p))&&(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:p}):this.set("data.contents",[{backstagePostThreadRenderer:p}]))};
_.l.addBackstageCommentAction=function(p){var x=this.get("addBackstageCommentAction.parentId",p);p=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",p);if(x&&p){x=this.postIdToIndices(x);for(var F=0;F<x.length;F++){var N=x[F];if(N<0)break;N="data.contents."+N+".backstagePostThreadRenderer.comments";this.get(N)&&(this.get(N+".backstageCommentsRenderer.contents")&&this.push(N+".backstageCommentsRenderer.contents",{commentThreadRenderer:p}),this.get(N+".backstageCommentsRenderer.teaserContents")?
this.push(N+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:p}):this.set(N+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:p}]))}}};
_.l.addBackstageReplyAction=function(p){var x=this.get("addBackstageReplyAction.parentId",p);p=this.get("addBackstageReplyAction.renderer.commentRenderer",p);x&&p&&this.setCreatorReply(x,p)};
_.l.banAuthorAction=function(p){var x=this.get("banAuthorAction.commentId",p);x&&(p=this.get("banAuthorAction.parentCommentId",p)||this.getParentPostId(x),this.removeFromStream(x,p))};
_.l.hideReportedCommentAction=function(p){var x=this.get("hideReportedCommentAction.commentId",p);x&&((p=this.get("hideReportedCommentAction.parentCommentId",p))||(p=this.getParentPostId(x)),this.removeFromStream(x,p))};
_.l.replaceBackstageCommentAction=function(p){var x=this.get("replaceBackstageCommentAction.commentId",p),F=this.get("replaceBackstageCommentAction.parentId",p);p=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",p);if(x&&F&&p){F=this.postIdToIndices(F);for(var N=0;N<F.length;N++){var h=F[N];if(h<0)break;var c=this.commentIdToIndex(x,h,!1);if(c>=0){var M=this.get("data.contents."+h+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+c+".commentThreadRenderer.replies.commentRepliesRenderer");
M&&(p.replies={commentRepliesRenderer:M});this.splice("data.contents."+h+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",c,1,{commentThreadRenderer:p})}c=this.commentIdToIndex(x,h,!0);if(c>=0){if(M=this.get("data.contents."+h+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(c+".commentThreadRenderer.replies.commentRepliesRenderer")))p.replies={commentRepliesRenderer:M};this.splice("data.contents."+h+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
c,1,{commentThreadRenderer:p})}}}};
_.l.replaceBackstagePostAction=function(p){var x=this.get("replaceBackstagePostAction.itemId",p);if(x){x=this.postIdToIndices(x);for(var F=0;F<x.length;F++){var N=x[F];if(N<0)break;var h=this.getPostRendererType(N),c=this.get("replaceBackstagePostAction.renderer."+h,p);if(!c&&h!=="sharedPostRenderer")break;var M=!1;c||(M=!0,c=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",p));if(!c)break;var f={};M?(_.Cr(f,Jhl,c),this.set("data.contents."+N+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
f)):(_.Cr(f,new _.U(h),c),this.set("data.contents."+N+".backstagePostThreadRenderer.post",f))}}};
_.l.replaceBackstageReplyAction=function(p){var x=this.get("replaceBackstageReplyAction.replyId",p),F=this.get("replaceBackstageReplyAction.parentId",p);p=this.get("replaceBackstageReplyAction.renderer.commentRenderer",p);x&&p&&F&&this.setCreatorReply(F,p)};
_.l.removeCommentAction=function(p){var x=this.get("removeCommentAction.commentId",p);if(x){var F=this.get("removeCommentAction.parentCommentId",p);F&&this.get("removeCommentAction.isCreatorReply",p)?this.setCreatorReply(F,void 0):(F||(F=this.getParentPostId(x)),this.removeFromStream(x,F))}};
_.l.setCreatorReply=function(p,x){var F=this.getParentPostId(p);if(F){F=this.postIdToIndices(F);for(var N=0;N<F.length;N++){var h=F[N];if(h<0)break;var c=this.commentIdToIndex(p,h,!1);if(c>=0){var M="data.contents."+h+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+c;c=M+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";M+=".commentThreadRenderer.replies";x==void 0?(this.set(M,{}),this.set(c,!1)):(this.set(M,{commentRepliesRenderer:{teaserContents:[{commentRenderer:x}]}}),
this.set(M+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(c,!0))}c=this.commentIdToIndex(p,h,!0);c>=0&&(c="data.contents."+h+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+c,h=c+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",c+=".commentThreadRenderer.replies",x==void 0?(this.set(c,{}),this.set(h,!1)):(this.set(c,{commentRepliesRenderer:{teaserContents:[{commentRenderer:x}]}}),this.set(h,!0)))}}};
_.l.removeFromStream=function(p,x){if(x){x=this.postIdToIndices(x);for(var F=0;F<x.length;F++){var N=x[F];if(N<0)break;var h=this.commentIdToIndex(p,N,!1);h>=0&&this.splice("data.contents."+N+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",h,1);h=this.commentIdToIndex(p,N,!0);h>=0&&this.splice("data.contents."+N+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",h,1);N="data.contents."+N+".backstagePostThreadRenderer.post.backstagePostRenderer";
h=N+".backstageAttachment.pollRenderer.votedCommentId";this.get(h)===p&&(this.set(h,null),this.set(N+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(x=this.postIdToIndices(p).reverse(),F=0;F<x.length;F++){N=x[F];if(N<0)break;h=this.getPostRendererType(N);var c=this.get("backstagePostThreadRenderer.post."+h,this.data.contents[N]);c.postId===p?this.splice("data.contents",N,1):h==="sharedPostRenderer"&&this.set("data.contents."+N+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);c.scheduledPublishTimeSec&&_.lA(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.l.postIdToIndices=function(p){for(var x=[],F=0;F<this.data.contents.length;F++){var N=this.getPostRendererType(F);this.get("backstagePostThreadRenderer.post."+N+".postId",this.data.contents[F])===p&&x.push(F);if(N==="sharedPostRenderer"){var h=this.get("backstagePostThreadRenderer.post."+N+".originalPost.backstagePostRenderer.postId",this.data.contents[F]);N=this.get("backstagePostThreadRenderer.post."+N+".originalPost.postRenderer.postId",this.data.contents[F]);h!==p&&N!==p||x.push(F)}}return x};
_.l.commentIdToIndex=function(p,x,F){if(x<0)return-1;var N,h,c,M,f=_.r((N=this.data)==null?void 0:(h=N.contents)==null?void 0:(c=h[x])==null?void 0:(M=c.backstagePostThreadRenderer)==null?void 0:M.comments,diD);return(x=F?f==null?void 0:f.teaserContents:f==null?void 0:f.contents)&&x.length?x.findIndex(function(K){return _.r(K,PMJ).comment.commentRenderer.commentId===p}):-1};
_.l.getParentPostId=function(p){p=p.split(".");if(p[1])return p[0]};
_.l.getPostRendererType=function(p){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[p])?"sharedPostRenderer":"backstagePostRenderer"};
var wU=BDa;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],wU.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],wU.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],wU.prototype,"data",void 0);wU=_.B([_.L({disableElementRegistration:!0,is:"ytd-backstage-items"})],wU);
_.P(wU,"ytd-backstage-items",function(){if(TD8!==void 0)return TD8;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return TD8=
p},{mode:1});var R8t;_.qu({is:"ytd-comments",_template:function(){if(R8t!==void 0)return R8t;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-spinner-lite active="[[canShowDefaultSpinner_]]" class="style-scope ytd-comments"></tp-yt-paper-spinner-lite>\n<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return R8t=p},
behaviors:[_.CiB.YtHostElementBehavior,_.oz.YtPlayerListenerBehavior,_.e.YtRendererBehavior,_.T2.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},canShowDefaultSpinner_:{type:Boolean,computed:"computeCanShowDefaultSpinner_(data, canScheduleJobs)"},
engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},
listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)","headerChanged_(data.header)"],created:function(){var p=this;this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_();this.player=
null;this.JSC$14566_PLAYER_EVENTS_=new Map;this.JSC$14566_PLAYER_EVENTS_.set("onVideoProgress",function(){p.onVideoProgress_()})},
attached:function(){this.maybeGetAndSetPlayer_()},
maybeGetAndSetPlayer_:function(){var p=this,x=_.Pt(this);x&&x.getPlayerPromise().then(function(F){p.playerApiReady_(F)})},
playerApiReady_:function(p){this.setPlayer_(p)},
setPlayer_:function(p){this.player_&&this.unlistenFromPlayerEvents(this.player_,this.JSC$14566_PLAYER_EVENTS_);(this.player_=p)&&this.listenToPlayerEvents(p,this.JSC$14566_PLAYER_EVENTS_)},
detached:function(){this.setPlayer_(null)},
onVideoProgress_:function(){var p=this,x=_.Ud("prefetch_comments_ms_after_video");x>0&&setTimeout(function(){return p.loadComments()},x);
_.S("prefetch_comments_idle_job")&&_.vZ(_.E0,function(){return p.loadComments()});
this.setPlayer_(null)},
dataChanged_:function(){this.player_||this.maybeGetAndSetPlayer_()},
contentsChanged_:function(p){p&&p.value&&p.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(p){p&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.Yv("wn_comments");var p=_.b0();p&&_.uA({clientScreenNonce:p},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(p){p=CsJ(p);var x,F,N;if(p=(x=p)==null?void 0:(F=x.createCommentAction)==null?void 0:(N=F.contents)==null?void 0:N.commentThreadRenderer){var h,c,M,f,K,t;!this.isBackstage&&((h=this.data)==null?0:(c=h.header)==null?0:(M=c.commentsHeaderRenderer)==null?0:(f=M.createRenderer)==null?0:(K=f.commentSimpleboxRenderer)==null?0:(t=K.zeroStep)==null?0:t.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var d,v,C,X;this.isBackstage&&((d=this.data)==null?0:(v=d.header)==null?0:(C=v.commentsHeaderRenderer)==null?0:(X=C.zeroStateMessage)==null?0:X.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(p)}},
doReplyInsert_:function(p,x,F,N){N?this.splice(p,N,0,x):this.push(p,x)},
getRepliesPath_:function(p){return"data.contents."+p+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(p,x){p=this.getRepliesPath_(p);return x?p+".commentRepliesRenderer.teaserContents":p+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(p){p=CsJ(p);var x,F,N=(x=p)==null?void 0:(F=x.createCommentReplyAction)==null?void 0:F.parentCommentId,h,c;if(x=(h=p)==null?void 0:(c=h.createCommentReplyAction)==null?void 0:c.contents)if(N=this.commentIdToIndex_(N),!(N<0))if(h=this.getRepliesPath_(N),this.get(h)){var M,f;p=(M=p)==null?void 0:(f=M.createCommentReplyAction)==null?void 0:f.replyToCommentId;M=this.getRepliesContentsPath_(N,!1);this.get(M)&&(f=this.get(M).length,h=M+"."+(f-1)+".continuationItemRenderer",
this.get(h+".button")?(h=this.replyIdToIndex_(p,N,!1),this.doReplyInsert_(M,x,h,f-1)):this.get(h)||(f=this.replyIdToIndex_(p,N,!1),this.doReplyInsert_(M,x,f,null)));M=this.getRepliesContentsPath_(N,!0);this.get(M)?(N=this.replyIdToIndex_(p,N,!0),(!p||N>=0)&&this.doReplyInsert_(M,x,N,null)):this.set(M,[x])}else this.set(h,{commentRepliesRenderer:{teaserContents:[x]}})},
hideReportedCommentAction_:function(p){var x,F=p==null?void 0:(x=p.hideReportedCommentAction)==null?void 0:x.commentId;if(F){var N;p=p==null?void 0:(N=p.hideReportedCommentAction)==null?void 0:N.parentCommentId;F=F.replace("#",".");p||(p=this.getParentCommentId_(F));this.remove_(F,p)}},
getParentCommentId_:function(p){p=p.split(".");if(p[1])return p[0]},
removeCommentAction_:function(p){var x,F=p==null?void 0:(x=p.removeCommentAction)==null?void 0:x.commentId;if(F){var N;p=p==null?void 0:(N=p.removeCommentAction)==null?void 0:N.parentCommentId;F=F.replace("#",".");p||(p=this.getParentCommentId_(F));this.remove_(F,p)}},
pinCommentAction_:function(p){p=CsJ(p);var x,F,N=(x=p)==null?void 0:(F=x.pinCommentAction)==null?void 0:F.commentId;N&&(p=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",p))&&(this.remove_(N),this.insert_(p,!0))},
unpinCommentAction_:function(p){p=CsJ(p);var x,F,N=(x=p)==null?void 0:(F=x.unpinCommentAction)==null?void 0:F.commentId;if(N){var h,c,M;if(p=(h=p.unpinCommentAction)==null?void 0:(c=h.actionResult)==null?void 0:(M=c.update)==null?void 0:M.commentThreadRenderer)this.remove_(N),this.insert_(p)}},
banAuthorAction_:function(p){var x,F=p==null?void 0:(x=p.banAuthorAction)==null?void 0:x.commentId;if(F){var N;p=p==null?void 0:(N=p.banAuthorAction)==null?void 0:N.parentCommentId;F=F.replace("#",".");p||(p=this.getParentCommentId_(F));this.remove_(F,p)}},
commentIdToIndex_:function(p){var x;return p&&(x=this.data)!=null&&x.contents?this.data.contents.findIndex(function(F){var N,h,c,M,f;return p===((F==null?void 0:(N=F.commentThreadRenderer)==null?void 0:(h=N.comment)==null?void 0:(c=h.commentRenderer)==null?void 0:c.commentId)||(F==null?void 0:(M=F.commentThreadRenderer)==null?void 0:M.commentViewModel)&&((f=_.r(F.commentThreadRenderer.commentViewModel,khn))==null?void 0:f.commentId))}):-1},
insert_:function(p,x){var F,N;if((F=this.data)==null?0:(N=F.contents)==null?0:N.some(function(c){return!(c==null||!c.commentThreadRenderer)}))for(F=0,N=this.data.contents.length;F<N;F++){var h=this.data.contents[F].commentThreadRenderer;
if(this.RenderingPriority[p.renderingPriority]>=this.RenderingPriority[h.renderingPriority]){x&&this.RenderingPriority[p.renderingPriority]==this.RenderingPriority[h.renderingPriority]?this.splice("data.contents",F,1,{commentThreadRenderer:p}):this.splice("data.contents",F,0,{commentThreadRenderer:p});break}}else this.set("data.contents",[{commentThreadRenderer:p}])},
doReplyRemove_:function(p,x,F){p=this.replyIdToIndex_(p,x,F);p<0||(x=this.getRepliesContentsPath_(x,F),this.splice(x,p,1))},
remove_:function(p,x){x=this.commentIdToIndex_(x);x<0?(x=this.commentIdToIndex_(p),x<0||this.splice("data.contents",x,1)):(this.doReplyRemove_(p,x,!1),this.doReplyRemove_(p,x,!0),x="data.contents."+x+".commentThreadRenderer.comment.commentRenderer",this.get(x+".backstageAttachment.pollRenderer.votedCommentId")==p&&(this.set(x+".backstageAttachment.pollRenderer.votedCommentId",null),this.set(x+".backstageAttachment.pollRenderer.commentDelete",null)))},
replyIdToIndex_:function(p,x,F){if(x<0)return-1;x=this.getRepliesContentsPath_(x,F);x=this.get(x);if(!x||!x.length)return-1;F=0;for(var N=x.length;F<N;F++){var h=void 0,c=void 0,M=void 0,f=void 0;if((((h=x[F])==null?void 0:(c=h.commentRenderer)==null?void 0:c.commentId)||((M=x[F])==null?void 0:(f=M.commentViewModel)==null?void 0:f.commentId))===p)return F}return-1},
computeIsBackstage_:function(p){return!!p},
computeCanShowDefaultSpinner_:function(p,x){return x?(x=_.J().resolve(_.Bw(_.j3)))&&x.isOnWatch&&x.isOnWatch()?!(p&&(p.contents||p.header||p.continuations)):!1:!1},
onRetrieveLocation_:function(p,x){x&&x.hasComments&&this.tickForCommentsTimer_("lss")},
tickForCommentsTimer_:function(p){_.G6(p,void 0,"wn_comments")},
reloadComments_:function(p){p&&p.reloadCommentsCommand&&p.reloadCommentsCommand.command&&p.reloadCommentsCommand.command.continuationCommand&&_.fc(this,[p.reloadCommentsCommand.command])},
loadComments:function(){_.Ud("prefetch_comments_ms_after_video")||_.S("prefetch_comments_idle_job")?this.$.sections.triggerInitialContinuations():this.$.sections.triggerContinuations()}});var kXH=function(){return _.hZ.apply(this,arguments)||this};
_.E(kXH,_.hZ);_.l=kXH.prototype;_.l.bindIf=function(p,x,F){return p?x:F};
_.l.bindIfDefined=function(p,x){return p!==void 0?p:x};
_.l.booleanString=function(p){return(!!p).toString()};
_.l.equals=function(){for(var p=_.we.apply(0,arguments),x=p[0],F=1;F<p.length;F++)if(x!=p[F])return!1;return!0};
_.l.isGreaterThan=function(p,x){return p>x};
_.l.isLessThan=function(p,x){return p<x};
_.l.logicalAND=function(){for(var p=_.we.apply(0,arguments),x=!!p[0],F=1;F<p.length;F++)x=x&&!!p[F];return x};
_.l.logicalOR=function(){for(var p=_.we.apply(0,arguments),x=!!p[0],F=1;F<p.length;F++)x=x||!!p[F];return x};
_.l.toBool=function(p){return!!p};
var Gx=kXH;Gx.prototype.toBool=Gx.prototype.toBool;Gx.prototype.logicalOR=Gx.prototype.logicalOR;Gx.prototype.logicalAND=Gx.prototype.logicalAND;Gx.prototype.isLessThan=Gx.prototype.isLessThan;Gx.prototype.isGreaterThan=Gx.prototype.isGreaterThan;Gx.prototype.equals=Gx.prototype.equals;Gx.prototype.booleanString=Gx.prototype.booleanString;Gx.prototype.bindIfDefined=Gx.prototype.bindIfDefined;Gx.prototype.bindIf=Gx.prototype.bindIf;Gx=_.B([_.l8()],Gx);_.UH8=[Gx.prototype];var i8H;var I8a;var $H8=function(){return _.m.apply(this,arguments)||this};
_.E($H8,_.m);$H8.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
$H8.prototype.onBackIconTap_=function(){window.history.back()};
var V7=$H8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],V7.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],V7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],V7.prototype,"data",void 0);V7=_.B([_.JZ({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],V7);
_.P(V7,"yt-header-with-back-renderer",function(){if(I8a===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;i8H===void 0&&(i8H=document.createElement("template"));var N=i8H;F.call(x,N.content.cloneNode(!0),p.content.firstChild);I8a=p}p=I8a;return p},{mode:2});var e8k;var pzc;var xMH=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.E(xMH,_.m);_.l=xMH.prototype;_.l.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.l.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&(this.isDarkTheme=p,this.setUrl())};
_.l.dataChanged=function(){var p=this;if(this.data){var x=this.setUrl();x&&_.eG({destination:window,iframe:this.iframe,origin:_.f8k(x.toString()),channelName:"yt-iframe",onMessage:function(F){(F=p.getCommunicationCommand(F.data))&&p.ytComponentBehavior.resolveCommand(F)},
onEstablished:function(){}})}};
_.l.setUrl=function(){if(this.data&&this.data.iframeUrl){var p=_.XE(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(p)return _.jP(this.iframe,p),p}};
_.l.getCommunicationCommand=function(p){var x;if((x=this.data)!=null&&x.onCommunicationCommandsMap){x=this.data.onCommunicationCommandsMap.find(function(h){return h.key===p});
if(x==null?0:x.value)return x==null?void 0:x.value;try{var F=evZ(_.Fj(p)),N=this.data.onCommunicationCommandsMap.find(function(h){return h.key===(F==null?void 0:_.uq(F,1))});
if(N==null?0:N.value)return N==null?void 0:N.value}catch(h){}}};
var WE=xMH;WE.prototype.dataChanged=WE.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],WE.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],WE.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],WE.prototype,"actionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],WE.prototype,"data",void 0);
_.B([_.H({value:!1}),_.k("design:type",Boolean)],WE.prototype,"isDarkTheme",void 0);_.B([_.Ff("#iframe"),_.k("design:type",HTMLIFrameElement)],WE.prototype,"iframe",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],WE.prototype,"dataChanged",null);WE=_.B([_.JZ({is:"yt-iframe-renderer",disableElementRegistration:!0})],WE);
_.P(WE,"yt-iframe-renderer",function(){if(pzc===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;e8k===void 0&&(e8k=document.createElement("template"));var N=e8k;F.call(x,N.content.cloneNode(!0),p.content.firstChild);pzc=p}p=pzc;return p},{mode:2});_.HE=function(p){_.Jm.call(this);this.callback=p;this.bezier=new irD(0,0,.4,0,.2,1,1,1);this.delay=new _.iL(this.next,window,this);this.JSC$14584_animating=!1;_.aG(this,this.delay)};
_.E(_.HE,_.Jm);_.HE.prototype.isAnimating=function(){return this.JSC$14584_animating};
_.HE.prototype.start=function(p,x,F){this.config={from:p,to:x,duration:F,startTime:(0,_.Lf)()};this.JSC$14584_animating=!0;this.next()};
_.HE.prototype.stop=function(){this.delay.stop();this.JSC$14584_animating=!1;this.config=void 0};
_.HE.prototype.next=function(){if(this.config){var p=this.config,x=p.from,F=p.to,N=p.duration;p=p.startTime;var h=(0,_.Lf)()-p;p=this.bezier;N=$dB(p,h/N);if(N==0)p=p.y0;else if(N==1)p=p.y3;else{h=sR(p.y0,p.y1,N);var c=sR(p.y1,p.y2,N);p=sR(p.y2,p.y3,N);h=sR(h,c,N);c=sR(c,p,N);p=sR(h,c,N)}p=_.YV(p,0,1);this.callback(x+(F-x)*p);p<1?this.delay.start():this.JSC$14584_animating=!1}};_.mz=new _.iE("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var FAk={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},h5a=function(p,x,F,N){_.Jm.call(this);this.JSC$14592_miniAppId=p;this.localReleaseId=x;this.derivedDeviceInterface=F;this.isForeground=N;this.JSC$14592_playNonceResolver=new _.FT;this.playPingTimerId=NaN;this.playPingIntervalMs=_.Ud("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.Ud("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.S("enable_displaying_ppn");this.JSC$14592_miniAppClientDataProvider=_.J().resolve(_.mz);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;Ne_(this);var h=setTimeout(function(){_.no(new _.qE("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14592_playNonceResolver.promise.then(function(){clearTimeout(h)})};
_.E(h5a,_.Jm);var coH=function(p,x){p.JSC$14592_playNonceResolver.resolve(x!=null?x:sf(8));p.enableDisplayingPpn&&ln8(p).then(function(F){p.JSC$14592_miniAppClientDataProvider.clientData.set("post_play_nonce",F)})},ln8=function(p){return _.D(function(x){return x.nextAddress==1?_.q(x,p.JSC$14592_playNonceResolver.promise,2):x.return(x.yieldResult)})},Ne_=function(p){var x,F;
_.D(function(N){if(N.nextAddress==1)return _.q(N,p.JSC$14592_playNonceResolver.promise,2);x=N.yieldResult;F={miniAppInfo:{externalPostId:p.JSC$14592_miniAppId,localReleaseId:p.localReleaseId,postPlayNonce:x,derivedDeviceInterface:p.derivedDeviceInterface}};_.uA(F);_.JB(N)})},MPk=function(p){p.state!==0?_.no(new _.qE("[MiniAppPlayLogger] recordPlayStart failed with state "+FAk[p.state])):(p.state=1,oh(p,"ma_cl"),OL(p,"PLAY_EVENT_TYPE_PLAY_START"),anH(p))},DMD=function(p){p.isForeground=!1;
OL(p,"PLAY_EVENT_TYPE_PLAY_PAUSE")},fna=function(p){p.state!==1&&p.state!==2?_.no(new _.qE("[MiniAppPlayLogger] recordPlayEnd failed with state "+FAk[p.state])):(p.state=3,window.clearInterval(p.playPingTimerId),p.playPingTimerId=NaN,UjM(),OL(p,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},KAH=function(p,x){p.state===2&&p.gameReady&&(p.firstClickRecorded?Date.now()-p.clickRecordedMs<p.playClickIntervalMs||(p.clickRecordedMs=Date.now(),OL(p,"PLAY_EVENT_TYPE_PLAY_CLICK")):x&&(oh(p,"ma_fua"),OL(p,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),p.firstClickRecorded=!0,p.clickRecordedMs=Date.now()))};
h5a.prototype.logError=function(p){var x=this,F;_.D(function(N){if(N.nextAddress==1)return p.metadata.externalPostId=x.JSC$14592_miniAppId,F=p.metadata,_.q(N,Promise.race([x.JSC$14592_playNonceResolver.promise,new Promise(function(h){setTimeout(function(){h("")},3E4)})]),2);
F.postPlayNonce=N.yieldResult;p.metadata.localReleaseId=x.localReleaseId;p.loggingError.level="WARNING";_.zj(p.loggingError,p.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:p.metadata});_.JB(N)})};
var qUm=function(p,x,F,N){var h,c,M,f,K,t;_.D(function(d){if(d.nextAddress==1)return _.q(d,p.JSC$14592_playNonceResolver.promise,2);h=d.yieldResult;c={externalPostId:p.JSC$14592_miniAppId,localReleaseId:p.localReleaseId,postPlayNonce:h,sdkVersion:F,api:x};N!==void 0&&(c.networkRequestsMeasurement={networkRequests:_.$H(N,1),cachedRequests:_.$H(N,2),transferredBytes:_.$H(N,3)},(M=N)==null?0:_.vW(M,ku,6))&&(c.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((f=_.B8(N,
ku,6))==null?void 0:wa(f,1))||"0",cacheHits:((K=_.B8(N,ku,6))==null?void 0:wa(K,2))||"0",cachedBytes:((t=_.B8(N,ku,6))==null?void 0:wa(t,3))||"0"});_.E$("miniAppSdkUsage",c);_.JB(d)})},tPH=function(p,x,F){var N,h,c,M,f,K,t,d,v,C,X,Q,b,A,Y,O;
_.D(function(Fw){if(Fw.nextAddress==1)return _.q(Fw,p.JSC$14592_playNonceResolver.promise,2);N=Fw.yieldResult;h={externalPostId:p.JSC$14592_miniAppId,localReleaseId:p.localReleaseId,postPlayNonce:N,sdkVersion:F,measurementWindow:{startTimestampMs:String(bq(x,1)),endTimestampMs:String(bq(x,2))},frameRate:{averageFrameTimeDeltaMs:AH(x,3),averageFrameIdleTimeMs:AH(x,4)}};_.vW(x,Uq,5)&&(h.networkRequests={networkRequests:(c=F3(x))==null?void 0:_.$H(c,1),cachedRequests:(M=F3(x))==null?void 0:_.$H(M,2),
transferredBytes:(f=F3(x))==null?void 0:_.$H(f,3),sameOriginStatusCodeToCounts:Z6a((K=F3(x))==null?void 0:dH6(K,4)),crossOriginStatusCodeToCounts:Z6a((t=F3(x))==null?void 0:dH6(t,5))},(d=F3(x))==null?0:_.vW(d,ku,6))&&(h.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((v=F3(x))==null?void 0:(C=_.B8(v,ku,6))==null?void 0:wa(C,1))||"0",cacheHits:((X=F3(x))==null?void 0:(Q=_.B8(X,ku,6))==null?void 0:wa(Q,2))||"0",cachedBytes:((b=F3(x))==null?void 0:(A=_.B8(b,ku,6))==null?void 0:
wa(A,3))||"0"});_.vW(x,KjI,7)&&(h.gameCapture={averageFrameTimeDeltaMs:(Y=_.B8(x,KjI,7))==null?void 0:AH(Y,1),averageFrameIdleTimeMs:(O=_.B8(x,KjI,7))==null?void 0:AH(O,2)});_.E$("miniAppPerformanceMetrics",h);_.JB(Fw)})},dM8=function(p,x,F){var N,h;
return _.D(function(c){if(c.nextAddress==1)return _.q(c,p.JSC$14592_playNonceResolver.promise,2);N=c.yieldResult;h={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:p.JSC$14592_miniAppId,postPlayNonce:N,miniAppReleaseId:p.localReleaseId},derivedDeviceInterface:p.derivedDeviceInterface,adTriggerType:x};h.rejectedReason=F||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.E$("miniAppAdEvent",h);_.JB(c)})};
h5a.prototype.disposeInternal=function(){_.Jm.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var OL=function(p,x,F,N){F=F===void 0?{}:F;N=N===void 0?!1:N;var h,c,M,f;_.D(function(K){if(K.nextAddress==1)return h=p.isForeground,c=p.beforeReady,_.q(K,p.JSC$14592_playNonceResolver.promise,2);M=K.yieldResult;f={externalPostId:p.JSC$14592_miniAppId,localReleaseId:p.localReleaseId,derivedDeviceInterface:p.derivedDeviceInterface,postPlayNonce:M,type:x};F.sequenceGroup=M;f.playState=c?"PLAY_STATE_NOT_READY":h?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.E$("miniAppPlayEvent",f,F);
N&&_.Xx();_.JB(K)})},oh=function(p,x){var F;
_.D(function(N){if(N.nextAddress==1)return F=(0,_.Lf)(),_.q(N,p.JSC$14592_playNonceResolver.promise,2);_.wH(x,F);_.JB(N)})},anH=function(p){isNaN(p.playPingTimerId)&&(p.playPingTimerId=_.pf(function(){p.state!==1&&p.state!==2?_.no(new _.qE("[MiniAppPlayLogger] reportPlayPing failed with state "+FAk[p.state])):OL(p,"PLAY_EVENT_TYPE_PLAY_PING")},p.playPingIntervalMs))},Z6a=function(p){return Array.from(p.entries()).map(function(x){var F=_.a(x);
x=F.next().value;F=F.next().value;return{key:x,value:F}})};var vEc=_.Ud("show_mini_app_ad_frequency_cap_ms",0),Jo8=function(){this.showAdIntervalMs=vEc;this.isRateLimited=!0},Cg8=function(p,x){setTimeout(function(){return p.isRateLimited=!1},p.showAdIntervalMs);
p.showMiniAppAdCommand=x.showMiniAppAdCommand;p.isEmbeddedInWebview=x.isEmbeddedInWebview;p.playLogger=x.playLogger},roD=function(p,x){var F;
return _.D(function(N){if(N.nextAddress==1){if(!p.showMiniAppAdCommand||!p.isEmbeddedInWebview)return N.return(SUt(p,x,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(p.isRateLimited)return N.return(SUt(p,x,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));p.adResolver=new _.FT;F=ywn(new nfB,x);OW(p.showMiniAppAdCommand,bqD(F));p.isRateLimited=!0;setTimeout(function(){return p.isRateLimited=!1},p.showAdIntervalMs);
return _.q(N,p.adResolver.promise,2)}return N.return(N.yieldResult)})};
Jo8.prototype.onAdFinished=function(p){p=Pqj(p);var x;(x=this.adResolver)==null||x.resolve(p)};
var SUt=function(p,x,F){var N;return _.D(function(h){if(h.nextAddress==1)h=_.q(h,(N=p.playLogger)==null?void 0:dM8(N,Q6H(x),F),2);else{var c=h.return;var M=new LRB;M=_.Rx(M,1,2);h=c.call(h,M)}return h})};var EEH=new _.iE("INNERTUBE_MANAGER_TOKEN");var Xzc=function(){this.callbacks={}};
Xzc.prototype.initialize=function(p){var x=this;this.callbacks=p;window.youtubewebview?window.youtubewebview.onmessage=function(F){gEk(x,F)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(F){gEk(x,F)})};
var gEk=function(p,x){if(x.data)try{var F=evZ(x.data);if(_.fH(F,1)!=null){var N=Xan(_.uq(F,2));switch(_.uq(F,1)){case "yt-mini-app-load-audio-state":var h,c;(c=(h=p.callbacks).onAudioStateLoaded)==null||c.call(h,_.y8(N,qf(N,zv,1)));break;case "yt-mute-mini-app":var M,f;(f=(M=p.callbacks).onMuteMiniApp)==null||f.call(M);break;case "yt-unmute-mini-app":var K,t;(t=(K=p.callbacks).onUnmuteMiniApp)==null||t.call(K);break;case "yt-playable-exit":var d,v;(v=(d=p.callbacks).onExit)==null||v.call(d);break;
case "yt-post-play-nonce":var C,X;(X=(C=p.callbacks).onPostPlayNonceReceived)==null||X.call(C,G5(N,2,zv));break;case "yt-confirm-exit-mini-app":var Q,b;(b=(Q=p.callbacks).confirmExitMiniApp)==null||b.call(Q);break;case "yt-confirm-exit-mini-app-edu":var A,Y;(Y=(A=p.callbacks).confirmExitMiniAppEdu)==null||Y.call(A);break;case "yt-benchmarking-response":var O,Fw;(Fw=(O=p.callbacks).onNativeBenchmarkingMessageReceived)==null||Fw.call(O,G5(N,2,zv));break;case "yt-mini-app-load-3p-consent-state":var R,
ld;(ld=(R=p.callbacks).multiplayer3pAckStateLoaded)==null||ld.call(R,_.y8(N,qf(N,zv,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var pp,Kp;(Kp=(pp=p.callbacks).exitMiniAppSeenStateLoaded)==null||Kp.call(pp,_.y8(N,qf(N,zv,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var sM,np;(np=(sM=p.callbacks).onNavigateToNewMiniApp)==null||np.call(sM);break;case "yt-game-data-available":var Jz,Y$;(Y$=(Jz=p.callbacks).onGameDataAvailable)==null||Y$.call(Jz,G5(N,2,zv));break;case "yt-pause-mini-app":var xB,
qI;(qI=(xB=p.callbacks).onPauseMiniApp)==null||qI.call(xB);break;case "yt-resume-mini-app":var RJ,Ik;(Ik=(RJ=p.callbacks).onResumeMiniApp)==null||Ik.call(RJ);break;case "yt-playable-ad-finished":var vb,CZ;(CZ=(vb=p.callbacks).onAdFinished)==null||CZ.call(vb,G5(N,2,zv))}}else _.no(Error("Rh"))}catch(sk){_.zj(Error("Sh"))}else _.no(Error("Th"))};var s6$=function(p){this.rpcErrorCode=p};var j7=function(p,x,F){this.intervalMs=p;this.apiFunc=x;this.type=F;this.schedulerReady=!0};
j7.prototype.call=function(p){var x=this,F;return _.D(function(N){if(N.nextAddress==1){if(x.type!==1&&p===x.cachedValue)return N.return();x.pendingApiRequestResolver||(x.pendingApiRequestResolver=new _.FT);F=x.pendingApiRequestResolver.promise;x.cachedValue=p;return _.q(N,QMH(x),2)}return N.return(F)})};
j7.prototype.flush=function(p){p=p===void 0?!1:p;var x=this;return _.D(function(F){return x.cachedValue===void 0?F.return():_.q(F,x.apiFunc(x.cachedValue,p),0)})};
var QMH=function(p){var x,F,N;return _.D(function(h){switch(h.nextAddress){case 1:if(!p.schedulerReady||!p.pendingApiRequestResolver)return h.return();p.schedulerReady=!1;x=p.pendingApiRequestResolver;p.pendingApiRequestResolver=void 0;_.KM(h,2);if(p.cachedValue===void 0){h.jumpTo(4);break}return _.q(h,p.apiFunc(p.cachedValue),5);case 5:F=h.yieldResult,x.resolve(F);case 4:_.ub(h,3);break;case 2:N=_.v9(h),x.reject(N);case 3:setTimeout(function(){return _.D(function(c){p.schedulerReady=!0;return _.q(c,
QMH(p),0)})},p.intervalMs),_.JB(h)}})};var b3E=window.location.origin+"/miniapp_cloudsaves",n0d=[400,401],z5_=_.Ud("cloud_save_game_data_rate_limit_ms",3E3),yo8=function(p){var x=this;this.JSC$14636_miniAppId=p;this.loadAttempts=0;this.cloudSaveIntervalMs=z5_;this.initialDownloadDataSucceeded=!1;this.JSC$14636_playNonceResolver=new _.FT;this.scottyUploadRateLimiter=new j7(this.cloudSaveIntervalMs,function(F,N){return sM_(x,F,N)},2);
this.downloadDataPromise=nEk(this);this.downloadDataPromise.then(function(){x.initialDownloadDataSucceeded=!0}).catch(function(){})},b6H=function(p,x){x.then(function(F){return p.JSC$14636_playNonceResolver.resolve(F)})},Ao8=function(p){return _.D(function(x){return p.cachedData===void 0?x.return(p.downloadDataPromise):x.return(p.cachedData)})},uKe=function(p,x){return _.D(function(F){p.cachedData=x;
if(!p.initialDownloadDataSucceeded)throw Error("Uh");return _.q(F,p.scottyUploadRateLimiter.call(x),0)})},YUa=function(){return new Promise(function(p){setTimeout(p,1E3,"")})},wzD=function(p,x){var F,N;
return _.D(function(h){if(h.nextAddress==1)return F=p.JSC$14636_miniAppId,_.q(h,Promise.race([p.JSC$14636_playNonceResolver.promise,YUa()]),2);N={"X-YouTube-MiniAppId":F,"X-YouTube-PostPlayNonce":h.yieldResult};"DELEGATED_SESSION_ID"in _.QL&&bcH(x,N);return h.return(N)})},sM_=function(p,x,F){F=F===void 0?!1:F;
return _.D(function(N){return zkp()?_.S("enable_cloud_save_error_popup_after_retry")?N.return(new Promise(function(h,c){var M,f,K,t,d;return _.D(function(v){switch(v.nextAddress){case 1:M=0,f=!0,t=K=null;case 2:if(!(f&&M++<2)){v.jumpTo(4);break}_.KM(v,5);return _.q(v,Gl8(p,x,F),7);case 7:K=v.yieldResult;f=K.ok?!1:!n0d.includes(K.status);_.ub(v,2);break;case 5:t=d=_.v9(v);f=yip(t);v.jumpTo(2);break;case 4:K?K.ok?(L0(p,z5_),h()):(L0(p,p.cloudSaveIntervalMs*2),c(Error("Vh`"+String(K.status),{cause:{rpcErrorCode:K.status}}))):
(L0(p,p.cloudSaveIntervalMs*2),c(t||Error("Wh"))),_.JB(v)}})})):N.return(new Promise(function(h,c){var M,f;
return _.D(function(K){if(K.nextAddress==1){if(p.JSC$14636_miniAppId==="")return c(Error("Xh")),K.return();_.KM(K,2);return _.q(K,Gl8(p,x,F),4)}if(K.nextAddress!=2)return M=K.yieldResult,M.ok?(L0(p,z5_),h()):(L0(p,p.cloudSaveIntervalMs*2),c(Error("Vh`"+String(M.status),{cause:{rpcErrorCode:M.status}}))),_.ub(K,0);f=_.v9(K);L0(p,p.cloudSaveIntervalMs*2);c(f);_.JB(K)})})):N.return()})},Gl8=function(p,x,F){F=F===void 0?!1:F;
var N,h,c;return _.D(function(M){if(M.nextAddress==1)return N=_.Xc((new TextEncoder).encode(x)),h=Aik(),_.q(M,wzD(p,h),2);c=M.yieldResult;return M.return(fetch(h,{method:"POST",body:new Blob([N]),headers:c,keepalive:F}))})},nEk=function(p){var x,F;
return _.D(function(N){if(N.nextAddress==1){if(!zkp())return N.return("");if(p.JSC$14636_miniAppId==="")throw Error("Xh");if(p.loadAttempts>2)return N.return(p.downloadDataPromise);_.KM(N,2);return _.q(N,VPH(p),4)}if(N.nextAddress!=2)return x=N.yieldResult,N.return(x);F=_.v9(N);if(yip(F)&&++p.loadAttempts<2)return N.return(nEk(p));throw F;})},VPH=function(p){var x,F,N,h,c;
return _.D(function(M){switch(M.nextAddress){case 1:return _.KM(M,2),x=Aik(),_.q(M,wzD(p,x),4);case 4:return F=M.yieldResult,_.q(M,fetch(x,{method:"GET",headers:F}),5);case 5:return N=M.yieldResult,N.ok?_.q(M,N.text(),6):M.return(Promise.reject(Error("Yh`"+String(N.status),{cause:new s6$(N.status)})));case 6:return h=M.yieldResult,M.return((new TextDecoder).decode(_.Fj(h)));case 2:return c=_.v9(M),M.return(Promise.reject(c))}})},L0=function(p,x){p.cloudSaveIntervalMs=x;
p.scottyUploadRateLimiter.intervalMs=p.cloudSaveIntervalMs};
yo8.prototype.flush=function(){var p=this;return _.D(function(x){return p.initialDownloadDataSucceeded?_.q(x,p.scottyUploadRateLimiter.flush(!0),0):x.return()})};var WAX=p4(eC(1),IS(1)),H68=p4(eC(1),IS(3)),PE=function(p){this.callbacks=p};
_.l=PE.prototype;_.l.onAudioToggled=function(p,x){(x===void 0||x)&&_.a3("yt-mini-app-is-audio-enabled",p,2592E3)};
_.l.onPause=function(){this.onAudioToggled(!1,!1)};
_.l.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.l.returnNativeBenchmarkingMessage=function(){};
_.l.sendGameData=function(){};
_.l.sendStartGameFrameCapture=function(){};
var uuB=function(p,x,F){this.callbacks=p;var N=this;this.sdkVersion=new _.FT;this.channel=new Vpk(_.eG({destination:window,iframe:x,origin:(new URL(F.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var h=Tx;var c=eC(5);var M=new eiZ;M=_.WW(M,1,1E4);c=_.K6(c,4,aRn,M);h(N,c);N.onAudioToggled(N.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){N.sdkVersion.resolve("")},1E4)};
_.E(uuB,PE);_.l=uuB.prototype;_.l.onAudioToggled=function(p,x){PE.prototype.onAudioToggled.call(this,p,x===void 0?!0:x);x=Tx;var F=eC(2),N=new Irm;p=_.Nc(N,1,p);p=_.K6(F,3,aRn,p);x(this,p)};
_.l.onPause=function(){PE.prototype.onPause.call(this);Tx(this,eC(3))};
_.l.onResume=function(){PE.prototype.onResume.call(this);Tx(this,eC(4))};
_.l.returnNativeBenchmarkingMessage=function(p){var x=Tx,F=eC(6);var N=IS(_.vW(p,Bk,1)?1:2);p=_.vW(p,Bk,1)?p:null;N=_.K6(N,5,$u,p);x(this,p4(F,N))};
_.l.sendGameData=function(p){var x=Tx,F=eC(7);p=_.K6(F,5,aRn,p);x(this,p)};
_.l.sendStartGameFrameCapture=function(){Tx(this,eC(9))};
var BE=function(p,x,F){var N,h,c;return _.D(function(M){if(M.nextAddress==1)return N=p.callbacks,h=N.onSdkCalled,c=x,_.q(M,p.sdkVersion.promise,2);h.call(N,c,M.yieldResult,F);_.JB(M)})};
uuB.prototype.onMessage=function(){var p=this;return mmD(No,function(x){var F,N,h,c,M,f,K,t,d,v,C,X,Q,b,A,Y,O,Fw,R,ld,pp,Kp,sM,np,Jz,Y$,xB,qI,RJ,Ik,vb,CZ,sk,Ov,Xj,AC,Jo,Bz,aJ,he,Bb,PH,dl,nZ;return _.D(function(ep){switch(ep.nextAddress){case 1:if(!d8C(x.data))return _.no(Error("Zh")),ep.return();F=_.Yg(x.data,1);_.S("enable_iframe_message_get_type_via_fields")&&(N=x.data,F=h=_.Yg(N,1));switch(F){case 8:if(x.data.hasMetadata()){var jp=p.sdkVersion,fZ=jp.resolve;var Uv=x.data.getMetadata();Uv=_.uq(Uv,
1);fZ.call(jp,Uv);clearTimeout(p.sdkVersionTimeoutId)}break;case 6:return ep.jumpTo(2);case 16:if(!_.JH(x.data,D8B,14,hS))return ep.return();c=_.V8(x.data,D8B,14,hS);(f=(M=p.callbacks).onGameFrameReceived)==null||f.call(M,c);return ep.return();case 1:if(jp=_.V8(x.data,FjJ,2,hS))switch(_.Yg(jp,1)){case 1:p.callbacks.onFirstFrameReady();if(_.S("enable_network_request_logging_on_game_events")&&_.vW(jp,Uq,4)){BE(p,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.B8(jp,Uq,4));break}BE(p,"MINI_APP_SDK_API_FIRST_FRAME_READY");
break;case 2:(Uv=(fZ=p.callbacks).onGameReady)==null||Uv.call(fZ);if(_.S("enable_network_request_logging_on_game_events")&&_.vW(jp,Uq,4)){BE(p,"MINI_APP_SDK_API_GAME_READY",_.B8(jp,Uq,4));break}BE(p,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.JH(jp,iU,3,NMD))p.callbacks.onResourceLoaded(_.V8(jp,iU,3,NMD))}return ep.return();case 3:return ep.jumpTo(3);case 4:return ep.jumpTo(4);case 2:return ep.jumpTo(5);case 9:return ep.jumpTo(6);case 10:return p.callbacks.onClick(),ep.return();case 5:return ep.jumpTo(7);
case 11:if(!_.JH(x.data,Bx,9,hS))return ep.return();K=_.V8(x.data,Bx,9,hS);(d=(t=p.callbacks).onBenchmarkingMessageReceived)==null||d.call(t,K);jp=x.reply;fZ=eC(1);Uv=IS(1);var FK=new Bx;var uB=new Uint8Array(Mbp(K,qf(K,BaI,6))|0);FK=ac(FK,5,BaI,_.yJ(uB,!1));Uv=_.K6(Uv,5,$u,FK);jp.call(x,p4(fZ,Uv));return ep.return();case 12:return ep.jumpTo(8);case 13:return ep.jumpTo(9);case 15:if(!_.S("enable_open_yt_content"))return x.reply(H68),ep.return();if(!_.JH(x.data,M0K,12,hS))return x.reply(p4(eC(1),IS(2))),
ep.return();jp=_.V8(x.data,M0K,12,hS);v=_.uq(jp,1);p.callbacks.onOpenYTContent(v);x.reply(WAX);return ep.return();case 14:return ep.jumpTo(10);default:return ep.return()}ep.jumpTo(0);break;case 2:if(!_.JH(x.data,xa,5,hS))return ep.return();fZ=x.data;jp=qf(fZ,hS,5);fZ=fZ.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(jp=reH(fZ,fZ[_.DK]|0,xa,jp))||(jp=xa[Yvp])||(jp=new xa,JC(jp.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),jp=xa[Yvp]=jp);C=jp;jp=_.UT(C,RS,1,_.ik());X=_.a(jp);Q=X.next();
case 12:if(Q.done){ep.jumpTo(14);break}b=Q.value;A=new _.qE;A.level=_.Yg(b,2)===1?"WARNING":"ERROR";Y=wRE(b.getSource());return _.q(ep,p.sdkVersion.promise,15);case 15:O={source:Y,sdkVersion:ep.yieldResult};_.eD(_.da(b,6))!=null?(A.message=b.getMessage(),A.stack=_.uq(b,5),O.sdkErrorType=GqE(_.Yg(b,6)),_.eD(_.da(b,7))!=null&&(O.sdkApi=VxB(_.Yg(b,7)))):A.stack=void 0;R=Fw=void 0;(R=(Fw=p.callbacks).onError)==null||R.call(Fw,{loggingError:A,metadata:O});Q=X.next();ep.jumpTo(12);break;case 14:return ep.return();
case 3:return _.KM(ep,16),jp=p.callbacks,fZ=jp.onSave,Uv=_.V8(x.data,$Lk,4,hS),Uv=_.uq(Uv,1),_.q(ep,fZ.call(jp,Uv),18);case 18:x.reply(WAX);_.ub(ep,17);break;case 16:return ld=_.v9(ep),pp=jw,Kp=ld,sM=p.callbacks,np="MINI_APP_SDK_API_SAVE_DATA",_.q(ep,p.sdkVersion.promise,19);case 19:pp(Kp,sM,np,ep.yieldResult),x.reply(H68);case 17:return _.q(ep,BE(p,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return ep.return();case 4:return _.KM(ep,21),_.q(ep,p.callbacks.onLoad(),23);case 23:Jz=ep.yieldResult;jp=x.reply;
fZ=eC(1);Uv=IS(1);FK=new $Lk;FK=_.J_(FK,1,Jz);Uv=_.K6(Uv,3,$u,FK);jp.call(x,p4(fZ,Uv));_.ub(ep,22);break;case 21:return Y$=_.v9(ep),xB=jw,qI=Y$,RJ=p.callbacks,Ik="MINI_APP_SDK_API_LOAD_DATA",_.q(ep,p.sdkVersion.promise,24);case 24:xB(qI,RJ,Ik,ep.yieldResult),x.reply(H68);case 22:return _.q(ep,BE(p,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return ep.return();case 5:_.KM(ep,26);p.callbacks.onSendHighScore(sy(_.V8(x.data,Zyn,3,hS).getValue()));x.reply(p4(eC(1),IS(1)));_.ub(ep,27);break;case 26:return vb=
_.v9(ep),CZ=jw,sk=vb,Ov=p.callbacks,Xj="MINI_APP_SDK_API_SEND_SCORE",_.q(ep,p.sdkVersion.promise,28);case 28:CZ(sk,Ov,Xj,ep.yieldResult),x.reply(H68);case 27:return _.q(ep,BE(p,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return ep.return();case 6:if(!_.JH(x.data,t0n,8,hS)){ep.jumpTo(30);break}jp=_.V8(x.data,t0n,8,hS);jp=_.Yg(jp,1);return _.q(ep,BE(p,VxB(jp)),30);case 30:return ep.return();case 7:return jp=x.reply,fZ=eC(1),Uv=IS(1),FK=p.callbacks.getLanguage(),Uv=ac(Uv,4,$u,te(FK)),jp.call(x,p4(fZ,
Uv)),_.q(ep,BE(p,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return ep.return();case 8:if(!_.JH(x.data,qRl,10,hS))return ep.return();AC=_.V8(x.data,qRl,10,hS);Jo=p.callbacks;Bz=Jo.onSdkPerformanceUpdate;return _.q(ep,p.sdkVersion.promise,33);case 33:return Bz.call(Jo,AC,ep.yieldResult),ep.return();case 9:jp=x.data;if(_.fH(jp,qf(jp,hS,11))==null)return x.reply(p4(eC(1),IS(2))),ep.return();aJ=G5(x.data,11,hS);p.callbacks.onShareInviteCode(aJ);x.reply(WAX);return _.q(ep,BE(p,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),
34);case 34:return ep.return();case 10:if(_.JH(x.data,iTB,13,hS)){ep.jumpTo(35);break}return _.q(ep,p.callbacks.onShowMiniAppAd(2),36);case 36:return he=ep.yieldResult,x.reply(p4(eC(1),lRk(he))),_.q(ep,BE(p,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return ep.return();case 35:jp=_.V8(x.data,iTB,13,hS);a:switch(_.Yg(jp,1)){case 1:jp={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:jp={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:jp={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Bb=
jp;PH=Bb.adType;dl=Bb.sdkApi;jp=p.callbacks;fZ=jp.onShowMiniAppAd;Uv=_.V8(x.data,iTB,13,hS);Uv=_.uq(Uv,2);return _.q(ep,fZ.call(jp,PH,Uv||void 0),38);case 38:return nZ=ep.yieldResult,x.reply(p4(eC(1),lRk(nZ))),_.q(ep,BE(p,dl),39);case 39:return ep.return()}})})};
var Tx=function(p,x){_.D(function(F){p.channel.send(x);_.JB(F)})},LE=function(p,x,F){this.callbacks=p;
var N=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;p=b6r(x,(new URL(F.toString())).origin);this.gameSnacks=new $mK(p);this.gameSnacks.page.onReady(function(){N.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){N.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var h,c;(c=(h=N.callbacks).onGameReady)==null||c.call(h)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(h,c){try{N.callbacks.onSendHighScore(c)}catch(M){jw(M,N.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(h,c){var M;return _.D(function(f){if(f.nextAddress==1)return _.KM(f,2),_.q(f,N.callbacks.onSave(N.decoder.decode(c)),4);if(f.nextAddress!=2)return _.ub(f,0);M=_.v9(f);jw(M,N.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return f.return()})});
this.gameSnacks.storage.onLoad(function(){var h,c;return _.D(function(M){if(M.nextAddress==1)return _.KM(M,2),_.q(M,N.callbacks.onLoad(),4);if(M.nextAddress!=2)return h=M.yieldResult,M.return(N.encoder.encode(h));c=_.v9(M);jw(c,N.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return M.return(N.encoder.encode(""))})});
this.gameSnacks.init()};
_.E(LE,PE);LE.prototype.onAudioToggled=function(p,x){PE.prototype.onAudioToggled.call(this,p,x===void 0?!0:x);var F;(F=this.gameSnacks)==null||F.audio.update(p)};
LE.prototype.onPause=function(){PE.prototype.onPause.call(this);if(_.S("enable_gamesnacks_pause_resume_bugfix")){var p;(p=this.gameSnacks)==null||p.game.pause()}};
LE.prototype.onResume=function(){PE.prototype.onResume.call(this);if(_.S("enable_gamesnacks_pause_resume_bugfix")){var p;(p=this.gameSnacks)==null||p.game.resume()}};var mMe=WaM,oEe=_.mO(function(p){var x=p.data;var F=p.loadingProgress;p=_.a(_.hu("",void 0,"LYYTdd"));var N=p.next().value,h=p.next().value;p=_.a(_.hu(!1,void 0,"K0waae"));var c=p.next().value,M=p.next().value,f=[],K=function(){return"transform: scaleX("+(_.gx(F)||0)+")"},t=null,d=function(){var Q;
return(Q=x()&&t)!=null?Q:t=x().showAnniversaryAnimation?6:mMe()};
_.rx(function(){var Q;if(x().timeOutMessages&&((Q=x().timeOutMessages)==null?0:Q.length)){t=null;Q=_.a(f);for(var b=Q.next();!b.done;b=Q.next())clearTimeout(b.value);f.length=0;H3J(x().timeOutMessages,f,h,M)}});
var v=function(){return!!x().persistentErrorMessageTitle},C=function(){return F!==void 0},X=function(){return x().title};
return _.Z("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.Z("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.Z("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.Z("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var Q,b=(Q=x().backgroundImage)==null?void 0:Q.sources,A;return(b==null?0:b.length)?"background-image: url("+((A=b[0])==null?void 0:A.url)+")":
""}}),_.Z("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.Z(_.D9,{cond:function(){return!v()},
then:function(){var Q={};return _.Z("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.Z("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.Z(_.e6,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+d()},
data:function(){var b="loading_animation_"+d();return{animationConfig:{name:b,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+b+".json",loop:!0,autoplay:!0}}}})),_.Z("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.Z(_.D9,{cond:X,
then:function(){return _.Z("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},X)}}),_.Z("p",{class:_.$L("mini-app-splash-screen-view-model-wiz__timeout-message",(Q["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return c()},Q)),
"aria-live":"polite"},N),_.Z(_.D9,{cond:C,then:function(){return _.Z("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.Z("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:K}))}})))}}),_.Z(_.D9,{cond:v,
then:function(){return _.Z("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.Z("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return x().persistentErrorMessageTitle}),_.Z(_.D9,{cond:function(){return!!x().persistentErrorMessageDescription},
then:function(){return _.Z("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return x().persistentErrorMessageDescription})}}))}})))},"rd");var O6m=new _.iE("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var jMc=mV;mV=function(p){function x(F){if(F){var N,h;(N=F.__spec)==null||(h=N.didUnmount)==null||h.call(N);for(N=0;N<F.childNodes.length;N++)x(F.childNodes[N])}}
jMc==null||jMc(p);tD(function(){for(var F=0;F<p.length;F++)x(p[F])})};var LAH=_.mO(function(p){var x=p.data;var F=p.score;var N=p.formattedScore;var h=p.onScoreChanged;var c=p.isEmbeddedInWebview;var M=_.O$(),f=function(){var X;return _.r(x==null?void 0:(X=x())==null?void 0:X.buttonViewModel,_.X6)},K=function(){var X;
return(F==null?void 0:F())||Number(x==null?void 0:(X=x())==null?void 0:X.lastScore)||0},t=function(){var X;
return(N==null?void 0:N())||((X=f())==null?void 0:X.title)||""},d,v=1;
if(p=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))p=Number(p),v=isNaN(p)?1:p/100;_.rx(function(){h==null||h(K());var X;var Q=_.g$((X=f())==null?void 0:X.onTap);if(Q){X=_.r(Q,sO6);var b,A,Y;X=_.r(X==null?void 0:(b=X.panelLoadingStrategy)==null?void 0:(A=b.inlineContent)==null?void 0:(Y=A.dialogViewModel)==null?void 0:Y.customContent,AwD)}else X=void 0;if(b=X)b.score=t()});
p=_.h0(function(){var X,Q,b=x==null?void 0:(X=x())==null?void 0:(Q=X.loggingDirectives)==null?void 0:Q.trackingParams;b&&_.cj(_.J().resolve(_.Zy),b);return!1});
_.J9(function(){if(M.value){var X=M.value.querySelector("button"),Q=f();X&&Q&&mXB(X,Q);Rc("yt-share-playable-with-high-score",function(){var b=K().toString(),A=x==null?void 0:x().onShareHighScoreCommand,Y=x==null?void 0:x().highScoreShareClientParamIdentifier,O=c==null?void 0:c();A&&(O?(Y=new dJD,b=_.J_(Y,2,b),OW(A,b.JSC$10105_serializeBinary())):Y&&(_.J().resolve(O6m).clientParams.set(Y,{miniAppClientParams:{highScore:b}}),E0w(A,!1)))})}});
var C=function(){var X=f();X&&(F==null?0:F())&&X.accessibilityText&&(X.accessibilityText=X.accessibilityText.replace(d,t()));d=t();return{numberValue:K(),numberText:t(),heightPx:36,fontSizeMultiplier:v,shouldAnimate:!(F==null||!F())&&!0}};
return _.Z("yt-mini-app-score-button-view-model",{class:function(){var X={};return _.pQ("mini-app-score-button-view-model-wiz",(X["mini-app-score-button-view-model-wiz--is-visible"]=K()!==0,X))},
el:M,"on:click":p},_.je(!1,function(){return _.Z("span",{style:"display:none;"},K)}),_.Z(_.Es,{data:function(){var X;
return x==null?void 0:(X=x())==null?void 0:X.buttonViewModel}},{buttonViewModel:function(X){return _.Z(_.nV,{data:X.data,
animatedTextProps:C})}}))},"sd");var klX=_.mO(function(p){var x,F=(x=_.Mq("yt-mini-app-is-theater-mode-enabled"))!=null?x:!1,N=_.S("enable_playable_container_save_button"),h=_.S("enable_play_next_destination_page_in_toolbar");x={};return _.Z("ytm-mini-app-top-bar-view-model",null,_.Z("div",{class:_.$L("yt-mini-app-top-bar-view-model",(x["yt-mini-app-top-bar-view-model--mobile"]=!1,x["yt-mini-app-top-bar-view-model--desktop"]=!0,x))},_.Z("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.Z(_.D9,{cond:function(){var c;
return!!p.data().backButtonEdu&&!((c=p.isExitMiniAppSeen)==null?0:c.call(p))},
then:function(){return _.Z(_.Es,{data:function(){return p.data().backButtonEdu}},{buttonViewModel:_.nV})},
else:function(){return _.Z(_.Es,{data:function(){return p.data().backButton}},{buttonViewModel:_.nV})}}),_.Z(_.D9,{cond:function(){return p.data().viewAllButton&&!0},
then:function(){return _.Z(_.Es,{data:function(){return p.data().viewAllButton}},{buttonViewModel:_.nV})}}),_.Z(_.D9,{cond:function(){return p.data().title&&!0},
then:function(){return _.Z("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return p.data().title})}})),_.Z("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.Z(_.D9,{cond:function(){var c;
return(c=p.isDesktopPlayPage)==null?void 0:c.call(p)},
then:function(){return _.Z(_.TG,null,_.Z(Pgm,{highScoreButton:function(){return p.data().highScoreButton},
score:p.score,formattedScore:p.formattedScore,onScoreChanged:p.onScoreChanged,isEmbeddedInWebview:p.isEmbeddedInWebview}),_.Z(TeX,{enableSaveButton:function(){return _.gx(N)},
saveButton:function(){return p.data().saveButton},
isSaved:p.isSaved,onSaveToggled:function(){return p.onSaveToggled}}),_.Z(Bem,{menuButton:function(){return p.data().menuButton}}))},
else:function(){return _.Z(_.D9,{cond:function(){return!1},
then:function(){return _.Z(_.Es,{data:function(){return p.data().playPageButton}},{buttonViewModel:function(c){return _.Z(_.nV,{data:c.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.Z(Pgm,{highScoreButton:function(){return p.data().highScoreButton},
score:p.score,formattedScore:p.formattedScore,onScoreChanged:p.onScoreChanged,isEmbeddedInWebview:p.isEmbeddedInWebview})}})}})),_.Z("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.Z(_.Es,{data:function(){return p.data().muteButton}},{toggleButtonViewModel:function(c){var M=c.data;
return _.Z(_.QP,{data:function(){var f,K;return Object.assign({},M(),{isToggled:(K=(f=p.isAudioEnabled)==null?void 0:f.call(p))!=null?K:!0})},
onToggle:p.onAudioToggled,useOutlinedIcon:!0})}}),_.Z(_.Es,{data:function(){return p.data().theatreModeButton}},{toggleButtonViewModel:function(c){var M=c.data;
return _.Z("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.Z(_.QP,{data:function(){return Object.assign({},M(),{isToggled:F})},
useOutlinedIcon:!0}))}}),_.Z(R5a,{fullscreenButton:function(){return p.data().fullscreenButton}}),_.Z(_.D9,{cond:function(){return _.gx(h)&&p.data().viewAllButton&&!1},
then:function(){return _.Z(_.Es,{data:function(){return p.data().viewAllButton}},{buttonViewModel:_.nV})}}),_.Z(_.D9,{cond:function(){var c;
return!((c=p.isDesktopPlayPage)==null?0:c.call(p))},
then:function(){return _.Z(_.TG,null,_.Z(TeX,{enableSaveButton:function(){return _.gx(N)},
saveButton:function(){return p.data().saveButton},
isSaved:p.isSaved,onSaveToggled:function(){return p.onSaveToggled}}),_.Z(Bem,{menuButton:function(){return p.data().menuButton}}))}}))))},"td");
klX.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var Bem=_.mO(function(p){return _.Z("div",{class:"yt-mini-app-top-bar-view-model__center-buttons-child"},_.Z(_.Es,{data:p.menuButton},{buttonViewModel:_.nV}))},"ud"),TeX=_.mO(function(p){var x=p.enableSaveButton;
var F=p.saveButton;var N=p.isSaved;var h=p.onSaveToggled;return _.Z(_.D9,{cond:function(){return x()&&!(F==null||!F())},
then:function(){return _.Z("div",{class:"yt-mini-app-top-bar-view-model__center-buttons-child"},_.Z(_.Es,{data:function(){var c=_.r(F==null?void 0:F(),_.gR),M;return{toggleButtonViewModel:Object.assign({},c,{isToggled:(M=N==null?void 0:N())!=null?M:!(c==null||!c.isToggled)})}}},{toggleButtonViewModel:function(c){return _.Z(_.QP,{data:c.data,
onToggle:h})}}))}})},"vd"),Pgm=_.mO(function(p){var x=p.highScoreButton;
var F=p.score;var N=p.formattedScore;var h=p.onScoreChanged;var c=p.isEmbeddedInWebview;return _.Z(_.Es,{data:x},{miniAppScoreButtonViewModel:function(M){return _.Z("div",{class:"yt-mini-app-top-bar-view-model__center-buttons-child"},_.Z(LAH,{data:M.data,score:F,formattedScore:N,onScoreChanged:h,isEmbeddedInWebview:c}))}})},"wd"),R5a=_.mO(function(p){p=p.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.Z(_.TG,null):_.Z(_.Es,{data:p},{buttonViewModel:_.nV})},"xd");_.UMk=new _.iE("DESKTOP_CURRENT_PAGE");var xFm=_.mO(function(p){var x=p.data;var F=_.S("force_active_time_logging_webview"),N=_.S("skip_logs_after_end_event"),h=!1,c=new Xzc,M=void 0,f=void 0,K=_.J().resolve(EEH),t=new Jo8,d=void 0,v=void 0,C=[],X=void 0,Q=void 0,b=!1,A=!1,Y=!1,O=!1,Fw=new _.FT,R=_.J().resolve(O6m),ld=_.J().resolve(_.mz),pp=_.J().resolve(_.Bw(f_)),Kp,sM=(Kp=_.J().resolve(_.Bw(_.UMk)))==null?void 0:Kp.getCurrentPage(),np=!1,Jz=0,Y$=function(OM){OM.preventDefault();return OM.returnValue=""},xB;
p=_.a(_.hu(!((xB=_.Mq("yt-mini-app-is-audio-enabled"))!=null&&!xB),void 0,"HKETIe"));var qI=p.next().value,RJ=p.next().value,Ik;xB=_.a(_.hu(!((Ik=_.Mq("exit-mini-app-seen-state"))==null||!Ik),void 0,"YikM9"));var vb=xB.next().value,CZ=xB.next().value;Ik=_.a(_.hu(!1,void 0,"iTNqCb"));var sk=Ik.next().value,Ov=Ik.next().value;Ik=_.a(_.hu(void 0,void 0,"bU3Vbf"));var Xj=Ik.next().value,AC=Ik.next().value;Ik=_.a(_.hu(void 0,void 0,"qd4Zt"));var Jo=Ik.next().value,Bz=Ik.next().value;Ik=_.a(_.hu(!0,void 0,
"Cqc83e"));var aJ=Ik.next().value,he=Ik.next().value;Ik=_.a(_.hu(!1,void 0,"oHovIe"));var Bb=Ik.next().value,PH=Ik.next().value;Ik=_.a(_.hu(void 0,void 0,"aeN11"));var dl=Ik.next().value,nZ=Ik.next().value;Ik=_.a(_.hu(0,void 0,"AEGRyb"));var ep=Ik.next().value,jp=Ik.next().value,fZ=_.oc(),Uv=function(){return x().isEmbeddedInWebview},FK=function(){return x().hasPlayNextShelf};
Rc("yt-page-type-changed",function(OM){if(_.S("enable_is_mini_app_page_active_bugfix"))OM.detail.newPageSubtype!=="mini_app"&&aJ()&&zl();else if(OM=_.v7p()==="mini_app",OM!==aJ())if(he(OM),OM){var D8;OM=(D8=x().playableId)==null?void 0:D8.toString();OM!==void 0&&window.location.href.includes(OM)&&!A&&(O=!0,uB(),IR(rl.value))}else OM||zl()});
Rc("yt-action",function(OM){OM.detail.actionName==="yt-engagement-panel-visible-changed"&&OM.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&OM.detail.args[2]==="PAmini_app_panel"&&zl();_.S("enable_is_mini_app_page_active_bugfix")?OM.detail.actionName==="yt-history-load"&&!aJ()&&(sM==null?0:sM.active)?(he(!0),uB(),IR(rl.value)):OM.detail.actionName==="yt-history-load"&&aJ()&&!x().isEmbeddedInWebview&&kQ():aJ()&&OM.detail.actionName==="yt-history-load"&&(O?O=!1:x().isEmbeddedInWebview||kQ())});
_.E_(function(){ot()});
_.rx(function(){uB()});
var uB=function(){var OM=x().playableId,D8=x().localReleaseId,C6=x().derivedDeviceInterface;if(A)_.no(new _.qE("[MiniAppContainerViewModel] onEnter was called more than once"));else{A=!0;M=new h5a(OM,D8,C6,document.visibilityState==="visible");MPk(M);f=new yo8(OM);i6c(K,OM);Cg8(t,{showMiniAppAdCommand:x().showMiniAppAdCommand,isEmbeddedInWebview:x().isEmbeddedInWebview,playLogger:M});tTM()&&(Q=document.body.style.backgroundColor,_.ov(document.body,"background-color","black"));lL();Tm();Fw=new _.FT;
if(x().isEmbeddedInWebview){if(OM=(new URLSearchParams(window.location.search)).get("postPlayNonce"))coH(M,OM),np=!0;c.initialize({onAudioStateLoaded:function(Zn){bk(Zn)},
onMuteMiniApp:function(){bk(!1)},
onUnmuteMiniApp:function(){bk(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(Zn){np||(coH(M,Zn),np=!0)},
confirmExitMiniApp:function(){var Zn,h_,mM;return _.D(function(ge){if(ge.nextAddress==1)return x().confirmExitMiniAppCommand?_.q(ge,Promise.race([Fw.promise,Promise.resolve(!1)]),2):ge.return();(Zn=ge.yieldResult)?!x().confirmExitMiniAppCommandEdu||(mM=(h_=vb)==null?void 0:h_())!=null&&mM?N1(x().confirmExitMiniAppCommand):(N1(x().confirmExitMiniAppCommandEdu),_.a3("exit-mini-app-seen-state","true",2592E6)):N1(x().closeMiniAppCommand);_.JB(ge)})},
onNativeBenchmarkingMessageReceived:function(Zn){Zn=k5b(_.CDk(Zn));if(_.JH(Zn,_.oI,3,TaB)){var h_=_.V8(Zn,_.oI,3,TaB),mM=XRH();var ge=sy(mM.getSeconds())-sy(h_.getSeconds());h_=_.$H(mM,2)-_.$H(h_,2);ge<0&&h_>0?(ge+=1,h_-=1E9):ge>0&&h_<0&&(--ge,h_+=1E9);ge=(new Bk).setSeconds(ge);ge=_.Ok(ge,2,_.p8(h_),0);_.f6(Zn,1,ge)}var Bc;(Bc=v)==null||Bc.returnNativeBenchmarkingMessage(Zn)},
multiplayer3pAckStateLoaded:function(Zn){kQ(Zn)},
exitMiniAppSeenStateLoaded:function(Zn){x().confirmExitMiniAppCommandEdu&&CZ(Zn)},
onNavigateToNewMiniApp:function(){N1(x().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(Zn){Zn=new URLSearchParams(Zn);var h_=void 0;Zn.has("invite_code")&&(h_=new x8J,Zn=Zn.get("invite_code"),h_=_.J_(h_,1,Zn));if(Zn=h_){var mM;(mM=v)==null||mM.sendGameData(Zn)}},
onPauseMiniApp:function(){h=!0;LN()},
onResumeMiniApp:function(){h=!0;aM()},
onAdFinished:function(Zn){t.onAdFinished(Zn)}});
x().showMultiplayer3pConsentDialogCommand||Fw.resolve(!0);N1(x().onContainerReadyCommand)}else coH(M),Fw.resolve(!0);b6H(f,ln8(M));ln8(M).then(function(Zn){Zn={miniAppPlayData:{postPlayNonce:Zn}};var h_,mM=(h_=x().loggingDirectives)==null?void 0:h_.trackingParams;mM&&_.cl().stateChanged(mM,Zn)});
OM=x().showSignInDialogCommand;!zkp()&&OM&&(_.a3("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),N1(OM));x().confirmExitMiniAppCommand&&pp&&(OM=SlE(x().confirmExitMiniAppCommand))&&(pp.customConfirmationCommand=OM)}},ot=function(){if(!N||A)Q&&_.ov(document.body,"background-color",Q),b=!1,X&&X.release(),f.flush().catch(function(OM){_.no(OM)}),K.flush().catch(function(OM){_.no(OM)}),fna(M),IM(),v=void 0,N&&(A=!1),Int(R)},zl=function(){he(!1);
ot();Ov(!1);nZ(void 0);AC(void 0);Bz(void 0);Jz=0;jp(0);N||(A=!1)},LN=function(){var OM;
(OM=v)==null||OM.onPause();X&&X.release();f.flush().catch(function(D8){_.no(D8)});
K.flush().catch(function(D8){_.no(D8)});
DMD(M)},aM=function(){var OM;
(OM=v)==null||OM.onResume();Tm();OM=M;OM.isForeground=!0;OL(OM,"PLAY_EVENT_TYPE_PLAY_RESUME")},bk=function(OM){var D8;
(D8=v)==null||D8.onAudioToggled(OM);RJ(OM)},kQ=function(OM){x().showMultiplayer3pConsentDialogCommand&&(x().isEmbeddedInWebview&&OM!==void 0&&Fw.resolve(OM),!OM&&_.v7p()==="mini_app"&&N1(x().showMultiplayer3pConsentDialogCommand))},gs=function(){var OM,D8,C6,Zn;
return _.D(function(h_){if(h_.nextAddress==1){if(N&&!A)return h_.return();!x().isLivestream||x().disableVideoCapture||(OM=v)!=null&&OM.sendStartGameFrameCapture();D8=(new URL(window.location.href)).searchParams;if(D8.has("invite_code")){var mM=new x8J,ge=D8.get("invite_code");C6=_.J_(mM,1,ge);(Zn=v)==null||Zn.sendGameData(C6)}sk()||(Ov(!0),mM=M,mM.state!==1?_.no(new _.qE("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+FAk[mM.state])):(_.ID("mini_app_ids_without_game_ready").includes(mM.JSC$14592_miniAppId)&&
(mM.gameReady=!0),mM.state=2,mM.beforeReady=!1,oh(mM,"ma_ffr"),OL(mM,"PLAY_EVENT_TYPE_PLAY_READY")));return _.q(h_,Fw.promise,2)}N1(x().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();x().isEmbeddedInWebview||kQ();_.JB(h_)})},Lt=function(){var OM=M;
OM.gameReady=!0;oh(OM,"ma_gr")},r1=function(OM){var D8;
return _.D(function(C6){if(C6.nextAddress==1)return _.KM(C6,2),_.q(C6,uKe(f,OM),4);if(C6.nextAddress!=2)return _.ub(C6,0);D8=_.v9(C6);N1(x().showSavingErrorPopupCommand);throw D8;})},sU=function(){var OM,D8;
return _.D(function(C6){if(C6.nextAddress==1)return _.KM(C6,2),_.q(C6,Ao8(f),4);if(C6.nextAddress!=2)return OM=C6.yieldResult,C6.return(OM);D8=_.v9(C6);N1(x().showLoadingErrorDialogCommand);throw D8;})},PQ=function(OM){M.logError(OM)},Kg=function(OM,D8,C6){qUm(M,OM,D8,C6)},md=function(OM,D8){tPH(M,OM,D8)},Pw=function(){!F&&x().isEmbeddedInWebview||_.kS();
KAH(M,!0);b||(window.addEventListener("beforeunload",Y$,{capture:!0}),b=!0)},Zh=function(OM){var D8,C6,Zn,h_,mM,ge,Bc;
return _.D(function(RI){if(RI.nextAddress==1)return K&&(!d||d<OM)&&OM>0?_.q(RI,$MX(K,OM),3):RI.jumpTo(0);D8=RI.yieldResult;C6=_.a(D8);Zn=C6.next().value;h_=C6.next().value;mM=Zn;ge=h_;((Bc=mM)==null?0:Bc.displayString)&&ge&&(AC(ge),Bz(mM.displayString));_.JB(RI)})},Tc=function(OM){var D8=x().onBenchmarkingMessageReceivedCommand;
if(D8){var C6=XRH();_.K6(OM,3,TaB,C6);OW(D8,ULB(OM))}},Cp=function(OM){var D8=x().onGameFrameReceivedCommand;
if(D8){var C6=new nfB;var Zn=new Q$B;var h_=bq(OM,1);Zn=_.tT(Zn,1,h_);OM=_.uq(OM,2);OM=_.J_(Zn,2,OM);C6=_.f6(C6,2,OM);OW(D8,bqD(C6))}},ud=function(){var OM=new URLSearchParams(window.location.search);
if(x().isEmbeddedInWebview&&OM&&OM.get("override_hl")==="true"&&OM.get("hl"))return OM.get("hl");OM=document.documentElement.lang;return OM!==""?OM:_.Vr},Hr=function(OM){var D8=x().onShareInviteCodeCommand;
if(D8)if(x().isEmbeddedInWebview){var C6=new dJD;OM=_.J_(C6,1,OM);OW(D8,JYm(OM))}else C6=x().inviteCodeShareClientParamIdentifier,R.clientParams.set(C6,{miniAppClientParams:{inviteCode:OM}}),N1(D8)},ZK=function(OM){var D8,C6,Zn;
return _.D(function(h_){if(h_.nextAddress==1)return D8=x().onMiniAppOpenYtContentRequested,K&&_.S("enable_open_yt_content")&&D8?_.q(h_,e5t(K,OM),3):h_.jumpTo(0);C6=h_.yieldResult;if(C6==="OK")if(x().isEmbeddedInWebview){var mM=new rwk;Zn=ac(mM,2,zv,te(OM));OW(D8,gfb(Zn))}else ld.clientData.set("video_id",OM),N1(D8);_.JB(h_)})},lm=function(OM){Jz+=_.$H(OM,3);
OM=Math.min(Math.log(1+Jz/15E6*9)/Math.log(10),.99);jp(OM);hC(OM)},hC=_.S0(function(OM){var D8=x().updateLoadingProgressCommand;
if(D8){var C6=new rwk;OM=ac(C6,3,zv,_.Rk(OM));OW(D8,gfb(OM))}},100),ak=function(OM){return roD(t,OM)},Tm=function(){var OM,D8;
((OM=_.kAk())==null?void 0:(D8=OM.wakeLock)==null?void 0:D8.request)!=null&&_.kAk().wakeLock.request("screen").then(function(C6){X=C6}).catch(function(){})},rl=_.oc();
_.rx(function(){x().isSupportedCountry&&(zkp()||_.S("enable_sign_in_promo")||!x().showSignInDialogCommand?IR(rl.value):N1(x().onMiniAppReadyCommand))});
var re=function(){return _.Z("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return sk()?0:-1},
el:rl})},IR=function(OM,D8){D8=D8===void 0?!1:D8;
var C6=sv();C6&&(D8||C6.toString()!==OM.getAttribute("src"))&&(v=YlM(x().source,{isAudioEnabled:qI,onFirstFrameReady:gs,onGameReady:Lt,onSave:r1,onLoad:sU,onError:PQ,onSdkCalled:Kg,onSdkPerformanceUpdate:md,onClick:Pw,onSendHighScore:Zh,onBenchmarkingMessageReceived:Tc,getLanguage:ud,onShareInviteCode:Hr,onResourceLoaded:lm,onOpenYTContent:ZK,onShowMiniAppAd:ak,onGameFrameReceived:Cp},OM,C6),Md(OM,"load",function(){oh(M,"ma_il");Md(OM,"load",function(){IR(OM,!0)})}),_.jP(OM,C6))},sv=function(){var OM=
x().url;
if(OM&&(OM=_.XE(OM),OM!==null)){if(x().source&&x().source==="MINI_APP_SOURCE_GAMESNACKS")OM=_.Fa(OM,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.S("enable_origin_query_parameter_bugfix")){var D8=_.sg(_.lMp(OM.toString()));D8=new URLSearchParams(D8||"");D8.set("origin",window.location.origin);D8=D8.toString();OM=_.SP(OM).toString();OM=_.vz(GXD.exec(OM)[0]+(D8.trim()?"#"+D8:""))}return OM}},hl=function(){var OM={};
OM=_.$L("yt-mini-app-container-view-model__loading-screen",(OM["yt-mini-app-container-view-model__loading-screen--fade-out"]=sk,OM));var D8=function(){return sk()?1:ep()};
return _.Z("div",{class:OM},_.Z(_.Es,{data:function(){return x().splashScreen}},{miniAppSplashScreenViewModel:function(C6){return _.Z(oEe,{data:C6.data,
loadingProgress:D8})}}))},lL=function(){C=[];
C.push(_.qd(window,"visibilitychange",function(){Y||h&&Uv()||(document.visibilityState==="visible"?aM():LN())}));
C.push(_.qd(window,"pagehide",function(){ot()}));
C.push(_.qd(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&fZ.value.dispatchEvent(new Event("tap"))},0)}));
C.push(_.qd(fZ.value,"pointerdown",function(){KAH(M,!1)},!0));
C.push(_.qd(fZ.value,"pause",function(){Y=!0;LN()}));
C.push(_.qd(fZ.value,"play",function(){Y=!1;aM()}));
C.push(_.qd(fZ.value,"exit",function(){ot()}));
var OM=navigator.keyboard,D8=OM&&OM.lock;C.push(_.qd(window,tAk,function(){PH(vJk());vJk()?(x().hasPlayNextShelf&&Iu("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),qp("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),D8&&OM.lock(["Escape"])):(x().hasPlayNextShelf&&qp("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Iu("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),D8&&OM.unlock())}));
x().showMultiplayer3pConsentDialogCommand&&C.push(_.qd(window,"yt-playables-ack-3p-data-usage",function(){p9m(K)}));
x().confirmExitMiniAppCommandEdu&&C.push(_.qd(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.a3("exit-mini-app-seen-state","true",2592E6)}))},IM=function(){C.forEach(function(OM){D$(OM)});
window.removeEventListener("beforeunload",Y$,{capture:!0})},N1=function(OM){OM&&E0w(OM,x().isEmbeddedInWebview||!1)},qp=function(OM,D8){OM=_.a(fZ.value.getElementsByClassName(OM));
for(var C6=OM.next();!C6.done;C6=OM.next())C6.value.classList.add(D8)},Iu=function(OM,D8){OM=_.a(fZ.value.getElementsByClassName(OM));
for(var C6=OM.next();!C6.done;C6=OM.next())C6.value.classList.remove(D8)};
return function(){var OM={};OM=_.$L("yt-mini-app-container-view-model",(OM["yt-mini-app-container-view-model--desktop"]=!0,OM["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return x().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},OM["yt-mini-app-container-view-model--ios-web-view"]=tTM(),OM["yt-mini-app-container-view-model--no-top-bar"]=function(){return!x().topBar},OM["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return x().hasPlayNextShelf},OM["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return x().hasPlayNextShelf},OM["yt-mini-app-container-view-model--show-peek-below"]=function(){return!Bb()&&x().hasPlayNextShelf},OM));
var D8={};D8=_.$L("yt-mini-app-container-view-model__content",(D8["yt-mini-app-container-view-model__content--desktop-content"]=!0,D8["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return x().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},D8["yt-mini-app-container-view-model--desktop-play-page"]=function(){return x().hasPlayNextShelf},D8));
return _.Z("mini-app-container-view-model",{el:fZ},_.Z("div",{class:OM},_.Z(_.D9,{cond:function(){return x().topBar&&!Bb()},
then:function(){return _.Z(_.Es,{data:function(){return x().topBar}},{miniAppTopBarViewModel:function(C6){return _.Z(klX,{data:C6.data,
isAudioEnabled:qI,onAudioToggled:function(Zn){bk(Zn)},
score:Xj,formattedScore:Jo,onScoreChanged:function(Zn){d=Zn},
isEmbeddedInWebview:Uv,isSaved:dl,onSaveToggled:function(Zn){nZ(Zn)},
isExitMiniAppSeen:vb,isDesktopPlayPage:FK})}})}}),_.Z("div",{class:D8},_.Z(_.D9,{cond:aJ,
then:function(){return re()}}),_.Z(_.D9,{cond:function(){return!x().isEmbeddedInWebview},
then:function(){return hl()}}))))}()},"yd");
xFm.idomCompat=!0;_.o7(xFm,"mini-app-container-view-model",{props:{data:_.G2}});var FhH=_.mO(function(p){var x=p.data;return _.Z("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.Z("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.h0(function(){var F=x().onTap;F&&_.su(F)})},_.Z(_.D9,{cond:function(){return x().icon},
then:function(F){return _.Z(_.DS,{icon:function(){return F().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.Z("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return x().title})))},"zd");
FhH.idomCompat=!0;var Nne=_.mO(function(p){var x=_.oc(),F=_.a(_.hu(void 0,void 0,"kFCJ0c")),N=F.next().value,h=F.next().value;F=_.a(_.hu(void 0,void 0,"PIPgWd"));var c=F.next().value,M=F.next().value;F=_.a(_.hu(void 0,void 0,"rV66ob"));var f=F.next().value,K=F.next().value,t=function(){var Y=N();return Y!==void 0?Math.abs(Y):void 0},d=function(){var Y=t();
return Y===void 0||Y<=3},v=function(){var Y=t();
var O=c(),Fw=f();Y=Y!==void 0&&O!==void 0&&Fw!==void 0?O-Fw-Y:void 0;return Y===void 0||Y<=3},C=function(Y){x.value&&x.value.scrollBy({top:0,
left:(_.sd("HTML_DIR")==="rtl"?-1:1)*Y*x.value.clientWidth,behavior:"smooth"})},X=function(){var Y;
h((Y=x.value)==null?void 0:Y.scrollLeft);var O;M((O=x.value)==null?void 0:O.scrollWidth);var Fw;K((Fw=x.value)==null?void 0:Fw.clientWidth)},Q=function(){C(-.5)},b=function(){C(.5)};
F=_.h0(function(){X()});
_.d1(function(){X();if(x.value){var Y=new ResizeObserver(X);Y.observe(x.value);_.E_(function(){Y.disconnect()})}});
var A={};return _.Z("yt-sponsorships-scrollable-shelf",{class:_.$L("ytdSponsorshipsScrollableShelfHost",p.className)},_.Z("div",{class:_.$L("ytdSponsorshipsScrollableShelfContent",(A.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return!d()&&!v()},A.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return!d()&&v()},A.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return d()&&!v()},A)),
el:x,"on:scroll":F},p.children),_.Z(_.D9,{cond:function(){return!d()},
then:function(){return _.Z(_.Es,{data:function(){return p.data().previousButton}},{buttonViewModel:function(Y){return _.Z(_.nV,{data:Y.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:Q})}})}}),_.Z(_.D9,{cond:function(){return!v()},
then:function(){return _.Z(_.Es,{data:function(){return p.data().nextButton}},{buttonViewModel:function(Y){return _.Z(_.nV,{data:Y.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:b})}})}}))},"Ad");
Nne.idomCompat=!0;var lCH=_.mO(function(p){var x=p.data;return _.Z("yt-sponsorships-hub",{class:"ytdSponsorshipsHubHost"},_.Z("div",{class:"ytdSponsorshipsHubHeader"},_.Z("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.Z("div",{class:"ytdSponsorshipsHubAvatar"},_.Z(_.Es,{data:function(){return x().avatar}},{avatarViewModel:_.bt})),_.Z(_.D9,{cond:function(){return x().badgeImage},
then:function(F){return _.Z("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.Z("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.Z("div",{class:"ytdSponsorshipsHubBadge"},_.Z(_.VE,{data:F,targetWidth:24,targetHeight:24,alt:""}))))}})),_.Z("div",{class:"ytdSponsorshipsHubDetails"},_.Z("div",{class:"ytdSponsorshipsHubTierName"},function(){return x().tierName}),_.Z("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return x().membershipType}),_.Z("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return x().membershipDurationOrExpiry})),_.Z("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.Z(_.Es,{data:function(){return x().manageButton}},{buttonViewModel:function(F){return _.Z(_.nV,{data:F.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.Z(_.Es,{data:function(){return x().actionMenuButton}},{buttonViewModel:function(F){return _.Z(_.nV,{data:F.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.Z("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return x().perksTitle}),_.Z(Nne,{data:function(){return{previousButton:x().previousPerkButton,
nextButton:x().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.Z("div",{class:"ytdSponsorshipsHubPerkCards"},_.Z(_.Es,{data:function(){return x().perkCards}},{sponsorshipsHubPerkCardViewModel:FhH}),_.Z(_.D9,{cond:function(){return x().viewAllPerksButton},
then:function(F){return _.Z(hD8,{data:F})}}))))},"Bd");
lCH.idomCompat=!0;var hD8=_.mO(function(p){var x=p.data;return _.Z("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.Z(_.Es,{data:function(){return x().button}},{buttonViewModel:_.nV}),_.Z("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.Z("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return x().title}),_.Z("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return x().subtitle})))},"Cd");
hD8.idomCompat=!0;_.o7(lCH,"yt-sponsorships-hub",{props:{data:_.G2}});_.cBH=_.mO(function(p){var x=p.data;return _.Z("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.a4({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var F;return((F=x().badgeCutoutRadius)!=null?F:14)+"px"}})},_.Z("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.Z(_.Es,{data:function(){return x().startAvatar}},{avatarViewModel:_.bt}),_.Z(_.Es,{data:function(){return x().endAvatar}},{avatarViewModel:_.bt})),_.Z(_.Es,{data:function(){return x().badge}},{contentPreviewImageViewModel:function(F){return _.Z("div",
{class:"ytDualAvatarViewModelBadge"},_.Z(_.DF,{data:F.data}))}}))},"Dd");
_.cBH.idomCompat=!0;var MiH=_.mO(function(p){var x=p.data;var F,N=!((F=_.J().resolve(_.Bw(_.AD)))==null||!F());p=_.Kn(function(){var c,M,f=N?(c=x().header)==null?void 0:c.backgroundColorDarkMode:(M=x().header)==null?void 0:M.backgroundColorLightMode;if(f!==void 0)return _.QK(f)},void 0,"oi9Sid");
F=_.Kn(function(){var c,M;return N?(c=x().header)==null?void 0:c.backgroundImagePart1Dark:(M=x().header)==null?void 0:M.backgroundImagePart1Light},void 0,"V61Fxf");
var h=_.Kn(function(){var c,M;return N?(c=x().header)==null?void 0:c.backgroundImagePart2Dark:(M=x().header)==null?void 0:M.backgroundImagePart2Light},void 0,"wfEWad");
return _.Z("yt-sponsorships-perks-list",{class:"ytdSponsorshipsPerksListHost"},_.Z("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.Z("div",{class:"ytdSponsorshipsPerksListHeader",style:_.a4({"background-color":p})},_.Z("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.Z(_.D9,{cond:F,then:function(c){var M={};return _.Z("div",{class:_.$L((M.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=N,M.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!N,M))},_.Z(_.VE,{data:c,
alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.Z("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.Z(_.D9,{cond:h,
then:function(c){var M={};return _.Z("div",{class:_.$L((M.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=N,M.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!N,M))},_.Z(_.VE,{data:c,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.Z("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.Z(_.Es,{data:function(){var c;
return(c=x().header)==null?void 0:c.dualAvatar}},{dualAvatarViewModel:_.cBH})))),_.Z("div",{class:"ytdSponsorshipsPerksListBody"},_.Z("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return x().title}),_.Z(_.D9,{cond:function(){return x().perks},
then:function(c){return _.Z(_.ft,{each:c},function(M,f){return _.Z("div",{class:"ytdSponsorshipsPerksListPerkContainer"},_.Z(_.D9,{cond:function(){return f()>0},
then:function(){return _.Z("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.Z("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.Z(_.D9,{cond:function(){return M.icon},
then:function(K){return _.Z(_.DS,{icon:function(){return K().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.Z("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.Z("div",{class:"ytdSponsorshipsPerksListPerkTitle"},M.title),_.Z("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.Z(_.KQ,{text:M.description})),_.Z(_.D9,{cond:function(){return M.instructions},
then:function(){var K,t;return _.Z("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.Z("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(K=M.instructions)==null?void 0:K.title),_.Z("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.Z(_.KQ,{text:(t=M.instructions)==null?void 0:t.text})))}}))),_.Z(_.D9,{cond:function(){return M.emoji},
then:function(K){return _.Z("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.Z(_.ft,{each:function(){return K()}},function(t){return _.Z(_.VE,{data:t,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.Z(aCa,{data:M}))})}})))},"Ed");
MiH.idomCompat=!0;var aCa=_.mO(function(p){var x=p.data;var F=function(M,f){return M===f},N=function(){var M=x();
M=_.r(M==null?void 0:M.badgesShelf,ExC);return M!==void 0&&M!==null?M:{previousButton:{},nextButton:{}}},h=_.O$(),c=function(){var M=h.value;
if(M){var f=M.parentElement;if(f){M=M.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var K=0;K<M.length;++K){var t=M[K];if(t instanceof HTMLElement){f.scrollTo({left:t.offsetLeft+t.clientWidth/2-f.clientWidth/2,behavior:"instant"});break}}}}};
_.J9(function(){var M=h.value;if(M){var f=new ResizeObserver(c);f.observe(M);_.E_(function(){f.disconnect()})}});
return _.Z("div",null,_.Z(_.D9,{cond:function(){return x().badges},
then:function(M){return _.Z(Nne,{data:N},_.Z("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:h},_.Z(_.ft,{each:function(){return M()}},function(f,K){var t={},d={},v={};
return _.Z("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.Z(_.D9,{cond:function(){return K()>0},
then:function(){return _.Z("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.Z("div",{class:_.$L("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(t.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return F(K(),x().currentBadgeIndex)},t.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!F(K(),x().currentBadgeIndex)},t))},_.Z("div",{class:_.$L("ytdSponsorshipsPerksListLoyaltyBadge",(d.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return F(K(),
x().currentBadgeIndex)},d.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!F(K(),x().currentBadgeIndex)},d))},_.Z(_.D9,{cond:function(){return f.image},
then:function(C){var X={};return _.Z("div",{class:_.$L((X.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return F(K(),x().currentBadgeIndex)},X.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!F(K(),x().currentBadgeIndex)},X))},_.Z(_.VE,{data:C,
alt:""}))}})),_.Z("div",{class:_.$L("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(v.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return F(K(),x().currentBadgeIndex)},v))},f.title)))})))}}))},"Fd");
aCa.idomCompat=!0;_.o7(MiH,"yt-sponsorships-perks-list",{props:{data:_.G2}});_.o7(_.mO(function(p){return _.Z("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.Z(_.D9,{cond:function(){return p.data().image},
then:function(x){return _.Z(_.VE,{className:"ytwFantasyEmptyStateViewModelImage",data:x,ariaHidden:!0,alt:""})}}),_.Z(_.KQ,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return p.data().title}}),_.Z(_.KQ,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return p.data().subtitle}}),_.Z(_.Es,{data:function(){return p.data().primaryButton}},{buttonViewModel:function(x){return _.Z(_.nV,{data:x.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Gd"),"ytw-fantasy-empty-state-view-model",{props:{data:_.G2}});_.o7(_.mO(function(p){var x=p.data;var F;p=_.a(_.hu(!((F=_.Mq("yt-mini-app-is-theater-mode-enabled"))==null||!F),void 0,"CUtq5"));var N=p.next().value,h=p.next().value,c;F=(c=_.J().resolve(_.Bw(kBc)))!=null?c:function(){return _.Z("div",null)};
_.mi("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){h(!0);_.a3("yt-mini-app-is-theater-mode-enabled",!0)});
_.mi("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){h(!1);_.a3("yt-mini-app-is-theater-mode-enabled",!1)});
c={};p={};var M={};return _.Z("mini-app-play-page-renderer",{class:_.$L("miniAppPlayPageRendererHost",(c.miniAppPlayPageRendererHostDetailsView=function(){return!N()},c))},_.Z("div",{class:_.$L("miniAppPlayPageRendererGameContainer",(p.miniAppPlayPageRendererGameContainerDetailsView=function(){return!N()},p))},_.Z(_.Es,{data:function(){return x().containerViewModel}},{miniAppContainerViewModel:xFm}),_.Z(_.D9,{cond:function(){return!N()&&x().description},
then:function(){return _.Z("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.Z("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return x().description}))}})),_.Z("div",{class:_.$L("miniAppPlayPageRendererPlayNextContainer",(M.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!N()},M))},_.Z(_.Es,{data:function(){return x().sectionList}},{sectionListRenderer:F})))},"Hd"),"mini-app-play-page-renderer",{props:{data:_.G2}});var DFm=function(){var p=_.m.apply(this,arguments)||this;p.isSearch=!1;p.isConstrainedList=!1;p.hasChipsBar=!1;p.inReplyPanel=!1;p.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"}};p.monitorScroll=!0;p.SCROLL_ANIMATION_DURATION_MS=300;p.nextContinuation={continuationType:"sectionListContinuation"};return p};
_.E(DFm,_.m);_.l=DFm.prototype;
_.l.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(p){switch(p.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:_.S("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.S("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.l.created=function(){var p=this;this.JSC$14719_scrollAnimation=new _.HE(function(x){p.hostElement.scrollTop=x})};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.l.getItemsPath=function(){return"data.contents"};
_.l.replacePrimaryContent=function(p){this.set("data.contents",p)};
_.l.computeHasSortFilter=function(p){return!!p&&!!p.sortFilterSubMenuRenderer};
_.l.computeShouldScrollInPanel=function(p){var x;return!!(p==null?0:(x=p.scrollPaneStyle)==null?0:x.scrollable)};
_.l.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.iX(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.l.scrollToTop=function(){this.hostElement.scrollTop=0};
_.l.scrollToItemSection=function(p){if(p=this.getItemByIdentifier(p))p=this.getScrollPositionForItem(p),this.hostElement.scrollTop!==p&&this.JSC$14719_scrollAnimation.start(this.hostElement.scrollTop,p,this.SCROLL_ANIMATION_DURATION_MS)};
_.l.getItemByIdentifier=function(p){var x=this.contents.querySelectorAll("ytd-item-section-renderer");if(x&&x.length!==0){var F=Array.from(x).findIndex(function(N){return N.sectionIdentifier===p});
return x[F===-1?0:F]}};
_.l.getScrollPositionForItem=function(p){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===p)return 0;p=_.A_(p).y+this.hostElement.scrollTop-_.A_(this.hostElement).y;return Math.min(p,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.R8.Object.defineProperties(DFm.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.targetId)==="browse-feedFEclips"}}});
var Rh=DFm;Rh.prototype.onScroll=Rh.prototype.onScroll;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Rh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.Iz.YtLazyListBehavior),_.k("design:type",Object)],Rh.prototype,"ytLazyListBehavior",void 0);_.B([_.u(_.Wy.YtNextContinuationBehavior),_.k("design:type",Object)],Rh.prototype,"ytNextContinuationBehavior",void 0);
_.B([_.u(_.UH8),_.k("design:type",Object)],Rh.prototype,"ytBooleanLogicBehavior",void 0);_.B([_.u(_.Vw),_.k("design:type",Object)],Rh.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Rh.prototype,"data",void 0);_.B([_.H({value:2}),_.k("design:type",Number)],Rh.prototype,"initialCount",void 0);_.B([_.H({value:!0}),_.k("design:type",Boolean)],Rh.prototype,"autoFill",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.k("design:type",Boolean)],Rh.prototype,"hasSortFilter",void 0);_.B([_.H({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.k("design:type",Boolean)],Rh.prototype,"hideBottomSeparator",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.k("design:type",Boolean)],Rh.prototype,"shouldScrollInPanel",void 0);
_.B([_.H(),_.k("design:type",Object)],Rh.prototype,"isSearch",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Rh.prototype,"isConstrainedList",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],Rh.prototype,"responsiveSizing",void 0);_.B([_.H(),_.k("design:type",Object)],Rh.prototype,"hasChipsBar",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],Rh.prototype,"pageSubtype",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Rh.prototype,"engagementPanel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Rh.prototype,"liveChatEngagementPanel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Rh.prototype,"inReplyPanel",void 0);_.B([_.Ff("#action-button"),_.k("design:type",HTMLElement)],Rh.prototype,"actionButton",void 0);_.B([_.H(),_.k("design:type",Object)],Rh.prototype,"scrollUpButtonData",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Rh.prototype,"engagementPanelDropdown",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Rh.prototype,"engagementPanelDialog",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Rh.prototype,"isClipList",null);_.B([_.Ff("#contents"),_.k("design:type",HTMLElement)],Rh.prototype,"monitorScrollElement",void 0);_.B([_.Ff("#contents"),_.k("design:type",HTMLElement)],Rh.prototype,"contents",void 0);
_.B([_.V("scroll"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Rh.prototype,"onScroll",null);Rh=_.B([_.L({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Rh);
var fCk=_.kJ()(Rh,"ytd-section-list-renderer",function(){if(REe===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);REe=p}p=REe;return p},{mode:1});var Kh_;var qeH;var ZMa;var tim;var kb=function(){return _.m.apply(this,arguments)||this};
_.E(kb,_.m);kb.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
kb.prototype.onLikeButtonClick=function(p){p.stopPropagation();p.preventDefault()};
_.R8.Object.defineProperties(kb.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)!=null&&p.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
var UL=kb;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],UL.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],UL.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],UL.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],UL.prototype,"ytRendererStamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],UL.prototype,"data",void 0);
_.B([_.H({selectorArgs:["data.likeStatusEntityKey"],selector:Qm}),_.k("design:type",Object)],UL.prototype,"likeStatusEntity",void 0);_.B([_.w("data","likeStatusEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],UL.prototype,"likeButtonRenderer",null);UL=_.B([_.L({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],UL);
_.P(UL,"ytd-slim-metadata-toggle-button-renderer",function(){if(tim!==void 0)return tim;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);
return tim=p},{mode:1});var dFa=function(){var p=_.m.apply(this,arguments)||this;p.minimizePipBreakages=_.S("web_pip_minimize_breakages");p.showEqualizer=_.S("web_enable_playlist_video_lockup_equalizer");p.watchColorUpdate=_.S("kevlar_watch_color_update");p.actionMap={};return p};
_.E(dFa,_.m);_.l=dFa.prototype;_.l.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.l.computeEditableClass=function(p){return p&&p.menu?"editable":""};
_.l.computeSelected=function(p){return!(p==null||!p.selected)};
_.l.computeUseColorPalette=function(p){return!!((p==null?0:p.lightColorPalette)&&(p==null?0:p.darkColorPalette))};
_.l.computeLargerPlaylistThumbs=function(p,x){return _.S("web_enable_playlist_bigger_thumbnails")&&!x};
_.l.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.l.onYtServiceRequestSent=function(p,x){x.endpoint&&this.isHideEnclosingAction(x.endpoint)&&!this.selected&&YNb(_.Hj(),this.data.videoId)};
_.l.isHideEnclosingAction=function(p){var x=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",p);p=this.get("likeEndpoint.status",p)==="INDIFFERENT";return x||p};
_.l.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.l.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.R8.Object.defineProperties(dFa.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var p;return!!(this.withinMiniplayer&&((p=this.data)==null?0:p.actionButtons))}}});
var i7=dFa;i7.prototype.onYtServiceRequestSent=i7.prototype.onYtServiceRequestSent;i7.prototype.canReorderChanged=i7.prototype.canReorderChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],i7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],i7.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.HL),_.k("design:type",Object)],i7.prototype,"ytdLockupBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],i7.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],i7.prototype,"withinMiniplayer",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],i7.prototype,"minimizePipBreakages",void 0);_.B([_.H({computed:"computeSelected(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],i7.prototype,"selected",void 0);
_.B([_.H({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],i7.prototype,"useColorPalette",void 0);_.B([_.H({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.k("design:type",Boolean)],i7.prototype,"largerPlaylistThumbs",void 0);_.B([_.H(),_.k("design:type",Object)],i7.prototype,"showEqualizer",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],i7.prototype,"canReorder",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],i7.prototype,"touchPersistentDragHandle",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],i7.prototype,"handleIsHovered",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],i7.prototype,"watchColorUpdate",void 0);_.B([_.w("largerPlaylistThumbs"),_.k("design:type",Number),_.k("design:paramtypes",[])],i7.prototype,"thumbnailWidth",null);
_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],i7.prototype,"showActionButtons",null);_.B([_.cT("canReorder"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],i7.prototype,"canReorderChanged",null);_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],i7.prototype,"onYtServiceRequestSent",null);
i7=_.B([_.L({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],i7);
_.P(i7,"ytd-playlist-panel-video-renderer",function(){if(ZMa!==void 0)return ZMa;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="yt-icons:drag_handle" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return ZMa=p},{mode:2});var vZ8=function(){return _.m.apply(this,arguments)||this};
_.E(vZ8,_.m);vZ8.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
var Ih=vZ8;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Ih.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ih.prototype,"data",void 0);Ih=_.B([_.L({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],Ih);
_.P(Ih,"ytd-playlist-panel-supported-items",function(){if(qeH!==void 0)return qeH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return qeH=
p},{mode:1});ddn=!0;uob("\\P{N}");var o0z;var JB8=_.JG("END_OF_PLAYLIST",void 0,"End of playlist"),C28=_.JG("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),Se8=function(){var p=_.m.apply(this,arguments)||this;p.minimizePipBreakages=_.S("web_pip_minimize_breakages");p.updatedCoursePanel=_.S("move_three_dot_menu_to_playlist_panel_header_for_courses");p.reducedPlaylistHeight=_.S("web_playlist_mini_playlist_height");p.hideHeaderText=!1;p.useColorPalette=!1;p.collapsed=!1;p.collapsedPreServerOverride="not_tracked";
p.isHovered=!1;p.modernPanels=_.S("kevlar_watch_modern_panels");p.expandLabel=_.JG("MINIPLAYER_EXPAND_LABEL");p.collapseLabel=_.JG("MINIPLAYER_COLLAPSE_LABEL");p.isFloating=!1;p.metaPanel=!1;p.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};p.currentIndex=void 0;return p};
_.E(Se8,_.m);_.l=Se8.prototype;
_.l.configureRendererStamper=function(){return{menuRendererData:{id:"playlist-action-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{forceIconButton:!1}}}},overflowMenuDataTopRow:{id:"overflow-menu-top-row",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},overflowMenuData:{id:"overflow-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.contentHeader":{id:"content-header",mapping:{messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.contents":{id:"items",
events:!0,mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",attributes:{id:"playlist-items"},properties:{canReorder:"[[canReorder]]",withinMiniplayer:"[[withinMiniplayer]]"}},messageRenderer:{component:"ytd-message-renderer",params:{panel:!0}}}},"data.saveButton":{id:"save-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.topRowButtons":{id:"top-row-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.created=function(){this.scrollThrottle=new _.IC(this.onThrottledScroll,1E3,this)};
_.l.onMouseEnter=function(){this.isHovered=!0};
_.l.onMouseLeave=function(){this.isHovered=!1};
_.l.computeOverflowMenuData=function(p){return p&&p.menu?p.menu:null};
_.l.computeCollapsible=function(p){return!p};
_.l.computeHasPlaylistButtons=function(p){return!(!p||!p.playlistButtons)};
_.l.computeHasSeparateSaveButton=function(p){return!(!p||!p.saveButton)};
_.l.computeHasToolbarButton=function(p,x){return!(!p||!(x||p.saveButton||p.menu))};
_.l.computePlaylistType=function(p){if(p&&p.playlistId)return p.playlistId.substring(0,4)};
_.l.computeCanReorder=function(p){return p?p.playlistId&&p.playlistId.startsWith("TLPQ")?!0:!!p.isEditable&&!p.isInfinite:!1};
_.l.attached=function(){var p=this;try{_.J().resolve(_.Yx).setPlaylistComponent(this.hostElement)}catch(x){if(_.S("kevlar_park_on_playlist_token_killswitch"))throw x;_.GN().parkOrScheduleJob(function(){_.J().resolve(_.Yx).setPlaylistComponent(p.hostElement)},2,"ci")}_.FJ(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.l.detached=function(){_.Nt(this.hostElement)};
_.l.computeTrailingIcon=function(p,x,F){return F?x?"yt-icons:collapse":"yt-icons:close":x?"yt-icons:expand":_.S("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.l.computeIndexMessage=function(p,x){return Lad(p+1)+" / "+Lad(x)};
_.l.onRenderStamperFinished=function(){if(this.scrollForStampDom){var p=!0;this.isHovered&&(p=!1);if(this.collapsed||this.hidden)p=!1;p&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.l.collapseChanged=function(){var p=this;this.collapsed||(_.rR(this.ytTaskEmitterBehavior.getTaskManager(),function(){p.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.l.hiddenChanged=function(){var p=this;this.hidden||_.rR(this.ytTaskEmitterBehavior.getTaskManager(),function(){p.scrollToCurrentVideo()})};
_.l.setupReordering=function(){var p=_.n(this.hostElement).querySelector("#items");pyZ?_.ZKb(this.ytReorderableBehavior,p,p,"playlist-drag-handle"):_.ZKb(this.ytReorderableBehavior,p,p)};
_.l.scrollToCurrentVideo=function(){var p=this;_.E0.addJob(function(){var x=_.n(p.hostElement).querySelector("#items");if(x){x.style.setProperty("padding-bottom","");var F=_.n(p.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(F){x=F.parentElement||_.bH(document);var N=x||_.bH(document);var h=_.A_(F),c=_.A_(N),M=_.WAm(N);if(N==_.bH(document)){var f=h.x-N.scrollLeft;h=h.y-N.scrollTop}else f=h.x-c.x-M.left,h=h.y-c.y-M.top;F=YUJ(F);c=N.clientHeight-
F.height;M=N.scrollLeft;var K=N.scrollTop;M+=f-(N.clientWidth-F.width)/2;N=new _.sT(M,K+(h-c/2));x.scrollLeft=N.x;x.scrollTop=N.y}}},8)};
_.l.dataChanged=function(){var p=this;_.qAZ(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.jB(this,function(){_.vZ(p.ytTaskEmitterBehavior.getTaskManager(),function(){p.ytRendererBehavior.markDirty();p.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.l.updateNowPlayingOverlay=function(){_.S("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.l.onPlaylistLockupNowPlaying=function(p,x){x&&(this.activeNowPlayingRenderer=x);this.updateNowPlayingOverlay()};
_.l.onScroll=function(){this.scrollThrottle.fire()};
_.l.onThrottledScroll=function(){var p=this;_.vZ(this.ytTaskEmitterBehavior.getTaskManager(),function(){p.ytRendererBehavior.markDirty()})};
_.l.onToggleExpanded=function(p){this.collapsible&&_.os(p).tagName!=="A"&&!_.mx(_.m9(p),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.l.setCollapsed=function(p){this.collapsible&&(this.collapsed=p,_.Mt(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.l.handleCollapsedFromData=function(p){if(p){var x=p.playlistPanelCollapseState;x==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||x==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),x=x==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==x&&this.setCollapsed(x)):this.currentPlaylistId!==p.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(x=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==x&&this.setCollapsed(x),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=p.playlistId}};
_.l.handleDrop=function(p){var x=p.currDragItem;p=x.data.playlistSetVideoId;var F=_.mH(x.parentNode.childNodes,x),N=void 0;F>0&&(N=x.parentNode.childNodes[F-1].data.playlistSetVideoId);x=_.Hj();if(x.responsePlaylistData&&x.responsePlaylistData.contents){var h=MgE(p,x.responsePlaylistData);x.responsePlaylistData=(0,_.Q5.unsafeClone)(x.responsePlaylistData);bpE(x.responsePlaylistData.contents,h,F);x.queueProxy?Dxn(x.queueProxy,h,F,p,N):x.playlistProxy&&Dxn(x.playlistProxy,h,F,p,N);_.me(x,_.oO(x,x.response?
x.response.autoplayRenderer:void 0))}};
_.l.handleDarkModeChange=function(p){p!==this.isDarkTheme&&(this.isDarkTheme=p)};
_.l.colorPaletteChanged=function(){var p,x=((p=this.data)==null?void 0:p.contents)||[],F;p=_.a(x);for(x=p.next();!x.done;x=p.next()){x=x.value;var N=void 0;if((N=x.playlistPanelVideoRenderer)==null?0:N.selected){p=x.playlistPanelVideoRenderer;N=x=void 0;(F=this.isDarkTheme?(x=p)==null?void 0:x.darkColorPalette:(N=p)==null?void 0:N.lightColorPalette)&&_.S3(this.hostElement,F);break}}this.useColorPalette=!!F};
_.R8.Object.defineProperties(Se8.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var p,x;return!((p=this.data)==null||!p.playlistId)&&!((x=this.data)==null||!x.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var p=_.J().resolve(_.Bw(_.Yx)),x;if(((x=this.data)==null?0:x.contents)&&(p==null?0:p.hasAutoplayData())){var F;if(((F=this.playlistLoopStateEntity)==null?void 0:F.state)==="PLAYLIST_LOOP_STATE_ONE"){if(p=this.data.currentIndex,p!==void 0){var N,h;var c=(N=this.data.contents[p])==null?void 0:(h=N.playlistPanelVideoRenderer)==null?void 0:h.title}}else{var M,f=(M=_.r(p.getAutoplayEndpoint(),_.B7))==null?void 0:M.videoId,K,t;c=(K=this.data.contents.find(function(d){var v;
return((v=d.playlistPanelVideoRenderer)==null?void 0:v.videoId)===f}))==null?void 0:(t=K.playlistPanelVideoRenderer)==null?void 0:t.title}return c}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)!=null&&p.nextVideoLabel?this.nextVideoTitle?_.Pi(this.data.nextVideoLabel)+":":JB8:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var p;if(((p=this.data)==null?0:p.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.L1(C28);var x;return(x=this.data)==null?void 0:x.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var p,x,F,N=(p=this.data)==null?void 0:(x=p.playlistButtons)==null?void 0:(F=x.menuRenderer)==null?void 0:F.topLevelButtons;if(N)for(p=_.a(N),x=p.next();!x.done;x=p.next())if(x=x.value,x.playlistLoopButtonRenderer)return x.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var p;return!!(this.collapsed&&((p=this.data)==null?0:p.nextVideoLabel))}}});
var $b=Se8;$b.prototype.colorPaletteChanged=$b.prototype.colorPaletteChanged;$b.prototype.onPlaylistLockupNowPlaying=$b.prototype.onPlaylistLockupNowPlaying;$b.prototype.updateNowPlayingOverlay=$b.prototype.updateNowPlayingOverlay;$b.prototype.dataChanged=$b.prototype.dataChanged;$b.prototype.hiddenChanged=$b.prototype.hiddenChanged;$b.prototype.collapseChanged=$b.prototype.collapseChanged;$b.prototype.onRenderStamperFinished=$b.prototype.onRenderStamperFinished;$b.prototype.onMouseLeave=$b.prototype.onMouseLeave;
$b.prototype.onMouseEnter=$b.prototype.onMouseEnter;_.B([_.u(_.n7),_.k("design:type",Object)],$b.prototype,"ironResizableBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],$b.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],$b.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(fL6.YtPlaylistPanelBehavior),_.k("design:type",Object)],$b.prototype,"ytPlaylistPanelBehavior",void 0);
_.B([_.u(_.o3.YtTaskEmitterBehavior),_.k("design:type",Object)],$b.prototype,"ytTaskEmitterBehavior",void 0);_.B([_.u(_.d_6),_.k("design:type",Object)],$b.prototype,"ytReorderableBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],$b.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],$b.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],$b.prototype,"actionHandlerBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],$b.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],$b.prototype,"autoplayData",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],$b.prototype,"withinMiniplayer",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$b.prototype,"minimizePipBreakages",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$b.prototype,"updatedCoursePanel",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$b.prototype,"reducedPlaylistHeight",void 0);_.B([_.H({computed:"setMenuData_(data)"}),_.k("design:type",Object)],$b.prototype,"menuRendererData",void 0);_.B([_.H({computed:"computeOverflowMenuData(data)"}),_.k("design:type",Object)],$b.prototype,"overflowMenuDataTopRow",void 0);_.B([_.H({computed:"computeOverflowMenuData(data)"}),_.k("design:type",Object)],$b.prototype,"overflowMenuData",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$b.prototype,"hideHeaderText",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$b.prototype,"useColorPalette",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.k("design:type",Boolean)],$b.prototype,"collapsible",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$b.prototype,"collapsed",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],$b.prototype,"hidden",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.k("design:type",Boolean)],$b.prototype,"hasPlaylistButtons",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.k("design:type",Boolean)],$b.prototype,"hasSeparateSaveButton",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.k("design:type",Boolean)],$b.prototype,"hasToolbar",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.k("design:type",String)],$b.prototype,"playlistType",void 0);_.B([_.H(),_.k("design:type",Object)],$b.prototype,"isHovered",void 0);_.B([_.H({selectorArgs:["playlistLoopStateEntityKey"],selector:_.zwE}),_.k("design:type",Object)],$b.prototype,"playlistLoopStateEntity",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$b.prototype,"modernPanels",void 0);_.B([_.H({value:56}),_.k("design:type",Number)],$b.prototype,"scrollMargin",void 0);_.B([_.H({computed:"computeCanReorder(data)"}),_.k("design:type",Boolean)],$b.prototype,"canReorder",void 0);_.B([_.H(),_.k("design:type",Object)],$b.prototype,"expandLabel",void 0);_.B([_.H(),_.k("design:type",Object)],$b.prototype,"collapseLabel",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$b.prototype,"isFloating",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$b.prototype,"metaPanel",void 0);_.B([_.H({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.k("design:type",String)],$b.prototype,"trailingIcon",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],$b.prototype,"isDarkTheme",void 0);
_.B([_.H({selector:_.bP}),_.k("design:type",Boolean)],$b.prototype,"miniplayerIsActive",void 0);_.B([_.H({selector:function(p){return p.watch.playerState}}),
_.k("design:type",Number)],$b.prototype,"playerState",void 0);_.B([_.H(),_.k("design:type",Object)],$b.prototype,"activeNowPlayingRenderer",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],$b.prototype,"moveThreeDotMenuToTopRow",null);_.B([_.w("data","autoplayData","playlistLoopStateEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],$b.prototype,"nextVideoTitle",null);
_.B([_.w("data","nextVideoTitle"),_.k("design:type",String),_.k("design:paramtypes",[])],$b.prototype,"nextVideoLabel",null);_.B([_.w("collapsed"),_.k("design:type",String),_.k("design:paramtypes",[])],$b.prototype,"buttonAriaLabel",null);_.B([_.w("data","playlistId","longBylineText"),_.k("design:type",Object),_.k("design:paramtypes",[])],$b.prototype,"mixLongByLine",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],$b.prototype,"playlistLoopStateEntityKey",null);
_.B([_.V("mouseenter"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$b.prototype,"onMouseEnter",null);_.B([_.V("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$b.prototype,"onMouseLeave",null);_.B([_.H({reflectToAttribute:!0}),_.w("data","collapsed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],$b.prototype,"showNextVideoHeader",null);
_.B([_.V("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$b.prototype,"onRenderStamperFinished",null);_.B([_.W("collapsed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$b.prototype,"collapseChanged",null);_.B([_.W("hidden"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$b.prototype,"hiddenChanged",null);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$b.prototype,"dataChanged",null);_.B([_.W("playerState","miniplayerIsActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$b.prototype,"updateNowPlayingOverlay",null);_.B([_.V("yt-playlist-lockup-now-playing-active"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],$b.prototype,"onPlaylistLockupNowPlaying",null);
_.B([_.W("data","isDarkTheme"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$b.prototype,"colorPaletteChanged",null);$b=_.B([_.L({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],$b);
_.rBD=_.kJ()($b,"ytd-playlist-panel-renderer",function(){if(Kh_===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);Kh_=p}p=Kh_;return p},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var EZa;var e7=function(){var p=_.m.apply(this,arguments)||this;p.modern=_.S("web_button_rework");return p};
_.E(e7,_.m);e7.prototype.computeShouldButtonBeVertical=function(p,x){return p||x};
e7.prototype.onYtServiceRequestSent=function(p,x){(p=_.r(x.endpoint,_.Pc))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.KV("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:p.status})):this.handleLikeEndpoint(p))};
e7.prototype.computelikeStatusEntityKey=function(p){return p==null?void 0:p.likeStatusEntityKey};
e7.prototype.handleLikeEndpoint=function(p){p.status==="LIKE"?this.JSC$14744_ytdDislikeToggleButtonRenderer.toggle(!1):p.status==="DISLIKE"?this.JSC$14744_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14744_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14744_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.R8.Object.defineProperties(e7.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var p;return Rkr(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(p=this.likeStatusEntity)==null?void 0:p.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var p;return Rkr(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(p=this.likeStatusEntity)==null?void 0:p.likeStatus)}}});
var pD=e7;pD.prototype.onYtServiceRequestSent=pD.prototype.onYtServiceRequestSent;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],pD.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],pD.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],pD.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],pD.prototype,"vertical",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],pD.prototype,"textTransform",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],pD.prototype,"useShortsIcon",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],pD.prototype,"underIconLabel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],pD.prototype,"modern",void 0);_.B([_.H({value:"left"}),_.k("design:type",String)],pD.prototype,"buttonTooltipPosition",void 0);
_.B([_.H(),_.k("design:type",Object)],pD.prototype,"overrides",void 0);_.B([_.Ff("#like-button"),_.k("design:type",Object)],pD.prototype,"JSC$14744_ytdLikeToggleButtonRenderer",void 0);_.B([_.Ff("#dislike-button"),_.k("design:type",Object)],pD.prototype,"JSC$14744_ytdDislikeToggleButtonRenderer",void 0);_.B([_.w("data","likeStatusEntity.likeStatus"),_.k("design:type",Object),_.k("design:paramtypes",[])],pD.prototype,"likeButton",null);
_.B([_.w("data","likeStatusEntity.likeStatus"),_.k("design:type",Object),_.k("design:paramtypes",[])],pD.prototype,"dislikeButton",null);_.B([_.H({computed:"computelikeStatusEntityKey(data)"}),_.k("design:type",String)],pD.prototype,"likeStatusEntityKey",void 0);_.B([_.H({selectorArgs:["likeStatusEntityKey"],selector:Qm}),_.k("design:type",Object)],pD.prototype,"likeStatusEntity",void 0);
_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],pD.prototype,"onYtServiceRequestSent",null);pD=_.B([_.L({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],pD);
var X9H=_.kJ()(pD,"ytd-like-button-renderer",function(){if(EZa===void 0){var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);EZa=p}p=EZa;return p},{mode:1});_.gZD={};
_.gZD.YtConditionalRendererBehavior=[_.e.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(p,x){var F=this,N,h;return _.D(function(c){switch(c.nextAddress){case 1:if(!x)return F.hidden=!0,F.showSpinner=!1,c.return();if((N=p)==null?0:(h=N.visibilityCondition)==null?0:h.mode)switch(p.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return c.jumpTo(5);default:return c.jumpTo(6)}F.showSpinner=
!1;F.hidden=!0;return _.q(c,F.shouldShow_(p),4);case 4:F.hidden=!c.yieldResult;c.jumpTo(0);break;case 5:return _.q(c,F.shouldShow_(p),8);case 8:F.showSpinner=c.yieldResult;F.hidden=!1;c.jumpTo(0);break;case 6:return F.showSpinner=!1,_.q(c,F.shouldShow_(p),9);case 9:F.hidden=!c.yieldResult,_.JB(c)}})},
shouldShow_:function(p){return p&&p.supportedDatas&&p.supportedDatas.rendererVisibilityConditionData&&p.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(p.supportedDatas.rendererVisibilityConditionData.showIf):p&&p.visibilityCondition&&p.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(p.visibilityCondition.showIf):p&&p.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(p.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(p){switch(p){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(p){switch(p){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var p=_.lA(this.hostElement,"yt-get-mdx-status");return p.length==1&&p[0].connected},
isLocationPermissionGranted_:function(){var p;return _.D(function(x){return x.nextAddress==1?navigator.permissions?_.q(x,navigator.permissions.query({name:"geolocation"}),3):x.jumpTo(2):x.nextAddress!=2?(p=x.yieldResult,x.return(Promise.resolve(p.state==="granted"))):x.return(Promise.resolve(!1))})}}];var QyH=function(p,x){x=x===void 0?{}:x;return function(F){var N=document.createElement(p),h;var c=(h=N.polymerController)!=null?h:N;GVm(N,c,F,x);return N}}("yt-icon");var zDH=function(p){var x=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];WJH();_.ox("ytglobal.ytUtilActivityCallback_",function(){_.Mt(p,"yt-user-activity")});
new Rn(function(){return x.JSC$14756_onMouseMove});
document.addEventListener("scroll",function(){return x.onScroll});
window.addEventListener("resize",function(){return x.onResize})},syD=function(p,x,F){x in p.eventJobIds||(F=_.nP().addLowPriorityJob(function(){_.kS();
delete p.eventJobIds[x]},F),p.eventJobIds[x]=F)};
zDH.prototype.onScroll=function(p){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):p.target===document&&syD(this,"scroll",200)};
zDH.prototype.onResize=function(){syD(this,"resize",200)};
zDH.prototype.JSC$14756_onMouseMove=function(){syD(this,"mousemove",100)};
_.D_v=function(p){p.scrollEventsToIgnore+=1;p.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){p.scrollEventsToIgnore--},500))};var nZc=function(p){this.element=p;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
nZc.prototype.showFeedbackDialog=function(p,x,F,N){var h=yBa();if(!h)return!1;var c=lGM();c.productId=h;x&&(c.flow="submit",c.report={description:x});F&&(yBa()==="59"?c.callback=_.bO(function(){_.E$("userFeedbackEvent",{});F()}):c.callback=_.bO(F));
c.bucket=N||_.sd("GOOGLE_FEEDBACK_BUCKET","Other");bMD(c);p=ABX(this,"GFEEDBACK",p);try{_.PHJ(c,p)}catch(M){return _.yL(M),!1}return!0};
nZc.prototype.showHelpDialog=function(p,x,F){var N=this,h=yBa();if(!h)return!1;var c={helpCenterPath:"/youtube",productData:ABX(this,"GUIDED_HELP",F)};bMD(c);var M=lGM();M.context=p||c.productData.context||"default";M.defaultHelpArticleId=x;M.enableSendFeedback=!0;(_.A9("gapi.load")||function(f,K){return K()})("client",function(){try{var f=weD(h,c);
if(_.S("web_always_load_chat_support")&&!N.chatSupportLoaded)try{f.JSC$7828_loadChatSupport(M),N.chatSupportLoaded=!0}catch(K){}f.startHelp(M)}catch(K){_.yL(K)}})};
var yBa=function(){var p=_.sd("GOOGLE_FEEDBACK_PRODUCT_ID");p||_.yL(Error("ci"));return p},bMD=function(p){p&&(p.locale=_.S("kevlar_help_use_locale")?_.sd("INNERTUBE_CONTEXT_HL","en"):_.sd("HTML_LANG","en"))},ABX=function(p,x,F){var N=p.productData;
delete N.origin;N.device=_.rk();var h;a:{if(h=document.createElement("canvas")){var c=h.getContext("experimental-webgl",{stencil:!0});if(c){var M=c.getExtension("WEBGL_debug_renderer_info");if(M){h=c.getParameter(M.UNMASKED_RENDERER_WEBGL);break a}}if(c=h.getContext("webgl")){h=c.getParameter(c.RENDERER);break a}}h=null}N.gpu=h;N.isSDC=!!_.sd("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(h=_.sd("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.Q5.extend(N,h);_.NTp(x,N);_.heJ(N);(p=_.Mt(p.element,"yt-get-autonav-pause-debug-state"))&&
p.length&&(N.autonav_pause_state=p[0]);p=_.t_();N.browser_resolution=p.width+"\u00d7"+p.height+"@"+(window.devicePixelRatio||1)+"x";F&&_.Q5.extend(N,F);return N};
nZc.prototype.resetProductData=function(){this.productData={}};var uBe=function(p){this.feedbackManager=new nZc(p)};
uBe.prototype.showFeedbackDialog=function(p,x,F,N){return this.feedbackManager.showFeedbackDialog(p,x,F,N)};
uBe.prototype.showHelpDialog=function(p,x,F){return this.feedbackManager.showHelpDialog(p,x,F)};var Yee=function(){this.baseUrl="";this.aTag=document.createElement("a")},XEm=function(p,x,F){F=F===void 0?{}:F;
F.pbj||(F.pbj=1);F=_.X2k(x,F);p.baseUrl&&F&&!_.mg(F)[1]&&!_.oD(F)&&(x=p.baseUrl,ZZ(x,"/")&&(x=x.slice(0,-1)),_.qm(F,"/")&&(F=F.slice(1)),F=x+"/"+F);Wz(p.aTag,bg(F||""));return p.aTag.href};
Yee.prototype.fetchData=function(p){return _.Iwd(p)};
Yee.prototype.postData=function(p,x){var F={method:"POST"};if(x){for(var N=_.a(Object.keys(x)),h=N.next();!h.done;h=N.next()){h=h.value;var c=x[h];_.IJ(c)&&(x[h]=JSON.stringify(c))}F.postParams=x}return _.Iwd(p,F)};
_.gbD=function(p,x,F,N,h){p=XEm(p,x,F);if(!p)throw N=Error("di"),Object.assign(N,{params:x}),N;return _.Iwd(p,h,N)};
Yee.prototype.requestDataForServiceEndpoint=function(p,x){if(_.r(p,_.vUZ))return this.fetchData("/getAccountSwitcherEndpoint");x=x||{};var F=_.r(p,Iev);F?x.se=F.base64EncodedServiceEndpoint:x.sej=JSON.stringify(p);(F=_.b0())&&_.S("enable_service_ajax_csn")&&(x.csn=F);x.theme=_.AF();_.r(p,tIp)&&_.sd("DELEGATION_CONTEXT")&&(x.delegation_context=JSON.stringify(_.sd("DELEGATION_CONTEXT")));F=null;for(var N in p)if(ZZ(N,"Endpoint")||ZZ(N,"Command")){F=N;break}if(!F){var h=Error("ei");Object.assign(h,{params:p});
_.Ssr(h,"WARNING");return new _.cZ(function(M,f){f(h)})}N={name:F};
var c;(F=(c=_.r(p,_.dH))==null?void 0:c.signal)&&(N.signal=F);(c=_.VL(window.location.href))&&c.internalcountrycode&&(N.internalcountrycode=c.internalcountrycode);c="/service_ajax";_.S("debug_forward_web_query_parameters")&&(c=_.w5H(c,window.location.search));c=_.Hw(c,N);p.clickTrackingParams&&_.I9(c,{itct:p.clickTrackingParams});return this.postData(c,x)};_.w9a=new _.iE("GFEEDBACK_TOKEN");var GU8;var ViX;var WhH;var HM8;var xm=function(){var p=_.m.apply(this,arguments)||this;p.compact=!1;return p};
_.E(xm,_.m);xm.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
xm.prototype.computeHasIcon_=function(p){return!!p};
xm.prototype.isSignInIcon_=function(p){return p=="yt-icons:prompted_sign_in"};
var Fl=xm;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Fl.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Fl.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.gZD.YtConditionalRendererBehavior),_.k("design:type",Object)],Fl.prototype,"ytConditionalRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Fl.prototype,"data",void 0);
_.B([_.H({computed:"computeIcon_(data.icon)"}),_.k("design:type",Object)],Fl.prototype,"icon_",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.k("design:type",Boolean)],Fl.prototype,"hasIcon_",void 0);_.B([_.H({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.k("design:type",Boolean)],Fl.prototype,"signInIcon_",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Fl.prototype,"compact",void 0);
Fl=_.B([_.JZ({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],Fl);
_.P(Fl,"yt-player-error-message-renderer",function(){if(HM8===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;WhH===void 0&&(WhH=document.createElement("template"));var N=WhH;F.call(x,N.content.cloneNode(!0),p.content.firstChild);HM8=p}p=HM8;return p},{mode:2});var mFD;var oZc;var OMa=function(){return _.m.apply(this,arguments)||this};
_.E(OMa,_.m);OMa.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
OMa.prototype.computeIcon_=function(p){return p?"yt-icons:"+p.iconType.toLowerCase():"error_outline"};
var Ne=OMa;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Ne.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ne.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ne.prototype,"data",void 0);_.B([_.H({computed:"computeIcon_(data.icon)"}),_.k("design:type",Object)],Ne.prototype,"icon_",void 0);Ne=_.B([_.JZ({is:"yt-player-kav-renderer",disableElementRegistration:!0})],Ne);
_.P(Ne,"yt-player-kav-renderer",function(){if(oZc===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;mFD===void 0&&(mFD=document.createElement("template"));var N=mFD;F.call(x,N.content.cloneNode(!0),p.content.firstChild);oZc=p}p=oZc;return p},{mode:2});_.o7(_.mO(function(p){var x=_.oc(),F=_.a(_.hu(0,void 0,"gCmSbf")),N=F.next().value,h=F.next().value;F=_.a(_.hu(null,void 0,"Rj9zMe"));var c=F.next().value,M=F.next().value;_.J9(function(){MMk(x.value,h,M);x.value.scrollIntoView()});
F=DK6.bind(null,p.data,N);Rc("resize",function(){var f=c();if(N()===1&&f!==null){var K;(K=window.grecaptcha)==null||K.reset(f)}});
return _.Z("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.Z("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.Z("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var f,K;return(f=p.data().accessibility)==null?void 0:(K=f.accessibilityData)==null?void 0:K.label}),_.Z(_.KQ,{text:F,
className:_.$L("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.Z("div",{el:x,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Id"),"yt-player-captcha-view-model",{props:{data:_.mJ}});var fGH=!1;_.jyX=_.mO(function(p){var x=p.data;return _.Z("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.Z(_.D9,{cond:function(){return x().icon},
then:function(F){return _.Z("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.Z(_.VE,{data:F,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.Z(_.D9,{cond:function(){return x().title},
then:function(F){return _.Z("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.Z(_.KQ,{text:F}))}}),_.Z(_.D9,{cond:function(){return x().description},
then:function(F){return _.Z("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.Z(_.KQ,{text:F}))}}),_.Z(_.Es,{data:function(){return x().primaryButton}},{buttonViewModel:function(F){return _.Z(_.nV,{data:F.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.Z(_.Es,{data:function(){return x().secondaryButton}},{buttonViewModel:function(F){return _.Z(_.nV,{data:F.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"Jd");
_.jyX.idomCompat=!0;var Lh8=_.mO(function(p){var x=p.data;_.UW();return _.Z("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.Z("div",{class:"player-interstitial-renderer-wiz__scrim"},_.Z(_.Es,{data:function(){return x().content}},{interstitialViewModel:_.jyX})))},"Kd");
Lh8.idomCompat=!0;_.o7(Lh8,"yt-player-interstitial-renderer",{props:{data:_.G2}});var P28=function(){var p=_.m.apply(this,arguments)||this;p.noBackground=!1;p.compact=!1;p.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return p};
_.E(P28,_.m);P28.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"}}}};
P28.prototype.onUpdatePlayerErrorMessageCommand_=function(p){if(_.r(p,KFl)){var x;if(p=(x=_.r(p,KFl))==null?void 0:x.newPlayerErrorMessageRenderer)this.data=p}};
var hp=P28;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],hp.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],hp.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],hp.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],hp.prototype,"status",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],hp.prototype,"noBackground",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],hp.prototype,"compact",void 0);hp=_.B([_.JZ({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],hp);
var TnH=_.kJ()(hp,"yt-playability-error-supported-renderers",function(){if(ViX===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;GU8===void 0&&(GU8=document.createElement("template"));var N=GU8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);ViX=p}p=ViX;return p},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var KbM=void 0,Zhp=void 0;var vIB=new S_b;var DX=new _.iE("ENTITY_STATE_TOKEN"),ln=new _.iE("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var Bn_=function(p){this.store=p;this.sny=new _.EdC},vnE=function(p,x,F){var N,h;
if(!(h=((N=x.playabilityStatus)==null?void 0:N.status)!=="OK")){p=p.store;var c;h=x.offlineState&&((c=x.videoDetails)==null?0:c.videoId)?_.S("enable_pl_r_c_cd")?moJ(p.getState().entities,x.videoDetails.videoId):!!qm6(p.getState().entities,x.videoDetails.videoId):!1}if(h)return!0;h=EIM(x);if(h===1){if(_.S("ab_v_vid_sig")){var M,f=(M=x.videoDetails)==null?void 0:M.videoId;if(!f||!F||f!==F){var K;x=new _.qE("282054944_vid",{loo:F,yvQ:(K=x.videoDetails)==null?void 0:K.videoId});_.zj(x)}}return!0}OX$=
0;var t,d;K=(f=x.auxiliaryUi)==null?void 0:(t=f.messageRenderers)==null?void 0:(d=t.bkaEnforcementMessageViewModel)==null?void 0:d.displayType;if(h!==3&&(K==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||K==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;K={reason:_.ez(_.JG("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.S("ks_something_wrong_learn_more")?E8B("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.ez(_.JG("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:_.ez("282054944")};RDa(x,{playerErrorMessageRenderer:K});return!1},JPE=function(p,x){if(h1d(x)){_.MB(1,!0);
var F=(F=h1d(x))&&_.qxw()?F:void 0;F?(RDa(x,{enforcementMessageViewModel:F}),p.sny.increment("IN_PLAYER"),_.MB(5)):(p.sny.increment("SKIP_DISPLAY"),_.MB(2))}},RDa=function(p,x){p.playabilityStatus=Object.assign({},p.playabilityStatus,{status:"ERROR",
errorScreen:x});p.videoDetails=void 0};
Bn_.prototype.handleResponse=function(p,x){if(p.playabilityStatus){var F,N,h,c=(x==null?void 0:(F=x.innerTubeRequest)==null?void 0:F.videoId)||(x==null?void 0:(N=x.innerTubeRequest)==null?void 0:(h=N.playerRequest)==null?void 0:h.videoId);vnE(this,p,c)&&JPE(this,p)}};
Bn_[UP]=[DX];var tLd=new _.iE("ADBLOCK_DETECTION_SERVICE_TOKEN");var ew=function(p){this.eNc=p};
ew.prototype.bindInnertubeChallengeFetcher=function(p){this.eNc.bicf(p)};
ew.prototype.registerChallengeFetchedCallback=function(p){this.eNc.bcr(p)};
ew.prototype.getLatestChallengeResponse=function(){return this.eNc.blc()};var ICc;_.cG=function(p,x,F){var N=this;this.network=p;this.options=x;this.networkStatusManager=F;this.dW=null;if(x.useBotguardEverywhere){var h=new _.FT;this.dW=h.promise;_.Mm.ytAtRC&&_.tR(_.E0,function(){var c,M;return _.D(function(f){if(f.nextAddress==1){if(!_.Mm.ytAtRC)return f.return();c=kUe(null);return _.q(f,N.lu(c),2)}M=f.yieldResult;_.Mm.ytAtRC&&_.Mm.ytAtRC(JSON.stringify(M));_.JB(f)})});
sZd().then(function(c){var M,f,K,t;return _.D(function(d){if(d.nextAddress==1)return c.bindInnertubeChallengeFetcher(function(v){return N.lu(kUe(v))}),_.q(d,J9B(),2);
M=d.yieldResult;f=c.getLatestChallengeResponse();K=f.challenge;if(!K)throw Error("fi");t={challenge:K,xq:$q(K),zW:M,bgChallenge:new iW};h.resolve(t);c.registerChallengeFetchedCallback(function(v){v=v.challenge;if(!v)throw Error("gi");v={challenge:v,xq:$q(v),zW:M,bgChallenge:new iW};N.dW=Promise.resolve(v)});
_.JB(d)})})}else x.preload&&UFc(this,new Promise(function(c){_.vZ(_.E0,function(){c(iMm(N))},0)}))};
ICc=function(p){var x={preload:!0,useBotguardEverywhere:_.S("attmusi")},F=!1;if(typeof x==="boolean")var N={preload:x};else typeof x==="undefined"?N={preload:!0}:(N=x,F=!!x.i9h);x=F?void 0:new _.GW;_.cG.instance=new _.cG(p,N,x);return _.cG.instance};
_.cG.prototype.v7H=function(){var p=this;return _.D(function(x){return x.nextAddress==1?_.q(x,Promise.race([p.dW,null]),2):x.return(!!x.yieldResult)})};
_.cG.prototype.du8=function(p,x,F){var N=this,h,c,M;return _.D(function(f){N.dW===null&&UFc(N,iMm(N));h=!1;c={};M=function(){var K,t,d;return _.D(function(v){switch(v.nextAddress){case 1:return _.q(v,N.dW,2);case 2:K=v.yieldResult;c.challenge=K.challenge;if(!K.zW){"c1a"in K.xq&&(c.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");v.jumpTo(3);break}t=Object.assign({},{c:K.challenge,e:p},x);_.KM(v,4);h=!0;if(_.S("attbs")&&!_.S("attmusi")){d=_.ECB(K.zW,{cz:t});v.jumpTo(6);break}return _.q(v,K.zW.snapshot({cz:t}),
7);case 7:d=v.yieldResult;case 6:d?c.webResponse=d:c.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.ub(v,3);break;case 4:_.v9(v),c.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(p==="ENGAGEMENT_TYPE_PLAYBACK"){var C=K.xq,X={};if(C.c6a){var Q=Number(_.sd("DCLKSTAT",0));X.reportingStatus=String(Number(C.c)^(isNaN(Q)?0:Q))}C.c6b&&(X.broadSpectrumDetectionResult=String(Number(C.c)^Number(_.sd("CATSTAT",0))));c.adblockReporting=X}return v.return(c)}})};
return f.return(Promise.race([M(),$F_(F,function(){var K=Object.assign({},c);h&&(K.error="ATTESTATION_ERROR_VM_TIMEOUT");return K})]))})};
var kUe=function(p){var x={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};p&&(x.interpreterHash=p);return x},iMm=function(p,x){x=x===void 0?0:x;
var F,N,h,c,M,f,K,t,d,v,C,X;return _.D(function(Q){switch(Q.nextAddress){case 1:F=kUe(gCC().wkp);if(_.S("att_fet_ks"))return _.KM(Q,7),_.q(Q,p.lu(F),9);_.KM(Q,4);return _.q(Q,eDX(p,F),6);case 6:M=Q.yieldResult;h=M.mXW;c=M.jEb;N=M;_.ub(Q,3);break;case 4:return _.v9(Q),_.no(Error("hi`"+x)),pmc(p,864E5),Q.return({challenge:"",xq:{},zW:void 0,bgChallenge:void 0});case 9:N=Q.yieldResult;if(!N)throw Error("ii");if(!N.challenge)throw Error("ji");h=N.challenge;c=$q(h);if("c1a"in c&&(!N.bgChallenge||!N.bgChallenge.program))throw Error("ki");
_.ub(Q,3);break;case 7:f=_.v9(Q);_.no(f);x++;if(x>=5)return _.no(Error("hi`"+x)),pmc(p,864E5),Q.return({challenge:"",xq:{},zW:void 0,bgChallenge:void 0});K=1E3*Math.pow(2,x-1)+Math.random()*1E3;return Q.return(new Promise(function(b){_.vZ(_.E0,function(){b(iMm(p,x))},K)}));
case 3:t=zed(c);pmc(p,t*1E3);d=void 0;if(!("c1a"in c&&N.bgChallenge)){Q.jumpTo(10);break}v=QZw(N.bgChallenge);_.KM(Q,11);return _.q(Q,zWK(gCC(),v),13);case 13:_.ub(Q,12);break;case 11:return C=_.v9(Q),_.no(C),Q.return({challenge:h,xq:c,zW:d,bgChallenge:v});case 12:return _.KM(Q,14),d=new _.uM({challenge:v,kk:{h8:"aGIf"}}),_.q(Q,d.tL8,16);case 16:_.ub(Q,10);break;case 14:X=_.v9(Q),_.no(X),d=void 0;case 10:return Q.return({challenge:h,xq:c,zW:d,bgChallenge:v})}})};
_.cG.prototype.lu=function(p){var x=this,F;return _.D(function(N){F=x.networkStatusManager;if(!F||F.isNetworkAvailable())return N.return(x.network.lu(p));_.Vp("att_pna",void 0,"attestation_challenge_fetch");return N.return(new Promise(function(h){F.listenOnce("publicytnetworkstatus-online",function(){x.network.lu(p).then(h)})}))})};
var x1H=function(p){if(!p)throw Error("ii");if(!p.challenge)throw Error("ji");var x=p.challenge,F=$q(x);if("c1a"in F&&(!p.bgChallenge||!p.bgChallenge.program))throw Error("ki");return Object.assign({},p,{mXW:x,jEb:F})},eDX=function(p,x){var F,N,h,c,M;
return _.D(function(f){switch(f.nextAddress){case 1:F=void 0,N=0,h={};case 2:if(!(N<5)){f.jumpTo(4);break}if(!(N>0)){f.jumpTo(5);break}h.kvG=1E3*Math.pow(2,N-1)+Math.random()*1E3;return _.q(f,new Promise(function(K){return function(t){_.vZ(_.E0,function(){t(void 0)},K.kvG)}}(h)),5);
case 5:return _.KM(f,7),_.q(f,p.lu(x),9);case 9:return c=f.yieldResult,f.return(x1H(c));case 7:F=M=_.v9(f),M instanceof Error&&_.no(M);case 8:N++;h={kvG:void 0};f.jumpTo(2);break;case 4:throw F;}})},UFc=function(p,x){p.dW=x},FMk=function(p){var x,F,N;
return _.D(function(h){if(h.nextAddress==1)return _.q(h,Promise.race([p.dW,null]),2);x=h.yieldResult;var c=iMm(p);p.dW=c;(F=x)==null||(N=F.zW)==null||N.dispose();_.JB(h)})},pmc=function(p,x){var F=Date.now()+x,N=function(){var h;
return _.D(function(c){h=F-Date.now();return h<1E3?_.q(c,FMk(p),0):(_.vZ(_.E0,N,Math.min(h,6E4)),c.jumpTo(0))})};
N()},$F_=function(p,x){return new Promise(function(F){_.vZ(_.E0,function(){F(x())},p)})};var NsX=function(){};
NsX.prototype.processContext=function(p){var x=_.cG.instance;if(!x)return _.oL();var F=uZB(p);return F?new mF(x.du8(F,bhZ(p),500).then(function(N){var h;(p==null?0:(h=p.innerTubeRequest)==null?0:h.context)||(p.innerTubeRequest.context={});h=p.innerTubeRequest.context;h.request||(h.request={});h.request.attestationResponseData=N})):_.oL()};var hte=function(p){this.innertubeTransportService=p};
hte.prototype.lu=function(p){_.Vp("att_fsr",void 0,"attestation_challenge_fetch");return _.AY(this.innertubeTransportService,p,_.Ru(_.UqC)).then(function(x){_.Vp("att_frr",void 0,"attestation_challenge_fetch");return x})};_.lhD=function(p){this.innertubeTransportService=p};var c_H=new _.iE("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var ah_=function(){},D18=function(p,x,F,N,h){var c=_.sd("YPC_MB_URL");
_.K0k(c).then(function(){MS8(c,p,x,F,N,h)})},MS8=function(p,x,F,N,h,c){try{var M=payments.business.integration,f=payments.business.integration.Style.create().withMaterialDesignStyle(),K=M.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.S("enable_window_constrained_buy_flow_dialog")&&(K=K.usingPopupStyle("windowConstrained"));c&&(K=K.usingCloseCallback(c));var t=F?F:_.sd("YPC_GB_LANGUAGE"),d=_.sd("SESSION_INDEX");M.bootstrap.fromPaymentsUrl(p);M.bootstrap.asMashupMode(K).usingGaiaIndex(d).usingLocale(t).usingStyle(f).usingDefaultActivityStatusChangeHandler().inStandaloneContext(M.standaloneContextAuthId.forGaia()).purchaseManager(x,function(v){N&&N(v)}).load(void 0,h)}catch(v){throw h&&h(v),_.zj(v),v;
}};var fhH=new _.iE("PURCHASE_MANAGER_TOKEN");var KMk=function(){var p=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return p.videos},
getContinuationsPresent:function(){return p.continuationsPresent},
setVideos:function(x){p.videos=x},
getRecommendedVideos:function(){return p.recommendedVideos},
setRecommendedVideos:function(x){p.recommendedVideos=x}}};
KMk.prototype.addVideos=function(p){p&&(this.videos=p.filter(function(x){return!!_.wDm(x)}).map(function(x){var F=_.wDm(x);
a:{var N;if(x.playlistVideoRenderer&&((N=x.playlistVideoRenderer)==null?0:N.voteSortTiebreaker))var h=x.playlistVideoRenderer.voteSortTiebreaker;else{if(_.r(x,xV)){var c;if(N=(h=_.r(x,xV))==null?void 0:(c=h.playlistItemData)==null?void 0:c.voteSortTiebreaker){h=N;break a}}h=""}}return{itemId:F,videoId:_.WbE(x),voteCount:_.HhM(x),voteSortTiebreaker:h}}),this.continuationsPresent=!!_.r(p[p.length-1],_.hf))};
var qTm=function(p,x){return p.videos.findIndex(function(F){return F.itemId===x})},Z2k=function(p,x){return p.recommendedVideos.findIndex(function(F){return F.itemId===x})},tS_=function(p){p={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:p}}}}};_.J().resolve(_.RD).resolveCommand(p)};var d1_=function(){KMk.apply(this,arguments)};
_.E(d1_,KMk);
var alB=function(p,x,F,N){if(!p.parentElem)throw Error("pi");var h=qTm(p,x);h===-1&&(h=Z2k(p,x),h=h!==-1?h+p.videos.length:-1);if(h===-1)throw Error("qi");var c=h>=p.videos.length?p.recommendedVideos[h-p.videos.length]:p.videos[h];c.voteCount=F;c.voteSortTiebreaker=Date.now().toString();h>=p.videos.length?p.recommendedVideos.splice(h-p.videos.length,1):p.videos.splice(h,1);var M=p.videos;for(var f=0,K=M.length-1;f<=K;){var t=Math.floor((f+K)/2);if(M[t].voteCount<c.voteCount)K=t-1;else if(M[t].voteCount>c.voteCount)f=
t+1;else{a:{var d=c.voteSortTiebreaker;var v=M[t].voteSortTiebreaker;if(d.length!==v.length)d=d.length>v.length;else{for(var C=0;C<d.length;C++){var X=d.charCodeAt(C),Q=v.charCodeAt(C);if(X>Q){d=!0;break a}if(X<Q)break}d=!1}}d?K=t-1:f=t+1}}M=f;if(M===-1)throw Error("ri");p.videos.splice(M,0,c);h!==M&&vHX(p,h,M,x,F,N)},vHX=function(p,x,F,N,h,c){var M,f=(M=p.parentElem)==null?void 0:M.children,K=Math.min(x,F),t=Math.max(x,F);
if(f)for(M=K;M<=t;M++)f[M].style.viewTransitionName="item-"+String(M);document.startViewTransition(function(){if(p.parentElem){var d=p.parentElem.children;if(!(!d||x<0||x>=d.length||F<0||F>=d.length)){var v=d[x];if(v){v.remove();p.showRefreshPill=F>=p.videos.length-1&&p.continuationsPresent;if(!p.showRefreshPill){d=d[F]||null;var C;(C=p.parentElem)==null||C.insertBefore(v,d)}_.hG(p.parentElem,"yt-update-video-data-voting-animation",{toIdx:F,itemId:N,newVoteCount:h,voteStatus:c,hideItem:p.showRefreshPill})}}}}).finished.then(function(){if(f)for(var d=
K;d<=t;d++)f[d].style.viewTransitionName="";
if(p.showRefreshPill)tS_(_.JG("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var v;if(v=d=(v=p.parentElem)==null?void 0:v.children[F])v=d.getBoundingClientRect(),d=v.bottom,v=!(v.top>=0&&d<=p.clientHeight);v&&(v=_.Cc(x>F?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(x-F)),tS_(v))}})};var J__=_.Ud("innertube_request_limit_ms",3E3),r_a=function(p,x){var F=this;p?this.innertubeTransportServicePromise=Promise.resolve(p):x&&(this.innertubeTransportServicePromise=x(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new j7(J__,function(N){return Ckm(F,N)},0);
this.validateMiniAppVideoIdRateLimiter=new j7(J__,function(N){return STD(F,N)},1)},i6c=function(p,x){p.JSC$14870_miniAppId=x;
p.reportMiniAppValueRateLimiter=new j7(J__,function(F){return Ckm(p,F)},0);
p.validateMiniAppVideoIdRateLimiter=new j7(J__,function(F){return STD(p,F)},1)},$MX=function(p,x){var F;
return _.D(function(N){if(N.nextAddress==1)return _.q(N,p.reportMiniAppValueRateLimiter.call(x),2);F=N.yieldResult;return N.return([F,x])})},Ckm=function(p,x){var F,N,h,c,M,f,K;
return _.D(function(t){switch(t.nextAddress){case 1:return _.q(t,p.innertubeTransportServicePromise,2);case 2:return F=t.yieldResult,N=_.Ru(FBD),h=Date.now(),c={externalPostId:p.JSC$14870_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(h/1E3),nanos:Math.round(h%1E3*1E6)},intValue:""+x}},_.KM(t,3),_.q(t,_.AY(F,c,N),5);case 5:M=t.yieldResult;_.ub(t,4);break;case 3:throw f=_.v9(t),f;case 4:if(M){if("error"in M&&M.error)throw M.error;if(M.errorMetadata)throw Error("si`"+
M.errorMetadata.status);if(K=M.userStatResult)return t.return(K);throw Error("ti");}throw Error("ui");}})},p9m=function(p){var x,F,N,h,c;
_.D(function(M){switch(M.nextAddress){case 1:return _.q(M,p.innertubeTransportServicePromise,2);case 2:return x=M.yieldResult,F=_.Ru(FBD),N={externalPostId:p.JSC$14870_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.KM(M,3),_.q(M,_.AY(x,N,F),5);case 5:h=M.yieldResult;_.ub(M,4);break;case 3:throw c=_.v9(M),c;case 4:if(h==null)throw Error("ui");if("error"in h&&h.error)throw h.error;if(h.errorMetadata)throw Error("si`"+h.errorMetadata.status);_.JB(M)}})};
r_a.prototype.flush=function(){var p=this;return _.D(function(x){return x.nextAddress==1?_.q(x,p.reportMiniAppValueRateLimiter.flush(),2):_.q(x,p.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var e5t=function(p,x){return _.D(function(F){return F.nextAddress==1?_.q(F,p.validateMiniAppVideoIdRateLimiter.call(x),2):F.return(F.yieldResult)})},STD=function(p,x){var F,N,h,c,M,f;
return _.D(function(K){switch(K.nextAddress){case 1:return _.q(K,p.innertubeTransportServicePromise,2);case 2:return F=K.yieldResult,N=_.Ru(kHl),h={videoId:x},_.KM(K,3),_.q(K,_.AY(F,h,N),5);case 5:c=K.yieldResult;_.ub(K,4);break;case 3:throw M=_.v9(K),M;case 4:if(c){if("error"in c&&c.error)throw c.error;if(c.errorMetadata)throw Error("si`"+c.errorMetadata.status);if(f=c.playabilityStatus)return K.return(f.status);throw Error("vi");}throw Error("ui");}})};
r_a[UP]=[_.Bw(_.SV),_.Bw(goj)];var EHc=function(){this.clientData=new Map};
EHc.prototype.getData=function(p){return this.clientData.get(p)};var Xm8=function(p){this.store=p};
Xm8.prototype.handleResponse=function(p){(p=_.r(p.frameworkUpdates,Wt))&&_.t$(p,this.store)};
Xm8[UP]=[_.Q_];var gH8=new _.iE("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var QR8={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,1,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],
search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_list:[[0,
1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,
1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var ztm=new _.iE("ICON_SET_TOKEN"),sRH=new _.iE("ICON_URL_PROVIDER_TOKEN"),nHm=new _.iE("PREFETCH_ICONS_TOKEN"),y_D=new _.iE("ICON_MAP_FN_TOKEN");var ag={},b2e=(ag.ACCESS_TIME="clock",ag.ACCOUNT_BOX="person_account",ag.ACCOUNT_BOX_CAIRO="person_account_cairo",ag.ACCOUNT_CIRCLE="person_circle",ag.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",ag.ACCOUNT_LINKED="account_link_success",ag.ACCOUNT_UNLINKED="account_link",ag.ADD_FRIEND="people",ag.ADD_TO_LIBRARY=Ng("add"),ag.ADD_TO_PLAYLIST="add",ag.ADD_TO_QUEUE_TAIL="list_queue",ag.ADD_TO_REMOTE_QUEUE="list_music",ag.ADD_TO_WATCH_LATER="clock",ag.ADD_VIDEO_LINK="film_strip_add",ag.ALERT_WARN_RED="alert_triangle",
ag.ARROW_BACK="arrow_left",ag.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",ag.ARROW_DROP_DOWN="chevron_down",ag.ARROW_DROP_UP="chevron_up",ag.ARROW_FORWARD="arrow_right",ag.AUDIOTRACK="audio",ag.AUTO_AWESOME="sparkle",ag.AVATAR_ANONYMOUS="person_circle",ag.AVATAR_LOGGED_OUT="person_circle",ag.BACK="arrow_left",ag.BAR_CHART="bar_graph",ag.BLOCK="slash_circle_left",ag.BLOCK_USER="slash_circle_left",ag.BOOKMARK_BORDER="bookmark",ag.BREAKING_NEWS_ALT_1="article_alert",ag.BROADCAST_CAIRO="podcast_cairo",
ag.BUG_REPORT="bug",ag.CAMERA_ALT="camera",ag.CAMPAIGN="megaphone",ag.CANCEL="x_circle",ag.CAPTIONS="closed_caption",ag.CAST_OUTLINE="chromecast",ag.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",ag.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",ag.CHAT="message_bubble_left",ag.CHAT_BUBBLE="message_bubble_empty",ag.CHECK_BOX_OUTLINE_BLANK="box_empty",ag.CHECK_CIRCLE_OUTLINE="check_circle",ag.CHECK_CIRCLE_THICK="check_circle",ag.CLARIFY="article_clarify",ag.CLOSED_CAPTION_SELECTED="closed_caption",ag.CLOSE=
"x_mark",ag.CLOUD_UPLOAD="cloud_arrow_up",ag.COLLAPSE="chevron_up",ag.COLLAPSE_CAIRO="chevron_up_cairo",ag.COLLECTION="layers",ag.COLOR_LENS="palette",ag.COMMENT="message_bubble_right",ag.CONSENT_SHIELD="person_shield",ag.CONTENT_CUT="scissors",ag.CONTENT_CUT_CAIRO="scissors_cairo",ag.COURSE=_.S("web_enable_course_icon_update")?"creator_academy":"lightbulb",ag.COURSE_CAIRO=_.S("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",ag.CREATION_LIVE="radar_live",ag.CREATION_UPLOAD=
"my_videos",ag.CREATION_UPLOAD_RED="upload",ag.CREATOR_STUDIO="youtube_studio",ag.DELETE="trash_can",ag.DELETE_SWEEP="trash_can",ag.DESKTOP="laptop",ag.DISLIKE="thumb_down",ag.DISLIKE_SELECTED="thumb_down",ag.DISMISSAL="x_mark",ag.DISMISS_QUEUE="list_remove",ag.DOWN_ARROW="arrow_down",ag.DO_NOT_DISTURB="slash_circle_left",ag.DRAFT="paper_corner_folded",ag.DRAG_HANDLE="bars_2",ag.EDIT="pencil",ag.EMOJI="face_very_happy",ag.EMOJI_FLAGS="flag",ag.EMOJI_OBJECTS="lightbulb",ag.EMOJI_PEOPLE="face_very_happy",
ag.EMOJI_RECENT="clock",ag.EMPTY_HEART="heart",ag.EMPTY_LIKE="thumb_up",ag.ERROR_BLACK="alert_circle",ag.ERROR_OUTLINE="alert_circle",ag.EXIT_APP="arrow_in",ag.EXIT_TO_APP="arrow_in",ag.EXPAND="chevron_down",ag.EXPAND_ALL="chevron_expand",ag.EXPAND_CAIRO="chevron_down_cairo",ag.EXPAND_LESS="chevron_up",ag.EXPAND_MORE="chevron_down",ag.EXPLORE="compass",ag.EXPLORE_DESTINATION="compass",ag.EXTERNAL_LINK="open_new",ag.FAB_UPLOAD="upload",ag.FACE_HAPPY_OUTLINE="face_happy",ag.FACT_CHECK="article_check",
ag.FASHION_LOGO="fashion",ag.FASHION_LOGO_CAIRO="fashion_cairo",ag.FAVORITE="heart",ag.FEEDBACK="message_bubble_alert",ag.FEEDBACK_CAIRO="message_bubble_alert_cairo",ag.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",ag.FILL_ARROW_SOLID_UP_16="arrow_solid_up",ag.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",ag.FLAG="flag",ag.FULL_HEART="heart",ag.GAME_CONSOLE_DPAD="game_console_dpad",ag.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",ag.GAMING_LOGO="gaming",ag.GAMING_LOGO_CAIRO="gaming_cairo",ag.GO_TO_PAGE=
"arrow_right",ag.GROUPS="people_group",ag.HAPPY="face_happy",ag.HEALTH_AND_SAFETY="shield_plus",ag.HELP="question_circle",ag.HELP_CAIRO="question_circle_cairo",ag.HELP_OUTLINE="question_circle",ag.HIDE="slash_circle_left",ag.IMAGE="image",ag.INFINITY_ICON="infinity",ag.INFO="info_circle",ag.INFO_OUTLINE="info_circle",ag.INSERT_CHART_OUTLINED="bar_graph_box_vertical",ag.INSERT_PHOTO="image",ag.KEEP="pin",ag.KEEP_OFF="pin_off",ag.KEYBOARD="keyboard",ag.KEYBOARD_ARROW_DOWN="chevron_down",ag.KEYBOARD_ARROW_UP=
"chevron_up",ag.KIDS_BLOCK="slash_circle_left",ag.LANGUAGE="globe",ag.LAUNCH="open_new",ag.LEARNING="lightbulb",ag.LEARNING_CAIRO="lightbulb_cairo",ag.LIBRARY_ADD=Ng("library_add"),ag.LIBRARY_OUTLINE="library",ag.LIBRARY_REMOVE=Ng(),ag.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",ag.LIKES_PLAYLIST="thumb_up",ag.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",ag.LIKE="thumb_up",ag.LIKE_SELECTED="thumb_up",ag.LIVE="radar_live",ag.LIVE_CAIRO="radar_live_cairo",ag.LIVE_UNLISTED="link",ag.LOCATION_ON="location_point",
ag.LOCATION_PIN="location_point",ag.LOOP="arrow_repeat",ag.LOOP_ACTIVE="arrow_repeat",ag.LOOP_ONE="arrow_repeat_1",ag.LOOP_ONE_ACTIVE="arrow_repeat_1",ag.MEH="face_meh",ag.MEMBERS_ONLY_MODE_OFF="message_bubble_left",ag.MESSAGE="message_bubble_left",ag.MICROPHONE_ON="mic",ag.MIX="youtube_mix",ag.MONETIZATION_ON="dollar_sign_circle",ag.MONEY_FILL="dollar_sign_container",ag.MONEY_FILL_JPY="yen_sign_container",ag.MONEY_HEART="dollar_sign_heart",ag.MORE_HORIZ="overflow_horizontal",ag.MORE_VERT="overflow_vertical",
ag.MUSIC="audio",ag.MUSIC_CAIRO="audio_cairo",ag.MUSIC_NOTE_SYMBOL="music",ag.MUSIC_SHUFFLE="arrow_shuffle",ag.MY_CHANNEL="person_circle",ag.MY_LOCATION="location_point",ag.NEWS_STORY="news",ag.NEXT="chevron_right",ag.NOTIFICATIONS="bell",ag.NOTIFICATIONS_ACTIVE="bell_on",ag.NOTIFICATIONS_CAIRO="bell_cairo",ag.NOTIFICATIONS_DONE_CHECKMARK="check",ag.NOTIFICATIONS_INBOX="bell",ag.NOTIFICATIONS_NONE="bell",ag.NOTIFICATIONS_OFF="bell_off",ag.NOT_INTERESTED="slash_circle_left",ag.OFFICIAL_ARTIST_BADGE=
"audio",ag.OFFLINE_CLOUD="cloud_off",ag.OFFLINE_DOWNLOAD="download",ag.OFFLINE_DOWNLOAD_CAIRO="download_cairo",ag.OFFLINE_PAUSE="pause",ag.OPEN_IN_NEW="open_new",ag.OUTLINE_ADJUST="adjust",ag.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",ag.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",ag.OUTLINE_BAG="bag",ag.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",ag.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",ag.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",ag.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",
ag.PAID="dollar_sign",ag.PAUSE_OUTLINED="pause",ag.PAYMENT="credit_card",ag.PERSON_RADAR_FILLED="person_radar",ag.PHONE_DOWNLOAD="mobile_download",ag.PLAYABLES_LOGO="tic_tac_toe",ag.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",ag.PLAYLISTS="list_play_arrow",ag.PLAYLISTS_CAIRO="list_play_arrow_cairo",ag.PLAYLIST_ADD=Ng("list_add"),ag.PLAYLIST_ADD_CHECK=Ng("list_check"),ag.PLAY_ALL="play_arrow",ag.PLAY_CIRCLE="play_arrow_circle",ag.PLAY_OUTLINED="play_arrow_circle",ag.PRIVACY_INFO="shield",ag.PRIVACY_PRIVATE=
"lock",ag.PRIVACY_PUBLIC="earth",ag.PRIVACY_UNLISTED="link",ag.PROMOTE="megaphone",ag.PURCHASES="price_tag",ag.PURCHASE_SUPER_CHAT="super_chat",ag.PURCHASE_SUPER_STICKER="super_sticker",ag.QUESTION_ANSWER="message_bubble_question",ag.QUEUE_PLAY_LAST="list_queue_last",ag.QUEUE_PLAY_NEXT="list_play_arrow",ag.REMIX_FILLED="youtube_shorts_remix",ag.REMOVE="bar_circle",ag.REMOVE_CIRCLE="bar_circle",ag.REMOVE_CIRCLE_OUTLINE="bar_circle",ag.REMOVE_FROM_HISTORY="bar_circle",ag.REMOVE_FROM_PLAYLIST="bar_circle",
ag.REPLAY="arrow_circle",ag.REPORT_PROBLEM="alert_triangle",ag.SAD="face_sad",ag.SAVE_PLAYLIST=Ng("library_add"),ag.SCHEDULE="clock",ag.SCHOOL="creator_academy",ag.SCREEN_FULLSCREEN="screen_full",ag.SEARCH_HISTORY="arrow_time",ag.SELL="price_tag",ag.SETTINGS="gear",ag.SETTINGS_CAIRO="gear_cairo",ag.SETTINGS_LIGHT="gear",ag.SETTINGS_MATERIAL="gear",ag.SHARE_ARROW="share",ag.SHIELD_WITH_AVATAR="person_shield",ag.SHOPPING_BAG="bag",ag.SHOPPING_BAG_CAIRO="bag_cairo",ag.SHOPPING_CART="cart",ag.SHORTS_COMMENT=
"youtube_shorts_message_bubble_right",ag.SHORTS_DISLIKE="youtube_shorts_thumb_down",ag.SHORTS_LIKE="youtube_shorts_thumb_up",ag.SHORTS_SHARE="youtube_shorts_share",ag.SHUFFLE="arrow_shuffle",ag.SLOW_MODE_OFF="message_bubble_left",ag.SOCIAL="people",ag.SORT="menu_sort",ag.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",ag.SPEED_1X="1x",ag.SPEED_1_POINT_2X="1_point_2x",ag.SPEED_1_POINT_5X="1_point_5x",ag.SPEED_1_POINT_8X="1_point_8x",ag.SPEED_2X="2x",ag.SPEED_POINT_2X="point_2x",ag.SPEED_POINT_8X="point_8x",
ag.SPONSORSHIP_STAR=_.S("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",ag.STAFF_PICK="spotlight",ag.START_DVR="add",ag.STAR_BORDER="star",ag.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",ag.STICKER_EMOTICON="face_happy",ag.STOP_DVR="stop",ag.SUBSCRIBE="youtube_logo_icon",ag.SUBSCRIBE_PLUS="add_cairo",ag.SUBSCRIPTION_MANAGER="gear",ag.SUPERVISOR_ACCOUNT="people",ag.SWAP_HORIZ="arrow_swap_horizontal",ag.SWITCH_ACCOUNTS="person_account",ag.TAB_ACCOUNT="person",ag.TAB_ACTIVITY=
"bell",ag.TAB_EXPLORE="compass",ag.TAB_HOME="home",ag.TAB_HOME_CAIRO="home_cairo",ag.TAB_INBOX="mail",ag.TAB_LIKED="thumb_up",ag.TAB_MUSIC_PREMIUM="youtube_music",ag.TAB_SHORTS="youtube_shorts",ag.TAB_SHORTS_CAIRO="youtube_shorts_cairo",ag.TAB_SUBSCRIPTIONS="subscriptions",ag.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",ag.TAB_TRENDING="fire",ag.TIMER="stopwatch",ag.TRENDING="fire",ag.TRENDING_CAIRO="fire_cairo",ag.TRENDING_UP="rating_up",ag.TROPHY="trophy",ag.TROPHY_CELEBRATIONS="fireworks",ag.TUNE=
"adjust",ag.UNBLOCK_USER="bar_circle",ag.UNLIMITED="youtube_logo_icon",ag.UNPLUGGED_LIVE_GUIDE="radar_live",ag.UNPLUGGED_SPORTS="eye_off",ag.UPLOADS="library",ag.UP_ARROW="arrow_up",ag.VERTICAL_ALIGN_BOTTOM="download",ag.VERY_HAPPY="face_very_happy",ag.VERY_SAD="face_very_sad",ag.VIDEOS="play_arrow_circle",ag.VIDEO_CALL="video_camera_add",ag.VIDEO_LIBRARY_WHITE="library",ag.VIDEO_YOUTUBE="youtube_logo_icon",ag.VIEW_LIST="list_view",ag.VIEW_LIST_CAIRO="list_view_cairo",ag.VISIBILITY="eye",ag.VISIBILITY_OFF=
"eye_off",ag.VOLUME_MUTE="volume_off",ag.VOLUME_UP="volume_on",ag.WALLPAPER="image",ag.WARNING="alert_triangle",ag.WATCH_HISTORY="arrow_time",ag.WATCH_HISTORY_CAIRO="arrow_time_cairo",ag.WATCH_LATER="clock",ag.WATCH_LATER_CAIRO="clock_cairo",ag.WATCH_RELATED_MIX="youtube_mix",ag.WHAT_TO_WATCH="home",ag.YOUTUBE_MUSIC_MONOCHROME="youtube_music",ag.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",ag.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",ag.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",ag.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",ag.YT_OUTLINE_MUSIC_24="music",ag);var A_D={},uaH=(A_D.TAB_SHORTS="youtube_shorts",A_D.TAB_SHORTS_CAIRO="youtube_shorts",A_D.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",A_D);var YTH={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,2,24]],account_link:[[1,6,24]],account_link_error:[[1,5,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,7,16],[1,7,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,3,24],
[1,3,36]],add_half_circle:[[1,2,24]],adjust:[[0,6,24],[1,6,24]],airplane:[[0,2,24],[1,2,20],[1,2,24]],airplay:[[1,5,16],[1,5,24]],airplay_off:[[1,1,24]],album:[[0,4,24],[1,4,24]],alert_circle:[[0,7,24],[1,7,16],[1,7,24]],alert_triangle:[[0,6,12],[0,6,24],[1,6,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,36],[1,1,48]],
arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,2,24],[1,2,24]],arrow_down_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrow_flip:[[1,8,16],[1,8,24]],arrow_in:[[0,6,24],[1,6,24]],arrow_left:[[1,6,24,!0]],arrow_left_cairo:[[1,2,24]],arrow_merge:[[1,
1,24]],arrow_out:[[0,1,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,2,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_solid_up:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_split:[[0,2,24],[1,2,24]],arrow_swap_horizontal:[[0,3,24],[1,3,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],
[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,2,24],[1,2,24]],arrow_up_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,7,12],[0,7,16],[0,7,24],[1,7,24]],audio_badge:[[0,1,12],[0,1,16],[0,1,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,3,24],[1,3,24]],bag:[[0,5,12],
[0,5,18],[0,5,24],[1,5,18],[1,5,24]],bag_bookmark:[[1,1,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,1,24]],bell:[[0,8,24],[1,8,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,2,24]],blur:[[1,1,24]],book:[[1,1,24]],bookmark:[[0,6,24],[1,6,24]],bookmark_cairo:[[0,
2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,1,24]],briefcase_slash:[[0,1,24]],brightness:[[0,1,24],[1,1,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,1,24],[1,
1,24]],business:[[1,2,24]],cable:[[1,1,24]],calculator:[[0,1,24],[1,1,24]],calendar:[[0,2,24],[1,2,24]],camera:[[0,7,24],[1,7,24]],camera_audio:[[1,4,24]],camera_effects:[[1,4,24]],camera_flip:[[1,3,24]],camera_hashtag:[[1,4,24]],camera_switch:[[0,1,24],[1,1,24]],card:[[0,2,12],[0,2,16],[0,2,24]],cart:[[0,2,24],[1,2,24]],celebration:[[1,1,24]],check:[[0,9,12],[0,9,16],[0,9,24],[1,9,16],[1,9,24]],check_circle:[[0,8,18],[0,8,24],[1,8,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,
2,24]],chevron_down:[[1,7,18],[1,7,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,1,24]],chevron_expand:[[1,4,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,8,16,!0],[1,8,18,!0],[1,8,24,!0]],chevron_left_circle:[[0,1,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,5,16,!0],[0,5,18,!0],[0,5,24,!0],[1,5,16,!0],[1,5,18,!0],[1,5,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,1,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,
7,16],[1,7,18],[1,7,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,1,24]],chromecast:[[0,6,24],[1,6,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,2,24],[1,2,36]],chromecast_waveform:[[1,1,24]],circle:[[0,5,24],[1,5,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,
1,24]],clapperboard:[[0,1,24],[1,1,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,7,24],[1,7,16],[1,7,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,1,24]],cloud_arrow_down:[[1,2,24]],cloud_arrow_up:[[0,3,24],[1,3,24]],cloud_check:[[0,1,24],[1,1,24]],cloud_ellipsis:[[0,1,24],[1,1,24]],cloud_off:[[1,2,24]],code:[[1,1,24]],compass:[[0,6,24],[1,6,24]],compass_cairo:[[0,
1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,2,24]],copyright:[[0,2,24],[1,2,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,2,24]],crop:[[1,2,16],[1,2,24]],crop_rotate:[[1,1,24]],crown:[[0,2,16],[0,2,24],[1,2,12],[1,2,16],[1,2,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,2,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,
8,16],[0,8,24],[1,8,16],[1,8,24]],dollar_sign_circle_pause:[[1,1,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,20,12],[0,20,24],[1,20,16],[1,20,24]],dollar_sign_off:[[1,3,24]],download:[[0,9,24],[1,9,16],[1,9,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,
6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,5,18],[0,5,24],[1,5,24]],eye:[[0,3,24],[1,3,24]],eye_off:[[1,4,24]],eyedropper:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_image:[[1,1,24]],face_meh:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,1,24]],face_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_unhappy:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],
face_upset:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],fashion:[[0,2,24],[1,2,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[1,2,24]],fast_forward:[[0,3,24]],film_strip:[[0,4,24],[1,4,24]],film_strip_add:[[1,1,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,6,24],[1,6,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,2,24]],flag:[[0,6,24],[1,6,24]],
flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,1,24],[1,1,24]],flash_circle:[[0,3,18],[0,3,24],[1,3,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,3,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,2,16],[0,2,24],[1,2,24]],football:[[0,1,24],[1,1,24]],gaming:[[0,1,24],[1,1,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,6,24],[1,6,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,3,24]],gif:[[1,1,24]],gift:[[0,1,24],[1,1,24]],globe:[[1,2,
24]],glow:[[1,1,24]],google_lens:[[1,3,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,1,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,1,24]],hands_heart:[[0,1,24],[1,1,24]],hashtag:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],hd:[[0,6,24],[1,6,24]],headset:[[0,6,24],[1,6,24]],heart:[[0,15,13],[0,15,24],[1,
15,16],[1,15,24]],heart_box:[[1,1,24]],heart_circle:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],heart_off:[[1,2,24]],hierarchy:[[0,2,24],[1,2,24]],highlights:[[1,1,24]],home:[[0,7,24],[1,7,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,1,16],[1,1,24]],image:[[0,6,24],[1,6,24]],image_add:[[1,2,24]],image_wallpaper:[[1,1,24]],incognito:[[0,7,24],[1,7,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,1,24]],info_circle:[[1,8,16],[1,8,18],[1,8,20],[1,8,24]],key:[[1,4,24]],keyboard:[[0,
2,24],[1,2,24]],label:[[0,2,24],[1,2,24]],laptop:[[1,2,24]],laptop_mobile:[[0,2,24],[1,2,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,1,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,2,12],[0,2,24],[1,2,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,6,18],[1,6,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,
2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,1,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,9,12],[0,9,24],[1,9,12],[1,9,16],[1,9,18],[1,9,24]],lock_open:[[1,
2,24]],magic_wand:[[0,1,24],[1,1,24]],mail:[[0,6,24],[1,6,24]],map:[[1,2,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,1,24]],medal_star:[[1,1,24]],meet:[[1,1,24]],megaphone:[[0,
2,24],[1,2,24]],memberships:[[0,6,12],[0,6,16],[0,6,18],[0,6,24],[1,6,24]],mention:[[1,3,16],[1,3,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,
14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,8,24],[1,8,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,3,24],[1,3,24]],mobile_check:[[1,1,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,1,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,1,24]],move:[[1,1,24]],music:[[0,
6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,3,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,2,24],[1,2,12],[1,2,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,1,24]],node_right:[[1,1,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,4,24],[1,4,32]],overflow_vertical:[[1,10,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,2,24]],palette:[[1,1,24]],panels:[[0,1,24],[1,1,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,6,24]],pause_circle:[[0,1,12],[0,1,16],[0,1,24]],pdf:[[1,1,24]],pencil:[[1,6,16],[1,6,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,5,12],[0,5,13],[0,5,16],[0,5,24],[0,5,48],[1,5,13],[1,5,16],[1,5,24]],person_2:[[1,1,24]],
person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,5,24]],person_box:[[1,5,24]],person_circle:[[0,8,24],[1,8,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,1,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],person_setting:[[1,6,24]],person_shield:[[1,6,24]],phone:[[0,1,24],[1,1,24]],picture_in_picture:[[0,1,24],[1,1,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,5,12],[0,5,24],
[1,5,16],[1,5,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,2,24],[1,2,12],[1,2,16],[1,2,18],[1,2,24]],podcast_add:[[0,1,24],[1,1,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,1,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,7,16],[1,7,24],[1,7,40]],pound:[[1,3,24]],presentation:[[1,1,24]],presentation_remove:[[1,
1,24]],price_tag:[[0,6,12],[0,6,24],[1,6,24]],price_tag_heart:[[1,1,24]],qr_code:[[1,2,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,1,24]],remix:[[1,1,16],[1,1,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,1,16],[1,
1,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],samples:[[0,1,24],[1,1,24]],saturation:[[1,1,24]],scale:[[1,3,24]],scissors:[[0,6,12],[0,6,24],[1,6,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,2,16],[1,2,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,
1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],sd:[[0,2,24],[1,2,24]],search:[[0,9,24],[1,9,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,3,24,!0],[1,3,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,1,24]],shadow_soft:[[0,1,24]],shapes:[[0,2,24],[1,2,24]],share:[[0,9,24,!0],[0,9,32,!0],[1,9,16,!0],[1,9,24,!0]],
share_cairo:[[1,2,24]],share_ios:[[1,1,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,4,24]],shield_add:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,1,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],
shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,3,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,3,24]],skip_previous:[[0,3,24]],skip_up:[[0,
3,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,2,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,1,24]],spark:[[0,6,12],[0,6,16],[0,6,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,
4,24],[1,4,24]],speaker:[[1,1,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,1,24]],speaker_off:[[1,1,24]],split:[[1,3,24]],sports:[[0,1,24]],spotlight:[[0,1,24],[1,1,24]],star:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],star_circle:[[0,1,12],[0,1,16],[0,1,18],[0,1,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,1,24]],
stop:[[0,1,24]],stopwatch:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,8,24],[1,8,18],[1,8,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,2,12],[0,2,24],[1,2,24]],super_chat:[[1,6,18],[1,6,24]],super_sticker:[[0,6,16],[0,6,24],[1,6,16],[1,6,24]],super_store:[[1,1,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,1,24],[1,1,16],[1,1,24]],target_add:[[0,1,24],[1,1,16],[1,1,24]],template_add:[[1,2,16],[1,2,24]],template_play:[[0,
1,24],[1,1,24]],text:[[0,8,24],[1,8,16],[1,8,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,1,24]],thumb_down:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],[1,19,24],[1,19,36]],thumb_up:[[0,17,16],[0,17,24],[0,17,36],[1,17,16],[1,17,24],[1,17,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,
1,24],[1,1,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],tilt:[[1,3,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,2,24]],toolbox:[[1,2,24]],transcript:[[1,1,16],[1,1,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,3,24],[1,3,24]],translate:[[1,1,24]],trash_can:[[1,6,16],[1,6,24]],triangle_down:[[1,5,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,1,24],[1,1,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,
1,24]],truck:[[0,3,24],[1,3,24]],tv:[[0,5,12],[0,5,16],[0,5,24],[1,5,16],[1,5,24]],tv_arrow_left:[[1,1,24]],tv_circle:[[0,1,24],[1,1,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,4,24]],uploading:[[1,1,24]],variable:[[1,3,24]],verified_circle:[[1,4,24]],video_camera:[[0,7,24],[1,7,24]],video_camera_add:[[1,1,24]],video_camera_off:[[1,1,24]],video_link:[[1,3,16],[1,3,24]],video_stitch:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],
volume_fade:[[1,1,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,5,24],[1,5,24]],waveform:[[1,1,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],wrench:[[0,1,24],[1,1,24]],x:[[1,8,18],[1,8,24]],x_cairo:[[1,1,24]],x_circle:[[1,5,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,1,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,3,24],[1,3,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,
6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,5,24],[1,5,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,
2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,
2,18],[1,2,24]],youtube_studio:[[0,6,24],[1,6,24]],youtube_tv:[[0,6,24],[1,6,24]]};var wmD={youtube_shorts:[[0,10,24],[1,10,24]]};var Me=function(p){this.iconUrlProvider=p};
Me.prototype.resolveIcon=function(p,x){var F=p.iconName;F=F.replace(/-/g,"_");p=Object.assign({},p,{iconName:this.mapIconTypeToStandardName(F)||F.toLowerCase()});if(_.S("enable_web_delhi_icons")){var N;return oId(wmD,p,((N=this.iconUrlProvider)==null?void 0:N.getYtStandardUrl)||LbM,x)}var h;return oId(YTH,p,((h=this.iconUrlProvider)==null?void 0:h.getYtStandardUrl)||jZ6,x)};
Me.prototype.mapIconTypeToStandardName=function(p){return _.S("enable_web_delhi_icons")?uaH[p.toUpperCase()]:b2e[p.toUpperCase()]};
Me[UP]=[_.Bw(sRH)];var Gy8=function(p){this.urlProvider=this.iconUrlProvider=p};
_.E(Gy8,Me);
Gy8.prototype.resolveIcon=function(p,x){p.iconName==="youtube_logo"&&(p.iconName="yt-logo-updated");if(p.iconName==="youtube_premium_logo"||p.iconName==="youtube_red_logo")p.iconName="yt-logo-red-updated";var F=Object.assign({},p);p.iconName==="menu"&&(F.iconName="bars_3",F.iconStyle="youtube_outline");p.iconName==="youtube_music"&&(F.iconStyle="youtube_fill");p.iconName==="mail"&&p.iconSetName==="socialNetworksRound"&&(F.iconName="email");p.iconName==="more"&&(F.iconName="overflow_horizontal");p.iconName===
"fullscreen"&&(F.iconName="screen_full");if(p.iconName==="play_all"||p.iconName==="play_arrow")F.iconStyle="youtube_fill";p.iconName==="premium_standalone"&&(F.iconName="premium_standalone_cairo");_.S("enable_connect_icon_update_web")&&p.iconName==="account_linked"&&(F.iconName="circles_overlap_check",F.iconStyle="youtube_fill");_.S("enable_connect_icon_update_web")&&p.iconName==="account_unlinked"&&(F.iconName="circles_overlap",F.iconStyle="youtube_outline");p=Object.assign({},F,{iconName:(Me.prototype.mapIconTypeToStandardName.call(this,
F.iconName)||F.iconName).toLowerCase()});var N;return(p=oId(QR8,p,((N=this.urlProvider)==null?void 0:N.getUrl)||PDm,x))?p:Me.prototype.resolveIcon.call(this,F,x)};
Gy8[UP]=[_.Bw(sRH)];_.VSc=1;var Dk=function(){};
_.E(Dk,uc);Dk.prototype.resolveCommand=function(p){var x,F;return _.D(function(N){x=_.r(p,N8b);if(!x)return N.return();F=Number(x.enableDelayedPacfLoggingTvMs);if(isNaN(F)){var h=KB();Yxl(h,x,0)}else Yxl(KB(),x,F);_.JB(N)})};_.fD=function(){};
_.E(_.fD,uc);
_.fD.prototype.resolveCommand=function(p,x){var F=this,N,h,c,M,f,K,t;return _.D(function(d){N=_.r(p,hmn);c=(h=x.form)==null?void 0:h.element;f=(M=c)==null?void 0:M.closest("ytd-enforcement-message-view-model");if(!N||!f)return d.return();F.allowAdsAction||(K=N.fundingChoiceInstructionPageUrl,F.allowAdsAction=new WgB(window,_.XE(K)));var v=F.allowAdsAction;v.wallElement=f;v.allowAdsPopup.style.setProperty("display","flex","important");var C=v.scrollManager;C.originalBodyOverflow=C.JSC$7854_domHelper.JSC$7225_document_.body.style.overflow;C.JSC$7854_domHelper.JSC$7225_document_.body.style.overflow=
"hidden";v.wallElement.style.setProperty("display","none","important");kGj(v.accessibilityManager,v.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((t=F.allowAdsAction.allowAdsPopup)&&t instanceof HTMLElement)for(v=_.a(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),C=v.next();!C.done;C=v.next()){var X=_.a(C.value);C=X.next().value;X=X.next().value;t.style.setProperty(C,X)}_.JB(d)})};
_.fD.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var KD=function(){};
_.E(KD,uc);KD.prototype.resolveCommand=function(p){var x;return _.D(function(F){x=_.r(p,l1B);if(!x)return F.return();rsM(p);_.JB(F)})};var qe=function(p){this.JSC$14909_commandHandler=p};
_.E(qe,uc);
qe.prototype.resolveCommand=function(p){var x=this,F,N,h,c,M,f,K,t;return _.D(function(d){if(d.nextAddress==1){F=_.r(p,VCB);if((N=F)==null||!N.text||!navigator.clipboard)return d.return();_.KM(d,2);return _.q(d,navigator.clipboard.writeText(F.text),4)}if(d.nextAddress!=2){if(!F.successActions||F.successActions.length===0)return d.return();h=_.a(F.successActions);for(c=h.next();!c.done;c=h.next())M=c.value,x.JSC$14909_commandHandler.resolveCommand(M);return _.ub(d,0)}_.v9(d);if(!F.failureActions||F.failureActions.length===
0)return d.return();f=_.a(F.failureActions);for(K=f.next();!K.done;K=f.next())t=K.value,x.JSC$14909_commandHandler.resolveCommand(t);_.JB(d)})};
qe[UP]=[_.RD];var Zk=function(p){this.JSC$14913_commandHandler=p};
_.E(Zk,uc);
Zk.prototype.resolveCommand=function(p,x){var F=this,N,h,c,M,f,K,t,d,v,C;return _.D(function(X){switch(X.nextAddress){case 1:N=_.r(p,qmJ);if(!N)return X.return();_.KM(X,2);if(!N.imageBytes&&!N.imageUrl)throw Error("wi");if(!N.imageUrl){if(N.imageBytes){c=N.imageBytes;M=c.replace(/-/g,"+").replace(/_/g,"/");var Q=BTp(M);h=YE(Q)}X.jumpTo(4);break}return _.q(X,fetch(N.imageUrl),5);case 5:return f=X.yieldResult,_.q(X,f.blob(),6);case 6:K=X.yieldResult,h=YE(K);case 4:v=(t=x)==null?void 0:(d=t.form)==null?
void 0:d.element;C=document.createElement("a");Wz(C,h);v.appendChild(C);C.download="";C.click();v.removeChild(C);URL.revokeObjectURL(_.n6(h));N.successCommand&&F.JSC$14913_commandHandler.resolveCommand(N.successCommand);_.ub(X,0);break;case 2:_.v9(X),N.errorCommand&&F.JSC$14913_commandHandler.resolveCommand(N.errorCommand),_.JB(X)}})};
Zk[UP]=[_.RD];var tp=function(p){this.store=p};
_.E(tp,uc);tp.prototype.resolveCommand=function(p){var x=this,F,N,h;return _.D(function(c){N=(F=_.r(p,_.I7B))==null?void 0:F.entityBatchUpdate;if(!N)return c.jumpTo(0);h=Object.assign({},N,{mutations:[].concat(_.se(N.mutations||[]))});return _.q(c,_.t$(h,x.store),0)})};var WMH=function(p){this.JSC$14920_commandHandler=p;this.feedbackDialogMap=new Map};
WMH.prototype.openDialog=function(p,x){(p=this.feedbackDialogMap.get(p))&&this.JSC$14920_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:p}},x)};
WMH[UP]=[_.RD];var d0=new _.iE("FEEDBACK_CONTROLLER_TOKEN");var vG=new _.iE("APP_STORE_TOKEN");var Jp=function(p,x){this.store=p;this.controller=x};
_.E(Jp,uc);Jp.prototype.resolveCommand=function(p,x){var F=this,N,h,c,M,f,K,t,d,v,C,X,Q,b,A,Y,O,Fw;return _.D(function(R){if(R.nextAddress==1){N=_.r(p,_.ua);if(c=(h=N)==null?void 0:h.contentId)for(f=_.a(((M=N)==null?void 0:M.actions)||[]),K=f.next();!K.done;K=f.next())t=K.value,H2D(F,t,c);C=(d=x)==null?void 0:(v=d.form)==null?void 0:v.element;return _.q(R,_.fc(C,[p]).catch(function(){}),2)}X=R.yieldResult;
((Q=X)==null?0:(b=Q.data)==null?0:(A=b.feedbackResponses)==null?0:A.length)&&(O=(Y=X.data.feedbackResponses[0])==null?void 0:Y.followUpDialog)&&c&&(Fw=F.controller)!=null&&Fw.feedbackDialogMap.set(c,O);_.JB(R)})};
var H2D=function(p,x,F){var N=_.r(x,_.Zx);if(N){N=_.a(N.commands||[]);for(var h=N.next();!h.done;h=N.next())H2D(p,h.value,F)}_.r(x,_.JS)&&p.store.dispatch(_.KV("commandEntity",EYZ(F),{key:F,command:x}));_.r(x,xi6)&&p.store.dispatch(_.KV("commandEntity",EYZ(F),{key:F,command:x}))};
Jp[UP]=[vG,d0];var CD=function(p){this.controller=p};
_.E(CD,uc);CD.prototype.resolveCommand=function(p,x){var F=this,N,h,c,M;return _.D(function(f){N=_.r(p,_.Yl);c=(h=N)==null?void 0:h.targetId;if(((M=N)==null?void 0:M.signal)!=="TELL_US_WHY"||!c)return f.return();F.controller.openDialog(c,x);_.JB(f)})};
CD[UP]=[d0];var SE=function(p){this.store=p};
_.E(SE,uc);SE.prototype.resolveCommand=function(p,x){var F=this,N,h,c,M,f,K,t;return _.D(function(d){N=_.r(p,$3d);c=(h=N)==null?void 0:h.contentId;K=(M=x)==null?void 0:(f=M.form)==null?void 0:f.element;t=_.fc(K,[p]);c&&F.undo(c);return _.q(d,t,0)})};
SE.prototype.undo=function(p){this.store.dispatch(_.KV("commandEntity",EYZ(p),{key:p,command:void 0}))};
SE[UP]=[vG];var r0=function(p){this.JSC$14935_commandHandler=p};
_.E(r0,uc);r0.prototype.resolveCommand=function(p){var x=this,F,N,h,c,M,f,K,t;return _.D(function(d){F=_.r(p,Zqn);N=F.flowStateKey;h=F.validationFailureCommand;c=F.submitValidFormCommand;M=YJ(_.FN,[N||""]);f=_.r(M,dhb);((K=f)==null?0:K.isValid)&&c&&x.JSC$14935_commandHandler.resolveCommand(c);((t=f)==null?0:t.isValid)||!h||x.JSC$14935_commandHandler.resolveCommand(h);_.JB(d)})};
r0[UP]=[_.RD];var EV=function(p){this.innertubeTransportService=p};
_.E(EV,uc);EV.prototype.resolveCommand=function(p,x){var F=this,N;return _.D(function(h){return _.q(h,_.w5(F.innertubeTransportService,p,(N=x)==null?void 0:N.form).then(function(c){var M,f;x==null||(M=x.commandController)==null||(f=M.onSuccess)==null||f.call(M,p,c)},function(c){var M,f;
x==null||(M=x.commandController)==null||(f=M.onServerError)==null||f.call(M,p,c)}),0)})};
EV[UP]=[_.SV];var Xl=function(){};
_.E(Xl,uc);Xl.prototype.resolveCommand=function(p){var x,F,N,h;return _.D(function(c){if(x=_.r(p,_.cAD)){if(F=x.gtmId)N=_.sd("GL",""),_.tA(F,N);(h=x.gtmData)&&_.dm(h)}_.JB(c)})};var g0=function(p,x){this.innertubeTransportService=p;this.JSC$14946_actionRouter=x};
_.E(g0,uc);g0.prototype.resolveCommand=function(p){var x=this,F,N;return _.D(function(h){F=_.r(p,QXn);if(!F)return h.return();N=F.command;if(!N)return h.return();x.JSC$14946_actionRouter.triggerAction("yt-insert-rich-section-action",F);return _.q(h,_.w5(x.innertubeTransportService,N,{disableCache:!0}),0)})};
g0[UP]=[_.SV,Tv];kgB.bind(null,Y2);var m1H=kgB.bind(null,H3k);ihJ.bind(null,Y2);var oHH=ihJ.bind(null,H3k);eeJ.bind(null,Y2);var O28=eeJ.bind(null,H3k);var Qt=function(){};
_.E(Qt,uc);
Qt.prototype.resolveCommand=function(p){var x,F,N,h,c,M,f,K,t,d;return _.D(function(v){x=_.r(p,xsj);if(!x)return v.return();N=((F=x.operations)==null?void 0:F.operations)||[];h=_.a(N);for(c=h.next();!c.done;c=h.next())if(M=c.value,M.insertItemSectionContent){var C=M.insertItemSectionContent,X=C.contents||[];C.insertByPositionInSection?m1H(C.insertByPositionInSection.sectionTargetId,X,C.insertByPositionInSection.position):C.insertByRelativePositionInSection&&C.insertByRelativePositionInSection.sectionTargetId&&C.insertByRelativePositionInSection.itemTargetId&&
oHH(C.insertByRelativePositionInSection.sectionTargetId,C.insertByRelativePositionInSection.itemTargetId,X,C.insertByRelativePositionInSection.relativePosition)}else M.replaceSection?(C=M.replaceSection,X={},C.replaceByTargetId?X=C.replaceByTargetId:C.replaceByGroupId&&(X={targetId:C.replaceByGroupId.groupId,newContent:C.replaceByGroupId.newContent,undoKey:""}),X.newContent&&O36(X.targetId,{continuationItems:[X.newContent]})):M.removeItem?(C=M.removeItem,C.removeByTargetId&&C.sectionTargetId&&O28(C.sectionTargetId,
C.removeByTargetId.targetIds||[])):M.removeSection&&(M.removeSection.removeByTargetId?(f=void 0,jRH(((f=M.removeSection)==null?void 0:f.removeByTargetId.targetIds)||[])):M.removeSection.removeByGroupId&&(K=void 0,jRH(((K=M.removeSection)==null?void 0:K.removeByGroupId.groupIds)||[])));d=((t=x.operations)==null?void 0:t.scrollConfig)||{};LMk(d);_.JB(v)})};
var jRH=function(p){p=_.a(p);for(var x=p.next();!x.done;x=p.next())O36(x.value,{continuationItems:[]})},LMk=function(p){if(p.scrollToItem){var x=p.scrollToItem.item||{},F=x.itemTargetId;
x=x.sectionTargetId;if(F&&x){var N=document.querySelector("[data-target-id="+x+"]"),h=N==null?void 0:N.querySelector("[data-target-id="+F+"]");N&&h&&setTimeout(function(){var c=h.offsetTop-N.offsetTop,M;if(((M=p.scrollToItem)==null?void 0:M.scrollPosition)==="SCROLL_POSITION_CENTER")c-=N.offsetHeight/2,c+=h.offsetHeight/2;else{var f;((f=p.scrollToItem)==null?void 0:f.scrollPosition)==="SCROLL_POSITION_END"&&(c-=N.offsetHeight,c+=h.offsetHeight)}N.scroll({top:c,behavior:"smooth"})},100)}}};var zd=new _.iE("CLIENT_NAME_TOKEN");var Pkt=new _.iE("DEFAULT_STORE_EXPIRATION_TOKEN");var dvm=new _.iE("CLIENT_LOCATION_SERVICE_TOKEN");var sV=function(p,x,F){this.clientName=p||_.sd("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=x||_.wX.getInstance();this.JSC$14974_commandHandler=F||_.xL.instance};
_.E(sV,uc);sV.prototype.resolveCommand=function(p){var x=this,F,N;return _.D(function(h){N=(F=_.r(p,ccb))==null?void 0:F.onComplete;x.clientLocationService.clearLocationPlayabilityToken(x.clientName);N&&x.JSC$14974_commandHandler.resolveCommand(N);_.JB(h)})};
sV[UP]=[zd,dvm,_.RD];var nD=function(p){this.innertubeTransportService=p};
_.E(nD,uc);nD.prototype.resolveCommand=function(p,x){var F=this,N,h,c,M;return _.D(function(f){c=(N=x)==null?void 0:(h=N.form)==null?void 0:h.element;return _.q(f,_.w5(F.innertubeTransportService,p,(M=x)==null?void 0:M.form).then(function(K){YIZ(c,new CustomEvent("yt-service-request-completed"),{data:K},_.sd("openPopupConfig"))}),0)})};
nD[UP]=[_.SV];var bn=function(){};
_.E(bn,uc);bn.prototype.resolveCommand=function(p){var x,F;return _.D(function(N){x=_.r(p,SHI);F=document.querySelector("mini-app-container-view-model");if(!x||!F)return N.return();x.isPlaying?F.dispatchEvent(new Event("play")):F.dispatchEvent(new Event("pause"));_.JB(N)})};var Ts8=function(){this.dropdownMap=new Map};_.Bs8=new _.iE("DROPDOWN_CONTROLLER_TOKEN");var Ap=function(p){this.controller=p};
_.E(Ap,uc);Ap.prototype.resolveCommand=function(p){var x=this,F,N,h,c;return _.D(function(M){F=_.r(p,GNj);if(!F)return M.return();N=F;h=N.dropdownId;c=N.selectedOptionIndex;if(h===void 0||c===void 0)return M.return();var f=x.controller.dropdownMap.get(h);f&&f(c);_.JB(M)})};
Ap[UP]=[_.Bs8];var un=function(p){this.controller=p};
_.E(un,uc);un.prototype.resolveCommand=function(p){var x=this,F;return _.D(function(N){return(F=_.r(p,tXD))?_.q(N,x.controller.closeDialog(),0):N.return()})};
un[UP]=[_.Qc];var Ym=function(p){this.controller=p};
_.E(Ym,uc);Ym.prototype.resolveCommand=function(p){var x=this,F,N;return _.D(function(h){F=_.r(p,kiv);if(!F)return h.return();var c,M=F.panelIdentifier||((c=F.identifier)==null?void 0:c.tag);if(!M)throw Error("xi");return(N=M)?_.q(h,x.controller.hidePanel(N),0):h.jumpTo(0)})};
Ym[UP]=[_.Xm];var w0=function(p,x){this.innertubeTransportService=p;this.controller=x};
_.E(w0,uc);w0.prototype.resolveCommand=function(p){var x=this,F,N,h,c;return _.D(function(M){if(M.nextAddress==1)return F=_.r(p,Ujv),(N=F)!=null&&N.panelId?_.q(M,x.controller.getReloadContinuation(F.panelId),2):M.return();if(M.nextAddress!=3)return(h=M.yieldResult)?_.q(M,_.w5(x.innertubeTransportService,p,{continuation:h}),3):M.return();c=M.yieldResult;return _.q(M,x.controller.updatePanel(F.panelId,c.content,!1),0)})};
w0[UP]=[_.SV,_.Xm];var Gd=function(p,x,F){this.innertubeTransportService=p;this.JSC$15007_screenManager=x;this.JSC$15007_commandHandler=F};
_.E(Gd,uc);
Gd.prototype.resolveCommand=function(p){var x=this,F,N,h,c,M,f;return _.D(function(K){if(K.nextAddress==1){F=_.r(p,_.m7k);if(!F)return K.return();if(F.commands)for(N=_.a(F.commands),h=N.next();!h.done;h=N.next())c=h.value,x.JSC$15007_commandHandler.resolveCommand(c,{disableClickTracking:!0});M=_.fr(p.clickTrackingParams);_.F8(x.JSC$15007_screenManager,21760,M,{layer:7,parentLayer:0});return _.q(K,_.w5(x.innertubeTransportService,p),2)}f=K.yieldResult;if(!f)return K.return();x.JSC$15007_screenManager.graftServerVe(f.trackingParams,M,
7);_.JB(K)})};
Gd[UP]=[_.SV,_.Zy,_.RD];var Vt=new _.iE("PANEL_LOADING_STRATEGY_TOKEN");var WG=function(p,x){this.controller=p;this.panelLoadingStrategy=x};
_.E(WG,uc);
WG.prototype.resolveCommand=function(p,x){var F=this,N,h,c;return _.D(function(M){N=_.r(p,sO6);if((h=N)==null||!h.panelLoadingStrategy)return M.return();c=function(f){var K,t,d,v,C,X,Q,b,A;return _.D(function(Y){t=_.r((K=f.dialogViewModel)==null?void 0:K.header,VaB);d={viewModel:f.dialogViewModel};v={};if(Q=_.S("web_enable_dialog_header_label")?(C=t)==null?void 0:(X=C.headline)==null?void 0:X.content:void 0)v.ariaLabel=Q;N.dismissOnBackgroundTap===!1&&(v.isModal=!0);return f.dialogViewModel?_.q(Y,
F.controller.openDialog(d,(b=x)==null?void 0:(A=b.form)==null?void 0:A.element,v),0):Y.return()})};
return _.q(M,F.panelLoadingStrategy.execute({command:p,data:N.panelLoadingStrategy,renderFn:c,createScreenConfig:{layer:4}}),0)})};
WG[UP]=[_.Qc,Vt];var HG=function(p,x,F){this.innertubeTransportService=p;this.controller=x;this.JSC$15027_screenManager=F};
_.E(HG,uc);
HG.prototype.resolveCommand=function(p,x){var F=this,N,h,c,M,f,K,t,d,v,C,X,Q;return _.D(function(b){switch(b.nextAddress){case 1:N=_.r(p,_.Af);if(!N)return b.return();var A,Y=N.panelIdentifier||((A=N.identifier)==null?void 0:A.tag);if(!Y)throw Error("xi");h=Y;return _.q(b,F.controller.isVisible(h,!0),2);case 2:if((c=b.yieldResult)&&N.blockIfPanelOpen)return b.return();K=(f=(M=F.controller).getPanelContent)==null?void 0:f.call(M,h);if(!(A=K))if(N){var O;A=((O=N.globalConfiguration)==null?void 0:O.initialState)||
N.engagementPanel;if(O=!A)O=!!(N==null?0:(Y=N.engagementPanelPresentationConfigs)==null?0:Y.engagementPanelPopupPresentationConfig);O&&(A=_.pom(N.panelIdentifier,N.identifier))}else A=void 0;t=A;d=N.engagementPanelPresentationConfigs;v=N.engagementPanelExtras;return _.q(b,F.controller.showPanel(h,t,d,v,(C=x)==null?void 0:(X=C.form)==null?void 0:X.element),3);case 3:if(!N.globalConfiguration){b.jumpTo(0);break}_.F8(F.JSC$15027_screenManager,32633);return _.q(b,_.w5(F.innertubeTransportService,p),5);
case 5:return Q=b.yieldResult,F.JSC$15027_screenManager.graftServerVe(Q.trackingParams),_.q(b,F.controller.updatePanel(h,Q.content,!0,v,void 0,Q.updatePanelContinuationData),0)}})};
HG[UP]=[_.SV,_.Xm,_.Zy];var m7=function(p,x){this.controller=p;this.panelLoadingStrategy=x};
_.E(m7,uc);m7.prototype.resolveCommand=function(p,x){var F=this,N,h,c;return _.D(function(M){N=_.r(p,_.qN);if((h=N)==null||!h.panelLoadingStrategy)return M.return();c=function(f){var K,t;return _.D(function(d){return f.sheetViewModel?_.q(d,F.controller.openSheet({viewModel:f.sheetViewModel},(K=x)==null?void 0:(t=K.form)==null?void 0:t.element),0):d.return()})};
return _.q(M,F.panelLoadingStrategy.execute({command:p,data:N.panelLoadingStrategy,renderFn:c,createScreenConfig:{layer:0}}),0)})};
m7[UP]=[_.gc,Vt];var og=function(p,x){this.controller=p;this.JSC$15035_commandHandler=x};
_.E(og,uc);og.prototype.resolveCommand=function(p,x){var F=this,N,h,c;return _.D(function(M){if(M.nextAddress==1){N=_.r(p,e_v);var f=_.r(N.showCommand,_.Af),K,t,d=(t=f==null?void 0:f.panelIdentifier)!=null?t:f==null?void 0:(K=f.identifier)==null?void 0:K.tag;if(!d)throw Error("yi");h=d;return _.q(M,F.controller.isVisible(h),2)}return(c=M.yieldResult)?_.q(M,F.controller.hidePanel(h),0):_.q(M,F.JSC$15035_commandHandler.resolveCommand(N.showCommand,x),0)})};
og[UP]=[_.Xm,_.RD];var OV=function(p,x,F){this.innertubeTransportService=p;this.controller=x;this.JSC$15038_screenManager=F};
_.E(OV,uc);
OV.prototype.resolveCommand=function(p){var x=this,F,N,h,c,M,f,K,t,d,v,C,X,Q,b,A,Y,O,Fw,R,ld,pp,Kp;return _.D(function(sM){switch(sM.nextAddress){case 1:return N=F=_.r(p,pfk),h=N.targetPanelIdentifier,c=N.contentSourcePanelIdentifier,M=N.globalConfiguration,((f=h)==null?0:f.tag)&&((K=c)==null?0:K.tag)?M?_.q(sM,x.controller.showPanel(h.tag,_.pom(h.tag,h),void 0,void 0,void 0),5):_.q(sM,(C=(v=x.controller).getPanel)==null?void 0:C.call(v,c.tag),4):sM.return();case 4:X=sM.yieldResult;t=(Q=X)==null?void 0:
(A=(b=Q).getPanelContent)==null?void 0:A.call(b);sM.jumpTo(3);break;case 5:return _.q(sM,_.w5(x.innertubeTransportService,p),6);case 6:Y=sM.yieldResult,((O=Y)==null?0:O.trackingParams)&&x.JSC$15038_screenManager.graftServerVe(Y.trackingParams),t=(Fw=Y)==null?void 0:Fw.content,d=(R=Y)==null?void 0:R.updatePanelContinuationData;case 3:if(pp=(ld=t)==null?void 0:ld.engagementPanelSectionListRenderer)return _.q(sM,x.controller.showPanel(h.tag,void 0,void 0,void 0,void 0,{content:pp.content,secondaryHeaderContent:(Kp=
pp.header)!=null?Kp:{},targetId:pp.targetId},d),0);sM.jumpTo(0)}})};
OV[UP]=[_.SV,_.Xm,_.Zy];var jE=function(p,x){this.JSC$15046_commandHandler=p;this.store=x};
_.E(jE,uc);jE.prototype.resolveCommand=function(p){var x=this,F,N,h,c,M;return _.D(function(f){if(f.nextAddress==1)return(F=_.r(p,q8k))?_.q(f,_.xw(),2):f.return();N=f.yieldResult;if(!N)return f.return();NGM(N,x.store,(h=F)==null?void 0:h.languageCode);c=N.isSubtitlesOn()?_.JG("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.JG("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");M=_.UJ(c);x.JSC$15046_commandHandler.resolveCommand(M);_.JB(f)})};
jE[UP]=[_.RD,DX];var LD=function(p,x){this.shortsPlayerPromise=p;this.JSC$15050_commandHandler=x};
_.E(LD,uc);
LD.prototype.resolveCommand=function(p){var x=this,F,N,h,c,M,f,K,t;return _.D(function(d){if(d.nextAddress==1)return(F=_.r(p,sSv))?_.q(d,x.shortsPlayerPromise,2):d.return();N=d.yieldResult;var v=hF6(N);v!=null&&v.length||(N.loadModule("captions"),v=hF6(N));h=v;if((c=h)==null||!c.length)return M=_.JG("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),f=_.UJ(M),x.JSC$15050_commandHandler.resolveCommand(f),d.return();N.toggleSubtitles();K=N.isSubtitlesOn()?_.JG("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.JG("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");t=_.UJ(K);x.JSC$15050_commandHandler.resolveCommand(t);_.JB(d)})};
LD[UP]=[_.UQI,_.RD];var PG=function(p){this.JSC$15053_playerPromise=p};
_.E(PG,uc);PG.prototype.resolveCommand=function(p){var x=this,F,N,h,c;return _.D(function(M){if(M.nextAddress==1)return(F=_.r(p,IQK))?_.q(M,x.JSC$15053_playerPromise,2):M.return();N=M.yieldResult;h=N.getVideoData().video_id;F.videoId===h&&(c=Number(F.offsetFromVideoStartMilliseconds),c>=0&&N.seekTo(c/1E3));_.JB(M)})};
PG[UP]=[_.Ui];var Rtc=_.au("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),Td=function(p){this.store=p};
_.E(Td,uc);
var kyH=function(p){var x,F,N,h;return _.D(function(c){if(c.nextAddress==1)return x=_.sd("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,F=_.sd("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,N=x||F,p.mainAppPlayer=new j1(N),_.q(c,p.mainAppPlayer.api,2);h=c.yieldResult;h.addEventListener("onStateChange",p.JSC$15057_playerStateChangeListener.bind(p));document.addEventListener("yt-page-data-updated",p.pauseOnNavigation.bind(p));window.addEventListener("state-navigatestart",
p.pauseOnNavigation.bind(p));_.JB(c)})};
Td.prototype.JSC$15057_playerStateChangeListener=function(p){switch(p){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"}U1H(this)};
var U1H=function(p){p.store.dispatch(_.KV("sfvAudioItemCurrentlyPlayingEntity",Rtc,{key:Rtc,externalVideoId:p.externalVideoId,sfvAudioItemPlaybackState:p.playbackState,nowPlayingEntityValue:p.nowPlayingEntityValue}))};
Td.prototype.pauseOnNavigation=function(){var p=this,x,F,N,h;return _.D(function(c){if(c.nextAddress==1){if(!p.mainAppPlayer){var M=new _.qE("Error: mainAppPlayer is unavailable",p.mainAppPlayer);_.zj(M);return c.return()}return _.q(c,p.mainAppPlayer.api,2)}x=c.yieldResult;N=(F=x)==null?void 0:F.getPlayerState();N!==1||(h=x)!=null&&h.pauseVideo();_.JB(c)})};
Td.prototype.playVideo=function(p,x,F){var N=this,h,c;return _.D(function(M){if(M.nextAddress==1)return _.q(M,(h=N.mainAppPlayer)==null?void 0:h.api,2);c=M.yieldResult;if(!N.mainAppPlayer||!c){var f=new _.qE("Error: mainAppPlayer is unavailable",N.mainAppPlayer);_.zj(f);return M.return()}return _.q(M,N.mainAppPlayer.loadVideoWithPlayerVars({videoId:N.externalVideoId,audio_only:"1",start:p/1E3,end:p/1E3+x,player_params:F}),0)})};
Td.prototype.pauseVideo=function(){var p=this,x,F;return _.D(function(N){if(N.nextAddress==1){if(!p.mainAppPlayer){var h=new _.qE("Error: mainAppPlayer is unavailable",p.mainAppPlayer);_.zj(h);return N.return()}return _.q(N,p.mainAppPlayer.api,2)}x=N.yieldResult;(F=x)==null||F.pauseVideo();_.JB(N)})};
Td.prototype.resolveCommand=function(p){var x=this,F,N,h,c,M,f,K,t,d,v,C,X,Q,b,A,Y,O,Fw,R;return _.D(function(ld){if(ld.nextAddress==1)return F=_.r(p,Xfn),h=(N=F)==null?void 0:N.nowPlayingEntityValue,M=(c=F)==null?void 0:c.externalVideoId,v=Number((d=(f=F)==null?void 0:(K=f.defaultStartPoints)==null?void 0:(t=K[0])==null?void 0:t.offsetMs)!=null?d:"0"),Y=Number((A=(C=F)==null?void 0:(X=C.defaultStartPoints)==null?void 0:(Q=X[0])==null?void 0:(b=Q.duration)==null?void 0:b.seconds)!=null?A:"15"),R=
(Fw=(O=F)==null?void 0:O.playerParams)!=null?Fw:"",h&&M?x.mainAppPlayer?ld.jumpTo(2):_.q(ld,kyH(x),2):ld.return();if(ld.nextAddress!=6){if(x.nowPlayingEntityValue&&h===x.nowPlayingEntityValue)return x.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.q(ld,x.pauseVideo(),0):_.q(ld,x.playVideo(v,Y,R),0);x.externalVideoId=M;x.nowPlayingEntityValue=h;x.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.q(ld,x.playVideo(v,Y,R),6)}U1H(x);return ld.jumpTo(0)})};
Td[UP]=[DX];var BG=function(p){this.JSC$15074_commandHandler=p};
_.E(BG,uc);BG.prototype.resolveCommand=function(p,x){var F=this,N,h,c,M,f;return _.D(function(K){if(K.nextAddress==1)return(N=_.r(p,ZWn))?_.q(K,_.xw(),2):K.return();h=K.yieldResult;if(!h)return K.return();(c=Mnw(h))?F.JSC$15074_commandHandler.resolveCommand(c,x):(M=_.JG("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),f=_.UJ(M),F.JSC$15074_commandHandler.resolveCommand(f));_.JB(K)})};
BG[UP]=[_.RD];var Rg=function(p){this.JSC$15077_playerPromise=p};
_.E(Rg,uc);Rg.prototype.resolveCommand=function(p){var x=this,F,N,h,c,M;return _.D(function(f){if(f.nextAddress==1){F=_.r(p,$jb);if(!F)return f.return();N=F.overlayRenderer;return N?(h=_.r(N,ibD))?_.q(f,x.JSC$15077_playerPromise,3):f.jumpTo(0):f.return()}c=f.yieldResult;c.renderChapterSeekingAnimation(1,_.Pi(h.text),(M=h.icon)==null?void 0:M.iconType);_.JB(f)})};
Rg[UP]=[_.Ui];var km=function(p){this.store=p};
_.E(km,uc);km.prototype.resolveCommand=function(p){var x=this,F,N,h;return _.D(function(c){if(c.nextAddress==1){F=_.r(p,dsJ);if(!F)return c.return();N="";(h=x.store.getState().collabInviteLink)&&F.id===h.playlistId?N=h.inviteLinkURL:F.shortUrl&&(N=F.shortUrl);return N?_.q(c,navigator.clipboard.writeText(N),3):c.jumpTo(0)}var M={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.JG("COPY_LINK_SUCCESS_TOAST")}}}}};_.J().resolve(_.RD).resolveCommand(M);_.JB(c)})};
km[UP]=[vG];var UV=function(p,x){this.innertubeTransportService=p;this.JSC$15087_commandHandler=x};
_.E(UV,uc);UV.prototype.resolveCommand=function(p,x){var F=this,N,h,c,M,f,K,t,d,v,C;return _.D(function(X){if(X.nextAddress==1)return(N=_.r(p,_.wA))?_.q(X,_.w5(F.innertubeTransportService,p,(h=x)==null?void 0:h.form),2):X.return();(c=X.yieldResult)&&c.errorMetadata&&(M=c,f=_.UJ(M.error.message),F.JSC$15087_commandHandler.resolveCommand(f));K=c;if((t=K)==null?0:t.actions)for(d=_.a(K.actions),v=d.next();!v.done;v=d.next())C=v.value,F.JSC$15087_commandHandler.resolveCommand(C);_.JB(X)})};
UV[UP]=[_.SV,_.RD];var Ig=function(){};
_.E(Ig,uc);Ig.prototype.resolveCommand=function(p){var x;return _.D(function(F){x=_.r(p,DsJ);if(!x)return F.return();(new HSk(x)).show();_.JB(F)})};_.$m=new _.iE("PLAYLIST_EDIT_CONTROLLER_TOKEN");var eE=function(p,x,F,N){this.store=p;this.innertubeTransportService=x;this.controller=F;this.JSC$15095_commandHandler=N};
_.E(eE,uc);
eE.prototype.resolveCommand=function(p,x){var F=this,N,h,c,M,f,K,t,d,v,C,X,Q,b,A,Y,O,Fw,R,ld,pp,Kp,sM,np,Jz,Y$,xB;return _.D(function(qI){if(qI.nextAddress==1){N=_.r(p,_.n4);if(!N)return qI.return();if(N.clientActions){h=_.a(N.clientActions);for(c=h.next();!c.done;c=h.next())M=c.value,F.JSC$15095_commandHandler.resolveCommand(M);var RJ,Ik=x==null?void 0:(RJ=x.form)==null?void 0:RJ.element;Ik&&_.hG(Ik,"yt-dismissible-item-action",N.clientActions)}return _.q(qI,_.w5(F.innertubeTransportService,p,(f=
x)==null?void 0:f.form),2)}if(K=qI.yieldResult)K.errorMetadata?(t=K,d=_.UJ(t.error.message),F.JSC$15095_commandHandler.resolveCommand(d),"error"in K&&((v=x)==null?0:(C=v.commandController)==null?0:C.onServerError)&&((X=x)==null||(Q=X.commandController)==null||Q.onServerError(p,K))):(b=x)==null||(A=b.commandController)==null||(O=(Y=A).onSuccess)==null||O.call(Y,p,K);Fw=K;((R=Fw)==null?0:R.collaborationInviteLink)&&N.playlistId&&(_.S("web_enable_invite_collaborators_link")||_.S("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
F.store.dispatch(_.F4({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:N.playlistId,inviteLinkUrl:Fw.collaborationInviteLink}}));((ld=Fw)==null?0:ld.redirectEndpoint)&&F.JSC$15095_commandHandler.resolveCommand(Fw.redirectEndpoint);((pp=Fw)==null?0:(Kp=pp.newHeader)==null?0:Kp.playlistHeaderRenderer)?i2c(F.controller,Fw.newHeader.playlistHeaderRenderer):((sM=Fw)==null?0:(np=sM.newHeader)==null?0:np.musicEditablePlaylistDetailHeaderRenderer)&&i2c(F.controller,Fw.newHeader.musicEditablePlaylistDetailHeaderRenderer);
F.controller.playlistVideoListElement&&((Jz=Fw)==null?0:(Y$=Jz.playlistEditResults)==null?0:(xB=Y$[0])==null?0:xB.playlistEditVideoAddedResultData)&&((Ik=F.controller.playlistVideoListElement)==null||Ik.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:Fw.playlistEditResults[0].playlistEditVideoAddedResultData})));_.JB(qI)})};
eE[UP]=[vG,_.SV,_.$m,_.RD];var pI=function(p,x){this.controller=p;this.JSC$15105_commandHandler=x};
_.E(pI,uc);pI.prototype.resolveCommand=function(p,x){var F=this,N,h,c;return _.D(function(M){N=_.r(p,v9B);F.controller.showRefreshPill&&((h=N)==null?0:h.command)&&(F.JSC$15105_commandHandler.resolveCommand((c=N)==null?void 0:c.command,x),F.controller.showRefreshPill=!1);_.JB(M)})};
pI[UP]=[_.LY,_.RD];var xK=function(p,x){this.store=p;this.JSC$15109_commandHandler=x||_.xL.instance};
_.E(xK,uc);xK.prototype.resolveCommand=function(p,x){var F=this,N,h,c,M,f,K,t,d,v,C;return _.D(function(X){N=_.r(p,bFJ);h=F.store.getState().radioButtonGroup;if((c=N)==null?0:c.command)F.JSC$15109_commandHandler.resolveCommand((M=N)==null?void 0:M.command,x);else if(((f=N)==null?void 0:f.formId)===h.currentFormId)for(K=Object.values(h.commandsMap),t=_.a(K),d=t.next();!d.done;d=t.next()){v=d.value;C=_.g$(v);if(!C)return X.return();F.JSC$15109_commandHandler.resolveCommand(C,x)}_.JB(X)})};
xK[UP]=[vG];var Ihm=new _.iE("USER_PREFS");var Fi=function(p){this.JSC$15113_prefCookie=p};
_.E(Fi,uc);Fi.prototype.resolveCommand=function(p){var x=this,F,N;return _.D(function(h){F=_.r(p,CE6);if(!F)return h.return();N=!1;F.flagNum&&typeof F.value==="boolean"?(_.Ez(0,F.flagNum,F.value),N=!0):F.key&&typeof F.stringValue==="string"&&(x.JSC$15113_prefCookie.set(F.key,F.stringValue),N=!0);N&&x.JSC$15113_prefCookie.save();_.JB(h)})};
Fi[UP]=[Ihm];var Nb=new _.iE("PREF_STORAGE_PROMISE_TOKEN");var hE=function(p){this.JSC$15117_prefStoragePromise=p};
_.E(hE,uc);hE.prototype.resolveCommand=function(p){var x=this,F,N;return _.D(function(h){if(h.nextAddress==1)return(F=_.r(p,rkJ))?_.q(h,x.JSC$15117_prefStoragePromise,2):h.return();N=h.yieldResult;return N===void 0||F.key===void 0||F.value===void 0?h.return():_.q(h,N.set(F.key,F.value),0)})};
hE[UP]=[Nb];var $1t=function(p){this.innertubeTransportService=p};
_.E($1t,uc);$1t.prototype.resolveCommand=function(p,x){var F=this,N,h;return _.D(function(c){(N=_.r(p,_.BAD))&&N&&N.isFirstRequest&&(_.Yv("search_overview_answer"),_.wH("so_rq",void 0,"search_overview_answer"));return _.q(c,_.w5(F.innertubeTransportService,p,(h=x)==null?void 0:h.form),0)})};
$1t[UP]=[_.SV];var et_=function(){};
_.E(et_,uc);
et_.prototype.resolveCommand=function(p){var x,F,N,h,c,M,f,K,t;return _.D(function(d){x=_.r(p,iWn);if((F=x)==null?0:F.sectionIdentifier){if(x.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(h=(N=document.getElementsByTagName(x.sectionIdentifier))==null?void 0:N.item(0))h.scrollIntoView({behavior:"smooth"}),(c=yDp(h))&&c.focus({preventScroll:!0});return d.return()}M=document.querySelector("[section-identifier="+x.sectionIdentifier+"]");f=document.querySelector("[section-identifier="+x.referenceSectionIdentifier+
"]");if(!M)return d.return();K=x.verticalScrollOffsetDp?x.verticalScrollOffsetDp:0;f&&(K-=f.offsetTop);window.scrollTo({top:M.offsetTop+K,behavior:"smooth"});(t=yDp(M))&&t.focus({preventScroll:!0})}_.JB(d)})};var lJ=function(){};
_.E(lJ,uc);
lJ.prototype.resolveCommand=function(p){var x,F,N,h,c,M,f;return _.D(function(K){if(K.nextAddress==1){x=_.r(p,Zbj);if(!x||!x.imageBytes||!navigator.clipboard)return K.return();if(x.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.zj(Error("zi")),K.return();_.KM(K,2);N=(F=x)==null?void 0:F.imageBytes;h=N.replace(/-/g,"+").replace(/_/g,"/");c=BTp(h);M={};f=[new ClipboardItem((M[c.type]=c,M))];return _.q(K,navigator.clipboard.write(f),4)}if(K.nextAddress!=2)return _.ub(K,0);
_.v9(K);_.JB(K)})};var cP=function(p,x){this.innertubeTransportService=p;this.JSC$15132_commandHandler=x};
_.E(cP,uc);cP.prototype.resolveCommand=function(p,x){var F=this,N,h,c,M,f;return _.D(function(K){if(K.nextAddress==1)return(N=_.r(p,tak))?_.q(K,_.w5(F.innertubeTransportService,p,(h=x)==null?void 0:h.form),2):K.return();(c=K.yieldResult)&&c.errorMetadata&&N.onFailureCommand&&F.JSC$15132_commandHandler.resolveCommand(N.onFailureCommand);M=c;((f=M)==null?0:f.shareCommand)&&F.JSC$15132_commandHandler.resolveCommand(M.shareCommand,x);_.JB(K)})};
cP[UP]=[_.SV,_.RD];var am=function(){};
_.E(am,uc);am.prototype.resolveCommand=function(){return _.D(function(p){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.JB(p)})};var Mb=function(p){this.JSC$15139_navigationConfirmationService=p};
_.E(Mb,uc);Mb.prototype.resolveCommand=function(){var p=this;return _.D(function(x){p.JSC$15139_navigationConfirmationService.cancelPendingNavigation();_.JB(x)})};
Mb[UP]=[f_];var DH=function(p){this.JSC$15142_screenManager=p};
_.E(DH,uc);DH.prototype.resolveCommand=function(p,x){var F=this,N,h,c,M,f,K,t;return _.D(function(d){h=(N=x.form)==null?void 0:N.event;M=(c=x.form)==null?void 0:c.element;if(!h)throw new _.qE("Event not passed in when resolving command");f=_.a(h.composedPath());for(K=f.next();!K.done;K=f.next())if(t=K.value,t.tagName==="YT-COPY-LINK-RENDERER")return t.copyUrlToClipboard(),M&&_.A0(F.JSC$15142_screenManager,M),d.return();_.JB(d)})};
DH[UP]=[_.Zy];var fI=function(){this.JSC$15146_miniAppClientDataProvider=_.J().resolve(_.mz)};
_.E(fI,uc);fI.prototype.resolveCommand=function(){var p=this,x,F;return _.D(function(N){if(p.JSC$15146_miniAppClientDataProvider.clientData.has("video_id")){var h=p.JSC$15146_miniAppClientDataProvider,c=h.clientData.get("video_id");c&&h.clientData.delete("video_id");x="https://youtube.com/watch?v="+c;F=bg(x);if(F===void 0)throw Error("Ai`"+x);_.L6(window,F)}_.JB(N)})};var KI=function(){};
_.E(KI,uc);KI.prototype.resolveCommand=function(){return _.D(function(p){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.JB(p)})};var qb=function(){};
_.E(qb,uc);qb.prototype.resolveCommand=function(){var p;return _.D(function(x){if(x.nextAddress==1)return _.q(x,_.pqp(window.document.documentElement),2);(p=document.querySelector("mini-app-container-view-model iframe"))&&p.focus();_.JB(x)})};var ZH=function(p){this.JSC$15153_navigationConfirmationService=p};
_.E(ZH,uc);
ZH.prototype.resolveCommand=function(){var p=this;return _.D(function(x){var F=p.JSC$15153_navigationConfirmationService,N=_.J().resolve(_.hA),h;if(((h=F.navigateParams)==null?void 0:h.data)!==void 0){var c;_.MyB(N,F.navigateParams.endpoint,F.navigateParams.data,(c=F.navigateParams.navigationType)!=null?c:1,F.navigateParams.tempData,F.navigateParams.isMiniplayer,void 0,!0);F.navigateParams=void 0;F.customConfirmationCommand=void 0}else F.navigateParams&&(N.navigate(F.navigateParams.endpoint,F.navigateParams.reload,
F.navigateParams.params,F.navigateParams.tempData,F.navigateParams.requestType,F.navigateParams.createScreenConfig,!0),F.navigateParams=void 0,F.customConfirmationCommand=void 0);_.JB(x)})};
ZH[UP]=[f_];var tE=function(){};
_.E(tE,uc);tE.prototype.resolveCommand=function(){return _.D(function(p){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.JB(p)})};var dz=function(p){this.JSC$15158_prefStorage=p};
_.E(dz,uc);dz.prototype.resolveCommand=function(){var p=this,x,F;return _.D(function(N){switch(N.nextAddress){case 1:return _.q(N,p.JSC$15158_prefStorage,2);case 2:return(x=N.yieldResult)?_.q(N,x.set("sfvle",!1),3):N.return();case 3:return _.q(N,x.set("sfvles",!0),4);case 4:F=_.rH(),_.Ez(0,203,!1),_.Ez(0,204,!0),F.save(),_.JB(N)}})};
dz[UP]=[Nb];var vP=function(p){this.JSC$15161_prefStorage=p};
_.E(vP,uc);vP.prototype.resolveCommand=function(){var p=this,x,F;return _.D(function(N){switch(N.nextAddress){case 1:return _.q(N,p.JSC$15161_prefStorage,2);case 2:return(x=N.yieldResult)?_.q(N,x.set("sfvle",!0),3):N.return();case 3:return _.q(N,x.set("sfvles",!0),4);case 4:F=_.rH(),_.Ez(0,203,!0),_.Ez(0,204,!0),F.save(),_.JB(N)}})};
vP[UP]=[Nb];var JE=function(){};
_.E(JE,uc);JE.prototype.resolveCommand=function(p){var x;return _.D(function(F){x=_.r(p,SP6);if(!x||typeof x.key!=="string"||typeof x.value!=="string")return F.return();window.localStorage.setItem(x.key,x.value);_.JB(F)})};var CI=function(p){this.store=p};
_.E(CI,uc);CI.prototype.resolveCommand=function(p){var x=this,F;return _.D(function(N){F=_.r(p,IiB);if(!F||!F.stepId||!F.token)return N.return();x.store.dispatch(IVv({stepId:F.stepId,token:F.token,isSelected:!1}));_.JB(N)})};
CI[UP]=[vG];var SW=function(p,x,F){this.innertubeTransportService=p;this.store=x;this.JSC$15172_screenManager=F};
_.E(SW,uc);
SW.prototype.resolveCommand=function(p){var x=this,F,N,h,c,M,f,K,t,d,v,C,X,Q,b,A,Y,O,Fw,R,ld,pp,Kp,sM;return _.D(function(np){F=_.r(p,zml);if(!F||(N=F.stepIds)==null||!N.length)return np.return();h=x.store.getState().talkToRecs;c=[];M=[];f=_.a(F.stepIds);for(K=f.next();!K.done;K=f.next())for(t=K.value,d=void 0,(v=(d=h.stepStates[t])==null?void 0:d.userQuery)&&M.push({userQuery:v.userQuery,userQueryToken:v.token}),C=void 0,X=(C=h.stepStates[t])==null?void 0:C.selectionStates,Q=_.a(Object.entries(X)),b=
Q.next();!b.done;b=Q.next())A=b.value,Y=_.a(A),O=Y.next().value,Fw=Y.next().value,R=O,ld=Fw,ld.isSelected&&c.push(R);pp={selectedChipTokens:c,userQueries:M,submittedStepIds:F.stepIds};Kp={browseTalk2recsFormData:pp};F.browseEndpoint?(sM=p,_.Cr(sM,_.Du,F.browseEndpoint)):F.command&&(sM=F.command);return sM?_.q(np,_.w5(x.innertubeTransportService,sM,{formData:Kp,disableCache:!0}).then(function(Jz){(Jz==null?0:Jz.trackingParams)&&x.JSC$15172_screenManager.graftServerVe(Jz==null?void 0:Jz.trackingParams)}),
0):np.return()})};
SW[UP]=[_.SV,vG,_.Zy];var rz=function(p){this.store=p};
_.E(rz,uc);rz.prototype.resolveCommand=function(p){var x=this,F;return _.D(function(N){F=_.r(p,iOZ);if(!F||!F.stepId||!F.token)return N.return();x.store.dispatch(IVv({stepId:F.stepId,token:F.token,isSelected:!0}));_.JB(N)})};
rz[UP]=[vG];var EI=function(p){this.store=p};
_.E(EI,uc);EI.prototype.resolveCommand=function(p,x){var F=this,N,h,c,M,f;return _.D(function(K){N=_.r(p,sXv);if(!N||!N.stepId||!N.userQueryToken)return K.return();f=(M=(h=x)==null?void 0:(c=h.form)==null?void 0:c.userQuery)!=null?M:"";F.store.dispatch(_.F4({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:N.stepId,userQueryToken:N.userQueryToken,userQuery:f}}));_.JB(K)})};
EI[UP]=[vG];_.pSm=new _.iE("TIMELY_ACTIONS_CONTROLLER_TOKEN");var Xi=function(p){this.controller=p};
_.E(Xi,uc);Xi.prototype.resolveCommand=function(p){var x=this,F,N,h,c;return _.D(function(M){F=_.r(p,R_6);if(!F)return M.return();N=F;h=N.id;c=N.isVisible;if(h===void 0||c===void 0)return M.return();var f;(f=x.controller.timelyActionsMap.get(h))==null||f(h,c);_.JB(M)})};
Xi[UP]=[_.pSm];var xcX=function(){this.timelyActionsMap=new Map};var gz=function(p){this.JSC$15199_commandHandler=p};
_.E(gz,uc);gz.prototype.resolveCommand=function(p){var x=this,F,N,h,c,M;return _.D(function(f){F=_.r(p,_.psl);if(!F)return f.return();c=(N=F.item)==null?void 0:(h=N.notificationTextRenderer)==null?void 0:h.successResponseText;if(!c)return f.return();M=_.kO(c);x.JSC$15199_commandHandler.resolveCommand(M);_.JB(f)})};
gz[UP]=[_.RD];var QV=function(p,x){this.innertubeTransportService=p;this.JSC$15204_playerApiPromise=x};
_.E(QV,uc);
QV.prototype.resolveCommand=function(p){var x=this,F,N,h,c,M,f,K,t,d;return _.D(function(v){if(v.nextAddress==1)return _.q(v,x.JSC$15204_playerApiPromise,2);F=v.yieldResult;N=F.getOption("captions","track");h=Object.assign({},_.r(p,_.OFk));(M=(c=F.getVideoData())==null?void 0:c.video_id)?h.externalVideoId=M:_.uO(Error("Bi"));if((f=N)==null?0:f.languageCode)h.languageCode=N.languageCode;if((K=N)==null?0:K.kind)h.kind=N.kind;if((t=N)==null?0:t.name)h.name=N.name;d=Object.assign({},p,{getTranscriptEndpoint:h});return _.q(v,
_.w5(x.innertubeTransportService,d),0)})};
QV[UP]=[_.SV,_.Ui];var zC=function(){};
_.E(zC,uc);zC.prototype.resolveCommand=function(p){var x,F,N,h,c,M,f,K;return _.D(function(t){x=_.r(p,ykl);if((F=x)==null||!F.paramKeyValuePairs)return t.return();N=window.location.href;h=_.a(x.paramKeyValuePairs);for(c=h.next();!c.done;c=h.next())M=c.value,M.key&&M.value&&(f={},N=_.Ww(N,(f[M.key]=M.value,f)));K=_.J().resolve(_.VfC);K.replaceUrl(N);_.JB(t)})};var sI=function(p,x){this.JSC$15211_commandHandler=p;this.innertubeTransportService=x};
_.E(sI,uc);
sI.prototype.resolveCommand=function(p,x){var F=this,N,h,c,M,f,K,t,d,v,C,X,Q,b,A,Y,O,Fw;return _.D(function(R){switch(R.nextAddress){case 1:return(c=(N=x)==null?void 0:(h=N.form)==null?void 0:h.element)&&_.Tu(c),M=_.rH().get("hl"),f="",_.KM(R,2),_.q(R,qcp(M),4);case 4:f=R.yieldResult;_.ub(R,3);break;case 2:return _.v9(R),c&&_.kq(c),_.zj(Error("Di"),"ERROR"),R.return();case 3:K=_.r(p,NmZ);if(!K)return c&&_.kq(c),R.return();(v=(t=K.commerceActionConfig)==null?void 0:(d=t.commandLifeCycleConfig)==null?
void 0:d.onStartCommand)&&F.JSC$15211_commandHandler.resolveCommand(v);return _.q(R,_.w5(F.innertubeTransportService,p,{client_data:{paymentsClientToken:{token:f}}}),5);case 5:(C=R.yieldResult)?(c&&_.kq(c),((A=C)==null?0:A.command)&&F.JSC$15211_commandHandler.resolveCommand(C.command),(Fw=(Y=K.commerceActionConfig)==null?void 0:(O=Y.commandLifeCycleConfig)==null?void 0:O.onSuccessCommand)&&F.JSC$15211_commandHandler.resolveCommand(Fw)):(c&&_.kq(c),_.zj(Error("Ei")),(b=(X=K.commerceActionConfig)==
null?void 0:(Q=X.commandLifeCycleConfig)==null?void 0:Q.onFailureCommand)&&F.JSC$15211_commandHandler.resolveCommand(b)),_.JB(R)}})};
sI[UP]=[_.RD,_.SV];var nI=function(p,x,F){this.store=p;this.JSC$15227_commandHandler=x;this.innertubeTransportService=F};
_.E(nI,uc);
nI.prototype.resolveCommand=function(p,x){var F=this,N,h,c,M,f,K,t,d,v;return _.D(function(C){N=_.r(p,h0b);h=N.googlePaymentPayload;N.onStartCommand&&F.JSC$15227_commandHandler.resolveCommand(N.onStartCommand);c=h.encryptedPurchaseParams;M=h.ypcLogWalletAnalyticDataEndpoint;f=N.serializedTransactionFlowLoggingParams;K=h.serializedPaymentsClientParams;t=N.ypcCujContext;v=dAw(F.innertubeTransportService,(d=x)==null?void 0:d.form,c,M,f,K,t);return C.return(v.then(function(X){Zvw(x==null?void 0:x.form,
!1);var Q=F.store,b=F.JSC$15227_commandHandler,A=X.integratorData;A==null||A===""||X.error!=null?(String(X.error)==="-1"&&N.onDismissCommand?b.resolveCommand(N.onDismissCommand):String(X.error)!=="-1"&&N.onFailureCommand&&b.resolveCommand(N.onFailureCommand),String(X.error)!=="-1"&&String(X.error)!=="132"&&_.zj(Error("Fi"),"ERROR")):(N.googlePaymentEntityKey&&Q.dispatch(_.KV("commerceAcquisitionClientPayloadEntity",N.googlePaymentEntityKey,{key:N.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:A,
fundsGuaranteeCallbackClientData:X.integratorClientCallbackData}}})),N.onSuccessCommand&&b.resolveCommand(N.onSuccessCommand));_.qt()},function(X){Zvw(x==null?void 0:x.form,!1);
_.zj(X,"ERROR");N.onFailureCommand&&F.JSC$15227_commandHandler.resolveCommand(N.onFailureCommand)}))})};
nI[UP]=[DX,_.RD,_.SV];var yV=function(p,x){this.JSC$15231_commandHandler=p;this.purchaseManager=x};
_.E(yV,uc);
yV.prototype.resolveCommand=function(p){var x=this,F,N,h,c,M,f,K,t,d;return _.D(function(v){F=_.r(p,l_b);((N=F)==null?0:(h=N.commandLifeCycleConfig)==null?0:h.onStartCommand)&&x.JSC$15231_commandHandler.resolveCommand(F.commandLifeCycleConfig.onStartCommand);if(!((c=F)==null?0:(M=c.googlePaymentPurchaseManagerPayload)==null?0:M.securePayloadBytes))return _.zj(Error("Gi"),"ERROR"),v.return();f=L9B(_.Fj(F.googlePaymentPurchaseManagerPayload.securePayloadBytes));K=_.rH().get("hl");t=_.GO();D18(f.serialize(),
K,function(C){t.resolve(C)},function(C){t.reject(C)},t.resolve);
d=t.promise;return v.return(d.then(function(C){if(C)if(C==null?0:C.errorCode){_.zj(Error("Hi`"+C.errorCode),"ERROR");var X,Q;((X=F)==null?0:(Q=X.commandLifeCycleConfig)==null?0:Q.onFailureCommand)&&x.JSC$15231_commandHandler.resolveCommand(F.commandLifeCycleConfig.onFailureCommand)}else if(C==null?0:C.isCancelled){var b,A;((b=F)==null?0:(A=b.commandLifeCycleConfig)==null?0:A.onCancelCommand)&&x.JSC$15231_commandHandler.resolveCommand(F.commandLifeCycleConfig.onCancelCommand)}else{var Y,O;((Y=F)==
null?0:(O=Y.commandLifeCycleConfig)==null?0:O.onSuccessCommand)&&x.JSC$15231_commandHandler.resolveCommand(F.commandLifeCycleConfig.onSuccessCommand)}},function(C){_.zj(C,"ERROR");
var X,Q;((X=F)==null?0:(Q=X.commandLifeCycleConfig)==null?0:Q.onFailureCommand)&&x.JSC$15231_commandHandler.resolveCommand(F.commandLifeCycleConfig.onFailureCommand)}))})};
yV[UP]=[_.RD,fhH];var FX_=function(p,x){this.JSC$15239_commandHandler=p;this.commandAllowlistOverride=x;var F;this.commandAllowlist=(F=this.commandAllowlistOverride)!=null?F:Vm};
FX_.prototype.handleResponse=function(p,x,F){var N,h=x==null?void 0:(N=x.config)==null?void 0:N.command;if(!h||this.commandAllowlist.some(function(c){return!!_.r(h,c)})){x=void 0;
F!==void 0&&(x={form:{element:F}});p.onResponseReceivedCommand&&this.JSC$15239_commandHandler.resolveCommand(p.onResponseReceivedCommand,x);p.onResponseReceivedAction&&this.JSC$15239_commandHandler.resolveCommand(p.onResponseReceivedAction,x);p.onResponseReceivedEndpoint&&this.JSC$15239_commandHandler.resolveCommand(p.onResponseReceivedEndpoint,x);p.command&&this.JSC$15239_commandHandler.resolveCommand(p.command,x);if(p.onResponseReceivedCommands)for(F=_.a(p.onResponseReceivedCommands),N=F.next();!N.done;N=
F.next())this.JSC$15239_commandHandler.resolveCommand(N.value,x);if(p.onResponseReceivedActions)for(F=_.a(p.onResponseReceivedActions),N=F.next();!N.done;N=F.next())this.JSC$15239_commandHandler.resolveCommand(N.value,x);if(p.onResponseReceivedEndpoints)for(F=_.a(p.onResponseReceivedEndpoints),N=F.next();!N.done;N=F.next())this.JSC$15239_commandHandler.resolveCommand(N.value,x);if(p.actions)for(p=_.a(p.actions),F=p.next();!F.done;F=p.next())this.JSC$15239_commandHandler.resolveCommand(F.value,x)}};
FX_[UP]=[_.RD,_.Bw(rJB)];var Nv8=new _.iE("INNERTUBE_TOKEN_SERVICE");var hWX=new _.iE("SCHEDULER_TOKEN");var l0c=function(p){this.scheduler=p;p={};this.tokenMap=(p.app={},p.user={},p)};
l0c.prototype.handleResponse=function(p,x){if(!x)throw Error("Ii");var F;if(p=(F=p.responseContext)==null?void 0:F.innertubeTokenJar){if(p.appTokens){var N,h,c;F=(N=x.innerTubeRequest.context)==null?void 0:(h=N.request)==null?void 0:(c=h.innertubeTokenJar)==null?void 0:c.appTokens;cmX(this,p.appTokens,this.tokenMap.app,F)}if(p.userTokens){var M,f,K;x=(M=x.innerTubeRequest.context)==null?void 0:(f=M.request)==null?void 0:(K=f.innertubeTokenJar)==null?void 0:K.userTokens;cmX(this,p.userTokens,this.tokenMap.user,
x)}}};
l0c.prototype.processContext=function(p){p.request||(p.request={});var x=Object.keys(this.tokenMap.app).length,F=Object.keys(this.tokenMap.user).length;if(x||F)p.request.innertubeTokenJar={},x&&(p.request.innertubeTokenJar.appTokens=[].concat(_.se(Object.values(this.tokenMap.app).flat()))),F&&(p.request.innertubeTokenJar.userTokens=[].concat(_.se(Object.values(this.tokenMap.user).flat())))};
var cmX=function(p,x,F,N){x=_.a(x);for(var h=x.next(),c={};!h.done;c={token$jscomp$137:void 0},h=x.next()){c.token$jscomp$137=h.value;if(c.token$jscomp$137.type===void 0)throw new _.qE("InnerTube token has no type",c.token$jscomp$137);if(c.token$jscomp$137.clearTokens)F[c.token$jscomp$137.type]=[];else if(c.token$jscomp$137.value!==void 0){F[c.token$jscomp$137.type]||(F[c.token$jscomp$137.type]=[]);if(N!==void 0&&N.length){h=_.a(N);for(var M=h.next(),f={};!M.done;f={requestToken:void 0},M=h.next())f.requestToken=
M.value,M=F[c.token$jscomp$137.type].findIndex(function(K){return function(t){return t===K.requestToken||(0,_.Q5.equals)(t,K.requestToken)}}(f)),M>-1&&F[c.token$jscomp$137.type].splice(M,1)}F[c.token$jscomp$137.type].push(c.token$jscomp$137);
c.token$jscomp$137.maxAgeSeconds&&Number(c.token$jscomp$137.maxAgeSeconds)>0&&p.scheduler.addLowPriorityJob(function(K){return function(){var t=F[K.token$jscomp$137.type].indexOf(K.token$jscomp$137);t>-1&&F[K.token$jscomp$137.type].splice(t,1)}}(c),Number(c.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.qE("InnerTube token has no value",c.token$jscomp$137);
}};
l0c[UP]=[hWX];var a0k=new _.iE("LOCAL_INNERTUBE_ROUTER_TOKEN"),MeH=new _.iE("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var bJ=function(p){this.serviceMap=p};
bJ.prototype.shouldPreferLocalResponse=function(p,x){return(p=Dc8(this,p))?p.shouldPreferLocalResponse(x):!1};
bJ.prototype.localInnertubeResponse=function(p,x){var F=this,N;return _.D(function(h){return(N=Dc8(F,p))?h.return(N.localInnertubeResponse(x)):h.return(Promise.reject(Error("Ji")))})};
bJ.prototype.canProvideFallbackResponse=function(p,x){return(p=Dc8(this,p))?p.canProvideFallbackResponse(x):!1};
bJ.prototype.localFallbackInnertubeResponse=function(p,x){var F=this,N;return _.D(function(h){return(N=Dc8(F,p))?h.return(N.localFallbackInnertubeResponse(x)):h.return(Promise.reject(Error("Ji")))})};
var Dc8=function(p,x){x=_.F_(x);return x?(p=p.serviceMap[x])?p:null:null};
bJ[UP]=[MeH];var XN=function(){};
XN.prototype.shouldPreferLocalResponse=function(){return!1};
XN.prototype.localInnertubeResponse=function(){return _.D(function(p){return p.return(Promise.reject(Error("Ki")))})};
XN.prototype.canProvideFallbackResponse=function(){return!0};
XN.prototype.localFallbackInnertubeResponse=function(){var p,x,F;return _.D(function(N){p=gV("CLOSE_POPUP");x={openPopupAction:Jym()};F={actions:[p,x]};return N.return(F)})};var OOp=function(p,x){this.JSC$15289_upliftPromise=p;this.store=x};
_.l=OOp.prototype;_.l.shouldPreferLocalResponse=function(p){var x=p.videoId,F;if(F=x)F=moJ(this.store.getState().entities,p.videoId);return F&&oap(this.store.getState().entities,x)?Scp(this.store.getState().entities,p.playlistId):!1};
_.l.localInnertubeResponse=function(p){var x=this,F;return _.D(function(N){return(F=x.getPlayerResponse(p))?N.return(Promise.resolve(F)):N.return(Promise.reject(Error("Li")))})};
_.l.canProvideFallbackResponse=function(p){return!!p.videoId};
_.l.localFallbackInnertubeResponse=function(p){var x=this,F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,x.JSC$15289_upliftPromise,2);F=x.getPlayerResponse(p);var h;F?h=N.return(Promise.resolve(F)):h=EJ(x.store.getState().entities,p.videoId)?N.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.ez(_.JG("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:XXw()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
N.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.ez(_.JG("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:E8B()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return h})};
_.l.getPlayerResponse=function(p){return qm6(this.store.getState().entities,p.videoId)};var Eg=function(p,x){this.localPlayerService=p;this.localWatchNextService=x};
Eg.prototype.shouldPreferLocalResponse=function(p){var x=p.playerRequest;p=p.watchNextRequest;return!!(x&&this.localPlayerService.shouldPreferLocalResponse(x)&&p&&this.localWatchNextService.shouldPreferLocalResponse(p))};
Eg.prototype.localInnertubeResponse=function(p){var x=this,F,N,h,c;return _.D(function(M){if(M.nextAddress==1){F=p.playerRequest;N=p.watchNextRequest;if(!F||!N)throw new _.qE("Missing streaming request",p);return _.q(M,x.localPlayerService.localInnertubeResponse(F),2)}if(M.nextAddress!=3)return h=M.yieldResult,_.q(M,x.localWatchNextService.localInnertubeResponse(N),3);c=M.yieldResult;return M.return({playerResponse:h,watchNextResponse:c})})};
Eg.prototype.canProvideFallbackResponse=function(p){var x=p.playerRequest;p=p.watchNextRequest;return!!(x&&this.localPlayerService.canProvideFallbackResponse(x)&&p&&this.localWatchNextService.canProvideFallbackResponse(p))};
Eg.prototype.localFallbackInnertubeResponse=function(p){var x=this,F,N,h,c;return _.D(function(M){if(M.nextAddress==1)return F=p.playerRequest,N=p.watchNextRequest,F&&N?_.q(M,x.localPlayerService.localFallbackInnertubeResponse(F),2):M.return(Promise.reject(new _.qE("Missing streaming request",p)));if(M.nextAddress!=3)return h=M.yieldResult,_.q(M,x.localWatchNextService.localFallbackInnertubeResponse(N),3);c=M.yieldResult;return M.return({playerResponse:h,watchNextResponse:c})})};var CP=function(p){this.JSC$15299_persistentStorePromiseAccessor=p};
CP.prototype.shouldPreferLocalResponse=function(){return!1};
CP.prototype.localInnertubeResponse=function(){return _.D(function(p){return p.return(Promise.reject(Error("Mi")))})};
CP.prototype.canProvideFallbackResponse=function(){return!0};
CP.prototype.localFallbackInnertubeResponse=function(){var p=this,x,F;return _.D(function(N){return N.nextAddress==1?_.q(N,p.JSC$15299_persistentStorePromiseAccessor(),2):N.nextAddress!=3?(x=N.yieldResult)?_.q(N,x.get("service:guide:fallback"),3):N.return(Promise.reject(Error("Ni"))):(F=N.yieldResult)&&_.ai(F)?N.return(ryJ(_.ai(F))):N.return(Promise.reject(Error("Oi")))})};var gY=function(){};
gY.prototype.shouldPreferLocalResponse=function(){return!1};
gY.prototype.localInnertubeResponse=function(){return _.D(function(p){return p.return(Promise.reject(Error("Pi")))})};
gY.prototype.canProvideFallbackResponse=function(){return!0};
gY.prototype.localFallbackInnertubeResponse=function(){var p,x,F;return _.D(function(N){p=gV("CLOSE_POPUP");x={openPopupAction:Jym()};F={actions:[p,x]};return N.return(F)})};var Jf=function(){this.urlMap=f08;this.fallbackCommand=_.Kb};
Jf.prototype.shouldPreferLocalResponse=function(p){return(p=p.url)?!!KXH(this,p):!1};
Jf.prototype.localInnertubeResponse=function(p){var x=this,F;return _.D(function(N){return(F=p.url)?N.return(qya(p,KXH(x,F))):N.return(Promise.reject(Error("Qi")))})};
Jf.prototype.canProvideFallbackResponse=function(){return!0};
Jf.prototype.localFallbackInnertubeResponse=function(p){var x=this,F,N,h,c,M,f,K;return _.D(function(t){F=p.url;if(!F)return t.return(qya(p,x.fallbackCommand));if(N=KXH(x,F))return t.return(qya(p,N));h=void 0;c=_.F_(F);c==="/watch"&&(M=_.YC(F,"v"))&&(K=(f=_.YC(F,"list"))!=null?f:void 0,h=_.$v(M,K));h||(h=x.fallbackCommand);return t.return(qya(p,h))})};
var KXH=function(p,x){if(x)return p.urlMap[_.Of(x)]},qya=function(p,x){x&&p.parentTrackingParams&&(x.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:p.parentTrackingParams}},x.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:x})};var SZ=function(p,x,F){this.JSC$15309_upliftPromise=p;this.store=x;this.JSC$15309_persistentStorePromiseAccessor=F};
SZ.prototype.shouldPreferLocalResponse=function(){return!1};
SZ.prototype.localInnertubeResponse=function(){return _.D(function(p){return p.return(Promise.reject(Error("Ri")))})};
SZ.prototype.canProvideFallbackResponse=function(){return!0};
SZ.prototype.localFallbackInnertubeResponse=function(){var p=this;return _.D(function(x){return x.return(ZHX(p))})};
var ZHX=function(p){var x,F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,c$(p.JSC$15309_upliftPromise,p.store),2);x=N.yieldResult;F={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[CYz(x)]}}}};return N.return(teH(p,F))})},teH=function(p,x){var F,N;
return _.D(function(h){if(h.nextAddress==1)return _.q(h,p.JSC$15309_persistentStorePromiseAccessor(),2);if(h.nextAddress!=3)return F=h.yieldResult,_.q(h,Mg(F),3);N=h.yieldResult;return h.return({responseContext:{},contents:x,topbar:N})})};var dY=function(p,x,F){this.JSC$15316_upliftPromise=p;this.store=x;this.JSC$15316_persistentStorePromiseAccessor=F};
dY.prototype.shouldPreferLocalResponse=function(p){var x=p.videoId;return x&&moJ(this.store.getState().entities,x)&&oap(this.store.getState().entities,x)?Scp(this.store.getState().entities,p.playlistId):!1};
dY.prototype.localInnertubeResponse=function(p){var x=this,F,N;return _.D(function(h){if(h.nextAddress==1)return(F=p.videoId)?_.q(h,x.JSC$15316_upliftPromise,2):h.return(Promise.reject(Error("Si")));if(h.nextAddress!=3)return _.q(h,dc8(x,p,F),3);N=h.yieldResult;return h.return(vCm(x,N,F))})};
dY.prototype.canProvideFallbackResponse=function(p){return p.videoId?!0:!1};
dY.prototype.localFallbackInnertubeResponse=function(p){var x=this,F,N,h,c;return _.D(function(M){switch(M.nextAddress){case 1:return(F=p.videoId)?_.q(M,x.JSC$15316_upliftPromise,2):M.return(Promise.reject(Error("Si")));case 2:return _.q(M,dc8(x,p,F),3);case 3:N=M.yieldResult;if(EJ(x.store.getState().entities,F)){M.jumpTo(4);break}return _.q(M,c$(x.JSC$15316_upliftPromise,x.store),5);case 5:return h=M.yieldResult,M.return(Jmm(N,h));case 4:return moJ(x.store.getState().entities,F)&&oap(x.store.getState().entities,
F)?M.return(vCm(x,N,F)):(c={title:_.ez(_.JG("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:XXw()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},M.return(Jmm(N,c)))}})};
var dc8=function(p,x,F){var N,h,c,M,f;return _.D(function(K){if(K.nextAddress==1)return N=x.playlistId,h=_.$v(F,N),_.q(K,p.JSC$15316_persistentStorePromiseAccessor(),2);if(K.nextAddress!=3)return c=K.yieldResult,_.q(K,Mg(c),3);M=K.yieldResult;f={responseContext:{},currentVideoEndpoint:h,topbar:M};return K.return(f)})},vCm=function(p,x,F){if(p=EJ(p.store.getState().entities,F)){var N;
F=p.videoEntity;var h,c={title:p1(F.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.xO((N=F.localizedStrings)==null?void 0:N.viewCount),viewCount:_.xO((h=F.localizedStrings)==null?void 0:h.viewCount)}}};F.publishedTimestampMillis&&(c.dateText=_.xO(p6E(new Date(Number(F.publishedTimestampMillis)))));N={videoPrimaryInfoRenderer:c};h=p.videoEntity;p=p.channelEntity;p={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:p1(_.JG("SHOW_MORE",void 0,"Show more")),
showLessText:p1(_.JG("SHOW_LESS",void 0,"Show less")),description:h.formattedDescription,owner:{videoOwnerRenderer:{title:p1(p.title),thumbnail:p.avatar}}}};x.contents={twoColumnWatchNextResults:{results:{results:{contents:[N,p]}}}}}return x},Jmm=function(p,x){p.contents={singleColumnWatchNextResults:{results:{results:{contents:[CYz(x)]}}}};
return p};var rY=function(p,x,F){this.JSC$15322_upliftPromise=p;this.store=x;this.JSC$15322_persistentStorePromiseAccessor=F};
rY.prototype.shouldPreferLocalResponse=function(){return!1};
rY.prototype.localInnertubeResponse=function(){return _.D(function(p){return p.return(Promise.reject(Error("Ti")))})};
rY.prototype.canProvideFallbackResponse=function(){return!0};
rY.prototype.localFallbackInnertubeResponse=function(){var p=this,x,F,N,h;return _.D(function(c){switch(c.nextAddress){case 1:return _.q(c,p.JSC$15322_persistentStorePromiseAccessor(),2);case 2:return x=c.yieldResult,_.q(c,Mg(x),3);case 3:return F=c.yieldResult,N={responseContext:{},topbar:F},_.q(c,p.JSC$15322_upliftPromise,4);case 4:return _.q(c,c$(p.JSC$15322_upliftPromise,p.store),5);case 5:return h=c.yieldResult,N.watchStatus={backgroundPromoRenderer:h},c.return(N)}})};var CIH=new _.iE("ENDPOINT_MAP");var SyD=function(){var p=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return p.sequenceMap}}},M7Z=function(p,x,F){var N,h=(N=x.config)==null?void 0:N.sequenceStrategy;
if(!h)return F();p.sequenceMap.has(h.sequenceKey)||p.sequenceMap.set(h.sequenceKey,[]);p=p.sequenceMap.get(h.sequenceKey);switch(h.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return rm8(p,x,F);case "REQUEST_SEQUENCE_TYPE_REPLACE":return ECm(p,x,F);default:throw new _.qE("Request could not be sequenced",x);}},rm8=function(p,x,F){var N,h,c;
return _.D(function(M){p.length>0?(h=p[p.length-1],N=h.responsePromise.then(function(){return F()})):N=F();
c={request:x,responsePromise:N};p.push(c);XSc(p,c);return M.return(c.responsePromise)})},ECm=function(p,x,F){F=F();
if(p.length>0)for(var N=_.a(p),h=N.next();!h.done;h=N.next())h.value.responsePromise=F;var c={request:x,responsePromise:F};p.push(c);XSc(p,c);return Promise.resolve().then(function(){return p.indexOf(c)>0?c.responsePromise.then(function(M){return Object.assign({},M,{sequenceMetaData:{skipProcessing:!0}})}):c.responsePromise})},XSc=function(p,x){x.responsePromise.then(function(){var F=p.indexOf(x);
F>-1&&p.splice(F,1)})};var gCe=new _.iE("REQUEST_SEQUENCING");var AE=function(){};
_.E(AE,zH);AE.prototype.getApiPaths=function(){return[]};
AE.prototype.getExtension=function(p){return _.r(p,BMb)};
AE.prototype.JSC$11755_buildRequest=function(p,x){p.recaptchaToken=x.recaptchaToken};
AE.prototype.getApiUrl=function(){return"/das_captcha"};var uJ=function(){};
_.E(uJ,zH);uJ.prototype.getApiPaths=function(){return F_D};
uJ.prototype.getExtension=function(p){return _.r(p,rh6)};
uJ.prototype.JSC$11755_buildRequest=function(p,x,F){F=F===void 0?{}:F;x.createBackstagePostParams&&(p.createBackstagePostParams=x.createBackstagePostParams);F.comment_text&&(p.commentText=F.comment_text);if(F.attached_video_id)p.videoAttachment={videoId:F.attached_video_id};else if(F.image_poll_options)p.pollAttachmentData={options:F.image_poll_options};else if(F.poll_options)p.pollAttachment={choices:F.poll_options};else if(F.quiz_options)p.quizAttachmentData={options:F.quiz_options};else if(F.image_blob_id)p.imageAttachment=
{encryptedBlobId:F.image_blob_id},F.source_video_id&&(p.imageAttachment.sourceExternalVideoId=F.source_video_id),F.image_preview_coordinates&&(p.imageAttachment.previewCoordinates=JSON.parse(F.image_preview_coordinates));else if(F.images_data)p.imagesAttachment={imagesData:F.images_data};else if(F.clip_external_video_id!==void 0||F.clip_offset_ms!==void 0||F.clip_duration_ms!==void 0){var N,h,c,M,f;p.clipAttachment={externalVideoId:(c=F.clip_external_video_id)!=null?c:"",offsetMs:(M=(N=F.clip_offset_ms)==
null?void 0:N.toString())!=null?M:"",durationMs:(f=(h=F.clip_duration_ms)==null?void 0:h.toString())!=null?f:""}}else F.shared_post_id&&(p.sharedPostAttachment={postId:F.shared_post_id});F.tagged_video_id&&(p.postCreationData={taggedVideoId:F.tagged_video_id});F.access_restrictions&&(typeof F.access_restrictions==="number"&&(x=F.access_restrictions,p.accessRestrictions={restriction:x!==1&&x===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof F.access_restrictions==="string"&&
(p.accessRestrictionsParams=F.access_restrictions));F.scheduled_publish_time_sec&&(p.scheduledPublishTimeSec=F.scheduled_publish_time_sec.toString())};var YK=function(){};
_.E(YK,zH);YK.prototype.getApiPaths=function(){return DYl};
YK.prototype.getExtension=function(p){return _.r(p,rSj)};
YK.prototype.JSC$11755_buildRequest=function(p,x,F){F=F===void 0?{}:F;x.decorateMessageParams&&(p.params=x.decorateMessageParams);F.text&&(p.text=F.text)};var wz=function(){};
_.E(wz,zH);wz.prototype.getApiPaths=function(){return bXZ};
wz.prototype.getExtension=function(p){return _.r(p,Ejb)};
wz.prototype.JSC$11755_buildRequest=function(p,x,F){F=F===void 0?{}:F;F.video_id&&(p.videoId=F.video_id)};var GC=function(){};
_.E(GC,zH);GC.prototype.getApiPaths=function(){return VgI};
GC.prototype.getExtension=function(p){return _.r(p,_.dH)};
GC.prototype.JSC$11755_buildRequest=function(p,x,F){F.suggestions_query&&(p.input=F.suggestions_query)};var VV=function(){};
_.E(VV,zH);VV.prototype.getApiPaths=function(){return t1D};
VV.prototype.getExtension=function(p){return _.r(p,XsI)};
VV.prototype.JSC$11755_buildRequest=function(p,x,F){F.comment_text!==void 0&&(p.commentText=F.comment_text);F.scheduled_publish_time_sec&&(p.scheduledPublishTimeSec=F.scheduled_publish_time_sec.toString());p.updateBackstagePostParams=x.updateBackstagePostParams};var WP=function(){};
_.E(WP,zH);WP.prototype.getApiPaths=function(){return pP};
WP.prototype.getExtension=function(p){return _.r(p,_.zO)};
WP.prototype.JSC$11755_buildRequest=function(p,x,F){F.formData&&(p.formData=F.formData);x.token?p.continuation=x.token:x.continuationTokenKey&&(F=_.Bi().getState(),x=_.M4(F.entities,"continuationTokenEntity",x.continuationTokenKey))&&(p.continuation=String(x.continuationToken))};
var QGH=function(){};
_.E(QGH,zH);_.l=QGH.prototype;_.l.getApiPaths=function(){return pP};
_.l.getExtension=function(p){return _.r(p,_.Du)};
_.l.isNavigationCommand=function(){return!0};
_.l.JSC$11762_getStoreKey=function(p){if((p=this.getExtension(p))&&p.browseId){var x={browseId:p.browseId};p.browseEndpointContextSupportedConfigs&&(x.browseEndpointContextSupportedConfigs=JSON.stringify(p.browseEndpointContextSupportedConfigs));p.params&&(x.params=p.params);p.query&&(x.query=p.query);return _.TZ("browse",x)}};
_.l.JSC$11755_buildRequest=function(p,x,F){x.browseId&&(p.browseId=x.browseId);x.params&&(p.params=x.params);x.query&&(p.query=x.query);F.formData?p.formData=F.formData:x.formData&&(p.formData=x.formData);x.browseId==="FEsubscriptions"&&_.rH().getFlag(155)&&(p.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");x.browseId==="SPaccount_playback"&&(F=_.rH(),p.formData||(p.formData={}),p.formData.accountSettingsFormData={flagCaptionsDefaultOff:F.getFlag(65),flagAutoCaptionsDefaultOn:F.getFlag(66),
flagDisableInlinePreview:F.getFlag(186),flagAudioDescriptionDefaultOn:F.getFlag(198)});if(x.browseId==="FEwhat_to_watch"){F=_.rH();var N=F.getFlag(196);F.getFlag(197)&&(p.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:N}}})}x.browseId==="FEwhat_to_watch"&&(x=_.rH().getFlag(186),p.inlineSettingStatus=x?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.l.getRequestConfig=function(p,x){x=x===void 0?{}:x;var F={};if(p=this.JSC$11762_getStoreKey(p,x))F.storeStrategy={storeKey:p,disableCache:x.disableCache};_.S("web_log_browse_ticks_ks")||(F.requestTick="br_s",F.responseTick="br_r");return F};var HP=function(){};
_.E(HP,zH);HP.prototype.getApiPaths=function(){return iJk};
HP.prototype.getExtension=function(p){return _.r(p,HFb)};
HP.prototype.JSC$11755_buildRequest=function(p,x,F){p.legacyYoutubeChannelUsername=F.legacyYouTubeChannelUsername||"";p.legacyYoutubeChannelPassword=F.legacyYouTubeChannelPassword||""};var mk=function(){};
_.E(mk,zH);mk.prototype.getApiPaths=function(){return h1B};
mk.prototype.getExtension=function(p){return _.r(p,AhJ)};
mk.prototype.JSC$11755_buildRequest=function(p,x,F){F.recaptcha_response_token&&(p.recaptchaResponseToken=F.recaptcha_response_token);F.channel_id&&(p.channelId=F.channel_id)};var om=function(){};
_.E(om,zH);om.prototype.getApiPaths=function(){return dW6};
om.prototype.getExtension=function(p){return _.r(p,WZ6)};
om.prototype.JSC$11755_buildRequest=function(p,x,F){x.externalChannelId&&(p.externalChannelId=x.externalChannelId);F.handle&&(p.handleUpdate={handle:F.handle},x.handleEditSource&&(p.handleUpdate.handleEditSource=x.handleEditSource))};var OI=function(){};
_.E(OI,zH);OI.prototype.getApiPaths=function(){return S7J};
OI.prototype.getExtension=function(p){return _.r(p,IqJ)};
OI.prototype.JSC$11755_buildRequest=function(p,x,F){x.request&&(p.channelId=x.request.channelId);var N;if(F==null?0:(N=F.uploadDefaults)==null?0:N.emojiReactionSet)p.uploadDefaultsRequest||(p.uploadDefaultsRequest={}),p.uploadDefaultsRequest.emojiReactionSet=F.uploadDefaults.emojiReactionSet};var jW=function(){};
_.E(jW,zH);jW.prototype.getApiPaths=function(){return XLn};
jW.prototype.getExtension=function(p){return _.r(p,uqZ)};
jW.prototype.JSC$11755_buildRequest=function(p,x,F){x.externalChannelId&&(p.externalChannelId=x.externalChannelId);x.channelHandleEntityKey&&(p.channelHandleEntityKey=x.channelHandleEntityKey);x.handleEditSource&&(p.handleEditSource=x.handleEditSource);F.handle?p.handle=F.handle:F.name&&(p.name=F.name)};var LI=function(){};
_.E(LI,zH);LI.prototype.getApiPaths=function(){return e0k};
LI.prototype.getExtension=function(p){return _.r(p,Ya)};
LI.prototype.JSC$11755_buildRequest=function(p,x){x.actions?p.actions=x.actions:x.action&&(p.actions=[x.action])};var PP=function(){};
_.E(PP,zH);PP.prototype.getApiPaths=function(){return pnB};
PP.prototype.getExtension=function(p){return _.r(p,_.zO)};
PP.prototype.JSC$11755_buildRequest=function(p,x){x.token&&(p.continuation=x.token)};var TC=function(){};
_.E(TC,zH);TC.prototype.getApiPaths=function(){return n4Z};
TC.prototype.getExtension=function(p){return _.r(p,_.zO)};
TC.prototype.JSC$11755_buildRequest=function(p,x){p.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";x.token&&(p.fetchCommentsParams={continuation:x.token})};var BP=function(){};
_.E(BP,zH);BP.prototype.getApiPaths=function(){return lyB};
BP.prototype.getExtension=function(p){return _.r(p,e2B)};
BP.prototype.JSC$11755_buildRequest=function(p,x,F){F=F===void 0?{}:F;x.createReplyParams&&(p.createReplyParams=x.createReplyParams);x.commentText&&(p.commentText=_.Pi(x.commentText));F.comment_text&&(p.commentText=F.comment_text);F.image_blob_id&&(p.imageAttachment={encryptedBlobId:F.image_blob_id});F.botguard_response&&(p.botguardResponse=F.botguard_response)};
_.R8.Object.defineProperties(BP.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Rm=function(){};
_.E(Rm,zH);Rm.prototype.getApiPaths=function(){return cMK};
Rm.prototype.getExtension=function(p){return _.r(p,_.$oZ)};
Rm.prototype.JSC$11755_buildRequest=function(p,x,F){F=F===void 0?{}:F;x.createCommentParams&&(p.createCommentParams=x.createCommentParams);x.commentText&&(p.commentText=_.Pi(x.commentText));x.videoPositionMention&&(p.videoPositionMention=x.videoPositionMention);x.sources&&(p.sources=x.sources);F.comment_text&&(p.commentText=F.comment_text);F.attached_video_id?p.videoAttachment={videoId:F.attached_video_id}:F.poll_options?p.pollAttachment={choices:F.poll_options}:F.image_blob_id?p.imageAttachment=
{encryptedBlobId:F.image_blob_id}:F.shared_post_id&&(p.sharedPostAttachment={postId:F.shared_post_id});F.access_restrictions&&typeof F.access_restrictions==="number"&&(x=F.access_restrictions,p.accessRestrictions={restriction:x!==1&&x===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});F.botguard_response&&(p.botguardResponse=F.botguard_response)};
_.R8.Object.defineProperties(Rm.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var kK=function(){};
_.E(kK,zH);kK.prototype.getApiPaths=function(){return vkv};
kK.prototype.getExtension=function(p){return _.r(p,xJm)};
kK.prototype.JSC$11755_buildRequest=function(p,x,F){x.commentText&&(p.replyText=_.Pi(x.commentText));F.comment_text&&(p.replyText=F.comment_text);p.updateReplyParams=x.updateReplyParams};
_.R8.Object.defineProperties(kK.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var UI=function(){};
_.E(UI,zH);UI.prototype.getApiPaths=function(){return J5m};
UI.prototype.getExtension=function(p){return _.r(p,pjb)};
UI.prototype.JSC$11755_buildRequest=function(p,x,F){x.commentText&&(p.commentText=_.Pi(x.commentText));F.comment_text&&(p.commentText=F.comment_text);p.updateCommentParams=x.updateCommentParams};
_.R8.Object.defineProperties(UI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var iJ=function(){};
_.E(iJ,zH);iJ.prototype.getApiPaths=function(){return ChK};
iJ.prototype.getExtension=function(p){return _.r(p,RmJ)};
iJ.prototype.JSC$11755_buildRequest=function(p,x){x.settings&&(p.settings=x.settings)};var Im=function(){};
_.E(Im,zH);Im.prototype.getApiPaths=function(){return rMK};
Im.prototype.getExtension=function(p){return _.r(p,Y1D)};
Im.prototype.JSC$11755_buildRequest=function(p,x){x.channelCreationToken&&(p.channelCreationToken=x.channelCreationToken);x.source&&(p.source=x.source)};var $K=function(){};
_.E($K,zH);$K.prototype.getApiPaths=function(){return hrB};
$K.prototype.getExtension=function(p){return _.r(p,VcK)};
$K.prototype.JSC$11755_buildRequest=function(p,x,F){F=F===void 0?{}:F;if(F.name&&(F.given_name||F.family_name))p=new _.qE("channel creation cannot set both GAIA and YouTube names",x),_.zj(p);else{if(x.zeroStepChannelCreationParams){if(!F.comment_text){p=new _.qE("zero_step_create_comment_params but no zero_step_texts",x);_.zj(p);return}p.zeroStepChannelCreationParams=x.zeroStepChannelCreationParams;p.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(p.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
F.comment_text,F.botguard_response&&(p.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=F.botguard_response))}p.channelCreationToken=x.channelCreationToken;F.given_name&&(p.givenName=F.given_name);F.family_name&&(p.familyName=F.family_name);x.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(p.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(F.name||F.handle||F.avatar_url||F.encryptedBlobId||F.isNameChanged!==void 0||F.isHandleChanged!==void 0||F.isDefaultProfilePhoto!==
void 0||F.obakeImageSource)p.overrideChannelCreationParams={},F.name&&(p.overrideChannelCreationParams.name=F.name),F.handle&&(p.overrideChannelCreationParams.handle=F.handle),F.avatar_url&&(p.overrideChannelCreationParams.avatarUrl=F.avatar_url),F.encryptedBlobId&&(p.overrideChannelCreationParams.blobEncryptionId=F.encryptedBlobId),F.enableIdentityForAllChannelCreationDialog&&(F.encryptedBlobId?p.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
F.isDefaultProfilePhoto!==void 0&&(p.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=F.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),F.isNameChanged!==void 0&&(p.overrideChannelCreationParams.identityForAllChannelCreationNameTag=F.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),F.isHandleChanged!==
void 0&&(p.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=F.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),F.obakeImageSource&&(p.overrideChannelCreationParams.obakeImageSourceType=F.obakeImageSource))}};var eW=function(){};
_.E(eW,zH);eW.prototype.getApiPaths=function(p){return(p=this.getExtension(p))&&p.status==="DISLIKE"?ZXj:p&&p.status==="INDIFFERENT"?erK:OXB};
eW.prototype.getExtension=function(p){return _.r(p,_.Pc)};
eW.prototype.JSC$11755_buildRequest=function(p,x){x.target&&(p.target=x.target);if(x=this.getParams(x))p.params=x};
eW.prototype.getParams=function(p){switch(p==null?void 0:p.status){case "DISLIKE":return p.dislikeParams;case "INDIFFERENT":return p.removeLikeParams;default:return p==null?void 0:p.likeParams}};var pw=function(){};
_.E(pw,zH);pw.prototype.getApiPaths=function(){return DWm};
pw.prototype.getExtension=function(p){return _.r(p,a1D)};
pw.prototype.JSC$11755_buildRequest=function(p,x){x.settingItemId&&(p.settingItemId=x.settingItemId);x.stringValue!=null&&x.stringValue!==void 0?p.newValue={stringValue:x.stringValue}:x.intValue?p.newValue={intValue:x.intValue}:x.boolValue!==null&&x.boolValue!==void 0?p.newValue={boolValue:x.boolValue}:(p=new _.qE("Unknown value type for SetSettingEndpoint.",x),_.zj(p))};var xU=function(){};
_.E(xU,zH);xU.prototype.getApiPaths=function(){return KB6};
xU.prototype.getExtension=function(p){return _.r(p,QOB)||void 0};
xU.prototype.JSC$11755_buildRequest=function(p,x,F){F=F===void 0?{}:F;x.channelIds&&(p.channelIds=x.channelIds);x.siloName&&(p.siloName=x.siloName);x.params&&(p.params=x.params);F.botguardResponse&&(p.botguardResponse=F.botguardResponse);F.feature&&(p.clientFeature=F.feature)};
_.R8.Object.defineProperties(xU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var FS=function(){};
_.E(FS,zH);FS.prototype.getApiPaths=function(){return ZlC};
FS.prototype.getExtension=function(p){return _.r(p,Mav)||void 0};
FS.prototype.JSC$11755_buildRequest=function(p,x){x.channelIds&&(p.channelIds=x.channelIds);x.siloName&&(p.siloName=x.siloName);x.params&&(p.params=x.params)};
_.R8.Object.defineProperties(FS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var NP=function(p){this.shareClientParamsProvider=p};
_.E(NP,zH);NP.prototype.getApiPaths=function(){return uUI};
NP.prototype.getExtension=function(p){return _.r(p,H7J)||_.r(p,_.m7k)||_.r(p,WEI)};
NP.prototype.JSC$11755_buildRequest=function(p,x){x.serializedShareEntity&&(p.serializedSharedEntity=x.serializedShareEntity);if(x.clientParamIdentifier){var F;if((F=this.shareClientParamsProvider)==null?0:F.clientParams.has(x.clientParamIdentifier)){F=this.shareClientParamsProvider;x=x.clientParamIdentifier;var N=F.clientParams.get(x);N&&F.clientParams.delete(x);p.clientParams=N}}};
NP[UP]=[O6m];var hJ=function(){};
_.E(hJ,zH);hJ.prototype.getApiPaths=function(){return R0I};
hJ.prototype.getExtension=function(p){return _.r(p,k3l)};
hJ.prototype.JSC$11755_buildRequest=function(p,x){x.params&&(p.params=x.params)};var lv=function(){};
_.E(lv,zH);lv.prototype.getApiPaths=function(){return tgj};
lv.prototype.getExtension=function(p){return _.r(p,TJm)};
lv.prototype.JSC$11755_buildRequest=function(p,x){x.dismissal&&(p.items=[x.dismissal])};
_.R8.Object.defineProperties(lv.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var cB=function(){};
_.E(cB,zH);cB.prototype.getApiPaths=function(){return mYv};
cB.prototype.getExtension=function(p){return _.r(p,_.ua)||void 0};
cB.prototype.JSC$11755_buildRequest=function(p,x,F){p.feedbackTokens=[];x.feedbackToken&&p.feedbackTokens.push(x.feedbackToken);if(x=x.cpn||F.cpn)p.feedbackContext={cpn:x};p.isFeedbackTokenUnencrypted=!!F.is_feedback_token_unencrypted;p.shouldMerge=!1;F.extra_feedback_tokens&&(p.shouldMerge=!0,p.feedbackTokens=p.feedbackTokens.concat(F.extra_feedback_tokens))};
_.R8.Object.defineProperties(cB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var aA=function(){};
_.E(aA,zH);aA.prototype.getApiPaths=function(){return mYv};
aA.prototype.getExtension=function(p){return _.r(p,_.dH)};
aA.prototype.JSC$11755_buildRequest=function(p,x,F){F.feedback_tokens&&(p.feedbackTokens=F.feedback_tokens,p.shouldMerge=!0)};
_.R8.Object.defineProperties(aA.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var MP=function(){};
_.E(MP,zH);MP.prototype.getApiPaths=function(){return mYv};
MP.prototype.getExtension=function(p){return _.r(p,$3d)};
MP.prototype.JSC$11755_buildRequest=function(p,x){x.undoToken&&(p.feedbackTokens=[x.undoToken]);x.isUndoTokenUnencrypted&&(p.isFeedbackTokenUnencrypted=x.isUndoTokenUnencrypted)};
_.R8.Object.defineProperties(MP.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Dc=function(){};
_.E(Dc,zH);Dc.prototype.getApiPaths=function(){return gk6};
Dc.prototype.getExtension=function(p){return _.r(p,jwJ)};
Dc.prototype.JSC$11755_buildRequest=function(p,x){x.nextEndpoint&&_.r(x.nextEndpoint,_.Gj)?p.nextEndpoint={urlEndpoint:_.r(x.nextEndpoint,_.Gj)}:x.nextEndpoint&&_.r(x.nextEndpoint,_.B7)&&(p.nextEndpoint={watchEndpoint:_.r(x.nextEndpoint,_.B7)});x.setRacy&&(p.setRacy=x.setRacy);x.setControvercy&&(p.setControvercy=x.setControvercy)};var fw=function(p){this.JSC$15504_storeWithEntities=p};
_.E(fw,zH);fw.prototype.getApiPaths=function(){return v4B};
fw.prototype.getExtension=function(p){return _.r(p,qHK)};
fw.prototype.JSC$11755_buildRequest=function(p,x){x.flowId&&(p.flowId=x.flowId);x.targetId&&(p.targetId=x.targetId);x.continuation&&(p.continuation=x.continuation);var F=x.flowStateEntityKey;if(x.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&F&&this.JSC$15504_storeWithEntities){var N;if(x=(N=this.JSC$15504_storeWithEntities.getState())==null?void 0:N.entities)if(N=_.h$(F).entityType,N=_.M4(x,N,F))p.flowState=N,p.flowStateEntityKey=F}};
_.R8.Object.defineProperties(fw.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
fw[UP]=[DX];var zW8=function(){};
_.E(zW8,zH);_.l=zW8.prototype;_.l.getApiPaths=function(){return HXB};
_.l.JSC$11762_getStoreKey=function(){return _.TZ("guide")};
_.l.getRequestConfig=function(){var p=this.JSC$11762_getStoreKey(),x;p&&(x={storeStrategy:{storeKey:p}});return x};
_.l.isNavigationCommand=function(){return!0};
_.l.getExtension=function(p){return _.r(p,_.dH)};
_.l.JSC$11755_buildRequest=function(p){p.fetchLiveState=!0};var Kw=function(){};
_.E(Kw,zH);Kw.prototype.getApiPaths=function(){return I_v};
Kw.prototype.getExtension=function(p){return _.r(p,UoI)};
Kw.prototype.JSC$11755_buildRequest=function(){};var qP=function(){};
_.E(qP,zH);qP.prototype.getApiPaths=function(){return $qD};
qP.prototype.getExtension=function(p){return _.r(p,i4D)};
qP.prototype.JSC$11755_buildRequest=function(){};var Zc=function(){};
_.E(Zc,zH);Zc.prototype.getApiPaths=function(){return BmJ};
Zc.prototype.getExtension=function(p){return _.r(p,_.zO)};
Zc.prototype.JSC$11755_buildRequest=function(p,x){x.token&&(p.continuation=x.token);var F,N;p==null||(F=p.context)==null||(N=F.user)==null||delete N.onBehalfOfUser};
Zc.prototype.getRequestConfig=function(p){var x={},F;if(((F=this.getExtension(p))==null?void 0:F.sessionIndex)!==void 0){var N;x={authStrategy:{sessionIndex:(N=this.getExtension(p))==null?void 0:N.sessionIndex}}}return x};var tJ=function(){};
_.E(tJ,zH);tJ.prototype.JSC$11755_getRequest=function(p){var x=this.getExtension(p),F=p="";if(x==null?0:x.popup)p="true";if(x==null?0:x.disableSignout)F="true";x={};return{input:"/getAccountSwitcherEndpoint",requestShell:P7("/getAccountSwitcherEndpoint","GET",(x["X-YouTube-Delegation-Context"]=_.sd("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),x["X-YouTube-Account-Switcher-Popup"]=p,x["X-YouTube-Account-Switcher-Disable-Signout"]=F,x)),innerTubeRequest:{}}};
tJ.prototype.getApiPaths=function(){return[]};
tJ.prototype.getExtension=function(p){return _.r(p,_.vUZ)};
tJ.prototype.JSC$11755_buildRequest=function(){};var df=function(){};
_.E(df,zH);df.prototype.JSC$11755_getRequest=function(p){var x="/cross_account_channel_transfer";(p=this.getExtension(p))&&(x=KTm(x,{target_session:p.targetSessionIndex,source_rapt:p.sourceRapt,rapt:p.targetRapt}));return{input:x,requestShell:P7(x,"GET"),innerTubeRequest:{}}};
df.prototype.getApiPaths=function(){return[]};
df.prototype.getExtension=function(p){return _.r(p,$8B)};
df.prototype.JSC$11755_buildRequest=function(){};var vB=function(){};
_.E(vB,zH);vB.prototype.getApiPaths=function(){return JMB};
vB.prototype.isNavigationCommand=function(){return!0};
vB.prototype.getExtension=function(p){return _.r(p,_.dH)};
vB.prototype.JSC$11755_buildRequest=function(p){var x=_.rH().get("gsml","");x&&(p.safetyModeLockerObfuscatedGaiaId=x);p.userInterfaceTheme=_.AF(!0);_.uX()?p.deviceTheme="DEVICE_THEME_SELECTED":_.gew()?p.deviceTheme="DEVICE_THEME_SUPPORTED":p.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var JJ=function(){};
_.E(JJ,zH);JJ.prototype.getApiPaths=function(){return BmJ};
JJ.prototype.getExtension=function(p){return _.r(p,e4v)};
JJ.prototype.JSC$11755_buildRequest=function(p,x){if(x&&x.requestType&&(p.requestType=x.requestType,x.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||x.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var F=x.nextUrl;F&&(_.Zck(F)||jr(F))&&(p.nextNavendpoint={urlEndpoint:{url:F}})}x&&x.channelSwitcherQuery&&(p.channelSwitcherQuery=x.channelSwitcherQuery);x&&x.triggerChannelCreation&&(p.triggerChannelCreation=x.triggerChannelCreation);var N;if(x==null?0:(N=x.contentOwnerConfig)==
null?0:N.externalContentOwnerId)p.contentOwnerConfig=x.contentOwnerConfig;p.callCircumstance=x&&x.requestType&&x.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var h,c;x=p==null?void 0:(h=p.context)==null?void 0:(c=h.user)==null?void 0:c.onBehalfOfUser;if(x!==void 0){p.obfuscatedSelectedGaiaId=x;var M,f;p==null||(M=p.context)==null||(f=M.user)==null||delete f.onBehalfOfUser}var K,t;if(h=p==null?void 0:(K=p.context)==null?void 0:(t=K.user)==null?
void 0:t.serializedDelegationContext)p.selectedSerializedDelegationContext=h};var Cw=function(){};
_.E(Cw,zH);Cw.prototype.getApiPaths=function(){return AMB};
Cw.prototype.getExtension=function(p){return _.r(p,kaC)};
Cw.prototype.JSC$11755_buildRequest=function(p,x){x.profileOwnerExternalChannelId&&(p.profileOwnerExternalChannelId=x.profileOwnerExternalChannelId);x.profileCardContext&&(p.profileCardContext=x.profileCardContext)};var SI=function(){};
_.E(SI,zH);SI.prototype.getApiPaths=function(){return k2v};
SI.prototype.getExtension=function(p){return _.r(p,ouB)};
SI.prototype.JSC$11755_buildRequest=function(p,x){x.params&&(p.params=x.params)};var rf=function(){};
_.E(rf,zH);rf.prototype.getApiPaths=function(){return NPB};
rf.prototype.getExtension=function(p){return _.r(p,_.pxI)};
rf.prototype.JSC$11755_buildRequest=function(p,x){if(x=x.createBroadcastRequest)p.useMasks=x.useMasks,p.broadcastType=x.broadcastType,p.broadcastSource=x.broadcastSource,p.broadcastMetadata=x.broadcastMetadata,p.broadcastMetadataMask=x.broadcastMetadataMask,p.videoMetadata=x.videoMetadata,p.videoMetadataMask=x.videoMetadataMask,p.liveChatSettingsUpdate=x.liveChatSettingsUpdate,p.liveChatSettingsUpdateMask=x.liveChatSettingsUpdateMask,p.cloneVideoId=x.cloneVideoId,p.cloneWithOverrides=x.cloneWithOverrides,
p.targetEntity=x.targetEntity,p.scheduledRedirectMetadata=x.scheduledRedirectMetadata};var Er=function(){};
_.E(Er,zH);Er.prototype.getApiPaths=function(){return ayb};
Er.prototype.getExtension=function(p){return _.r(p,xjJ)};
Er.prototype.JSC$11755_buildRequest=function(p,x,F){F=F===void 0?{}:F;x.params&&(p.params=x.params);F.questionText&&(p.questionText=F.questionText);F.optionText&&F.optionText.length>0&&(p.optionText=F.optionText)};var XS=function(){};
_.E(XS,zH);XS.prototype.getApiPaths=function(){return fyD};
XS.prototype.getExtension=function(p){return _.r(p,eUD)};
XS.prototype.JSC$11755_buildRequest=function(p,x){x.params&&(p.params=x.params)};var gf=function(){};
_.E(gf,zH);gf.prototype.getApiPaths=function(){return Xnk};
gf.prototype.getExtension=function(p){return _.r(p,UhJ)};
gf.prototype.JSC$11755_buildRequest=function(p,x){x.params&&(p.params=x.params)};var Ql=function(){};
_.E(Ql,zH);Ql.prototype.getApiPaths=function(){return Q0n};
Ql.prototype.getExtension=function(p){return _.r(p,iqZ)};
Ql.prototype.JSC$11755_buildRequest=function(p,x,F){x.params&&(p.params=x.params);x.continuation&&(p.continuation=x.continuation);F.currentPlayerState&&F.currentPlayerState.playerOffsetMs&&(p.currentPlayerState={playerOffsetMs:F.currentPlayerState.playerOffsetMs.toString()})};var z$=function(){};
_.E(z$,zH);z$.prototype.getApiPaths=function(){return zrj};
z$.prototype.getExtension=function(p){return _.r(p,kkv)};
z$.prototype.JSC$11755_buildRequest=function(p,x,F){x.params&&(p.params=x.params);F.continuation&&(p.continuation=F.continuation);"hidden"in F&&(p.webClientInfo={isDocumentHidden:F.hidden});F.isInvalidationTimeoutRequest&&(p.isInvalidationTimeoutRequest=F.isInvalidationTimeoutRequest);F.invalidationPayload&&(x=RUC(_.Fj(Tn(F.invalidationPayload))),p.invalidationPayloadLastPublishAtUsec=wa(x,2));F.reloadActionPanel&&(p.reloadActionPanel=F.reloadActionPanel);F.fullReload&&(p.fullReload=F.fullReload);
F.currentPlayerState&&(p.currentPlayerState=F.currentPlayerState)};var sr=function(){};
_.E(sr,zH);sr.prototype.getApiPaths=function(){return j0B};
sr.prototype.getExtension=function(p){return _.r(p,pqZ)};
sr.prototype.JSC$11755_buildRequest=function(p,x){p.params=x.params};var nw=function(){};
_.E(nw,zH);nw.prototype.getApiPaths=function(){return g4J};
nw.prototype.getExtension=function(p){return _.r(p,FFI)};
nw.prototype.JSC$11755_buildRequest=function(p,x){x.params&&(p.params=x.params)};var yl=function(){};
_.E(yl,zH);yl.prototype.getApiPaths=function(){return s0l};
yl.prototype.getExtension=function(p){return _.r(p,NAB)};
yl.prototype.JSC$11755_buildRequest=function(p,x){x.params&&(p.params=x.params)};var bv=function(){};
_.E(bv,zH);bv.prototype.getApiPaths=function(){return L_I};
bv.prototype.getExtension=function(p){return _.r(p,Ftj)};
bv.prototype.JSC$11755_buildRequest=function(p,x){x.params&&(p.params=x.params)};var AJ=function(){};
_.E(AJ,zH);AJ.prototype.getApiPaths=function(){return TPD};
AJ.prototype.getExtension=function(p){return _.r(p,N_j)};
AJ.prototype.JSC$11755_buildRequest=function(p,x){x.params&&(p.params=x.params)};var uv=function(){};
_.E(uv,zH);uv.prototype.getApiPaths=function(){return pLJ};
uv.prototype.getExtension=function(p){return _.r(p,LEl)};
uv.prototype.JSC$11755_buildRequest=function(p,x){x.params&&(p.params=x.params)};var YU=function(){};
_.E(YU,zH);YU.prototype.getApiPaths=function(){return aEv};
YU.prototype.getExtension=function(p){return _.r(p,_.h_B)};
YU.prototype.JSC$11755_buildRequest=function(p,x,F){F=F===void 0?{}:F;x.params&&(p.params=x.params);F.client_message_id&&(p.clientMessageId=F.client_message_id);F.recaptcha_token&&(p.recaptchaToken=F.recaptcha_token);F.rich_message&&F.rich_message.text_segments?(x=F.rich_message.text_segments.map(function(N){var h={};N.text&&(h.text=N.text);N.emoji_id&&(h.emojiId=N.emoji_id);return h}),p.richMessage={textSegments:x}):F.message&&(p.message=F.message);
F.currentPlayerState&&(p.currentPlayerState=F.currentPlayerState)};var wf=function(){};
_.E(wf,zH);wf.prototype.getApiPaths=function(){return M1m};
wf.prototype.getExtension=function(p){return _.r(p,lQj)};
wf.prototype.JSC$11755_buildRequest=function(p,x){x.params&&(p.params=x.params)};var G$=function(){};
_.E(G$,zH);G$.prototype.getApiPaths=function(){return q7m};
G$.prototype.getExtension=function(p){return _.r(p,aQn)};
G$.prototype.JSC$11755_buildRequest=function(p,x,F){x.isUserInitiated&&(p.isUserInitiated=x.isUserInitiated);x.initiationSource&&(p.initiationSource=x.initiationSource);F.locationInfo&&(p.context.client.locationInfo=F.locationInfo)};var Vl=function(){};
_.E(Vl,zH);Vl.prototype.getApiPaths=function(){return Puk};
Vl.prototype.getExtension=function(p){return _.r(p,x7Z)};
Vl.prototype.JSC$11755_buildRequest=function(p,x,F){x.metadataUpdateRequest&&(x=x.metadataUpdateRequest,p.encryptedVideoId=x.encryptedVideoId,x.liveChat&&(x=x.liveChat,p.liveChat||(p.liveChat={}),x.performAsExternalChannelId&&(p.liveChat.performAsExternalChannelId=x.performAsExternalChannelId),x.source&&(p.liveChat.source=x.source)));var N;if(F==null?0:(N=F.liveChat)==null?0:N.liveChatSettings)p.liveChat||(p.liveChat={}),F=F.liveChat.liveChatSettings,p.liveChat.newLiveChatSettings=F,p.liveChat.newLiveChatSettingsMask||
(p.liveChat.newLiveChatSettingsMask={}),F.emojiReactionSet&&(p.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var WB=function(){};
_.E(WB,zH);WB.prototype.getApiPaths=function(){return EkZ};
WB.prototype.getExtension=function(p){return _.r(p,_.DJv)};
WB.prototype.JSC$11755_buildRequest=function(p,x,F){F.continuation?p.continuation=F.continuation:x.videoId&&(p.videoId=x.videoId);F.clientParams&&(p.clientParams=F.clientParams)};var HB=function(){};
_.E(HB,zH);HB.prototype.getApiPaths=function(){return n4Z};
HB.prototype.getExtension=function(p){return _.r(p,_.s9)};
HB.prototype.JSC$11755_buildRequest=function(p,x){p.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";p.fetchCommentsParams={};x.videoId&&(p.fetchCommentsParams.encryptedVideoId=x.videoId);x.postId&&(p.fetchCommentsParams.postId=x.postId);x.externalChannelId&&(p.fetchCommentsParams.externalChannelId=x.externalChannelId);x.linkedCommentId&&(p.fetchCommentsParams.linkedCommentId=x.linkedCommentId);(0,_.Q5.isEmpty)(p.fetchCommentsParams)&&delete p.fetchCommentsParams};var my=function(){};
_.E(my,zH);my.prototype.getApiPaths=function(){return pP};
my.prototype.JSC$11755_buildRequest=function(p){p.browseId="FEnotifications_inbox"};
my.prototype.getExtension=function(p){return _.r(p,_.dH)};var oA=function(){};
_.E(oA,zH);oA.prototype.getApiPaths=function(){return n4Z};
oA.prototype.JSC$11755_buildRequest=function(p,x){x.signal==="GET_NOTIFICATIONS_MENU"&&(p.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");x.ctoken&&(p.ctoken=x.ctoken)};
var sGe=function(){};
_.E(sGe,oA);sGe.prototype.getExtension=function(p){return _.r(p,_.dH)};
var nCk=function(){};
_.E(nCk,oA);nCk.prototype.getExtension=function(p){return _.r(p,msb)};var Or=function(){};
_.E(Or,zH);Or.prototype.getApiPaths=function(){return GHZ};
Or.prototype.getExtension=function(p){return _.r(p,_.dH)};
Or.prototype.JSC$11755_buildRequest=function(){};var jI=function(){};
_.E(jI,zH);jI.prototype.getApiPaths=function(){return BPn};
jI.prototype.getExtension=function(p){return _.r(p,hvl)||void 0};
jI.prototype.JSC$11755_buildRequest=function(p,x){x.params&&(p.params=x.params);x.secondaryParams&&(p.secondaryParams=x.secondaryParams)};var Lw=function(){};
_.E(Lw,zH);Lw.prototype.getApiPaths=function(){return RrC};
Lw.prototype.getExtension=function(p){return _.r(p,O7K)};
Lw.prototype.JSC$11755_buildRequest=function(p,x){x.undo&&(p.undo=x.undo);x.serializedOptOut&&(p.serializedOptOut=x.serializedOptOut);x.serializedRecordInteractionsRequest&&(p.serializedRecordInteractionsRequest=x.serializedRecordInteractionsRequest)};var PB=function(){};
_.E(PB,zH);PB.prototype.getApiPaths=function(){return iXn};
PB.prototype.getExtension=function(p){return _.r(p,jSb)};
PB.prototype.JSC$11755_buildRequest=function(p,x){x.serializedInteractionsRequest&&(p.serializedRecordNotificationInteractionsRequest=x.serializedInteractionsRequest)};var T$=function(){};
_.E(T$,zH);T$.prototype.getApiPaths=function(){return Av6};
T$.prototype.getExtension=function(p){return _.r(p,QAp)};
T$.prototype.JSC$11755_buildRequest=function(p,x,F){x=x===void 0?{}:x;F=F===void 0?{}:F;x.videoId?p.videoId=x.videoId:x.playlistId&&(p.playlistId=x.playlistId);var N,h=(N=x.offlineWebClientEligibility)!=null?N:F.offlineWebClientEligibility;h&&(p.offlineWebClientEligibility=h);var c;if(N=(c=x.preferredFormatType)!=null?c:F.preferredFormatType)p.preferredFormatType=N;var M;if(c=(M=x.lastOfflineQualitySettingsSavedMs)!=null?M:F.lastOfflineQualitySettingsSavedMs)p.lastOfflineQualitySettingsSavedMs=c;
x.params&&(p.params=x.params)};var BB=function(){};
_.E(BB,zH);BB.prototype.getApiPaths=function(){return Pf};
BB.prototype.getExtension=function(p){return _.r(p,_.zO)};
BB.prototype.JSC$11755_buildRequest=function(p,x,F){F=F===void 0?{}:F;x.token&&(p.continuation=x.token);F.formData&&(p.formData=F.formData)};var RA=function(){};
_.E(RA,zH);RA.prototype.getApiPaths=function(){return Pf};
RA.prototype.getExtension=function(p){return _.r(p,Ujv)};
RA.prototype.JSC$11755_buildRequest=function(p,x,F){F=F===void 0?{}:F;p.continuation=F.continuation};var kU=function(){};
_.E(kU,zH);kU.prototype.getApiPaths=function(){return Pf};
kU.prototype.getExtension=function(p){return _.r(p,_.Af)};
kU.prototype.JSC$11755_buildRequest=function(p,x){var F,N=x.panelIdentifier||((F=x.identifier)==null?void 0:F.tag);N&&(p.panelId=N);var h;if((h=x.globalConfiguration)==null?0:h.params){var c;p.params=(c=x.globalConfiguration)==null?void 0:c.params}};
_.R8.Object.defineProperties(kU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ur=function(){};
_.E(Ur,zH);Ur.prototype.getApiPaths=function(){return Pf};
Ur.prototype.getExtension=function(p){return _.r(p,sO6)};
Ur.prototype.JSC$11755_buildRequest=function(p,x){x.panelLoadingStrategy&&QbM(p,x.panelLoadingStrategy)};var iv=function(){};
_.E(iv,zH);iv.prototype.getApiPaths=function(){return Pf};
iv.prototype.getExtension=function(p){return _.r(p,eSJ)};
iv.prototype.JSC$11755_buildRequest=function(p,x){x.loadingStrategy&&QbM(p,x.loadingStrategy)};var IA=function(){};
_.E(IA,zH);IA.prototype.getApiPaths=function(){return Pf};
IA.prototype.getExtension=function(p){return _.r(p,_.qN)};
IA.prototype.JSC$11755_buildRequest=function(p,x){x.panelLoadingStrategy&&QbM(p,x.panelLoadingStrategy)};var $U=function(){};
_.E($U,zH);$U.prototype.getApiPaths=function(){return Pf};
$U.prototype.getExtension=function(p){return _.r(p,pfk)};
$U.prototype.JSC$11755_buildRequest=function(p,x){var F,N=(F=x.contentSourcePanelIdentifier)==null?void 0:F.tag;N&&(p.panelId=N);var h;if((h=x.globalConfiguration)==null?0:h.params){var c;p.params=(c=x.globalConfiguration)==null?void 0:c.params}};var eI=function(){};
_.E(eI,zH);eI.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
eI.prototype.getExtension=function(p){return _.r(p,xon)};
eI.prototype.JSC$11755_buildRequest=function(p,x){x.params&&(p.params=x.params)};var pd=function(){};
_.E(pd,zH);pd.prototype.getApiPaths=function(){return r5B};
pd.prototype.getExtension=function(p){return _.r(p,h2n)};
pd.prototype.JSC$11755_buildRequest=function(p,x){x.externalChannelId&&(p.externalChannelId=x.externalChannelId);x.superChatAction&&(p.superChatAction=x.superChatAction);x.superStickersAction&&(p.superStickersAction=x.superStickersAction)};var xG=function(){};
_.E(xG,zH);xG.prototype.getApiPaths=function(){return Cuv};
xG.prototype.getExtension=function(p){return _.r(p,kv6)||_.r(p,sAZ)};
xG.prototype.JSC$11755_buildRequest=function(p,x){x.videoIds?p.videoIds=x.videoIds:x.videoId&&(p.videoIds=[x.videoId]);x.playlistId&&(p.playlistId=x.playlistId);x.params&&(p.params=x.params);p.excludeWatchLater=!1};var Fs=function(){};
_.E(Fs,zH);Fs.prototype.getApiPaths=function(){return Mg6};
Fs.prototype.getExtension=function(p){return _.r(p,_.wA)};
Fs.prototype.JSC$11755_buildRequest=function(p,x,F){F.create_playlist_title?p.title=F.create_playlist_title:x.title&&(p.title=x.title);if(F.create_playlist_privacy_status&&typeof F.create_playlist_privacy_status==="number"){a:{var N=F.create_playlist_privacy_status;if(N!==0){if(N===1){N="PUBLIC";break a}if(N===2){N="UNLISTED";break a}}N="PRIVATE"}p.privacyStatus=N}else x.privacyStatus&&(p.privacyStatus=x.privacyStatus);F.create_playlist_description&&(p.description=F.create_playlist_description);x.videoIds&&
(p.videoIds=x.videoIds);x.params&&(p.params=x.params);x.sourcePlaylistId&&(p.sourcePlaylistId=x.sourcePlaylistId)};var NU=function(){};
_.E(NU,zH);NU.prototype.getApiPaths=function(){return K_B};
NU.prototype.getExtension=function(p){return _.r(p,FeB)};
NU.prototype.JSC$11755_buildRequest=function(p,x){p.playlistId=x.playlistId};var hX=function(){};
_.E(hX,zH);hX.prototype.getApiPaths=function(){return yMn};
hX.prototype.getExtension=function(p){return _.r(p,GRk)};
hX.prototype.JSC$11755_buildRequest=function(p,x){x.playlistId&&(p.playlistId=x.playlistId);x.params&&(p.params=x.params)};var lZ=function(){};
_.E(lZ,zH);lZ.prototype.getApiPaths=function(){return UYj};
lZ.prototype.getExtension=function(p){return _.r(p,_.n4)||void 0};
lZ.prototype.JSC$11755_buildRequest=function(p,x){x.actions&&(p.actions=x.actions);x.params&&(p.params=x.params);x.playlistId&&(p.playlistId=x.playlistId)};var cC=function(){};
_.E(cC,zH);_.l=cC.prototype;_.l.getApiPaths=function(){return Iyv};
_.l.getExtension=function(p){return _.r(p,_.dX)};
_.l.JSC$11755_buildRequest=function(p,x){x.videoId&&(p.playerRequest={videoId:x.videoId},x.playerParams&&(p.playerRequest.params=x.playerParams),x.racyCheckOk&&(p.playerRequest.racyCheckOk=!!x.racyCheckOk),x.contentCheckOk&&(p.playerRequest.contentCheckOk=!!x.contentCheckOk));x.params&&(p.params=x.params);x.inputType&&(p.inputType=x.inputType);p.disablePlayerResponse=!0};
_.l.getRequestConfig=function(p){var x;(p=this.JSC$11762_getStoreKey(p))&&(x={storeStrategy:{storeKey:p}});_.S("web_log_reels_ticks")&&(x=x||{},x.requestTick="r_wrs",x.responseTick="r_wrr");return x};
_.l.JSC$11762_getStoreKey=function(p){p=this.getExtension(p);if(_.S("shorts_controller_retrieve_seedless_sequence_v2")){if((p==null?void 0:p.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.TZ("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.S("web_prefetch_riw_for_next_video")||_.S("web_shorts_prefetch_service_enabled"))&&p!=null&&p.videoId){var x={videoId:p.videoId};p.params&&(x.params=p.params);return _.TZ("reel_item_watch",x)}};var aj=function(){};
_.E(aj,zH);_.l=aj.prototype;_.l.getApiPaths=function(){return $YJ};
_.l.getExtension=function(p){return _.r(p,_.dX)};
_.l.JSC$11755_buildRequest=function(p,x,F){F=F===void 0?{}:F;p.sequenceParams=x.sequenceParams;var N;((N=F)==null?0:N.contentPlaybackContext)&&_.S("web_shorts_prefetch_service_enabled")&&(p.playbackContext={contentPlaybackContext:F.contentPlaybackContext})};
_.l.JSC$11762_getStoreKey=function(p){if(_.S("shorts_controller_retrieve_seedless_sequence_v2")&&(p=this.getExtension(p),p==null?0:p.sequenceParams))return _.TZ("reel_watch_sequence",{sequenceParams:p.sequenceParams})};
_.l.getRequestConfig=function(p){p=this.JSC$11762_getStoreKey(p);var x;p&&(x={storeStrategy:{storeKey:p}});_.S("reel_watch_sequence_request_log_ticks")&&(x=x||{},x.requestTick="r_wsrs",x.responseTick="r_wsrr",x.processorTick="r_wsrp");return x};
var MU=function(){};
_.E(MU,zH);MU.prototype.getApiPaths=function(){return $YJ};
MU.prototype.getExtension=function(p){return _.r(p,_.zO)};
MU.prototype.JSC$11755_buildRequest=function(p,x,F){F=F===void 0?{}:F;x.token&&(p.continuation=x.token);var N;((N=F)==null?0:N.contentPlaybackContext)&&_.S("web_shorts_prefetch_service_enabled")&&(p.playbackContext={contentPlaybackContext:F.contentPlaybackContext})};
MU.prototype.getRequestConfig=function(p){p=this.JSC$11762_getStoreKey(p);var x;p&&(x={storeStrategy:{storeKey:p}});_.S("reel_watch_sequence_request_log_ticks")&&(x=x||{},x.requestTick="r_wsrs",x.responseTick="r_wsrr",x.processorTick="r_wsrp");return x};var DM=function(){};
_.E(DM,zH);DM.prototype.getApiPaths=function(){return dY6};
DM.prototype.getExtension=function(p){return _.r(p,_.K3D)};
DM.prototype.JSC$11755_buildRequest=function(p,x,F){F=F===void 0?{}:F;x.flagAction&&(p.action=x.flagAction);x.flagRequestType&&(p.flagRequestType=x.flagRequestType);x.additionalDetailCheckboxChecked&&(p.additionalDetailCheckboxChecked=x.additionalDetailCheckboxChecked);x.legalCheckboxChecked&&(p.legalCheckboxChecked=x.legalCheckboxChecked);x={};F.flag_issue_type!==void 0&&(x.issue=F.flag_issue_type);F.flag_affiliation!==void 0&&(x.affiliation=F.flag_affiliation);F.flag_full_name&&(x.fullName=F.flag_full_name);
Object.keys(x).length&&(p.legalReportDetails=x);if(F.flag_description||F.text)p.userComments=F.flag_description||F.text;x={};F.minutes!==void 0&&F.seconds!==void 0&&(x.minutes=F.minutes,x.seconds=F.seconds);F.vss_id&&(x.vssId=F.vss_id);Object.keys(x).length&&(p.videoReportDetails=x);x={};F.video_ids&&(x.videoIds=F.video_ids);F.impersonated_channel_url&&(x.impersonatedChannelUrl=F.impersonated_channel_url);Object.keys(x).length&&(p.channelAbuseReportDetails=x)};
_.R8.Object.defineProperties(DM.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var fd=function(){};
_.E(fd,zH);fd.prototype.getApiPaths=function(){return E4m};
fd.prototype.getExtension=function(p){return _.r(p,mhv)};
fd.prototype.JSC$11755_buildRequest=function(p,x){x.blockedForKidsContent&&(p.blockedForKidsContent=x.blockedForKidsContent)};var Kd=function(){};
_.E(Kd,zH);Kd.prototype.getApiPaths=function(){return xWI};
Kd.prototype.getExtension=function(p){return _.r(p,zM$)};
Kd.prototype.JSC$11755_buildRequest=function(p,x,F){p.params=x.params;F.impersonated_channel_url&&(p.impersonatedChannelUrl=F.impersonated_channel_url)};var qU=function(){};
_.E(qU,zH);qU.prototype.getApiPaths=function(){return o4n};
qU.prototype.getExtension=function(p){return _.r(p,_.ofn)};
qU.prototype.JSC$11755_buildRequest=function(p,x){x.items&&(p.items=x.items);x.kidGaiaId&&(p.kidGaiaId=x.kidGaiaId)};var ZM=function(){};
_.E(ZM,zH);ZM.prototype.getApiPaths=function(){return Son};
ZM.prototype.getExtension=function(p){return _.r(p,_.BAD)};
ZM.prototype.JSC$11755_buildRequest=function(p,x){x.params&&(p.params=x.params);x.targetId&&(p.targetId=x.targetId)};var tX=function(){};
_.E(tX,zH);tX.prototype.getApiPaths=function(){return lEm};
tX.prototype.getExtension=function(p){return _.r(p,o9J)};
tX.prototype.JSC$11755_buildRequest=function(p,x){x.externalVideoId&&(p.externalVideoId=x.externalVideoId);x.query&&(p.query=x.query);x.sourceTimelines&&(p.sourceTimelines=x.sourceTimelines)};var dO=function(){};
_.E(dO,zH);dO.prototype.getApiPaths=function(){return c5b};
dO.prototype.getExtension=function(p){return _.r(p,_.zO)||void 0};
dO.prototype.JSC$11755_buildRequest=function(p,x){x.token&&(p.continuation=x.token)};
_.ymH=function(){};
_.E(_.ymH,zH);_.l=_.ymH.prototype;_.l.getApiPaths=function(){return c5b};
_.l.getExtension=function(p){return _.r(p,_.fR)||void 0};
_.l.isNavigationCommand=function(){return!0};
_.l.JSC$11762_getStoreKey=function(p,x){x=x===void 0?{}:x;if(!x.disableCache&&(p=this.getExtension(p))&&p.query)return x={query:p.query},p.params&&(x.params=p.params),_.TZ("search",x)};
_.l.JSC$11755_buildRequest=function(p,x,F){x.query&&(p.query=x.query);x.params&&(p.params=x.params);if(!_.S("web_forward_suggest_stats_killswitch")){var N=_.r(x,nuK);N&&(p.suggestStats=N)}var h;!_.S("kevlar_searchbox_stats_killswitch")&&((h=F.tempData)==null?0:h.gs_l)&&!_.r(x,nuK)&&(p.webSearchboxStatsUrl="/search?oq="+(F.tempData.oq||"")+"&gs_l="+F.tempData.gs_l)};
_.l.getRequestConfig=function(p,x){x=x===void 0?{}:x;p=this.JSC$11762_getStoreKey(p,x);var F;p&&(F={storeStrategy:{storeKey:p}});_.S("web_log_search_ticks_ks")||(F=F||{},F.requestTick="sr_s",F.responseTick="sr_r");return F};var vC=function(){};
_.E(vC,zH);vC.prototype.getApiPaths=function(){return Yok};
vC.prototype.getExtension=function(p){return _.r(p,tak)};
vC.prototype.JSC$11755_buildRequest=function(p,x){x.serializedGetSharingProviderDataParams&&(p.serializedGetSharingProviderDataParams=x.serializedGetSharingProviderDataParams)};var JX=function(){};
_.E(JX,zH);JX.prototype.getApiPaths=function(){return wnB};
JX.prototype.getExtension=function(p){return _.r(p,cwb)};
JX.prototype.JSC$11755_buildRequest=function(p,x){x.endpoint&&(p.endpoint=x.endpoint);x.action&&(p.action=x.action)};var Cd=function(){};
_.E(Cd,zH);Cd.prototype.getApiPaths=function(){return qoB};
Cd.prototype.getExtension=function(p){return _.r(p,NS6)};
Cd.prototype.JSC$11755_buildRequest=function(p,x){p.videoId=x.videoId;x.scheduledRedirectMetadataSourceVideoId&&(p.scheduledRedirectMetadata={sourceVideoId:x.scheduledRedirectMetadataSourceVideoId})};var bHe=XMLHttpRequest.prototype.fetch,Am8=bHe&&bHe.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!_.H8?!0:!1;var SU=function(p){this.JSC$15771_storeWithEntities=p};
_.E(SU,zH);_.l=SU.prototype;_.l.getApiPaths=function(){return kHl};
_.l.getExtension=function(p){return _.r(p,_.B7)||_.r(p,_.dX)||_.r(p,fem)};
_.l.isNavigationCommand=function(){return!0};
_.l.JSC$11762_getStoreKey=function(p){if((_.S("kevlar_cache_on_ttl_player")||_.S("mweb_enable_shorts_innertube_player_prefetch")||_.S("mweb_use_new_history_manager")||_.S("web_shorts_prefetch_service_enabled"))&&(p=this.getExtension(p))&&p.videoId){var x={videoId:p.videoId};p.playlistId&&(x.playlistId=p.playlistId);p.playerParams&&(x.params=p.playerParams);return _.TZ("player",x)}};
_.l.JSC$11755_getClientScreen=function(p){var x;return((x=p.contentPlaybackContext)==null?void 0:x.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.l.JSC$11755_buildRequest=function(p,x,F){if(_.S("enable_interstitial_entity_check")){var N=this.JSC$15771_storeWithEntities;if(x.videoId)for(var h=_.a(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),c=h.next();!c.done;c=h.next()){c=c.value;var M;var f=void 0,K=void 0,t=x.videoId,d=c;(M=N)?(t=_.au(t+d,"interstitialInteractionStateEntity"),M=(f=(K=_.M4(M.getState().entities,"interstitialInteractionStateEntity",t))==null?void 0:K.primaryButtonClicked)!=null?f:!1):M=!1;if(M)switch(c){case "CONTENT_CHECK_REQUIRED":x.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":x.racyCheckOk=!0}}}x.videoId&&(p.videoId=x.videoId);x.playlistId&&(p.playlistId=x.playlistId);x.index!==void 0&&(p.playlistIndex=x.index+1);x.playerParams&&(p.params=x.playerParams);"startTimeSeconds"in x&&x.startTimeSeconds&&(_.S("enable_player_request_builder_start_time_floor")?p.startTimeSecs=Math.floor(x.startTimeSeconds):p.startTimeSecs=x.startTimeSeconds);F.contentPlaybackContext&&(p.playbackContext={contentPlaybackContext:F.contentPlaybackContext});F.prefetchPlaybackContext&&
(p.playbackContext=Object.assign({},p.playbackContext,{prefetchPlaybackContext:F.prefetchPlaybackContext}),p.context.request||(p.context.request={}),p.context.request.isPrefetch=!0);p.playbackContext||(p.playbackContext={});N=d5v();p.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!N,supportXhr:Am8};F.overrideMutedAtStart&&(p.overrideMutedAtStart=F.overrideMutedAtStart);p.racyCheckOk=!!x.racyCheckOk;p.contentCheckOk=!!x.contentCheckOk;!_.S("captions_prefs_killswitch")&&(F=(F=_.Mq("yt-player-caption-language-preferences"))?
F:[],F==null?0:F.length)&&(p.captionParams={viewerSelectedCaptionLangs:F})};
_.l.getRequestConfig=function(p){p=this.JSC$11762_getStoreKey(p);var x;p&&(x={storeStrategy:{storeKey:p}});_.S("web_log_player_watch_next_ticks")&&(x=x||{},x.requestTick="ps_s",x.responseTick="ps_r");return x};
SU[UP]=[DX];var rO=function(){};
_.E(rO,zH);rO.prototype.getApiPaths=function(){return fEn};
rO.prototype.getExtension=function(p){return _.r(p,_.oxj)};
rO.prototype.JSC$11755_buildRequest=function(p,x){p.params=x.params;p.correctionText=x.correctionText};var EC=function(){};
_.E(EC,zH);EC.prototype.getApiPaths=function(){return yvH};
EC.prototype.getExtension=function(p){return _.r(p,_.OFk)};
EC.prototype.JSC$11755_buildRequest=function(p,x){x.params&&(p.params=x.params);p.searchQuery=x.searchQuery;p.languageCode=x.languageCode;p.kind=x.kind;p.name=x.name;p.externalVideoId=x.externalVideoId};var Xs=function(){};
_.E(Xs,zH);_.l=Xs.prototype;_.l.getApiPaths=function(){return QzK};
_.l.getExtension=function(p){return _.r(p,_.B7)};
_.l.isNavigationCommand=function(){return!0};
_.l.JSC$11762_getStoreKey=function(p){if((p=this.getExtension(p))&&p.videoId){var x={videoId:p.videoId};p.playlistId&&(x.playlistId=p.playlistId);p.index&&(x.index=p.index);p.params&&(x.params=p.params);return _.TZ("next",x)}};
_.l.JSC$11755_getClientScreen=function(p){var x;return((x=p.contentPlaybackContext)==null?void 0:x.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.l.JSC$11755_buildRequest=function(p,x,F){x.videoId&&(p.videoId=x.videoId);x.playlistId&&(p.playlistId=x.playlistId);x.params&&(p.params=x.params);x.index!==void 0&&(p.playlistIndex=x.index);p.racyCheckOk=!(!F.racyCheckOk&&!x.racyCheckOk);p.contentCheckOk=!!x.contentCheckOk;F.contentPlaybackContext&&(p.autonavState=F.contentPlaybackContext.autonavState,p.playbackContext={vis:F.contentPlaybackContext.vis,lactMilliseconds:F.contentPlaybackContext.lactMilliseconds});F.prefetchPlaybackContext&&(p.context.request||
(p.context.request={}),p.context.request.isPrefetch=!0);_.S("captions_hats_killswitch")||(x=_.rH().getFlag(65),x=x!=null?!x:!1,F=!!_.Mq("yt-player-sticky-caption"),p.captionsRequested=x&&F)};
_.l.getRequestConfig=function(p){p=this.JSC$11762_getStoreKey(p);var x;p&&(x={storeStrategy:{storeKey:p}});_.S("web_log_player_watch_next_ticks")&&(x=x||{},x.requestTick="wn_s",x.responseTick="wn_r");return x};
var gO=function(){};
_.E(gO,zH);gO.prototype.getApiPaths=function(){return QzK};
gO.prototype.getExtension=function(p){return _.r(p,_.zO)};
gO.prototype.JSC$11755_buildRequest=function(p,x){x.token&&(p.continuation=x.token)};var Qe=function(p,x){this.playerRequestBuilder=p;this.watchNextRequestBuilder=x};
_.E(Qe,$Z6);Qe.prototype.getApiPaths=function(){return W_k};
Qe.prototype.getExtension=function(p){return _.r(p,_.B7)};
Qe.prototype.isNavigationCommand=function(){return!0};
Qe.prototype.JSC$11755_buildRequest=function(p,x,F){p.playerRequest={};p.watchNextRequest={};this.playerRequestBuilder.JSC$11755_buildRequest(p.playerRequest,x,F);this.watchNextRequestBuilder.JSC$11755_buildRequest(p.watchNextRequest,x,F)};
Qe[UP]=[SU,Xs];var z0=function(){};
_.E(z0,zH);z0.prototype.getApiPaths=function(){return z1Z};
z0.prototype.getExtension=function(p){return _.r(p,p66)};
z0.prototype.JSC$11755_buildRequest=function(p,x){x.params&&(p.params=x.params)};var sC=function(p){this.JSC$15798_storeWithEntities=p};
_.E(sC,zH);sC.prototype.getApiPaths=function(){return xYm};
sC.prototype.getExtension=function(p){return _.r(p,xqC)||_.r(p,NmZ)};
sC.prototype.JSC$11755_buildRequest=function(p,x,F){F.client_data&&(p.clientData=F.client_data);if(x.commerceActionConfig){var N=x.commerceActionConfig;x=N.actionId;N=N.commerceActionParams;x&&(p.actionId=x);N&&(p.commerceActionParams=N)}else{var h=x.actionId,c=x.commerceActionParams;F=x.entityKeys;h&&(p.actionId=h);c&&(p.commerceActionParams=c);var M;x=(N=this.JSC$15798_storeWithEntities)==null?void 0:(M=N.getState())==null?void 0:M.entities;if(F&&x){N=[];M=_.a(F);for(F=M.next();!F.done;F=M.next())if(h=
F.value,F=_.h$(h).entityType,h=_.M4(x,F,h))c={},N.push((c[F]=h,c));p.entityMutationPayloads=N}}};
sC.prototype.getRequestConfig=function(p){var x,F=(x=_.r(p,xqC))==null?void 0:x.requestSequenceType;if(F&&p.clickTrackingParams&&F!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:p.clickTrackingParams,sequenceType:F}}};
sC[UP]=[DX];var nd=function(){};
_.E(nd,zH);nd.prototype.getApiPaths=function(){return szn};
nd.prototype.getExtension=function(p){return _.r(p,_.E6C)};
nd.prototype.JSC$11755_buildRequest=function(p,x){x.feedbackData&&(p.feedbackData=x.feedbackData);x.params&&(p.itemParams=x.params)};
_.R8.Object.defineProperties(nd.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ye=function(){};
_.E(ye,zH);ye.prototype.getApiPaths=function(){return nkl};
ye.prototype.getExtension=function(p){return _.r(p,X66)};
ye.prototype.JSC$11755_buildRequest=function(p,x,F){F.payments_payload&&(p.paymentsPayload=F.payments_payload);F.offer_params&&(p.offerParams=F.offer_params);x.transactionParams&&(p.transactionParams=x.transactionParams)};var bZ=function(){};
_.E(bZ,zH);bZ.prototype.getApiPaths=function(){return y5Z};
bZ.prototype.getExtension=function(p){return _.r(p,_.g6D)};
bZ.prototype.JSC$11755_buildRequest=function(p,x,F){F=F===void 0?{}:F;x.buybucketParams&&(p.buybucketData={params:x.buybucketParams},x.stickerParams?p.buybucketData.stickerParams=x.stickerParams:(F.rich_chat_message?p.buybucketData.richChatMessage=F.rich_chat_message:F.chat_message_text&&(p.buybucketData.chatMessageText=F.chat_message_text),F.purchase_price_micros&&(p.buybucketData.purchasePriceMicros=F.purchase_price_micros.toString())));x.donationAmountMicros&&(p.tipAmountMicros=x.donationAmountMicros,
x.tipParams&&(p.tipParams=x.tipParams));x.offerParams&&(p.offerParams=x.offerParams);x.productData&&(p.productData=x.productData);x.transactionParams&&(p.transactionParams=x.transactionParams)};var AX=function(){};
_.E(AX,zH);AX.prototype.getApiPaths=function(){return blb};
AX.prototype.getExtension=function(p){return _.r(p,s3Z)};
AX.prototype.JSC$11755_buildRequest=function(p,x){x.updateFopParams&&(p.updateFopParams=x.updateFopParams)};var uZ=function(){};
_.E(uZ,zH);uZ.prototype.getApiPaths=function(){return A5B};
uZ.prototype.getExtension=function(p){return _.r(p,_.aI)};
uZ.prototype.JSC$11755_buildRequest=function(p,x){x.couponCode&&(p.couponCode=x.couponCode);x.params&&(p.itemParams=x.params)};var YG=function(){};
_.E(YG,zH);YG.prototype.getApiPaths=function(){return uOB};
YG.prototype.getExtension=function(p){return _.r(p,_.Fpj)};
YG.prototype.JSC$11755_buildRequest=function(p,x,F){F=F===void 0?{}:F;x.params&&(p.params=x.params);F.ctk&&(p.clientToken=F.ctk)};var wO=function(p){this.JSC$15833_storeWithEntities=p};
_.E(wO,zH);wO.prototype.getApiPaths=function(){return Y7I};
wO.prototype.getExtension=function(p){return _.r(p,_.Vf)};
wO.prototype.JSC$11755_buildRequest=function(p,x,F){F.purchase_price_micros&&(p.productData={pdgData:{purchasePriceMicros:F.purchase_price_micros.toString()}},F.rich_chat_message&&(p.productData.pdgData.richChatMessage=F.rich_chat_message),F.currency_code&&(p.productData.pdgData.currencyCode=F.currency_code));x.transactionParams&&(p.transactionParams=x.transactionParams);x.clientLocationContext&&(p.clientLocationContext=x.clientLocationContext);F.payments_payload&&(p.paymentsPayload=F.payments_payload);
F.funds_guarantee_callback_client_data&&(p.fundsGuaranteeCallbackClientData=F.funds_guarantee_callback_client_data);var N,h;F=(N=this.JSC$15833_storeWithEntities)==null?void 0:(h=N.getState())==null?void 0:h.entities;if(x.entityKeys&&F){N=[];x=_.a(x.entityKeys);for(h=x.next();!h.done;h=x.next()){var c=h.value;h=_.h$(c).entityType;if(c=_.M4(F,h,c)){var M={};N.push((M[h]=c,M))}}p.entityMutationPayloads=N}};
wO[UP]=[DX];var G0=function(){};
_.E(G0,zH);G0.prototype.getApiPaths=function(){return wLD};
G0.prototype.getExtension=function(p){return _.r(p,Q3K)};
G0.prototype.JSC$11755_buildRequest=function(p,x,F){F=F===void 0?{}:F;F.backend_analytics&&(p.serializedBackendAnalyticsEvent=F.backend_analytics);x.offerParams&&(p.offerParams=x.offerParams)};var Ve=function(){};
_.E(Ve,zH);Ve.prototype.getApiPaths=function(){return A5B};
Ve.prototype.getExtension=function(p){return _.r(p,dwp)};
Ve.prototype.JSC$11755_buildRequest=function(p,x){x.params&&(p.itemParams=x.params)};var WC=function(){};
_.E(WC,zH);WC.prototype.getApiPaths=function(){return GMZ};
WC.prototype.getExtension=function(p){return _.r(p,_.Mjb)};
WC.prototype.JSC$11755_buildRequest=function(p,x,F){F.resume_time_ms&&(p.resumeTimeMs=F.resume_time_ms);x.pauseParams&&(p.pauseParams=x.pauseParams)};var HC=function(){};
_.E(HC,zH);HC.prototype.getApiPaths=function(){return V1D};
HC.prototype.getExtension=function(p){return _.r(p,_.z0I)};
HC.prototype.JSC$11755_buildRequest=function(p,x,F){F=F===void 0?{}:F;F.c&&(p.redeemCode=F.c);F.rd&&(p.riskData=F.rd);F.ctk&&(p.clientToken=F.ctk)};var mC=function(){};
_.E(mC,zH);mC.prototype.getApiPaths=function(){return WBJ};
mC.prototype.getExtension=function(p){return _.r(p,_.Dqk)};
mC.prototype.JSC$11755_buildRequest=function(p,x){x.resumeParams&&(p.resumeParams=x.resumeParams)};var oj=function(p,x){this.clientName=p;this.defaultExpirationDelayMs=x};
oj.prototype.put=function(p,x){var F=this,N;return _.D(function(h){N=Object.assign({},x.data);N.key=p;N.clientName=F.clientName;N.expireTimestampMs===void 0&&(N.expireTimestampMs=(Math.round((0,_.Lf)())+F.defaultExpirationDelayMs).toString());return h.return(F.putInternal(p,N))})};
oj[UP]=[zd,Pkt];var u2H=function(){oj.apply(this,arguments);this.JSC$15863_responseStore=new Map};
_.E(u2H,oj);_.l=u2H.prototype;_.l.get=function(p){var x=this;return _.D(function(F){return F.return(cI(x,p))})};
_.l.putInternal=function(p,x){var F=this,N,h,c;return _.D(function(M){N=F.defaultExpirationDelayMs;x.expireTimestampMs&&(N=Number(x.expireTimestampMs)-Math.round((0,_.Lf)()),h=_.Ud("mweb_override_response_store_expiration_ms"),h>0&&h<N&&(N=h));c=setTimeout(function(){F.remove(p)},N);
F.JSC$15863_responseStore.set(p,{entryData:x,timer:c});_.JB(M)})};
_.l.remove=function(p){var x=this;return _.D(function(F){YyH(x,p);_.JB(F)})};
_.l.removeAll=function(){var p=this;return _.D(function(x){p.JSC$15863_responseStore.forEach(function(F){clearTimeout(F.timer)});
p.JSC$15863_responseStore.clear();_.JB(x)})};
_.l.has=function(p){return!!this.JSC$15863_responseStore.get(p)};
_.l.getKeys=function(){return this.JSC$15863_responseStore.keys()};
var cI=function(p,x){if(p=p.JSC$15863_responseStore.get(x))return new _.lp(p.entryData)},YyH=function(p,x){var F=p.JSC$15863_responseStore.get(x);
F&&(clearTimeout(F.timer),p.JSC$15863_responseStore.delete(x))};var zFz;var yyd=function(p,x,F){oj.call(this,p,x);this.token=F};
_.E(yyd,oj);_.l=yyd.prototype;_.l.get=function(p){var x=this,F,N;return _.D(function(h){return h.nextAddress==1?_.q(h,nPp(x.token),2):h.nextAddress!=3?(F=h.yieldResult,_.q(h,F.get("ResponseStore",[p,x.clientName]),3)):(N=h.yieldResult)?h.return(new _.lp(N)):h.return(void 0)})};
_.l.putInternal=function(p,x){var F=this,N;return _.D(function(h){if(h.nextAddress==1)return _.q(h,nPp(F.token),2);N=h.yieldResult;return _.q(h,N.put("ResponseStore",x),0)})};
_.l.remove=function(p){var x=this,F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,nPp(x.token),2);F=N.yieldResult;return N.return(F.delete("ResponseStore",[p,x.clientName]))})};
_.l.removeAll=function(){var p=this,x;return _.D(function(F){if(F.nextAddress==1)return _.q(F,nPp(p.token),2);x=F.yieldResult;return _.q(F,Bgl(x,IDBKeyRange.only(p.clientName)),0)})};
_.l.has=function(){throw Error("Ui");};_.OC=new _.iE("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var wSH=function(p){var x;this.stateTagsData=(x=p.responseContext)==null?void 0:x.stateTags},G4m=function(p){var x;
return((x=p.stateTagsData)==null?void 0:x.stateTagsModified)||[]};var Vek;Vek=function(p){this.JSC$15876_responseStore=p};
_.jZ=function(p,x,F){if(!_.S("state_tags_killswitch")){var N=new wSH(x);if(G4m(N).length>0){var h=p.JSC$15876_responseStore.getKeys();h=_.a(h);for(var c=h.next();!c.done;c=h.next()){c=c.value;var M=cI(p.JSC$15876_responseStore,c);if(M){var f=_.ai(M);a:{var K=void 0;M=G4m(N);f=((K=(new wSH(f)).stateTagsData)==null?void 0:K.relevantStateTags)||[];K=_.a(f);for(f=K.next();!f.done;f=K.next())if(f=f.value,f.stateTag!=null&&M.includes(f.stateTag)&&f.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){M=
!0;break a}M=!1}M&&YyH(p.JSC$15876_responseStore,c)}}}}var t;N=(t=x.responseContext)==null?void 0:t.maxAgeSeconds;_.S("web_prefetch_riw_for_next_video")&&!N&&x.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(N=3600);F&&N&&Number(N)>0&&(x=I4(x,N),p.JSC$15876_responseStore.put(F,new _.lp(x)))};
Vek.prototype.handleResponse=function(p,x){if(!x)throw Error("Vi");var F,N;x=(F=x.config)==null?void 0:(N=F.storeStrategy)==null?void 0:N.storeKey;_.jZ(this,p,x)};
Vek[UP]=[_.h7];_.Klz=new _.iE("STORE_RESPONSE_PROCESSOR_TOKEN");var WXc=function(p){this.JSC$15879_responseStore=p};
WXc.prototype.handleResponse=function(p,x){if(x.input.match(_.Ru($YJ))){var F;if(p==null?0:(F=p.entries)==null?0:F.length)for(p=_.a(p.entries),x=p.next();!x.done;x=p.next()){F=x.value.command;var N=void 0;x=(N=_.r(F,_.dX))==null?void 0:N.unserializedPrefetchData;if(!F||!x)break;N=(new cC).JSC$11762_getStoreKey(F);var h=_.r(x,b4Z),c=void 0,M=void 0,f=void 0,K=_.Ud("web_shorts_prefetch_service_ttl_seconds")>0?_.Ud("web_shorts_prefetch_service_ttl_seconds"):Number((f=(c=h)==null?void 0:(M=c.responseContext)==
null?void 0:M.maxAgeSeconds)!=null?f:3600);N&&K>0&&(h=I4(h,K),this.JSC$15879_responseStore.put(N,new _.lp(h)));F=(new SU).JSC$11762_getStoreKey(F);x=_.r(x,Z4B);c=h=N=void 0;M=_.Ud("web_shorts_prefetch_service_ttl_seconds")>0?_.Ud("web_shorts_prefetch_service_ttl_seconds"):Number((c=(N=x)==null?void 0:(h=N.responseContext)==null?void 0:h.maxAgeSeconds)!=null?c:3600);F&&M>0&&(x=I4(x,M),this.JSC$15879_responseStore.put(F,new _.lp(x)))}}};
WXc[UP]=[_.h7];var jU=function(){this.scheduler=_.nP()},HHX;
jU.prototype.pause=function(){throw Error("Wi");};
jU.prototype.resume=function(){throw Error("Wi");};
jU.prototype.queue=function(p){var x=this,F=_.GO(),N=_.vZ(this.scheduler,function(){try{var h;if(_.xL.instance)var c=_.xL.instance;else{var M=new _.qE("Error: Unexpected uninitialized CommandHandler.");_.zj(M);c=void 0}(h=c)==null||h.resolveCommand(p.command);F.resolve()}catch(f){F.reject(f)}});
F.promise.thenCatch(function(h){h instanceof _.mw&&x.scheduler.cancelJob(N)});
return F.promise};
jU.prototype.queueAll=function(p){var x=new Map;p=_.a(p);for(var F=p.next();!F.done;F=p.next())F=F.value,x.set(F.id,this.queue(F));return x};var oC_=function(p,x){var F=this;this.taskModel=p;this.onTaskCancelledCallback=x;this.resolver=_.GO();p=p.proto.prefetchConfig;if(!p)throw Error("Xi");if(!p.prefetchAction)throw Error("Yi");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(N){N instanceof _.mw&&(mcD(F,F.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),F.onTaskCancelledCallback(F.taskModel.id,F.jobId),F.tick("pcc"));
throw N;});
this.timerName=this.taskModel.id;_.Yv(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},OHk=function(p){switch(p.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},mcD=function(p,x){_.uA({prefetchInfo:{cancellationReason:x}},p.timerName)};
oC_.prototype.tick=function(p){_.wH(p,void 0,this.timerName)};var PC=function(){var p=this;this.scheduler=_.nP();this.maxInflightTasks=_.Ud("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.Ud("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new qiB;this.onTaskCancelled=function(x,F){F&&p.scheduler.cancelJob(F);jGH(p,x);Ld(p,3)}},LXD=function(){PC.instance||(PC.instance=new PC);
return PC.instance};
PC.prototype.pause=function(){this.prefetchCoordinatorState=0};
PC.prototype.resume=function(){Ld(this,0)};
PC.prototype.queue=function(p){p=PIt(this,p);Ld(this,1);return p};
PC.prototype.queueAll=function(p){var x=new Map;p=_.a(p);for(var F=p.next();!F.done;F=p.next())F=F.value,x.set(F.id,PIt(this,F));Ld(this,1);return x};
var PIt=function(p,x){var F=p.allPrefetchTasks.get(x.id);if(F)return F.cancellablePromise;try{var N=new oC_(x,p.onTaskCancelled)}catch(c){return _.o9(c)}F=N;F.tick("pcq");var h={prefetchInfo:{taskId:F.taskModel.id,isPrefetch:!0,fetchAction:F.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:F.taskModel.command.clickTrackingParams}};F.taskModel.csn&&(h.clientScreenNonce=F.taskModel.csn);_.uA(h,F.timerName);p.allPrefetchTasks.set(x.id,N);p.drainingHeap.insert(-OHk(N),N);return N.cancellablePromise},
Ld=function(p,x){p.prefetchCoordinatorState===x&&(p.prefetchCoordinatorState=2,Tvm(p))},Tvm=function(p){for(var x={};p.prefetchCoordinatorState!==0;x={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(p.inflightPrefetchTasks.size>=p.maxInflightTasks){p.prefetchCoordinatorState=3;break}x.prefetchTask$jscomp$1=p.drainingHeap.remove();if(!x.prefetchTask$jscomp$1){p.prefetchCoordinatorState=1;break}x.taskId$jscomp$3=x.prefetchTask$jscomp$1.taskModel.id;if(p.allPrefetchTasks.has(x.taskId$jscomp$3)){var F=-1;p.coordinatorTimeoutMs>0&&(F=_.vZ(p.scheduler,function(N){return function(){T0(p,N.taskId$jscomp$3,Error("Zi"))}}(x),p.coordinatorTimeoutMs));
p.inflightPrefetchTasks.set(x.taskId$jscomp$3,F);if(!p.JSC$15895_commandHandler){if(!_.xL.instance){T0(p,x.taskId$jscomp$3,Error("$i"));continue}p.JSC$15895_commandHandler=_.xL.instance}a:switch(x.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":F=1;break a;default:F=0}x.prefetchTask$jscomp$1.jobId=p.scheduler.addJob(function(N){return function(){N.prefetchTask$jscomp$1.tick("pcr");try{p.JSC$15895_commandHandler.resolveCommand(N.prefetchTask$jscomp$1.taskModel.command)||
T0(p,N.taskId$jscomp$3,Error("aj"))}catch(h){T0(p,N.taskId$jscomp$3,h)}}}(x),F,0)}}},Bv8=function(p,x){(x=jGH(p,x))!=null&&(x.resolver.resolve(),x.tick("pce"));
Ld(p,3)},T0=function(p,x,F){(x=jGH(p,x,F))!=null&&(x.resolver.reject(F),x.tick("pcc"),mcD(x,"CANCELLATION_REASON_ERROR"),Math.random()<=_.Ud("prefetch_coordinator_error_logging_sampling_rate")&&(F=new _.qE("Prefetch Command failed.",x.taskModel.id,F.message),_.zj(F)));
Ld(p,3)},jGH=function(p,x,F){var N=p.allPrefetchTasks.get(x);
N?((F=p.inflightPrefetchTasks.get(x))&&F!==-1&&p.scheduler.cancelJob(F),p.inflightPrefetchTasks.delete(x),p.allPrefetchTasks.delete(x)):_.no(new _.qE("Unexpected missing prefetch task when deleting task.",x,F==null?void 0:F.message));return N};var RWD=function(p,x,F,N,h){this.id=p;this.triggerOn=x;this.cancelOn=F;this.command=N;this.proto=h};
_.R8.Object.defineProperties(RWD.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var k4_=function(){this.JSC$15900_prefetchCoordinator=LXD();HHX||(HHX=new jU);this.defaultCoordinator=HHX},Uce;
k4_.getInstance=function(){Uce||(Uce=new k4_);return Uce};
k4_.prototype.get=function(p){switch(p){case 0:return this.JSC$15900_prefetchCoordinator;default:return this.defaultCoordinator}};var BC=function(){this.coordinatorSupplier=k4_.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},$cm=function(p){var x=_.b0()||void 0,F=Object.keys(iHe)[0];
if(F){var N=p.taskIdByTriggerId.get(F);if(N!=null){p.taskIdByTriggerId.delete(F);F=[];N=_.a(N);for(var h=N.next();!h.done;h=N.next())if(h=p.tasks.get(h.value))x!=="UNDEFINED_CSN"&&(h.csn=x),F.push(h);F=uXB(F);x=[];F=_.a(F);for(N=F.next();!N.done;N=F.next()){h=_.a(N.value);N=h.next().value;h=h.next().value;N=p.coordinatorSupplier.get(N).queueAll(h);N=_.a(N);var c=N.next();for(h={};!c.done;h={taskId$jscomp$9:void 0},c=N.next()){var M=_.a(c.value);c=M.next().value;M=M.next().value;h.taskId$jscomp$9=
c;c=M;x.push(h.taskId$jscomp$9);p.queuedPromisesByTask.set(h.taskId$jscomp$9,_.g8(c,function(f){return function(){I0H(p,f.taskId$jscomp$9)}}(h)))}}}}else _.no(new _.qE("Unexpected malformed TriggerEvent."))};
BC.prototype.trigger=function(p,x){var F=this,N=this.tasks.get(p);if(!N||this.queuedPromisesByTask.has(p))return!1;eWk(this,p,N.triggerOn);x!=="UNDEFINED_CSN"&&(N.csn=x);x=this.coordinatorSupplier.get(N.taskType).queue(N);this.queuedPromisesByTask.set(p,_.g8(x,function(){I0H(F,p)}));
return!0};
BC.prototype.cancel=function(p){var x=this.queuedPromisesByTask.get(p);if(x)x.cancel();else return I0H(this,p)};
var I0H=function(p,x){p.queuedPromisesByTask.delete(x);var F=p.tasks.get(x);if(!F)return!1;p.tasks.delete(x);eWk(p,x,F.triggerOn);(F=Ayr(F.cancelOn))&&(p=p.taskIdByCancelId.get(F))&&p.delete(x);return!0},eWk=function(p,x,F){(F=Object.keys(F)[0])&&(p=p.taskIdByTriggerId.get(F))&&p.delete(x)};var iHe={taskRegistered:{}},Rj=function(){BC.instance||(BC.instance=new BC);this.JSC$15909_taskManager=BC.instance};
_.E(Rj,uc);
Rj.prototype.resolveCommand=function(p){var x=this,F,N;return _.D(function(h){F=_.r(p,zvB);if((N=F)==null||!N.tasks){var c=new _.qE("RegisterTasksCommand is missing tasks.");_.zj(c);return h.return()}c=x.JSC$15909_taskManager;for(var M=_.a(F.tasks),f=M.next();!f.done;f=M.next())if(f=f.value,f=f.id&&f.triggerOn&&f.cancelOn&&f.command?new RWD(f.id,f.triggerOn,f.cancelOn,f.command,f):void 0,f){var K=Object.keys(f.triggerOn)[0];if(K){var t=Ayr(f.cancelOn);t?(c.tasks.set(f.id,f),c.taskIdByTriggerId.has(K)||c.taskIdByTriggerId.set(K,
new Set),c.taskIdByTriggerId.get(K).add(f.id),c.taskIdByCancelId.has(t)||c.taskIdByCancelId.set(t,new Set),c.taskIdByCancelId.get(t).add(f.id)):_.no(new _.qE("Unexpected malformed cancelOn field."))}else _.no(new _.qE("Unexpected malformed triggerOn field."))}else _.no(new _.qE("Unexpected malformed Task proto."));$cm(x.JSC$15909_taskManager);_.JB(h)})};var peH={},xGa=(peH.rendered={priority:0,callback:function(){var p={};p.numCpu=navigator.hardwareConcurrency;var x={};x.ramGb=_.Mm.navigator.deviceMemory;var F={staticContext:{}};x.ramGb&&YcZ(x.ramGb)&&(F.staticContext.memoryTotalKbytes=(x.ramGb*1048576).toString());p.numCpu&&YcZ(p.numCpu)&&(F.staticContext.cpuCores=p.numCpu);if(_.S("web_enable_adaptive_appl_signal")){p={};x=_.W5("rses_dpj");var N=_.W5("rsef_dpj");x&&x>0&&N&&N>0&&(x=Math.ceil(N-x),x>0&&(p.loadLatency=x));p.loadLatency&&YcZ(p.loadLatency)&&
(F.appL=p.loadLatency.toString())}_.E$("applicationStarted",F)}},peH);var FVH=new _.iE("WINDOW_ON_ERROR"),Nxm=new _.iE("ERROR_WEIGHT_MAPS"),hKD=new _.iE("INIT_ERROR");var lJ_={},cum=(lJ_.initialized={priority:10,callback:function(p){p.injector.resolve(hKD)()}},lJ_);var aJk=function(){},MOH=function(){var p=_.A9("meta_logger_impl");
p||(p=new aJk,_.ox("meta_logger_impl",p));return p},DGm=function(){MOH().csiSubscriptionKey=lvM("meta_logging_csi_event",function(p){var x=p.timerName;
if(p=p.timelineData){_.Yv(x,{startTime:p.startTime},x);p.infos&&_.uA(p.infos,x);for(var F=_.a(Object.keys(p.ticks)),N=F.next();!N.done;N=F.next())N=N.value,_.wH(N,p.ticks[N],x)}})};
aJk.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&MAE(this.csiSubscriptionKey)};var fJH={},KVa=(fJH.initialized={priority:10,callback:function(){DGm()}},fJH);var q__=function(p,x){this.innertubeClientName=p;this.JSC$15925_prefCookie=x};
q__.prototype.record=function(){if(_.S("web_li_record_binary_eval_tick")){var p=_.W5("rsef_dpj");var x=_.W5("rses_dpj");p=p!==void 0&&x!==void 0?Math.round(p-x):void 0;if(p!==void 0&&p>0){x=_.Mq(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var F=this.poolSize;if(!(x.valuesSeen>=1E9)){if(x.valuesSample.length<F)x.valuesSample.push(p);else{var N=Math.floor(Math.random()*(x.valuesSeen+1));N<F&&(x.valuesSample[N]=p)}x.valuesSeen+=1}_.a3(this.storagePrefix+"-"+this.innertubeClientName,
x,2592E3);p=x.valuesSample;x=wok(p);p=p.length<5?void 0:x<400?1:x<1700?2:3;p!==void 0&&(this.JSC$15925_prefCookie.set(this.cookiePrefix+this.innertubeClientName,p),this.JSC$15925_prefCookie.save())}}else _.D_(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$15925_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$15925_prefCookie.save()};
q__[UP]=[zd,Ihm];var ZnH=function(){q__.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.E(ZnH,q__);var GAH=!1;var tOH=new _.iE("PAGE_LOAD_TIME_TOKEN");var dG8=new _.iE("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var kG=function(p,x){this.JSC$15948_storeWithEntities=p;this.JSC$15948_commandHandler=x;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
kG.prototype.start=function(){this.JSC$15948_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
kG.prototype.observeDownloadingEntities=function(){var p=_.wf$(this.JSC$15948_storeWithEntities.getState().entities).map(function(N){return Gvp(N)});
if(p.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var x=_.xl({openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:g8p()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.ez(_.JG("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}});this.JSC$15948_commandHandler.resolveCommand(x)}this.downloadingEntities=p}else if(this.downloadingEntities.length){var F=Y9H(this.JSC$15948_storeWithEntities.getState().entities).map(function(N){return Gvp(N)});
this.downloadingEntities.filter(function(N){return F.includes(N)}).length&&(p=_.xl({openPopupAction:vP6()}),this.JSC$15948_commandHandler.resolveCommand(p));
this.downloadingEntities=[]}};
kG[UP]=[DX,_.RD];var vdX;_.UC=function(p,x,F,N,h,c,M,f){this.JSC$15951_playerApiPromise=p;this.JSC$15951_commandHandler=x;this.JSC$15951_screenManager=F;this.offlineWebClientEligibility=N;this.JSC$15951_prefStorage=h;this.JSC$15951_actionRouter=c;this.entityTypeMap=M;this.JSC$15951_persistentStorePromiseAccessor=f;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
vdX=function(){var p=_.J().resolve(_.UC),x;_.D(function(F){if(F.nextAddress==1)return p.downloadFailureListenerBound?F.return():_.q(F,p.JSC$15951_playerApiPromise,2);x=F.yieldResult;x.addEventListener("onOfflineOperationFailure",function(N){if(N.failureReason&&N.entityKey&&N.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(N.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var h=_.h$(N.entityKey).entityId;h&&p.JSC$15951_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
h)}else if(_.S("kevlar_woffle")){h=p.JSC$15951_commandHandler;var c=h.resolveCommand;N=N.failureReason;var M=_.JG("TRANSFER_FAILED",void 0,"Download failed");N==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(M=_.JG("STORAGE_FULL",void 0,"Storage full"));c.call(h,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.ez(M),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
p.downloadFailureListenerBound=!0;_.JB(F)})};
_.UC.prototype.deleteVideo=function(p,x){var F=this,N,h,c;return _.D(function(M){if(M.nextAddress==1)return _.q(M,F.JSC$15951_playerApiPromise,2);N=M.yieldResult;c={offlineLoggingData:{offlineDeleteReason:(h=x)!=null?h:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.q(M,N.queueOfflineAction(p,F.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",c),0)})};
_.UC.prototype.pauseVideoDownload=function(p){var x=this,F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,x.JSC$15951_playerApiPromise,2);F=N.yieldResult;F.pauseVideoDownload(p);_.JB(N)})};
_.UC.prototype.resumeVideoDownload=function(p){var x=this,F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,x.JSC$15951_playerApiPromise,2);F=N.yieldResult;return _.q(N,F.resumeVideoDownload(p),0)})};
_.UC[UP]=[_.Ui,_.RD,_.Zy,dG8,Nb,Tv,oeZ,ln];var Jum=new _.iE("DOWNLOAD_STATE_STORE_TOKEN");var CGX=function(p,x){this.JSC$15970_persistentStorePromiseAccessor=p;this.store=x;this.upliftCompletionResolver=new _.FT},Ede=function(){var p=_.J().resolve(S_H),x;
_.D(function(F){switch(F.nextAddress){case 1:if(p.upliftImplPromise)return F.return(p.upliftImplPromise);_.KM(F,2);p.upliftImplPromise=ruH(p);return _.q(F,p.upliftImplPromise,4);case 4:p.upliftCompletionResolver.resolve();_.ub(F,3);break;case 2:throw x=_.v9(F),p.upliftCompletionResolver.reject(x),x;case 3:return F.return(p.upliftImplPromise)}})},ruH=function(p){var x,F,N;
return _.D(function(h){switch(h.nextAddress){case 1:return _.nt("LOGGED_IN")?_.q(h,p.JSC$15970_persistentStorePromiseAccessor(),2):h.return();case 2:x=h.yieldResult;if(!x)return _.wH("vdeur"),h.return();_.wH("vdeus");_.KM(h,3);return _.q(h,Xea(x),5);case 5:F=h.yieldResult;p.store.dispatch(CxE(F));x.observe(function(c){S9B(p.store,c)});
_.ub(h,4);break;case 3:throw N=_.v9(h),_.wH("vdeur"),N;case 4:_.wH("vdeuc"),_.JB(h)}})},Xea=function(p){var x;
return _.D(function(F){if(F.nextAddress==1)return _.q(F,L0z(p),2);x=F.yieldResult;return F.return(x.reduce(function(N,h){if(!h.data||!h.key||!h.entityType)return N;N[h.entityType]||(N[h.entityType]={});N[h.entityType][h.key]=h.data;return N},{}))})};
CGX[UP]=[ln,_.Q_];var S_H;S_H=new _.iE("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.iZ=new _.iE("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var Ij=function(p,x){this.JSC$15973_persistentStorePromiseAccessor=p;this.transportService=x};
Ij.prototype.refresh=function(){var p=this,x,F,N,h;return _.D(function(c){if(c.nextAddress==1)return _.nt("LOGGED_IN")?_.q(c,p.JSC$15973_persistentStorePromiseAccessor(),2):c.return();if(c.nextAddress!=3)return(x=c.yieldResult)?_.q(c,XoB(x),3):c.return();if((F=c.yieldResult)&&!(Number(F.data.refreshTimestampMs||0)<(0,_.Lf)()))return c.return();N={browseId:"SPaccount_downloads"};h=_.Ru(pP);_.AY(p.transportService,N,h).then(function(M){var f;if(x&&(M==null?void 0:(f=M.responseContext)==null?void 0:
f.maxAgeSeconds)!==0){var K;f=(M==null?void 0:(K=M.responseContext)==null?void 0:K.maxAgeSeconds)||604800;K=String(Math.floor((0,_.Lf)())+f*1E3);x.put("service:downloads_settings:fallback",new _.lp({innertubeResponse:M,refreshTimestampMs:K}))}});
_.JB(c)})};
Ij[UP]=[_.OC,_.SV];var $G=function(p,x){this.JSC$15977_playerPromise=p;this.store=x;this.started=!1};
$G.prototype.start=function(){var p=this,x;return _.D(function(F){if(F.nextAddress==1)return p.started?F.return():_.q(F,p.JSC$15977_playerPromise,2);x=F.yieldResult;x.addEventListener("onOrchestrationBecameLeader",p.updateIsLeader.bind(p,!0));x.addEventListener("onOrchestrationLostLeader",p.updateIsLeader.bind(p,!1));if(x.isOrchestrationLeader)p.updateIsLeader(x.isOrchestrationLeader());else{var N=new _.qE("Function isOrchestrationLeader is undefined",{"player.isReady":x.isReady(),"player.playVideo":x.playVideo?
"defined":"undefined"});_.zj(N);p.updateIsLeader(!1)}p.started=!0;_.JB(F)})};
$G.prototype.updateIsLeader=function(p){this.store.dispatch(_.F4({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:p}}))};
$G[UP]=[_.Ui,_.Q_];var gd8=function(p,x){this.networkStatusManager=p;this.JSC$15980_prefStoragePromise=x;this.redirectsToPreload=["https://youtube.com"]},QUH=function(){var p=_.J().resolve(gd8),x,F,N,h,c,M;
_.D(function(f){switch(f.nextAddress){case 1:return _.q(f,p.JSC$15980_prefStoragePromise,2);case 2:x=f.yieldResult;if(!(F=x)){f.jumpTo(3);break}return _.q(f,x.get("yt-redirect-prefetch-id"),4);case 4:F=f.yieldResult;case 3:if(F||!p.networkStatusManager.isNetworkAvailable())return f.return();N={cache:"reload",redirect:"manual"};h=_.a(p.redirectsToPreload);c=h.next();case 5:if(c.done){if(!x){f.jumpTo(0);break}return _.q(f,x.set("yt-redirect-prefetch-id",!0,86400),0)}M=c.value;_.KM(f,8);return _.q(f,
_.Mm.fetch(M,N),10);case 10:_.ub(f,6);break;case 8:_.v9(f);case 6:c=h.next(),f.jumpTo(5)}})};var eU=function(p){p?(this.container=p,this.containerWasInjected=!0):this.containerWasInjected=!1};
eU.prototype.openDialog=function(p,x,F){var N=this,h;return _.D(function(c){(h=N.container)==null||h.openDialog(p,x,F);_.JB(c)})};
eU.prototype.closeDialog=function(){var p=this,x;return _.D(function(F){(x=p.container)==null||x.closeDialog();_.JB(F)})};
eU.prototype.isDialogOpen=function(){var p=this,x,F;return _.D(function(N){return N.return((F=(x=p.container)==null?void 0:x.isDialogOpen())!=null?F:!1)})};
eU[UP]=[_.Bw(VyD)];_.zKX=new _.iE("POPUP_CONTROLLER_TOKEN");var sUm=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
sUm.prototype.registerPanel=function(p,x){if(p){this.panelMap.set(p,x);var F=this.pendingPanelResolvers.get(p);F&&(F.resolve(x),this.pendingPanelResolvers.delete(p))}};
sUm.prototype.getPanel=function(p){var x=this,F;return _.D(function(N){return(F=x.panelMap.get(p))?N.return(F):N.return(nd8(x,p))})};
var nd8=function(p,x){var F,N;return _.D(function(h){if(F=p.pendingPanelResolvers.get(x))return h.return(F.promise);N=new _.FT;p.pendingPanelResolvers.set(x,N);return h.return(N.promise)})},yue=function(p){sUm.call(this);
var x=this;this.popupController=p;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return x.panelMap.size}}};
_.E(yue,sUm);_.l=yue.prototype;_.l.getReloadContinuation=function(p){var x=this,F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,x.getPanel(p),2);F=N.yieldResult;return N.return(F.getReloadContinuation())})};
_.l.showPanel=function(p,x,F,N,h,c,M){var f=this,K,t,d,v;return _.D(function(C){if(C.nextAddress==1){M&&f.updatePanelContinuationDatas.set(p,M);if((K=F)==null?0:(t=K.engagementPanelPopupPresentationConfig)==null?0:t.popupType){d=F.engagementPanelPopupPresentationConfig.popupType;h===void 0&&(h=document.body);var X=C.return,Q=f.popupController,b=Q.openPopup;a:switch(d){case "PANEL_POPUP_TYPE_DIALOG":var A="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":A="DROPDOWN";break a;default:throw Error("cj`"+
d);}return X.call(C,b.call(Q,p,x,A,h))}return _.q(C,f.getPanel(p),2)}v=C.yieldResult;(x||c)&&v.updatePanel(x,!1,N,c);v.showPanel(N);_.JB(C)})};
_.l.hidePanel=function(p){var x=this,F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,x.getPanel(p),2);F=N.yieldResult;F.hidePanel();x.popupController.closePopup(p);_.JB(N)})};
_.l.isVisible=function(p,x){var F=this,N;return _.D(function(h){if(h.nextAddress==1)return x&&!F.panelMap.has(p)?h.return(!1):_.q(h,F.getPanel(p),2);N=h.yieldResult;return h.return(N.isVisible())})};
_.l.updatePanel=function(p,x,F,N,h,c){F=F===void 0?!1:F;var M=this,f;return _.D(function(K){if(K.nextAddress==1){if(!x&&!h)return K.return();c&&M.updatePanelContinuationDatas.set(p,c);return _.q(K,M.getPanel(p),2)}f=K.yieldResult;f.updatePanel(x,F,N,h);_.JB(K)})};
_.l.registerPanelContent=function(p,x){p&&this.panelContentMap.set(p,x)};
_.l.getPanelContent=function(p){return this.panelContentMap.get(p)};
_.l.getUpdatePanelContinuationData=function(p){return this.updatePanelContinuationDatas.get(p)};
yue[UP]=[_.zKX];var pK=function(p,x){this.innertubeTransportService=p;this.JSC$15996_screenManager=x},bn_=function(p){var x;
return!((x=p.panelLoadingStrategy)==null||!x.requestTemplate)};
pK.prototype.makeRequest=function(p){var x=this,F,N;return _.D(function(h){switch(h.nextAddress){case 1:if(!bn_(x)){h.jumpTo(2);break}_.KM(h,3);return _.q(h,_.w5(x.innertubeTransportService,p),5);case 5:return F=h.yieldResult,F?h.return(F.content):(_.zj(Error("dj")),h.return(void 0));case 3:N=_.v9(h),_.zj(N);case 2:return h.return(void 0)}})};
pK.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
pK.prototype.execute=function(p){var x=this,F,N,h,c,M,f,K,t,d,v;return _.D(function(C){if(C.nextAddress==1){F=p;N=F.data;h=F.fallbackVe;c=F.parentVe;M=F.createScreenConfig;f=F.renderFn;K=F.command;x.panelLoadingStrategy=N;var X,Q,b=((X=x.panelLoadingStrategy)==null?0:X.screenVe)?(Q=x.panelLoadingStrategy)==null?void 0:Q.screenVe:h;b&&_.F8(x.JSC$15996_screenManager,b,c,M);return(t=x.getContent())?_.q(C,f(t),2):C.jumpTo(2)}return C.nextAddress!=4?bn_(x)?_.q(C,x.makeRequest(K),4):C.return():(v=d=C.yieldResult)?
_.q(C,f(v),0):C.return()})};
pK[UP]=[_.SV,_.Zy];var xr=function(){};
xr.prototype.getContainer=function(){return _.pc()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
xr.prototype.openSheet=function(p,x){var F=this,N,h,c,M,f,K;return _.D(function(t){switch(t.nextAddress){case 1:return N={stack:[],error:void 0,hasError:!1},_.KM(t,2,3),h=_.LH,_.q(t,F.isSheetOpen(),5);case 5:c=t.yieldResult;_.WT(N,_.RG(h));if(c&&!_.S("delay_sheet_open_killswitch")){if(x&&F.currentTarget===x)return(M=F.getContainer())==null||M.closeSheet(),t.return();F.pendingData={data:p,target:x};return t.return()}p.viewModel&&(p={viewModel:p.viewModel});(f=F.getContainer())==null||f.openSheet(p,
x);F.currentTarget=x;case 3:_.ZC(t);_.HT(N);_.dn(t,0);break;case 2:K=_.v9(t),N.error=K,N.hasError=!0,t.jumpTo(3)}})};
xr.prototype.closeSheet=function(){var p=this,x;return _.D(function(F){if(F.nextAddress==1)return _.q(F,(x=p.getContainer())==null?void 0:x.closeSheet(),2);if(F.nextAddress!=4)return p.currentTarget=void 0,!p.pendingData||_.S("delay_sheet_open_killswitch")?F.jumpTo(0):_.q(F,p.openSheet(p.pendingData.data,p.pendingData.target),4);p.pendingData=void 0;_.JB(F)})};
xr.prototype.isSheetOpen=function(){var p=this,x,F;return _.D(function(N){return N.return((F=(x=p.getContainer())==null?void 0:x.isSheetOpen())!=null?F:!1)})};var KP=window.documentPictureInPicture;var Aum=new _.iE("APP_ROOT");var x3B=_.B$(["dark"]),Fvd=_.B$(["system-icons"]),NtE=_.B$(["typography"]),hjp=_.B$(["lang"]),lir=_.B$(["style"]),IBm=_.B$(["dir"]),$Ap=_.B$(["rounded-container"]),eFp=_.B$(["style"]),aiE=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],Fz=function(p){this.JSC$16008_clientRoot=p;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
Fz.prototype.openWindow=function(p){var x=this,F,N;return _.D(function(h){if(h.nextAddress==1)return window.documentPictureInPicture&&_.bd()&&!x.currentPipWindow?_.q(h,(F=KP?KP:null)==null?void 0:F.requestWindow(p),2):h.return(!1);if(h.nextAddress!=3){N=h.yieldResult;if(!N)return h.return(!1);N.addEventListener("pagehide",function(){uDm(x)});
N.addEventListener("resize",x.handlePipWindowResize);x.pipWindowResizeDelay=new _.iL(function(){x.currentPipWindow&&_.lA(x.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.q1(x.currentPipWindow.innerWidth,x.currentPipWindow.innerHeight)])},N);
cbr(N);D3Z(N);return _.q(h,ivZ(N),3)}if(!RFE())return h.return(!1);x.currentPipWindow=N;x.JSC$16008_eventForwarder=MK6(N,x.JSC$16008_clientRoot);x.pipWindowResizeDelay.start();return h.return(!0)})};
Fz.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var uDm=function(p){if(p.currentPipWindow){var x,F;(x=KP?KP:null)==null||(F=x.window)==null||F.close();p.currentPipWindow.removeEventListener("resize",p.handlePipWindowResize);var N;(N=p.pipWindowResizeDelay)==null||N.dispose();p.pipWindowResizeDelay=void 0;var h;(h=p.JSC$16008_eventForwarder)==null||h.stop();p.JSC$16008_eventForwarder=void 0;x=_.a(p.onCloseCallbacks);for(F=x.next();!F.done;F=x.next())F=F.value,F();p.onCloseCallbacks=[];p.currentPipWindow=null}};
Fz.prototype.getWindow=function(){return this.currentPipWindow};
var Y_D=function(p,x){var F;(F=p.onCloseCallbacks)==null||F.push(x)};
_.R8.Object.defineProperties(Fz.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Fz[UP]=[Aum];var weH=new _.iE("PICTURE_IN_PICTURE_CONTROLLER");var fid=function(p,x){this.lengthY=this.lengthX=0;this.lengthX=x.x-p.x;this.lengthY=x.y-p.y};var GGm=function(){},i2c=function(p,x){var F;
(F=p.headerElement)==null||F.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:x}))};var VOD=function(){};
VOD.prototype.openPopup=function(p,x,F,N){var h=this,c;return _.D(function(M){if(!h.container)return M.return();c={openPopupAction:{popup:x,popupType:F,uniqueId:p}};return M.return(h.container.handleOpenPopupAction(c,N))})};
VOD.prototype.closePopup=function(p){this.container&&this.container.closePopup(p)};var WVD=function(){this.openTunnels=new Map},KCZ=function(p,x,F){if(tKE(F)){F={handleEvent:function(M){x&&!x.closed&&typeof x.postMessage==="function"&&M&&M.origin&&M.source===x&&M.data&&M.data.action==="gcl_setup"&&x.postMessage({action:"gcl_transfer",
gadSource:2},M.origin)}};
for(var N=_.a(p.openTunnels),h=N.next();!h.done;h=N.next()){var c=_.a(h.value);h=c.next().value;c=c.next().value;if(h.closed)try{window.removeEventListener("message",c),p.openTunnels.delete(h)}catch(M){_.zj(M)}}x&&p.openTunnels.size<15&&(p.openTunnels.set(x,F),window.addEventListener("message",F))}};var HnD=function(){this.clientParams=new Map},Int=function(p){for(var x=_.a(p.clientParams.keys()),F=x.next();!F.done;F=x.next())F=F.value,F.startsWith("yt-mini-app-share")&&p.clientParams.delete(F)};var mGH=function(p,x){_.Jm.call(this);var F=this;this.shortsController=p;this.storeWithShorts=x;p=_.qJ(this.storeWithShorts,_.PeE,function(N){if(N){var h,c=(h=F.shortsController.getRoot())==null?void 0:h.getPlayer(),M;(h=(M=F.shortsController.alternativePlayerContainerElement)==null?void 0:M.getPlayerContainer())&&(c==null||c.appendTo(h))}else{var f;M=(f=F.shortsController.alternativePlayerContainerElement)==null?void 0:f.getPlayerContainer().querySelector("#player");h=F.shortsController.activeIndex;
(f=(c=F.shortsController.getRoot())==null?void 0:c.querySelector('ytd-reel-video-renderer[id="'+h+'"] #player-container'))&&(M==null||M.appendTo(f,void 0,!0))}});
this.addOnDisposeCallback(p)};
_.E(mGH,_.Jm);var N_=function(p,x,F,N,h){var c=this;this.storeWithShorts=p;this.ephemeralResponseStore=x;this.store=F;this.innertubeTransportService=N;this.innertubeTransportLoader=h;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.g5(_.JI);this.isShortsPipActive=_.g5(_.CE);this.nextReelVe=_.vt(56921);this.prevReelVe=_.vt(56922);this.backButtonVe=_.vt(22156);this.TEST_ONLY={getActiveModules:function(){return c.activeModules}}},wJB,GJI,odH;
N_.prototype.initOrDisposeActiveModules=function(p){p?this.activeModules.push(new mGH(this,this.storeWithShorts)):(_.d$H(this.activeModules),this.activeModules.length=0)};
N_.prototype.getRoot=function(){return this.rootElement};
N_.prototype.setActiveIndex=function(p){this.activeIndex=p};
_.ncJ=function(p,x){var F,N,h,c,M,f;return _.D(function(K){switch(K.nextAddress){case 1:return F=new cC,(N=F.JSC$11762_getStoreKey(x))&&p.ephemeralResponseStore.has(N)?_.q(K,p.ephemeralResponseStore.get(N),7):_.q(K,odH(p,x),4);case 4:h=K.yieldResult;if(!N){K.jumpTo(3);break}c=I4(h,3600);return _.q(K,p.ephemeralResponseStore.put(N,new _.lp(c)),3);case 7:h=(M=K.yieldResult)==null?void 0:_.ai(M);case 3:return h.replacementEndpoint&&(f=_.r(h.replacementEndpoint,_.dX))&&h.sequenceContinuation&&(f.sequenceParams=
h.sequenceContinuation),K.return(h)}})};
wJB=function(p,x){x=(new aj).JSC$11762_getStoreKey(x);return!!x&&p.ephemeralResponseStore.has(x)};
GJI=function(p,x,F){var N,h,c,M,f;_.D(function(K){if(K.nextAddress==1){N=new aj;h=N.JSC$11762_getStoreKey(x);if(!h)return K.return();if(F.reelWatchSequenceResponse)return c=I4(F.reelWatchSequenceResponse,3600),p.ephemeralResponseStore.put(h,new _.lp(c)),K.jumpTo(0);if(!p.ephemeralResponseStore.has(h))return K.jumpTo(0);f=F;return _.q(K,p.ephemeralResponseStore.get(h),4)}f.reelWatchSequenceResponse=(M=K.yieldResult)==null?void 0:_.ai(M);_.JB(K)})};
odH=function(p,x){var F=F===void 0?{}:F;var N,h,c;return _.D(function(M){switch(M.nextAddress){case 1:if(p.innertubeTransportService){N=p.innertubeTransportService;M.jumpTo(2);break}if(!p.innertubeTransportLoader){_.yL(Error("fj"));M.jumpTo(2);break}return _.q(M,p.innertubeTransportLoader(),4);case 4:N=M.yieldResult;case 2:return _.q(M,(h=N)==null?void 0:_.w5(h,x,F),5);case 5:return c=M.yieldResult,M.return(c)}})};
_.R8.Object.defineProperties(N_.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
N_[UP]=[vcn,_.h7,DX,_.Bw(_.SV),_.Bw(goj)];_.On8=new _.iE("STORAGE_MANAGER_TOKEN");var jUH=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},LVc;
jUH.prototype.enqueue=function(p,x){x===1?this.currentPersistentToast=p:this.queue.push(p);this.openToast()};
jUH.prototype.openToast=function(){var p;(p=this.currentToast)!=null&&p.opened||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.PGm=new _.iE("TOAST_MANAGER_TOKEN");var Tx8;_.BxH=_.mO(function(p){return _.Z("basic-content-view-model",{class:_.$L("ytBasicContentViewModelHost",_.GD(p.className))},_.Z(_.D9,{cond:function(){return p.data().headline},
then:function(x){return _.Z("div",{class:"ytBasicContentViewModelHeadline"},_.Z(_.KQ,{text:x}))}}),_.Z(_.ft,{each:function(){return p.data().paragraphs||[]},
keyBy:"INDEX"},function(x){return _.Z("div",{class:"ytBasicContentViewModelParagraph"},_.Z(_.D9,{cond:function(){var F=x();return!!(F.header||F.customHeader||F.headline)},
then:function(){return _.Z(Tx8,{paragraph:x})}}),_.Z(_.D9,{cond:function(){return x().asset||x().text},
then:function(){return _.Z("div",{class:"ytBasicContentViewModelParagraphContent"},_.Z(_.D9,{cond:function(){return x().asset},
then:function(F){return _.Z("div",{class:"ytBasicContentViewModelParagraphAsset"},_.Z(_.Es,{data:F},{contentPreviewImageViewModel:_.DF}))}}),_.Z(_.D9,{cond:function(){return x().text},
then:function(F){return _.Z("div",{class:"ytBasicContentViewModelParagraphText"},_.Z(_.KQ,{text:F}))}}))}}))}))},"Ld");
Tx8=_.mO(function(p){var x=p.paragraph;return _.Z(_.TG,null,_.Z(_.D9,{cond:function(){return x().headline},
then:function(F){return _.Z(_.KQ,{text:F,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.Z(_.Es,{data:function(){return x().header||x().customHeader}},{sectionHeaderViewModel:function(F){return _.Z(_.RF,{data:F.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Md");var kGc=_.mO(function(p){return _.Z("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.Z(_.D9,{cond:function(){return p.expanded()},
then:function(){return _.Z("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.Z("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.Z(_.D9,{cond:function(){return p.data().expandedTitleImage},
then:function(x){return _.Z("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.Z(_.VE,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:x}))}}),_.Z("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.Z("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.Z(_.KQ,{text:function(){return p.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.Z(_.KQ,{text:function(){return p.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.Z(_.KQ,{text:function(){return p.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.Z("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.Z(_.Es,{data:function(){return p.data().infoButton}},{buttonViewModel:_.nV}),_.Z(_.Es,{data:function(){return p.data().collapseButton}},{buttonViewModel:function(x){return _.Z(_.nV,{data:x.data,
onClick:function(){var F;(F=p.expandedCallback)==null||F.call(p,!1)}})}})))},
else:function(){return _.Z(RKk,Object.assign({},p))}}))},"Nd"),UGt=_.mO(function(p){return _.Z("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.Z(_.D9,{cond:function(){return p.data().collapsedLabelImage},
then:function(x){return _.Z("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.Z(_.VE,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:x,alt:""}))}}),_.Z(_.KQ,{text:function(){return p.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Od"),RKk=_.mO(function(p){var x=_.h0(function(){var F;
return void((F=p.expandedCallback)==null?void 0:F.call(p,!0))});
return _.Z("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":x},_.Z("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.Z(_.D9,{cond:function(){return p.data().collapsedImage},
then:function(F){return _.Z("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.Z(_.VE,{width:16,height:16,data:F,alt:""}))}}),_.Z(_.D9,{cond:function(){return p.data().showLeadingCollapsedLabel},
then:function(){return _.Z(UGt,Object.assign({},p))}}),_.Z("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.Z(_.KQ,{text:function(){return p.data().collapsedTitle}}))),_.Z("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.Z(_.D9,{cond:function(){return!p.data().showLeadingCollapsedLabel},
then:function(){return _.Z(UGt,Object.assign({},p))}}),_.Z(_.Es,{data:function(){return p.data().infoButton}},{buttonViewModel:_.nV}),_.Z(_.Es,{data:function(){return p.data().expandButton}},{buttonViewModel:function(F){return _.Z(_.nV,{data:F.data,
onClick:function(){var N;(N=p.expandedCallback)==null||N.call(p,!0)}})}})))},"Pd");var ink=_.mO(function(p){var x=_.a(_.ct(function(){return p.data().initiallyExpanded})),F=x.next().value,N=x.next().value,h,c=(h=_.J().resolve(_.Bw(_.AD)))==null?void 0:h(),M=function(){var f=p.data().colorData;
if(f)return c?f==null?void 0:f.darkColorPalette:f==null?void 0:f.lightColorPalette};
return _.Z("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.a4({"background-color":function(){var f=M();return(f==null?0:f.section2Color)?_.QK(f.section2Color):""}})},_.Z(_.Es,{data:function(){return p.data().header}},{expandableMetadataHeaderViewModel:function(f){return _.Z(kGc,{data:f.data,
expanded:function(){return!!F()},
expandedCallback:function(K){N(K)}})}}),_.Z(_.D9,{cond:function(){return F()},
then:function(){return _.Z("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.Z(_.Es,{data:function(){return p.data().expandedContent}},{horizontalShelfViewModel:function(f){return _.Z(_.SJ,{data:f.data,
includeMargin:!0,forceNarrowLayout:!0,palette:M})},
videoSummaryContentViewModel:function(f){return _.Z(Uwm,{data:f.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(f){return _.Z(q5,{data:f.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(f){return _.Z(_.BxH,{data:f.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.Z(_.Es,{data:function(){return p.data().expandedBottomButtons}},{buttonViewModel:function(f){return _.Z("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.Z(_.nV,{data:f.data}))}}))}}))},"Qd");var IJH=_.mO(function(p){var x=p.text;var F=p.marqueeSpacing;var N=p.scrollDelay;var h=p.scrollDuration;var c=p.enableMarqueeScroll;p=p.large;var M=_.a(_.hu(!1,void 0,"kfNqfd")),f=M.next().value,K=M.next().value,t=_.a(_.hu(0,void 0,"bYgZbf"));M=t.next().value;var d=t.next().value,v=_.oc();t=_.oc();var C=_.oc(),X=_.J().resolve(_.YL);_.rx(function(){if(c()){var A=C.value.getBoundingClientRect().width,Y=v.value.getBoundingClientRect().width;if(A>Y){var O=(X==="ltr"?-1:1)*(A+(F?F():16));Promise.resolve().then(function(){K(!0);
d(O)})}}});
var Q={},b={};return _.Z("marquee-scroll",{class:_.$L("ytMarqueeScrollHost",(Q.ytMarqueeScrollHostLarge=p,Q)),el:v},_.Z("div",{id:"marquee-scroll-inner-container",class:_.$L("ytMarqueeScrollInnerContainer",(b.ytMarqueeScrollAnimationEnabled=function(){return f()},b)),
el:t,style:_.a4({gap:F?(0,_.v3)(F):"16px","animation-duration":h?YFD(h):"16s","animation-delay":N?YFD(N):"3s","--marquee-translate":(0,_.v3)(M)})},_.Z("span",{el:C,dir:"auto"},_.Z(_.KQ,{text:x,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.Z(_.D9,{cond:f,then:function(){return _.Z("span",{"aria-hidden":"true",dir:"auto"},_.Z(_.KQ,{text:x,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Rd");_.$G8=_.mO(function(p){var x=p.data;var F=p.overlayDensity;p=_.h0(function(){x().onTapCommand&&_.su(x().onTapCommand);return!1});
var N=_.ur(),h={};return _.Z("reel-sound-metadata-view-model",{class:_.$L("ytReelSoundMetadataViewModelHost",(h.ytReelSoundMetadataViewModelHostLarge=function(){return(F==null?void 0:F())===1},h)),
"on:click":p,tabindex:0,role:"button","on:keydown":N},_.Z("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.Z(_.D9,{cond:function(){return x().musicIcon},
then:function(c){return _.Z(_.VE,{data:c,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.Z("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.Z(IJH,{text:function(){return x().soundMetadata},
enableMarqueeScroll:function(){return!!x().enableMarqueeScroll},
large:function(){return(F==null?void 0:F())===1}}))))},"Sd");var eK8,pwt,ht,hak,c98,N1X,D$D,MrH;eK8=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];pwt=_.Ud("wil_icon_max_concurrent_fetches",Infinity);
ht=function(p,x,F){var N=this;this.iconSet=p;this.appDirection=x;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Mm.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.S("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.S("wil_icon_network_first");this.renderWhenIdle=_.S("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.S("wil_icon_load_immediately");this.isPurging=!1;p=function(){N.cacheStorageAvailable&&(N.cacheStorageAsync=_.Mm.caches.open("yt-icons").then(function(c){return N.cacheStorageSync=c}).catch(function(){N.cacheStorageAvailable=!1}))};
F=(F==null?void 0:F())||{};F=_.a(Object.entries(F));for(x=F.next();!x.done;x=F.next()){var h=_.a(x.value);x=h.next().value;h=h.next().value;h=N$(h);x$H(h);this.iconCache[x]=h.cloneNode(!0)}this.isPurging=FgX(this);this.isPurging instanceof Promise?this.isPurging.then(p):p()};
_.HDw=function(p,x){var F=p.resolveIcon(x);return F?p.renderingMode===1?N1X(p,F,p.renderingMode):(x=p.iconCache[F.url])?(x=x.cloneNode(!0),hak(p,x),N1X(p,F,p.renderingMode,x)):_.l9H(p,F).then(function(N){var h=N?0:1;hak(p,N);return N1X(p,F,h,N)}):(_.s$(new _.qE("Icon not found",{iconShape:x})),function(){})};
hak=function(p,x){if(x){p.counter+=1;p="_yt"+p.counter;x=[x].concat(_.se(x.getElementsByTagName("*")));x=_.a(x);for(var F=x.next();!F.done;F=x.next())if(F=F.value,F.tagName==="style"&&F.textContent)F.textContent=c98(F.textContent,p,!0);else for(var N=_.a(F.attributes),h=N.next();!h.done;h=N.next()){h=h.value;h.name==="id"&&(h.value+=p);["mask","fill","clip-path"].includes(h.name)&&(h.value=c98(h.value,p));if(h.name==="style"){var c=F.style;try{c.cssText=c98(c.cssText,p,!0)}catch(d){var M=void 0,f=
void 0,K=void 0,t=void 0;lw({error:((M=d)==null?void 0:(K=(f=M).toString)==null?void 0:K.call(f))||"",el:F.outerHTML,style:!!c,cssText:(t=c)==null?void 0:t.cssText})}}h.name==="xlink:href"&&(h.value=h.value.replace(/#(.*)/,"#$1"+p))}}};
c98=function(p,x,F){var N=/url\(["']?#(.*?)["']?\)/;(F===void 0?0:F)&&(N=/url\(["']?#(.*?)["']?\)/g);return p.replace(N,"url(#$1"+x+")")};
N1X=function(p,x,F,N){return function(h,c){var M=Object.assign({},{iconColor:"currentcolor",iconWidth:x.size+"px",iconHeight:x.size+"px",iconDisplay:"block"},c);c=_.KH("DIV");var f=M.iconColor,K=M.iconFilter;M="width: "+M.iconWidth+"; height: "+M.iconHeight+"; display: "+M.iconDisplay+";";K&&(M+=" filter: "+K+";");F===0&&(M+=" fill: "+f+";");F===1&&(K=x.url,M+=" -webkit-mask: url("+K+") no-repeat center / cover; mask: url("+(K+") no-repeat center / cover; background-color: ")+f);x.allowMirroring&&
p.appDirection==="rtl"&&(M+=" transform: scale(-1, 1); transform-origin: center center;");c.setAttribute("style",M);F===0&&N&&c.appendChild(N);h.appendChild(c)}};
_.l9H=function(p,x){var F,N,h;return _.D(function(c){F=function(M){return oM(M)};
N=x.url;if(!a9D(N))throw Error("gj");h=MrH(p,N);return c.return(h.then(function(M){return M.clone().text()}).then(function(M){var f=F(M);
M=x.size;var K=_.KH("DIV");_.ig(K,f);f=_.qc(K.firstElementChild!==void 0?K.firstElementChild:_.DMl(K.firstChild,!0));M=x$H(f,M);p.iconCache[N]=M.cloneNode(!0);delete p.responsePromises[N];return M}).catch(function(){}))})};
D$D=function(p){var x,F=(x=p.requestAninmationFrameResolver)==null?void 0:x.promise;F||(p.requestAninmationFrameResolver=new _.FT,F=p.requestAninmationFrameResolver.promise,_.Mm.requestAnimationFrame(function(){var N;(N=p.requestAninmationFrameResolver)==null||N.resolve();p.requestAninmationFrameResolver=null}));
return F};
MrH=function(p,x){var F,N;return _.D(function(h){if(h.nextAddress==1)return p.waitForAnimationFrame?_.q(h,D$D(p),2):h.jumpTo(2);F=p.responsePromises[x];F||(N=function(){var c,M,f;return _.D(function(K){switch(K.nextAddress){case 1:if(!p.cacheStorageAvailable){c=void 0;K.jumpTo(2);break}if(M=p.cacheStorageSync){K.jumpTo(3);break}return _.q(K,p.cacheStorageAsync,4);case 4:M=K.yieldResult;case 3:c=M;case 2:return f=c,p.isNetworkFirstStrategy?K.return(p.fetchAndUpdateCache(x,f).catch(p.getCacheStorageResponse.bind(p,
x,f))):K.return(p.getCacheStorageResponse(x,f).catch(p.fetchAndUpdateCache.bind(p,x,f)))}})},F=p.renderWhenIdle?new Promise(function(c,M){_.vZ(_.E0,function(){N().then(c).catch(M)},10)}):N(),p.responsePromises[x]=F);
return h.return(F.catch(function(c){delete p.responsePromises[x];lw({error:(c==null?0:c.toString)?c.toString():"",url:x});throw c;}))})};
ht.prototype.fetchAndUpdateCache=function(p,x){var F=this;return _.D(function(N){return N.return(f9e(F,p).then(function(h){Kgm(F,p,h,x);return h}))})};
var f9e=function(p,x){var F;return _.D(function(N){if(p.numFetches<pwt)return p.numFetches+=1,N.return(qdt(p,x).finally(function(){--p.numFetches;if(Object.keys(p.queuedResponseResolvers).length){var h=Object.keys(p.queuedResponseResolvers)[0],c=p.queuedResponseResolvers[h];delete p.queuedResponseResolvers[h];c.resolve(f9e(p,h))}}));
F=new _.FT;p.queuedResponseResolvers[x]=F;return N.return(F.promise)})},qdt=function(p,x,F){F=F===void 0?2:F;
var N;return _.D(function(h){N={credentials:"same-origin",priority:"low"};return h.return(_.Mm.fetch(x,N).then(function(c){return c.ok?c:Promise.reject(Error("hj`"+c.status+"`"+c.statusText))}).catch(function(c){if(F>0)return qdt(p,x,F-1);
throw c;}))})},Kgm=function(p,x,F,N){_.D(function(h){return N?h.return(new Promise(function(c){_.vZ(_.E0,function(){var M,f;
return _.D(function(K){switch(K.nextAddress){case 1:if(!p.isNetworkFirstStrategy){M=void 0;K.jumpTo(2);break}return _.q(K,N.match(x).catch(function(){}),3);
case 3:M=K.yieldResult;case 2:if(f=M){K.jumpTo(4);break}return _.q(K,N.put(x,F.clone()).catch(function(t){lw({error:(t==null?0:t.toString)?t.toString():"",url:x})}),4);
case 4:c(),_.JB(K)}})},50)})):h.return()})};
ht.prototype.getCacheStorageResponse=function(p,x){return _.D(function(F){return x?F.return(x.match(p).then(function(N){return N&&N.ok?N:Promise.reject()})):F.return(Promise.reject())})};
var x$H=function(p,x){x===void 0||p.getAttribute("viewBox")||p.setAttribute("viewBox","0 0 "+x+" "+x);p.setAttribute("focusable","false");p.setAttribute("aria-hidden","true");try{p.style.pointerEvents="none",p.style.display="inherit",p.style.width="100%",p.style.height="100%"}catch(h){var F;lw({error:((F=h)==null?0:F.toString)?h.toString():""});try{p.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(c){var N;lw({error:((N=c)==null?0:N.toString)?c.toString():
""})}}return p},a9D=function(p){for(var x=_.a(eK8),F=x.next();!F.done;F=x.next())if(p.startsWith(F.value)&&p.endsWith(".svg"))return!0;
return!1};
ht.prototype.resolveIcon=function(p){return this.iconSet.resolveIcon(p)};
var lw=function(p){_.no(new _.qE("Error in IconManager",p))},FgX=function(p){if(_.S("wil_icons_cache_purge_killswitch"))return!1;
try{var x=_.Mm.localStorage}catch(c){return!1}if(!x||!p.cacheStorageAvailable)return!1;var F=function(c){try{var M;(M=x)==null||M.setItem("yt-icons-last-purged",c.toString())}catch(K){var f;lw({error:((f=K)==null?0:f.toString)?K.toString():""})}},N=Number(x.getItem("yt-icons-last-purged"));
if(!N)return N=new Date,N=N.setDate(N.getDate()-Math.floor(Math.random()*90+1)),F(N),!1;if(function(c,M){c=new Date(c);M=new Date(M);return M.getMonth()-c.getMonth()+12*(M.getFullYear()-c.getFullYear())}(N,Date.now())<3)return!1;
try{return _.Mm.caches.delete("yt-icons").then(function(c){c&&F(Date.now());return c}).catch(function(){return!1}).finally(function(){p.isPurging=!1})}catch(c){var h;
lw({error:((h=c)==null?0:h.toString)?c.toString():""});return!1}};
ht[UP]=[ztm,_.YL,_.Bw(y_D)];_.c4=function(p,x){this.iconManager=p;this.iconsToFetch=x};
_.c4[UP]=[_.pr,_.Bw(nHm)];var ZtH=function(p,x,F){this.requestKey=p;this.y7x=x;this.v8O=F;this.aLK=function(){return new XMLHttpRequest};
this.eGv=void 0;this.o5E=[]};
ZtH.prototype.getLatestChallengeResponse=function(){return this.v8O};
var mcl=function(p,x,F){var N,h,c,M;return _.D(function(f){if(f.nextAddress==1){_.Yv("attestation_challenge_fetch");_.wH("att_fs",void 0,"attestation_challenge_fetch");if(!p.eGv)throw new _.zh(9,"Missing fetcher");return _.q(f,p.eGv(x,F),2)}N=f.yieldResult;c=(h=N)==null?void 0:h.bgChallenge;if(!c)throw new _.zh(15,"Missing field");p.v8O=N;p.o5E.forEach(function(K){K(N)});
M=QZw(c);_.wH("att_fc",void 0,"attestation_challenge_fetch");kiM("attestation_challenge_fetch");return f.return(M)})},MOI=function(p,x){var F,N,h,c,M;
return _.D(function(f){switch(f.nextAddress){case 1:F=new hm(100,3E5,.25,2),N=void 0;case 2:if(!(F.currBackoffCount_<10)){f.jumpTo(4);break}_.KM(f,5);if(!(F.currBackoffCount_>0)){f.jumpTo(7);break}return _.q(f,d36(F.getValue()),7);case 7:return _.q(f,trt(p,x),9);case 9:return h=f.yieldResult,f.return(h);case 5:c=_.v9(f);c instanceof _.zh?N=c:(M=c instanceof Error?c.message:"Unknown",N=new _.zh(9,M));UFj(F);f.jumpTo(2);break;case 4:if(N)throw N;throw new _.zh(9,"Unknown error");}})},trt=function(p,
x){x=nCv(ymI(new sGC,x),p.requestKey);
var F=new _.FT,N=p.aLK();N.open("POST",p.y7x);N.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");N.setRequestHeader("Content-Type","application/json+protobuf");N.onload=function(){if(zhz(N)){var h=VOl(N.responseText);F.resolve(h)}else F.reject(new _.zh(_.Htp($F(N)),N.statusText))};
N.onerror=function(){F.reject(new _.zh(_.Htp($F(N)),N.statusText))};
N.send(x.serialize());return F.promise};var vF8=function(p){this.networkStatusManager=p;this.isDownloaded=gPd===void 0?function(){return!1}:gPd;
this.isReady=!1;this.yR1=d$m(this)},d$m=function(p){var x;
return _.D(function(F){if(F.nextAddress==1)return _.q(F,J9B(),2);if(F.nextAddress!=3)return x=F.yieldResult,_.q(F,fCv(x),3);p.lw=F.yieldResult;Jbd(p.lw).then(function(){p.isReady=!0});
return F.return(p.lw)})},J9X=function(p,x,F){p.lw?(p=p.lw.vy({cz:F,
l3c:!0,f3E:!0}),x.serviceIntegrityDimensions={poToken:p}):_.zj(Error("ij"))};
vF8.prototype.processContext=function(p){var x=this;if(!p.input.match(_.Ru(kHl)))return _.oL();var F=p.innerTubeRequest,N=F.videoId;return!N||this.isDownloaded(F)||this.networkStatusManager&&!this.lw&&!this.networkStatusManager.isNetworkAvailable()?_.oL():this.lw?this.isReady?(J9X(this,F,N),_.oL()):new mF(Jbd(this.lw).then(function(){J9X(x,F,N)})):new mF(this.yR1.then(function(h){return _.D(function(c){if(c.nextAddress==1)return _.q(c,Jbd(h),2);
J9X(x,F,N);_.JB(c)})}))};var COa=new _.iE("WEB_PO_CONTEXT_PROCESSOR");var SdD=function(p,x){var F=this;this.u0p=0;var N;this.kQs=(N=x==null?void 0:x.kQs)!=null?N:window;this.networkStatusManagerPromise=x==null?void 0:x.networkStatusManagerPromise;var h;this.requestKey=(h=x==null?void 0:x.requestKey)!=null?h:_.iO("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var c;this.p1f=(c=x==null?void 0:x.p1f)!=null?c:function(K){return new Yj(K)};
var M;N=(M=x==null?void 0:x.mRO)!=null?M:function(K,t,d){return new ZtH(K,t,d)};
this.bgChallenge=QZw(p.bgChallenge);this.ttlSeconds=zed($q(p.challenge||""));this.mD=N(this.requestKey,_.S("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Mm.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",p);vhB(this.mD);var f;this.g3L=(f=x==null?void 0:x.g3L)!=null?f:function(K){_.qd(F.kQs.document,"visibilitychange",function(){F.kQs.document.visibilityState===
"visible"&&K()})}},EFX=function(p){if(!p.zW){var x={maxAttempts:5,
j8c:p.ttlSeconds*1E3};C5k(p.kQs);p.zW=p.p1f({mD:p.mD,kk:{disable:_.S("html5_web_po_disable_remote_logging"),h8:"aGIf",rYA:rG$("html5_web_po_experiment_ids"),iTe:_.S("wpo_dis_lfdms")?0:1E3},h8f:x,fuX:p.bgChallenge,gSc:SKJ});p.u0p=Date.now();wSD(p.zW,function(){p.u0p=Date.now()});
EFB(p.zW,function(){return _.D(function(N){return N.return(r9m(p))})});
var F=p.gLw.bind(p);p.networkStatusManagerPromise&&p.ttlSeconds>0&&p.networkStatusManagerPromise.then(function(N){N.listen("publicytnetworkstatus-online",F)});
p.g3L(F)}};
SdD.prototype.gLw=function(){if(Date.now()>this.u0p+this.ttlSeconds*1E3){var p;(p=this.zW)==null||YyI(p)}};
var r9m=function(p){if(p.jsO)return p.jsO;if(!p.zW)throw Error("jj");p.jsO=new Ws({zW:p.zW,mD:p.mD,o2P:!0,onError:SKJ});return p.jsO},EhE=function(p,x){p=new SdD(p,x);
EFX(p);r9m(p)};var aP=function(p,x){this.store=p;this.queue=[];this.supportsFocus=_.S("web_ephemeral_actions_focus");x==null||x.addEventListener("yt-navigate-start",this.reset.bind(this))};
aP.prototype.enqueue=function(p){var x=p.command,F=p.durationMs,N=p.elementToFocus;var h=p.label;var c=p.elementToFocus;p.command?h=_.JG("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:h,shortcut:_.JG("SHIFT_PLUS_ENTER")}):c&&this.supportsFocus&&(p=h+". "+_.JG("SHIFT_PLUS_ENTER")+" to move focus.",h=_.JG("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:h,shortcut:_.JG("SHIFT_PLUS_ENTER")},p));F={announcement:h,durationMs:F!=null?F:this.supportsFocus?8E3:void 0};x?F.command=x:N&&this.supportsFocus&&(N.classList.add("ephemeral-action-focusable-element"),
F.selector=N.tagName+".ephemeral-action-focusable-element");this.queue.push(F);XwH(this)};
aP.prototype.activate=function(p){var x=_.oP6(this.store.getState());if(x){if(x==null?0:x.command)_.QE(x.command),this.store.dispatch(jaK(null));(x==null?0:x.selector)&&this.supportsFocus&&(x=document.querySelector(x.selector),_.n3$(x));p.preventDefault()}};
var XwH=function(p){if(!_.oP6(p.store.getState())&&p.queue.length){var x=p.queue.shift();x&&(p.previousAnnouncement===x.announcement&&(x.announcement+="\u00a0"),p.store.dispatch(jaK(x)),p.previousAnnouncement=x.announcement,p.timeoutId=setTimeout(function(){if(x.selector&&p.supportsFocus){var F;(F=document.querySelector(x.selector))==null||F.classList.remove("ephemeral-action-focusable-element")}p.store.dispatch(jaK(null));XwH(p)},x.durationMs))}};
aP.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(jaK(null));this.queue.length=0;this.timeoutId=void 0};
aP[UP]=[_.Q_,_.hA];_.M_=new _.iE("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var gF8=new _.iE("AUTH_SERVICE_TOKEN");var QNJ=_.B$(["about:blank"]),ghr;var QDm=new _.iE("API_IFRAME_TOKEN"),zae=new _.iE("FETCH_FN_TOKEN"),sDe=new _.iE("PARSE_FN_TOKEN"),nFm=new _.iE("WINDOW_REQUEST_TOKEN");var Hnl;Hnl=new _.iE("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.y98=new _.iE("MISC_UI_SHARED_FLAGS_TOKEN");var btm=function(){};
btm.prototype.getFlag=function(p){if(p.configType!==2)throw Error("kj");return A9m(p)};
var A9m=function(p){switch(p.flagType){case "bool":return _.S(p.flagName);case "int":return _.VJ(_.Ud(p.flagName));case "double":return _.Ud(p.flagName);case "string":return _.iO(p.flagName);case "int32_list":return rG$(p.flagName);case "int64_list":return rG$(p.flagName).map(function(x){return _.VJ(x)});
case "string_list":return _.ID(p.flagName);default:throw Error("lj");}};var DL=function(p,x,F){x=x===void 0?{}:x;y1.call(this,F===void 0?"uninitialized":F);this.env=p;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}];x.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=x.shouldWaitOnAsyncImmediate)};
_.E(DL,y1);DL.prototype.init=function(p){var x=this,F;return _.D(function(N){if(N.nextAddress==1)return x.processPluginOptions.shouldWaitOnAsyncImmediate?_.q(N,p(x.env),2):(p(x.env),N.jumpTo(2));if(N.nextAddress!=4)return x.jobSet?_.q(N,x.jobSet.completedResolver.promise,4):N.jumpTo(4);F=_.GN();F.parkOrScheduleJob(function(){x.transition("rendering")},10,"ci");
_.JB(N)})};
DL.prototype.initialRender=function(p){var x=this,F;return _.D(function(N){if(N.nextAddress==1)return x.processPluginOptions.shouldWaitOnAsyncImmediate?_.q(N,p(x.env),2):(p(x.env),N.jumpTo(2));if(N.nextAddress!=4)return x.jobSet?_.q(N,x.jobSet.completedResolver.promise,4):N.jumpTo(4);F=_.GN();F.parkOrScheduleJob(function(){x.transition("rendered")},10,"cr");
_.JB(N)})};
DL.prototype.afterRenderImmediate=function(p){var x=this,F;return _.D(function(N){if(N.nextAddress==1)return x.processPluginOptions.shouldWaitOnAsyncImmediate?_.q(N,p(x.env),2):(p(x.env),N.jumpTo(2));if(N.nextAddress!=4)return x.jobSet?_.q(N,x.jobSet.completedResolver.promise,4):N.jumpTo(4);F=_.GN();F.parkOrScheduleJob(function(){x.transition("after-render-deferred")},10,"carml");
_.JB(N)})};
DL.prototype.afterRenderDeferred=function(p){var x=this;return _.D(function(F){p(x.env);_.JB(F)})};var uGX={},Ydk=(uGX.rendered={priority:0,callback:function(p){qfn(p.injector.resolve(JT))}},uGX);var wwm=!1,wUE=0,bOJ=null,YK6=null;var Gnk=new _.iE("NETWORK_SLI_TOKEN");var Vrm=function(p,x,F,N){this.networkSli=p;this.fetchFn=x;this.parseFn=F;this.requestFn=N};
Vrm.prototype.fetch=function(p,x,F){var N=this,h,c,M;return _.D(function(f){h=Wg_(N,p,x);M=(c=N.fetchFn)!=null?c:fetch;return f.return(M(h).then(function(K){return N.handleResponse(K,F)}).catch(function(K){_.no(K);
if((F==null?0:F.expectJsonStrict)&&K instanceof x6&&K.errorType===1)return Promise.reject(K)}))})};
var aj6=function(p,x,F,N){var h,c,M,f,K,t;return _.D(function(d){switch(d.nextAddress){case 1:return h=Wg_(p,x,F),_.KM(d,2),_.q(d,fetch(h),4);case 4:c=d.yieldResult;_.ub(d,3);break;case 2:throw _.v9(d),new x6(2,"Failed to parse streaming response",h.url);case 3:if(!c.redirected&&!c.ok)throw(M=p.networkSli)==null||M.failure(),new _.qE("Streaming fetch request not ok",h.url);if(!c.body)throw new _.qE("No response body in streaming response",h.url);f=c.body.pipeThrough(new TextDecoderStream).getReader();
K=new _.F5;t={};return d.return(HtH(p,f,K,lck,t,N))}})},Wg_=function(p,x,F){if(p.networkSli){var N=_.F_(_.$Q(x,"key"))||"/UNKNOWN_PATH";
p.networkSli.start(N)}N=F;_.S("wug_networking_gzip_request")&&(N=YQ6(F));var h;return new ((h=p.requestFn)!=null?h:window.Request)(x,N)},HtH=function(p,x,F,N,h,c){var M,f,K,t,d,v,C,X,Q;
return _.D(function(b){if(b.nextAddress==1)return _.q(b,x.read(),2);M=b.yieldResult;f=M.value;if(K=M.done)return(t=p.networkSli)==null||t.success(),b.return(h);try{d=F.parse(f)}catch(A){throw new x6(1,"Failed to parse streaming response",f);}if(d!=null)for(v=_.a(d),C=v.next();!C.done;C=v.next())X=C.value,N(h,X),Q=void 0,(Q=c)==null||Q(h,X);return b.return(HtH(p,x,F,N,h,c))})};
Vrm.prototype.handleResponse=function(p,x){var F,N=(F=this.parseFn)!=null?F:JSON.parse;F=p.text().then(function(h){if((x==null?0:x.jspbResponseCtor)&&p.ok)return z5$(x.jspbResponseCtor,h);h=h.replace(")]}'","");if((x==null?0:x.expectJsonStrict)&&h)try{var c=N(h)}catch(f){throw new x6(1,"JSON parsing failed after fetch");}var M;return(M=c)!=null?M:N(h)});
p.redirected||p.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),F=F.then(function(h){_.no(new _.qE("Error: API fetch failed",p.status,p.url,h));return Object.assign({},h,{errorMetadata:{status:p.status}})}));
return F};
Vrm[UP]=[_.Bw(Gnk),_.Bw(zae),_.Bw(sDe),_.Bw(nFm)];var m$m=new _.iE("NETWORK_MANAGER_TOKEN");var oFH=[1,2,4,8,16,30],jD_=function(p){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=p.maxTimeMs;this.maxFrameCount=p.maxFrameCount===void 0?Math.ceil(60*p.maxTimeMs/1E3):p.maxFrameCount;p=_.a(oFH);for(var x=p.next();!x.done;x=p.next())this.brokenFrameSummarizers.push(new OtH(x.value/60*1E3))},Lgk=function(p){var x=p.frameCountInternal>=p.maxFrameCount;
return p.elapsedTimeMs>=p.maxTimeMs||x},PO8=function(p){for(var x=[],F=_.a(p.brokenFrameSummarizers),N=F.next();!N.done;N=F.next())N=N.value,N=N.brokenFrameCount!==0?{severityMs:Math.round(N.targetFrameTimeMs),
eventCount:N.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(N.averageDurationBetweenEventsMs)}:void 0,N&&x.push(N);return{summaries:x,monitoringDurationMs:Math.round(p.elapsedTimeMs)}};
_.R8.Object.defineProperties(jD_.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 OtH=function(p){this.targetFrameTimeMs=p;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.R8.Object.defineProperties(OtH.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var T1H=function(){};
T1H.prototype.start=function(p,x){var F=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var N=new jD_({maxTimeMs:p});this.monitor=N;this.lastSummaryInternal=void 0;this.metadataToLog=x;return new Promise(function(h){var c=function(M){if(M===void 0)F.stop(),h(void 0);else if(F.monitor!==N)M=Object.assign({},PO8(N),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),h(M);else{var f=F.monitor;if(!Lgk(f)){f.frameCountInternal++;if(f.prevTime===void 0)f.startTime=
M;else for(var K=M-f.prevTime,t=_.a(f.brokenFrameSummarizers),d=t.next();!d.done;d=t.next()){d=d.value;var v=d.currTimeMs;d.currTimeMs+=K;K>d.targetFrameTimeMs+2&&(d.brokenFrameCount++,d.timeOfFirstBrokenFrameMs===void 0&&(d.timeOfFirstBrokenFrameMs=v),d.timeOfLastBrokenFrameMs=v)}f.prevTime=M}Lgk(F.monitor)?h(F.stop()):_.E0.addJob(c,5,0)}};
_.E0.addJob(c,5,0)})};
T1H.prototype.stop=function(p){if(!this.monitor)return this.lastSummaryInternal;var x=Object.assign({},PO8(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(x.monitoringDurationMs){p=p!=null?p:this.metadataToLog;var F={droppedFramesSummary:x,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};p&&(F[p.type]=p.data);_.E$("manualSmoothnessMeasurement",F)}this.monitor=void 0;this.lastSummaryInternal=x;this.metadataToLog=void 0;return x};_.B1_=new _.iE("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var Ram;Ram=function(p){this.JSC$16124_expiringStorage=new tq(p)};
_.knD=function(p){if(_.GrZ()&&(p=_.MTd(_.ff()+"::"+p)))return new Ram(p)};
Ram.prototype.set=function(p,x,F){F=F!==void 0?Date.now()+F:void 0;this.JSC$16124_expiringStorage.set(p,x,F)};
Ram.prototype.get=function(p){return this.JSC$16124_expiringStorage.get(p)};
Ram.prototype.remove=function(p){this.JSC$16124_expiringStorage.remove(p)};var U$H=new _.iE("SESSION_STORAGE");_.fK=function(){};
_.fK.getInstance=function(){var p=_.A9("ytglobal.storage_");p||(p=new _.fK,_.ox("ytglobal.storage_",p));return p};
_.fK.prototype.estimate=function(){var p,x,F;return _.D(function(N){p=navigator;return((x=p.storage)==null?0:x.estimate)?N.return(p.storage.estimate()):((F=p.webkitTemporaryStorage)==null?0:F.queryUsageAndQuota)?N.return(VKk()):N.return()})};
_.ox("ytglobal.storageClass_",_.fK);var itm=_.B$(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),I9_=_.B$(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var f08={"/":_.Kb,"/?feature=ytca":_.Kb,"/feed/downloads":_.SDH};var v$=function(p,x,F){this.JSC$16135_upliftPromise=p;this.store=x;this.JSC$16135_persistentStorePromiseAccessor=F};
v$.prototype.shouldPreferLocalResponse=function(p){return p.browseId==="FEdownloads"||p.browseId==="FEsmart_downloads"&&_.S("kevlar_modern_downloads_page")?!0:!1};
v$.prototype.localInnertubeResponse=function(p){var x=this;return _.D(function(F){return p.browseId==="FEdownloads"?_.S("kevlar_modern_downloads_page")?F.return($$_(x)):F.return(eaH(x)):p.browseId==="FEsmart_downloads"&&_.S("kevlar_modern_downloads_page")?F.return(p8k(x)):F.return(Promise.reject(Error("nj")))})};
v$.prototype.canProvideFallbackResponse=function(){return!0};
v$.prototype.localFallbackInnertubeResponse=function(p){var x=this,F,N,h;return _.D(function(c){switch(c.nextAddress){case 1:return _.q(c,x.JSC$16135_persistentStorePromiseAccessor(),2);case 2:F=c.yieldResult;if(p.browseId!=="SPaccount_downloads"||!F){c.jumpTo(3);break}return _.q(c,XoB(F),4);case 4:if(N=c.yieldResult)return c.return(_.ai(N));case 3:return p.browseId==="FEwhat_to_watch"?c.return(xEk(x)):(h=_.S("web_offline_continuation_automatic_retry")||_.S("web_offline_continuation_retry_button"))&&
p.continuation?c.return(FWH(x)):c.return(Nqt(x))}})};
var xEk=function(p){var x;return _.D(function(F){if(F.nextAddress==1)return _.q(F,p.JSC$16135_upliftPromise,2);x=_.KeJ(p.store.getState().entities);return x.length?F.return(hZD(p,x)):F.return(Nqt(p))})},eaH=function(p){var x,F;
return _.D(function(N){if(N.nextAddress==1)return _.q(N,p.JSC$16135_upliftPromise,2);if(N.nextAddress!=3)return x=l5H([{offlineItemSectionRenderer:{}}]),_.q(N,cqm(p,x),3);F=N.yieldResult;F.onResponseReceivedActions=[gV("REFRESH_DOWNLOADS")];return N.return(F)})},$$_=function(p){var x,F,N,h,c,M,f,K,t,d,v,C,X;
return _.D(function(Q){if(Q.nextAddress==1)return _.q(Q,p.JSC$16135_upliftPromise,2);if(Q.nextAddress!=3)return x=p.store.getState(),F=x.entities,N=_.Qr(F),h=_.zt(F),c=_.jOz(x),M=_.ObZ(x),f=_.Lep(x),K=_.dJp(F),t=_.ST(N),d=_.sJ(F),v={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.bek(N,h,K,c,M,t,d,f),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},C=_.JG("DOWNLOADS",void 0,"Downloads"),_.q(Q,a5D(p,v,C),3);X=Q.yieldResult;
X.onResponseReceivedActions=[gV("REFRESH_DOWNLOADS")];return Q.return(X)})},p8k=function(p){var x,F,N,h,c,M,f,K,t;
return _.D(function(d){if(d.nextAddress==1)return _.q(d,p.JSC$16135_upliftPromise,2);if(d.nextAddress!=3)return x=p.store.getState(),F=x.entities,N=_.Qr(F),h=_.ST(N),c=_.sJ(F),M={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.uMr(N),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},f=_.JG("SMART_DOWNLOADS",void 0,"Smart downloads"),K=n8$(h,c),_.q(d,a5D(p,M,f,K),3);t=d.yieldResult;t.onResponseReceivedActions=[gV("REFRESH_DOWNLOADS")];
return d.return(t)})},Nqt=function(p){var x,F;
return _.D(function(N){if(N.nextAddress==1)return _.q(N,c$(p.JSC$16135_upliftPromise,p.store),2);x=N.yieldResult;F=l5H([CYz(x)]);return N.return(cqm(p,F))})},FWH=function(p){var x,F,N,h;
return _.D(function(c){if(c.nextAddress==1)return x={},F=p.store.getState().continuation.continuationCommand,_.Cr(x,_.zO,F),_.q(c,c$(p.JSC$16135_upliftPromise,p.store,x,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);N=c.yieldResult;h={};_.Cr(h,_.$iB,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:N}}}],targetId:"browse-feedFEwhat_to_watch"});return c.return({responseContext:{},onResponseReceivedActions:[h]})})},l5H=function(p){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:p}}}}]}}},hZD=function(p,x){var F,N;
return _.D(function(h){var c={contents:QY(x)};F=c&&c.contents?c:{};_.S("kevlar_modern_downloads_page")&&(F=Object.assign({},_.YDr(x),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));N={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:F}}}]}};return h.return(cqm(p,N))})},cqm=function(p,x){var F,N;
return _.D(function(h){if(h.nextAddress==1)return _.q(h,p.JSC$16135_persistentStorePromiseAccessor(),2);if(h.nextAddress!=3)return F=h.yieldResult,_.q(h,Mg(F),3);N=h.yieldResult;return h.return({responseContext:{},contents:x,topbar:N})})},a5D=function(p,x,F,N){var h,c;
return _.D(function(M){if(M.nextAddress==1)return _.q(M,p.JSC$16135_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3)return h=M.yieldResult,_.q(M,Mg(h),3);c=M.yieldResult;var f=M.return,K=N;K=K===void 0?"":K;var t={dynamicTextViewModel:{text:{content:F}}};var d={flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.JG("SETTINGS",void 0,"Settings"),accessibilityText:_.JG("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:If("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}};return f.call(M,{responseContext:{},contents:x,topbar:c,header:{pageHeaderRenderer:{content:{pageHeaderViewModel:{title:t,actions:d,metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:K}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},
pageTitle:F}}})})};var MQk=function(){this.moduleRegistry={};this.fetchCount=0};
MQk.prototype.isFetching=function(){return this.fetchCount>0};
var mY=function(p,x){p.moduleRegistry[x.toString()]={asyncId:x,isFetching:!1};return p};
MQk.prototype.JSC$16146_loadModules=function(){for(var p=this,x=new Map,F=[],N=_.a(_.we.apply(0,arguments)),h=N.next();!h.done;h=N.next()){h=h.value;var c=this.moduleRegistry[h];c?c.resolver?x.set(h,c.resolver):(c.resolver=new _.FT,x.set(h,c.resolver),F.push(c.asyncId),c.isFetching=!0):(c=new _.FT,x.set(h,c),c.resolve(void 0))}F.length&&(this.fetchCount+=1,_.g8(_.Qx.getMultipleAsync.apply(_.Qx,_.se(F)).then(function(M){for(var f=0;f<F.length;f++){var K=M[f],t=p.moduleRegistry[F[f].toString()];t.isFetching=
!1;t.resolver.resolve(K)}}).catch(function(M){for(var f=_.a(F),K=f.next();!K.done;K=f.next()){K=K.value;
var t=p.moduleRegistry[K.toString()];t.resolver=void 0;t.isFetching=!1;x.get(K.toString()).reject(M)}}),function(){--p.fetchCount}));
return Promise.all([].concat(_.se(x.values())).map(function(M){return M.promise}))};_.oi=new _.iE("MODULE_REGISTRY_TOKEN");var DEm={},f5m=(DEm.rendered={priority:0,callback:function(p){a:{var x=void 0;try{var F;b:{if(_.lVM()){var N=_.a2$(_.ff()+"::pom");if(N){var h=new fJ(N);break b}}h=void 0}var c=(F=h)==null?void 0:F.get("role_text");if(!c)break a;x={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:c}]}}}}}}catch(K){}x&&p.injector.resolve(_.RD).resolveCommand(x)}try{var M=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(M){var f=JSON.parse(M);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
f&&p.injector.resolve(_.RD).resolveCommand(f)}}catch(K){}}},DEm);var KWH,q58={},Zfk=(q58.initialized={priority:10,callback:function(){KWH=z1()}},q58.rendering={callback:function(p){var x;
return _.D(function(F){if(F.nextAddress==1)return _.q(F,KWH,2);x=F.yieldResult;if(!x.endpoint)throw Error("pj`"+_.Mm.location.href);ba(p,x);_.JB(F)})}},q58);var tQe={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(_.se(_.S("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(p){var x=p.stack;if(x.includes("chrome://")||x.includes("chrome-extension://")||p.message.includes("chrome-extension://")||x.includes("moz-extension://")||x.includes("local.adguard.org")||x.includes("auctioneer3.50million.club")||x.includes("youtubedownloader")||x.includes("youtube_home_page")||x.includes("is_youtube_video_no_longer_available")||
x.includes("switchScreenSizeHack")||x.includes("yt_main_big_banner.js")||x.includes("YouTubeCenter.js")||x.includes("/mytube.js")||x.includes("JSON.parseWrapper")||x.includes("/inj_js/common.js")||x.includes("firebug-lite")||x.includes(".repl.co/")||x.includes("linkfix")||x.includes("playAfterAd")||p.message.includes("Access is denied for this document")&&x.includes("<anonymous>")||p.fileName==="user-script"||p.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
x.includes("<anonymous>"))return!0;if(x.includes("https://www.youtube.com"))return!1;p=x.split("\n");if(!p.length)return!1;if(p.length<=3&&x.includes("s.onloadeddata"))return!0;x=0;for(var F=_.a(p),N=F.next();!N.done;N=F.next())N=N.value,(N.includes("https://")||N.includes("http://"))&&x++;return x/p.length>.95},
weight:0},{callback:function(p){return p.message==="Unknown Error"&&p.name.indexOf("NS_")===0},
weight:100},{callback:function(p){if(!_.ML)return!1;var x=p.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||p.message.includes("available to complete this operation"),F=p.stack.includes("webcomponents")&&p.message==="Object doesn't support this action";p=p.message.includes("object that does not implement interface Element");return x||F||p},
weight:0},{callback:function(p){return p.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(p){return p.message==="Operation is not supported"&&(p.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(p){return p.stack.includes("eval code (eval (code:1:1)")||p.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(p){return p.message.includes("Permission denied")&&p.stack.includes("this.domHandler")?!0:p.name.includes("TypeError")&&p.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(p){if(!p.stack)return!1;var x=p.stack.trim().split("\n");x.length&&x[0].endsWith("Error: "+p.message)&&x.shift();x.length&&x[x.length-1].includes("at window.onerror (")&&x.pop();if(!x.length)return!0;if(p.message==="Script error.")return x[0].includes("www.youtube.com")||x.length>=2&&x[0].startsWith("at new")&&x[1].startsWith("at window.onerror");if(p.message==="Unexpected token")return!0;p=_.a(x);for(x=p.next();!x.done;x=p.next())if(x=x.value,!(x.includes("<anonymous>")||
x.startsWith("load@")||x.startsWith("global code@")||x.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(p){return p.message==="Cannot read property 'experiments'"&&p.stack.includes("/s/player/")},
weight:500},{callback:function(p){return p.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(p){return p.stack.includes("/embed.js")?(p.params&&p.params&&(p.params.name="56"),!0):!1},
weight:1}]};var dE_={},v3e=(dE_.initialized={priority:10,callback:function(p){p.injector.addProvider({provide:Aum,useValue:p.root});p.injector.addProvider({provide:FVH,useValue:ltB});p.injector.addProvider({provide:Nxm,useValue:tQe});var x={};p.injector.addProvider((x.provide=hKD,x.useFactory=function(F,N){return function(){mAH(F,N)}},x[UP]=[FVH,
Nxm],x));p.injector.addProvider({provide:MQ,useClass:MQ})}},dE_);var JqH={},Cb8=(JqH.initialized={priority:3,callback:function(){var p;if(p=pir()){p=p.replace("/",".");var x=_.rH();x.set("tz",p);x.save();p=!0}else p=!1;p||(p=_.rH(),p.set("utco",-Math.floor((new Date).getTimezoneOffset())),p.save())}},JqH);var S5_={},rqH=(S5_.initialized={priority:10,callback:function(p){p.injector.resolve(MQ).start();p=_.GF();var x=_.nt("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.nt("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.nt("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.nt("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.ZX(_.SHm(),{mainAppWeb:Object.assign({},p,{pageType:x})});_.ZX(EfM(),{mainAppWeb:Object.assign({},p,{pageType:x})});
_.ZX(XaH(),{mainAppWeb:p});_.ZX(gfr(),{mainAppWeb:p});Q8B(function(){_.tf(XaH(),"FAILURE");_.tf(gfr(),"FAILURE")});
krr();U3p();UWw()}},S5_);var E38={},X8_=(E38.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.wH("dl"),_.GN().processSignal("pcl");else{var p=function(){_.wH("dl");_.GN().processSignal("pcl");window.removeEventListener("load",p)};
window.addEventListener("load",p)}}},E38);var g3H={},Qx8=(g3H.rendering={priority:0,callback:function(){var p=_.GN();p.parkOrScheduleJob(function(){p.processSignal("eocs")},10,"eor",5E3)}},g3H);var zZa=function(){};
_.E(zZa,uc);
zZa.prototype.resolveCommand=function(p,x){var F,N,h,c,M,f,K,t;return _.D(function(d){h=(F=_.r(p,_.AnJ))==null?void 0:(N=F.dialog)==null?void 0:N.commentReplyDialogRenderer;if(!h)throw new _.qE("No dialog in createCommentReplyDialogEndpoint");M=(c=x.form)==null?void 0:c.event;if(!M)throw new _.qE("Event not passed in when resolving command");f=_.a(M.composedPath());for(K=f.next();!K.done;K=f.next())if(t=K.value,t.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||t.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return t.showReplyDialog(h),d.return();
_.JB(d)})};var KK=function(p){this.pageRequestService=p;this.JSC$16161_prefetchCoordinator=LXD()};
_.E(KK,uc);KK.prototype.resolveCommand=function(p){var x=this,F,N,h,c;return _.D(function(M){if(M.nextAddress==1){F=_.r(p,fem);if((N=F)==null||!N.taskId)throw Error("qj");h=F.taskId;_.KM(M,2);return _.q(M,_.u$l(x.pageRequestService,p,{},"").then(function(f){if(!f)throw Error("rj");},function(f){throw Error("sj`"+f);
}),4)}if(M.nextAddress!=2)return Bv8(x.JSC$16161_prefetchCoordinator,h),_.ub(M,0);
c=_.v9(M);T0(x.JSC$16161_prefetchCoordinator,h,c);_.JB(M)})};
KK[UP]=[Q$];var q_=function(p){this.innertubeTransportService=p};
_.E(q_,uc);q_.prototype.resolveCommand=function(p){var x=this,F,N;return _.D(function(h){F=_.r(p,a1D);if(F.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||F.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")N=F.boolValue?2:1,_.Bf.getInstance().setState(N,!0,!0);return _.q(h,_.w5(x.innertubeTransportService,p),0)})};
q_[UP]=[_.SV];var ZL={},sxD=(ZL.addToPlaylistEndpoint=iA(nD),ZL.addToToastAction=iA(gz),ZL.adsControlFlowOpportunityReceivedCommand=iA(Dk),ZL.captionLanguageSelectActionCommand=iA(jE),ZL.captionPickerEndpoint=iA(LD),ZL.changeMiniAppPlayStateCommand=iA(bn),ZL.changeTimelyActionVisibilityCommand=iA(Xi),ZL.channelCreationFormEndpoint=iA(EV),ZL.clearLocationCommand=iA(sV),ZL.copyLinkCommand=iA(km),ZL.copyTextEndpoint=iA(qe),ZL.createCommentReplyDialogEndpoint=sSM(zZa),ZL.createPlaylistServiceEndpoint=iA(UV),ZL.dismissDialogEndpoint=
iA(un),ZL.entityUpdateCommand=iA(tp),ZL.feedbackEndpoint=iA(Jp),ZL.getAnswerCommand=iA($1t),ZL.getPaymentsClientTokenCommand=iA(sI),ZL.getTranscriptEndpoint=iA(QV),ZL.googlePaymentBillingCommand=iA(nI),ZL.googlePaymentPurchaseManagerCommand=iA(yV),ZL.hideEngagementPanelEndpoint=iA(Ym),ZL.insertRichSectionCommand=iA(g0),ZL.listMutationCommand=iA(Qt),ZL.logGtmCommand=iA(Xl),ZL.notifyDropdownOptionSelectedCommand=iA(Ap),ZL.openAdAllowlistInstructionCommand=iA(_.fD),ZL.openOnePickAddVideoModalCommand=
iA(Ig),ZL.pingingEndpoint=iA(KD),ZL.playlistEditEndpoint=iA(eE),ZL.playlistVotingRefreshPopupCommand=iA(pI),ZL.refreshPanelEndpoint=iA(w0),ZL.saveImageToDeviceEndpoint=iA(Zk),ZL.scrollToSectionEndpoint=sSM(et_),ZL.seekToVideoTimestampCommand=iA(PG),ZL.setCookieCommand=iA(Fi),ZL.setLocalStorageCommand=iA(JE),ZL.setPrefStorageEntryCommand=iA(hE),ZL.setSettingEndpoint=iA(q_),ZL.sfvAudioItemPlaybackCommand=iA(Td),ZL.shareImageCommand=iA(lJ),ZL.sharingProviderDataCommand=iA(cP),ZL.showCaptionLanguageSelectActionCommand=
iA(BG),ZL.showDialogCommand=iA(WG),ZL.showEngagementPanelEndpoint=iA(HG),ZL.showSheetCommand=iA(m7),ZL.showTransientPlayerScrimOverlayCommand=iA(Rg),ZL.submitFormWithValidationFlowCommand=iA(r0),ZL.talkToRecsDeselectCommand=iA(CI),ZL.talkToRecsNextCommand=iA(SW),ZL.talkToRecsSelectCommand=iA(rz),ZL.talkToRecsUpdateTextCommand=iA(EI),ZL.toggleEngagementPanelCommand=iA(og),ZL.undoFeedbackEndpoint=iA(SE),ZL.updateEngagementPanelContentCommand=iA(OV),ZL.updateUrlParamCommand=iA(zC),ZL.verifyCommand=iA(EV),
ZL.webSubmitFormCommand=iA(xK),ZL.ACK_PLAYABLES_3P_DATA_CONSENT=iA(am),ZL.CANCEL_NAVIGATION=iA(Mb),ZL.COPY_SHARE_URL=iA(DH),ZL.MINI_APP_EXIT_DIALOG_SEEN=iA(KI),ZL.MINI_APP_OPEN_URL=iA(fI),ZL.REQUEST_MINI_APP_FULLSCREEN=iA(qb),ZL.RESUME_NAVIGATION=iA(ZH),ZL.SHARE_PLAYABLE_WITH_HIGH_SCORE=iA(tE),ZL.TELL_US_WHY=iA(CD),ZL);_.S("web_enable_prefetching_videos_on_home")&&(sxD.prefetchWatchCommand=iA(KK),sxD.registerTasksCommand=iA(Rj));
_.S("enable_share_panel_navigation_logging_fix_on_web")&&(sxD.shareEntityServiceEndpoint=iA(Gd));var IE6=Object.assign({},sxD);var n3_={},yq8=(n3_.initialized={priority:10,callback:pOm},n3_);var bfm={},Aq8=(bfm.initialized={callback:function(p){var x={},F={};Icz().install((x.document_disposed={callback:function(){_.S("finalize_all_timelines")?UjM():AG();AbH("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.MUm();var N=p.injector.resolve(MQ);N.intervalId!==void 0&&(N.intervalId&&_.E0.cancelJob(N.intervalId),N.intervalId=void 0,--N.currentPartitionIndex,N=orl(N),N>0&&HJb({mainAppWeb:_.GF(),survivalSli:{partitionMinute:N,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));yAK(Wf);Hf!=null&&
Hf.flush();NB&&NB.snapshotAndFlush()}},x),(F.flush_logs={callback:function(){_.Xx()}},F))}},bfm);var u_8={},Y5H=(u_8.rendered={priority:0,callback:function(){var p=new JuB;p.increment("STARTED");if(_.sd("LOGGED_IN")&&_.sd("SERVER_VERSION")!=="test"&&_.sd("SERVER_VERSION")!=="dev"&&!h86()&&!NDn()){p.increment("EXECUTING");var x=document.createElement("iframe");x.style.display="none";_.Pgd(x,2,_.ug("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.sd("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(x);p.increment("DONE")}}},u_8);var w8t={},GIt=(w8t.rendered={callback:function(){LXD().resume()}},w8t);var VQH={acknowledgeChannelTouStrikeCommand:si(hJ),addToPlaylistServiceEndpoint:si(xG),addToPlaylistEndpoint:si(xG),addUpcomingEventReminderEndpoint:si(SI),browseEndpoint:si(QGH),channelCreationFormEndpoint:si(Im),channelCreationServiceEndpoint:si($K),claimLegacyYoutubeChannelEndpoint:si(HP),clearSearchHistoryEndpoint:si(Kw),clearWatchHistoryEndpoint:si(qP),commerceActionCommand:nQ(sC),createBackstagePostEndpoint:si(uJ),createBroadcastCommand:si(rf),createCommentEndpoint:si(Rm),createCommentReplyEndpoint:si(BP),
createLiveChatPollEndpoint:si(Er),createPlaylistServiceEndpoint:si(Fs),crossAccountChannelTransferEndpoint:si(df),deleteLiveChatMessageCommand:si(XS),deletePlaylistEndpoint:si(NU),deleteVideoEndpoint:si(Cd),dismissalEndpoint:si(lv),feedbackEndpoint:si(cB),flagEndpoint:si(DM),getAccountSwitcherEndpoint:si(tJ),verifyCommand:si(AE),getAccountsListInnertubeEndpoint:si(JJ),getCommentsFromInboxCommand:si(HB),getDownloadActionCommand:si(T$),getFlowCommand:nQ(fw),getKidsBlocklistPickerCommand:si(fd),getNotificationMenuEndpoint:si(nCk),
getPaymentInstrumentsParamsCommand:si(YG),getPaymentsClientTokenCommand:nQ(sC),getPdgBuyFlowCommand:si(eI),getReportFormEndpoint:si(Kd),getSearchInVideoCommand:si(tX),getAnswerCommand:si(ZM),getSurveyCommand:si(JX),getTranscriptEndpoint:si(EC),getPostVideoPreviewEndpoint:si(wz),decorateMessageEndpoint:si(YK),likeEndpoint:si(eW),liveChatActionEndpoint:si(sr),liveChatEndpoint:si(z$),liveChatItemContextMenuEndpoint:si(gf),liveChatPurchaseMessageEndpoint:si(nw),liveChatReplayEndpoint:si(Ql),manageLiveChatUserEndpoint:si(bv),
metadataUpdateCommand:si(Vl),moderateLiveChatEndpoint:si(AJ),modifyChannelNotificationPreferenceEndpoint:si(jI),notificationOptOutEndpoint:si(Lw),openSuperStickerBuyFlowCommand:si(yl),performCommentActionEndpoint:si(LI),playlistEditEndpoint:si(lZ),playlistEditorEndpoint:si(hX),profileCardCommand:si(Cw),recordNotificationInteractionsEndpoint:si(PB),reelWatchEndpoint:si(cC),refreshPanelEndpoint:si(RA),removeUpcomingEventReminderEndpoint:si(uv),resolveLocationCommand:si(G$),revealBusinessEmailCommand:si(mk),
searchEndpoint:si(_.ymH),sendLiveChatMessageEndpoint:si(YU),sendLiveChatVoteEndpoint:si(wf),setSettingEndpoint:si(pw),shareEntityServiceEndpoint:nQ(NP),sharingProviderDataCommand:si(vC),showEngagementPanelEndpoint:si(kU),showMoreDrawerCommand:si(iv),showSheetCommand:si(IA),showDialogCommand:si(Ur),subscribeEndpoint:si(xU),transcriptSubmitCaptionCorrectionCommand:si(rO),undoFeedbackEndpoint:si(MP),unsubscribeEndpoint:si(FS),updateBackstagePostEndpoint:si(VV),updateCommentEndpoint:si(UI),updateCommentReplyEndpoint:si(kK),
updateCommentsSettingsEndpoint:si(iJ),updateCreatorChannelInnertubeCommand:si(OI),updateKidsBlacklistEndpoint:si(qU),updateEngagementPanelContentCommand:si($U),updatePdgFeatureEnablementCommand:si(pd),updatedMetadataEndpoint:si(WB),validateChannelHandleCommand:si(jW),updateChannelPageSettingsEndpoint:si(om),verifyAgeEndpoint:si(Dc),watchEndpoint:nQ(SU),whitelistEditEndpoint:si(z0),ypcCancelRecurrenceEndpoint:si(nd),ypcCompleteTransactionEndpoint:si(ye),ypcFixInstrumentEndpoint:si(AX),ypcGetCartEndpoint:si(bZ),
ypcGetOffersEndpoint:si(uZ),ypcHandleTransactionEndpoint:nQ(wO),ypcLogWalletAnalyticDataEndpoint:si(G0),ypcOffersEndpoint:si(Ve),ypcPauseSubscriptionCommand:si(WC),ypcRedeemCodeEndpoint:si(HC),ypcResumeSubscriptionCommand:si(mC),ypcUpdateFopEndpoint:si(AX)},tt={},WWD=(tt.GET_ACCOUNT_MENU=si(vB),tt.GET_NOTIFICATIONS_MENU=si(sGe),tt.GET_NOTIFICATIONS_INBOX=si(my),tt.GET_UNSEEN_NOTIFICATION_COUNT=si(Or),tt.GET_USER_MENTION_SUGGESTIONS=si(GC),tt.LOAD_GUIDE=si(zW8),tt.SUBMIT_FEEDBACK=si(aA),tt),dQ={},
Hfm=(dQ.CONTINUATION_REQUEST_TYPE_BROWSE=si(WP),dQ.CONTINUATION_REQUEST_TYPE_SEARCH=si(dO),dQ.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=si(gO),dQ.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=si(Zc),dQ.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=si(TC),dQ.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=si(PP),dQ.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=si(MU),dQ.CONTINUATION_REQUEST_TYPE_GET_PANEL=si(BB),dQ),mEk={player:nQ(SU),watchNext:si(Xs)},o3X={player:nQ(SU),reelItemWatch:si(cC),reelWatchSequence:si(aj)},
Of8={watchEndpoint:nQ(Qe)},jxm={commandEndpointMap:VQH,signalEndpointMap:WWD,continuationEndpointMap:Hfm,watchEndpointMap:mEk,reelWatchEndpointMap:o3X,streamingEndpointMap:Of8};var LW_,PbH,TqH,BqD={disableAllTransitions:(PbH=(LW_=window).matchMedia)==null?void 0:(TqH=PbH.call(LW_,"(prefers-reduced-motion: reduce)"))==null?void 0:TqH.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var RZc=new _.iE("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.kI8=new _.iE("VIEW_TRANSITION_MANAGER_TOKEN");var UEk=function(p){this.config=p;this.transitionTasksMap=new Map;p=_.a(p.transitionConfigs);for(var x=p.next();!x.done;x=p.next())x=_.a(x.value).next().value,this.transitionTasksMap.set(x,[])};
UEk[UP]=[RZc];var xVz={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1};var NI6=["videoPrimaryInfoRenderer","title"],hoB=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var ift;ift=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.I5_=_.mO(function(p){p=_.Vg(p,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var x=p.data,F=p.playlistData,N=p.expanded,h=p.onExpandClick,c=p.isReadyToResume,M=function(){var d;return!((d=F())==null||!d.contents)},f=function(){var d=F();
return d&&d.totalVideos&&d.currentIndex!==void 0?d.currentIndex+1+" / "+d.totalVideos:""};
p=_.h0(function(){_.v4(_.J().resolve(_.H$))});
var K=_.h0(function(){M()&&h&&h()}),t={};
return _.Z("ytd-miniplayer-info-bar",{class:_.$L("ytdMiniplayerInfoBarHost",(t.ytdMiniplayerInfoBarHasPlaylistData=M,t)),"on:click":K},_.Z("div",{class:"ytdMiniplayerInfoBarContent"},_.Z("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":p},_.Z(_.KQ,{text:function(){var d=x();var v=F();if(v==null?0:v.contents){var C;d=(C=_.K_$(v))==null?void 0:C.title}else d=d==null?void 0:d.miniplayerTitle;return cQw(d)},
noEndpoints:!0,ellipsisTruncate:!0})),_.Z("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.Z("h1",null,_.Z(_.KQ,{className:"ytdMiniplayerInfoBarSubtitleText",text:function(){var d=x();var v=F();d=c()?{simpleText:_.JG("CONTINUE_WATCHING",void 0,"Continue watching")}:(v==null?0:v.contents)?v.titleText:d==null?void 0:d.miniplayerSubtitle;return cQw(d)},
noEndpoints:!0,ellipsisTruncate:!0})),_.Z(_.D9,{cond:function(){return!!f()&&!c()},
then:function(){return _.Z("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.Z("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.Z("span",null,f))}}),_.Z(_.D9,{cond:c,
then:function(){return _.Z(crj,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:ift})}}))),_.Z(_.D9,{cond:M,
then:function(){return _.Z("div",{class:"ytdMiniplayerInfoBarExpand"},_.Z($w,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(d){h&&(h(),d.stopPropagation())}}},
iconName:function(){return N()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Td");var $E8;$E8=_.mO(function(p){return _.Z("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.Z($w,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:p.onTap}},
iconName:"yt-icons:close"}))},"Ud");
_.eZ8=_.mO(function(p){p=_.Vg(p,{playabilityStatus:void 0,isDisabled:!1});var x=p.size,F=p.playabilityStatus,N=p.isDisabled,h=_.oc();p=_.a(_.hu(void 0,void 0,"bJr0Se"));var c=p.next().value,M=p.next().value;p=_.g5(_.CE);var f=!1,K=function(){return x().height<=0};
_.rx(function(){var C=x(),X=K(),Q=c();Q&&!X&&Q.setInternalSize(C.width,C.height)});
_.d1(function(){var C,X,Q;return _.D(function(b){if(b.nextAddress==1){C=_.J().resolve(_.H$);X=C.getPlayerElement();if(!C.isMiniplayerActive()||!X||!h.value)return b.return();X.appendTo(h.value);return _.q(b,X.getPlayerPromise(),2)}Q=b.yieldResult;Q.setSizeStyle(!1,!0);M(Q);_.JB(b)})});
_.E_(function(){t()});
_.rx(function(){var C=c();if(C)if(N()){var X=C.getPlayerState();(f=X===-1||X===1||X===3)&&C.pauseVideo()}else t()});
var t=function(){if(f){f=!1;var C;(C=c())==null||C.playVideo()}},d=_.h0(function(){_.v4(_.J().resolve(_.H$))}),v={};
return _.Z("ytd-miniplayer-player-container",{class:_.$L("ytdMiniplayerPlayerContainerHost",(v.ytdMiniplayerPlayerContainerHidden=K,v.ytdMiniplayerPlayerContainerHostShortsPip=p,v)),style:_.a4({width:function(){return x().width+"px"},
height:function(){return x().height+"px"}})},_.Z("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:h}),_.Z(_.D9,{cond:function(){return!!F()&&!_.ZOZ(F())},
then:function(){return _.Z(TnH,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var C;return((C=F())==null?void 0:C.errorScreen)||null},
status:function(){var C;return((C=F())==null?void 0:C.status)||null}})}}),_.Z(_.D9,{cond:N,
then:function(){return _.Z("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":d},_.Z($E8,{onTap:function(){_.J().resolve(_.H$).close()}}))}}))},"Vd");_.pua=_.mO(function(p){var x=p.toastData;var F=_.oc();p=_.a(_.ct(function(){return!!x()}));
var N=p.next().value,h=p.next().value;p=_.a(_.hu(!1,void 0,"xkrBze"));var c=p.next().value,M=p.next().value,f=function(){var d;return _.Pi((d=x())==null?void 0:d.data.title)};
_.J9(function(){_.Wx.requestAvailability();x()&&h(!1)});
var K,t;_.rx(function(){N()&&(_.hG(F.value,"iron-announce",{text:x().label+" "+f()}),K&&_.E0.cancelJob(K),K=_.E0.addLowPriorityJob(function(){M(!0)},2500))});
_.rx(function(){c()&&(t&&_.E0.cancelJob(t),t=_.E0.addLowPriorityJob(function(){h(!1);M(!1)},300))});
p={};return _.Z("ytd-miniplayer-toast",{el:F,class:_.$L("ytdMiniplayerToastHost",(p.ytdMiniplayerToastOpening=function(){return N()},p.ytdMiniplayerToastClosing=function(){return c()},p))},_.Z(_.D9,{cond:function(){var d;
return(d=x())==null?void 0:d.data},
then:function(d){return _.Z(aU6,{className:"ytdMiniplayerToastThumbnail",data:d,width:78})}}),_.Z("div",{class:"ytdMiniplayerToastInfo"},_.Z("div",{class:"ytdMiniplayerToastLabel"},function(){var d;
return(d=x())==null?void 0:d.label}),_.Z("div",{class:"ytdMiniplayerToastTitle"},f)))},"Wd");var vNp;var rQp=new Set,Sww=null;var XOB=null;var FdH=_.mO(function(p){var x=p.progressState;var F=p.multiMarkersPlayerBarRenderer;var N=p.progressBarWidth;var h=function(){return sVr(F())},c=function(){return bxH(x())},M=function(){return N()*(x().playedTime/x().videoDuration)};
return _.Z("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.Z(_.ft,{each:h},function(f,K){return _.Z(xpk,{modifiedProps:c,chapters:h,index:K,playedProgressWidth:M,backgroundGradientPosition:function(){var t=c(),d=h(),v=K(),C=M();return(t.playedTime-V$(_.r(d[v],G1)))/t.playedTime*C}})}))},"Xd"),xpk=_.mO(function(p){var x=p.modifiedProps;
var F=p.chapters;var N=p.index;var h=p.playedProgressWidth;var c=p.backgroundGradientPosition;p={};p=_.$L("ytChapteredProgressBarChapteredPlayerBarChapter",(p.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return M().isScrubbing},p.ytChapteredProgressBarHoveredMacroMarker=function(){return M().scrubberHovering},p.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return M().videoPosition==="seen"},p));
var M=function(){return AQz(x(),F(),N())},f=function(){var K=x();
var t=F(),d=N();if(AQz(K,t,d).videoPosition!=="active")K=0;else{var v=V$(_.r(t[d],G1));K=(K.playedTime-v)/((V$(_.r(t[d+1],G1))||K.videoDuration)-v)}return K};
return _.Z("div",{class:p,style:_.a4({width:function(){var K=x(),t=F(),d=N(),v=_.r(t[d],G1);t=_.r(t[d+1],G1);return(t?V$(t)-V$(v):K.videoDuration-V$(v))/K.videoDuration*100+"%"},
"background-color":function(){a:{var K=M();switch(K.videoPosition){case "pending":K=K.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":K=K.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:K=""}}return K},
"background-size":function(){return(u1k(M())?h():"")+"px"},
"background-position-x":function(){return(u1k(M())?c():"")+"px"}})},_.Z("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var K=x(),t=F(),d=N();if(AQz(K,t,d).videoPosition==="seen")var v=0;else v=V$(_.r(t[d],G1)),t=V$(_.r(t[d+1],G1))||K.videoDuration,K=K.videoDuration*K.percentLoaded,v=t<=K?1:v>=K?0:(K-v)/(t-v);return"width: "+v*100+"%"}}),_.Z("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.a4({width:function(){return f()*100+"%"},
"background-size":function(){return(u1k(M(),f())?h():"")+"px"},
"background-position-x":function(){return(u1k(M(),f())?c():"")+"px"}})}))},"Yd");var Nwa=function(p,x){x=x===void 0?AR6:x;var F,N=[],h,c=!1;return function(){var M=_.we.apply(0,arguments);if(c&&F===this&&x(M,N))return h;h=p.apply(this,M);c=!0;F=this;N=M;return h}}(function(p){var x=p.heatMarkers,F=p.minHeightDp===void 0?0:p.minHeightDp,N=p.maxHeightDp===void 0?60:p.maxHeightDp;
var h=h===void 0?!1:h;var c=1E3/x.length;p=[];p.push({x:0,y:100});for(var M=0;M<x.length;M++){var f=void 0,K=((f=_.r(x[M],UJI))==null?void 0:f.heatMarkerIntensityScoreNormalized)||0;f=(M+.5)*c;K=100-_.YV(K*100,F/321*100,N/321*100);M!==0||h||p.push({x:0,y:K});p.push({x:f,y:K});M===x.length-1&&p.push({x:1E3,y:K})}p.push({x:1E3,y:100});x="";for(F=0;F<p.length;F++)h=p[F],F===0?h="M "+h.x.toFixed(1)+","+h.y.toFixed(1):(N=Kvd(p[F-1],p[F-2],h),c=Kvd(h,p[F-1],p[F+1],!0),h=" C "+(N.x.toFixed(1)+","+N.y.toFixed(1)+
" "+c.x.toFixed(1)+","+c.y.toFixed(1)+" "+h.x.toFixed(1)+","+h.y.toFixed(1))),x+=h;return x});var h$m=_.mO(function(p){var x=p.progressBarProps;var F=p.config;var N={};p=_.$L("ytHeatSeekerHost",(N.ytHeatSeekerHighContrast=p.highContrast,N));var h=function(){return KGp(F().chapterData)};
return _.Z("yt-progress-bar-heatseeker",{class:p,style:function(){var c;return"height: 320px; display: "+(x().isDragging&&((c=h())==null?0:c.heatMarkers)?"block":"none")}},_.Z(_.D9,{cond:h,
then:function(c){return _.Z(_.D9,{cond:function(){return c().heatMarkers},
then:function(){return _.Z("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.Z("path",{d:function(){return Nwa(c())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Zd");var l3_=_.mO(function(p){var x=p.progressBarProps;var F=p.config;p={};p=_.$L("ytProgressBarLineProgressBarLine",(p.ytProgressBarLineProgressBarLineRounded=function(){return F().rounded},p.ytProgressBarLineProgressBarLineBottomInset=function(){return F().position===2},p));
return _.Z("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.Z("div",{class:p},_.Z("div",{class:"ytProgressBarLineProgressBarBackground"}),_.Z("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+x().percentLoaded*100+"%"}}),_.Z("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var N=x();return"width: "+(N.videoDuration?_.YV(N.hoveredTime/N.videoDuration,0,1):0)*100+"%"}}),_.Z("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+M5m(x())*100+"%"}})))},"$d");
l3_.idomCompat=!0;var cdm=_.mO(function(p){var x=p.progressBarProps;var F=p.playheadData;var N=p.interpolateDotPosition;var h=p.hidePlayhead;p={};var c=_.$L("ytProgressBarPlayheadProgressBarPlayheadDot",(p.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return x().isDragging},p.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!x().isDragging&&h()},p));
return _.Z("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.a4({"margin-left":function(){return DVm(x())*100+"%"},
transform:function(){return"translateX(-"+(N()?DVm(x())*12:6)+"px)"}})},_.Z(_.D9,{cond:function(){var M;
return(M=_.GD(F)())==null?void 0:M.playheadImage},
then:function(M){var f={};return _.Z("div",{class:_.$L("ytProgressBarPlayheadProgressBarPlayheadCustom",(f.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return x().isDragging},f.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!x().isDragging&&h()},f)),
style:_.a4({"transform-origin":function(){return(N()?DVm(x())*20:10)+"px center"}})},_.Z(_.VE,{data:M,
alt:"","aria-hidden":"true"}))},
else:function(){return _.Z("div",{class:c,style:_.a4({"transform-origin":function(){return(N()?DVm(x())*12:6)+"px center"}})})}}))},"ae");
cdm.idomCompat=!0;var Jt=function(p,x,F,N,h,c){this.getProgressBarRect=p;this.updateProgressBarRect=x;this.getFilmstripYPosition=F;this.setFineScrubbingDraggedTime=N;this.updateFilmStripDraggedYDistance=h;this.resetFilmStripYOffset=c;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.IC(this.onThrottledSeek,100,this)},a3k=function(p,x,F){return function(N){p.handleClick(N,x(),F())}},f3k=function(p,x){return function(F){Mst(p,
F,DpX(F),x())}},Kd_=function(p,x){return function(F){Mst(p,F,{x:F.clientX,
y:F.clientY},x())}},Zg8=function(p,x,F){return function(N){var h=x(),c=F();
q0X(p,N,DpX(N),h,c,!0);if(c.onTouchMove)c.onTouchMove(h)}},dpa=function(p,x,F){return function(N){ts8(p,N,x(),F())}},vS8=function(p,x){return function(){p.handleMouseLeave(x())}},JdX=function(p,x,F){return function(){var N=x(),h=F();
CK(p,N,h);if(h.onTouchEnd)h.onTouchEnd(N)}},C1H=function(p,x,F){return function(){var N=x(),h=F();
CK(p,N,h);if(h.onTouchEnd)h.onTouchEnd(N)}},S0k=function(p,x,F){return function(){CK(p,x(),F())}},rdD=function(p,x,F){return function(N){!F().disableScrubbing&&p.startPosition&&ts8(p,N,x(),F())}},ESa=function(p,x,F){return function(){if(!F().disableScrubbing)if(p.startPosition){var N=x(),h=F();
CK(p,x(),F());if(h.onTouchEnd)h.onTouchEnd(N)}else x().setState({isDragging:!1})}},DpX=function(p){p=p.touches[0];
return{x:p.clientX,y:p.clientY}},ts8=function(p,x,F,N){if(x.buttons!==1){if(x.movementX||x.movementY)x.preventDefault(),x.stopPropagation(),p=Xua(p,F,x.clientX),F.setState({isHovering:!0,
hoveredTime:p*F.videoDuration})}else gSk(F),q0X(p,x,{x:x.clientX,y:x.clientY},F,N,!1)};
Jt.prototype.handleMouseLeave=function(p){gSk(p)};
var gSk=function(p){p.isHovering&&p.setState({isHovering:!1,hoveredTime:0})},Mst=function(p,x,F,N){p.startPosition||(p.startPosition=F,p.updateProgressBarRect(),p.controlsWereVisibleBeforeDragging=N.controlsVisible,x.stopPropagation(),_.S("medium_progress_bar_modification")||x.preventDefault())},q0X=function(p,x,F,N,h,c){if(p.startPosition)if(c&&h.isInlinePlayback&&p.startPosition&&!p.hasDraggedTheMinimumDistance&&Math.abs(F.y-p.startPosition.y)>Math.abs(F.x-p.startPosition.x))CK(p,N,h);
else if(x.preventDefault(),x.stopPropagation(),N.videoDuration&&(p.startPosition&&!p.hasDraggedTheMinimumDistance&&(p.hasDraggedTheMinimumDistance=Math.abs(F.x-p.startPosition.x)>=1),h.enableFineScrubbing&&(p.startPosition&&(p.isDraggedForFineScrubbing=-(F.y-p.startPosition.y)>=60),!p.startPosition||F.y>=p.startPosition.y||(N.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:Ywm(N.draggedTime,N,h.chapterData)}),p.setFineScrubbingDraggedTime(N.draggedTime),p.updateFilmStripDraggedYDistance(p.startPosition.y,
F.y,N))),p.hasDraggedTheMinimumDistance)){x=Xua(p,N,F.x);if(p.isDraggedForFineScrubbing){var M;(M=N.playerApi)==null||M.pauseVideo();N.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:N.draggedTime,filmStripXDistance:Ywm(x*N.videoDuration,N,h.chapterData)})}!(M=!h.enableFineScrubbing)&&(M=h.enableFineScrubbing)&&(M=!(p.getFilmstripYPosition(N)<68));M&&N.setState({draggedTime:x*N.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:p.controlsWereVisibleBeforeDragging});
var f;(f=h.cancelAutohideControlsFn)==null||f.call(h)}},CK=function(p,x,F){var N=F.enableFineScrubbing&&x.fineScrubbingActiveState!=="off";
if(x.isDragging||N){N={isDragging:!1,playedTime:x.draggedTime,controlsVisible:p.controlsWereVisibleBeforeDragging};F.enableFineScrubbing&&x.fineScrubbingActiveState!=="on"&&(p.resetFilmStripYOffset(),N.fineScrubbingActiveState="off");var h=h===void 0?XOB:h;var c=_.b0(0);c&&h&&_.Rf(c,h,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(x.playedTime*1E3),endMediaTimeMs:Math.round(x.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});x.setState(N);
p.seekThrottle.fire(x.draggedTime,x,7);_.S("mweb_new_progress_bar_play_on_seek")&&p.resumeVideo(x);F.unmuteOnSeek&&(F=x.playerApi,x.volumeMuted&&(F==null||F.unMute()))}else x.setState({controlsVisible:!x.controlsVisible}),(c=F.triggerAutohideControlsAfterDelayFn)==null||c.call(F);p.startPosition=null;p.hasDraggedTheMinimumDistance=!1;p.isDraggedForFineScrubbing=!1;p.controlsWereVisibleBeforeDragging=!1};
Jt.prototype.handleClick=function(p,x,F){this.updateProgressBarRect();p.stopPropagation();p=Xua(this,x,p.clientX)*x.videoDuration;x.setState({playedTime:p});if(x.playerState!==2){var N;(N=F.triggerAutohideControlsAfterDelayFn)==null||N.call(F)}this.seekThrottle.fire(p,x,7)};
var Xua=function(p,x,F){p=p.getProgressBarRect(x);return _.YV(0,(F-p.left)/p.width,1)};
Jt.prototype.resumeVideo=function(p){if(p.draggedTime<p.videoDuration){var x;(x=p.playerApi)==null||x.playVideo()}};
Jt.prototype.onThrottledSeek=function(p,x,F){if(x=x.playerApi){var N;if((N=x.getVideoData())==null?0:N.isLive)N=this.getProgressState(x),p+=(N==null?void 0:N.seekableStart)||0;x.seekTo(p,void 0,void 0,void 0,F)}};
Jt.prototype.getProgressState=function(p){var x=p==null?void 0:p.getPresentingPlayerType();return p==null?void 0:p.getProgressState(x)};var snt,z$m,nSD,bgH,Qnc,AdH,uEk,Y0H,wum;snt=_.mO(function(p){var x=p.progressBarProps;var F=p.config;var N=p.progressBarWidthPx;var h=p.chapterData;var c=Hxk(x,function(){return F().isShortsPage}),M=function(){return!x().isHovering&&!F().isShortsPage};
p={};var f=_.$L("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(p.ytPlayerStoryboardHostMwebShorts=function(){return F().isShortsPage&&!1},p));
return _.Z("yt-player-storyboard",null,_.Z(_.D9,{cond:function(){return x().isDragging||x().isHovering},
then:function(){return _.Z(_.D9,{cond:c,then:function(K){return _.Z(_.D9,{cond:M,then:function(){return _.Z("div",{class:f,"aria-hidden":"true"},_.Z(Qnc,{props:x,config:F,isBigboard:!0,chapterData:h}))},
else:function(){return _.Z(z$m,{props:x,frame:K,config:F,progressBarWidthPx:N,chapterData:h})}})}})}}))},"be");
_.ydX=_.mO(function(p){var x=p.progressBarProps;var F=Hxk(x,p.isShortsPage);return _.Z("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.Z(_.D9,{cond:function(){return x().isDragging||x().isHovering},
then:function(){return _.Z(_.D9,{cond:F,then:function(N){return _.Z(nSD,{frame:N,props:x,isBigboard:!0})}})}}))},"ce");
z$m=_.mO(function(p){var x=p.props;var F=p.frame;var N=p.config;var h=p.progressBarWidthPx;p=p.chapterData;var c={};c=_.$L("ytPlayerStoryboardHost",(c.ytPlayerStoryboardHostMwebShorts=function(){return N().isShortsPage&&!1},c.ytPlayerStoryboardHostInlinePlayer=function(){return N().isInlinePlayer},c.ytPlayerStoryboardHostFadeIn=function(){return N().useFadeInAnimation},c));
return _.Z("div",{class:c,"aria-hidden":"true",style:function(){var M=x(),f=wOr(F()),K=h();M=GoE(M)/M.videoDuration;var t=K*M,d=f/2+6;f=K-(f/2+6);return"left: "+(t<=d?d/K*100:t>=f?f/K*100:M*100)+"%"}},_.Z(_.D9,{cond:function(){var M=x();
return!(N().isShortsPage&&M.videoDuration<15)},
then:function(){return _.Z(nSD,{frame:F,props:x,isBigboard:!1})}}),_.Z(Qnc,{props:x,
config:N,isBigboard:!1,chapterData:p}))},"de");
nSD=_.mO(function(p){var x=p.frame;var F=p.props;var N=p.isBigboard;var h=function(){var f,K;return(K=(f=F().playerApi)==null?void 0:f.getVideoContentRect())!=null?K:{width:0,height:0}},c=function(){return wOr(x())},M=function(){var f=x();
return f?f.height/f.rows:0};
p={};p=_.$L((p.ytPlayerStoryboardBigboardImageWrapper=N,p.ytPlayerStoryboardStoryboardImageWrapper=function(){return!N()},p));
return _.Z("div",{class:p,style:function(){return"width: "+(N()?h().width:c())+"px; height: "+(N()?h().height:M())+"px;"}},_.Z(bgH,{frame:x,
storyboardWidth:c,storyboardHeight:M,storyboardScale:function(){return(N()?h().width:c())/c()}}))},"ee");
bgH=_.mO(function(p){var x=p.frame;var F=p.storyboardWidth;var N=p.storyboardHeight;var h=p.storyboardScale;var c=function(){var M=x().row,f=x().column,K=F(),t=N(),d=h();return{left:-f*K*d,top:-M*t*d}};
return _.Z("img",{src:function(){return x().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+c().left+"px; top: "+c().top+"px; width: "+x().width*h()+"px; height: "+x().height*h()+"px;"}})},"fe");
Qnc=_.mO(function(p){var x=p.props;var F=p.config;var N=p.isBigboard;var h=p.chapterData;p={};p=_.$L("ytPlayerStoryboardMetadata",(p.ytPlayerStoryboardMetadataBigboard=N,p));return _.Z("div",{class:p},_.Z(_.D9,{cond:N,then:function(){return _.Z(_.TG,null,_.Z(AdH,{props:x,config:F}),_.Z(_.D9,{cond:function(){a:{var c=x();var M=F(),f=h(),K;if((M==null?0:M.activeChapter)&&((K=_.r(M==null?void 0:M.activeChapter,G1))==null?0:K.title))c=!0;else{M=_.a(qwp(f));for(M=M.next();!M.done;M=M.next()){c=(M=_.r(M.value,
I1C))&&V5w(c,M);break a}c=!1}}return c},
then:function(){return _.Z(uEk,{props:x,config:F,isBigboard:!0,chapterData:h})}}))},
else:function(){return _.Z(_.TG,null,_.Z(uEk,{props:x,config:F,isBigboard:!0,chapterData:h}),_.Z(AdH,{props:x,config:F}))}}))},"ge");
AdH=_.mO(function(p){var x=p.props;var F=p.config;p={};p=_.$L("ytPlayerStoryboardTimestamp",(p.ytPlayerStoryboardTimestampShorts=function(){return F().isShortsPage},p.ytPlayerStoryboardTimestampIsHovering=function(){return x().isHovering||F().isShortsPage&&!0},p));
return _.Z("div",{class:p},_.Z(_.TG,null,function(){return _.WGz(GoE(x()))}))},"he");
uEk=_.mO(function(p){var x=p.props;var F=p.config;var N=p.isBigboard;var h=p.chapterData;p={};N=_.$L("ytPlayerStoryboardTitle",(p.ytPlayerStoryboardTitleBigboard=N,p));return _.Z("div",{class:N},_.Z(_.D9,{cond:function(){return!F().isShortsPage},
then:function(){return _.Z(Y0H,{props:x,activeChapter:function(){return F().activeChapter},
chapterData:h})}}))},"ie");
Y0H=_.mO(function(p){var x=p.props;var F=p.activeChapter;var N=p.chapterData;return _.Z(_.TG,null,_.Z(_.ft,{each:function(){return qwp(N())},
keyBy:"INDEX"},function(h){return _.Z(_.TG,null,_.Z(_.D9,{cond:function(){return _.r(h(),I1C)&&V5w(x(),_.r(h(),I1C))},
then:function(){return _.Z(wum,{timedMarker:function(){return _.r(h(),I1C)}})}}))}),_.Z(_.D9,{cond:function(){var h;
return F()&&((h=_.r(F(),G1))==null?void 0:h.title)},
then:function(h){return _.Z(_.KQ,{text:h,noPreWrap:!0})}}))},"je");
wum=_.mO(function(p){var x=p.timedMarker;return _.Z(_.TG,null,_.Z("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.Z(_.DS,{icon:function(){return x().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.Z(_.KQ,{text:function(){return x().label},
noPreWrap:!0}))},"ke");_.GWX=_.mO(function(p){var x=p.progressBarProps;var F=p.playheadData;var N=p.config;p=_.oc();var h=_.oc(),c=_.oc(),M=_.a(_.hu({width:0,left:0},void 0,"v323Dc")),f=M.next().value,K=M.next().value,t=function(){c.value&&K(c.value.getBoundingClientRect())},d=function(){f().width<=0&&t();
return f()};
Rc("resize",t);var v=new Jt(d,function(){},function(){return 0},function(){},function(){},function(){}),C=function(){return x()};
M=_.a(_.hu(!1,void 0,"tcVkKf"));var X=M.next().value,Q=M.next().value;_.jl(h,"mouseenter",function(){Q(!0);N().position===2?setTimeout(function(){t()},100):t()});
_.jl(h,"mouseleave",function(){Q(!1);vS8(v,C)()});
M=_.h0(function(Y$){N().doSeekOnClick&&a3k(v,C,N)(Y$);return!1});
var b=_.h0(function(Y$){f3k(v,C)(Y$);return!1}),A=_.h0(function(Y$){Kd_(v,C)(Y$);
return!1}),Y=_.h0(function(Y$){Zg8(v,C,N)(Y$);
return!1}),O=_.h0(function(Y$){dpa(v,C,N)(Y$);
return!1}),Fw=_.h0(function(){JdX(v,C,N)();
return!1}),R=_.h0(function(){C1H(v,C,N)();
return!1}),ld=_.h0(function(){S0k(v,C,N)();
return!1});
Rc("mousemove",rdD(v,C,N));Rc("mouseup",ESa(v,C,N));_.J9(function(){gNk(h.value);Q(!1);t();ESa(v,C,N)()});
var pp={};pp=_.$L("ytPlayerProgressBarHost",function(){return N().className},(pp.ytPlayerProgressBarHostReadOnly=function(){return N().disableScrubbing},pp.ytPlayerProgressBarHostHidden=function(){return N().hideProgressBar&&!X()},pp.ytPlayerProgressBarHostLowerPlayer=function(){return N().position===0},pp.ytPlayerProgressBarHostBottomEdge=function(){return N().position===1},pp.ytPlayerProgressBarHostBottomInset=function(){return N().position===2},pp.ytPlayerProgressBarHostCustom=function(){return N().position===
3},pp));
var Kp={},sM=_.$L("ytPlayerProgressBarBackground",(Kp.ytPlayerProgressBarBackgroundHide=function(){return N().position===2&&!X()&&!x().isDragging},Kp));
Kp={};Kp=_.$L("ytPlayerProgressBarDragContainer",(Kp.ytPlayerProgressBarDragContainerBottomEdge=function(){return N().position===1},Kp));
var np={};np=_.$L("ytPlayerProgressBarProgressBar",(np.ytPlayerProgressBarProgressBarInset=function(){return N().position===2},np.ytPlayerProgressBarProgressBarInsetMinimized=function(){return N().position===2&&!X()&&!x().isDragging},np));
var Jz=function(){return Math.floor(M5m(x())*100)};
return _.Z("yt-progress-bar",{el:p,class:pp},_.Z(_.D9,{cond:function(){return N().position===2},
then:function(){return _.Z("div",{class:sM})}}),_.Z("div",{el:h,
"on:click":M,"on:touchstart":b,"on:mousedown":A,"on:touchmove":Y,"on:mousemove":O,"on:touchend":Fw,"on:mouseup":R,"on:touchcancel":ld,class:Kp,role:"slider","aria-valuenow":Jz,"aria-valuetext":function(){return Jz()+"%"},
tabindex:0,"aria-label":_.JG("SEEK_SLIDER")},_.Z("div",{el:c,class:np},_.Z(h$m,{progressBarProps:x,config:N,highContrast:function(){return!!N().isInlinePlayback}}),_.Z(_.D9,{cond:function(){return N().chapterData&&Zx6(N().chapterData)},
then:function(){return _.Z(FdH,{progressState:x,multiMarkersPlayerBarRenderer:function(){return N().chapterData},
progressBarWidth:function(){return f().width}})},
else:function(){return _.Z(l3_,{progressBarProps:x,config:N})}}),_.Z(cdm,{progressBarProps:x,
playheadData:F,interpolateDotPosition:function(){return N().position!==2},
hidePlayhead:function(){return N().playheadDotBehavior===1&&!X()}}))),_.Z(snt,{progressBarProps:x,
config:function(){return{activeChapter:yQZ(x(),N().chapterData),getProgressBarWidthPx:function(){return d().width},
isShortsPage:!!N().isShortsPage,isInlinePlayer:!!N().isInlinePlayback,useFadeInAnimation:!!N().isInlinePlayback}},
progressBarWidthPx:function(){return f().width},
chapterData:function(){return N().chapterData}}))},"le");
_.GWX.idomCompat=!0;Object.assign({},_.t5m(),{setState:function(){},
domMeasurements:{},appApi:_.a6M(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var Vst;
_.Wde=_.mO(function(){var p,x=(p=_.W$(mVH().playerApi))!=null?p:void 0;p=_.a(_.hu(!1,void 0,"HLFBmb"));var F=p.next().value,N=p.next().value;p=_.a(_.hu(!1,void 0,"lHH9bc"));var h=p.next().value,c=p.next().value;p=_.a(_.hu(!1,void 0,"zsY7yd"));var M=p.next().value,f=p.next().value;p=_.a(_.hu(!1,void 0,"KeHQgc"));var K=p.next().value,t=p.next().value;p=_.a(_.hu(0,void 0,"gLLCj"));var d=p.next().value,v=p.next().value;p=_.a(_.hu(0,void 0,"s3RYkf"));var C=p.next().value,X=p.next().value;p=_.a(_.hu(!1,void 0,
"Dn608e"));var Q=p.next().value,b=p.next().value;p=_.a(_.hu(0,void 0,"AnkH1b"));var A=p.next().value,Y=p.next().value;p=_.a(_.hu(0,void 0,"QYNL0b"));var O=p.next().value,Fw=p.next().value;p=_.a(_.hu("",void 0,"Yzw45d"));var R=p.next().value,ld=p.next().value;p=_.a(_.hu(-1,void 0,"iiVI0c"));var pp=p.next().value,Kp=p.next().value,sM=_.Kn(function(){var np={controlsVisible:F(),isOverlayHidden:h(),shouldWaitToHideControls:M(),isDragging:K(),isHovering:Q(),videoDuration:A(),playedTime:O(),videoId:R(),
draggedTime:C(),hoveredTime:d(),playerState:pp()};return Object.assign({},_.t5m(),np,{domMeasurements:{},setState:function(Jz){Jz.controlsVisible!==void 0&&N(Jz.controlsVisible);Jz.isOverlayHidden!==void 0&&c(Jz.isOverlayHidden);Jz.shouldWaitToHideControls!==void 0&&f(Jz.shouldWaitToHideControls);Jz.isDragging!==void 0&&t(Jz.isDragging);Jz.isHovering!==void 0&&b(Jz.isHovering);Jz.draggedTime!==void 0&&X(Jz.draggedTime);Jz.hoveredTime!==void 0&&v(Jz.hoveredTime);Jz.videoDuration!==void 0&&Y(Jz.videoDuration);
Jz.playedTime!==void 0&&Fw(Jz.playedTime);Jz.videoId!==void 0&&ld(Jz.videoId);Jz.playerState!==void 0&&Kp(Jz.playerState)},
appApi:_.a6M(),playerApi:x})},void 0,"ZW7y9");
_.d1(function(){x==null||x.addEventListener("onVideoProgress",C4M(sM));x==null||x.addEventListener("onVideoDataChange",JQZ(sM));x==null||x.addEventListener("onStateChange",dVH(sM))});
_.E_(function(){if(x==null?0:x.isReady())x==null||x.removeEventListener("onVideoProgress",C4M(sM)),x==null||x.removeEventListener("onVideoDataChange",JQZ(sM)),x==null||x.removeEventListener("onStateChange",dVH(sM))});
return _.Z("desktop-shorts-player-controls",null,_.Z(Vst,{playerControlsProps:sM}))},"me");
Vst=_.mO(function(p){var x=p.playerControlsProps;return _.Z("div",{class:"desktopShortsPlayerControlsWizHost"},_.Z(_.GWX,{progressBarProps:x,config:function(){return{isShortsPage:!0,hideProgressBar:x().videoDuration<30&&x().playerState!==2&&!x().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"ne");_.iK(_.P4E);_.HgH=_.mO(function(p){var x=p.data;return _.Z("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.Z(_.fQ,{command:function(){return x().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.Z(_.D9,{cond:function(){return x().iconName},
then:function(F){return _.Z(_.DS,{icon:F})}}),_.Z("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return x().text}),_.Z(_.D9,{cond:function(){return x().showEndChevron},
then:function(){return _.Z(_.DS,{icon:"CHEVRON_RIGHT"})}})))},"oe");var mpa=_.mO(function(p){var x=p.data;var F=p.overlayDensity;p={};return _.Z("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.Z(_.Es,{data:function(){return x().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(N){var h=N.data;
return _.Z(_.A6,{data:function(){if((F==null?void 0:F())===1){var c=Object;var M=c.assign,f=h();var K={avatarViewModel:Object.assign({},_.r(h().avatar,_.P2),{avatarImageSize:"AVATAR_SIZE_48"})};c=M.call(c,{},f,{avatar:K})}else c=h();return c}})}}),_.Z(_.KQ,{className:_.$L("ytReelChannelBarViewModelChannelName",(p.ytReelChannelBarViewModelChannelNameLarge=function(){return(F==null?void 0:F())===1},p)),
text:function(){return x().channelName},
linkInheritColor:!0,userInput:!0}),_.Z("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.Z(_.Es,{data:function(){return x().subscribeButtonViewModel}},{subscribeButtonViewModel:function(N){var h=N.data;
return _.Z(RPC,{data:function(){return(F==null?void 0:F())===1?Object.assign({},h(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},h().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):h()},
isOverlay:!1})},
buttonViewModel:_.nV})),_.Z("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.Z(_.Es,{data:function(){var N,h;return(h=_.r((N=x())==null?void 0:N.sponsorButtonViewModel,ySj))==null?void 0:h.sponsorButton}},{buttonViewModel:function(N){return _.Z(_.nV,{data:N.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"pe");var oSc=_.mO(function(p){var x={};return _.Z("yt-reel-multi-format-link-view-model",{class:_.$L("ytReelMultiFormatLinkViewModelHost",(x.ytReelMultiFormatLinkViewModelHostTall=!0,x.ytReelMultiFormatLinkViewModelHostLarge=function(){var F;return((F=p.overlayDensity)==null?void 0:F.call(p))===1},x))},_.Z(_.fQ,{ariaLabel:function(){return p.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.g$(p.data().command)},
dangerousStopPropagation:!1},_.Z("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.Z(_.D9,{cond:function(){return p.data().icon},
then:function(F){return _.Z(_.VE,{data:F,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.Z(_.KQ,{text:function(){return p.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"qe");
oSc.idomCompat=!0;var Og_=_.mO(function(p){var x=p.data;var F=_.oc();p=_.a(_.hu(!1,void 0,"XwMNzb"));var N=p.next().value,h=p.next().value;p=_.a(_.hu(!1,void 0,"ZysOx"));var c=p.next().value,M=p.next().value,f=function(){return x().isMultiLineSa},K=_.MN(gm$,function(){var Y,O;
return(O=(Y=x().toggleableContent)==null?void 0:Y.entityKey)!=null?O:""}),t=function(){var Y,O,Fw;
return(Fw=x().toggleableContent)!=null&&Fw.entityKey?(O=(Y=K())==null?void 0:Y.value)!=null?O:!1:!1},d=function(){var Y,O,Fw,R,ld,pp,Kp,sM,np,Jz,Y$;
return x().toggleableContent?t()?(Y=x().toggleableContent)==null?void 0:Y.toggledData:(O=x().toggleableContent)==null?void 0:O.untoggledData:{primaryText:(sM=(Fw=x().defaultContent)==null?void 0:Fw.primaryText)!=null?sM:x().text,secondaryText:(R=x().defaultContent)==null?void 0:R.secondaryText,onTapCommand:(np=(ld=x().defaultContent)==null?void 0:ld.onTapCommand)!=null?np:x().onTapCommand,icon:(Jz=(pp=x().defaultContent)==null?void 0:pp.icon)!=null?Jz:x().icon,image:(Y$=(Kp=x().defaultContent)==null?
void 0:Kp.image)!=null?Y$:x().image}},v=function(){return f()?x().trailingTapTarget:void 0};
p=function(Y,O){return function(){return N()?O:Y}};
var C={leadingSection:p("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:p("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:p("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:p("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};p={};p=_.$L((p.ytShortsSuggestedActionViewModelStaticHost=function(){return!f()},p.ytShortsSuggestedActionViewModelDynamicHost=f,p.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return f()&&c()},p.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return f()&&!c()},p));
_.J9(function(){if(f()){var Y=0,O;if((O=x().animationParams)==null?0:O.shouldExpand){var Fw,R;Y=((R=(Fw=x().animationParams)==null?void 0:Fw.expansionDelaySecs)!=null?R:0)*1E3}var ld,pp=((ld=x().animationParams)==null?0:ld.shouldExpand)?setTimeout(function(){h(!0)},Y):void 0,Kp,sM;
Y=((Kp=x().animationParams)==null?0:Kp.visibilityDelaySecs)?((sM=x().animationParams)==null?NaN:sM.visibilityDelaySecs)*1E3:0;var np=setTimeout(function(){M(!0)},Y);
_.E_(function(){pp&&clearTimeout(pp);clearTimeout(np)})}});
var X=function(Y){_.su(Y,Object.assign({},{form:{element:F.value}}))},Q=_.h0(function(){var Y,O=(Y=d())==null?void 0:Y.onTapCommand;
O&&X(O)}),b=_.h0(function(){var Y,O;
if(Y=(O=v())==null?void 0:O.onTapCommand)return X(Y),!1}),A=_.a4({"vertical-align":"bottom",
"border-radius":function(){var Y;return f()?((Y=x().defaultContent)==null?0:Y.isCircleImage)?"50%":"4px":"0px"},
width:function(){var Y,O,Fw;return f()&&((Y=x().defaultContent)==null?0:Y.imageSize)?((Fw=(O=x().defaultContent)==null?void 0:O.imageSize)!=null?Fw:24)+"px":null},
height:function(){var Y,O,Fw;return f()&&((Y=x().defaultContent)==null?0:Y.imageSize)?((Fw=(O=x().defaultContent)==null?void 0:O.imageSize)!=null?Fw:24)+"px":null}});
return _.Z("yt-shorts-suggested-action-view-model",{class:p,el:F},_.Z("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.Z("button",{class:_.$L(function(){return f()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var Y;
return(Y=x().useFullRoundedBorder)!=null&&Y?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!v()&&f()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":f()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var Y;
return(Y=x().disableFixedHeight)!=null&&Y?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""}),
"on:click":Q},_.Z(_.qC,{model:{color:4}}),_.Z("div",{class:_.$L(function(){return f()?C.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.Z(_.D9,{cond:function(){var Y;
return(Y=d())==null?void 0:Y.image},
then:function(Y){return _.Z(_.VE,{data:Y,alt:"",className:function(){return f()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:A})}}),_.Z(_.D9,{cond:function(){var Y,O;
return(Y=d())==null?void 0:(O=Y.icon)==null?void 0:O.iconType},
then:function(Y){return _.Z(_.DS,{icon:Y,active:t,className:function(){return f()?N()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.Z("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.Z(_.D9,{cond:function(){var Y;
return(Y=d())==null?void 0:Y.primaryText},
then:function(Y){return _.Z("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.Z(_.KQ,{text:Y}))}}),_.Z(_.D9,{cond:function(){var Y;
return(Y=d())==null?void 0:Y.secondaryText},
then:function(Y){return _.Z("div",{class:C.secondaryText},_.Z(_.KQ,{text:Y}))}}))),_.Z(_.D9,{cond:v,
then:function(Y){return _.Z("div",{class:C.trailingSection,"aria-label":function(){var O;return(O=Y().a11yLabel)!=null?O:""},
"on:click":b,role:"button",tabindex:0},_.Z(_.qC,{model:{color:4}}),_.Z(_.DS,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"re");var jnD=_.mO(function(p){var x=p.data;var F=p.overlayDensity;var N=_.oc();p=_.h0(function(M){if(_.vRM(_.Yw(M),N.value,["A".toString()]))return!1;(M=x().truncatedTextOnTapCommand)&&_.su(M);return!1});
var h={},c={};return _.Z("yt-shorts-video-title-view-model",{el:N,class:_.$L("ytShortsVideoTitleViewModelHost",(h.ytShortsVideoTitleViewModelHostClickable=function(){return!!x().truncatedTextOnTapCommand},h)),
"on:click":p},_.Z("h2",{class:_.$L("ytShortsVideoTitleViewModelShortsVideoTitle",(c.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(F==null?void 0:F())===1},c))},_.Z(_.KQ,{text:function(){return x().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"se");_.Ldm=_.mO(function(p){var x=p.data;var F=p.overlayDensity;return _.Z("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.Z(_.Es,{data:function(){return x().metadataItems}},{badgeViewModel:function(N){return _.Z("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Z(_.M5,{data:N.data}))},
playerDisclosureViewModel:function(N){return _.Z("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Z(_.HgH,{data:N.data}))},
shortsSuggestedActionViewModel:function(N){return _.Z("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Z(Og_,{data:N.data}))},
reelChannelBarViewModel:function(N){return _.Z("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Z(mpa,{data:N.data,overlayDensity:F}))},
reelMultiFormatLinkViewModel:function(N){return _.Z("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Z(oSc,{data:N.data,overlayDensity:F}))},
shortsVideoTitleViewModel:function(N){return _.Z("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Z(jnD,{data:N.data,overlayDensity:F}))},
reelSoundMetadataViewModel:function(N){return _.Z("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.Z(_.$G8,{data:N.data,overlayDensity:F}))}}))},"te");var P1m=_.mO(function(p){var x=_.Vg(p,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),F=x.size,N=x.onTap,h=x.disabled,c=x.tooltipText;return _.Z("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.Z($w,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:F(),disabled:h(),tooltipText:c(),onTap:N}},
iconName:p.iconType}))},"ue"),TwH=_.mO(function(p){function x(d){d.stopPropagation();
d.code==="ArrowUp"?(d.preventDefault(),kok(f.value)):d.code==="ArrowDown"?(d.preventDefault(),UVJ(f.value)):d.code==="KeyM"?BI6():(d.code==="KeyK"||d.code==="Space")&&RoH(K())}
var F=_.Vg(p,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});p=F.previousButtonDisabled;var N=F.nextButtonDisabled,h=F.data,c=F.playabilityStatus,M=F.previewThumbnail,f=_.oc(),K=_.g5(_.yYZ),t;_.d1(function(){(t=_.y5(f.value))&&t.addEventListener("keydown",x)});
_.E_(function(){var d;(d=t)==null||d.removeEventListener("keydown",x)});
F=function(){var d,v,C;return(d=h())==null?void 0:(v=d.reelPlayerOverlayRenderer)==null?void 0:(C=v.likeButton)==null?void 0:C.likeButtonRenderer};
return _.Z("ytd-shorts-miniplayer-overlay",{el:f,class:"ytdShortsMiniplayerOverlayHost"},_.Z("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.a4({"background-image":function(){var d=M();return d?'url("'+_.j6(d.thumbnails)+'")':""}})}),_.Z("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.Z("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.Z(P1m,{iconType:function(){var d=K();
return d===2||d===-1||d===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){RoH(K())},
tooltipText:function(){var d=K();return d===1||d===3?_.JG("PLAYER_LABEL_PAUSE"):_.JG("PLAYER_LABEL_PLAY")}}),_.Z(_.P4E,null)),_.Z("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.Z(P1m,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:p,onTap:function(){kok(f.value)},
tooltipText:_.JG("PREVIOUS_VIDEO_LABEL")}),_.Z(P1m,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:N,onTap:function(){UVJ(f.value)},
tooltipText:_.JG("NEXT_VIDEO_LABEL")}),_.S("web_shorts_pip_like_button")?_.Z("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.Z(X9H,{buttonTooltipPosition:"left",data:F,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.Z("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.Z(_.D9,{cond:function(){var d,v;return _.r((d=h())==null?void 0:(v=d.reelPlayerOverlayRenderer)==null?void 0:v.metapanel,
QLC)},
then:function(d){return _.Z("div",{class:_.$L("ytdShortsMiniplayerOverlayInteractive")},_.Z(_.Ldm,{data:d}))}})),_.Z("div",{class:_.$L("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var d;return!((d=h())==null||!d.adsOverlay)||c()&&!qKM(c())}},_.Z("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.Z(_.Wde,null)))),_.Z(_.D9,{cond:function(){var d=h(),v,C;
d=_.r(d==null?void 0:(v=d.adsOverlay)==null?void 0:(C=v.fulfillmentContent)==null?void 0:C.fulfilledLayout,Mck);return _.r(d==null?void 0:d.renderingContent,ZiB)},
then:function(d){return _.Z("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.Z(UKB,{data:d}))}}))},"ve");var ixk=_.mO(function(){var p=_.a(_.hu(new _.q1(NaN,NaN),void 0,"dCf7yb")),x=p.next().value,F=p.next().value;p=_.a(_.hu(!1,void 0,"smJHAc"));var N=p.next().value,h=p.next().value,c=_.a(_.hu(!1,void 0,"HnqDAc"));p=c.next().value;var M=c.next().value,f=_.J().resolve(_.H$).miniplayerPropSignalMap[0],K=f.data,t=f.shortsData,d=f.nextButtonDisabled,v=f.shortsPreviewThumbnail,C=f.previousButtonDisabled,X=f.externalPlaylistData;c=f.toastData;var Q=f.playabilityStatus,b=f.isDisabled;f=_.g5(_.CE);_.mi("yt-pip-window-resized",
function(Fw){F(Fw)});
_.mi("yt-activate-pip-miniplayer",function(){return _.D(function(Fw){M(!0);_.JB(Fw)})});
var A=function(){var Fw;return!((Fw=X())==null||!Fw.contents)&&N()},Y=function(){var Fw=x(),R=!!K(),ld=A();
Fw=Fw.clone();R&&(Fw.height-=76);ld&&(Fw.height-=285);return Fw},O=function(){h(!N())};
return _.Z("ytd-pip-container",{class:"ytdPipContainerHost"},_.Z(_.D9,{cond:p,then:function(){return _.Z(_.eZ8,{isDisabled:b,playabilityStatus:Q,size:Y})}}),_.Z(_.D9,{cond:K,
then:function(){return _.Z(_.I5_,{data:K,expanded:N,onExpandClick:O,playlistData:X})}}),_.Z(_.D9,{cond:A,
then:function(){return _.Z("div",{class:"ytdPipContainerPlaylistPanel"},_.Z(_.rBD,{data:X,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.Z(_.D9,{cond:f,
then:function(){return _.Z(TwH,{data:t,nextButtonDisabled:d,previousButtonDisabled:C,playabilityStatus:Q,previewThumbnail:v})}}),_.Z("div",{class:"ytdPipContainerToast"},_.Z(_.pua,{toastData:c})))},"we");var Sf=function(p,x){var F=this;this.pipController=p;this.JSC$16305_clientRoot=x;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=FGd();this.watchPipEnabled=_.S("web_watch_pip");this.shortsPipEnabled=_.S("web_shorts_pip");this.JSC$16305_watchWhileEnabled=_.S("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;_.qJ(_.Bi(),_.QOd,function(N){F.isSingleOptionSurveyActive=N});
this.JSC$16305_onPlayerPlayVideo=this.JSC$16305_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);_.WZ(_.Vj.getInstance(),this.miniplayerServiceActionMap,this.JSC$16305_clientRoot);window.documentPictureInPicture&&_.bd()&&_.E$("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},p1I,xfm,I3D,Fia,flJ,Nj8,hRa,lO8,e$m;
Sf.prototype.handleMediaSessionPipActivation=function(){var p=this,x;return _.D(function(F){_.fb().mediaSessionPipActivation=!0;x=_.J().resolve(_.j3);return x.isOnWatch()&&p.watchPipEnabled?(_.fb().watchPipActivation=!0,_.Bwt(p,x.data),F.jumpTo(0)):x.isOnShorts()&&p.shortsPipEnabled?(_.fb().shortsPipActivation=!0,_.R$t(p),F.jumpTo(0)):p.isMiniplayerActive()&&p.watchPipEnabled&&!p.watchWhileMode?_.q(F,kW8(p),0):F.jumpTo(0)})};
var kW8=function(p){var x,F,N,h;return _.D(function(c){if(c.nextAddress==1)return x=!p.miniplayerToPipMode,F=p.playerElement,N=p.miniplayerData,h=p.watchResponse,_.q(c,p.deactivate(),2);if(c.nextAddress!=3)return x?(_.fb().mediaSessionPipActivation=!0,_.fb().watchPipActivation=!0):_.fb().miniplayerButtonActivation=!0,_.q(c,p.activate(F,N,h),3);p.miniplayerToPipMode=x;_.JB(c)})};
Sf.prototype.onDownloadedVideoDeleted=function(p){var x,F=_.r((x=this.miniplayerData)==null?void 0:x.watchEndpoint,_.B7),N,h;F&&((N=this.watchResponse)==null?void 0:(h=N.playerResponse)==null?void 0:h.offlineState)!==void 0&&(x=F.videoId)&&p&&x===p&&this.close()};
Sf.prototype.onShowMiniplayerCommand=function(p){var x=this,F,N,h,c,M,f,K,t,d,v,C,X,Q;return _.D(function(b){switch(b.nextAddress){case 1:return F=_.r(p,vzB),h=(N=F)==null?void 0:N.miniplayerCommand,c=_.r(h,_.B7),h&&c&&!x.active?_.q(b,_.Sa.getInstance(),2):b.return();case 2:return M=b.yieldResult,_.q(b,(f=M)==null?void 0:f.get("yt-miniplayer-shown-video-id"),3);case 3:K=b.yieldResult;t=c.videoId;if(!t||K===t)return b.return();d=_.J().resolve(_.j3);if(d.isOnWatch())return _.no(Error("Bj")),b.return();
v={channelItem:{externalId:btoa(t)}};x.readyToResumeVe=_.vt(121253,void 0,void 0,v);_.fb().showMiniplayerCommandActivation=!0;return _.q(b,_.K4C(x,h,!0),4);case 4:return x.active?(_.rQ(x,{readyToResumeVe:x.readyToResumeVe,continueWatching:!0,premiumBranding:!((C=F)==null||!C.showPremiumBranding)}),x.isReadyToResume=!0):_.rQ(x,{continueWatching:!0,premiumBranding:!((X=F)==null||!X.showPremiumBranding)}),_.S("ytd_miniplayer_to_wiz")&&_.rQ(x,{isReadyToResume:!0}),_.q(b,(Q=M)==null?void 0:Q.set("yt-miniplayer-shown-video-id",
c.videoId),5);case 5:x.readyToResumeVe=void 0,_.JB(b)}})};
Sf.prototype.init=function(p){this.miniplayerEl?_.no(new _.qE("MiniplayerService already initialized.")):this.miniplayerEl=p};
Sf.prototype.isInitialized=function(){var p=!!this.miniplayerEl;p||_.no(new _.qE("MiniplayerService used before initialized."));return p};
_.Bwt=function(p,x){if(p.isInitialized()){var F=_.l6J(x.response,x.playerResponse),N=_.J().resolve(_.j3).getPlayerFromWatch();_.fb().currentEndpoint=F.watchEndpoint||null;p.activate(N,F,x)}};
_.R$t=function(p){if(p.isInitialized()){var x=_.J().resolve(_.j3).getPlayerFromShorts();p.activate(x)}};
p1I=function(p,x){var F;(F=!p.isInitialized())||(F=_.J().resolve(_.j3).isOnWatch()&&p.watchPipMode,F=!(p.isMiniplayerActive()&&(_.fb().userActivation||_.fb().lockupActivation||F)));if(F)return!1;UpH(p,x)?_.v4(p):flJ(p,x);return p.watchPipMode?!_.J().resolve(_.j3).isOnWatch():!0};
Sf.prototype.isMiniplayerActive=function(){return this.active};
var UpH=function(p,x){var F;x=(F=_.r(x,_.B7))==null?void 0:F.videoId;var N,h;p=(h=_.r((N=p.miniplayerData)==null?void 0:N.watchEndpoint,_.B7))==null?void 0:h.videoId;return x!=null&&x===p};
Sf.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.hG(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.lA(this.miniplayerEl,"yt-navigate-home-action"))};
_.K4C=function(p,x,F,N){F=F===void 0?!1:F;var h,c,M;return _.D(function(f){switch(f.nextAddress){case 1:if(p.active){f.jumpTo(2);break}h=_.J().resolve(_.j3);if(M=(c=p.playerElement)!=null?c:h.getPlayerFromWatch()){f.jumpTo(3);break}return _.q(f,_.J().resolve(_.Ui),4);case 4:M=h.getPlayerFromWatch();case 3:if(!M){_.no(Error("Dj"));f.jumpTo(2);break}return _.q(f,p.activate(M,N),2);case 2:return p.active?_.q(f,flJ(p,x,F),0):f.return()}})};
Sf.prototype.activate=function(p,x,F){var N=this,h,c,M,f,K,t,d,v;return _.D(function(C){switch(C.nextAddress){case 1:if(!N.isInitialized())return C.return();if(!p)return _.no(Error("Dj")),C.return();if(_.c7l()||N.isMiniplayerActive())var X=!0;else X=_.fb().watchPipActivation||_.fb().watchWhileActivation,_.J().resolve(_.j3).isOnWatch()&&!X?(_.no(new _.qE("miniplayer activated on watch page")),X=!0):X=_.fb().watchWhileActivation&&N.userDeactivatedWatchWhile?!0:!1;if(X)return lVv(),C.return();h=_.fb().mediaSessionPipActivation;
c=_.fb().shortsPipActivation;M=_.fb().watchPipActivation;K=(f=_.fb().watchWhileActivation)||M;t=M||c;if(!N.pictureInPictureEnabled()||!t){C.jumpTo(2);break}return _.q(C,ig8(N,h),3);case 3:if(!C.yieldResult)return _.no(Error("Cj")),lVv(),C.return();case 2:return N.setActive(!0),N.watchResponse=F,N.playerElement=p,N.updateMiniplayerData(x),_.q(C,I3D(N,p),4);case 4:if(!N.active)return _.no(new _.qE("miniplayer deactivated during activation")),N.removePlayerListeners(),C.return();X=_.J().resolve(_.Yx);
X.addEventListener("yt-navigate",_.p5(N,N.onPlaylistNavigate));X.addEventListener("yt-playlist-data-updated",_.p5(N,N.JSC$16305_onPlaylistDataUpdated));N.JSC$16305_onPlaylistDataUpdated();lVv();N.JSC$16305_watchWhileEnabled&&_.$pm(N,f);N.pictureInPictureEnabled()&&N.shortsPipEnabled&&(N.shortsPipMode=c,_.Bi().dispatch(TcC(N.shortsPipMode)));N.pictureInPictureEnabled()&&N.watchPipEnabled&&(N.watchPipMode=M);N.player&&(d=N.player.getPlayerState(),v=d===1,_.Bi().dispatch(phZ(d)),_.Mt(N.miniplayerEl,
"yt-miniplayer-play-state-changed",[v]),_.fb().isVideoPlaying=v);N.watchPipEnabled&&_.UAw(N.handleMediaSessionPipActivation);_.Mt(N.miniplayerEl,"yt-miniplayer-endpoint-changed");e$m(N);_.pZk(N);return N.shortsPipMode||N.watchPipMode?_.q(C,_.Dx(N.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.S("ytd_miniplayer_to_wiz")?_.q(C,_.Dx(N.miniplayerEl,"yt-activate-miniplayer",[K]),6):_.q(C,_.Dx(N.miniplayerEl,"yt-activate-miniplayer-action",[p,K]),6);case 6:xfm(N),Fia(N,!0),_.JB(C)}})};
Sf.prototype.updateMiniplayerData=function(p){this.miniplayerData=p;_.rQ(this,{data:p})};
_.pZk=function(p){var x,F,N=((x=p.miniplayerData)==null?void 0:(F=x.miniplayerRenderer)==null?void 0:F.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";x=p.watchWhileMode||p.watchPipMode?N&&!_.J().resolve(_.j3).isOnWatch():N;_.rQ(p,{isDisabled:x});var h,c;F=_.r((h=p.miniplayerData)==null?void 0:(c=h.miniplayerRenderer)==null?void 0:c.minimizedEndpoint,_.X3);x&&F&&_.J().resolve(_.gc).openSheet({openPopupActionCommand:{openPopupAction:F}},p.miniplayerEl)};
xfm=function(p){if(p.watchResponse&&(!p.watchWhileMode||!_.S("kevlar_watch_while_counterfactual"))){var x,F=(x=p.watchResponse.playerResponse)==null?void 0:x.trackingParams;F&&(_.rQ(p,{expandVe:_.vt(35989),closeVe:_.vt(34699),readyToResumeCloseVe:_.vt(131070),repositionVe:_.vt(226204),resizeVe:_.vt(226205)}),_.rQ(p,{playerVe:_.fr(F)}))}};
I3D=function(p,x){return _.D(function(F){if(F.nextAddress==1)return x.preparePlayer(),_.q(F,x.getPlayerPromise(),2);p.player=F.yieldResult;p.player&&(p.player.addEventListener("onPlayVideo",p.JSC$16305_onPlayerPlayVideo),p.player.addEventListener("onCloseMiniplayer",p.onPlayerCloseMiniplayer),p.player.addEventListener("onExpandMiniplayer",p.onPlayerExpandMiniplayer),p.player.addEventListener("onStateChange",p.onPlayerStateChange));_.JB(F)})};
_.l=Sf.prototype;_.l.JSC$16305_onPlayerPlayVideo=function(p){var x=p.sessionData&&"autonav"in p.sessionData,F;p.sessionData&&p.sessionData.itct&&(F=p.sessionData.itct);var N=p.watchEndpoint;x=N&&x?_.G$6(N,F):_.$v(p.videoId,p.listId||void 0,F);p.sessionData&&_.I9(_.r(x.commandMetadata,_.eq).url,p.sessionData);flJ(this,x)};
_.l.onPlayerExpandMiniplayer=function(){_.v4(this)};
_.l.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.l.onPlayerStateChange=function(){if(this.player){var p=this.player.getPlayerState(),x=p===1;_.Bi().dispatch(phZ(p));_.Bi().dispatch(_.FoB(p));_.Mt(this.miniplayerEl,"yt-miniplayer-play-state-changed",[x]);_.fb().isVideoPlaying=x;if(p===0){x=!_.Bf.getInstance().isAutoplaySetExplicitly();var F,N,h,c,M,f,K=(F=this.watchResponse.response)==null?void 0:(N=F.contents)==null?void 0:(h=N.twoColumnWatchNextResults)==null?void 0:(c=h.autoplay)==null?void 0:(M=c.autoplay)==null?void 0:(f=M.autoplayExplicitChoiceDialogRenderer)==
null?void 0:f.confirmDialogRenderer;x&&K&&this.player.setAutonavState(1)}p===0&&this.watchWhileMode&&this.deactivate()}};
_.l.onPlaylistNavigate=function(p,x){var F=this,N,h,c,M,f,K,t;return _.D(function(d){if(d.nextAddress==1){if(!_.r(x.endpoint,_.B7))return d.return();_.fb().currentEndpoint=x.endpoint;_.Mt(F.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.J().resolve(_.j3).isOnWatch()&&(F.watchWhileMode||F.watchPipMode))return d.return();p.stopPropagation();(c=(h=_.r((N=x.endpoint)==null?void 0:N.commandMetadata,_.eq))==null?void 0:h.url)&&x.tempData&&!_.Q5.isEmpty(x.tempData)&&_.I9(c,x.tempData);M={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};f=new x5l(function(){return F.getPlayerElement()},M,{layer:3});
K=function(v){f.processChunk({endpoint:x.endpoint,data:v})};
Nj8(F);F.miniplayerFetchRequest=hRa(F,x.endpoint,K);_.KM(d,2);return _.q(d,F.miniplayerFetchRequest,4)}if(d.nextAddress!=2)return t=d.yieldResult,lO8(F,t),_.ub(d,0);_.v9(d);_.JB(d)})};
_.l.JSC$16305_onPlaylistDataUpdated=function(){var p=_.J().resolve(_.Yx).getPlaylistData();this.hasPlaylistData=!!p;_.rQ(this,{externalPlaylistData:p||{}})};
_.l.close=function(p){if(this.isInitialized())if(p){if(!((this.watchWhileMode||this.watchPipMode)&&_.J().resolve(_.j3).isOnWatch()||this.shortsPipMode)){var x;(x=this.getPlayerElement())==null||x.stop()}this.deactivate()}else _.Hj().closeMiniplayer(this.miniplayerEl)};
_.l.deactivate=function(p){var x=this,F,N,h,c;return _.D(function(M){if(M.nextAddress==1){if(!x.isInitialized()||!x.active)return M.return();x.setActive(!1);Nj8(x);(F=!!p&&UpH(x,p))&&x.isSingleOptionSurveyActive&&_.lA(x.miniplayerEl,"yt-show-watch-page-survey",[x.isSingleOptionSurveyActive]);return _.q(M,cT_(x),2)}if(M.nextAddress!=3){Fia(x,!1);x.isReadyToResume=!1;x.watchResponse=void 0;x.updateMiniplayerData(void 0);x.shortsPipMode&&(x.shortsPipMode=!1,_.Bi().dispatch(TcC(x.shortsPipMode)),uDm(x.pipController),
(N=x.player)==null||N.setInternalSize(NaN,NaN));x.watchPipMode&&(x.watchPipMode=!1,uDm(x.pipController));(h=x.watchWhileMode)&&_.$pm(x,!1);x.removePlayerListeners();var f=_.J().resolve(_.Yx);f.removeEventListener("yt-navigate",_.p5(x,x.onPlaylistNavigate));f.removeEventListener("yt-playlist-data-updated",_.p5(x,x.JSC$16305_onPlaylistDataUpdated));_.fb().currentEndpoint=null;_.Mt(x.miniplayerEl,"yt-miniplayer-endpoint-changed");x.playerElement=null;lVv();return x.shortsPipMode||x.watchPipMode?M.jumpTo(3):
_.q(M,_.Dx(x.miniplayerEl,_.S("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[F,h]),3)}(c=x.player)==null||c.setInternalSize(NaN,NaN);x.player=null;_.JB(M)})};
var cT_=function(p){var x;return _.D(function(F){x=_.J().resolve(_.j3);return p.shortsPipMode?_.q(F,x.movePlayerToShorts(p.playerElement),0):_.q(F,x.movePlayerToWatch(p.playerElement),0)})};
Sf.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16305_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
Sf.prototype.setActive=function(p){this.active=p;this.isSingleOptionSurveyActive?_.lA(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.lA(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Bi().dispatch(_.F4({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.$pm=function(p,x){p.watchWhileMode=x;_.rQ(p,{watchWhile:x})};
Fia=function(p,x){if(p.shortsPipMode||p.watchPipMode){var F;(F=p.player)==null||F.setDocumentPictureInPicture(x)}else{var N;(N=p.player)==null||N.setMinimized(x)}};
_.v4=function(p){var x;return _.D(function(F){switch(F.nextAddress){case 1:if(!p.isInitialized())return F.return();_.KM(F,2);return _.q(F,p.miniplayerFetchRequest,4);case 4:_.ub(F,3);break;case 2:_.v9(F);case 3:p.watchResponse&&p.miniplayerData&&p.miniplayerData.watchEndpoint?(x={url:p.watchResponse.url,endpoint:p.miniplayerData.watchEndpoint,data:p.watchResponse,miniplayer:!0},_.hG(p.miniplayerEl,"yt-navigate-cache",x)):p.miniplayerData&&p.miniplayerData.watchEndpoint&&_.hG(p.miniplayerEl,"yt-navigate",
{endpoint:p.miniplayerData.watchEndpoint}),_.JB(F)}})};
flJ=function(p,x,F){var N,h,c,M;return _.D(function(f){if(f.nextAddress==1){if(UpH(p,x))return f.return();_.fb().currentEndpoint=x;_.Mt(p.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Mt(p.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.fb().isVideoPlaying=!1;N={clientParams:{miniplayer:!0,autoSaveToQueue:!F}};h=new x5l(function(){return p.getPlayerElement()},N,{layer:3,
parentLayer:0},void 0,p.readyToResumeVe);c=function(K){var t,d,v=Object.assign({},(t=K.playerResponse)==null?void 0:(d=t.playerConfig)==null?void 0:d.playbackStartConfig,{startPaused:!0}),C;F&&((C=K.playerResponse)==null?0:C.playerConfig)&&(K.playerResponse.playerConfig.playbackStartConfig=v);h.processChunk({endpoint:x,data:K})};
Nj8(p);p.miniplayerFetchRequest=hRa(p,x,c);_.KM(f,2);return _.q(f,p.miniplayerFetchRequest,4)}if(f.nextAddress!=2)return M=f.yieldResult,lO8(p,M),_.ub(f,0);_.v9(f);_.JB(f)})};
Nj8=function(p){p.miniplayerFetchRequest&&(p.miniplayerFetchRequest.cancel&&p.miniplayerFetchRequest.cancel("Active request obsolete"),p.miniplayerFetchRequest=null)};
hRa=function(p,x,F){var N=_.FA.instance,h,c=(h=_.r(x.commandMetadata,_.eq))==null?void 0:h.url,M;h=!c||_.S("disable_miniplayer_tempdata")?{}:(M=Id$(c))!=null?M:{};return Og(N,x,h,window.location.href,"watch",function(f,K){F(K)},function(f){return f!==p.miniplayerFetchRequest})};
lO8=function(p,x){var F;_.D(function(N){if(!x)return N.return();p.watchResponse=x;xfm(p);e$m(p);F=_.l6J(x.response,x.playerResponse);if(p.isMiniplayerActive()){x.response&&(p.playerElement.watchNextData=x.response);var h=_.Q5.getValueByKeys.apply(_.Q5,[x].concat(_.se(tm6)));_.Q5.getValueByKeys.apply(_.Q5,[x].concat(_.se(SNB)))&&h&&_.J().resolve(_.Yx).setAutoplayRenderer(h);if(h)if(_.S("kevlar_is_pupi_enabled")){var c,M,f,K,t,d=((c=x.response)==null?0:(M=c.playerOverlays)==null?0:(f=M.playerOverlayRenderer)==
null?0:(K=f.autonavToggle)==null?0:(t=K.autoplaySwitchButtonRenderer)==null?0:t.enabled)?2:1;_.Bf.getInstance().setState(d,!1,!1)}else c=fQw()?2:1,(d=p.player)==null||d.setAutonavState(c);p.updateMiniplayerData(F);_.pZk(p)}_.JB(N)})};
e$m=function(p){var x,F,N=(x=p.watchResponse)==null?void 0:(F=x.playerResponse)==null?void 0:F.playabilityStatus,h;x=N==null?void 0:(h=N.miniplayer)==null?void 0:h.miniplayerRenderer;(x==null?void 0:x.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&x.minimizedEndpoint&&_.fc(p.miniplayerEl,[x.minimizedEndpoint]);_.rQ(p,{miniplayerRenderer:x,playabilityStatus:N})};
Sf.prototype.openToast=function(p,x){_.rQ(this,{toastData:{data:p,label:x}})};
_.rQ=function(p,x){var F=p.miniplayerEl,N;for(N in x)F[N]=x[N];(0,p.miniplayerPropSignalMap[1])(x)};
Sf.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var p;return this.playerElement?this.playerElement:(p=_.n(this.miniplayerEl).querySelector("#player-container"))==null?void 0:p.firstElementChild};
var ig8=function(p,x){x=x===void 0?!1:x;var F,N,h,c,M,f,K;return _.D(function(t){if(t.nextAddress==1){F=navigator.userActivation.isActive||x;if(!F)return t.return(!1);N=aO8(p);h=N.width;c=N.height;return _.q(t,p.pipController.openWindow({width:h,height:c}),2)}M=t.yieldResult;f=p.pipController.getWindow();if(!f||!M)return t.return(!1);f.document.body.style.overflow="hidden";K=I6r(f);Y_D(p.pipController,function(){Mlc(p);K()});
return t.return(!0)})},aO8=function(p){var x=_.fb().shortsPipActivation,F,N;
p=x?.5625:(N=(F=p.player)==null?void 0:F.getVideoAspectRatio())!=null?N:16/9;F=Math.min(window.innerWidth,window.innerHeight)/2;x=x?0:76;return p>1?new _.q1(F,x+F/p):new _.q1(F*p,x+F)},Mlc=function(p){var x;
_.D(function(F){x=_.J().resolve(_.j3);return x.isOnWatch()&&p.watchPipMode||x.isOnShorts()&&p.shortsPipMode?_.q(F,p.deactivate(),0):p.miniplayerToPipMode?_.q(F,kW8(p),0):p.watchPipMode?_.q(F,_.v4(p),0):F.jumpTo(0)})};
Sf.prototype.pictureInPictureEnabled=function(){return!!window.documentPictureInPicture&&_.bd()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.R8.Object.defineProperties(Sf.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Sf[UP]=[weH,Aum];var Dfm="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(" "),
fO_="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" ");var Kia=null;var q$_={},Zoc=(q$_.initialized={priority:10,callback:function(p){var x=_.J();x.addProvider({provide:Hnl,useClass:btm});x.addProvider({provide:_.y98,useFactory:function(){return new mGb}});
x.addProvider({provide:zd,useValue:_.sd("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});x.addProvider({provide:Pkt,useValue:5184E6});x.addProvider({provide:hWX,useValue:_.nP()});x.addProvider({provide:tOH,useClass:i$n});x.addProvider({provide:wE,useClass:wE});x.addProvider({provide:_.Ui,useFactory:function(){return RJk.promise}});
x.addProvider({provide:_.UQI,useFactory:function(){return _.kpI.promise}});
x.addProvider({provide:_.pV,useValue:function(){var f;return((f=_.Pt())==null?void 0:f.getPlayer())||null}});
var F={};x.addProvider((F.provide=_.OC,F.useFactory=function(f,K){return function(){return bv6(f,K)}},F[UP]=[zd,
Pkt],F));F={};x.addProvider((F.provide=_.h7,F.useClass=u2H,F[UP]=[zd,Pkt],F));F={};x.addProvider((F.provide=_.Klz,F.useClass=Vek,F[UP]=[_.h7],F));x.addProvider({provide:vG,useFactory:_.Bi});x.addProvider({provide:DX,useFactory:_.Bi});x.addProvider({provide:Jum,useFactory:_.Bi});x.addProvider({provide:vcn,useFactory:_.Bi});x.addProvider({provide:_.Q_,useFactory:_.Bi});x.addProvider({provide:ln,useValue:_.K1});x.addProvider({provide:gF8,useClass:qbJ});x.addProvider({provide:gH8,useClass:Xm8});x.addProvider({provide:sC,
useClass:sC});x.addProvider({provide:SU,useClass:SU});x.addProvider({provide:Xs,useClass:Xs});x.addProvider({provide:Qe,useClass:Qe});x.addProvider({provide:wO,useClass:wO});x.addProvider({provide:fw,useClass:fw});x.addProvider({provide:NP,useClass:NP});x.addProvider({provide:CIH,useValue:jxm});x.addProvider({provide:_.Zy,useFactory:_.cl});x.addProvider({provide:Ihm,useFactory:_.rH});F={};x.addProvider((F.provide=Ttz,F.useFactory=function(f){return function(K){var t=t===void 0?{}:t;var d,v,C=(v=_.r((d=
K.endpoint)==null?void 0:d.commandMetadata,_.eq))==null?void 0:v.rootVe;if(C){var X,Q;if(d=K.previousCsn||((Q=_.r((X=K.endpoint)==null?void 0:X.commandMetadata,Pxn))==null?void 0:Q.parentCsn)){var b=b===void 0?{}:b;if(d!==_.b0(b.layer)||C!==hUm(b.layer))Dhd(d,b.cttAuthInfo,b.layer||0),F3B(d,b.layer||0),X=b.layer||0,_.zn(NWw(X===void 0?0:X),C);t.parentCsn=d}K.endpoint&&d?TFl(f,K.endpoint,t):_.F8(f,C,void 0,t);var A;((A=K.response)==null?0:A.trackingParams)&&f.graftServerVe(K.response.trackingParams);
var Y;((Y=K.playerResponse)==null?0:Y.trackingParams)&&f.graftServerVe(K.playerResponse.trackingParams);var O;((O=K.reelWatchSequenceResponse)==null?0:O.trackingParams)&&f.graftServerVe(K.reelWatchSequenceResponse.trackingParams)}}},F[UP]=[_.Zy],F));
F={};x.addProvider((F.provide=S_H,F.useClass=CGX,F[UP]=[ln,_.Q_],F));F={};x.addProvider((F.provide=$G,F.useClass=$G,F[UP]=[_.Ui,_.Q_],F));F={};x.addProvider((F.provide=kG,F.useClass=kG,F[UP]=[DX,_.RD],F));x.addProvider({provide:_.zKX,useClass:VOD});F={};x.addProvider((F.provide=_.Xm,F.useClass=yue,F[UP]=[_.zKX],F));x.addProvider({provide:_.gc,useClass:xr});x.addProvider({provide:_.Qc,useClass:eU});F={};x.addProvider((F.provide=_.$m,F.useClass=GGm,F[UP]=[_.$m],F));_.S("web_enable_voting_animation")&&
x.addProvider({provide:_.LY,useClass:d1_});x.addProvider({provide:EV,useClass:EV});x.addProvider({provide:nD,useClass:nD});x.addProvider({provide:Vt,useClass:pK});F={};x.addProvider((F.provide=m7,F.useClass=m7,F[UP]=[_.gc,Vt],F));_.S("web_enable_feedback_endpoint_resolver")&&(F={},x.addProvider((F.provide=Jp,F.useClass=Jp,F[UP]=[vG,d0],F)),x.addProvider({provide:d0,useClass:WMH}));_.S("web_enable_feedback_endpoint_resolver_batch_2")&&(F={},x.addProvider((F.provide=SE,F.useClass=SE,F[UP]=[vG],F)),
F={},x.addProvider((F.provide=CD,F.useClass=CD,F[UP]=[d0],F)));F={};x.addProvider((F.provide=WG,F.useClass=WG,F[UP]=[_.Qc,Vt],F));F={};x.addProvider((F.provide=un,F.useClass=un,F[UP]=[_.Qc],F));F={};x.addProvider((F.provide=HG,F.useClass=HG,F[UP]=[_.SV,_.Xm],F));F={};x.addProvider((F.provide=Gd,F.useClass=Gd,F[UP]=[_.SV,_.Zy],F));x.addProvider({provide:lJ,useClass:lJ});F={};x.addProvider((F.provide=xK,F.useClass=xK,F[UP]=[vG],F));F={};x.addProvider((F.provide=CI,F.useClass=CI,F[UP]=[vG],F));F={};
x.addProvider((F.provide=SW,F.useClass=SW,F[UP]=[_.SV,vG],F));F={};x.addProvider((F.provide=rz,F.useClass=rz,F[UP]=[vG],F));F={};x.addProvider((F.provide=EI,F.useClass=EI,F[UP]=[vG],F));F={};x.addProvider((F.provide=Ym,F.useClass=Ym,F[UP]=[_.Xm],F));F={};x.addProvider((F.provide=DH,F.useClass=DH,F[UP]=[_.Zy],F));F={};x.addProvider((F.provide=dz,F.useClass=dz,F[UP]=[Nb],F));F={};x.addProvider((F.provide=vP,F.useClass=vP,F[UP]=[Nb],F));x.addProvider({provide:qb,useClass:qb});x.addProvider({provide:ZH,
useClass:ZH});x.addProvider({provide:Mb,useClass:Mb});F={};x.addProvider((F.provide=og,F.useClass=og,F[UP]=[_.Xm,_.RD],F));x.addProvider({provide:Qt,useClass:Qt});F={};x.addProvider((F.provide=w0,F.useClass=w0,F[UP]=[_.SV,_.Xm],F));x.addProvider({provide:bn,useClass:bn});F={};x.addProvider((F.provide=eE,F.useClass=eE,F[UP]=[vG,_.SV,_.$m],F));F={};x.addProvider((F.provide=UV,F.useClass=UV,F[UP]=[_.SV,_.RD],F));x.addProvider({provide:cVl,useValue:TTk});x.addProvider({provide:Zzm,useValue:eYm});x.addProvider({provide:Ig,
useClass:Ig});F={};x.addProvider((F.provide=km,F.useClass=km,F[UP]=[vG],F));F={};x.addProvider((F.provide=pI,F.useClass=pI,F[UP]=[_.LY,_.RD],F));F={};x.addProvider((F.provide=r0,F.useClass=r0,F[UP]=[_.RD],F));x.addProvider({provide:tp,useFactory:function(){return new tp(_.Bi())}});
x.addProvider({provide:dvm,useFactory:_.wX.getInstance});F={};x.addProvider((F.provide=sV,F.useClass=sV,F[UP]=[zd,dvm,_.RD],F));x.addProvider({provide:Xl,useClass:Xl});x.addProvider({provide:Dk,useClass:Dk});x.addProvider({provide:KD,useClass:KD});x.addProvider({provide:_.fD,useClass:_.fD});x.addProvider({provide:QV,useClass:QV});F={};x.addProvider((F.provide=Td,F.useClass=Td,F[UP]=[DX],F));F={};x.addProvider((F.provide=BG,F.useClass=BG,F[UP]=[_.RD],F));_.S("web_enable_prefetching_videos_on_home")&&
(x.addProvider({provide:Rj,useClass:Rj}),x.addProvider({provide:KK,useClass:KK}));F={};x.addProvider((F.provide=gz,F.useClass=gz,F[UP]=[_.RD],F));x.addProvider({provide:qe,useClass:qe});F={};x.addProvider((F.provide=cP,F.useClass=cP,F[UP]=[_.SV,_.RD],F));F={};x.addProvider((F.provide=Zk,F.useClass=Zk,F[UP]=[_.RD],F));x.addProvider({provide:q_,useClass:q_});x.addProvider({provide:LD,useClass:LD});F={};x.addProvider((F.provide=jE,F.useClass=jE,F[UP]=[DX,_.RD],F));F={};x.addProvider((F.provide=nI,F.useClass=
nI,F[UP]=[DX,_.RD,_.SV],F));F={};x.addProvider((F.provide=yV,F.useClass=yV,F[UP]=[_.RD],F));F={};x.addProvider((F.provide=sI,F.useClass=sI,F[UP]=[_.RD,_.SV],F));F={};x.addProvider((F.provide=Rg,F.useClass=Rg,F[UP]=[_.Ui],F));F={};x.addProvider((F.provide=PG,F.useClass=PG,F[UP]=[_.Ui],F));x.addProvider({provide:Fi,useClass:Fi});x.addProvider({provide:hE,useClass:hE});x.addProvider({provide:JE,useClass:JE});_.S("kevlar_enable_mss_lazy_load")&&x.addProvider({provide:_.oi,useClass:MQk});x.addProvider({provide:_.pJ,
useClass:N_});x.addProvider({provide:Tv,useFactory:function(){return _.Vj.getInstance()}});
x.addProvider({provide:dG8,useFactory:BGE});x.addProvider({provide:Nb,useFactory:function(){return _.Sa.getInstance()}});
x.addProvider({provide:oeZ,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});F={};x.addProvider((F.provide=_.UC,F.useClass=_.UC,F[UP]=[_.Ui,_.RD,_.Zy,dG8,Nb,Tv,oeZ,ln],F));x.addProvider({provide:_.VfC,useClass:GQm});x.addProvider({provide:_.Bs8,useClass:Ts8});F={};x.addProvider((F.provide=Ap,F.useClass=Ap,F[UP]=[_.Bs8],F));F={};x.addProvider((F.provide=_.iZ,F.useFactory=function(f){return f.upliftCompletionResolver.promise},F[UP]=[S_H],F));
F=_.nt("IS_SHELL_LOAD")?"aa":"eocs";var N=_.nt("IS_SHELL_LOAD")?3:2;_.GN().parkOrScheduleJob(function(){Ede()},N,F);
_.GN().parkOrScheduleJob(function(){_.J().resolve($G).start()},2,"eocs");
_.GN().parkOrScheduleJob(function(){vdX()},2,"eocs");
_.GN().parkOrScheduleJob(function(){_.J().resolve(kG).start()},2,"eocs");
_.S("kevlar_debug_data_app_registration_ks")||NO$();x.addProvider({provide:_.CQ,useValue:new zDH(p.root)});x.addProvider({provide:wj,useValue:new u6H});x.addProvider({provide:_.w9a,useValue:new uBe(p.root)});x.addProvider({provide:_.CR,useValue:new Yee});x.addProvider({provide:_.hA,useValue:new K_(p.root)});x.addProvider({provide:weH,useClass:Fz});_.S("kevlar_network_sli_killswitch")||x.addProvider({provide:Gnk,useValue:XyD});x.addProvider({provide:QDm,useFactory:zjZ});_.S("web_bind_fetch")&&(F={},
x.addProvider((F.provide=zae,F.useFactory=sNr,F[UP]=[_.Bw(QDm)],F)));_.S("web_bind_parse")&&(F={},x.addProvider((F.provide=sDe,F.useFactory=nhp,F[UP]=[_.Bw(QDm)],F)));_.S("web_bind_window_request")&&(F={},x.addProvider((F.provide=nFm,F.useFactory=ybM,F[UP]=[_.Bw(QDm)],F)));F={};x.addProvider((F.provide=MeH,F.useFactory=jN6,F[UP]=[_.iZ,vG,_.OC],F));F={};x.addProvider((F.provide=a0k,F.useClass=bJ,F[UP]=[MeH],F));x.addProvider({provide:gCe,useClass:SyD});x.addProvider({provide:Nv8,useClass:l0c});F=[].concat(_.se(Vm));
_.S("web_continuation_response_processing")&&F.push(_.zO);F.push(xqC);_.S("enable_share_panel_navigation_logging_fix_on_web")&&F.push(_.m7k);x.addProvider({provide:rJB,useValue:F});x.addProvider({provide:C6p,useClass:FX_});x.addProvider({provide:m$m,useClass:Vrm});F={};x.addProvider((F.provide=tLd,F.useClass=Bn_,F[UP]=[DX],F));_.E0.addLowPriorityJob(function(){dKB()});
F={};x.addProvider((F.provide=Ec6,F.useFactory=function(f){return function(K){var t,d=(t=_.r(K.commandMetadata,_.eq))==null?void 0:t.url;if(!d)throw new _.qE("No URL for PBJ Command",K);d=KTm(d,{pbj:"1"});t=bcH(d,{})||{};t=Object.assign({},t,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.sd("STS").toString()});K=_.hq({command:JSON.stringify(K),session_token:_.sd("XSRF_TOKEN")});return f.fetch(d,{method:"POST",headers:t,body:K})}},F[UP]=[m$m],F));
F=[];F.push(x.resolve(Nv8));N={};N=(N.client_location=_.wX.getInstance(),N.consistency=_.neH(),N.entities=x.resolve(gH8),N.response_received_commands=x.resolve(C6p),N.store=x.resolve(_.Klz),N.tokens=x.resolve(Nv8),N);if(_.S("web_shorts_prefetch_service_enabled")){var h=new WXc(x.resolve(_.h7));N.shorts_prefetch=h}N.adblock_detection=x.resolve(tLd);x.addProvider({provide:_.GW,useClass:_.GW});h=x.resolve(CIH);var c=[];_.S("PremiumClientSharedConfig__enable_att_context_processor")&&(x.addProvider({provide:c_H,
useClass:NsX}),c.push(x.resolve(c_H)));if(_.S("owl_pl_await")){var M={};x.addProvider((M.provide=COa,M.useFactory=function(f){return new vF8(f)},M[UP]=[_.GW],M));
c.push(x.resolve(COa))}NUD(h,x.resolve(m$m),x.resolve(gF8),N,x.resolve(_.h7),F,c,x.resolve(a0k),x.resolve(gCe));x.addProvider({provide:_.SV,useValue:_.uT.instance});_.S("start_client_gcf")&&x.addProvider({provide:JT,useValue:DzK()});x.addProvider({provide:gd8,useFactory:function(){return new gd8(_.J().resolve(_.GW),_.Sa.getInstance())}});
_.GN().parkOrScheduleJob(function(){QUH()},1,"eocs");
F={};x.addProvider((F.provide=Ij,F.useClass=Ij,F[UP]=[_.OC,_.SV],F));x.addProvider({provide:_.On8,useFactory:_.fK.getInstance});_.GN().parkOrScheduleJob(function(){_.J().resolve(Ij).refresh()},0,"eocs");
XJC(jxm.watchEndpointMap||{},h.reelWatchEndpointMap||{},p.injector.resolve(_.SV));x.addProvider({provide:Q$,useValue:_.FA.instance});_.S("web_prs_testing_mode_killswitch")||(F=new _.R9(window.location.href),F.JSC$7886_queryData_.toString()!==""&&F.JSC$7886_queryData_.get("force_ad_encrypted")&&(_.FA.instance.forceWebFEForAdsTesting=!0));_.S("kevlar_signal_collection_killswitch")||(F={},x.addProvider((F.provide=ZnH,F.useClass=ZnH,F[UP]=[zd,Ihm],F)),_.GN().parkOrScheduleJob(function(){_.J().resolve(ZnH).record()},
1,"eocs"));
_.S("web_debug_handler_registration_killswitch")||_.GN().parkOrScheduleJob(function(){xU6("DOWNLOAD_PES",TGw);_.S("offline_client_state_export_ks")||xU6("OFFLINE_CLIENT_STATE",jb$)},0,"eocs");
_.S("kevlar_prevent_polymer_dynamic_font_load")&&_.GN().parkOrScheduleJob(function(){var f=[_.xH(itm),_.xH(I9_)];f=_.a(f);for(var K=f.next();!K.done;K=f.next()){K=K.value;var t=document.createElement("link");_.eP(t,K,"stylesheet");document.head.appendChild(t)}},1,"eocs");
F=p.injector.resolve(_.SV);_.lhD.instance=new _.lhD(F);nIp(ICc(new hte(F)));F={};p.injector.addProvider((F.provide=kl,F.useFactory=function(f){(f=f==null?void 0:f.getCurrentPage())?f=f.visibilityObserver:(Kia||(Kia=y5p()),f=Kia);return f},F[UP]=[_.Bw(_.j3)],F.skipCache=!0,F));
x.addProvider({provide:_.H$,useClass:Sf});x.addProvider({provide:f_,useClass:LPb});x.addProvider({provide:LPr,useValue:kqE});p.injector.addProvider({provide:GVI,useValue:QyH});x.addProvider({provide:wFb,useValue:PsE});x.addProvider({provide:_.AD,useValue:FbB});p=x.addProvider;LVc||(LVc=new jUH);p.call(x,{provide:_.PGm,useValue:LVc});x.addProvider({provide:_.YL,useValue:_.sd("HTML_DIR")==="rtl"?"rtl":"ltr"});x.addProvider({provide:ztm,useClass:Gy8});x.addProvider({provide:_.pr,useClass:ht});_.J().addProvider({provide:nHm,
useValue:Dfm.concat(fO_)});x.addProvider({provide:_.c4,useClass:_.c4});x.addProvider({provide:_.B1_,useValue:new T1H});x.addProvider({provide:EEH,useClass:r_a});x.addProvider({provide:am,useClass:am});x.addProvider({provide:fI,useClass:fI});p={};x.addProvider((p.provide=OV,p.useClass=OV,p[UP]=[_.SV,_.Xm],p));x.addProvider({provide:zC,useClass:zC});x.addProvider({provide:O6m,useClass:HnD});x.addProvider({provide:tE,useClass:tE});x.addProvider({provide:xvD,useValue:bxn});x.addProvider({provide:_.mz,
useClass:EHc});_.S("enable_payments_purchase_manager")&&x.addProvider({provide:fhH,useClass:ah_});x.addProvider({provide:U$H,useFactory:function(){return function(f){return _.knD(f)}}});
x.addProvider({provide:_.pSm,useClass:xcX});p={};x.addProvider((p.provide=Xi,p.useClass=Xi,p[UP]=[_.pSm],p));x.addProvider({provide:KI,useClass:KI});x.addProvider({provide:kBc,useValue:fCk});x.addProvider({provide:SnJ,useValue:ink});x.addProvider({provide:qCk,useClass:WVD});x.addProvider({provide:RZc,useValue:BqD});p={};x.addProvider((p.provide=_.kI8,p.useClass=UEk,p[UP]=[RZc],p));_.S("web_ephemeral_actions")&&(p={},x.addProvider((p.provide=_.M_,p.useClass=aP,p[UP]=[_.Q_,_.hA],p)));if(_.S("web_explore_hub_on_hover")||
_.S("web_client_explore_hub_on_hover"))p={},x.addProvider((p.provide=g0,p.useClass=g0,p[UP]=[_.SV,Tv],p));x.addProvider({provide:VE$,useValue:nmw})}},q$_);var tl8={},df_=(tl8.initialized={priority:10,callback:function(){if(!wwm){WJH();AbH("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.pf(_.Sz(AbH,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.S("log_heartbeat_with_lifecycles")){var p={};Rz.instance||(Rz.instance=new Rz);Rz.instance.install((p.document_visible={callback:uL$,priority:10},p.document_hidden={callback:uL$,priority:10},p))}else _.Bu(document,"visibilitychange",uL$);wwm=!0}(p=_.b0())&&p!=="UNDEFINED_CSN"&&paE(p)}},tl8);var vlD={},JTm=(vlD.initialized={callback:function(p){var x=_.vt(232091),F=p.injector.resolve(_.Zy);_.NJ(F,x);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?$VE()&&_.lC(F,x):(p=p.injector.resolve(U$H)("refresh_detector"))&&(p.get("first_tab_load")?_.lC(F,x):p.set("first_tab_load","1"))}},vlD);var CKH={},S$c=(CKH.initialized={priority:10,callback:cPB},CKH);var rTa={},Ele=(rTa.rendering={priority:8,callback:aop},rTa);var XZm={},glc=(XZm.rendering={priority:10,callback:rPw},XZm.rendered={callback:SXM},XZm),QcX={},zR_=(QcX.rendering={callback:rPw},QcX.rendered={callback:SXM},QcX);var sca=!1,nl8={},yT_=(nl8.initialized={priority:10,callback:function(){sca||(fIp({didPatch:function(p){p.el&&W1z(p.el,p.props)},
didUnmount:function(p){Gfp(p.el)}}),sca=!0)}},nl8);var boc=/^\/shorts\/?$/;_.zn("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(_.S("kevlar_enable_mss")){_.AqZ(new BHj);var ATH=!0,uxt,EA;ATH=ATH===void 0?!1:ATH;uxt=uxt===void 0?!1:uxt;EA=EA===void 0?{}:EA;var Y$t=EA.cssRowKey||"",wZt=EA.combinedSignature||"";!Y$t&&window&&window._F_cssRowKey&&(Y$t=window._F_cssRowKey,!wZt&&window._F_combinedSignature&&(wZt=window._F_combinedSignature));if(Y$t&&typeof window._F_installCss!=="function")throw Error("ud");var Gj8=EA.loaderClass||_.V1,VlH,WiH=dp6("base-js");VlH=_.vz(WiH);var Xz=new Gj8(VlH,Y$t,wZt,ATH,uxt);EA.useCors&&(Xz.useCors_=
EA.useCors);EA.corsMode&&(Xz.corsMode_=EA.corsMode);EA.urlMaxLength&&(Xz.urlMaxLength=EA.urlMaxLength);EA.fetchPriority&&(Xz.fetchPriority=EA.fetchPriority);var Hom=gv();Hom.JSC$7908_loader_=Xz;Hom.setBatchModeEnabled(!0)}
(function(){var p=document.querySelector("ytd-app");if(!p)throw Error("Ej");p=new DL({root:p,injector:_.J()});p.install(df_);var x={};p.install((x.initialized={priority:10,callback:SZM},x));_.S("wp_lat_b")&&(x={},p.install((x.initialized={priority:10,callback:function(){XUH()}},x)));
x={};p.install((x.rendered={priority:0,callback:vem},x));x={};p.install((x.rendered={priority:0,callback:function(){_.E0.addLowPriorityJob(function(){_.VSc>1&&(DQE(),tvz())},4E4)}},x));
p.install(X8_);p.install(JTm);p.install(yT_);Sf6=axJ;MqE=Wvk;Q9B=Ti$;EQE=Bik;_.S("ytwiz_enable_debug_component_props")&&A8p();p.install(Aq8);p.install(v3e);p.install(rqH);p.install(cum);p.install(KVa);p.install(yq8);p.install(Zoc);_.S("kevlar_enable_mss_lazy_load")&&p.install(S$c);p.install(Cb8);if(!_.nt("IS_SHELL_LOAD")||_.S("kevlar_fetch_initial_data_promise_client")||_.S("sw_nav_preload_pbj")){var F=_.F_(window.location.href);x=F&&F==="/watch";F=F&&F.match(boc);x?p.install(zR_):F?p.install(Ele):
p.install(glc)}else p.install(Zfk);p.install(Qx8);_.S("web_enable_prefetching_videos_on_home")&&p.install(GIt);_.S("start_client_gcf")&&p.install(Ydk);p.install(xGa);(new JuB).increment("INSTALLED");p.install(Y5H);p.install(f5m);p.transition("initialized")})();
_._ModuleManager_initialize=function(p,x){if(!_.Ey){if(!_.X2)return;_.AqZ(_.X2())}_.Ey.setAllModuleInfoString(p,x)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:3,6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/nmfa2d:h,n,o/syl:7,o/sym:g,h,q/CF909:n,r/Tm0L3c:r/L3n37:g,h,n,q/iuT5Oc',['sy2','sy8','syc','sya','sy6','sy3','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','syl','syg','syf','syj','sym','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.nK=function(p,x,F,N,h){var c={};x&&(c[x]=F);N?c.errorType=N:h&&(c.errorReason=h);_.E$(p,c);_.Xx()};
_.yy=function(p,x){_.Dwp(p,_.L1(x))};
_.bw=function(p){var x=_.GN();return _.zLb(x,p,1)};
_.qu({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 p=this.query;p&&(this.full||p[0]==="("||(p="("+p+")"),this._mq=window.matchMedia(p),this._add(),this.queryHandler(this._mq))},
queryHandler:function(p){this._setQueryMatches(p.matches)}});var IOk;var $fe;var eRH=function(){};
_.l=eRH.prototype;_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l._tapHandler=function(){};
_.l._focusChanged=function(){};
_.l._detectKeyboardFocus=function(){};
_.l._userActivate=function(){};
_.l._upHandler=function(){};
_.l._spaceKeyDownHandler=function(){};
_.l._spaceKeyUpHandler=function(){};
_.l._asyncClick=function(){};
_.l._pressedChanged=function(){};
_.l._ariaActiveAttributeChanged=function(){};
_.l._activeChanged=function(){};
_.l._controlStateChanged=function(){};
_.l._changedButtonState=function(){};
_.l._focusBlurHandler=function(){};
_.l._disabledChanged=function(){};
_.l._changedControlState=function(){};
_.l._downHandler=function(){};
_.l.ensureRipple=function(){};
_.l.getRipple=function(){};
_.l.hasRipple=function(){};
_.l._noinkChanged=function(){};
_.l._focusedChanged=function(){};
_.l._createRipple=function(){};
_.l.registered=function(){};
_.l._invalidChanged=function(){};
_.l.hasValidator=function(){};
_.l.validate=function(){};
_.l._getValidity=function(){};
_.l._requiredChanged=function(){};
_.l._valueChanged=function(){};
_.l._checkedChanged=function(){};
_.l._buttonStateChanged=function(){};
_.l._setPressed=function(){};
_.l._setPointerDown=function(){};
_.l._setReceivedFocusFromKeyboard=function(){};
_.l._setFocused=function(){};
eRH=_.qu({is:"tp-yt-paper-radio-button",_template:function(){if($fe!==void 0)return $fe;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;IOk===void 0&&(IOk=document.createElement("template"));var N=IOk;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return $fe=p},
behaviors:[_.YgJ],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(){_.jB(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var p=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),x=Math.floor(3*p);x%2!==p%2&&x++;this.updateStyles({"--paper-radio-button-ink-size":x+"px"})}})}});var pQa;var xna;_.qu({_template:function(){if(xna!==void 0)return xna;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;pQa===void 0&&(pQa=document.createElement("template"));var N=pQa;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return xna=p},
is:"tp-yt-paper-radio-group",behaviors:[_.TRZ],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(p){var x=this._valueToItem(p);if(!x||!x.hasAttribute("disabled")){if(this.selected){x=this._valueToItem(this.selected);if(this.selected==p)if(this.allowEmptySelection)p="";else{x&&(x.checked=!0);return}x&&
(x.checked=!1)}_.yg.select.apply(this,[p]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(p){this._focusPrevious();p.preventDefault();this._activateFocusedItem()},
_onDownKey:function(p){this._focusNext();p.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(p){_.PrC._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(p){_.PrC._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.yg._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.sq._resetTabindices.apply(this,arguments);this.items.forEach(function(p){p.removeAttribute("aria-selected")},this)}});var Fft;_.Ei("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var Ngk=function(){return _.m.apply(this,arguments)||this};
_.E(Ngk,_.m);_.l=Ngk.prototype;_.l.computeHasPrimaryIcon=function(p){return!(!p.icon&&!p.thumbnail)};
_.l.computeHasSecondary=function(p){return!(!p.secondaryIcon&&!p.secondaryNotificationText)};
_.l.computeHideSecondaryString=function(p){return!_.S("disable_hide_empty_secondary_string")&&!p.secondaryNotificationText};
_.l.computeCompactLinkStyle=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.l.computeHasFitHeight=function(p){return p==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.l.isActiveEndpoint=function(p){return(p=this.get("commandMetadata.webCommandMetadata.url",p))?_.F_(window.location.href)!=="/account_transfer_channel"&&_.F_(window.location.href)!=="/gaia_link"&&_.F_(window.location.href)!=="/channel_switcher"||p!=="/account"?_.F_(window.location.href)===p:!0:!1};
_.l.onTap=function(){var p;((p=this.data)==null?0:p.serviceEndpoint)&&_.fc(this.hostElement,[this.data.serviceEndpoint])};
var At=Ngk;At.prototype.onTap=At.prototype.onTap;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],At.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],At.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.k("design:type",Boolean)],At.prototype,"active",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.k("design:type",String)],At.prototype,"compactLinkStyle",void 0);_.B([_.H({computed:"computeIcon_(data.icon)"}),_.k("design:type",Object)],At.prototype,"icon",void 0);_.B([_.H({computed:"computeIcon_(data.secondaryIcon)"}),_.k("design:type",Object)],At.prototype,"secondaryIcon",void 0);_.B([_.H({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],At.prototype,"hasSecondary",void 0);
_.B([_.H({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],At.prototype,"hideSecondaryString",void 0);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],At.prototype,"onTap",null);At=_.B([_.L({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],At);
_.P(At,"ytd-compact-link-renderer",function(){if(Fft!==void 0)return Fft;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Fft=p},{mode:1});var hTm;_.Ei("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var lW8=function(){var p=_.m.apply(this,arguments)||this;p.role="link";p.tabindex="0";p.actionMap=_.S("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 p};
_.E(lW8,_.m);_.l=lW8.prototype;_.l.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.AF()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.l.getCurrentTheme=function(){return _.uX()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.AF()};
_.l.onThemeSelected=function(p,x){var F=p||x?p:_.bX(),N=(F&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!F&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.Qad(_.F_(window.location.href));_.Ez(0,165,p);_.Ez(0,174,x);this.prefs.save();N&&_.lA(this.hostElement,"yt-dark-mode-toggled-action",[F]);_.lA(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.l.onTap=function(){this.data.serviceEndpoint&&_.fc(this.hostElement,[this.data.serviceEndpoint])};
_.l.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.l.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.l.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
var uw=lW8;uw.prototype.onTap=uw.prototype.onTap;uw.prototype.dataChanged=uw.prototype.dataChanged;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],uw.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],uw.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.TR),_.k("design:type",Object)],uw.prototype,"paperItemBehaviors",void 0);_.B([_.H(),_.k("design:type",Object)],uw.prototype,"data",void 0);_.B([_.H({value:function(){return _.rH()}}),
_.k("design:type",_.$9)],uw.prototype,"prefs",void 0);_.B([_.H(),_.k("design:type",Object)],uw.prototype,"label",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],uw.prototype,"role",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],uw.prototype,"tabindex",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uw.prototype,"dataChanged",null);
_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uw.prototype,"onTap",null);uw=_.B([_.L({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],uw);
_.P(uw,"ytd-toggle-theme-compact-link-renderer",function(){if(hTm!==void 0)return hTm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return hTm=p},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.I5=function(p,x,F){_.bO(_.MCB)(void 0,p,x,F)};
_.$W=function(p){return function(x,F){var N=p||F.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(x,F,{get:function(){var h;return this.$?this.$[N]:(h=_.xJ(this))==null?void 0:h.querySelector("#"+N)},
enumerable:!0,configurable:!0})}};_.ey=function(p){p=p===void 0?!1:p;_.Jm.call(this);this.pubSub_=new _.lb(p);_.aG(this,this.pubSub_)};
_.NL(_.ey,_.Jm);_.ey.prototype.subscribe=function(p,x,F){return this.isDisposed()?0:this.pubSub_.subscribe(p,x,F)};
_.ey.prototype.unsubscribe=function(p,x,F){return this.isDisposed()?!1:this.pubSub_.unsubscribe(p,x,F)};
_.ey.prototype.unsubscribeByKey=function(p){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(p)};
_.ey.prototype.publish=function(p,x){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var Ps8=function(){_.nK("ypcRedeemFlowStarted")},TZa=function(p){_.nK("ypcRedeemFlowFailed",void 0,void 0,void 0,p)},BZc=function(p,x,F){x&&F&&(p.videos.forEach(function(N){N.videoId===x&&(N.itemId=F)}),p.recommendedVideos.forEach(function(N){N.videoId===x&&(N.itemId=F)}))};var RkH;var kq8;/*

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
*/
_.qu({_template:function(){if(kq8!==void 0)return kq8;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;RkH===void 0&&(RkH=document.createElement("template"));var N=RkH;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return kq8=p},
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(p,x){var F=this._resolveSrc(p);F!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",p===""||x?this._setLoading(!1):(this._resolvedSrc=F,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 p=this.$.sizedImgDiv.style,x=this.$.placeholder.style;p.backgroundSize=x.backgroundSize=this.sizing;p.backgroundPosition=x.backgroundPosition=this.sizing?this.position:"";p.backgroundRepeat=x.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(p){p=_.$l(p,this.$.baseURIAnchor.href);p.length>=2&&p[0]==="/"&&p[1]!=="/"&&(p=(location.origin||location.protocol+"//"+location.host)+p);return p}});var UXH;var i3H;_.qu({_template:function(){if(i3H!==void 0)return i3H;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;UXH===void 0&&(UXH=document.createElement("template"));var N=UXH;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return i3H=p},
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(p){return p?"false":"true"},
_headingChanged:function(p){var x=this.getAttribute("heading"),F=this.getAttribute("aria-label");typeof F==="string"&&F!==x||this.setAttribute("aria-label",p)},
_computeHeadingClass:function(p){return p?" over-image":""},
_computeAnimated:function(p){return p}});var Iwm=new _.U("addRendererToItemSectionAction");var $X8;var ek8=function(){return _.m.apply(this,arguments)||this};
_.E(ek8,_.m);ek8.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
var uY=ek8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],uY.prototype,"rendererBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],uY.prototype,"dismissibleItemBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],uY.prototype,"rendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],uY.prototype,"data",void 0);uY=_.B([_.L({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],uY);
_.P(uY,"ytd-comment-history-entry-renderer",function(){if($X8!==void 0)return $X8;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return $X8=p},{mode:1});var pDa;_.Ei("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.Ei("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var xK8=function(){return _.m.apply(this,arguments)||this};
_.E(xK8,_.m);_.l=xK8.prototype;_.l.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.onKeyUp=function(p){if(p.keyCode===13)this.onTap()};
_.l.onTap=function(){this.data.recordClickEndpoint&&_.J().resolve(_.RD).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var p=this.data.navigationEndpoint;p&&_.r(p,_.s9)&&_.J().resolve(_.RD).resolveCommand(p,{form:{element:this.hostElement}})};
_.l.readChanged=function(){var p;_.iX(this.hostElement,"unread",!((p=this.data)==null?0:p.read))};
_.l.dataChanged=function(){this.data&&_.iX(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.l.computeThumbnailSize=function(){var p;return((p=this.data)==null?0:p.highPriorityNotification)?32:48};
_.l.getEndpointURL=function(p){return p&&!_.r(p,_.s9)?this.componentBehavior.computeHref_(p):null};
_.l.getEndpointData=function(p){return p&&!_.r(p,_.s9)?p:null};
var YP=xK8;YP.prototype.computeThumbnailSize=YP.prototype.computeThumbnailSize;YP.prototype.dataChanged=YP.prototype.dataChanged;YP.prototype.readChanged=YP.prototype.readChanged;YP.prototype.onKeyUp=YP.prototype.onKeyUp;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],YP.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],YP.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],YP.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],YP.prototype,"data",void 0);_.B([_.H({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.k("design:type",Number)],YP.prototype,"thumbnailSize",void 0);_.B([_.V("keyup"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent]),_.k("design:returntype")],YP.prototype,"onKeyUp",null);
_.B([_.W("data.read"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],YP.prototype,"readChanged",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],YP.prototype,"dataChanged",null);_.B([_.W("data.highPriorityNotification"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],YP.prototype,"computeThumbnailSize",null);
YP=_.B([_.L({is:"ytd-notification-renderer",disableElementRegistration:!0})],YP);
_.P(YP,"ytd-notification-renderer",function(){if(pDa!==void 0)return pDa;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return pDa=p},{mode:1});var FbX;var NT8=function(){return _.m.apply(this,arguments)||this};
_.E(NT8,_.m);NT8.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"}}}};
NT8.prototype.computeActionButtonClass=function(p){return!p.actionButtons||p.actionButtons.length<=1?"single-button":p.description?"vertical-buttons":"horizontal-buttons"};
var wG=NT8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],wG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],wG.prototype,"data",void 0);wG=_.B([_.L({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],wG);
_.P(wG,"ytd-playlist-show-metadata-renderer",function(){if(FbX!==void 0)return FbX;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return FbX=p},{mode:1});var het;_.Ei("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var lGk=function(){return _.m.apply(this,arguments)||this};
_.E(lGk,_.m);var GA=lGk;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],GA.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],GA.prototype,"data",void 0);GA=_.B([_.L({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],GA);
_.P(GA,"ytd-purchase-item-renderer",function(){if(het!==void 0)return het;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return het=p},{mode:1});var cvc;var aG8={};aG8.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(p){if(p)return p.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(p){if(p==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.Ei("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var MMD=function(){return _.m.apply(this,arguments)||this};
_.E(MMD,_.m);MMD.prototype.onYtNavigate=function(p){var x=this.openPopupBehavior.getNavigationEndpointPopupAction(p.detail.endpoint);x&&(p.stopPropagation(),this.openPopupBehavior.openPopup(x))};
var VI=MMD;VI.prototype.onYtNavigate=VI.prototype.onYtNavigate;_.B([_.u(aG8.YtSimpleTextSectionBehavior),_.k("design:type",Object)],VI.prototype,"ytSimpleTextSectionBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],VI.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.Oo),_.k("design:type",Object)],VI.prototype,"openPopupBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],VI.prototype,"data",void 0);
_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],VI.prototype,"onYtNavigate",null);VI=_.B([_.L({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],VI);
_.P(VI,"ytd-simple-text-section-renderer",function(){if(cvc!==void 0)return cvc;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return cvc=p},{mode:1});var DKa;_.Ei("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var fGm=function(){return _.m.apply(this,arguments)||this};
_.E(fGm,_.m);var Kbk=fGm;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Kbk.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Kbk.prototype,"data",void 0);Kbk=_.B([_.L({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],Kbk);
_.P(Kbk,"ytd-unlimited-page-feature-info-renderer",function(){if(DKa!==void 0)return DKa;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return DKa=p},{mode:1});var qxc;var Zh8;var tMc=function(){return _.m.apply(this,arguments)||this};
_.E(tMc,_.m);tMc.prototype.dataChanged=function(){if(this.data){var p=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);p&&(p=_.Ou(p,screen.width),this.hostElement.style.backgroundImage="url("+p+")")}};
var Wo=tMc;Wo.prototype.dataChanged=Wo.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Wo.prototype,"data",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Wo.prototype,"dataChanged",null);Wo=_.B([_.L({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],Wo);
_.P(Wo,"ytd-post-redemption-section-renderer",function(){if(Zh8!==void 0)return Zh8;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Zh8=p},{mode:1});var dKX;var vIX=function(){return _.m.apply(this,arguments)||this};
_.E(vIX,_.m);vIX.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
var Ho=vIX;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Ho.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ho.prototype,"data",void 0);Ho=_.B([_.L({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],Ho);
_.P(Ho,"ytd-ypc-post-redemption-renderer",function(){if(dKX!==void 0)return dKX;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return dKX=p},{mode:1});_.Ei("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var JvH=function(){var p=_.m.apply(this,arguments)||this;p.MIN_CODE_LENGTH=12;p.MAX_CODE_LENGTH=24;return p};
_.E(JvH,_.m);_.l=JvH.prototype;_.l.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.l.created=function(){this.riskService=new _.DAZ;this.loadPaymentThenable=_.K0k(_.sd("YPC_MB_URL"))};
_.l.ready=function(){var p=this;this.code.addEventListener("keypress",function(x){p.onCodeInputKeypress(x)})};
_.l.dataChanged=function(){var p=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(x){x=_.a(x);for(var F=x.next();!F.done;F=x.next())F=F.value,F.type==="attributes"&&F.attributeName==="dark"&&p.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.l.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var p=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+p+")")}};
_.l.computeRedeemButton=function(p){(p=this.get("redeemButton.buttonRenderer",p))&&(p=Object.assign({},p,{serviceEndpoint:void 0}));return p};
_.l.onRedeemButtonTap=function(p){p.stopPropagation();Ps8();this.redeemCode()};
_.l.redeemCode=function(){var p=this;this.isLoading=!0;var x=this.riskService.init();_.Xq([x,this.loadPaymentThenable]).then(function(){var F=p.data.redeemButton.buttonRenderer.serviceEndpoint,N=_.fBp(),h=payments.business.integration.ClientTokenFactory.createClientToken(_.r(F,_.z0I).countryCode,N);N={c:p.code.value.trim(),rd:window.btoa(N),ctk:h};_.fc(p.hostElement,[F,N])},function(){p.showGenericError();
TZa("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.yL(Error("Rl"))})};
_.l.onYtServiceRequestCompleted=function(p){p.stopPropagation();this.isLoading=!1;var x,F;this.errorMessage=(x=p.detail)==null?void 0:(F=x.data)==null?void 0:F.errorMessage;var N,h;this.postRedemptionRenderer=(N=p.detail)==null?void 0:(h=N.data)==null?void 0:h.renderer;var c,M;if(p=(c=p.detail)==null?void 0:(M=c.data)==null?void 0:M.redirectEndpoint)this.isLoading=!0,_.hG(this.hostElement,"yt-navigate",{endpoint:p});this.errorMessage?TZa("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
p)&&_.nK("ypcRedeemFlowSucceeded")};
_.l.onYtServiceRequestError=function(p){p.stopPropagation();this.isLoading=!1;if(p=this.get("detail.error.message",p))this.errorMessage=_.L1(p);TZa("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.l.onInvokeInstrumentManagerActionCompleted=function(p){p.stopPropagation();this.redeemCode()};
_.l.onInvokeInstrumentManagerActionError=function(p){p.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",p)){case "instrumentManagerLoadError":this.showGenericError();TZa("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();TZa("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.nK("ypcRedeemFlowCancelled")}};
_.l.onInput=function(){var p=this;_.sQ(this,"onInput",function(){var x=p.code.value.trim();p.redeemButtonDisabled=x.length<p.MIN_CODE_LENGTH||x.length>p.MAX_CODE_LENGTH},200)};
_.l.onCodeInputKeypress=function(p){p.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(Ps8(),this.redeemCode())};
_.l.computeImageUrl=function(p){return p?_.Ou(p.thumbnails,600):null};
_.l.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
var m0=JvH;m0.prototype.onInvokeInstrumentManagerActionError=m0.prototype.onInvokeInstrumentManagerActionError;m0.prototype.onInvokeInstrumentManagerActionCompleted=m0.prototype.onInvokeInstrumentManagerActionCompleted;m0.prototype.onYtServiceRequestError=m0.prototype.onYtServiceRequestError;m0.prototype.onYtServiceRequestCompleted=m0.prototype.onYtServiceRequestCompleted;m0.prototype.dataChanged=m0.prototype.dataChanged;
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],m0.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],m0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],m0.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],m0.prototype,"isLoading",void 0);_.B([_.H(),_.k("design:type",Boolean)],m0.prototype,"redeemButtonDisabled",void 0);
_.B([_.H(),_.k("design:type",Object)],m0.prototype,"errorMessage",void 0);_.B([_.H(),_.k("design:type",Object)],m0.prototype,"postRedemptionRenderer",void 0);_.B([_.H(),_.k("design:type",Object)],m0.prototype,"observer",void 0);_.B([_.Ff("#code"),_.k("design:type",HTMLInputElement)],m0.prototype,"code",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],m0.prototype,"dataChanged",null);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],m0.prototype,"onYtServiceRequestCompleted",null);_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],m0.prototype,"onYtServiceRequestError",null);
_.B([_.V("yt-invoke-instrument-manager-action-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],m0.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.B([_.V("yt-invoke-instrument-manager-action-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],m0.prototype,"onInvokeInstrumentManagerActionError",null);m0=_.B([_.L({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],m0);
_.P(m0,"ytd-redeem-code-renderer",function(){if(qxc!==void 0)return qxc;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return qxc=p},{mode:1});var CDD;_.Ei("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var SxH=function(){var p=_.m.apply(this,arguments)||this;p.businessEmailDisplayState="HIDE_SECTION";return p};
_.E(SxH,_.m);_.l=SxH.prototype;_.l.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.links":{id:"link-list-container",mapping:{channelExternalLinkViewModel:{component:"yt-channel-external-link-view-model",params:{useSmallFont:!0}}}}}};
_.l.dataChanged=function(){this.data&&(this.data.businessEmailButton||this.data.signInForBusinessEmail)?this.data.signInForBusinessEmail?this.businessEmailDisplayState="SIGN_IN_REQUIRED":this.businessEmailErrorMessage?this.businessEmailDisplayState="ERROR_MESSAGE":(this.businessEmailDisplayState="REVEAL_BUTTON",this.data.businessEmail&&(this.businessEmail=this.data.businessEmail)):this.businessEmailDisplayState="HIDE_SECTION"};
_.l.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.l.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.VR("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.l.onYtServiceRequestCompleted=function(p){var x;if((x=p.detail.data)==null?0:x.businessEmail)this.businessEmail=p.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var F;if((F=p.detail.data)==null?0:F.errorMessage)this.businessEmailErrorMessage=p.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.l.computeEmailHref=function(p){return"mailto:"+p};
_.l.computeSafeUrl=function(p){if(p)return _.ug(p)};
_.l.onBusinessEmailCaptchaSubmit=function(){var p;(p=this.data)!=null&&p.onBusinessEmailRevealClickCommand&&(p=this.JSC$18863_captchaTextarea.value)&&(p={recaptcha_response_token:p,channel_id:this.data.channelId},_.S("web_ytd_channel_about_metadata_renderer_command_resolver_ks")?_.fc(this.hostElement,[this.data.onBusinessEmailRevealClickCommand,p]):_.J().resolve(_.RD).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},p,{element:this.hostElement})}))};
_.l.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.R8.Object.defineProperties(SxH.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 p,x;return!((p=this.data)==null||!p.primaryLinks)&&!((x=this.data)==null?0:x.links)&&this.data.primaryLinks.every(function(F){return F.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var p,x;return!((p=this.data)==null||!p.primaryLinks)&&!((x=this.data)==null?0:x.links)&&!this.shouldShowNewLinks}}});
var ob=SxH;ob.prototype.onYtServiceRequestCompleted=ob.prototype.onYtServiceRequestCompleted;ob.prototype.dataChanged=ob.prototype.dataChanged;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],ob.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ob.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ob.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.Ff("#g-recaptcha-response"),_.k("design:type",HTMLTextAreaElement)],ob.prototype,"JSC$18863_captchaTextarea",void 0);_.B([_.H(),_.k("design:type",Object)],ob.prototype,"data",void 0);_.B([_.H(),_.k("design:type",String)],ob.prototype,"businessEmailDisplayState",void 0);_.B([_.H(),_.k("design:type",String)],ob.prototype,"businessEmail",void 0);_.B([_.H(),_.k("design:type",String)],ob.prototype,"businessEmailErrorMessage",void 0);
_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ob.prototype,"hideDetailsSection",null);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ob.prototype,"dataChanged",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ob.prototype,"shouldShowNewLinks",null);_.B([_.w("data","shouldShowLinks"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ob.prototype,"shouldShowLegacyLinks",null);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ob.prototype,"onYtServiceRequestCompleted",null);ob=_.B([_.L({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],ob);
_.P(ob,"ytd-channel-about-metadata-renderer",function(){if(CDD!==void 0)return CDD;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return CDD=p},{mode:1});var rvc;_.Ei("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var EIk=function(){return _.m.apply(this,arguments)||this};
_.E(EIk,_.m);EIk.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
var Oc=EIk;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Oc.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Oc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Oc.prototype,"data",void 0);Oc=_.B([_.L({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Oc);
_.P(Oc,"ytd-channel-featured-content-renderer",function(){if(rvc!==void 0)return rvc;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return rvc=p},{mode:1});var XDH;_.Ei("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var gI_=function(){var p=_.m.apply(this,arguments)||this;p.roundContainer=!0;p.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");return p};
_.E(gI_,_.m);_.l=gI_.prototype;_.l.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.l.dataChanged=function(){this.imageWidth=this.imageHeight=24;var p=this.data;p.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!p.style&&p.image&&p.image.thumbnails.length&&(p=p.image.thumbnails[0],this.imageWidth=p.width||0,this.imageHeight=p.height||0)};
_.l.computeSource=function(p){return p.secondarySource?_.Pi(p.secondarySource):_.Pi(p.source)};
_.l.computeClarifyStyle=function(p){return p?p.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.l.isLargeStyle=function(p){return p==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.l.computeBackgroundStyle=function(p){return p?p.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.l.computeHasActionButton=function(p){return!!p.actionButton};
_.l.computeHasBottomSection=function(p){return!!p.ctaHasBottomSection};
_.l.computeIsSourceMissing=function(p){return p.ctaHasBottomSection===!1?!0:p&&this.computeSource(p)?!1:!0};
_.l.computeSecondaryEndpoint=function(p){return p.secondaryEndpoint||p.endpoint};
var jn=gI_;jn.prototype.dataChanged=jn.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],jn.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],jn.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Number)],jn.prototype,"imageWidth",void 0);_.B([_.H(),_.k("design:type",Number)],jn.prototype,"imageHeight",void 0);
_.B([_.H({computed:"computeSecondaryEndpoint(data)"}),_.k("design:type",Object)],jn.prototype,"secondaryEndpoint",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.k("design:type",Boolean)],jn.prototype,"hasActionButton",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.k("design:type",Boolean)],jn.prototype,"hasBottomSection",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.k("design:type",Boolean)],jn.prototype,"missingSource",void 0);_.B([_.H({computed:"computeIcon_(data.icon)"}),_.k("design:type",String)],jn.prototype,"icon",void 0);_.B([_.H({computed:"computeIcon_(data.secondaryIcon)"}),_.k("design:type",String)],jn.prototype,"secondaryIcon",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.k("design:type",String)],jn.prototype,"clarifyStyle",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.k("design:type",String)],jn.prototype,"backgroundStyle",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],jn.prototype,"roundContainer",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],jn.prototype,"amsterdamEnabled",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jn.prototype,"dataChanged",null);
jn=_.B([_.L({is:"ytd-clarification-renderer",disableElementRegistration:!0})],jn);
_.P(jn,"ytd-clarification-renderer",function(){if(XDH!==void 0)return XDH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return XDH=p},{mode:1});var QZc;var zem;var sZm=function(){var p=_.m.apply(this,arguments)||this;p.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");return p};
_.E(sZm,_.m);_.l=sZm.prototype;_.l.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.l.computeIcon=function(p){return p?"yt-icons:"+p.toLowerCase():null};
_.l.computeUseContacts=function(p){return!!p.contacts&&p.contacts.length>0};
_.l.computePhoneContact=function(p){var x,F;return(x=p.contacts)==null?void 0:(F=x.find(function(N){var h;return(N==null?void 0:(h=N.icon)==null?void 0:h.iconType)==="PHONE"}))==null?void 0:F.actionText};
_.l.computeSmsContact=function(p){var x,F;return(x=p.contacts)==null?void 0:(F=x.find(function(N){var h;return(N==null?void 0:(h=N.icon)==null?void 0:h.iconType)==="SMS"}))==null?void 0:F.actionText};
var Lv=sZm;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Lv.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Lv.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Lv.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Lv.prototype,"amsterdamEnabled",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.k("design:type",Boolean)],Lv.prototype,"useContacts",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.k("design:type",String)],Lv.prototype,"phoneContact",void 0);Lv=_.B([_.L({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Lv);
_.P(Lv,"ytd-single-action-emergency-support-renderer",function(){if(zem!==void 0)return zem;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return zem=p},{mode:1});_.Ei("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var nIH=function(){var p=_.m.apply(this,arguments)||this;p.roundedContainer=!0;p.amsterdamEnabled=_.S("enable_desktop_amsterdam_info_panels");return p};
_.E(nIH,_.m);nIH.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.firstOption":{id:"first-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}},"data.secondOption":{id:"second-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}}}};
var Po=nIH;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Po.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Po.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Po.prototype,"roundedContainer",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Po.prototype,"amsterdamEnabled",void 0);
Po=_.B([_.L({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],Po);
_.P(Po,"ytd-emergency-onebox-renderer",function(){if(QZc!==void 0)return QZc;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return QZc=p},{mode:1});var yvm;_.Ei("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var bh8=function(){return _.m.apply(this,arguments)||this};
_.E(bh8,_.m);bh8.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
var TA=bh8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],TA.prototype,"data",void 0);TA=_.B([_.L({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],TA);
_.P(TA,"ytd-exploratory-results-renderer",function(){if(yvm!==void 0)return yvm;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return yvm=p},{mode:1});var Ava;_.Ei("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var uZX=function(){var p=_.m.apply(this,arguments)||this;p.messageData=null;return p};
_.E(uZX,_.m);_.l=uZX.prototype;_.l.onServiceRequestCompleted=function(p,x){p=x.actions||[];x=0;for(var F=p.length;x<F;x++){var N=p[x],h=void 0,c=void 0;if((h=_.r(N,_.JS))==null?0:(c=h.item)==null?0:c.messageRenderer)this.messageData=_.r(N,_.JS).item.messageRenderer}};
_.l.dataChanged=function(){var p=this.data;this.hostElement.hidden=!1;_.iX(this.hostElement,"is-channel",p&&!p.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.l.computeThumbnailWidth=function(p){return p?126:56};
_.l.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.l.onSubmitTap=function(){var p=this.data,x=this.selectedResponseIndex;p!==void 0&&x!==void 0&&_.fc(this.hostElement,[p.responses[x].responseData])};
_.l.onDismissTap=function(){this.hostElement.hidden=!0;var p=this.data;p!==void 0&&_.fc(this.hostElement,[p.dismissalEndpoint])};
_.l.updateSelectedResponseIndexFromBinding=function(p){this.selectedResponseIndex=p.detail.value};
var Bo=uZX;Bo.prototype.onSelectedResponseIndexChange=Bo.prototype.onSelectedResponseIndexChange;Bo.prototype.dataChanged=Bo.prototype.dataChanged;Bo.prototype.onServiceRequestCompleted=Bo.prototype.onServiceRequestCompleted;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Bo.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Bo.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Bo.prototype,"messageData",void 0);
_.B([_.H(),_.k("design:type",Number)],Bo.prototype,"selectedResponseIndex",void 0);_.B([_.Ff("#submit-button"),_.k("design:type",HTMLButtonElement)],Bo.prototype,"submitButton",void 0);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Ht]),_.k("design:returntype")],Bo.prototype,"onServiceRequestCompleted",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Bo.prototype,"dataChanged",null);
_.B([_.W("selectedResponseIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Bo.prototype,"onSelectedResponseIndexChange",null);Bo=_.B([_.L({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],Bo);
_.P(Bo,"ytd-feedback-elicitation-single-question-renderer",function(){if(Ava!==void 0)return Ava;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Ava=p},{mode:1});var YxD;var wDH=function(){return _.m.apply(this,arguments)||this};
_.E(wDH,_.m);wDH.prototype.computeThumbnailWidth=function(p){return p?602:428};
wDH.prototype.updateWideFromBinding=function(p){this.wide=p.detail.value};
var Rb=wDH;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Rb.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Boolean)],Rb.prototype,"wide",void 0);Rb=_.B([_.L({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],Rb);
_.P(Rb,"ytd-newspaper-hero-video-renderer",function(){if(YxD!==void 0)return YxD;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return YxD=p},{mode:1});var Gg8;var VMm=function(){return _.m.apply(this,arguments)||this};
_.E(VMm,_.m);var Wb8=VMm;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Wb8.prototype,"rendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Wb8.prototype,"data",void 0);Wb8=_.B([_.L({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],Wb8);
_.P(Wb8,"ytd-newspaper-mini-video-renderer",function(){if(Gg8!==void 0)return Gg8;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Gg8=p},{mode:1});var Hhk;_.Ei("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var mK8=function(){return _.m.apply(this,arguments)||this};
_.E(mK8,_.m);mK8.prototype.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary-contents",mapping:{newspaperHeroVideoRenderer:"ytd-newspaper-hero-video-renderer"}},"data.secondaryContents":{id:"secondary-contents",mapping:{newspaperMiniVideoRenderer:"ytd-newspaper-mini-video-renderer"}}}};
var kP=mK8;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],kP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],kP.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],kP.prototype,"data",void 0);kP=_.B([_.L({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],kP);
_.P(kP,"ytd-newspaper-renderer",function(){if(Hhk!==void 0)return Hhk;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Hhk=p},{mode:1});var oIm;_.Ei("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var OhD=function(){var p=_.m.apply(this,arguments)||this;p.isSegment=!1;p.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};p.nextContinuation={continuationType:"playlistVideoListContinuation"};return p};
_.E(OhD,_.m);_.l=OhD.prototype;_.l.attached=function(){_.J();var p;(p=_.J().resolve(_.Bw(_.$m)))!=null&&(p.playlistVideoListElement=this.hostElement)};
_.l.detached=function(){var p;(p=_.J().resolve(_.Bw(_.$m)))!=null&&(p.playlistVideoListElement=void 0);p=_.J().resolve(_.Bw(_.LY));_.S("web_enable_voting_animation")&&p&&(p.parentElem=void 0,p.videos=[],p.continuationsPresent=!1,p.showRefreshPill=!1)};
_.l.configureRendererStamper=function(){return{"data.contents":{id:"contents",reuseComponents:!1,mapping:{playlistVideoRenderer:{component:"ytd-playlist-video-renderer",properties:{canReorder:"[[canReorder]]"}},continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.continuations":{id:"continuations",mapping:{nextContinuationData:"yt-next-continuation"}},"data.sortFilterMenu":{id:"sort-filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",
params:{closeOnActivate:"true"}}}}}};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.l.dataChanged=function(){var p=_.J().resolve(_.Bw(_.LY));if(_.S("web_enable_voting_animation")&&this.data&&p){var x=_.n(this.hostElement).querySelector("#contents");x&&(p.parentElem=x);p.addVideos(this.data.contents)}_.qAZ(this.ytReorderableBehavior)};
_.l.onRendererstamperFinished=function(){this.canReorder&&_.ZKb(this.ytReorderableBehavior,_.n(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.l.onPlaylistReloading=function(){this.isReloading=!0};
_.l.onUpdateSetVideoId=function(p){if(p.detail&&this.data&&this.data.contents){var x=p.detail;p=this.data.contents.findIndex(function(h){var c;return((c=h.playlistVideoRenderer)==null?void 0:c.videoId)===x.videoId});
if(!(p<0)&&x.setVideoId&&(this.set("data.contents."+p+".playlistVideoRenderer.setVideoId",x.setVideoId),_.S("web_enable_voting_animation"))){var F;if(p=_.r((F=this.data.contents[p].playlistVideoRenderer)==null?void 0:F.engagementBar,_.GgE)){var N;(N=p.actions)==null||N.forEach(function(h){if(h=_.r(h,_.VMd))h.itemId=x.setVideoId})}(F=_.J().resolve(_.Bw(_.LY)))&&BZc(F,x.videoId,x.setVideoId)}}};
_.l.computeContentsClass=function(p){return p?"reloading":""};
_.l.computeIsSortable=function(p,x){return p&&x>0&&!this.isSegment&&!_.S("shorts_in_playlists_web")};
_.l.computeIsEditable=function(p){return p};
_.l.computeCanReorder=function(p){return p};
_.l.handlePlaylistRemoveVideosAction=function(p){if(this.get("playlistRemoveVideosAction.setVideoIds",p)&&this.data&&this.data.contents){p=_.r(p,_.FNB).setVideoIds;for(var x=this.data.contents.length-1;x>=0;){var F=this.data.contents[x].playlistVideoRenderer;F&&F.setVideoId&&p.includes(F.setVideoId)&&this.splice("data.contents",x,1);x--}_.lA(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.l.updateIndices=function(){if(this.data&&this.data.contents)for(var p=0;p<this.data.contents.length;p++)this.set("data.contents."+p+".playlistVideoRenderer.index",_.L1(String(p+1)))};
_.l.handleDrop=function(p){p=p.currDragItem;var x=_.mH(p.parentNode.childNodes,p),F=this.data.contents.splice(Number(_.Pi(p.data.index))-1,1)[0];this.data.contents.splice(x,0,F);x=x?this.get("contents."+(x-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();p=this.buildReorderServiceEndpoint(p.data.setVideoId,x);this.ytComponentBehavior.resolveCommand(p)};
_.l.buildReorderServiceEndpoint=function(p,x){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",p),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",x),this.data.onReorderEndpoint):null};
_.l.handleUpdatePlaylistAction=function(p){var x;(p=_.r((x=_.r(p,_.NJC))==null?void 0:x.updatedRenderer,_.dom))&&this.canReorder!==p.canReorder&&this.set("data.canReorder",p.canReorder);p&&p.contents&&(this.set("data.contents",p.contents),this.isReloading=!1);p&&p.continuations&&this.set("data.continuations",p.continuations)};
_.l.handleAddRendererToItemSectionAction=function(p){var x,F=(x=_.r(p,Iwm))==null?void 0:x.renderer,N;F&&((N=_.r(p,Iwm))==null?void 0:N.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,F),p=_.J().resolve(_.Bw(_.LY)),_.S("web_enable_voting_animation")&&p&&(F&&(x=_.wDm(F))&&p.recommendedVideos.push({itemId:x,videoId:_.WbE(F),voteCount:_.HhM(F),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.l.isVotingEnabledOnPlaylist=function(p){if(!p)return!1;p=_.a(p);for(p=p.next();!p.done;p=p.next()){var x=void 0;return!!_.r((x=p.value.playlistVideoRenderer)==null?void 0:x.engagementBar,_.GgE)}return!1};
_.l.onAppendContinuationItemsActionFinished=function(){var p;this.isVotingEnabledOnPlaylist((p=this.data)==null?void 0:p.contents)&&(this.updateIndices(),p=_.J().resolve(_.Bw(_.LY)),_.S("web_enable_voting_animation")&&p&&this.data&&p.addVideos(this.data.contents))};
_.l.updateVideoData=function(p){if(p.detail&&this.data&&this.data.contents){var x=p.detail;p=x.toIdx;var F=x.itemId,N=x.newVoteCount,h=x.voteStatus;x=x.hideItem;var c,M,f=(c=this.data)==null?void 0:(M=c.contents)==null?void 0:M.findIndex(function(v){return _.wDm(v)===F});
if(!(f<0)){c=this.data.contents[f];var K;if((K=c.playlistVideoRenderer)==null?0:K.voteCount)c.playlistVideoRenderer.voteCount=N;var t;if(K=_.r((t=c.playlistVideoRenderer)==null?void 0:t.engagementBar,_.GgE)){var d;(d=K.actions)==null||d.forEach(function(v){(v=_.r(v,_.VMd))&&v.initialState&&(v.initialState.votes=N,v.initialState.status=h)})}this.data.contents.splice(f,1);
x||this.data.contents.splice(p,0,c);this.updateIndices()}}};
var Uc=OhD;Uc.prototype.updateVideoData=Uc.prototype.updateVideoData;Uc.prototype.onAppendContinuationItemsActionFinished=Uc.prototype.onAppendContinuationItemsActionFinished;Uc.prototype.onUpdateSetVideoId=Uc.prototype.onUpdateSetVideoId;Uc.prototype.onPlaylistReloading=Uc.prototype.onPlaylistReloading;Uc.prototype.onRendererstamperFinished=Uc.prototype.onRendererstamperFinished;Uc.prototype.dataChanged=Uc.prototype.dataChanged;
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Uc.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Uc.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Uc.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.Wy.YtNextContinuationBehavior),_.k("design:type",Object)],Uc.prototype,"ytNextContinuationBehavior",void 0);
_.B([_.u(_.d_6),_.k("design:type",Object)],Uc.prototype,"ytReorderableBehavior",void 0);_.B([_.u(_.Vw),_.k("design:type",Object)],Uc.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Uc.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Uc.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Boolean)],Uc.prototype,"isReloading",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Uc.prototype,"isSegment",void 0);_.B([_.H({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.k("design:type",Boolean)],Uc.prototype,"isSortable",void 0);_.B([_.H({computed:"computeIsEditable(data.isEditable)"}),_.k("design:type",Boolean)],Uc.prototype,"isEditable",void 0);_.B([_.H({computed:"computeCanReorder(data.canReorder)"}),_.k("design:type",Boolean)],Uc.prototype,"canReorder",void 0);
_.B([_.H({value:101}),_.k("design:type",Number)],Uc.prototype,"scrollMargin",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Uc.prototype,"dataChanged",null);_.B([_.V("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Uc.prototype,"onRendererstamperFinished",null);
_.B([_.V("yt-playlist-reloading"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Uc.prototype,"onPlaylistReloading",null);_.B([_.V("yt-update-set-video-id"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Uc.prototype,"onUpdateSetVideoId",null);
_.B([_.V("yt-append-continuation-items-action-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Uc.prototype,"onAppendContinuationItemsActionFinished",null);_.B([_.V("yt-update-video-data-voting-animation"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Uc.prototype,"updateVideoData",null);Uc=_.B([_.L({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Uc);
_.P(Uc,"ytd-playlist-video-list-renderer",function(){if(oIm!==void 0)return oIm;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return oIm=p},{mode:_.UQ("kevlar_poly_si_batch_j047")?1:2});var jZa;var Lbk=function(){return _.m.apply(this,arguments)||this};
_.E(Lbk,_.m);Lbk.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"}}}}};
Lbk.prototype.onTextWrapperTap=function(p){var x=this.data&&this.data.navigationEndpoint;x&&!_.mx(_.m9(p),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.hG(this.hostElement,"yt-navigate",{endpoint:x})};
Lbk.prototype.dataChanged=function(){var p=this.get("data.offerButton.buttonRenderer.serviceEndpoint");p&&p.commandMetadata&&_.r(p.commandMetadata,_.gA)&&_.r(p.commandMetadata,_.gA).fireAutomatically&&(_.S("web_ytd_movie_renderer_command_resolver_ks")?_.fc(this.hostElement,[p]):_.J().resolve(_.RD).resolveCommand(p,{form:{element:this.hostElement}}))};
var iY=Lbk;iY.prototype.dataChanged=iY.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],iY.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],iY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.HL),_.k("design:type",Object)],iY.prototype,"ytdLockupBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],iY.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.k("design:type",Boolean)],iY.prototype,"useBiggerThumbs",void 0);_.B([_.H({reflectToAttribute:!0,value:function(){return _.iO("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],iY.prototype,"biggerThumbsStyle",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],iY.prototype,"leftAligned",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iY.prototype,"dataChanged",null);iY=_.B([_.L({disableElementRegistration:!0,is:"ytd-movie-renderer"})],iY);
_.P(iY,"ytd-movie-renderer",function(){if(jZa!==void 0)return jZa;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return jZa=p},{mode:1});var PDH;var Ib=function(){var p=_.m.apply(this,arguments)||this;p.rounded=!0;p.pageAttachedTo=void 0;p.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return p};
_.E(Ib,_.m);Ib.prototype.attached=function(){this.pageAttachedTo=_.J().resolve(_.j3).getCurrentPage();_.hG(this.hostElement,"yt-player-attached",this.player)};
Ib.prototype.detached=function(){var p;if((p=this.pageAttachedTo)==null?0:p.hostElement)_.hG(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Ib.prototype.dataChanged=function(){var p;if((p=this.data)==null?0:p.videoId)p={video_id:this.data.videoId,autoplay:!0},!_.S("miniplayer_stop_channel_video_autoplay_killswitch")&&_.J().resolve(_.H$).isMiniplayerActive()&&(p.pause_at_start=!0,p.autoplay=!1),this.player.loadVideoWithPlayerVars(p)};
Ib.prototype.handleSignalActionPausePlayer=function(){_.TO().pause()};
var $P=Ib;$P.prototype.dataChanged=$P.prototype.dataChanged;_.B([_.H(),_.k("design:type",Object)],$P.prototype,"data",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],$P.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$P.prototype,"rounded",void 0);
_.B([_.Ff("#player"),_.k("design:type",Object)],$P.prototype,"player",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$P.prototype,"dataChanged",null);$P=_.B([_.L({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],$P);
_.P($P,"ytd-channel-video-player-renderer",function(){if(PDH!==void 0)return PDH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return PDH=p},{mode:1});var TTD;var BT8;var Rec;var kgX=function(){var p=_.m.apply(this,arguments)||this;p.playing=!1;p.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.$$(p);p.active=!1;return p};
_.E(kgX,_.m);_.l=kgX.prototype;_.l.detached=function(){this.stop()};
_.l.play=function(){var p=this,x,F,N,h,c;return _.D(function(M){if(M.nextAddress==1)return p.active=!0,x=p.get("data.inlinePlaybackEndpoint.watchEndpoint"),F=x.videoId||p.data.videoId,N=x.startTimeSeconds||0,h=x.playerParams||null,_.S("kevlar_player_update_killswitch")?_.q(M,p.playerEl.update({args:{video_id:F,startSeconds:N,player_params:h}}),2):(p.playerEl.loadVideoWithPlayerVars({video_id:F,startSeconds:N,player_params:h,autoplay:!0}),M.jumpTo(2));if(M.nextAddress!=4)return _.q(M,p.playerEl.getPlayerPromise(),
4);c=M.yieldResult;c.unloadModule("annotations_module");c.addEventListener("onStateChange",function(f){p.onPlayerStateChange(f)});
_.JB(M)})};
_.l.onPlayerStateChange=function(p){if(this.active)switch(this.playing=p===1,p){case 1:_.hG(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.hG(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.l.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.l.resize=function(){var p=this,x;return _.D(function(F){if(F.nextAddress==1)return _.q(F,p.playerEl.getPlayerPromise(),2);x=F.yieldResult;x.setSize(NaN,NaN);_.JB(F)})};
var en=kgX;_.B([_.H(),_.k("design:type",Object)],en.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],en.prototype,"playing",void 0);_.B([_.H(),_.k("design:type",Object)],en.prototype,"playerId",void 0);_.B([_.Ff("#player"),_.k("design:type",Object)],en.prototype,"playerEl",void 0);en=_.B([_.L({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],en);
_.P(en,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(Rec!==void 0)return Rec;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Rec=p},{mode:1});var UKm;var iht;var IGk=function(){var p=_.m.apply(this,arguments)||this;p.width=0;return p};
_.E(IGk,_.m);_.l=IGk.prototype;_.l.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.p5(this,this.onEnded));this.mp4El.addEventListener("error",_.p5(this,this.onError))};
_.l.detached=function(){this.videoEl.removeEventListener("ended",_.p5(this,this.onEnded));this.mp4El.removeEventListener("error",_.p5(this,this.onError))};
_.l.play=function(){var p=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var x=this.videoEl.play();x?x.then(function(){p.handleVideoStartPlaying()}).catch(function(){_.hG(p.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.hG(this.hostElement,"yt-video-thumbnail-not-playing")};
_.l.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.l.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.l.dataChanged=function(){var p;if((p=this.data)==null?0:p.thumbnailPlaceholder)p=_.Ou(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+p+")";this.stop();this.autoplay&&this.play()};
_.l.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.l.onEnded=function(){this.stop();_.hG(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.l.onError=function(){_.hG(this.hostElement,"yt-video-thumbnail-error")};
_.l.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.l.getVideoThumbnail=function(p){if(p&&p.length)return p[0]};
var pO=IGk;pO.prototype.dataChanged=pO.prototype.dataChanged;_.B([_.H(),_.k("design:type",Object)],pO.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],pO.prototype,"animatePlaceholderOnEntrance",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],pO.prototype,"autoplay",void 0);_.B([_.H({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.k("design:type",Object)],pO.prototype,"videoThumbnail",void 0);
_.B([_.H(),_.k("design:type",Boolean)],pO.prototype,"loop",void 0);_.B([_.H(),_.k("design:type",Boolean)],pO.prototype,"isVideoPlaying",void 0);_.B([_.H(),_.k("design:type",Object)],pO.prototype,"width",void 0);_.B([_.Ff("#mp4"),_.k("design:type",HTMLElement)],pO.prototype,"mp4El",void 0);_.B([_.Ff("#placeholder"),_.k("design:type",HTMLElement)],pO.prototype,"placeholderEl",void 0);_.B([_.Ff("#video"),_.k("design:type",HTMLVideoElement)],pO.prototype,"videoEl",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pO.prototype,"dataChanged",null);pO=_.B([_.JZ({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],pO);
_.P(pO,"yt-video-as-thumbnail-details",function(){if(iht===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;UKm===void 0&&(UKm=document.createElement("template"));var N=UKm;F.call(x,N.content.cloneNode(!0),p.content.firstChild);iht=p}p=iht;return p},{mode:2});var xh,$K_=function(){var p=_.m.apply(this,arguments)||this;p.disableGridStateAware=!1;p.animationEnabled=_.S("enable_web_ketchup_hero_animation");p.transitioningOut=!1;p.narrow=!1;p.narrower=!1;p.isCarouselInFeed=!1;p.videoTimeoutJobId=0;p.panelTimeoutJobId=0;p.panelTimeoutJobStartMs=0;p.actionMap={"yt-window-resized":"onWindowResized"};return p};
_.E($K_,_.m);_.l=$K_.prototype;_.l.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.l.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var p;this.player&&((p=this.data)==null?0:p.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.l.attached=function(){this.onWindowResized()};
_.l.detached=function(){this.clearTimeouts()};
_.l.onWindowResized=function(){this.updateSize()};
_.l.computePanelLayout=function(p){return p&&p.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.l.playVideo=function(){var p;this.video&&((p=this.data)==null?0:p.videoThumbnail)&&this.video.play();var x;this.player&&((x=this.data)==null?0:x.inlinePlaybackRenderer)&&this.player.play()};
_.l.stopVideo=function(){var p;this.video&&((p=this.data)==null?0:p.videoThumbnail)&&this.video.stop();var x;this.player&&((x=this.data)==null?0:x.inlinePlaybackRenderer)&&this.player.stop()};
_.l.transitionOut=function(){var p=this;this.transitioningOut=!0;return new Promise(function(x){var F=function(){_.n(p.hostElement).querySelector("#action-button").removeEventListener("animationend",F);_.E0.cancelJob(N);x();p.transitioningOut=!1};
var N=_.vZ(_.E0,F,1E3);_.n(p.hostElement).querySelector("#action-button").addEventListener("animationend",F);p.player&&(p.player.playing=!1)})};
_.l.computeMetadataOrder=function(p){return p&&p.metadataOrder&&p.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?p.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.l.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.l.computeAvatarSize=function(p){return p&&p.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.l.onContentClick=function(p){if(!_.mx(_.m9(p),this.hostElement,["A".toString(),"BUTTON".toString()])){var x;if((x=this.data)==null?0:x.navigationEndpoint){var F;this.componentBehavior.resolveCommand((F=this.data)==null?void 0:F.navigationEndpoint)}}};
_.l.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.l.setBackgroundImage=function(p){if(p=this.getBackgroundImageUrl(p))_.n(this.hostElement).querySelector("#hero").style.backgroundImage="url("+p+")"};
_.l.setScrimLayer=function(p){var x=this.getScrimLayerColorStops(p);p=((p==null?void 0:p.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(p=180);_.sd("HTML_DIR")==="rtl"&&(p=-p);x&&(_.n(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+p+"deg, "+x+")")};
_.l.isNarrower=function(){return this.hostElement.clientWidth<xh.NARROW_VERSION_SIZE};
_.l.getScrimLayerColorStops=function(){var p,x=(p=this.data)==null?void 0:p.scrimColorValues;if(!x)return null;if(x.length===1)return p=_.QK(x[0]),p+" 0%, "+p+" 100%";if(x.length===3){var F=[0,72,98];return x.map(function(N,h){return _.QK(N)+" "+F[h]+"%"}).join(",")}return null};
_.l.getBackgroundImageUrl=function(p){return p&&p.largeFormFactorBackgroundThumbnail?_.Ou((p.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||p.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.l.onPlaying=function(){this.startVideoTimeout()};
_.l.onEnded=function(){this.rotate()};
_.l.startPanelTimeout=function(){var p=this;if(!this.panelTimeoutJobId){var x=this.get("data.minPanelDisplayDurationMs");x&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.vZ(_.E0,function(){p.rotate()},x))}};
_.l.startVideoTimeout=function(){var p=this;if(!this.videoTimeoutJobId){_.E0.cancelJob(this.panelTimeoutJobId);var x=Date.now()-this.panelTimeoutJobStartMs;x=Math.max(0,this.get("data.minPanelDisplayDurationMs")-x);x=Math.max(this.get("data.minVideoPlayDurationMs")||0,x);this.videoTimeoutJobId=_.vZ(_.E0,function(){p.rotate()},x)}};
_.l.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.E0.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.E0.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.l.rotate=function(){this.clearTimeouts();_.hG(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.R8.Object.defineProperties($K_.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.n(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.n(this.hostElement).querySelector("#video")}}});
_.R8.Object.defineProperties($K_,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
var FL=xh=$K_;xh.prototype.onEnded=xh.prototype.onEnded;xh.prototype.onPlaying=xh.prototype.onPlaying;xh.prototype.dataChanged=xh.prototype.dataChanged;_.B([_.u(_.Yk),_.k("design:type",Object)],FL.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],FL.prototype,"componentBehavior",void 0);_.B([_.u(_.GM.YtdGuideStateAwareBehavior),_.k("design:type",Object)],FL.prototype,"ytdGuideStateAwareBehavior",void 0);
_.B([_.u(_.UH8),_.k("design:type",Object)],FL.prototype,"ytBooleanLogicBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],FL.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],FL.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],FL.prototype,"ytRendererBehavior",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],FL.prototype,"disableGridStateAware",void 0);_.B([_.H(),_.k("design:type",Object)],FL.prototype,"data",void 0);_.B([_.H({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.k("design:type",String)],FL.prototype,"panelLayout",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],FL.prototype,"animationEnabled",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],FL.prototype,"transitioningOut",void 0);
_.B([_.H({computed:"computeMetadataOrder(data)"}),_.k("design:type",Boolean)],FL.prototype,"metadataOrder",void 0);_.B([_.H({computed:"computeByline(data)"}),_.k("design:type",Object)],FL.prototype,"byline",void 0);_.B([_.H({computed:"computeAvatarSize(data)"}),_.k("design:type",Number)],FL.prototype,"avatarSize",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],FL.prototype,"narrow",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],FL.prototype,"narrower",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],FL.prototype,"layoutStyle",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],FL.prototype,"isCarouselInFeed",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],FL.prototype,"dataChanged",null);_.B([_.V("yt-default-promo-panel-renderer-playing"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],FL.prototype,"onPlaying",null);
_.B([_.V("yt-default-promo-panel-renderer-ended"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],FL.prototype,"onEnded",null);FL=xh=_.B([_.L({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],FL);
_.P(FL,"ytd-default-promo-panel-renderer",function(){if(BT8!==void 0)return BT8;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return BT8=p},{mode:1});_.Ei("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var eet=function(){var p=_.m.apply(this,arguments)||this;p.narrower=!1;p.dotMenuVisible=!1;p.paginationThumbnailsVisible=!1;p.active=!0;p.disableGridStateAware=!1;p.actionMap={"yt-window-resized":"onWindowResized"};return p};
_.E(eet,_.m);_.l=eet.prototype;_.l.configureRendererStamper=function(){return{currentItem:{id:"carousel-item",mapping:{defaultPromoPanelRenderer:{component:"ytd-default-promo-panel-renderer",attributes:{autoplay:!0},properties:{disableGridStateAware:"[[disableGridStateAware]]",layoutStyle:"[[data.layoutStyle]]",isCarouselInFeed:"[[isCarouselInFeed]]"}}}}}};
_.l.attached=function(){this.onWindowResized()};
_.l.detached=function(){this.jobId&&_.E0.cancelJob(this.jobId);this.updateSizeJobId&&_.E0.cancelJob(this.updateSizeJobId)};
_.l.onWindowResized=function(){this.updateSize()};
_.l.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.l.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.l.setCarouselItem=function(p){p>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.E0.cancelJob(this.jobId);var x=this.getCurrentPanelElement();x&&x.stopVideo();this.currentItemIndex=p%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(x||(x=this.getCurrentPanelElement()),x.playVideo()):this.startRotationJob()};
_.l.scrollThumbnails=function(p){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var x=this.getCurrentPaginationElement();if(x){var F=_.n(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?F.style.transform="translateX(0)":(x=x.offsetWidth+8,F.style.transform="translateX(-"+x*(p-Math.ceil(Math.floor(this.overlay.offsetWidth/x)/2)+1)+"px)")}}};
_.l.onDataChanged=function(){var p=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.rR(_.E0,function(){p.getCurrentPanelElement().updateSize();p.updateSize()}))};
_.l.getCurrentPanelElement=function(){return _.n(_.n(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.l.getCurrentPaginationElement=function(){return _.n(_.n(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.l.getNavigationClass=function(p,x){return p===x?"selected":""};
_.l.getNavigationDurationStyle=function(p){return"animation-duration:"+(this.get("data.carouselItems."+p+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.l.onNavigationTap=function(p){var x=this,F=p.model.index;F!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){x.setCarouselItem(F)}),this.autorotateActive=!1)};
_.l.onVideoThumbnailEnded=function(){var p=this;if(this.shouldRotate()){var x=this.getCurrentPaginationElement();x&&(x.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){x.classList.remove("finished");p.setNextCarouselItem()}))}};
_.l.onVideoThumbnailError=function(){this.startRotationJob()};
_.l.onVideoNotPlaying=function(){this.startRotationJob()};
_.l.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.l.startRotationJob=function(){var p=this;_.E0.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.E0.addLowPriorityJob(function(){p.getCurrentPanelElement().transitionOut().then(function(){p.setNextCarouselItem()})},this.rotationTimeout))};
_.l.computeDotMenuVisible=function(p,x){return!!p&&!!p.carouselItems&&p.carouselItems.length>1&&!p.paginationThumbnails||!!x};
_.l.computePaginationThumbnailsVisible=function(p,x){var F,N;return((N=p==null?void 0:(F=p.paginationThumbnails)==null?void 0:F.length)!=null?N:0)>1&&!x};
_.l.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.l.computePaginatorAlignment=function(p){return(p==null?void 0:p.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.l.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.l.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.l.isNarrower=function(p){return(p!=null?p:0)<FL.NARROW_VERSION_SIZE};
var N3=eet;N3.prototype.activeChanged=N3.prototype.activeChanged;N3.prototype.onVideoNotPlaying=N3.prototype.onVideoNotPlaying;N3.prototype.onVideoThumbnailError=N3.prototype.onVideoThumbnailError;N3.prototype.onVideoThumbnailEnded=N3.prototype.onVideoThumbnailEnded;N3.prototype.onDataChanged=N3.prototype.onDataChanged;_.B([_.u(_.Yk),_.k("design:type",Object)],N3.prototype,"ytdGridStateAwareBehavior",void 0);
_.B([_.u(_.GM.YtdGuideStateAwareBehavior),_.k("design:type",Object)],N3.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],N3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],N3.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],N3.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],N3.prototype,"currentItem",void 0);
_.B([_.H(),_.k("design:type",Number)],N3.prototype,"currentItemIndex",void 0);_.B([_.H(),_.k("design:type",Number)],N3.prototype,"rotationTimeout",void 0);_.B([_.H(),_.k("design:type",Number)],N3.prototype,"loopCount",void 0);_.B([_.H({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.k("design:type",String)],N3.prototype,"paginatorAlignment",void 0);_.B([_.H(),_.k("design:type",Number)],N3.prototype,"jobId",void 0);
_.B([_.H(),_.k("design:type",Number)],N3.prototype,"updateSizeJobId",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],N3.prototype,"isCarouselInFeed",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],N3.prototype,"narrower",void 0);_.B([_.H({computed:"computeDotMenuVisible(data, narrower)"}),_.k("design:type",Object)],N3.prototype,"dotMenuVisible",void 0);
_.B([_.H({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.k("design:type",Object)],N3.prototype,"paginationThumbnailsVisible",void 0);_.B([_.H({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.k("design:type",String)],N3.prototype,"layoutType",void 0);_.B([_.H({value:!0,reflectToAttribute:!0}),_.k("design:type",Boolean)],N3.prototype,"autorotateActive",void 0);_.B([_.H(),_.k("design:type",Object)],N3.prototype,"active",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],N3.prototype,"disableGridStateAware",void 0);_.B([_.Ff("#overlay"),_.k("design:type",HTMLElement)],N3.prototype,"overlay",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],N3.prototype,"onDataChanged",null);
_.B([_.V("yt-video-thumbnail-ended"),_.V("yt-default-promo-panel-renderer-rotate"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],N3.prototype,"onVideoThumbnailEnded",null);_.B([_.V("yt-video-thumbnail-error"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],N3.prototype,"onVideoThumbnailError",null);
_.B([_.V("yt-video-thumbnail-not-playing"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],N3.prototype,"onVideoNotPlaying",null);_.B([_.cT("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],N3.prototype,"activeChanged",null);N3=_.B([_.L({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],N3);
_.P(N3,"ytd-carousel-item-renderer",function(){if(TTD!==void 0)return TTD;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return TTD=p},{mode:2});var poH;var xAe;var F08;var NGk;var hFa=function(){var p=_.m.apply(this,arguments)||this;p.originalQuery=null;p.originalEndpoint=null;return p};
_.E(hFa,_.m);hFa.prototype.computeShowOriginalQueryWithoutEndpoint_=function(p,x){return!(!p||x)};
var hb=hFa;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],hb.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],hb.prototype,"correctedText",void 0);_.B([_.H(),_.k("design:type",Object)],hb.prototype,"correctedQuery",void 0);_.B([_.H(),_.k("design:type",Object)],hb.prototype,"correctedEndpoint",void 0);_.B([_.H(),_.k("design:type",Object)],hb.prototype,"originalText",void 0);_.B([_.H(),_.k("design:type",Object)],hb.prototype,"originalQuery",void 0);
_.B([_.H(),_.k("design:type",Object)],hb.prototype,"originalEndpoint",void 0);_.B([_.H({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.k("design:type",Boolean)],hb.prototype,"showOriginalQueryWithoutEndpoint",void 0);hb=_.B([_.JZ({is:"yt-search-query-correction",disableElementRegistration:!0})],hb);
_.P(hb,"yt-search-query-correction",function(){if(NGk===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;F08===void 0&&(F08=document.createElement("template"));var N=F08;F.call(x,N.content.cloneNode(!0),p.content.firstChild);NGk=p}p=NGk;return p},{mode:2});_.Ei("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var lBD=function(){return _.m.apply(this,arguments)||this};
_.E(lBD,_.m);var cyH=lBD;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],cyH.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],cyH.prototype,"data",void 0);cyH=_.B([_.JZ({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],cyH);
_.P(cyH,"yt-did-you-mean-renderer",function(){if(xAe===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;poH===void 0&&(poH=document.createElement("template"));var N=poH;F.call(x,N.content.cloneNode(!0),p.content.firstChild);xAe=p}p=xAe;return p},{mode:2});var aBm;var Mnc;_.Ei("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var DA8=function(){return _.m.apply(this,arguments)||this};
_.E(DA8,_.m);var fBH=DA8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],fBH.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],fBH.prototype,"data",void 0);fBH=_.B([_.JZ({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],fBH);
_.P(fBH,"yt-including-results-for-renderer",function(){if(Mnc===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;aBm===void 0&&(aBm=document.createElement("template"));var N=aBm;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Mnc=p}p=Mnc;return p},{mode:2});var K0D;var qcH;_.Ei("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var Zvc=function(){return _.m.apply(this,arguments)||this};
_.E(Zvc,_.m);Zvc.prototype.computeExtraClasses_=function(p,x){var F="";p&&(F+=" "+p.toLowerCase().replace(/_/g,"-"));x&&(F+=" "+x.toLowerCase().replace(/_/g,"-"));return F};
Zvc.prototype.computeUrlImg_=function(){var p=this.data;p.image&&(_.n(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.Ou(p.image.thumbnails,Number.MAX_VALUE)+")")};
var l5=Zvc;l5.prototype.computeUrlImg_=l5.prototype.computeUrlImg_;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],l5.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],l5.prototype,"data",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],l5.prototype,"computeUrlImg_",null);l5=_.B([_.JZ({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],l5);
_.P(l5,"yt-music-pass-feature-info-renderer",function(){if(qcH===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;K0D===void 0&&(K0D=document.createElement("template"));var N=K0D;F.call(x,N.content.cloneNode(!0),p.content.firstChild);qcH=p}p=qcH;return p},{mode:2});var tnD;var dAc;_.Ei("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var vPa=function(){return _.m.apply(this,arguments)||this};
_.E(vPa,_.m);var JyH=vPa;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],JyH.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],JyH.prototype,"data",void 0);JyH=_.B([_.JZ({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],JyH);
_.P(JyH,"yt-no-results-found-showing-results-for-renderer",function(){if(dAc===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;tnD===void 0&&(tnD=document.createElement("template"));var N=tnD;F.call(x,N.content.cloneNode(!0),p.content.firstChild);dAc=p}p=dAc;return p},{mode:2});var CYe;var Sc8;_.Ei("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var ryt=function(){return _.m.apply(this,arguments)||this};
_.E(ryt,_.m);var EPt=ryt;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],EPt.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],EPt.prototype,"data",void 0);EPt=_.B([_.JZ({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],EPt);
_.P(EPt,"yt-results-without-quotes-renderer",function(){if(Sc8===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;CYe===void 0&&(CYe=document.createElement("template"));var N=CYe;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Sc8=p}p=Sc8;return p},{mode:2});var XoX;var gPm;_.Ei("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var Qbk=function(){return _.m.apply(this,arguments)||this};
_.E(Qbk,_.m);var zFe=Qbk;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],zFe.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],zFe.prototype,"data",void 0);zFe=_.B([_.JZ({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],zFe);
_.P(zFe,"yt-search-no-results-renderer",function(){if(gPm===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;XoX===void 0&&(XoX=document.createElement("template"));var N=XoX;F.call(x,N.content.cloneNode(!0),p.content.firstChild);gPm=p}p=gPm;return p},{mode:2});var sbD;var nPH;_.Ei("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var yym=function(){return _.m.apply(this,arguments)||this};
_.E(yym,_.m);var bva=yym;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],bva.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],bva.prototype,"data",void 0);bva=_.B([_.JZ({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],bva);
_.P(bva,"yt-showing-results-for-renderer",function(){if(nPH===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;sbD===void 0&&(sbD=document.createElement("template"));var N=sbD;F.call(x,N.content.cloneNode(!0),p.content.firstChild);nPH=p}p=nPH;return p},{mode:2});var AyH;var uXX;var Yc8;var woD;var GAm=function(){var p=_.m.apply(this,arguments)||this;p.answerExpanded=!1;return p};
_.E(GAm,_.m);GAm.prototype.toggleAnswer_=function(p){var x=_.os(p);x&&x.classList.contains("yt-simple-endpoint")||(p.preventDefault(),p.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
var cU=GAm;cU.prototype.toggleAnswer_=cU.prototype.toggleAnswer_;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],cU.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],cU.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],cU.prototype,"answerExpanded",void 0);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],cU.prototype,"toggleAnswer_",null);
cU=_.B([_.JZ({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],cU);
_.P(cU,"yt-generic-faq-question-renderer",function(){if(woD===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Yc8===void 0&&(Yc8=document.createElement("template"));var N=Yc8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);woD=p}p=woD;return p},{mode:2});_.Ei("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var VnH=function(){return _.m.apply(this,arguments)||this};
_.E(VnH,_.m);VnH.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
var aN=VnH;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],aN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],aN.prototype,"data",void 0);aN=_.B([_.JZ({is:"yt-faq-section-renderer",disableElementRegistration:!0})],aN);
_.P(aN,"yt-faq-section-renderer",function(){if(uXX===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;AyH===void 0&&(AyH=document.createElement("template"));var N=AyH;F.call(x,N.content.cloneNode(!0),p.content.firstChild);uXX=p}p=uXX;return p},{mode:2});var W08;var Hv8;_.Ei("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var mAm=function(){return _.m.apply(this,arguments)||this};
_.E(mAm,_.m);
mAm.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
var M3=mAm;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],M3.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],M3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],M3.prototype,"data",void 0);M3=_.B([_.JZ({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],M3);
_.P(M3,"yt-offer-item-expanded-renderer",function(){if(Hv8===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;W08===void 0&&(W08=document.createElement("template"));var N=W08;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Hv8=p}p=Hv8;return p},{mode:2});var oPa;var Ova;_.Ei("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var jb_=function(){return _.m.apply(this,arguments)||this};
_.E(jb_,_.m);
jb_.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"}}}}};
jb_.prototype.computeFullWidthMode=function(p){return!(!p||!p.fullWidthMode)};
jb_.prototype.computeBorderlessMode=function(p){return!(!p||!p.borderlessMode)};
var Di=jb_;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Di.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Di.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Di.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.k("design:type",Boolean)],Di.prototype,"fullWidthMode",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.k("design:type",Boolean)],Di.prototype,"borderlessMode",void 0);Di=_.B([_.JZ({is:"yt-offer-item-renderer",disableElementRegistration:!0})],Di);
_.P(Di,"yt-offer-item-renderer",function(){if(Ova===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;oPa===void 0&&(oPa=document.createElement("template"));var N=oPa;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Ova=p}p=Ova;return p},{mode:2});var L0e;var PYH;_.Ei("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var TGc=function(){return _.m.apply(this,arguments)||this};
_.E(TGc,_.m);TGc.prototype.computeAriaLevel_=function(p){return this.getLevelID_(p)};
TGc.prototype.getLevelID_=function(p){return(p=p.match(/[0-9]+$/))&&p.length==1?p[0]:"1"};
var fO=TGc;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],fO.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],fO.prototype,"data",void 0);_.B([_.H({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.k("design:type",String)],fO.prototype,"ariaLevel",void 0);_.B([_.H({value:"heading",reflectToAttribute:!0}),_.k("design:type",String)],fO.prototype,"role",void 0);
_.B([_.H({value:-1,reflectToAttribute:!0}),_.k("design:type",Number)],fO.prototype,"tabindex",void 0);fO=_.B([_.JZ({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],fO);
_.P(fO,"yt-subscription-product-header-renderer",function(){if(PYH===void 0){var p=document.createElement("template");_.g(p,"\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");p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;L0e===void 0&&(L0e=document.createElement("template"));var N=L0e;F.call(x,N.content.cloneNode(!0),p.content.firstChild);PYH=p}p=PYH;return p},{mode:2});var BG8;var RF8;_.Ei("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var kAD=function(){return _.m.apply(this,arguments)||this};
_.E(kAD,_.m);kAD.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:_.Xt("menuRenderer"),events:!0}}};
kAD.prototype.onStampFinished_=function(){_.n(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
var KO=kAD;KO.prototype.onStampFinished_=KO.prototype.onStampFinished_;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],KO.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],KO.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],KO.prototype,"data",void 0);
_.B([_.V("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],KO.prototype,"onStampFinished_",null);KO=_.B([_.JZ({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],KO);
_.P(KO,"yt-subscription-product-renderer",function(){if(RF8===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;BG8===void 0&&(BG8=document.createElement("template"));var N=BG8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);RF8=p}p=RF8;return p},{mode:2});var UAc;var iv8;_.Ei("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var IBH=function(){return _.m.apply(this,arguments)||this};
_.E(IBH,_.m);IBH.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
IBH.prototype.imageScrimColorValuesChanged_=function(){var p,x=(p=this.data)==null?void 0:p.imageScrimColorValues;_.n(this.hostElement).querySelector("#scrim").style.backgroundColor=x?_.QK(x[0]):"transparent"};
var q3=IBH;q3.prototype.imageScrimColorValuesChanged_=q3.prototype.imageScrimColorValuesChanged_;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],q3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],q3.prototype,"data",void 0);
_.B([_.W("data.imageScrimColorValues"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q3.prototype,"imageScrimColorValuesChanged_",null);q3=_.B([_.JZ({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],q3);
_.P(q3,"yt-subscription-product-upsell-offer-renderer",function(){if(iv8===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;UAc===void 0&&(UAc=document.createElement("template"));var N=UAc;F.call(x,N.content.cloneNode(!0),p.content.firstChild);iv8=p}p=iv8;return p},{mode:2});var $A8;var eFH;var pUa;var x3X;var Fvm;var Nt8;var hj8=function(){return _.m.apply(this,arguments)||this};
_.E(hj8,_.m);hj8.prototype.onYtServiceRequestError_=function(p){_.yy(this.hostElement,p.detail.error.message)};
var Zi=hj8;Zi.prototype.onYtServiceRequestError_=Zi.prototype.onYtServiceRequestError_;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Zi.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Zi.prototype,"data",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Zi.prototype,"collapsible",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Zi.prototype,"isManageRed",void 0);
_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Zi.prototype,"onYtServiceRequestError_",null);Zi=_.B([_.JZ({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],Zi);
_.P(Zi,"yt-single-ypc-offer-renderer",function(){if(Nt8===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Fvm===void 0&&(Fvm=document.createElement("template"));var N=Fvm;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Nt8=p}p=Nt8;return p},{mode:2});var liH=function(){return _.m.apply(this,arguments)||this};
_.E(liH,_.m);liH.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
var tb=liH;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],tb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],tb.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],tb.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],tb.prototype,"isManageRed",void 0);tb=_.B([_.JZ({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],tb);
_.P(tb,"yt-single-ypc-offer-list-renderer",function(){if(x3X===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;pUa===void 0&&(pUa=document.createElement("template"));var N=pUa;F.call(x,N.content.cloneNode(!0),p.content.firstChild);x3X=p}p=x3X;return p},{mode:2});var cbH;var ai8;_.Ei("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var MKa=function(){return _.m.apply(this,arguments)||this};
_.E(MKa,_.m);MKa.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
var dt=MKa;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],dt.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],dt.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],dt.prototype,"data",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],dt.prototype,"isManageRed",void 0);dt=_.B([_.JZ({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],dt);
_.P(dt,"yt-ypc-offers-list-renderer",function(){if(ai8===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;cbH===void 0&&(cbH=document.createElement("template"));var N=cbH;F.call(x,N.content.cloneNode(!0),p.content.firstChild);ai8=p}p=ai8;return p},{mode:2});_.Ei("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var D38=function(){return _.m.apply(this,arguments)||this};
_.E(D38,_.m);
D38.prototype.configureRendererStamper=function(){return{"data.manageFixFopButton":{id:"manage-fix-fop-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageFamilyButton":{id:"manage-family-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageSubscriptionButton":{id:"manage-subscription-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
params:{alignByText:!0}}}},"data.offers":{id:"offers",mapping:{ypcOffersListRenderer:{component:"yt-ypc-offers-list-renderer",params:{isManageRed:!0}}}}}};
var vU=D38;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],vU.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],vU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],vU.prototype,"data",void 0);vU=_.B([_.JZ({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],vU);
_.P(vU,"yt-unlimited-manage-subscription-page-renderer",function(){if(eFH===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;$A8===void 0&&($A8=document.createElement("template"));var N=$A8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);eFH=p}p=eFH;return p},{mode:2});var fim;var Kvm;var qKk=function(){return _.m.apply(this,arguments)||this};
_.E(qKk,_.m);_.l=qKk.prototype;_.l.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.l.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.l.onKeypress_=function(p){p.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.l.handleHeaderTap_=function(p){p.preventDefault();p.stopPropagation();this.expandOffers_()};
_.l.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.l.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
var Jb=qKk;Jb.prototype.dataChanged_=Jb.prototype.dataChanged_;_.B([_.u(_.C7),_.k("design:type",Object)],Jb.prototype,"ironA11yKeysBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Jb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Jb.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Jb.prototype,"offersVisible_",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Jb.prototype,"dataChanged_",null);Jb=_.B([_.JZ({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],Jb);
_.P(Jb,"yt-collapsible-ypc-offer-renderer",function(){if(Kvm===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;fim===void 0&&(fim=document.createElement("template"));var N=fim;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Kvm=p}p=Kvm;return p},{mode:2});var ZO8;var tK8;_.Ei("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var d3a=function(){return _.m.apply(this,arguments)||this};
_.E(d3a,_.m);_.l=d3a.prototype;_.l.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.l.dataChanged_=function(){if(this.data.backgroundImage){var p=_.Ou(this.data.backgroundImage.thumbnails,screen.width),x=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=x?"linear-gradient(180deg, "+x+"), url("+p+")":"url("+p+")";this.data.gtmId&&_.tA(this.data.gtmId,_.sd("GL",""))}};
_.l.onYtServiceRequestError_=function(p){_.yy(this.hostElement,p.detail.error.message)};
_.l.getScrimLayerColorStops_=function(){var p,x,F=(p=this.data.unlimitedHeaderV2Data)==null?void 0:(x=p.unlimitedHeaderV2Data)==null?void 0:x.scrimLayerColors;if(!F)return null;var N=100/F.length;return F.map(function(h,c){c*=N;return _.QK(h)+" "+c+"%"}).join(",")};
_.l.computeLogoWithPadding=function(p){var x,F,N;return(p=(x=p.unlimitedLogoImage)==null?void 0:(F=x.thumbnails)==null?void 0:(N=F[0])==null?void 0:N.height)&&p%31===0?!0:!1};
var CO=d3a;CO.prototype.onYtServiceRequestError_=CO.prototype.onYtServiceRequestError_;CO.prototype.dataChanged_=CO.prototype.dataChanged_;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],CO.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],CO.prototype,"ytRendererBehavior",void 0);_.B([_.H({computed:"computeLogoWithPadding(data)"}),_.k("design:type",Boolean)],CO.prototype,"logoWithPadding",void 0);
_.B([_.H(),_.k("design:type",Object)],CO.prototype,"data",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CO.prototype,"dataChanged_",null);_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],CO.prototype,"onYtServiceRequestError_",null);CO=_.B([_.JZ({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],CO);
_.P(CO,"yt-unlimited-page-header-renderer",function(){if(tK8===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;ZO8===void 0&&(ZO8=document.createElement("template"));var N=ZO8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);tK8=p}p=tK8;return p},{mode:2});var vhX;var Jbm;_.Ei("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var C5D=function(){return _.m.apply(this,arguments)||this};
_.E(C5D,_.m);C5D.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
var SK=C5D;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],SK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],SK.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],SK.prototype,"data",void 0);SK=_.B([_.JZ({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],SK);
_.P(SK,"yt-unlimited-user-notification-renderer",function(){if(Jbm===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;vhX===void 0&&(vhX=document.createElement("template"));var N=vhX;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Jbm=p}p=Jbm;return p},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.KJm=_.mO(function(p){var x=_.Vg(p,{numberOfChips:5}).numberOfChips;return _.Z("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.Z(_.ft,{each:function(){return Array(x==null?void 0:x())}},function(){return _.Z("div",{class:"ytGhostChipShelfChip"})}))},"Kf");
}catch(e){_._DumpException(e)}
try{
var p7_,xzD,FwH,N6k,hye,lIX,c8m,pu,xW,Mq8,Dz8,fI8,qfm,r88,FR,Sfa,dze,C0m,J8a,vQt,tq8,EQ8,X7m,gQk,Q9X,N0,zy8,s9t,nQk,Yfe,ube,A8H,y8k,bs8,GZm,Vq8,Ww8,Hsc,mzX,oQ_,P08,Rye,kZa,Uzm,IIX,eya,xt8,FT8,NHt,hhX,cG8,axa,Mze,Dtt,fxc,KTH,qzc,tz8,CAX,JGm,dt8,Sz8,vve,rG_,Qf8,gvk,Evt,X5c,c1,zhe,yGt,G6_,Vzm,WTc,Hc8,mtm,ov8,OcX,jfk,LTX,PA8,BHc,Rh8,k6k,w7D,aIH,uJD;
_.$r=function(p){var x=new _.qE("Error accessing DB");return _.wLp().then(function(F){return new Promise(function(N,h){try{var c=F.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(p);c.onsuccess=function(){var M=c.result;N(M?M.value:null)};
c.onerror=function(){x.params={key:p,source:"onerror"};h(x)}}catch(M){x.params={key:p,
thrownError:String(M)},h(x)}})},function(){return null})};
_.eTc=function(p,x){var F=_.oEz(x);F!=="javascript:"&&F!=="data:"&&p.setAttribute("href",x)};
p7_=function(p,x){return _.M4(p.entities,"flowStateEntity",x)};
xzD=function(p){return(p=p.getOption("captions","track"))?!!p.displayName:!1};
FwH=function(p,x){x=x.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(x==null||!x.length)return p;var F=x.filter(function(M){return M});
x=p.filter(function(M){return M.languageCode.startsWith("en")});
F=_.a(F);for(var N=F.next();!N.done;N=F.next())if(N=N.value,x.length){var h=x[0],c=Object.assign({},h);h.languageCode!==N.languageCode&&(c.displayName=h.languageName+" >> "+N.languageName,c.translationLanguage=N,p.push(c))}return p};
N6k=function(p){var x,F=(x=p.getOption("captions","tracklist",{includeAsr:!0}))!=null?x:[];_.S("mweb_watch_captions_enable_auto_translate")&&(F=FwH(F,p));return F};
hye=function(p){return _.V6(p,function(x){return x.languageCode==="en"})};
lIX=function(p){var x=ef;if(xzD(p))p.setOption("captions","stickyLoading",{}),p.setOption("captions","track",{});else{var F=_.V6(N6k(p),function(N){return N.displayName===x});
p.setOption("captions","track",F)}};
c8m=function(p){if(!p)return 0;var x=p.getPresentingPlayerType(),F=p.getVideoData();return F&&F.isLive?(p=p.getProgressState(x),p.seekableEnd-p.seekableStart):p.getDuration(x)};
pu=function(p,x){_.wY(x,p,function(){return aIH[x]},function(F){aIH[x]=F;
if(!_.S("mweb_player_ve_show_ks")){var N=_.b0(0);N&&F&&_.Lc(N,F)}})};
xW=function(p){(p=aIH[p])&&_.lC(_.cl(),p)};
Mq8=function(p,x){for(var F=_.a(Object.keys(p)),N=F.next();!N.done;N=F.next())if(N=N.value,p[N]!==x[N])return!1;return!0};
Dz8=function(){return document.getElementById("player-control-overlay")};
fI8=function(p){p!==-1&&!_.S("player_controls_log_creation_killswitch")&&Dz8()&&(_.wH("pcu_cs",p),_.wH("pcu_ce"))};
qfm=function(p){return _.Z("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(p.subscribeButton?[p.subscribeButton,p.channelAccess]:[p.channelAccess]).map(function(x){return _.Z("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.Z("div",{class:"yt-profile-identity-info-view-model-wiz--button"},Kwk(x)))}))};
_.ZsD=function(p){var x=p.data;p=p.hideDivider;var F={};F=(F["yt-profile-identity-info-view-model-wiz__frame"]=!0,F["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!x.channelBanner,F);F={class:_.pQ(F)};var N,h={imageBannerViewModel:{image:(N=x.channelBanner)==null?void 0:N.image,style:"IMAGE_BANNER_STYLE_INSET"}};N=_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},x.channelBanner?_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
Kwk(h,{imageBannerViewModel:{isPositionRelative:!0}})):null);h=_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},Kwk(x.avatar));var c;var M=_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},x.channelDisplayName),x.verifiedOrOacBadge?_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.Z(_.VE,{data:{thumbnails:[{url:(c=x.verifiedOrOacBadge)==null?void 0:c.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);c=_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},M,Kwk(x.threeDotMenu));M=_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.Z("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},x.channelHandle),x.channelPronouns&&x.channelHandle?_.Z("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.Z("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},x.channelPronouns)),_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},x.leftOfBulletInfo),x.leftOfBulletInfo&&x.rightOfBulletInfo?_.Z("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},x.rightOfBulletInfo)));c=_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},c,M);return _.Z("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.Z("div",F,N,_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},h,c),x.channelDescription?_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},x.channelDescription):
null,qfm(x),p?null:_.Z("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
r88=function(p,x){var F=_.GD(p,{}),N=tq8("top",x),h=tq8("bottom",x),c=tq8("left",x),M=tq8("right",x);return _.a4({top:function(){return FR(F().position,N)},
bottom:function(){return FR(F().position,h)},
left:function(){return FR(F().position,c)},
right:function(){return FR(F().position,M)},
position:function(){return FR(F().positionType,dze)},
height:function(){return FR(F().height,N0)},
width:function(){return FR(F().width,N0)},
"min-width":function(){return FR(F().minWidth,N0)},
"min-height":function(){return FR(F().minHeight,N0)},
"max-width":function(){return FR(F().maxWidth,N0)},
"max-height":function(){return FR(F().maxHeight,N0)},
"aspect-ratio":function(){return FR(F().aspectRatio,String)},
"margin-top":function(){return FR(F().margin,N)},
"margin-bottom":function(){return FR(F().margin,h)},
"margin-left":function(){return FR(F().margin,c)},
"margin-right":function(){return FR(F().margin,M)},
"padding-top":function(){return FR(F().padding,N)},
"padding-bottom":function(){return FR(F().padding,h)},
"padding-left":function(){return FR(F().padding,c)},
"padding-right":function(){return FR(F().padding,M)},
"flex-direction":function(){return FR(F().flexDirection,vQt)},
"justify-content":function(){return FR(F().justifyContent,J8a)},
"align-items":function(){return FR(F().alignItems,C0m)},
"flex-grow":function(){return FR(F().flexGrow,String)},
"flex-shrink":function(){return FR(F().flexShrink,String)},
"flex-basis":function(){return FR(F().flexBasis,N0)},
"align-self":function(){return FR(F().alignSelf,C0m)},
"flex-wrap":function(){return FR(F().flexWrap,Sfa)},
"align-content":function(){return FR(F().alignContent,C0m)}})};
FR=function(p,x){return p!==void 0?x(p):void 0};
Sfa=function(p){switch(p){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
dze=function(p){switch(p){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
C0m=function(p){switch(p){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"}};
J8a=function(p){switch(p){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"}};
vQt=function(p){switch(p){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"}};
tq8=function(p,x){var F=x==="rtl";switch(p){case "top":var N=EQ8;break;case "bottom":N=X7m;break;case "left":N=gQk;break;default:N=Q9X}return function(h){return FR(N(h,F),N0)}};
EQ8=function(p){var x=p.top;var F=p.vertical;p=p.all;var N;return(N=x!=null?x:F)!=null?N:p};
X7m=function(p){var x=p.bottom;var F=p.vertical;p=p.all;var N;return(N=x!=null?x:F)!=null?N:p};
gQk=function(p,x){var F=p.left;var N=p.end;var h=p.start;var c=p.horizontal;p=p.all;var M,f;return(f=(M=F!=null?F:x?N:h)!=null?M:c)!=null?f:p};
Q9X=function(p,x){var F=p.right;var N=p.end;var h=p.start;var c=p.horizontal;p=p.all;var M,f;return(f=(M=F!=null?F:x?h:N)!=null?M:c)!=null?f:p};
N0=function(p){var x=p.value;switch(p.unit){case "YPC_DIMENSION_UNIT_POINT":return x+"px";case "YPC_DIMENSION_UNIT_FRACTION":return x+"%";default:return""+x}};
zy8=function(p){switch(p){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"}};
s9t=function(p){var x=p!=null?p:{};p=x.fontRole;var F=x.fontSize;x=x.fontWeight;if(p!==null&&F!==null)switch(p){case "YPC_FONT_ROLE_DISPLAY":switch(F){case "YPC_FONT_SIZE_L":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(F){case "YPC_FONT_SIZE_L":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return x===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(F){case "YPC_FONT_SIZE_XL":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return x==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
nQk=function(p,x){return _.M4(p.entities,"pdpStateEntity",x)};
Yfe=function(p,x,F){function N(t){return Object.values(t).map(function(d){var v=d.productId;d=d.pricingOptionIndex;return y8k(h(v).pricingOptions,d).pricingOptionId})}
function h(t){return f().get(t)}
function c(t){t=N(t);F(t)}
var M=bs8([p,x],function(t,d){var v=t==null?void 0:t.selectedPricingOptions;t={};var C=!0;if(v&&d.length)for(var X=_.a(d),Q=X.next();!Q.done;Q=X.next()){Q=Q.value;var b=A8H(Q.pricingOptions,function(A){a:{A=A.pricingOptionId;for(var Y=_.a(v),O=Y.next();!O.done;O=Y.next())if(O.value===A){A=!0;break a}A=!1}return A});
b>=0&&(C=!1,t[Q.groupId]={productId:Q.productId,pricingOptionIndex:b})}C&&d.length&&(t[d[0].groupId]={productId:d[0].productId,pricingOptionIndex:0});return t}),f=bs8([x],function(t){return new Map(t.map(function(d){return[d.productId,
d]}))}),K=bs8([x],function(t){var d=new Map;
t=_.a(t);for(var v=t.next();!v.done;v=t.next()){var C=v.value;v=C.groupId;var X=C.productId;C=_.a(ube(C.pricingOptions));for(var Q=C.next();!Q.done;Q=C.next()){var b=_.a(Q.value);Q=b.next().value;b=b.next().value;d.set(b.pricingOptionId,{groupId:v,productId:X,index:Q,pricingOption:b})}}return d});
return{getProductById:h,isProductSelected:function(t){var d=h(t);if(!d)return!1;var v;return((v=M()[d.groupId])==null?void 0:v.productId)===t},
getSelectedPricingOptions:function(){return Object.values(M()).map(function(t){var d=t.productId;t=t.pricingOptionIndex;return y8k(h(d).pricingOptions,t)})},
getSelectedProductByGroupId:function(t){var d;return(t=(d=M()[t])==null?void 0:d.productId)?h(t):void 0},
onProductSelected:function(t){var d=h(t);if(d){var v=M(),C;if(((C=v[d.groupId])==null?void 0:C.productId)!==t){var X,Q;C=(Q=(X=v[d.groupId])==null?void 0:X.pricingOptionIndex)!=null?Q:0;X=0;for(Q=d.pricingOptions[Symbol.iterator]();!Q.next().done;)++X;X<=C&&(C=0);X={};c(Object.assign({},v,(X[d.groupId]={productId:t,pricingOptionIndex:C},X)))}}},
onPricingOptionSelected:function(t){var d=K().get(t);if(d){t=d.groupId;var v=d.productId;d=d.index;var C=M(),X,Q;if(((X=C[t])==null?void 0:X.productId)!==v||((Q=C[t])==null?void 0:Q.pricingOptionIndex)!==d)X={},c(Object.assign({},C,(X[t]={productId:v,pricingOptionIndex:d},X)))}},
onClearGroupSelected:function(t){var d=M();d[t]&&(d=Object.fromEntries(Object.entries(d).filter(function(v){return _.a(v).next().value!==t})),c(d))}}};
ube=function(p){return function F(){var N,h,c,M;return w7D(F,function(f){switch(f.nextAddress){case 1:_.tB(f,2),N=0,h=_.a(p),c=h.next();case 4:if(c.done){f.jumpTo(2);break}M=c.value;var K=[N++,M];return _.q(f,K,7);case 7:c=h.next();f.jumpTo(4);break;case 2:_.ZC(f),_.dn(f,0)}})}()};
A8H=function(p,x){p=_.a(ube(p));for(var F=p.next();!F.done;F=p.next()){var N=_.a(F.value);F=N.next().value;N=N.next().value;if(x(N))return F}return-1};
y8k=function(p,x){p=_.a(ube(p));for(var F=p.next();!F.done;F=p.next()){var N=_.a(F.value);F=N.next().value;N=N.next().value;if(F===x)return N}};
bs8=function(p,x){var F,N;return function(){for(var h=p.map(function(M){return M()}),c=0;c<h.length;c++)if(!F||h[c]!==F[c]){F=h;
N=x.apply(null,_.se(h));break}return N}};
GZm=function(p){var x;return!!(p.productId&&p.groupId&&((x=p.pricingOptions)==null?0:x.length)&&p.pricingOptions.every(function(F){return F.pricingOptionId}))};
Vq8=function(p,x,F){return Yfe(p,bs8([x],function(N){return N.filter(GZm)}),F)};
Ww8=function(p){switch(p){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""}};
Hsc=function(p,x){return x.length===0?[p]:[p.slice(0,x[0]),p.slice(x[0])].filter(function(F){return F.length>0})};
mzX=function(p){switch(p){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""}};
oQ_=function(p,x,F,N){N=Object.assign({},N);_.Cr(N,h3,{selectedOptionId:p,primaryButtonOverride:F});_.u8().dispatch(_.KV("flowStateEntity",x,N))};
_.LwH=function(){if(!Ose){var p=_.a(_.hu(new Map,void 0,"UJImUe"));Ose=p.next().value;j9t=p.next().value}return Ose};
P08=function(p){if(p)return _.LwH()().get(p)};
_.T68=function(p,x){if(p&&x){var F=_.LwH();F().set(p,x);p=F();j9t(new Map(p))}};
_.B6c=function(p){return{onSubmit:function(){var x;(x=P08(p()))==null||x.onSubmit()},
isValid:function(){var x=P08(p());return x?x.isValid():!0},
isSubmitting:function(){var x,F;return!!((x=P08(p()))==null?0:(F=x.isSubmitting)==null?0:F.call(x))}}};
Rye=function(p,x){return _.M4(p.entities,"contextNoteFeedEntityPayload",x)};
kZa=function(p){p.style.height="auto";p.style.height=p.scrollHeight+"px"};
Uzm=function(p){return[p.syncStep,p.asyncStep].filter(function(x){return x!==void 0})};
IIX=function(p){var x,F,N;if(p=(x=p.structuredContextNoteFormSchema)==null?void 0:(F=x.fieldSchemas)==null?void 0:(N=F.noteBody)==null?void 0:N.validationSchema)for(x=_.a(Uzm(p)),F=x.next();!F.done;F=x.next()){F=F.value.rules;if(!F)break;F=_.a(F);for(F=F.next();!F.done;F=F.next())return _.r(F.value,_.isH)}};
eya=function(p){if(p){p=_.a(Uzm(p));for(var x=p.next();!x.done;x=p.next()){x=x.value.rules;if(!x)break;x=_.a(x);for(x=x.next();!x.done;x=x.next())return _.r(x.value,$z_)}}};
xt8=function(p){if(p){p=_.a(Uzm(p));for(var x=p.next();!x.done;x=p.next()){x=x.value.rules;if(!x)break;x=_.a(x);for(x=x.next();!x.done;x=x.next())return _.r(x.value,p5k)}}};
FT8=function(p){p=/^https?:\/\//.test(p)?p:"http://"+p;try{var x=_.G4(p)}catch(F){return!1}if(x.toString()!==p)return!1;p=x.JSC$7886_domain_.split(".");return p.length>1&&p.every(function(F){return!!F})};
NHt=function(p,x,F,N){var h;N=(h=N.structuredContextNoteData)==null?void 0:h.createCommentEndpoint;if(h=_.r(N,_.$oZ))return h.commentText=_.L1(p),h.videoPositionMention=x,h.sources=F,N};
hhX=function(p){return p==null?void 0:p.stringValue};
cG8=function(p,x,F){p=p.map(function(N,h){return{listItemViewModel:{title:N.title,subtitle:N.subtitle,leadingImage:N.leadingImage,trailingImage:h===x?lxa:void 0,rendererContext:{commandContext:{onTap:N.onTap}}}}});
return Object.assign({},F&&{header:{panelHeaderViewModel:{title:F}}},{content:{listViewModel:{listItems:p}}})};
axa=function(p,x){if(p&&x)switch(x){case "SELECTION_TYPE_BOOL":return p.boolValue;case "SELECTION_TYPE_INT":return p.intValue;case "SELECTION_TYPE_STRING":return p.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return p.privacyStatusValue}};
Mze=function(p){var x;p=(x=p.options)==null?void 0:x.findIndex(function(F){return F.isSelected});
return p===void 0?-1:p};
Dtt=function(p,x,F){var N=function(){return p().label},h={},c=_.$L("ytDropdownViewModelLabel",(h.ytDropdownViewModelLabelError=x,h));
return _.Z(_.D9,{cond:function(){var M;if(M=p().label)M=!(F()===-1&&p().label&&!p().placeholderText);return M},
then:function(){return _.Z("div",{class:c},_.Z(_.KQ,{text:N}))}})};
fxc=function(p,x){var F={};F=_.$L("ytDropdownViewModelTitle",(F.ytDropdownViewModelTitlePlaceholder=function(){return x()===-1},F));
return _.Z("div",{class:F},_.Z(_.KQ,{text:function(){var N=p();var h=x();if(h===-1)N=N.placeholderText?N.placeholderText:N.label;else{var c,M;N=(c=N.options)==null?void 0:(M=c[h])==null?void 0:M.title}return N}}))};
KTH=function(p,x){var F=function(){return p().hint};
return _.Z(_.TG,null,_.Z(_.D9,{cond:function(){return F()&&!x()},
then:function(){return _.Z("div",{class:_.$L("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.Z(_.KQ,{text:F,className:"ytDropdownViewModelSupportText"}))}}),_.Z(_.D9,{cond:x,
then:function(){return _.Z("div",{id:"dropdown-view-model-error",role:"alert",class:_.$L("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.Z(_.DS,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.Z(_.KQ,{text:x,className:"ytDropdownViewModelSupportText"}))}}))};
qzc=function(p,x){var F=_.J().resolve(_.Bs8);_.J9(function(){var N=p().id;N&&F!=null&&F.dropdownMap.set(N,x)})};
tz8=function(p){p=_.r(p.scheduleButton,ZcD);p=_.r(p==null?void 0:p.primaryButton,_.X6);p=_.r(p==null?void 0:p.onTap,_.XY);var x,F,N=((F=_.r(p,_.Zx))==null?void 0:F.commands)||[p];F=_.a(N);for(p=F.next();!p.done&&!(x=_.r(p.value,_.pxI));p=F.next());var h;x=(h=x)==null?void 0:h.createBroadcastRequest;if(!x)throw Error("Gj");return x};
CAX=function(p,x,F){F=F===void 0?{}:F;var N,h;return _.D(function(c){if(N=dt8(x))return c.return(N);(h=vve(p,x,F))&&JGm(x,h);return c.return(h)})};
JGm=function(p,x){var F=Sz8(p);F&&x.then(function(N){_.J().resolve(_.h7).put(F,new _.lp({innertubeResponse:N}))})};
dt8=function(p){if(p=Sz8(p)){var x=_.J().resolve(_.h7);if(x.has(p))return x.get(p).then(function(F){return F==null?void 0:_.ai(F)})}return null};
Sz8=function(p){var x=_.r(p.endpoint,_.B7);if(x!=null&&x.videoId)return x={videoId:x.videoId},_.S("web_imp_player_mute_params")&&(x.mutedAtStart=p.startPlaybackInMutedState),_.TZ("inline_playback",x)};
vve=function(p,x,F){p=_.w5(p,x.endpoint,rG_(x,F)).then(function(N){return N});
return Promise.resolve(p)};
rG_=function(p,x){x=_.S("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!p.startPlaybackInMutedState},x):Object.assign({},{vis:5,autonav:"1"},x);var F;x={contentPlaybackContext:_.vg(x,(F=_.r(p.endpoint.commandMetadata,_.eq))==null?void 0:F.url,window.location.href)};_.S("web_imp_player_mute_params")&&(x.overrideMutedAtStart=!p.startPlaybackInMutedState);return x};
Qf8=function(p,x){var F=window.MutationObserver;F&&(lf=new F(function(N,h){N=_.a(N);for(var c=N.next();!c.done;c=N.next()){c=c.value;var M;if(M=c.type==="childList"&&c.target)a:{M=p;c=Evt(c.target);M=Evt(M);for(var f=null,K=0;K<c.length;K++)if(M.includes(c[K])){if(K===0){M=!1;break a}f=c[K];break}f?(c=X5c(c,f),M=X5c(M,f),M=c<M):M=!1}if(M){x();h.disconnect();break}}}),(F=gvk())&&lf.observe(F,{childList:!0,
subtree:!0}))};
gvk=function(){var p=document.getElementsByTagName("ytd-rich-grid-renderer");if(p.length>0)return p[0];p=document.getElementsByTagName("ytd-section-list-renderer");return p.length>0?p[0]:null};
Evt=function(p){for(var x=[];p;)x.push(p),p=p.parentElement;return x};
X5c=function(p,x){var F=Array.from(x.children);x=p.indexOf(x);return x>0?F.indexOf(p[x-1]):-1};
c1=function(p,x,F){F=F===void 0?{}:F;return _.JG(p,F,x)};
zhe=function(p){return p==null?void 0:p.filter(function(x){return x.premiereTrailerBadgeRenderer})};
yGt=function(p,x){var F="",N="";switch(p){case -1:case 0:F=x?"VOLUME_OFF":"VOLUME_OFF_FILLED";N=sf_;break;case 1:F=x?"VOLUME_UP_OUTLINE":"VOLUME_UP";N=nv_;break;default:_.Pb(p)}return{iconName:F,ariaLabel:N}};
G6_=function(p,x){var F=bcm,N=_.a(_.hu(AGc(new uJD(function(){},F,x)),void 0,"PAnyd")),h=N.next().value,c=N.next().value,M=new uJD(function(f){c(f)},F,x);
_.rx(function(){Promise.resolve().then(function(){var f,K=(f=p())!=null?f:{};M.playerControlsData=K;_.S("player_controls_skip_double_signal_old")&&(M.lastSeenPlayerApi=_.W$(K.playerApi));_.S("player_controls_skip_double_signal_old")||(M.lastSeenPlayerApi=_.W$(K.playerApi));YzH(M)});
_.E_(function(){w5m(M)})});
_.E_(function(){w5m(M)});
return function(){return h()}};
Vzm=function(p){return function(x){var F=p(),N={playerState:x};if(x===1){var h;(h=F.playerApi)==null||h.loadModule("captions")}if(x===0){var c;(c=F.playerApi)==null||c.unloadModule("captions")}(x!==-1||_.S("web_imp_controls_set_player_state_killswitch"))&&F.setState(N)}};
WTc=function(p){return function(x){p().setState({playbackRate:x})}};
Hc8=function(p){return function(x){var F=p(),N=F.playerApi,h=N==null?void 0:N.getVideoData(),c=(h==null?void 0:h.isLive)||!1;h=h==null?void 0:h.video_id;c={videoDuration:c8m(N||void 0),isLive:c,videoId:h};c.videoId!==F.videoId&&(c=Object.assign({},_.t5m(N),c));if(x==null?0:x.playertype)c.playerType=x.playertype;if(N){c.captionsAvailable=!!N.getOptions("captions");x=c;var M;h=(M=N.getStoryboardLevel(N.getNumberOfStoryboardLevels()-1))==null?void 0:M.intervalMs;x.storyboardInterval=h?h/1E3:void 0;c.captionsAvailable&&
(c.captionsEnabled=xzD(N))}c.volumeMuted=!(N==null||!N.isMuted());F.setState(c)}};
mtm=function(p){return function(x){var F=p(),N=F.playerApi;if(N){var h=N.getPresentingPlayerType();x={playedTime:x||0,percentLoaded:N.getVideoLoadedFraction(),playerType:h};F.playerState===0&&(x.playedTime=F.videoDuration);F.isLive&&(h=N.getProgressState(h),x.playedTime-=h.seekableStart,x.videoDuration=c8m(N));F.playerType!==1&&delete x.playedTime;F.setState(x)}}};
ov8=function(p){return function(){var x=p(),F,N,h,c={volume:(h=(F=x.playerApi)==null?void 0:F.getVolume())!=null?h:0,volumeMuted:!((N=x.playerApi)==null||!N.isMuted())};x.setState(c)}};
OcX=function(p){return function(){var x=p(),F=x.playerApi;if(F){var N={captionsAvailable:!!F.getOptions("captions")};N.captionsAvailable&&(N.captionsEnabled=xzD(F));x.setState(N)}}};
jfk=function(p){return function(){var x=p();if(x.playerApi&&!(x.volumeMuted||x.controlsVisible&&x.isProbablyAScreenreaderUser)){x.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var F;(F=document.querySelector(".player-control-play-pause-icon"))==null||F.focus()}}};
LTX=function(p){return{appApi:Object.assign({},_.a6M(),{showCaptionsToggleToast:function(x){var F,N;(N=(F=p()).showCaptionsToggleToast)==null||N.call(F,x)},
openInMiniplayer:function(){var x,F;(F=(x=p()).openInMiniplayer)==null||F.call(x)}})}};
PA8=function(p,x){var F,N,h;return!!(p==null?0:(F=p.playerResponse)==null?0:(N=F.playerConfig)==null?0:(h=N.inlinePlaybackConfig)==null?0:h.showScrubbingControls)&&!(x==null?0:x.hideScrubbingControls)};
_.TH8=function(p){var x=!p.miniplayerIsActive;return[5,2,0].includes(p.miniplayerPlaybackState)||x};
BHc={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Rh8=function(p,x){var F,N,h,c,M;_.D(function(f){if(!x.length)return f.return([]);F=[];N=_.a(x);for(h=N.next();!h.done;h=N.next())c=h.value,(M=p.resolveIcon(c))&&!p.iconCache[M.url]&&F.push(_.l9H(p,M).then(function(){}).catch(function(){}));
return f.return(Promise.all(F))})};
k6k=function(p,x){var F=[];x=(new Set(x)).values();x=_.a(x);for(var N=x.next();!N.done;N=x.next()){N=N.value;for(var h=_.a(Object.values(BHc)),c=h.next();!c.done;c=h.next())F.push({iconName:N,iconStyle:c.value})}Rh8(p.iconManager,F)};
_.Ut8=function(p,x,F){var N=F!=null?F:p.iconsToFetch;N!=null&&N.length?x!==void 0&&x>=0?_.vZ(_.E0,function(){k6k(p,N)},x):k6k(p,N):Promise.resolve()};
w7D=function(p,x){x=new _.onk(new _.Wlp(x));_.T1&&p.prototype&&(0,_.T1)(x,p.prototype);return x};
aIH={};
uJD=function(p,x,F){var N=this;this.renderFn=p;this.listeners=x;this.context=F;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var h;this.lastSeenPlayerApi=_.W$((h=this.playerControlsData)==null?void 0:h.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.t5m(),void 0);_.S("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){AGc(N).setState({playerState:-1});N.resetRecentlyNavigatedJobId&&_.E0.cancelJob(N.resetRecentlyNavigatedJobId);N.recentlyNavigated=
!0;N.resetRecentlyNavigatedJobId=_.E0.addJob(function(){N.recentlyNavigated=!1},8,1E4)})};
uJD.prototype.setState=function(p){if(!_.S("mweb_player_skip_no_op_state_changes")||!Mq8(p,this.state))if(this.state=Object.assign({},this.state,p),!_.S("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)p=-1,_.S("player_controls_log_creation_killswitch")||Dz8()||(p=(0,_.Lf)()),_.wH("pcu_s"),_.wH("pcu_se"),_.wH("pcu_rs"),this.renderFn(AGc(this)),_.wH("pcu_re"),fI8(p),_.E0.addJob(function(){_.wH("pcu_ap")},8)};
var AGc=function(p){var x;var F=_.W$((x=p.playerControlsData)==null?void 0:x.playerApi);return Object.assign({},p.state,{setState:p.boundSetState,domMeasurements:{progressBarLineRect:p.progressBarLineRect},playerApi:F,appApi:p.context.appApi,playerContainer:p.context.playerContainer,playerControlContainer:p.context.playerControlContainer,uxConfig:p.context.uxConfig})},YzH=function(p){p.listeners.forEach(function(x){p.eventListenerCleanupFunctions.push(x.register(function(){return AGc(p)},function(){return p.getData()}))})},
w5m=function(p){p.eventListenerCleanupFunctions.forEach(function(x){x()});
p.eventListenerCleanupFunctions.length=0};
uJD.prototype.getData=function(){return this.playerControlsData};
var a5=new _.U("abuseReportFlowState");var icD=new _.U("feedbackFormFlowState");var Ix_=new _.U("inputBoxViewModel");var $t8=new _.U("flowNextStepCommand");var ehH=new _.U("flowPrevStepCommand");var piH=new _.U("updateFlowCommand");_.x4a=new _.U("flowStepRenderer");_.isH=new _.U("lengthValidationRule");var $z_=new _.U("regexValidationRule");var p5k=new _.U("selectedValidationRule");var FcX=new _.U("talkToRecsViewModel");var NbX=new _.U("creatorGoalSetUpFlowDropdownItemViewModel");var h3a=new _.U("creatorGoalSetUpFlowDropdownViewModel");_.l2a=new _.U("radioButtonGroupViewModel");var ZcD=new _.U("panelFooterViewModel");var c$8=new _.U("ypcCancelRecurrenceCommand");var a2_=new _.U("cancellationFlowState");var h3=new _.U("premiumPurchaseFlowState");var MTm=new _.U("surveyAnswerCardRenderer");var D4e=new _.U("showMoreButtonRenderer");var f2a;var Kcc,qJ_=function(){if(Kcc!==void 0)return Kcc;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;f2a===void 0&&(f2a=document.createElement("template"));var N=f2a;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return Kcc=p};var Z1a=function(){var p=_.m.apply(this,arguments)||this;p.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";p.goalDescription="";p.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";p.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";p.startButtonId="start-button";p.exampleButtonId="example-button";return p};
_.E(Z1a,_.m);_.l=Z1a.prototype;_.l.getGoalDropdownItems=function(){var p,x;return(x=_.r((p=this.data)==null?void 0:p.purchaseTargetDropdown,h3a))==null?void 0:x.dropdownItems};
_.l.getTimerDropdownItems=function(){var p,x;return(x=_.r((p=this.data)==null?void 0:p.timerDropdown,h3a))==null?void 0:x.dropdownItems};
_.l.getColorDropdownItems=function(){var p,x;return(x=_.r((p=this.data)==null?void 0:p.colorDropdown,h3a))==null?void 0:x.dropdownItems};
_.l.getDropdownItemText=function(p){var x;return(x=_.r(p,NbX))==null?void 0:x.itemLabel};
_.l.getDropdownItemValue=function(p){p=_.r(p,NbX);return(p==null?void 0:p.timeLimit)||(p==null?void 0:p.purchaseTarget)||(p==null?void 0:p.eligiblePurchaseType)};
_.l.updateFlowState=function(p){_.lA(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:p}])};
_.l.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.l.updateGoalValue=function(p){this.goal=p.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.l.onTextValueChanged=function(p){this.goalDescription=p.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.l.updateTimerValue=function(p){this.timer=p.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.l.updateTierValue=function(p){this.tier=p.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.l.getButtonViewModel=function(p){p=(p==null?void 0:p.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var x,F=_.r((x=this.data)==null?void 0:x.startGoalButton,_.X6);return Object.assign({},F,{state:p})};
_.R8.Object.defineProperties(Z1a,{template:{configurable:!0,enumerable:!0,get:function(){return qJ_()}}});
var M0=Z1a;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],M0.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],M0.prototype,"goal",void 0);_.B([_.H(),_.k("design:type",Object)],M0.prototype,"goalDescription",void 0);_.B([_.H(),_.k("design:type",Object)],M0.prototype,"timer",void 0);_.B([_.H(),_.k("design:type",Object)],M0.prototype,"tier",void 0);
_.B([_.H(),_.k("design:type",Object)],M0.prototype,"startButtonId",void 0);_.B([_.H(),_.k("design:type",Object)],M0.prototype,"exampleButtonId",void 0);M0=_.B([_.JZ({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],M0);_.P(M0,"yt-creator-goal-set-up-flow-view-model",function(){return qJ_()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var tTk;var d4c;var vO_;var J$H=function(){return _.m.apply(this,arguments)||this};
_.E(J$H,_.m);var CPk=J$H;_.B([_.H(),_.k("design:type",Object)],CPk.prototype,"data",void 0);CPk=_.B([_.JZ({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],CPk);
_.P(CPk,"yt-survey-answer-card-renderer",function(){if(vO_===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;d4c===void 0&&(d4c=document.createElement("template"));var N=d4c;F.call(x,N.content.cloneNode(!0),p.content.firstChild);vO_=p}p=vO_;return p},{mode:2});var SJH;var r$m;var EOc=function(){return _.m.apply(this,arguments)||this};
_.E(EOc,_.m);_.l=EOc.prototype;_.l.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.l.selectedItemChanged=function(p){_.lA(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[p.feedbackToken||""]}])};
_.l.surveyAnswerCardRendererClicked=function(p){if(p.target&&_.r(p.model.item,MTm)){var x=p.target;p=_.r(p.model.item,MTm);p.onTapCommand?_.Kc(x,[p.onTapCommand],x):this.data.onTapCommand&&_.Kc(x,[this.data.onTapCommand],x);this.selectedItemChanged(p)}};
_.l.checkIsCancellationStyle=function(p){return p==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.l.updateSelectedItemFromBinding=function(p){this.selectedItem=p.detail.value};
var Da=EOc;Da.prototype.onSelectedItemChanged=Da.prototype.onSelectedItemChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Da.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Da.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Da.prototype,"selectedItem",void 0);_.B([_.H({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Da.prototype,"isCancellationStyle",void 0);
_.B([_.W("selectedItem"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Da.prototype,"onSelectedItemChanged",null);Da=_.B([_.JZ({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],Da);
_.P(Da,"yt-survey-flow-step-renderer",function(){if(r$m===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;SJH===void 0&&(SJH=document.createElement("template"));var N=SJH;F.call(x,N.content.cloneNode(!0),p.content.firstChild);r$m=p}p=r$m;return p},{mode:2});var Xie=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return p};
_.E(Xie,_.m);Xie.prototype.handleSurveyFlowStepOptionChanged=function(p){this.ytdReduxBehavior.dispatch(_.F4({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:p}));_.lA(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:p}}])};
var fu=Xie;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],fu.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],fu.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],fu.prototype,"data",void 0);fu=_.B([_.L({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],fu);
_.P(fu,"ytd-survey-flow-step-renderer",function(){if(tTk!==void 0)return tTk;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return tTk=p},{mode:1});var Kwk;Kwk=_.JR({avatarViewModel:_.zu,buttonViewModel:_.nV,subscribeButtonViewModel:_.Bhj,imageBannerViewModel:_.Jzt});_.gOt=_.xp(_.ZsD);_.iK(_.ZsD);var Qua;var z38=function(){return _.m.apply(this,arguments)||this};
_.E(z38,_.m);var Ku=z38;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Ku.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ku.prototype,"data",void 0);Ku=_.B([_.L({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],Ku);
_.P(Ku,"ytd-channel-history-renderer",function(){if(Qua!==void 0)return Qua;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Qua=p},{mode:1});var sut;var nO8=function(){return _.m.apply(this,arguments)||this};
_.E(nO8,_.m);var y$a=nO8;_.B([_.H(),_.k("design:type",Object)],y$a.prototype,"data",void 0);y$a=_.B([_.L({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],y$a);
_.P(y$a,"ytd-feature-enablement-info-renderer",function(){if(sut!==void 0)return sut;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return sut=p},{mode:1});var b1X;var A$H;var u4X=function(){var p=_.m.apply(this,arguments)||this;p.textBoxMaxLength=_.S("enable_tvod_campaign_code_integration")?15:12;return p};
_.E(u4X,_.m);_.l=u4X.prototype;_.l.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.l.onSubmit=function(){var p=this.data.serviceEndpoint,x=_.r(p,_.aI);x&&(x.couponCode=this.userInput,_.fc(this.hostElement,[p]))};
_.l.validate=function(){var p=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=p&&!this.data.errorMessage;this.showErrorMessage=p&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.S("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.l.computeStyle=function(p){return p};
_.l.computeShowValidationBelowInput=function(p){return p!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.l.updateUserInputFromBinding=function(p){this.userInput=p.currentTarget.value};
_.l.updateShowErrorMessageFromBinding=function(p){this.showErrorMessage=p.detail.value};
_.R8.Object.defineProperties(u4X.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
var q0=u4X;q0.prototype.dataChanged=q0.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],q0.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],q0.prototype,"data",void 0);_.B([_.H(),_.k("design:type",String)],q0.prototype,"userInput",void 0);_.B([_.H(),_.k("design:type",Boolean)],q0.prototype,"disableApplyButton",void 0);_.B([_.H(),_.k("design:type",Boolean)],q0.prototype,"hideApplyButton",void 0);
_.B([_.H(),_.k("design:type",Boolean)],q0.prototype,"hideErrorMessage",void 0);_.B([_.H(),_.k("design:type",Boolean)],q0.prototype,"showTick",void 0);_.B([_.H(),_.k("design:type",Boolean)],q0.prototype,"showErrorMessage",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.k("design:type",String)],q0.prototype,"couponStyle",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.k("design:type",Boolean)],q0.prototype,"showValidationBelowInput",void 0);_.B([_.H(),_.k("design:type",Object)],q0.prototype,"textBoxMaxLength",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q0.prototype,"dataChanged",null);
_.B([_.w("showTick","showErrorMessage","userInput"),_.k("design:type",String),_.k("design:paramtypes",[])],q0.prototype,"validationState",null);q0=_.B([_.L({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],q0);
_.P(q0,"ytd-ypc-coupon-renderer",function(){if(A$H!==void 0)return A$H;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return A$H=p},{mode:1});var YJX=function(){return _.m.apply(this,arguments)||this};
_.E(YJX,_.m);YJX.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"}}}};
YJX.prototype.computeStyle=function(p){return p};
var Za=YJX;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Za.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Za.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Za.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.k("design:type",String)],Za.prototype,"buttonStyle",void 0);
Za=_.B([_.L({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],Za);
_.P(Za,"ytd-flow-bottom-bar-renderer",function(){if(b1X!==void 0)return b1X;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return b1X=p},{mode:1});var wi_;var GtH;var VTt;var WcD=function(){return _.m.apply(this,arguments)||this};
_.E(WcD,_.m);WcD.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
WcD.prototype.focus=function(p){this.title&&_.Hu(this.title,p)};
var t3=WcD;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],t3.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],t3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],t3.prototype,"data",void 0);_.B([_.Ff("#title"),_.k("design:type",HTMLElement)],t3.prototype,"title",void 0);t3=_.B([_.L({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],t3);
_.P(t3,"ytd-flow-top-bar-renderer",function(){if(VTt!==void 0)return VTt;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return VTt=p},{mode:1});var H1t;var m4H;var oOm;var dh=function(){return _.m.apply(this,arguments)||this};
_.E(dh,_.m);dh.prototype.freeTextValueChanged=function(){_.lA(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
dh.prototype.updateFreeTextValueFromBinding=function(p){this.freeTextValue=p.detail.value};
_.R8.Object.defineProperties(dh.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var p,x,F=(x=(p=this.data)==null?void 0:p.responseMaxLength)!=null?x:500,N;return((N=this.freeTextValue)!=null?N:"").length>=F?"maxed-out":""}}});
var v1=dh;v1.prototype.freeTextValueChanged=v1.prototype.freeTextValueChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],v1.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],v1.prototype,"data",void 0);_.B([_.H(),_.k("design:type",String)],v1.prototype,"freeTextValue",void 0);_.B([_.Ff("#user-input"),_.k("design:type",HTMLTextAreaElement)],v1.prototype,"input",void 0);
_.B([_.w("freeTextValue"),_.k("design:type",Object),_.k("design:paramtypes",[])],v1.prototype,"characterLimitClass",null);_.B([_.W("freeTextValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],v1.prototype,"freeTextValueChanged",null);v1=_.B([_.JZ({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],v1);
_.P(v1,"yt-free-text-input-flow-step-renderer",function(){if(oOm===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;m4H===void 0&&(m4H=document.createElement("template"));var N=m4H;F.call(x,N.content.cloneNode(!0),p.content.firstChild);oOm=p}p=oOm;return p},{mode:2});var O1e=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return p};
_.E(O1e,_.m);O1e.prototype.handleFreeTextFlowStepInputChanged=function(p){_.lA(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:p}}])};
var J3=O1e;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],J3.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],J3.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],J3.prototype,"data",void 0);J3=_.B([_.L({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],J3);
_.P(J3,"ytd-free-text-input-flow-step-renderer",function(){if(H1t!==void 0)return H1t;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return H1t=p},{mode:1});var jum;var Lc8;var PP8=function(){return _.m.apply(this,arguments)||this};
_.E(PP8,_.m);var TbH=PP8;_.B([_.H(),_.k("design:type",Object)],TbH.prototype,"data",void 0);TbH=_.B([_.L({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],TbH);
_.P(TbH,"ytd-metadata-line-renderer",function(){if(Lc8!==void 0)return Lc8;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Lc8=p},{mode:1});var Bbc=function(){return _.m.apply(this,arguments)||this};
_.E(Bbc,_.m);Bbc.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
var Cu=Bbc;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Cu.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Cu.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Cu.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Cu.prototype,"isMasthead",void 0);Cu=_.B([_.L({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],Cu);
_.P(Cu,"ytd-media-product-renderer",function(){if(jum!==void 0)return jum;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return jum=p},{mode:1});var R3X;var ktH=function(){return _.m.apply(this,arguments)||this};
_.E(ktH,_.m);ktH.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
ktH.prototype.onBillboardImageLoaded=function(){_.hG(this.hostElement,"yt-refit")};
var Sy=ktH;Sy.prototype.onBillboardImageLoaded=Sy.prototype.onBillboardImageLoaded;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Sy.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Sy.prototype,"data",void 0);_.B([_.Ff("#billboardImage"),_.k("design:type",Object)],Sy.prototype,"billboardImage",void 0);_.B([_.V("yt-img-shadow-loaded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sy.prototype,"onBillboardImageLoaded",null);
Sy=_.B([_.L({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Sy);
_.P(Sy,"ytd-billboard-masthead-renderer",function(){if(R3X!==void 0)return R3X;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return R3X=p},{mode:1});var U4m;var i1e=function(){var p=_.m.apply(this,arguments)||this;p.smallSize=!1;return p};
_.E(i1e,_.m);var rh=i1e;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],rh.prototype,"ytComponentBehaviorType",void 0);_.B([_.H(),_.k("design:type",Object)],rh.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],rh.prototype,"smallSize",void 0);rh=_.B([_.L({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],rh);
_.P(rh,"ytd-bullet-formatted-string",function(){if(U4m!==void 0)return U4m;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return U4m=p},{mode:1});var I2H;var $4H=function(){return _.m.apply(this,arguments)||this};
_.E($4H,_.m);$4H.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
var E3=$4H;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],E3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],E3.prototype,"data",void 0);E3=_.B([_.L({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],E3);
_.P(E3,"ytd-offer-detail-renderer",function(){if(I2H!==void 0)return I2H;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return I2H=p},{mode:1});var e3D;var pgt=function(){return _.m.apply(this,arguments)||this};
_.E(pgt,_.m);pgt.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerDetailRenderer:"ytd-offer-detail-renderer"}}}};
var gh=pgt;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],gh.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],gh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],gh.prototype,"data",void 0);gh=_.B([_.L({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],gh);
_.P(gh,"ytd-offer-detail-step-renderer",function(){if(e3D!==void 0)return e3D;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return e3D=p},{mode:1});var xBc;var F9H=function(){var p=_.m.apply(this,arguments)||this;p.isInOfferModule=!1;return p};
_.E(F9H,_.m);_.l=F9H.prototype;_.l.computeHasEndpoint=function(){var p;return!((p=this.data)==null||!p.onClickCommand)};
_.l.dataChanged=function(){var p;if((p=this.data)==null?0:p.onClickCommand)this.hostElement.addEventListener("click",this.handleClickEvent),this.hostElement.addEventListener("keydown",this.onContentKeyDown),this.hostElement.addEventListener("keyup",this.onContentKeyUp),this.hostElement.setAttribute("tabindex","0"),this.hostElement.setAttribute("role","link")};
_.l.detached=function(){var p;if((p=this.data)==null?0:p.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.l.handleClickEvent=function(){var p;if((p=this.data)==null?0:p.onClickCommand){var x;this.componentBehavior.resolveCommand((x=this.data)==null?void 0:x.onClickCommand)}};
_.l.onContentKeyDown=function(p){p.key==="Enter"?this.handleClickEvent(p):p.key===" "&&p.preventDefault()};
_.l.onContentKeyUp=function(p){p.key===" "&&this.handleClickEvent(p)};
var Qn=F9H;Qn.prototype.dataChanged=Qn.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Qn.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Qn.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Qn.prototype,"data",void 0);_.B([_.H({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Qn.prototype,"hasEndpoint",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Qn.prototype,"isInOfferModule",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qn.prototype,"dataChanged",null);Qn=_.B([_.L({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Qn);
_.P(Qn,"ytd-channel-masthead-renderer",function(){if(xBc!==void 0)return xBc;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return xBc=p},{mode:1});var NXc;var h9_=function(){var p=_.m.apply(this,arguments)||this;p.thumbnailObjectFit="CONTAIN";p.thumbnailObjectPosition="LEFT";p.isExpanded=!1;return p};
_.E(h9_,_.m);_.l=h9_.prototype;_.l.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.l.dataChanged=function(){this.resetStates()};
_.l.computeisTapOnOfferInfoContainerEnabled=function(){var p;return((p=this.data)==null?void 0:p.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.l.onExpandBtnClick=function(){var p,x=_.r((p=this.data)==null?void 0:p.showMoreButtonRenderer,D4e);x&&_.cj(_.cl(),x.trackingParams);this.isExpanded=!this.isExpanded};
_.l.onOfferInfoClick=function(p){this.isTapOnOfferInfoContainerEnabled&&(_.mx(_.m9(p)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.o4(_.m9(p)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.l.onBottomBarClick=function(){this.executeTapCommand()};
_.l.executeTapCommand=function(){var p,x=(p=this.data)==null?void 0:p.tapCommand;x&&this.ytComponentBehavior.resolveCommand(x)};
_.l.resetStates=function(){this.isExpanded=!1};
_.R8.Object.defineProperties(h9_.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var p=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),x,F,N;return((x=this.data)==null?void 0:x.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&p&&!!((F=this.data)==null?0:(N=F.benefits)==null?0:N.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return((x=_.r((p=this.data)==null?void 0:p.showMoreButtonRenderer,D4e))==null?void 0:x.showMoreButtonTitle)||((F=this.data)==null?void 0:F.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return((x=_.r((p=this.data)==null?void 0:p.showMoreButtonRenderer,D4e))==null?void 0:x.showLessButtonTitle)||((F=this.data)==null?void 0:F.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var p;return(p=this.showLessButtonTitle)!=null?p:""}var x;return(x=this.showMoreButtonTitle)!=null?x:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return((p=this.data)==null?void 0:p.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((x=this.data)==null?0:x.footerTitle)||((F=this.data)==null?0:F.footerSubtitle))}}});
var zf=h9_;zf.prototype.dataChanged=zf.prototype.dataChanged;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],zf.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],zf.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",String)],zf.prototype,"thumbnailObjectFit",void 0);
_.B([_.H(),_.k("design:type",String)],zf.prototype,"thumbnailObjectPosition",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.k("design:type",Boolean)],zf.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.B([_.H(),_.k("design:type",Object)],zf.prototype,"isExpanded",void 0);_.B([_.H(),_.k("design:type",Object)],zf.prototype,"data",void 0);_.B([_.H({computed:"computeIcon_(data.footerIcon)"}),_.k("design:type",String)],zf.prototype,"icon",void 0);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zf.prototype,"dataChanged",null);_.B([_.w("data.thumbnail"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],zf.prototype,"hasThumbnail",null);_.B([_.w("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],zf.prototype,"enableExpandButton",null);
_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],zf.prototype,"enableOfferContentIcon",null);_.B([_.w("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.k("design:type",Object),_.k("design:paramtypes",[])],zf.prototype,"showMoreButtonTitle",null);_.B([_.w("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.k("design:type",Object),_.k("design:paramtypes",[])],zf.prototype,"showLessButtonTitle",null);
_.B([_.w("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.k("design:type",String),_.k("design:paramtypes",[])],zf.prototype,"expandedBtnText",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],zf.prototype,"enableBottomBar",null);zf=_.B([_.L({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],zf);
_.P(zf,"ytd-offer-card-renderer",function(){if(NXc!==void 0)return NXc;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return NXc=p},{mode:1});var lu8;var cFH=function(){return _.m.apply(this,arguments)||this};
_.E(cFH,_.m);cFH.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"}}}};
cFH.prototype.onClick=function(p){if(!_.mx(p.composedPath()||[],this.hostElement,["A".toString()])){var x,F;if((p=(F=_.r((x=this.data)==null?void 0:x.actionButton,_.AS))==null?void 0:F.command)&&!this.ytComponentBehavior.resolveCommand(p)){var N;(N=_.cl())==null||N.clickCommand(p);_.fc(this.hostElement,[p])}}};
var s3=cFH;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],s3.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],s3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],s3.prototype,"data",void 0);s3=_.B([_.L({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],s3);
_.P(s3,"ytd-offer-content-renderer",function(){if(lu8!==void 0)return lu8;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return lu8=p},{mode:1});var auH;var MVc=function(){return _.m.apply(this,arguments)||this};
_.E(MVc,_.m);MVc.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.R8.Object.defineProperties(MVc.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var p,x;return!((p=this.data)==null||!p.title)||!((x=this.data)==null||!x.description)}}});
var nu=MVc;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],nu.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],nu.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],nu.prototype,"data",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],nu.prototype,"hasHeaderData",null);nu=_.B([_.L({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],nu);
_.P(nu,"ytd-offer-section-renderer",function(){if(auH!==void 0)return auH;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return auH=p},{mode:1});var DBH;var fu_=function(){return _.m.apply(this,arguments)||this};
_.E(fu_,_.m);
fu_.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",channelMastheadRenderer:"ytd-channel-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.coupon":{id:"coupon-section",mapping:{cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.terms":{id:"terms-section",
mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"}}}}};
var yn=fu_;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],yn.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],yn.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],yn.prototype,"data",void 0);yn=_.B([_.L({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],yn);
_.P(yn,"ytd-offer-selection-step-renderer",function(){if(DBH!==void 0)return DBH;var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return DBH=p},{mode:1});var K9D;var qbt=function(){return _.m.apply(this,arguments)||this};
_.E(qbt,_.m);qbt.prototype.computeStyle=function(p){return p};
qbt.prototype.computeImageWidth=function(p){return p==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
var bf=qbt;_.B([_.H({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.k("design:type",String)],bf.prototype,"containerStyle",void 0);_.B([_.H({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.k("design:type",String)],bf.prototype,"imageWidth",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],bf.prototype,"ytRendererBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],bf.prototype,"data",void 0);bf=_.B([_.L({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],bf);
_.P(bf,"ytd-confirmation-masthead-renderer",function(){if(K9D!==void 0)return K9D;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return K9D=p},{mode:1});var ZRm;var tV8=function(){return _.m.apply(this,arguments)||this};
_.E(tV8,_.m);tV8.prototype.computeStyle=function(p){return p};
var A3=tV8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],A3.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],A3.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.k("design:type",String)],A3.prototype,"containerStyle",void 0);A3=_.B([_.L({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],A3);
_.P(A3,"ytd-purchase-complete-detail-renderer",function(){if(ZRm!==void 0)return ZRm;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return ZRm=p},{mode:1});var dBc;var uf=function(){var p=_.m.apply(this,arguments)||this;p.scriptsAppended=!1;return p};
_.E(uf,_.m);uf.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"}}}};
uf.prototype.onDataChanged=function(){var p=this.get("data.gtmId");p&&(_.tA(p,_.sd("GL","")),this.setupConversionTracking())};
uf.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var p=document.createElement("noscript");p.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(p);this.scriptsAppended=!0}};
var YW=uf;YW.prototype.onDataChanged=YW.prototype.onDataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],YW.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],YW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],YW.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],YW.prototype,"scriptsAppended",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],YW.prototype,"onDataChanged",null);YW=_.B([_.L({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],YW);
_.P(YW,"ytd-purchase-complete-step-renderer",function(){if(dBc!==void 0)return dBc;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return dBc=p},{mode:1});var vsa;var JFH=function(){var p=_.m.apply(this,arguments)||this;p.darkerDarkTheme=_.S("web_darker_dark_theme");return p};
_.E(JFH,_.m);JFH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var wh=JFH;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],wh.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],wh.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],wh.prototype,"darkerDarkTheme",void 0);wh=_.B([_.L({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],wh);
_.P(wh,"ytd-ypc-transaction-error-message-renderer",function(){if(vsa!==void 0)return vsa;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return vsa=p},{mode:1});var CXc;var Sb8;var Gf=function(){var p=_.m.apply(this,arguments)||this;p.handlePhoneVerificationSuccess=function(x){if(p.isValidPhoneVerificationCompletionMessageEvent(x)){var F;((F=p.data)==null?0:F.nextStepCommand)&&p.ytComponentBehavior.resolveCommand(p.data.nextStepCommand)}};
return p};
_.E(Gf,_.m);Gf.prototype.isValidPhoneVerificationCompletionMessageEvent=function(p){if(p.data!=="yt-phone-verification-complete")return!1;p=_.oD(p.origin);return p!==null&&p.includes("youtube.com")};
Gf.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Gf.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
var Vn=Gf;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Vn.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Vn.prototype,"data",void 0);Vn=_.B([_.JZ({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Vn);
_.P(Vn,"yt-feature-enablement-soft-entry-renderer",function(){if(Sb8===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;CXc===void 0&&(CXc=document.createElement("template"));var N=CXc;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Sb8=p}p=Sb8;return p},{mode:1});var rF8;var EsH;var Xgc;var gsm;var Qsm=function(){return _.m.apply(this,arguments)||this};
_.E(Qsm,_.m);var z9c=Qsm;_.B([_.H(),_.k("design:type",Object)],z9c.prototype,"data",void 0);z9c=_.B([_.JZ({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],z9c);
_.P(z9c,"yt-benefits-item-renderer",function(){if(gsm===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Xgc===void 0&&(Xgc=document.createElement("template"));var N=Xgc;F.call(x,N.content.cloneNode(!0),p.content.firstChild);gsm=p}p=gsm;return p},{mode:2});var sst;var nsX;var yFH=function(){return _.m.apply(this,arguments)||this};
_.E(yFH,_.m);yFH.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
yFH.prototype.computeisWithoutPadding=function(){var p;return((p=this.data)==null?void 0:p.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
var W1=yFH;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],W1.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],W1.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.k("design:type",Boolean)],W1.prototype,"isWithoutPadding",void 0);W1=_.B([_.JZ({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],W1);
_.P(W1,"yt-benefits-section-renderer",function(){if(nsX===void 0){var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;sst===void 0&&(sst=document.createElement("template"));var N=sst;F.call(x,N.content.cloneNode(!0),p.content.firstChild);nsX=p}p=nsX;return p},{mode:2});var bRk=function(){return _.m.apply(this,arguments)||this};
_.E(bRk,_.m);bRk.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
bRk.prototype.computeisUsingLargeWidth=function(){var p;return((p=this.data)==null?void 0:p.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
var H1=bRk;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],H1.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],H1.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.k("design:type",Boolean)],H1.prototype,"isUsingLargeWidth",void 0);H1=_.B([_.JZ({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],H1);
_.P(H1,"yt-benefits-flow-step-renderer",function(){if(EsH===void 0){var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;rF8===void 0&&(rF8=document.createElement("template"));var N=rF8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);EsH=p}p=EsH;return p},{mode:2});var AFH;var uTe;var Yb_=function(){return _.m.apply(this,arguments)||this};
_.E(Yb_,_.m);Yb_.prototype.checkIsUsingLargeWidth=function(){var p;return((p=this.data)==null?void 0:p.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
var m1=Yb_;_.B([_.H(),_.k("design:type",Object)],m1.prototype,"data",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],m1.prototype,"ytRendererBehavior",void 0);_.B([_.H({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.k("design:type",Boolean)],m1.prototype,"isUsingLargeWidth",void 0);m1=_.B([_.JZ({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],m1);
_.P(m1,"yt-confirmation-flow-step-renderer",function(){if(uTe===void 0){var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;AFH===void 0&&(AFH=document.createElement("template"));var N=AFH;F.call(x,N.content.cloneNode(!0),p.content.firstChild);uTe=p}p=uTe;return p},{mode:2});var wg8;var GFt;var VVc=function(){return _.m.apply(this,arguments)||this};
_.E(VVc,_.m);var W9H=VVc;_.B([_.H(),_.k("design:type",Object)],W9H.prototype,"data",void 0);W9H=_.B([_.JZ({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],W9H);
_.P(W9H,"yt-info-flow-step-renderer",function(){if(GFt===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;wg8===void 0&&(wg8=document.createElement("template"));var N=wg8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);GFt=p}p=GFt;return p},{mode:2});var HRD;var mBX;var ose=function(){return _.m.apply(this,arguments)||this};
_.E(ose,_.m);var ORH=ose;_.B([_.H(),_.k("design:type",Object)],ORH.prototype,"data",void 0);ORH=_.B([_.JZ({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],ORH);
_.P(ORH,"yt-info-list-flow-step-renderer",function(){if(mBX===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;HRD===void 0&&(HRD=document.createElement("template"));var N=HRD;F.call(x,N.content.cloneNode(!0),p.content.firstChild);mBX=p}p=mBX;return p},{mode:2});var jsH=_.mO(function(p){var x=p.data;return _.Z("styled-text-view-model",{class:_.$L("ytStyledTextViewModelHost",function(){return s9t(x().fontAttributes)},function(){return zy8(x().color)})},_.Z(_.KQ,{text:function(){return x().text},
ariaLabel:function(){var F,N,h;return(h=(F=x().accessibility)==null?void 0:(N=F.accessibilityData)==null?void 0:N.label)!=null?h:""}}))},"xe");
jsH.idomCompat=!0;var L9m=_.mO(function(p){var x=function(){var h,c,M,f;return(f=(M=(h=p.alt)==null?void 0:h.call(p))!=null?M:(c=p.data().accessibilityData)==null?void 0:c.label)!=null?f:""},F=function(){return p.data().imageWidth},N=function(){return p.data().imageHeight};
return _.Z("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.Z(_.D9,{cond:function(){var h=p.data();if(h){var c,M,f;var K=((c=_.J().resolve(_.Bw(_.AD)))==null?0:c())?(M=h.imageDark)!=null?M:h.imageLight:(f=h.imageLight)!=null?f:h.imageDark}else K=void 0;return K},
then:function(h){return _.Z(_.VE,Object.assign({},p,{data:h,alt:x,targetWidth:F,targetHeight:N,preserveHeight:!0,preserveWidth:!0}))}}))},"ye");
L9m.idomCompat=!0;var o5=_.mO(function(p){var x=p.data;p=_.GD(function(){return x().slots},[]);
var F=_.GD(function(){return x().layoutProperties},{}),N=_.J().resolve(_.YL);
return _.Z("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:r88(F,N)},_.Z(_.ft,{each:p,keyBy:"INDEX"},function(h){return _.Z("div",{class:"ytContainerLayoutViewModelSlot",style:r88(function(){return h().layoutProperties},N)},_.Z(_.Es,{data:function(){return h().contents}},{containerLayoutViewModel:o5,
badgeViewModel:_.M5,buttonViewModel:_.nV,styledTextViewModel:jsH,contentPreviewImageViewModel:function(c){return _.Z(_.DF,{data:c.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(c){return _.Z(L9m,{data:c.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"ze");
o5.idomCompat=!0;var PXk=_.mO(function(p){var x=p.data;var F=p.stateFns;var N=function(){var t=x(),d=t.productId;return!(!t.clearGroupId&&!d)},h=function(){var t=x(),d=t.clearGroupId;
return(t=t.productId)?F().isProductSelected(t):d?F().getSelectedProductByGroupId(d)==null:!1},c=function(){var t=x(),d=t.clearGroupId;
if(t=t.productId)F().onProductSelected(t);else if(d)F().onClearGroupSelected(d)},M=function(){var t=x(),d=t.clearGroupId;
if(t=t.productId){var v;return"group:"+(((v=F().getProductById(t))==null?void 0:v.groupId)||"")}return d?"group:"+d:""},f=_.GD(function(){return x().header},[]),K=_.GD(function(){return x().body},[]);
return _.Z("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.Z(_.D9,{cond:function(){return f().length>0||N()},
then:function(){return _.Z("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.Z("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.Z(_.Es,{data:f},{containerLayoutViewModel:function(t){return _.Z("div",{class:"ytPdpCardSectionViewModelContentItem"},_.Z(o5,{data:t.data}))},
styledTextViewModel:function(t){return _.Z("div",{class:"ytPdpCardSectionViewModelContentItem"},_.Z(jsH,{data:t.data}))}})),_.Z(_.D9,{cond:N,
then:function(){return _.Z("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.Z(_.oDm,{checked:h,name:M,onChange:c}))}}))}}),_.Z(_.D9,{cond:function(){return K().length>0},
then:function(){return _.Z("div",null,_.Z(_.Es,{data:K},{containerLayoutViewModel:function(t){return _.Z("div",{class:"ytPdpCardSectionViewModelContentItem"},_.Z(o5,{data:t.data}))}}))}}))},"Ae");
PXk.idomCompat=!0;var TX8=_.mO(function(p){var x=p.data;var F=p.stateFns;return _.Z("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.Z(_.D9,{cond:function(){return x().banner},
then:function(N){return _.Z("div",{class:"ytPdpCardViewModelBanner"},_.Z(_.KQ,{text:N}))}}),_.Z(_.Es,{data:function(){return x().sections}},{pdpCardSectionViewModel:function(N){N=N.data;
var h={};return _.Z("div",{class:_.$L("ytPdpCardViewModelSectionContainer",(h.ytPdpCardViewModelShowDividers=function(){return x().showDividers},h))},_.Z(PXk,{data:N,
stateFns:F}))}}))},"Be");
TX8.idomCompat=!0;var BX8=_.mO(function(p){var x=p.data;var F=p.isOverlay;p={};return _.Z("pdp-masthead-view-model",{class:_.$L("ytPdpMastheadViewModelHost",(p.ytPdpMastheadViewModelIsOverlay=F,p))},_.Z(_.Es,{data:function(){return x().image}},{contentPreviewImageViewModel:_.DF,
themedImageViewModel:function(N){return _.Z(L9m,{data:N.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.Z(_.D9,{cond:function(){return x().title},
then:function(N){return _.Z("h1",{class:"ytPdpMastheadViewModelHeading"},_.Z(_.KQ,{text:N,isOverlay:F}))}}),_.Z(_.ft,{each:function(){var N;
return(N=x().finePrint)!=null?N:[]}},function(N){return _.Z("div",{class:"ytPdpMastheadViewModelFinePrint"},_.Z(_.KQ,{text:N,
isOverlay:F}))}))},"Ce");
BX8.idomCompat=!0;var R98=_.mO(function(p){var x=p.data;var F=p.stateFns;return _.Z("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.Z(_.ft,{each:function(){var N=F().getSelectedPricingOptions().map(function(c){return c.pricingOptionId}),h=F().getSelectedProductByGroupId(_.wl(x().groupId));
return h?h.pricingOptions.map(function(c){return{pricingOption:c,isSelected:N.includes(c.pricingOptionId)}}):(_.s$(Error("Fj`"+_.wl(x().groupId))),[])},
keyBy:"INDEX"},function(N){return _.Z("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.Z("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.Z(_.Es,{data:function(){return N().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:o5})),_.Z("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.Z(_.oDm,{checked:function(){return N().isSelected},
onClick:function(){F().onPricingOptionSelected(N().pricingOption.pricingOptionId)}})))}))},"De");
R98.idomCompat=!0;var kFk=_.mO(function(p){var x=p.data;var F=p.stateFns;return _.Z("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.Z(_.Es,{data:function(){var N,h;return(h=(N=F().getSelectedPricingOptions()[0])==null?void 0:N.primaryButton)!=null?h:x().emptyStateButton}},{buttonViewModel:_.nV}))},"Ee");
kFk.idomCompat=!0;var UBX=_.mO(function(p){var x=p.stateFns;return _.Z("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.Z(_.Es,{data:function(){return x().getSelectedPricingOptions().flatMap(function(F){return F.summaryLines}).filter(function(F){return!!F})}},{containerLayoutViewModel:function(F){return _.Z("div",{class:"ytPdpSummaryViewModelLineItem"},_.Z(o5,{data:F.data}))}}))},"Fe");
UBX.idomCompat=!0;var iRH=_.mO(function(p){var x=p.data;p={};return _.Z("divider-view-model",{class:_.$L("divider-view-model-wiz",(p["divider-view-model-wiz__inset-thin-padding"]=function(){return x().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},p))},_.Z("div",{class:_.$L("divider-view-model-wiz__base-divider",function(){return Ww8(x().dividerStyle)}),
style:_.a4({"background-color":function(){return x().backgroundColor?_.gX(x().backgroundColor):void 0}})}))},"Ge");
iRH.idomCompat=!0;var Iut=_.mO(function(p){function x(A){var Y=M();_.wo(_.z7("pdpStateEntity",Y,{key:Y,selectedPricingOptions:A}))}
var F=p.data;var N=p.internalScrolling;var h=p.stateFnsForTesting;var c=_.GD(function(){return F().allProducts},[]),M=_.GD(function(){return F().pdpStateEntityKey},""),f=_.MN(nQk,M),K=_.Kn(function(){_.gx(!0);
var A;return(A=h==null?void 0:h())!=null?A:Vq8(f,c,x)},void 0,"POBqwe"),t=_.GD(function(){return F().body},[]),d=_.GD(function(){return F().columnBreakHints},[]),v=function(){return F().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},C=function(){return v()||F().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},X=_.Kn(function(){var A=_.Us(F().background),Y;
if(A==null?0:(Y=A.sources)==null?0:Y.length){var O=O===void 0?!0:O;A=_.DSm(void 0,A.sources,void 0,O,O?1E3:void 0,O?void 0:1E3)}else A=null;return A},void 0,"BkCmEd");
p=_.a4({"--pdp-view-model-background":function(){return X()?"url("+X()+")":void 0}});
var Q={};N=_.$L("ytPdpViewModelHost",(Q.ytPdpViewModelHasBackground=function(){return C()||!!X()},Q.ytPdpViewModelHasDarkBackground=C,Q.ytPdpViewModelHasScrim=v,Q.ytPdpViewModelInternalScrolling=_.GD(N,!1),Q));
var b=function(A){var Y={};return _.$L("ytPdpViewModelItem",(Y.ytPdpViewModelFullBleed=function(){return _.aad(A())==="dividerViewModel"||_.aad(A())==="sectionHeaderViewModel"},Y.ytPdpViewModelNoVerticalPadding=function(){return _.aad(A())==="sectionHeaderViewModel"},Y))};
_.J9(function(){var A=F().onStartCommand;if(A&&(A=_.g$(A))){var Y;(Y=_.J().resolve(_.RD))==null||Y.resolveCommand(A)}});
return _.Z("pdp-view-model",{class:N,style:p},_.Z("div",{class:"ytPdpViewModelColumnContainer"},_.Z(_.ft,{each:function(){return Hsc(t(),d())},
keyBy:"INDEX"},function(A){return _.Z("div",{class:"ytPdpViewModelColumn"},_.Z(_.Es,{data:A},{containerLayoutViewModel:function(Y,O){Y=Y.data;return _.Z("div",{class:b(function(){return A()[O()]})},_.Z(o5,{data:Y}))},
dividerViewModel:function(Y,O){Y=Y.data;return _.Z("div",{class:b(function(){return A()[O()]})},_.Z(iRH,{data:Y}))},
pdpCardViewModel:function(Y,O){Y=Y.data;return _.Z("div",{class:b(function(){return A()[O()]})},_.Z(TX8,{data:Y,
stateFns:K}))},
pdpMastheadViewModel:function(Y,O){Y=Y.data;return _.Z("div",{class:b(function(){return A()[O()]})},_.Z(BX8,{data:Y,
isOverlay:C}))},
pdpPricingOptionSelectorViewModel:function(Y,O){Y=Y.data;return _.Z("div",{class:b(function(){return A()[O()]})},_.Z(R98,{data:Y,
stateFns:K}))},
pdpPrimaryButtonViewModel:function(Y,O){Y=Y.data;return _.Z("div",{class:b(function(){return A()[O()]})},_.Z(kFk,{data:Y,
stateFns:K}))},
pdpSummaryViewModel:function(Y,O){Y=Y.data;return _.Z("div",{class:b(function(){return A()[O()]})},_.Z(UBX,{data:Y,
stateFns:K}))},
sectionHeaderViewModel:function(Y,O){Y=Y.data;return _.Z("div",{class:b(function(){return A()[O()]})},_.Z(_.RF,{data:Y}))}}))})))},"He");
Iut.idomCompat=!0;_.o7(Iut,"pdp-view-model",{props:{data:_.G2,stateFnsForTesting:_.mJ,internalScrolling:_.mJ}});var $Be=_.mO(function(p){var x=p.data;var F=p.className;var N=_.MN(_.FN,function(){return x().flowStateEntityKey});
return _.Z("ytm-premium-purchase-button-renderer",{class:_.$L("yt-premium-purchase-button-renderer",F)},_.Z(_.Es,{data:function(){var h;return(h=_.r(N(),h3))==null?void 0:h.primaryButtonOverride}},{buttonRenderer:function(h){return _.Z(_.UN,{data:h.data,
className:F})},
buttonViewModel:function(h){return _.Z(_.nV,{data:h.data,className:F})}}))},"Ie");
$Be.idomCompat=!0;var e98=_.mO(function(p){var x=p.data;var F=function(){return mzX(x().style)},N=_.$L("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",F),h=_.$L("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",F);
return _.Z("yt-flow-bottom-bar-renderer",{class:_.$L("yt-flow-bottom-bar-renderer",p.className,F)},_.Z(_.Es,{data:function(){return x().secondaryButton}},{buttonRenderer:function(c){return _.Z(_.UN,{data:c.data,
className:h})},
buttonViewModel:function(c){return _.Z(_.nV,{data:c.data,className:h})},
premiumPurchaseButtonRenderer:function(c){return _.Z($Be,{data:c.data,className:h})}}),_.Z(_.Es,{data:function(){return x().primaryButton}},{buttonRenderer:function(c){return _.Z(_.UN,{data:c.data,
className:N})},
buttonViewModel:function(c){return _.Z(_.nV,{data:c.data,className:N})},
premiumPurchaseButtonRenderer:function(c){return _.Z($Be,{data:c.data,className:N})}}))},"Je");
e98.idomCompat=!0;_.o7(e98,"yt-flow-bottom-bar-renderer",{props:{data:_.G2,className:_.G2}});var pTc=_.mO(function(p){return _.Z("yt-offer-summary-renderer",{class:_.$L(p.className,"ytOfferSummaryRendererHost")},_.Z("div",{class:"ytOfferSummaryRendererTextContainer"},_.Z("div",{class:"ytOfferSummaryRendererEyebrowText"},_.Z(_.KQ,{text:function(){return p.data().eyebrowText}})),_.Z("div",{class:"ytOfferSummaryRendererTitle"},_.Z(_.KQ,{text:function(){return p.data().title}})),_.Z("div",{class:"ytOfferSummaryRendererSubtitle"},_.Z(_.KQ,{text:function(){return p.data().subtitle}})),_.Z("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.Z(_.ft,{each:function(){var x;
return(x=p.data().featureListData)!=null?x:[]}},function(x){var F;
return _.Z("div",{class:"ytOfferSummaryRendererFeatureList"},_.Z(_.DS,{icon:(F=x.icon)==null?void 0:F.iconType,className:x.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.Z("div",{class:"ytOfferSummaryRendererFeatureListText"},_.Z(_.KQ,{text:x.text})))})),_.Z("div",{class:"ytOfferSummaryRendererDescription"},_.Z(_.KQ,{text:function(){return p.data().description}}))))},"Ke");_.o7(_.mO(function(p){var x={};x=_.$L("ytOfferSummaryFlowStepRendererHost",(x.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=p.shouldDisableHeaderTopMargin,x));return _.Z("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:x},_.Z("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.Z("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.Z(_.KQ,{text:function(){return p.data().header}})),_.Z("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.Z(_.KQ,{text:function(){return p.data().subtitle}}))),_.Z("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.Z(_.Es,{data:function(){return p.data().offerSummary}},{offerSummaryRenderer:function(F){return _.Z(pTc,{data:F.data,
className:p.flowClassName})}})))},"Le"),"yt-offer-summary-flow-step-renderer",{props:{data:_.mJ,
flowClassName:_.mJ,flowStateEntityKey:_.mJ,shouldDisableHeaderTopMargin:_.mJ}});var xuH=_.mO(function(p){var x=p.data;var F=p.className;var N=p.flowStateEntityKey;var h=p.selectionStepStyle;p=_.h0(function(K){var t=x(),d=N==null?void 0:N();K.target&&(K.stopPropagation(),K=d||"",d=_.FN(_.u8().getState(),K),t=Object.assign({},d,{premiumPurchaseFlowState:{selectedOptionId:t.optionId,primaryButtonOverride:t.primaryButtonOverride}}),_.u8().dispatch(_.KV("flowStateEntity",K,t)));return!1});
var c=function(){return(N==null?void 0:N())||""},M=_.MN(_.FN,c);
_.J9(function(){var K=x(),t=c(),d=M();!_.r(d,h3)&&K.defaultSelected&&t!==""&&K.primaryButtonOverride&&oQ_(K.optionId||"",t,K.primaryButtonOverride,d)});
var f={};return _.Z("ytm-option-item-renderer",{"on:click":p,class:_.$L(F,"ytm-option-item-renderer",(f["ytm-option-item-renderer--lp2-style"]=function(){return(h==null?void 0:h())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},f))},_.Z("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.Z("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var K=x(),t=c(),d=M();d=_.r(d,h3);return(d?(d==null?void 0:d.selectedOptionId)||"":K.defaultSelected&&t!==""?(K==null?void 0:K.optionId)||"":"")===x().optionId},
name:("input"+_.bW(_.AI)).toString()})),_.Z("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.Z(_.D9,{cond:function(){return x().eyebrowText},
then:function(){return _.Z("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.Z(_.KQ,{text:function(){return x().eyebrowText}}))}}),_.Z("div",{class:"ytm-option-item-renderer__option-item-title"},_.Z(_.KQ,{text:function(){return x().title}})),_.Z("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.Z(_.KQ,{text:function(){return x().subtitle}})),_.Z("div",{class:"ytm-option-item-renderer__option-item-description"},_.Z(_.KQ,{text:function(){return x().description}}))))},
"Me");var FO8=_.mO(function(p){var x=p.data;var F=p.flowClassName;var N=p.flowStateEntityKey;var h=p.selectionStepStyle;return _.Z("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.Z("div",{class:"yt-option-section-renderer__option-section-header-section"},_.Z("div",{class:"yt-option-section-renderer__option-section-header"},_.Z(_.KQ,{text:function(){return x().title}}),_.Z(_.Es,{data:function(){return x().titleBadge}},{badgeViewModel:function(c){return _.Z(_.M5,
{data:c.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.Z(_.D9,{cond:function(){return x().subtitle},
then:function(){return _.Z("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.Z(_.KQ,{text:function(){return x().subtitle}}))}}),_.Z(_.D9,{cond:function(){return x().featureListData},
then:function(c){return _.Z("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.Z(_.ft,{each:c},function(M){var f;return _.Z("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.Z(_.DS,{icon:(f=M.icon)==null?void 0:f.iconType,className:M.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"yt-option-section-renderer__option-section-feature-item-icon-green":"yt-option-section-renderer__option-section-feature-item-icon-default"}),_.Z("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.Z(_.KQ,{text:M.text})))}))}}),_.Z(_.ft,{each:function(){return x().sectionDisclaimers||[]}},function(c){return _.Z("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.Z(_.KQ,{text:c}))})),_.Z(_.Es,{data:function(){return x().optionItems}},{optionItemRenderer:function(c){return _.Z("div",{class:"yt-option-section-renderer__option-item"},_.Z(xuH,{data:c.data,
className:F,flowStateEntityKey:N,selectionStepStyle:h}))}}),_.Z(_.D9,{cond:function(){return x().offerText},
then:function(){return _.Z("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.Z(_.KQ,{text:function(){return x().offerText}}))}}))},"Ne");
FO8.idomCompat=!0;var Not=_.mO(function(p){var x=p.data;var F=p.flowClassName;var N=p.flowStateEntityKey;p=p.isDesktop;var h=function(){var t;return(t=x().flowStateEntityKey)!=null?t:N==null?void 0:N()},c=function(){return(h==null?void 0:h())||""},M=function(){return x().style},f=_.MN(_.FN,c);
_.J9(function(){var t=x(),d=c(),v=f();!_.r(v,h3)&&t.noPreselect&&d!==""&&t.defaultButtonOverride&&oQ_("default",d,t.defaultButtonOverride,v)});
var K={};return _.Z("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.$L("ytm-option-selection-flow-step-renderer",(K["ytm-option-selection-flow-step-renderer--desktop"]=p,K["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return x().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},K))},_.Z("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"},
_.Z("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.Z(_.KQ,{text:function(){return x().header}})),_.Z("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.Z(_.KQ,{text:function(){return x().subtitle}}))),_.Z(_.Es,{data:function(){return x().optionItems||[]}},{optionItemRenderer:function(t){return _.Z("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.Z(xuH,{data:t.data,
className:F,flowStateEntityKey:h,selectionStepStyle:M}))},
optionSectionRenderer:function(t){return _.Z("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.Z(FO8,{data:t.data,flowClassName:F,flowStateEntityKey:h,selectionStepStyle:M}))}}))},"Oe");
Not.idomCompat=!0;_.o7(Not,"yt-option-selection-flow-step-renderer",{props:{data:_.G2,flowClassName:_.G2,flowStateEntityKey:_.G2,isDesktop:_.G2}});var Ose,j9t;_.O3=_.mO(function(p){var x=_.Vg(p,{type:1,disablePadding:!1,disablePrimaryButton:!1}),F=x.data,N=x.type;p=x.disablePadding;var h=x.disablePrimaryButton,c=x.onClickPrimaryButton,M=function(){return F().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},f=function(){return{disabled:h(),
state:h()?"disabled":"active"}},K=function(){return F().leadingLabel||F().trailingLabel};
x={};return _.Z("yt-panel-footer-view-model",{class:_.$L("yt-panel-footer-view-model-wiz",(x["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return F().shouldHideDivider},x["yt-panel-footer-view-model-wiz--disable-padding"]=p,x))},_.Z(_.D9,{cond:K,
then:function(){var t={},d={};return _.Z("div",{class:_.$L("yt-panel-footer-view-model-wiz__text-row",(t["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var v=F();return!(!v.leadingLabel&&!v.trailingLabel||!v.primaryButton&&!v.secondaryButton)},t))},_.Z(_.KQ,{text:function(){return F().leadingLabel},
className:_.$L((d["yt-panel-footer-view-model-wiz--text-padding"]=K,d))}),_.Z(_.KQ,{text:function(){return F().trailingLabel}}))}}),_.Z(_.D9,{cond:M,
then:function(){var t={};return _.Z("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.Z("div",{class:_.$L("yt-panel-footer-view-model-wiz__primary-button",(t["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return F().secondaryButton},t))},_.Z(_.Es,{data:function(){return F().primaryButton}},{buttonViewModel:function(d){return _.Z(_.nV,{data:d.data,
buttonOverrides:f,onClick:c})}})),_.Z(_.Es,{data:function(){return F().secondaryButton}},{buttonViewModel:_.nV}))}}),_.Z(_.D9,{cond:function(){return!M()},
then:function(){var t={},d={},v={};return _.Z("div",{class:_.$L("yt-panel-footer-view-model-wiz__button-row",(t["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===N()},t))},_.Z("div",{class:_.$L("yt-panel-footer-view-model-wiz__button-row--left-button",(d["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===N()},d["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!F().secondaryButton||0===N()},d["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===N()},d))},_.Z(_.Es,{data:function(){return F().secondaryButton}},{buttonViewModel:_.nV})),_.Z("div",{class:_.$L("yt-panel-footer-view-model-wiz__primary-button",(v["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===N()||1===N()},v["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===N()},v))},_.Z(_.Es,{data:function(){return F().primaryButton}},{buttonViewModel:function(C){return _.Z(_.nV,{data:C.data,
buttonOverrides:f,onClick:c})}})))}}))},"Pe");
_.O3.idomCompat=!0;_.hnH=_.mO(function(p){p=_.Vg(p,{disablePadding:!1});var x=p.data,F=p.disablePadding;p=_.B6c(function(){return x().formId});
var N=p.onSubmit,h=p.isValid,c=p.isSubmitting;return _.Z("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.Z(_.Es,{data:function(){return x().panelFooter}},{panelFooterViewModel:function(M){return _.Z(_.O3,{data:M.data,
onClickPrimaryButton:function(){N()},
disablePrimaryButton:function(){return!h()||c()},
disablePadding:F})}}))},"Qe");_.o7(_.hnH,"yt-form-footer-view-model",{props:{data:_.G2,disablePadding:_.G2}});_.o7(_.mO(function(p){return _.Z("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.Z("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.Z(_.D9,{cond:function(){var x;return(x=p.data())==null?void 0:x.image},
then:function(x){return _.Z(_.VE,{data:x,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.Z("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.Z(_.KQ,{text:function(){var x;
return(x=p.data())==null?void 0:x.title}})),_.Z("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.Z(_.KQ,{text:function(){var x;
return(x=p.data())==null?void 0:x.subtitle}})),_.Z("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.Z(_.Es,{data:function(){var x;
return(x=p.data())==null?void 0:x.viewTipsButton}},{buttonViewModel:_.nV}))))},"Re"),"yt-contributor-zero-state-view-model",{props:{data:_.G2}});var lvk=_.mO(function(p){var x=_.MN(Rye,_.GD(function(){var F;return(F=p.data())==null?void 0:F.noteFeedEntityKey},""));
return _.Z("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.Z("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.Z("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.Z(_.D9,{cond:function(){var F,N;return(F=p.data())==null?void 0:(N=F.noteData)==null?void 0:N.isPinned},
then:function(){return _.Z(_.DS,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.Z(_.KQ,{text:function(){var F,N;
return(F=p.data())==null?void 0:(N=F.noteData)==null?void 0:N.headerText}}),_.Z("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.Z(_.KQ,{text:function(){var F,N;
return(F=p.data())==null?void 0:(N=F.noteData)==null?void 0:N.delimiter}})),_.Z(_.KQ,{text:function(){var F,N;
return(F=x())==null?void 0:(N=F.contributorNote)==null?void 0:N.publishedTimeText}})),_.Z(_.Es,{data:function(){var F,N,h,c=(F=p.data())==null?void 0:F.noteData;
F=(N=x())==null?void 0:(h=N.contributorNote)==null?void 0:h.deleteAction;return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:c.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:c.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:c.deleteDialogTitle}]},dialogMessages:[{runs:[{text:c.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:c.deleteActionText}]},command:{performCommentActionEndpoint:{action:F}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:c.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(F){return _.Z(_.nV,{data:F.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.Z("div",{class:"ytNoteViewModelNoteContent"},_.Z(_.KQ,{text:function(){var F,N;
return(F=x())==null?void 0:(N=F.contributorNote)==null?void 0:N.text}})))},"Se");
lvk.idomCompat=!0;_.o7(lvk,"yt-note-view-model",{props:{data:_.G2}});var jy=_.mO(function(p){var x=_.Vg(p,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),F=x.label,N=x.text,h=x.placeholder,c=x.hint;p=x.rows;var M=x.overflowStyle,f=x.outline,K=x.disabled,t=x.disableNewLines,d=x.characterLimit,v=x.validation,C=x.onInput,X=_.oc();x=_.a(_.ct(function(){return N()}));
var Q=x.next().value,b=x.next().value;x=_.a(_.hu(!1,void 0,"fXvinf"));var A=x.next().value,Y=x.next().value,O=function(){Y(!0)},Fw=function(){Y(!1)};
_.J9(function(){var qI=X.value,RJ=M(),Ik=Q();RJ==="expand-vertically"&&Ik&&kZa(qI);X.value.addEventListener("focusin",O);X.value.addEventListener("focusout",Fw)});
_.E_(function(){X.value.removeEventListener("focusin",O);X.value.removeEventListener("focusout",Fw)});
var R=function(){var qI;return(qI=v())==null?void 0:qI.validate(Q())},ld=function(){return d()&&!R()&&Q().length>d().maxChars},pp=function(){return!!R()||ld()};
x=_.h0(function(qI){if(!qI.currentTarget)return!1;qI=qI.currentTarget;b(qI.value);M()==="expand-vertically"&&kZa(qI);C==null||C(qI.value);return!0});
var Kp=_.h0(function(qI){t()&&qI.key==="Enter"&&qI.preventDefault();return!1}),sM=_.h0(function(){X.value.focus()}),np=function(){return h()||F()},Jz={},Y$={},xB={};
return _.Z("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.Z("div",{class:_.$L("ytStandardsTextareaShapeTextareaContainer",(Jz.ytStandardsTextareaShapeTextareaContainerOutline=f,Jz.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=K,Jz.ytStandardsTextareaShapeTextareaContainerOutlineError=pp,Jz)),"on:click":sM},_.Z("label",{class:_.$L("ytStandardsTextareaShapeLabel",(Y$.ytStandardsTextareaShapeLabelFocused=A,Y$.ytStandardsTextareaShapeLabelDisabled=K,Y$.ytStandardsTextareaShapeLabelError=
function(){return pp()&&!K()},Y$.ytStandardsTextareaShapeLabelHidden=function(){return!A()&&!Q()&&!!np()},Y$))},F),_.Z("div",{class:_.$L("ytStandardsTextareaShapePlaceholder",(xB.ytStandardsTextareaShapePlaceholderVisible=function(){return!A()&&!Q()},xB)),
"aria-hidden":"true"},np),_.Z("textarea",{el:X,class:"ytStandardsTextareaShapeTextarea",rows:p,disabled:K,placeholder:np,"on:input":x,"on:keydown":Kp},Q)),_.Z(_.D9,{cond:function(){return c()&&!pp()},
then:function(){var qI={};return _.Z("div",{class:_.$L("ytStandardsTextareaShapeHint",(qI.ytStandardsTextareaShapeHintDisabled=K,qI))},_.Z("div",{class:"ytStandardsTextareaShapeHintHintMessage"},c))}}),_.Z(_.D9,{cond:R,
then:function(){return _.Z(cZm,{disabled:K},_.Z("div",{class:"ytStandardsTextareaShapeErrorMessage"},R))}}),_.Z(_.D9,{cond:d,
then:function(qI){return _.Z(_.D9,{cond:ld,then:function(){return _.Z(cZm,{disabled:K},_.Z("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return qI().errorMessage}),_.Z("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return Q().length+"/"+qI().maxChars}))}})}}))},"Te");
jy.idomCompat={callbacks:{onInput:!0}};var cZm=_.mO(function(p){var x={};return _.Z("div",{class:_.$L("ytStandardsTextareaShapeError",(x.ytStandardsTextareaShapeErrorDisabled=p.disabled,x)),role:"alert"},_.Z(_.DS,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),p.children)},"Ue");_.avH=_.mO(function(p){var x=p.data;return _.Z("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.Z(jy,{text:p.text,label:function(){var F;return(F=x().contentProperties)==null?void 0:F.labelText},
placeholder:function(){var F;return(F=x().contentProperties)==null?void 0:F.placeholderText},
hint:function(){var F;return(F=x().contentProperties)==null?void 0:F.hintText},
outline:function(){var F;return!((F=x().displayProperties)==null?0:F.hideBorder)},
overflowStyle:function(){var F;return((F=x().displayProperties)==null?0:F.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:p.disabled,disableNewLines:function(){var F;return(F=x().displayProperties)==null?void 0:F.disableNewLines},
onInput:p.onInput,characterLimit:p.characterLimit,validation:p.validation,rows:function(){var F;return(F=x().displayProperties)==null?void 0:F.rows}}))},"Ve");_.MA8=_.mO(function(p){var x=p.data;return _.Z("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.Z(jy,{text:p.text,label:function(){var F;return(F=x().contentProperties)==null?void 0:F.labelText},
placeholder:function(){var F;return(F=x().contentProperties)==null?void 0:F.placeholderText},
hint:function(){var F;return(F=x().contentProperties)==null?void 0:F.hintText},
outline:function(){var F;return!((F=x().displayProperties)==null?0:F.hideBorder)},
overflowStyle:function(){var F;return((F=x().displayProperties)==null?0:F.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var F;return(F=x().displayProperties)==null?void 0:F.disableNewLines},
onInput:p.onInput,characterLimit:p.characterLimit,validation:p.validation,rows:function(){var F;return(F=x().displayProperties)==null?void 0:F.rows}}))},"We");var Duc=_.mO(function(p){var x=_.a(_.ct(function(){var np,Jz;return((np=p.data().structuredContextNoteFormSchema)==null?0:(Jz=np.initialValues)==null?0:Jz.noteBody)?p.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),F=x.next().value,N=x.next().value;
x=_.a(_.ct(function(){p.data();return!1}));
var h=x.next().value,c=x.next().value;x=_.a(_.ct(function(){p.data();return!1}));
var M=x.next().value,f=x.next().value;x=_.a(_.ct(function(){var np,Jz;return((np=p.data().structuredContextNoteFormSchema)==null?0:(Jz=np.initialValues)==null?0:Jz.timestamp)?p.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var K=x.next().value,t=x.next().value;x=_.a(_.ct(function(){p.data();return!1}));
var d=x.next().value,v=x.next().value;x=_.a(_.ct(function(){var np,Jz;return((np=p.data().structuredContextNoteFormSchema)==null?0:(Jz=np.initialValues)==null?0:Jz.sources)?[p.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var C=x.next().value,X=x.next().value;x=_.a(_.ct(function(){p.data();return!1}));
var Q=x.next().value,b=x.next().value;x=_.a(_.ct(function(){return!1}));
var A=x.next().value,Y=x.next().value;_.J9(function(){var np;_.T68((np=p.data().structuredContextNoteFormSchema)==null?void 0:np.id,{isSubmitting:A,onSubmit:function(){Y(!0);var Jz=NHt(F(),K(),C(),p.data()),Y$=_.J().resolve(_.RD);Jz&&Y$&&Y$.resolveCommand(Jz,{commandController:{onSuccess:function(){Y(!1)}}})},
isValid:function(){return h()&&!M()&&!d()&&!Q()}})});
var O=function(np){if(np!==void 0&&(N(np),!h()&&np.length>0&&c(!0),h())){var Jz=IIX(p.data());if(Jz){var Y$=Jz.minLength;Jz=Jz.maxLength;Y$&&np.length<Y$?f(!0):Jz&&np.length>Jz?f(!0):f(!1)}}},Fw=function(np){if(np!==void 0){t(np);
if(np.length>0){var Jz,Y$,xB,qI,RJ=eya((Jz=p.data())==null?void 0:(Y$=Jz.structuredContextNoteFormSchema)==null?void 0:(xB=Y$.fieldSchemas)==null?void 0:(qI=xB.timestamp)==null?void 0:qI.validationSchema);if(RJ&&(Jz=RJ.regex)&&!(new RegExp(Jz)).test(np)){v(!0);return}}v(!1)}},R=function(np){if(np!==void 0){var Jz=np.split(/[ \n]/).map(function(Y$){return Y$.trim()});
X(Jz);if(np.length>0)for(np=_.a(Jz),Jz=np.next();!Jz.done;Jz=np.next())if(!FT8(Jz.value)){b(!0);return}b(!1)}},ld=function(){return{validate:function(np){if(h()){var Jz=IIX(p.data());
if(Jz){var Y$=Jz.minLength;Jz=Jz.translations;if(Y$&&np.length<Y$)return Jz==null?void 0:Jz.minLengthErrorMessage}}}}},pp=function(){var np=IIX(p.data()),Jz=np==null?void 0:np.maxLength,Y$;
np=np==null?void 0:(Y$=np.translations)==null?void 0:Y$.maxLengthErrorMessage;if(Jz&&np)return{maxChars:Jz,errorMessage:np}},Kp=function(){return{validate:function(np){if(np){var Jz,Y$,xB,qI,RJ=eya((Jz=p.data())==null?void 0:(Y$=Jz.structuredContextNoteFormSchema)==null?void 0:(xB=Y$.fieldSchemas)==null?void 0:(qI=xB.timestamp)==null?void 0:qI.validationSchema);
if(RJ&&(Jz=RJ.regex,RJ=RJ.translations,Jz&&!(new RegExp(Jz)).test(np)))return RJ==null?void 0:RJ.regexErrorMessage}}}},sM=function(){return{validate:function(np){if(np){var Jz,Y$,xB,qI,RJ=xt8((Jz=p.data())==null?void 0:(Y$=Jz.structuredContextNoteFormSchema)==null?void 0:(xB=Y$.fieldSchemas)==null?void 0:(qI=xB.sources)==null?void 0:qI.validationSchema);
if(RJ&&(Jz=RJ.translations,Jz==null?0:Jz.selectedErrorMessage))for(np=np.split(/[ \n]/).map(function(Ik){return Ik.trim()}),np=_.a(np),Y$=np.next();!Y$.done;Y$=np.next())if(!FT8(Y$.value))return np=void 0,(np=Jz)==null?void 0:np.selectedErrorMessage}}}};
return _.Z("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.Z("div",{class:"ytStructuredContextNoteViewModelTextField"},_.Z(_.Es,{data:function(){var np;return(np=p.data())==null?void 0:np.noteContents}},{textFormFieldViewModel:function(np){return _.Z(_.MA8,{data:np.data,
onInput:O,validation:ld,characterLimit:pp})},
textFieldViewModel:function(np){return _.Z(_.avH,{data:np.data,onInput:O,validation:ld,characterLimit:pp})}})),_.Z("div",{class:"ytStructuredContextNoteViewModelTextField"},_.Z(_.Es,{data:function(){var np;
return(np=p.data())==null?void 0:np.noteTimestamp}},{textFormFieldViewModel:function(np){return _.Z(_.MA8,{data:np.data,
onInput:Fw,validation:Kp})},
textFieldViewModel:function(np){return _.Z(_.avH,{data:np.data,onInput:Fw,validation:Kp})}})),_.Z("div",{class:"ytStructuredContextNoteViewModelTextField"},_.Z(_.Es,{data:function(){var np;
return(np=p.data())==null?void 0:np.noteSources}},{textFormFieldViewModel:function(np){return _.Z(_.MA8,{data:np.data,
onInput:R,validation:sM})},
textFieldViewModel:function(np){return _.Z(_.avH,{data:np.data,onInput:R,validation:sM})}})))},"Xe");
Duc.idomCompat=!0;_.o7(Duc,"yt-structured-context-note-view-model",{props:{data:_.G2}});var fve=_.mO(function(p){var x=_.a(_.ct(function(){var c;if((c=p.controlled)==null?0:c.call(p))return[];var M;return(((M=p.data())==null?void 0:M.chips)||[]).map(function(f){f=_.r(f,_.Gv);if(f==null?0:f.selected)return hhX(f.chipValue)}).filter(function(f){return f!==void 0})})),F=x.next().value,N=x.next().value,h=function(c){var M=hhX(c.chipValue);
if(M!==void 0){var f;if((f=p.controlled)==null?0:f.call(p))return void p.controlled().onTap(M);c=F().includes(M)?[].concat(_.se(F().filter(function(t){return t!==M}))):[].concat(_.se(F()),[M]);
N(c);var K;if((K=p.uncontrolled)==null?0:K.call(p))p.uncontrolled().onUpdate(c)}};
return _.Z("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.Z(_.ft,{each:function(){return p.data().chips||[]}},function(c){return _.Z("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.Z(_.AO6,{data:function(){return _.r(c,_.Gv)},
selected:function(){var M;if(M=_.r(c,_.Gv)){var f=hhX(M.chipValue);if(f!==void 0){var K;M=((K=p.controlled)==null?0:K.call(p))?p.controlled().selectedValues.includes(f):F().includes(f)}else M=void 0}else M=!1;return M},
callback:h}))}))},"Ye");var KOH=_.mO(function(p){var x=p.data;var F=function(){var f;return((f=x())==null?void 0:f.flowStateKey)||""},N=_.MN(_.FN,F),h=function(){var f;
return(f=_.r(N(),icD))==null?void 0:f.chips},c=function(f){if(f!==void 0){var K=h()||[];
K=K.find(function(t){return t===f})?K.filter(function(t){return t!==f}):[].concat(_.se(K),[f]);
K=Object.assign({},N(),{feedbackFormFlowState:Object.assign({},_.r(N(),icD),{chips:K})});_.wo(_.KV("flowStateEntity",F(),K))}},M=function(){var f;
return _.r((f=x())==null?void 0:f.inputBox,Ix_)};
p=_.S0(function(f){var K=M();K=!(K==null?0:K.maxChars)||f.length<=K.maxChars;f=Object.assign({},N(),{feedbackFormFlowState:Object.assign({},_.r(N(),icD),{detail:f}),abuseReportFlowState:Object.assign({},_.r(N(),a5),{navigationEnabled:K})});_.wo(_.KV("flowStateEntity",F(),f))},150);
return _.Z("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.Z("div",{class:"ytFeedbackFormViewModelChips"},_.Z(_.Es,{data:function(){var f;return(f=x())==null?void 0:f.chipSelection}},{chipSelectionFormFieldViewModel:function(f){return _.Z(fve,{data:f.data,
controlled:function(){return{selectedValues:h()||[],onTap:c}}})}})),_.Z("div",{class:"ytFeedbackFormViewModelInputBox"},_.Z(jy,{text:function(){var f;
return(f=_.r(N(),icD))==null?void 0:f.detail},
placeholder:function(){var f;return((f=M())==null?void 0:f.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var f=M();if(f&&f.maxChars)return{maxChars:f.maxChars,errorMessage:f.maxCharsExceededErrorMessage||""}},
onInput:p})),_.Z("div",{class:"ytFeedbackFormViewModelFooterText"},_.Z(_.KQ,{text:function(){return x().footerText}})))},"Ze");
KOH.idomCompat=!0;_.o7(KOH,"yt-feedback-form-view-model",{props:{data:_.G2}});var qQa=_.mO(function(p){var x=p.data;var F=function(){return x().flowStateKey||""},N=_.MN(p7_,F),h=function(){return _.r(N(),a5)},c=function(){if(_.S("enable_gff_accessibility_fix")){var M=!0,f;
if((f=h())==null?0:f.navigationEnabled){var K;_.su((K=h())==null?void 0:K.navigationCommand);M=!1}f=Object.assign({},N(),{abuseReportFlowState:Object.assign({},h(),{isReportFormDirty:M})});_.wo(_.KV("flowStateEntity",F(),f))}else _.su((M=h())==null?void 0:M.navigationCommand)};
return _.Z("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.Z("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.Z(_.Es,{data:function(){return x().cancelButton}},{buttonViewModel:function(M){return _.Z(_.nV,{data:M.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:c})}}),_.Z(_.Es,{data:function(){var M;
if(x().navButton){var f=Object;var K=f.assign,t=_.r(x().navButton,_.X6),d=((M=h())==null?0:M.navigationEnabled)||_.S("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",v,C;M=_.r((v=h())==null?void 0:v.navigationCommand,_.XY);v=(C=_.r(M,_.Gj))==null?void 0:C.url;f={buttonViewModel:K.call(f,{},t,{state:d,iconName:v?"OPEN_IN_NEW":""})}}else f=void 0;return f}},{buttonViewModel:function(M){return _.Z(_.nV,{data:M.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:c})}})))},"$e");
qQa.idomCompat=!0;_.o7(qQa,"yt-report-form-bottom-bar-view-model",{props:{data:_.G2}});var Z5t=_.mO(function(p){var x=p.nextStep;return _.Z("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.Z("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.Z(_.DS,{icon:function(){return x().iconName||""}})),_.Z("div",null,_.Z(_.KQ,{text:function(){return x().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"af"),tAt=_.mO(function(p){var x=p.data;
var F,N=(F=_.J().resolve(_.Bw(_.AD)))==null?void 0:F(),h=_.MN(_.FN,function(){return x().flowStateKey||""});
return _.Z("yt-report-form-confirmation-page-view-model",{class:function(){var c;return((c=_.r(h(),a5))==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.Z("div",{class:function(){var c;
return((c=_.r(h(),a5))==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.Z(_.VE,{data:function(){return N&&x().imageDark?x().imageDark:x().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.Z("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.Z("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return x().confirmationHeader}),_.Z("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.Z(_.KQ,{text:function(){return x().confirmationText}})),_.Z("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.Z(_.KQ,{text:function(){return x().lawEnforcementText}})),
_.Z("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return x().whatToExpectHeader}),_.Z(_.D9,{cond:function(){return x().nextSteps},
then:function(c){return _.Z("div",null,_.Z(_.ft,{each:c},function(M){return _.Z(Z5t,{nextStep:M})}))}}),_.Z(_.D9,{cond:function(){return x().legalReportText},
then:function(c){return _.Z("div",null,_.Z(_.KQ,{text:c,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"bf");
tAt.idomCompat=!0;_.o7(tAt,"yt-report-form-confirmation-page-view-model",{props:{data:_.G2}});var dum=_.mO(function(p){var x=p.data;var F=function(){var c;return((c=_.r(x().inputBox,Ix_))==null?void 0:c.maxChars)||500},N=function(){return x().flowStateKey||""},h=_.MN(_.FN,N);
p=_.S0(function(c){c=Object.assign({},h(),{flowFormState:{isValid:c.length<=F()},abuseReportFlowState:{userComments:c,navigationEnabled:!(c.length>F()),isReportFormDirty:!0}});_.u8().dispatch(_.z7("flowStateEntity",N(),c))},150);
_.J9(function(){var c=Object.assign({},h(),{flowFormState:{isValid:!0}});_.u8().dispatch(_.z7("flowStateEntity",N(),c))});
return _.Z("yt-report-form-details-page-view-model",{class:function(){var c;return((c=_.r(h(),a5))==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.Z("h1",{class:function(){var c;
return((c=_.r(h(),a5))==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return x().detailsPageHeader}),_.Z("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.Z(_.KQ,{text:function(){return x().bodyText}})),_.Z("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.Z(jy,{label:function(){var c;
return((c=_.r(x().inputBox,Ix_))==null?void 0:c.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var c;return{errorMessage:((c=_.r(x().inputBox,Ix_))==null?void 0:c.maxCharsExceededErrorMessage)||"",maxChars:F()}},
onInput:p})))},"cf");
dum.idomCompat=!0;_.o7(dum,"yt-report-form-details-page-view-model",{props:{data:_.G2}});var vJt=_.mO(function(p){var x=p.data;var F=p.selectedKey;var N=p.onSelected;var h=p.groupName;var c=_.Z("div",{class:"ytRadioButtonItemViewModelLabel"},_.Z("div",null,function(){return x().text}),_.Z("div",{class:"ytRadioButtonItemViewModelSubText"},function(){return x().subtext}));
p={};return _.Z("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost",tabindex:0},_.Z(_.oDm,{name:h,checked:function(){return!(F==null||!F()||x().key!==(F==null?void 0:F()))},
onChange:function(M){N==null||N(M.target,x(),h==null?void 0:h())},
labelRenderable:function(){return c},
ariaLabel:function(){return x().subtext?x().text+", "+x().subtext:x().text},
className:_.$L((p.ytRadioButtonItemViewModelSubTitle=function(){return!!x().subtext},p))}))},"df");_.JZD=_.mO(function(p){var x=p.data;var F=p.onSelected;var N=p.selectedKey;var h=p.groupName;return _.Z("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.Z("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.Z(_.Es,{data:function(){return x().radioButtons}},{radioButtonItemViewModel:function(c){var M=c.data;
return _.Z(vJt,{data:M,onSelected:F,selectedKey:N,groupName:function(){return h!=null?h:M().key}})}})))},"ef");var C8X=_.mO(function(p){var x=p.data;var F=_.O$(),N=function(){return x().flowStateKey||""},h=_.MN(_.FN,N),c=function(){return _.r(h(),a5)};
_.rx(function(){var M,f;if(((M=c())==null?0:M.isReportFormDirty)&&((f=c())==null||!f.navigationEnabled)&&_.S("enable_gff_accessibility_fix")){var K;if(((K=c())==null?void 0:K.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var t;(t=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||t.scrollIntoView()}else{var d;(d=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||d.scrollIntoView()}}});
return _.Z("yt-report-form-reason-select-page-view-model",{class:function(){var M;return((M=c())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.Z("h1",{class:function(){var M;
return((M=c())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return x().pageHeader}),_.Z("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.Z(_.KQ,{text:function(){return x().bodyText}})),_.Z("div",{class:function(){var M;
return((M=c())==null?void 0:M.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.Z(_.D9,{cond:function(){var M,f;
return((M=c())==null?void 0:M.isReportFormDirty)&&!((f=c())==null?0:f.navigationEnabled)&&_.S("enable_gff_accessibility_fix")},
then:function(){return _.Z("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:F},_.Z(_.DS,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.Z("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return x().emptyReasonSelectErrorMessage}))}}),_.Z(_.JZD,{data:function(){return _.r(x().radioButtonGroup,_.l2a)},
onSelected:function(M,f){M=Object.assign({},h(),{abuseReportFlowState:Object.assign({},c(),{reasonKey:f.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:f.command})});_.wo(_.KV("flowStateEntity",N(),M))},
selectedKey:function(){var M;return(M=c())==null?void 0:M.reasonKey},
groupName:"report-form-reason-select-page"})))},"ff");
C8X.idomCompat=!0;_.o7(C8X,"yt-report-form-reason-select-page-view-model",{props:{data:_.G2}});var SQ8=_.mO(function(p){var x=p.data;var F,N=(F=_.J().resolve(_.Bw(_.AD)))==null?void 0:F();return _.Z("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.Z("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.Z(_.VE,{data:function(){return N&&x().imageDark?x().imageDark:x().image},
alt:""})),_.Z("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.Z("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return x().header}),_.Z(_.KQ,{text:function(){return x().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"gf");
SQ8.idomCompat=!0;_.o7(SQ8,"yt-report-form-sign-in-page-view-model",{props:{data:_.G2}});_.o7(_.mO(function(p){var x=p.data;var F=function(){var t;return(t=x().textInputPlaceholder)==null?void 0:t.content},N=function(t){t=t.target.value.trim();
var d=x().onUpdateText;d&&_.su(d,{form:{userQuery:t}});x().userQuery=t},h=_.S0(function(t){N(t)},150),c=_.h0(function(t){h(t);
return!1}),M=_.h0(function(t){t.key==="Enter"&&(N(t),(t=x().onNextStepCommand)&&_.su(t,{}));
return!1}),f=_.oc(),K=function(){if(_.S("web_hide_explore_hub_until_user_navigates_back_to_home")){var t,d,v;
(v=(d=(t=f.value)==null?void 0:t.closest("ytd-flow-step-renderer"))==null?void 0:d.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||v.click()}};
return _.Z("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:f},_.Z("div",{class:"ytwTalkToRecsTopCornerButton"},_.Z(_.Es,{data:function(){return x().topCornerButton}},{buttonViewModel:_.nV})),_.Z("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.Z("div",{class:"ytwTalkToRecsTitle"},_.Z(_.KQ,{text:function(){return x().title}})),_.Z("div",{class:"ytwTalkToRecsSubtitle"},_.Z(_.KQ,{text:function(){return x().subtitle}})),_.Z("div",{class:"ytwTalkToRecsChipsShelf"},_.Z(_.Es,{data:function(){return x().answersShelf}},
{chipsShelfViewModel:function(t){return _.Z(_.WSk,{data:t.data,
callback:K})}})),_.Z(_.D9,{cond:function(){return x().showOpenTextInput&&!_.S("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.Z("div",{class:"ytwTalkToRecsUserInputBox"},_.Z("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:F,value:function(){return x().userQuery},
"on:input":c,"on:keyup":M}))}})))},"hf"),"yt-talk-to-recs-view-model",{props:{data:_.G2}});var lxa={sources:[{clientResource:{imageName:"CHECK"}}]};_.rZc=_.mO(function(p){var x=_.oc();p=_.Vg(p,{error:void 0});var F=p.data,N=p.error,h=p.onSelected;p=_.a(_.ct(function(){return Mze(F())}));
var c=p.next().value,M=p.next().value;qzc(F,function(v){M(v);var C,X,Q=axa((C=F().options)==null?void 0:(X=C[v])==null?void 0:X.value,F().type);h==null||h(Q);x.value.focus()});
p=_.h0(function(){if(!F().disabled){var v=F(),C=c(),X=x.value;v.options&&(v=cG8(v.options,C,v.label),_.J().resolve(_.gc).openSheet({viewModel:v},X))}});
var f=_.d2w(),K=function(){return!!N()},t=function(){return!!F().disabled},d={};
d=_.$L("ytDropdownViewModelDropdownContainer",(d.ytDropdownViewModelDropdownContainerErrorBorder=K,d.ytDropdownViewModelDropdownContainerDisabled=t,d));return _.Z("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.Z("div",{class:d,"on:click":p,el:x,role:"combobox",tabindex:0,"on:keydown":f,"aria-invalid":K,"aria-disabled":t,"aria-describedby":function(){return K()?"dropdown-view-model-error":void 0}},_.Z("div",{class:"ytDropdownViewModelText"},Dtt(F,K,c),fxc(F,c)),_.Z("div",{class:"ytDropdownViewModelChevronDown"},
_.Z(_.DS,{icon:"CHEVRON_DOWN"}))),KTH(F,N))},"jf");_.o7(_.mO(function(p){var x=p.data;var F=function(h){var c=tz8(x());c.videoMetadata||(c.videoMetadata={});c.videoMetadata.sponsorshipsMetadata||(c.videoMetadata.sponsorshipsMetadata={});c.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(h)},N=function(h){var c=tz8(x());
c.scheduledRedirectMetadata||(c.scheduledRedirectMetadata={});c.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(h)};
return _.Z("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.Z("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.Z("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.Z(_.KQ,{text:function(){return x().title}}),_.Z(_.DS,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.Z(_.KQ,{text:function(){return x().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.Z(_.Es,{data:function(){return x().tierChoices}},{dropdownViewModel:function(h){return _.Z("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.Z(_.rZc,{data:h.data,
onSelected:F}))}}),_.Z(_.Es,{data:function(){return x().startTimeChoices}},{dropdownViewModel:function(h){return _.Z("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.Z(_.rZc,{data:h.data,
onSelected:N}))}}),_.Z(_.KQ,{text:function(){return x().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.Z("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.Z(_.Es,{data:function(){return x().scheduleButton}},{panelFooterViewModel:_.O3})))},"kf"),"ytfz-schedule-fanzone-view-model",{props:{data:_.G2}});_.o7(_.mO(function(p){var x=p.data;p=p.className===void 0?"":p.className;var F=_.MN(p7_,function(){return x().flowStateEntityKey||""}),N={};
N=_.$L("ytFlowBottomBarViewModelFlowBottomBarButtons",(N.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return x().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||x().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},N));
var h={},c=_.$L("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",N,(h.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return x().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},h.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return x().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},h));
h={};var M=_.$L("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",N,(h.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return x().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},h.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return x().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},h));
N={};N=_.$L("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(N.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return x().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},N.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return x().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},N.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return x().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
N));
return _.Z("yt-flow-bottom-bar-view-model",{class:_.$L("ytFlowBottomBarViewModelHost",p)},_.Z(_.D9,{cond:function(){var f;return(f=x())==null?void 0:f.textSection},
then:function(f){return _.Z("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.Z(_.KQ,{text:f}))}}),_.Z("div",{class:N},_.Z(_.Es,{data:function(){return x().secondaryButton}},{buttonViewModel:function(f){return _.Z(_.nV,{data:f.data,
className:M})}}),_.Z(_.Es,{data:function(){return x().primaryButton}},{buttonViewModel:function(f){return _.Z(_.nV,{data:f.data,
className:c,buttonOverrides:function(){var K;return{disabled:!((K=F())==null||!K.primaryButtonDisabled)}}})}})))},"lf"),"yt-flow-bottom-bar-view-model",{props:{data:_.G2,
className:_.mJ}});var EJ8="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),XT_=function(){var p=_.m.apply(this,arguments)||this;p.enableScrollingFix=!0;p.bottomBar=!1;p.hideBottomBar=!1;p.fitContent=!1;return p};
_.E(XT_,_.m);_.l=XT_.prototype;_.l.ready=function(){_.S("enable_pdp_icon_prefetch")&&_.Ut8(_.J().resolve(_.c4),0,EJ8)};
_.l.focus=function(p){this.topBar?_.Hu(this.topBar,p):this.paperDialog.focus(p)};
_.l.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16659_scroller&&(this.JSC$16659_scroller.dialogElement=this.paperDialog,this.JSC$16659_scroller.attached&&typeof this.JSC$16659_scroller.attached==="function"&&this.JSC$16659_scroller.attached())};
_.l.onDataChanged=function(){var p;this.fitContent=!((p=this.data)==null||!p.fitContent);var x;this.bottomBar=!((x=this.data)==null||!x.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.l.onProgressChanged=function(){var p,x,F=((x=(p=this.data)==null?void 0:p.progress)!=null?x:0)*100;this.progressElement.style.width=F+"%"};
_.l.isProgressHidden=function(){var p;return!((p=this.data)==null?0:p.progress)};
_.l.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",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(p){return _.S("enable_wiz_next_lp2_msof")&&p&&!p.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.R8.Object.defineProperties(XT_.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var p;return _.S("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.r((p=this.data)==null?void 0:p.content,FcX)}}});
var Lu=XT_;Lu.prototype.onProgressChanged=Lu.prototype.onProgressChanged;Lu.prototype.onDataChanged=Lu.prototype.onDataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Lu.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Lu.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Lu.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Lu.prototype,"enableScrollingFix",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Lu.prototype,"bottomBar",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Lu.prototype,"hideBottomBar",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Lu.prototype,"containsExploreHub",null);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Lu.prototype,"fitContent",void 0);
_.B([_.Ff("#progress"),_.k("design:type",HTMLElement)],Lu.prototype,"progressElement",void 0);_.B([_.Ff("#scroller"),_.k("design:type",Object)],Lu.prototype,"JSC$16659_scroller",void 0);_.B([_.Ff("ytd-flow-top-bar-renderer"),_.k("design:type",HTMLElement)],Lu.prototype,"topBar",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Lu.prototype,"onDataChanged",null);
_.B([_.W("data.progress"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Lu.prototype,"onProgressChanged",null);Lu=_.B([_.L({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],Lu);
_.P(Lu,"ytd-flow-step-renderer",function(){if(GtH!==void 0)return GtH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return GtH=p},{mode:1});var gJ8=function(p){this.resolveCommand=p;this.steps={}},Qdm=function(p,x){x=_.a(x||[]);
for(var F=x.next();!F.done;F=x.next()){F=F.value;var N=Object.values(F)[0],h=void 0;if((h=N)==null?0:h.stepId)p.steps[N.stepId]=F}},nJe=function(p,x){var F,N,h,c,M;
return _.D(function(f){if((F=p.state)==null||!F.currentStepId)return f.return(void 0);N=zn8(p);if(!N)return f.return(sde(p));if(h=_.r(N,_.x4a)){var K;((K=h.screenLoggingData)==null?0:K.screenVeType)&&_.F8(_.cl(),h.screenLoggingData.screenVeType);((c=h)==null?0:c.onStepStartCommand)&&p.resolveCommand((M=h)==null?void 0:M.onStepStartCommand,{})}if(h&&x){K=h;var t,d,v,C;((t=x.flowLoggingData)==null?0:t.eventNamespace)&&((d=K.flowEventData)==null?0:d.eventType)&&((v=K.flowEventData)==null?0:v.eventMetadata)&&
((C=x.flowLoggingData)==null?0:C.flowType)&&(t=_.lX(x.flowLoggingData.eventNamespace,K.flowEventData.eventType,K.flowEventData.eventMetadata),_.cg(_.as(),t,x.flowLoggingData.flowType));x.steps&&!x.steps.includes(N)&&x.steps.push(N)}return f.return(N)})};
gJ8.prototype.back=function(){var p;(p=this.state)!=null&&p.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
gJ8.prototype.handleUpdateFlowCommand=function(p){p.steps&&Qdm(this,p.steps);p.entityUpdateCommand&&this.resolveCommand(p.entityUpdateCommand,{});p.flowContinuationCommand&&(p=p.flowContinuationCommand)&&(this.getFlowContinuationCommand=p);this.awaitFlowContinuation&&(this.awaitFlowContinuation(zn8(this)),this.awaitFlowContinuation=void 0)};
gJ8.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var sde=function(p){return _.D(function(x){return p.getFlowContinuationCommand?x.return(new Promise(function(F){p.awaitFlowContinuation=F;p.getFlowContinuationCommand&&p.resolveCommand(p.getFlowContinuationCommand,{flow_state:p.state})})):x.return(Promise.resolve(void 0))})},zn8=function(p){var x;
if((x=p.state)!=null&&x.currentStepId)return p.steps[p.state.currentStepId]};var yZc=function(){var p=_.m.apply(this,arguments)||this;p.flowState=new gJ8(function(x,F){F=F===void 0?{}:F;_.xL.instance.resolveCommand(x,{form:{form:F,element:p.hostElement}})});
p.initialState=!0;p.isLoading=!1;p.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 p};
_.E(yZc,_.m);_.l=yZc.prototype;_.l.onPopupClosed=function(p){p&&this.hostElement!==p.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.l.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.l.focus=function(p){var x=this;_.zD(function(){var F=_.n(x.hostElement).querySelector("ytd-flow-step-renderer");F.topBar?F.focus(p):x.topBar&&_.Hu(x.topBar,p)},1)};
_.l.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.l.computeTopBarHidden=function(p){var x;return!((x=_.r(p,_.x4a))==null||!x.topBarOverride)};
_.l.dataChanged=function(){var p=this,x,F;return _.D(function(N){if(N.nextAddress==1){((x=p.data)==null?0:x.steps)&&Qdm(p.flowState,p.data.steps);if((F=p.data)==null?0:F.flowContinuationCommand){var h=p.flowState,c=p.data.flowContinuationCommand;c&&(h.getFlowContinuationCommand=c)}return _.q(N,nJe(p.flowState,p.data),2)}p.currentFlowStep=N.yieldResult;_.JB(N)})};
_.l.flowChanged=function(){var p=this,x;return _.D(function(F){if(F.nextAddress==1){if(!p.flow)return F.return();p.flowState.state=p.flow;p.isLoading=!0;return _.q(F,nJe(p.flowState,p.data),2)}x=F.yieldResult;if(!x||p.flow.isLoading)return F.return();p.currentFlowStep=x;p.initialState=!1;p.isLoading=!1;p.autofocusAndRefit();_.JB(F)})};
_.l.autofocusAndRefit=function(){var p=this,x=_.J().resolve(_.Bw(_.dR)),F=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),N=document.querySelector("yt-report-form-confirmation-page-view-model"),h=document.querySelector("yt-report-form-details-page-view-model"),c=document.querySelector("yt-report-form-reason-select-page-view-model"),M=document.querySelector("yt-contributor-zero-state-view-model"),
f=document.querySelector("yt-structured-context-note-view-model"),K=document.querySelector("yt-note-view-model");(!F&&x&&x.isKeyBoardInUse()||N||!F&&h||!F&&c||M||f||K)&&_.on(this.hostElement);_.jB(this,function(){_.hG(p.hostElement,"yt-refit")})};
_.l.handleUpdateFlowCommand=function(p){this.data&&(p=_.r(p,piH),p.targetId===this.data.targetId&&(p.flowContinuationCommand&&(this.data.flowContinuationCommand=p.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(p),this.autofocusAndRefit()))};
_.l.handleFlowNextStepCommand=function(p){this.data&&this.flow&&this.flow.key&&(p=_.r(p,$t8),p.targetId===this.data.targetId&&(p=p.stepId||"",this.ytdReduxBehavior.dispatch(_.z7("flowStateEntity",this.flow.key,{currentStepId:p,stepIdStack:(this.flow.stepIdStack||[]).concat(p)}))))};
_.l.handleFlowPrevStepCommand=function(p){if(this.data&&this.flow&&this.flow.key&&(p=_.r(p,ehH),p.targetId===this.data.targetId)){var x=[].concat(_.se(this.flow.stepIdStack||[]));x.length>1?(x.pop(),this.ytdReduxBehavior.dispatch(_.z7("flowStateEntity",this.flow.key,{currentStepId:x[x.length-1],stepIdStack:x}))):p.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(p.onFirstStepCommand)}};
_.l.handleYpcCancelRecurrenceCommand=function(p){if(this.data&&this.flow&&this.flow.key&&(p=_.r(p,c$8),p.targetId===this.data.targetId&&p.endpointCommand)){var x=_.r(this.flow,a2_);x&&_.r(p.endpointCommand,_.E6C)&&(_.r(p.endpointCommand,_.E6C).feedbackData=x.surveyFeedback);this.ytComponentBehavior.resolveCommand(p.endpointCommand)}};
_.l.handlePartialUpdateFlowStateEntity=function(p){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.z7("flowStateEntity",this.flow.key,p,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
var P1=yZc;P1.prototype.flowChanged=P1.prototype.flowChanged;P1.prototype.dataChanged=P1.prototype.dataChanged;P1.prototype.onPopupClosed=P1.prototype.onPopupClosed;_.B([_.u(_.nl),_.k("design:type",Object)],P1.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],P1.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],P1.prototype,"ytComponentBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],P1.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],P1.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],P1.prototype,"initialState",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],P1.prototype,"isLoading",void 0);_.B([_.H(),_.k("design:type",Object)],P1.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],P1.prototype,"currentFlowStep",void 0);_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],P1.prototype,"onPopupClosed",null);_.B([_.H({selectorArgs:["data.flowStateEntityKey"],selector:p7_}),_.k("design:type",Object)],P1.prototype,"flow",void 0);_.B([_.Ff("ytd-flow-top-bar-renderer"),_.k("design:type",HTMLElement)],P1.prototype,"topBar",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],P1.prototype,"dataChanged",null);_.B([_.cT("flow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],P1.prototype,"flowChanged",null);P1=_.B([_.L({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],P1);
_.b58=_.kJ()(P1,"ytd-flow-root-renderer",function(){if(wi_!==void 0)return wi_;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return wi_=p},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var AZH;var lf=null;_.o7(_.mO(function(p){return _.Z("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.Z("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.Z(_.KQ,{text:function(){return p.data().text}}),_.Z("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"mf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.G2}});var uf8=_.mO(function(p){var x=p.playerControlsProps;var F=p.isShortsPage;return _.Z("yt-bigboard",null,_.Z(_.D9,{cond:function(){return x().isDragging},
then:function(){return _.Z("div",{class:"ytBigboardStoryboardHost"},_.Z(_.ydX,{progressBarProps:x,isShortsPage:F}))}}))},"nf");
uf8.idomCompat=!0;_.Tf={ACCOUNT_LABEL:c1("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:c1("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:c1("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:c1("AD_BADGE_HINT"),AD_BADGE_TEXT:c1("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:c1("ALL_CHANNELS_LABEL"),AMBIENT_MODE:c1("AMBIENT_MODE"),AMBIENT_MODE_OFF:c1("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:c1("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:c1("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:c1("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:c1("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:c1("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:c1("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:c1("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:c1("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:c1("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:c1("AUTOPLAY_UP_NEXT_IN"),BACK:c1("BACK"),CANCEL:c1("CANCEL"),CHANNEL_SWITCHER_LABEL:c1("CHANNEL_SWITCHER_LABEL"),CLOSE:c1("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:c1("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:c1("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:c1("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:c1("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:c1("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:c1("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:c1("COMMENT_MODAL_CONTENT"),CONFIRM_OK:c1("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:c1("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:c1("COPIED_TO_CLIPBOARD"),COPY:c1("COPY"),COPY_DEBUG_INFO:c1("COPY_DEBUG_INFO"),COPY_EMBED_CODE:c1("COPY_EMBED_CODE"),COPY_LINK_LABEL:c1("COPY_LINK_LABEL"),
COPY_VIDEO_URL:c1("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:c1("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:c1("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:c1("DELETE_FROM_DOWNLOADS"),DIALOG:c1("DIALOG"),DONE:c1("DONE"),DOWNLOAD:c1("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:c1("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:c1("FLAG_CONFIRM"),FLAG_CONTENT:c1("FLAG_CONTENT"),FLAG_LABEL:c1("FLAG_LABEL"),FLAG_TITLE:c1("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:c1("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:c1("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:c1("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:c1("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:c1("HIDE_SEARCH_FILTERS_LABEL"),HOME:c1("HOME","Home"),INVALID_RESPONSE_RECEIVED:c1("INVALID_RESPONSE_RECEIVED"),LIBRARY:c1("LIBRARY","Library"),LISTENING:c1("LISTENING"),LOADING:c1("LOADING"),LONG_PRESS_MIC_TO_SPEAK:c1("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:c1("LOOP"),MENU_DESKTOP:c1("MENU_DESKTOP"),MENU_EXIT:c1("MENU_EXIT"),
MENU_FEEDBACK:c1("MENU_FEEDBACK"),MENU_HELP:c1("MENU_HELP"),MENU_IMPRESSUM:c1("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:c1("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:c1("MENU_SETTINGS"),MENU_SIGN_IN:c1("MENU_SIGN_IN"),MENU_TITLE:c1("MENU_TITLE"),MENU_YOUR_DATA:c1("MENU_YOUR_DATA"),MORE_INFO:c1("MORE_INFO"),MORE_OPTIONS:c1("MORE_OPTIONS"),MUTE_VOLUME:c1("MUTE_VOLUME"),NEW_PLAYLIST:c1("NEW_PLAYLIST"),NEXT_VIDEO:c1("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:c1("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:c1("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:c1("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:c1("NOT_FOUND_TITLE"),NO_DOWNLOADS:c1("NO_DOWNLOADS"),NO_MIC_INPUT:c1("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:c1("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:c1("OOPS_MESSAGE"),OPEN_APP:c1("OPEN_APP"),OPEN_YOUTUBE:c1("OPEN_YOUTUBE"),PAUSE:c1("PAUSE"),PLAY:c1("PLAY"),PLAYER_CAPTION:c1("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:c1("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:c1("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:c1("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:c1("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:c1("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:c1("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:c1("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:c1("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:c1("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:c1("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:c1("PLAYER_MINIMIZE"),PLAYER_NEXT:c1("PLAYER_NEXT"),PLAYER_PAUSE:c1("PLAYER_PAUSE"),PLAYER_PLAY:c1("PLAYER_PLAY"),
PLAYER_PREVIOUS:c1("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:c1("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:c1("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:c1("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:c1("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:c1("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:c1("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:c1("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:c1("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:c1("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:c1("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:c1("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:c1("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:c1("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:c1("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:c1("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:c1("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:c1("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:c1("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:c1("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:c1("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:c1("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:c1("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:c1("PLAY_ALL"),PLEASE_FIX_ERRORS:c1("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:c1("PREVIOUS_VIDEO"),PRIVACY_POLICY:c1("PRIVACY_POLICY"),RELOAD:c1("RELOAD"),REQUIRED_LABEL:c1("REQUIRED_LABEL"),SAVE_PLAYLIST:c1("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:c1("SCRUB_SLIDE_USER_EDU"),SEARCH:c1("SEARCH","Search"),SEARCH_APPEND_LABEL:c1("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:c1("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:c1("SEARCH_CLEAR_LABEL"),SEARCH_FILTERS_LABEL:c1("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:c1("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:c1("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:c1("SEEK_SLIDER"),SETTINGS_LABEL:c1("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:c1("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:c1("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:c1("SHOW_LESS"),SHOW_MORE:c1("SHOW_MORE"),SHOW_PLAYER_CONTROLS:c1("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:c1("SHOW_PLAYLIST_VIDEOS"),
SHOW_SEARCH_FILTERS_LABEL:c1("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:c1("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:c1("SIGN_IN_ON_WEB"),STABLE_VOLUME:c1("STABLE_VOLUME"),STABLE_VOLUME_OFF:c1("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:c1("STABLE_VOLUME_ON"),STATS_FOR_NERDS:c1("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:c1("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:c1("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:c1("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:c1("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:c1("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:c1("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:c1("TIMESTAMP_SECONDS"),TOGGLE_OFF:c1("TOGGLE_OFF"),TOGGLE_ON:c1("TOGGLE_ON"),TRENDING:c1("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:c1("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:c1("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:c1("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:c1("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:c1("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:c1("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:c1("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:c1("VIDEO_LINK_LABEL")};var YQa=_.mO(function(p){var x=p.playerApi;p=_.oc(function(h){pu(h,36843)});
var F=c1("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"}),N=_.h0(function(){xW(36843);x&&x().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1});
return _.Z("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.Z("button",{el:p,class:"ytPlayerControlsJumpForwardButtonButton",title:F,"aria-label":F,"on:click":N},_.Z("span",null,_.Z(_.DS,{icon:"FAST_FORWARD"}))))},"of");var wTm=_.mO(function(p){var x=p.appApi;p=_.oc(function(h){pu(h,62946)});
var F=c1("OPEN_IN_MINIPLAYER"),N=_.h0(function(){xW(62946);var h,c;(c=(h=x()).openInMiniplayer)==null||c.call(h);return!1});
return _.Z("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.Z("button",{el:p,class:"ytMiniplayerButtonButton",title:F,"aria-label":F,"on:click":N},_.Z(_.DS,{icon:"PICTURE_IN_PICTURE",active:!1})))},"pf");var GDX=_.mO(function(p){var x=p.playerApi;p=_.oc(function(M){pu(M,142812)});
var F=_.a(_.hu(!1,void 0,"I3VCyb")),N=F.next().value,h=F.next().value;F=function(){return c1("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(N()?1:2)})};
var c=_.h0(function(){xW(142812);if(x){var M=x(),f=N();M.setPlaybackRate(f?1:2);h(!N())}return!1});
return _.Z("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.Z("button",{el:p,class:"ytPlaybackSpeedButtonButton",title:F,"aria-label":F,"on:click":c},_.Z("span",null,_.Z(_.DS,{icon:function(){return N()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"qf");var VAm=_.mO(function(p){var x=p.title;var F=p.ariaLabel;var N=p.icon;var h=p.command;var c=p.veType;p=_.oc(function(f){c&&pu(f,c())});
var M=_.h0(function(){c&&xW(c());h&&_.J().resolve(_.RD).resolveCommand(h())});
return _.Z("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.Z("button",{el:p,class:"ytdThumbnailOverlayButtonButton",title:x,"aria-label":F,"on:click":M},_.Z(_.DS,{icon:N})))},"rf");var WO8=["en-CA","en","es-MX","fr-CA"];var H5m=_.mO(function(p){var x=_.Vg(p,{isOverlay:!1}),F=x.captionIconType,N=x.onClick;p=x.ariaLabel;var h=x.ariaPressed,c=x.isOverlay;x=_.oc(function(K){pu(K,127299)});
var M=_.h0(function(K){xW(127299);N==null||N(K);return!1}),f={};
return _.Z("ytm-closed-captioning-button",{class:_.$L("ytmClosedCaptioningButtonHost",(f.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return F()===-1&&c()},f.ytmClosedCaptioningButtonIconDisabled=function(){return F()===-1&&!c()},f))},_.Z("button",{el:x,
class:"ytmClosedCaptioningButtonButton",title:p,"aria-label":p,"aria-pressed":h,"on:click":M},_.Z(_.DS,{icon:function(){var K="";var t=_.rH().get("hl");t=!t||WO8.includes(t)?"CLOSED_CAPTION":"SUBTITLES";var d=F();switch(d){case -1:case 0:K=t;break;case 1:K=t+"_FILLED";break;default:_.Pb(d)}return K}})))},"sf");
H5m.idomCompat={callbacks:{onClick:!0}};var ef="";var mut=_.mO(function(p){var x=p.playerControlsProps,F=p.onClickFn;p=_.Kn(function(){var c=x(),M=-1;c.captionsAvailable&&(M=c.captionsEnabled?1:0);return M},void 0,"WecR8e");
var N=_.Kn(function(){var c=x();return c.captionsAvailable?_.JG(c.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.JG("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),h=_.Kn(function(){var c=x();
c=c.captionsAvailable?c.captionsEnabled:void 0;return c},void 0,"Q17ly");
return _.Z("yt-closed-captions-toggle-button",null,_.Z(H5m,{captionIconType:p,ariaLabel:N,ariaPressed:h,onClick:function(c){var M=x();if(M.captionsAvailable){var f=M.playerApi;if(f){var K=M.playerApi;if(K){var t=ef;if(t){K=K.getOption("captions","track");var d;ef=(d=K?K.displayName:null)!=null?d:t}else K.getOptions("captions")?(t=N6k(K),ef=t.length?(d=hye(t))?d.displayName:t[0].displayName:""):ef=""}lIX(f);_.S("mweb_disable_set_state_captions_killswitch")&&M.setState({captionsEnabled:!M.captionsEnabled})}}var v,
C;(C=(v=M.appApi).showCaptionsToggleToast)==null||C.call(v,M);F==null||F(c)},
isOverlay:!0}))},"tf");var oJH=_.mO(function(p){var x=p.data;return _.Z("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.Z(_.kw,{data:function(){return{type:16,text:_.K5p(x().label)}}}))},"uf");var O58=_.mO(function(p){var x=_.$L("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return p.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return p.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return p.size()==="small"?p.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
p.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.Z("animated-seek-arrows",{class:_.$L("ytPlayerControlsAnimatedSeekArrowsHost")},_.Z("span",{class:x}),_.Z("span",{class:x}),_.Z("span",{class:x}))},"vf");
O58.idomCompat=!0;var jdm=_.mO(function(){var p=_.JG("PLAYER_SECONDS",{seconds_placeholder:"30"}),x=_.a(_.hu(!1,void 0,"Yj8msb")),F=x.next().value,N=x.next().value,h=_.a(_.hu(!1,void 0,"r9Z50e"));x=h.next().value;var c=h.next().value;h={};var M=_.$L("jumpForwardOverlayOverlay",(h.jumpForwardOverlayOverlayHidden=x,h));_.J9(function(){var f=null,K=null,t=function(){f!==null&&_.nP().cancelJob(f);K!==null&&_.nP().cancelJob(K);c(!0);N(!0);_.TT(_.nP(),function(){c(!1)});
f=_.TT(_.nP(),function(){c(!0);K=_.TT(_.nP(),function(){N(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",t);_.E_(function(){window.removeEventListener("jump-forward-clicked",t)})});
return _.Z("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.Z(_.D9,{cond:F,then:function(){return _.Z("div",{class:M},_.Z(O58,{direction:1,size:"large"}),_.Z("div",null,p))}}))},"wf");var nv_=_.Tf.MUTE_VOLUME,sf_=_.Tf.UNMUTE_VOLUME,LOH=_.mO(function(p){var x=p.muteIconType;var F=p.onClick;var N=p.useOutlineIcon;p=_.oc(function(M){pu(M,28662)});
var h=function(){return yGt(x(),N==null?void 0:N()).ariaLabel},c=_.h0(function(M){xW(28662);
F==null||F(M);return!1});
return _.Z("ytm-mute-button",{class:"ytmMuteButtonHost"},_.Z("button",{el:p,class:"ytmMuteButtonButton",title:h,"aria-label":h,"on:click":c},_.Z("span",null,_.Z(_.DS,{icon:function(){return yGt(x(),N==null?void 0:N()).iconName}}))))},"xf");var P8k=_.mO(function(p){var x=p.volumeProps;var F=p.onClickFn;var N=p.useOutlineIcon;return _.Z("yt-mute-toggle-button",null,_.Z(LOH,{muteIconType:function(){var h=x(),c=!_.S("mweb_treat_zero_volume_as_muted_killswitch")&&h.volume===0;return h.volumeMuted||c?0:1},
onClick:function(h){var c=x().playerApi;c&&(c.isMuted()?c.unMute():c.mute(!1));F==null||F(h)},
useOutlineIcon:function(){return!(N==null||!N())}}))},"yf");
P8k.idomCompat=!0;var Toe=_.mO(function(p){var x=p.data;var F=_.oc();p=_.h0(function(){F.value.classList.add("ytmPaidContentOverlayHidden");return!1});
return _.Z("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:F,"on:animationend":p},_.Z(_.fQ,{command:function(){return x().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.Z(_.D9,{cond:function(){var N;return(N=x().icon)==null?void 0:N.iconType},
then:function(){return _.Z("span",null,_.Z(_.DS,{icon:function(){var N;return(N=x().icon)==null?void 0:N.iconType}}))}}),_.Z("div",{class:"ytmPaidContentOverlayText"},_.Z(_.KQ,{text:function(){return x().text}})),_.Z(_.D9,{cond:function(){return x().navigationEndpoint},
then:function(){return _.Z(_.DS,{icon:"CHEVRON_RIGHT"})}})))},"zf");
Toe.idomCompat=!0;var bcm=[].concat(_.se([{register:function(p){var x=ov8(p),F;(F=p().playerApi)==null||F.addEventListener("onVolumeChange",x);return function(){}}},
{register:function(p){var x=OcX(p);p=p().playerApi;p==null||p.addEventListener("captionschanged",x);p==null||p.addEventListener("captionssettingschanged",x);p==null||p.addEventListener("onCaptionsTrackListChanged",x);return function(){}}},
{register:function(p){if(!_.S("mweb_screenreader_accessible_player"))return function(){};
var x=jfk(p),F=document.querySelector("video");F==null||F.addEventListener("touchend",x);return function(){F==null||F.removeEventListener("touchend",x)}}},
{register:function(p){if(!_.S("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var x=jfk(p),F=document.querySelector("video");F==null||F.addEventListener("focus",x);return function(){F==null||F.removeEventListener("focus",x)}}}]),[{register:function(p){var x=Vzm(p),F;
(F=p().playerApi)==null||F.addEventListener("onStateChange",x);return function(){}}},
{register:function(p){var x=WTc(p),F;(F=p().playerApi)==null||F.addEventListener("onPlaybackRateChange",x);return function(){}}},
{register:function(p){var x=Hc8(p),F;(F=p().playerApi)==null||F.addEventListener("onVideoDataChange",x);return function(){}}},
{register:function(p){var x=mtm(p),F,N;(F=p())==null||(N=F.playerApi)==null||N.addEventListener("onVideoProgress",x);return function(){}}}]);var Bo8=_.mO(function(p){var x=p.data;var F=function(){return _.JG("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+x().playbackRate})};
return _.Z(_.D9,{cond:function(){return x().playbackRate&&x().playbackRate!==1},
then:function(){return _.Z("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.Z("div",{class:"ytPlaybackRateOverlayOverlay"},_.Z(O58,{direction:1,size:"small"}),_.Z("div",{class:"ytPlaybackRateOverlayLabel"},F)))}})},"Af");var Rne=_.mO(function(p){var x=p.data;return _.Z("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.Z(_.D9,{cond:function(){var F,N=(F=x())==null?void 0:F.playerResponse,h;return N==null?void 0:(h=N.paidContentOverlay)==null?void 0:h.paidContentOverlayRenderer},
then:function(F){return _.Z(Toe,{data:F})}}))},"Cf"),kDH=_.mO(function(p){var x=p.props;
var F=p.data;var N=p.options;var h=function(){var t,d,v,C;return(t=F())==null?void 0:(d=t.playerResponse)==null?void 0:(v=d.playerConfig)==null?void 0:(C=v.inlinePlaybackConfig)==null?void 0:C.showAudioControls},c=function(){var t,d;
if(h()&&((t=N())==null?void 0:(d=t.additionalButton)==null?void 0:d.button)!==void 0){var v,C,X;t=(v=F())==null?void 0:(C=v.playerApi)==null?void 0:(X=C.getSize())==null?void 0:X.height;if(!(t===void 0||t<184)){var Q,b;return(Q=N())==null?void 0:(b=Q.additionalButton)==null?void 0:b.button}}},M=function(){var t,d;
return(t=N())==null?void 0:(d=t.additionalButton)==null?void 0:d.thumbnailOverlayButtonRenderers},f=function(){var t,d;
return(t=N())==null?void 0:(d=t.additionalButton)==null?void 0:d.thumbnailOverlayButtonViewModels},K=function(){var t=[_.Z(P8k,{volumeProps:x}),
_.Z(mut,{playerControlsProps:x})];c()===1&&t.push(_.Z(YQa,{playerApi:function(){return x().playerApi}}));
c()===2&&t.push(_.Z(wTm,{appApi:function(){return x().appApi}}));
c()===3&&t.push(_.Z(GDX,{playerApi:function(){return x().playerApi}}));
var d=M();if(c()===4&&d){d=_.a(d);for(var v=d.next(),C={};!v.done;C={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$53:void 0,command$jscomp$565:void 0},v=d.next()){v=v.value;C.tooltip$jscomp$2=v.tooltip;var X=void 0,Q=void 0;C.ariaLabel$jscomp$20=((X=v.accessibility)==null?void 0:(Q=X.accessibilityData)==null?void 0:Q.label)||C.tooltip$jscomp$2;X=void 0;C.icon$jscomp$53=(X=v.icon)==null?void 0:X.iconType;C.command$jscomp$565=v.command;C.tooltip$jscomp$2&&C.ariaLabel$jscomp$20&&C.icon$jscomp$53&&
t.push(_.Z(VAm,{title:function(b){return function(){return b.tooltip$jscomp$2}}(C),
ariaLabel:function(b){return function(){return b.ariaLabel$jscomp$20}}(C),
icon:function(b){return function(){return b.icon$jscomp$53}}(C),
command:function(b){return function(){return b.command$jscomp$565}}(C)}))}}d=f();
if(c()===4&&d)for(d=_.a(d),v=d.next(),C={};!v.done;C={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$54:void 0,command$jscomp$566:void 0},v=d.next())v=v.value,C.tooltip$jscomp$3=v.title,C.ariaLabel$jscomp$21=v.accessibilityText||C.tooltip$jscomp$3,C.icon$jscomp$54=v.iconName,C.command$jscomp$566=_.g$(v.onTap),C.tooltip$jscomp$3&&C.ariaLabel$jscomp$21&&C.icon$jscomp$54&&t.push(_.Z(VAm,{title:function(b){return function(){return b.tooltip$jscomp$3}}(C),
ariaLabel:function(b){return function(){return b.ariaLabel$jscomp$21}}(C),
icon:function(b){return function(){return b.icon$jscomp$54}}(C),
command:function(b){return function(){return b.command$jscomp$566}}(C)}));
return t};
return _.Z(_.D9,{cond:h,then:function(){return _.Z("div",{class:"ytInlinePlayerControlsTopRightControls"},_.Z(_.ft,{each:K},function(t){return _.Z("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.Z("div",{class:"ytInlinePlayerControlsButtonIcon"},t))}))}})},"Df"),Ivc=_.mO(function(p){var x=p.props;
var F=p.data;var N=p.options;p={};p=_.$L("ytInlinePlayerControlsBottomRightControls",(p.ytInlinePlayerControlsBottomRightControlsHidden=function(){var h;return PA8(F(),N())&&((h=N())==null?void 0:h.insetProgressBar)&&(x().isHovering||x().isDragging)},p));
return _.Z("div",{class:p},_.Z(Uuc,{data:F}),_.Z(_.D9,{cond:function(){var h;return!((h=N())==null?0:h.hideTimeDisplay)},
then:function(){return _.Z(i5c,{props:x})}}))},"Ef"),Uuc=_.mO(function(p){var x=p.data;
return _.Z(_.Es,{data:function(){var F;return zhe((F=x())==null?void 0:F.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:oJH})},"Ff"),i5c=_.mO(function(p){var x=p.props;
return _.Z(_.D9,{cond:function(){return x().isLive},
then:function(){return _.Z($uc,null)},
else:function(){return _.Z(ene,{props:x})}})},"Gf"),ene=_.mO(function(p){var x=p.props;
return _.Z("div",{class:_.$L("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.Tf.PLAYER_TIME_ELAPSED+" "+_.WGz(x().playedTime)}},_.Z(_.kw,{data:function(){return{type:16,
text:_.WGz(x().videoDuration-x().playedTime)}}}))},"Hf"),$uc=_.mO(function(){return _.Z("div",{class:_.$L("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.Z(_.kw,{data:{type:17,
text:_.Tf.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"If"),plH=_.mO(function(p){var x=p.props;
var F=p.data;var N=p.options;return _.Z(_.GWX,{progressBarProps:x,config:function(){var h,c=_.r((h=F())==null?void 0:h.multiMarkersPlayerBar,_.kNJ),M;h=((M=N())==null?0:M.insetProgressBar)?2:1;var f;M=(f=N())==null?void 0:f.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:h,chapterData:c,isInlinePlayback:!0,doSeekOnClick:M,playheadDotBehavior:M?1:0}}})},"Jf");_.o7(_.mO(function(p){var x=p.data;var F=p.appApi;var N=p.options;var h=G6_(x,LTX(F));p={};F={};return _.Z("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.Z("div",{class:_.$L("ytInlinePlayerControlsDarkenedOverlay",(p.ytInlinePlayerControlsDarkenedOverlayShow=function(){return h().isHovering},p))}),_.Z(jdm,null),_.Z(Bo8,{data:h}),_.Z(Rne,{data:x}),_.Z(uf8,{playerControlsProps:h,
isShortsPage:!1}),_.Z("div",{class:_.$L((F.ytInlinePlayerControlsControlsHidden=function(){return h().isDragging},F))},_.Z(kDH,{props:h,
data:x,options:N}),_.Z(Ivc,{props:h,data:x,options:N})),_.Z(_.D9,{cond:function(){return PA8(x(),N())},
then:function(){return _.Z(plH,{props:h,data:x,options:N})}}))},"Bf"),"yt-inline-player-controls",{props:{data:_.G2,
appApi:_.mJ,options:_.G2}});var B1,xdc=function(){var p=_.m.apply(this,arguments)||this;p.opts=null;p.playerControlsData=null;p.playerControlsAppApi={openInMiniplayer:function(){p.openInMiniplayer()}};
p.playerControlsOptions={};p.noAnimation=!1;p.playbackIntentTriggered=!1;p.positionData=null;p.hidden=!0;p.active=!1;p.playing=!1;p.videoPreviewDataIndex=0;p.JSC$16713_playerPromise=null;p.player=null;p.enableAudioControls=!1;p.hasBeenUnmuted=!1;p.captionsHaveBeenTurnedOff=!1;p.JSC$16713_playerEvents=new Map;p.videoPreviewFetchRequest=null;p.scheduledPreviewEndJobId=null;p.JSC$16713_preventProgressSaveTimer=null;p.watchEndpointStartTimeUpdaterInterval=null;p.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};p.windowOnBlurFn=function(){p.deactivate()};
return p};
_.E(xdc,_.m);_.l=xdc.prototype;
_.l.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.S("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"}}}};
_.l.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16713_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16713_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16713_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16713_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.p5(this,this.onPageTypeChange));this.pagePath=location.pathname};
_.l.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn)};
_.l.onPageTypeChange=function(){this.deactivate()};
_.l.onWindowResized=function(){this.deactivate()};
_.l.onCaptionsChanged=function(p){p=!!p.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!p);this.setCaptionSize()};
_.l.setCaptionSize=function(){var p;if(this.active&&!this.captionsHaveBeenTurnedOff&&((p=this.player)==null?0:p.getCaptionWindowContainerId())){var x;(x=this.player)==null||x.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.l.currentPageAllowed=function(){return!this.isWatchPage};
_.l.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var p=this.positionData,x=p.initialTopPosition,F=p.initialHorizontalPosition;_.eV(this.hostElement,{"--ytd-video-preview-translate-left":p.finalHorizontalPosition-F+"px","--ytd-video-preview-translate-top":p.finalTopPosition-x+"px","--ytd-video-preview-original-top-position":x+"px","--ytd-video-preview-original-horizontal-position":F+"px",
"--ytd-video-preview-initial-scale":"scale("+p.initialScale+")","--ytd-video-preview-width":p.videoPreviewWidth+"px","--ytd-video-preview-height":p.videoPreviewHeight+"px"});return!0};
_.l.handleOpenVideoPreviewAction=function(p){var x=this,F;return _.D(function(N){if(!x.currentPageAllowed())return N.return(0);x.opts=p;return(F=x.alignVideoPreviewForAnimation(p.thumbnail))?N.return(x.activate()):N.return(0)})};
_.l.onMouseLeave=function(p){this.shouldDeactivateOnMouseLeave(p)&&this.deactivate()};
_.l.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.E0.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.l.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.l.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",B1.JSC$16712_DEFAULT_CLICK_LOCATION_BEHAVIOR,B1.JSC$16712_CLICK_LOCATION_ID_MAP)};
_.l.shouldDeactivateOnMouseLeave=function(p){p=p.relatedTarget;if(!p)return!0;var x;return(x=this.opts)!=null&&x.mediaRenderer?!_.Ub(this.opts.mediaRenderer).contains(p):!0};
_.l.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.l.onPlaybackStart=function(){var p=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$16713_preventProgressSaveTimer=
_.TT(_.E0,function(){p.resetPreventProgressSaveTimer()},1E4);
var x;if((x=this.opts)==null?0:x.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.TT(_.E0,function(){p.hasMultipleVideoPreviews()?p.startPlaybackForNextVideo():p.deactivate()},this.opts.videoPreviewDurationMs);
var F;this.player.setGlobalCrop(((F=this.opts)==null?0:F.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.l.getRoundedCornersSize=function(){var p;if((p=this.opts)==null?0:p.roundedCornersSize){var x;return(x=this.opts)==null?void 0:x.roundedCornersSize}var F;if((F=this.opts)==null?0:F.enableRounding){var N;if(((N=this.opts)==null?void 0:N.thumbnailSize)==="small")return 1;var h;if(((h=this.opts)==null?void 0:h.thumbnailSize)==="medium")return 2;var c;if(((c=this.opts)==null?void 0:c.thumbnailSize)==="large")return 3}return _.S("web_imp_inset_progress_bar")?3:0};
_.l.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.l.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.l.onMediaContainerClick=function(p){this.isShortcutClick(p)||(this.navigateToWatch(p),p.preventDefault(),p.stopPropagation())};
_.l.activate=function(){var p=this,x,F,N,h,c,M,f,K;return _.D(function(t){switch(t.nextAddress){case 1:if(!p.currentPageAllowed())return t.return(0);F=(x=p.videoPreviewData)==null?void 0:x.inlinePlaybackEndpoint;N=_.uT.instance;if(!F||!N)return t.return(0);p.playbackIntentTriggered=!0;((h=p.opts)==null?0:h.mediaRenderer)&&Qf8(p.opts.mediaRenderer,function(){p.deactivate()});
_.jB(p,function(){p.revealPreviewUi()});
c={};_.S("enable_unknown_lact_fix_on_html5")&&(_.J().resolve(_.CQ),c.lact=_.U0());p.videoPreviewFetchRequest=CAX(N,p.getInlinePlaybackRequestData(p.videoPreviewData),c);_.KM(t,2);return _.q(t,p.videoPreviewFetchRequest,4);case 4:M=t.yieldResult;if(((f=M)==null?void 0:(K=f.playabilityStatus)==null?void 0:K.status)==="OK")return t.return(p.handlePlayerResponse(M));throw Error("Hj");case 2:_.v9(t),p.deactivate();case 3:return t.return(1)}})};
_.l.getInlinePlaybackRequestData=function(p){var x,F=_.S("web_imp_player_mute_params")?((x=this.opts)==null?void 0:x.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:p.inlinePlaybackEndpoint,startPlaybackInMutedState:F}};
_.l.handlePlayerResponse=function(p){var x=this,F,N,h,c,M,f,K,t,d,v;return _.D(function(C){if(C.nextAddress==1){F=x.getInlinePlaybackVideoId();if(!(((N=p)==null?0:(h=N.videoDetails)==null?0:h.videoId)&&x.currentPageAllowed()&&x.playbackIntentTriggered&&x.opts&&F))return x.deactivate(),C.return(0);if(p.videoDetails.videoId!==F)return C.return(0);x.enableAudioControls=!!((c=p.playerConfig)==null?0:(M=c.inlinePlaybackConfig)==null?0:M.showAudioControls);p.trackingParams=x.getInlinePlaybackTrackingParams();
if(!x.inlinePlayer)return C.return(0);f={};if(t=_.r((K=x.videoPreviewData)==null?void 0:K.inlinePlaybackEndpoint,_.B7))f.watch_endpoint=t;if(x.videoPreviewData){var X,Q=(X=_.r(x.videoPreviewData.inlinePlaybackEndpoint,_.B7))==null?void 0:X.startTimeSeconds;Q!==void 0&&(p.playerConfig||(p.playerConfig={}),p.playerConfig.playbackStartConfig||(p.playerConfig.playbackStartConfig={}),p.playerConfig.playbackStartConfig.startPosition||(p.playerConfig.playbackStartConfig.startPosition={}),p.playerConfig.playbackStartConfig.startSeconds=
Q,p.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(Q*1E3))}x.inlinePlayer.loadVideoWithPlayerResponse(p,f);if(x.JSC$16713_playerPromise)return C.jumpTo(2);x.JSC$16713_playerPromise=x.inlinePlayer.getPlayerPromise();return _.q(C,x.JSC$16713_playerPromise,3)}C.nextAddress!=2&&(d=C.yieldResult,d.setInlinePreview(!0),d.setSizeStyle(!1,!0),x.ytPlayerListenerBehavior.listenToPlayerEvents(d,x.JSC$16713_playerEvents),x.player=d,_.hG(x.hostElement,"player-api-ready"));((v=x.opts)==
null?0:v.showPlayerControls)&&x.videoPreviewData&&x.player&&(x.playerControlsData={playerResponse:p,isInlinePlayback:!0,thumbnailOverlays:x.videoPreviewData.thumbnailOverlays,playerApi:x.player},x.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!x.unroundCornersForPlayback,additionalButton:x.getAdditionalButtonType(x.videoPreviewData.thumbnailOverlays)});return C.return(2)})};
_.l.revealPreviewUi=function(){var p=this;this.playbackIntentTriggered&&_.EgB(this,function(){p.hasThumbnailPositionChangedSinceTriggered()||(p.updateActiveState(!0),p.noAnimation=!1)})};
_.l.hasThumbnailPositionChangedSinceTriggered=function(){var p=this.positionData,x=this.getThumbnailPositionData();return(p==null?void 0:p.initialTopPosition)!==(x==null?void 0:x.initialTopPosition)||(p==null?void 0:p.initialHorizontalPosition)!==(x==null?void 0:x.initialHorizontalPosition)};
_.l.getThumbnailPositionData=function(){var p,x;if((x=this.opts)==null||!x.thumbnail)return null;x=this.opts.thumbnail;var F=((p=this.opts)==null?0:p.cropPlayerToFillThumbnailHorizontally)?!1:!0;var N=x.getBoundingClientRect();p=N.width;x=N.height;var h=N.top+window.scrollY;N=N.left+window.scrollX;var c=F?Math.ceil(p):p;F=F?Math.ceil(x):x;var M=p/c;p={initialScale:M,initialTopPosition:h-12*M,finalTopPosition:h-12-(F-x)/2,initialHorizontalPosition:N-(12+(c-p)/2),finalHorizontalPosition:N-12-(c-p)/
2,videoPreviewWidth:c,videoPreviewHeight:F};return p};
_.l.updateActiveState=function(p){this.active=p;this.ytdReduxBehavior.dispatch(_.F4({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:p}))};
_.l.stopPlayer=function(p){p=p.resetWatchEndpointStartTime===void 0?!1:p.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(p)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.E0.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.l.deactivate=function(p){p=p===void 0?{}:p;p=p.resetWatchEndpointStartTime===void 0?!1:p.resetWatchEndpointStartTime;lf&&(lf.disconnect(),lf=null);this.stopPlayer({resetWatchEndpointStartTime:p});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.l.isValidThumbnailOverlayButton=function(p,x){p=p.thumbnailOverlayButtonRenderer;var F;return!!p&&!!p.tooltip&&!((F=p.icon)==null||!F.iconType)&&x.includes(p.icon.iconType)};
_.l.isValidThumbnailOverlayButtonViewModel=function(p,x){var F;p=_.r((F=p.thumbnailOverlayButtonViewModel)==null?void 0:F.overlayButton,_.X6);return!!p&&!!p.title&&!!p.iconName&&x.includes(p.iconName)};
_.l.getAdditionalButtonType=function(p){var x=this;if(_.S("web_imp_fastforward_button"))return{button:1};if(_.S("web_imp_miniplayer_button"))return{button:2};if(_.S("web_imp_playback_speed_button"))return{button:3};var F=["AUTO_AWESOME"],N=(p||[]).filter(function(c){return x.isValidThumbnailOverlayButton(c,F)}).map(function(c){return c.thumbnailOverlayButtonRenderer});
if(N.length)return{button:4,thumbnailOverlayButtonRenderers:N};var h=["AUTO_AWESOME"];p=(p||[]).filter(function(c){return x.isValidThumbnailOverlayButtonViewModel(c,h)}).map(function(c){return _.r(c.thumbnailOverlayButtonViewModel.overlayButton,_.X6)});
if(p.length)return{button:4,thumbnailOverlayButtonViewModels:p}};
_.l.allowCaptions=function(){var p;return!((p=this.opts)==null?0:p.forceCaptionsOff)};
_.l.allowUnmuting=function(){var p;return this.enableAudioControls&&!((p=this.opts)==null?0:p.forceMutedVolume)};
_.l.beginStartTimeUpdater=function(){var p=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.pf(function(){p.updateWatchEndpointStartTime()},1E3)};
_.l.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.l.resetPreventProgressSaveTimer=function(){this.JSC$16713_preventProgressSaveTimer!==null&&(_.E0.cancelJob(this.JSC$16713_preventProgressSaveTimer),this.JSC$16713_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.l.updateWatchEndpointStartTime=function(p){var x=this.videoPreviewData;if(this.player&&x!=null&&x.inlinePlaybackEndpoint&&!this.JSC$16713_preventProgressSaveTimer){p=p?0:Math.floor(this.player.getCurrentTime());var F=_.r(x.navigationEndpoint,_.B7);F&&(F.startTimeSeconds=p);if(x=_.r(x.inlinePlaybackEndpoint,_.B7))x.startTimeSeconds=p}};
_.l.isShortcutClick=function(p){return!!p&&(p.ctrlKey||p.shiftKey||p.metaKey)};
_.l.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.l.openInMiniplayer=function(){var p=this,x,F;return _.D(function(N){if(N.nextAddress==1){F=(x=p.videoPreviewData)==null?void 0:x.navigationEndpoint;if(!F)return N.return();_.fb().lockupActivation=!0;return _.q(N,_.K4C(_.J().resolve(_.H$),F),2)}_.fb().userActivation=!0;_.JB(N)})};
_.l.navigateToWatch=function(p){var x,F=(x=this.videoPreviewData)==null?void 0:x.navigationEndpoint;if(F){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(F,p,!0);else{if(_.S("web_thumbnail_to_watch_transition")){var N,h;(N=this.opts)==null||(h=N.onNavigateToWatchCallback)==null||h.call(N)}_.hG(this.hostElement,"yt-navigate",{endpoint:F})}this.deactivate()}};
_.l.getInlinePlaybackVideoId=function(){var p,x;return(x=_.r((p=this.videoPreviewData)==null?void 0:p.inlinePlaybackEndpoint,_.B7))==null?void 0:x.videoId};
_.l.getInlinePlaybackTrackingParams=function(){var p,x;return(p=this.videoPreviewData)==null?void 0:(x=p.inlinePlaybackEndpoint)==null?void 0:x.clickTrackingParams};
_.l.hasMultipleVideoPreviews=function(){var p;return!!(((p=this.opts)==null?0:p.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.l.startPlaybackForNextVideo=function(){var p;(p=this.opts)!=null&&p.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())};
_.R8.Object.defineProperties(xdc.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.opts)==null?0:p.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.opts)==null||!p.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 p;if(Array.isArray((p=this.opts)==null?void 0:p.videoPreviewData)){var x;return(x=this.opts)==null?void 0:x.videoPreviewData[this.videoPreviewDataIndex]}var F;return(F=this.opts)==null?void 0:F.videoPreviewData}}});
var R5=B1=xdc;B1.prototype.onIsAdsVideoChange=B1.prototype.onIsAdsVideoChange;B1.prototype.onInlinePreviewIsEnabledChange=B1.prototype.onInlinePreviewIsEnabledChange;B1.prototype.optsChanged=B1.prototype.optsChanged;B1.prototype.onMouseLeave=B1.prototype.onMouseLeave;R5.JSC$16712_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);R5.JSC$16712_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"}];
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],R5.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],R5.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.oz.YtPlayerListenerBehavior),_.k("design:type",_.O7)],R5.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],R5.prototype,"componentBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],R5.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],R5.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.ih.YtSparklesClickLocationBehavior),_.k("design:type",Object)],R5.prototype,"ytSparklesClickLocationBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],R5.prototype,"opts",void 0);_.B([_.H(),_.k("design:type",Object)],R5.prototype,"playerControlsData",void 0);
_.B([_.H(),_.k("design:type",Object)],R5.prototype,"playerControlsAppApi",void 0);_.B([_.H(),_.k("design:type",Object)],R5.prototype,"playerControlsOptions",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],R5.prototype,"noAnimation",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],R5.prototype,"hidden",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],R5.prototype,"active",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],R5.prototype,"playing",void 0);_.B([_.H({selector:_.nxm}),_.k("design:type",Boolean)],R5.prototype,"inlinePreviewIsEnabled",void 0);_.B([_.H(),_.k("design:type",String)],R5.prototype,"pagePath",void 0);_.B([_.H({selector:_.A$}),_.k("design:type",Boolean)],R5.prototype,"isWatchPage",void 0);_.B([_.w("videoPreviewData"),_.k("design:type",Object),_.k("design:paramtypes",[])],R5.prototype,"thumbnailData",null);
_.B([_.w("opts","active"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],R5.prototype,"hidePlayerControls",null);_.B([_.w("opts"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],R5.prototype,"isAdsVideo",null);_.B([_.w("opts"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],R5.prototype,"roundedCornersSmall",null);
_.B([_.w("opts"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],R5.prototype,"roundedCornersMedium",null);_.B([_.w("opts"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],R5.prototype,"roundedCornersLarge",null);_.B([_.w("opts"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],R5.prototype,"unroundCornersForPlayback",null);
_.B([_.w("opts","videoPreviewDataIndex"),_.k("design:type",Object),_.k("design:paramtypes",[])],R5.prototype,"videoPreviewData",null);_.B([_.H(),_.k("design:type",Object)],R5.prototype,"videoPreviewDataIndex",void 0);_.B([_.Ff("#inline-player"),_.k("design:type",Object)],R5.prototype,"inlinePlayer",void 0);_.B([_.V("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[MouseEvent]),_.k("design:returntype")],R5.prototype,"onMouseLeave",null);
_.B([_.cT("opts"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],R5.prototype,"optsChanged",null);_.B([_.cT("inlinePreviewIsEnabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],R5.prototype,"onInlinePreviewIsEnabledChange",null);_.B([_.W("isAdsVideo"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],R5.prototype,"onIsAdsVideoChange",null);
R5=B1=_.B([_.L({is:"ytd-video-preview",disableElementRegistration:!0})],R5);
_.P(R5,"ytd-video-preview",function(){if(AZH!==void 0)return AZH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return AZH=p},{mode:2});
}catch(e){_._DumpException(e)}
try{
var cla;var aWD;/*

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
*/
_.qu({_template:function(){if(aWD!==void 0)return aWD;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;cla===void 0&&(cla=document.createElement("template"));var N=cla;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return aWD=p},
is:"tp-yt-paper-checkbox",behaviors:[_.YgJ],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.jB(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var p=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),x="px",F=p.match(/[A-Za-z]+$/);F!==null&&(x=F[0]);p=parseFloat(p);F=8/3*p;x==="px"&&(F=Math.floor(F),F%2!==p%2&&F++);this.updateStyles({"--paper-checkbox-ink-size":F+
x})}})},
_computeCheckboxClass:function(p,x){var F="";p&&(F+="checked ");x&&(F+="invalid");return F},
_computeCheckmarkClass:function(p){return p?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.Afn._createRipple.call(this)}});var MBk=new _.U("radioButtonSurveyOptionRenderer"),Dn8=new _.U("checkboxSurveyOptionRenderer");var fW8;var Kf8;var q4D=0,ZNH=function(){var p=_.m.call(this)||this;p.selected=!1;p.isOverlay=!1;p.inputId="toggle-option-"+q4D;q4D++;return p};
_.E(ZNH,_.m);ZNH.prototype.onTap=function(){_.hG(this.hostElement,"ytd-toggle-option-clicked")};
var Yr=ZNH;_.B([_.H(),_.k("design:type",String)],Yr.prototype,"label",void 0);_.B([_.H(),_.k("design:type",String)],Yr.prototype,"inputId",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Yr.prototype,"selected",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Yr.prototype,"isOverlay",void 0);Yr=_.B([_.L({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.k("design:paramtypes",[])],Yr);
_.P(Yr,"ytd-toggle-option-renderer",function(){if(Kf8!==void 0)return Kf8;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Kf8=p},{mode:1});var tBD=function(){var p=_.m.apply(this,arguments)||this;p.isToggleOption=!1;p.isOverlay=!1;return p};
_.E(tBD,_.m);tBD.prototype.onTap=function(p){p.preventDefault();this.data&&(p=!this.data.checked,this.set("data.checked",p),_.hG(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:p,value:this.data.value}))};
_.R8.Object.defineProperties(tBD.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
var wQ=tBD;wQ.prototype.onTap=wQ.prototype.onTap;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],wQ.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],wQ.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],wQ.prototype,"isToggleOption",void 0);_.B([_.H(),_.k("design:type",Object)],wQ.prototype,"isOverlay",void 0);_.B([_.w("data.responseText"),_.k("design:type",String),_.k("design:paramtypes",[])],wQ.prototype,"label",null);
_.B([_.V("ytd-toggle-option-clicked"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],wQ.prototype,"onTap",null);wQ=_.B([_.L({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],wQ);
_.P(wQ,"ytd-checkbox-survey-option-renderer",function(){if(fW8!==void 0)return fW8;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return fW8=p},{mode:1});var dnm;var vMm;var Jlt=function(){var p=_.m.apply(this,arguments)||this;p.checked=!1;p.isToggleOption=!1;return p};
_.E(Jlt,_.m);Jlt.prototype.onTap=function(){this.data&&(this.checked?_.lA(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.lA(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
var GQ=Jlt;GQ.prototype.onTap=GQ.prototype.onTap;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],GQ.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],GQ.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],GQ.prototype,"checked",void 0);_.B([_.H(),_.k("design:type",Object)],GQ.prototype,"isToggleOption",void 0);
_.B([_.V("ytd-toggle-option-clicked"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],GQ.prototype,"onTap",null);GQ=_.B([_.L({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],GQ);
_.P(GQ,"ytd-radio-button-survey-option-renderer",function(){if(vMm!==void 0)return vMm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return vMm=p},{mode:1});var CLH=function(){var p=_.m.apply(this,arguments)||this;p.disableAnimation=!1;p.isToggleOption=!0;p.followUpSurveyCommand=null;p.selectedRatingEndpoint=null;p.isSlimlineSurveyFollowUp=!1;p.isShortsStyle=!1;p.styleOverrideAttribute=!0;p.isDarkMode=!1;p.isSubmitted=!1;p.roundedContainer=!0;p.improveShortsResponseRate=_.S("web_improve_shorts_response_rate");p.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 p};
_.E(CLH,_.m);_.l=CLH.prototype;
_.l.configureRendererStamper=function(){return{"data.inlineContent":{id:"inline-survey-compact-video-renderer",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",properties:{isShortsStyle:"[[isShortsStyle]]"}}}},"data.response.expandableSurveyResponseRenderer.options":{id:"rating-survey",mapping:{ratingSurveyRenderer:{component:"ytd-rating-survey-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]",
showResponseRangeText:"[[isShortsStyle]]"}}}},"followUpSurveyCommand.followUpOptions":{id:"follow-up-survey-options",mapping:{checkboxSurveyOptionRenderer:{component:"ytd-checkbox-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]",isOverlay:"[[isShortsStyle]]"}},radioButtonSurveyOptionRenderer:{component:"ytd-radio-button-survey-option-renderer",properties:{isToggleOption:"[[isToggleOption]]"}}}},"data.response.expandableSurveyResponseRenderer.skipButton":{id:"skip-btn-footer",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.response.expandableSurveyResponseRenderer.continueButton":{id:"continue-btn-footer",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"post-submit-message",mapping:{messageRenderer:{component:"ytd-message-renderer"}}}}};
_.l.attached=function(){var p=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(F){var N;if((N=F[0])!=null&&N.isIntersecting){_.hD().reportShown(p.hostElement);var h;(h=p.intersectionObserver)==null||h.unobserve(p.hostElement)}},{rootMargin:"0px",
threshold:.6});var x;(x=this.intersectionObserver)==null||x.observe(this.hostElement)};
_.l.onDarkModeToggledAction=function(p){this.isDarkMode=p};
_.l.dataChanged=function(){var p;if(((p=this.data)==null?void 0:p.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var x;((x=this.data)==null?void 0:x.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var F,N,h,c;this.darkColorPalette=(F=this.data)==null?void 0:(N=F.inlineContent)==null?void 0:(h=N.compactVideoRenderer)==null?void 0:(c=h.thumbnail)==null?
void 0:c.darkColorPalette;var M,f,K,t;this.lightColorPalette=(M=this.data)==null?void 0:(f=M.inlineContent)==null?void 0:(K=f.compactVideoRenderer)==null?void 0:(t=K.thumbnail)==null?void 0:t.lightColorPalette;var d,v;if(((d=this.data)==null?0:(v=d.inlineContent)==null?0:v.compactVideoRenderer)&&this.isShortsStyle){var C,X,Q,b;p=_.j6((C=this.data)==null?void 0:(X=C.inlineContent)==null?void 0:(Q=X.compactVideoRenderer)==null?void 0:(b=Q.thumbnail)==null?void 0:b.thumbnails);_.eV(this.hostElement,
{"--yt-background-url":"url("+p+")"})}};
_.l.handleRequestCompletion=function(){this.hostElement.hidden&&_.hG(this.hostElement,"yt-dismissible-item-dismissed")};
_.l.onPopupClosed=function(p){var x;((x=p.detail)==null?void 0:x.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.lA(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.l.handleInlineSurveyRatingSelect=function(p,x){var F=this;this.selectedRatingEndpoint=p;this.followUpSurveyCommand=x;this.expanded=!!p;this.getOptionRenderers().forEach(function(N,h){F.notifyPath("followUpSurveyCommand.followUpOptions."+h+".checkboxSurveyOptionRenderer.checked");F.set("followUpSurveyCommand.followUpOptions."+h+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),p=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.lA(this.hostElement,"yt-reel-non-video-content-dismissal-command",[p]))};
_.l.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.lA(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var p,x=(p=this.data)==null?void 0:p.dismissalEndpoint;x&&this.ytComponentBehavior.resolveCommand(x)}};
_.l.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.lA(this.hostElement,"yt-close-popup-action"))};
_.l.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var p=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{p=this.getOptionRenderers().filter(function(N){return N.checked});
if(p.length===0)return;p=p.map(function(N){return N.responseEndpoint})}var x=[];
p.forEach(function(N,h){h!==0&&(N=_.r(N,_.ua))&&N.feedbackToken&&x.push(N.feedbackToken)});
if(p=p[0]){var F={};x.length>0&&(F.extra_feedback_tokens=x);this.ytComponentBehavior.resolveCommand(p,{form:F})}}};
_.l.getOptionRenderers=function(){var p=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(x){p.isSingleSelect=!!_.r(x,MBk);return p.isSingleSelect?_.r(x,MBk):_.r(x,Dn8)}):[]};
_.l.handleInlineSurveyOptionSelect=function(p){p=this.optionSelector.indexOf(p);p!==-1&&this.optionSelector.selectIndex(p)};
_.l.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.l.maybeGetBackgroundColor=function(p){return this.isDarkMode?p.section2Color:p.section3Color};
_.l.colorPaletteChanged=function(){var p=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;p=p&&this.maybeGetBackgroundColor(p);this.dismissibleEl.style.backgroundColor=!p||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.gX(p)};
_.R8.Object.defineProperties(CLH.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
var Vy=CLH;Vy.prototype.colorPaletteChanged=Vy.prototype.colorPaletteChanged;Vy.prototype.onPopupClosed=Vy.prototype.onPopupClosed;Vy.prototype.handleRequestCompletion=Vy.prototype.handleRequestCompletion;Vy.prototype.dataChanged=Vy.prototype.dataChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Vy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Vy.prototype,"actionHandlerBehavior",void 0);
_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Vy.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Vy.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],Vy.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.Ff("#follow-up-survey-options"),_.k("design:type",Object)],Vy.prototype,"optionSelector",void 0);_.B([_.H(),_.k("design:type",Object)],Vy.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],Vy.prototype,"disableAnimation",void 0);_.B([_.H(),_.k("design:type",Object)],Vy.prototype,"isToggleOption",void 0);_.B([_.H(),_.k("design:type",Object)],Vy.prototype,"followUpSurveyCommand",void 0);_.B([_.H(),_.k("design:type",Object)],Vy.prototype,"selectedRatingEndpoint",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Vy.prototype,"expanded",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Vy.prototype,"isSlimlineSurveyFollowUp",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Vy.prototype,"isShortsStyle",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Vy.prototype,"styleOverrideAttribute",void 0);_.B([_.H(),_.k("design:type",Boolean)],Vy.prototype,"isSingleSelect",void 0);_.B([_.H(),_.k("design:type",Object)],Vy.prototype,"isDarkMode",void 0);
_.B([_.H(),_.k("design:type",Object)],Vy.prototype,"lightColorPalette",void 0);_.B([_.H(),_.k("design:type",Object)],Vy.prototype,"darkColorPalette",void 0);_.B([_.w("selectedRatingEndpoint","isShortsStyle"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Vy.prototype,"isOptionSelected",null);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Vy.prototype,"roundedContainer",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Vy.prototype,"improveShortsResponseRate",void 0);_.B([_.Ff("#dismissible"),_.k("design:type",HTMLElement)],Vy.prototype,"dismissibleEl",void 0);_.B([_.Ff("#dismiss-button yt-icon-button"),_.k("design:type",HTMLElement)],Vy.prototype,"dismissButtonEl",void 0);_.B([_.Ff("#inline-survey-header yt-icon-button"),_.k("design:type",HTMLElement)],Vy.prototype,"inlineHeaderDismissButtonEl",void 0);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Vy.prototype,"dataChanged",null);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Vy.prototype,"handleRequestCompletion",null);_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Vy.prototype,"onPopupClosed",null);
_.B([_.W("darkColorPalette","lightColorPalette","isDarkMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Vy.prototype,"colorPaletteChanged",null);Vy=_.B([_.L({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Vy);
_.P(Vy,"ytd-inline-survey-renderer",function(){if(dnm!==void 0)return dnm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return dnm=p},{mode:1});
}catch(e){_._DumpException(e)}
try{
var Hpo,mmP,o$P;Hpo=function(p){return _.S("kevlar_watch_cinematics_invisible")||p.fullscreen&&_.S("kevlar_watch_cinematics_invisible_in_fullscreen")||p.theater&&!p.fullscreen&&_.S("kevlar_watch_cinematics_invisible_in_theater")};
mmP=function(){var p=document.createElement("canvas"),x=p.getContext("2d");if(!x)throw Error("Vl");_.ov(p,{position:"absolute",width:"100%",height:"100%"});return{element:p,context:x}};
o$P=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.S("kevlar_watch_cinematics_css_blur")};
_.OpM=function(p,x,F){return Math.abs(p-x)<=(F||1E-6)};
_.jJz=function(p,x){return p==x?!0:p&&x?p.width==x.width&&p.height==x.height:!1};_.LHe=new _.U("notificationActionRenderer");var Pdz=function(p){var x=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.FT;this.element.addEventListener("load",function(){x.loaded=!0;x.resolver.resolve(x.element)});
this.element.addEventListener("error",function(){x.failed=!0});
this.element.src=p};var TkU=function(p,x){this.image=p;this.frame=x};
TkU.prototype.drawToCanvas=function(p,x){var F=this.frame.width/this.frame.columns,N=this.frame.height/this.frame.rows,h=x.offsetX,c=x.offsetY;Hpo(x)?(p.fillStyle=x.fullscreen?"#000":"#0f0f0f",p.fillRect(h,c,(x==null?void 0:x.width)||F,(x==null?void 0:x.height)||N)):p.drawImage(this.image,this.frame.column*F,this.frame.row*N,F,N,h,c,(x==null?void 0:x.width)||F,(x==null?void 0:x.height)||N)};
var BkU=function(p){this.color=p};
BkU.prototype.drawToCanvas=function(p,x){var F=x.offsetX,N=x.offsetY,h=x.width,c=x.height;p.fillStyle=Hpo(x)?x.fullscreen?"#000":"#0f0f0f":this.color;p.fillRect(F,N,h,c)};var Do=function(p,x){_.ey.call(this);this.playerApi=x;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.q1(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();REo(this,p);_.kBK(this);this.update()},IZl;
_.E(Do,_.ey);Do.prototype.addEventListeners=function(){var p=this,x=function(){p.update()},F=function(h){p.paused||(h.type==="newdata"&&(p.mosaics.clear(),Umg(p),fC(p)),_.kBK(p),p.update())},N=function(){p.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",x);this.playerApi.addEventListener("onVideoDataChange",F);this.playerApi.addEventListener("onStateChange",N);this.addOnDisposeCallback(function(){p.playerApi.removeEventListener("onVideoProgress",x);p.playerApi.removeEventListener("onVideoDataChange",F);p.playerApi.removeEventListener("onStateChange",N)})};
var REo=function(p,x){p.cinematicContainerRenderer!==x&&(p.cinematicContainerRenderer=x,Umg(p),fC(p),p.colorStoreUpdateJobId=_.E0.addLowPriorityJob(function(){var F;if((F=p.cinematicContainerRenderer.colorStore)!=null&&F.sampledColors){F=Infinity;for(var N=_.a(p.cinematicContainerRenderer.colorStore.sampledColors),h=N.next();!h.done;h=N.next()){h=h.value;var c=Number(h.key);c!==0&&c<F&&(F=c);c=_.QK(h.value);p.colorStore.set(h.key,c)}p.colorStoreTimeInterval=F}}))},Umg=function(p){p.colorStoreUpdateJobId&&
(_.E0.cancelJob(p.colorStoreUpdateJobId),p.colorStoreUpdateJobId=void 0);
p.colorStore.clear();p.currentStoryboardColor=void 0},ipe=function(p,x){var F;
return(F=p.getStoryboardFrame(x))==null?void 0:F.url};
Do.prototype.onPlayerStateChange=function(){this.update()};
Do.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
_.kBK=function(p){var x=p.getStoryboardFrame(0);x&&(x=new _.q1(x.width/x.columns,x.height/x.rows),_.jJz(p.currentStoryboardSize,x)||(p.currentStoryboardSize=x,p.publish("STORYBOARD_SIZE_CHANGED",p.currentStoryboardSize)))};
IZl=function(p,x){p.currentStoryboardIndex=x;p.pendingStoryboardIndex=NaN;x=p.getStoryboardFrame(p.currentStoryboardIndex);p.currentStoryboard=new TkU(p.mosaics.get(x.url).element,x);p.publish("STORYBOARD_CHANGED",p.currentStoryboard);p.lastUpdateTime=(0,_.Lf)()};
Do.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var fC=function(p){p.currentStoryboardIndex=NaN;p.pendingStoryboardIndex=NaN;p.currentStoryboard&&(p.currentStoryboard=void 0,p.publish("STORYBOARD_CHANGED",void 0));p.lastUpdateTime=NaN};
Do.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)fC(this);else{var p=this.playerApi.getPlayerState(1);if(p===-1||p===5||p===0)fC(this);else if(isNaN(this.lastUpdateTime)||!((0,_.Lf)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(p=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){p=""+Math.round(p*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var x=this.colorStore.get(p);x?x!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=x,this.currentStoryboard=new BkU(x),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.Lf)()):(_.no(new _.qE("Could not find color for timestamp: "+p,this.cinematicContainerRenderer)),fC(this))}else fC(this);else $mn(this,p)}};
var $mn=function(p,x){var F=p.getStoryboardFrameIndex(x);if(F!==p.currentStoryboardIndex&&F!==p.pendingStoryboardIndex){x=ipe(p,F);var N=p.mosaics.get(x);N?N.loaded&&IZl(p,F):(p.pendingStoryboardIndex=F,F=new Pdz(x),p.mosaics.set(x,F),F.resolver.promise.then(function(){if(!p.isDisposed()&&!p.paused&&!isNaN(p.pendingStoryboardIndex)){var h=ipe(p,p.pendingStoryboardIndex);if(h){var c;(c=p.mosaics.get(h))!=null&&c.loaded&&IZl(p,p.pendingStoryboardIndex)}else fC(p)}}))}};
Do.prototype.getStoryboardFrameIndex=function(p){var x=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(p,x)};
Do.prototype.getStoryboardFrame=function(p){var x=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,F,N;return((N=(F=this.playerApi).getStoryboardFrame)==null?void 0:N.call(F,p,x))||null};
Do.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var qv=function(p,x,F,N){N=N===void 0?!1:N;_.Jm.call(this);this.cinematicContainerRenderer=x;this.playerApi=F;this.theater=this.fullscreen=!1;var h;this.ambientLightThemeEnabled=!N&&!!(x==null?0:(h=x.config)==null?0:h.enableInLightTheme);this.ambientFullscreenEnabled=N&&_.S("web_cinematic_fullscreen");this.container=document.createElement("div");p.appendChild(this.container);var c;if(_.S("web_cinematic_theater_mode")||_.S("web_cinematic_fullscreen")||(x==null?0:(c=x.config)==null?0:c.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);eEM(this);p=this.ambientV2Container||this.container;this.backCanvas=mmP();this.frontCanvas=mmP();p.appendChild(this.backCanvas.element);p.appendChild(this.frontCanvas.element);this.storyboardManager=new Do(x,this.playerApi);_.aG(this,this.storyboardManager);this.addEventListeners();pb5(this)?xIz(this,100+KC(this)*3*2,100+KC(this)*3*2):Fnz(this);NlK(this,this.storyboardManager.currentStoryboard)};
_.E(qv,_.Jm);var eEM=function(p){p.ambientV2Container?h6g(p):(_.ov(p.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+lKe(p)+", "+cCA(p)+")"}),o$P()&&_.ov(p.container,"filter","blur("+_.Ud("cinematic_watch_css_filter_blur_strength",40)+"px)"))},h6g=function(p){if(p.ambientV2Container){var x=p.playerApi.getVideoAspectRatio();
_.ov(p.container,{"aspect-ratio":""+x,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.ov(p.ambientV2Container,{"aspect-ratio":""+x,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+lKe(p)+", "+cCA(p)+")"});o$P()&&_.ov(p.ambientV2Container,"filter","blur("+_.Ud("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
qv.prototype.setFullscreen=function(p,x){this.fullscreen=p;this.theater=!!x;eEM(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),p=this.storyboardManager.currentStoryboard,aKP(this),p&&MDb(this,p)};
qv.prototype.addEventListeners=function(){var p=this,x=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(h){NlK(p,h)}),F=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){Fnz(p)});
this.addOnDisposeCallback(function(){p.storyboardManager.unsubscribeByKey(x);p.storyboardManager.unsubscribeByKey(F)});
if(this.ambientV2Container){var N=function(){h6g(p)};
this.playerApi.addEventListener("onVideoDataChange",N);this.addOnDisposeCallback(function(){p.playerApi.removeEventListener("onVideoDataChange",N)})}};
var Fnz=function(p){if(!pb5(p)){var x=p.storyboardManager.currentStoryboardSize;isNaN(x.width)||isNaN(x.height)||xIz(p,Number(x.width)+KC(p)*3*2,Number(x.height)+KC(p)*3*2)}},xIz=function(p,x,F){p.backCanvas.element.width=x;
p.backCanvas.element.height=F;p.frontCanvas.element.width=x;p.frontCanvas.element.height=F},pb5=function(p){return p.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},NlK=function(p,x){var F=p.frontCanvas.element.getAnimations()[0];
F?(F.pause(),p.backCanvas.context.globalAlpha=Number(getComputedStyle(p.frontCanvas.element).opacity),p.frontCanvas.element.style.opacity="0",F.finish()):p.backCanvas.context.globalAlpha=1;p.backCanvas.context.drawImage(p.frontCanvas.element,0,0,p.backCanvas.element.width,p.backCanvas.element.height);aKP(p);x&&MDb(p,x);x=x?p.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.Ud("cinematic_watch_fade_out_duration",500);F=_.Ud("cinematic_watch_transition_frame_rate")/1E3;var N=
{};F&&(N={easing:"steps("+Math.round(x*F)+")"});p.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:x,iterations:1},N));p.frontCanvas.element.style.opacity="1"},aKP=function(p){var x=p.ambientLightThemeEnabled,F=p.ambientLightThemeEnabled||p.ambientFullscreenEnabled&&!_.S("web_cinematic_fullscreen_v2");
p.frontCanvas.context.fillStyle=p.theater&&x||p.fullscreen&&F?"#000":"#0f0f0f";o$P()||(p.frontCanvas.context.filter="blur(0)");p.frontCanvas.context.fillRect(0,0,p.frontCanvas.element.width,p.frontCanvas.element.height)},MDb=function(p,x){o$P()||(p.frontCanvas.context.filter="blur("+KC(p)+"px)");
p.frontCanvas.context.globalAlpha=_.Ud("cinematic_watch_effect_opacity",.4);var F={offsetX:KC(p)*3,offsetY:KC(p)*3,theater:p.theater,fullscreen:p.fullscreen};pb5(p)&&(F.width=100,F.height=100);x.drawToCanvas(p.frontCanvas.context,F);p.frontCanvas.context.globalAlpha=1},KC=function(p){var x;
return(x=p.cinematicContainerRenderer.config.blurStrength)!=null?x:5},lKe=function(p){var x,F;
if((p.fullscreen||p.theater)&&((x=p.cinematicContainerRenderer.config)==null?0:(F=x.watchFullscreenConfig)==null?0:F.colorSourceWidthMultiplier))return p.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var N;return(N=p.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?N:p.cinematicContainerRenderer.config.colorSourceSizeMultiplier},cCA=function(p){var x,F;
if((p.fullscreen||p.theater)&&((x=p.cinematicContainerRenderer.config)==null?0:(F=x.watchFullscreenConfig)==null?0:F.colorSourceHeightMultiplier))return p.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var N;return(N=p.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?N:p.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
qv.prototype.disposeInternal=function(){_.Jm.prototype.disposeInternal.call(this);this.container.remove()};
qv.prototype.clear=function(){NlK(this)};
qv.prototype.pause=function(){this.storyboardManager.pause()};var DIn;DIn=_.Cy(function(){var p,x,F=!((x=(p=document.createElement("canvas")).getContext)==null||!x.call(p,"2d")),N;p=!((N=CSS)==null||!N.supports("filter: blur(0)"));N=!!Element.prototype.animate&&!!Element.prototype.getAnimations;x=_.S("web_cinematic_fullscreen")||_.S("web_cinematic_theater_mode")||_.S("web_cinematic_light_theme")||!1;var h;return F&&p&&N&&(!x||!((h=CSS)==null||!h.supports("aspect-ratio: 1 / 1")))});
_.Zo=function(p,x){_.ey.call(this);this.container=p;this.playerApi=x;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=fKM(this);this.update()};
_.E(_.Zo,_.ey);_.Kn6=function(p){var x=document.documentElement.hasAttribute("dark");p.isDarkModeEnabled=x;p.update()};
_.qvM=function(p,x){p.settingEnabled=x;p.update()};
_.Zo.prototype.setFullscreen=function(p,x){this.fullscreen=p;this.theater=!!x;this.update()};
_.ZZe=function(p,x){p.cinematicContainerRenderer=x;p.cinematicContainerRenderer&&(p.cinematicsVe=_.vt(p.isShorts()?227858:159022),_.NJ(_.cl(),p.cinematicsVe),p.loggingClientData={watchCinematicContainerData:{presentationStyle:p.cinematicContainerRenderer.presentationStyle}});p.update()};
_.Zo.prototype.isShorts=function(){var p,x;return((p=this.cinematicContainerRenderer)==null?void 0:(x=p.config)==null?void 0:x.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.Zo.prototype.isAllowed=function(){var p;if(p=DIn()){var x,F,N;p=((F=this.cinematicContainerRenderer)==null?void 0:F.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((N=this.cinematicContainerRenderer)==null||!N.colorStore)||((x=this.cinematicContainerRenderer)==null?void 0:x.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(p)if(_.S("web_cinematics_pausing")){var h,c;p=this.isDarkModeEnabled||!!((h=this.cinematicContainerRenderer)==
null?0:(c=h.config)==null?0:c.enableInLightTheme)}else{var M,f;h=!!((M=this.cinematicContainerRenderer)==null?0:(f=M.config)==null?0:f.enableInLightTheme)&&(_.sd("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);p=this.isDarkModeEnabled||h}if(M=p){var K,t;M=!((t=(K=this.prefersReducedMotionQuery)==null?void 0:K.matches)!=null&&t)}return M};
_.tD5=function(p){var x;(x=p.currentCinematicEffect)==null||x.pause()};
_.Zo.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var fKM=function(p){if(!_.S("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var x=window.matchMedia("(prefers-reduced-motion: reduce)"),F=function(){p.update()};
x.addListener(F);p.addOnDisposeCallback(function(){x.removeListener(F)});
return x}};
_.Zo.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var p=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new qv(this.container,p,this.playerApi,this.isDarkModeEnabled),_.aG(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var x=this.currentCinematicEffect;x.cinematicContainerRenderer!==
p&&(x.cinematicContainerRenderer=p,REo(x.storyboardManager,p),eEM(x));p=_.rH();_.Ez(0,194,!0);p.save();p=_.b0();this.cinematicsVe&&p&&_.P5(p,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(p=_.b0(),this.cinematicsVe&&p&&_.T6(p,[this.cinematicsVe],!1,this.loggingClientData),_.RR(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.R8.Object.defineProperties(_.Zo.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var LS8;var PFc;_.qu({_template:function(){if(PFc!==void 0)return PFc;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=
p.content,F=x.insertBefore;LS8===void 0&&(LS8=document.createElement("template"));var N=LS8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return PFc=p},
is:"tp-yt-iron-pages",behaviors:[_.n7,_.yg],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var zoH;_.sVH=function(){if(_.S("kevlar_home_skeleton")&&!zoH){var p=document.querySelector("#home-page-skeleton");p&&(_.wH("hgcr"),_.qc(p),zoH=!0)}};
zoH=!1;_.u5=new _.U("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var SKt=function(p){return _.hJp(_.NcE(p&16777215))<.5},rbH=function(p,x,F){var N=F.minimumRowsOfVideosBetweenSections===void 0?1:F.minimumRowsOfVideosBetweenSections;
return p<(F.minimumRowsOfVideosAtStart===void 0?2:F.minimumRowsOfVideosAtStart)||x!==null&&p-x<=N?!1:!0},Eh8=function(p,x){var F=0,N=0;
p=_.a(p);for(var h=p.next();!h.done;h=p.next()){var c=h.value;if(c.richItemRenderer)c.richItemRenderer.rowIndex=N,c.richItemRenderer.colIndex=F++,F===x&&(F=0,N++);else if(c.richGroupRenderer&&c.richGroupRenderer.numColumns!==void 0)c.richGroupRenderer.rowIndex=N,c.richGroupRenderer.colIndex=F,F+=c.richGroupRenderer.numColumns,F===x&&(F=0,N++);else if(c.richSectionRenderer){var M=h=void 0;if(c=_.r((h=c)==null?void 0:(M=h.richSectionRenderer)==null?void 0:M.content,_.wvj))c.rowIndex=N++}}},XUm=function(p,
x){var F=x.contentElement;
x=x.rendererToTagNameMap;if(F&&x&&x.size!==0){for(var N=new Map,h=_.a(F.children),c=h.next();!c.done;c=h.next()){c=c.value;var M=c.tagName.toLowerCase(),f=N.get(M);f||(f=[],N.set(M,f));f.push(c)}if(N.size!==0)for(h=Math.min(p.length,F.children.length),c=new Map,M=0;M<h;M++){f=Object.keys(p[M])[0];f=x.get(f);if(!f)break;var K=c.get(f);K===void 0&&(K=0,c.set(f,K));var t=N.get(f);if(!t||K>=t.length)break;c.set(f,K+1);f=t[K];K=F.children[M];K!==f&&(_.Lzm=!0,_.P7M.set(f,!0),F.insertBefore(f,K),_.P7M.delete(f),
_.Lzm=!1)}}},ghH=function(p,x,F,N,h,c,M){N=N===void 0?{}:N;
if(!p||!p.length)return[];p=p.slice();var f=[],K=[];h=null;for(var t=0,d=function(Y){K.sort(function(R,ld){return ld.skippedOnRow-R.skippedOnRow});
for(var O,Fw=(O=K.shift())==null?void 0:O.content;Fw;)!Fw.richSectionRenderer&&Y||f.push(Fw),O=void 0,Fw=(O=K.shift())==null?void 0:O.content},v=[];p.length>0||K.length>0;){for(var C=[],X=x;X>0;){var Q=void 0,b=void 0,A=(b=K[0]&&K[0].skippedOnRow<t?(Q=K.shift())==null?void 0:Q.content:void 0)!=null?b:p.shift();
if(!A)break;if(A.richItemRenderer)Q=A.richItemRenderer.targetId,b=void 0,Q&&((b=M)==null?0:b.has(Q))&&v.push(M.get(Q)),C.push(A),X--;else if(A.richGroupRenderer&&A.richGroupRenderer.numColumns!==void 0)A.richGroupRenderer.numColumns<=X?(C.push(A),X-=A.richGroupRenderer.numColumns):X===x&&A.richGroupRenderer.numColumns>x?(C.push({richGroupRenderer:Object.assign({},A.richGroupRenderer,{numColumns:x})}),X=0):K.push({content:A,skippedOnRow:t});else if(A.richSectionRenderer)if(rbH(t,h,N)&&X===x){f.push(A);
h=t;t++;continue}else K.push({content:A,skippedOnRow:t});else if(A.continuationItemRenderer){d(!0);f.push(A);X=0;break}if(X===0)f.push.apply(f,_.se(C));else if(!F&&p.length===0){d(!1);f.push.apply(f,_.se(C));X=0;break}}t++;v=_.a(v);for(C=v.next();!C.done;C=v.next())f.push(C.value),t++;v=[]}Eh8(f,x);c&&XUm(f,c);return f},zj8=function(p){var x=p.data;
var F=p.uniqueId;p=p.overrides;var N,h=((N=x.timedAnimationData)==null?void 0:N.animationTiming)||[];return _.Z("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.Z(_.A36,{settings:{uniqueId:F,timings:h,experimentEnabled:h.length>0,enabled:h.length>0}},QNt(x.buttonRenderer,{buttonRenderer:{buttonOverrides:p}})))},sNH=function(p){return p.talkToRecs},bOt=function(p,x){if(x){var F=_.Bi().getState().entities.flowStateEntity,N=nhH(p),h=[x];
N&&N!==x&&h.push(N);var c=!0,M;if(F&&p.flowStateEntityKey&&((M=F[p.flowStateEntityKey])==null?void 0:M.primaryButtonDisabled)!==void 0){var f;c=!((f=F[p.flowStateEntityKey])==null||!f.primaryButtonDisabled)}ybk(p,N!=null?N:x,h,c)}},uL_=function(p){return _.qJ(_.Bi(),function(x){return x.entities.flowStateEntity},function(x,F){if(p.flowStateEntityKey){var N,h=x==null?void 0:(N=x[p.flowStateEntityKey])==null?void 0:N.currentStepId,c;
F=F==null?void 0:(c=F[p.flowStateEntityKey])==null?void 0:c.currentStepId;c=_.Bi().getState().talkToRecs;if(h&&h!==F){var M;x=(x==null?void 0:(M=x[p.flowStateEntityKey])==null?void 0:M.stepIdStack)||Object.keys(c.stepStates);M=!Abm(c==null?void 0:c.stepStates[h]);ybk(p,h,x,M)}}})},YKa=function(p){return _.qJ(_.Bi(),sNH,function(x){var F=nhH(p);
if(F){var N=Object.keys(x.stepStates);x=!Abm(x==null?void 0:x.stepStates[F]);ybk(p,F,N,x)}})},Abm=function(p){var x=Object.keys((p==null?void 0:p.selectionStates)||{}).reduce(function(c,M){return c||(p==null?void 0:p.selectionStates[M].isSelected)},!1),F,N,h=!!(p==null?0:(F=p.userQuery)==null?0:(N=F.userQuery)==null?0:N.trim());
return x||h},nhH=function(p){if(p.flowStateEntityKey){var x,F,N=(x=_.Bi().getState().entities.flowStateEntity)==null?void 0:(F=x[p.flowStateEntityKey])==null?void 0:F.currentStepId;
if(N)return N}},ybk=function(p,x,F,N){_.Bi().dispatch(_.KV("flowStateEntity",p.flowStateEntityKey,{currentStepId:x,
stepIdStack:F,key:p.flowStateEntityKey,primaryButtonDisabled:N}))},wU8;var Gr8;_.qu({_template:function(){if(Gr8!==void 0)return Gr8;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);
var x=p.content,F=x.insertBefore;wU8===void 0&&(wU8=document.createElement("template"));var N=wU8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return Gr8=p},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var VKD=new _.U("talkToRecsFlowRenderer");var WvD=new _.U("flowRootRenderer");var HOD=new _.U("chipsShelfViewModel");_.m3k=new _.U("engagementPanelSectionListRenderer");var ohX=function(){this.horizontal=!1},OO8=function(p,x){p.horizontal=x};
ohX.prototype.position=function(p,x,F,N){N=N===void 0?1:N;p=this.delta(p)*N+x;N=Math.max(x,F);return p>=Math.min(x,F)&&p<=N?p:F};
ohX.prototype.axis=function(p){p=this.direction(p);return p==="up"||p==="down"?"Y":"X"};var rt=function(p,x,F){x=x===void 0?_.c6():x;this.target=p;this.manager=x;this.touchAction=F;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
rt.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(_.se(this.events)));for(var p=_.a(this.events),x=p.next();!x.done;x=p.next())this.listen(x.value)}};
rt.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.se(this.events)));for(var p=_.a(this.events),x=p.next();!x.done;x=p.next())this.unlisten(x.value)}};
rt.prototype.listen=function(p){this.eventMap[p]&&this.target.addEventListener(p,this.eventMap[p])};
rt.prototype.unlisten=function(p){this.eventMap[p]&&this.target.removeEventListener(p,this.eventMap[p])};var EK=function(){ohX.apply(this,arguments)};
_.E(EK,ohX);EK.prototype.direction=function(p){var x=p.detail;p=x.deltaY;x=x.deltaX;return p&&!this.horizontal?p>0?"down":"up":x&&this.horizontal?x>0?"right":"left":"none"};
EK.prototype.distance=function(p){return Math.abs(this.delta(p))};
EK.prototype.delta=function(p){var x=this.direction(p),F=p.detail;p=F.deltaX;F=F.deltaY;return x==="up"||x==="down"?F||0:p||0};
EK.prototype.velocity=function(p){var x=this.direction(p),F=p.detail;p=F.velocityX;F=F.velocityY;return Math.abs(x==="up"||x==="down"?F||0:p||0)};_.XL=function(p,x,F,N,h,c){h=h===void 0?new EK:h;c=c===void 0?_.c6():c;rt.call(this,x,c,N);var M=this;this.element=p;this.target=x;this.config=F;this.input=h;this.manager=c;this.events=["panstart","panmove","panend"];this.onPanStart=function(){M.config.draggingClass&&M.element.classList.add(M.config.draggingClass);M.config.startAction&&M.config.startAction()};
this.onPanMove=function(f){var K=jNa(M,f);if(K){M.move(f,K);K.fade&&M.fade(f,K);var t=M.input.direction(f);K.moveAction&&K.moveAction(Lv8(M,f,K),t)}};
this.onPanEnd=function(f){var K,t,d,v,C,X;return _.D(function(Q){if(Q.nextAddress==1){M.animationRequestId&&cancelAnimationFrame(M.animationRequestId);M.animationRequestId=void 0;K=jNa(M,f);if(!K)return Q.return();t=K;d=t.triggerAction;v=t.fade;C=t.disableFinish;X=t.translateBack;var b=M.input.velocity(f),A=M.input.distance(f),Y=M.threshold(K);return b>.3&&A>10||A>Y?C?Q.jumpTo(6):v?_.q(Q,P5m(M,f),6):_.q(Q,Tte(M,f,K),6):X?_.q(Q,M.translateBack(f),3):Q.jumpTo(3)}Q.nextAddress!=3&&d&&d();M.config.draggingClass&&
M.element.classList.remove(M.config.draggingClass);M.reset();_.JB(Q)})};
p=Object.keys(F.triggers);this.directions=new Set(p);OO8(this.input,this.directions.has("right")||this.directions.has("left"))};
_.E(_.XL,rt);_.XL.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var jNa=function(p,x){x=p.input.direction(x);return p.config.triggers[x]};
_.XL.prototype.move=function(p,x){var F=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var N=F.input.axis(p),h=F.input.position(p,F.config.startPosition,x.endPosition,x.moveRatio||1);F.element.style.transform="translate"+N+"("+h+"px)";F.animationRequestId=void 0}))};
var Lv8=function(p,x,F){var N=F.moveRatio||1;F=Math.abs(p.config.startPosition-F.endPosition);return Math.min(p.input.distance(x)*N,F)/F};
_.XL.prototype.fade=function(p,x){var F=x.endOpacity;p=Lv8(this,p,x);p>0&&(this.element.style.opacity=""+(((F||0)-1)*p+1))};
_.XL.prototype.threshold=function(p){return p.threshold?p.threshold:Math.abs(p.endPosition-this.config.startPosition)/3};
var Tte=function(p,x,F){var N,h,c,M,f,K,t;return _.D(function(d){if(d.nextAddress==1)return N=p.input.delta(x)+p.config.startPosition,h=p.input.axis(x),c=F,M=c.endPosition,f=c.transitionEndPosition,t=(K=f)!=null?K:M,_.q(d,p.element.animate([{transform:"translate"+h+"("+N+"px)"},{transform:"translate"+h+"("+t+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);p.element.style.transform="translate"+h+"("+t+"px)";_.JB(d)})};
_.XL.prototype.translateBack=function(p){var x=this,F,N;return _.D(function(h){if(h.nextAddress==1){if(!x.element.style.transform)return h.return();F=x.input.axis(p);N=x.config.startPosition;return _.q(h,x.element.animate([{transform:x.element.style.transform},{transform:"translate"+F+"("+N+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}x.element.style.transform="translate"+F+"("+N+"px)";_.JB(h)})};
var P5m=function(p,x){var F,N,h,c;return _.D(function(M){if(M.nextAddress==1)return F=p.input.delta(x)+p.config.startPosition,N=p.input.axis(x),h=F+70,c=p.element.style.opacity===""?1:p.element.style.opacity,_.q(M,p.element.animate([{transform:"translate"+N+"("+F+"px)",opacity:c},{transform:"translate"+N+"("+h+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);p.element.style.transform="translate"+N+"("+h+"px)";p.element.style.opacity="0";_.JB(M)})};var BtH=function(){var p=_.hZ.apply(this,arguments)||this;p._noAccessors=!0;p.scrollRate=3;p.autoScrollAnimationStart=0;p.autoScrollPaused=!1;p.autoScrollRafId=0;return p};
_.E(BtH,_.hZ);_.l=BtH.prototype;_.l.created=function(){var p=this;this.boundAutoScrollHandler=function(x){p.autoScroll(x)}};
_.l.detached=function(){this.hostElement.removeEventListener("mouseout",_.p5(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.p5(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.p5(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.l.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.p5(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.p5(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.p5(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.p5(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.p5(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.p5(this,this.endAutoScroll)),this.endAutoScroll())};
_.l.autoScroll=function(p){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=p);var x;if(x=!this.autoScrollPaused&&this.scrollTarget)x=this.scrollTarget,x=x.scrollHeight-x.scrollTop!==x.clientHeight;x&&(x=1E3/this.scrollRate,p-=this.autoScrollAnimationStart,p>x&&(this.scrollTarget.scrollTop+=Math.ceil(p/x),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.l.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.l.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
var gt=BtH;gt.prototype.autoScrollEnabledChanged=gt.prototype.autoScrollEnabledChanged;_.B([_.H(),_.k("design:type",Object)],gt.prototype,"scrollRate",void 0);_.B([_.H(),_.k("design:type",Object)],gt.prototype,"scrollTarget",void 0);_.B([_.H(),_.k("design:type",Boolean)],gt.prototype,"autoScrollEnabled",void 0);_.B([_.W("autoScrollEnabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gt.prototype,"autoScrollEnabledChanged",null);gt=_.B([_.l8()],gt);_.RjH=[gt.prototype];var krH;var QNt=_.JR({buttonRenderer:_.UN});_.iK(zj8);_.kL(zj8,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var U38=function(){var p=_.m.apply(this,arguments)||this;p.hideJoinButtonBeforeSubscribed=_.S("hide_join_button_before_subscribed");p.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return p};
_.E(U38,_.m);_.l=U38.prototype;
_.l.configureRendererStamper=function(){return{"data.membershipButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}},timedAnimationButtonRenderer:{component:"timed-animation-button-renderer",params:{uniqueId:"join-button"},properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.analyticsButton":{id:"analytics-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.updateJoinButtonOverrides=function(){var p,x;(p=_.n(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(x=p.polymerController)==null||x.set("overrides",this.joinButtonOverrides);if(p=_.n(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))p.overrides=this.joinButtonOverrides};
_.l.handleButtonRefreshAction=function(p){if(p=_.r(p,_.FZK))this.set("data.membershipButton",p.membershipButton),this.notifyPath("data.membershipButton")};
_.l.onYtServiceRequestError=function(p){_.yy(this.hostElement,p.detail.error.message)};
_.l.handleUnsubscribeAction=function(){var p,x,F;((p=this.data)==null?void 0:(x=p.membershipButton)==null?void 0:(F=x.buttonRenderer)==null?void 0:F.style)==="STYLE_PRIMARY"&&_.n(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.R8.Object.defineProperties(U38.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.subscriptionStateEntity)==null||!p.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var p,x=(p=this.data)==null?void 0:p.membershipButton,F;p=(x==null?void 0:x.buttonRenderer)||_.r(x==null?void 0:(F=x.timedAnimationButtonRenderer)==null?void 0:F.buttonRenderer,_.AS);return(p==null?void 0:p.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(p==null?void 0:p.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(p==null?void 0:p.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
var QQ=U38;QQ.prototype.onYtServiceRequestError=QQ.prototype.onYtServiceRequestError;QQ.prototype.updateJoinButtonOverrides=QQ.prototype.updateJoinButtonOverrides;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],QQ.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],QQ.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],QQ.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u(_.nl),_.k("design:type",Object)],QQ.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],QQ.prototype,"data",void 0);_.B([_.w("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.k("design:type",Object),_.k("design:paramtypes",[])],QQ.prototype,"hideJoin",null);_.B([_.H(),_.k("design:type",String)],QQ.prototype,"subscribeKey",void 0);_.B([_.H({selectorArgs:["subscribeKey"],selector:_.e3}),_.k("design:type",Object)],QQ.prototype,"subscriptionStateEntity",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],QQ.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.B([_.w("subscriptionStateEntity"),_.H({reflectToAttribute:!0}),_.k("design:type",Object),_.k("design:paramtypes",[])],QQ.prototype,"subscribed",null);_.B([_.w("subscribed","data.membershipButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],QQ.prototype,"joinButtonOverrides",null);
_.B([_.W("joinButtonOverrides"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],QQ.prototype,"updateJoinButtonOverrides",null);_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],QQ.prototype,"onYtServiceRequestError",null);QQ=_.B([_.L({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],QQ);
_.P(QQ,"ytd-video-owner-renderer",function(){if(krH!==void 0)return krH;var p=document.createElement("template");_.g(p,'\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)]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return krH=p},{mode:1});var iO8;var IiX=function(){var p=_.m.apply(this,arguments)||this;p.buttonUpdate=_.S("web_button_rework");p.dismissButtonOverrides=_.S("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;p.forceDarkTheme=!1;p.forceLightTheme=!1;p.dynamicTextHeight=94;p.hasOverflowButton=!1;p.isInfeedModernization=!1;return p};
_.E(IiX,_.m);_.l=IiX.prototype;_.l.computeUrlImg=function(p){if(p)return _.j6(p.thumbnails)};
_.l.getLogoHeight=function(p){return this.logoWithPadding(p)?"31":"24"};
_.l.getLogoClassName=function(p){return this.logoWithPadding(p)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.l.logoWithPadding=function(p){var x,F;return(p=(x=p.thumbnails)==null?void 0:(F=x[0])==null?void 0:F.height)&&p%31===0?!0:!1};
_.l.sendImpressionEndpoints=function(p){p.impressionEndpoints&&_.fc(this.hostElement,p.impressionEndpoints)};
_.l.observeBasicPalette=function(){var p,x,F=(p=this.data)==null?void 0:(x=p.colorData)==null?void 0:x.basicColorPaletteData;F?_.S3(this.hostElement,F):_.S3(this.hostElement,{})};
_.l.observeDataChanged=function(){var p;this.dynamicTextHeight=((p=this.data)==null?0:p.supplementalText)?74:94;var x;this.hasSupplementalText=!((x=this.data)==null||!x.supplementalText);if(_.S("web_button_rework")){var F,N,h,c;p=(F=this.data)==null?void 0:(N=F.actionButton)==null?void 0:(h=N.buttonRenderer)==null?void 0:(c=h.colorData)==null?void 0:c.basicColorPaletteData;var M,f,K;if(!((M=this.data)==null?0:(f=M.actionButton)==null?0:(K=f.buttonRenderer)==null?0:K.style)&&p){this.computeIsInfeedModernization(this.data)||
(p.borderColor=p.foregroundTitleColor);var t,d;this.set("data.actionButton.buttonRenderer",_.Q5.unsafeClone((t=this.data)==null?void 0:(d=t.actionButton)==null?void 0:d.buttonRenderer))}}};
_.l.observeDataForCounterfactual=function(){if(_.S("kevlar_banner_cf_extra_logging")){var p;((p=this.data)==null?0:p.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.l.computeSupplementalStyle=function(){var p;if((p=this.data)!=null&&p.supplementalText){var x,F,N;if((x=this.data)==null?0:(F=x.colorData)==null?0:(N=F.basicColorPaletteData)==null?0:N.foregroundActivatedColor)return p=_.gX(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+p+"; --yt-endpoint-hover-color:"+p+"; --yt-endpoint-visited-color:"+p+"; --yt-formatted-string-bold-font-weight:700;"}};
_.l.computeForcedDarkTheme=function(){var p,x,F,N=(p=this.data)==null?void 0:(x=p.actionButton)==null?void 0:(F=x.buttonRenderer)==null?void 0:F.style,h,c,M;p=SKt(((h=this.data)==null?void 0:(c=h.colorData)==null?void 0:(M=c.basicColorPaletteData)==null?void 0:M.backgroundColor)||0);return N&&p};
_.l.computeForcedLightTheme=function(){var p,x,F,N=(p=this.data)==null?void 0:(x=p.actionButton)==null?void 0:(F=x.buttonRenderer)==null?void 0:F.style,h,c,M;p=!SKt(((h=this.data)==null?void 0:(c=h.colorData)==null?void 0:(M=c.basicColorPaletteData)==null?void 0:M.backgroundColor)||0);return N&&p};
_.l.computeHasOverflowButton=function(p){return!!p.overflowButton};
_.l.computeHasTitle=function(p){return!!p.title};
_.l.computeTitleMaxFontSize=function(p){return this.computeHasOverflowButton(p)?28:64};
_.l.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.l.computeIsInfeedModernization=function(){var p,x,F,N,h=(p=this.data)==null?void 0:(x=p.actionButton)==null?void 0:(F=x.buttonRenderer)==null?void 0:(N=F.colorData)==null?void 0:N.basicColorPaletteData;return(h==null?void 0:h.backgroundColor)===452984831||(h==null?void 0:h.backgroundColor)===218103808};
var zr=IiX;zr.prototype.observeDataForCounterfactual=zr.prototype.observeDataForCounterfactual;zr.prototype.observeDataChanged=zr.prototype.observeDataChanged;zr.prototype.observeBasicPalette=zr.prototype.observeBasicPalette;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],zr.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],zr.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.u(_.GM.YtdGuideStateAwareBehavior),_.k("design:type",Object)],zr.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],zr.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],zr.prototype,"buttonUpdate",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],zr.prototype,"hasSupplementalText",void 0);_.B([_.H(),_.k("design:type",Object)],zr.prototype,"dismissButtonOverrides",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.k("design:type",Boolean)],zr.prototype,"hasTitle",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.k("design:type",Object)],zr.prototype,"forceDarkTheme",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.k("design:type",Object)],zr.prototype,"forceLightTheme",void 0);_.B([_.H(),_.k("design:type",Object)],zr.prototype,"dynamicTextHeight",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.k("design:type",Object)],zr.prototype,"hasOverflowButton",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.k("design:type",Object)],zr.prototype,"isInfeedModernization",void 0);_.B([_.W("data.colorData.basicColorPaletteData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zr.prototype,"observeBasicPalette",null);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zr.prototype,"observeDataChanged",null);_.B([_.W("data.isVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zr.prototype,"observeDataForCounterfactual",null);zr=_.B([_.L({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],zr);
_.P(zr,"ytd-banner-promo-renderer",function(){if(iO8!==void 0)return iO8;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return iO8=p},{mode:1});var $3m;var ejk;var pOH;var xVe=function(){return _.m.apply(this,arguments)||this};
_.E(xVe,_.m);var FGm=xVe;_.B([_.H(),_.k("design:type",Object)],FGm.prototype,"data",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],FGm.prototype,"ytRendererBehavior",void 0);FGm=_.B([_.L({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],FGm);
_.P(FGm,"ytd-hashtag-grid-tile-renderer",function(){if(pOH!==void 0)return pOH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return pOH=p},{mode:1});var NIa=function(){return _.m.apply(this,arguments)||this};
_.E(NIa,_.m);NIa.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
NIa.prototype.updateRichGridTrendingHashtagsVisibility=function(){var p,x;if(((p=this.data)==null||!p.isExpanded)&&(x=this.data)!=null&&x.tiles){p=this.data.tiles.length;x=p>this.richGridItemsPerRow?this.richGridItemsPerRow+1:p;var F=Math.ceil(p/x);this.fullyVisibleRows=p%x===1&&F===2?1:Math.min(F,2);this.isShowMoreVisible=this.fullyVisibleRows<F}};
NIa.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
var sK=NIa;sK.prototype.updateRichGridTrendingHashtagsVisibility=sK.prototype.updateRichGridTrendingHashtagsVisibility;_.B([_.H(),_.k("design:type",Object)],sK.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Number)],sK.prototype,"fullyVisibleRows",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],sK.prototype,"isShowMoreVisible",void 0);_.B([_.H({selector:_.yr,value:0}),_.k("design:type",Number)],sK.prototype,"richGridItemsPerRow",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],sK.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],sK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],sK.prototype,"ytdReduxBehavior",void 0);_.B([_.W("data","richGridItemsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sK.prototype,"updateRichGridTrendingHashtagsVisibility",null);
sK=_.B([_.L({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],sK);
_.P(sK,"ytd-hashtag-grid-shelf-renderer",function(){if(ejk!==void 0)return ejk;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return ejk=p},{mode:1});var hoX;var l6t;var cQc=function(){var p=_.m.apply(this,arguments)||this;p.visibleVideos=[];p.hiddenVideos=[];p.modern=_.S("web_modern_buttons");p.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.E(cQc,_.m);_.l=cQc.prototype;_.l.attached=function(){var p=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",p);this.onDarkModeToggledAction(p)};
_.l.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.header":{id:"section-header-container",mapping:{sectionHeaderViewModel:{component:"yt-section-header-view-model",params:{disableHorizontalPadding:!0}}}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},visibleVideos:{id:"visible-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},
properties:{metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{metadataColor:"[[videoMetadataColor]]"}}}},hiddenVideos:{id:"hidden-video-container",mapping:{videoRenderer:{component:"ytd-rich-grid-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",metadataColor:"[[videoMetadataColor]]"}},movieRenderer:{component:"ytd-rich-grid-slim-media",params:{disableInlinePreview:!0},properties:{hidden:"[[true]]",
metadataColor:"[[videoMetadataColor]]"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.l.dataChanged=function(){var p=this;this.requestElementsPerRow();var x,F;this.currentColorPalette=this.isDarkTheme?(x=this.data)==null?void 0:x.darkColorData:(F=this.data)==null?void 0:F.lightColorData;var N;if((N=this.currentColorPalette)==null?0:N.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.jB(this,function(){p.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.l.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.l.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.l.computeIsFirstFeedItem=function(p){return p};
_.l.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&this.set("isDarkTheme",p);this.data&&(this.currentColorPalette=p?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.l.getCurrentLogo=function(p,x){if(p)return x?p.darkLogoImage:p.lightLogoImage};
_.l.computeTitleStyle=function(p){var x;if((x=this.data)!=null&&x.title&&p&&p.textPrimary!==void 0)return"color:"+_.gX(p.textPrimary)+";"};
_.l.computeSubtitleStyle=function(p){var x;if((x=this.data)!=null&&x.subtitle&&p&&p.textSecondary!==void 0)return"color:"+_.gX(p.textSecondary)+";"};
_.l.computeDismissIconStyle=function(p){if(this.data&&this.data.dismissButton){var x;if(p==null?0:(x=p.dismissButtonColorData)==null?0:x.foregroundTitleColor)return"--yt-button-color:"+_.gX(p.dismissButtonColorData.foregroundTitleColor)+";";var F,N,h,c;if((F=this.data.dismissButton)==null?0:(N=F.buttonRenderer)==null?0:(h=N.colorData)==null?0:(c=h.basicColorPaletteData)==null?0:c.foregroundTitleColor)return"--yt-button-color:"+_.gX(this.data.dismissButton.buttonRenderer.colorData.basicColorPaletteData.foregroundTitleColor)+
";"}};
_.l.computeOverflowButtonStyle=function(p){var x;if(this.data&&this.data.overflowButton&&(p==null?0:(x=p.dismissButtonColorData)==null?0:x.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.gX(p.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.gX(p.dismissButtonColorData.foregroundTitleColor)+";"};
_.l.computeBackgroundStyle=function(p){if(p&&this.data){var x="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var F=_.j6((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);F&&(x+='background-image:url("'+F+'");')}p.backgroundColor!==void 0&&(x+="background-color:"+_.QK(p.backgroundColor)+";");return x}};
_.l.computeButton=function(){var p,x=Object.assign({},_.r((p=this.data)==null?void 0:p.showMoreButton,_.AS));if(this.modern&&x){x.style="STYLE_DEFAULT";var F,N;if(p=(F=this.currentColorPalette)==null?void 0:(N=F.dismissButtonColorData)==null?void 0:N.foregroundTitleColor)x.colorData={basicColorPaletteData:{foregroundTitleColor:p,borderColor:p}}}return x};
_.l.shouldShowBottomButton=function(p,x){return!(p==null?0:p.header)&&!(p==null||!p.primaryButton)&&x<3};
_.l.checkExpanded=function(p){this.isExpanded=p&&p.content?this.hiddenVideos.length===0:!0};
_.l.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.l.getLogoHeight=function(p){return this.logoWithPadding(p)?"26":"20"};
_.l.getLogoImageId=function(p){return this.logoWithPadding(p)?"logo-image-with-padding":"logo-image"};
_.l.computeHasSectionHeader=function(p){return!!p.header};
_.l.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var p;if((p=this.data.primaryButton)==null?0:p.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 x;((x=this.data.dismissButton)==null?0:x.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var F,N;((F=this.data)==null?0:(N=F.primaryButton)==null?0:N.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.l.setVisibleVideos=function(p){if(this.data&&this.data.content)if(this.data.content.length){var x=this.data.content.length;this.data.header?p?(this.visibleVideos=this.data.content.slice(0,Math.min(x,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(x,this.slimItemsPerRow),x)):(this.visibleVideos=this.data.content.slice(0,Math.min(x,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(x,this.elementsPerRow),x)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(x,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(x,this.elementsPerRow),x)):(this.visibleVideos=this.data.content.slice(0,Math.min(x,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(x,this.elementsPerRow-1),x))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.l.setHasMovieRenderer=function(){var p;if((p=this.data)!=null&&p.content){var x;this.hasMovieRenderer=!!_.r((x=this.data)==null?void 0:x.content[0],_.apB)}else this.hasMovieRenderer=!1};
_.l.requestElementsPerRow=function(){_.hG(this.hostElement,"yt-request-elements-per-row")};
_.l.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var p=_.a(this.hiddenMediaRenderers),x=p.next();!x.done;x=p.next())x.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(p=_.n(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&p.focus()}};
_.l.updateTitleSpec=function(){var p;(p=this.data)!=null&&p.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.l.logoWithPadding=function(p){var x,F,N;return(p=(x=this.getCurrentLogo(p,this.isDarkTheme))==null?void 0:(F=x.thumbnails)==null?void 0:(N=F[0])==null?void 0:N.height)&&p%31===0?!0:!1};
_.l.onUpdateElementsPerRowAction=function(p,x,F){p&&this.elementsPerRow!==p&&(this.elementsPerRow=p);F&&this.slimItemsPerRow!==F&&(this.slimItemsPerRow=F)};
var nO=cQc;nO.prototype.slimItemsPerRowChanged=nO.prototype.slimItemsPerRowChanged;nO.prototype.elementsPerRowChanged=nO.prototype.elementsPerRowChanged;nO.prototype.dataChanged=nO.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],nO.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],nO.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u(_.bh),_.k("design:type",Object)],nO.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],nO.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],nO.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],nO.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],nO.prototype,"currentColorPalette",void 0);_.B([_.H(),_.k("design:type",Array)],nO.prototype,"visibleVideos",void 0);
_.B([_.H(),_.k("design:type",Array)],nO.prototype,"hiddenVideos",void 0);_.B([_.H(),_.k("design:type",Object)],nO.prototype,"primaryButton",void 0);_.B([_.H({reflectToAttribute:!0,value:3}),_.k("design:type",Number)],nO.prototype,"elementsPerRow",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],nO.prototype,"isDarkTheme",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],nO.prototype,"isExpanded",void 0);
_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],nO.prototype,"largeTitle",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],nO.prototype,"hasMovieRenderer",void 0);_.B([_.H(),_.k("design:type",Number)],nO.prototype,"slimItemsPerRow",void 0);_.B([_.H(),_.k("design:type",Boolean)],nO.prototype,"showLightVideoMetadata",void 0);_.B([_.H(),_.k("design:type",Boolean)],nO.prototype,"showDarkVideoMetadata",void 0);
_.B([_.H(),_.k("design:type",Number)],nO.prototype,"videoMetadataColor",void 0);_.B([_.H({reflectToAttribute:!0,selector:_.n1}),_.k("design:type",Boolean)],nO.prototype,"miniMode",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.k("design:type",Boolean)],nO.prototype,"isFirstFeedItem",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.k("design:type",Boolean)],nO.prototype,"hasSectionHeader",void 0);
_.B([_.H({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],nO.prototype,"roundedContainer",void 0);_.B([_.Nu("#visible-video-container ytd-rich-grid-media"),_.k("design:type",Array)],nO.prototype,"visibleMediaRenderers",void 0);_.B([_.Nu("#hidden-video-container ytd-rich-grid-media"),_.k("design:type",Array)],nO.prototype,"hiddenMediaRenderers",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],nO.prototype,"modern",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nO.prototype,"dataChanged",null);_.B([_.W("elementsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nO.prototype,"elementsPerRowChanged",null);_.B([_.W("slimItemsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nO.prototype,"slimItemsPerRowChanged",null);
nO=_.B([_.L({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],nO);
_.P(nO,"ytd-brand-video-shelf-renderer",function(){if(l6t!==void 0)return l6t;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return l6t=p},{mode:1});var a6k;var M5H=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.E(M5H,_.m);_.l=M5H.prototype;_.l.attached=function(){var p=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",p);this.onDarkModeToggledAction(p)};
_.l.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.l.dataChanged=function(){this.requestElementsPerRow();var p,x;this.currentColorPalette=this.isDarkTheme?(p=this.data)==null?void 0:p.darkColorData:(x=this.data)==null?void 0:x.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.l.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.l.computeIsFirstFeedItem=function(p){return p};
_.l.onDarkModeToggledAction=function(p){p!==this.isDarkTheme&&this.set("isDarkTheme",p);this.data&&(this.currentColorPalette=p?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(p),this.updateButtonPalette())};
_.l.shouldShowThumbnailInMetadata=function(p){return p<=1};
_.l.getCurrentLogo=function(p,x){if(p)return x?p.darkLogoImage:p.lightLogoImage};
_.l.computeVideoMetadataColor=function(){if(this.data){var p;if((p=this.currentColorPalette)==null?0:p.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.l.computeTitleStyle=function(p){var x;if((x=this.data)!=null&&x.title&&p&&p.textPrimary!==void 0)return"color:"+_.gX(p.textPrimary)+";"};
_.l.computeSubtitleStyle=function(p){var x;if((x=this.data)!=null&&x.subtitle&&p&&p.textSecondary!==void 0)return"color:"+_.gX(p.textSecondary)+";"};
_.l.computeDismissIconStyle=function(p){if(this.data&&this.data.dismissButton){var x;if(p==null?0:(x=p.dismissButtonColorData)==null?0:x.foregroundTitleColor)return"--yt-button-color:"+_.gX(p.dismissButtonColorData.foregroundTitleColor)+";";var F,N,h,c;if((F=this.data.dismissButton)==null?0:(N=F.buttonRenderer)==null?0:(h=N.colorData)==null?0:(c=h.basicColorPaletteData)==null?0:c.foregroundTitleColor)return"--yt-button-color:"+_.gX(this.data.dismissButton.buttonRenderer.colorData.basicColorPaletteData.foregroundTitleColor)+
";"}};
_.l.computeOverflowButtonStyle=function(p){var x;if(this.data&&this.data.overflowButton&&(p==null?0:(x=p.dismissButtonColorData)==null?0:x.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.gX(p.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.gX(p.dismissButtonColorData.foregroundTitleColor)+";"};
_.l.computeBackgroundStyle=function(p){if(p&&this.data){var x="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var F=_.j6((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);F&&(x+='background-image:url("'+F+'");')}p.backgroundColor!==void 0&&(x+="background-color:"+_.QK(p.backgroundColor)+";");return x}};
_.l.computeHasOverflowButton=function(p){return!!p.overflowButton};
_.l.getLogoHeight=function(p){return this.logoWithPadding(p)?"26":"20"};
_.l.getLogoImageId=function(p){return this.logoWithPadding(p)?"logo-image-with-padding":"logo-image"};
_.l.updateButtonPalette=function(){if(this.data){var p;if((p=this.data.primaryButton)==null?0:p.buttonRenderer){var x;if((x=this.currentColorPalette)==null?0:x.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var F;if((F=this.currentColorPalette)==null?0:F.primaryButtonStyleType)this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}var N;if((N=this.data.dismissButton)==null?0:N.buttonRenderer){var h;if((h=this.currentColorPalette)==null?0:h.dismissButtonColorData)this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData}}}};
_.l.requestElementsPerRow=function(){_.hG(this.hostElement,"yt-request-elements-per-row")};
_.l.updateTitleSpec=function(){var p;(p=this.data)!=null&&p.titleLength&&(this.titleSize=this.elementsPerRow<=3?this.data.titleLength<=10?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL":this.data.titleLength<=13?"TITLE_SIZE_LARGE":this.data.titleLength<=30?"TITLE_SIZE_MEDIUM":"TITLE_SIZE_SMALL")};
_.l.logoWithPadding=function(p){var x,F,N;return(p=(x=this.getCurrentLogo(p,this.isDarkTheme))==null?void 0:(F=x.thumbnails)==null?void 0:(N=F[0])==null?void 0:N.height)&&p%31===0?!0:!1};
_.l.onUpdateElementsPerRowAction=function(p){p&&this.elementsPerRow!==p&&(this.elementsPerRow=p)};
var yQ=M5H;yQ.prototype.elementsPerRowChanged=yQ.prototype.elementsPerRowChanged;yQ.prototype.dataChanged=yQ.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],yQ.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],yQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],yQ.prototype,"ytdDismissibleItemBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],yQ.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],yQ.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],yQ.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],yQ.prototype,"currentColorPalette",void 0);_.B([_.H(),_.k("design:type",Object)],yQ.prototype,"primaryButton",void 0);
_.B([_.H({reflectToAttribute:!0,value:3}),_.k("design:type",Number)],yQ.prototype,"elementsPerRow",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],yQ.prototype,"isDarkTheme",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],yQ.prototype,"titleSize",void 0);_.B([_.H(),_.k("design:type",Number)],yQ.prototype,"videoMetadataColor",void 0);_.B([_.H({reflectToAttribute:!0,selector:_.n1}),_.k("design:type",Boolean)],yQ.prototype,"miniMode",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.k("design:type",Boolean)],yQ.prototype,"isFirstFeedItem",void 0);_.B([_.H({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],yQ.prototype,"roundedContainer",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.k("design:type",Boolean)],yQ.prototype,"hasOverflowButton",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yQ.prototype,"dataChanged",null);_.B([_.W("elementsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yQ.prototype,"elementsPerRowChanged",null);yQ=_.B([_.L({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],yQ);
_.P(yQ,"ytd-brand-video-singleton-renderer",function(){if(a6k!==void 0)return a6k;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="header-container" hidden="[[data.overflowButton]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" hidden="[[!data.overflowButton]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return a6k=p},{mode:_.UQ("kevlar_poly_si_batch_j070")?1:2});var DVH;var f6c=_.mO(function(p){var x=p.data;return _.Z(_.VE,{data:function(){return x().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(x().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var F=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":F=88;break a;default:F=88}return F},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return x().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Ah"),qw8=_.mO(function(p){var x=p.metadataRow;
var F=p.delimiter;return _.Z(_.ft,{each:function(){return x().textParts||[]},
keyBy:"INDEX"},function(N,h){return _.Z(_.TG,null,_.Z(_.KQ,{text:N,noWrap:!0,userInput:!0}),_.Z(KG8,{delimiter:F,max:function(){return x().textParts.length},
index:h}))})},"Bh"),KG8=_.mO(function(p){var x=p.delimiter;
var F=p.max;var N=p.index;return _.Z(_.D9,{cond:function(){return(x==null?void 0:x())&&F()-1>N()},
then:function(){return _.Z("span",null,x)}})},"Ch"),Zxa=_.mO(function(p){var x=p.data;
p={};return _.Z("yt-profile-page-header-information-view-model",{class:_.$L("profile-page-header-information-view-model-wiz",(p["profile-page-header-information-view-model-wiz--mobile"]=!1,p))},_.Z(_.D9,{cond:function(){return x().onTap},
then:function(){return _.Z(_.fQ,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.g$(x().onTap)}},_.Z(_.Es,{data:function(){return x().thumbnail}},{profilePageHeaderThumbnailViewModel:f6c}))},
else:function(){return _.Z("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.Z(_.Es,{data:function(){return x().thumbnail}},{profilePageHeaderThumbnailViewModel:f6c}))}}),_.Z("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.Z(_.D9,{cond:function(){return x().onTap},
then:function(){return _.Z(_.Es,{data:function(){return x().title}},{profilePageHeaderTitleViewModel:function(F){var N=F.data;
return _.Z(_.fQ,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.g$(N().onTap)}},_.Z(_.KQ,{text:function(){return N().title}}))}})},
else:function(){return _.Z(_.Es,{data:function(){return x().title}},{profilePageHeaderTitleViewModel:function(F){var N=F.data;
return _.Z(_.KQ,{text:function(){return N().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.Z(_.Es,{data:function(){return x().metadata}},{profilePageHeaderMetadataViewModel:function(F){var N=F.data;
return _.Z(_.D9,{cond:function(){return N().metadataRows},
then:function(h){return _.Z("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.Z(_.ft,{each:h,keyBy:"INDEX"},function(c,M){return _.Z(_.TG,null,_.Z(qw8,{metadataRow:c,delimiter:" \u2022 "}),_.Z(KG8,{delimiter:" \u2022 ",max:function(){return h().length},
index:M}))}))}})}})))},"Dh");
Zxa.idomCompat=!0;_.o7(Zxa,"yt-profile-page-header-information-view-model",{props:{data:_.G2}});var t5H=function(){return _.m.apply(this,arguments)||this};
_.E(t5H,_.m);t5H.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
var dVm=t5H;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],dVm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],dVm.prototype,"data",void 0);dVm=_.B([_.L({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],dVm);
_.P(dVm,"ytd-effect-pivot-header-view-model",function(){if(DVH!==void 0)return DVH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return DVH=
p},{mode:1});var vN8;var JQ8=function(){return _.m.apply(this,arguments)||this};
_.E(JQ8,_.m);JQ8.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
var C4k=JQ8;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],C4k.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],C4k.prototype,"data",void 0);C4k=_.B([_.L({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],C4k);
_.P(C4k,"ytd-source-pivot-header-renderer",function(){if(vN8!==void 0)return vN8;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return vN8=p},{mode:1});_.o7(_.mO(function(p){var x=function(){return _.r(p.data().flowRoot,WvD)};
_.J9(function(){var F=x(),N=function(){},h=function(){};
if(F){var c,M,f=(M=_.r((c=F.steps)==null?void 0:c[0],_.x4a))==null?void 0:M.stepId;bOt(F,f||"");N=uL_(F);h=YKa(F)}_.E_(function(){N();N=function(){};
h();h=function(){}})});
return _.Z("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.Z(_.o7j,{contentId:function(){return p.data().contentId}},function(){return _.Z("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.Z(_.D9,{cond:x,
then:function(F){return _.Z(_.b58,{data:F})}}))}))},"Eh"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.G2}});_.o7(_.mO(function(){return _.Z("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.Z("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.Z("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.Z(_.KJm,null)),_.Z(_.Ail,{data:{rows:1},isExploreHub:!0}))},"Fh"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.o7(_.mO(function(p){var x=p.data;var F=p.standardUnitMinWidth;p=_.oc();var N=_.a((0,_.Vxm)(x)),h=N.next().value,c=N.next().value,M=function(){var K,t=(K=h())==null?void 0:K.contents;return t==null||t.length===0},f=function(){c(Object.assign({},h(),{contents:[]}))};
_.U$(p,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var K=_.r(x().chipsShelf,HOD);if(K!=null&&K!=null&&K.autoselectChipOnVisible){var t,d,v=_.r(K==null?void 0:(t=K.contents)==null?void 0:t[(d=K.autoselectedChipIndex)!=null?d:0],_.Gv);v&&v.tapCommand&&_.su(v.tapCommand)}}});
return _.Z("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:p},_.Z(_.o7j,{contentId:function(){return x().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.Z("div",null,_.Z("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.Z(_.Es,{data:function(){return x().header}},{sectionHeaderViewModel:function(K){return _.Z(_.RF,{data:K.data,
disableHorizontalPadding:!0})}})),_.Z("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.Z(_.Es,{data:function(){return x().chipsShelf}},{chipsShelfViewModel:function(K){return _.Z(_.WSk,{data:K.data,
callback:f,enableSingleChipSelection:!0})}})),_.Z("div",null,_.Z(_.D9,{cond:M,
then:function(){return _.Z("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.Z(_.Ail,{data:{rows:1},isExploreHub:!0}))}}),_.Z(_.Es,{data:function(){var K;
return(K=h())==null?void 0:K.contents}},{richShelfRenderer:function(K){return _.Z(_.cPm,{data:K.data,
isInnerShelf:!0,standardUnitMinWidth:F})}})))}))},"Gh"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.G2,
standardUnitMinWidth:_.G2}});var Swc=function(){return _.m.apply(this,arguments)||this};
_.E(Swc,_.m);
Swc.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",
params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
Swc.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
var b5=Swc;_.B([_.u(_.nl),_.k("design:type",Object)],b5.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],b5.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.Vw),_.k("design:type",Object)],b5.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],b5.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],b5.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Number)],b5.prototype,"standardUnitMinWidth",void 0);b5=_.B([_.L({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],b5);
_.P(b5,"ytd-rich-section-renderer",function(){if(hoX!==void 0)return hoX;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return hoX=p},{mode:_.UQ("kevlar_poly_si_batch_j029")?
1:2});_.o7(_.gOt,"yt-profile-identity-info-view-model",{props:{data:_.G2,hideDivider:_.G2}});_.o7(_.Cda,"yt-page-header-view-model",{props:{data:_.G2,noPadding:_.G2,enableBanner:_.G2,cinematicContainerTopbarOffset:_.G2,allowCinematicContainerOverflow:_.G2,displayAsSidebar:_.G2,displayAsPanel:_.G2}});_.o7(_.mO(function(p){var x=p.data;var F=function(){var h;return(h=x().numColumns)!=null?h:2},N=function(){return F()>1?3:2};
p={};return _.Z("ytd-rich-grid-group",{class:_.$L("ytdRichGridGroupHost",(p.ytdRichGridGroupHostFirstColumn=function(){return x().colIndex===0},p)),
style:_.a4({"--ytd-rich-grid-group-num-columns":F,"--ytd-rich-grid-items-per-group":N})},_.Z("div",{class:"ytdRichGridGroupContents"},_.Z(_.Es,{data:function(){var h;return(h=x().contents)==null?void 0:h.slice(0,N())}},{richItemRenderer:function(h){return _.Z(_.N9k,{data:h.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Hh"),"ytd-rich-grid-group",{props:{data:_.G2}});var rQH=function(){var p=_.m.apply(this,arguments)||this;p.resizeOnObserverInit=!1;p.isInlinePreviewDisabled=_.S("web_disable_inline_preview");p.disableStickyFilterBar=!1;p.transparentBackgroundChipsBar=!1;p.hideChipsBar=!1;p.isWatchDefaultLayout=!0;p.continuationShowButton=!1;p.rowReducedHorizontalMargin=!1;p.useCompactList=!1;p.manualDownloadsPresent=!1;p.smartDownloadsPresent=!1;p.shouldRenderDownloadsBanner=!1;p.hasOptedIntoSmartDownloads=!1;p.elementsPerRow=4;p.typographyBump=!1;p.showGnomeContents=
!1;p.showExploreHubContents=!1;p.slimItemsPerRow=1;p.pageLoadingFromNavigation=!1;p.loggingRefactor=_.S("kevlar_rich_grid_logging_fix");p.resizeObserver=null;p.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"};p.rendererToTagNameMap=
new Map(Object.entries(p.contentMapping()).map(function(x){var F=_.a(x);x=F.next().value;F=F.next().value;return[x,F.component]}));
p.insertedContent=new Map;return p};
_.E(rQH,_.m);_.l=rQH.prototype;_.l.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var p=_.a(_.n(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),x=p.next();!x.done;x=p.next())x.value.useCompactList=this.useCompactList};
_.l.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var p=_.a(_.n(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),x=p.next();!x.done;x=p.next())x=x.value,x.sizing=this.sizing,x.typographyBump=this.typographyBump};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.l.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]"},
params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.l.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},
bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",mapping:this.contentMapping(),reuseComponents:!1}}};
_.l.attached=function(){document.addEventListener("yt-page-type-changed",_.p5(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.IC(this.resizeObserved,_.Ud("rich_grid_resize_delay_ms",50),this)};
_.l.detached=function(){var p;(p=this.resizeObserver)==null||p.disconnect();document.removeEventListener("yt-page-type-changed",_.p5(this,this.onPageChange))};
_.l.insertRichSection=function(p){var x=p.richItemTargetId;p=p.richSectionRendererToInsert;x&&p&&(this.insertedContent.set(x,p),this.reflowContent())};
_.l.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.l.computeIsInlinePreviewEnabled=function(p,x,F){return _.S("web_disable_inline_preview")?!1:!F&&_.TH8({miniplayerIsActive:p,miniplayerPlaybackState:x})};
_.l.computeSizing=function(){var p=_.L2E(this.data);if(p||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return p?this.useCompactList?"COMPACT":p:this.miniMode?"COMPACT":_.S("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.l.updateItemMinAndMaxWidth=function(){var p=_.Ud("rich_grid_max_item_width",500);p>0&&_.eV(this.hostElement,{"--ytd-rich-grid-item-max-width":p+"px"});var x;p=this.getRichItemMinWidth((x=this.hostElement)==null?void 0:x.clientWidth);p>0&&_.eV(this.hostElement,{"--ytd-rich-grid-item-min-width":p+"px"})};
_.l.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.l.resizeObserved=function(){_.Mt(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.l.navigateBackToHome=function(){_.S("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.S("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var p=_.J().resolve(_.j3).isOnWatch(),x,F=((x=_.q7B(location.pathname))==null?void 0:x.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(F)||p)&&this.gnomeContents&&_.S("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);p&&this.exploreHubContents&&_.S("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.Bi().dispatch(_.F4({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.l.onPageChange=function(){var p=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.S("disable_chip_select_on_nav")||_.Mt(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.E0.addJob(function(){p.pageLoadingFromNavigation=!1;_.S("disable_chip_select_on_nav")&&_.S("h5_reset_cache_and_filter_before_update_masthead")&&p.resetCacheAndIsFilteredFeed();p.setMasthead();p.maybeSetBigYoodle();p.forceRefreshAndLog();p.terminateVideoPreview();_.S("web_hide_gnome_until_user_navigates_back_to_home")&&
(p.dataChanged(),_.jB(p,function(){if(p.showGnomeContents){var x=Array.from(_.n(p.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(N){N=_.n(N).querySelector("ytd-rich-shelf-renderer");return!!N&&N.isGnomeShelf()});
if(x){x=x.offsetTop-p.contentsElement.offsetTop;var F=_.J().resolve(_.j3).getCurrentPage();F&&F.getPageScrollingElement().scrollTo({top:x,behavior:"smooth"})}}}));
_.S("web_hide_explore_hub_until_user_navigates_back_to_home")&&(p.dataChanged(),_.jB(p,function(){if(p.showExploreHubContents&&!_.S("web_explore_hub_no_scroll")){var x=Array.from(_.n(p.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(N){return!!N.querySelector("ytd-talk-to-recs-flow-renderer")});
if(x){x=x.offsetTop-p.contentsElement.offsetTop;var F=_.J().resolve(_.j3).getCurrentPage();F&&F.getPageScrollingElement().scrollTo({top:x,behavior:"smooth"})}}}))},8)):((_.S("web_hide_gnome_until_user_navigates_back_to_home")||_.S("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.l.dataChanged=function(){var p=this,x=_.Ud("web_rich_grid_row_margin",0);x>0&&_.eV(this.hostElement,{"--ytd-rich-grid-row-margin":x+"px"});_.Mt(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.jB(this,function(){p.updateRichItemGridPositions();p.contentsElement&&_.eV(p.hostElement,{"--ytd-rich-grid-content-offset-top":p.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.l.initResizeObserver=function(){var p=this;if(window.ResizeObserver){var x;(x=this.resizeObserver)==null||x.disconnect();var F=!1;this.resizeObserver=new ResizeObserver(function(){if(F){var N;(N=p.resizeObserver)==null||N.disconnect();var h;(h=p.throttledOnResize)==null||h.fire();requestAnimationFrame(function(){var M;(M=p.throttledOnResize)==null||M.fire();p.initResizeObserver()})}else if(F=!0,p.resizeOnObserverInit){var c;
(c=p.throttledOnResize)==null||c.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.l.contentLengthChanged=function(){if(_.S("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Mt(this.hostElement,"ytd-rich-item-index-update-action")};
_.l.updateElementsPerRow=function(){_.Mt(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.F4({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.F4({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.l.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.l.onRichShelfRendererCollapse=function(p){if(this.shownItems){var x=p.detail;p=this.shownItems.findIndex(function(N){var h,c;return((c=_.r(N==null?void 0:(h=N.richSectionRenderer)==null?void 0:h.content,_.wvj))==null?void 0:c.trackingParams)===x});
var F=p+1;p<0||F>=this.contentsElement.children.length||!this.shownItems[F].richItemRenderer||this.contentsElement.children[F].scrollIntoView({behavior:"smooth",block:"start"})}};
_.l.onSoftReloadPage=function(){this.scrollUpToTop()};
_.l.handleRerenderDownloadsData=function(){_.S("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.l.handlePlaylistRemoveVideosAction=function(p){var x;if(((x=_.r(p,_.FNB))==null?0:x.setVideoIds)&&this.data&&this.data.contents){p=_.r(p,_.FNB).setVideoIds;for(x=this.data.contents.length-1;x>=0;){var F=_.r(this.data.contents[x],_.Qf);(F=F&&_.r(F.content,_.bx))&&F.setVideoId&&p.includes(F.setVideoId)&&this.splice("data.contents",x,1);x--}this.updateIndices()}};
_.l.updateIndices=function(){if(this.data&&this.data.contents)for(var p=0;p<this.data.contents.length;p++)this.set("data.contents."+p+".richItemRenderer.index",_.L1(String(p+1)))};
_.l.hasTopRowInlinePlayableVideoWithEndorsement=function(p){var x;return!((x=p.slice(0,this.getItemsPerRow()))==null||!x.some(function(F){var N;F=_.r(F==null?void 0:(N=F.richItemRenderer)==null?void 0:N.content,_.LFI);var h;return(F==null?void 0:F.inlinePlaybackEndpoint)&&(F==null?void 0:(h=F.thumbnailOverlays)==null?void 0:h.some(function(c){return c.thumbnailOverlayEndorsementRenderer}))}))};
_.l.refreshGridLayoutNew=function(p,x,F,N){var h=N.postsPerRow;var c=N.slimItemsPerRow;var M=N.gameCardsPerRow;N=N.miniGameCardsPerRow;var f;if((f=this.data)==null||!f.contents||!this.containerWidth)return!1;var K;if((K=this.data.responsiveContainerConfiguration)==null?0:K.responsiveSize){var t=_.W5Z(this.data.responsiveContainerConfiguration,this.containerWidth),d;f=_.RC(Object.assign({},t,{standardUnitMinWidth:(d=this.data)==null?void 0:d.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&t.isCompactList)}else f=_.RC({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(t=this.data)==null?void 0:t.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=f.typographyBump;d=!1;if(p||this.elementsPerRow!==f.numItems||this.postsPerRow!==h||this.slimItemsPerRow!==c||this.gameCardsPerRow!==
M||this.miniGameCardsPerRow!==N||this.gutter!==f.gutter)d=this.elementsPerRow!==f.numItems,this.elementsPerRow=f.numItems,this.postsPerRow=h,this.slimItemsPerRow=c,this.gameCardsPerRow=M,this.miniGameCardsPerRow=N,this.gutter=f.gutter,this.itemWidth=f.itemWidth,this.reflowContent(x),_.eV(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":f.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(F);this.ytdReduxBehavior.dispatch(_.F4({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:f.maxContainerWidth}));return d};
_.l.refreshGridLayout=function(p,x){var F,N=(F=this.hostElement)==null?void 0:F.clientWidth;this.containerWidth=this.adjustRichGridWidth(N,!0);var h;if((h=this.data)==null||!h.contents||!this.containerWidth)return p&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.S("rg_pending_reflow_ks")&&(p=!0,this.pendingForceReflow=!1);F=this.getRichItemMinWidth(N);var c=this.isShortsPanel?146:194,M=this.getMiniGameCardMinWidth(),f=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
N=F=this.calcElementsPerRow(F,f);(h=F<=3&&this.miniModeAllowed())&&(F=this.calcElementsPerRow(240,4));var K=this.calcMaxSlimElementsPerRow(F,f,this.isDefaultGrid);f=this.calcElementsPerRow(c,K);var t=this.calcElementsPerRow(this.isCompactGrid?c:154,K);c=this.calcElementsPerRow(this.isCompactGrid&&!_.S("enable_playables_reduced_card_count")?c:M,K);M=!1;if(this.sizing)return this.refreshGridLayoutNew(p,x,h,{postsPerRow:N,slimItemsPerRow:f,gameCardsPerRow:t,miniGameCardsPerRow:c});if(p||this.elementsPerRow!==
F||this.postsPerRow!==N||this.slimItemsPerRow!==f||this.gameCardsPerRow!==t||this.miniGameCardsPerRow!==c)M=this.elementsPerRow!==F,this.elementsPerRow=F,this.postsPerRow=N,this.slimItemsPerRow=f,this.gameCardsPerRow=t,this.miniGameCardsPerRow=c,this.reflowContent(x),this.updateElementsPerRow(),_.eV(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)&&_.eV(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(h);_.Mt(this.hostElement,"yt-rich-grid-layout-refreshed");return M};
_.l.getRichItemMinWidth=function(p){var x=_.Ud("rich_grid_min_item_width",310);if(!_.S("kevlar_disable_min_width_override")){var F,N;x=(N=(F=this.data)==null?void 0:F.minItemWidth)!=null?N:x}return x+_.VFH(p)};
_.l.calcMaxSlimElementsPerRow=function(p,x,F){return(F===void 0?0:F)?p===1?2:p%2===0?_.S("web_shorts_2_by_3_reduce_items_per_row")&&p>=4?p/2*3-1:p/2*3:_.S("web_shorts_2_by_3_reduce_items_per_row")&&p>=3?p+1:p+2:x*2};
_.l.adjustRichGridWidth=function(p,x){var F=_.S("disable_rich_grid_guide_compensation");if(!this.isWatch&&!F){F=_.J().resolve(_.Bw(_.wF));var N=F==null?void 0:F.guideElement;if(!(!F||F.getData()||N!=null&&N.opened||F.getMiniGuideVisible()))if(F.canFitPersistentGuide(p)&&F.getGuideExpandsAutomatically()){var h,c,M=Number((h=window.getComputedStyle(this.hostElement))==null?void 0:(c=h.getPropertyValue("--app-drawer-width"))==null?void 0:c.replace("px",""));p-=M||0}else if(F.canFitMiniGuide(p)){var f;
h=Number((M=window.getComputedStyle(this.hostElement))==null?void 0:(f=M.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:f.replace("px",""));p-=h||0}}p>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(p-=x?32:48));return p};
_.l.calcElementsPerRow=function(p,x){var F=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),N=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((F+N)/(p+N))||1,x)};
_.l.reflowContent=function(p){var x=this;if(!this.isReflowing){this.isReflowing=!0;var F,N,h=!!((F=this.data)==null?0:(N=F.contents)==null?0:N.some(function(X){return _.r(X,_.hf)}));
F=this.getItemsPerRow();var c;N=(c=this.data)==null?void 0:c.reflowOptions;p&&(_.wH("rgr_s"),_.jB(this,function(){_.wH("rgr_nrf")}));
p={};(c=_.n(this.hostElement).querySelector("#contents"))&&(p={contentElement:c,rendererToTagNameMap:this.rendererToTagNameMap});c=(c=this.data.contents)?c.slice():[];var M=(_.S("web_hide_gnome_behind_feed_filter_chip")||_.S("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,f=_.S("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,K=-1,t=-1;if(this.isHomePage&&f){for(f=0;f<c.length;f++){var d=void 0,v=void 0;_.r((d=c[f])==null?void 0:
(v=d.richSectionRenderer)==null?void 0:v.content,VKD)&&(t=f)}t>-1&&(this.exploreHubContents=c.splice(t,1))}if(this.isHomePage&&M){for(t=0;t<c.length;t++)v=d=void 0,(f=_.r((d=c[t])==null?void 0:(v=d.richSectionRenderer)==null?void 0:v.content,_.wvj))&&M&&(v=d=void 0,f=_.r((d=f)==null?void 0:(v=d.contents)==null?void 0:v[0],_.Qf),d=void 0,_.r((d=f)==null?void 0:d.content,_.GkI)&&(K=t));K>-1&&(this.gnomeContents=c.splice(K,1))}var C=ghH(c,F,h,N,this.getRichGridStyle(),p,this.insertedContent);h=function(){x.shownItems=
C;x.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(C),_.jB(this,h)):h()}};
_.l.getFirstRowItems=function(p){for(var x=[],F=0;F<p.length;F++){var N=void 0,h=void 0,c=void 0,M=void 0,f=void 0,K=void 0;if(((N=p[F])==null?void 0:(h=N.richItemRenderer)==null?void 0:h.rowIndex)===0||((c=p[F])==null?void 0:(M=c.richGroupRenderer)==null?void 0:M.rowIndex)===0||((f=p[F])==null?void 0:(K=f.richSectionRenderer)==null?void 0:K.rowIndex)===0)x.push(p[F]);else break}return x};
_.l.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.l.handleChipCloudChipSelectAction=function(p,x){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.S("web_hide_gnome_behind_feed_filter_chip")&&(x?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.l.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.S("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.l.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.S("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.l.terminateVideoPreview=function(){_.Mt(this.hostElement,"yt-terminate-video-preview-action")};
_.l.updateRichItemGridPositions=function(){var p={gridData:{gridColumnCount:this.elementsPerRow}},x;if((x=this.data)==null?0:x.trackingParams)this.loggingRefactor?_.cl().stateChanged(this.data.trackingParams,p):(x=_.b0())&&_.kv(x,_.fr(this.data.trackingParams),p);_.Mt(this.hostElement,"ytd-rich-item-index-update-action")};
_.l.miniModeAllowed=function(){return _.S("disable_channels_mini_mode")?!1:this.isChannelPage};
_.l.getMiniGameCardMinWidth=function(){return _.S("enable_playables_reduced_card_count")?240:154};
_.l.updateMiniMode=function(p){this.miniMode=this.miniModeAllowed()&&p;this.ytdReduxBehavior.dispatch(_.F4({type:"SET_RICH_GRID_MINI_MODE",payload:p}))};
_.l.isCurrentPage=function(){return location.pathname===this.pagePath};
_.l.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var p=_.J().resolve(_.j3).getCurrentPage();p&&p.setScrollTop(0)}};
_.l.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.l.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.l.maybeSetBigYoodle=function(){var p,x=(p=this.data)==null?void 0:p.bigYoodle;this.bigYoodleData!==x&&(this.bigYoodleData=x)};
_.l.setMasthead=function(){var p;((p=this.data)==null?0:p.masthead)?this.mastheadData=this.data.masthead:_.S("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.l.getRichGridStyle=function(){var p,x;return(x=(p=this.data)==null?void 0:p.style)!=null?x:"RICH_GRID_STYLE_UNKNOWN"};
_.l.onIsShortsGridChange=function(){var p=this.ytdReduxBehavior,x=p.dispatch,F=this.getRichGridStyle();x.call(p,_.F4({type:"SET_RICH_GRID_STYLE",payload:F}))};
_.R8.Object.defineProperties(rQH.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var p;return(((p=this.data)==null?void 0:p.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var p;return(((p=this.data)==null?void 0:p.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var p=_.J().resolve(_.j3).getCurrentPage(),x,F,N;return(((x=this.data)==null?void 0:x.targetId)==="browse-feedFEsfv_audio_pivot"||_.S("web_enable_channel_pivot_panel")&&((F=this.data)==null?void 0:F.targetId)==="browse-feedFEsfv_channel_pivot"||_.S("web_enable_effect_pivot_panel")&&((N=this.data)==null?void 0:N.targetId)==="browse-feedFEsfv_effect_pivot")&&(p==null?void 0:p.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.S("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 p;return!((p=this.data)==null?0:p.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var p;return((p=_.J().resolve(_.j3).getCurrentPage())==null?void 0:p.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var p;return((p=_.J().resolve(_.j3).getCurrentPage())==null?void 0:p.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 p;return this.hideChipsBar||(((p=this.data)==null?void 0:p.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.S("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var p;return(((p=this.data)==null?void 0:p.targetId)||"")==="watch-next-feed"&&!_.S("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return((p=this.data)==null?0:p.enableContentSpecificAspectRatio)||((x=this.data)==null?0:(F=x.responsiveContainerConfiguration)==null?0:F.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.Ud("web_continuation_handler_margin",0):0}}});
var Ab=rQH;Ab.prototype.onIsShortsGridChange=Ab.prototype.onIsShortsGridChange;Ab.prototype.onReloadContinuationFinish=Ab.prototype.onReloadContinuationFinish;Ab.prototype.reflowContent=Ab.prototype.reflowContent;Ab.prototype.handleRerenderDownloadsData=Ab.prototype.handleRerenderDownloadsData;Ab.prototype.onRichShelfRendererCollapse=Ab.prototype.onRichShelfRendererCollapse;Ab.prototype.onRequestElementsPerRow=Ab.prototype.onRequestElementsPerRow;Ab.prototype.contentLengthChanged=Ab.prototype.contentLengthChanged;
Ab.prototype.dataChanged=Ab.prototype.dataChanged;Ab.prototype.onSizingChange=Ab.prototype.onSizingChange;Ab.prototype.onUseCompactListChange=Ab.prototype.onUseCompactListChange;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Ab.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ab.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.n7),_.k("design:type",Object)],Ab.prototype,"ironResizableBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Ab.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.Vw),_.k("design:type",Object)],Ab.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Ab.prototype,"componentBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],Ab.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ab.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0,selector:_.n1}),_.k("design:type",Boolean)],Ab.prototype,"miniMode",void 0);_.B([_.H({value:[]}),_.k("design:type",Array)],Ab.prototype,"shownItems",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Ab.prototype,"isReflowing",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Ab.prototype,"isFilteredFeed",void 0);_.B([_.H({selector:_.gxp}),_.k("design:type",Boolean)],Ab.prototype,"guideIsExpanded",void 0);
_.B([_.H({selectorArgs:["entitySelectorType"],selector:function(p,x){if(_.S("kevlar_modern_downloads_page")&&x&&x!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(x){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var F=p.entities;x=_.Qr(F);var N=_.zt(F),h=_.jOz(p),c=_.ObZ(p);p=_.Lep(p);var M=_.dJp(F),f=_.ST(x);F=_.sJ(F);return _.bek(x,N,M,h,c,f,F,p);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return x=_.Qr(p.entities),_.uMr(x);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return x=
_.KeJ(p.entities),_.YDr(x);default:_.no(new _.qE("Error: entitySelectorType defined but not matched in selector.",p,x))}}}),
_.k("design:type",Object)],Ab.prototype,"entityDrivenRichGridData",void 0);_.B([_.H(),_.k("design:type",Object)],Ab.prototype,"resizeOnObserverInit",void 0);_.B([_.H(),_.k("design:type",Object)],Ab.prototype,"bigYoodleData",void 0);_.B([_.H(),_.k("design:type",Object)],Ab.prototype,"mastheadData",void 0);_.B([_.H(),_.k("design:type",Boolean)],Ab.prototype,"isInlinePreviewDisabled",void 0);_.B([_.H(),_.k("design:type",Object)],Ab.prototype,"disableStickyFilterBar",void 0);
_.B([_.H(),_.k("design:type",Object)],Ab.prototype,"transparentBackgroundChipsBar",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ab.prototype,"hideChipsBar",void 0);_.B([_.H(),_.k("design:type",Object)],Ab.prototype,"isWatchDefaultLayout",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ab.prototype,"continuationShowButton",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ab.prototype,"rowReducedHorizontalMargin",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ab.prototype,"useCompactList",void 0);_.B([_.H({selector:function(p){return _.zt(p.entities).length>0}}),
_.k("design:type",Object)],Ab.prototype,"manualDownloadsPresent",void 0);_.B([_.H({selector:function(p){return _.Qr(p.entities).length>0}}),
_.k("design:type",Object)],Ab.prototype,"smartDownloadsPresent",void 0);_.B([_.H({selector:_.ObZ}),_.k("design:type",Object)],Ab.prototype,"shouldRenderDownloadsBanner",void 0);_.B([_.H({selector:_.jOz}),_.k("design:type",Object)],Ab.prototype,"hasOptedIntoSmartDownloads",void 0);_.B([_.W("useCompactList"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ab.prototype,"onUseCompactListChange",null);
_.B([_.W("sizing","typographyBump"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ab.prototype,"onSizingChange",null);_.B([_.H({selector:_.yYZ}),_.k("design:type",Number)],Ab.prototype,"miniplayerPlaybackState",void 0);_.B([_.H({selector:_.bP}),_.k("design:type",Boolean)],Ab.prototype,"miniplayerIsActive",void 0);
_.B([_.H({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.k("design:type",Boolean)],Ab.prototype,"isInlinePreviewEnabled",void 0);_.B([_.H({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.k("design:type",String)],Ab.prototype,"sizing",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ab.prototype,"elementsPerRow",void 0);
_.B([_.H(),_.k("design:type",Object)],Ab.prototype,"typographyBump",void 0);_.B([_.H(),_.k("design:type",Number)],Ab.prototype,"itemWidth",void 0);_.B([_.Ff("#header"),_.k("design:type",HTMLElement)],Ab.prototype,"headerElement",void 0);_.B([_.Ff("#contents"),_.k("design:type",HTMLElement)],Ab.prototype,"contentsElement",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ab.prototype,"dataChanged",null);
_.B([_.cT("data.contents.length"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ab.prototype,"contentLengthChanged",null);_.B([_.V("yt-request-elements-per-row"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ab.prototype,"onRequestElementsPerRow",null);
_.B([_.V("yt-rich-shelf-renderer-collapse"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Ab.prototype,"onRichShelfRendererCollapse",null);_.B([_.cT("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ab.prototype,"handleRerenderDownloadsData",null);
_.B([_.w("data"),_.k("design:type",String),_.k("design:paramtypes",[])],Ab.prototype,"entitySelectorType",null);_.B([_.H({reflectToAttribute:!0}),_.w("data.targetId"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ab.prototype,"isSub",null);_.B([_.H({reflectToAttribute:!0}),_.w("data.targetId"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ab.prototype,"isWatch",null);
_.B([_.H({reflectToAttribute:!0}),_.w("data.targetId"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ab.prototype,"isShortsPanel",null);_.B([_.H({reflectToAttribute:!0}),_.w("isWatch"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ab.prototype,"reducedTopMargin",null);_.B([_.H({reflectToAttribute:!0}),_.w("data","isWatch","isWatchDefaultLayout"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ab.prototype,"noTopMargin",null);
_.B([_.H({reflectToAttribute:!0}),_.w("isInlinePreviewEnabled","shownItems"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ab.prototype,"topRowEndorsement",null);_.B([_.w("data.header"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ab.prototype,"hideHeader",null);_.B([_.V("yt-rich-grid-reflow"),_.k("design:type",Function),_.k("design:paramtypes",[Boolean]),_.k("design:returntype")],Ab.prototype,"reflowContent",null);
_.B([_.V("yt-reload-continuation-finish"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ab.prototype,"onReloadContinuationFinish",null);_.B([_.w("data"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ab.prototype,"isSlimGrid",null);_.B([_.w("data"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ab.prototype,"isShortsGrid",null);
_.B([_.w("data","isSlimGrid","isShortsGrid"),_.H(),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ab.prototype,"noRichItemGutterMargins",null);_.B([_.w("data"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ab.prototype,"isShortsGridSlim",null);_.B([_.w("data"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ab.prototype,"isCompactGrid",null);
_.B([_.w("data"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ab.prototype,"isDefaultGrid",null);_.B([_.w("data.targetId"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ab.prototype,"hideChipsBarOnHome",null);_.B([_.w("data.targetId"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ab.prototype,"hideChipsBarOnWatch",null);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ab.prototype,"onIsShortsGridChange",null);_.B([_.w("data.enableContentSpecificAspectRatio"),_.H(),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ab.prototype,"force16By9ThumbnailAspectRatio",null);_.B([_.w("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],Ab.prototype,"continuationTriggerOffset",null);Ab=_.B([_.L({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],Ab);
_.P(Ab,"ytd-rich-grid-renderer",function(){if($3m!==void 0)return $3m;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return $3m=p},{mode:2});var ENm;var XOX;var gND=function(){return _.m.apply(this,arguments)||this};
_.E(gND,_.m);var QVc=gND;_.B([_.H(),_.k("design:type",Object)],QVc.prototype,"data",void 0);QVc=_.B([_.JZ({is:"yt-alert-renderer",disableElementRegistration:!0})],QVc);
_.P(QVc,"yt-alert-renderer",function(){if(XOX===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;ENm===void 0&&(ENm=document.createElement("template"));var N=ENm;F.call(x,N.content.cloneNode(!0),p.content.firstChild);XOX=p}p=XOX;return p},{mode:2});
}catch(e){_._DumpException(e)}
try{
var qua;qua={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}};_.Zrm=_.mO(function(p){var x=_.F6(),F=_.J().resolve(_.YL);_.d1(function(){requestAnimationFrame(function(){var h;(h=x.lottieEl)==null||h.addEventListener("DOMLoaded",function(){var c;(c=p.onLottieLoaded)==null||c.call(p)})})});
var N={};return _.Z("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var h;return((h=p.data)==null?void 0:h.call(p).targetId)||""}},_.Z(_.e6,{className:_.$L((N.ytChatLoadingViewModelRtl=F==="rtl",N)),
animationName:function(){return qua.animationConfig.name},
data:qua,animationRef:x}))},"Lf");
}catch(e){_._DumpException(e)}
try{
var LiH;LiH=function(p,x){x=x.width!==window.innerWidth||x.height!==window.innerHeight;document.visibilityState==="hidden"||x||p&&_.zj(p)};
_.PK_=function(p,x){x=x===void 0?{}:x;var F,N,h,c,M,f,K,t,d,v,C,X;return _.D(function(Q){switch(Q.nextAddress){case 1:F=x;N=F.shouldWrap===void 0?!0:F.shouldWrap;h=F.skipTransitionTimeoutMs===void 0?300:F.skipTransitionTimeoutMs;c=F.beforeTransition;M=F.afterTransition;if(!N||!document.startViewTransition||document.visibilityState==="hidden")return Q.return(p());f={width:window.innerWidth,height:window.innerHeight};(K=c)==null||K();_.KM(Q,2);t=document.startViewTransition(p);d=setTimeout(function(){t.skipTransition();
var b;(b=M)==null||b()},h);
return _.q(Q,t.ready,4);case 4:return clearTimeout(d),_.q(Q,t.finished,5);case 5:clearTimeout(d);(v=M)==null||v();_.ub(Q,0);break;case 2:C=_.v9(Q),(X=M)==null||X(),LiH(C,f),_.JB(Q)}})};
_.gQ=function(p){return p.watch.isTheaterMode};
_.Tjt=function(p){var x=_.KH("DIV");p&&(x.className=p);x.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";p=_.KH("DIV");_.b6b(p,"200px","200px");x.appendChild(p);document.body.appendChild(x);p=x.offsetWidth-x.clientWidth;_.qc(x);return p};
_.Qy=function(){for(var p=Array(36),x=0,F,N=0;N<36;N++)N==8||N==13||N==18||N==23?p[N]="-":N==14?p[N]="4":(x<=2&&(x=33554432+Math.random()*16777216|0),F=x&15,x>>=4,p[N]=_.exB[N==19?F&3|8:F]);return p.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 BjH=_.B$(['<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>']),
RRD=_.O1C(BjH);RRD.setAttribute("style","display: none;");document.head.appendChild(RRD.content);_.zQ=_.ifJ(_.Tjt);var kj8;var UfH;var io8=function(){var p=_.m.apply(this,arguments)||this;p.icon=null;return p};
_.E(io8,_.m);io8.prototype.dismiss=function(){_.hG(this.hostElement,"yt-live-chat-error-message-dismiss")};
io8.prototype.computeIcon=function(p){return p&&p.iconType?"yt-icons:"+p.iconType.toLowerCase():"yt-icons:close"};
var sA=io8;_.B([_.H(),_.k("design:type",Object)],sA.prototype,"data",void 0);_.B([_.H({computed:"computeIcon(data.icon)"}),_.k("design:type",Object)],sA.prototype,"icon",void 0);sA=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],sA);
_.P(sA,"yt-live-chat-error-message-renderer",function(){if(UfH===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;kj8===void 0&&(kj8=document.createElement("template"));var N=kj8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);UfH=p}p=UfH;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var z8E,stg,yeo,b8l,Ae6,Yn,VHg,WmA,H8e,mHn,o_K,O85,V4,jtM,Lm5,PmP,TDn,BDb,R8M,kXz,UH5,i8P,I8b,$H6,e8U,pzK,xMP,FAU,NeE,h5b,ln6,coz,anM,MPU,DMe,fnb,KAM,qUg,Z6b,tPP,dM6,Cg6,roe,XzK,gEU,QMP,z5E,vEK,Jon,yo6,b6z,Ao6,uKo,YUb,sME,VPP;z8E=function(p,x,F){x=x===void 0?5:x;if(x!==0){var N=typeof p==="function"?p():document.querySelector(p);N?(F==null?0:F.enableSmartFocus)?_.n3$(N):N.focus():setTimeout(function(){z8E(p,x-1,F)},500)}};
stg=function(p,x){return _.M4(p.entities,"timedMarkersListSyncEntity",x)};
_.n_b=function(){_.S("web_watch_log_theater_mode")&&_.ZS("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
yeo=function(p,x){return _.M4(p.entities,"liveReactionsDataEntity",x)};
b8l=function(p,x){p=_.M4(p.entities,"booleanEntity",x);return!(!p||!p.value)};
Ae6=function(p,x){var F=_.b0();F&&p&&_.jz(F,_.fr(p),x)};
_.ucM=function(p,x,F){if(!p.includes("START_TIME_PLACEHOLDER")||!p.includes("END_TIME_PLACEHOLDER"))return p;var N=new Date(0),h=new Date(0);N.setUTCMilliseconds(x);h.setUTCMilliseconds(F);return p.replace("START_TIME_PLACEHOLDER",_.mc(N,7)).replace("END_TIME_PLACEHOLDER",_.mc(h,7))};
Yn=function(p){return p.watch.isWatchActive};
_.w9=function(p){return p!=null&&p.watch?p.watch.isWatchFullscreen:!1};
_.YkA=function(p){return p.watch.watchWindowSize};
_.wHM=function(p){return _.gQ(p)||_.w9(p)||_.M8M(p)};
_.GXP=function(p){return!_.wHM(p)};
_.G_=function(p){return p.watch.watchScrollTop};
VHg=function(p){return p.watch.isLiveChatCollapsed};
WmA=function(p){return p.watch.openEngagementPanels};
H8e=function(p){switch(p){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}};
mHn=function(p,x,F){var N=_.g$(F);p&&x&&N&&p.getPlayerPromise().then(function(h){_.SCp(N)&&_.Xx();(new _.JL(h)).executeCommand(N,x);_.S("continue_playback_on_desktop_companion_click")||h.pauseVideo()})};
o_K=function(p){var x=_.Pt(),F;if(F=_.A9("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var N;F=(N=F())==null?void 0:N.layoutId}else F=null;mHn(x,F,p)};
O85=function(p){var x=_.Pt(),F;if(F=_.A9("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var N;F=(N=F())==null?void 0:N.layoutId}else F=null;mHn(x,F,p)};
V4=function(p,x){var F=p<0?"-":"";p=Math.abs(p);var N=Math.floor(p/3600),h=Math.floor(p)%3600,c=Math.floor(h/60);h=Math.floor(h)%60;var M="";(x===void 0?0:x)&&(M="."+Math.round((p-Math.floor(p))*10));return N>0?F+N+":"+(c<10?"0"+c:""+c)+":"+(h<10?"0"+h:""+h)+M:F+c+":"+(h<10?"0"+h:""+h)+M};
jtM=function(p){var x=p.match(/[^0-9:\.]/g);if(x&&x.length>0)return null;p=p.split(":");if(p.length===0||p.length>3)return null;x=1;for(var F=0;p.length>0;){var N=p.pop();if(N===void 0)break;var h=Number(N);if(N===""||isNaN(h))return null;F+=h*x;x*=60}return F};
Lm5=function(p,x,F,N){p=Math.max(F,p);x=Math.min(x,N-F);p+x>N?(F=N,p=F-x):F=p+x;return{start:p,end:F}};
PmP=function(p,x,F,N,h,c){p<F?p=F:p+h>N&&(p=N-h);x>N&&(x=N);x=Math.min(p+c,Math.max(p+h,x));return{start:p,end:x}};
TDn=function(p,x,F,N,h,c){x>N?x=N:x-h<F&&(x=F+h);p<F&&(p=F);p=Math.min(x-h,Math.max(x-c,p));return{start:p,end:x}};
BDb=function(p){return _.S("web_transcript_cue_id_killswitch")?String(p):"ytd-transcript-renderer_"+p};
R8M=function(p){return _.S("web_transcript_cue_id_killswitch")?!0:p.startsWith("ytd-transcript-renderer")};
kXz=function(p){var x=_.Pt(),F;if(F=_.A9("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var N;F=(N=F())==null?void 0:N.layoutId}else F=null;mHn(x,F,p)};
UH5=function(p,x){return _.M4(p.entities,"youchatPendingResponseEntity",x)};
i8P=function(p){return function(x){_.wo(_.KV("youchatPendingResponseEntity",p,{entityKey:p,isPendingResponse:x}))}};
I8b=function(p,x){return _.M4(p.entities,"booleanEntity",x)};
$H6=function(){return function(p){_.wo(_.KV("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:p}))}};
e8U=function(p){p==null||p.addEventListener("DOMLoaded",function(){p.goToAndPlay(p.totalFrames-48,!0)})};
pzK=function(p){p.style.height="auto";p.style.height=Math.min(p.scrollHeight||20,80)+"px"};
xMP=function(p,x){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:x}}],insertByPositionInSection:{sectionTargetId:p,position:"INSERTION_POSITION_LAST"}}}]}}}};
FAU=function(p){var x=_.Pt(),F;F=(F=_.A9("yt.www.ads.eventcache.getLastCompanionData"))?(F=F())&&F.layoutId:null;mHn(x,F,p)};
NeE=function(p){var x=_.Pt(),F;F=(F=_.A9("yt.www.ads.eventcache.getLastCompanionData"))?(F=F())&&F.layoutId:null;mHn(x,F,p)};
h5b=function(p,x){x=x===void 0?!1:x;if(p.simpleText)p=[{text:p.simpleText}];else{var F;p=((F=p.runs)!=null?F:[]).map(function(N){return Object.assign({},N)})}if(x)for(x=_.a(p),F=x.next();!F.done;F=x.next())F.value.bold=!0;
return p};
ln6=function(p){var x=p.startEndTimeTemplate,F=p.startTimeUtcMillis;p=p.endTimeUtcMillis;if(x&&F&&p)return _.L1(_.ucM(_.Pi(x),Number(F),Number(p)))};
coz=function(p,x){var F,N,h=p==null?void 0:(F=p.viewCount)==null?void 0:(N=F.videoViewCountRenderer)==null?void 0:N.shortViewCount;if(!x&&h)return h;var c,M;return p==null?void 0:(c=p.viewCount)==null?void 0:(M=c.videoViewCountRenderer)==null?void 0:M.viewCount};
anM=function(p,x){var F=p==null?void 0:p.relativeDateText;return!x&&F?[F,!0]:[p==null?void 0:p.dateText,!1]};
MPU=function(p,x,F,N,h){N=N===void 0?!0:N;h=h===void 0?"":h;var c=coz(p,x),M=_.a(anM(p,x)),f=M.next().value;M=M.next().value;x=x?p==null?void 0:p.sponsorsOnlyFirstTimeLongText:p==null?void 0:p.sponsorsOnlyFirstTimeShortText;var K=[];F&&c&&K.push(c);!F&&M||!f||K.push(f);p=[].concat(_.se(K),[x,p==null?void 0:p.stationName,p==null?void 0:p.rating,p?ln6(p):void 0,p==null?void 0:p.upNextProgramText,p==null?void 0:p.superTitleLink]).filter(function(t){return!!t});
F={runs:[]};for(c=0;c<p.length;c++)F.runs.push.apply(F.runs,_.se(h5b(p[c],N))),c<p.length-1&&F.runs.push({text:" "+h+" ",bold:N});return F};
DMe=function(p){if(p)return{runs:[{text:p,bold:!0}]}};
fnb=function(p){var x,F,N,h;if(p=p==null?void 0:(x=p.contents)==null?void 0:(F=x.twoColumnWatchNextResults)==null?void 0:(N=F.results)==null?void 0:(h=N.results)==null?void 0:h.contents){var c,M;return(M=(c=p.find(function(f){return!!f.videoPrimaryInfoRenderer}))==null?void 0:c.videoPrimaryInfoRenderer)==null?void 0:M.updatedMetadataEndpoint}};
KAM=function(p,x){var F;return(F=p.sourceConfigs)==null?void 0:F.find(function(N){return N.videoId===x})};
qUg=function(p){return p==="End of video"||p==="End of playlist"};
Z6b=function(p){var x,F,N,h;return(x=p.getWatchNextResponse())==null?void 0:(F=x.contents)==null?void 0:(N=F.twoColumnWatchNextResults)==null?void 0:(h=N.playlist)==null?void 0:h.playlist};
tPP=function(p){var x,F,N,h,c,M;return(x=Z6b(p))==null?void 0:(F=x.playlistButtons)==null?void 0:(N=F.menuRenderer)==null?void 0:(h=N.topLevelButtons)==null?void 0:(c=h[0])==null?void 0:(M=c.playlistLoopButtonRenderer)==null?void 0:M.playlistLoopStateEntityKey};
dM6=function(p){var x=_.J().resolve(_.Yx),F;return(x=(F=_.r(x.getAutoplayEndpoint(),_.B7))==null?void 0:F.playlistId)&&x===p};
Cg6=function(p,x,F,N,h){function c(){_.E0.cancelJob(WY);var M=vEK(x,F/p.getPlaybackRate()),f=M.hours,K=M.minutes;M=(M.seconds*1E3||6E4)/p.getPlaybackRate();p.setVideoTimeLeft(Jon(f,K));N&&p.getPlayerState()!==0&&p.setSleepTimerTimeLeft(Jon(f,K,!0));(f>0||K>0)&&!h&&(WY=_.tR(_.E0,c,M))}
_.E0.cancelJob(WY);WY=_.tR(_.E0,c)};
roe=function(p,x,F){function N(){_.E0.cancelJob(SUM);var h=vEK(x,F),c=h.hours;h=h.minutes;var M=6E4/p.getPlaybackRate();if(c>0||h>0)p.setSleepTimerTimeLeft(Jon(c,h,!0)),SUM=_.tR(_.E0,N,M)}
_.E0.cancelJob(SUM);SUM=_.tR(_.E0,N)};
XzK=function(p,x){var F=p.getVolume()/(x/500),N=function(h){_.E0.cancelJob(EEz);var c=Math.floor(h-F);p.setVolume(c,!1);c>0&&(EEz=_.tR(_.E0,function(){N(c)},500))};
_.E0.cancelJob(EEz);EEz=_.tR(_.E0,function(){N(p.getVolume())})};
gEU=function(p,x){_.E0.cancelJob(EEz);x&&p.syncVolume()};
QMP=function(){var p={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.JG("SLEEP_TIMER_DISRUPTED")}}}}};_.J().resolve(_.RD).resolveCommand(p)};
z5E=function(p){return(p.getDuration()-p.getProgressState().current)*1E3};
vEK=function(p,x){p=p+x-(0,_.Lf)();if(p<=0)return{hours:0,minutes:0,seconds:0};var F=new sME(0,0,0,0,0,0,p);p=F.getHours();x=F.getMinutes();F=F.getSeconds();F!==0&&x++;x!==0&&x%60===0&&(p++,x=0);return{hours:p,minutes:x,seconds:F}};
Jon=function(p,x,F){return p>0&&x>0?F?_.JG("TIME_LEFT_HOURS_MINUTES",{hours:p.toString(),minutes:x.toString()}):_.JG("TIME_HOURS_MINUTES",{hours:p.toString(),minutes:x.toString()}):p>0?F?_.Cc("TIME_LEFT_HOURS",p):_.Cc("TIME_HOURS",p):F?_.JG("TIME_LEFT_MINUTES",{minutes:x.toString()}):_.JG("TIME_MINUTES",{minutes:x.toString()})};
yo6=function(p,x){if(p.timelyActions)return p.timelyActions.find(function(F){var N;return((N=_.r(F,nEU))==null?void 0:N.cueRangeId)===x})};
b6z=function(p){var x=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.aw(p);p.keyMap_.forEach(function(F,N){_.oJ(x,N)||this.remove(N)},p)};
Ao6=function(p,x){p.reloadContinuationItemsCommandMatcher=x};
_.HY=function(p,x){p.insertBefore(x,p.childNodes[0]||null)};
uKo=function(p){if(p>=48&&p<=57||p>=96&&p<=106||p>=65&&p<=90||_.fT&&p==0)return!0;switch(p){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 _.Dr;default:return!1}};
YUb=function(p){if(p.altKey&&!p.ctrlKey||p.metaKey||p.keyCode>=112&&p.keyCode<=123)return!1;if(uKo(p.keyCode))return!0;switch(p.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!_.Dr;default:return p.keyCode<166||p.keyCode>183}};
sME=function(p,x,F,N,h,c,M){this.date=typeof p==="number"?new Date(p,x||0,F||1,N||0,h||0,c||0,M||0):new Date(p&&p.getTime?p.getTime():_.FV())};
_.NL(sME,_.r_);_.l=sME.prototype;_.l.getHours=function(){return this.date.getHours()};
_.l.getMinutes=function(){return this.date.getMinutes()};
_.l.getSeconds=function(){return this.date.getSeconds()};
_.l.getMilliseconds=function(){return this.date.getMilliseconds()};
_.l.getUTCDay=function(){return this.date.getUTCDay()};
_.l.getUTCHours=function(){return this.date.getUTCHours()};
_.l.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.l.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.l.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.l.setHours=function(p){this.date.setHours(p)};
_.l.setMinutes=function(p){this.date.setMinutes(p)};
_.l.setSeconds=function(p){this.date.setSeconds(p)};
_.l.setMilliseconds=function(p){this.date.setMilliseconds(p)};
_.l.setUTCHours=function(p){this.date.setUTCHours(p)};
_.l.setUTCMinutes=function(p){this.date.setUTCMinutes(p)};
_.l.setUTCSeconds=function(p){this.date.setUTCSeconds(p)};
_.l.setUTCMilliseconds=function(p){this.date.setUTCMilliseconds(p)};
_.l.add=function(p){_.r_.prototype.add.call(this,p);p.hours&&this.setUTCHours(this.date.getUTCHours()+p.hours);p.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+p.minutes);p.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+p.seconds)};
_.l.JSC$9075_toIsoString=function(p){var x=_.r_.prototype.JSC$9075_toIsoString.call(this,p);return p?x+"T"+_.Fn(this.getHours(),2)+":"+_.Fn(this.getMinutes(),2)+":"+_.Fn(this.getSeconds(),2):x+"T"+_.Fn(this.getHours(),2)+_.Fn(this.getMinutes(),2)+_.Fn(this.getSeconds(),2)};
_.l.equals=function(p){return this.getTime()==p.getTime()};
_.l.toString=function(){return this.JSC$9075_toIsoString()};
_.l.clone=function(){var p=new sME(this.date);p.firstDayOfWeek_=this.firstDayOfWeek_;p.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return p};
_.wze=function(p){return _.F4({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:p}})};
_.Gl6=function(p){return _.F4({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:p}})};
VPP=new _.U("imageTileRenderer");var WAl=new _.U("adGridCardCollectionViewModel");var H66=new _.U("carouselTitleViewModel");var mMo=new _.U("ctaCarouselItemViewModel");var oEo=new _.U("textFieldViewModel");_.O6g=new _.U("engagementPanelHeaderShowNavigationButtonCommand");var jMK=new _.U("hideEngagementPanelScrimAction");var LAz=new _.U("setActivePanelItemAction");var Pgg=new _.U("showEngagementPanelScrimAction");var Tel=new _.U("updateEngagementPanelAction");var BeA=new _.U("updateSearchInVideoResultsAction");var R5b=new _.U("transcriptCueGroupRenderer");var kll=new _.U("transcriptCueRenderer");var UMU=new _.U("transcriptFooterRenderer");var i6K=new _.U("engagementPanelAdSubtitleRenderer");var InM=new _.U("videoDescriptionFantasySectionViewModel");var $Ml=new _.U("deleteClipEngagementPanelCommand");var e5M=new _.U("loopCommand");var p9g=new _.U("changeCreatorEndscreenVisibilityCommand");var xFg=new _.U("liveChatCallForQuestionsRenderer");var FhM=new _.U("updateTimedMarkersSyncObserverCommand");var nEU=new _.U("timelyActionViewModel");var Nno=new _.U("timelyActionsOverlayViewModel");var hDn=new _.U("repeatChapterCommand");var lCP=new _.U("watchPlayerOverflowMenuCommand");var cBM=new _.U("compositeVideoOverlayRenderer");var aCb=new _.U("sortFilterSubMenuRenderer");var MiM=new _.U("horizontalShelfViewModel");var DFg=new _.U("switchListItemViewModel");var fCU=new _.U("inputComposerViewModel");var KhE=new _.U("transcriptEditSegmentCommand");var qeM=new _.U("transcriptUpdateSegmentTextCommand");var ZMb=new _.U("transcriptSearchBoxRenderer");var tiA=new _.U("transcriptSegmentListRenderer");var dFb=new _.U("transcriptSegmentRenderer");_.vZ5=new _.U("updateDateTextAction");var JB6=new _.U("updateTitleAction");var C2n=new _.U("updateViewershipAction");var Sen=new _.U("carouselLockupRenderer");var rBe=new _.U("expandableVideoDescriptionBodyRenderer");var EZb=new _.U("videoDescriptionYouchatSectionViewModel");var X9P=new _.U("conversationResourceViewModel");_.ml=_.Ud("kevlar_watch_page_horizontal_margin",24);_.gZe=_.Ud("kevlar_watch_page_columns_top_padding",24);_.QyP=_.Ud("web_screen_width_midpoint",1500);_.zDz=_.Ud("web_watch_sidebar_width_offset_per_100",10);_.sye=426+_.ml*2;_.oH=_.Ud("kevlar_watch_two_column_width_threshold",1E3);_.nZK=_.ml*2;_.OX=_.Ud("kevlar_watch_secondary_width",402);_.yBb=_.Ud("kevlar_watch_secondary_max_width",600);_.bMe=_.Ud("kevlar_watch_max_player_width",1280);_.ABl=_.Ud("kevlar_watch_flexy_metadata_height",136);
_.uBo=_.nZK+310+_.ml;_.Yeo=_.nZK+360+_.ml;var w9b={PAUSE_CHAT:18};var GUn;var Vil;var Whz=function(){return _.m.apply(this,arguments)||this};
_.E(Whz,_.m);Whz.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
Whz.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var p=_.r(this.data.button,_.X6);p&&(p.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.R8.Object.defineProperties(Whz,{template:{configurable:!0,enumerable:!0,get:function(){if(Vil===void 0){var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;GUn===void 0&&(GUn=document.createElement("template"));var N=GUn;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Vil=p}p=Vil;return p}}});
var jL=Whz;_.B([_.u(_.z2),_.k("design:type",Object)],jL.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],jL.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H({selectorArgs:["data.enabledEntityKey"],selector:b8l,observer:"onEnabledChange"}),_.k("design:type",Boolean)],jL.prototype,"enabled",void 0);_.B([_.H(),_.k("design:type",Object)],jL.prototype,"data",void 0);
jL=_.B([_.JZ({is:"yt-disableable-button-view-model",noInjection:!0})],jL);var HM6;var mFe;var oZK=["transVert01","transVert02","transVert03"],OMb="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),jyl=function(){var p=_.m.apply(this,arguments)||this;p.emojiManager=_.uu;p.isDarkTheme=document.documentElement.hasAttribute("dark");p.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};p.reactionBuckets=[];p.noEmojiIdentifier="NO_EMOJI";return p};
_.E(jyl,_.m);_.l=jyl.prototype;_.l.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.l.desktopFountainEmojiSizePxChanged=function(){_.eV(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.l.createUserReactionAnimation=function(p){this.createEmojiAnimation(p,!0)};
_.l.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var p;((p=this.data)==null?0:p.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.KV("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.se(this.emojiContainer.children)).forEach(function(x){x.remove()})};
_.l.detached=function(){this.cleanupFountain()};
_.l.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var p;this.reactionBuckets=_.Q5.unsafeClone((p=this.emojiFountainData)==null?void 0:p.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.l.processEmojiBucket=function(p){var x=this;if(this.reactionBuckets&&!(p>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var F=this.reactionBuckets[p];this.generateEmojiAnimations(F);if(p<this.reactionBuckets.length-1){var N;if(F==null?0:(N=F.duration)==null?0:N.seconds)this.emojiBucketTimerId=setTimeout(function(){x.processEmojiBucket(p+1)},Number(F.duration.seconds)*1E3)}}};
_.l.generateEmojiAnimations=function(p){var x=this,F=this.getRandomEmojiIdFromBucketWithOverride(p);if(F&&F!==this.noEmojiIdentifier){var N=0;p.targetEps?(N=this.linearInterpolateBounded(1,20,100,12,p.emojiSizeIndex||0),this.createEmojiAnimation(F,!1,p.emojiAnimationMs,N),N=this.getEmojiDelayMsFromTargetEps(p.targetEps)):(this.createEmojiAnimation(F),N=this.getEmojiDelayMsFromDistribution(p.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){x.generateEmojiAnimations(p)},N)}};
_.l.getRandomEmojiIdFromBucketWithOverride=function(p){if(!(p&&p.reactionsData&&p.reactionsData.length&&p.totalReactions))return this.noEmojiIdentifier;for(var x=p.totalReactions,F=1,N=_.a(p.reactionsData),h=N.next();!h.done;h=N.next())h=h.value,(h.reactionWeightOverride||h.reactionWeightOverride===0)&&h.reactionCount&&(x-=h.reactionCount,F-=h.reactionWeightOverride);N=!0;F<0&&(N=!1,x=p.totalReactions,F=1);if(N&&F>0&&x===0)if(F===1){h=0;for(var c=_.a(p.reactionsData),M=c.next();!M.done;M=c.next())M=
M.value,M.reactionCount&&M.reactionCount>0&&h++;h=1/h;c=_.a(p.reactionsData);for(M=c.next();!M.done;M=c.next())M.value.reactionWeightOverride=h}else for(h=1/(1-F),c=_.a(p.reactionsData),M=c.next();!M.done;M=c.next())M=M.value,M.reactionWeightOverride&&(M.reactionWeightOverride*=h);h=Math.random();c=0;M=_.a(p.reactionsData);for(var f=M.next();!f.done;f=M.next())if(f=f.value,f.reactionCount&&(c=(f.reactionWeightOverride||f.reactionWeightOverride===0)&&N?c+f.reactionWeightOverride:c+F*f.reactionCount/
x,c>h&&(f.reactionCount--,p.totalReactions--,f=this.reactionItemToEmojiString(f),f!==this.noEmojiIdentifier)))return f;return this.noEmojiIdentifier};
_.l.reactionItemToEmojiString=function(p){if(p.unicodeEmojiId)return p.unicodeEmojiId;if(p.emoteId)return p.emoteId;if(p.videoReactionType)switch(p.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.l.createEmojiAnimation=function(p,x,F,N){x=x===void 0?!1:x;this.lastEmojiRequestedForTesting=p;var h=p.startsWith("yt-icons:"),c=_.bu(this.emojiManager,p);if(c||h){var M=document.createElement("emoji");M.classList.add("yt-emoji-fountain-view-model");M.classList.add(oZK[Math.floor(Math.random()*oZK.length)]);var f=document.createElement("div");f.classList.add("yt-emoji-fountain-view-model");f.classList.add("horizontal-container");f.classList.add(OMb[Math.floor(Math.random()*OMb.length)]);x?(F=document.createElement("div"),
F.classList.add("user-reaction-bubble"),F.classList.add("yt-emoji-fountain-view-model"),f.appendChild(F)):(F&&(M.style.animationDuration=F+"ms",f.style.animationDuration=F+"ms"),N&&(M.style.width=N+"px",M.style.height=N+"px"));h?(h=document.createElement("yt-icon"),h.polymerController.icon=p,N&&(h.style.width=N+"px",h.style.height=N+"px"),p=h):p=this.emojiManager.createEmoji(c,!1);p.classList.add("yt-emoji-fountain-view-model");f.appendChild(p);M.appendChild(f);this.emojiContainer.appendChild(M);
M.addEventListener("animationend",function(){M.remove()});
var K,t;if((K=this.data)==null?0:(t=K.loggingDirectives)==null?0:t.trackingParams)x=x?_.vt(183501):_.vt(183500),Ae6(this.data.loggingDirectives.trackingParams,x),_.yE$(x);setTimeout(function(){M&&M.remove()},2E3)}};
_.l.getEmojiDelayMsFromDistribution=function(p){return Math.random()*(p||1)*1E3};
_.l.getEmojiDelayMsFromTargetEps=function(p){return Math.random()*2*(1/p)*1E3};
_.l.linearInterpolateBounded=function(p,x,F,N,h){h=Math.min(Math.max(h,p),F);return(x*(F-h)+N*(h-p))/(F-p)};
var LC=jyl;LC.prototype.onEmojiFountainDataEntityUpdate=LC.prototype.onEmojiFountainDataEntityUpdate;LC.prototype.desktopFountainEmojiSizePxChanged=LC.prototype.desktopFountainEmojiSizePxChanged;LC.prototype.isActiveChanged=LC.prototype.isActiveChanged;_.B([_.H(),_.k("design:type",_.yx)],LC.prototype,"emojiManager",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],LC.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.z2),_.k("design:type",Object)],LC.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],LC.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],LC.prototype,"data",void 0);_.B([_.H({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(p,x){return _.M4(p.entities,"emojiFountainDataEntity",x)}}),
_.k("design:type",Object)],LC.prototype,"emojiFountainData",void 0);_.B([_.H(),_.k("design:type",Boolean)],LC.prototype,"isActive",void 0);_.B([_.W("isActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],LC.prototype,"isActiveChanged",null);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],LC.prototype,"isDarkTheme",void 0);_.B([_.H(),_.k("design:type",String)],LC.prototype,"lastEmojiRequestedForTesting",void 0);
_.B([_.H({value:function(){return _.Ud("desktop_fountain_emoji_size_px",20)}}),
_.k("design:type",Number)],LC.prototype,"desktopFountainEmojiSizePx",void 0);_.B([_.W("desktopFountainEmojiSizePx"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],LC.prototype,"desktopFountainEmojiSizePxChanged",null);_.B([_.Ff("#emoji-container"),_.k("design:type",HTMLElement)],LC.prototype,"emojiContainer",void 0);
_.B([_.W("emojiFountainData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],LC.prototype,"onEmojiFountainDataEntityUpdate",null);LC=_.B([_.JZ({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],LC);
_.P(LC,"yt-emoji-fountain-view-model",function(){if(mFe===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;HM6===void 0&&(HM6=document.createElement("template"));var N=HM6;F.call(x,N.content.cloneNode(!0),p.content.firstChild);mFe=p}p=mFe;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Lh6;var P26;var TnM=function(){return _.m.apply(this,arguments)||this};
_.E(TnM,_.m);TnM.prototype.onChoiceChanged=function(){this.data&&_.eV(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
var PY=TnM;PY.prototype.onChoiceChanged=PY.prototype.onChoiceChanged;_.B([_.H(),_.k("design:type",Object)],PY.prototype,"data",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PY.prototype,"onChoiceChanged",null);PY=_.B([_.L({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],PY);
_.P(PY,"yt-live-chat-banner-poll-choice",function(){if(P26===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Lh6===void 0&&(Lh6=document.createElement("template"));var N=Lh6;F.call(x,N.content.cloneNode(!0),p.content.firstChild);P26=p}p=P26;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var BnE;var RDb;var kUo=function(){var p=_.m.apply(this,arguments)||this;p.modern=_.S("web_button_rework_with_live");p.small=!1;return p};
_.E(kUo,_.m);kUo.prototype.computeIsSmall=function(){var p;return((p=this.buttonOverrides)==null?void 0:p.size)==="S"};
kUo.prototype.computeId=function(){return this.data&&this.data.targetId};
var T_=kUo;_.B([_.u(_.sB.YtLiveChatTooltipTargetingBehavior),_.k("design:type",Object)],T_.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.B([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.k("design:type",String)],T_.prototype,"id",void 0);_.B([_.H(),_.k("design:type",Object)],T_.prototype,"buttonOverrides",void 0);_.B([_.H(),_.k("design:type",Object)],T_.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],T_.prototype,"modern",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.k("design:type",Object)],T_.prototype,"small",void 0);T_=_.B([_.L({disableElementRegistration:!0,is:"yt-live-chat-button"})],T_);
_.P(T_,"yt-live-chat-button",function(){if(RDb===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;BnE===void 0&&(BnE=document.createElement("template"));var N=BnE;F.call(x,N.content.cloneNode(!0),p.content.firstChild);RDb=p}p=RDb;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var UFK;var iMg;var ICK=function(){var p=_.m.apply(this,arguments)||this;p.inCollapsedBanner=!1;p.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};p.questionButtonOverrides={style:"mono",type:"filled"};return p};
_.E(ICK,_.m);_.l=ICK.prototype;_.l.configureRendererStamper=function(){return{"data.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"},properties:{overrides:"[[buttonOverrides]]"}}}},"data.askQuestionButton":{id:"ask-question",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"ask-question-button"},properties:{overrides:"[[questionButtonOverrides]]"}}}}}};
_.l.onContextMenuButtonClick=function(p){this.ytLiveChatItemBehavior.showContextMenu(p)};
_.l.onYtRendererstamperFinished=function(){this.menuButton=_.n(this.hostElement).querySelector("#menu-button")};
_.l.dataChanged=function(){var p,x;if((x=_.r((p=this.data)==null?void 0:p.overflowMenuButton,_.AS))==null?0:x.command)this.data.contextMenuEndpoint=_.r(this.data.overflowMenuButton,_.AS).command};
_.l.onButtonClick=function(){var p,x=_.r((p=this.data)==null?void 0:p.askQuestionButton,_.AS);if(x){if(x.trackingParams&&(p=_.fr(x.trackingParams))){var F=_.b0();F&&_.B5(F,p)}_.hG(this.hostElement,"innertube-command",x.command)}};
var BY=ICK;BY.prototype.onYtRendererstamperFinished=BY.prototype.onYtRendererstamperFinished;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],BY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.z2),_.k("design:type",Object)],BY.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.u(_.Y4.YtLiveChatItemBehavior),_.k("design:type",_.wP)],BY.prototype,"ytLiveChatItemBehavior",void 0);_.B([_.H({observer:"dataChanged"}),_.k("design:type",Object)],BY.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],BY.prototype,"inCollapsedBanner",void 0);_.B([_.H(),_.k("design:type",Object)],BY.prototype,"buttonOverrides",void 0);_.B([_.H(),_.k("design:type",Object)],BY.prototype,"questionButtonOverrides",void 0);_.B([_.V("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BY.prototype,"onYtRendererstamperFinished",null);
BY=_.B([_.L({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],BY);
_.P(BY,"yt-live-chat-call-for-questions-renderer",function(){if(iMg===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;UFK===void 0&&(UFK=document.createElement("template"));var N=UFK;F.call(x,N.content.cloneNode(!0),p.content.firstChild);iMg=p}p=iMg;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var $FE={};$FE.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 p=this;window.requestAnimationFrame(function(){p.restoreFocusNode_||(p.restoreFocusNode_=document.activeElement);var x=_.KYB(p.hostElement);x.length&&x[x.length-1].focus()})},
isAttachedChanged_:function(p,x){p?this.focusChild_():x&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(p){this.hidden||_.m9(p).indexOf(this.hostElement)!==-1||(p.stopPropagation(),this.focusChild_())}};var eDl;var pmK;var x1P=function(){return _.m.apply(this,arguments)||this};
_.E(x1P,_.m);x1P.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
x1P.prototype.onClick=function(p){p.target!==this.confirmButton&&p.target!==this.cancelButton&&(this.hidden=!0)};
var RH=x1P;_.B([_.Ff("#confirm_button"),_.k("design:type",Object)],RH.prototype,"confirmButton",void 0);_.B([_.Ff("#cancel_button"),_.k("design:type",Object)],RH.prototype,"cancelButton",void 0);_.B([_.H(),_.k("design:type",FMU)],RH.prototype,"data",void 0);_.B([_.H({value:!0,reflectToAttribute:!0}),_.k("design:type",Boolean)],RH.prototype,"hidden",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],RH.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u($FE.YtLiveChatDialogBehavior),_.k("design:type",Object)],RH.prototype,"ytLiveChatDialogBehavior",void 0);RH=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],RH);
var FMU=_.P(RH,"yt-live-chat-dialog-renderer",function(){if(pmK===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;eDl===void 0&&(eDl=document.createElement("template"));var N=eDl;F.call(x,N.content.cloneNode(!0),p.content.firstChild);pmK=p}p=pmK;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Nsl;var hto,lhe=function(){if(hto!==void 0)return hto;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;Nsl===void 0&&(Nsl=document.createElement("template"));var N=Nsl;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return hto=p};var c_z;var ahE;var MS5=function(){var p=_.m.apply(this,arguments)||this;p.tooltip=null;p.data=null;p.id="";p.active=!1;p.icon="";p.disabled=!1;p.showTooltip=!1;p.useToggledActiveState=!0;p.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return p};
_.E(MS5,_.m);_.l=MS5.prototype;
_.l.dataChanged=function(){var p;((p=this.data)==null?0:p.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,_.$s)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var x;if((x=this.data)==null?0:x.disabled)this.disabled=!0};
_.l.computeId=function(p){return p};
_.l.computeIcon=function(p,x){if(!p)return"";if(this.useToggledActiveState)return"yt-icons:"+p.toLowerCase();var F,N;return x&&((F=this.data)==null?0:(N=F.toggledIcon)==null?0:N.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+p.toLowerCase()};
_.l.logPDGEntryPoint=function(){_.M1B(_.lX("FLOW_EVENT_NAMESPACE_PDG_BUY_FLOW",1,{pdgBuyFlowContext:{entryPointClickedContext:{sharedPdgBuyFlowEntryPoint:"SHARED_PDG_BUY_FLOW_ENTRY_POINT_LIVE_CHAT_MONEY_BUTTON"}}}),"FLOW_TYPE_PDG_BUY_FLOW")};
_.l.immediatelyShowTooltip=function(){var p=_.n(this.hostElement).querySelector("#tooltip");p.animationDelay=0;p.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};p.show()};
_.l.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.l.onClick=function(p){var x;((x=this.data)==null?0:x.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(),p.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.hG(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.l.computeShowTooltip=function(p,x){return!!(p&&p.tooltip&&x)};
_.l.maybeUpdateTooltipText=function(){var p=this,x;if((x=this.data)==null?0:x.tooltip){var F=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.$s)(p.tooltip).textContent=F},250)}};
_.l.handleLiveChatActions=function(p){var x=this;p.length&&(this.id!=="creator"&&this.id!=="product-picker"||p.forEach(function(F){(F=x.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",F))&&F.durationSec===F.fullDurationSec&&x.startBubble(x.colorFromDecimal(F.startBackgroundColor))}))};
_.l.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.l.startBubble=function(p){_.eV(this.hostElement,{"--yt-live-chat-monetization-button-glow":p});this.hostElement.setAttribute("bubble","")};
_.l.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.l.colorFromDecimal=function(p){typeof p==="string"&&(p=Number(p));return"rgba("+[p>>16&255,p>>8&255,p&255,(p>>24&255)/255].join()+")"};
var kn=MS5;kn.prototype.onAnimationEnd=kn.prototype.onAnimationEnd;kn.prototype.disabledChanged=kn.prototype.disabledChanged;kn.prototype.dataChanged=kn.prototype.dataChanged;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],kn.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],kn.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.sB.YtLiveChatTooltipTargetingBehavior),_.k("design:type",Object)],kn.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],kn.prototype,"data",void 0);_.B([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.k("design:type",Object)],kn.prototype,"id",void 0);_.B([_.H({notify:!0,reflectToAttribute:!0}),_.k("design:type",Object)],kn.prototype,"active",void 0);
_.B([_.H({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.k("design:type",Object)],kn.prototype,"icon",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],kn.prototype,"disabled",void 0);_.B([_.H({computed:"computeShowTooltip(data, disabled)"}),_.k("design:type",Object)],kn.prototype,"showTooltip",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],kn.prototype,"useToggledActiveState",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kn.prototype,"dataChanged",null);_.B([_.W("disabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kn.prototype,"disabledChanged",null);_.B([_.V("animationend"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],kn.prototype,"onAnimationEnd",null);
kn=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],kn);
_.P(kn,"yt-live-chat-icon-toggle-button-renderer",function(){if(ahE===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;c_z===void 0&&(c_z=document.createElement("template"));var N=c_z;F.call(x,N.content.cloneNode(!0),p.content.firstChild);ahE=p}p=ahE;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var D16;var fhz;var KMU=function(){return _.m.apply(this,arguments)||this};
_.E(KMU,_.m);KMU.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
var qTA=KMU;_.B([_.H(),_.k("design:type",Object)],qTA.prototype,"data",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],qTA.prototype,"ytRendererstamperBehavior",void 0);qTA=_.B([_.L({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],qTA);
_.P(qTA,"yt-live-chat-message-input-prompt-header-renderer",function(){if(fhz===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;D16===void 0&&(D16=document.createElement("template"));var N=D16;F.call(x,N.content.cloneNode(!0),p.content.firstChild);fhz=p}p=fhz;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Z2U;var tSE;var d1E;var vHl;var J_E;var Ckg;var STe=function(){return _.m.apply(this,arguments)||this};
_.E(STe,_.m);var r_b=STe;_.B([_.H(),_.k("design:type",Object)],r_b.prototype,"data",void 0);r_b=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],r_b);
_.P(r_b,"yt-live-chat-message-subtext-renderer",function(){if(Ckg===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;J_E===void 0&&(J_E=document.createElement("template"));var N=J_E;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Ckg=p}p=Ckg;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var EHK=function(){var p=_.m.apply(this,arguments)||this;p.subtextOnBottom=!1;p.buttonOverrides={style:"mono",type:"tonal"};return p};
_.E(EHK,_.m);EHK.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.subtext":{id:"subtext",mapping:{messageSubtextRenderer:"yt-live-chat-message-subtext-renderer"}}}};
var UX=EHK;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],UX.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],UX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],UX.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],UX.prototype,"subtextOnBottom",void 0);_.B([_.H(),_.k("design:type",Object)],UX.prototype,"buttonOverrides",void 0);
UX=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],UX);
_.P(UX,"yt-live-chat-message-renderer",function(){if(vHl===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;d1E===void 0&&(d1E=document.createElement("template"));var N=d1E;F.call(x,N.content.cloneNode(!0),p.content.firstChild);vHl=p}p=vHl;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Xm6;var gH6;var QR5=function(){var p=_.m.apply(this,arguments)||this;p.isRemovable=!1;p.hasPrefilledText=!1;p.isInputDirty=!1;p.overCharacterLimit=!1;p.underCharacterLimit=!1;p.showErrorMessage=!1;return p};
_.E(QR5,_.m);_.l=QR5.prototype;_.l.computeId=function(){return this.data.id};
_.l.computeInputData=function(){return this.data.inputData};
_.l.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.l.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.l.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.l.getLiveChatRichMessageInput=function(){return _.n(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.l.clearInput=function(){_.n(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.l.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.l.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.l.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.l.handleTextInputCharCountChanged=function(p){p=p.detail&&p.detail.characterCount;p!==void 0&&(this.characterCount=p,p!==0&&(this.isInputDirty=!0))};
_.l.onInputFocusOut=function(){this.isInputDirty=!0};
_.l.onClickCloseButton=function(){_.hG(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
var i6=QR5;i6.prototype.handleTextInputCharCountChanged=i6.prototype.handleTextInputCharCountChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],i6.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],i6.prototype,"data",void 0);_.B([_.H({computed:"computeId(data.id)"}),_.k("design:type",String)],i6.prototype,"id",void 0);_.B([_.H({computed:"computeInputData(data.inputData)"}),_.k("design:type",Object)],i6.prototype,"inputData",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.k("design:type",Object)],i6.prototype,"isRemovable",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.k("design:type",Object)],i6.prototype,"hasPrefilledText",void 0);_.B([_.H({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.k("design:type",Number)],i6.prototype,"charactersRemaining",void 0);
_.B([_.H(),_.k("design:type",Number)],i6.prototype,"characterCount",void 0);_.B([_.H(),_.k("design:type",Object)],i6.prototype,"isInputDirty",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.k("design:type",Object)],i6.prototype,"overCharacterLimit",void 0);_.B([_.H({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.k("design:type",Object)],i6.prototype,"underCharacterLimit",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.k("design:type",Object)],i6.prototype,"showErrorMessage",void 0);_.B([_.V("yt-live-chat-text-input-field-renderer-character-count-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],i6.prototype,"handleTextInputCharCountChanged",null);
i6=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],i6);
_.P(i6,"yt-live-chat-poll-editor-input",function(){if(gH6===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Xm6===void 0&&(Xm6=document.createElement("template"));var N=Xm6;F.call(x,N.content.cloneNode(!0),p.content.firstChild);gH6=p}p=gH6;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var ztg;var sRP;var nHg={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},y_e=function(){var p=_.m.apply(this,arguments)||this;p.modern=_.S("web_button_rework_with_live");p.closeButtonOverrides={iconPosition:"icon-only"};p.startButtonOverrides={style:"mono",type:"filled"};p.addOptionButtonOverrides={style:"mono",type:"text"};return p};
_.E(y_e,_.m);_.l=y_e.prototype;
_.l.configureRendererStamper=function(){return{"data.pollEditorInfo.addOptionButton":{id:"add-option-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[addOptionButtonOverrides]]"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[startButtonOverrides]]"}}}},pollQuestionData:{id:"poll-question",
mapping:{liveChatTextInputFieldRenderer:{component:"yt-live-chat-text-input-field-renderer",attributes:{id:"poll-question-input","is-valid-with-no-input-text":!0}}}},pollOptionsData:{id:"poll-options",mapping:{liveChatPollOptionInput:{component:"yt-live-chat-poll-editor-input"}}}}};
_.l.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var p;_.r((p=this.data)==null?void 0:p.startButton,_.AS)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.l.computeId=function(){return this.data&&this.data.id||""};
_.l.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.l.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.l.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.l.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.l.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var p=0;p<this.pollEditorInfoWithDefaults.minPollOptions;p++)this.addPollOptionData()};
_.l.getIsValidPoll=function(){var p=this;if(!this.pollEditorInfoWithDefaults)return!1;var x=this.pollEditorInfoWithDefaults,F=x.minPollOptionChars,N=x.maxPollOptionChars,h=x.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>x.maxPollQuestionChars)return!1;x=_.n(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(x).every(function(c,M){c=c.characterCount;!c&&h[M]&&(c=p.ytRendererBehavior.getSimpleString(h[M]).length);return c!==void 0&&c>=F&&c<=N})};
_.l.isValidPollChanged=function(){var p;_.r((p=this.data)==null?void 0:p.startButton,_.AS)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.l.addPollOptionData=function(){var p=this.pollEditorInfoWithDefaults,x=p.maxPollOptionChars,F=p.optionPlaceholderText,N=p.customOptionPlaceholderText,h=p.pollOptionData;this.currentNumPollOptions>=p.maxPollOptions||(p={liveChatPollOptionInput:{inputData:{placeholder:N[this.currentNumPollOptions]||F,maxCharacterLimit:x},maxCharacterLimit:x,minCharacterLimit:p.minPollOptionChars,hasPrefilledText:!!N[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=p.minPollOptions}},h.charCountErrorText&&
(p.liveChatPollOptionInput.charCountErrorText=h.charCountErrorText),h.charsRemainingAltLabel&&(p.liveChatPollOptionInput.charsRemainingAltLabel=h.charsRemainingAltLabel),h.removeOptionAltText&&(p.liveChatPollOptionInput.removeOptionAltText=h.removeOptionAltText),this.push("pollOptionsData",p),h=Array.from(_.n(_.n(this.hostElement).querySelector("#poll-options")).children),h.forEach(function(c,M){c.polymerController.set("data.id",M)}),_.n(h[h.length-1]).querySelector("#input").focus())};
_.l.getPollOptionInputValues=function(){var p=this,x=[],F=_.n(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),N=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(F).forEach(function(h,c){var M=null;h=h.getLiveChatRichMessageInput();var f;(h==null?0:(f=h.textSegments)==null?0:f.length)?M=_.ym(h):N[c]&&(M=p.formattedStringToLiveChatRichMessageInput(N[c]));x.push(M)});
return x};
_.l.requestCreateAndStartPoll=function(p){var x=this.getPollOptionInputValues();if(!x.some(function(N){return!N})){x={optionText:x};
var F=_.n(_.n(this.hostElement).querySelector("#poll-question")).firstChild;F&&F.liveChatRichMessageInput&&(x.questionText=_.ym(F.liveChatRichMessageInput));_.fc(this.hostElement,[p,x])}};
_.l.selectedChanged=function(){if(this.selected){var p=_.n(_.n(this.hostElement).querySelector("#start-button")).firstElementChild;if(p){var x;(x=_.n(p).querySelector("#button")||_.Ub(p).querySelector("button"))==null||x.focus()}}};
_.l.handleTextInputChanged=function(p){var x;((x=p.target)==null?void 0:x.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=p.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.l.handleStartButtonAction=function(p){p.detail.actionName==="yt-service-request"&&(p.stopPropagation(),(p=p.detail.args[1])&&this.requestCreateAndStartPoll(p))};
_.l.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.l.handleServiceRequestCompleted=function(p){this.createPollRequestInFlight=!1;(p=p.detail&&p.detail.data)&&p.success&&(_.hG(this.hostElement,"picker-cancelled"),_.lA(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.l.onCloseClick=function(){_.hG(this.hostElement,"picker-cancelled");_.lA(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.l.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.l.handlePollEditorInputClosed=function(p){var x=this.pollOptionsData.findIndex(function(F){return F.liveChatPollOptionInput.id===p.detail.id});
this.splice("pollOptionsData",x,1);this.isValidPoll=this.getIsValidPoll()};
_.l.onPickerCancelled=function(){this.reset()};
_.l.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var p=_.n(_.n(this.hostElement).querySelector("#poll-question")).firstChild;p&&p.setLiveChatRichMessageInput(null);if(p=_.n(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){p=_.a(Array.from(p));for(var x=p.next();!x.done;x=p.next())x.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.l.formattedStringToLiveChatRichMessageInput=function(p){return p.simpleText?{text_segments:[p.simpleText]}:{text_segments:p.runs}};
_.R8.Object.defineProperties(y_e.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(nHg,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
var IH=y_e;IH.prototype.onPickerCancelled=IH.prototype.onPickerCancelled;IH.prototype.handlePollEditorInputClosed=IH.prototype.handlePollEditorInputClosed;IH.prototype.handleServiceRequestCompleted=IH.prototype.handleServiceRequestCompleted;IH.prototype.handleServiceRequestSent=IH.prototype.handleServiceRequestSent;IH.prototype.handleTextInputChanged=IH.prototype.handleTextInputChanged;IH.prototype.selectedChanged=IH.prototype.selectedChanged;IH.prototype.isValidPollChanged=IH.prototype.isValidPollChanged;
IH.prototype.shouldInitializePollChanged=IH.prototype.shouldInitializePollChanged;IH.prototype.dataChanged=IH.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],IH.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],IH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],IH.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],IH.prototype,"modern",void 0);
_.B([_.H(),_.k("design:type",Object)],IH.prototype,"closeButtonOverrides",void 0);_.B([_.H(),_.k("design:type",Object)],IH.prototype,"startButtonOverrides",void 0);_.B([_.H(),_.k("design:type",Object)],IH.prototype,"addOptionButtonOverrides",void 0);_.B([_.H({computed:"computeId(data.id)",reflectToAttribute:!0}),_.k("design:type",String)],IH.prototype,"id",void 0);_.B([_.H({value:function(){return[]}}),
_.k("design:type",Array)],IH.prototype,"pollOptionsData",void 0);_.B([_.w("pollEditorInfoWithDefaults"),_.k("design:type",Object),_.k("design:paramtypes",[])],IH.prototype,"pollQuestionData",null);_.B([_.H({value:0}),_.k("design:type",Number)],IH.prototype,"pollQuestionCharacterCount",void 0);_.B([_.w("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.k("design:type",Object),_.k("design:paramtypes",[])],IH.prototype,"pollQuestionCharactersRemaining",null);
_.B([_.H({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.k("design:type",Boolean)],IH.prototype,"overQuestionCharacterLimit",void 0);_.B([_.w("data.pollEditorInfo"),_.k("design:type",Object),_.k("design:paramtypes",[])],IH.prototype,"pollEditorInfoWithDefaults",null);_.B([_.H({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.k("design:type",Number)],IH.prototype,"currentNumPollOptions",void 0);
_.B([_.H({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.k("design:type",Boolean)],IH.prototype,"hasMaxNumPollOptions",void 0);_.B([_.w("pollEditorInfoWithDefaults","pollOptionsData"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],IH.prototype,"shouldInitializePoll",null);_.B([_.H(),_.k("design:type",Object)],IH.prototype,"isValidPoll",void 0);
_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],IH.prototype,"createPollRequestInFlight",void 0);_.B([_.H(),_.k("design:type",Object)],IH.prototype,"selected",void 0);_.B([_.H({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.k("design:type",Boolean)],IH.prototype,"showQuestionErrorMessage",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IH.prototype,"dataChanged",null);_.B([_.W("shouldInitializePoll"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IH.prototype,"shouldInitializePollChanged",null);_.B([_.W("isValidPoll"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IH.prototype,"isValidPollChanged",null);
_.B([_.W("selected"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IH.prototype,"selectedChanged",null);_.B([_.V("yt-live-chat-text-input-field-renderer-character-count-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],IH.prototype,"handleTextInputChanged",null);
_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IH.prototype,"handleServiceRequestSent",null);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],IH.prototype,"handleServiceRequestCompleted",null);
_.B([_.V("yt-live-chat-poll-editor-input-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],IH.prototype,"handlePollEditorInputClosed",null);_.B([_.V("picker-cancelled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IH.prototype,"onPickerCancelled",null);IH=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],IH);
_.P(IH,"yt-live-chat-poll-editor-panel-renderer",function(){if(sRP===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;ztg===void 0&&(ztg=document.createElement("template"));var N=ztg;F.call(x,N.content.cloneNode(!0),p.content.firstChild);sRP=p}p=sRP;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var b2o;var A_e;var uaP=function(){return _.m.apply(this,arguments)||this};
_.E(uaP,_.m);uaP.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
uaP.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.R8.Object.defineProperties(uaP.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var p,x;return(p=this.data)==null?void 0:(x=p.title)==null?void 0:x.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var p;return _.g$((p=this.data)==null?void 0:p.onTapCommand)}}});
var $n=uaP;_.B([_.u(_.NY.YtEndpointBehavior),_.k("design:type",Object)],$n.prototype,"ytEndpointBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],$n.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],$n.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],$n.prototype,"itemId",null);
_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],$n.prototype,"hasPromotion",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],$n.prototype,"innertubeCommand",null);$n=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],$n);
_.P($n,"yt-live-chat-product-picker-panel-item-view-model",function(){if(A_e===void 0){var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;b2o===void 0&&(b2o=document.createElement("template"));var N=b2o;F.call(x,N.content.cloneNode(!0),p.content.firstChild);A_e=p}p=A_e;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var YTP;var wme;var Gy6=function(){var p=_.m.apply(this,arguments)||this;p.id="product-picker";p.selected=!1;p.closeButtonId="close-button";p.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return p};
_.E(Gy6,_.m);_.l=Gy6.prototype;_.l.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.l.observeSelected=function(){this.selected&&this.hostElement.focus();var p=_.n(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");p.length&&p[0].focus()};
_.l.onCloseBuyFlow=function(){_.hG(this.hostElement,"picker-cancelled")};
_.l.onCloseClick=function(){_.hG(this.hostElement,"picker-cancelled");var p;((p=this.data)==null?0:p.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.r(this.data.closeButton,_.X6))};
_.l.onCloseEngageWithAudienceEditorPanels=function(){_.hG(this.hostElement,"picker-cancelled")};
var eL=Gy6;eL.prototype.observeSelected=eL.prototype.observeSelected;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],eL.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],eL.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],eL.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],eL.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],eL.prototype,"id",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],eL.prototype,"selected",void 0);_.B([_.H(),_.k("design:type",Object)],eL.prototype,"closeButtonId",void 0);_.B([_.W("selected"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eL.prototype,"observeSelected",null);
eL=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],eL);
_.P(eL,"yt-live-chat-product-picker-panel-view-model",function(){if(wme===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;YTP===void 0&&(YTP=document.createElement("template"));var N=YTP;F.call(x,N.content.cloneNode(!0),p.content.firstChild);wme=p}p=wme;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var VSK;var WMz;var H2e=function(){var p=_.m.apply(this,arguments)||this;p.iconId="";p.icon="";p.disabled=!1;p.systemIcons=_.S("kevlar_system_icons");return p};
_.E(H2e,_.m);_.l=H2e.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.l.computeIconId=function(p){return p&&p.icon&&p.icon.iconType?p.icon.iconType.toLowerCase():""};
_.l.computeIcon=function(p){return p&&p.icon&&p.icon.iconType?(p=p.icon.iconType.toLowerCase(),(p.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+p):""};
_.l.computeDisabled=function(p){return!!p};
_.l.computeCommand=function(p,x){return x?void 0:p};
_.l.computeTooltip=function(p,x){return x&&p?p:""};
_.l.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
var pj=H2e;_.B([_.u(_.NY.YtEndpointBehavior),_.k("design:type",Object)],pj.prototype,"ytEndpointBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],pj.prototype,"data",void 0);_.B([_.H({computed:"computeIconId(data)",reflectToAttribute:!0}),_.k("design:type",Object)],pj.prototype,"iconId",void 0);
_.B([_.H({computed:"computeIcon(data)",reflectToAttribute:!0}),_.k("design:type",Object)],pj.prototype,"icon",void 0);_.B([_.H({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.k("design:type",Object)],pj.prototype,"disabled",void 0);_.B([_.H({computed:"computeCommand(data.command, disabled)"}),_.k("design:type",Object)],pj.prototype,"command",void 0);_.B([_.H({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.k("design:type",String)],pj.prototype,"tooltip",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],pj.prototype,"systemIcons",void 0);pj=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],pj);
_.P(pj,"yt-live-chat-product-button-renderer",function(){if(WMz===void 0){var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" disabled$="[[disabled]]" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;VSK===void 0&&(VSK=document.createElement("template"));var N=VSK;F.call(x,N.content.cloneNode(!0),p.content.firstChild);WMz=p}p=WMz;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var m1P;var oHz;var O26=function(){var p=_.m.apply(this,arguments)||this;p.selected=!1;p.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return p};
_.E(O26,_.m);_.l=O26.prototype;_.l.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{liveChatProductButtonRenderer:"yt-live-chat-product-button-renderer"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.l.computeId=function(p){return p.id||""};
_.l.onCloseClick=function(){_.hG(this.hostElement,"picker-cancelled")};
_.l.observeSelected=function(){this.selected&&this.hostElement.focus();var p=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");p.length&&p[0].focus()};
_.l.onCloseBuyFlow=function(){_.hG(this.hostElement,"picker-cancelled")};
_.l.onCloseEngageWithAudienceEditorPanels=function(){_.hG(this.hostElement,"picker-cancelled")};
var xX=O26;xX.prototype.observeSelected=xX.prototype.observeSelected;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],xX.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],xX.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],xX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],xX.prototype,"data",void 0);
_.B([_.H({computed:"computeId(data)",reflectToAttribute:!0}),_.k("design:type",String)],xX.prototype,"id",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],xX.prototype,"selected",void 0);_.B([_.W("selected"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xX.prototype,"observeSelected",null);xX=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],xX);
_.P(xX,"yt-live-chat-product-picker-renderer",function(){if(oHz===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;m1P===void 0&&(m1P=document.createElement("template"));var N=m1P;F.call(x,N.content.cloneNode(!0),p.content.firstChild);oHz=p}p=oHz;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var jRz;var LMU;var PkM;var Ts6;var Bs6=function(){return _.m.apply(this,arguments)||this};
_.E(Bs6,_.m);Bs6.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()};
Bs6.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
Bs6.prototype.created=function(){this.ids={background:_.Qy(),maskOne:_.Qy(),maskTwo:_.Qy(),gradient:_.Qy(),largeBackground:_.Qy(),largeGradientOne:_.Qy(),largeGradientTwo:_.Qy(),largeGradientPath:_.Qy()}};
var Fk=Bs6;Fk.prototype.maybeLoadAnimationBackground=Fk.prototype.maybeLoadAnimationBackground;_.B([_.H({value:!1}),_.k("design:type",Boolean)],Fk.prototype,"useLargeBackground",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Fk.prototype,"useAnimationBackground",void 0);_.B([_.H({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.k("design:type",Boolean)],Fk.prototype,"useRegularBackground",void 0);
_.B([_.H(),_.k("design:type",Object)],Fk.prototype,"ids",void 0);_.B([_.H(),_.k("design:type",Object)],Fk.prototype,"lottieAnimation",void 0);_.B([_.Ff("#animation-background"),_.k("design:type",HTMLDivElement)],Fk.prototype,"animationBackground",void 0);_.B([_.W("useAnimationBackground"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Fk.prototype,"maybeLoadAnimationBackground",null);
Fk=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],Fk);
_.P(Fk,"yt-live-interactivity-component-background",function(){if(Ts6===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;PkM===void 0&&(PkM=document.createElement("template"));var N=PkM;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Ts6=p}p=Ts6;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var RtK=function(){var p=_.m.apply(this,arguments)||this;p.characterCount=0;p.showInputErrorMessage=!1;p.startQnaRequestInFlight=!1;p.modern=_.S("web_button_rework_with_live");p.buttonOverrides={style:"mono",type:"filled"};p.closeButtonOverrides={iconPosition:"icon-only"};p.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return p};
_.E(RtK,_.m);_.l=RtK.prototype;
_.l.configureRendererStamper=function(){return{"data.creatorCallForQuestions.liveChatCreatorCallForQuestionsRenderer.overflowMenuButton":{id:"menu",events:!0,mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{id:"menu-button"}}}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[closeButtonOverrides]]"}}}},"data.startButton":{id:"start-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.l.onCharacterCountChanged=function(p){var x,F,N,h,c=(F=_.r(this==null?void 0:(x=this.data)==null?void 0:x.creatorCallForQuestions,xFg))==null?void 0:(N=F.inputField)==null?void 0:(h=N.liveChatTextInputFieldRenderer)==null?void 0:h.maxCharacterLimit,M,f;c!=null&&(p==null?void 0:(M=p.detail)==null?void 0:M.characterCount)!=null&&_.r(this==null?void 0:(f=this.data)==null?void 0:f.startButton,_.AS)&&(x=p.detail.characterCount>c,this.set("data.startButton.buttonRenderer.isDisabled",p.detail.characterCount===
0||x),this.showInputErrorMessage=x)};
_.l.onCloseClick=function(){_.hG(this.hostElement,"picker-cancelled");_.lA(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.l.onPickerCancelled=function(){var p=_.n(this.hostElement).querySelector("#qna-creator-text-input-field");p&&p.setLiveChatRichMessageInput(null)};
_.l.handleOpenQnaStartPanel=function(){var p=_.n(this.hostElement).querySelector("#qna-creator-text-input-field");p&&p.focus()};
_.l.handleStartButtonAction=function(p){var x=this;if(p.detail.actionName==="yt-service-request"&&(p.stopPropagation(),p=p.detail.args[1])){var F=_.n(this.hostElement).querySelector("#qna-creator-text-input-field"),N;(F==null?0:(N=F.liveChatRichMessageInput)==null?0:N.textSegments)&&F.liveChatRichMessageInput.textSegments.length!==0&&(N={rich_message:_.ym(F.liveChatRichMessageInput)},_.fc(this.hostElement,[p,N]).then(function(){_.hG(x.hostElement,"picker-cancelled")}))}};
_.l.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.l.handleServiceRequestCompleted=function(p){var x;p=p==null?void 0:(x=p.detail)==null?void 0:x.data;(p==null?0:p.actions)&&p.actions.length>0?this.startQnaRequestInFlight=!1:_.lA(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.l.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
var NT=RtK;NT.prototype.handleServiceRequestError=NT.prototype.handleServiceRequestError;NT.prototype.handleServiceRequestCompleted=NT.prototype.handleServiceRequestCompleted;NT.prototype.handleServiceRequestSent=NT.prototype.handleServiceRequestSent;NT.prototype.onPickerCancelled=NT.prototype.onPickerCancelled;NT.prototype.onCharacterCountChanged=NT.prototype.onCharacterCountChanged;_.B([_.H(),_.k("design:type",Object)],NT.prototype,"characterCount",void 0);
_.B([_.H(),_.k("design:type",Object)],NT.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],NT.prototype,"showInputErrorMessage",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],NT.prototype,"startQnaRequestInFlight",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],NT.prototype,"modern",void 0);_.B([_.H(),_.k("design:type",Object)],NT.prototype,"buttonOverrides",void 0);
_.B([_.H(),_.k("design:type",Object)],NT.prototype,"closeButtonOverrides",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],NT.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.z2),_.k("design:type",Object)],NT.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.u(_.Y4.YtLiveChatItemBehavior),_.k("design:type",_.wP)],NT.prototype,"ytLiveChatItemBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],NT.prototype,"ytActionHandlerBehavior",void 0);_.B([_.V("yt-live-chat-text-input-field-renderer-character-count-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],NT.prototype,"onCharacterCountChanged",null);_.B([_.V("picker-cancelled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],NT.prototype,"onPickerCancelled",null);
_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],NT.prototype,"handleServiceRequestSent",null);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],NT.prototype,"handleServiceRequestCompleted",null);
_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],NT.prototype,"handleServiceRequestError",null);NT=_.B([_.L({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],NT);
_.P(NT,"yt-live-chat-qna-start-panel-renderer",function(){if(LMU===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;jRz===void 0&&(jRz=document.createElement("template"));var N=jRz;F.call(x,N.content.cloneNode(!0),p.content.firstChild);LMU=p}p=LMU;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var kyP;var U1M;var i2K=function(){return _.m.apply(this,arguments)||this};
_.E(i2K,_.m);i2K.prototype.dismiss=function(){_.hG(this.hostElement,"yt-live-chat-error-message-dismiss")};
i2K.prototype.edit=function(){_.hG(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
var IhA=i2K;_.B([_.H(),_.k("design:type",Object)],IhA.prototype,"data",void 0);IhA=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],IhA);
_.P(IhA,"yt-live-chat-text-actions-error-message-renderer",function(){if(U1M===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;kyP===void 0&&(kyP=document.createElement("template"));var N=kyP;F.call(x,N.content.cloneNode(!0),p.content.firstChild);U1M=p}p=U1M;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var $1M;var etE;var pSA;var xcl;var hU=function(){var p=_.m.apply(this,arguments)||this;p.isDarkTheme=document.documentElement.hasAttribute("dark");p.newnessDotEligible=!1;return p};
_.E(hU,_.m);hU.prototype.sendReaction=function(){var p,x,F=((p=this.data)==null?void 0:p.emojiId)||((x=this.data)==null?void 0:x.emoteId),N;F&&((N=this.data)==null?0:N.shouldTriggerAnimation)&&_.lA(this.hostElement,"yt-create-user-reaction-animation",[F]);var h;(p=_.g$((h=this.data)==null?void 0:h.onTap))&&_.FY(p,this.hostElement);this.showNewnessDot&&_.lA(this.hostElement,"yt-hide-newness-dot")};
hU.prototype.onClick=function(p){(!p||p.clientX||p.clientY)&&this.sendReaction()};
hU.prototype.onKeyDown=function(p){p.key!=="Enter"&&p.key!==" "||p.repeat||this.sendReaction()};
_.R8.Object.defineProperties(hU.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var p,x;return!!(((p=this.data)==null?0:p.emojiId)||((x=this.data)==null?0:x.emoteId))}}});
var lj=hU;_.B([_.H(),_.k("design:type",Object)],lj.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],lj.prototype,"isDarkTheme",void 0);_.B([_.H(),_.k("design:type",Object)],lj.prototype,"newnessDotEligible",void 0);_.B([_.w("data.maybeShowNewnessDot"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],lj.prototype,"showNewnessDot",null);
_.B([_.w("data.emojiId","data.emoteId"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],lj.prototype,"useYtImage",null);lj=_.B([_.JZ({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],lj);
_.P(lj,"yt-reaction-control-panel-button-view-model",function(){if(xcl===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;pSA===void 0&&(pSA=document.createElement("template"));var N=pSA;F.call(x,N.content.cloneNode(!0),p.content.firstChild);xcl=p}p=xcl;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var FXE;var Nvn;var hWl=function(){var p=_.m.apply(this,arguments)||this;p.reactionControlPanelExpanded=!1;p.isDarkTheme=document.documentElement.hasAttribute("dark");p.newnessDotEligible=!1;return p};
_.E(hWl,_.m);_.l=hWl.prototype;_.l.expandedButtonsChanged=function(){var p,x;_.eV(this.hostElement,{"--expanded-buttons-height":((x=(p=this.expandedButtonsData)==null?void 0:p.length)!=null?x:0)*36+"px"})};
_.l.configureRendererStamper=function(){return{expandedButtonsData:{id:"expanded-buttons",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0},"data.collapsedButton":{id:"collapsed-button",mapping:{reactionControlPanelButtonViewModel:{component:"yt-reaction-control-panel-button-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.l.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.l.onMouseLeave=function(){var p=this;this.collapseTimer=setTimeout(function(){p.reactionControlPanelExpanded=!1},500)};
_.l.onFocusIn=function(){this.onMouseEnter()};
_.l.onFocusOut=function(){this.onMouseLeave()};
_.l.onCollapsedButtonFocusIn=function(){var p=this;setTimeout(function(){var x;(x=p.expandedButtons.querySelector("button"))==null||x.focus()},100)};
_.l.onCollapsedButtonFocusOut=function(p){p.stopPropagation()};
_.R8.Object.defineProperties(hWl.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var p,x;return _.Q5.unsafeClone((p=this.liveReactionsData)==null?void 0:p.emojiButtonData)||((x=this.data)==null?void 0:x.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var p;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((p=this.data)==null||!p.maybeShowNewnessDot)}}});
var c0=hWl;c0.prototype.expandedButtonsChanged=c0.prototype.expandedButtonsChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],c0.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],c0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.z2),_.k("design:type",Object)],c0.prototype,"ytLiveChatReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],c0.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],c0.prototype,"reactionControlPanelExpanded",void 0);_.B([_.H({selectorArgs:["data.liveReactionsDataEntityKey"],selector:yeo}),_.k("design:type",Object)],c0.prototype,"liveReactionsData",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],c0.prototype,"isDarkTheme",void 0);_.B([_.H(),_.k("design:type",Object)],c0.prototype,"newnessDotEligible",void 0);
_.B([_.w("liveReactionsData","data.expandedButtons"),_.k("design:type",Object),_.k("design:paramtypes",[])],c0.prototype,"expandedButtonsData",null);_.B([_.w("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.H({reflectToAttribute:!0}),_.k("design:type",Object),_.k("design:paramtypes",[])],c0.prototype,"showNewnessDot",null);_.B([_.Ff("#expanded-buttons"),_.k("design:type",HTMLElement)],c0.prototype,"expandedButtons",void 0);
_.B([_.W("expandedButtonsData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],c0.prototype,"expandedButtonsChanged",null);c0=_.B([_.JZ({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],c0);
_.P(c0,"yt-reaction-control-panel-view-model",function(){if(Nvn===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;FXE===void 0&&(FXE=document.createElement("template"));var N=FXE;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Nvn=p}p=Nvn;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var ao=new _.s0("yt-live-chat"),l0K=Date.parse("2024-7-24"),cml=function(){var p=_.m.apply(this,arguments)||this;p.emojiManager=_.uu;p.newnessDotEligible=!1;p.newnessDotImpressionCounted=!1;p.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return p};
_.E(cml,_.m);_.l=cml.prototype;_.l.emojiCustomizationEnabledChanged=function(){var p;((p=this.data)==null?0:p.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((p=ao.getCreationTime("emoji-customization-count"))&&p<l0K&&ao.set("emoji-customization-count","0"),p=Number(ao.get("emoji-customization-count"))||0,p<3&&(this.newnessDotEligible=!0,ao.set("emoji-customization-count",(p+1).toString())),this.newnessDotImpressionCounted=!0)};
_.l.hideNewnessDot=function(){this.newnessDotEligible=!1;ao.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.l.handleReactionsMute=function(p){var x=_.b0(),F=_.vt(206221),N={checkboxData:{state:p?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};x&&_.B5(x,F,N);this.reactionsMuted=p};
_.l.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.l.configureRendererStamper=function(){return{"data.emojiFountain":{id:"emoji-fountain",mapping:{emojiFountainViewModel:{component:"yt-emoji-fountain-view-model",properties:{emojiManager:"[[emojiManager]]",isActive:"[[liveReactionsEnabled]]"}}},reuseComponents:!0},"data.reactionControlPanel":{id:"reaction-control-panel",mapping:{reactionControlPanelViewModel:{component:"yt-reaction-control-panel-view-model",properties:{newnessDotEligible:"[[newnessDotEligible]]"}}},reuseComponents:!0}}};
_.R8.Object.defineProperties(cml.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var p;return(!((p=this.liveReactionsData)==null||!p.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
var MT=cml;MT.prototype.liveReactionsSettingChanged=MT.prototype.liveReactionsSettingChanged;MT.prototype.emojiCustomizationEnabledChanged=MT.prototype.emojiCustomizationEnabledChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],MT.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],MT.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.z2),_.k("design:type",Object)],MT.prototype,"ytLiveChatReduxBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],MT.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],MT.prototype,"data",void 0);_.B([_.H(),_.k("design:type",_.yx)],MT.prototype,"emojiManager",void 0);_.B([_.H(),_.k("design:type",Object)],MT.prototype,"newnessDotEligible",void 0);_.B([_.H(),_.k("design:type",Object)],MT.prototype,"newnessDotImpressionCounted",void 0);
_.B([_.H({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:b8l}),_.k("design:type",Boolean)],MT.prototype,"liveReactionsSetting",void 0);_.B([_.H({selectorArgs:["data.liveReactionsDataEntityKey"],selector:yeo}),_.k("design:type",Object)],MT.prototype,"liveReactionsData",void 0);_.B([_.H({value:function(){var p=_.S("enable_lwe_web_mute"),x=ao.get("allow-reactions");return x===void 0?!1:!x&&p}}),
_.k("design:type",Boolean)],MT.prototype,"reactionsMuted",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],MT.prototype,"liveReactionsEnabled",null);_.B([_.W("data.emojiCustomizationEnabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],MT.prototype,"emojiCustomizationEnabledChanged",null);
_.B([_.W("liveReactionsEnabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],MT.prototype,"liveReactionsSettingChanged",null);MT=_.B([_.JZ({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],MT);
_.P(MT,"yt-reaction-control-panel-overlay-view-model",function(){if(etE===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;$1M===void 0&&($1M=document.createElement("template"));var N=$1M;F.call(x,N.content.cloneNode(!0),p.content.firstChild);etE=p}p=etE;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var a0U={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(p){var x=this.$.pickers.selected;if(x){_.n(this.hostElement).removeAttribute(x+"-open");var F="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(F="#picker-buttons",x==="emoji"&&_.n(this.hostElement).querySelector("#emoji-picker-button")&&(F="#emoji-picker-button"));if(F=_.n(this.hostElement).querySelector(F).querySelector("#"+x))F.active=!1}F=p;x==p&&(F=null);x!=p&&
_.n(this.hostElement).setAttribute(p+"-open","");this.$.pickers.selected=F;_.lA(this.hostElement,"yt-live-chat-picker-changed",[F])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var MeP=function(){var p=_.m.apply(this,arguments)||this;p.numSentMessages=0;p.timeoutDurationMs=0;p.timeoutMs=0;p.lastTimeoutTimeMs=0;p.pendingMessageId="";p.hasFiredInitialFocusActions=!1;p.isBeforeFocusEnabled=!0;p.id="";p.characterCount=0;p.maxCharacterLimit=0;p.remainingCharacterCount=0;p.inputExpanded=!1;p.buttonOverrides={iconPosition:"icon-only"};p.inReplyPanel=!1;p.countdownRatio=0;p.isTooltipVisible=!1;p.tooltipTimeout=1E4;p.systemIcons=_.S("kevlar_system_icons");p.tallerEmojiPicker=_.S("live_chat_taller_emoji_picker");
p.blockSendMessageWithCountdown=!_.S("live_chat_enable_send_button_in_slow_mode");p.sendReplyMessageInFlight=!1;p.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"};p.onResize=function(){p.maybeToggleCharacterCount()};
return p};
_.E(MeP,_.m);_.l=MeP.prototype;
_.l.configureRendererStamper=function(){return{"data.sendButton":{id:"send-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.pickers":{id:"pickers",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{disableIncrementalLoading:"[[disableEmojiPickerIncrementalLoading]]"}},liveChatProductPickerRenderer:"yt-live-chat-product-picker-renderer",liveChatProductPickerPanelViewModel:"yt-live-chat-product-picker-panel-view-model",liveChatPollEditorPanelRenderer:"yt-live-chat-poll-editor-panel-renderer",
liveChatQnaStartPanelRenderer:"yt-live-chat-qna-start-panel-renderer"}},"data.emojiPickerButton":{id:"emoji-picker-button",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0}}}},"data.pickerButtons":{id:"picker-buttons",mapping:{liveChatIconToggleButtonRenderer:{component:"yt-live-chat-icon-toggle-button-renderer",
properties:{disabled:"[[hasInteractionMessage]]"}},buttonRenderer:{component:"yt-button-renderer",params:{buttonTooltipPosition:"top",sendServiceEndpointWhenDisabled:!0},properties:{overrides:"[[buttonOverrides]]"}},reactionControlPanelOverlayViewModel:{component:"yt-reaction-control-panel-overlay-view-model"}}},"data.interactionMessage":{id:"interaction-message",mapping:{messageRenderer:{component:"yt-live-chat-message-renderer",params:{subtextOnBottom:!0}}}},errorMessage:{id:"error-message",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer",
liveChatTextActionsErrorMessageRenderer:"yt-live-chat-text-actions-error-message-renderer"}}}};
_.l.attached=function(){window.addEventListener("resize",this.onResize)};
_.l.detached=function(){window.removeEventListener("resize",this.onResize)};
_.l.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.l.sendMessage=function(){var p=this,x,F,N,h;return _.D(function(c){if(p.sendDisabled)return c.return();p.isTooltipVisible&&_.lA(p.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(p.data.sendButton&&p.data.sendButton.buttonRenderer){p.input.completeEmojis();x=p.data.sendButton.buttonRenderer.serviceEndpoint;if(!x)return c.return();N=((F=_.r(x,_.h_B))==null?void 0:F.clientIdPrefix)||"";h={client_message_id:N+String(p.numSentMessages++),rich_message:_.ym(p.input.liveChatRichMessageInput)};
p.pendingMessageId=h.client_message_id;p.inReplyPanel&&(p.sendReplyMessageInFlight=!0);_.fc(p.hostElement,[x,h]);p.input.setLiveChatRichMessageInput(null)}_.JB(c)})};
_.l.handleSendButtonAction=function(p){p.detail.actionName==="yt-service-request"&&(p.stopPropagation(),this.sendMessage())};
_.l.onSendCompleted=function(p,x){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(p=this.get("timeoutDurationUsec",x.data))&&this.handleTimeout(Number(p)/1E3);this.errorMessage=this.get("errorMessage",x.data);this.pendingMessageId=""};
_.l.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.lA(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.l.handlePickerButtonToggle=function(p){p=p.detail.targetId;this.ytPickerBehavior.togglePicker_(p);if(p==="emoji")this.input.focus();else if(p==="qna-start-panel"){var x,F;(x=_.n(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(F=x.querySelector("#qna-creator-text-input-field"))==null||F.focus()}};
_.l.onComponentReplaced=function(p){var x,F;p.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((x=p.replacement.liveChatMessageInputRenderer)==null?0:(F=x.headerRenderer)==null?0:F.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.l.onEmojiSelect=function(p){this.input.focus();this.input.insertEmoji(p.detail)};
_.l.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.l.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.lA(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.lA(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.l.onOpenPopupAction=function(p,x){var F=this;x===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.lA(F.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.l.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.l.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.l.focusChanged=function(){this.maybeToggleCharacterCount()};
_.l.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var p=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",p>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.l.computeId=function(){return this.data&&this.data.targetId||""};
_.l.computeSendDisabled=function(p,x,F,N){p=!!(this.blockSendMessageWithCountdown&&F||!p||x&&p>x||N);(x=_.n(this.hostElement).querySelector("#send-button"))&&x.children.length&&(x.children[0].disabled=p);return p};
_.l.handleTimeout=function(p){this.timeoutDurationMs=this.timeoutMs=p;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.l.updateTimeout=function(p){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(p-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=p,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.l.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.l.onErrorMessageEdit=function(p){this.input.setLiveChatRichMessageInput(p.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.l.errorMessageChanged=function(){var p=this;_.zD(function(){_.lA(p.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.l.computeAuthorNameColor=function(p){var x;if(_.S("live_chat_author_name_color_usernames")&&(p==null?0:(x=p.authorName)==null?0:x.simpleText))return _.M$r(_.Dyz(p.authorName.simpleText));if(_.S("live_chat_seed_color_usernames")&&(p==null?0:p.authorSeedColorArgb))return _.M$r(_.Id(p.authorSeedColorArgb));if(_.S("live_chat_colored_usernames"))return"#cc0000";var F;return _.S("live_chat_simple_color_usernames")&&(p==null?0:(F=p.authorName)==null?0:F.simpleText)&&(p==null?0:p.authorUsernameColorLight)&&
(p==null?0:p.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.Id(p.authorUsernameColorDark):_.Id(p.authorUsernameColorLight):""};
_.l.onIsTooltipVisibleChanged=function(){var p=_.n(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){p.hidden=!1;p.setAttribute("role","alert")},0):(p.hidden=!0,p.removeAttribute("role"))};
_.l.onFocusedChanged=function(p){this.inputFocused=p.detail.value};
_.R8.Object.defineProperties(MeP.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 p;return!((p=this.data)==null||!p.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.data)==null?void 0:(x=p.pickers)==null?void 0:x.find(function(F){return F.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var p=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return p?this.ytRendererBehavior.getSimpleString(p):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
var Dl=MeP;Dl.prototype.onIsTooltipVisibleChanged=Dl.prototype.onIsTooltipVisibleChanged;Dl.prototype.errorMessageChanged=Dl.prototype.errorMessageChanged;Dl.prototype.onErrorMessageEdit=Dl.prototype.onErrorMessageEdit;Dl.prototype.onErrorMessageDismiss=Dl.prototype.onErrorMessageDismiss;Dl.prototype.focusChanged=Dl.prototype.focusChanged;Dl.prototype.characterCountChanged=Dl.prototype.characterCountChanged;Dl.prototype.onEmojiSelect=Dl.prototype.onEmojiSelect;
Dl.prototype.handlePickerButtonToggle=Dl.prototype.handlePickerButtonToggle;Dl.prototype.onSendError=Dl.prototype.onSendError;Dl.prototype.onSendCompleted=Dl.prototype.onSendCompleted;Dl.prototype.sendMessage=Dl.prototype.sendMessage;Dl.prototype.dataChanged=Dl.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Dl.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Dl.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.u(a0U.YtPickerBehavior),_.k("design:type",Object)],Dl.prototype,"ytPickerBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Dl.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.sB.YtLiveChatTooltipTargetingBehavior),_.k("design:type",Object)],Dl.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Dl.prototype,"hasFiredInitialFocusActions",void 0);
_.B([_.H(),_.k("design:type",Object)],Dl.prototype,"isBeforeFocusEnabled",void 0);_.B([_.H(),_.k("design:type",Object)],Dl.prototype,"data",void 0);_.B([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.k("design:type",Object)],Dl.prototype,"id",void 0);_.B([_.H(),_.k("design:type",Object)],Dl.prototype,"characterCount",void 0);_.B([_.H(),_.k("design:type",Object)],Dl.prototype,"maxCharacterLimit",void 0);
_.B([_.H(),_.k("design:type",Object)],Dl.prototype,"remainingCharacterCount",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Dl.prototype,"inputExpanded",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Dl.prototype,"inputFocused",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Dl.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.B([_.H(),_.k("design:type",_.Wn)],Dl.prototype,"participantsManager",void 0);
_.B([_.H(),_.k("design:type",Object)],Dl.prototype,"buttonOverrides",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Dl.prototype,"inReplyPanel",void 0);_.B([_.w("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Dl.prototype,"sendDisabled",null);_.B([_.H(),_.k("design:type",Object)],Dl.prototype,"countdownRatio",void 0);
_.B([_.w("countdownRatio"),_.k("design:type",Number),_.k("design:paramtypes",[])],Dl.prototype,"countdownStrokeDashOffset",null);_.B([_.w("countdownRatio"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Dl.prototype,"countdownActive",null);_.B([_.w("data.interactionMessage"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Dl.prototype,"hasInteractionMessage",null);
_.B([_.w("data.emojiPickerButton"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Dl.prototype,"hasEmojiPickerButton",null);_.B([_.w("data, characterCount"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Dl.prototype,"showAvatar",null);_.B([_.w("data.pickers"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Dl.prototype,"hasProductPickerPanelViewModel",null);
_.B([_.H(),_.k("design:type",Object)],Dl.prototype,"errorMessage",void 0);_.B([_.H(),_.k("design:type",Object)],Dl.prototype,"genericErrorMessage",void 0);_.B([_.H(),_.k("design:type",Object)],Dl.prototype,"isTooltipVisible",void 0);_.B([_.H(),_.k("design:type",Object)],Dl.prototype,"tooltipTimeout",void 0);_.B([_.w("data.onInitialFocusCommand"),_.k("design:type",String),_.k("design:paramtypes",[])],Dl.prototype,"tooltipMessage",null);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Dl.prototype,"systemIcons",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Dl.prototype,"tallerEmojiPicker",void 0);_.B([_.w("data"),_.k("design:type",String),_.k("design:paramtypes",[])],Dl.prototype,"authorNameColor",null);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Dl.prototype,"blockSendMessageWithCountdown",void 0);_.B([_.H(),_.k("design:type",Object)],Dl.prototype,"sendReplyMessageInFlight",void 0);
_.B([_.Ff("#input"),_.k("design:type",_.V7n)],Dl.prototype,"input",void 0);_.B([_.Ff("#count"),_.k("design:type",HTMLElement)],Dl.prototype,"count",void 0);_.B([_.Ff("#input-container"),_.k("design:type",HTMLElement)],Dl.prototype,"inputContainer",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Dl.prototype,"dataChanged",null);
_.B([_.V("yt-live-chat-send-message"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],Dl.prototype,"sendMessage",null);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[Event,_.Ht]),_.k("design:returntype")],Dl.prototype,"onSendCompleted",null);_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Dl.prototype,"onSendError",null);
_.B([_.V("yt-live-chat-icon-toggle-button-renderer-toggle"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Dl.prototype,"handlePickerButtonToggle",null);_.B([_.V("yt-emoji-select"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Dl.prototype,"onEmojiSelect",null);
_.B([_.W("characterCount"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Dl.prototype,"characterCountChanged",null);_.B([_.W("inputFocused"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Dl.prototype,"focusChanged",null);_.B([_.V("yt-live-chat-error-message-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Dl.prototype,"onErrorMessageDismiss",null);
_.B([_.V("yt-live-chat-error-message-edit"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Dl.prototype,"onErrorMessageEdit",null);_.B([_.W("errorMessage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Dl.prototype,"errorMessageChanged",null);_.B([_.W("isTooltipVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Dl.prototype,"onIsTooltipVisibleChanged",null);
Dl=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],Dl);
_.P(Dl,"yt-live-chat-message-input-renderer",function(){if(tSE===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Z2U===void 0&&(Z2U=document.createElement("template"));var N=Z2U;F.call(x,N.content.cloneNode(!0),p.content.firstChild);tSE=p}p=tSE;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var Dcn;var f05;var fj=function(){var p=_.m.apply(this,arguments)||this;p.systemIcons=_.S("kevlar_system_icons");p.firedOnClickCommand=!1;p.inReplyPanel=!1;return p};
_.E(fj,_.m);
fj.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"}}}};
fj.prototype.onButtonToggle=function(p){p.target.disabled||this.ytPickerBehavior.togglePicker_(p.detail.targetId)};
fj.prototype.onClick=function(){var p=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.lA(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return p.firedOnClickCommand=!1},5E3))};
_.R8.Object.defineProperties(fj.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.data)==null?void 0:(x=p.panels)==null?void 0:x.find(function(F){return F.liveChatProductPickerPanelViewModel}))!==void 0}}});
var Kj=fj;Kj.prototype.onButtonToggle=Kj.prototype.onButtonToggle;_.B([_.u(a0U.YtPickerBehavior),_.k("design:type",Object)],Kj.prototype,"ytPickerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Kj.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Kj.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Kj.prototype,"systemIcons",void 0);_.B([_.H({reflectToAttribute:!1}),_.k("design:type",Object)],Kj.prototype,"firedOnClickCommand",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Kj.prototype,"inReplyPanel",void 0);_.B([_.w("data.pickers"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Kj.prototype,"hasProductPickerPanelViewModel",null);
_.B([_.V("yt-live-chat-icon-toggle-button-renderer-toggle"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Kj.prototype,"onButtonToggle",null);Kj=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],Kj);
_.P(Kj,"yt-live-chat-restricted-participation-renderer",function(){if(f05===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Dcn===void 0&&(Dcn=document.createElement("template"));var N=Dcn;F.call(x,N.content.cloneNode(!0),p.content.firstChild);f05=p}p=f05;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var KXz=function(){var p=_.m.apply(this,arguments)||this;p.genericErrorMessage=_.L1("Error, try again.");p.inReplyPanel=!1;p.hideBorder=!1;return p};
_.E(KXz,_.m);KXz.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}}}}}};
_.R8.Object.defineProperties(KXz,{template:{configurable:!0,enumerable:!0,get:function(){return lhe()}}});
var qT=KXz;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],qT.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],qT.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],qT.prototype,"genericErrorMessage",void 0);_.B([_.H(),_.k("design:type",Object)],qT.prototype,"inReplyPanel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],qT.prototype,"hideBorder",void 0);
qT=_.B([_.JZ({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],qT);_.P(qT,"yt-live-chat-engagement-panel-input-renderer",function(){return lhe()},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var qyb,ZHl;qyb=_.vt(115994);ZHl=_.vt(115993);_.tez=function(p,x,F){var N=this;var h=F.dragDownAction;this.layer=0;this.JSC$19697_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return N.dragDownAction()}}}};
this.JSC$19697_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return N.dragDownAction()}}}};
this.fullscreen=!1;var c=_.cl();_.hY(c,qyb,this.layer);_.hY(c,ZHl,this.layer);this.dragDownAction=function(){h();_.A0(c,{visualElement:N.fullscreen?qyb:ZHl})};
this.gesture=new _.XL(p,x,this.JSC$19697_watchConfig,"pandown");this.attach()};
_.tez.prototype.attach=function(){this.gesture.attach()};
_.tez.prototype.detach=function(){this.gesture.detach()};
_.tez.prototype.update=function(p){this.fullscreen=p;this.gesture.config=p?this.JSC$19697_watchFullScreenConfig:this.JSC$19697_watchConfig};var dc6={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(p){if(p&&p.length==1&&Array.isArray(p[0].loggingUrls)){p=_.Q5.unsafeClone(p[0]);var x=this.macros||{},F=this.getAdModuleClient_();if(!F)return _.qt();p.loggingUrls.forEach(function(N){if(N.baseUrl){var h=N.baseUrl;var c=x;c=c===void 0?{}:c;h=F.getOptions().includes("replaceUrlMacros")?_.ciD(F,"replaceUrlMacros",{url:h,additionalMapping:c}):h;N.baseUrl=h}},this);
p=[p]}return _.fc(this.hostElement,p)},
getAdModuleClient_:function(){var p=_.Pt(this);return p?(p=p.getPlayer())?new _.JL(p):null:null}}]};var vCA;var Jmg=function(){var p=_.m.apply(this,arguments)||this;p.isCollapsed=!1;p.modernPanels=_.S("kevlar_watch_modern_panels");p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return p};
_.E(Jmg,_.m);_.l=Jmg.prototype;_.l.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.onDonateTap=function(){var p=this.get("data.donateButton.buttonRenderer.command");if(p){var x=_.b0(),F=this.get("data.donateButton.buttonRenderer.trackingParams");x&&F&&_.B5(x,_.fr(F));this.ytOpenPopupBehavior.openPopup(p)}};
_.l.onShowMore=function(){this.isCollapsed=!1;var p=_.b0(),x=this.get("data.expandButton.buttonRenderer.trackingParams");p&&x&&_.B5(p,_.fr(x))};
_.l.onShowLess=function(){this.isCollapsed=!0};
_.l.dataChanged=function(){_.eV(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.l.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.l.handleUpdate=function(p){if(p=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",p))this.set("data.startLabel",p.startLabel),this.set("data.endLabel",p.endLabel),this.set("data.progress",p.progress),this.set("data.amountRaisedLabel",p.amountRaisedLabel),this.dataChanged()};
_.l.handleOpenPopupAction=function(p){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",p)&&_.lA(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.l.computeHeaderBackgroundUrl=function(p,x){if(p)return x?p.headerBackgroundDarkUrl:p.headerBackgroundUrl};
_.l.isProgressBarVisible=function(p){return!(!p||p.progress===void 0)};
_.l.headerBackgroundClass=function(){return _.sd("HTML_DIR")==="rtl"?"flip":""};
var Zl=Jmg;Zl.prototype.dataChanged=Zl.prototype.dataChanged;_.B([_.u(_.FU.YtOpenPopupBehavior),_.k("design:type",Object)],Zl.prototype,"ytOpenPopupBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Zl.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Zl.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Zl.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],Zl.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Zl.prototype,"isCollapsed",void 0);_.B([_.H({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.k("design:type",String)],Zl.prototype,"headerBackgroundUrl",void 0);_.B([_.H(),_.k("design:type",Boolean)],Zl.prototype,"isDarkTheme",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Zl.prototype,"modernPanels",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zl.prototype,"dataChanged",null);Zl=_.B([_.L({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],Zl);
_.P(Zl,"ytd-donation-shelf-renderer",function(){if(vCA!==void 0)return vCA;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return vCA=p},{mode:1});var CIz;var Sye=function(){return _.m.apply(this,arguments)||this};
_.E(Sye,_.m);var rm5=Sye;_.B([_.H(),_.k("design:type",Object)],rm5.prototype,"data",void 0);rm5=_.B([_.L({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],rm5);
_.P(rm5,"ytd-donation-unavailable-renderer",function(){if(CIz!==void 0)return CIz;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return CIz=p},{mode:1});var ECg;var XSK=function(){return _.m.apply(this,arguments)||this};
_.E(XSK,_.m);XSK.prototype.computeIconType=function(p){return p?"yt-icons:"+p.toLowerCase():null};
var gCo=XSK;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],gCo.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],gCo.prototype,"data",void 0);gCo=_.B([_.L({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],gCo);
_.P(gCo,"ytd-limited-state-message-renderer",function(){if(ECg!==void 0)return ECg;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return ECg=p},{mode:1});var QGz;var zWn=function(){return _.m.apply(this,arguments)||this};
_.E(zWn,_.m);zWn.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
zWn.prototype.onTap=function(p){var x=this.data&&this.data.endpoint;x&&!_.mx(_.m9(p),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.hG(this.hostElement,"yt-navigate",{endpoint:x})};
var tU=zWn;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],tU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],tU.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],tU.prototype,"data",void 0);tU=_.B([_.L({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],tU);
_.P(tU,"ytd-autotagging-metadata-renderer",function(){if(QGz!==void 0)return QGz;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return QGz=p},{mode:1});var sGo;var nCU=function(){return _.m.apply(this,arguments)||this};
_.E(nCU,_.m);nCU.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
var dN=nCU;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],dN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],dN.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],dN.prototype,"data",void 0);dN=_.B([_.L({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],dN);
_.P(dN,"ytd-autotagging-metadata-row-renderer",function(){if(sGo!==void 0)return sGo;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return sGo=p},{mode:1});var ymM;var bHo;var Am6=function(){var p=_.m.apply(this,arguments)||this;p.engagementPanelContent=!1;return p};
_.E(Am6,_.m);Am6.prototype.computeHasDividerLine=function(p,x){return p&&!x};
var v0=Am6;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],v0.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],v0.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.k("design:type",Boolean)],v0.prototype,"hasDividerLine",void 0);_.B([_.H(),_.k("design:type",Object)],v0.prototype,"engagementPanelContent",void 0);
v0=_.B([_.L({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],v0);
_.P(v0,"ytd-metadata-row-header-renderer",function(){if(bHo!==void 0)return bHo;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return bHo=p},{mode:1});var u2z;var YyM=function(){return _.m.apply(this,arguments)||this};
_.E(YyM,_.m);YyM.prototype.computeHasDividerLine=function(p){return p};
var JU=YyM;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],JU.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],JU.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.k("design:type",Boolean)],JU.prototype,"hasDividerLine",void 0);JU=_.B([_.L({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],JU);
_.P(JU,"ytd-metadata-row-renderer",function(){if(u2z!==void 0)return u2z;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return u2z=p},{mode:1});var wSP;var G4A=function(){return _.m.apply(this,arguments)||this};
_.E(G4A,_.m);var VeU=G4A;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],VeU.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],VeU.prototype,"data",void 0);VeU=_.B([_.L({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],VeU);
_.P(VeU,"ytd-metadata-with-image-row-renderer",function(){if(wSP!==void 0)return wSP;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return wSP=p},{mode:1});var WXK;var HHl=function(){var p=_.m.apply(this,arguments)||this;p.rounded=!0;p.fixie=!1;p.fullWidth=!1;return p};
_.E(HHl,_.m);_.l=HHl.prototype;_.l.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.onDataChanged=function(){var p=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(x){p.onEndpointLinkKeyPress(x)}))};
_.l.onEndpointLinkKeyPress=function(p){p.target===this.endpointLink&&p.keyCode===13&&_.hG(this.hostElement,"click")};
_.l.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var p;if((p=this.data)==null?0:p.endpoint)_.Kc(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.l.onYtNavigate=function(p){this.endpointHref||(p.stopPropagation(),p.preventDefault())};
_.l.onInformationButtonContainerClick=function(p){p.target.id!=="information-button-container"&&(p.stopPropagation(),p.preventDefault())};
_.l.computeStyle=function(p){return p};
_.l.computeIsThumbnailStyle=function(p){return p==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.l.computeThumbnailWidth=function(p){switch(p){case "RICH_METADATA_RENDERER_STYLE_THUMBNAIL":return 178;case "RICH_METADATA_RENDERER_STYLE_BOX_ART":return 72;case "RICH_METADATA_RENDERER_STYLE_TOPIC":return 96;case "RICH_METADATA_RENDERER_STYLE_SQUARE":return 100;default:return 68}};
_.l.computeThumbnailObjectFit=function(p){switch(p){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.R8.Object.defineProperties(HHl.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?0:p.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
var Cj=HHl;Cj.prototype.onYtNavigate=Cj.prototype.onYtNavigate;Cj.prototype.onClick=Cj.prototype.onClick;Cj.prototype.onDataChanged=Cj.prototype.onDataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Cj.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Cj.prototype,"componentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Cj.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],Cj.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.k("design:type",String)],Cj.prototype,"componentStyle",void 0);_.B([_.H({computed:"computeIsThumbnailStyle(data.style)"}),_.k("design:type",Boolean)],Cj.prototype,"isThumbnailStyle",void 0);_.B([_.H({computed:"computeThumbnailObjectFit(data.style)"}),_.k("design:type",String)],Cj.prototype,"thumbnailObjectFit",void 0);
_.B([_.H({computed:"computeThumbnailWidth(data.style)"}),_.k("design:type",Number)],Cj.prototype,"thumbnailWidth",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Cj.prototype,"rounded",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Cj.prototype,"fixie",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Cj.prototype,"fullWidth",void 0);_.B([_.Ff("#endpoint-link"),_.k("design:type",HTMLAnchorElement)],Cj.prototype,"endpointLink",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Cj.prototype,"onDataChanged",null);_.B([_.w("data.endpoint"),_.k("design:type",Object),_.k("design:paramtypes",[])],Cj.prototype,"endpointHref",null);_.B([_.V("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],Cj.prototype,"onClick",null);
_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Cj.prototype,"onYtNavigate",null);Cj=_.B([_.L({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],Cj);
_.P(Cj,"ytd-rich-metadata-renderer",function(){if(WXK!==void 0)return WXK;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return WXK=p},{mode:_.UQ("kevlar_poly_si_batch_j075")?1:2});var mce;var oCE=function(){var p=_.m.apply(this,arguments)||this;p.fixie=!1;p.fullWidth=!1;return p};
_.E(oCE,_.m);oCE.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
oCE.prototype.computeHasDividerLine=function(p){return p};
var SN=oCE;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],SN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],SN.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.k("design:type",Boolean)],SN.prototype,"hasDividerLine",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],SN.prototype,"fixie",void 0);
_.B([_.H(),_.k("design:type",Object)],SN.prototype,"fullWidth",void 0);SN=_.B([_.L({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],SN);
_.P(SN,"ytd-rich-metadata-row-renderer",function(){if(mce!==void 0)return mce;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return mce=p},{mode:1});var OHU=function(){var p=_.m.apply(this,arguments)||this;p.engagementPanelContent=!1;p.fixie=!1;p.fullWidth=!1;return p};
_.E(OHU,_.m);
OHU.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"}}}};
OHU.prototype.computeCollapsibleItems=function(p,x,F){return p===void 0||x===void 0||F===void 0||F?[]:p.slice(x)};
OHU.prototype.computeAlwaysShownItems=function(p,x){return p&&p.length?p.slice(0,x):[]};
var rN=OHU;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],rN.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],rN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],rN.prototype,"data",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],rN.prototype,"collapsed",void 0);
_.B([_.H({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.k("design:type",Array)],rN.prototype,"alwaysShownItems",void 0);_.B([_.H({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.k("design:type",Array)],rN.prototype,"collapsibleItems",void 0);_.B([_.H(),_.k("design:type",Object)],rN.prototype,"engagementPanelContent",void 0);_.B([_.H(),_.k("design:type",Object)],rN.prototype,"fixie",void 0);
_.B([_.H(),_.k("design:type",Object)],rN.prototype,"fullWidth",void 0);rN=_.B([_.L({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],rN);
_.P(rN,"ytd-metadata-row-container-renderer",function(){if(ymM!==void 0)return ymM;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return ymM=p},{mode:1});var jGz;var LXe=function(){var p=_.m.apply(this,arguments)||this;p.currentPageUrl="";p.baseUrl="";p.isHiddenByUser=null;p.hidden=!1;p.showAboveScrim=!1;p.watchNextGrid=_.S("kevlar_watch_grid");p.modernButtons=_.S("web_modern_buttons");p.roundedContainer=!0;p.noBorder=!1;p.roundBackground=!_.S("live_chat_round_background_killswitch");p.overflowHideChat=_.S("live_chat_overflow_hide_chat");p.forceDarkTheme=!1;p.theaterWatchWhile=!1;p.isListeningForPlayerProgress=!1;p.JSC$19733_playerEvents=new Map;p.isFrameReady=
!1;p.player=null;p.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 p};
_.E(LXe,_.m);_.l=LXe.prototype;_.l.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Mt(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.l.created=function(){var p=this;this.handleIframeEventListener=function(x){p.handleIframeEvent(x)};
this.handleKeyboardEventListener=function(x){p.handleKeyboardEvent(x)};
this.JSC$19733_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19733_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19733_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19733_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19733_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.l.attached=function(){window.addEventListener("message",this.handleIframeEventListener);window.addEventListener("keydown",this.handleKeyboardEventListener);window.addEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl=window.location.href;this.setupPlayerProgressRelay();this.collapsedChanged()};
_.l.detached=function(){window.removeEventListener("message",this.handleIframeEventListener);window.removeEventListener("keydown",this.handleKeyboardEventListener);window.removeEventListener("keyup",this.handleKeyboardEventListener);this.currentPageUrl="";this.isListeningForPlayerProgress=!1;this.setPlayer(null);this.isFrameReady=!1};
_.l.computeBaseUrl=function(p){var x="/live_chat";this.isChatReplay()&&(x="/live_chat_replay");return _.Fp(_.x9(_.pF(_.G4(p),x),null),"").toString()};
_.l.dataChanged=function(){_.S("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.l.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var p=this.url;if(this.isChatReplay()&&this.player){var x=Math.floor(this.player.getProgressState().current*1E3);p=_.WS(_.G4(p),"playerOffsetMs",x.toString()).toString()}x=this.chatframe;try{var F=p==="about:blank"?_.MDJ:_.ug(p),N=x.contentDocument.location,h=_.Vb(F);h!==void 0&&N.replace(h)}catch(c){x.src=p}}};
_.l.collapsedChanged=function(){_.hG(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.l.handleIframeEvent=function(p){if(p&&this.baseUrl.startsWith(p.origin)&&p.source===this.chatframe.contentWindow&&_.IJ(p.data))if(p.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(p);else if(p.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(p.data["yt-show-feedback-dialog"]){var x=_.J().resolve(_.Bw(_.w9a));if(x){var F=p.ports,N;F&&F.length&&(N=function(){F[0].postMessage({})});
p=p.data["yt-show-feedback-dialog"];x.showFeedbackDialog(p.customProductData,p.feedbackContent,N,p.bucket)}}else if(p.data["yt-show-survey"])_.hG(this.hostElement,"yt-show-survey",p.data["yt-show-survey"]);else if(p.data["yt-purchase-membership"])_.S("web_ytd_live_chat_frame_command_resolver_ks")?_.fc(this.hostElement,[p.data["yt-purchase-membership"]]):_.J().resolve(_.RD).resolveCommand(p.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(p.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(p.data["yt-tunnel-out-live-service-request"]);
else if(p.data["yt-user-activity"])_.kS();else if(p.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(p.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(p.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(p.data["yt-open-popup"]);else if(p.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(p.data["yt-log-flow-logging-event-command"]);else if(p.data["yt-hide-live-chat"])this.onShowHideChat();
else p.data["yt-report-moderation-state-log"]&&this.player&&(x={cpn:this.player.getVideoData().cpn},_.E$("liveChatBeingModerated",x))};
_.l.attachLiveChatResponseVeTrackingParams=function(p){p=_.fr(p);var x=_.b0(),F=_.A9("liveChatRenderer.trackingParams",this.data);x&&F&&_.jz(x,_.fr(F),p)};
_.l.handleBuyflowMessages=function(p){var x=p.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,F=p.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,N=p.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.tnk(_.la(_.Hg),x.replace(/-/g,"+").replace(/_/g,"/"),function(h){p.ports[0].postMessage({success:!0,buyFlowResponse:h})},void 0,function(h){p.ports[0].postMessage({success:!1,
error:h&&h.message||"Buyflow rejected without error."})},_.rH().get("hl"),void 0,function(){p.ports[0].postMessage({closed:!0})},F,N)};
_.l.setupPlayerProgressRelay=function(){var p=this;if(!this.isListeningForPlayerProgress){var x=_.TO();x!=null&&x.getPlayerPromise&&(x.getPlayerPromise().then(function(F){p.playerApiReady(F)}),this.isListeningForPlayerProgress=!0)}};
_.l.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.l.playerApiReady=function(p){this.setPlayer(p)};
_.l.playerProgressHandler=function(){if(this.player){var p=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":p.current})}};
_.l.playerAdStartHandler=function(p){this.postToContentWindow({"yt-player-ad-start":p})};
_.l.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.l.playerStateChangeHandler=function(p){this.postToContentWindow({"yt-player-state-change":p})};
_.l.setPlayer=function(p){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19733_playerEvents);p&&(this.player=p,this.ytPlayerListenerBehavior.listenToPlayerEvents(p,this.JSC$19733_playerEvents),_.hG(this.hostElement,"player-api-ready"))};
_.l.liveChatPageUrl=function(p,x,F,N){return!F||x?"about:blank":F.liveChatRenderer?(x=_.G4(this.currentPageUrl).JSC$7886_queryData_,b6z(x),p=_.G4(p),x.add("continuation",F.liveChatRenderer.continuations[0].reloadContinuationData.continuation),F=_.AF()==="USER_INTERFACE_THEME_DARK",(N||F)&&x.add("dark_theme","true"),_.x9(p,x),N=_.G4(p.toString()),F=N.JSC$7886_queryData_,"SESSION_INDEX"in _.QL&&(F.add("authuser",_.sd("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.QL&&F.add("pageId",_.sd("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.QL&&F.add("sdc",_.sd("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),N.toString()):""};
_.l.isCollapsed=function(p,x){return x!==null?x:this.isChatReplay()||p&&p.conversationBarRenderer&&p.conversationBarRenderer.availabilityMessage?!0:p&&p.liveChatRenderer?p.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!1};
_.l.isHidden=function(p,x,F){var N=x&&x.conversationBarRenderer&&x.conversationBarRenderer.availabilityMessage,h=x&&x.liveChatRenderer&&x.liveChatRenderer.showHideButton,c=x&&x.liveChatRenderer&&x.liveChatRenderer.showButton;return F&&p&&!N&&!c||!F&&p&&!N&&!h?!0:x&&x.liveChatRenderer&&x.liveChatRenderer.initialDisplayState?x.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.l.computeButtonOverride=function(p,x){if(p&&x)return{type:"outline"}};
_.l.setCollapsedState=function(p){_.r(p,_.Plm)&&(this.isHiddenByUser=!!_.r(p,_.Plm).collapsed,!this.isHiddenByUser&&_.S("enable_teaser_framework_web_client")&&_.lA(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.l.forwardReduxActionToIframe=function(p){this.postToContentWindow({"yt-live-chat-forward-redux-action":p})};
_.l.onLoopRangeChange=function(p){this.showAboveScrim=!(p==null||!p.postId)};
_.l.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.l.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.l.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.l.sendDarkThemePostMessage=function(p){this.postToContentWindow({"yt-live-chat-set-dark-theme":p})};
_.l.onLiveChatBuyFlowCallback=function(p){this.postToContentWindow({"yt-live-chat-buy-flow-callback":p})};
_.l.handleKeyboardEvent=function(p){(0,_.Q5.containsValue)(w9b,p.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:p.type,keyCode:p.keyCode}})};
_.l.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.l.postToContentWindow=function(p){if(this.isFrameReady)try{var x=window.location.protocol+"//"+window.location.host,F;(F=this.chatframe)!=null&&F.contentWindow?this.chatframe.contentWindow.postMessage(p,x):_.no(new _.qE("Tried posting a message to an iframe with no content window",p))}catch(N){_.zj(N)}};
_.l.shouldHideChatFrame=function(p){return p&&_.S("hide_live_chat_button_when_collapsed")};
_.R8.Object.defineProperties(LXe.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.S("live_chat_overflow_hide_chat")||_.S("web_watch_chat_hide_button_killswitch"))return _.S("live_chat_overflow_hide_chat");var p,x,F,N;return!!((p=this.data)==null?0:(x=p.liveChatRenderer)==null?0:(F=x.header)==null?0:(N=F.liveChatHeaderRenderer)==null?0:N.collapseButton)}}});
var Ej=LXe;Ej.prototype.collapsedChanged=Ej.prototype.collapsedChanged;Ej.prototype.urlChanged=Ej.prototype.urlChanged;Ej.prototype.dataChanged=Ej.prototype.dataChanged;Ej.prototype.onShowHideChat=Ej.prototype.onShowHideChat;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Ej.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ej.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Ej.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.oz.YtPlayerListenerBehavior),_.k("design:type",_.O7)],Ej.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.u(_.FU.YtOpenPopupBehavior),_.k("design:type",Object)],Ej.prototype,"ytOpenPopupBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ej.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Ej.prototype,"currentPageUrl",void 0);
_.B([_.H({computed:"computeBaseUrl(currentPageUrl,data)"}),_.k("design:type",Object)],Ej.prototype,"baseUrl",void 0);_.B([_.H({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.k("design:type",String)],Ej.prototype,"url",void 0);_.B([_.H(),_.k("design:type",Object)],Ej.prototype,"isHiddenByUser",void 0);_.B([_.H({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.k("design:type",Object)],Ej.prototype,"hidden",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.k("design:type",Boolean)],Ej.prototype,"collapsed",void 0);_.B([_.H({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.k("design:type",Boolean)],Ej.prototype,"hideChatFrame",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ej.prototype,"showAboveScrim",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ej.prototype,"watchNextGrid",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ej.prototype,"modernButtons",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ej.prototype,"roundedContainer",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ej.prototype,"noBorder",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ej.prototype,"roundBackground",void 0);
_.B([_.H({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.k("design:type",Object)],Ej.prototype,"toggleButtonOverride",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ej.prototype,"overflowHideChat",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ej.prototype,"forceDarkTheme",void 0);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ej.prototype,"enableShowWithoutHideChatButton",null);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ej.prototype,"theaterWatchWhile",void 0);_.B([_.Ff("#chatframe"),_.k("design:type",HTMLIFrameElement)],Ej.prototype,"chatframe",void 0);_.B([_.V("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ej.prototype,"onShowHideChat",null);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ej.prototype,"dataChanged",null);
_.B([_.W("url"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ej.prototype,"urlChanged",null);_.B([_.W("collapsed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ej.prototype,"collapsedChanged",null);Ej=_.B([_.L({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Ej);
_.P(Ej,"ytd-live-chat-frame",function(){if(jGz!==void 0)return jGz;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return jGz=p},{mode:1});var PIM;var Xk=function(){var p=_.m.apply(this,arguments)||this;p.modern=_.S("web_modern_buttons");p.buttonOverrides={style:"call-to-action",type:"filled"};return p};
_.E(Xk,_.m);Xk.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=_.gX(this.data.backgroundColor)))};
Xk.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var p=this.getFormattedStringLoggingDirectives(this.data.headline);p&&this.rendererBehavior.logExplicitClick(p)}};
Xk.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var p=this.getFormattedStringLoggingDirectives(this.data.description);p&&this.rendererBehavior.logExplicitClick(p)}};
Xk.prototype.getFormattedStringLoggingDirectives=function(p){return p&&p.runs&&p.runs.length>0&&p.runs[0]&&p.runs[0].loggingDirectives?p.runs[0].loggingDirectives:null};
var gN=Xk;gN.prototype.dataChanged=gN.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],gN.prototype,"rendererBehavior",void 0);_.B([_.u(dc6.YtMacroReplacementBehavior),_.k("design:type",Object)],gN.prototype,"macroReplacementBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],gN.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],gN.prototype,"navigationEndpoint",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],gN.prototype,"enableColors",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],gN.prototype,"modern",void 0);_.B([_.H(),_.k("design:type",Object)],gN.prototype,"buttonOverrides",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gN.prototype,"dataChanged",null);gN=_.B([_.L({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],gN);
_.P(gN,"ytd-action-basic-immersive-content-renderer",function(){if(PIM!==void 0)return PIM;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return PIM=p},{mode:1});var Tvg;var Bv6;var RWe=function(){return _.m.apply(this,arguments)||this};
_.E(RWe,_.m);RWe.prototype.dataChanged=function(){var p;((p=this.data)==null?void 0:p.backgroundColor)!==void 0&&_.eV(this.hostElement,{"--bgu-color":_.gX(this.data.backgroundColor)})};
RWe.prototype.onImageTileClick=function(){var p;((p=this.data)==null?0:p.navigationEndpoint)&&_.hG(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var x;((x=this.data)==null?0:x.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.R8.Object.defineProperties(RWe.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var p;if(((p=this.data)==null?void 0:p.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 p;return((p=this.data)==null?void 0:p.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var p,x,F;if(((p=this.data)==null?void 0:(x=p.detailsLine)==null?void 0:x.texts)!=null&&((F=this.data)==null?void 0:F.detailsLine.texts.length)>0){var N;return(N=this.data)==null?void 0:N.detailsLine.texts.map(function(h){return h.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var p,x,F;if(((p=this.data)==null?void 0:(x=p.optionalDetailsLine)==null?void 0:x.texts)!=null&&((F=this.data)==null?void 0:F.optionalDetailsLine.texts.length)>0){var N;return(N=this.data)==null?void 0:N.optionalDetailsLine.texts.map(function(h){return h.text}).join("")}return null}}});
var QD=RWe;QD.prototype.dataChanged=QD.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],QD.prototype,"rendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],QD.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],QD.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("data.backgroundColor"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],QD.prototype,"hasBackgroundColor",null);
_.B([_.w("data.objectFit"),_.k("design:type",Object),_.k("design:paramtypes",[])],QD.prototype,"getObjectFit",null);_.B([_.H({reflectToAttribute:!0}),_.w("data.tileRenderingStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],QD.prototype,"hasTileMetadata",null);_.B([_.w("data.detailsLine"),_.k("design:type",Object),_.k("design:paramtypes",[])],QD.prototype,"getSecondaryDetails",null);
_.B([_.w("data.optionalDetailsLine"),_.k("design:type",Object),_.k("design:paramtypes",[])],QD.prototype,"getOptionalDetails",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],QD.prototype,"dataChanged",null);QD=_.B([_.L({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],QD);
_.P(QD,"ytd-image-tile-renderer",function(){if(Bv6!==void 0)return Bv6;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Bv6=p},{mode:1});var k4E;var Uco=function(){return _.m.apply(this,arguments)||this};
_.E(Uco,_.m);Uco.prototype.getOpenLinkIcon=function(){return _.S("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
Uco.prototype.onSitelinkTap=function(){_.hG(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.S("kevlar_command_handler_migration_killswitch"))_.Kc(this.hostElement,this.data.clickCommands,this.hostElement);else for(var p=_.a(this.data.clickCommands),x=p.next();!x.done;x=p.next())this.ytComponentBehavior.resolveCommand(x.value)};
var ze=Uco;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],ze.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ze.prototype,"rendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ze.prototype,"data",void 0);ze=_.B([_.L({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],ze);
_.P(ze,"ytd-sitelink-renderer",function(){if(k4E!==void 0)return k4E;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return k4E=p},{mode:1});var sj=function(){var p=_.m.apply(this,arguments)||this;p.paddingFix=_.S("enable_ads_web_ep_buenos_aires_and_padding_fix");return p};
_.E(sj,_.m);sj.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"}}}};
sj.prototype.dataChanged=function(){var p=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(x){x.clickTrackingParams&&delete x.clickTrackingParams;p.ytMacroReplacementBehavior.sendServiceRequestAction([x])})};
sj.prototype.shouldHideFooter=function(p){return!(p&&_.S("use_ads_engagement_panel_desktop_footer_cta"))};
_.R8.Object.defineProperties(sj.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.data)==null?void 0:p.imageTileRenderers)===void 0||((x=this.data)==null?void 0:x.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(F){var N;return(N=_.r(F,VPP))==null?void 0:N.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.data)==null?void 0:p.imageTileRenderers)===void 0||((x=this.data)==null?void 0:x.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(F){var N;return((N=_.r(F,VPP))==null?void 0:N.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
var nj=sj;nj.prototype.dataChanged=nj.prototype.dataChanged;_.B([_.u(dc6.YtMacroReplacementBehavior),_.k("design:type",Object)],nj.prototype,"ytMacroReplacementBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],nj.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],nj.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],nj.prototype,"paddingFix",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("data.imageTileRenderers"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nj.prototype,"removeBorderFromImageTiles",null);_.B([_.H({reflectToAttribute:!0}),_.w("data.imageTileRenderers"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nj.prototype,"useFooteredMetadataRenderingStyle",null);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nj.prototype,"dataChanged",null);nj=_.B([_.L({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],nj);
_.P(nj,"ytd-action-engagement-panel-content-renderer",function(){if(Tvg!==void 0)return Tvg;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Tvg=p},{mode:1});var iHo;var I0P=_.mO(function(p){var x=p.data;var F=p.customCommandResolver;p=_.oc();_.B2(p,function(){return x().interaction},F);
_.U$(p,{visibilityCallback:function(N){var h,c=(h=x().interaction)==null?void 0:h.onFirstVisible;N&&c&&_.su(c)},
showOption:_.li});return _.Z("ad-grid-card-image-full-metadata-view-model",{class:function(){var N;return((N=x().interaction)==null?0:N.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:p,"aria-label":function(){var N,h;return(N=x().interaction)==null?void 0:(h=N.accessibility)==null?void 0:h.label}},_.Z("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.Z(_.Es,{data:function(){return x().adImage}},{adImageViewModel:function(N){return _.Z(_.tj,{data:N.data,
customCommandResolver:F})}})),_.Z("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.Z(_.D9,{cond:function(){return x().headline},
then:function(N){return _.Z(_.KQ,{text:N,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.Z(_.D9,{cond:function(){return x().detailsLine},
then:function(N){return _.Z("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.Z(_.Es,{data:N},{adDetailsLineViewModel:function(h){return _.Z(_.KS,{data:h.data,customCommandResolver:F,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.Z(_.D9,{cond:function(){return x().secondaryDetailsLine},
then:function(N){return _.Z("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.Z(_.Es,{data:N},{adDetailsLineViewModel:function(h){return _.Z(_.KS,{data:h.data,customCommandResolver:F,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Lh");var $cg=_.mO(function(p){var x=p.data;var F=p.customCommandResolver;p=_.oc();_.B2(p,function(){return x().interaction},F);
_.U$(p,{visibilityCallback:function(N){var h,c=(h=x().interaction)==null?void 0:h.onFirstVisible;N&&c&&_.su(c)},
showOption:_.li});return _.Z("ad-grid-card-image-view-model",{class:function(){var N;return((N=x().interaction)==null?0:N.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:p,"aria-label":function(){var N,h;return(N=x().interaction)==null?void 0:(h=N.accessibility)==null?void 0:h.label}},_.Z(_.Es,{data:function(){return x().adImage}},{adImageViewModel:function(N){return _.Z(_.tj,{data:N.data,
customCommandResolver:F})}}),_.Z("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.Z(_.Es,{data:function(){return x().adCardBadge}},{adCardBadgeViewModel:_.Hhv})))},"Mh");var eWU=_.mO(function(p){var x=p.data;var F=p.customCommandResolver;p=_.oc();_.B2(p,function(){return x().interaction},F);
_.U$(p,{visibilityCallback:function(N){var h,c=(h=x().interaction)==null?void 0:h.onFirstVisible;N&&c&&_.su(c)},
showOption:_.li});return _.Z("ad-grid-card-text-view-model",{class:function(){var N;return((N=x().interaction)==null?0:N.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:p,"aria-label":function(){var N,h;return(N=x().interaction)==null?void 0:(h=N.accessibility)==null?void 0:h.label}},_.Z("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.Z(_.D9,{cond:function(){return x().title},
then:function(N){return _.Z(_.KQ,{text:N,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.Z("div",{class:function(){return _.S("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.Z(_.ft,{each:function(){var N;
return((N=x())==null?void 0:N.descriptions)||[]},
keyBy:"INDEX"},function(N){return _.Z(_.KQ,{text:N,className:function(){return _.S("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.Z("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.Z(_.Es,{data:function(){return x().moreInfoButton}},{adButtonViewModel:function(N){return _.Z(_.aK,{data:N.data,
customCommandResolver:F})}})))},"Nh");var peP=_.mO(function(p){var x=p.data;var F=p.customCommandResolver;var N=p.adGridCardCollectionStyle;p=_.oc();_.U$(p,{visibilityCallback:function(h){var c,M=(c=x().interaction)==null?void 0:c.onFirstVisible;h&&M&&_.su(M)},
showOption:_.li});return _.Z("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:p,style:function(){return"grid-template-columns: repeat("+H8e(N?N():x().style)+", minmax(0, 1fr));"}},_.Z(_.Es,{data:function(){var h;
return(h=x())==null?void 0:h.gridCards}},{adGridCardImageViewModel:function(h){return _.Z($cg,{data:h.data,
customCommandResolver:F})},
adGridCardImageFullMetadataViewModel:function(h){return _.Z(I0P,{data:h.data,customCommandResolver:F})},
adGridCardTextViewModel:function(h){return _.Z(eWU,{data:h.data,customCommandResolver:F})}}))},"Oh");_.o7(_.mO(function(p){var x=p.data;p=_.oc();_.B2(p,function(){return x().interaction},o_K);
_.U$(p,{visibilityCallback:function(F){var N,h=(N=x().interaction)==null?void 0:N.onFirstVisible;F&&h&&_.su(h)},
showOption:_.li});return _.Z("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:p},_.Z("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.Z(_.D9,{cond:_.Rpp("(min-width: "+((0,_.zQ)()+_.oH)+"px)"),then:function(){return _.Z(_.Es,{data:function(){return x().adGridCardCollection}},{adGridCardCollectionViewModel:function(F){return _.Z(peP,{data:F.data,
customCommandResolver:o_K})}})},
else:function(){return _.Z(_.Es,{data:function(){return x().adGridCardCollection}},{adGridCardCollectionViewModel:function(F){return _.Z(peP,{data:F.data,
customCommandResolver:o_K,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.Z("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.Z(_.Es,{data:function(){return x().adButton}},{adButtonViewModel:function(F){return _.Z(_.aK,{data:F.data,
customCommandResolver:o_K})}})))},"Ph"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.G2}});_.o7(_.mO(function(p){var x=p.data;p=_.oc();_.B2(p,function(){return x().interaction},O85);
_.U$(p,{visibilityCallback:function(F){var N,h=(N=x().interaction)==null?void 0:N.onFirstVisible;F&&h&&_.su(h)},
showOption:_.li});return _.Z("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:p},_.Z("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.Z(_.Es,{data:function(){if(_.Rpp("(min-width: "+((0,_.zQ)()+_.oH)+"px)")())var F=x().adGridCardCollection;else{F=Object.assign({},_.r(x().adGridCardCollection,WAl));var N;F.gridCards!==void 0&&((N=F.gridCards)==null?void 0:N.length)>1?F.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":F.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";F={adGridCardCollectionViewModel:F}}return F}},{adGridCardCollectionViewModel:function(F){return _.Z(peP,{data:F.data,
customCommandResolver:O85})}})),_.Z("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.Z(_.Es,{data:function(){return x().adButton}},{adButtonViewModel:function(F){return _.Z(_.aK,{data:F.data,
customCommandResolver:O85})}})))},"Qh"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.G2}});var xGb=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return p};
_.E(xGb,_.m);_.l=xGb.prototype;_.l.configureRendererStamper=function(){return{"data.contentRenderer":{id:"content",mapping:{actionEngagementPanelContentRenderer:"ytd-action-engagement-panel-content-renderer",basicImmersiveEngagementPanelContentRenderer:"ytd-action-basic-immersive-content-renderer",panelTextIconImageTilesButtonLayoutContentViewModel:"panel-text-icon-image-tiles-button-layout-content-view-model",panelTextIconTextGridCardsSubLayoutContentViewModel:"panel-text-icon-text-grid-cards-sub-layout-content-view-model"}}}};
_.l.attached=function(){this.getDataFromPlayerAndRender()};
_.l.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.l.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.l.getDataFromPlayerAndRender=function(){var p=this,x=_.Pt(this.hostElement);x&&x.getPlayerPromise().then(function(F){p.getCachedDataAndListen(F)})};
_.l.getCachedDataAndListen=function(p){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(p,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(p,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=p)};
_.l.resolveCachedActions=function(){var p=_.A9("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(p=p&&p())&&!_.Q5.isEmpty(p)&&this.sendUpdateEngagementPanelAction(p);(p=(p=_.A9("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&p())&&!_.Q5.isEmpty(p)&&this.sendChangeEngagementPanelVisibilityAction(p);(p=(p=_.A9("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&p())&&!_.Q5.isEmpty(p)&&this.sendScrollToEngagementPanelCommand(p)};
_.l.sendUpdateEngagementPanelAction=function(p){var x;_.lA(this.hostElement,"yt-update-engagement-panel-action",[(x=_.Q5.get(p,"action"))!=null?x:p])};
_.l.sendChangeEngagementPanelVisibilityAction=function(p){_.lA(this.hostElement,"yt-change-engagement-panel-visibility-action",[p])};
_.l.sendScrollToEngagementPanelCommand=function(p){_.lA(this.hostElement,"yt-scroll-to-engagement-panel-command",[p])};
_.l.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.S("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.no(Error("em"))};
var yD=xGb;yD.prototype.dataChanged=yD.prototype.dataChanged;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],yD.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],yD.prototype,"componentBehavior",void 0);_.B([_.u(_.oz.YtPlayerListenerBehavior),_.k("design:type",_.O7)],yD.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],yD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],yD.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],yD.prototype,"player",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yD.prototype,"dataChanged",null);yD=_.B([_.L({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],yD);
_.P(yD,"ytd-ads-engagement-panel-content-renderer",function(){if(iHo!==void 0)return iHo;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);
return iHo=p},{mode:1});var FVP;var Nxg=function(){var p=_.m.apply(this,arguments)||this;p.player=null;p.JSC$19770_playerEvents=new Map;p.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return p};
_.E(Nxg,_.m);_.l=Nxg.prototype;_.l.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer",commentActionButtonsRenderer:{component:"ytd-comment-action-buttons-renderer",properties:{voteCount:"[[voteCount]]"}}}}}};
_.l.created=function(){this.player=null;this.JSC$19770_playerEvents=new Map;this.JSC$19770_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19770_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19770_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19770_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.l.attached=function(){var p=this,x=_.Pt();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));x&&x.getPlayerPromise().then(function(F){p.setPlayer(F);p.set("isPageLoad",!1)})};
_.l.setPlayer=function(p){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19770_playerEvents);this.set("player",p);p&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(p,this.JSC$19770_playerEvents),p.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.l.onLoopRangeChange=function(p){var x=_.J().resolve(_.Bw(_.j3));if((!x||x.isOnWatch())&&this.hostElement.clientHeight){var F;!p&&((F=this.data)==null?0:F.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.l.onVideoProgress=function(p){var x,F,N=((x=this.player)==null?void 0:(F=x.getPresentingPlayerType)==null?void 0:F.call(x))===2;this.isAdPlaying!==N&&this.set("isAdPlaying",N);var h;if(!N&&(h=this.player)!=null&&h.getLoopRange()){F=this.player.getLoopRange();x=F.startTimeMs;F=F.endTimeMs;N=this.player.getProgressState(1).seekableStart;var c;x<N*1E3&&((c=this.data)==null?0:c.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
p=F<p*1E3;var M;((M=this.player)==null?0:M.getLoopRange())&&p&&this.player.seekTo(x/1E3)}};
_.l.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.l.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.l.onYtDeleteClipEngagementPanelCommand=function(p){_.r(p,$Ml).command&&this.ytComponentBehavior.resolveCommand(_.r(p,$Ml).command)};
_.R8.Object.defineProperties(Nxg.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.voteCount)||_.L1("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
var bj=Nxg;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],bj.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],bj.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],bj.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.oz.YtPlayerListenerBehavior),_.k("design:type",_.O7)],bj.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],bj.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],bj.prototype,"isAdPlaying",void 0);_.B([_.H({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],bj.prototype,"isPageLoad",void 0);_.B([_.H({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],bj.prototype,"isDarkTheme",void 0);
_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],bj.prototype,"voteCount",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],bj.prototype,"channelEndpoint",null);_.B([_.w("channelEndpoint"),_.k("design:type",Object),_.k("design:paramtypes",[])],bj.prototype,"channelHref",null);bj=_.B([_.L({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],bj);
_.P(bj,"ytd-clip-attribution-renderer",function(){if(FVP!==void 0)return FVP;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return FVP=p},{mode:1});var hKe;var lJE=function(){var p=_.m.apply(this,arguments)||this;p.player=null;p.JSC$19775_playerEvents=new Map;return p};
_.E(lJE,_.m);_.l=lJE.prototype;_.l.created=function(){this.player=null;this.JSC$19775_playerEvents=new Map;this.JSC$19775_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19775_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19775_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.l.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.l.attached=function(){var p=this,x=_.Pt();x&&x.getPlayerPromise().then(function(F){p.setPlayer(F);p.set("isPageLoad",!1)})};
_.l.setPlayer=function(p){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19775_playerEvents);this.set("player",p);if(p){this.ytPlayerListenerBehavior.listenToPlayerEvents(p,this.JSC$19775_playerEvents);var x;(p==null?void 0:(x=p.getPresentingPlayerType)==null?void 0:x.call(p))===2&&this.playerAdStartHandler()}};
_.l.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.l.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.l.onVideoProgress=function(){var p,x,F=((p=this.player)==null?void 0:(x=p.getPresentingPlayerType)==null?void 0:x.call(p))===2;this.isAdPlaying!==F&&this.set("isAdPlaying",F)};
var AU=lJE;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],AU.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],AU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.oz.YtPlayerListenerBehavior),_.k("design:type",_.O7)],AU.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],AU.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],AU.prototype,"isAdPlaying",void 0);_.B([_.H({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],AU.prototype,"isPageLoad",void 0);AU=_.B([_.L({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],AU);
_.P(AU,"ytd-clip-section-footer-renderer",function(){if(hKe!==void 0)return hKe;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return hKe=p},{mode:1});var cug;var aJU;var MOM=function(){return _.m.apply(this,arguments)||this};
_.E(MOM,_.m);var DGA=MOM;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],DGA.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],DGA.prototype,"data",void 0);DGA=_.B([_.L({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],DGA);
_.P(DGA,"ytd-clip-ad-state-renderer",function(){if(aJU!==void 0)return aJU;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return aJU=p},{mode:1});var fJP;var KVb=function(){var p=_.m.apply(this,arguments)||this;p.value="";p.valid=!1;p.userChangedValue=!1;p.disabled=!1;p.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return p};
_.E(KVb,_.m);_.l=KVb.prototype;_.l.detached=function(){this.userChangedValue=!1};
_.l.handleKeyDown=function(p){if(_.Dr)var x=13;else _.EXw&&_.fT?x=13:x=13;p.keyCode===x&&p.preventDefault()};
_.l.handleInput=function(){var p=_.n(this.hostElement).querySelector("#title");if(p){var x=(p.value||"").replace(/\r|\n/g," ");this.set("value",x);p.value=x;this.valid=p.validate();this.userChangedValue=!0}};
_.l.handleBlur=function(){this.valid=_.n(this.hostElement).querySelector("#title").validate()};
_.l.onValueChanged=function(){_.hG(this.hostElement,"title-changed",{title:this.value})};
_.l.onValidChanged=function(){_.hG(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.l.setInput=function(p,x){var F=_.n(this.hostElement).querySelector("#title");F&&(F.value=p,this.handleInput(),x&&(F.invalid=!1,this.valid=!0))};
_.l.onClipCreationDisable=function(){this.set("disabled",!0)};
_.l.onClipCreationEnable=function(){this.set("disabled",!1)};
_.l.onClipCreationVisibilityChange=function(p){var x=this;p.visible?requestAnimationFrame(function(){var F;((F=_.n(x.hostElement).querySelector("#title"))==null?void 0:F.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
var uj=KVb;uj.prototype.onValidChanged=uj.prototype.onValidChanged;uj.prototype.onValueChanged=uj.prototype.onValueChanged;uj.prototype.handleBlur=uj.prototype.handleBlur;uj.prototype.handleInput=uj.prototype.handleInput;uj.prototype.handleKeyDown=uj.prototype.handleKeyDown;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],uj.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],uj.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],uj.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],uj.prototype,"value",void 0);_.B([_.H(),_.k("design:type",Object)],uj.prototype,"valid",void 0);_.B([_.H(),_.k("design:type",Object)],uj.prototype,"userChangedValue",void 0);_.B([_.H(),_.k("design:type",Object)],uj.prototype,"disabled",void 0);_.B([_.V("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent]),_.k("design:returntype")],uj.prototype,"handleKeyDown",null);
_.B([_.V("input"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uj.prototype,"handleInput",null);_.B([_.V("blur"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uj.prototype,"handleBlur",null);_.B([_.W("value"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uj.prototype,"onValueChanged",null);
_.B([_.W("valid"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uj.prototype,"onValidChanged",null);uj=_.B([_.L({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],uj);
_.P(uj,"ytd-clip-creation-text-input-renderer",function(){if(fJP!==void 0)return fJP;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return fJP=p},{mode:1});var q_E;var ZnM;var tOz;var dG6;var vdl;var Jug=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};p.pendingStoryboardImages_={};p.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];p.tickLabelInterval=30;p.mediumTickInterval=5;p.largeTickInterval=15;p.aboveRulerHeight=32;p.rulerHeight=50;p.smallTickHeight=4;p.mediumTickHeight=8;p.largeTickHeight=16;p.mediaListeners_=
{};return p};
_.E(Jug,_.m);_.l=Jug.prototype;_.l.attached=function(){var p=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(x){x=_.a(["screen and (min-resolution: "+x+")","screen and (max-resolution: "+x+")"]);for(var F=x.next();!F.done;F=x.next()){F=F.value;var N=window.matchMedia(F);N&&(p.mediaListeners_[F]=p.updatePixelRatio_.bind(p),N.addEventListener?N.addEventListener("change",p.mediaListeners_[F]):N.addListener?N.addListener(p.mediaListeners_[F]):delete p.mediaListeners_[F])}})};
_.l.detached=function(){this.setPlayer(null);for(var p=_.a(Object.keys(this.mediaListeners_)),x=p.next();!x.done;x=p.next()){var F=x.value;x=this.mediaListeners_[F];(F=window.matchMedia(F))&&(F.removeEventListener?F.removeEventListener("change",x):F.removeListener&&F.removeListener(x))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.l.onVisibilityChangedAction_=function(p){var x=this;p.visible&&!this.player_&&(p=_.Pt())&&p.getPlayerPromise().then(function(F){x.setPlayer(F)})};
_.l.setPlayer=function(p){p&&this.set("player_",p)};
_.l.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.l.setUpCanvas_=function(){var p=this.rulerWidth,x=this.devicePixelRatio_,F=this.visible;this.set("canvasReady_",!1);if(F&&x!==0){F=this.aboveRulerHeight+this.rulerHeight;var N=_.n(this.hostElement).querySelector("#ticks");N.width=p*x;N.height=F*x;N.style.width=p+"px";N.style.height=F+"px";N.getContext("2d").scale(x,x);this.set("canvasReady_",!0)}};
_.l.drawRuler_=function(p,x,F,N,h,c,M,f,K,t,d,v){p&&F&&x&&(p=_.n(this.hostElement).querySelector("#ticks"),x=p.getContext("2d"),x.clearRect(0,0,p.width,p.height),x.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),x.lineWidth=2,x.beginPath(),x.moveTo(0,this.aboveRulerHeight),x.lineTo(p.width,this.aboveRulerHeight),x.moveTo(0,p.height),x.lineTo(p.width,p.height),x.stroke(),this.drawRulerTicks_(p,c,h,N),this.drawStoryboardImages_(p,F,c,h,N),x.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
x.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(M-c,N,!1),this.rulerHeight),F=this.timeToPixels_(f-c,N,!1),x.fillRect(F,this.aboveRulerHeight,p.width-F,this.rulerHeight),this.drawSpeedLines_(p,c,v))};
_.l.drawRulerTicks_=function(p,x,F,N){var h=p.getContext("2d");h.save();h.lineWidth=1;for(var c=Math.floor(Math.max(0,x-this.tickLabelInterval));c<x+F;c++){h.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var M=(c-x)*N;h.beginPath();h.moveTo(M,p.height);var f=this.smallTickHeight;c%this.largeTickInterval===0?f=this.largeTickHeight:c%this.mediumTickInterval===0&&(f=this.mediumTickHeight);h.lineTo(M,p.height-f);h.stroke();c%this.tickLabelInterval===0&&(h.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),h.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),h.fillText(V4(c),M+4,12),h.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),h.moveTo(M,0),h.lineTo(M,this.aboveRulerHeight),h.stroke())}h.restore()};
_.l.percentToHex_=function(p){p=Math.round(p*255).toString(16);p.length<2&&(p="0"+p);return p};
_.l.drawSpeedLines_=function(p,x,F){var N=p.getContext("2d");N.save();var h=Math.min(25,Math.abs(F)-15)/25,c=p.width*.3*h,M=p.width*-.3,f=p.width*1.3,K=this.aboveRulerHeight;p=p.height;var t=Math.round(4*h),d=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");d.length<7&&(d="#"+d.substring(1,4).repeat(2));var v=this.percentToHex_(.5+h/2);v=d+v;d+="00";if(h>0)for(h=0;h<t;h++){var C=M+Math.random()*(f-M),X=K+Math.random()*(p-K),Q=c+x%c,b=N.createLinearGradient(C,X,C+Q,X);
F<0?(b.addColorStop(0,v),b.addColorStop(.4,v),b.addColorStop(.9,d)):(b.addColorStop(.1,d),b.addColorStop(.6,v),b.addColorStop(1,v));N.strokeStyle=b;N.lineWidth=1;N.beginPath();N.moveTo(C,X);N.lineTo(C+Q,X);N.stroke()}N.restore()};
_.l.getStoryboardForTime_=function(p,x,F){F===void 0&&(F=x.getNumberOfStoryboardLevels()-1);p=x.getStoryboardFrameIndex(p,F);return x.getStoryboardFrame(p,F)};
_.l.drawStoryboardImages_=function(p,x,F,N,h){if(!this.disabled){p=p.getContext("2d");var c=this.getStoryboardForTime_(0,x);if(c){var M=c.width/c.columns;c=c.height/c.rows;var f=M/c,K=this.rulerHeight*f;K=this.tickLabelInterval*(f<this.tickLabelInterval*h/this.rulerHeight?1/Math.floor(this.tickLabelInterval*h/K):Math.round(K/(this.tickLabelInterval*h)));var t=K*h,d=this.rulerHeight,v=t/this.rulerHeight,C=Math.floor(Math.max(0,F-K));for(C-=C%K;C<F+N;C+=K){var X=this.getStoryboardForTime_(C,x),Q=this.getPreloadedStoryboard_(X.url);
if(Q){var b=(C-F)*h,A=this.aboveRulerHeight,Y=X.column*M,O=X.row*c;if(f<v){var Fw=d/(t/f);X=M;Fw*=c;O+=(c-Fw)/2}else X=t/(d*f)*M,Fw=c,Y+=(M-X)/2;p.drawImage(Q,Y,O,X,Fw,b,A,t,d)}else this.fetchStoryboardImage_(X)}}}};
_.l.getPreloadedStoryboard_=function(p){return this.storyboardImages_.find(function(x){if(x.src==p)return!0;var F=x.src.indexOf(p);return F!=-1&&F==x.src.length-p.length})};
_.l.fetchStoryboardImage_=function(p){var x=this,F=this.getPreloadedStoryboard_(p.url),N=this.pendingStoryboardImages_[p.url];F||N!==void 0||(F=new Promise(function(h){var c=new Image(p.width,p.height);c.src=p.url;c.onload=function(){h(c)};
c.onerror=function(){h(null)}}),this.pendingStoryboardImages_[p.url]=F,F.then(function(h){h&&x.push("storyboardImages_",h);
return h}).finally(function(){delete x.pendingStoryboardImages_[p.url]}))};
_.l.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.l.timeToPixels_=function(p,x,F){p*=x;return F===void 0||F?p+"px":p};
_.l.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
var YX=Jug;YX.prototype.drawRuler_=YX.prototype.drawRuler_;YX.prototype.setUpCanvas_=YX.prototype.setUpCanvas_;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],YX.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],YX.prototype,"ytRendererBehavior",void 0);_.B([_.H({value:0}),_.k("design:type",Number)],YX.prototype,"start",void 0);_.B([_.H({value:30}),_.k("design:type",Number)],YX.prototype,"end",void 0);
_.B([_.H({value:!1}),_.k("design:type",Boolean)],YX.prototype,"visible",void 0);_.B([_.H(),_.k("design:type",Object)],YX.prototype,"player_",void 0);_.B([_.H(),_.k("design:type",Number)],YX.prototype,"tickSpacing",void 0);_.B([_.H(),_.k("design:type",Number)],YX.prototype,"windowSizeSec",void 0);_.B([_.H({value:0}),_.k("design:type",Number)],YX.prototype,"rulerWidth",void 0);_.B([_.H({value:0}),_.k("design:type",Number)],YX.prototype,"rulerShift",void 0);
_.B([_.H({value:!1}),_.k("design:type",Boolean)],YX.prototype,"canvasReady_",void 0);_.B([_.H({value:function(){return[]}}),
_.k("design:type",Array)],YX.prototype,"storyboardImages_",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],YX.prototype,"disabled",void 0);_.B([_.H({value:0}),_.k("design:type",Number)],YX.prototype,"forceRender_",void 0);_.B([_.H({value:1}),_.k("design:type",Number)],YX.prototype,"devicePixelRatio_",void 0);_.B([_.H({value:0}),_.k("design:type",Number)],YX.prototype,"windowSpeed",void 0);
_.B([_.W("visible","devicePixelRatio_","rulerWidth"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],YX.prototype,"setUpCanvas_",null);
_.B([_.W("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.k("design:type",Function),_.k("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.k("design:returntype")],YX.prototype,"drawRuler_",null);YX=_.B([_.JZ({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],YX);
_.P(YX,"yt-clip-creation-scrubber-canvas",function(){if(vdl===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);vdl=p}p=vdl;return p},
{mode:2});var CGl;var S_z;var ruM=function(){var p=_.m.apply(this,arguments)||this;p.start=0;p.end=30;p.visible=!1;p.draggingLeft_=!1;p.draggingRight_=!1;p.draggingRuler_=!1;p.draggingWindow_=!1;p.seekableStart=0;p.seekableEnd=0;p.rulerWidth_=0;p.rulerShift_=0;p.windowSlideSpeed=0;p.disabled=!1;p.initialized=!1;p.durationAccessibilityLabel="";p.activeLoopRange_=!1;p.rulerDragMouseStart_=0;p.rulerDragRulerStart_=0;p.rulerDragStartTime_=0;p.rulerDragEndTime_=0;p.dragMouseLastX_=0;p.scrollInterval_=null;p.scrubberVe_=null;p.boundHandlers_=
{};p.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return p};
_.E(ruM,_.m);_.l=ruM.prototype;
_.l.created=function(){var p=this;this.JSC$19788_playerEvents=new Map;this.JSC$19788_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19788_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19788_playerEvents.set("onStateChange",this.onStateChange_);var x={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(x).forEach(function(F){p.boundHandlers_[F]=x[F].bind(p)})};
_.l.attached=function(){this.activeLoopRange_=!1;_.n(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.n(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.vt(156731)};
_.l.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.n(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.n(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.l.onVisibilityChangedAction_=function(p){var x=this;p.visible&&!this.player_&&(p=_.Pt())&&p.getPlayerPromise().then(function(F){x.setPlayer(F)})};
_.l.setPlayer=function(p){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19788_playerEvents);p&&(this.set("player_",p),this.ytPlayerListenerBehavior.listenToPlayerEvents(p,this.JSC$19788_playerEvents))};
_.l.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.l.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.l.beginHandleDrag_=function(p){this.disabled||(p.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=p.clientX,p.target===_.n(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():p.target===_.n(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.l.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.l.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.l.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.l.beginRulerDrag_=function(p){this.disabled||(p.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=p.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.l.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.l.beginWindowScroll_=function(){var p=this;this.scrollInterval_=setInterval(function(){var x=p.windowSlideSpeed;if(x=_.OpM(p.start,p.boundedRulerStartLimit_())?x-.1:_.OpM(p.end,p.boundedRulerEndLimit_())?x+.1:0){var F=p.capRulerOffset_(p.rulerShift_+x);F==p.rulerShift_?x=0:(p.set("rulerShift_",F),_.hG(p.hostElement,"set-fixed-length-range",{start:p.start+x,duration:p.end-p.start}))}p.set("windowSlideSpeed",x)},33)};
_.l.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.l.endDrag_=function(){this.logClick();var p=void 0;this.draggingRight_?p=this.end-1:this.draggingLeft_&&(p=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,p);this.removeMouseEventHandlers_();this.rulerShift_+this.windowSizeSec_<this.end+this.pixelsToTime_(16)&&this.set("rulerShift_",this.end-this.windowSizeSec_+this.pixelsToTime_(16));
this.rulerShift_>this.start-this.pixelsToTime_(16)&&this.set("rulerShift_",this.start-this.pixelsToTime_(16))};
_.l.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.l.updateRulerSize_=function(){this.set("rulerWidth_",_.n(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.l.handleMouseDrag_=function(p){p.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(p):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(p):this.draggingWindow_&&this.handleWindowDrag_(p))};
_.l.handleRulerDrag_=function(p){p=this.pixelsToTime_(p.clientX-this.rulerDragMouseStart_);p=this.capRulerOffset_(this.rulerDragRulerStart_-p);this.set("rulerShift_",p);var x=this.rulerDragStartTime_-(this.rulerDragRulerStart_-p);_.hG(this.hostElement,"set-fixed-length-range",{start:x,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-p)-x})};
_.l.handleWindowDrag_=function(p){var x=p.clientX-this.dragMouseLastX_;this.dragMouseLastX_=p.clientX;p=this.pixelsToTime_(x);_.hG(this.hostElement,"set-fixed-length-range",{start:this.start+p,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.l.capRulerOffset_=function(p){var x=this.seekableStart-this.pixelsToTime_(16),F=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(x,p),F)};
_.l.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.l.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.l.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.l.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.l.handleWindowHandleDrag_=function(p){var x=p.clientX-this.dragMouseLastX_;this.dragMouseLastX_=p.clientX;p=this.pixelsToTime_(x);if(this.draggingLeft_){var F=this.start+p;var N=this.end}else this.draggingRight_&&(F=this.start,N=this.end+p);_.hG(this.hostElement,"set-range",{start:F,end:N,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.l.onVideoProgress_=function(p){this.disabled||(p=this.timeToPixels_(p-this.rulerShift_,this.tickSpacing_),_.n(this.hostElement).querySelector("#playhead").style.transform="translateX("+p+")")};
_.l.onClipCreationDisable_=function(){this.endDrag_()};
_.l.timeToPixels_=function(p,x,F){p*=x;return F===void 0||F?p+"px":p};
_.l.pixelsToTime_=function(p){return p/this.tickSpacing_};
_.l.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.l.centerRuler_=function(p,x,F){this.set("rulerShift_",this.capRulerOffset_(p+(x-p)/2-F/2))};
_.l.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.l.updateLoopRange_=function(p,x,F,N,h,c,M){p&&(x&&N&&!F?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(p.pauseVideo(),p.seekTo(h,!1,void 0,void 0,50)):this.draggingRight_?(p.pauseVideo(),p.seekTo(c-.1,!1,void 0,void 0,50)):(M!==void 0?p.seekTo(M,!0,void 0,void 0,50):(x=p.getCurrentTime(),x<h||x>c?p.seekTo(h,!0,void 0,void 0,50):p.seekTo(x,!0,void 0,void 0,50)),p.playVideo()),p.setLoopRange({startTimeMs:h*1E3,endTimeMs:c*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(p.getCurrentTime())):
this.activeLoopRange_&&(p.setLoopRange(null),this.activeLoopRange_=!1))};
_.l.updateHandles_=function(){_.n(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.n(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.l.updateRuler_=function(){var p=this.end,x=this.start,F=this.draggableStartLimit_(),N=this.draggableEndLimit_();(x<F-.001||p>N+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.l.computeDurationLabel_=function(p,x){return p?p.replace("$clip_length",parseFloat(x).toFixed(1)):""};
_.l.computeDuration_=function(p,x){return this.isValidTime_(p)&&this.isValidTime_(x)&&p<x?x-p:0};
_.l.isValidTime_=function(p){return isNaN(parseFloat(p))||p<0?!1:this.player_?p>=this.seekableStart&&p<=this.seekableEnd:!0};
_.l.computeWindowSizeSec_=function(p,x,F){return Math.min((p||12E4)/1E3,F-x)};
_.l.computeTickSpacing_=function(p,x){return x?x/p:1};
_.l.onDragStateChanged_=function(){_.hG(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.l.centerRangeOnTime_=function(p){var x=this.duration;p=Lm5(p-x/2,x,this.seekableStart,this.seekableEnd);_.hG(this.hostElement,"set-fixed-length-range",{start:p.start,duration:p.end-p.start})};
_.l.nearlyLessThan_=function(p,x,F){return p+(F===void 0?1E-6:F)<x};
_.l.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var p=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(p,this.start)||this.nearlyLessThan_(this.end,p))&&this.centerRangeOnTime_(p)}};
_.l.onStateChange_=function(p){this.visible&&!this.disabled&&p==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.l.computeDragState_=function(p,x,F,N){return p?"left":x?"right":F?"ruler":N?"window":"none"};
_.l.logClick=function(){var p=_.b0(),x=_.yR();p&&x&&this.scrubberVe_&&(_.S("combine_ve_grafts")?_.NJ(_.cl(),this.scrubberVe_,x):_.jz(p,x,this.scrubberVe_),_.B5(p,this.scrubberVe_))};
var wN=ruM;wN.prototype.onDragStateChanged_=wN.prototype.onDragStateChanged_;wN.prototype.updateRuler_=wN.prototype.updateRuler_;wN.prototype.updateHandles_=wN.prototype.updateHandles_;wN.prototype.onUpdateLoopRange=wN.prototype.onUpdateLoopRange;wN.prototype.onInitializedChanged_=wN.prototype.onInitializedChanged_;wN.prototype.onVisibleChanged_=wN.prototype.onVisibleChanged_;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],wN.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.u(_.oz.YtPlayerListenerBehavior),_.k("design:type",Object)],wN.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],wN.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],wN.prototype,"start",void 0);_.B([_.H(),_.k("design:type",Object)],wN.prototype,"end",void 0);_.B([_.H({computed:"computeDuration_(start, end)"}),_.k("design:type",Number)],wN.prototype,"duration",void 0);
_.B([_.H(),_.k("design:type",String)],wN.prototype,"lengthTemplate",void 0);_.B([_.H({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.k("design:type",String)],wN.prototype,"durationLabel",void 0);_.B([_.H(),_.k("design:type",Object)],wN.prototype,"visible",void 0);_.B([_.H(),_.k("design:type",Object)],wN.prototype,"player_",void 0);_.B([_.H(),_.k("design:type",Object)],wN.prototype,"draggingLeft_",void 0);_.B([_.H(),_.k("design:type",Object)],wN.prototype,"draggingRight_",void 0);
_.B([_.H(),_.k("design:type",Object)],wN.prototype,"draggingRuler_",void 0);_.B([_.H({value:!1}),_.k("design:type",Object)],wN.prototype,"draggingWindow_",void 0);_.B([_.H({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.k("design:type",Number)],wN.prototype,"tickSpacing_",void 0);_.B([_.H(),_.k("design:type",Object)],wN.prototype,"seekableStart",void 0);_.B([_.H(),_.k("design:type",Object)],wN.prototype,"seekableEnd",void 0);
_.B([_.H(),_.k("design:type",Number)],wN.prototype,"windowSizeMs",void 0);_.B([_.H({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.k("design:type",Number)],wN.prototype,"windowSizeSec_",void 0);_.B([_.H(),_.k("design:type",Object)],wN.prototype,"rulerWidth_",void 0);_.B([_.H(),_.k("design:type",Object)],wN.prototype,"rulerShift_",void 0);_.B([_.H(),_.k("design:type",Object)],wN.prototype,"windowSlideSpeed",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],wN.prototype,"disabled",void 0);_.B([_.H(),_.k("design:type",Object)],wN.prototype,"initialized",void 0);_.B([_.H(),_.k("design:type",Object)],wN.prototype,"durationAccessibilityLabel",void 0);_.B([_.H({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.k("design:type",String)],wN.prototype,"dragState",void 0);
_.B([_.W("visible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wN.prototype,"onVisibleChanged_",null);_.B([_.W("initialized"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wN.prototype,"onInitializedChanged_",null);_.B([_.W("player_","visible","disabled","initialized","start","end"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wN.prototype,"onUpdateLoopRange",null);
_.B([_.W("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wN.prototype,"updateHandles_",null);_.B([_.W("start","end"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wN.prototype,"updateRuler_",null);
_.B([_.W("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wN.prototype,"onDragStateChanged_",null);wN=_.B([_.JZ({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],wN);
_.P(wN,"yt-clip-creation-scrubber-view",function(){if(S_z===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;CGl===void 0&&(CGl=document.createElement("template"));var N=CGl;F.call(x,N.content.cloneNode(!0),p.content.firstChild);S_z=p}p=S_z;return p},{mode:2});var Edo=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};p.startHighlightTimeout=0;p.endHighlightTimeout=0;return p};
_.E(Edo,_.m);_.l=Edo.prototype;_.l.attached=function(){var p=this;this.startInput.addEventListener("input",function(x){return p.handleStartInput_(x)});
this.endInput.addEventListener("input",function(x){return p.handleEndInput_(x)});
this.startInput.addEventListener("focusout",function(x){return p.handleStartBlur_(x)});
this.endInput.addEventListener("focusout",function(x){return p.handleEndBlur_(x)})};
_.l.setPlayer=function(p){this.set("player_",p)};
_.l.onSetFixedLengthRange_=function(p){var x=p.detail;p=x.start;var F=x.duration,N=x.startLimit;x=x.endLimit;N||(N=this.seekableStart_);x||(x=this.seekableEnd_);p=Lm5(p,F,N,x);this.start=p.start;this.end=p.end};
_.l.onSetRange_=function(p){var x=p.detail;p=x.start;var F=x.end,N=x.startLimit;x=x.endLimit;N||(N=this.seekableStart_);x||(x=this.seekableEnd_);if(p=PmP(p,F,N,x,this.minLengthSec,this.maxLengthSec))this.start=p.start,this.end=p.end};
_.l.updateInputs_=function(){var p=this.end,x=this.start;this.startInput.focused||(this.startInput.value=V4(x,!0));this.endInput.focused||(this.endInput.value=V4(p,!0))};
_.l.handleStartInput_=function(p){p=jtM(p.target.value);if(p===null)this.set("startValid",!1);else{var x=this.end,F=PmP(p,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);F?(this.set("endWillUpdate",F.end!==x),this.set("startValid",F.start===p)):this.set("startValid",!1)}};
_.l.handleEndInput_=function(p){p=jtM(p.target.value);if(p===null)this.set("endValid",!1);else{var x=this.start,F=TDn(this.start,p,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);F?(this.set("startWillUpdate",F.start!==x),this.set("endValid",F.end===p)):this.set("endValid",!1)}};
_.l.handleStartBlur_=function(p){p=jtM(p.target.value);p===null?this.startInput.value=V4(this.start,!0):this.forceUpdateInputs_(PmP(p,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.l.handleEndBlur_=function(p){p=jtM(p.target.value);p===null?this.endInput.value=V4(this.end,!0):this.forceUpdateInputs_(TDn(this.start,p,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.l.forceUpdateInputs_=function(p){p&&(this.start=p.start,this.end=p.end);this.startInput.value=V4(this.start,!0);this.endInput.value=V4(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.l.initializeClipRange_=function(){var p=this.seekableEnd_,x=this.seekableStart_,F=this.visible_,N=this.player_;if(!N||!F||x===null||!p)this.set("initialized",!1);else if(!this.initialized){var h=N.getCurrentTime(),c=this.getDefaultLengthSec_();F=N.getVideoData();var M=N.getPlayerState()==1,f=F.isLive;c=Math.min(c,p-x);h=Math.max(0,h);p=f?TDn(h-c,h,x,p,this.minLengthSec,this.maxLengthSec):M?Lm5(h-c/2,c,x,p):Lm5(h,c,x,p);this.start=p.start;this.end=p.end;this.set("initialized",!0);F.isLive&&N.seekTo(p.start);
this.startInput.value=V4(this.start,!0);this.endInput.value=V4(this.end,!0)}};
_.l.onStartChanged_=function(){var p=this;_.hG(this.hostElement,"start-changed",{start:this.start});var x;isNaN((x=this.oldStart)!=null?x:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){p.set("highlightStart",!1);p.startHighlightTimeout=0;p.oldStart=p.start},3E3))};
_.l.onEndChanged_=function(){var p=this;_.hG(this.hostElement,"end-changed",{end:this.end});var x;isNaN((x=this.oldEnd)!=null?x:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){p.set("highlightEnd",!1);p.endHighlightTimeout=0;p.oldEnd=p.end},3E3))};
_.l.onVisibilityChangedAction_=function(p){var x=this;this.set("visible_",p.visible);this.visible_&&!this.player_&&(p=_.Pt())&&p.getPlayerPromise().then(function(F){x.setPlayer(F)})};
_.l.computeMinLengthSec_=function(p){return p/1E3||5};
_.l.computeMaxLengthSec_=function(p){return p/1E3||60};
_.l.computeDefaultLengthSec_=function(p){return p/1E3};
_.l.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.l.computeSeekableStart_=function(p,x){return p&&x?p.getProgressState(1).seekableStart:0};
_.l.computeSeekableEnd_=function(p,x){return p&&x?p.getProgressState(1).seekableEnd:0};
_.l.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.l.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.l.onDragState_=function(p){this.set("highlightStart",p.detail.startChanging);this.set("highlightEnd",p.detail.endChanging)};
var Ge=Edo;Ge.prototype.onDragState_=Ge.prototype.onDragState_;Ge.prototype.onEndChanged_=Ge.prototype.onEndChanged_;Ge.prototype.onStartChanged_=Ge.prototype.onStartChanged_;Ge.prototype.initializeClipRange_=Ge.prototype.initializeClipRange_;Ge.prototype.updateInputs_=Ge.prototype.updateInputs_;Ge.prototype.onSetRange_=Ge.prototype.onSetRange_;Ge.prototype.onSetFixedLengthRange_=Ge.prototype.onSetFixedLengthRange_;
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Ge.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ge.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ge.prototype,"data",void 0);_.B([_.H({value:0}),_.k("design:type",Number)],Ge.prototype,"start",void 0);_.B([_.H({value:!0}),_.k("design:type",Boolean)],Ge.prototype,"startValid",void 0);
_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Ge.prototype,"startWillUpdate",void 0);_.B([_.H({value:30}),_.k("design:type",Number)],Ge.prototype,"end",void 0);_.B([_.H({value:!0}),_.k("design:type",Boolean)],Ge.prototype,"endValid",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Ge.prototype,"endWillUpdate",void 0);_.B([_.H({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.k("design:type",Number)],Ge.prototype,"minLengthSec",void 0);
_.B([_.H({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.k("design:type",Number)],Ge.prototype,"maxLengthSec",void 0);_.B([_.H({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.k("design:type",Number)],Ge.prototype,"defaultLengthSec",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Ge.prototype,"visible_",void 0);_.B([_.H(),_.k("design:type",Object)],Ge.prototype,"player_",void 0);
_.B([_.H({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.k("design:type",Number)],Ge.prototype,"seekableStart_",void 0);_.B([_.H({computed:"computeSeekableEnd_(player_, visible_)"}),_.k("design:type",Number)],Ge.prototype,"seekableEnd_",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Ge.prototype,"initialized",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Ge.prototype,"disabled",void 0);
_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Ge.prototype,"highlightStart",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Ge.prototype,"highlightEnd",void 0);_.B([_.Ff("#start"),_.k("design:type",HTMLInputElement)],Ge.prototype,"startInput",void 0);_.B([_.Ff("#end"),_.k("design:type",HTMLInputElement)],Ge.prototype,"endInput",void 0);
_.B([_.V("set-fixed-length-range"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Ge.prototype,"onSetFixedLengthRange_",null);_.B([_.V("set-range"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Ge.prototype,"onSetRange_",null);_.B([_.W("start","end"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ge.prototype,"updateInputs_",null);
_.B([_.W("player_","visible_","seekableStart_","seekableEnd_"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ge.prototype,"initializeClipRange_",null);_.B([_.W("start"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ge.prototype,"onStartChanged_",null);_.B([_.W("end"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ge.prototype,"onEndChanged_",null);
_.B([_.V("clips-drag-state"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Ge.prototype,"onDragState_",null);Ge=_.B([_.JZ({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],Ge);
_.P(Ge,"yt-clip-creation-scrubber-renderer",function(){if(dG6===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;tOz===void 0&&(tOz=document.createElement("template"));var N=tOz;F.call(x,N.content.cloneNode(!0),p.content.firstChild);dG6=p}p=dG6;return p},{mode:2});var Xeb=function(){var p=_.m.apply(this,arguments)||this;p.player_=null;p.JSC$19802_playerEvents=new Map;p.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return p};
_.E(Xeb,_.m);_.l=Xeb.prototype;_.l.configureRendererStamper=function(){return{submitButton_:{id:"share",mapping:{buttonRenderer:"yt-button-renderer"}},cancelButton_:{id:"cancel",mapping:{buttonRenderer:"yt-button-renderer"}},"data.titleInput":{id:"title-input",mapping:{clipCreationTextInputRenderer:"ytd-clip-creation-text-input-renderer"}},"data.scrubber":{id:"scrubber",mapping:{clipCreationScrubberRenderer:"yt-clip-creation-scrubber-renderer"}},"data.adStateOverlay":{id:"ad-state",mapping:{clipAdStateRenderer:"ytd-clip-ad-state-renderer"}}}};
_.l.created=function(){this.JSC$19802_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$19802_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$19802_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$19802_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.l.detached=function(){this.setPlayer(null)};
_.l.onVisibilityChangedAction_=function(p){var x=this,F;if((F=this.data)==null?0:F.externalVideoId){var N;this.videoId=(N=this.data)==null?void 0:N.externalVideoId}this.getPlayer().then(function(h){if(p.visible)x.returnTime=h.getCurrentTime(),x.isAtLiveHead=h.getProgressState().isAtLiveHead;else{var c=x.returnTime;x.isAtLiveHead&&(c=Number.POSITIVE_INFINITY);h.seekTo(c,void 0,void 0,void 0,51)}})};
_.l.getPlayer=function(){var p=this;if(!this.player_){var x=_.Pt();if(x)return x.getPlayerPromise().then(function(F){p.setPlayer(F);return F})}return Promise.resolve(this.player_)};
_.l.setPlayer=function(p){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19802_playerEvents);if(p){this.player_=p;var x;((x=this.data)==null?0:x.externalVideoId)||this.set("videoId",p.getVideoData().video_id||"");var F;(p==null?void 0:(F=p.getPresentingPlayerType)==null?void 0:F.call(p))===2&&(this.set("isAdPlaying",!0),_.lA(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(p,this.JSC$19802_playerEvents)}};
_.l.ready=function(){_.n(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.l.onTitleChanged_=function(p){this.set("titleValue",p.detail.title)};
_.l.onStartChanged_=function(p){this.set("start",p.detail.start)};
_.l.onEndChanged_=function(p){this.set("end",p.detail.end)};
_.l.onTitleValidChanged_=function(p){this.set("titleValid",p.detail.valid)};
_.l.onStartValidChanged_=function(p){this.set("startValid",p.detail.valid)};
_.l.onEndValidChanged_=function(p){this.set("endValid",p.detail.valid)};
_.l.onVideoDataChange_=function(){var p;if((p=this.data)==null||!p.externalVideoId){var x;this.set("videoId",((x=this.player_)==null?void 0:x.getVideoData().video_id)||"")}};
_.l.computeFormValid_=function(p,x,F,N){return!!(p&&x&&F&&N)};
_.l.computeCancelButton_=function(p,x,F){return p&&_.r(p,_.AS)?{buttonRenderer:Object.assign({},_.r(p,_.AS),{isDisabled:x||F})}:null};
_.l.computeSubmitButton_=function(p,x,F){return p&&_.r(p,_.AS)?{buttonRenderer:Object.assign({},_.r(p,_.AS),{command:void 0,isDisabled:!this.formValid||x||F})}:null};
_.l.computeSubmitCommand_=function(p){return p||null};
_.l.onSubmit_=function(p){var x=this;p.stopPropagation();p.preventDefault();this.submitCommand_&&(p={},p.comment_text=this.titleValue,p.clip_external_video_id=this.videoId,p.clip_offset_ms=parseInt(this.start*1E3,10),p.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.fc(this.hostElement,[this.submitCommand_,p]).then(function(){x.set("isLoading_",!1)},function(){x.set("isLoading_",!1)}))};
_.l.playerAdStartHandler_=function(){_.lA(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.l.playerAdEndHandler_=function(){_.lA(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.l.onVideoProgress_=function(){var p=this;this.getPlayer().then(function(x){var F,N=(x==null?void 0:(F=x.getPresentingPlayerType)==null?void 0:F.call(x))===2;p.isAdPlaying!==N&&(N?p.playerAdStartHandler_():p.playerAdEndHandler_())})};
var VD=Xeb;VD.prototype.onEndValidChanged_=VD.prototype.onEndValidChanged_;VD.prototype.onStartValidChanged_=VD.prototype.onStartValidChanged_;VD.prototype.onTitleValidChanged_=VD.prototype.onTitleValidChanged_;VD.prototype.onEndChanged_=VD.prototype.onEndChanged_;VD.prototype.onStartChanged_=VD.prototype.onStartChanged_;VD.prototype.onTitleChanged_=VD.prototype.onTitleChanged_;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],VD.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.u(_.oz.YtPlayerListenerBehavior),_.k("design:type",Object)],VD.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],VD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],VD.prototype,"data",void 0);_.B([_.H({value:""}),_.k("design:type",String)],VD.prototype,"titleValue",void 0);
_.B([_.H({value:!1}),_.k("design:type",Boolean)],VD.prototype,"titleValid",void 0);_.B([_.H({value:0}),_.k("design:type",Number)],VD.prototype,"start",void 0);_.B([_.H({value:!0}),_.k("design:type",Boolean)],VD.prototype,"startValid",void 0);_.B([_.H({value:0}),_.k("design:type",Number)],VD.prototype,"end",void 0);_.B([_.H({value:!0}),_.k("design:type",Boolean)],VD.prototype,"endValid",void 0);_.B([_.H({value:""}),_.k("design:type",String)],VD.prototype,"videoId",void 0);
_.B([_.H({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.k("design:type",Boolean)],VD.prototype,"formValid",void 0);_.B([_.H({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.k("design:type",Object)],VD.prototype,"submitButton_",void 0);_.B([_.H({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.k("design:type",Object)],VD.prototype,"submitCommand_",void 0);
_.B([_.H({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.k("design:type",Object)],VD.prototype,"cancelButton_",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],VD.prototype,"isLoading_",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],VD.prototype,"isAdPlaying",void 0);_.B([_.H({value:0}),_.k("design:type",Number)],VD.prototype,"returnTime",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],VD.prototype,"isAtLiveHead",void 0);
_.B([_.V("title-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],VD.prototype,"onTitleChanged_",null);_.B([_.V("start-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],VD.prototype,"onStartChanged_",null);_.B([_.V("end-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],VD.prototype,"onEndChanged_",null);
_.B([_.V("title-valid-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],VD.prototype,"onTitleValidChanged_",null);_.B([_.V("start-valid-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],VD.prototype,"onStartValidChanged_",null);_.B([_.V("end-valid-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],VD.prototype,"onEndValidChanged_",null);
VD=_.B([_.JZ({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],VD);
_.P(VD,"yt-clip-creation-renderer",function(){if(ZnM===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;q_E===void 0&&(q_E=document.createElement("template"));var N=q_E;F.call(x,N.content.cloneNode(!0),p.content.firstChild);ZnM=p}p=ZnM;return p},{mode:2});var gd6=function(){return _.m.apply(this,arguments)||this};
_.E(gd6,_.m);gd6.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"}}}};
gd6.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(p){return p.hasOwnProperty("clipCreationRenderer")})&&_.lA(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
var W0=gd6;W0.prototype.onPanelContentVisibleChanged=W0.prototype.onPanelContentVisibleChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],W0.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],W0.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.AA.YtVisibilityBehavior),_.k("design:type",Object)],W0.prototype,"ytVisibilityBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],W0.prototype,"ytdReduxBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],W0.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],W0.prototype,"panelContentVisible",void 0);_.B([_.W("panelContentVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],W0.prototype,"onPanelContentVisibleChanged",null);W0=_.B([_.L({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],W0);
_.P(W0,"ytd-clip-section-renderer",function(){if(cug!==void 0)return cug;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return cug=p},{mode:1});var QUz;var zKl=function(){return _.m.apply(this,arguments)||this};
_.E(zKl,_.m);_.l=zKl.prototype;
_.l.onKeyDown=function(p){if(this.snippetElements.length!==0&&(p=p.keyCode,p===38||p===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);p===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.YV(this.highlightedIndex,-1,this.snippetElements.length);p=this.snippetElements.length;var x=this.highlightedIndex%p;this.highlightedIndex=x*p<0?x+p:x;p=this.snippetElements[this.highlightedIndex];this.highlightSnippet(p);this.ensureVisible(p)}};
_.l.onKeyUp=function(p){var x=this;YUb(p)&&(p.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.E0.cancelJob(this.inputTimerId),this.inputTimerId=_.E0.addLowPriorityJob(function(){x.typedValue&&(x.fetchSnippets(x.typedValue),x.logInputGesture(x.data))},1E3))};
_.l.onClick=function(p){(p=_.Xzj(p.target,null,"snippet-item"))&&this.selectSnippet(p)};
_.l.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.l.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.l.ready=function(){var p=this;this.inputElement.addEventListener("focus",function(){p.snippetsWrapper.style.removeProperty("display")})};
_.l.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.l.getSourceTimelines=function(){if(!this.data)return[];var p=[];if(this.data.searchInVideoSources)for(var x=_.a(this.data.searchInVideoSources),F=x.next();!F.done;F=x.next())F=F.value,F==="SEARCH_IN_VIDEO_SOURCE_ASR"?p.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):F==="SEARCH_IN_VIDEO_SOURCE_OCR"&&p.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return p};
_.l.fetchSnippets=function(p){var x=_.lA(this.hostElement,"yt-get-current-video-id-action")[0],F=this.getSourceTimelines();p={getSearchInVideoCommand:{externalVideoId:x,query:p!=null?p:"",sourceTimelines:F},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.J().resolve(_.RD).resolveCommand(p,{form:{element:this.hostElement}})};
_.l.filterSnippets=function(p,x){var F=this;if(x){this.filteredSnippets=(0,_.Q5.unsafeClone)(p);var N=RegExp(_.yhz(x),"i");this.filteredSnippets=this.filteredSnippets.filter(function(M){return N.test(F.ytRendererBehavior.getSimpleString(M.snippet))});
p=_.a(this.filteredSnippets);for(var h=p.next();!h.done;h=p.next()){h=h.value;var c=this.ytRendererBehavior.getSimpleString(h.snippet);h.snippet={runs:[{text:c.substring(0,c.toLowerCase().indexOf(x))},{text:c.substring(c.toLowerCase().indexOf(x),c.toLowerCase().indexOf(x)+x.length),bold:!0},{text:c.substring(c.toLowerCase().indexOf(x)+x.length,c.length)}]}}}else this.filteredSnippets=p};
_.l.onUpdateSearchInVideoResults=function(p){if(!(this.snippets.length>0)){var x,F,N;if((N=(x=_.r(p,BeA))==null?void 0:(F=x.results)==null?void 0:F.length)!=null&&N){var h;this.filteredSnippets=this.snippets=((h=_.r(p,BeA))==null?void 0:h.results).map(function(c){var M,f,K;return{startMs:c==null?void 0:(M=c.searchInVideoResultRenderer)==null?void 0:M.startMs,startTimeText:c==null?void 0:(f=c.searchInVideoResultRenderer)==null?void 0:f.startTimeText,snippet:c==null?void 0:(K=c.searchInVideoResultRenderer)==
null?void 0:K.snippet}})}}};
_.l.updateSnippetElements=function(){this.snippetElements=Array.from(this.snippetsWrapper.getElementsByClassName("snippet-item"));this.highlightedIndex>=0&&this.highlightedIndex<this.snippetElements.length&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);this.highlightedIndex=-1;this.snippetsWrapper.scrollTop=0};
_.l.highlightSnippet=function(p){p.classList.add("highlighted")};
_.l.removeSnippetHighlight=function(p){p.classList.remove("highlighted")};
_.l.selectSnippet=function(p){this.typedValue=String(p.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(p);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.l.ensureVisible=function(p){var x=this.snippetsWrapper.scrollTop,F=x+this.snippetsWrapper.clientHeight,N=p.offsetTop-this.snippetsWrapper.offsetTop;p=N+p.clientHeight;N<x?this.snippetsWrapper.scrollTop-=x-N:p>F&&(this.snippetsWrapper.scrollTop+=p-F)};
_.l.seekPlayer=function(p){var x,F;return _.D(function(N){if(N.nextAddress==1){if(!p)return N.jumpTo(0);x=Number(p.dataset.startOffset);return _.q(N,_.TO().getPlayerPromise(),3)}F=N.yieldResult;F.seekTo(x/1E3,!0);F.wakeUpControls();_.JB(N)})};
_.l.logInputGesture=function(p){var x=_.b0();x&&(p==null?0:p.trackingParams)&&_.Rf(x,_.fr(p.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.l.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Vx("typed-value-changed",this.typedValue))};
_.l.updateTypedValueFromBinding=function(p){this.typedValue=p.currentTarget.value};
var H0=zKl;H0.prototype.typedValueChangedForBinding=H0.prototype.typedValueChangedForBinding;H0.prototype.dataChanged=H0.prototype.dataChanged;H0.prototype.panelContentVisibleChanged=H0.prototype.panelContentVisibleChanged;H0.prototype.onClick=H0.prototype.onClick;H0.prototype.onKeyUp=H0.prototype.onKeyUp;H0.prototype.onKeyDown=H0.prototype.onKeyDown;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],H0.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],H0.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],H0.prototype,"data",void 0);_.B([_.H({value:[]}),_.k("design:type",Array)],H0.prototype,"snippets",void 0);_.B([_.H({value:[]}),_.k("design:type",Array)],H0.prototype,"filteredSnippets",void 0);_.B([_.H({value:[]}),_.k("design:type",Array)],H0.prototype,"snippetElements",void 0);
_.B([_.Ff("#siv-input"),_.k("design:type",HTMLElement)],H0.prototype,"inputElement",void 0);_.B([_.Ff("#siv-snippets-wrapper"),_.k("design:type",HTMLElement)],H0.prototype,"snippetsWrapper",void 0);_.B([_.H(),_.k("design:type",String)],H0.prototype,"typedValue",void 0);_.B([_.H({value:-1}),_.k("design:type",Number)],H0.prototype,"highlightedIndex",void 0);_.B([_.V("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[_.d8]),_.k("design:returntype")],H0.prototype,"onKeyDown",null);
_.B([_.V("keyup"),_.k("design:type",Function),_.k("design:paramtypes",[_.d8]),_.k("design:returntype")],H0.prototype,"onKeyUp",null);_.B([_.V("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],H0.prototype,"onClick",null);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],H0.prototype,"panelContentVisible",void 0);
_.B([_.W("panelContentVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H0.prototype,"panelContentVisibleChanged",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H0.prototype,"dataChanged",null);_.B([_.W("typedValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H0.prototype,"typedValueChangedForBinding",null);
H0=_.B([_.L({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],H0);
_.P(H0,"ytd-search-in-video-renderer",function(){if(QUz!==void 0)return QUz;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return QUz=p},{mode:1});var sUA;var m4=function(){return _.m.apply(this,arguments)||this};
_.E(m4,_.m);m4.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
m4.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]]"}}}}}};
m4.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var p,x,F,N,h=(x=_.r((p=this.data)==null?void 0:p.onClickCommand,_.psl))==null?void 0:(F=x.item)==null?void 0:(N=F.notificationTextRenderer)==null?void 0:N.successResponseText;h&&_.Dwp(this.hostElement,h)}};
_.R8.Object.defineProperties(m4.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var p,x,F,N;return this.isProductPlaceholder&&((p=this.data)==null?void 0:(x=p.hiddenProductOptions)==null?void 0:x.showDropCountdown)&&!!((F=this.data)==null?0:(N=F.hiddenProductOptions)==null?0:N.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var p;return!this.isProductPlaceholder&&!((p=this.data)==null?0:p.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var p,x;return!((p=this.data)==null?0:p.priceReplacementText)&&!((x=this.data)==null||!x.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
var oo=m4;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],oo.prototype,"componentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],oo.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],oo.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.w("isProductPlaceholder"),_.k("design:type",Object),_.k("design:paramtypes",[])],oo.prototype,"useCenterLayoutContainer",null);_.B([_.H({computed:"computeButtonOverride(data)"}),_.k("design:type",Object)],oo.prototype,"buttonOverride",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],oo.prototype,"isProductPlaceholder",null);
_.B([_.w("isProductPlaceholder"),_.k("design:type",Object),_.k("design:paramtypes",[])],oo.prototype,"showDropCountdown",null);_.B([_.w("isProductPlaceholder","data"),_.k("design:type",Object),_.k("design:paramtypes",[])],oo.prototype,"showBrandName",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],oo.prototype,"showPriceReplacementText",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],oo.prototype,"showPrice",null);
_.B([_.w("isProductPlaceholder"),_.k("design:type",Object),_.k("design:paramtypes",[])],oo.prototype,"showMetadata",null);oo=_.B([_.L({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],oo);
_.P(oo,"ytd-product-list-item-renderer",function(){if(sUA!==void 0)return sUA;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return sUA=p},{mode:1});var nd5;var yuo=function(){return _.m.apply(this,arguments)||this};
_.E(yuo,_.m);yuo.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
yuo.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
yuo.prototype.panelContentVisibleChanged=function(){var p=this,x;return _.D(function(F){if(F.nextAddress==1)return p.playerApi?F.jumpTo(2):_.q(F,_.TO().getPlayerPromise(),3);F.nextAddress!=2&&(p.playerApi=F.yieldResult);(x=p.playerApi)==null||x.productsInVideoVisibilityUpdated(!!p.panelContentVisible);_.JB(F)})};
var Oj=yuo;Oj.prototype.panelContentVisibleChanged=Oj.prototype.panelContentVisibleChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Oj.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Oj.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Oj.prototype,"panelContentVisible",void 0);_.B([_.H(),_.k("design:type",Object)],Oj.prototype,"data",void 0);
_.B([_.W("panelContentVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],Oj.prototype,"panelContentVisibleChanged",null);Oj=_.B([_.L({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],Oj);
_.P(Oj,"ytd-product-list-renderer",function(){if(nd5!==void 0)return nd5;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return nd5=p},{mode:1});var bnE;var AuA=function(){var p=_.m.apply(this,arguments)||this;p.hideTimestamps=!!_.Mq("hide-transcript-timestamps");p.currentCueIndex=-1;p.flatCues=[];p.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};p.TEST_ONLY={getFlatCues:function(){return p.flatCues}};
return p};
_.E(AuA,_.m);_.l=AuA.prototype;_.l.hideTimestampsChanged=function(){_.a3("hide-transcript-timestamps",this.hideTimestamps)};
_.l.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.l.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.l.dataChanged=function(){var p;if((p=this.data)!=null&&p.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;p=_.a(this.data.cueGroups);for(var x=p.next();!x.done;x=p.next()){x=_.a(_.r(x.value,R5b).cues);for(var F=x.next();!F.done;F=x.next())this.flatCues.push(Number(_.r(F.value,kll).startOffsetMs))}}};
_.l.onYtPlayerTimeChanged=function(p){if(!(p<0)){for(var x=this.currentCueIndex,F=x;;){var N=F>=0?this.flatCues[F]/1E3:-1;if(p+.5<N)--F;else if(N=F+1<this.flatCues.length?this.flatCues[F+1]/1E3:Infinity,p+.5>N)F+=1;else break}F!==x&&(x>=0&&((p=this.getCueElement(x))&&p.classList.remove("active"),(x=this.getCueGroupElement(x))&&x.classList.remove("active")),(x=this.getCueElement(F))&&x.classList.add("active"),(x=this.getCueGroupElement(F))&&x.classList.add("active"),this.currentCueIndex=F,this.isHovered||
this.scrollElementToTop(F))}};
_.l.scrollElementToTop=function(p){p=this.getCueElement(p>=3?p-3:0);this.hostElement.scrollTop=Math.min(p.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.l.getCueElement=function(p){return _.n(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[p]+'"]')};
_.l.getCueGroupElement=function(p){return(p=this.getCueElement(p))&&p.parentElement?p.parentElement.parentElement:null};
_.l.onTap=function(p){var x=_.os(p);p.target.classList.contains("cue")&&this.seekCueElement(x)};
_.l.onKeyPress=function(p){p.keyCode==13&&(p=_.Xzj(p.target,null,"cue"))&&this.seekCueElement(p)};
_.l.seekCueElement=function(p){p=Number(p.getAttribute("start-offset"));_.lA(this.hostElement,"yt-transcript-player-seek",[p/1E3])};
_.l.onMouseEnter=function(){this.isHovered=!0};
_.l.onMouseLeave=function(){this.isHovered=!1};
var jN=AuA;jN.prototype.onMouseLeave=jN.prototype.onMouseLeave;jN.prototype.onMouseEnter=jN.prototype.onMouseEnter;jN.prototype.onKeyPress=jN.prototype.onKeyPress;jN.prototype.onTap=jN.prototype.onTap;jN.prototype.dataChanged=jN.prototype.dataChanged;jN.prototype.hideTimestampsChanged=jN.prototype.hideTimestampsChanged;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],jN.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],jN.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],jN.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],jN.prototype,"hideTimestamps",void 0);_.B([_.H(),_.k("design:type",Boolean)],jN.prototype,"isHovered",void 0);_.B([_.W("hideTimestamps"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jN.prototype,"hideTimestampsChanged",null);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jN.prototype,"dataChanged",null);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],jN.prototype,"onTap",null);_.B([_.V("keypress"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],jN.prototype,"onKeyPress",null);
_.B([_.V("mouseenter"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jN.prototype,"onMouseEnter",null);_.B([_.V("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jN.prototype,"onMouseLeave",null);jN=_.B([_.L({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],jN);
_.P(jN,"ytd-transcript-body-renderer",function(){if(bnE!==void 0)return bnE;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return bnE=p},{mode:1});var uDg;var Y_e=function(){var p=_.m.apply(this,arguments)||this;p.darkerPanels=_.S("web_watch_darker_panels");return p};
_.E(Y_e,_.m);Y_e.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
var Lj=Y_e;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Lj.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Lj.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Lj.prototype,"darkerPanels",void 0);Lj=_.B([_.L({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],Lj);
_.P(Lj,"ytd-transcript-footer-renderer",function(){if(uDg!==void 0)return uDg;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return uDg=p},{mode:1});var weP;var GGg;var VOe=function(){var p=_.m.apply(this,arguments)||this;p.systemIcons=_.S("kevlar_system_icons");p.showClearButton=!1;return p};
_.E(VOe,_.m);_.l=VOe.prototype;_.l.handleInput=function(p){var x=this;p.target.value.length?_.sQ(this,"ytdTranscriptSearchBoxSearch",function(){x.emitSearchEvent(p)},500):(_.v1H(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=p.target.value.length>0};
_.l.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.l.handleClick=function(){var p,x=(p=this.data)==null?void 0:p.trackingParams;x&&_.cj(_.cl(),x)};
_.l.handleClear=function(){_.v1H(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var p,x,F=(x=_.r((p=this.data)==null?void 0:p.clearButton,_.AS))==null?void 0:x.trackingParams;F&&_.cj(_.cl(),F);this.clear()};
_.l.emitSearchEvent=function(p){_.hG(this.hostElement,"yt-transcript-search-box-search",{query:p.target.value});var x,F;(p=(F=_.r((x=this.data)==null?void 0:x.searchButton,_.AS))==null?void 0:F.trackingParams)&&_.cj(_.cl(),p)};
_.l.emitClearEvent=function(){_.hG(this.hostElement,"yt-transcript-search-box-clear")};
_.R8.Object.defineProperties(VOe.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.n(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
var P0=VOe;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],P0.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],P0.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],P0.prototype,"systemIcons",void 0);P0=_.B([_.L({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],P0);
_.P(P0,"ytd-transcript-search-box-renderer",function(){if(GGg!==void 0)return GGg;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return GGg=p},{mode:1});var WVe;var Hne;var Te=function(){return _.m.apply(this,arguments)||this};
_.E(Te,_.m);Te.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var p,x;this.sectionHeaderAriaLabel=(p=this.data)==null?void 0:(x=p.accessibility)==null?void 0:x.accessibilityData.label}};
Te.prototype.fireSelectedEvent=function(p){_.hG(this.hostElement,"ytd-transcript-section-header",{startMs:p})};
Te.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
Te.prototype.handleKeyPress=function(p){this.data&&p.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.R8.Object.defineProperties(Te.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var p,x;return(x=(p=this.data)==null?void 0:p.enableTappableTranscriptHeader)!=null?x:!1}}});
var B0=Te;B0.prototype.dataChanged=B0.prototype.dataChanged;_.B([_.H(),_.k("design:type",Object)],B0.prototype,"data",void 0);_.B([_.H(),_.k("design:type",String)],B0.prototype,"sectionHeaderAriaLabel",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],B0.prototype,"enableTappableTranscriptHeader",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],B0.prototype,"dataChanged",null);
B0=_.B([_.L({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],B0);
_.P(B0,"ytd-transcript-section-header-renderer",function(){if(Hne!==void 0)return Hne;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Hne=p},{mode:1});var mGz;var odz;var On6=function(){var p=_.m.apply(this,arguments)||this;p.isEditMode=!1;p.touchCaptionsEnabled=!1;p.deleteCaptionCorrectionPopupCommand=null;p.voteCaptionCorrectionPopupCommand=null;p.roundedContainer=!0;p.mouseOver=!1;p.textChanged=!1;p.messages={suggest_correction:_.JG("suggest_correction",void 0,"Edit caption"),suggested_caption:_.JG("suggested_caption",void 0,"Suggested caption"),submit_correction:_.JG("submit_correction",void 0,"Submit for review"),cancel_correction:_.JG("cancel_correction",
void 0,"Cancel"),replay_segment:_.JG("replay_segment",void 0,"Re-play segment"),delete_correction:_.JG("delete_correction",void 0,"Delete correction")};p.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return p};
_.E(On6,_.m);_.l=On6.prototype;_.l.dataChanged=function(){this.isEditMode=!1;this.editedText=this.data?this.data.userCorrection:void 0;this.data&&this.data.deleteCaptionCorrectionPopupCommand&&(this.deleteCaptionCorrectionPopupCommand=this.data.deleteCaptionCorrectionPopupCommand);this.data&&this.data.voteCaptionCorrectionPopupCommand&&(this.voteCaptionCorrectionPopupCommand=this.data.voteCaptionCorrectionPopupCommand);this.data&&this.data.accessibility&&(this.segmentAriaLabel=this.data.accessibility.accessibilityData.label)};
_.l.handleDelete=function(p){if(this.deleteCaptionCorrectionPopupCommand){var x=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);x&&this.ytdOpenPopupBehavior.openPopup(x);p.stopPropagation()}};
_.l.handleSubmit=function(p){if(this.data&&this.data.submitCaptionCorrectionCommand&&(p.stopPropagation(),this.textChanged)){var x;p=(x=_.r(this.data.submitCaptionCorrectionCommand,_.oxj))==null?void 0:x.params;x=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:p,correctionText:String(this.ironTextAreaElement.value),originalText:_.Pi(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(x);this.isEditMode=!1}};
_.l.handleUpdateSegmentText=function(p){(p=_.r(p,qeM))&&p.targetId&&this.data&&p.targetId===this.data.targetId&&(p.userCorrection&&(this.editedText=p.userCorrection),p.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.Pi(this.data.snippet)),p.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=p.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=p.voteCaptionCorrectionPopupCommand?
p.voteCaptionCorrectionPopupCommand:null,p.accessibility&&(this.segmentAriaLabel=p.accessibility.accessibilityData.label))};
_.l.handleCancel=function(p){this.isEditMode=!1;p.stopPropagation();this.logClientVe(159409)};
_.l.handleEditSegmentCommand=function(p){(p=_.r(p,KhE))&&p.targetId&&this.data&&p.targetId===this.data.targetId&&this.handleEdit()};
_.l.handleEditButtonClick=function(p){this.data&&(this.handleEdit(),p.stopPropagation())};
_.l.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var p;(p=this.ironTextAreaElement.textarea)==null||p.focus();this.logClientVe(159407)}};
_.l.handleMouseEnter=function(){this.mouseOver=!0};
_.l.handleMouseLeave=function(){this.mouseOver=!1};
_.l.handleReplay=function(p){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),p.stopPropagation(),this.logClientVe(159408))};
_.l.handleClick=function(){this.data&&(this.voteCaptionCorrectionPopupCommand?(this.ytComponentBehavior.resolveCommand(this.voteCaptionCorrectionPopupCommand),this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs))):(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()))};
_.l.handleKeypress=function(p){this.data&&(this.isEditMode?p.stopPropagation():this.isEnterPress(p)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(p)&&this.logClientVe(138758))};
_.l.handleTextboxClick=function(p){p.stopPropagation()};
_.l.handleTextboxKeydown=function(p){this.isControlEnterPress(p)?this.handleSubmit(p):p.key==="Escape"&&this.handleCancel(p)};
_.l.handleTextboxKeyup=function(){this.textChanged=_.Pi(this.latestText)!==String(this.ironTextAreaElement.value)};
_.l.fireSelectedEvent=function(p){_.hG(this.hostElement,"yt-transcript-segment-selected",{startMs:p})};
_.l.fireReplayEvent=function(p,x){_.hG(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(p-100,0),endMs:x})};
_.l.fireEditEvent=function(p,x){_.hG(this.hostElement,"yt-transcript-segment-edit",{startMs:p,endMs:x})};
_.l.isEnterPress=function(p){return p.key==="Enter"||p.code==="Enter"||p.code==="NumpadEnter"||p.keyCode===13?!0:!1};
_.l.isControlEnterPress=function(p){var x=p.key==="Enter"||p.code==="Enter"||p.code==="NumpadEnter"||p.keyCode===13;return(p.ctrlKey||p.metaKey)&&x};
_.l.isCopyPress=function(p){var x=p.ctrlKey;return p.key==="c"&&x};
_.l.logClick=function(){var p,x=(p=this.data)==null?void 0:p.trackingParams;x&&_.cj(_.cl(),x)};
_.l.logClientVe=function(p){_.lC(_.cl(),_.vt(p))};
_.R8.Object.defineProperties(On6.prototype,{latestText:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.snippet?this.editedText&&this.touchCaptionsEnabled?this.editedText:this.data.snippet:{}}},
enableEditButton:{configurable:!0,enumerable:!0,get:function(){return this.touchCaptionsEnabled&&!this.isEditMode}},
enableUndoButton:{configurable:!0,enumerable:!0,get:function(){return this.enableEditButton&&this.deleteCaptionCorrectionPopupCommand!=null}}});
var Ro=On6;Ro.prototype.handleMouseLeave=Ro.prototype.handleMouseLeave;Ro.prototype.handleMouseEnter=Ro.prototype.handleMouseEnter;Ro.prototype.dataChanged=Ro.prototype.dataChanged;_.B([_.u(_.T2.YtActionHandlerBehavior),_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Ro.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.Oo),_.k("design:type",Object)],Ro.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],Ro.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ro.prototype,"isEditMode",void 0);_.B([_.H(),_.k("design:type",Object)],Ro.prototype,"touchCaptionsEnabled",void 0);_.B([_.H(),_.k("design:type",Object)],Ro.prototype,"editedText",void 0);_.B([_.H(),_.k("design:type",Object)],Ro.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.B([_.H(),_.k("design:type",Object)],Ro.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.B([_.H(),_.k("design:type",String)],Ro.prototype,"segmentAriaLabel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ro.prototype,"roundedContainer",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ro.prototype,"mouseOver",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ro.prototype,"textChanged",void 0);_.B([_.H(),_.k("design:type",Object)],Ro.prototype,"messages",void 0);
_.B([_.Ff("#suggestion"),_.k("design:type",Object)],Ro.prototype,"ironTextAreaElement",void 0);_.B([_.w("data","editedText"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ro.prototype,"latestText",null);_.B([_.w("touchCaptionsEnabled","isEditMode"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ro.prototype,"enableEditButton",null);
_.B([_.w("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ro.prototype,"enableUndoButton",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ro.prototype,"dataChanged",null);_.B([_.V("mouseenter"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ro.prototype,"handleMouseEnter",null);
_.B([_.V("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ro.prototype,"handleMouseLeave",null);Ro=_.B([_.L({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],Ro);
_.P(Ro,"ytd-transcript-segment-renderer",function(){if(odz!==void 0)return odz;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return odz=p},{mode:1});var jUP=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};p.isError=!1;p.darkerPanels=_.S("web_watch_darker_panels");p.segmentOffsets=[];p.segmentIndex=-1;return p};
_.E(jUP,_.m);_.l=jUP.prototype;_.l.configureRendererStamper=function(){return{segments:{id:"segments-container",mapping:{transcriptSegmentRenderer:{component:"ytd-transcript-segment-renderer",properties:{touchCaptionsEnabled:"[[data.touchCaptionsEnabled]]"}},transcriptSectionHeaderRenderer:{component:"ytd-transcript-section-header-renderer"}}}}};
_.l.segmentsChanged=function(){this.updateOffsets()};
_.l.onYtPlayerTimeChanged=function(p){for(var x=this.segmentIndex,F=x;;){if(F>=0){var N=this.segmentOffsets[F].start;var h=this.segmentOffsets[F].isAutoScrollable}else N=-1,h=!0;var c=p+.5;if(!h){N=F+1<this.segmentOffsets.length?this.segmentOffsets[F+1].start:Infinity;if(c>=N){F+=1;continue}F=-1;break}if(c<N)N=F-1>=0&&this.segmentOffsets[F-1].isAutoScrollable,h=F===0||N?1:2,F-=h;else if(h=F+1<this.segmentOffsets.length&&this.segmentOffsets[F+1].isAutoScrollable?1:2,N=F+h<this.segmentOffsets.length?
this.segmentOffsets[F+h].start:Infinity,c>N)F+=h;else{if(F<0)break;F<this.segmentOffsets.length&&c>this.segmentOffsets[F].end&&(F=-1);break}}if(x!==F){if(x>=0){var M;(M=this.getSegmentElement(x))==null||M.classList.remove("active")}this.segmentIndex=F;if(!(F<0)){var f;(f=this.getSegmentElement(F))==null||f.classList.add("active");this.isHovered||this.scrollElementToTop(F)}}};
_.l.handleSegmentEdit=function(p){p.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=p.target,_.lA(this.hostElement,"yt-transcript-player-edit",[p.detail.startMs/1E3,p.detail.endMs/1E3]))};
_.l.handleSegmentSelected=function(p){_.lA(this.hostElement,"yt-transcript-player-seek",[p.detail.startMs/1E3])};
_.l.handleSegmentReplay=function(p){_.lA(this.hostElement,"yt-transcript-player-replay",[p.detail.startMs/1E3,p.detail.endMs/1E3])};
_.l.handleSectionHeaderSelected=function(p){_.lA(this.hostElement,"yt-transcript-player-seek",[p.detail.startMs/1E3])};
_.l.onMouseEnter=function(){this.isHovered=!0};
_.l.onMouseLeave=function(){this.isHovered=!1};
_.l.onRetryButtonClick=function(){_.hG(this.hostElement,"transcript-retry-button-click")};
_.l.getSegmentElement=function(p){return _.n(this.hostElement).querySelector(":nth-child("+(p+1)+")")};
_.l.scrollElementToTop=function(p){p=this.getSegmentElement(p>=2?p-2:0);this.hostElement.scrollTop=Math.min(p.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.l.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(p){var x,F=(x=p.transcriptSegmentRenderer)!=null?x:p.transcriptSectionHeaderRenderer;return{start:Number(F.startMs)/1E3,end:Number(F.endMs)/1E3,isAutoScrollable:p.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.l.clearHighlightedSegments=function(){var p=_.n(this.hostElement);p=_.a(p.querySelectorAll("ytd-transcript-segment-renderer"));for(var x=p.next();!x.done;x=p.next())x.value.classList.remove("active")};
_.R8.Object.defineProperties(jUP.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.data)==null?void 0:p.searchResultSegments)||((x=this.data)==null?void 0:x.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
var kX=jUP;kX.prototype.onMouseLeave=kX.prototype.onMouseLeave;kX.prototype.onMouseEnter=kX.prototype.onMouseEnter;kX.prototype.handleSectionHeaderSelected=kX.prototype.handleSectionHeaderSelected;kX.prototype.handleSegmentReplay=kX.prototype.handleSegmentReplay;kX.prototype.handleSegmentSelected=kX.prototype.handleSegmentSelected;kX.prototype.handleSegmentEdit=kX.prototype.handleSegmentEdit;kX.prototype.segmentsChanged=kX.prototype.segmentsChanged;
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],kX.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],kX.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],kX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],kX.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],kX.prototype,"isError",void 0);
_.B([_.H(),_.k("design:type",Object)],kX.prototype,"noResultLabel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],kX.prototype,"darkerPanels",void 0);_.B([_.w("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],kX.prototype,"segments",null);_.B([_.w("segments","noResultLabel"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],kX.prototype,"displayNoResults",null);
_.B([_.W("segments"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kX.prototype,"segmentsChanged",null);_.B([_.V("yt-transcript-segment-edit"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],kX.prototype,"handleSegmentEdit",null);_.B([_.V("yt-transcript-segment-selected"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],kX.prototype,"handleSegmentSelected",null);
_.B([_.V("yt-transcript-segment-replay"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],kX.prototype,"handleSegmentReplay",null);_.B([_.V("ytd-transcript-section-header"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],kX.prototype,"handleSectionHeaderSelected",null);_.B([_.V("mouseenter"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kX.prototype,"onMouseEnter",null);
_.B([_.V("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kX.prototype,"onMouseLeave",null);kX=_.B([_.L({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],kX);
_.P(kX,"ytd-transcript-segment-list-renderer",function(){if(mGz!==void 0)return mGz;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return mGz=p},{mode:1});var LVK=function(){var p=_.m.apply(this,arguments)||this;p.hideTimestamps=!!_.Mq("hide-transcript-timestamps");p.isLoadingTranscripts=!1;p.darkerPanels=_.S("web_watch_darker_panels");p.isError=!1;p.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return p};
_.E(LVK,_.m);_.l=LVK.prototype;_.l.headerChanged=function(){var p,x;this.baseGetTranscriptsCommand=(x=_.r((p=this.data)==null?void 0:p.header,ZMb))==null?void 0:x.onTextChangeCommand};
_.l.bodyChanged=function(){var p=this.getBodyRenderer();p&&(p.initialSegments&&(this.initialTranscriptsRenderer=p),p.noResultLabel&&(this.noResultLabel=p.noResultLabel),p.retryLabel&&(this.retryLabel=p.retryLabel))};
_.l.detached=function(){this.clearSearchBoxText()};
_.l.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.l.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{transcriptSearchBoxRenderer:"ytd-transcript-search-box-renderer"}},"data.body":{id:"body",mapping:{transcriptSegmentListRenderer:{component:"ytd-transcript-segment-list-renderer",properties:{noResultLabel:"[[noResultLabel]]"}}}},"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}}}};
_.l.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.l.fireSearch=function(p){var x=this;if(p){var F=p.detail.query;if(this.baseGetTranscriptsCommand){var N;p=(N=_.r(this.baseGetTranscriptsCommand,_.OFk))==null?void 0:N.params;var h;N=_.r((h=this.data)==null?void 0:h.footer,UMU);var c;if((h=(c=_.r(N==null?void 0:N.languageMenu,aCb))==null?void 0:c.subMenuItems)&&h.length>0&&(c=h.find(function(K){return K.selected}))){var M,f;
p=(M=c.continuation)==null?void 0:(f=M.reloadContinuationData)==null?void 0:f.continuation}M=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:p,searchQuery:F}});this.ytComponentBehavior.resolveCommand(M,{commandController:{onServerError:function(){x.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});Ao6(this.ytContinuationHandlerBehavior,function(){return F===x.getCurrentSearchBoxText()})}}};
_.l.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.l.onRetryButtonClick=function(){this.isError=!1;var p={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:p}))};
_.l.hideTimestampsChanged=function(){_.a3("hide-transcript-timestamps",this.hideTimestamps)};
_.l.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.l.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.l.handleSignalActionCopyTranscript=function(){var p=this,x=this.getBodyRenderer();x&&(x=((x==null?void 0:x.searchResultSegments)||(x==null?void 0:x.initialSegments)||[]).map(function(F){return _.r(F,dFb)}).filter(function(F){return!!F}).map(function(F){return{snippet:F.snippet||{runs:[{text:""}]},
startTimeText:F.startTimeText||{simpleText:""}}}).map(function(F){var N=(F.snippet.runs||[]).reduce(function(h,c){return h+c.text},"");
return p.hideTimestamps?N:F.startTimeText.simpleText+" "+N}).join("\n"),this.copyToClipboard(x))};
_.l.copyToClipboard=function(p){navigator.clipboard&&navigator.clipboard.writeText(p)};
_.l.getCurrentSearchBoxText=function(){var p;return(p=this.searchBox)==null?void 0:p.value};
_.l.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.l.getBodyRenderer=function(){var p;return _.r((p=this.data)==null?void 0:p.body,tiA)};
_.l.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.R8.Object.defineProperties(LVK.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.n(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
var Uj=LVK;Uj.prototype.hideTimestampsChanged=Uj.prototype.hideTimestampsChanged;Uj.prototype.searchCleared=Uj.prototype.searchCleared;Uj.prototype.fireSearch=Uj.prototype.fireSearch;Uj.prototype.onReloadContinuationFinish=Uj.prototype.onReloadContinuationFinish;Uj.prototype.bodyChanged=Uj.prototype.bodyChanged;Uj.prototype.headerChanged=Uj.prototype.headerChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Uj.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Uj.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Uj.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.Vw),_.k("design:type",Object)],Uj.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Uj.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Uj.prototype,"hideTimestamps",void 0);
_.B([_.H(),_.k("design:type",Object)],Uj.prototype,"isLoadingTranscripts",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Uj.prototype,"darkerPanels",void 0);_.B([_.H(),_.k("design:type",Object)],Uj.prototype,"isError",void 0);_.B([_.W("data.header"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Uj.prototype,"headerChanged",null);
_.B([_.cT("data.body"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Uj.prototype,"bodyChanged",null);_.B([_.V("yt-reload-continuation-finish"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Uj.prototype,"onReloadContinuationFinish",null);_.B([_.V("yt-transcript-search-box-search"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],Uj.prototype,"fireSearch",null);
_.B([_.V("yt-transcript-search-box-clear"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Uj.prototype,"searchCleared",null);_.B([_.W("hideTimestamps"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Uj.prototype,"hideTimestampsChanged",null);Uj=_.B([_.L({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],Uj);
_.P(Uj,"ytd-transcript-search-panel-renderer",function(){if(WVe!==void 0)return WVe;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return WVe=p},{mode:1});var PGg=function(){var p=_.m.apply(this,arguments)||this;p.player=null;p.playerPollJobId=0;return p};
_.E(PGg,_.m);_.l=PGg.prototype;_.l.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.l.onLoadReloadContinuation=function(p){_.S("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:p.target.data.continuation}}):(p={clickTrackingParams:p.target.data.clickTrackingParams,getTranscriptEndpoint:{params:p.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.S("web_ytd_transcript_renderer_command_resolver_ks")?_.fc(this.hostElement,[p]):_.J().resolve(_.RD).resolveCommand(p,
{form:{element:this.hostElement}}))};
_.l.configureRendererStamper=function(){return{"data.footer":{id:"footer",mapping:{transcriptFooterRenderer:"ytd-transcript-footer-renderer"}},"data.body":{id:"body",mapping:{transcriptBodyRenderer:"ytd-transcript-body-renderer"}},"data.content":{id:"content",mapping:{transcriptSearchPanelRenderer:"ytd-transcript-search-panel-renderer"}}}};
_.l.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.l.attached=function(){this.updatePlayerListening()};
_.l.detached=function(){this.updatePlayerListening()};
_.l.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.l.startPlayerListening=function(){var p=this,x;return _.D(function(F){if(F.nextAddress==1)return(x=_.Pt())?_.q(F,x.getPlayerPromise(),2):F.return();p.player=F.yieldResult;p.playerPollJobId=_.E0.addLowPriorityJob(function(){p.getPlayerVideoProgress()},1E3);
p.player.addEventListener("onCueRangeEnter",function(N){p.onCueRangeEnter(N)});
p.player.addEventListener("onCueRangeExit",function(N){p.onCueRangeExit(N)});
p.player.addEventListener("onStateChange",function(N){p.onPlayerStateChange(N)});
p.player.addEventListener("SEEK_TO",function(N){p.onPlayerSeek(N)});
_.JB(F)})};
_.l.getPlayerVideoProgress=function(){var p=this;_.E0.cancelJob(this.playerPollJobId);if(this.player){var x=this.player.getCurrentTime();_.lA(this.hostElement,"yt-player-time-changed",[x])}this.playerPollJobId=_.E0.addLowPriorityJob(function(){p.getPlayerVideoProgress()},1E3)};
_.l.stopPlayerListening=function(){this.player=null;_.E0.cancelJob(this.playerPollJobId)};
_.l.onPlayerStateChange=function(p){p===2&&this.removePendingCue()};
_.l.onPlayerSeek=function(p){var x;if(x=this.pendingReplayCueId)x=this.pendingReplayCueId,x=p===(_.S("web_transcript_cue_id_killswitch")?Number(x):Number(x.split("_")[1]));x||this.removePendingCue()};
_.l.onCueRangeEnter=function(p){R8M(p)&&(this.pendingReplayCueId=p)};
_.l.onCueRangeExit=function(p){R8M(p)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.l.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.l.onYtTranscriptPlayerSeek=function(p){this.player&&this.player.seekTo(p,!0)};
_.l.onYtTranscriptPlayerReplay=function(p,x){this.player&&(this.player.addCueRange(BDb(p),p,x),this.player.seekTo(p,!0),this.player.playVideo())};
_.l.onYtTranscriptPlayerEdit=function(p,x){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(BDb(p),p,x),this.player.seekTo(p,!0))};
var ij=PGg;ij.prototype.onLoadReloadContinuation=ij.prototype.onLoadReloadContinuation;ij.prototype.panelContentVisibleChanged=ij.prototype.panelContentVisibleChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],ij.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ij.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],ij.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ij.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],ij.prototype,"panelContentVisible",void 0);_.B([_.W("panelContentVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ij.prototype,"panelContentVisibleChanged",null);
_.B([_.V("yt-load-reload-continuation"),_.k("design:type",Function),_.k("design:paramtypes",[Object]),_.k("design:returntype")],ij.prototype,"onLoadReloadContinuation",null);ij=_.B([_.L({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],ij);
_.P(ij,"ytd-transcript-renderer",function(){if(weP!==void 0)return weP;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return weP=p},{mode:1});var Tx6;var BxP;var RKU=function(){return _.m.apply(this,arguments)||this};
_.E(RKU,_.m);RKU.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.hG(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.Kc(this.hostElement,[this.data.clickCommand],this.hostElement))};
RKU.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.zQ)()+_.oH)+"px)"};
RKU.prototype.updateShouldHideFromBinding=function(p){this.shouldHide=p.detail.value};
var Io=RKU;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Io.prototype,"rendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Io.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Boolean)],Io.prototype,"shouldHide",void 0);Io=_.B([_.L({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],Io);
_.P(Io,"ytd-ad-engagement-panel-banner-renderer",function(){if(BxP!==void 0)return BxP;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return BxP=p},{mode:_.UQ("kevlar_poly_si_batch_j070")?1:2});var kGK;var UGM=function(){var p=_.m.apply(this,arguments)||this;p.modernPanels=_.S("kevlar_watch_modern_panels");p.buttonUpdate=_.S("web_modern_buttons");p.adsSemanticText=_.S("enable_ads_web_ep_buenos_aires_and_padding_fix");return p};
_.E(UGM,_.m);UGM.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
var $X=UGM;_.B([_.H(),_.k("design:type",Object)],$X.prototype,"data",void 0);_.B([_.H({computed:"computeHideDefaultAdBadge(data)"}),_.k("design:type",Boolean)],$X.prototype,"hideDefaultAdBadge",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$X.prototype,"modernPanels",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$X.prototype,"buttonUpdate",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$X.prototype,"adsSemanticText",void 0);
$X=_.B([_.L({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],$X);
_.P($X,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(kGK!==void 0)return kGK;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return kGK=p},{mode:1});var inU;var IJP=function(){var p=_.m.apply(this,arguments)||this;p.darkerPanels=_.S("web_watch_darker_panels");p.enableSqueezebackPanels=_.S("web_shorts_enable_squeezeback_panels");p.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");p.modernPanels=_.S("kevlar_watch_modern_panels");p.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return p};
_.E(IJP,_.m);_.l=IJP.prototype;_.l.computeAdsInfoButton=function(){if(_.S("web_modern_buttons")){var p,x;return(x=_.r((p=this.data)==null?void 0:p.subtitleComplex,i6K))==null?void 0:x.adInfoRenderer}};
_.l.configureRendererStamper=function(){return{"data.visibilityButton":{id:"visibility-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer",sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}},"data.subtitleComplex":{id:"subtitle-complex",mapping:{engagementPanelAdSubtitleRenderer:"ytd-engagement-panel-ad-subtitle-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
adsInfoButton:{id:"ads-info-button",mapping:{adHoverTextButtonRenderer:{component:"ytd-ad-hover-text-button-renderer",params:{modernUpdate:!0}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.banner":{id:"banner",mapping:{adEngagementPanelBannerRenderer:"ytd-ad-engagement-panel-banner-renderer"}},"data.navigationButton":{id:"navigation-button",mapping:{buttonRenderer:"ytd-button-renderer"},reuseComponents:!1},"data.subheader":{id:"subheader",
mapping:{chipBarViewModel:{component:"chip-bar-view-model",params:{disableDeselection:!0}}}}}};
_.l.collapsedChanged=function(){var p;(p=this.data)!=null&&p.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.S("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.l.focus=function(p){this.titleElement&&_.Hu(this.titleElement,p)};
_.l.computeTitleAriaLabel=function(p){var x=[];p.title&&x.push(this.ytRendererBehavior.getSimpleString(p.title));p.contextualInfo&&x.push(this.ytRendererBehavior.getSimpleString(p.contextualInfo));return x.join(" ")};
_.l.onHeaderClick=function(p){this.shouldTriggerHeaderClick(p)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.hG(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.Kc(this.hostElement,[this.data.onClickCommand],this.hostElement)):(p=this.getVisibilityToggleButton())&&p.click())};
_.l.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var p=_.r(this.data.visibilityButton,_.AS)||_.r(this.data.visibilityButton,_.ux);p&&this.ytRendererBehavior.logExplicitClick(p)}};
_.l.getVisibilityToggleButton=function(){var p=_.n(this.hostElement).querySelector("#visibility-button").firstElementChild;return(p==null?void 0:p.is)==="ytd-toggle-button-renderer"?p:null};
_.l.shouldTriggerHeaderClick=function(p){return!_.mx(_.m9(p),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.l.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(p){p=_.r(p,_.O6g);this.targetId&&(p==null?void 0:p.targetId)===this.targetId&&(p=p.navigationButton)&&this.set("data.navigationButton",p)};
_.R8.Object.defineProperties(IJP.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.S("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var p;return!!(((p=this.entity)==null?0:p.isActionButtonHidden)||this.hideActionButton)}}});
var eN=IJP;eN.prototype.collapsedChanged=eN.prototype.collapsedChanged;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],eN.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],eN.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],eN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],eN.prototype,"ytdReduxBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],eN.prototype,"data",void 0);_.B([_.H(),_.k("design:type",String)],eN.prototype,"targetId",void 0);_.B([_.H(),_.k("design:type",Boolean)],eN.prototype,"collapsed",void 0);_.B([_.H(),_.k("design:type",Boolean)],eN.prototype,"hideActionButton",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],eN.prototype,"shortsPanel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],eN.prototype,"liveChatEngagementPanel",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],eN.prototype,"darkerPanels",void 0);_.B([_.Ff("#title"),_.k("design:type",HTMLElement)],eN.prototype,"titleElement",void 0);_.B([_.H({computed:"computeAdsInfoButton(data)"}),_.k("design:type",Object)],eN.prototype,"adsInfoButton",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],eN.prototype,"enableSqueezebackPanels",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],eN.prototype,"enableAnchoredPanel",void 0);_.B([_.H({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(p,x){return _.M4(p.entities,"engagementPanelTitleHeaderEntity",x)}}),
_.k("design:type",Object)],eN.prototype,"entity",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],eN.prototype,"modernPanels",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("targetId"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],eN.prototype,"adsSemanticText",null);_.B([_.cT("collapsed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eN.prototype,"collapsedChanged",null);
_.B([_.w("entity","hideActionButton"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],eN.prototype,"isActionButtonHidden",null);eN=_.B([_.L({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],eN);
_.P(eN,"ytd-engagement-panel-title-header-renderer",function(){if(inU!==void 0)return inU;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" on-click="onHeaderClick" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return inU=p},{mode:1});var $Gn;var eK5=function(){return _.m.apply(this,arguments)||this};
_.E(eK5,_.m);eK5.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var pk=eK5;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],pk.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],pk.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],pk.prototype,"data",void 0);pk=_.B([_.L({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],pk);
_.P(pk,"ytd-macro-markers-info-item-renderer",function(){if($Gn!==void 0)return $Gn;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return $Gn=p},{mode:1});var pwM;var N1l=function(p,x,F,N,h){_.Jm.call(this);this.JSC$19903_containerElement=p;this.hostElement=x;this.supportedSyncItems=F;this.syncEntityKey=N;this.options=h;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;x$z(this);Fgl(this);this.JSC$19903_scrollAnimation=new _.HE(function(c){p.scrollTop=c});
_.aG(this,this.JSC$19903_scrollAnimation)};
_.E(N1l,_.Jm);var x$z=function(p){var x=_.qJ(_.J().resolve(_.Q_),function(F){return F.entities.markersEngagementPanelSyncEntity||{}},function(F,N){var h;
F[p.syncEntityKey]!==N[p.syncEntityKey]&&((h=F[p.syncEntityKey])==null?void 0:h.activeItemIndex)!==void 0&&p.updatePanelActiveItem(F[p.syncEntityKey].activeItemIndex)});
p.addOnDisposeCallback(x)},Fgl=function(p){var x=new _.IC(p.onScroll,50,p);
_.aG(p,x);var F=function(){x.fire()};
p.JSC$19903_containerElement.addEventListener("scroll",F);p.addOnDisposeCallback(function(){p.JSC$19903_containerElement.removeEventListener("scroll",F)})};
_.l=N1l.prototype;
_.l.updatePanelActiveItem=function(p){var x=this.getItemByIndex(p);if(x){if(this.setActiveItem(x),this.contentVisible)if(this.browsingMode){var F;((F=this.options)==null?void 0:F.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(p=haU(this),x.offsetTop<this.JSC$19903_containerElement.clientHeight+this.JSC$19903_containerElement.scrollTop&&p&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));l9M(this)}else this.scrollToItem(x)}else _.no(new _.qE("Could not find "+this.supportedSyncItems+
" sync child to set active.",p,this.JSC$19903_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.l.getItemByIndex=function(p){var x;(x=this.renderLazyListItems)==null||x.call(this,p);x=this.JSC$19903_containerElement.querySelectorAll(this.supportedSyncItems);if(x.length>p)return x[p]};
_.l.setActiveItem=function(p){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));p.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=p};
_.l.scrollToItem=function(p){p=this.getScrollPositionForItem(p);this.JSC$19903_containerElement.scrollTop!==p&&this.JSC$19903_scrollAnimation.start(this.JSC$19903_containerElement.scrollTop,p,300)};
_.l.getScrollPositionForItem=function(p){if(this.JSC$19903_containerElement.querySelectorAll(this.supportedSyncItems)[0]===p)return 0;var x,F=((x=this.options)==null?0:x.percentOffset)?this.JSC$19903_containerElement.clientHeight*this.options.percentOffset:0;p=_.A_(p).y+this.JSC$19903_containerElement.scrollTop-(_.A_(this.JSC$19903_containerElement).y+F);return Math.max(0,Math.min(p,this.JSC$19903_containerElement.scrollHeight-this.JSC$19903_containerElement.offsetHeight))};
_.l.onScroll=function(){this.activeItemBelowSyncPosition=haU(this);if(this.activeItem&&!this.JSC$19903_scrollAnimation.isAnimating()&&Math.abs(this.JSC$19903_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var p;switch((p=this.options)==null?void 0:p.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!c95(this));l9M(this);break;default:this.enterBrowsingMode(!0)}}};
_.l.enterBrowsingMode=function(p){var x=this,F,N;return _.D(function(h){if(h.nextAddress==1){if(x.browsingMode)return h.return();x.browsingMode=!0;p&&x.hostElement.classList.add("browsing-mode");x.playerExitBrowsingModeListener=function(){x.exitBrowsingMode(!1)};
return _.q(h,_.xw(),2)}F=h.yieldResult;(N=F)==null||N.addEventListener("SEEK_TO",x.playerExitBrowsingModeListener);_.JB(h)})};
_.l.exitBrowsingMode=function(p){p=p===void 0?!0:p;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),p&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.l.removePlayerSeekListener=function(){var p=this,x,F;return _.D(function(N){if(N.nextAddress==1)return p.playerExitBrowsingModeListener?_.q(N,_.xw(),3):N.jumpTo(0);x=N.yieldResult;(F=x)==null||F.removeEventListener("SEEK_TO",p.playerExitBrowsingModeListener);p.playerExitBrowsingModeListener=void 0;_.JB(N)})};
var l9M=function(p){var x;((x=p.options)==null?void 0:x.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(c95(p)?p.hostElement.classList.remove("browsing-mode"):p.activeItem&&p.hostElement.classList.add("browsing-mode"))},haU=function(p){if(!p.activeItem)return!1;
var x,F=((x=p.options)==null?0:x.percentOffset)?p.JSC$19903_containerElement.clientHeight*p.options.percentOffset:0;return p.activeItem.offsetTop>=p.JSC$19903_containerElement.scrollTop+F},c95=function(p){if(!p.activeItem)return!1;
var x=p.activeItem.offsetTop+14<=p.JSC$19903_containerElement.scrollTop+p.JSC$19903_containerElement.clientHeight;return p.activeItem.offsetTop+p.activeItem.clientHeight-14>=p.JSC$19903_containerElement.scrollTop&&x};
N1l.prototype.panelContentVisibleChanged=function(p){(this.contentVisible=p)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var a9e=function(p,x){p.renderLazyListItems=x};var MrM=function(){var p=_.m.apply(this,arguments)||this;p.browsingMode=!1;p.modern=_.S("web_button_rework");p.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return p};
_.E(MrM,_.m);_.l=MrM.prototype;_.l.activeItemChanged=function(){if(!_.S("synced_panel_scrolling_controller")){var p;((p=this.syncEntity)==null?void 0:p.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.l.created=function(){var p=this;_.S("synced_panel_scrolling_controller")||(this.JSC$19908_scrollAnimation=new _.HE(function(x){p.contents.scrollTop=x}),this.boundExitBrowsingMode=function(){p.exitBrowsingMode(!1)})};
_.l.attached=function(){var p=this;if(_.S("synced_panel_scrolling_controller")&&!this.scrollController){var x,F,N,h;this.scrollController=new N1l(this.contents,this.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(h=(x=this.data)==null?void 0:x.syncModelEntityKey)!=null?h:"default-macro-markers-list-renderer-entity-key",{percentOffset:(F=this.data)==null?void 0:F.selectedItemAlignmentPercentOffset,floatingPillType:(N=this.data)==null?void 0:N.floatingPillType});
a9e(this.scrollController,function(c){p.renderLazyListItems(c)});
this.scrollController.panelContentVisibleChanged(!!this.panelContentVisible)}};
_.l.detached=function(){if(_.S("synced_panel_scrolling_controller")){var p;(p=this.scrollController)==null||p.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.l.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{macroMarkersListItemRenderer:{component:"ytd-macro-markers-list-item-renderer",properties:{useCustomColors:"[[useCustomColors]]"},params:{seekWithAnimationOnClick:!0}},macroMarkersInfoItemRenderer:"ytd-macro-markers-info-item-renderer",itemSectionRenderer:"ytd-item-section-renderer"}}}};
_.l.dataChanged=function(){if(_.S("synced_panel_scrolling_controller")){var p;(p=this.scrollController)==null||p.exitBrowsingMode();var x,F;if((p=this.scrollController)!=null){var N=(F=(x=this.data)==null?void 0:x.syncModelEntityKey)!=null?F:"default-macro-markers-list-renderer-entity-key";p.syncEntityKey=N}var h,c;(x=this.scrollController)!=null&&(F={percentOffset:(h=this.data)==null?void 0:h.selectedItemAlignmentPercentOffset,floatingPillType:(c=this.data)==null?void 0:c.floatingPillType},x.options=
F)}else this.exitBrowsingMode()};
_.l.computeButtonShape=function(){var p=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){p.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.l.computeSyncEnabled=function(p){return!(p==null||!p.syncButtonLabel)};
_.l.renderLazyListItems=function(p){for(var x=this.contents.children,F=0,N=0;N<x.length;N++){var h=void 0;(h=x[N].ytLazyListBehavior)==null||h.fillRemainingListItems();var c=void 0,M=void 0;h=_.r((c=this.data)==null?void 0:(M=c.contents)==null?void 0:M[N],_.IGM);M=c=void 0;if((c=h)==null?0:(M=c.contents)==null?0:M.length)F+=h.contents.length;if(F>=p)break}};
_.l.getItemByIndex=function(p){this.renderLazyListItems(p);var x=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(x.length>p)return x[p]};
_.l.setActiveItem=function(p){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);p.active!==void 0&&(p.active=!0);this.currentActiveItem=p};
_.l.handleSetActivePanelItemAction=function(p){if((p=_.r(p,LAz))&&this.panelTargetId===p.panelTargetId){p=p.itemIndex;if(_.S("synced_panel_scrolling_controller")){var x,F;var N=(F=(x=this.data)==null?void 0:x.syncModelEntityKey)!=null?F:"default-macro-markers-list-renderer-entity-key"}else{var h;N=(h=this.data)==null?void 0:h.syncModelEntityKey}var c;N&&((c=this.syncEntity)==null?void 0:c.activeItemIndex)!==p?this.ytdReduxBehavior.dispatch(_.KV("markersEngagementPanelSyncEntity",N,{key:N,activeItemIndex:p})):
this.updatePanelActiveItem(p)}};
_.l.updatePanelActiveItem=function(p){var x=this.getItemByIndex(p);x?(this.setActiveItem(x),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(x)):_.no(new _.qE("Could not find ytd-macro-markers-list-renderer sync child to set active.",p,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.l.scrollToItem=function(p){p=this.getScrollPositionForItem(p);this.contents.scrollTop!==p&&this.JSC$19908_scrollAnimation.start(this.contents.scrollTop,p,300)};
_.l.getScrollPositionForItem=function(p){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===p)return 0;p=_.A_(p).y+this.contents.scrollTop-_.A_(this.contents).y-this.getStickyHeaderHeight(p);return Math.min(p,this.contents.scrollHeight-this.contents.offsetHeight)};
_.l.getStickyHeaderHeight=function(p){if(p.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var x,F,N;return(N=(x=p.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(F=x.header)==null?void 0:F.offsetHeight)!=null?N:0}return 0};
_.l.onScroll=function(){_.S("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$19908_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.l.enterBrowsingMode=function(){var p=this;return _.D(function(x){if(x.nextAddress==1){if(p.browsingMode)return x.return();p.browsingMode=!0;return _.q(x,_.TO().getPlayerPromise(),2)}p.player=x.yieldResult;p.player.addEventListener("SEEK_TO",p.boundExitBrowsingMode);_.JB(x)})};
_.l.exitBrowsingMode=function(p){this.browsingMode&&(this.browsingMode=!1,(p===void 0||p)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.l.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.l.onSyncClick=function(){if(_.S("synced_panel_scrolling_controller")){var p;(p=this.scrollController)==null||p.exitBrowsingMode()}else this.exitBrowsingMode()};
_.l.panelContentVisibleChanged=function(){if(_.S("synced_panel_scrolling_controller")){var p;(p=this.scrollController)==null||p.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
var xD=MrM;xD.prototype.panelContentVisibleChanged=xD.prototype.panelContentVisibleChanged;xD.prototype.dataChanged=xD.prototype.dataChanged;xD.prototype.activeItemChanged=xD.prototype.activeItemChanged;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],xD.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],xD.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],xD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],xD.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],xD.prototype,"data",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],xD.prototype,"useCustomColors",void 0);_.B([_.H({computed:"computeSyncEnabled(data)"}),_.k("design:type",Boolean)],xD.prototype,"syncEnabled",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],xD.prototype,"panelTargetId",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],xD.prototype,"panelContentVisible",void 0);_.B([_.Ff("#contents"),_.k("design:type",HTMLElement)],xD.prototype,"contents",void 0);_.B([_.Ff("#sync-container"),_.k("design:type",HTMLElement)],xD.prototype,"syncContainer",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],xD.prototype,"browsingMode",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],xD.prototype,"modern",void 0);_.B([_.H({selectorArgs:["data.syncModelEntityKey"],selector:_.SVZ}),_.k("design:type",Object)],xD.prototype,"syncEntity",void 0);_.B([_.W("syncEntity.activeItemIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xD.prototype,"activeItemChanged",null);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xD.prototype,"dataChanged",null);_.B([_.W("panelContentVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xD.prototype,"panelContentVisibleChanged",null);xD=_.B([_.L({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],xD);
_.P(xD,"ytd-macro-markers-list-renderer",function(){if(pwM!==void 0)return pwM;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return pwM=p},{mode:1});var D$e;var f9o=function(){return _.m.apply(this,arguments)||this};
_.E(f9o,_.m);var Fd=f9o;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Fd.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Fd.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Fd.prototype,"data",void 0);Fd=_.B([_.L({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],Fd);
_.P(Fd,"ytd-error-corrections-section-item-renderer",function(){if(D$e!==void 0)return D$e;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return D$e=p},{mode:1});var Kgg;var qdM=function(){return _.m.apply(this,arguments)||this};
_.E(qdM,_.m);qdM.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
var N6=qdM;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],N6.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],N6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],N6.prototype,"data",void 0);N6=_.B([_.L({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],N6);
_.P(N6,"ytd-error-corrections-section-renderer",function(){if(Kgg!==void 0)return Kgg;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Kgg=p},{mode:1});var Ztz;var trM=function(){return _.m.apply(this,arguments)||this};
_.E(trM,_.m);var hO=trM;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],hO.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],hO.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],hO.prototype,"data",void 0);hO=_.B([_.L({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],hO);
_.P(hO,"ytd-topic-link-renderer",function(){if(Ztz!==void 0)return Ztz;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Ztz=p},{mode:1});var d$A;var vF5=function(){var p=_.m.apply(this,arguments)||this;p.modern=_.S("kevlar_modern_sd_v2");p.modernLockupV2=_.S("modernize_structured_description_playlist_lockups_v2");p.modernTypography=_.S("web_modern_typography");return p};
_.E(vF5,_.m);vF5.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",properties:{showSidePanelThumbnailOverlay:"[[modernLockupV2]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
var lF=vF5;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],lF.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],lF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],lF.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],lF.prototype,"modern",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],lF.prototype,"modernLockupV2",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],lF.prototype,"modernTypography",void 0);lF=_.B([_.L({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],lF);
_.P(lF,"ytd-video-description-course-section-renderer",function(){if(d$A!==void 0)return d$A;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return d$A=p},{mode:1});var J9l;var COb=function(){var p=_.m.apply(this,arguments)||this;p.modern=_.S("kevlar_modern_sd_v2");p.modernTypography=_.S("web_modern_typography");return p};
_.E(COb,_.m);COb.prototype.configureRendererStamper=function(){return{"data.files":{id:"file-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.viewAllButton":{id:"view-all-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var cM=COb;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],cM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],cM.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],cM.prototype,"modern",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],cM.prototype,"modernTypography",void 0);
cM=_.B([_.L({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],cM);
_.P(cM,"ytd-video-description-files-section-renderer",function(){if(J9l!==void 0)return J9l;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return J9l=p},{mode:1});var Sde;var r9A=function(){return _.m.apply(this,arguments)||this};
_.E(r9A,_.m);r9A.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{mediaLockupRenderer:"ytd-media-lockup-renderer"}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
var aQ=r9A;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],aQ.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],aQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],aQ.prototype,"data",void 0);aQ=_.B([_.L({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],aQ);
_.P(aQ,"ytd-video-description-gaming-section-renderer",function(){if(Sde!==void 0)return Sde;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Sde=p},{mode:1});var EFl;var XwP=function(){var p=_.m.apply(this,arguments)||this;p.isExpanded=!1;return p};
_.E(XwP,_.m);XwP.prototype.computeHasDefaultMetadataEndpoint=function(p){var x;p=p==null?void 0:(x=p.defaultMetadata)==null?void 0:x.runs;return!(!p||p.length!==1||!p[0].navigationEndpoint)};
XwP.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.R8.Object.defineProperties(XwP.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
var M6=XwP;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],M6.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],M6.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],M6.prototype,"isExpanded",void 0);_.B([_.H({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],M6.prototype,"hasDefaultMetadataEndpoint",void 0);
_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],M6.prototype,"isExpandable",null);_.B([_.w("data","isExpandable","isExpanded"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],M6.prototype,"showExpandedMetadata",null);M6=_.B([_.L({is:"ytd-info-row-renderer",disableElementRegistration:!0})],M6);
_.P(M6,"ytd-info-row-renderer",function(){if(EFl!==void 0)return EFl;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return EFl=p},{mode:1});var gFn;var QDA=function(){var p=_.m.apply(this,arguments)||this;p.currentIndex=0;p.supportComponentResize=!0;p.modern=_.S("kevlar_modern_sd_v2");p.JSC$19934_lastScrollContainerWidth=NaN;return p};
_.E(QDA,_.m);_.l=QDA.prototype;
_.l.configureRendererStamper=function(){return{videoLockups:{id:"items",mapping:{compactVideoRenderer:{component:"ytd-compact-video-renderer",params:{forceOneLineTitle:!0,musicMetadataVideoLockup:!0,hideThumbnail:!0}}},reuseComponents:!1},infoRows:{id:"info-rows",mapping:{infoRowRenderer:"ytd-info-row-renderer"}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundNextClick]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.l.getItemsPath=function(){return"videoLockups"};
_.l.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.l.onIronResize=function(){this.updateVideoLockupStyles()};
_.l.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.l.updateVideoLockupStyles=function(){var p;this.JSC$19934_scrollContainer!==void 0&&(p=this.videoLockups)!=null&&p.length&&(p=this.JSC$19934_scrollContainer.clientWidth,p!==this.JSC$19934_lastScrollContainerWidth&&(this.JSC$19934_lastScrollContainerWidth=p,_.eV(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(p*.8,415)+"px"}),_.hG(this.hostElement,"iron-resize")))};
_.R8.Object.defineProperties(QDA.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var p=[],x;if((x=this.data)==null||!x.carouselLockups)return p;x=_.a(this.data.carouselLockups);for(var F=x.next();!F.done;F=x.next()){F=F.value;var N=void 0;((N=_.r(F,Sen))==null?0:N.videoLockup)&&p.push(_.r(F,Sen).videoLockup)}return p}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.videoLockups)==null||!p.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var p=[],x;if((x=this.data)==null||!x.carouselLockups)return p;var F;return(F=_.r(this.data.carouselLockups[this.scrollCount],Sen))==null?void 0:F.infoRows}}});
var Ds=QDA;Ds.prototype.dataChanged=Ds.prototype.dataChanged;Ds.prototype.onIronResize=Ds.prototype.onIronResize;Ds.prototype.hiddenChanged=Ds.prototype.hiddenChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ds.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Ds.prototype,"componentBehavior",void 0);_.B([_.u(_.$k.YtdHorizontalListBehavior),_.k("design:type",Object)],Ds.prototype,"ytdHorizontalListBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Ds.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ds.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ds.prototype,"inlineStructuredDescription",void 0);_.B([_.H({value:2}),_.k("design:type",Number)],Ds.prototype,"initialCount",void 0);_.B([_.H(),_.k("design:type",Object)],Ds.prototype,"currentIndex",void 0);
_.B([_.H(),_.k("design:type",Number)],Ds.prototype,"scrollCount",void 0);_.B([_.H(),_.k("design:type",Object)],Ds.prototype,"supportComponentResize",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ds.prototype,"contentHidden",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ds.prototype,"modern",void 0);_.B([_.Ff("#scroll-container"),_.k("design:type",HTMLDivElement)],Ds.prototype,"JSC$19934_scrollContainer",void 0);
_.B([_.W("contentHidden"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ds.prototype,"hiddenChanged",null);_.B([_.w("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],Ds.prototype,"videoLockups",null);_.B([_.w("videoLockups"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ds.prototype,"hasVideoLockups",null);_.B([_.V("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ds.prototype,"onIronResize",null);
_.B([_.w("data","scrollCount"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ds.prototype,"infoRows",null);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ds.prototype,"dataChanged",null);Ds=_.B([_.L({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],Ds);
_.P(Ds,"ytd-video-description-music-section-renderer",function(){if(gFn!==void 0)return gFn;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return gFn=p},{mode:_.UQ("kevlar_poly_si_batch_j081")?1:2});var zao;var sDo=function(){var p=_.m.apply(this,arguments)||this;p.modern=_.S("kevlar_modern_sd_v2");p.modernTypography=_.S("web_modern_typography");return p};
_.E(sDo,_.m);sDo.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var fk=sDo;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],fk.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],fk.prototype,"ytRendererBehavior",void 0);_.B([_.H({}),_.k("design:type",Object)],fk.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],fk.prototype,"modern",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],fk.prototype,"modernTypography",void 0);
fk=_.B([_.L({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],fk);
_.P(fk,"ytd-video-description-transcript-section-renderer",function(){if(zao!==void 0)return zao;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return zao=p},{mode:1});var nFA;_.o7(_.mO(function(p){var x=_.MN(_.Bhw,function(){return p.data().firstProviderLinkStatusEntityKey}),F=_.MN(_.Bhw,function(){return p.data().secondProviderLinkStatusEntityKey}),N=function(){var h,c;
return((h=x())==null?void 0:h.linked)||((c=F())==null?void 0:c.linked)};
return _.Z("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.Z(_.KQ,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return p.data().sectionTitle}}),_.Z(_.KQ,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return N()?p.data().connectedMessage:p.data().notConnectedMessage}}),_.Z(_.D9,{cond:N,
then:function(){return _.Z(_.Es,{data:function(){return p.data().connectedButton}},{buttonViewModel:function(h){return _.Z(_.nV,{data:h.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.Z(_.D9,{cond:function(){return!N()},
then:function(){return _.Z(_.Es,{data:function(){return p.data().notConnectedButton}},{buttonViewModel:function(h){return _.Z(_.nV,{data:h.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Rh"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.G2}});_.o7(_.mO(function(p){var x=p.data;return _.Z("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.Z("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.Z(_.KQ,{text:function(){return x().sectionTitle}})),_.Z("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.Z(_.KQ,{text:function(){return x().bodyHeader}})),_.Z("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.Z(_.KQ,{text:function(){return x().bodyText}})),_.Z(_.D9,
{cond:function(){return x().attributionText},
then:function(){return _.Z("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.Z(_.KQ,{text:function(){return x().attributionText}}))}}))},"Sh"),"how-this-was-made-section-view-model",{props:{data:_.G2}});_.o7(_.mO(function(p){return _.Z("yt-video-description-youchat-section-view-model",{class:_.$L("ytVideoDescriptionYouchatSectionViewModelHost")},_.Z("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.Z(_.KQ,{text:function(){return p.data().sectionTitle}})),_.Z("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.Z(_.KQ,{text:function(){return p.data().subHeaderText}})),_.Z("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.Z(_.nV,{data:function(){return _.r(p.data().primaryButton,
_.X6)}})))},"Th"),"yt-video-description-youchat-section-view-model",{props:{data:_.G2}});var y96=function(){var p=_.m.apply(this,arguments)||this;p.modern=_.S("kevlar_modern_sd_v2");p.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return p};
_.E(y96,_.m);_.l=y96.prototype;
_.l.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{videoDescriptionHeaderRenderer:{component:"ytd-video-description-header-renderer",properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[watchWhileSdp]]",engagementPanel:"[[engagementPanel]]"}},expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{panelContentVisible:"[[panelContentVisible]]",hasDescriptionOnly:"[[hasDescriptionOnly]]",engagementPanel:"[[engagementPanel]]",
shortsPanel:"[[shortsPanel]]"}},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{engagementPanelContent:!0}},merchandiseShelfRenderer:"ytd-merch-shelf-renderer",videoDescriptionCourseSectionRenderer:"ytd-video-description-course-section-renderer",videoDescriptionFilesSectionRenderer:"ytd-video-description-files-section-renderer",
videoDescriptionTranscriptSectionRenderer:"ytd-video-description-transcript-section-renderer",videoDescriptionFantasySectionViewModel:"ytw-video-description-fantasy-section-view-model",videoDescriptionGamingSectionRenderer:"ytd-video-description-gaming-section-renderer",videoDescriptionInfocardsSectionRenderer:{component:"ytd-video-description-infocards-section-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoDescriptionMusicSectionRenderer:{component:"ytd-video-description-music-section-renderer",
properties:{inlineStructuredDescription:"[[inlineStructuredDescription]]"}},errorCorrectionsSectionRenderer:"ytd-error-corrections-section-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},shelfRenderer:"ytd-shelf-renderer",courseProgressViewModel:"yt-course-progress-view-model",howThisWasMadeSectionViewModel:"how-this-was-made-section-view-model",videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoDescriptionYouchatSectionViewModel:"yt-video-description-youchat-section-view-model"}},
videoSummary:{id:"video-summary",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},merchShelf:{id:"merch-shelf",mapping:{merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",params:{watchMetadataRefresh:!0,inStructuredDescription:!0}}}}}};
_.l.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.l.dataChanged=function(){var p,x;this.hasDescriptionOnly=!(((p=this.data)==null?void 0:(x=p.items)==null?void 0:x.length)!==1||!_.r(this.data.items[0],rBe))};
_.l.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.l.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.l.autoFocusDescription=function(){var p;((p=_.J().resolve(_.Bw(_.dR)))==null?0:p.isKeyBoardInUse())&&this.description&&_.on(this.description)};
_.l.resize=function(){if(_.S("kevlar_disable_sd_resize"))this.JSC$19942_cardList&&_.hG(this.JSC$19942_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.hG(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.hG(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.l.scrollToSection=function(p){if(p=this.getSectionElement(p))_.lA(this.hostElement,"yt-scroll-to-watch-element",[p]),p.focus()};
_.l.getSectionElement=function(p){switch(p){case "infocards-item-section":var x;return(x=this.infocardsSection)!=null?x:null;case "transcript-item-section":var F;return(F=this.transcriptSection)!=null?F:null;case "how-this-was-made-section-item-section":var N;return(N=this.howThisWasMadeSection)!=null?N:null;case "files-item-section":var h;return(h=this.filesSection)!=null?h:null;default:return null}};
_.l.handleSetActiveItemAction=function(p){var x=_.r(p,LAz),F=x&&(x==null?void 0:x.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$19942_cardList;if(x&&F){p=this.currentActiveChapter;var N=this.currentActiveProblem;x=F==null?void 0:F.getItemByIndex(x.itemIndex);var h=F=!0;x&&(x.active=!0,x.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(F=p!==x,h=!1,this.currentActiveChapter=x):(x==null?void 0:x.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(F=!1,h=N!==x,this.currentActiveProblem=x));p&&F&&(p.active=!1);N&&h&&(N.active=!1)}};
_.R8.Object.defineProperties(y96.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.S("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
var Kk=y96;Kk.prototype.onYtExpanderMoreTapped=Kk.prototype.onYtExpanderMoreTapped;Kk.prototype.onHiddenChanged=Kk.prototype.onHiddenChanged;Kk.prototype.dataChanged=Kk.prototype.dataChanged;Kk.prototype.panelContentVisibleChanged=Kk.prototype.panelContentVisibleChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Kk.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Kk.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Kk.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.n7),_.k("design:type",Object)],Kk.prototype,"ironResizableBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Kk.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Boolean)],Kk.prototype,"panelContentVisible",void 0);_.B([_.H(),_.k("design:type",Boolean)],Kk.prototype,"hasDescriptionOnly",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Kk.prototype,"inlineStructuredDescription",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Kk.prototype,"hidden",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Kk.prototype,"shortsPanel",void 0);_.B([_.H(),_.k("design:type",Object)],Kk.prototype,"videoSummary",void 0);_.B([_.H(),_.k("design:type",Object)],Kk.prototype,"merchShelf",void 0);
_.B([_.w("videoSummary"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Kk.prototype,"showVideoSummary",null);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Kk.prototype,"modern",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Kk.prototype,"engagementPanel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Kk.prototype,"watchWhileSdp",void 0);
_.B([_.Ff("ytd-expandable-video-description-body-renderer"),_.k("design:type",Object)],Kk.prototype,"description",void 0);_.B([_.Ff("ytd-horizontal-card-list-renderer"),_.k("design:type",Object)],Kk.prototype,"JSC$19942_cardList",void 0);_.B([_.Ff("ytd-horizontal-card-list-renderer[center-items]"),_.k("design:type",Object)],Kk.prototype,"problemWalkthroughCardList",void 0);_.B([_.Ff("ytd-shelf-renderer"),_.k("design:type",Object)],Kk.prototype,"shelfSection",void 0);
_.B([_.Ff("ytd-video-description-music-section-renderer"),_.k("design:type",Object)],Kk.prototype,"musicMetadataSection",void 0);_.B([_.Ff("ytd-video-description-infocards-section-renderer"),_.k("design:type",Object)],Kk.prototype,"infocardsSection",void 0);_.B([_.Ff("ytd-video-description-transcript-section-renderer"),_.k("design:type",Object)],Kk.prototype,"transcriptSection",void 0);
_.B([_.Ff("how-this-was-made-section-view-model"),_.k("design:type",Object)],Kk.prototype,"howThisWasMadeSection",void 0);_.B([_.Ff("ytd-video-description-files-section-renderer"),_.k("design:type",Object)],Kk.prototype,"filesSection",void 0);_.B([_.W("panelContentVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Kk.prototype,"panelContentVisibleChanged",null);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Kk.prototype,"dataChanged",null);_.B([_.W("hidden"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Kk.prototype,"onHiddenChanged",null);_.B([_.V("yt-expander-more-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Kk.prototype,"onYtExpanderMoreTapped",null);
Kk=_.B([_.L({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],Kk);
_.P(Kk,"ytd-structured-description-content-renderer",function(){if(nFA!==void 0)return nFA;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return nFA=p},{mode:2});var btA;var A9A;var uGl=function(){return _.m.apply(this,arguments)||this};
_.E(uGl,_.m);uGl.prototype.computeAriaLabel=function(p){var x,F;return(p==null?void 0:(x=p.accessibility)==null?void 0:(F=x.accessibilityData)==null?void 0:F.label)||_.JG("LOADING",void 0,"Loading")};
var q6=uGl;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],q6.prototype,"data",void 0);_.B([_.H({computed:"computeAriaLabel(data)"}),_.k("design:type",String)],q6.prototype,"ariaLabel",void 0);q6=_.B([_.JZ({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],q6);
_.P(q6,"yt-content-loading-renderer",function(){if(A9A===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;btA===void 0&&(btA=document.createElement("template"));var N=btA;F.call(x,N.content.cloneNode(!0),p.content.firstChild);A9A=p}p=A9A;return p},{mode:_.UQ("kevlar_poly_si_batch_j043")?1:2});var YdU=_.mO(function(p){var x=p.data;p=_.oc();_.oC(p,function(){return x().rendererContext});
var F=function(){var N;return _.H2((N=x())==null?void 0:N.rendererContext)};
return _.Z("content-list-item-view-model",{el:p,class:"ytContentListItemViewModelHost",role:function(){return F()?"listitem":void 0},
tabindex:function(){return F()?0:void 0}},_.Z("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.Z("div",{class:"ytContentListItemViewModelImageContainer"},_.Z(_.D9,{cond:function(){return x().image},
then:function(N){return _.Z(_.VE,{data:N,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.Z(_.Es,{data:function(){var N;
return(N=x())==null?void 0:N.avatar}},{avatarViewModel:_.bt})),_.Z("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.Z("div",{class:"ytContentListItemViewModelTitle"},_.Z(_.KQ,{text:function(){return x().title}})),_.Z("div",{class:"ytContentListItemViewModelMetadata"},_.Z(_.Es,{data:function(){return x().metadata}},{contentMetadataViewModel:function(N){return _.Z(_.GbC,{data:N.data,
layout:1})}})))),_.Z("div",{class:"ytContentListItemViewModelActionButton"},_.Z(_.Es,{data:function(){var N;
return(N=x())==null?void 0:N.actionButton}},{buttonViewModel:_.nV,
toggleButtonViewModel:_.QP})))},"Uh");_.o7(_.mO(function(p){var x=_.a(_.hu(!1,void 0,"WbYeXc")),F=x.next().value,N=x.next().value;x=_.a(_.hu(!1,void 0,"msXkzc"));var h=x.next().value,c=x.next().value;_.J9(function(){var K=_.r(p.data().collaboratePlaylistCollaborationSetting,DFg);K&&N(K.switchedOnByDefault);var t=_.r(p.data().allowNewCollaboratorsPlaylistCollaborationSetting,DFg);t&&c(t.switchedOnByDefault);if(!K&&!t||!K&&p.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")N(!0),c(!0)});
var M=function(K){N(K);c(K);var t=p.data().playlistCollaborationEntityKey||"";var d=_.u8().getState();(d=_.M4(d.entities,"playlistCollaborationEntity",t))&&(d==null?void 0:d.isCollaborative)===K||_.u8().dispatch(_.KV("playlistCollaborationEntity",t,Object.assign({},d,{isCollaborative:K})))},f=function(K){c(K)};
return _.Z("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.Z("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.Z(_.Es,{data:function(){return p.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(K){return _.Z(_.OkD,{data:K.data,
onSwitch:M})}})),_.Z(_.D9,{cond:F,
then:function(){return _.Z("div",null,_.Z("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.Z(_.Es,{data:function(){return p.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(K){return _.Z(_.OkD,{data:K.data,
onSwitch:f,overrideDisabled:!1})}})),_.Z(_.D9,{cond:h,
then:function(){return _.Z("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.Z(_.Es,{data:function(){return p.data().copyLinkButton}},{buttonViewModel:_.nV}))}}),_.Z("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.Z(_.Es,{data:function(){return p.data().playlistCollaborators}},{contentListItemViewModel:YdU})))}}))},"Vh"),"playlist-collaboration-view-model",{props:{data:_.G2}});var wwA=_.mO(function(p){var x=p.data;var F=p.customCommandResolver;return _.Z(_.TG,null,_.Z("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.Z(_.Es,{data:function(){return x().adAvatar}},{adAvatarViewModel:function(N){return _.Z(_.OGB,{data:N.data,
customCommandResolver:F})}})),_.Z("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.Z(_.D9,{cond:function(){return x().headline},
then:function(N){return _.Z(_.KQ,{text:N,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.Z("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.Z(_.Es,{data:function(){return x().adBadge}},{adBadgeViewModel:function(N){return _.Z(_.fS,{data:N.data,
hasDot:function(){return x().primaryDetailsLine!==void 0},
customCommandResolver:F,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.Z(_.Es,{data:function(){return x().primaryDetailsLine}},{adDetailsLineViewModel:function(N){return _.Z(_.KS,{data:N.data,
customCommandResolver:F,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Wh"),GnU=_.mO(function(p){var x=p.data;
var F=p.customCommandResolver;p=_.oc();_.B2(p,function(){return x().interaction},F);
_.U$(p,{visibilityCallback:function(N){var h,c=(h=x().interaction)==null?void 0:h.onFirstVisible;N&&c&&_.su(c)},
showOption:_.li});return _.Z("ad-avatar-lockup-view-model",{class:function(){var N;return((N=x().interaction)==null?0:N.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:p,"aria-label":function(){var N,h;return(N=x().interaction)==null?void 0:(h=N.accessibility)==null?void 0:h.label}},_.Z(_.q$,null,_.Z(_.Kt,{when:function(){return x().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.Z(wwA,{data:x,
customCommandResolver:F})}),_.Z(_.mzB,null,function(){return null})))},"Xh");_.o7(_.mO(function(p){var x=p.data;var F=p.panelContentVisibility;p=_.oc();_.B2(p,function(){return x().interaction},kXz);
_.U$(p,{visibilityCallback:function(h){var c,M=(c=x().interaction)==null?void 0:c.onFirstVisible;h&&M&&_.su(M)},
showOption:_.li});_.SO(function(){var h,c;if(c=_.A9("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var M;c=(M=c())==null?void 0:M.onLayoutVisibleCallback}else c=null;(h=c)==null||h()});
var N=function(){return F()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.Z("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:p},_.Z("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.Z("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.Z(_.D9,{cond:_.Rpp("(min-width: "+((0,_.zQ)()+_.oH)+"px) or (max-width: 600px)"),then:function(){return _.Z(_.Es,{data:function(){return x().adImage}},{adImageViewModel:function(h){return _.Z(_.tj,{data:h.data,
targetHeight:80,customCommandResolver:kXz})}})}})),_.Z("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.Z("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.Z(_.Es,{data:function(){return x().adAvatarLockup}},{adAvatarLockupViewModel:function(h){return _.Z(GnU,{data:h.data,
customCommandResolver:kXz})}})),_.Z(_.D9,{cond:N,
then:function(){return _.Z(_.Es,{data:function(){return x().adButton}},{adButtonViewModel:function(h){return _.Z(_.aK,{data:h.data,
customCommandResolver:kXz})}})},
else:function(){return _.Z(_.Es,{data:function(){return x().menu}},{buttonViewModel:_.nV})}}),_.Z("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.Z(_.Es,{data:function(){var h=_.r(x().toggleButton,_.gR);
return{toggleButtonViewModel:Object.assign({},h,{isTogglingDisabled:!0,isToggled:N()})}}},{toggleButtonViewModel:_.QP})))))},"Yh"),"panel-ad-header-image-lockup-view-model",{props:{data:_.G2,
panelContentVisibility:_.G2}});var VrA=_.mO(function(p){var x=p.thumbsUp;p=p.thumbsDown;var F=_.a(_.hu(!1,void 0,"OxPsH")),N=F.next().value,h=F.next().value;F=_.a(_.hu(!1,void 0,"V5vWne"));var c=F.next().value,M=F.next().value;return _.Z("div",{class:"ytwThumbsUpDownThumbs"},_.Z(_.QP,{data:x,onToggle:function(f){h(f);c()&&M(!1)},
buttonShapeOverrides:function(){return{toggled:N()}}}),_.Z(_.QP,{data:p,
onToggle:function(f){M(f);N()&&h(!1)},
buttonShapeOverrides:function(){return{toggled:c()}}}))},"Zh");
VrA.idomCompat=!0;var HtP=_.mO(function(p){var x=function(){return p.data().pendingStateEntityKey||""},F=_.MN(UH5,x),N=function(){var h;
if(!(h=p.disabled())){var c;h=!((c=F())==null||!c.isPendingResponse)}return h};
return _.Z("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.Z(_.ft,{each:function(){return p.data().chipData||[]},
keyBy:"REFERENCE"},function(h){return _.Z(WgE,{data:h,disabled:N,pendingStateKey:x,onError:p.onError})}))},"$h"),WgE=_.mO(function(p){var x=_.oc(),F=_.a(_.hu(!0,void 0,"HBREAe")),N=F.next().value,h=F.next().value,c=function(){return p.data().text.content},M=_.h0(function(f){var K,t,d,v,C,X,Q,b;
return _.D(function(A){switch(A.nextAddress){case 1:f.stopPropagation();if(p.disabled())return A.return();t=String(Math.floor(((K=_.J().resolve(_.pV)())==null?void 0:K.getCurrentTime())||0)*1E3);d="youchat-"+Date.now();v=function(){_.QE(p.data().onClick||{});var Y=_.xl({continuationCommand:{token:p.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}),O={inputComposerFormData:{clientMessageId:d,playerOffsetMs:t}};return new Promise(function(Fw,R){_.QE(Y,{form:{formData:O},commandController:{onSuccess:function(ld,
pp){Fw(pp)},
onServerError:function(ld,pp){R(pp.error)}}})})};
C=i8P(p.pendingStateKey());C(!0);z8E("#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");h(!1);_.KM(A,2);return _.q(A,v(),4);case 4:_.ub(A,3);break;case 2:X=_.v9(A),(b=(Q=p).onError)==null||b.call(Q,X);case 3:C(!1),_.JB(A)}})});
return _.Z(_.D9,{cond:N,then:function(){return _.Z("div",{class:"ytwYouChatChipsDataChipWrapper"},_.Z("button",{el:x,class:"ytwYouChatChipsDataChip","data-disabled":p.disabled,"on:click":M,tabindex:0},c))}})},"ai");var m$A=_.mO(function(p){var x=p.data;return _.Z("yt-conversation-resource-view-model",{class:_.$L("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.Z(_.D9,{cond:function(){var F;return(F=x().conversationResourceData)==null?void 0:F.learningGuideData},
then:function(F){return _.Z(_.ft,{each:function(){return F().sectionData||[]}},function(N){return _.Z("div",{class:"ytConversationResourceViewModelHostSectionContainer"},_.Z(_.KQ,{text:function(){return N.timestamp},
className:"ytConversationResourceViewModelHostTimestampText"}),_.Z("div",{class:"ytConversationResourceViewModelHostSectionTextContainer"},_.Z(_.KQ,{text:function(){return N.title},
className:"ytConversationResourceViewModelHostTitleText"}),_.Z(_.KQ,{text:function(){return N.summary},
className:"ytConversationResourceViewModelHostSummaryText"})))})}}))},"bi");
m$A.idomCompat=!0;var oFz={animationConfig:{autoplay:!1,loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}},OtM=_.mO(function(p){var x=function(){var A;return(A=p.data().text)==null?void 0:A.content},F=function(){var A,Y;
return(A=p.data().webData)==null?void 0:(Y=A.textResult)==null?void 0:Y.content},N=_.J().resolve(_.YL),h=_.F6(),c=function(){return p.data().chatResponseStyle},M=function(){var A;
return p.data().webData||((A=p.data().text)==null?void 0:A.content)||p.data().videoResultsData||p.data().conversationResourceViewModel},f=function(){var A;
return(A=p.data().videoResultsData)==null?void 0:A.videoShelf},K=function(){var A;
return _.r(((A=p.data().videoResultsData)==null?void 0:A.videoShelf)||{},MiM)},t=function(){var A;
return(A=p.data().webData)==null?void 0:A.sourcesShelf},d=function(){var A;
return _.r(((A=p.data().webData)==null?void 0:A.sourcesShelf)||{},MiM)},v=function(){return _.r(p.data().conversationResourceViewModel||{},X9P)},C=function(){return c()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||c()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:p.data().thumbsDownViewModel&&p.data().thumbsUpViewModel},X=function(){return _.r(p.data().thumbsUpViewModel,_.gR)},Q=function(){return _.r(p.data().thumbsDownViewModel,_.gR)};
_.d1(function(){requestAnimationFrame(function(){var A;(A=p.shouldAnimateIcon)!=null&&A.call(p)&&e8U(h.lottieEl)})});
var b={};return _.Z("you-chat-item-view-model",{class:_.$L("ytwYouChatItemViewModelYouChatItemViewModel",(b.ytwYouChatItemViewModelHostNoPadding=function(){return!1},b)),
"data-target-id":function(){return p.data().id||""}},_.Z(_.D9,{cond:M,
then:function(){var A={};return _.Z("div",{"aria-hidden":"true"},_.Z(_.e6,{className:_.$L("ytwYouChatItemViewModelIcon",(A.ytwYouChatItemViewModelRtl=N==="rtl",A.ytwYouChatItemViewModelHidden=function(){return!(p.data().hideIcon||c()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||c()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:M())},A)),
animationName:function(){return oFz.animationConfig.name},
data:oFz,animationRef:h}))}}),_.Z(_.D9,{cond:M,
then:function(){var A={};return _.Z("div",{class:_.$L("ytwYouChatItemViewModelHost",(A.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return c()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},A.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return c()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},A.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return c()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},A)),
role:"alert"},_.Z(_.D9,{cond:x,then:function(Y){return _.Z(_.r3,{text:Y})}}),_.Z(_.D9,{cond:F,
then:function(Y){return _.Z(_.r3,{text:Y})}}),_.Z(_.D9,{cond:f,
then:function(){return _.Z("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.Z(_.SJ,{data:K,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.Z(_.D9,{cond:t,
then:function(){return _.Z("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.Z(_.SJ,{data:d,hasPeek:!0,disableArrows:!1}))}}),_.Z(_.D9,{cond:v,
then:function(){return _.Z(m$A,{data:v})}}),_.Z(_.D9,{cond:C,
then:function(){return _.Z(VrA,{thumbsUp:X,thumbsDown:Q})}}))}}),_.Z(_.D9,{cond:function(){return p.data().chipsData},
then:function(A){return _.Z(HtP,{data:A,disabled:p.pending,onError:p.onError})}}))},"ci");
OtM.idomCompat={callbacks:{onError:!0,onSend:!0}};var jDE=_.mO(function(p){var x=function(){return p.data().choiceSelectedText};
return _.Z("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.Z(_.D9,{cond:x,then:function(){return _.Z("div",{class:"ytYouChatUserTurnChoiceSelected"},_.Z(_.KQ,{text:x}))}}),_.Z("div",{class:"ytYouChatUserTurnUserMessage"},function(){return p.data().text}))},"di");var LgU=_.mO(function(p){var x=_.a((0,_.mXm)(p.data)).next().value;return _.Z("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return p.data().targetId||""}},_.Z(_.Es,{data:function(){return x().contents}},{chatLoadingViewModel:_.Zrm,
youChatItemViewModel:function(F){return _.Z(OtM,{data:F.data,pending:!1})},
chatUserTurnViewModel:function(F){return _.Z(jDE,{data:F.data})},
accordionViewModel:function(F){return _.Z(_.Nkm,{data:F.data})},
learningJourneyLoaderViewModel:function(F){return _.Z(_.eBZ,{data:F.data})}}))},"ei");_.o7(_.mO(function(p){var x=_.a((0,_.mXm)(p.data)).next().value;return _.Z("yt-section-list-renderer",{class:_.$L("ytSectionListRendererHost",p.className),"data-target-id":function(){return p.data().targetId||""}},_.Z(_.Es,{data:function(){return x().contents}},{itemSectionRenderer:LgU}))},"fi"),"yt-section-list-renderer",{props:{data:_.G2,
className:_.mJ}});_.o7(_.mO(function(p){var x=function(){return _.r(p.data().inputComposerViewModel,fCU)},F=function(){var A;
return((A=x())==null?void 0:A.youchatPendingResponseEntityKey)||""},N=_.MN(UH5,F),h=function(){var A;
return!((A=N())==null||!A.isPendingResponse)},c=_.a(_.hu(!0,void 0,"DR0q1d")),M=c.next().value,f=c.next().value,K=function(){return x().sectionTargetId||"youchat_messages_section"};
c=_.O$();var t=_.oc(),d=_.MN(I8b,"chat_input_view_model_state"),v=$H6(),C=function(){var A;return!((A=d())==null||!A.value)};
_.J9(function(){var A;!C()&&((A=x())==null?0:A.welcomeFeatureContinuation)&&(A=_.xl({continuationCommand:{token:x().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}),_.QE(A),v(!0));var Y=K(),O;(O=_.J().resolve(_.Bw(_.hA)))==null||O.addEventListener("yt-navigate-start",function(){_.CV.remove(Y);v(!1)},{once:!0})});
var X=_.h0(function(A){var Y=h()||!1;pzK(t.value);Y||A.key!=="Enter"||A.shiftKey||(A.preventDefault(),b());return!1}),Q=_.h0(function(){f(t.value.value.length===0);
return!1}),b=function(){var A,Y,O,Fw,R,ld,pp,Kp,sM;
return _.D(function(np){A=t.value.value;t.value.value="";pzK(t.value);Y=xMP(K(),A);_.QE(Y);O=i8P(F());_.su(((Fw=x())==null?void 0:Fw.onSubmitCommand)||{});O(!0);ld=String(Math.floor(((R=_.J().resolve(_.pV)())==null?void 0:R.getCurrentTime())||0)*1E3);Kp=_.xl({continuationCommand:{token:(pp=x())==null?void 0:pp.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}});sM=_.xl({inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:A,playerOffsetMs:ld}});_.QE(Kp,{form:{formData:sM},
commandController:{onSuccess:function(){O(!1)},
onServerError:function(){var Jz=K();_.QE({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:Jz}}]}}});O(!1)}}});
_.JB(np)})};
return _.Z("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:c},_.Z("div",{class:"chatInputViewModelChatInputWrapper"},_.Z("form",{class:"chatInputViewModelChatInputForm"},_.Z("textarea",{class:"chatInputViewModelChatInput",el:t,"on:keydown":X,"on:keyup":Q,placeholder:function(){var A,Y;var O=_.r((Y=x())==null?void 0:Y.inputFormField,oEo);return O==null?void 0:(A=O.contentProperties)==null?void 0:A.placeholderText},
rows:1}),_.Z(_.nV,{data:function(){return _.r(p.data().sendButton,_.X6)},
onClick:function(A){A.preventDefault();b();f(t.value.value.length===0)},
buttonOverrides:function(){return{disabled:M()||h()}}})),_.Z(_.KQ,{className:"chatInputViewModelChatDisclaimer",
text:function(){var A;return(A=_.r(p.data().disclaimer,_.O4k))==null?void 0:A.text}})))},"gi"),"yt-chat-input-view-model",{props:{data:_.G2}});var PO6=["engagement-panel-clip-create","engagement-panel-clip-view"],T1z=0,B1E=function(){var p=_.m.apply(this,arguments)||this;var x;p.headerData=(x=p.data)==null?void 0:x.header;p.darkerPanels=_.S("web_watch_darker_panels");p.disableAutoFill=!1;p.isFullscreen=!1;p.modernPanels=_.S("kevlar_watch_modern_panels");p.liveChatReplyPanel=!1;p.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");p.disableBackdropFilter=_.S("web_disable_backdrop_filter");p.trackEngagementPanelVisibility=_.S("web_watch_track_engagement_panel_visibility");
p.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 p};
_.E(B1E,_.m);_.l=B1E.prototype;
_.l.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},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(p){p=
p==null?void 0:p.contents;if(!p||p.length<1)return"ytd-section-list-renderer";var x,F;p=(x=p[0])==null?void 0:(F=x.itemSectionRenderer)==null?void 0:F.contents;if(!p||p.length<1)return"ytd-section-list-renderer";var N;return((N=p[0])==null?0:N.youChatItemViewModel)?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.l.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var p;if((p=this.hostElement.parentElement)==null?0:p.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.l.detached=function(){this.updateTheaterDisablement()};
_.l.showPanel=function(){var p=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.E0.addJob(function(){p.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.l.maybeScrollToItemSection=function(p){var x=this,F,N=p==null?void 0:(F=p.sectionListEngagementPanelExtras)==null?void 0:F.scrollToItemSectionIdentifier;N&&_.E0.addJob(function(){var h;(h=x.sectionListRendererElement)==null||h.scrollToItemSection(N)},8)};
_.l.hidePanel=function(){var p=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.E0.addJob(function(){p.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.l.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.l.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.l.updatePanel=function(p,x,F,N){var h=this;if((p=p==null?void 0:p.engagementPanelSectionListRenderer)||N){if(p){N=p.header;var c=p.content,M=p.footer;(p=p.targetId)&&this.set("data.targetId",p);N&&this.set("data.header",N);c&&this.set("data.content",c);M&&this.set("data.footer",M)}else N&&(p=N.content,c=N.secondaryHeaderContent,(N=N.targetId)&&this.set("data.targetId",N),p&&this.set("data.content",p),c&&(this.secondaryHeaderData=c));this.updateChildVisibilityProperties();if(x){var f;_.S("kevlar_update_panel_focus_scroll_killswitch")||
(f={preventScroll:!0});this.focus(f)}_.jB(this,function(){_.hG(h.hostElement,"yt-refit");h.maybeScrollToItemSection(F)})}};
_.l.computeHeaderData=function(){var p,x=(0,_.Q5.unsafeClone)((p=this.data)==null?void 0:p.header);if(x){p=new _.U(Object.keys(x)[0]);var F=_.r(x,p),N=_.r(this.secondaryHeaderData,p);N&&_.Cr(x,p,Object.assign({},N,F))}return x};
_.l.getReloadContinuation=function(){var p,x,F,N=_.a(((p=this.data)==null?void 0:(x=p.content)==null?void 0:(F=x.sectionListRenderer)==null?void 0:F.continuations)||[]);for(p=N.next();!p.done;p=N.next())if(p=p.value,p.reloadContinuationData)return p.reloadContinuationData.continuation};
_.l.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var p;((p=this.data)==null?0:p.targetId)&&(p=this.contentElement.firstElementChild)&&p.setAttribute("panel-target-id",this.data.targetId)};
_.l.forwardPopupClosedToFlowRootRenderer=function(){var p=_.n(this.hostElement).querySelector("ytd-flow-root-renderer");if(p)p.onPopupClosed()};
_.l.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));if(_.S("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"){var p;this.visibility=(p=this.data)==null?void 0:p.visibility;var x;this.trackEngagementPanelVisibility&&((x=this.data)==null?void 0:x.visibility)===
"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var F,N,h,c;this.contentEmpty=!!(((F=this.data)==null?0:(N=F.content)==null?0:N.structuredDescriptionContentRenderer)&&Object.keys((h=this.data)==null?void 0:(c=h.content)==null?void 0:c.structuredDescriptionContentRenderer).length===0);(p=_.J().resolve(_.Xm))&&p.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",
this.visibility=this.data.visibility};
_.l.isFullscreenChanged=function(){this.isFullscreen&&_.S("web_watch_close_eps_on_fullscreen")&&this.hidePanel()};
_.l.focus=function(p){if(this.header)this.header.focus(p);else{var x;(x=_.n(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||x.focus(p)}};
_.l.visibilityChanged=function(){if(!_.S("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var p=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",x=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",F=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",N=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",h=N||!this.lastVisibility,c,M,f=(c=this.data)==null?void 0:(M=c.identifier)==null?void 0:M.tag,
K;if(((K=this.data)==null?0:K.onShowCommands)&&p&&h)_.Kc(this.hostElement,this.data.onShowCommands,this.hostElement),f&&_.Bi().dispatch(_.F4({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:f}}));else{var t;((t=this.data)==null?0:t.onHideCommands)&&x&&F&&(_.Kc(this.hostElement,this.data.onHideCommands,this.hostElement),f&&_.Bi().dispatch(_.F4({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:f}})))}p&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*T1z++));_.S("kevlar_watch_focus_on_engagement_panels")&&
p&&N&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.l.notifyVisibilityChanged=function(p){var x;_.Mt(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,p,(x=this.data)==null?void 0:x.targetId])};
_.l.updateTheaterDisablement=function(){if(!_.S("kevlar_watch_theater_disablement_killswitch")){var p=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&PO6.includes(p)&&!_.S("watch_next_grid_ignore_disallowed_panels")){var x=_.gQ(_.Bi().getState()),F=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";p!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():F?(this.originalTheaterState===void 0&&(this.originalTheaterState=x,this.theaterDisablementPanelIdentifier=
p),x&&_.lA(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.l.clearTheaterDisablement=function(){_.lA(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.l.updateChildVisibilityProperties=function(){this.hostElement||_.S("kevlar_panel_property_init_killswitch")||this._enableProperties();var p=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=p);var x,F=(x=this.headerElement)==null?void 0:x.firstElementChild;if(F&&!this.adHeaderImageLockupViewModel){x=p==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";F.collapsed=x;F=_.n(F).querySelector("#visibility-button");if(!F)return;(F=F.firstElementChild)&&
F.polymerController.is==="ytd-toggle-button-renderer"&&F.polymerController.data.isToggled!==x&&F.polymerController.set("data.isToggled",x)}var N;if(x=(N=this.contentElement)==null?void 0:N.firstElementChild)if(p&&p!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")x.removeAttribute("panel-content-visible");else{x.setAttribute("panel-content-visible","");var h;(h=x.markDirty)==null||h.call(x)}};
_.l.onYtChangeEngagementPanelVisibilityAction=function(p){var x=this,F,N=(F=this.data)==null?void 0:F.targetId,h,c,M;F=((h=this.data)==null?void 0:(c=h.identifier)==null?void 0:c.tag)||((M=this.data)==null?void 0:M.panelIdentifier);var f=_.r(p,_.emn),K;p=N&&(f==null?void 0:f.targetId)===N||F&&(f==null?void 0:(K=f.panelIdentifier)==null?void 0:K.tag)===F;this.dialog&&p&&(f==null?void 0:f.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(N==="engagement-panel-comments-section"?_.lA(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.lA(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",F]));N=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";K=this.isFullscreen&&_.S("kevlar_single_panel_fullscreen");N=!p&&(f==null?void 0:f.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&!N&&K;_.S("kevlar_use_engagement_panel_management_component")||(p?(N=f.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&
!N?_.E0.addJob(function(){x.visibility=f.visibility},2,this.hideDelayMs):this.visibility=f.visibility,f.visibility&&this.notifyVisibilityChanged(f.visibility)):N&&this.hidePanel())};
_.l.onYtScrollToEngagementPanelCommand=function(p){var x,F=(x=this.data)==null?void 0:x.targetId,N,h,c;x=((N=this.data)==null?void 0:(h=N.identifier)==null?void 0:h.tag)||((c=this.data)==null?void 0:c.panelIdentifier);p=_.r(p,_.f7B);var M;(F&&(p==null?void 0:p.targetId)===F||x&&(p==null?void 0:(M=p.panelIdentifier)==null?void 0:M.tag)===x)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.lA(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.l.attachVEs=function(p){var x,F;(p==null?0:(x=p.content)==null?0:(F=x.productListRenderer)==null?0:F.trackingParams)&&_.cl().graftServerVe(p.content.productListRenderer.trackingParams);var N,h;(p==null?0:(N=p.content)==null?0:(h=N.transcriptRenderer)==null?0:h.trackingParams)&&_.cl().graftServerVe(p.content.transcriptRenderer.trackingParams)};
_.l.onYtUpdateEngagementPanelAction=function(p){var x,F=(x=this.data)==null?void 0:x.targetId;p=_.r(p,Tel);F&&(p==null?void 0:p.targetId)===F&&(this.updatePanel({engagementPanelSectionListRenderer:{header:p==null?void 0:p.header,content:p==null?void 0:p.content}},!1),this.attachVEs(p))};
_.l.onYtShowEngagementPanelScrimAction=function(p){var x,F=(x=this.data)==null?void 0:x.targetId;p=_.r(p,Pgg);F&&(p==null?void 0:p.engagementPanelTargetId)===F&&(this.scrimmed=!0)};
_.l.onYtHideEngagementPanelScrimAction=function(p){var x,F=(x=this.data)==null?void 0:x.targetId;p=_.r(p,jMK);F&&(p==null?void 0:p.engagementPanelTargetId)===F&&(this.scrimmed=!1)};
_.l.getIdentifier=function(){var p,x,F;return((p=this.data)==null?void 0:p.panelIdentifier)||((x=this.data)==null?void 0:(F=x.identifier)==null?void 0:F.tag)};
_.l.getSurface=function(){var p,x;return(p=this.data)==null?void 0:(x=p.identifier)==null?void 0:x.surface};
_.R8.Object.defineProperties(B1E.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var p=this.getIdentifier();return p==="engagement-panel-youchat"||p==="PAyouchat"}}});
var Zs=B1E;Zs.prototype.visibilityChanged=Zs.prototype.visibilityChanged;Zs.prototype.isFullscreenChanged=Zs.prototype.isFullscreenChanged;Zs.prototype.dataChanged=Zs.prototype.dataChanged;Zs.prototype.forwardPopupClosedToFlowRootRenderer=Zs.prototype.forwardPopupClosedToFlowRootRenderer;Zs.prototype.onYtRendererstamperFinished=Zs.prototype.onYtRendererstamperFinished;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Zs.prototype,"actionHandlerBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Zs.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],Zs.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],Zs.prototype,"ytEventForwardingBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Zs.prototype,"data",void 0);
_.B([_.H({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.k("design:type",Object)],Zs.prototype,"headerData",void 0);_.B([_.H(),_.k("design:type",Object)],Zs.prototype,"secondaryHeaderData",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Zs.prototype,"visibility",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Zs.prototype,"contentEmpty",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Zs.prototype,"scrimmed",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Zs.prototype,"dialog",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Zs.prototype,"dropdown",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Zs.prototype,"darkerPanels",void 0);_.B([_.H(),_.k("design:type",Object)],Zs.prototype,"disableAutoFill",void 0);
_.B([_.H({reflectToAttribute:!0,value:_.S("optimal_reading_width_comments_ep")}),_.k("design:type",Boolean)],Zs.prototype,"optimalReadingWidthComments",void 0);_.B([_.H(),_.k("design:type",Number)],Zs.prototype,"hideDelayMs",void 0);_.B([_.H({selector:_.w9,reflectToAttribute:!0}),_.k("design:type",Object)],Zs.prototype,"isFullscreen",void 0);_.B([_.H(),_.k("design:type",Number)],Zs.prototype,"showDelayMs",void 0);
_.B([_.H({reflectToAttribute:!0}),_.w("data.targetId"),_.k("design:type",Object),_.k("design:paramtypes",[])],Zs.prototype,"targetId",null);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Zs.prototype,"webSize",null);_.B([_.H(),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Zs.prototype,"hideFooterBorder",null);_.B([_.H(),_.k("design:type",Object)],Zs.prototype,"isWatch",void 0);
_.B([_.H(),_.k("design:type",Object)],Zs.prototype,"originalTheaterState",void 0);_.B([_.H(),_.k("design:type",Object)],Zs.prototype,"theaterDisablementPanelIdentifier",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Zs.prototype,"modernPanels",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Zs.prototype,"isWatchWhilePanel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Zs.prototype,"shortsPanel",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Zs.prototype,"liveChatEngagementPanel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Zs.prototype,"liveChatReplyPanel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Zs.prototype,"enableAnchoredPanel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Zs.prototype,"disableBackdropFilter",void 0);
_.B([_.H(),_.k("design:type",Object)],Zs.prototype,"trackEngagementPanelVisibility",void 0);_.B([_.Ff("#header"),_.k("design:type",HTMLElement)],Zs.prototype,"headerElement",void 0);_.B([_.Ff("#header > *"),_.k("design:type",HTMLElement)],Zs.prototype,"header",void 0);_.B([_.Ff("ytd-section-list-renderer"),_.k("design:type",Object)],Zs.prototype,"sectionListRendererElement",void 0);
_.B([_.Ff("panel-ad-header-image-lockup-view-model"),_.k("design:type",HTMLElement)],Zs.prototype,"adHeaderImageLockupViewModel",void 0);_.B([_.Ff("#content"),_.k("design:type",HTMLElement)],Zs.prototype,"contentElement",void 0);_.B([_.V("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zs.prototype,"onYtRendererstamperFinished",null);
_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zs.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zs.prototype,"dataChanged",null);_.B([_.W("isFullscreen"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zs.prototype,"isFullscreenChanged",null);
_.B([_.W("visibility"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zs.prototype,"visibilityChanged",null);Zs=_.B([_.L({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],Zs);
_.P(Zs,"ytd-engagement-panel-section-list-renderer",function(){if(Tx6!==void 0)return Tx6;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Tx6=p},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var RaA;var kne=function(){var p=_.m.apply(this,arguments)||this;p.lastRenderedPanelIds=new Set;p.visiblePanels=[];p.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return p};
_.E(kne,_.m);_.l=kne.prototype;_.l.dataChanged=function(){if(this.data){for(var p=[],x=_.a(this.data),F=x.next();!F.done;F=x.next()){F=F.value;var N=void 0,h=void 0,c=(N=F)==null?void 0:(h=N.engagementPanelSectionListRenderer)==null?void 0:h.visibility;h=N=void 0;((N=F)==null?0:(h=N.engagementPanelSectionListRenderer)==null?0:h.targetId)&&c!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&p.push(F)}this.visiblePanels=p}else this.visiblePanels=[]};
_.l.configureRendererStamper=function(){return{visiblePanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0},properties:{hideDelayMs:"[[hideDelayMs]]",isWatchWhilePanel:"[[isWatchWhilePanel]]"}}},reuseComponents:!1}}};
_.l.withoutVisiblePanelById=function(p){return this.visiblePanels.filter(function(x){var F;return((F=x.engagementPanelSectionListRenderer)==null?void 0:F.targetId)!==p})};
_.l.onYtChangeEngagementPanelVisibilityAction=function(p){var x=this,F=_.r(p,_.emn);if(this.data&&(F==null?0:F.targetId)&&(F==null?0:F.visibility)){var N,h=(N=this.data.find(function(M){var f;return((f=M.engagementPanelSectionListRenderer)==null?void 0:f.targetId)===F.targetId}))==null?void 0:N.engagementPanelSectionListRenderer;
if(h){var c=this.withoutVisiblePanelById(F.targetId);F.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(p=this.data.find(function(M){var f;return((f=M.engagementPanelSectionListRenderer)==null?void 0:f.targetId)===F.targetId}))&&(c=[p].concat(_.se(c)));
this.hideDelayMs&&F.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&c.length===0?_.E0.addJob(function(){h.visibility=F.visibility;x.visiblePanels=c},10,this.hideDelayMs):(h.visibility=F.visibility,this.visiblePanels=c);
_.Mt(this.hostElement,"yt-engagement-panels-visible-changed",[c])}}};
_.l.onRendererstamperFinished=function(){var p=new Set(this.visiblePanels.map(function(x){var F;return(F=x.engagementPanelSectionListRenderer)==null?void 0:F.targetId}));
this.handlePanelVisibilityChange(p,this.lastRenderedPanelIds);this.lastRenderedPanelIds=p};
_.l.handlePanelVisibilityChange=function(p,x){p=p===void 0?new Set:p;x=x===void 0?new Set:x;if(this.data)for(var F=_.a(this.data),N=F.next();!N.done;N=F.next()){N=N.value;var h=void 0,c=void 0,M=(h=N)==null?void 0:(c=h.engagementPanelSectionListRenderer)==null?void 0:c.targetId;if(M&&(h=x.has(M),c=p.has(M),M=void 0,!h&&c?(c=h=void 0,M=(h=N)==null?void 0:(c=h.engagementPanelSectionListRenderer)==null?void 0:c.onShowCommands):h&&!c&&(c=h=void 0,M=(h=N)==null?void 0:(c=h.engagementPanelSectionListRenderer)==
null?void 0:c.onHideCommands),M))for(N=_.a(M),M=N.next();!M.done;M=N.next())this.ytComponentBehavior.resolveCommand(M.value)}};
var tO=kne;tO.prototype.onRendererstamperFinished=tO.prototype.onRendererstamperFinished;tO.prototype.dataChanged=tO.prototype.dataChanged;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],tO.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],tO.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],tO.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],tO.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],tO.prototype,"lastRenderedPanelIds",void 0);_.B([_.H(),_.k("design:type",Number)],tO.prototype,"hideDelayMs",void 0);_.B([_.H(),_.k("design:type",Array)],tO.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Array)],tO.prototype,"visiblePanels",void 0);_.B([_.H(),_.k("design:type",Boolean)],tO.prototype,"isWatchWhilePanel",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tO.prototype,"dataChanged",null);_.B([_.V("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tO.prototype,"onRendererstamperFinished",null);tO=_.B([_.L({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],tO);
_.P(tO,"ytd-watch-engagement-panels",function(){if(RaA!==void 0)return RaA;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return RaA=p},{mode:1});var U$P;var dp=function(){return _.m.apply(this,arguments)||this};
_.E(dp,_.m);dp.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.ig(_.n(this.hostElement).querySelector("#text"),_.yeC(_.uck,this.data.companionLegalText))};
dp.prototype.computeAutoScrollEnabled=function(p,x){return p&&!x};
dp.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
dp.prototype.onToggleTap=function(){this.expanded=!this.expanded};
var vM=dp;vM.prototype.expandedChanged=vM.prototype.expandedChanged;vM.prototype.dataChanged=vM.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],vM.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.RjH),_.k("design:type",Object)],vM.prototype,"ytdAutoScrollBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],vM.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],vM.prototype,"expanded",void 0);
_.B([_.H({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.k("design:type",Boolean)],vM.prototype,"autoScrollEnabled",void 0);_.B([_.H(),_.k("design:type",String)],vM.prototype,"expanderIcon",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vM.prototype,"dataChanged",null);
_.B([_.W("expanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vM.prototype,"expandedChanged",null);vM=_.B([_.L({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],vM);
_.P(vM,"ytd-companion-legal-text-renderer",function(){if(U$P!==void 0)return U$P;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return U$P=p},{mode:1});var itg;var JO,I9E=function(){var p=_.m.apply(this,arguments)||this;p.buttonUpdate=_.S("web_modern_buttons");p.kevlarWatchGrid=_.S("kevlar_watch_grid");p.centerAlignDescription=_.S("action_companion_center_align_description");p.truncateDomain=_.S("action_companion_truncate_domain");return p};
_.E(I9E,_.m);_.l=I9E.prototype;_.l.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.l.getOnLayoutVisibleCallback=function(){var p=_.A9("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.onLayoutVisibleCallback:null};
_.l.getLayoutId=function(){var p=_.A9("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.layoutId:null};
_.l.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",JO.JSC$20004_DEFAULT_AD_BADGE_RENDERER);var p=this.getOnLayoutVisibleCallback();p&&p()}};
_.l.getButtonRenderer=function(p){return p.actionButton&&_.r(p.actionButton,_.AS)?(delete _.r(p.actionButton,_.AS).navigationEndpoint,_.r(p.actionButton,_.AS)):{}};
_.l.onClick=function(p){var x=this;if((!_.S("web_modern_buttons")||!_.mx(_.m9(p),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){p=_.Pt();var F=this.getLayoutId();p&&F&&_.S("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?p.getPlayerPromise().then(function(N){(new _.JL(N)).executeCommand(x.data.navigationEndpoint,F)}):_.S("kevlar_companion_resolve_command_killswitch")?_.hG(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.lA(this.hostElement,"yt-companion-ad-clicked",["action-companion",F])}};
_.R8.Object.defineProperties(I9E.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return((p=this.data)==null?0:(x=p.detailsLine)==null?0:(F=x.adRating)==null?0:F.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 p,x,F,N;return((p=this.data)==null?0:(x=p.detailsLine)==null?0:(F=x.adRating)==null?0:(N=F.ratingIcon)==null?0:N.iconType)?_.eA(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var p,x,F,N;return((p=this.data)==null?0:(x=p.detailsLine)==null?0:(F=x.texts)==null?0:(N=F[0])==null?0:N.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 p,x;return((p=this.data)==null?0:(x=p.description)==null?0:x.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var p=_.A9("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var p=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return p?p.indexOf("/default_banner")!==-1:!0}}});
var Ck=JO=I9E;JO.prototype.onClick=JO.prototype.onClick;JO.prototype.dataChanged=JO.prototype.dataChanged;Ck.JSC$20004_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.JG("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Ck.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ck.prototype,"rendererBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],Ck.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ck.prototype,"buttonUpdate",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ck.prototype,"kevlarWatchGrid",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ck.prototype,"centerAlignDescription",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ck.prototype,"truncateDomain",void 0);
_.B([_.H({computed:"computeButtonOverride(buttonUpdate)"}),_.k("design:type",Object)],Ck.prototype,"buttonOverride",void 0);_.B([_.w("data.detailsLine.adRating.ratingText"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ck.prototype,"getRating",null);_.B([_.w("getRating"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ck.prototype,"computeRatingHidden",null);
_.B([_.w("data.detailsLine.adRating.ratingIcon.iconType"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ck.prototype,"iconType",null);_.B([_.w("data.detailsLine.texts.0.text"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ck.prototype,"getDetailsLine",null);_.B([_.w("getDetailsLine"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ck.prototype,"computeDetailsLineHidden",null);
_.B([_.w("data.description.text"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ck.prototype,"getDescriptionText",null);_.B([_.w("getDescriptionText"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ck.prototype,"computeDescriptionTextHidden",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ck.prototype,"interactionLoggingClientData",null);
_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ck.prototype,"hideBanner",null);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ck.prototype,"dataChanged",null);_.B([_.V("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],Ck.prototype,"onClick",null);Ck=JO=_.B([_.L({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],Ck);
_.P(Ck,"ytd-action-companion-ad-renderer",function(){if(itg!==void 0)return itg;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return itg=p},{mode:_.UQ("kevlar_poly_si_batch_j067")?1:2});var $$E;var eaP;var p8U=function(){var p=_.m.apply(this,arguments)||this;p.buttonUpdate=_.S("web_modern_buttons");p.hideLegacyBanner=_.S("enable_dsa_one_click_ata_translators_infeed_elements");p.adInfoButtonStyle="mono";p.adInfoButtonType="text";p.noDotAdBadge=!0;return p};
_.E(p8U,_.m);_.l=p8U.prototype;_.l.getOnLayoutVisibleCallback=function(){var p=_.A9("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.onLayoutVisibleCallback:null};
_.l.getLayoutId=function(){var p=_.A9("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.layoutId:null};
_.l.dataChanged=function(){if(this.data){if(this.data.image&&this.data.image.thumbnail&&this.data.image.thumbnail.thumbnails&&this.data.image.thumbnail.thumbnails.length){var p=this.data.image.thumbnail.thumbnails[0];this.imageSrc=p.url?_.ug(p.url):void 0;this.imageWidth=p.width||0;this.imageHeight=p.height||0}this.data.clickthroughEndpoint&&_.r(this.data.clickthroughEndpoint,_.Gj)&&(p=_.r(this.data.clickthroughEndpoint,_.Gj).url,_.S("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
p||"":p?(p=_.ug(p),this.clickThroughUrl=_.n6(p)):this.clickThroughUrl=void 0);(p=this.getOnLayoutVisibleCallback())&&p()}};
_.l.onClick=function(p){_.mx(_.m9(p),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(p)};
_.l.handleClick=function(){var p=this;this.data&&this.data.clickthroughEndpoint&&(_.hG(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(x){p.macroReplacementBehavior.sendServiceRequestAction([x])}),_.lA(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.l.onLoad=function(){_.Mt(this.hostElement,"yt-refit-popups-action")};
_.R8.Object.defineProperties(p8U.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var p=_.A9("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var p=_.A9("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.interactionLoggingClientData:null}}});
var Sb=p8U;Sb.prototype.onLoad=Sb.prototype.onLoad;Sb.prototype.onClick=Sb.prototype.onClick;Sb.prototype.dataChanged=Sb.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Sb.prototype,"rendererBehavior",void 0);_.B([_.u(dc6.YtMacroReplacementBehavior),_.k("design:type",Object)],Sb.prototype,"macroReplacementBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Sb.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Sb.prototype,"buttonUpdate",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Sb.prototype,"hideLegacyBanner",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Sb.prototype,"adInfoButtonStyle",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Sb.prototype,"adInfoButtonType",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Sb.prototype,"macros",null);
_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Sb.prototype,"interactionLoggingClientData",null);_.B([_.H(),_.k("design:type",String)],Sb.prototype,"clickThroughUrl",void 0);_.B([_.H(),_.k("design:type",_.EU)],Sb.prototype,"imageSrc",void 0);_.B([_.H(),_.k("design:type",Number)],Sb.prototype,"imageWidth",void 0);_.B([_.H(),_.k("design:type",Number)],Sb.prototype,"imageHeight",void 0);_.B([_.H(),_.k("design:type",Object)],Sb.prototype,"noDotAdBadge",void 0);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sb.prototype,"dataChanged",null);_.B([_.V("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],Sb.prototype,"onClick",null);_.B([_.V("load"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sb.prototype,"onLoad",null);Sb=_.B([_.L({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],Sb);
_.P(Sb,"ytd-image-companion-renderer",function(){if(eaP!==void 0)return eaP;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return eaP=p},{mode:_.UQ("kevlar_poly_si_batch_j067")?1:2});var xEU;var rp,FWz=function(){return _.m.apply(this,arguments)||this};
_.E(FWz,_.m);_.l=FWz.prototype;_.l.dataChanged=function(){this.set("data.adBadge",rp.JSC$20013_DEFAULT_AD_BADGE_RENDERER);if(this.data){var p=this.getOnLayoutVisibleCallback();p&&p()}};
_.l.getOnLayoutVisibleCallback=function(){var p=_.A9("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.onLayoutVisibleCallback:null};
_.l.getLayoutId=function(){var p=_.A9("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.layoutId:null};
_.l.onCompanionClicked=function(p){this.data&&(p.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.lA(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.l.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var p=_.Pt(),x=this.getLayoutId(),F=this.data.clickToAdvSiteEndpoint;p&&x&&_.S("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?p.getPlayerPromise().then(function(N){(new _.JL(N)).executeCommand(F,x)}):_.hG(this.hostElement,"yt-navigate",{endpoint:F})}};
_.l.sendTrackingPings=function(p){if(p&&p.length!==0&&p[0].loggingUrls&&(p=p[0].loggingUrls.map(this.getBaseUrl)))for(var x=0;x<p.length;x++)_.YS(p[x])};
_.l.getBaseUrl=function(p){return p.baseUrl||""};
_.R8.Object.defineProperties(FWz.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var p=_.A9("yt.www.ads.eventcache.getLastCompanionData");return p?(p=p())&&p.interactionLoggingClientData:null}}});
var EF=rp=FWz;rp.prototype.onCompanionClicked=rp.prototype.onCompanionClicked;rp.prototype.dataChanged=rp.prototype.dataChanged;EF.JSC$20013_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.JG("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],EF.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],EF.prototype,"data",void 0);
_.B([_.Ff("#title"),_.k("design:type",HTMLElement)],EF.prototype,"shopTitle",void 0);_.B([_.cT("data.impressionEndpoints"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EF.prototype,"dataChanged",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],EF.prototype,"interactionLoggingClientData",null);
_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],EF.prototype,"onCompanionClicked",null);EF=rp=_.B([_.L({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],EF);
_.P(EF,"ytd-shopping-companion-renderer",function(){if(xEU!==void 0)return xEU;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return xEU=p},{mode:1});_.o7(_.mO(function(p){var x=p.data;var F=_.oc();_.B2(F,function(){return x().interaction},FAU);
_.U$(F,{visibilityCallback:function(N){var h,c=(h=x().interaction)==null?void 0:h.onFirstVisible;N&&c&&_.su(c)},
showOption:_.li});_.SO(function(){var N,h;h=(h=_.A9("yt.www.ads.eventcache.getLastCompanionData"))?(h=h())&&h.onLayoutVisibleCallback:null;(N=h)==null||N()});
_.jl(F,"load",function(){_.Mt(F.value,"yt-refit-popups-action")});
return _.Z("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost",el:F,"aria-label":function(){var N,h;return(N=x().interaction)==null?void 0:(h=N.accessibility)==null?void 0:h.label}},_.Z("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.Z(_.Es,{data:function(){return x().adImage}},{adImageViewModel:function(N){return _.Z(_.tj,{data:N.data,
targetHeight:80,customCommandResolver:FAU})}})),_.Z("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.Z("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.Z(_.Es,{data:function(){return x().adBadge}},{adBadgeViewModel:function(N){return _.Z(_.fS,{data:N.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.Z("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.Z(_.Es,{data:function(){return x().menu}},{buttonViewModel:_.nV}))))},"hi"),"banner-image-layout-view-model",{props:{data:_.G2}});_.o7(_.mO(function(p){var x=p.data;p=_.oc();_.B2(p,function(){return x().interaction},NeE);
_.U$(p,{visibilityCallback:function(F){var N,h=(N=x().interaction)==null?void 0:N.onFirstVisible;F&&h&&_.su(h)},
showOption:_.li});_.SO(function(){var F,N;N=(N=_.A9("yt.www.ads.eventcache.getLastCompanionData"))?(N=N())&&N.onLayoutVisibleCallback:null;(F=N)==null||F()});
return _.Z("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:p},_.Z("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.Z(_.Es,{data:function(){return x().adImage}},{adImageViewModel:function(F){return _.Z(_.tj,{data:F.data,
targetHeight:80,customCommandResolver:NeE})}})),_.Z("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.Z("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.Z(_.Es,{data:function(){return x().adAvatarLockup}},{adAvatarLockupViewModel:function(F){return _.Z(GnU,{data:F.data,
customCommandResolver:NeE})}})),_.Z(_.Es,{data:function(){return x().adButton}},{adButtonViewModel:function(F){return _.Z(_.aK,{data:F.data,
customCommandResolver:NeE})}}),_.Z("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.Z(_.Es,{data:function(){return x().menu}},{buttonViewModel:_.nV}))))},"ii"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.G2}});var NqM={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"},hZe=function(){var p=_.m.apply(this,arguments)||this;p.updateCompanionDataJobId=0;p.contentVideoId=null;p.player=null;p.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return p};
_.E(hZe,_.m);_.l=hZe.prototype;_.l.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:NqM}}};
_.l.attached=function(){var p=this,x=_.Pt();x&&x.getPlayerPromise().then(function(F){p.getCachedDataAndListen(F)})};
_.l.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.l.updateRendererStamper=function(){var p={};if(this.data)for(var x in NqM)if(this.data[x]){p[x]=this.data[x];break}if(this.oneofRenderer!=void 0||Object.keys(p).length)this.oneofRenderer=p};
_.l.getCachedDataAndListen=function(p){var x=this.retrieveCachedCompanionData();x&&Object.keys(x).length&&this.receiveCompanionData(x);this.ytPlayerListenerBehavior.listenToPlayerEvent(p,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=p};
_.l.retrieveCachedCompanionData=function(){return _.Mm.yt&&_.Mm.yt.www&&_.Mm.yt.www.ads&&_.Mm.yt.www.ads.eventcache&&_.Mm.yt.www.ads.eventcache.getLastCompanionData?_.Mm.yt.www.ads.eventcache.getLastCompanionData():null};
_.l.receiveCompanionData=function(p){p&&Object.keys(p).length?(this.contentVideoId=p.contentVideoId,this.setCompanionData(p)):this.setCompanionData(p)};
_.l.setCompanionData=function(p){this.cancelPendingCompanionAdJobs();if(p){this.updateCompanionDataJobId=0;for(var x in NqM)NqM.hasOwnProperty(x)&&(this.data[x]=void 0);p.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",p.shoppingCompanionCarouselRenderer):p.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",p.imageCompanionAdRenderer):p.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",p.actionCompanionAdRenderer),_.Mt(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Mt(this.hostElement,"yt-hide-tvfilm-offer-module")):p.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",p.bannerImageLayoutViewModel):p.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",p.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.l.dataChanged=function(){var p=this,x=_.Pt();x?x.getPlayerPromise().then(function(F){p.contentVideoId&&F.getVideoUrl().includes("v="+p.contentVideoId)||(p.cancelPendingCompanionAdJobs(),p.updateRendererStamper())}):_.uO(Error("fm"))};
_.l.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.E0.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.l.handleCompanionAdClicked=function(p,x){this.player.onAdUxClicked(p,x);this.player.pauseVideo()};
var Xd=hZe;Xd.prototype.dataChanged=Xd.prototype.dataChanged;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Xd.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Xd.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Xd.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Xd.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u(_.oz.YtPlayerListenerBehavior),_.k("design:type",_.O7)],Xd.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Xd.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Xd.prototype,"oneofRenderer",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xd.prototype,"dataChanged",null);Xd=_.B([_.L({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],Xd);
_.P(Xd,"ytd-companion-slot-renderer",function(){if($$E!==void 0)return $$E;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return $$E=p},{mode:_.UQ("kevlar_poly_si_batch_j067")?
1:2});var l5P;var cqg=function(){return _.m.apply(this,arguments)||this};
_.E(cqg,_.m);cqg.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
var gp=cqg;gp.prototype.dataChanged=gp.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],gp.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],gp.prototype,"companionSlotData",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gp.prototype,"dataChanged",null);
gp=_.B([_.L({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],gp);
_.P(gp,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(l5P!==void 0)return l5P;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return l5P=p},{mode:1});var a5e;var MQU=function(){var p=_.m.apply(this,arguments)||this;p.skinnyMode=!1;p.COMPACT_EVENT_COUNT=4;p.onShelfToggleButtonTap=function(){p.logTap(p.data);p.showingMore=!p.showingMore};
p.onShelfToggleButtonFocus=function(){p.showingMore||(p.logTap(p.data),p.showingMore=!0,_.jB(p,function(){var x=p.COMPACT_EVENT_COUNT-1,F;(F=_.n(p.hostElement).querySelector("#event-"+x))==null||F.focus()}))};
return p};
_.E(MQU,_.m);_.l=MQU.prototype;_.l.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.l.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.l.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.p5(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.p5(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.p5(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.p5(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.p5(this.infoTooltip,this.infoTooltip.hide))};
_.l.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.p5(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.p5(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.p5(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.p5(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.p5(this.infoTooltip,this.infoTooltip.hide))};
_.l.dataChanged=function(){this.firstEvent=this.get("data.events.0.ticketEventRenderer");this.data&&this.data.events&&(this.canShowMore=this.data.events.length>this.COMPACT_EVENT_COUNT,this.separator.style.visibility=this.data.events.length>1?"visible":"hidden");this.showingMore=!1;this.showingMoreChanged(!1)};
_.l.onShowingMoreChanged=function(){var p;this.showingMoreChanged((p=this.showingMore)!=null?p:!1)};
_.l.showingMoreChanged=function(p){var x=this.get("data.events")||[];this.set("restEvents",x.slice(1,p?x.length:this.COMPACT_EVENT_COUNT).map(function(F){return F.ticketEventRenderer}));
x.slice(0,p?x.length:this.COMPACT_EVENT_COUNT).forEach(function(F){var N=_.b0();F=F.ticketEventRenderer.trackingParams;_.yR()&&N&&F&&(F=_.fr(F),N&&_.Lc(N,F))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.l.computeAriaLabel=function(p){return p.subtitle1+", "+p.subtitle2};
_.l.logTap=function(p){_.yR()&&this.ytRendererBehavior.logExplicitClick(p)};
_.l.isKeyboardAction=function(p){return this.get("detail.x",p)===0&&this.get("detail.y",p)===0};
_.l.onFirstEventTap=function(p){p.target&&this.handleTap(p.target,this.firstEvent,this.isKeyboardAction(p))};
_.l.onTicketLinkTap=function(p){p.target&&this.handleTap(p.target,p.model.item,this.isKeyboardAction(p))};
_.l.handleTap=function(p,x,F){if(x.buttonCommand)if(x.hasMultipleOffers)Object.assign(_.r(x.buttonCommand,_.X3),{properties:{source:F?"keyboard":"tap"}}),this.logTap(x),this.popupPositionTarget=p,_.Kc(this.hostElement,[x.buttonCommand],this.hostElement);else{var N;if((N=_.r(x.buttonCommand,_.Gj))==null?0:N.url)this.logTap(x),_.L6(window,_.r(x.buttonCommand,_.Gj).url)}};
var QN=MQU;QN.prototype.onShowingMoreChanged=QN.prototype.onShowingMoreChanged;QN.prototype.dataChanged=QN.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],QN.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],QN.prototype,"firstEvent",void 0);_.B([_.H(),_.k("design:type",Object)],QN.prototype,"restEvents",void 0);
_.B([_.H(),_.k("design:type",String)],QN.prototype,"imageUrl",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],QN.prototype,"showingMore",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],QN.prototype,"canShowMore",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],QN.prototype,"skinnyMode",void 0);_.B([_.H(),_.k("design:type",HTMLElement)],QN.prototype,"popupPositionTarget",void 0);
_.B([_.Ff("#banner-info-tooltip"),_.k("design:type",Object)],QN.prototype,"infoTooltip",void 0);_.B([_.Ff("#info-container"),_.k("design:type",HTMLElement)],QN.prototype,"infoContainer",void 0);_.B([_.Ff("#shelf-toggler"),_.k("design:type",HTMLElement)],QN.prototype,"shelfToggleButton",void 0);_.B([_.Ff("#separator"),_.k("design:type",HTMLDivElement)],QN.prototype,"separator",void 0);_.B([_.H(),_.k("design:type",String)],QN.prototype,"shelfTogglerLabelText",void 0);
_.B([_.H(),_.k("design:type",String)],QN.prototype,"shelfTogglerIcon",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],QN.prototype,"dataChanged",null);_.B([_.cT("showingMore"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],QN.prototype,"onShowingMoreChanged",null);QN=_.B([_.L({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],QN);
_.P(QN,"ytd-ticket-shelf-renderer",function(){if(a5e!==void 0)return a5e;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return a5e=p},{mode:1});var DEg;var f5g;var KWP=function(){return _.m.apply(this,arguments)||this};
_.E(KWP,_.m);var q5n=KWP;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],q5n.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],q5n.prototype,"data",void 0);q5n=_.B([_.L({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],q5n);
_.P(q5n,"ytd-comments-entry-point-message-renderer",function(){if(f5g!==void 0)return f5g;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return f5g=p},{mode:1});var ZfU;var tQo=function(){return _.m.apply(this,arguments)||this};
_.E(tQo,_.m);_.R8.Object.defineProperties(tQo.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.teaserAvatar)}}});
var zE=tQo;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],zE.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],zE.prototype,"data",void 0);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],zE.prototype,"hasAvatar",null);zE=_.B([_.L({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],zE);
_.P(zE,"ytd-comments-entry-point-teaser-renderer",function(){if(ZfU!==void 0)return ZfU;var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return ZfU=p},{mode:1});var dEE;var v3o=function(){return _.m.apply(this,arguments)||this};
_.E(v3o,_.m);var Jqz=v3o;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Jqz.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Jqz.prototype,"data",void 0);Jqz=_.B([_.L({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],Jqz);
_.P(Jqz,"ytd-comments-simplebox-renderer",function(){if(dEE!==void 0)return dEE;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return dEE=p},{mode:1});var sF=function(){var p=_.m.apply(this,arguments)||this;p.fullHeight=!_.S("comment_teaser_full_height_kill_switch")&&_.S("kevlar_watch_grid");return p};
_.E(sF,_.m);sF.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"}}}};
sF.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
sF.prototype.onTap=function(){var p=this.tapCommand;p&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(p))};
sF.prototype.onKeyUp=function(p){if(p.keyCode===13)this.onTap()};
_.R8.Object.defineProperties(sF.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null?0:p.onTap)return this.data.onTap;var x,F;if(((x=this.data)==null?0:x.teaserContent)||((F=this.data)==null?0:F.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)!=null&&p.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
var nk=sF;nk.prototype.onKeyUp=nk.prototype.onKeyUp;nk.prototype.onTap=nk.prototype.onTap;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],nk.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],nk.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],nk.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],nk.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],nk.prototype,"fullHeight",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],nk.prototype,"tapCommand",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],nk.prototype,"simpleboxPlaceholder",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nk.prototype,"hasSimpleboxPlaceholder",null);
_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],nk.prototype,"simpleboxAvatar",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],nk.prototype,"teaserContent",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nk.prototype,"hasTeaserContent",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],nk.prototype,"teaserAvatar",null);
_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nk.prototype,"hasTeaserAvatar",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],nk.prototype,"messageText",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],nk.prototype,"contentRenderer",null);_.B([_.w("data"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nk.prototype,"hasContents",null);
_.B([_.w("data"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nk.prototype,"hasContentRenderer",null);_.B([_.V("click"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nk.prototype,"onTap",null);_.B([_.V("keypress"),_.k("design:type",Function),_.k("design:paramtypes",[_.d8]),_.k("design:returntype")],nk.prototype,"onKeyUp",null);nk=_.B([_.L({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],nk);
_.P(nk,"ytd-comments-entry-point-header-renderer",function(){if(DEg!==void 0)return DEg;var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return DEg=p},{mode:1});var Cb6;_.kL(_.Ft,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var S5E=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),rqz={numberText:"",heightPx:2*S5E,shouldAnimate:!1},E36=function(){var p=_.m.apply(this,arguments)||this;p.usingAnimatedComponents=!0;p.wasDetailed=!1;p.JSC$20049_browserSupportsAnimation=_.S("web_supports_animations_api");p.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};p.detailed=!1;p.shouldAnimate=!1;p.viewCountProps=rqz;p.dateTextProps=
rqz;p.metadataBadgesInDescription=_.S("web_metadata_badges_in_description");return p};
_.E(E36,_.m);_.l=E36.prototype;_.l.resetAnimationState=function(){this.shouldAnimate=!1};
_.l.updateDynamicMetadata=function(){if(this.JSC$20049_browserSupportsAnimation){if(!this.detailed){var p,x,F,N;var h=(p=this.videoPrimaryInfoRenderer)==null?void 0:(x=p.viewCount)==null?void 0:(F=x.videoViewCountRenderer)==null?void 0:(N=F.extraShortViewCount)==null?void 0:N.simpleText;var c,M,f,K;var t=(c=this.videoPrimaryInfoRenderer)==null?void 0:(M=c.viewCount)==null?void 0:(f=M.videoViewCountRenderer)==null?void 0:(K=f.shortViewCount)==null?void 0:K.simpleText}if(!t){var d,v,C,X;h=(d=this.videoPrimaryInfoRenderer)==
null?void 0:(v=d.viewCount)==null?void 0:(C=v.videoViewCountRenderer)==null?void 0:(X=C.unlabeledViewCountValue)==null?void 0:X.simpleText;var Q,b,A,Y;t=(Q=this.videoPrimaryInfoRenderer)==null?void 0:(b=Q.viewCount)==null?void 0:(A=b.videoViewCountRenderer)==null?void 0:(Y=A.viewCount)==null?void 0:Y.simpleText}var O,Fw,R;p=Number((O=this.videoPrimaryInfoRenderer)==null?void 0:(Fw=O.viewCount)==null?void 0:(R=Fw.videoViewCountRenderer)==null?void 0:R.originalViewCount);var ld,pp;O=(ld=this.videoPrimaryInfoRenderer)==
null?void 0:(pp=ld.relativeDateText)==null?void 0:pp.simpleText;var Kp;ld=!((Kp=this.videoPrimaryInfoRenderer)==null||!Kp.relativeDateText);if(h&&t&&p&&(O||!ld)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;Kp=t.split(new RegExp("("+h+")"));h=DMe(Kp[0]);var sM;t={numberText:(sM=Kp[1])!=null?sM:"",numberValue:p,heightPx:2*S5E,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var np;sM=((np=Kp[2])!=null?np:"")+"  ";this.setViewCount(t,h,
DMe(sM));if(!this.detailed&&ld){h=O.split(/(\d+)/);np=DMe(h[0]);var Jz;sM={numberText:(Jz=h[1])!=null?Jz:"",heightPx:2*S5E,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var Y$;Jz=((Y$=h[2])!=null?Y$:"")+"  ";this.setDateText(sM,np,DMe(Jz))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.l.setViewCount=function(p,x,F){_.Pi(x)!==_.Pi(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=x);this.viewCountProps.numberText!==(p==null?void 0:p.numberText)&&(this.viewCountProps=p||rqz);_.Pi(F)!==_.Pi(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=F)};
_.l.setDateText=function(p,x,F){_.Pi(x)!==_.Pi(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=x);this.dateTextProps.numberText!==(p==null?void 0:p.numberText)&&(this.dateTextProps=p||rqz);_.Pi(F)!==_.Pi(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=F)};
_.l.onYtUpdateViewershipAction=function(p){this.videoPrimaryInfoRenderer&&(_.r(p,C2n).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.r(p,C2n).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.r(p,C2n).viewCount)))};
_.l.onYtUpdateDateTextAction=function(p){if(this.videoPrimaryInfoRenderer){p=_.r(p,_.vZ5).dateText;this.shouldAnimate=!0;var x;((x=this.videoPrimaryInfoRenderer)==null?0:x.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",p):this.set("videoPrimaryInfoRenderer.dateText",p)}};
_.R8.Object.defineProperties(E36.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return MPU(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.Pi(MPU(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Pi(this.viewCountPreNumberText),this.viewCountProps.numberText,_.Pi(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Pi(this.dateTextPreNumberText),this.dateTextProps.numberText,_.Pi(this.dateTextPostNumberText)].join("")}}});
var yN=E36;yN.prototype.updateDynamicMetadata=yN.prototype.updateDynamicMetadata;yN.prototype.resetAnimationState=yN.prototype.resetAnimationState;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],yN.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],yN.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],yN.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],yN.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],yN.prototype,"videoPrimaryInfoRenderer",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],yN.prototype,"detailed",void 0);_.B([_.H(),_.k("design:type",Object)],yN.prototype,"shouldAnimate",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],yN.prototype,"viewCountPreNumberText",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],yN.prototype,"viewCountProps",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],yN.prototype,"viewCountPostNumberText",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],yN.prototype,"dateTextPreNumberText",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],yN.prototype,"dateTextProps",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],yN.prototype,"dateTextPostNumberText",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],yN.prototype,"metadataBadgesInDescription",void 0);_.B([_.w("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.k("design:type",Object),_.k("design:paramtypes",[])],yN.prototype,"infoText",null);
_.B([_.w("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.k("design:type",String),_.k("design:paramtypes",[])],yN.prototype,"descriptionInfoTooltipText",null);_.B([_.w("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.k("design:type",String),_.k("design:paramtypes",[])],yN.prototype,"animatedViewCountAccessibilityLabel",null);
_.B([_.w("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.k("design:type",String),_.k("design:paramtypes",[])],yN.prototype,"animatedDateTextAccessibilityLabel",null);_.B([_.W("videoPrimaryInfoRenderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yN.prototype,"resetAnimationState",null);
_.B([_.W("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yN.prototype,"updateDynamicMetadata",null);yN=_.B([_.L({disableElementRegistration:!0,is:"ytd-watch-info-text"})],yN);
_.P(yN,"ytd-watch-info-text",function(){if(Cb6!==void 0)return Cb6;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number id="view-count-number" force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Cb6=p},{mode:1});var X8E;var g3P=_.mO(function(p){var x=p.data;var F=p.setTapCommand;_.rx(function(){var N=_.g$(x().onTap);F(N)});
return _.Z("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.Z(_.Es,{data:function(){return x().avatar}},{avatarViewModel:_.bt}),_.Z("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.Z("span",null,function(){return x().simpleboxText})))},"ji");var Qx5=_.mO(function(p){return _.Z("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.Z(_.D9,{cond:function(){return _.r(p.data().avatar,_.P2)},
then:function(x){return _.Z(_.bt,{data:x,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.Z("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.Z(_.KQ,{text:function(){return p.data().teaserText}})))},"ki");var zZb=_.mO(function(p){var x=p.data;var F=p.setTapCommand;_.rx(function(){var N=_.g$(x().onTap);F(N)});
return _.Z("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.Z(_.Es,{data:function(){return x().teasers}},{commentsEntryPointTeaserViewModel:Qx5}))},"li");var sxe=_.mO(function(p){var x=p.data;var F=p.setTapCommand;_.rx(function(){var N=_.g$(x().onTap);F(N)});
return _.Z("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.Z(_.KQ,{text:function(){return x().messageText}}))},"mi");var n3E=_.mO(function(p){var x=p.data;var F=p.setTapCommand;var N=p.isDisabled;_.rx(function(){var h=(N==null?0:N())?void 0:_.g$(x().onTap);F(h)});
return _.Z("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.Z(_.DS,{icon:function(){return x().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.Z(_.D9,{cond:function(){return x().image},
then:function(h){return _.Z(_.VE,{data:h,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.Z(_.KQ,{text:function(){return x().text},
className:function(){return x().image||x().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.Z(_.Es,{data:function(){return x().button}},{buttonViewModel:function(h){return _.Z(_.nV,{data:h.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:N==null?void 0:N()}}})}}))},"ni");var yqn=_.mO(function(p){var x=p.data;var F=p.itemIndex;var N=p.selectedIndex;var h=p.indexUpdatedCallback;var c=p.observer;p=p.title;var M=_.oc(),f=function(v){F()===N()&&h(v)},K=_.g5(VHg),t=_.g5(WmA),d=function(){var v,C,X;
return((v=x())==null?void 0:v.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!K()||((C=x())==null?void 0:C.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&t().includes("PAposts_by_host")||((X=x())==null?void 0:X.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&t().includes("PAyouchat")};
_.J9(function(){c&&c().observe(M.value)});
return _.Z("yt-carousel-item-view-model",{el:M,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":p},_.Z(_.Es,{data:function(){var v,C;return(C=(v=_.r(x().carouselItem,mMo))==null?void 0:v.textCarousel)!=null?C:x().carouselItem}},{textCarouselItemViewModel:function(v){return _.Z(n3E,{data:v.data,
setTapCommand:f,isDisabled:d})},
commentTeaserCarouselItemViewModel:function(v){return _.Z(zZb,{data:v.data,setTapCommand:f})},
commentInputBoxCarouselItemViewModel:function(v){return _.Z(g3P,{data:v.data,setTapCommand:f})},
commentsEntryPointMessageViewModel:function(v){return _.Z(sxe,{data:v.data,setTapCommand:f})}}))},"oi");var bfg=_.mO(function(p){var x=p.numDots;var F=p.activeIndex;return _.Z("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.Z(_.ft,{each:function(){return Array.from({length:x()})},
keyBy:"INDEX"},function(N,h){return _.Z("div",{class:function(){var c={};return _.pQ("ytCarouselDotsShapeDot",(c.ytCarouselDotsShapeDotActive=h===F(),c))}})}))},"pi");var Aqn=_.mO(function(p){var x=p.data;var F=p.handleCarouselNavigation;var N=p.numItems;var h=p.selectedIndex;var c=function(){return{disabled:h()===0}},M=function(){return{disabled:h()===N()-1}};
return _.Z("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.Z("div",null,_.Z("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return x().title}),_.Z(_.D9,{cond:function(){return x().subtitle},
then:function(f){return _.Z("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return x().subtitleAccessibilityText}},f)}})),_.Z(_.D9,{cond:function(){return N()>1},
then:function(){return _.Z("div",{class:"ytCarouselTitleViewModelNavigation"},_.Z(bfg,{numDots:N,activeIndex:h}),_.Z(_.D9,{cond:function(){return x().previousButton},
then:function(f){return _.Z(_.Es,{data:f},{buttonViewModel:function(K){return _.Z(_.nV,{data:K.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return F(-1)},
buttonOverrides:c})}})}}),_.Z(_.D9,{cond:function(){return x().nextButton},
then:function(f){return _.Z(_.Es,{data:f},{buttonViewModel:function(K){return _.Z(_.nV,{data:K.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return F(1)},
buttonOverrides:M})}})}}))}}))},"qi");_.o7(_.mO(function(p){var x=p.data;var F=_.oc(),N=_.oc(),h=_.sd("HTML_DIR")==="rtl",c=!1,M=0,f=0;p=_.a(_.hu(0,void 0,"m0dtIf"));var K=p.next().value,t=p.next().value;p=_.a(_.hu(0,void 0,"fL6I6"));var d=p.next().value,v=p.next().value;p=_.a(_.hu(!1,void 0,"ZPrwNb"));var C=p.next().value,X=p.next().value,Q=function(){var Kp,sM,np;return(np=(Kp=x())==null?void 0:(sM=Kp.carouselTitles)==null?void 0:sM.length)!=null?np:0},b=function(){N.value&&N.value.scrollLeft!==M&&t((h?N.value.scrollLeft<M:N.value.scrollLeft>
M)?Math.min(K()+1,Q()-1):Math.max(K()-1,0))},A;
window.IntersectionObserver&&(A=new IntersectionObserver(function(Kp){Kp=_.a(Kp);for(var sM=Kp.next();!sM.done;sM=Kp.next())if(sM.value.isIntersecting){if(c){c=!1;break}b()}else t(f)},{threshold:.2}));
_.rx(function(){if(N.value){var Kp=(h?-1:1)*(d()/Q()+12)*(C()&&A?f:K());typeof N.value.scrollTo==="function"?N.value.scrollTo({left:Kp,behavior:"smooth"}):N.value.scrollLeft=Kp;M=Kp;f=C()&&A?f:K()}});
var Y,O=function(Kp){Y=Kp};
_.J9(function(){var Kp=function(){var np=N.value.offsetWidth*Q(),Jz=24*(Q()-1);v(np+Jz)};
Kp();if(window.ResizeObserver){var sM=new ResizeObserver(Kp);sM.observe(N.value);_.E_(function(){sM.disconnect();A&&A.disconnect()})}});
p=_.h0(function(Kp){if(_.vRM(_.Yw(Kp),F.value,["BUTTON".toString()])||!Y)return!1;_.J().resolve(_.RD).resolveCommand(Y,{forceClickLogging:!0});return!1});
var Fw=function(Kp){Kp=K()+Kp;Kp>=0&&Kp<Q()&&(c=!0,t(Kp))},R=_.h0(function(){X(!0);
return!1}),ld=_.h0(function(){A||b();
X(!1);return!1}),pp={};
return _.Z("yt-video-metadata-carousel-view-model",{class:_.$L("ytVideoMetadataCarouselViewModelHost",(pp.ytVideoMetadataCarouselViewModelShortMode=_.S("mweb_video_metadata_carousel_short_mode"),pp)),el:F,"on:click":p,"on:touchstart":R,"on:touchend":ld,hidden:function(){var Kp,sM;return!((Kp=x())==null?0:(sM=Kp.carouselItems)==null?0:sM.length)}},_.Z("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.Z(_.D9,{cond:function(){return x().carouselTitles},
then:function(Kp){return _.Z(_.Es,{data:function(){return Kp()[C()&&A?f:K()]}},{carouselTitleViewModel:function(sM){return _.Z(Aqn,{data:sM.data,
handleCarouselNavigation:Fw,numItems:Q,selectedIndex:K})}})}})),_.Z("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:N},_.Z("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+d()+"px;"}},_.Z(_.D9,{cond:function(){return x().carouselItems},
then:function(Kp){return _.Z(_.ft,{each:Kp},function(sM,np){return _.Z(_.Es,{data:function(){return sM}},{carouselItemViewModel:function(Jz){return _.Z(yqn,{data:Jz.data,
itemIndex:np,selectedIndex:K,indexUpdatedCallback:O,observer:A,title:function(){a:{var Y$=np();var xB,qI=(xB=x())==null?void 0:xB.carouselTitles;if(qI&&(Y$=qI[Y$])){var RJ;Y$=(RJ=_.r(Y$,H66))==null?void 0:RJ.title;break a}Y$=void 0}return Y$}})}})})}}))))},"ri"),"yt-video-metadata-carousel-view-model",{props:{data:_.G2}});var u_6=_.S("web_action_buttons_update_owner_width")?32:12,Y5z=function(){var p=_.m.apply(this,arguments)||this;p.metadataBadgesInDescription=_.S("web_metadata_badges_in_description");p.descriptionCollapsed=!0;p.useFadedScrimDescription=_.S("kevlar_enable_faded_scrim_on_description");p.skinnyMode=!1;p.playlist=!1;p.isDark=document.documentElement.hasAttribute("dark");p.disableVideoOwnerOnTap=_.S("swatchie_video_owner_on_tap_ks");p.swatcherooDelayLoad=_.S("swatcheroo_enable_ghost_cards");p.primaryMenuWidth=
0;p.videoId="";p.titleHeadlineXs=_.S("web_watch_typography_title_headline_xs");p.titleHeadlineS=_.S("web_watch_typography_title_headline_s");p.titleHeadlineM=_.S("web_watch_typography_title_headline_m");p.titleHashtagBlackLinkified=_.S("web_title_hashtag_black_linkified");p.titleHashtagGreyLinkified=_.S("web_title_hashtag_grey_linkified");p.actionButtonsUpdateOwnerWidth=_.S("web_action_buttons_update_owner_width");p.shouldForceIconOnly=!1;p.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};return p};
_.E(Y5z,_.m);_.l=Y5z.prototype;_.l.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.l.updateOwnerAndDescriptionPosition=function(){_.S("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.HY(this.bottomRowElement,this.ownerElement)):(_.HY(this.bottomRowElement,this.descriptionElement),_.HY(this.topRowElement,this.ownerElement)))};
_.l.titleOnTap=function(p){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.mx(_.m9(p)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var x;((x=window.getSelection())==null?0:x.toString().length)||this.handleExpandDescriptionCommands()}};
_.l.videoOwnerOnTap=function(p){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.mx(_.m9(p)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.l.detached=function(){var p=this,x;return _.D(function(F){(x=p.resizeObserver)==null||x.disconnect();_.JB(F)})};
_.l.maybeAttachResizeObserver=function(){var p=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.IC(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){p.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.l.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var p=this.hostElement.clientWidth,x=Math.max(this.largerItemWrap?400:350,p/2-u_6);if(_.S("web_action_buttons_update_owner_width")){var F;x=(((F=document.getElementById("owner"))==null?void 0:F.clientWidth)||0)+u_6}this.actionsOnSeparateLine=this.primaryMenuWidth>p-x?!0:!1}};
_.l.stripAttributedDescription=function(p){return{content:p.content.replace(/[\r\n]{2,}/g,"\n")}};
_.l.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.S("web_modern_buttons"),forceIconButton:!_.S("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:_.S("web_action_buttons_minimize_subscribe")},properties:{forceIconOnly:"[[shouldForceIconOnly]]"}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},
infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.l.videoPrimaryInfoRendererChanged=function(){var p;if((p=this.videoPrimaryInfoRenderer)==null?0:p.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.l.videoSecondaryInfoRendererChanged=function(){var p,x;(x=(p=this.descriptionInlineExpander).collapse)==null||x.call(p);this.descriptionExpandClientVe=_.vt(110509);this.descriptionCollapseClientVe=_.vt(110510);p=_.b0();x=_.yR();p&&x&&(_.S("combine_ve_grafts")?(_.NJ(_.cl(),this.descriptionExpandClientVe,x),_.NJ(_.cl(),this.descriptionCollapseClientVe,x)):_.I5(p,x,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.l.structuredDescriptionContentRendererChanged=function(){_.S("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.l.updateTopLevelIconsOnly=function(){var p=this;_.S("top_level_update_killswitch")||this.menu&&_.E0.addLowPriorityJob(function(){p.menu.topLevelIconsOnly=p.skinnyMode},_.Ud("swathceroo_delay_flexible_menu_update",100))};
_.l.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.S("web_action_buttons_minimize_subscribe")};
_.l.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.l.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.l.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.l.onYtTextInlineExpanderExpandedChanged=function(){if(!_.S("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var p,x;(x=(p=this.structuredDescriptionContentRendererElement).resize)==null||x.call(p)}};
_.l.onRenderStamperFinished=function(p){(p==null?void 0:p.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.l.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.l.onYtExpanderLessTapped=function(){var p,x=(p=this.videoSecondaryInfoRenderer)==null?void 0:p.showLessCommand;x&&this.ytComponentBehavior.resolveCommand(x)};
_.l.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.l.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.l.onDescriptionClick=function(p){if(!_.mx(_.m9(p)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var x;((x=window.getSelection())==null?0:x.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.S("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.l.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.l.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.l.logCollapseClick=function(){var p=_.b0();p&&this.descriptionCollapseClientVe&&_.B5(p,this.descriptionCollapseClientVe)};
_.l.logExpandClick=function(){var p=_.b0();p&&this.descriptionExpandClientVe&&_.B5(p,this.descriptionExpandClientVe)};
_.l.collapseDescription=function(){this.descriptionCollapsed=!0};
_.l.scrollToTopOfContainer=function(){_.lA(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.l.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.l.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.l.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.l.resize=function(){if(this.descriptionInlineExpander){var p,x;(x=(p=this.descriptionInlineExpander).resize)==null||x.call(p)}else _.no(new _.qE("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var F;(F=this.menu)==null||F.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.S("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.l.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var p,x,F,N,h=_.S("web_action_buttons_update_owner_width")?(F=(p=_.n(this.menu).querySelector("#button-shape"))==null?void 0:p.clientWidth)!=null?F:0:(N=(x=_.n(this.menu).querySelector("#button"))==null?void 0:x.clientWidth)!=null?N:0,c,M;p=((M=(c=_.n(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:c.clientWidth)!=null?M:0)+8+h;var f,K;h=(K=(f=_.n(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:f.children.length)!=null?K:2;p<=8*h||(this.primaryMenuWidth=p)}};
_.l.onYtUpdateTitleAction=function(p){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.r(p,JB6).title)};
_.l.onYtUpdateDescriptionAction=function(p){if(p=_.r(p,_.TSv)){var x,F=!((x=this.videoSecondaryInfoRenderer)==null||!x.attributedDescription);p.isEmpty||!p.description&&!p.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):p.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",p.attributedDescription):p.description&&(F?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.S6(p.description)):this.set("videoSecondaryInfoRenderer.description",p.description))}};
_.l.onYtDarkModeToggledAction=function(p){this.isDark=p};
_.l.registerPanel=function(){if(!_.S("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var p=_.J().resolve(_.Xm);p&&p.registerPanel("engagement-panel-structured-description",this)}};
_.l.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.l.showPanel=function(p){this.expandDescription();var x=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;x.resize();var F,N=p==null?void 0:(F=p.sectionListEngagementPanelExtras)==null?void 0:F.scrollToItemSectionIdentifier;N?_.E0.addJob(function(){x==null||x.scrollToSection(N)},8):this.scrollToTopOfContainer()};
_.l.isVisible=function(){return!this.descriptionCollapsed};
_.l.getReloadContinuation=function(){};
_.l.hidePanel=function(){};
_.l.updatePanel=function(){};
_.R8.Object.defineProperties(Y5z.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.structuredDescriptionContentRenderer)!=null&&p.items){var x;p=_.a((x=this.structuredDescriptionContentRenderer)==null?void 0:x.items);for(x=p.next();!x.done;x=p.next())if(x=_.r(x.value,_.lpB))return x}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.videoPrimaryInfoRenderer)==null?0:p.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return!!((p=this.videoSecondaryInfoRenderer)==null?0:(x=p.owner)==null?0:(F=x.videoOwnerRenderer)==null?0:F.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.S("swatchie_sd_new_line_strip_ks")){var p,x;if((p=this.videoSecondaryInfoRenderer)==null?0:(x=p.attributedDescription)==null?0:x.content){var F,N;return(N=this.stripAttributedDescription((F=this.videoSecondaryInfoRenderer)==null?void 0:F.attributedDescription))!=null?N:{runs:[]}}}var h,c,M,f;return(f=(M=(h=this.videoSecondaryInfoRenderer)==null?void 0:h.description)!=null?M:(c=this.videoSecondaryInfoRenderer)==null?
void 0:c.attributedDescription)!=null?f:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var p,x;return(x=(p=this.videoSecondaryInfoRenderer)==null?void 0:p.headerRuns)!=null?x:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.commentsEntryPointHeaderRenderer)==null||!p.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.videoMetadataCarousel)==null||!p.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.Ud("swatchie_desc_lines",3):this.hasTeaserCarousel?_.Ud("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var p,x,F=Object.assign({},(p=this.videoSecondaryInfoRenderer)==null?void 0:(x=p.metadataRowContainer)==null?void 0:x.metadataRowContainerRenderer);if(F&&F.rows&&F.collapsedItemCount!==void 0&&!(F.rows.length<=F.collapsedItemCount))return F.rows=F.rows.slice(F.collapsedItemCount),F.collapsedItemCount=0,F}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var p,x,F=Object.assign({},(p=this.videoSecondaryInfoRenderer)==null?void 0:(x=p.metadataRowContainer)==null?void 0:x.metadataRowContainerRenderer);if(F&&F.rows&&F.collapsedItemCount!==void 0)return F.rows=F.rows.slice(0,F.collapsedItemCount),F.collapsedItemCount=F.rows.length,F}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var p,x;return!!((p=this.structuredDescriptionContentRenderer)==null?0:(x=p.items)==null?0:x.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 p;return(p=this.videoSecondaryInfoRenderer)==null?void 0:p.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return((p=this.videoSecondaryInfoRenderer)==null?0:(x=p.owner)==null?0:(F=x.videoOwnerRenderer)==null?0:F.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var p,x,F,N;return!!((p=this.videoPrimaryInfoRenderer)==null?0:(x=p.videoActions)==null?0:(F=x.menuRenderer)==null?0:(N=F.flexibleItems)==null?0:N.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.uz(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.uz(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var p=this;if(_.S("web_title_hashtag_grey_delinkified")){var x,F=_.Q5.unsafeClone((x=this.videoPrimaryInfoRenderer)==null?void 0:x.title);(x=F==null?void 0:F.runs)&&x.forEach(function(N){if(N==null?0:N.navigationEndpoint)N.textColor=4284506208,p.isDark&&(N.textColor=4289374890)});
return F}return(F=this.videoPrimaryInfoRenderer)==null?void 0:F.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.S("web_title_hashtag_black_delinkified")||_.S("web_title_hashtag_grey_delinkified")}}});
var bF=Y5z;bF.prototype.resetDescriptionState=bF.prototype.resetDescriptionState;bF.prototype.registerPanel=bF.prototype.registerPanel;bF.prototype.onYtExpanderLessTapped=bF.prototype.onYtExpanderLessTapped;bF.prototype.onYtExpanderMoreTapped=bF.prototype.onYtExpanderMoreTapped;bF.prototype.onRenderStamperFinished=bF.prototype.onRenderStamperFinished;bF.prototype.onYtTextInlineExpanderExpandedChanged=bF.prototype.onYtTextInlineExpanderExpandedChanged;
bF.prototype.onYtTextInlineExpanderCollapseClicked=bF.prototype.onYtTextInlineExpanderCollapseClicked;bF.prototype.onYtTextInlineExpanderExpandClicked=bF.prototype.onYtTextInlineExpanderExpandClicked;bF.prototype.moveActionsElement=bF.prototype.moveActionsElement;bF.prototype.updateShouldForceIconOnly=bF.prototype.updateShouldForceIconOnly;bF.prototype.updateTopLevelIconsOnly=bF.prototype.updateTopLevelIconsOnly;bF.prototype.structuredDescriptionContentRendererChanged=bF.prototype.structuredDescriptionContentRendererChanged;
bF.prototype.videoSecondaryInfoRendererChanged=bF.prototype.videoSecondaryInfoRendererChanged;bF.prototype.videoPrimaryInfoRendererChanged=bF.prototype.videoPrimaryInfoRendererChanged;bF.prototype.maybeUpdateActionsOnSeparateLine=bF.prototype.maybeUpdateActionsOnSeparateLine;bF.prototype.updateOwnerAndDescriptionPosition=bF.prototype.updateOwnerAndDescriptionPosition;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],bF.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],bF.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],bF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.Ff("#above-the-fold"),_.k("design:type",HTMLElement)],bF.prototype,"aboveTheFoldContainer",void 0);
_.B([_.Ff("#menu ytd-menu-renderer"),_.k("design:type",Object)],bF.prototype,"menu",void 0);_.B([_.Ff("#description-inline-expander"),_.k("design:type",Object)],bF.prototype,"descriptionInlineExpander",void 0);_.B([_.Ff("#faded-structured-description"),_.k("design:type",Object)],bF.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.B([_.Ff("#structured-description"),_.k("design:type",Object)],bF.prototype,"structuredDescriptionContentRendererElement",void 0);
_.B([_.Ff("#title"),_.k("design:type",HTMLElement)],bF.prototype,"titleElement",void 0);_.B([_.Ff("#description"),_.k("design:type",HTMLElement)],bF.prototype,"descriptionElement",void 0);_.B([_.Ff("#description-interaction"),_.k("design:type",Object)],bF.prototype,"descriptionInteraction",void 0);_.B([_.Ff("#owner"),_.k("design:type",HTMLElement)],bF.prototype,"ownerElement",void 0);_.B([_.Ff("#top-row"),_.k("design:type",HTMLElement)],bF.prototype,"topRowElement",void 0);
_.B([_.Ff("#bottom-row"),_.k("design:type",HTMLElement)],bF.prototype,"bottomRowElement",void 0);_.B([_.Ff("#actions"),_.k("design:type",HTMLElement)],bF.prototype,"actionsElement",void 0);_.B([_.Ff("#bottom-actions"),_.k("design:type",HTMLElement)],bF.prototype,"bottomActionsElement",void 0);_.B([_.Ff("#ytd-watch-info-text"),_.k("design:type",Object)],bF.prototype,"watchInfoTextElement",void 0);_.B([_.H(),_.k("design:type",Object)],bF.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],bF.prototype,"videoPrimaryInfoRenderer",void 0);_.B([_.H(),_.k("design:type",Object)],bF.prototype,"videoSecondaryInfoRenderer",void 0);_.B([_.H(),_.k("design:type",Object)],bF.prototype,"commentsEntryPointHeaderRenderer",void 0);_.B([_.H(),_.k("design:type",Object)],bF.prototype,"videoMetadataCarousel",void 0);_.B([_.H(),_.k("design:type",Object)],bF.prototype,"structuredDescriptionContentRenderer",void 0);
_.B([_.H(),_.k("design:type",Object)],bF.prototype,"videoSummary",void 0);_.B([_.H(),_.k("design:type",Object)],bF.prototype,"merchShelf",void 0);_.B([_.H(),_.k("design:type",Object)],bF.prototype,"infoPanelBelowMetadata",void 0);_.B([_.w("structuredDescriptionContentRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],bF.prototype,"productShelf",null);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],bF.prototype,"metadataBadgesInDescription",void 0);
_.B([_.w("videoPrimaryInfoRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],bF.prototype,"shouldHideBadges",null);_.B([_.w("productShelf","descriptionCollapsed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bF.prototype,"shouldShowProductShelf",null);_.B([_.H(),_.k("design:type",Boolean)],bF.prototype,"isWatchFlexy",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],bF.prototype,"descriptionCollapsed",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],bF.prototype,"useFadedScrimDescription",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],bF.prototype,"skinnyMode",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("videoSecondaryInfoRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],bF.prototype,"largerItemWrap",null);_.B([_.H(),_.k("design:type",Object)],bF.prototype,"playlist",void 0);_.B([_.H(),_.k("design:type",Object)],bF.prototype,"clarifyBox",void 0);
_.B([_.H(),_.k("design:type",Object)],bF.prototype,"playerAds",void 0);_.B([_.H(),_.k("design:type",Boolean)],bF.prototype,"isDark",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],bF.prototype,"actionsOnSeparateLine",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],bF.prototype,"disableVideoOwnerOnTap",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],bF.prototype,"swatcherooDelayLoad",void 0);
_.B([_.H(),_.k("design:type",Boolean)],bF.prototype,"suppressTopLevelMetadataRows",void 0);_.B([_.H(),_.k("design:type",Object)],bF.prototype,"primaryMenuWidth",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],bF.prototype,"videoId",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],bF.prototype,"titleHeadlineXs",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],bF.prototype,"titleHeadlineS",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],bF.prototype,"titleHeadlineM",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],bF.prototype,"titleHashtagBlackLinkified",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],bF.prototype,"titleHashtagGreyLinkified",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],bF.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.B([_.H(),_.k("design:type",Object)],bF.prototype,"shouldForceIconOnly",void 0);_.B([_.cT("skinnyMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bF.prototype,"updateOwnerAndDescriptionPosition",null);_.B([_.cT("skinnyMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bF.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.B([_.w("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.k("design:type",Object),_.k("design:paramtypes",[])],bF.prototype,"descriptionText",null);_.B([_.w("videoSecondaryInfoRenderer.headerRuns"),_.k("design:type",Array),_.k("design:paramtypes",[])],bF.prototype,"headerRuns",null);_.B([_.H({value:!1}),_.w("commentsEntryPointHeaderRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],bF.prototype,"hasTeaser",null);
_.B([_.H({value:!1,reflectToAttribute:!0}),_.w("videoMetadataCarousel"),_.k("design:type",Object),_.k("design:paramtypes",[])],bF.prototype,"hasTeaserCarousel",null);_.B([_.H({value:3}),_.w("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.k("design:type",Object),_.k("design:paramtypes",[])],bF.prototype,"descriptionMaxLines",null);_.B([_.w("videoSecondaryInfoRenderer.metadataRowContainer"),_.k("design:type",Object),_.k("design:paramtypes",[])],bF.prototype,"collapsibleMetadataRows",null);
_.B([_.w("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.k("design:type",Object),_.k("design:paramtypes",[])],bF.prototype,"alwaysVisibleMetadataRows",null);_.B([_.w("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bF.prototype,"hasInlineStructuredDescription",null);
_.B([_.w("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bF.prototype,"showInlineStructuredDescription",null);_.B([_.w("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],bF.prototype,"descriptionExpandCommand",null);
_.B([_.w("videoSecondaryInfoRenderer.owner"),_.k("design:type",Object),_.k("design:paramtypes",[])],bF.prototype,"videoOwnerCommand",null);_.B([_.H({reflectToAttribute:!0}),_.w("videoPrimaryInfoRenderer.videoActions"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bF.prototype,"flexMenuEnabled",null);_.B([_.w("descriptionText","useFadedScrimDescription"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bF.prototype,"showAttributedStringDescription",null);
_.B([_.w("descriptionText","useFadedScrimDescription"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bF.prototype,"showFormattedStringDescription",null);_.B([_.w("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bF.prototype,"showFadedStructuredDescription",null);
_.B([_.cT("videoPrimaryInfoRenderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bF.prototype,"videoPrimaryInfoRendererChanged",null);_.B([_.w("videoPrimaryInfoRenderer.title"),_.k("design:type",Object),_.k("design:paramtypes",[])],bF.prototype,"videoTitle",null);_.B([_.w("videoPrimaryInfoRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],bF.prototype,"noEndpoints",null);
_.B([_.cT("videoSecondaryInfoRenderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bF.prototype,"videoSecondaryInfoRendererChanged",null);_.B([_.W("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bF.prototype,"structuredDescriptionContentRendererChanged",null);
_.B([_.W("skinnyMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bF.prototype,"updateTopLevelIconsOnly",null);_.B([_.W("skinnyMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bF.prototype,"updateShouldForceIconOnly",null);_.B([_.W("skinnyMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bF.prototype,"moveActionsElement",null);
_.B([_.V("yt-text-inline-expander-expand-clicked"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bF.prototype,"onYtTextInlineExpanderExpandClicked",null);_.B([_.V("yt-text-inline-expander-collapse-clicked"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bF.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.B([_.V("yt-text-inline-expander-expanded-changed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bF.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.B([_.V("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],bF.prototype,"onRenderStamperFinished",null);
_.B([_.V("yt-expander-more-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bF.prototype,"onYtExpanderMoreTapped",null);_.B([_.V("yt-expander-less-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bF.prototype,"onYtExpanderLessTapped",null);
_.B([_.W("videoPrimaryInfoRenderer","hasInlineStructuredDescription"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bF.prototype,"registerPanel",null);_.B([_.W("videoSecondaryInfoRenderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bF.prototype,"resetDescriptionState",null);bF=_.B([_.L({disableElementRegistration:!0,is:"ytd-watch-metadata"})],bF);
_.P(bF,"ytd-watch-metadata",function(){if(X8E!==void 0)return X8E;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return X8E=p},{mode:2});var Of6=function(p){_.Jm.call(this);this.JSC$20073_watchApi=p;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;w8M(this);GIM(this);VQz(this);WWe(this);Hfg(this);mEU(this);o3l(this)};
_.E(Of6,_.Jm);var VQz=function(p){var x=function(){_.S("kevlar_is_pupi_enabled")||AO(p)};
p.JSC$20073_watchApi.getRoot().addEventListener("yt-player-updated",x);p.addOnDisposeCallback(function(){p.JSC$20073_watchApi.getRoot().removeEventListener("yt-player-updated",x)})},Hfg=function(p){if(_.S("kevlar_endscreen_auto_theater_mode")){var x=_.qJ(_.Bi(),Yn,function(){jxA(p)});
p.addOnDisposeCallback(x)}},w8M=function(p){var x,F,N,h,c;
_.D(function(M){if(M.nextAddress==1)return _.q(M,p.JSC$20073_watchApi.playerApi,2);x=M.yieldResult;F=function(f){f=!!f;LWE(p)&&(f=f?2:1,_.Bf.getInstance().setState(f,!0,!1))};
N=function(f){f&&_.GXP(_.Bi().getState())&&(_.lA(p.JSC$20073_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),p.temporaryTheaterMode=!0)};
h=function(f){_.S("kevlar_player_update_autonav_on_new_data")&&f.type==="newdata"&&(_.S("kevlar_is_pupi_enabled")||AO(p))};
c=function(f){p.onPlayerStateChange(f)};
_.S("kevlar_endscreen_auto_theater_mode")&&x.addEventListener("onAutonavCancelled",N);x.addEventListener("onAutonavChangeRequest",F);x.addEventListener("onVideoDataChange",h);x.addEventListener("onStateChange",c);p.addOnDisposeCallback(function(){x.removeEventListener("onAutonavChangeRequest",F);x.removeEventListener("onVideoDataChange",h);x.removeEventListener("onStateChange",c);_.S("kevlar_endscreen_auto_theater_mode")&&x.removeEventListener("onAutonavCancelled",N)});
_.JB(M)})},GIM=function(p){p.JSC$20073_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){p.autonavCancelledBySignal=!0;
_.S("kevlar_is_pupi_enabled")||AO(p)});
p.JSC$20073_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(x,F,N){F&&AO(p,N)});
p.JSC$20073_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){LWE(p)&&_.Bf.getInstance().setState(2,!0,!0)});
p.JSC$20073_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){LWE(p)&&_.Bf.getInstance().setState(1,!0,!0)});
p.addOnDisposeCallback(function(){uF(p.JSC$20073_watchApi,"yt-signal-action-cancel-autonav");uF(p.JSC$20073_watchApi,"yt-autonav-state-changed-action");uF(p.JSC$20073_watchApi,"yt-enable-autoplay-command");uF(p.JSC$20073_watchApi,"yt-disable-autoplay-command")})},WWe=function(p){var x=p.JSC$20073_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){o3l(p)}),F=p.JSC$20073_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){mEU(p)});
p.addOnDisposeCallback(function(){p.JSC$20073_watchApi.unsubscribeByKey(x);p.JSC$20073_watchApi.unsubscribeByKey(F)})},o3l=function(p){p.autonavCancelledBySignal=!1;
_.S("kevlar_is_pupi_enabled")||AO(p)},mEU=function(p){var x=p.JSC$20073_watchApi.getWatchNextResponse(),F,N;
var h=(x=(N=_.r(x==null?void 0:(h=x.playerOverlays)==null?void 0:(F=h.playerOverlayRenderer)==null?void 0:F.autonavToggle,_.Rvb))==null?void 0:N.enabled)?2:1;_.S("kevlar_is_pupi_enabled")?_.Bf.getInstance().setState(h,!1,!1):AO(p);_.S("web_persist_server_autonav_state_on_client")&&typeof x==="boolean"&&_.Ktd(h===2)},LWE=function(p){if(p.autonavCancelledBySignal)return!1;
var x,F,N,h;return!!((x=p.JSC$20073_watchApi.getWatchNextResponse())==null?0:(F=x.contents)==null?0:(N=F.twoColumnWatchNextResults)==null?0:(h=N.autoplay)==null?0:h.autoplay)};
Of6.prototype.onPlayerStateChange=function(p){if(p===0){p=!_.Bf.getInstance().isAutoplaySetExplicitly();var x=this.JSC$20073_watchApi.getWatchNextResponse(),F,N,h,c;x=_.r(x==null?void 0:(F=x.contents)==null?void 0:(N=F.twoColumnWatchNextResults)==null?void 0:(h=N.autoplay)==null?void 0:(c=h.autoplay)==null?void 0:c.autoplayExplicitChoiceDialogRenderer,_.u3B);LWE(this)&&p&&x&&_.xL.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:x},popupType:"DIALOG"}})}else jxA(this)};
var jxA=function(p){p.temporaryTheaterMode&&(p.temporaryTheaterMode=!1,_.lA(p.JSC$20073_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},AO=function(p,x){x=x===void 0?!1:x;
var F;_.D(function(N){if(N.nextAddress==1)return _.q(N,p.JSC$20073_watchApi.playerApi,2);F=N.yieldResult;LWE(p)?F.setAutonavState(_.Bf.getInstance().getState(),x):F.setAutonavState(1,x);_.JB(N)})};var PbP={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL"};var Bqe=function(p){_.Jm.call(this);var x=this;this.JSC$20078_watchApi=p;var F=this.JSC$20078_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Tqz(x)});
this.addOnDisposeCallback(function(){x.JSC$20078_watchApi.unsubscribeByKey(F)});
Tqz(this)};
_.E(Bqe,_.Jm);var Tqz=function(p){var x=p.JSC$20078_watchApi.getPlayerResponse(),F=p.JSC$20078_watchApi.getWatchNextResponse();if(!_.ZOZ(x==null?void 0:x.playabilityStatus,F==null?void 0:F.playerOverlays)){var N;var h=x==null?void 0:(N=x.playabilityStatus)==null?void 0:N.errorScreen}p.JSC$20078_watchApi.provideRenderingData("ERROR_SCREEN",h)};var RZK=_.mO(function(p){var x=p.data;return _.Z("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost"},_.Z("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.Z(_.KQ,{text:function(){return x().title}})),_.Z("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.Z(_.Es,{data:function(){return x().channelAvatar}},{avatarViewModel:_.bt}),_.Z(_.KQ,{text:function(){return x().subtitle}})))},"si");var kI6=_.mO(function(p){return _.Z("yt-player-quick-action-buttons",{class:_.$L("ytPlayerQuickActionButtonsHost")},_.Z(_.ft,{each:p.data},function(x){return _.Z(_.Es,{data:function(){return x}},{buttonViewModel:_.nV,
likeButtonViewModel:function(F){return _.Z(_.pV6,{data:F.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.ePI})}))},"ti");var ifM=function(p){_.Jm.call(this);var x=this;this.JSC$20081_watchApi=p;p=_.a(_.hu({},void 0,"ufFdVc"));this.quickActionsViewModel=p.next().value;this.setQuickActionsViewModel=p.next().value;p=_.a(_.hu({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=p.next().value;this.setPlayerOverlayVideoDetailsRenderer=p.next().value;var F=this.JSC$20081_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){UEU(x)});
this.addOnDisposeCallback(function(){x.JSC$20081_watchApi.unsubscribeByKey(F)})};
_.E(ifM,_.Jm);
var UEU=function(p){var x,F,N,h,c,M,f,K,t,d,v,C,X,Q;_.D(function(b){if(b.nextAddress==1)return _.q(b,p.JSC$20081_watchApi.playerApi,2);x=b.yieldResult;F=p.JSC$20081_watchApi.getWatchNextResponse();c=(N=F)==null?void 0:(h=N.playerOverlays)==null?void 0:h.playerOverlayRenderer;f=_.r((M=c)==null?void 0:M.fullscreenQuickActionsBar,_.q9K);(t=(K=p).setQuickActionsViewModel)==null||t.call(K,f||{});f&&I5E(p,x);C=(d=c)==null?void 0:(v=d.videoDetails)==null?void 0:v.playerOverlayVideoDetailsRenderer;(Q=(X=
p).setPlayerOverlayVideoDetailsRenderer)==null||Q.call(X,C||{});C&&$E6(p,x);_.JB(b)})},I5E=function(p,x){if(!p.quickActionButtonsContainer){p.quickActionButtonsContainer=document.createElement("div");
x.setFullscreenQuickActions(p.quickActionButtonsContainer);var F=function(){return p.quickActionsViewModel().quickActionButtons||[]},N=_.t9(p.quickActionButtonsContainer,function(){return _.Z(kI6,{data:F})});
p.addOnDisposeCallback(function(){x.setFullscreenQuickActions(void 0);N()})}},$E6=function(p,x){if(!p.playerOverlayVideoDetailsRendererContainer){p.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
x.setPlayerOverlayVideoDetailsRenderer(p.playerOverlayVideoDetailsRendererContainer);var F=_.t9(p.playerOverlayVideoDetailsRendererContainer,function(){return _.Z(RZK,{data:p.playerOverlayVideoDetailsRenderer})});
p.addOnDisposeCallback(function(){x.setPlayerOverlayVideoDetailsRenderer(void 0);F()})}};var YD=function(p){_.Jm.call(this);var x=this;this.JSC$20086_watchApi=p;this.JSC$20086_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;p=_.qJ(_.Bi(),_.w9,function(F){eZ6(x,F)});
this.addOnDisposeCallback(p);p=_.qJ(_.Bi(),_.G_,function(F){x.onWatchScroll(F)});
this.addOnDisposeCallback(p);_.S("kevlar_watch_while_v2")&&(p=_.qJ(_.Bi(),_.bP,function(F){pub(x,F)}),this.addOnDisposeCallback(p));
xpU(this);Fdz(this);Nwb();this.onWatchScroll(_.G_(_.Bi().getState()));_.nt("START_IN_FULL_WINDOW_MODE")&&this.JSC$20086_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.E(YD,_.Jm);var xpU=function(p){p.JSC$20086_watchApi.registerActionHandler("yt-fullscreen-change-action",function(x){var F=Yn(_.Bi().getState());x&&!F||_.Bi().dispatch(_.F4({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!x}}))});
p.addOnDisposeCallback(function(){uF(p.JSC$20086_watchApi,"yt-fullscreen-change-action")})},Fdz=function(p){var x,F;
_.D(function(N){if(N.nextAddress==1)return _.q(N,p.JSC$20086_watchApi.playerApi,2);x=N.yieldResult;F=function(){p.onFullerscreenEduClicked()};
x.addEventListener("onFullerscreenEduClicked",F);p.addOnDisposeCallback(function(){x.removeEventListener("onFullerscreenEduClicked",F)});
_.JB(N)})},eZ6=function(p,x){var F;
_.D(function(N){if(N.nextAddress==1)return p.isFullscreen=!!_.pc(),_.q(N,p.JSC$20086_watchApi.playerApi,2);F=N.yieldResult;p.JSC$20086_miniplayerActive||F.setFauxFullscreen(p.isFullscreen);if(x&&(p.JSC$20086_watchApi.focusOnPlayer(),!p.fullerscreenEduButtonShownThisPlayback)){p.fullerscreenEduButtonShownThisPlayback=!0;var h=_.Mq("yt-fullerscreen-edu-button-shown-count")||0;_.a3("yt-fullerscreen-edu-button-shown-count",h+1,31536E3);p.updateFullerscreenEduButtonSubtleModeState()}_.JB(N)})},pub=function(p,
x){var F;
_.D(function(N){if(N.nextAddress==1)return p.JSC$20086_miniplayerActive=x,_.q(N,p.JSC$20086_watchApi.playerApi,2);F=N.yieldResult;F.setFauxFullscreen(!p.JSC$20086_miniplayerActive&&p.isFullscreen);_.JB(N)})};
YD.prototype.onWatchScroll=function(p){var x=this,F,N;return _.D(function(h){if(h.nextAddress==1)return _.S("external_fullscreen_with_edu")?_.q(h,x.JSC$20086_watchApi.playerApi,2):h.return();F=h.yieldResult;N=p<=0;x.shouldShowFullerscreenEdu!==N&&(x.shouldShowFullerscreenEdu=N,F.updateFullerscreenEduButtonVisibility(!x.shouldShowFullerscreenEdu));_.JB(h)})};
YD.prototype.onFullerscreenEduClicked=function(){this.JSC$20086_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var p=_.Mq("yt-fullerscreen-edu-button-click-count")||0;_.a3("yt-fullerscreen-edu-button-click-count",p+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
YD.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var p=this,x,F,N,h,c,M;return _.D(function(f){if(f.nextAddress==1)return x=_.Mq("yt-fullerscreen-edu-button-click-count")||0,F=_.Mq("yt-fullerscreen-edu-button-shown-count")||0,N=_.Ud("external_fullscreen_button_click_threshold"),h=_.Ud("external_fullscreen_button_shown_threshold"),c=x>=N||F>=h,_.q(f,p.JSC$20086_watchApi.playerApi,2);M=f.yieldResult;M.updateFullerscreenEduButtonSubtleModeState(c);_.JB(f)})};
YD.prototype.disposeInternal=function(){_.Jm.prototype.disposeInternal.call(this);var p=_.pc();_.S("kevlar_exit_fullscreen_leaving_watch")&&p&&_.xv(p)};
var Nwb=function(){if(_.S("web_watch_add_viewport_meta_tag")){var p=document.querySelector("meta[name=viewport]"),x=document.head;x&&!p&&(p=document.createElement("meta"),p.name="viewport",p.content="width=device-width, initial-scale=1.0, viewport-fit=cover",x.appendChild(p))}};var l3E=function(p){_.Jm.call(this);var x=this;this.JSC$20090_watchApi=p;this.jobId=0;this.pendingRequestId=void 0;var F=this.JSC$20090_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){h$A(x)});
this.addOnDisposeCallback(function(){x.JSC$20090_watchApi.unsubscribeByKey(F)});
h$A(this)};
_.E(l3E,_.Jm);var cdg=function(p){_.E0.cancelJob(p.jobId);p.pendingRequestId=void 0},h$A=function(p){cdg(p);
var x=fnb(p.JSC$20090_watchApi.getWatchNextResponse());if(x){var F=250,N,h=(N=_.r(x,_.DJv))==null?void 0:N.initialDelayMs;_.S("web_watch_updated_metadata_server_initial_delay")&&h&&(F=h);p.jobId=_.E0.addLowPriorityJob(function(){return p.fetchUpdatedMetadata(x)},F)}};
l3E.prototype.fetchUpdatedMetadata=function(p,x){var F=this,N,h,c,M,f,K,t,d,v,C,X,Q,b,A,Y;return _.D(function(O){switch(O.nextAddress){case 1:x&&(N={continuation:x});if(!_.S("web_get_updated_metadata_fantasy_panel_continuation_params")){O.jumpTo(2);break}h=_.J().resolve(_.Xm);c="PAsports_fantasy";return _.q(O,h.isVisible(c,!0),3);case 3:O.yieldResult&&(t=(f=(M=h).getUpdatePanelContinuationData)==null?void 0:(K=f.call(M,c))==null?void 0:K.updatePanelContinuationRequest)&&(N||(N={}),N.clientParams=
{panelContinuationParams:{panelContinuation:t}});case 2:d=_.J().resolve(_.SV);if(!d)return _.zj(Error("gm")),O.return();v={};F.pendingRequestId=v;return _.q(O,_.w5(d,p,N),4);case 4:C=O.yieldResult;if(v!==F.pendingRequestId)return O.return();b=(X=C)==null?void 0:(Q=X.continuation)==null?void 0:Q.timedContinuationData;((A=b)==null?0:A.continuation)&&((Y=b)==null?0:Y.timeoutMs)&&(F.jobId=_.E0.addLowPriorityJob(function(){return F.fetchUpdatedMetadata(p,b.continuation)},b.timeoutMs));
_.JB(O)}})};
l3E.prototype.disposeInternal=function(){_.Jm.prototype.disposeInternal.call(this);cdg(this)};var a3U=_.mO(function(p){var x=_.h0(function(){var N=p.data().videoId;if(p.active())N=_.$v(N),_.J().resolve(_.RD).resolveCommand(N);else{var h=p.playerApi(),c=h.getAvailableAudioTracks(),M,f,K=(M=p.sourceVideoConfig().audioTracks)==null?void 0:(f=M.find(function(t){return t.isDefaultForSource}))==null?void 0:f.id;
if(c=c.find(function(t){return t.getLanguageInfo().getId()===K}))h.setAudioTrack(c,!0),h.setCompositeParam({activeVideoId:N}),p.setActiveSourceId(N)}}),F={};
return _.Z("ytw-composite-source-video-overlay",{class:_.$L("ytwCompositeSourceVideoOverlayHost",(F.ytwCompositeSourceVideoOverlayActive=p.active,F.ytwCompositeSourceVideoOverlayInteracting=p.interacting,F)),style:_.a4({left:function(){var N;return((N=p.data().topLeftCornerX)!=null?N:0)*100+"%"},
top:function(){var N;return((N=p.data().topLeftCornerY)!=null?N:0)*100+"%"},
width:function(){var N;return((N=p.data().width)!=null?N:0)*100+"%"},
height:function(){var N;return((N=p.data().height)!=null?N:0)*100+"%"}}),
"on:click":x},_.Z("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"ui");var MsM=_.mO(function(p){var x=_.a(_.ct(function(){var f,K=(f=p.data().sources)==null?void 0:f.find(function(t){return t.isActive});
if(K)return K.videoId})),F=x.next().value,N=x.next().value;
x=_.a(_.hu(!1,void 0,"WI4BUb"));var h=x.next().value,c=x.next().value;x=_.h0(function(){c(!0)});
var M=_.h0(function(){c(!1)});
return _.Z("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":x,"on:mouseout":M},_.Z(_.D9,{cond:function(){return p.data().sources},
then:function(f){return _.Z(_.ft,{each:f},function(K){return _.Z(a3U,{data:K,active:function(){return K.videoId===F()},
setActiveSourceId:N,interacting:h,playerApi:p.playerApi,sourceVideoConfig:function(){return KAM(p.compositeVideoConfig(),K.videoId)}})})}}))},"vi");var KdE=function(p){_.Jm.call(this);this.JSC$20106_watchApi=p;p=_.a(_.hu({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=p.next().value;this.setCompositeVideoOverlayRenderer=p.next().value;p=_.a(_.hu({},void 0,"U5hcq"));this.compositeVideoConfig=p.next().value;this.setCompositeVideoConfig=p.next().value;Dpl(this);f3U(this)};
_.E(KdE,_.Jm);var Dpl=function(p){var x=p.JSC$20106_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){f3U(p)});
p.addOnDisposeCallback(function(){p.JSC$20106_watchApi.unsubscribeByKey(x)})},q0l=function(p){var x;
return _.D(function(F){if(F.nextAddress==1)return _.q(F,p.JSC$20106_watchApi.playerApi,2);x=F.yieldResult;x.setCompositeVideoOverlayRendererComponent(p.container);_.JB(F)})},Zg5=function(p){var x;
return _.D(function(F){if(F.nextAddress==1)return _.q(F,p.JSC$20106_watchApi.playerApi,2);x=F.yieldResult;x.setCompositeVideoOverlayRendererComponent(void 0);_.JB(F)})},ts5=function(p){var x,F;
return _.D(function(N){if(N.nextAddress==1)return _.q(N,p.JSC$20106_watchApi.playerApi,2);x=N.yieldResult;p.container=document.createElement("div");F=_.t9(p.container,function(){return _.Z(MsM,{data:p.compositeVideoOverlayRenderer,compositeVideoConfig:p.compositeVideoConfig,playerApi:x})});
p.addOnDisposeCallback(F);_.JB(N)})},f3U=function(p){var x,F,N,h,c,M,f,K;
_.D(function(t){return t.nextAddress==1?(x=p.JSC$20106_watchApi.getPlayerResponse(),c=_.r((F=x)==null?void 0:(N=F.overlay)==null?void 0:(h=N.playerControlsOverlayRenderer)==null?void 0:h.compositeVideoOverlay,cBM),K=(M=x)==null?void 0:(f=M.playerConfig)==null?void 0:f.compositeVideoConfig,c&&p.setCompositeVideoOverlayRenderer(c),K&&p.setCompositeVideoConfig(K),c&&K?p.container?t.jumpTo(6):_.q(t,ts5(p),6):dpb(p)?_.q(t,Zg5(p),0):t.jumpTo(0)):dpb(p)?t.jumpTo(0):_.q(t,q0l(p),0)})},dpb=function(p){var x;
return!((x=p.container)==null||!x.parentElement)};
KdE.prototype.disposeInternal=function(){dpb(this)&&Zg5(this);_.Jm.prototype.disposeInternal.call(this)};var rde=function(p){_.Jm.call(this);var x=this;this.JSC$20112_watchApi=p;var F=this.JSC$20112_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var N=x.JSC$20112_watchApi.getPlayerResponse();if(N){var h,c;if(N=_.r((h=N.endscreen)==null?void 0:(c=h.endscreenRenderer)==null?void 0:c.hideButton,_.gR)){var M;(M=x.setEndscreenHideButton)==null||M.call(x,N);vS6(x)}}});
this.addOnDisposeCallback(function(){x.JSC$20112_watchApi.unsubscribeByKey(F)});
p=_.a(_.hu({},void 0,"PPHRb"));this.endscreenHideButton=p.next().value;this.setEndscreenHideButton=p.next().value;Jdl(this);C1z(this);S0U(this)};
_.E(rde,_.Jm);var vS6=function(p){var x,F;_.D(function(N){if(N.nextAddress==1)return p.creatorEndscreenHideButtonContainer?N.return():_.q(N,p.JSC$20112_watchApi.playerApi,2);x=N.yieldResult;p.creatorEndscreenHideButtonContainer=document.createElement("div");_.HS(p.creatorEndscreenHideButtonContainer,!1);x.setCreatorEndscreenHideButton(p.creatorEndscreenHideButtonContainer);F=_.t9(p.creatorEndscreenHideButtonContainer,function(){return _.Z(_.QP,{data:p.endscreenHideButton,useOutlinedIcon:!0})});
p.addOnDisposeCallback(function(){F();x.setCreatorEndscreenHideButton(void 0)});
_.JB(N)})},Jdl=function(p){var x,F;
_.D(function(N){if(N.nextAddress==1)return _.q(N,p.JSC$20112_watchApi.playerApi,2);x=N.yieldResult;F=function(){p.creatorEndscreenHideButtonContainer&&_.HS(p.creatorEndscreenHideButtonContainer,!0)};
x.addEventListener("endscreenelementshown",F);p.addOnDisposeCallback(function(){x.removeEventListener("endscreenelementshown",F)});
_.JB(N)})},C1z=function(p){var x=function(){p.creatorEndscreenHideButtonContainer&&_.HS(p.creatorEndscreenHideButtonContainer,!1)},F=p.JSC$20112_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",x),N=p.JSC$20112_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",x);
p.addOnDisposeCallback(function(){p.JSC$20112_watchApi.unsubscribeByKey(F);p.JSC$20112_watchApi.unsubscribeByKey(N)})},S0U=function(p){p.JSC$20112_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(x){var F=_.r(x,p9g);
p.JSC$20112_watchApi.playerApi.then(function(N){N==null||N.setCreatorEndscreenVisibility(!!F.hide)})});
p.addOnDisposeCallback(function(){uF(p.JSC$20112_watchApi,"yt-change-creator-endscreen-visibility-command")})};var Xub=function(p){_.Jm.call(this);this.JSC$20118_watchApi=p;ESb(this)};
_.E(Xub,_.Jm);var ESb=function(p){var x,F;_.D(function(N){if(N.nextAddress==1)return _.q(N,p.JSC$20118_watchApi.playerApi,2);x=N.yieldResult;F=function(h){_.Bi().dispatch(_.F4({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:h}}))};
x.addEventListener("onRetroModeChanged",F);p.addOnDisposeCallback(function(){x.removeEventListener("onRetroModeChanged",F)});
_.JB(N)})};var SUM=0,WY=0,EEz=0;var gSU=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),wp=function(p){_.Jm.call(this);this.JSC$20131_watchApi=p;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;QnK(this)};
_.E(wp,_.Jm);
var QnK=function(p){var x,F,N;_.D(function(h){if(h.nextAddress==1)return _.q(h,p.JSC$20131_watchApi.playerApi,2);x=h.yieldResult;if(p.isDisposed())return h.return();p.sessionStorage=_.knD("yt-sleep-timer");p.sessionStorage||_.no(new _.qE("SessionStorage for Sleep Timer is undefined."));((F=p.sessionStorage)==null?void 0:F.get("yt-sleep-timer"))==="true"&&(QMP(),(N=p.sessionStorage)==null||N.remove("yt-sleep-timer"),x.syncVolume());z$A(p,x);snM(p,x);nSe(p,x);_.JB(h)})},z$A=function(p,x){var F=function(t){p.onSleepTimerSettingsChanged(t,
x)},N=function(t){p.onPlayerStateChange(t,x)},h=function(){p.onLoopChange(x)},c=function(){p.onCloseMiniplayer(x)},M=function(){Cg6(x,(0,_.Lf)(),z5E(x),p.selectedOption==="End of video",x.getPlayerState()!==1)},f=function(){p.onSeekComplete(x)},K=function(){_.E0.cancelJob(WY);
var t=x.getCurrentTime()>=x.getDuration(),d=p.selectedOption==="End of video"||p.selectedOption==="End of playlist"&&!dM6(p.playlistId);t&&d&&ydl(p,x)};
x.addEventListener("onSleepTimerSettingsChanged",F);x.addEventListener("onLoopChange",h);x.addEventListener("onLoopRangeChange",h);x.addEventListener("onStateChange",N);x.addEventListener("onCloseMiniplayer",c);x.addEventListener("onSleepTimerFeatureAvailable",M);x.addEventListener("SEEK_COMPLETE",f);x.addEventListener("onAdStart",K);p.addOnDisposeCallback(function(){x.removeEventListener("onSleepTimerSettingsChanged",F);x.removeEventListener("onLoopChange",h);x.removeEventListener("onLoopRangeChange",
h);x.removeEventListener("onStateChange",N);x.removeEventListener("onCloseMiniplayer",c);x.removeEventListener("onSleepTimerFeatureAvailable",M);x.removeEventListener("SEEK_COMPLETE",f);x.removeEventListener("onAdStart",K)})},snM=function(p,x){var F=p.JSC$20131_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var N=x.getVideoData().video_id,h,c=(h=Z6b(p.JSC$20131_watchApi))==null?void 0:h.playlistId;
p.pauseAutonavPlayback&&(x.pauseVideo(),x.syncVolume(),p.pauseAutonavPlayback=!1);if(p.selectedOption==="End of video"&&N!==p.videoId)GE(p,x);else{if(p.selectedOption==="End of playlist"){h=dM6(p.playlistId);if(c!==p.playlistId){GE(p,x);break a}h?h&&bgM(p,x):AdP(p,x)}p.videoId=N;p.playlistId=c}}});
p.addOnDisposeCallback(function(){p.JSC$20131_watchApi.unsubscribeByKey(F)})},nSe=function(p,x){var F=_.J().resolve(_.Q_),N=_.qJ(F,_.zv$,function(c){c&&p.selectedOption!=="Off"&&GE(p,x)}),h=_.qJ(F,Yn,function(c){var M,f;
return _.D(function(K){if(K.nextAddress==1)return _.q(K,_.fb().navigationFinishPromise,2);M=!_.c7l();f=_.J().resolve(_.H$).isMiniplayerActive();c||!qUg(p.selectedOption)||f||M||GE(p,x);_.JB(K)})});
F=_.qJ(F,function(c){return c.entities.playlistLoopStateEntity||{}},function(c){c=c===void 0?{}:c;
var M=tPP(p.JSC$20131_watchApi);if(M){var f;((f=c[M])==null?void 0:f.state)==="PLAYLIST_LOOP_STATE_ALL"&&qUg(p.selectedOption)&&GE(p,x)}});
p.addOnDisposeCallback(N);p.addOnDisposeCallback(F);p.addOnDisposeCallback(h)};
wp.prototype.onSleepTimerSettingsChanged=function(p,x){switch(p){case "Off":this.selectedOption!=="Off"&&GE(this,x);break;case "End of video":case "End of playlist":uEU(this,p,x);break;default:uEU(this,p,x,gSU.get(p))}};
wp.prototype.onLoopChange=function(p){(p.getLoopVideo()||p.getLoopRange())&&qUg(this.selectedOption)&&GE(this,p)};
wp.prototype.onCloseMiniplayer=function(p){qUg(this.selectedOption)&&GE(this,p)};
var uEU=function(p,x,F,N){Y0P(p,F);p.selectedOption=x;p.videoId=F.getVideoData().video_id;p.playlistId="";var h;(h=p.sessionStorage)==null||h.set("yt-sleep-timer","true");p.adjustmentsCount++;Cg6(F,(0,_.Lf)(),z5E(F),p.selectedOption==="End of video");if(p.selectedOption==="End of video")AdP(p,F),wug(p,F);else if(p.selectedOption==="End of playlist"){wug(p,F);var c,M;p.playlistId=(M=(c=Z6b(p.JSC$20131_watchApi))==null?void 0:c.playlistId)!=null?M:"";dM6(p.playlistId)||AdP(p,F)}else N&&(p.presetFadeSchedulerId=
_.tR(_.E0,function(){XzK(F,15E3)},N-15E3),p.presetPauseSchedulerId=_.tR(_.E0,function(){ydl(p,F)},N),roe(F,(0,_.Lf)(),N))},ydl=function(p,x){if(Yn(_.J().resolve(_.Q_).getState())){var F={dismissDialogEndpoint:{}};
var N={commandExecutorCommand:{commands:[F,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};F={buttonViewModel:{title:_.JG("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:F}}};N={buttonViewModel:{title:_.JG("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:N}}};var h={dialogHeaderViewModel:{headline:{content:_.JG("SLEEP_TIMER_ENDED_TITLE")}}};
var c={basicContentViewModel:{paragraphs:[{text:{content:_.JG("SLEEP_TIMER_ENDED_TEXT")}}]}};F={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:h,content:c,footer:{panelFooterViewModel:{primaryButton:F,secondaryButton:N,shouldHideDivider:!0}}}}}}};_.J().resolve(_.RD).resolveCommand(F,{form:{element:p}})}else QMP();GWl(p,!1);VsM(p,x);x.pauseVideo();_.Bf.getInstance().getState()===2&&x.getPlayerState()===5&&(p.pauseAutonavPlayback=!0)},GE=function(p,x){GWl(p,!0);
VsM(p,x);QMP()},VsM=function(p,x){Y0P(p,x);
p.selectedOption="Off";p.videoId="";p.playlistId="";p.adjustmentsCount=0;var F;(F=p.sessionStorage)==null||F.remove("yt-sleep-timer");_.E0.cancelJob(SUM);x.resetSleepTimerMenuSettings()},GWl=function(p,x){x={timer_length_adjustment_times_during_session:p.adjustmentsCount-1,
is_session_cancelled:x};switch(p.selectedOption){case "Off":x.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":x.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":x.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:x.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",x.option_duration_in_minutes=gSU.get(p.selectedOption)/6E4}_.E$("sleepTimerSessionFinishEvent",x)};
wp.prototype.onPlayerStateChange=function(p,x){p===1?Cg6(x,(0,_.Lf)(),z5E(x),this.selectedOption==="End of video"):p===0?(_.E0.cancelJob(WY),x.setVideoTimeLeft(Jon(0,0))):p===2&&_.E0.cancelJob(WY);this.selectedOption==="End of video"?p===0?ydl(this,x):p===2&&gEU(x):this.selectedOption!=="End of playlist"||dM6(this.playlistId)||(p===0?ydl(this,x):p===2&&gEU(x))};
wp.prototype.onSeekComplete=function(p){p.getPlayerState()===2&&Cg6(p,(0,_.Lf)(),z5E(p),this.selectedOption==="End of video",!0)};
wp.prototype.onCueRangeEnter=function(p,x){p==="sleep-timer-fade-audio"&&(p=(x.getDuration()-x.getProgressState().current)*1E3,XzK(x,p))};
wp.prototype.onCueRangeExit=function(p,x){p==="sleep-timer-fade-audio"&&x.getPlayerState()!==0&&gEU(x,!0)};
var AdP=function(p,x){x.addCueRange("sleep-timer-fade-audio",x.getDuration()-15,x.getDuration());x.addEventListener("onCueRangeEnter",function(F){p.onCueRangeEnter(F,x)});
x.addEventListener("onCueRangeExit",function(F){p.onCueRangeExit(F,x)})},bgM=function(p,x){x.removeCueRange("sleep-timer-fade-audio");
x.removeEventListener("onCueRangeEnter",function(F){p.onCueRangeEnter(F,x)});
x.removeEventListener("onCueRangeExit",function(F){p.onCueRangeExit(F,x)})},Y0P=function(p,x){qUg(p.selectedOption)?bgM(p,x):(_.E0.cancelJob(p.presetPauseSchedulerId),_.E0.cancelJob(p.presetFadeSchedulerId),p.presetPauseSchedulerId=0,p.presetFadeSchedulerId=0);
gEU(x,!0)},wug=function(p,x){x.setLoop(!1);
x.setLoopVideo(!1);x.setLoopRange(null);(p=tPP(p.JSC$20131_watchApi))&&_.J().resolve(_.Q_).dispatch(_.KV("playlistLoopStateEntity",p,{key:p,state:"PLAYLIST_LOOP_STATE_NONE"}))};var oSK=function(p){_.Jm.call(this);this.JSC$20134_watchApi=p;Wdo(this);Hgz(this);mpb(this);p=p.getRoot();if(p.is==="ytd-watch-flexy"||p.is==="ytd-watch-grid")p.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.n_b();_.S("web_watch_log_theater_mode_cookie_state")&&_.ax.get("wide","0")==="1"&&_.ZS("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.E(oSK,_.Jm);var Wdo=function(p){var x,F;_.D(function(N){if(N.nextAddress==1)return _.q(N,p.JSC$20134_watchApi.playerApi,2);x=N.yieldResult;F=function(h){OgE(p,!!h)};
x.addEventListener("SIZE_CLICKED",F);p.addOnDisposeCallback(function(){x.removeEventListener("SIZE_CLICKED",F)});
_.JB(N)})},Hgz=function(p){p.JSC$20134_watchApi.registerActionHandler("yt-toggle-theater-mode",function(x,F){OgE(p,x,F===void 0?!0:F)});
p.addOnDisposeCallback(function(){uF(p.JSC$20134_watchApi,"yt-toggle-theater-mode")})};
oSK.prototype.getState=function(){return _.gQ(_.Bi().getState())};
var OgE=function(p,x,F){F=F===void 0?!0:F;var N,h,c,M=_.S("enable_player_resize_transition")&&!!p.JSC$20134_watchApi.getWatchNextResponse()&&!((N=p.JSC$20134_watchApi.getWatchNextResponse())==null?0:(h=N.contents)==null?0:(c=h.twoColumnWatchNextResults)==null?0:c.conversationBar);_.PK_(function(){_.Bi().dispatch(_.F4({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:x}}));_.S("theater_mode_scroll_to_top_killswitch")||p.JSC$20134_watchApi.scrollWatchTo(0,!1);_.pc()&&_.S("external_fullscreen")&&_.xv(document.documentElement);
mpb(p);F&&_.ME("wide",x?"1":"0",-1);_.lA(p.JSC$20134_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);p.JSC$20134_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:x});x&&_.n_b()},{shouldWrap:M})},mpb=function(p){var x;
_.D(function(F){if(F.nextAddress==1)return _.q(F,p.JSC$20134_watchApi.playerApi,2);x=F.yieldResult;x.setSizeStyle(!0,p.getState());_.JB(F)})};var P1g=function(p){_.Jm.call(this);var x=this;this.playerApi=p;this.timeToPanelSyncKeyMap={};var F;if(p==null?0:(F=p.isReady)==null?0:F.call(p)){F=_.qJ(_.J().resolve(_.Q_),function(h){return h.entities.timedMarkersListSyncEntity||{}},function(h,c){h=h===void 0?{}:h;
c=c===void 0?{}:c;for(var M=_.a(Object.keys(c)),f=M.next();!f.done;f=M.next())f=f.value,h[f]!==c[f]&&jne(x,c[f]);c=_.a(Object.keys(h));for(M=c.next();!M.done;M=c.next())M=M.value,f=h[M],x.timeToPanelSyncKeyMap[M]&&Ldg(x,f)});
this.addOnDisposeCallback(F);var N=function(h){x.onCueRangeEnter(h)};
p.addEventListener("onCueRangeEnter",N);this.addOnDisposeCallback(function(){var h;(h=p.removeEventListener)==null||h.call(p,"onCueRangeEnter",N)})}};
_.E(P1g,_.Jm);
var Ldg=function(p,x){var F,N;if((F=p.playerApi)==null?0:(N=F.isReady)==null?0:N.call(F)){var h;if((F=x==null?void 0:(h=x.timedListData)==null?void 0:h.sections)&&x!=null&&x.key)for(h=_.a(F),F=h.next();!F.done;F=h.next())if(F=F.value,F.timedSyncDataList&&F.sectionId)for(N=0;N<F.timedSyncDataList.length;N++){var c=F.timedSyncDataList[N];c.syncItemId&&p.playerApi.addCueRange(F.sectionId+"_"+x.key+"_"+c.syncItemId,Number(c.videoTimeMs)/1E3,N===F.timedSyncDataList.length-1?0x8000000000000:Number(F.timedSyncDataList[N+
1].videoTimeMs)/1E3)}}},jne=function(p,x){var F,N;
if((F=p.playerApi)==null?0:(N=F.isReady)==null?0:N.call(F)){var h;if((F=x==null?void 0:(h=x.timedListData)==null?void 0:h.sections)&&x!=null&&x.key)for(h=_.a(F),F=h.next();!F.done;F=h.next())if(F=F.value,F.timedSyncDataList&&F.sectionId){N=_.a(F.timedSyncDataList);for(var c=N.next();!c.done;c=N.next())c=c.value,c.syncItemId&&p.playerApi.removeCueRange(F.sectionId+"_"+x.key+"_"+c.syncItemId)}}};
P1g.prototype.onCueRangeEnter=function(p){for(var x=_.a(Object.keys(this.timeToPanelSyncKeyMap)),F=x.next();!F.done;F=x.next()){F=F.value;var N=_.a(p.split("_"+F+"_")),h=N.next().value;N=N.next().value;if(h&&N){p=_.J().resolve(_.Q_);x=this.timeToPanelSyncKeyMap[F];var c=_.SVZ(p.getState(),x);F=TwM(F,h,N);if(F===-1)break;F={activeSyncId:N,activeItemIndex:F,activeSectionInfo:{sectionIdentifier:h}};c?p.dispatch(_.z7("markersEngagementPanelSyncEntity",x,F)):p.dispatch(_.KV("markersEngagementPanelSyncEntity",
x,Object.assign({},{key:x},F)));break}}};
var TwM=function(p,x,F){var N=_.J().resolve(_.Q_),h,c;p=(h=stg(N.getState(),p))==null?void 0:(c=h.timedListData)==null?void 0:c.sections;if(!p)return-1;h=0;c=_.a(p);for(p=c.next();!p.done;p=c.next()){p=p.value;N=p.timedSyncDataList||[];if(p.sectionId===x)return x=N.findIndex(function(M){return M.syncItemId===F}),x===-1?x:h+x;
h+=N.length}return-1};var kWn=function(p){_.Jm.call(this);var x=this;this.JSC$20146_watchApi=p;this.unresolvedCommands=[];this.JSC$20146_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(F){BwM(x,F)});
this.addOnDisposeCallback(function(){uF(x.JSC$20146_watchApi,"yt-update-timed-markers-sync-observer-command")});
R$M(this)};
_.E(kWn,_.Jm);var R$M=function(p){var x;_.D(function(F){if(F.nextAddress==1)return _.q(F,p.JSC$20146_watchApi.playerApi,2);x=F.yieldResult;if(p.isDisposed())return F.return();p.timedSyncObserver=new P1g(x);p.unresolvedCommands.length&&(p.unresolvedCommands.forEach(function(N){return BwM(p,N)}),p.unresolvedCommands=[]);
_.aG(p,p.timedSyncObserver);_.JB(F)})},BwM=function(p,x){if(p.timedSyncObserver){var F=_.r(x,FhM);
if(F&&F.timedSyncEntityKey&&F.panelSyncEntityKey){p=p.timedSyncObserver;x=F.timedSyncEntityKey;var N=F.panelSyncEntityKey;F=!!F.isEnabled;F=F===void 0?!0:F;var h=_.J().resolve(_.Q_);h=stg(h.getState(),x);F?p.timeToPanelSyncKeyMap[x]||(p.timeToPanelSyncKeyMap[x]=N,Ldg(p,h)):(delete p.timeToPanelSyncKeyMap[x],jne(p,h))}}else p.unresolvedCommands.push(x)};var Upz=_.mO(function(p){var x=p.data,F=p.maybeLogSmartSkipClientData,N=_.oc();_.oC(N,function(){return x().rendererContext},{onTap:function(d,v){v({disableClickTracking:!0})}});
var h=null,c=null,M=_.S("web_enable_auto_focus_for_timely_action_button"),f=function(){h=document.activeElement},K=function(){x().smartSkipMetadata&&(h=document.activeElement,z8E(function(){return c}))},t=function(d){if(x().smartSkipMetadata&&(!d||d.key!=="Enter")){h&&h.isConnected&&(z8E(function(){return h}),h=null);
var v;(v=c)==null||v.blur()}};
p=_.h0(function(){F==null||F(!0,x());return!1});
_.U$(N,{visibilityCallback:function(d){if(M)d?c&&x().smartSkipMetadata&&(K(),document.addEventListener("focusin",f)):(document.removeEventListener("focusin",f),t());else if(d&&_.S("web_ephemeral_actions")){d=_.wR(x().rendererContext);var v=Number(x().maxVisibleDurationMilliseconds),C,X=(C=_.r(x().rendererContext,_.Os))==null?void 0:C.label;d&&v&&X&&(C={label:X,command:d,durationMs:v},_.J().resolve(_.M_).enqueue(C))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.d1(function(){if(M){var d;if((c=(d=N.value)==null?void 0:d.querySelector("button"))&&x().smartSkipMetadata){var v;(v=N.value)==null||v.addEventListener("keydown",t)}}});
_.E_(function(){M&&(c&&x().smartSkipMetadata&&c.removeEventListener("keydown",t),document.removeEventListener("focusin",f),t())});
return _.Z("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:N,"on:click":p},_.Z(_.Es,{data:function(){return x().content}},{buttonViewModel:_.nV}))},"wi");var ig6=_.mO(function(p){var x=p.data,F=p.playerApi,N=_.J().resolve(_.pSm);p=_.a(_.ct(function(){x()}));
var h=p.next().value,c=p.next().value,M=function(){return yo6(x(),h())},f=function(t,d){var v,C,X=(v=_.r(d==null?void 0:d.rendererContext,_.nTM))==null?void 0:(C=v.loggingDirectives)==null?void 0:C.trackingParams;
if((d=d==null?void 0:d.smartSkipMetadata)&&d.loggingData&&(C=d.loggingData,d=C.algorithmId,v=C.startMilliseconds,C=C.endMilliseconds,d&&v!==void 0&&C!==void 0)){var Q,b;t={smartSkipData:Object.assign({},{versionName:d,startMediaTimeMs:v,endMediaTimeMs:C},t&&{userInteractionMediaTimeMs:(Math.floor(((Q=_.Pt())==null?void 0:(b=Q.getPlayer())==null?void 0:b.getCurrentTime())||0)*1E3).toString()})};Q=_.b0();var A;X&&(A=_.fr(X));Q&&A&&_.kv(Q,A,t)}},K=function(t,d){var v=yo6(x(),t);
if(v){var C=_.r(v,nEU),X;if(X=d)X=F(),v=_.r(v,nEU),X=v!=null&&v.smartSkipMetadata?!(X==null?0:X.isSameMarkerTypeVisible((v==null?void 0:v.smartSkipMetadata.markerKey)||"")):!0;if(X){var Q,b;(C==null?0:(Q=C.smartSkipMetadata)==null?0:(b=Q.loggingData)==null?0:b.isCounterfactual)||(f(!1,C),c(t))}else d||h()!==t||c(void 0)}};
_.rx(function(){var t=x().timelyActions;if(t){t=_.a(t);for(var d=t.next();!d.done;d=t.next()){d=_.r(d.value,nEU);var v=void 0;(v=d)!=null&&v.cueRangeId&&N.timelyActionsMap.set(d.cueRangeId,K)}_.E_(function(){N.timelyActionsMap.clear()})}});
return _.Z("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.Z(_.Es,{data:M},{timelyActionViewModel:function(t){return _.Z(Upz,{data:t.data,maybeLogSmartSkipClientData:function(){f(!0,_.r(M(),nEU))}})}}))},"xi");var $pg=function(p){_.Jm.call(this);this.JSC$20158_watchApi=p;p=_.a(_.hu({},void 0,"pLDp2"));this.timelyActionsOverlay=p.next().value;this.setTimelyActionsOverlay=p.next().value;I3e(this)};
_.E($pg,_.Jm);var I3e=function(p){var x,F,N,h;_.D(function(c){if(c.nextAddress==1)return e$g(p),pZU(p),p.timelyActionsContainer=document.createElement("div"),_.q(c,p.JSC$20158_watchApi.playerApi,2);x=c.yieldResult;(N=(F=x).insertTimelyActionUi)==null||N.call(F,p.timelyActionsContainer);h=_.t9(p.timelyActionsContainer,function(){return _.Z(ig6,{data:p.timelyActionsOverlay,playerApi:x})});
p.addOnDisposeCallback(h);_.JB(c)})},pZU=function(p){var x=p.JSC$20158_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){e$g(p)});
p.addOnDisposeCallback(function(){p.JSC$20158_watchApi.unsubscribeByKey(x)})},e$g=function(p){var x=p.JSC$20158_watchApi.getWatchNextResponse();
if(x){var F,N;if(x=_.r((F=x.playerOverlays)==null?void 0:(N=F.playerOverlayRenderer)==null?void 0:N.timelyActionsOverlayViewModel,Nno)){var h;(h=p.setTimelyActionsOverlay)==null||h.call(p,x)}}};var Fib=function(p){_.Jm.call(this);this.JSC$20162_watchApi=p;xfA(this)};
_.E(Fib,_.Jm);var xfA=function(p){var x,F;_.D(function(N){if(N.nextAddress==1)return _.q(N,p.JSC$20162_watchApi.playerApi,2);x=N.yieldResult;F=function(h){_.xL.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.r(h,_.LHe)},popupType:"TOAST"}})};
x.addEventListener("onYtShowToast",F);p.addOnDisposeCallback(function(){x.removeEventListener("onYtShowToast",F)});
_.JB(N)})};var Nj6=!1,aOn=function(p){_.Jm.call(this);this.JSC$20165_watchApi=p;this.fullscreen=this.theater=!1;hRb(this);lO5(this);cTE(this)};
_.E(aOn,_.Jm);var cTE=function(p){var x,F,N;_.D(function(h){if(h.nextAddress==1)return _.q(h,p.JSC$20165_watchApi.playerApi,2);x=h.yieldResult;if(p.isDisposed())return h.return();F=p.JSC$20165_watchApi.getElement("CINEMATICS");if(!F)return h.return();p.JSC$20165_cinematicController=new _.Zo(F,x);_.aG(p,p.JSC$20165_cinematicController);_.Kn6(p.JSC$20165_cinematicController);MlK(p,_.XLH());N=p.JSC$20165_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(c){DfA(p,c)});
p.addOnDisposeCallback(function(){p.JSC$20165_watchApi.unsubscribeByKey(N)});
fOE(p);DfA(p,p.JSC$20165_cinematicController.isAllowed());Kib(p,p.fullscreen,p.theater);q$E(p);_.JB(h)})},hRb=function(p){var x=p.JSC$20165_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){fOE(p)});
p.addOnDisposeCallback(function(){p.JSC$20165_watchApi.unsubscribeByKey(x)})},lO5=function(p){var x,F;
_.D(function(N){if(N.nextAddress==1)return _.q(N,p.JSC$20165_watchApi.playerApi,2);x=N.yieldResult;F=function(h){MlK(p,h)};
x.addEventListener("cinematicSettingsToggleChange",F);p.addOnDisposeCallback(function(){x.removeEventListener("cinematicSettingsToggleChange",F)});
_.JB(N)})},fOE=function(p){var x=p.JSC$20165_watchApi.getWatchNextResponse(),F;
x=_.r(x==null?void 0:(F=x.pageVisualEffects)==null?void 0:F[0],_.u5);var N;(N=p.JSC$20165_cinematicController)==null||_.ZZe(N,x)},MlK=function(p,x){var F;
(F=p.JSC$20165_cinematicController)==null||_.qvM(F,x);ZoK(p)},DfA=function(p,x){var F;
_.D(function(N){if(N.nextAddress==1)return _.S("kevlar_watch_cinematics_invisible")&&(x=!1),_.q(N,p.JSC$20165_watchApi.playerApi,2);F=N.yieldResult;F.updateCinematicSettings(x);ZoK(p);_.JB(N)})},q$E=function(p){var x=_.rH();
if(_.S("kevlar_measure_ambient_mode_idle")&&!x.getFlag(192)&&!Nj6){Nj6=!0;var F=_.vZ(_.E0,function(){_.J().resolve(_.B1_).start(1E4)},5E3);
p.addOnDisposeCallback(function(){_.E0.cancelJob(F);_.J().resolve(_.B1_).stop()})}},Kib=function(p,x,F){p.fullscreen=x;
p.theater=F;var N;(N=p.JSC$20165_cinematicController)==null||N.setFullscreen(p.fullscreen,p.theater);if(_.S("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(p.theater||p.fullscreen)(p=p.JSC$20165_cinematicController)!=null&&(p=p.currentCinematicEffect)!=null&&(p=p.storyboardManager,p.paused=!1,_.kBK(p),p.update());else{var h;(h=p.JSC$20165_cinematicController)==null||_.tD5(h)}},ZoK=function(p){if(_.S("web_cinematic_theater_mode")||_.S("web_cinematic_fullscreen")){var x;
p.JSC$20165_watchApi.getRoot().toggleCinematicsActive(!((x=p.JSC$20165_cinematicController)==null||!x.isEnabled()))}};var JTg=function(p){_.Jm.call(this);var x=this;this.JSC$20168_watchApi=p;this.commentsReady=!1;this.setCommentsJobId=0;p=_.qJ(_.Bi(),_.G_,function(){tln(x)});
this.addOnDisposeCallback(p);var F=this.JSC$20168_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){dfE(x)}),N=this.JSC$20168_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){dfE(x)});
this.addOnDisposeCallback(function(){x.JSC$20168_watchApi.unsubscribeByKey(F);x.JSC$20168_watchApi.unsubscribeByKey(N)});
var h=function(){_.S("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&vle(x,"false")};
this.JSC$20168_watchApi.getRoot().addEventListener("yt-page-data-will-update",h);this.addOnDisposeCallback(function(){x.JSC$20168_watchApi.getRoot().removeEventListener("yt-page-data-will-update",h)});
dfE(this)};
_.E(JTg,_.Jm);var dfE=function(p){p.commentsReady=!1;_.E0.cancelJob(p.setCommentsJobId);p.setCommentsJobId=_.vZ(_.E0,function(){tln(p)},1E3)},tln=function(p){if(!p.commentsReady){_.wH("cmi");
_.E0.cancelJob(p.setCommentsJobId);var x,F,N,h,c=(x=p.JSC$20168_watchApi.getWatchNextResponse())==null?void 0:(F=x.contents)==null?void 0:(N=F.twoColumnWatchNextResults)==null?void 0:(h=N.results)==null?void 0:h.results.contents;x=void 0;if(c&&c.length)for(c=_.a(c),F=c.next();!F.done;F=c.next())if(F=F.value,h=N=void 0,((N=F)==null?void 0:(h=N.itemSectionRenderer)==null?void 0:h.sectionIdentifier)==="comment-item-section"){_.S("web_watch_provide_undefined_comments")?x=F.itemSectionRenderer:p.JSC$20168_watchApi.provideRenderingData("COMMENTS",
F.itemSectionRenderer);vle(p,"true");break}_.S("web_watch_provide_undefined_comments")&&p.JSC$20168_watchApi.provideRenderingData("COMMENTS",x);p.commentsReady=!0;p.JSC$20168_watchApi.dispatchEvent("yt-watch-comments-ready")}},vle=function(p,x){var F;
(F=p.JSC$20168_watchApi.getElement("COMMENTS"))==null||F.setAttribute("canScheduleJobs",x)};var glK;_.CKP=["engagement-panel-ads"];
glK=function(p){_.Jm.call(this);var x=this;this.JSC$20171_watchApi=p;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.S("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.S("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.S("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.Ud("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)S$K(this);
else{var F=this.JSC$20171_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){rTb(x);VN(x)}),N=this.JSC$20171_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){WM(x);
VN(x)});
this.JSC$20171_watchApi.getRoot().is==="ytd-watch-grid"&&_.S("swatcheroo_pbs_load_grid")&&(Elo(this),XZg(this));this.addOnDisposeCallback(function(){x.JSC$20171_watchApi.unsubscribeByKey(F);x.JSC$20171_watchApi.unsubscribeByKey(N);_.E0.cancelJob(x.provideRichGridJobId)});
rTb(this);WM(this)}};
_.E(glK,_.Jm);var S$K=function(p){var x=p.JSC$20171_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){p.providePlayerJobId=_.rR(_.E0,function(){rTb(p);VN(p)},p.provideAllDataDelayMs)}),F=p.JSC$20171_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){p.provideWatchNextJobId=_.rR(_.E0,function(){WM(p);
VN(p)},p.provideAllDataDelayMs)}),N=p.JSC$20171_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){p.provideWatchNextJobId=_.rR(_.E0,function(){WM(p);
VN(p)},p.provideAllDataDelayMs)});
p.JSC$20171_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.vZ(_.E0,function(){rTb(p);WM(p);VN(p)},100)});
Qcl(p.JSC$20171_watchApi,function(){_.E0.cancelJob(p.provideWatchNextJobId);_.E0.cancelJob(p.providePlayerJobId)});
p.addOnDisposeCallback(function(){uF(p.JSC$20171_watchApi,"yt-pending-navigation-cancelled");p.JSC$20171_watchApi.unsubscribeByKey(x);p.JSC$20171_watchApi.unsubscribeByKey(F);p.JSC$20171_watchApi.unsubscribeByKey(N);_.E0.cancelJob(p.providePlayerJobId);_.E0.cancelJob(p.provideWatchNextJobId)});
rTb(p);WM(p)},rTb=function(p){var x=p.JSC$20171_watchApi.getPlayerResponse(),F,N,h=(N=x==null?void 0:(F=x.playabilityStatus)==null?void 0:F.messageRenderers)!=null?N:[],c,M;
x=(M=x==null?void 0:(c=x.playabilityStatus)==null?void 0:c.messages)!=null?M:[];c=_.a(x);for(M=c.next();!M.done;M=c.next())h.push({alertRenderer:{text:_.L1(M.value),type:"WARNING"}});p.JSC$20171_watchApi.provideRenderingData("ALERTS",h)},WM=function(p){var x=[],F,N,h,c=p.JSC$20171_watchApi.getWatchNextResponse(),M,f,K,t,d=c==null?void 0:(M=c.contents)==null?void 0:(f=M.twoColumnWatchNextResults)==null?void 0:(K=f.results)==null?void 0:(t=K.results)==null?void 0:t.contents;
if(d)for(M=_.a(d),f=M.next();!f.done;f=M.next())if(f=f.value,f.videoPrimaryInfoRenderer)var v=f;else if(f.videoSecondaryInfoRenderer){var C=f;t=K=void 0;f=Object.assign({},(K=f.videoSecondaryInfoRenderer)==null?void 0:(t=K.metadataRowContainer)==null?void 0:t.metadataRowContainerRenderer);if(f.rows&&f.collapsedItemCount!==void 0){f.rows=f.rows.slice(0,f.collapsedItemCount).filter(function(jp){return!!jp.richMetadataRowRenderer});
f.collapsedItemCount=f.rows.length;var X={metadataRowContainerRenderer:f}}}else if(f.merchandiseShelfRenderer)var Q=f;else if(f.ticketShelfRenderer)var b=f;else if(f.expandableMetadataRenderer)var A=f;else if(f.itemSectionRenderer)if(K=f.itemSectionRenderer.contents,t=void 0,p.directlyProvideComments&&((t=f.itemSectionRenderer)==null?void 0:t.sectionIdentifier)==="comment-item-section")_.wH("cmi"),p.JSC$20171_watchApi.provideRenderingData("COMMENTS",f.itemSectionRenderer);else if(K)for(f=_.a(K),K=
f.next();!K.done;K=f.next())if(K=K.value,K.commentsEntryPointHeaderRenderer)var Y=K;else if(K.clarificationRenderer||K.infoPanelContainerRenderer||K.infoPanelContentRenderer||K.emergencyOneboxRenderer){x.push(K);var O=O||!!C}else K.limitedStateMessageRenderer?N=K:K.videoMetadataCarouselViewModel&&(h=K);if(_.S("web_watch_merch_in_sd_when_ticket_shelf_present")&&Q&&b){var Fw=Q;Q=void 0}if(p.provideWatchNextSecondaryResults){var R,ld,pp;p.JSC$20171_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
c==null?void 0:(R=c.contents)==null?void 0:(ld=R.twoColumnWatchNextResults)==null?void 0:(pp=ld.secondaryResults)==null?void 0:pp.secondaryResults)}if(p.JSC$20171_watchApi.getRoot().is==="ytd-watch-grid"&&!_.S("swa_prov_panels_ks")&&(c==null?0:c.engagementPanels)){var Kp=c.engagementPanels.filter(function(jp){var fZ,Uv;return _.CKP.includes((Uv=jp==null?void 0:(fZ=jp.engagementPanelSectionListRenderer)==null?void 0:fZ.targetId)!=null?Uv:"")});
var sM=c.engagementPanels.filter(function(jp){var fZ,Uv;return!_.CKP.includes((Uv=jp==null?void 0:(fZ=jp.engagementPanelSectionListRenderer)==null?void 0:fZ.targetId)!=null?Uv:"")})}if(p.JSC$20171_watchApi.getRoot().is==="ytd-watch-grid"){var np,Jz;
p.JSC$20171_watchApi.provideRenderingData("LIVE_CHAT",c==null?void 0:(np=c.contents)==null?void 0:(Jz=np.twoColumnWatchNextResults)==null?void 0:Jz.conversationBar)}var Y$,xB,qI,RJ;(R=c==null?void 0:(Y$=c.contents)==null?void 0:(xB=Y$.twoColumnWatchNextResults)==null?void 0:(qI=xB.secondaryResults)==null?void 0:(RJ=qI.secondaryResults)==null?void 0:RJ.offerModule)&&(R.donationShelfRenderer||R.donationUnavailableRenderer)&&p.JSC$20171_watchApi.getRoot().is!=="ytd-watch-grid"&&(F=R);Y$=p.JSC$20171_watchApi.getPlayerResponse();
if(!Y$||!_.ZOZ(Y$.playabilityStatus,c==null?void 0:c.playerOverlays)){var Ik;if(c==null?0:(Ik=c.contents)==null?0:Ik.singleColumnWatchNextResults){var vb,CZ;var sk=c==null?void 0:(vb=c.contents.singleColumnWatchNextResults.results)==null?void 0:(CZ=vb.results)==null?void 0:CZ.contents}else{var Ov,Xj,AC,Jo;Ik=!!(d==null?0:(Ov=d[0])==null?0:(Xj=Ov.itemSectionRenderer)==null?0:(AC=Xj.contents)==null?0:(Jo=AC[0])==null?0:Jo.backgroundPromoRenderer);var Bz,aJ;Ov=!!(c==null?0:(Bz=c.contents)==null?0:(aJ=
Bz.twoColumnWatchNextResults)==null?0:aJ.secondaryResults);Ik&&!Ov&&(sk=d)}}d=x[0];Bz=x[1];O&&x.length===1&&(Bz=d,d=void 0);p.JSC$20171_watchApi.provideRenderingData("PRIMARY_INFO",v);p.JSC$20171_watchApi.provideRenderingData("SECONDARY_INFO",C);p.JSC$20171_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",Y);p.JSC$20171_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",h);p.JSC$20171_watchApi.provideRenderingData("CLARIFICATION",d);p.JSC$20171_watchApi.provideRenderingData("RICH_METADATA",
X);p.JSC$20171_watchApi.getRoot().is!=="ytd-watch-grid"||_.S("swa_prov_panels_ks")||_.S("web_watch_inject_placeholder_panels")||(p.JSC$20171_watchApi.provideRenderingData("ENGAGEMENT_PANELS",sM),p.JSC$20171_watchApi.provideRenderingData("INLINE_ENGAGEMENT_PANELS",Kp));p.JSC$20171_watchApi.provideRenderingData("MERCH_SHELF",Q);_.S("web_watch_merch_in_sd_when_ticket_shelf_present")&&p.JSC$20171_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",Fw);p.JSC$20171_watchApi.provideRenderingData("TICKET_SHELF",
b);p.JSC$20171_watchApi.provideRenderingData("LIMITED_STATE",N);p.JSC$20171_watchApi.getRoot().is!=="ytd-watch-grid"&&p.JSC$20171_watchApi.provideRenderingData("DONATION_SHELF",F);p.JSC$20171_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",sk);p.JSC$20171_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",Bz);p.JSC$20171_watchApi.provideRenderingData("EXPANDABLE_METADATA",A);if(p.swatcherooProvideAllDataOnScheduledJob){var he,Bb,PH,dl,nZ,ep;v=c==null?void 0:(he=c.contents)==null?void 0:
(Bb=he.twoColumnWatchNextResults)==null?void 0:(PH=Bb.secondaryResults)==null?void 0:(dl=PH.secondaryResults)==null?void 0:(nZ=dl.results)==null?void 0:(ep=nZ[0])==null?void 0:ep.richGridRenderer;p.JSC$20171_watchApi.provideRenderingData("RICH_GRID_RENDERER",v)}};
glK.prototype.hasCompanionAds=function(p){var x,F;return(F=p==null?void 0:(x=p.adPlacements)==null?void 0:x.some(function(N){var h,c,M,f;return(N==null?void 0:(h=N.adPlacementRenderer)==null?void 0:(c=h.renderer)==null?void 0:c.actionCompanionAdRenderer)||(N==null?void 0:(M=N.adPlacementRenderer)==null?void 0:(f=M.renderer)==null?void 0:f.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?F:!1};
var VN=function(p){if(!_.S("swaterdoo_ps_wn_handle_ks")){p.swatcherooProvideAllDataOnScheduledJob||XZg(p,_.Ud("swatcheroo_pbs_max_delay_ms",3E3));var x=p.JSC$20171_watchApi.getPlayerResponse(),F,N,h,c,M,f=(F=p.JSC$20171_watchApi.getWatchNextResponse())==null?void 0:(N=F.contents)==null?void 0:(h=N.twoColumnWatchNextResults)==null?void 0:(c=h.secondaryResults)==null?void 0:(M=c.secondaryResults)==null?void 0:M.offerModule;x=p.hasCompanionAds(x);var K,t;F=(f==null?void 0:(K=f.tvfilmOfferModuleRenderer)==
null?void 0:K.clientShouldSuppressIfCompanionAdDisplayed)||(f==null?void 0:(t=f.unlimitedOfferModuleRenderer)==null?void 0:t.suppressIfCompanionAds);K=x&&F;p.JSC$20171_watchApi.getRoot().is==="ytd-watch-grid"&&p.JSC$20171_watchApi.provideRenderingData("OFFER_MODULE",K?void 0:f)}},XZg=function(p,x){_.S("swatcheroo_pbs_load_grid")&&(p.provideRichGridJobId&&_.E0.cancelJob(p.provideRichGridJobId),p.provideRichGridJobId=_.rR(_.E0,function(){p.provideRichGridJobId=0;
var F,N,h,c,M,f,K,t=(F=p.JSC$20171_watchApi.getWatchNextResponse())==null?void 0:(N=F.contents)==null?void 0:(h=N.twoColumnWatchNextResults)==null?void 0:(c=h.secondaryResults)==null?void 0:(M=c.secondaryResults)==null?void 0:(f=M.results)==null?void 0:(K=f[0])==null?void 0:K.richGridRenderer;t&&p.JSC$20171_watchApi.provideRenderingData("RICH_GRID_RENDERER",t)},x))},Elo=function(p){var x,F;
_.D(function(N){if(N.nextAddress==1)return _.q(N,p.JSC$20171_watchApi.playerApi,2);x=N.yieldResult;F=function(){p.onPlaybackStart()};
x.addEventListener("onPlaybackStartExternal",F);p.addOnDisposeCallback(function(){x.removeEventListener("onPlaybackStartExternal",F)});
_.JB(N)})};
glK.prototype.onPlaybackStart=function(){XZg(this)};var scb=function(p){_.Jm.call(this);var x=this;this.JSC$20181_watchApi=p;p.playerApi.then(function(F){x.player=F});
this.gestures=new _.tez(this.JSC$20181_watchApi.getRoot(),p.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(Yn(_.Bi().getState())&&_.G_(_.Bi().getState())<=0)if(_.w9(_.Bi().getState())){var F;(F=x.player)==null||F.toggleFullscreen()}else _.lA(x.JSC$20181_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
zRE(this)};
_.E(scb,_.Jm);var zRE=function(p){var x=_.qJ(_.Bi(),_.w9,function(F){p.gestures&&p.gestures.update(F)});
p.addOnDisposeCallback(x);x=_.qJ(_.Bi(),_.G_,function(F){p.gestures&&(F>0?p.gestures.detach():p.gestures.attach())});
p.addOnDisposeCallback(x)};var yTE=function(p){_.Jm.call(this);var x=this;this.JSC$20184_watchApi=p;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
p=_.qJ(_.Bi(),Yn,function(F){x.onActiveChanged(F)});
this.addOnDisposeCallback(p);nln(this);this.onActiveChanged(Yn(_.Bi().getState()))};
_.E(yTE,_.Jm);var boK=function(p){if(_.S("swatcheroo_page_dispose_all_watch_data"))p.pageDisposalDataTypes=Object.values(PbP).filter(function(F){return F!=="PLAYLIST"});
else if(_.S("swatcheroo_page_dispose_rich_grid")){var x;(x=p.pageDisposalDataTypes)==null||x.push("RICH_GRID_RENDERER")}},nln=function(p){_.S("swatcheroo_enable_ghost_cards")&&(boK(p),p.JSC$20184_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.E0.cancelJob(p.clearDataJobId);
p.clearDataJobId=0}),p.runPageDisposeJob=function(){var x=_.J().resolve(_.j3).getDestinationPageType()==="watch";
p.clearDataJobId=_.rR(_.E0,p.runClearDataJob,x?0:_.Ud("web_watch_delay_page_dispose_ms",1E4))},p.runClearDataJob=function(){ATz(p)},p.runOnYtNavigateAwayFinish=function(){p.clearDataJobId&&(_.E0.cancelJob(p.clearDataJobId),p.clearDataJobId=0,ATz(p))},document.addEventListener("yt-navigate-finish",p.runOnYtNavigateAwayFinish),Qcl(p.JSC$20184_watchApi,p.runPageDisposeJob),p.addOnDisposeCallback(function(){var x=p.JSC$20184_watchApi;
x.rootElement.pageDisposeJobs&&_.Lp(x.rootElement.pageDisposeJobs,p.runPageDisposeJob);uF(p.JSC$20184_watchApi,"yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",p.runOnYtNavigateAwayFinish)}))},ATz=function(p){p.pageDisposalDataTypes.forEach(function(x){p.JSC$20184_watchApi.provideRenderingData(x,void 0)});
p.clearDataJobId=0};
yTE.prototype.onActiveChanged=function(p){p&&((p=document.querySelector("#watch-page-skeleton"))&&_.qc(p),uxM(this),document.body.removeAttribute("no-y-overflow"),_.nt("IS_SHELL_LOAD")&&_.sVH())};
var uxM=function(p){_.D(function(x){if(x.nextAddress==1)return _.q(x,p.JSC$20184_watchApi.playerApi,2);_.UW();_.JB(x)})};var Y$M=_.S("kevlar_watch_while_counterfactual")?0:.25,Wiz=function(p){_.Jm.call(this);this.JSC$20187_watchApi=p;this.JSC$20187_watchWhileEnabled=_.S("kevlar_watch_while_v2");this.pipEnabled=_.S("web_enable_pip_on_miniplayer");wZM(this);Gjn(this);VlP(this)};
_.E(Wiz,_.Jm);var wZM=function(p){p.JSC$20187_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){HoA(p)});
p.addOnDisposeCallback(function(){uF(p.JSC$20187_watchApi,"yt-activate-miniplayer-from-watch-action")})},Gjn=function(p){var x,F;
_.D(function(N){if(N.nextAddress==1)return _.q(N,p.JSC$20187_watchApi.playerApi,2);x=N.yieldResult;F=function(){HoA(p)};
x.addEventListener("onCollapseMiniplayer",F);p.addOnDisposeCallback(function(){x.removeEventListener("onCollapseMiniplayer",F)});
_.JB(N)})},VlP=function(p){var x=p.JSC$20187_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&x&&p.JSC$20187_watchWhileEnabled&&(p.playerIntersectionObserver=new IntersectionObserver(function(F){p.handleIntersect(F)},{threshold:[Y$M]}),p.playerIntersectionObserver.observe(x),p.addOnDisposeCallback(function(){var F;
(F=p.playerIntersectionObserver)==null||F.disconnect()}))},HoA=function(p){var x,F,N;
_.D(function(h){if(h.nextAddress==1){x=_.J().resolve(_.j3);F=x.data;N=_.l6J(F.response,F.playerResponse);_.fb().miniplayerButtonActivation=!0;if(p.pipEnabled)return _.fb().watchPipActivation=!0,h.jumpTo(2);_.J().resolve(_.H$).collapse();return _.q(h,_.fb().navigationFinishPromise,2)}if(h.nextAddress!=4)return _.fb().currentEndpoint=N.watchEndpoint||null,_.q(h,_.J().resolve(_.H$).activate(p.JSC$20187_watchApi.getElement("PLAYER"),N,F),4);_.fb().userActivation=!0;_.JB(h)})};
Wiz.prototype.handleIntersect=function(p){mfA(this,p[p.length-1])};
var mfA=function(p,x){p.watchWhileJobId&&_.E0.cancelJob(p.watchWhileJobId);p.watchWhileJobId=_.E0.addLowPriorityJob(function(){var F,N;return _.D(function(h){if(h.nextAddress==1)return p.watchWhileJobId=void 0,F=_.J().resolve(_.H$),x.intersectionRatio>Y$M?F.isMiniplayerActive()?_.q(h,F.deactivate(),0):h.jumpTo(0):(N=!F.isMiniplayerActive())?_.q(h,olU(p),5):h.jumpTo(4);h.nextAddress!=4&&(N=h.yieldResult);if(!N)return h.jumpTo(0);_.fb().watchWhileActivation=!0;return _.q(h,OoM(p),0)})},100)},olU=function(p){return _.D(function(x){return x.nextAddress==
1?_.S("kevlar_watch_while_paused")?x.return(!0):_.q(x,p.isPlayerPlaying(),2):x.return(x.yieldResult)})};
Wiz.prototype.isPlayerPlaying=function(){var p=this,x;return _.D(function(F){if(F.nextAddress==1)return _.q(F,p.JSC$20187_watchApi.playerApi,2);x=F.yieldResult;return F.return(x.getPlayerStateObject().isPlaying)})};
var OoM=function(p){var x,F;return _.D(function(N){x=_.J().resolve(_.j3).data;F=_.l6J(x.response,x.playerResponse);_.fb().currentEndpoint=F.watchEndpoint||null;return _.q(N,_.J().resolve(_.H$).activate(p.JSC$20187_watchApi.getElement("PLAYER"),F,x),0)})};var PKE=function(p){_.Jm.call(this);this.JSC$20191_watchApi=p;jco(this);LiP(this)};
_.E(PKE,_.Jm);var LiP=function(p){var x,F;_.D(function(N){if(N.nextAddress==1)return _.q(N,p.JSC$20191_watchApi.playerApi,2);x=N.yieldResult;F=function(h){var c;h.sessionData&&h.sessionData.itct&&(c=h.sessionData.itct);var M=h.watchEndpoint;if(M&&h.sessionData&&h.sessionData.autonav)M=_.G$6(M,c);else{var f;M=_.$v(h.videoId,(f=h.listId)!=null?f:void 0,c)}c={endpoint:M};h.sessionData&&(c.tempData=h.sessionData);p.JSC$20191_watchApi.dispatchEvent("yt-navigate",c)};
x.addEventListener("onPlayVideo",F);p.addOnDisposeCallback(function(){x.removeEventListener("onPlayVideo",F)});
_.JB(N)})},jco=function(p){var x=function(F){p.onYtNavigate(F)};
p.JSC$20191_watchApi.getRoot().addEventListener("yt-navigate",x);p.addOnDisposeCallback(function(){p.JSC$20191_watchApi.getRoot().removeEventListener("yt-navigate",x)})};
PKE.prototype.onYtNavigate=function(p){var x=this,F,N,h,c,M,f,K,t,d;return _.D(function(v){if(v.nextAddress==1){if(!((F=p.detail)==null?0:(N=F.endpoint)==null?0:N.watchEndpoint))return v.return();h=p.detail.endpoint.watchEndpoint;c=x.JSC$20191_watchApi.getWatchNextResponse();f=_.r((M=c)==null?void 0:M.currentVideoEndpoint,_.B7);if(!f)return v.return();if(h.videoId!==f.videoId||h.playlistId&&h.playlistId!==f.playlistId||typeof h.startTimeSeconds!=="number")return v.jumpTo(0);p.stopPropagation();(K=
_.S("kevlar_watch_while_v2")&&!_.S("kevlar_watch_while_counterfactual"))&&_.J().resolve(_.H$).isMiniplayerActive()||x.JSC$20191_watchApi.scrollWatchTo(0,!0);return _.q(v,x.JSC$20191_watchApi.playerApi,3)}t=v.yieldResult;d=h.startTimeSeconds;t.seekTo(d,void 0,void 0,void 0,84);t.wakeUpControls();d<t.getDuration()&&t.playVideo();_.JB(v)})};var Ufz=function(p){_.Jm.call(this);var x=this;this.JSC$20194_watchApi=p;p=_.qJ(_.Bi(),_.M8M,function(){TjM(x)});
this.addOnDisposeCallback(p);p=_.qJ(_.Bi(),_.YkA,function(){TjM(x)});
this.addOnDisposeCallback(p);BjP(this);RRe(this);kj5()};
_.E(Ufz,_.Jm);var BjP=function(p){var x=function(N){_.Bi().dispatch(_.Gl6(N.matches))},F=window.matchMedia("(max-width: "+(999+_.zQ())+"px)");
F.addListener(x);p.addOnDisposeCallback(function(){F.removeListener(x)});
x(F)},RRe=function(p){p.JSC$20194_watchApi.registerActionHandler("yt-window-resized",function(){kj5()});
p.addOnDisposeCallback(function(){uF(p.JSC$20194_watchApi,"yt-window-resized")})},kj5=function(){var p=_.tF();
_.Bi().dispatch(_.F4({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:p.width,height:p.height}}}))},TjM=function(p){var x;
_.D(function(F){if(F.nextAddress==1)return _.q(F,p.JSC$20194_watchApi.playerApi,2);x=F.yieldResult;x.setSize(NaN,NaN);_.JB(F)})};var IOU=function(p){_.Jm.call(this);var x=this;this.JSC$20198_watchApi=p;var F=this.JSC$20198_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){io5(x)});
this.addOnDisposeCallback(function(){x.JSC$20198_watchApi.unsubscribeByKey(F)});
io5(this)};
_.E(IOU,_.Jm);var io5=function(p){var x=p.JSC$20198_watchApi.getWatchNextResponse();if(x){var F,N=[].concat(_.se((F=x==null?void 0:x.engagementPanels)!=null?F:[]));N.unshift.apply(N,_.se($fo(x)));p.JSC$20198_watchApi.provideRenderingData("ENGAGEMENT_PANELS",N)}},eRz=function(p){var x;
if(_.S("enable_yoututor_for_learning_journeys")&&((x=_.YC(window.location.href,"list"))==null?0:x.startsWith("LJ")))return!0;var F,N,h;x=(F=p.engagementPanels)==null?void 0:(N=F.find(function(X){var Q;return((Q=X.engagementPanelSectionListRenderer)==null?void 0:Q.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(h=N.engagementPanelSectionListRenderer.content)==null?void 0:h.structuredDescriptionContentRenderer;
var c;if(_.r(x==null?void 0:(c=x.items)==null?void 0:c.find(function(X){return!!_.r(X,EZb)}),EZb))return!0;
var M,f,K,t;if(p=(((M=p.contents)==null?void 0:(f=M.twoColumnWatchNextResults)==null?void 0:(K=f.results)==null?void 0:(t=K.results)==null?void 0:t.contents)||[]).find(function(X){return X.videoPrimaryInfoRenderer})){var d,v,C;
return(((d=p.videoPrimaryInfoRenderer)==null?void 0:(v=d.videoActions)==null?void 0:(C=v.menuRenderer)==null?void 0:C.flexibleItems)||[]).some(function(X){X=_.r(X,_.wfB);if(!X)return!1;var Q,b;X=(Q=X.topLevelButton)==null?void 0:(b=Q.buttonViewModel)==null?void 0:b.onTap;if(!X)return!1;Q=_.g$(X);if(!Q)return!1;var A;return((A=_.r(Q,_.Af))==null?void 0:A.panelIdentifier)==="PAyouchat"})}return!1},$fo=function(p){var x=[];
if(!_.S("web_watch_inject_placeholder_fantasy_panel_killswitch")){var F,N,h,c=(F=p.engagementPanels)==null?void 0:(N=F.find(function(f){var K;return((K=f.engagementPanelSectionListRenderer)==null?void 0:K.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(h=N.engagementPanelSectionListRenderer.content)==null?void 0:h.structuredDescriptionContentRenderer,M;
_.r(c==null?void 0:(M=c.items)==null?void 0:M.find(function(f){return!!_.r(f,InM)}),InM)&&(F=_.pom("PAsports_fantasy"),F.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",x.push(F))}eRz(p)&&(p=_.pom("PAyouchat"),p.engagementPanelSectionListRenderer.targetId="PAyouchat",p.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",x.push(p));
return x};var xnb=function(p){_.Jm.call(this);this.JSC$20201_watchApi=p;pQb(this)};
_.E(xnb,_.Jm);var pQb=function(p){p.JSC$20201_watchApi.registerActionHandler("yt-loop-command",function(x){FfM(p,x)});
p.JSC$20201_watchApi.registerActionHandler("yt-repeat-chapter-command",function(x){NgU(p,x)});
p.addOnDisposeCallback(function(){uF(p.JSC$20201_watchApi,"yt-loop-command");uF(p.JSC$20201_watchApi,"yt-repeat-chapter-command")})},FfM=function(p,x){var F;
_.D(function(N){if(N.nextAddress==1)return _.q(N,p.JSC$20201_watchApi.playerApi,2);F=N.yieldResult;_.r(x,e5M).loop?(F.setLoopRange({startTimeMs:Number(_.r(x,e5M).startTimeMs),endTimeMs:Number(_.r(x,e5M).endTimeMs),postId:_.r(x,e5M).postId,type:"clips"}),F.playVideo()):F.setLoopRange(null);_.JB(N)})},NgU=function(p,x){var F,N;
_.D(function(h){if(h.nextAddress==1)return _.q(h,p.JSC$20201_watchApi.playerApi,2);F=h.yieldResult;N=_.r(x,hDn).repeat;N==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(F.setLoopRange({startTimeMs:Number(_.r(x,hDn).startTimeMs),endTimeMs:Number(_.r(x,hDn).endTimeMs),type:"repeatChapter"}),F.playVideo()):N==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&F.setLoopRange(null);_.JB(h)})};var lW6=function(p){_.Jm.call(this);this.JSC$20206_watchApi=p;hTA(this)};
_.E(lW6,_.Jm);var hTA=function(p){p.JSC$20206_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(x){clb(p,x)});
p.addOnDisposeCallback(function(){uF(p.JSC$20206_watchApi,"yt-watch-player-overflow-menu-command")})},clb=function(p,x){var F,N,h,c,M,f,K,t,d,v,C;
_.D(function(X){if(X.nextAddress==1)return _.q(X,p.JSC$20206_watchApi.playerApi,2);F=X.yieldResult;if(c=(h=(N=_.r(x,lCP))==null?void 0:N.highlightedMenuItemKey)!=null?h:"")(f=(M=F).highlightSettingsMenuItem)==null||f.call(M,c);if(d=(t=(K=_.r(x,lCP))==null?void 0:K.openMenuItemKey)!=null?t:"")(C=(v=F).openSettingsMenuItem)==null||C.call(v,d);_.JB(X)})};var aWe=_.au("/youtube/app/watch/player_state","playerStateEntity");var Dn5=function(p){_.Jm.call(this);this.JSC$20209_watchApi=p;MBU(this)};
_.E(Dn5,_.Jm);var fW5=function(p){switch(p){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"}},MBU=function(p){var x,F;
_.D(function(N){if(N.nextAddress==1)return _.q(N,p.JSC$20209_watchApi.playerApi,2);x=N.yieldResult;F=function(h){p.onPlayerStateChange(h)};
x.addEventListener("onStateChange",F);p.addOnDisposeCallback(function(){x.removeEventListener("onStateChange",F)});
_.JB(N)})};
Dn5.prototype.onPlayerStateChange=function(p){var x=this,F,N;return _.D(function(h){if(h.nextAddress==1)return _.q(h,x.JSC$20209_watchApi.playerApi,2);F=h.yieldResult;N=F.getVideoData().video_id;_.u8().dispatch(_.KV("playerStateEntity",aWe,{key:aWe,playerState:fW5(p),videoId:N}));_.JB(h)})};var Kf5=function(p){_.Jm.call(this);var x=this;this.JSC$20213_watchApi=p;p=_.Bi();var F=_.qJ(p,Yn,function(N){x.onActiveChanged(N)});
this.addOnDisposeCallback(F);_.J().resolve(_.Yx).setPlayer(this.JSC$20213_watchApi.getElement("PLAYER"));this.onActiveChanged(Yn(p.getState()))};
_.E(Kf5,_.Jm);Kf5.prototype.onActiveChanged=function(p){var x=this,F=_.J().resolve(_.Yx),N=function(){q4e(x)};
p?(p=this.JSC$20213_watchApi.getElement("PLAYLIST_PANEL"))?(F.setPlaylistComponent(p),F.addEventListener("yt-playlist-data-updated",N),this.addOnDisposeCallback(function(){F.removeEventListener("yt-playlist-data-updated",N)}),q4e(this)):_.uO(Error("hm")):(F.removeEventListener("yt-playlist-data-updated",N),F.cancelVideoSkip())};
var q4e=function(p){var x=_.J().resolve(_.Yx);p.JSC$20213_watchApi.provideRenderingData("PLAYLIST",x.getPlaylistData())};var vMA=function(p){_.Jm.call(this);var x=this;this.JSC$20216_watchApi=p;this.onPageScroll=function(){x.scrollThrottle.fire();x.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.IC(this.onThrottledScroll,200,this);_.aG(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.IC(this.onMastheadThrottledScroll,50,this);_.aG(this,this.mastheadScrollThrottle);this.animation=new _.HE(function(F){x.JSC$20216_watchApi.getRoot().setScrollTop(F)});
p=_.qJ(_.Bi(),_.w9,function(){ZNP(x)});
this.addOnDisposeCallback(p);tBe(this);dnA(this);this.onThrottledScroll()};
_.E(vMA,_.Jm);
var ZNP=function(p){var x=p.JSC$20216_watchApi.getRoot();!p.pageScrollElement&&x.pageScrollElement?(p.pageScrollElement=x.pageScrollElement,x.pageScrollElement.addEventListener("scroll",p.onPageScroll),p.addOnDisposeCallback(function(){p.pageScrollElement&&p.pageScrollElement.removeEventListener("scroll",p.onPageScroll)})):p.pageScrollElement&&!x.pageScrollElement&&(p.pageScrollElement.removeEventListener("scroll",p.onPageScroll),p.pageScrollElement=void 0)},tBe=function(p){window.addEventListener("scroll",p.onPageScroll);
p.addOnDisposeCallback(function(){window.removeEventListener("scroll",p.onPageScroll)})},dnA=function(p){p.JSC$20216_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(x){a:{var F;
if(F=p.JSC$20216_watchApi.getRoot().contains(x)&&!p.animation.isAnimating()){F=x.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var N,h,c=(x==null?void 0:(N=x.parentElement)==null?void 0:(h=N.parentElement)==null?void 0:h.id)==="fixed-secondary";F=!(F&&c)}if(F){if(_.S("kevlar_watch_scroll_manager_absolute_offset_killswitch"))N=x.offsetTop;else for(N=0,h=x;h!==null;)N+=h.offsetTop,N-=h.scrollTop,h=h.offsetParent;h=N;N=h-24;x=h+x.offsetHeight+24;h=p.JSC$20216_watchApi.getRoot().getPageScrollingElement();
F=p.JSC$20216_watchApi.getRoot().getScrollTop();c=F+h.clientHeight-56;if(N<F+56)x=N-56;else if(x>c)x-=h.clientHeight;else break a;p.scrollWatchTo(Math.max(0,x),!0)}}});
p.addOnDisposeCallback(function(){uF(p.JSC$20216_watchApi,"yt-scroll-to-watch-element")})};
vMA.prototype.onThrottledScroll=function(){var p=_.Bi(),x=p.dispatch,F=this.JSC$20216_watchApi.getRoot().getScrollTop();x.call(p,_.F4({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:F}}))};
vMA.prototype.onMastheadThrottledScroll=function(){this.JSC$20216_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20216_watchApi.getRoot().getScrollTop())};
vMA.prototype.scrollWatchTo=function(p,x){(x===void 0?0:x)?this.animation.start(this.JSC$20216_watchApi.getRoot().getScrollTop(),Math.max(0,p),500):this.JSC$20216_watchApi.getRoot().setScrollTop(p)};var S4M=function(p){_.Jm.call(this);var x=this;this.JSC$20219_watchApi=p;var F=this.JSC$20219_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){JlM(x)}),N=this.JSC$20219_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){CLM(x)});
this.addOnDisposeCallback(function(){x.JSC$20219_watchApi.unsubscribeByKey(F);x.JSC$20219_watchApi.unsubscribeByKey(N)});
JlM(this);CLM(this)};
_.E(S4M,_.Jm);
var JlM=function(p){var x,F,N,h=(N=(x=p.JSC$20219_watchApi.getPlayerResponse())==null?void 0:(F=x.videoDetails)==null?void 0:F.title)!=null?N:"";p.JSC$20219_watchApi.dispatchEvent("yt-update-title",h)},CLM=function(p){var x,F,N,h,c,M,f,K=(f=((M=(x=p.JSC$20219_watchApi.getWatchNextResponse())==null?void 0:(F=x.contents)==null?void 0:(N=F.twoColumnWatchNextResults)==null?void 0:(h=N.results)==null?void 0:(c=h.results)==null?void 0:c.contents)!=null?M:[]).find(function(t){return!!t.videoPrimaryInfoRenderer}))==null?
void 0:f.videoPrimaryInfoRenderer;
(x=_.Pi(K==null?void 0:K.title))&&p.JSC$20219_watchApi.dispatchEvent("yt-update-title",x)};var EM5=function(p){_.Jm.call(this);this.JSC$20222_watchApi=p;rlE(this)};
_.E(EM5,_.Jm);var rlE=function(p){var x,F;_.D(function(N){if(N.nextAddress==1)return _.q(N,p.JSC$20222_watchApi.playerApi,2);x=N.yieldResult;F=function(){p.onYpcContentRequest()};
x.addEventListener("onYpcContentRequest",F);p.addOnDisposeCallback(function(){x.removeEventListener("onYpcContentRequest",F)});
_.JB(N)})};
EM5.prototype.onYpcContentRequest=function(){var p,x,F,N,h,c=(p=this.JSC$20222_watchApi.getWatchNextResponse())==null?void 0:(x=p.contents)==null?void 0:(F=x.twoColumnWatchNextResults)==null?void 0:(N=F.secondaryResults)==null?void 0:(h=N.secondaryResults)==null?void 0:h.offerModule,M,f,K,t;p=(t=(K=(f=(M=c==null?void 0:c.episodeOfferModuleRenderer)!=null?M:c==null?void 0:c.movieOfferModuleRenderer)!=null?f:c==null?void 0:c.unlimitedOfferModuleRenderer)!=null?K:c==null?void 0:c.liveOfferModuleRenderer)!=
null?t:c==null?void 0:c.tvfilmOfferModuleRenderer;var d,v,C;c=(C=c==null?void 0:(d=c.tvfilmOfferModuleRenderer)==null?void 0:(v=d.actionButtons)==null?void 0:v.length)!=null?C:0;v=Math.max(c-1,0);var X,Q,b;d=(b=p==null?void 0:(X=p.offerButton)==null?void 0:X.buttonRenderer)!=null?b:p==null?void 0:(Q=p.actionButtons)==null?void 0:Q[v].buttonRenderer;var A,Y;(X=(Y=(A=d==null?void 0:d.navigationEndpoint)!=null?A:d==null?void 0:d.serviceEndpoint)!=null?Y:d==null?void 0:d.command)&&_.xL.instance.resolveCommand(X)};_.HM=function(p){_.ey.call(this);var x=this;this.rootElement=p;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return x.activeModules}};
XQg(this);p=_.qJ(_.Bi(),Yn,function(F){x.initOrDisposeActiveModules(F)});
this.addOnDisposeCallback(p);this.initOrDisposeActiveModules(Yn(_.Bi().getState()));this.onAttached()};
_.E(_.HM,_.ey);_.HM.prototype.getRoot=function(){return this.rootElement};
_.HM.prototype.getElement=function(p){return this.rootElement.getElement(p)};
_.mS=function(p,x){p.playerResponse=x;p.publish("PLAYER_RESPONSE_UPDATED",x)};
_.HM.prototype.getPlayerResponse=function(){return this.playerResponse};
_.oQ=function(p,x){p.watchNextResponse===x?p.publish("WATCH_NEXT_RESPONSE_RELOADED"):(p.watchNextResponse=x,p.publish("WATCH_NEXT_RESPONSE_UPDATED",x))};
_.HM.prototype.getWatchNextResponse=function(){return this.watchNextResponse};
_.HM.prototype.registerActionHandler=function(p,x){var F=this;if(_.S("web_watch_controller_reg_multiple_handlers_killswitch")){var N={};_.WZ(_.Vj.getInstance(),(N[p]=x,N),this.getRoot())}else this.actionHandlers.has(p)||(this.actionHandlers.set(p,[]),N={},_.WZ(_.Vj.getInstance(),(N[p]=function(){var h=_.we.apply(0,arguments);return(F.actionHandlers.get(p)||[]).map(function(c){return c.apply(null,_.se(h))})},N),this.getRoot())),this.actionHandlers.get(p).push(x)};
var uF=function(p,x){if(_.S("web_watch_controller_reg_multiple_handlers_killswitch")){var F={};_.HZ(_.Vj.getInstance(),(F[x]=!0,F),p.getRoot())}else(F=p.actionHandlers.get(x))?(F.pop(),F.length===0&&(F={},_.HZ(_.Vj.getInstance(),(F[x]=!0,F),p.getRoot()),p.actionHandlers.delete(x))):_.no(new _.qE("Attempted to unregister an action handler which is not registered.",x))},Qcl=function(p,x){p.rootElement.pageDisposeJobs||(p.rootElement.pageDisposeJobs=[]);
_.E$E(p.rootElement.pageDisposeJobs,x)};
_.HM.prototype.dispatchEvent=function(p,x){_.hG(this.rootElement,p,x)};
_.HM.prototype.provideRenderingData=function(p,x){this.rootElement.provideRenderingData(p,x)};
_.HM.prototype.scrollWatchTo=function(p,x){var F;(F=this.watchScrollManager)==null||F.scrollWatchTo(p,x)};
_.HM.prototype.focusOnPlayer=function(){var p=this.getElement("PLAYER");_.jB(p,function(){if(p&&p.firstElementChild){var x=p.querySelector(".html5-video-player");x&&(_.D_v(_.J().resolve(_.CQ)),x.focus())}else _.no(Error("im"))})};
_.gMg=function(p){var x=!!p.rootElement.theater,F=!!p.rootElement.fullscreen,N;(N=p.watchCinematicManager)==null||Kib(N,F,x)};
_.HM.prototype.onAttached=function(){var p=_.S("external_fullscreen");_.S("use_unified_flag_accessor")&&(p=_.J().resolve(_.y98).retriever.getFlag(_.WVl));(p||_.nt("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var Q8g=function(p){return p.getRoot().is==="ytd-watch-flexy"||p.getRoot().is==="ytd-watch-grid"},OF=function(p){return p.getRoot().is==="ytd-watch-fixie"},XQg=function(p){if(OF(p)||Q8g(p)&&_.S("kevlar_watch_flexy_theater_manager")){var x=new oSK(p);
_.aG(p,x)}x=new yTE(p);_.aG(p,x);x=new YD(p);_.aG(p,x);x=new glK(p);_.aG(p,x);x=new Dn5(p);_.aG(p,x);x=new wp(p);_.aG(p,x);if(OF(p)||Q8g(p)&&_.S("kevlar_watch_flexy_playlist_manager"))x=new Kf5(p),_.aG(p,x)};
_.HM.prototype.initOrDisposeActiveModules=function(p){p?(this.watchScrollManager=new vMA(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new PKE(this)),this.activeModules.push(new Of6(this)),OF(this)&&this.activeModules.push(new Ufz(this)),this.activeModules.push(new S4M(this)),this.activeModules.push(new Wiz(this)),(OF(this)||_.S("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new Bqe(this)),this.activeModules.push(new xnb(this)),(OF(this)||
_.S("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new EM5(this)),(OF(this)||_.S("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new Fib(this)),_.S("kevlar_watch_cinematics")&&(this.watchCinematicManager=new aOn(this),this.activeModules.push(this.watchCinematicManager),_.gMg(this)),_.S("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new lW6(this)),_.S("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new scb(this)),p=_.S("swatcheroo_directly_provide_comments")&&
this.getRoot().is==="ytd-watch-grid",_.S("kevlar_watch_flexy_comments_manager")&&!p&&this.activeModules.push(new JTg(this)),_.S("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new l3E(this)),this.activeModules.push(new kWn(this)),_.S("web_watch_inject_placeholder_panels")&&this.activeModules.push(new IOU(this)),_.S("web_enable_timely_actions")&&this.activeModules.push(new $pg(this)),_.S("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new rde(this)),_.S("web_watch_enable_multiview_manager")&&
this.activeModules.push(new KdE(this)),_.S("web_fullscreen_video_action_bar")&&this.activeModules.push(new ifM(this)),_.S("web_player_rtr_ctrls")&&this.activeModules.push(new Xub(this))):(_.d$H(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.HM.prototype.disposeInternal=function(){_.ey.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.R8.Object.defineProperties(_.HM.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var FJk;FJk=function(p){switch(p){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:_.Pb(p,"unknown result type")}};
_.N$k=function(p,x,F){x=_.c5r[x];F={detected:p===0,source:x.wic,detectionResult:FJk(p),contentCpn:F};_.E$("biscottiBasedDetection",F);_.S("ab_l_sig_st")&&_.RLZ.increment(x.wic,p);x.oQr!==void 0&&_.zn("CATSTAT",_.NFp(p,x))};
_.kW=function(p,x){var F={};F.key=p;F.value=x;return _.wLp().then(function(N){return new Promise(function(h,c){try{var M=N.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(F);M.onsuccess=function(){h()};
M.onerror=function(){c()}}catch(f){c(f)}})})};
_.l$H=function(){var p=_.Ud("user_engagement_experiments_rate_limit_ms"),x=hle.get("last-user-engagement-exp-trigger-timestamp");return!x||(0,_.Lf)()>=x+p?(hle.set("last-user-engagement-exp-trigger-timestamp",(0,_.Lf)()),!0):!1};
_.U3=function(p,x,F,N,h){x=x===void 0?null:x;F=F===void 0?null:F;N=N===void 0?null:N;h=h===void 0?null:h;p={youThereEventType:p};F&&(p.lactThresholdMs=F.lactThresholdMs,p.mediaPosSec=F.promptDelaySec,p.lactServerRequestMs=F.lactServerRequestMs,p.triggerReason=F.triggerReason);h!=null&&(p.renderingMediaPosSec=Math.round(h));x||(x=_.b0());x&&(p.clientScreenNonce=x);N&&(p.clientPlaybackNonce=N);_.E$("youThere",p)};var hle=new _.s0("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.$nX=function(p){return _.F4({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:p})};
}catch(e){_._DumpException(e)}
try{
var Y4M,HNz,mnK,oMK,Alz,bNP,j8E;_.s8e=function(){var p=window.location.hash;p.charAt(0)==="#"&&(p=p.charAt(1)==="!"?p.substring(2):p.substring(1));return _.Gn(p)};
_.nMU=function(p){var x;_.D(function(F){x=["b.f_","j.s_","r.s_","e.h_"];_.S("ab_det_sc_inj")&&x.push("s.i_");_.S("ab_deg_unex_thr")||x.push("a.o_");_.S("ks_get_o_pp")||x.push("g.o_");_.S("ks_det_gpbl")||x.push("p.i_");x.push("f.i_");x.push("a.b_");x.push("p.m_");_.S("ab_det_el_h_v2")&&x.push("n.h_");x.push("o.p_");_.S("ab_det_apm")&&x.push("o.a_");x.forEach(function(N){var h;return _.D(function(c){if(c.nextAddress==1)return _.q(c,_.Lon[N](),2);h=c.yieldResult;p(h,N);_.JB(c)})});
_.JB(F)})};
_.ylo=function(p,x){p={videoId:p};x&&(p.playlistId=x);return p};
_.uPe=function(){if(!_.S("disable_biscotti_fetch_for_ad_blocker_detection")&&!_.S("disable_biscotti_fetch_entirely_for_all_web_clients")&&_.L3d()){var p=_.sd("PLAYER_VARS",{});if(_.Q5.get(p,"privembed",!1)!="1"&&!_.BW6(p)){var x=function(){bNP=!0;"google_ad_status"in window?_.zn("DCLKSTAT",1):_.zn("DCLKSTAT",2)};
try{_.VR("//static.doubleclick.net/instream/ad_status.js",x)}catch(F){}Alz.push(_.E0.addLowPriorityJob(function(){if(!(bNP||"google_ad_status"in window)){try{_.uQw("//static.doubleclick.net/instream/ad_status.js",x)}catch(F){}bNP=!0;_.zn("DCLKSTAT",3)}},5E3))}}};
Y4M=function(p){return _.S("web_watch_adjust_sidebar_width")?_.OX+((p===void 0?1500:p)-_.QyP)/100*_.zDz:_.OX};
_.wQe=function(p,x){p=p.width-_.Tjt();var F=Y4M(p);return Math.max(F,Math.min(_.yBb,F+(p-(_.nZK+Y4M(p)+_.ml+2*_.ml+x))))};
_.GcM=function(p,x,F){F=F===void 0?!1:F;var N=Math.max(p.width,_.sye);if(_.S("kevlar_watch_feed_big_thumbs")&&p.width>=1550-_.zQ()&&p.height>=800)N-=_.Yeo;else if(p.width>=_.oH){var h=_.nZK+Y4M(p.width)+_.ml;_.S("kevlar_watch_feed_big_thumbs")&&(h=_.uBo);N-=h}else N-=_.nZK;N=Math.min(N,_.bMe);h=240;F&&(h=380);x<.5624||(!_.S("kevlar_watch_flexy_disable_small_window_sizing")&&(p.height<630&&p.width>=657||p.height>=630&&p.width>=_.oH&&p.width<1327)?h=360:!_.S("kevlar_watch_flexy_disable_large_window_sizing")&&
p.height>=630&&p.width>=1327&&(h=480));var c=Math.min(N*x,p.height-(56+_.gZe+_.ABl));c=Math.max(c,h);x<1?N=c/x:p.width>=_.oH&&(N=_.GcM(p,.5625,F).width);return new _.q1(Math.round(N),Math.round(c))};
_.VBb=function(p){var x=0;p.indexOf("h")!=-1&&(p=p.split("h"),x=p[0]*60*60,p=p[1]);p.indexOf("m")!=-1&&(p=p.split("m"),x=p[0]*60+x,p=p[1]);p.indexOf("s")!=-1?(p=p.split("s"),x=p[0]*1+x):x=p*1+x;return x};
_.WfA=function(){_.Ud("service_worker_push_logged_out_prompt_watches")!=-1&&_.$r("WatchCount").then(function(p){p>=100||_.kW("WatchCount",p+1)})};
HNz=function(p){var x=p.externalVideoId||"";return x?(_.S("webfe_watch_shorts_canonical_url_fix")||_.sd("MWEB_ALLOW_SHORTS_CANONICAL_URL_FIX"))&&p.isShortsEligible?"https://www.youtube.com/shorts/"+x:"https://www.youtube.com/watch?v="+x:""};
mnK=function(p){var x=[];p.viewCount&&x.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:p.viewCount});p.likeCount&&x.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:p.likeCount});return x};
oMK=function(p){var x,F,N={"@context":"https://schema.org","@type":"VideoObject",description:_.Pi(p.description),duration:"PT"+(p.lengthSeconds||"0")+"S",embedUrl:p.embed?p.embed.iframeUrl:"",name:_.Pi(p.title),thumbnailUrl:((x=p.thumbnail)==null?void 0:(F=x.thumbnails)==null?void 0:F.map(function(d){return d&&d.url||""}))||[],
uploadDate:p.publishDate};_.S("mweb_video_schema_id_killswitch")||(N["@id"]=HNz(p));x=mnK(p);x.length&&(N.interactionStatistic=x);p.category&&(N.genre=p.category);p.ownerChannelName&&(N.author=p.ownerChannelName);p.liveBroadcastDetails&&(N.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:p.liveBroadcastDetails.startTimestamp,endDate:p.liveBroadcastDetails.endTimestamp}]);if(p.learningResource){p=p.learningResource;N["@type"]=["VideoObject","LearningResource"];var h;if((h=p.learningResourceType)==
null?0:h.length)N.learningResourceType=p.learningResourceType[0];var c;if((c=p.educationalAlignment)==null?0:c.length)N.educationalAlignment={"@type":"AlignmentObject",targetName:p.educationalAlignment[0]};var M;if((M=p.educationalLevel)==null?0:M.length){h=p.educationalLevel[0];var f;if((f=p.educationalLevelCountry)==null?0:f.length)h+=" ("+p.educationalLevelCountry+")";N.educationalLevel=h}var K,t;if(((K=p.learningResourceType)==null?0:K.length)&&p.learningResourceType[0]==="Problem walkthrough"&&
((t=p.problemDescriptions)==null?0:t.length))for(N.hasPart=[],f=_.a(p.problemDescriptions),K=f.next();!K.done;K=f.next())h=K.value,K=h.problemDescriptionText,t=h.startOffset,h=h.url,K&&t!==void 0&&h&&N.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:K,text:K,startOffset:t,url:h})}return N};
_.ONP=function(p){return _.F4({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:p}})};
Alz=[];bNP=!1;j8E=new _.U("updateSentimentBarStateCommand");_.Lfg=new _.U("showSurveyCommand");_.Lk=new _.U("changeMarkersVisibilityCommand");var Tgo,Bge,iNg,UnK,kcK,PM;_.PLe=function(p,x){this.playerProvider_=p;this.actionSenderElement_=x;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.PLe.prototype.reset=function(){Tgo(this);this.isUserPredictedAbsent_=!1};
Tgo=function(p,x){!p.youThereData_||p.showWarningJob_||x!==void 0&&x||(_.U3("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.b0(),p.youThereData_,p.clientPlaybackNonce_),_.Xx());_.E0.cancelJob(p.showWarningJob_);p.showWarningJob_=0;_.E0.cancelJob(p.showBlockingWarningJob_);p.showBlockingWarningJob_=0;_.E0.cancelJob(p.pausePlaybackJob_);p.pausePlaybackJob_=0;p.youThereData_=null;p.clientPlaybackNonce_=void 0;p.inYouThereFlow_=!1};
_.RTK=function(p,x){var F,N,h;_.D(function(c){if(c.nextAddress==1)return p.reset(),_.q(c,p.playerProvider_().getPlayerPromise(),2);F=c.yieldResult;p.clientPlaybackNonce_=F.getVideoData().cpn;p.youThereData_=x.configData.youThereData;if(!p.youThereData_)return c.return();if(p.youThereData_.triggerReason&&p.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.l$H())return _.U3("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.b0(),p.youThereData_,p.clientPlaybackNonce_),c.return();N=p.youThereData_.promptDelaySec;
h=F.getCurrentTime();p.showWarningJob_=_.E0.addLowPriorityJob(function(){return _.D(function(M){p.showWarningJob_=0;return _.q(M,Bge(p),0)})},Math.max(N-h,0)*1E3);
_.JB(c)})};
Bge=function(p){var x,F,N,h,c,M;return _.D(function(f){if(f.nextAddress==1)return _.q(f,p.playerProvider_().getPlayerPromise(),2);if(f.nextAddress!=3)return x=f.yieldResult,F=x.getCurrentTime(),_.q(f,kcK(p),3);N=f.yieldResult;if(!N||!p.youThereData_)return f.return();if(_.S("check_user_lact_at_prompt_shown_time_on_web")&&(h=parseInt(p.youThereData_.lactThresholdMs,10),_.U0()<h))return _.U3("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.b0(),p.youThereData_,p.clientPlaybackNonce_),f.return();if(p.youThereData_.playbackPauseDelayMs<=
0)return UnK(p),f.return();!_.S("external_fullscreen")&&(c=_.pc())&&(p.ignoreFullscreenExitUserActivity_=!0,_.E0.addLowPriorityJob(function(){p.ignoreFullscreenExitUserActivity_=!1},2E3),_.xv(c));
p.youThereData_.showToastWarningPrompt&&(PM(p,p.youThereData_.showWarningActions),p.inYouThereFlow_=!0,_.U3("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.b0(),p.youThereData_,p.clientPlaybackNonce_,F),_.U3("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.b0(),p.youThereData_,p.clientPlaybackNonce_,F));M=0;p.youThereData_.blockingPromptDelayMs&&(M=p.youThereData_.blockingPromptDelayMs);p.showBlockingWarningJob_=_.E0.addLowPriorityJob(function(){return _.D(function(K){p.showBlockingWarningJob_=0;return _.q(K,
iNg(p),0)})},M);
_.JB(f)})};
iNg=function(p){var x,F,N;return _.D(function(h){if(h.nextAddress==1)return _.q(h,kcK(p),2);x=h.yieldResult;if(!p.youThereData_)return h.return();x&&(p.youThereData_.showBlockingWarningAction&&(_.U3("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.b0(),p.youThereData_,p.clientPlaybackNonce_),(F=_.r(p.youThereData_.showBlockingWarningAction,_.Zx))?PM(p,F.commands):PM(p,[p.youThereData_.showBlockingWarningAction]),p.inYouThereFlow_=!0),N=p.youThereData_.playbackPauseDelayMs,p.pausePlaybackJob_=
_.E0.addLowPriorityJob(function(){return _.D(function(c){p.pausePlaybackJob_=0;return _.q(c,UnK(p),0)})},N));
_.JB(h)})};
UnK=function(p){var x;return _.D(function(F){if(F.nextAddress==1)return _.q(F,kcK(p),2);x=F.yieldResult;if(!p.youThereData_)return F.return();x&&(_.U3("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.b0(),p.youThereData_,p.clientPlaybackNonce_),PM(p,p.youThereData_.showPausedActions),p.inYouThereFlow_=!0);_.JB(F)})};
_.PLe.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var p=_.r(this.youThereData_.userActiveDuringFlowAction,_.Zx);p?PM(this,p.commands):PM(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.U3("YOU_THERE_EVENT_TYPE_LACT_RESET",_.b0(),this.youThereData_,this.clientPlaybackNonce_),_.Xx());Tgo(this,!0)}_.IWn(this,!1)};
_.$nl=function(p){_.U3("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.b0(),p.youThereData_,p.clientPlaybackNonce_)};
kcK=function(p){var x,F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,p.playerProvider_().getPlayerPromise(),2);x=N.yieldResult;F=x.getPlayerState();return N.return(F==-1||F==1||F==3)})};
_.IWn=function(p,x){var F;_.D(function(N){if(N.nextAddress==1){if(p.isUserPredictedAbsent_==x)return N.jumpTo(0);p.isUserPredictedAbsent_=x;return _.q(N,p.playerProvider_().getPlayerPromise(),3)}F=N.yieldResult;F.setUserEngagement(x);x&&_.U3("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.b0(),p.youThereData_,p.clientPlaybackNonce_);_.JB(N)})};
PM=function(p,x){if(_.S("handle_service_request_actions")||_.S("kevlar_youthere_service_endpoint_actions_killswitch"))_.Kc(p.actionSenderElement_,x,p.actionSenderElement_);else{x=_.a(x);for(var F=x.next();!F.done;F=x.next())F=F.value,F.commandMetadata&&F.commandMetadata.webCommandMetadata&&F.commandMetadata.webCommandMetadata.sendPost?_.fc(p.actionSenderElement_,[F]):_.Kc(p.actionSenderElement_,[F],p.actionSenderElement_)}};var eTK;var p7E;var xze=function(){var p=_.m.apply(this,arguments)||this;p.systemIcons=_.S("kevlar_system_icons");p.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return p};
_.E(xze,_.m);xze.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var p=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(p=this.data.percentIfLiked||0,this.activated=!0):(p=this.data.percentIfIndifferent||0,this.activated=!1);_.n(this.hostElement).querySelector("#like-bar").style.width=p+"%"}};
xze.prototype.handleUpdateSentimentBarStateCommand=function(p){this.data&&this.set("data.likeStatus",_.r(p,j8E).likeStatus)};
var TE=xze;TE.prototype.observeLikeStatus=TE.prototype.observeLikeStatus;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],TE.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],TE.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],TE.prototype,"activated",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],TE.prototype,"systemIcons",void 0);_.B([_.W("data.likeStatus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],TE.prototype,"observeLikeStatus",null);TE=_.B([_.L({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],TE);
_.P(TE,"ytd-sentiment-bar-renderer",function(){if(p7E!==void 0)return p7E;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return p7E=p},{mode:1});var FwP;var N6U=function(){var p=_.m.apply(this,arguments)||this;p.small=!0;return p};
_.E(N6U,_.m);var BM=N6U;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],BM.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],BM.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],BM.prototype,"small",void 0);BM=_.B([_.L({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],BM);
_.P(BM,"ytd-video-view-count-renderer",function(){if(FwP!==void 0)return FwP;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return FwP=p},{mode:_.UQ("kevlar_poly_si_batch_j080")?1:2});var RQ=function(){var p=_.m.apply(this,arguments)||this;p.infoFormattedStrings=[];p.wrapVideoActions=_.S("kevar_watch_wrap_video_actions");p.hideSentimentBar=_.S("kevlar_watch_hide_sentiment_bar");p.actionMap={};return p};
_.E(RQ,_.m);_.l=RQ.prototype;_.l.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.S("web_modern_buttons"),forceIconButton:!_.S("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.l.dataChanged=function(){_.S("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.l.computeInfoFormattedStrings=function(p){if(!p)return[];var x=[];p.dateText&&x.push(p.dateText);p.stationName&&x.push(p.stationName);p.rating&&x.push(p.rating);p.startEndTimeTemplate&&p.startTimeUtcMillis&&p.endTimeUtcMillis&&x.push(_.L1(_.ucM(_.Pi(p.startEndTimeTemplate),Number(p.startTimeUtcMillis),Number(p.endTimeUtcMillis))));p.upNextProgramText&&x.push(p.upNextProgramText);return x};
_.l.scheduleInitialUpdatedMetadataRequest=function(){var p,x=(p=this.data)==null?void 0:p.updatedMetadataEndpoint;if(x){var F;p=Number((F=_.r(x,_.DJv))==null?void 0:F.initialDelayMs);F=isNaN(p)?250:p;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),F)}};
_.l.setSentimentBarWidth=function(){var p=this;_.jB(this,function(){var x=_.n(p.hostElement).querySelector("ytd-menu-renderer");if(x){x=x.topLevelButtons;for(var F=0,N=0;N<x.length;N++){var h=x[N],c=p.get("toggleButtonSupportedData.toggleButtonIdData.id",h.data);if(c==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||c==="TOGGLE_BUTTON_ID_TYPE_LIKE")F+=h.clientWidth+8;else break}F&&(p.sentiment.style.width=F-8+" px")}})};
_.l.fetchUpdatedMetadata=function(p){var x;p&&(x={continuation:p});var F;(p=(F=this.data)==null?void 0:F.updatedMetadataEndpoint)&&_.J().resolve(_.RD).resolveCommand(p,{form:Object.assign({},x,{element:this.hostElement})})};
_.l.onYtServiceRequestSent=function(p,x){x.endpoint&&_.r(x.endpoint,_.Pc)&&(this.hasUpdateSentimentBarStateCommands()&&!_.S("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.r(x.endpoint,_.Pc).status),this.setSentimentBarWidth())};
_.l.hasUpdateSentimentBarStateCommands=function(){var p,x,F,N,h=(N=(p=this.data)==null?void 0:(x=p.videoActions)==null?void 0:(F=x.menuRenderer)==null?void 0:F.topLevelButtons)!=null?N:[];p=_.a(h);for(x=p.next();!x.done;x=p.next()){x=x.value;h=N=F=void 0;var c=(F=x.toggleButtonRenderer)==null?void 0:(N=F.toggleButtonSupportedData)==null?void 0:(h=N.toggleButtonIdData)==null?void 0:h.id;if(c==="TOGGLE_BUTTON_ID_TYPE_LIKE"||c==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){N=F=void 0;x=(N=_.r((F=x.toggleButtonRenderer)==
null?void 0:F.defaultServiceEndpoint,_.Zx))==null?void 0:N.commands;if(!x)break;x=_.a(x);for(F=x.next();!F.done;F=x.next())if(_.r(F.value,j8E))return!0}}return!1};
_.l.onYtServiceRequestCompleted=function(p,x){var F;(p=(F=x.data)==null?void 0:F.loggingDirectives)&&_.L1B(_.cl(),p);this.get("continuation.timedContinuationData",x.data)&&this.data&&this.data.updatedMetadataEndpoint&&(x=x.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,x.continuation),x.timeoutMs))};
_.l.computeHasDateText=function(p){return!!p&&!!p.dateText};
_.R8.Object.defineProperties(RQ.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var p,x,F,N;return!((N=(p=this.data)==null?void 0:(x=p.videoActions)==null?void 0:(F=x.menuRenderer)==null?void 0:F.flexibleItems)==null||!N.length)}}});
RQ.prototype.onYtServiceRequestCompleted=RQ.prototype.onYtServiceRequestCompleted;RQ.prototype.onYtServiceRequestSent=RQ.prototype.onYtServiceRequestSent;RQ.prototype.dataChanged=RQ.prototype.dataChanged;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],RQ.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],RQ.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],RQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.o3.YtTaskEmitterBehavior),_.k("design:type",Object)],RQ.prototype,"ytTaskEmitterBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],RQ.prototype,"data",void 0);_.B([_.H({computed:"computeInfoFormattedStrings(data)"}),_.k("design:type",Array)],RQ.prototype,"infoFormattedStrings",void 0);
_.B([_.H({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],RQ.prototype,"hasDateText",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],RQ.prototype,"wrapVideoActions",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],RQ.prototype,"hideSentimentBar",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],RQ.prototype,"flexMenuEnabled",null);
_.B([_.Ff("#sentiment"),_.k("design:type",Object)],RQ.prototype,"sentiment",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],RQ.prototype,"dataChanged",null);_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],RQ.prototype,"onYtServiceRequestSent",null);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Ht]),_.k("design:returntype")],RQ.prototype,"onYtServiceRequestCompleted",null);
_.P(RQ,"ytd-video-primary-info-renderer",function(){if(eTK===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);eTK=p}p=eTK;return p},{mode:1});var hyo;var kD=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return p};
_.E(kD,_.m);_.l=kD.prototype;_.l.configureRendererStamper=function(){return{subscribeButtonData:{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",params:{withCount:!0}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.l.dataChanged=function(){var p;this.descriptionToggled=!((p=this.data)==null||!p.defaultExpanded);var x;this.collapsed=this.descriptionAlwaysCollapsed||!((x=this.data)==null?0:x.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.vt(110509);this.showLessClientVe=_.vt(110510);p=_.b0();x=_.yR();p&&x&&_.I5(p,x,[this.showMoreClientVe,this.showLessClientVe])};
_.l.onYtExpanderMoreTapped=function(){var p,x=(p=this.data)==null?void 0:p.showMoreCommand;x&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(x);(p=_.b0())&&this.showMoreClientVe&&_.B5(p,this.showMoreClientVe)};
_.l.onYtExpanderLessTapped=function(){var p=_.b0();p&&this.showLessClientVe&&_.B5(p,this.showLessClientVe);var x;(p=(x=this.data)==null?void 0:x.showLessCommand)&&this.componentBehavior.resolveCommand(p)};
_.l.handleUpdateDateTextAction=function(p){this.data&&this.data.dateText&&this.set("data.dateText",_.r(p,_.vZ5).dateText)};
_.l.handleUpdateDescriptionAction=function(p){if(p=_.r(p,_.TSv))p.isEmpty||!p.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.S6(p.description)):this.set("data.description",p.description)};
_.l.onYtChangeEngagementPanelVisibilityAction=function(p){if(_.S("web_structured_description_show_more")||_.S("web_engagement_panel_open_description")){var x,F=(x=_.r(p,_.emn))==null?void 0:x.targetId,N;p=((N=_.r(p,_.emn))==null?void 0:N.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";F==="engagement-panel-structured-description"&&p&&(this.descriptionToggled=!0)}};
_.l.updateCollapsedFromBinding=function(p){this.collapsed=p.detail.value};
_.l.updateDescriptionToggledFromBinding=function(p){this.descriptionToggled=p.detail.value};
_.l.updateCanCollapseFromBinding=function(p){this.canCollapse=p.detail.value};
_.R8.Object.defineProperties(kD.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var p,x,F=(p=this.data)==null?void 0:(x=p.metadataRowContainer)==null?void 0:x.metadataRowContainerRenderer;return!!F&&!!F.rows&&F.rows.length>F.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.attributedDescription)}},
loadStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return _.S("web_inline_structured_description_load_delay")?this.hasInlineStructuredDescription&&!this.collapsed: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}}});
kD.prototype.onYtExpanderLessTapped=kD.prototype.onYtExpanderLessTapped;kD.prototype.onYtExpanderMoreTapped=kD.prototype.onYtExpanderMoreTapped;kD.prototype.dataChanged=kD.prototype.dataChanged;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],kD.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],kD.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],kD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],kD.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],kD.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Boolean)],kD.prototype,"collapsed",void 0);_.B([_.H(),_.k("design:type",Boolean)],kD.prototype,"descriptionToggled",void 0);
_.B([_.H(),_.k("design:type",Boolean)],kD.prototype,"canCollapse",void 0);_.B([_.H(),_.k("design:type",Object)],kD.prototype,"subscribeButtonData",void 0);_.B([_.H(),_.k("design:type",Number)],kD.prototype,"descriptionCollapsedHeight",void 0);_.B([_.H(),_.k("design:type",Object)],kD.prototype,"structuredDescriptionContentRenderer",void 0);_.B([_.H({value:function(){return _.S("web_watch_description_always_collapsed")}}),
_.k("design:type",Boolean)],kD.prototype,"descriptionAlwaysCollapsed",void 0);_.B([_.Ff("#description"),_.k("design:type",HTMLDivElement)],kD.prototype,"description",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kD.prototype,"dataChanged",null);_.B([_.V("yt-expander-more-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kD.prototype,"onYtExpanderMoreTapped",null);
_.B([_.V("yt-expander-less-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kD.prototype,"onYtExpanderLessTapped",null);_.B([_.w("data.metadataRowContainer"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],kD.prototype,"metadataCollapsible",null);_.B([_.w("data","structuredDescriptionContentRenderer"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],kD.prototype,"hasInlineStructuredDescription",null);
_.B([_.w("data.attributedDescription"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],kD.prototype,"hasAttributedDescription",null);_.B([_.w("hasInlineStructuredDescription","collapsed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],kD.prototype,"loadStructuredDescription",null);_.B([_.w("data","structuredDescriptionContentRenderer","collapsed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],kD.prototype,"showInlineStructuredDescription",null);
_.B([_.w("data","hasInlineStructuredDescription","metadataCollapsible"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],kD.prototype,"descriptionAlwaysCollapsible",null);
_.P(kD,"ytd-video-secondary-info-renderer",function(){if(hyo===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);hyo=p}p=hyo;return p},{mode:2});var lIl;var UF=function(){return _.m.apply(this,arguments)||this};
_.E(UF,_.m);UF.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:_.S("web_modern_buttons"),forceIconButton:!_.S("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
UF.prototype.activate=function(p){p.appendTo(this.player);p.getPlayerPromise().then(function(x){x.setMinimized(!0)});
this.active=!0};
UF.prototype.deactivate=function(){var p=this.player.firstElementChild;p.getPlayerPromise().then(function(x){x.setMinimized(!1)});
this.active=!1;return p};
UF.prototype.onScrollUpTap=function(){var p=_.J().resolve(_.j3).getCurrentPage();p&&p.setScrollTop(0)};
var iF=UF;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],iF.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],iF.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],iF.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],iF.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],iF.prototype,"active",void 0);
_.B([_.H({reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.k("design:type",Boolean)],iF.prototype,"darkLaunch",void 0);_.B([_.Ff("#player"),_.k("design:type",HTMLDivElement)],iF.prototype,"player",void 0);iF=_.B([_.L({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],iF);
_.P(iF,"ytd-miniplayer-bar-renderer",function(){if(lIl!==void 0)return lIl;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return lIl=p},{mode:1});_.o7(_.mO(function(p){var x=_.oc();_.rx(function(){var F;if(F=JSON)F=oMK(p.data()),F=_.RM(JSON.stringify(F).replace(/</g,"\\u003C"));var N=p.data(),h=_.Pi(N.title).trim().length===0,c=!N.publishDate||N.publishDate.trim().length===0,M,f,K,t,d=!((M=N.thumbnail)==null?0:(f=M.thumbnails)==null?0:f.length)||!((K=N.thumbnail)==null?0:K.thumbnails[0].url)||((t=N.thumbnail)==null?void 0:t.thumbnails[0].url.trim().length)===0;x.value&&F&&!(h||c||d)&&_.kE(x.value,F)});
return _.Z("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.Z("script",{el:x,type:"application/ld+json"}))},"yi"),"player-microformat-renderer",{props:{data:_.mJ}});
}catch(e){_._DumpException(e)}
try{
var bxm,wt,AQe,u1D,wOH,Go8,YwH,V5c;bxm=function(){var p=_.XJ();p.info||(p.info={});return p.info};
wt=function(p){return Math.round(_.sz()+p)};
AQe=function(){var p;if(_.S("csi_use_performance_navigation_timing")||_.S("csi_use_performance_navigation_timing_tvhtml5")){var x,F,N,h=_.z6==null?void 0:(p=_.z6.getEntriesByType)==null?void 0:(x=p.call(_.z6,"navigation"))==null?void 0:(F=x[0])==null?void 0:(N=F.toJSON)==null?void 0:N.call(F);h?(h.requestStart=wt(h.requestStart),h.responseEnd=wt(h.responseEnd),h.redirectStart=wt(h.redirectStart),h.redirectEnd=wt(h.redirectEnd),h.domainLookupEnd=wt(h.domainLookupEnd),h.connectStart=wt(h.connectStart),
h.connectEnd=wt(h.connectEnd),h.responseStart=wt(h.responseStart),h.secureConnectionStart=wt(h.secureConnectionStart),h.domainLookupStart=wt(h.domainLookupStart),h.isPerformanceNavigationTiming=!0,p=h):p=_.z6.timing}else p=_.S("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.z6.timing)):_.z6.timing;return p};
u1D=function(){if(_.z6.getEntriesByType){var p=_.z6.getEntriesByType("paint");if(p=_.V6(p,function(F){return F.name==="first-paint"}))return wt(p.startTime)}var x;
_.S("csi_use_performance_navigation_timing")||_.S("csi_use_performance_navigation_timing_tvhtml5")?x=_.z6.getEntriesByType("first-paint")[0].startTime:x=_.z6.timing.msFirstPaint;return x?Math.max(0,x):0};
wOH=function(){var p=window.location.protocol,x=_.z6.getEntriesByType("resource");x=_.cW(x,function(F){return F.name.indexOf(p+"//fonts.gstatic.com/s/")===0});
(x=YwH(x,function(F,N){return N.duration>F.duration?N:F}))&&x.startTime>0&&x.responseEnd>0&&(_.nc("wffs",wt(x.startTime)),_.nc("wffe",wt(x.responseEnd)))};
Go8=function(p,x){p=document.querySelector(p);if(!p)return!1;var F="",N=p.nodeName;N==="SCRIPT"?(F=p.src,F||(F=p.getAttribute("data-timing-href"))&&(F=window.location.protocol+F)):N==="LINK"&&(F=p.href);_.Pz(document)&&p.setAttribute("nonce",_.Pz(document));return F?(p=_.z6.getEntriesByName(F))&&p[0]&&(p=p[0],F=_.sz(),_.nc("rsf_"+x,F+Math.round(p.fetchStart)),_.nc("rse_"+x,F+Math.round(p.responseEnd)),p.transferSize!==void 0&&p.transferSize===0)?!0:!1:!1};
_.WGe=function(p,x){_.bO(function(){_.Qp("").info.actionType=p;x&&_.zn("TIMING_AFT_KEYS",x);_.zn("TIMING_ACTION",p);var F=_.Wtk(_.sd("TIMING_INFO",{}));Object.keys(F).length>0&&_.yp(F);F={isNavigation:!0,actionType:_.gzE(_.sd("TIMING_ACTION"))};var N=_.sd("PREVIOUS_ACTION");N&&(F.previousAction=_.gzE(N));if(N=_.sd("CLIENT_PROTOCOL"))F.httpProtocol=N;if(N=_.sd("CLIENT_TRANSPORT"))F.transportProtocol=N;(N=_.b0())&&N!=="UNDEFINED_CSN"&&(F.clientScreenNonce=N);N=_.VX$();if(N===1||N===-1)F.isVisible=!0;
N=_.djk().loadType==="cold";var h=bxm();N||(N=h.yt_lt==="cold");if(N){F.loadType="cold";N=bxm();h=AQe();var c=_.sz(),M=_.sd("CSI_START_TIMESTAMP_MILLIS",0);M>0&&!_.S("embeds_web_enable_csi_start_override_killswitch")&&(c=M);c&&(_.nc("srt",h.responseStart),N.prerender!==1&&_.yc$(c));N=u1D();N>0&&_.nc("fpt",N);N=AQe();N.isPerformanceNavigationTiming&&_.yp({performanceNavigationTiming:!0},void 0);_.nc("nreqs",N.requestStart,void 0);_.nc("nress",N.responseStart,void 0);_.nc("nrese",N.responseEnd,void 0);
N.redirectEnd-N.redirectStart>0&&(_.nc("nrs",N.redirectStart,void 0),_.nc("nre",N.redirectEnd,void 0));N.domainLookupEnd-N.domainLookupStart>0&&(_.nc("ndnss",N.domainLookupStart,void 0),_.nc("ndnse",N.domainLookupEnd,void 0));N.connectEnd-N.connectStart>0&&(_.nc("ntcps",N.connectStart,void 0),_.nc("ntcpe",N.connectEnd,void 0));N.secureConnectionStart>=_.sz()&&N.connectEnd-N.secureConnectionStart>0&&(_.nc("nstcps",N.secureConnectionStart,void 0),_.nc("ntcpe",N.connectEnd,void 0));_.z6&&"getEntriesByType"in
_.z6&&wOH();N=[];if(document.querySelector&&_.z6&&_.z6.getEntriesByName)for(var f in V5c)V5c.hasOwnProperty(f)&&(h=V5c[f],Go8(f,h)&&N.push(h));if(N.length>0)for(F.resourceInfo=[],f=_.a(N),N=f.next();!N.done;N=f.next())F.resourceInfo.push({resourceCache:N.value})}_.yp(F);F=_.gH();F.preLoggedGelInfos||(F.preLoggedGelInfos=[]);f=F.preLoggedGelInfos;F=_.JcB();N=void 0;for(h=0;h<f.length;h++)if(c=f[h],c.loadType){N=c.loadType;break}if(_.djk().loadType==="cold"&&(F.loadType==="cold"||N==="cold")){N=_.vzd();
h=_.gH();h=h.gelTicks?h.gelTicks:h.gelTicks={};for(var K in N)if(!(K in h))if(typeof N[K]==="number")_.nc(K,_.bA(K));else if(_.S("log_repeated_ytcsi_ticks"))for(c=_.a(N[K]),M=c.next();!M.done;M=c.next())M=M.value,_.nc(K.slice(1),M);K={};N=!1;f=_.a(f);for(h=f.next();!h.done;h=f.next())N=h.value,_.YQ(F,N),_.YQ(K,N),N=!0;N&&_.yp(K)}_.OWp(!0);K=_.sd("TIMING_ACTION");_.A9("ytglobal.timingready_")&&K&&_.IQZ()&&_.ozE()&&_.wqd()})()};
YwH=function(p,x){return Array.prototype.reduce.call(p,x,{duration:0})};
V5c={'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 HxD={};HxD.YtVisibilityRootBehavior=[_.L8B.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.RR(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.sd("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var p=_.sd("INNERTUBE_CLIENT_NAME")!=="WEB";_.S("kevlar_use_vimio_behavior")&&p&&_.PhJ()}}];_.Gr={};_.Gr.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(p){p.detail.contextProvider=this;p.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
HxD.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.GO();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(p){var x=this;this.pageCount+=1;_.S("kevlar_use_vimio_behavior")&&(_.sd("INNERTUBE_CLIENT_NAME")==="WEB"?_.E0.addJob(function(){x.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(p)},
loadPage_:function(p){this.data=p},
ytPageBehaviorActiveObserver_:function(p){var x=this;_.S("kevlar_use_vimio_behavior")&&(p?_.sd("INNERTUBE_CLIENT_NAME")==="WEB"?_.E0.addJob(function(){x.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(p){if(!this.setScrollTopJobId_){var x=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){x.setScrollTopJobId_=0;var F=_.J().resolve(_.Bw(_.CQ));F&&_.D_v(F);this.getPageScrollingElement().scrollTop=p}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.bH(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var nN_;var yQ8=function(){var p=_.m.apply(this,arguments)||this;p.playerListenerConfig=null;p.actionMap={"yt-show-watch-page-survey":"openSurvey"};return p};
_.E(yQ8,_.m);_.l=yQ8.prototype;_.l.dataChanged=function(){var p=this,x=_.Pt();x&&x.getPlayerPromise().then(function(N){p.maybeRemovePlayerListeners(N)});
var F=this.data&&this.data.survey;F&&((F=(F=F.singleOptionSurveyRenderer||F.checkboxSurveyRenderer||F.multiStageSurveyRenderer)&&F.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(x,F):this.openSurvey())};
_.l.triggerWatchPageSurvey=function(p,x){var F=this,N,h,c,M,f,K,t,d,v;return _.D(function(C){if(C.nextAddress==1)return p?_.q(C,p.getPlayerPromise(),2):C.return();F.player=C.yieldResult;if(!F.player)return C.return();N={};h=_.a(x);for(c=h.next();!c.done;c=h.next())M=c.value,f=_.a(F.createEventListenerPair(M)),K=f.next().value,t=f.next().value,d=K,v=t,d&&v&&(N[d]=v,F.ytPlayerListenerBehavior.listenToPlayerEvent(F.player,d,v));F.playerListenerConfig=N;_.JB(C)})};
_.l.createEventListenerPair=function(p){var x=p.playbackEventTrigger;return x?this.handlePlaybackTrigger(x):(p=p.watchTimeTrigger)?this.handleWatchTimeTrigger(p):[void 0,void 0]};
_.l.handleWatchTimeTrigger=function(p){var x=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var F=p.videoWatchFraction,N=p.watchTimeSec;return N&&F?["onVideoProgress",function(){x.player&&x.isWatchTimeConditionMet(x.player,F,N)&&x.showSurvey()}]:[void 0,
void 0]};
_.l.isWatchTimeConditionMet=function(p,x,F){var N=p.getProgressState(),h=N.current-this.lastKnownPlaybackPosition;h<5&&(this.accumulatedMediaTime+=h);this.lastKnownPlaybackPosition=N.current;N=Math.round(this.accumulatedMediaTime/N.duration*1E3)/1E3;return p.getPresentingPlayerType&&p.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>F||N>x)};
_.l.handlePlaybackTrigger=function(p){var x=this;p=p.playbackEvent;if(p==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var F="onStateChange";var N=function(h){h===0&&x.showSurvey()}}else p==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(F="onVideoProgress",N=function(h){x.player&&x.player.getPresentingPlayerType&&x.player.getPresentingPlayerType()===1&&h&&x.showSurvey()}):p==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(F="onAdEnd",N=this.showSurvey);
return[F,N]};
_.l.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.l.openSurvey=function(){var p=this,x=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.$nX(!!x));_.E0.addJob(function(){p.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:x}})},0,0)};
_.l.maybeRemovePlayerListeners=function(p){if(this.playerListenerConfig){for(var x=_.a(Object.keys(this.playerListenerConfig)),F=x.next();!F.done;F=x.next())F=F.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(p,F,this.playerListenerConfig[F]);this.playerListenerConfig=null}};
var Yh=yQ8;Yh.prototype.dataChanged=Yh.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Yh.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.Oo),_.k("design:type",Object)],Yh.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.u(_.oz.YtPlayerListenerBehavior),_.k("design:type",_.O7)],Yh.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Yh.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.u(_.nl),_.k("design:type",Object)],Yh.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Yh.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Yh.prototype,"playerListenerConfig",void 0);_.B([_.H({value:0}),_.k("design:type",Number)],Yh.prototype,"lastKnownPlaybackPosition",void 0);_.B([_.H({value:0}),_.k("design:type",Number)],Yh.prototype,"accumulatedMediaTime",void 0);_.B([_.H(),_.k("design:type",Object)],Yh.prototype,"player",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yh.prototype,"dataChanged",null);Yh=_.B([_.L({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Yh);
_.P(Yh,"ytd-survey-trigger-renderer",function(){if(nN_!==void 0)return nN_;var p=document.createElement("template");_.g(p,"\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");p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return nN_=p},{mode:1});
}catch(e){_._DumpException(e)}
try{
var l86=new _.U("promotedSparklesWebRenderer");var cel=new _.U("relatedChipCommand");var a8E;var MHz;var DH6=function(){return _.m.apply(this,arguments)||this};
_.E(DH6,_.m);DH6.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
var g9=DH6;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],g9.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],g9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],g9.prototype,"data",void 0);g9=_.B([_.L({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],g9);
_.P(g9,"ytd-compact-tvfilm-entry-point-renderer",function(){if(MHz!==void 0)return MHz;var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return MHz=p},{mode:1});var f8M;var Kmn;var qke;var Q4=function(){return _.m.apply(this,arguments)||this};
_.E(Q4,_.m);Q4.prototype.ready=function(){this.initializeDefs()};
Q4.prototype.initializeDefs=function(){var p=this.meta.byKey("yt-icons"),x=_.n(p).querySelector("#star"),F=_.n(p).querySelector("#star_half");p=_.n(p).querySelector("#star_border");x&&this.defs.appendChild(x.cloneNode(!0));F&&this.defs.appendChild(F.cloneNode(!0));p&&this.defs.appendChild(p.cloneNode(!0))};
Q4.prototype.percentChanged=function(){for(var p=this.rating;p.firstChild;)p.removeChild(p.firstChild);var x=Math.round(this.percent/10);p=Math.floor(x/2);x%=2;var F=5-p-x;this.appendStars("star",p,0);this.appendStars("star_half",x,p);this.appendStars("star_border",F,p+x)};
Q4.prototype.appendStars=function(p,x,F){for(var N=0;N<x;N++){var h=(18+this.spacing)*(N+F),c=document.createElementNS("http://www.w3.org/2000/svg","use");_.eTc(c,"#"+p);c.setAttribute("x",""+h);c.setAttribute("y","0");this.rating.appendChild(c)}};
var z_=Q4;z_.prototype.percentChanged=z_.prototype.percentChanged;_.B([_.Ff("#defs"),_.k("design:type",HTMLElement)],z_.prototype,"defs",void 0);_.B([_.Ff("#rating"),_.k("design:type",HTMLElement)],z_.prototype,"rating",void 0);_.B([_.H(),_.k("design:type",Number)],z_.prototype,"percent",void 0);_.B([_.H({value:6}),_.k("design:type",Number)],z_.prototype,"spacing",void 0);_.B([_.H({value:_.SX.create("iron-meta",{type:"iconset"})}),_.k("design:type",_.gB)],z_.prototype,"meta",void 0);
_.B([_.W("percent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],z_.prototype,"percentChanged",null);z_=_.B([_.L({disableElementRegistration:!0,is:"ytd-ratings"})],z_);
_.P(z_,"ytd-ratings",function(){if(qke!==void 0)return qke;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return qke=p},{mode:1});var Z8n=function(){return _.m.apply(this,arguments)||this};
_.E(Z8n,_.m);var tHK=Z8n;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],tHK.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],tHK.prototype,"data",void 0);tHK=_.B([_.L({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],tHK);
_.P(tHK,"ytd-offer-review-renderer",function(){if(Kmn!==void 0)return Kmn;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Kmn=p},{mode:1});var dHb=function(){var p=_.m.apply(this,arguments)||this;p.badges=[{textBadge:{label:_.L1("CC")}}];return p};
_.E(dHb,_.m);_.l=dHb.prototype;_.l.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.l.dataChanged=function(){var p=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(p&&p.commandMetadata&&_.r(p.commandMetadata,_.gA)&&_.r(p.commandMetadata,_.gA).fireAutomatically)_.J().resolve(_.RD).resolveCommand(p,{form:{element:this.hostElement}});else{var x;p&&((x=_.r(p,_.gA))==null?0:x.fireAutomatically)&&_.J().resolve(_.RD).resolveCommand(p,{form:{element:this.hostElement}})}};
_.l.isEmptyContent=function(p){return this.isStorefrontEntryPointEmpty(p)&&this.shouldHideOfferModule(p)};
_.l.isStorefrontEntryPointEmpty=function(p){return!p||!p.storefrontEntryPoint};
_.l.shouldHideOfferModule=function(p){return!!p.hideVideoDetails};
_.l.isOfferModuleNavigationInactive=function(p){return!p.navigationEndpoint&&!p.serviceEndpoint};
_.l.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.J().resolve(_.RD).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
var sX=dHb;sX.prototype.dataChanged=sX.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],sX.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],sX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],sX.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.k("design:type",Boolean)],sX.prototype,"hidden",void 0);
_.B([_.H(),_.k("design:type",Object)],sX.prototype,"badges",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sX.prototype,"dataChanged",null);sX=_.B([_.L({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],sX);
_.P(sX,"ytd-movie-offer-module-renderer",function(){if(f8M!==void 0)return f8M;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return f8M=p},{mode:1});var v_n;var Jen=function(){return _.m.apply(this,arguments)||this};
_.E(Jen,_.m);var CmM=Jen;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],CmM.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],CmM.prototype,"data",void 0);CmM=_.B([_.L({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],CmM);
_.P(CmM,"ytd-media-masthead-renderer",function(){if(v_n!==void 0)return v_n;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return v_n=p},{mode:1});var Sk6;_.o7(_.tpX,"course-metadata-view-model",{props:{data:_.mJ,isOverlay:_.mJ}});var reA=function(){var p=_.m.apply(this,arguments)||this;p.isMetadataVisible=!1;p.modernPanels=_.S("kevlar_watch_modern_panels");p.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return p};
_.E(reA,_.m);_.l=reA.prototype;
_.l.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.expandMetadataButton":{id:"expand-metadata-button",mapping:{toggleButtonViewModel:{component:"yt-toggle-button-view-model",properties:{scopingClassName:"[[is]]"}}}},"data.masthead":{id:"masthead",mapping:{mediaMastheadRenderer:{component:"ytd-media-masthead-renderer"},channelMastheadRenderer:{component:"ytd-channel-masthead-renderer",params:{isInOfferModule:!0}}}},
"data.expandedMetadata":{id:"expanded-metadata",mapping:{courseMetadataViewModel:{component:"course-metadata-view-model"}}}}};
_.l.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.l.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.l.expanderChanged=function(){var p;if((p=this.data)==null?0:p.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.l.isExpandButtonToggled=function(){var p,x;return(x=_.r((p=this.data)==null?void 0:p.expandMetadataButton,_.gR))==null?void 0:x.isToggled};
_.l.onVisibilityButtonClick=function(){var p;if((p=this.data)==null?0:p.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.l.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
var nC=reA;nC.prototype.expanderChanged=nC.prototype.expanderChanged;nC.prototype.dataChanged=nC.prototype.dataChanged;nC.prototype.descriptionChanged=nC.prototype.descriptionChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],nC.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],nC.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u([_.T2.YtActionHandlerBehavior]),_.k("design:type",Object)],nC.prototype,"actionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],nC.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],nC.prototype,"isMetadataVisible",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],nC.prototype,"modernPanels",void 0);_.B([_.Ff("#expander"),_.k("design:type",Object)],nC.prototype,"expander",void 0);
_.B([_.W("data.description"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nC.prototype,"descriptionChanged",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nC.prototype,"dataChanged",null);_.B([_.W("isMetadataVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nC.prototype,"expanderChanged",null);
nC=_.B([_.L({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],nC);
_.P(nC,"ytd-tvfilm-offer-module-renderer",function(){if(Sk6!==void 0)return Sk6;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Sk6=p},{mode:2});var E_P;var y4=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return p};
_.E(y4,_.m);y4.prototype.dataChanged=function(){this.hostElement.hidden=!1};
y4.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
y4.prototype.onThumbnailTap=function(p){this.data&&this.data.serviceEndpoint&&(_.S("web_ytd_unlimited_offer_module_renderer_command_resolver_ks")?_.fc(this.hostElement,[this.data.serviceEndpoint]):_.J().resolve(_.RD).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),p.stopPropagation())};
y4.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
var b6=y4;b6.prototype.dataChanged=b6.prototype.dataChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],b6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],b6.prototype,"rendererBehaviors",void 0);_.B([_.u([_.T2.YtActionHandlerBehavior]),_.k("design:type",Object)],b6.prototype,"actionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],b6.prototype,"data",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],b6.prototype,"dataChanged",null);b6=_.B([_.L({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],b6);
_.P(b6,"ytd-unlimited-offer-module-renderer",function(){if(E_P!==void 0)return E_P;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return E_P=p},{mode:1});var XHU;var g_K;var Qtl=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return p};
_.E(Qtl,_.m);Qtl.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Qtl.prototype.handleRelatedChipCommand=function(p){p=_.r(p,cel);var x=p.contents;x?_.Mt(this.hostElement,"yt-item-section-replace-action",[x,p.targetSectionIdentifier]):_.Mt(this.hostElement,"yt-item-section-continuation-action",[p.continuationData,p.targetSectionIdentifier])};
var AP=Qtl;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],AP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],AP.prototype,"actionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],AP.prototype,"data",void 0);AP=_.B([_.JZ({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],AP);
_.P(AP,"yt-related-chip-cloud-renderer",function(){if(g_K===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;XHU===void 0&&(XHU=document.createElement("template"));var N=XHU;F.call(x,N.content.cloneNode(!0),p.content.firstChild);g_K=p}p=g_K;return p},{mode:2});var u6=function(){var p=_.m.apply(this,arguments)||this;p.isTwoColumns=!0;p.hideOfferModules=!1;p.watchFeedBigThumbs=_.S("kevlar_watch_feed_big_thumbs");p.watchNextGridHideChips=_.S("kevlar_watch_grid_hide_chips");p.eligibleToSwitchToGrid=_.S("web_watch_eligible_to_switch_to_grid");p.disableShortsShelfHeightOverride=_.S("web_shorts_wn_shelf_ratio_tuning");p.isWatchNextGrid=!1;p.reuseComponents=!_.S("kevlar_watch_grid");p.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return p};
_.E(u6,_.m);_.l=u6.prototype;
_.l.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.S("web_watch_grid_resize_on_observer_init_killswitch")}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[showButton]]"}}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}},renderPriority:0}}};
_.l.getItemsPath=function(){return"data.results"};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.l.created=function(){this.ytLazyListBehavior.initialCount=1};
_.l.ready=function(){_.eV(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.l.resultsChanged=function(){if(this.data&&this.data.results){for(var p=this.data.results,x=null,F=null,N=0;N<p.length;N++)p[N].relatedChipCloudRenderer?x=p[N].relatedChipCloudRenderer:p[N].itemSectionRenderer&&(F=p[N].itemSectionRenderer);if(x&&F)for(this.set("data.continuations",[]),p=_.r(x.content,_.WFn).chips,x=0;x<p.length;x++)if(N=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",p[x]),N.loadCached||!N.contents){N.contents=F.contents;break}}};
_.l.dataChanged=function(){var p=this,x;if((x=this.data)!=null&&x.results&&this.hasAllowedInstreamAd(this.playerData)){if(x=this.data.results.filter(function(f){return!!f.promotedSparklesWebRenderer})){for(var F=0;F<x.length;F++){var N=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",x[F]);
if(N)for(var h=0;h<N.length;h++)N[h]&&N[h].baseUrl&&_.YS(N[h].baseUrl)}this.set("data.results",this.data.results.filter(function(f){return!f.promotedSparklesWebRenderer}))}if(x=this.data.results.filter(function(f){return!!p.getSparklesAd(f)})){x=_.a(x);
for(h=x.next();!h.done;h=x.next())if(N=F=void 0,h=(F=this.getSparklesAd(h.value))==null?void 0:(N=F.errorCommand)==null?void 0:N.loggingUrls)for(F=_.a(h),N=F.next();!N.done;N=F.next())(N=N.value)&&N.baseUrl&&_.YS(N.baseUrl);var c,M;this.set("data.results",(c=this.data)==null?void 0:(M=c.results)==null?void 0:M.filter(function(f){return!f.adSlotRenderer}))}}};
_.l.getSparklesAd=function(p){var x,F;p=_.r((x=p.adSlotRenderer)==null?void 0:(F=x.fulfillmentContent)==null?void 0:F.fulfilledLayout,_.aqB);return _.r(p==null?void 0:p.renderingContent,l86)};
_.l.hasAllowedInstreamAd=function(p){p=this.get("adPlacements",p)||[];for(var x=0;x<p.length;x++){var F=this.get("adPlacementRenderer.config.adPlacementConfig",p[x]);if(F&&F.suppressDisplayAd)return!0}return!1};
_.l.computeHideUnlimitedOfferModule=function(p,x){return p&&p.offerModule&&x&&p.offerModule.unlimitedOfferModuleRenderer&&p.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(x)?!0:!1};
_.l.hideUnlimitedOfferModuleChanged=function(){var p=_.n(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");p&&(p.hidden=this.hideUnlimitedOfferModule)};
_.l.updateLockupContainerTypes=function(p){if(this.eligibleToSwitchToGrid){var x;(x=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||x.forEach(function(F){F.containerType=p})}};
_.l.computeHideTvfilmOfferModule=function(p,x){var F,N;return!!((p==null?0:(F=p.offerModule)==null?0:(N=F.tvfilmOfferModuleRenderer)==null?0:N.clientShouldSuppressIfCompanionAdDisplayed)&&x&&this.hasCompanionAds(x))};
_.l.hideTvfilmOfferModuleChanged=function(){var p=_.n(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");p&&(p.hidden=this.hideTvfilmOfferModule)};
_.l.hasCompanionAds=function(p){p=this.get("adPlacements",p)||[];for(var x=0;x<p.length;x++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",p[x]))return!0;var F=void 0,N=void 0,h=void 0;if(!_.S("web_watch_top_banner_companion_check_killswitch")&&((F=p[x])==null?0:(N=F.adPlacementRenderer)==null?0:(h=N.renderer)==null?0:h.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.l.hasSuppressedResults=function(p){return p==null?!0:p.filter(function(x){return!x.continuationItemRenderer&&!x.compactPromotedVideoRenderer&&!x.promotedSparklesWebRenderer}).length===0};
_.l.computeShowButton=function(p,x){return this.isWatchNextGrid?p:p||this.hasSuppressedResults(x)};
_.l.showButtonChanged=function(){if(this.isWatchNextGrid){var p=_.n(this.hostElement).querySelector("ytd-rich-grid-renderer");p&&this.showButton!==null&&(p.continuationShowButton=this.showButton)}else{p=_.n(this.hostElement).querySelector("yt-next-continuation");var x=_.n(this.hostElement).querySelector("ytd-continuation-item-renderer"),F=_.n(this.hostElement).querySelector("ytd-item-section-renderer");p&&(p.showButton=this.showButton);x&&(x.showButton=this.showButton);F&&(F.continuationShowButton=
this.showButton)}};
_.l.continuationTap=function(p){var x;if(((x=this.data)==null?void 0:x.continuations)!=null&&p.target.tagName==="TP-YT-PAPER-BUTTON")for(p=this.data.continuations,x=0;x<p.length;x++)p[x].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(p[x].nextContinuationData||{})};
_.l.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Vx("shown-items-changed",this.shownItems))};
_.R8.Object.defineProperties(u6.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid&&this.containsLockupViewModel?this.isGridViewEnabled?2:3:3}},
containsLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.shownItems)==null||!p.some(function(x){return!!x.lockupViewModel}))}}});
u6.prototype.shownItemsChangedForBinding=u6.prototype.shownItemsChangedForBinding;u6.prototype.showButtonChanged=u6.prototype.showButtonChanged;u6.prototype.hideTvfilmOfferModuleChanged=u6.prototype.hideTvfilmOfferModuleChanged;u6.prototype.updateLockupContainerTypes=u6.prototype.updateLockupContainerTypes;u6.prototype.hideUnlimitedOfferModuleChanged=u6.prototype.hideUnlimitedOfferModuleChanged;u6.prototype.dataChanged=u6.prototype.dataChanged;u6.prototype.resultsChanged=u6.prototype.resultsChanged;
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],u6.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],u6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.Iz.YtLazyListBehavior),_.k("design:type",Object)],u6.prototype,"ytLazyListBehavior",void 0);_.B([_.u(_.Wy.YtNextContinuationBehavior),_.k("design:type",Object)],u6.prototype,"ytNextContinuationBehavior",void 0);
_.B([_.u(_.Vw),_.k("design:type",Object)],u6.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],u6.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],u6.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],u6.prototype,"playerData",void 0);_.B([_.H({value:!0}),_.k("design:type",Boolean)],u6.prototype,"autoFill",void 0);_.B([_.H({value:60}),_.k("design:type",Number)],u6.prototype,"targetFramerate",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],u6.prototype,"isTwoColumns",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],u6.prototype,"hideOfferModules",void 0);_.B([_.H(),_.k("design:type",Object)],u6.prototype,"shownItems",void 0);_.B([_.H({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.k("design:type",Boolean)],u6.prototype,"hideUnlimitedOfferModule",void 0);
_.B([_.H({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.k("design:type",Boolean)],u6.prototype,"hideTvfilmOfferModule",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],u6.prototype,"watchFeedBigThumbs",void 0);_.B([_.H(),_.k("design:type",Object)],u6.prototype,"watchNextGridHideChips",void 0);_.B([_.H(),_.k("design:type",Object)],u6.prototype,"eligibleToSwitchToGrid",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],u6.prototype,"disableShortsShelfHeightOverride",void 0);_.B([_.H({selector:_.br}),_.k("design:type",Object)],u6.prototype,"isGridViewEnabled",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],u6.prototype,"showMoreButton",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],u6.prototype,"isWatchNextGrid",void 0);
_.B([_.H({computed:"computeShowButton(showMoreButton, data.results)"}),_.k("design:type",Boolean)],u6.prototype,"showButton",void 0);_.B([_.cT("data.results.*"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],u6.prototype,"resultsChanged",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],u6.prototype,"dataChanged",null);
_.B([_.W("hideUnlimitedOfferModule"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],u6.prototype,"hideUnlimitedOfferModuleChanged",null);_.B([_.w("isGridViewEnabled","containsLockupViewModel","data"),_.H({reflectToAttribute:!0}),_.k("design:type",Number),_.k("design:paramtypes",[])],u6.prototype,"lockupContainerType",null);
_.B([_.W("lockupContainerType","data"),_.k("design:type",Function),_.k("design:paramtypes",[Number]),_.k("design:returntype")],u6.prototype,"updateLockupContainerTypes",null);_.B([_.W("hideTvfilmOfferModule"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],u6.prototype,"hideTvfilmOfferModuleChanged",null);_.B([_.W("showButton"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],u6.prototype,"showButtonChanged",null);
_.B([_.W("shownItems"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],u6.prototype,"shownItemsChangedForBinding",null);_.B([_.w("shownItems"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],u6.prototype,"containsLockupViewModel",null);
_.P(u6,"ytd-watch-next-secondary-results-renderer",function(){if(a8E===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);a8E=p}p=a8E;return p},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.c8A={};
_.c8A.YtdWatchBehavior=[_.e.YtRendererBehavior,_.oz.YtPlayerListenerBehavior,_.P6.YtRendererstamperBehavior,_.T2.YtActionHandlerBehavior,_.Gr.YtPageBehavior,_.NY.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 _.nt("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.S("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 _.nt("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 _.S("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.S("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded, fullscreen)"},richItemMinWidth:{type:Number,value:function(){return _.Ud("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Ud("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!_.S("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.S("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 _.S("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.S("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.S("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.S("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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 _.S("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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 _.S("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 p={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:_.bw(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.bw(["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"||_.S("swa_prov_panels_ks")?_.S("web_watch_inject_placeholder_panels")?p.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:_.S("kevlar_use_engagement_panel_management_component")||
(p["data.engagementPanels"]={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):(p.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},p.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});
return p},
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 p=this;this.watchController=void 0;this.pageDisposeJobs=[function(){p.showMetadataPlaceholder_()},
function(){_.S("web_watch_dont_clear_comments")||p.clearComments_()},
function(){p.clearPlayerAds_()},
function(){p.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;_.S("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.S("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.PLe(function(){return _.LQ(p)},this.hostElement);
this.pageDisposeJobs.push(function(){p.youThereManager_.reset()});
_.S("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){p.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.lU;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;_.S("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.S("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));_.S("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.p5(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(p){p&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:p}),p.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(p){_.S("kevlar_watch_flexy_theater_manager")&&(this.theater=p,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(p){!_.S("kevlar_watch_while_v2")&&!_.S("web_watch_pip")||p||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(p){this.active!==void 0&&(this.fullscreen=p,_.S("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(p){this.active!==void 0&&(_.hG(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.S("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(p>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(p){this.initCsi_();this.updatePageData_(p)},
updatePageData_:function(p){var x=this;if(p)if(this.data===p){this.onPageLoadWithSameData_();var F;(F=this.watchController)==null||_.oQ(F,this.data)}else this.data=p;this.playlist&&_.uA({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.wH("nw");this.loading=!1;_.vZ(_.E0,function(){x.initDclkstatus_();var N,h=((N=x.player)==null?void 0:N.getVideoData().cpn)||"";_.nMU(function(c,M){_.N$k(c,M,h)})})},
onPageLoadWithSameData_:function(){_.S("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 p=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!p);this.set("loadingData.playlistLoading",p&&p!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),p=this.watchNextSkeletonEl_.firstElementChild;p;)p.classList.remove("hidden"),p=p.nextElementSibling;if(_.S("kevlar_watch_frame0_loading_state")){var x,F,N;p=(x=this.loadingData)==null?void 0:(F=x.endpoint)==null?void 0:(N=F.watchEndpoint)==null?void 0:N.videoId;var h;p&&(h="https://i.ytimg.com/vi/"+p+"/frame0.jpg");_.n(this.hostElement).querySelector("#player").style.backgroundImage=h?"url("+h+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var p=_.n(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&p&&(p.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var x,F;(F=(x=this.watchMetadata).updateSentimentBarWidth)==
null||F.call(x);var N,h;(h=(N=this.watchMetadata).resize)==null||h.call(N)}_.S("kevlar_watch_frame0_loading_state")&&(_.n(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(p){var x=_.n(this.hostElement).querySelector(p);x?_.FJ(x,!1):_.no(new _.qE("Overscroll monitor not found for component: ",p))},
removeSplitScrollMouseTrap:function(p){var x=_.n(this.hostElement).querySelector(p);x?_.Nt(x):_.no(new _.qE("Disposal component for  overscroll monitoring not found: ",p))},
onLoadingChanged_:function(p){p?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(p){var x=this;p?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.E0.addLowPriorityJob(function(){x.onWindowResized_(_.tF(!0))})},
updateTheaterModeState_:function(p){if(!_.S("kevlar_watch_flexy_theater_manager")){p=p||this.fullWindowMode_;if(this.theater!==void 0||p)this.theater=p;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();p&&_.n_b()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var p=this.theater;_.S("external_fullscreen")&&this.fullscreen&&(p=!0);p=p?_.n(this.hostElement).querySelector("#player-full-bleed-container"):_.n(this.hostElement).querySelector("#player-container-inner");var x=this.getPlayerContainer(),F=_.S("kevlar_watch_while_v2")||_.S("web_watch_pip");x.parentElement!==p&&(F&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.LQ(this).appendTo(p,x),p.appendChild(_.n(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var p=this;return _.D(function(x){if(x.nextAddress==1)return _.q(x,_.J().resolve(_.H$).deactivate(),2);p.updatePlayerLocation();_.JB(x)})},
updateCinematicsLocation:function(){var p=this.getElement("CINEMATICS");if(p){var x=this.getCinematicsLocationContainer();p.parentElement!==x&&x.appendChild(p);var F;(F=this.watchController)==null||_.gMg(F)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.n(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.n(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(p,x){var F=document.documentElement.hasAttribute("dark"),N=F&&_.S("web_cinematic_theater_mode"),h=F&&_.S("web_cinematic_fullscreen");F=!F&&this.cinematicLightTheme;return p&&N||x&&h||(x||p)&&F},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var p=this,x;(x=this.watchController)==null||_.oQ(x,this.data);_.S("kevlar_watch_flexy_comments_manager")||this.initComments_();_.S("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.J().resolve(_.Yx).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,_.S("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.E0.addLowPriorityJob(function(){_.Mt(p.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.S("web_watch_start_chat_in_theater_mode")){var F,N,h;if((F=this.data)==null?0:(N=F.contents)==null?0:(h=N.twoColumnWatchNextResults)==null?0:h.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var c,M;((c=this.data)==null?0:(M=c.contents)==null?0:M.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(p){var x;(x=this.watchController)==null||_.mS(x,this.playerData);p&&p.playabilityStatus&&(x=this.isVideoPlayable_(p.playabilityStatus,this.getPlayerOverlays_(this.data)),p=this.isLiveStreamOffline_(p.playabilityStatus),x&&!p||_.jB(this,function(){_.wH("pbu")}));
this.setPlayerAds_();_.Mt(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(p,x){if((_.S("kevlar_watch_while_v2")||_.S("web_watch_pip"))&&this.playerData&&x)return this.playerData.videoDetails},
watchPageActiveChanged_:function(p){_.Bi().dispatch(_.wze(this.active));p?this.activate_():this.deactivate_()},
attached:function(){var p=this;this.watchController=new _.HM(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.mS(this.watchController,this.playerData);this.data&&_.oQ(this.watchController,this.data);_.S("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var x=_.LQ(this);_.S("kevlar_disable_prepare_player")||x.preparePlayer();
_.S("kevlar_watch_flexy_playlist_manager")||_.J().resolve(_.Yx).setPlayer(x);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();x={"--ytd-watch-flexy-scrollbar-width":_.zQ()+"px"};this.is==="ytd-watch-grid"&&(x["--ytd-watch-flexy-sidebar-width"]=_.OX+"px",x["--ytd-watch-flexy-sidebar-min-width"]=_.Ud("kevlar_watch_grid_sidebar_min_width",300)+"px",x["--ytd-watch-grid-horizontal-page-margins"]=_.ml+"px",x["--ytd-watch-grid-columns-top-margins"]=_.gZe+"px",x["--ytd-watch-grid-min-player-height-medium"]=
"360px");!_.Ud("kv_pl_mx_sz_ks")&&_.Ud("kevlar_watch_max_player_width")&&(x["--ytd-watch-flexy-max-player-width-wide-screen"]=_.bMe+"px");_.Ud("kevlar_watch_flexy_metadata_height")&&(x["--ytd-watch-flexy-space-below-player"]=_.ABl+"px");this.safeUpdateStyles(x);_.S("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.tez(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return p.onPlayerTouchPanDown_()}}));
_.S("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.n(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var p=_.zQ(),x=_.oH+p,F=x;this.fixedPanels&&(x+=_.OX);var N=657+p;p=1327+p;_.n(this.hostElement).querySelector("#two-column-query").query="(min-width: "+x+"px)";_.n(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(N+"px), (min-height: 630px) and (min-width: ")+(x+"px) and (max-width: ")+(p+"px)");_.n(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(p+"px)");_.n(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+F+"px)"},
calculateCurrentPlayerSize_:function(){var p=_.n(this.hostElement).querySelector("#miniplayer-bar").firstChild;return p&&p.active||this.theater||_.S("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.q1(NaN,NaN):_.GcM(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.GcM(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.RR(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var p=this;this.onWindowResized_(_.tF());_.S("browse_skeleton_removal_on_watch_killswitch")||_.nt("IS_SHELL_LOAD")&&_.sVH();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var x=_.LQ(this);x.addEventListener("yt-player-updated",_.p5(this,this.onPlayerUpdated_));x.getPlayerPromise().then(function(F){p.playerApiReady_(F)});
_.S("kevlar_watch_flexy_playlist_manager")||(x=_.J().resolve(_.Yx),_.S("kevlar_watch_observe_playlist_navigations_killswitch")&&x.addEventListener("yt-navigate",_.p5(this,this.onYtNavigate_)),x.setPlaylistComponent(_.n(this.hostElement).querySelector("#playlist")),x.addEventListener("yt-playlist-data-updated",_.p5(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.E0.addLowPriorityJob(function(){_.hG(p.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.LQ(this).removeEventListener("yt-player-updated",_.p5(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.S("kevlar_watch_flexy_playlist_manager")){var p=_.J().resolve(_.Yx);_.S("kevlar_watch_observe_playlist_navigations_killswitch")&&p.removeEventListener("yt-navigate",_.p5(this,this.onYtNavigate_));
p.cancelVideoSkip();p.removeEventListener("yt-playlist-data-updated",_.p5(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.hG(this.hostElement,"yt-autonav-pause-player",!1);p=_.pc();_.S("kevlar_exit_fullscreen_leaving_watch")&&p&&_.xv(p)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(p){this.player&&this.player.updateVideoData({rvs:p.rvs})},
getPageContents:function(p){return p&&p.contents&&p.contents.twoColumnWatchNextResults&&p.contents.twoColumnWatchNextResults.results&&p.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(p){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",p)},
onRetrieveLocation_:function(p,x){x.hasComments?x.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):x.locationRetrieved("/related_ajax",void 0);p.stopPropagation()},
onSubscriptionChanged_:function(p,x){this.player&&(x?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.WGe("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.n(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.n(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(p){this.player=p;this.setPlayerState(p.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.S("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.S("kevlar_unified_player")||_.S("kevlar_player_new_bootstrap_adoption"))&&_.UW()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(p,x){x=x===void 0?!0:x;_.pc()&&_.S("external_fullscreen")&&_.xv(document.documentElement);this.theaterRequested_=p;x&&_.ME("wide",p?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.lA(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.hG(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(p){_.yj(p,typeof this.player),this.player&&_.yj(p,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var p;((p=this.player)==null?0:p.isFullscreen())?this.player.toggleFullscreen():_.lA(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(p,x){return this.loading?x:!!Object.keys(p).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(p){if(p){p=_.a(p);for(var x=p.next();!x.done;x=p.next())x=x.value,x.youThereRenderer&&_.RTK(this.youThereManager_,x.youThereRenderer)}},
setPlaylistData_:function(p){return p||{}},
userEngagementConfigDataChanged_:function(p){if(p)if(p.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var x=this.youThereManager_;_.U0()<p.lowEngagementThresholdMs||_.IWn(x,!0)}else p.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.lA(this.hostElement,"yt-autonav-pause-user-engagement",[p])},
isPlayerUnavailable_:function(p,x,F){return!!p&&!this.isVideoPlayable_(p,F)&&!x},
getPlayerOverlays_:function(p){return(p==null?void 0:p.playerOverlays)||null},
isVideoPlayable_:function(p,x){if(!p)return!1;var F=p.status==="OK"||p.status==="LIVE_STREAM_OFFLINE",N=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",p)||this.get("errorScreen.ypcTrailerRenderer",p);p=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",p);var h;x=x==null?void 0:(h=x.playerOverlayRenderer)==null?void 0:h.gatedActionsOverlayRenderer;return!!F||!!N||!!p||!!x},
hasWatchNextResponseErrorRenderer:function(p){var x=this.getPageContents(p),F,N,h,c,M;return!(p==null?0:(F=p.contents)==null?0:(N=F.twoColumnWatchNextResults)==null?0:N.secondaryResults)&&!!((h=x[0])==null?0:(c=h.itemSectionRenderer)==null?0:(M=c.contents[0])==null?0:M.backgroundPromoRenderer)},
isLiveStreamOffline_:function(p){return p?p.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(p,x,F){var N=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",x),h=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];h=_.S("web_no_skip_video_on_verification_checks")?(p==null?void 0:p.status)&&h.includes(p.status):p&&p.status==="AGE_CHECK_REQUIRED";var c=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",p);c==void 0&&(c=!0);!F||this.isVideoPlayable_(p,this.getPlayerOverlays_(x))||
N||h||!c||_.J().resolve(_.Yx).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.WfA()},
onPlayerFeedbackStartRequest_:function(p){_.lA(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:p}])},
onPlayerFeedbackArticleRequest_:function(p){_.lA(this.hostElement,"yt-help-dialog-requested",[p])},
onPlayerYpcContentRequest_:function(){var p,x,F,N,h,c,M,f,K=((p=this.data)==null?NaN:(x=p.contents)==null?NaN:(F=x.twoColumnWatchNextResults)==null?NaN:(N=F.secondaryResults)==null?NaN:(h=N.secondaryResults)==null?NaN:(c=h.offerModule)==null?NaN:(M=c.tvfilmOfferModuleRenderer)==null?NaN:(f=M.actionButtons)==null?NaN:f.length)-1;p=[".offerButton.buttonRenderer.",".actionButtons."+(K>=0?K:0)+".buttonRenderer."];x=_.a(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(F=x.next();!F.done;F=x.next())for(F=F.value,N=_.a(p),h=N.next();!h.done;h=N.next())if(h="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+F+h.value,h=this.get(h+"navigationEndpoint",this.data)||this.get(h+"serviceEndpoint",this.data)||this.get(h+"command",this.data)){_.FY(h,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(p){_.hG(this.hostElement,"yt-autonav-pause-player",p)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(p){p()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(p){switch(p){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(p){switch(p){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.hG(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(p)},
setPlayerState:function(p){_.Bi().dispatch(_.FoB(p))},
onPlayerSubscribe_:function(p){_.lA(this.hostElement,"yt-player-subscribe",[p])},
onPlayerUnsubscribe_:function(p){_.lA(this.hostElement,"yt-player-unsubscribe",[p])},
onPlayerAdYtShowToast_:function(p){_.lA(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:p.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(p){if(p)return p},
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(p){return!_.S("web_watch_move_summary_to_sd")&&!!p},
computeWatchMetadataRefresh:function(){return _.S("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.S("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var p,x,F,N;this.watchNextSecondaryResults=(p=this.data)==null?void 0:(x=p.contents)==null?void 0:(F=x.twoColumnWatchNextResults)==null?void 0:(N=F.secondaryResults)==null?void 0:N.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.S("swatcheroo_pbs_load_grid")&&!_.S("swatcheroo_provide_all_data_on_scheduled_job")){_.E0.cancelJob(this.setRichGridJobId_);var p,x,F,N,h,c,M;this.setRichGridRendererData((p=this.data)==null?void 0:(x=p.contents)==null?void 0:(F=x.twoColumnWatchNextResults)==null?void 0:(N=F.secondaryResults)==null?void 0:(h=N.secondaryResults)==null?void 0:(c=h.results)==null?void 0:(M=c[0])==null?
void 0:M.richGridRenderer)}},
setRichGridRendererData:function(p){this.richGridRendererData=p},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var p,x=(p=this.data)==null?void 0:p.engagementPanels;if(x==null?0:x.length){p=null;x=_.a(x);for(var F=x.next();!F.done;F=x.next()){F=F.value;var N=void 0;if(((N=F.engagementPanelSectionListRenderer)==null?void 0:N.targetId)==="engagement-panel-structured-description"){p=F;break}}var h,c,M;p=(h=p)==null?void 0:(c=h.engagementPanelSectionListRenderer)==null?void 0:(M=c.content)==null?void 0:M.structuredDescriptionContentRenderer;if(p==null?0:p.items){h=
[];c=_.a(p.items);for(M=c.next();!M.done;M=c.next()){M=M.value;if(!_.S("sd_horizontal_list_show_nav_killswitch")){var f=N=F=x=p=void 0,K=void 0,t=(p=M.horizontalCardListRenderer)==null?void 0:(x=p.header)==null?void 0:(F=x.richListHeaderRenderer)==null?void 0:(N=F.navigationButton)==null?void 0:(f=N.buttonRenderer)==null?void 0:(K=f.command)==null?void 0:K.commandExecutorCommand;t&&t.commands&&(t.commands=t.commands.filter(function(d){return!_.r(d,_.O6g)}))}M.expandableVideoDescriptionBodyRenderer||
M.videoDescriptionHeaderRenderer||h.push(M)}return{items:h}}}},
constructWarning_:function(p){return{text:_.L1(p),type:"WARNING"}},
isPlaShelfEnabled_:function(p){if((this.get("adPlacements",p)||[]).length)return!0;p=this.get("playerAds",p)||[];return!(!p.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",p[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var p=this;_.hG(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var x=this.getScrollTop()>0;this.gestures_&&(x?this.gestures_.detach():this.gestures_.attach());x!==this.showFullerscreenEdu_&&_.S("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=x,_.LQ(this).getPlayerPromise().then(function(F){F.updateFullerscreenEduButtonVisibility(p.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.hG(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var p=this;this.commentsReady=!1;_.E0.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.vZ(_.E0,function(){p.setComments_()},1E3)},
setComments_:function(){if(!_.S("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.wH("cmi");_.E0.cancelJob(this.setCommentsJobId_);var p=this.getPageContents(this.data);if(p&&p.length){p=_.a(p);for(var x=p.next();!x.done;x=p.next())if(x=x.value,this.get("itemSectionRenderer.sectionIdentifier",x)==="comment-item-section"){this.comments=x.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.hG(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.S("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.S("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.wH("cmc")},
doRemoveComments_:function(){this.comments={};_.S("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.E0.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.E0.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(p,x){var F=_.r(x.endpoint,_.B7);F&&(!(x=this.get("data.currentVideoEndpoint.watchEndpoint"))||F.videoId!==x.videoId||F.playlistId&&F.playlistId!==x.playlistId||_.S("kevlar_watch_timestamp_seek_playlist_index_comparison")&&F.index!==void 0&&F.index!==x.index||typeof F.startTimeSeconds!=="number"||(p.stopPropagation(),this.setScrollTop(0),_.LQ(this).getPlayerPromise().then(function(N){var h=F.startTimeSeconds;N.seekTo(h);N.wakeUpControls();h<N.getDuration()&&N.playVideo()})))},
updatePlayerStartTime_:function(){var p=_.s8e();"t"in p&&(p=_.VBb(p.t),this.player.seekTo(p,!0))},
updateTitleFromWatchNext:function(p){p=this.getPageContents(p);var x,F;(p=_.Pi(p==null?void 0:(x=p[0])==null?void 0:(F=x.videoPrimaryInfoRenderer)==null?void 0:F.title))&&_.hG(this.hostElement,"yt-update-title",p)},
updateTitle_:function(p){p=this.get("videoDetails.title",p)||"";_.hG(this.hostElement,"yt-update-title",p)},
syncWithRemoteVideo_:function(p,x,F){if(this.active&&this.player){var N=this.player.getVideoData();if(N.video_id===F&&(F=N.list,_.S("polymer_enable_mdx_queue")&&F&&F.startsWith("RQ")&&(F=void 0),N.video_id!==p||F!=x)){var h;_.S("kevlar_player_watch_endpoint_navigation")?h=_.G$6(_.ylo(p,x)):h=this.buildWatchEndpoint_(p,x);_.hG(this.hostElement,"yt-navigate",{endpoint:h,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(p,x,F){return _.$v(p,x,F)},
initDclkstatus_:function(){_.uPe()},
attachWatchPageSkeleton_:function(){var p=document.querySelector("#watch-page-skeleton");if(p){var x=p.querySelector("#primary-info"),F=p.querySelector("#secondary-info"),N=p.querySelector("#related");x&&_.n(this.hostElement).querySelector("#info-skeleton").appendChild(x);F&&_.n(this.hostElement).querySelector("#meta-skeleton").appendChild(F);N&&(_.n(this.hostElement).querySelector("#related-skeleton").appendChild(N),this.watchNextSkeletonEl_=N);_.qc(p)}},
handlePlayerUpdated_:function(){_.LQ(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(p,x){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof x!=="undefined"){var F=this.watchNextSkeletonEl_.children,N=p&&p.indexSplices.length?p.indexSplices[0].index:0;p=Math.min(this.watchNextShownItems.length,F.length);x||(N=0,p=F.length);for(x=N;x<p;x++)F[x].classList.add("hidden")}},
onPlayerFullscreenChange_:function(p){_.S("external_fullscreen")||_.lA(this.hostElement,"yt-player-fullscreen",[p.fullscreen])},
onFullscreenChange_:function(p){this.fullscreen=p;this.gestures_&&this.gestures_.update(this.fullscreen);var x=_.LQ(this);x.getPlayerPromise().then(function(F){F.setFauxFullscreen(!!_.pc())});
this.updateFullBleedElementLocations();p&&(x.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(p,x){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!x},
computeIsDonationShelfCollapsed_:function(p){return p},
computeShouldShowMerchShelf:function(p,x){return x&&!!p},
computeResponseHasComments:function(p){var x,F,N,h,c;return!!(p==null?0:(x=p.contents)==null?0:(F=x.twoColumnWatchNextResults)==null?0:(N=F.results)==null?0:(h=N.results)==null?0:(c=h.contents)==null?0:c.some(function(M){var f;return(M==null?void 0:(f=M.itemSectionRenderer)==null?void 0:f.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(p,x,F,N){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&N?!1:!!p&&!!Object.keys(p).length&&!x},
identity:_.Wr,onWindowResized_:function(p){this.windowSize_=p;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_());_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(p){var x=this;p&&p.type!=="dataloaded"&&p.type!=="dataupdated"||_.LQ(this).getPlayerPromise().then(function(F){var N=F.getPlayerState();N!==5&&N!==0&&(F=1/F.getVideoAspectRatio(),x.videoHeightToWidthRatio_!==F&&(x.videoHeightToWidthRatio_=F))})},
schedulePlayerSizeUpdate_:function(p){var x=this,F=_.S("kevlar_watch_while_v2")||_.S("web_watch_pip"),N=function(){if(x.watchMetadata){var h,c;(c=(h=x.watchMetadata).resize)==null||c.call(h)}_.LQ(x).getPlayerPromise().then(function(M){if(_.S("kevlar_set_internal_player_size")){if(!F||!x.isMiniplayerActive()){var f=x.calculateCurrentPlayerSize_();M.setInternalSize(f.width,f.height)}}else M.setSize(NaN,NaN);_.S("kevlar_watch_while")&&x.updateWatchWhileScrollThreshold_()})};
p?N():_.rR(_.E0,N)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(p){this.set("data.survey",p.detail)},
onYtShowSurveyCommand_:function(p){this.set("data.survey",_.r(p,_.Lfg).survey)},
onDownloadedVideoDeleted:function(p){var x=this,F,N;return _.D(function(h){if(h.nextAddress==1){if(!x.active||(F=x.playerData)==null||!F.offlineState||x.videoId!==p)return h.return();(N=x.player)==null||N.stopVideo();_.fb().navigatingAwayFromWatchDeletedVideo=!0;_.FY(_.SDH,x.hostElement);return _.q(h,_.fb().navigationFinishPromise,2)}_.fb().navigatingAwayFromWatchDeletedVideo=!1;_.JB(h)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var p;this.theater?p=_.YV(.5625*this.windowSize_.width,480,this.windowSize_.height-185):p=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==p&&(this.watchWhileScrollThreshold_=p,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var p=_.n(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&p){var x=this.windowSize_.height>=624,F=this.active?this.getScrollTop():0;!p.active&&x&&F>=this.watchWhileScrollThreshold_?(p.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):p.active&&(!x||F<this.watchWhileScrollThreshold_&&!_.pc())&&(p.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var p=_.n(this.hostElement).querySelector("#secondary-inner");if(p){var x=_.n(this.hostElement).querySelector("#below"),F=_.n(this.hostElement).querySelector("#secondary"),N=_.n(this.hostElement).querySelector("#comments");N&&F&&x&&(this.defaultTwoColumnLayout?(p.appendChild(N),F.appendChild(p)):(x.appendChild(N),_.HY(x,p)))}}},
isTwoColumnsChanged_:function(p,x){if(p!==!0||x!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(p=_.n(this.hostElement).querySelector("#secondary-inner"))){x=_.n(this.hostElement).querySelector("#below");var F=_.n(this.hostElement).querySelector("#secondary"),N=_.n(this.hostElement).querySelector("#comments");N&&F&&x&&(this.isTwoColumns_?(p.appendChild(N),F.appendChild(p)):(x.appendChild(N),_.HY(x,p)))}}else{p=!_.S("live_chat_over_engagement_panels");x=_.n(this.hostElement).querySelector("#chat-container");
F=_.n(this.hostElement).querySelector("#panels");var h=_.n(this.hostElement).querySelector("#alerts");N=_.n(this.hostElement).querySelector("#playlist");var c=_.n(this.hostElement).querySelector("#related"),M=_.n(this.hostElement).querySelector("#donation-shelf"),f=_.n(this.hostElement).querySelector("#comments");this.isTwoColumns_?(h=_.n(this.hostElement).querySelector("#secondary-inner"),p&&h.appendChild(F),h.appendChild(N),_.S("web_watch_theater_chat")||h.appendChild(x),p||h.appendChild(F),h.appendChild(M),
h.appendChild(c)):(p&&_.Ga(F,h),_.Ga(N,h),_.S("web_watch_theater_chat")||_.Ga(x,h),p||_.Ga(F,h),_.Ga(M,h),f&&_.Ga(c,f));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.S("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.S("web_watch_theater_chat")){var p=_.n(this.hostElement).querySelector("#chat-container"),x=this.theater&&!this.fullscreen||_.S("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&x?_.S("web_watch_theater_chat_beside_player")?(x=_.n(this.hostElement).querySelector("#panels-full-bleed-container"),(p==null?void 0:p.parentElement)!==x&&x.append(p),this.panelsBesidePlayer=!0):
_.S("web_watch_theater_fixed_chat")&&(x=_.n(this.hostElement).querySelector("#columns"),(p==null?void 0:p.parentElement)!==x&&x.append(p),this.fixedPanels=!0):(_.S("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.S("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),x=_.n(this.hostElement).querySelector("#playlist"),p&&x?_.VO(p,x):_.no(new _.qE("Missing element when updating chat location",{"chatContainer defined":!!p,"playlist defined":!!x})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(p,x){return _.S("sw_metadata_vis_toggle_ks")?!0:!!p||!!x},
computeForceDarkPanelTheme:function(p){return _.S("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&p:!1},
safeUpdateStyles:function(p){try{_.eV(this.hostElement,p)}catch(x){_.no(x)}},
videoHeightToWidthRatioChanged_:function(p,x){x&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(p){this.videoHeightToWidthRatio_=1/p},
computeIsVerticalVideo_:function(p){return p>=1},
computeIsFourThreeToSixteenNineVideo_:function(p){return p<=.7501&&p>=.5624},
computeIsExtraWideVideo_:function(p){return p<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.LQ(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.LQ(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.$nl(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(p){var x=_.Mq(p)||0;_.a3(p,x+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var p=_.Mq("yt-fullerscreen-edu-button-click-count")||0,x=_.Mq("yt-fullerscreen-edu-button-shown-count")||0,F=_.Ud("external_fullscreen_button_shown_threshold"),N=p>=_.Ud("external_fullscreen_button_click_threshold")||x>=F;_.LQ(this).getPlayerPromise().then(function(h){h.updateFullerscreenEduButtonSubtleModeState(N)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(p,x){return x},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.J().resolve(_.Yx).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var p=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.E0.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.E0.addLowPriorityJob(function(){p.fullHeightPanelPositionUpdateJobId=0;var x=_.n(p.hostElement).querySelector("#secondary"),F=_.n(p.hostElement).querySelector("#fixed-secondary");x=x.getBoundingClientRect();var N=x.width;p.swatcherooSqueezeback&&
(N+=_.ml);if(p.swatcherooSqueezeback){var h=_.n(p.hostElement).querySelector("#squeezeback-constraining-container");h.style.width=N+"px";h.style.flex="0 0 "+N+"px"}F.style.width=N+"px";F.style.left=x.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var p=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.E0.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.E0.addLowPriorityJob(function(){p.panelMaxHeightUpdateJob_=0;var x;!p.isTwoColumns_||p.theater||p.fullscreen?x=460:x=p.calculateNormalPlayerSize_().height;var F=x+"px";_.S("live_chat_taller_height")&&!p.theater&&(F="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.S("live_chat_medium_height")&&!p.theater&&(F="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.S("live_chat_scaled_height")&&!p.theater&&(F="calc(100vh - var(--ytd-toolbar-height) - 238px)");p.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":x+"px","--ytd-watch-flexy-chat-max-height":F,"--ytd-watch-flexy-structured-description-max-height":x+"px","--ytd-watch-flexy-comments-panel-max-height":x+"px","--ytd-comments-engagement-panel-content-height":x+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var p=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.S("web_watch_flexy_adjust_sidebar_width"))&&!_.S("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.E0.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.E0.addLowPriorityJob(function(){p.panelMaxHeightUpdateJob_=0;if(p.isTwoColumns_){var x=_.wQe(p.windowSize_,p.calculateNormalPlayerSize_().width);x!==p.currentSidebarWidth&&(p.currentSidebarWidth=
x,p.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":x+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(p){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",p)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Kc(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(p){var x=_.n(this.hostElement).querySelector("#engagement-panel-scrim");p?x.addEventListener("tap",_.p5(this,this.onEngagementPanelScrimClick_)):x.removeEventListener("tap",_.p5(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(p){if(this.hostElement.contains(p)&&!this.scrollToAnimation_.isAnimating()){var x=p.offsetTop-24;p=p.offsetTop+p.offsetHeight+24;var F=this.getPageScrollingElement(),N=this.getScrollTop(),h=N+F.clientHeight-56;if(x<N+56)x-=56;else if(p>h)x=p-F.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,x),500)}},
onYtSignalActionScrollToComments:function(){var p=this.hostElement.querySelector("#comments");if(p&&!this.scrollToAnimation_.isAnimating()){p=p.offsetTop-56-24;if(_.S("kevlar_comment_teaser_scroll_to_midpoint")&&(p-=_.t_().height/3,p<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,p),500)}},
onYtEngagementPanelVisibleChanged:function(p,x,F){this.active&&this.trackEngagementPanelVisibility&&!_.CKP.includes(F)&&(x==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(F),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.Mt(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),x!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&x!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(F),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(p){return p?"":"watch-active-metadata"},
computeNewMetadataClass:function(p){return p?"watch-active-metadata":""},
computeFullBleedPlayer:function(p,x){return p||x},
computeDefaultLayout:function(p){return!p},
computeDefaultTwoColumnLayout:function(p,x){return!p&&x},
updatePanelsLocation:function(){if(_.S("web_watch_enable_fs_squeezeback_panels")){var p=_.n(this.hostElement).querySelector("#below"),x=_.n(this.hostElement).querySelector("#panels"),F=_.n(this.hostElement).querySelector("#panels-full-bleed-container"),N=_.n(this.hostElement).querySelector("#secondary-inner");this.fullscreen?F.appendChild(x):this.isTwoColumns_?_.HY(N,x):p.appendChild(x)}},
swatcherooUpdatePanelsLocation:function(p,x,F,N,h,c){if(this.is==="ytd-watch-grid"){x=p&&!x;this.swatcherooSplitScroll&&(x?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));F=_.n(this.hostElement).querySelector("#panels");var M=_.n(this.hostElement).querySelector("#playlist"),f=_.n(this.hostElement).querySelector("#fixed-secondary"),K=_.n(this.hostElement).querySelector("#fixed-below"),
t=_.n(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),d=_.n(this.hostElement).querySelector("#chat-container");c&&(p?f.appendChild(F):K.appendChild(F));h?p?f.appendChild(d):K.appendChild(d):_.VO(d,t);N?p?f.appendChild(M):K.appendChild(M):_.VO(M,t);this.swatcherooSplitScroll&&(p=_.n(this.hostElement).querySelector("#secondary"),N=_.n(this.hostElement).querySelector("#columns"),h=_.n(this.hostElement).querySelector("#fixed-columns-secondary"),x?h.appendChild(p):
N.appendChild(p))}},
computeMetadataSkinnyMode:function(p,x,F){return this.is!=="ytd-watch-grid"?!1:p?F:x},
computeWatchWhilePanelsActive:function(p,x){return p||x},
computeNoBorderOnChat:function(p){return _.S("web_watch_theater_chat_no_border")&&p},
computeLiveChatPresentAndExpanded:function(p,x){return p&&!x},
computePanelExpanded:function(p,x,F){return p||x||F},
computeSqueezeback:function(p,x){if(_.S("web_watch_enable_fs_squeezeback_panels"))return p&&x},
computeSwatcherooSqueezeback:function(p,x,F){return this.is!=="ytd-watch-grid"||_.S("ww_squeezeback_killswitch")?!1:p&&x&&F},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(p){_.LQ(this).getPlayerPromise().then(function(x){var F;(F=x.changeMarkerVisibility)==null||F.call(x,_.r(p,_.Lk).isVisible||!1,_.r(p,_.Lk).entityKeys||[],_.r(p,_.Lk).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(p){this.liveChatCollapsed=p.detail;_.Bi().dispatch(_.ONP(p.detail))},
onSetPlaylistCollapsed:function(p){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!p)},
provideRenderingData:function(p,x){switch(p){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=x;break;case "PRIMARY_INFO":_.S("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=x);this.videoPrimaryInfoRendererValue=x==null?void 0:x.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.S("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=x);this.videoSecondaryInfoRendererValue=x==null?void 0:x.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
x;break;case "CLARIFICATION":this.clarifyBoxValue=x;break;case "LIVE_CHAT":this.conversationBar=x;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=x;break;case "PLAYLIST":this.externalPlaylistData_=x!=null?x:{};break;case "MERCH_SHELF":this.merchShelfValue=x==null?void 0:x.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=x;break;case "TICKET_SHELF":this.ticket=x;break;case "OFFER_MODULE":this.offerModule=x;break;case "LIMITED_STATE":this.limitedStateValue=
x;break;case "DONATION_SHELF":this.donation=x;break;case "ALERTS":this.alertsValue=x;break;case "COMMENTS":this.comments=x;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=x;break;case "ENGAGEMENT_PANELS":this.engagementPanels=x;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=x;break;case "RICH_GRID_RENDERER":this.richGridRendererData=x;break;case "EXPANDABLE_METADATA":this.expandableMetadata=x;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
x}},
toggleCinematicsActive:function(p){this.cinematicsActive=p},
isMiniplayerActive:function(){return _.J().resolve(_.H$).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var a$H;_.cDk=function(p){return p.shorts.isShortsActive};
_.M6H=function(p){return p.findIndex(function(x){return a$H.indexOf(x.tagName)>-1})>-1};
_.Ddm=function(p){return _.F4({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:p}})};
_.f$D=function(){var p=_.J().resolve(_.pJ);_.nLz(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(p.isFullscreenEnabled()?_.xv(document.documentElement):_.pqp(document.documentElement))};
a$H=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.pL=new Map;_.pL.set(32,59972);_.pL.set(27,50765);_.pL.set(70,60102);_.pL.set(76,60221);_.pL.set(77,60222);_.pL.set(74,60223);_.pL.set(84,60224);_.pL.set(38,61941);_.pL.set(40,61942);_.pL.set(73,62521);_.pL.set(67,62522);_.pL.set(80,63390);_.pL.set(78,63397);_.pL.set(75,59972);_.pL.set(188,63385);_.pL.set(190,63384);_.pL.set(36,63387);
_.pL.set(35,63386);_.pL.set(37,63388);_.pL.set(39,63389);_.pL.set(79,63423);_.pL.set(87,63424);_.pL.set(107,63426);_.pL.set(109,63425);_.pL.set(65,63428);_.pL.set(83,63430);_.pL.set(68,63429);_.pL.set(221,63431);_.pL.set(219,63432);_.pL.set(97,63439);_.pL.set(98,63440);_.pL.set(99,63441);_.pL.set(100,63442);_.pL.set(101,63443);_.pL.set(102,63444);_.pL.set(103,63445);_.pL.set(104,63446);_.pL.set(105,63447);_.xR=new Map;_.xR.set(80,63390);_.xR.set(78,63397);_.xR.set(188,63400);_.xR.set(190,63401);
_.xR.set(191,60765);_.xR.set(13,247917);_.FW=new Map;_.N2=new Map;
}catch(e){_._DumpException(e)}
try{
var gMm,s8D,nMk,yle;_.S4t=function(p){return p.ui.guideIsVisibleButNotPersistent};
_.rl_=function(p){return p.ui.tabGesturesIsActive};
_.EM8=function(){var p=_.iO("service_worker_scope");try{return navigator.serviceWorker.getRegistration(p)}catch(x){return Promise.reject(x)}};
_.XQm=function(p){return!(!p||!p.pushManager)};
gMm=function(){return _.EM8().then(_.XQm).catch(function(){return!1})};
_.Q8m=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?gMm():Promise.resolve(!1)};
_.zTa=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
s8D=function(){var p,x,F;return _.D(function(N){switch(N.nextAddress){case 1:return _.q(N,_.Sa.getInstance(),2);case 2:p=N.yieldResult;if(!p){x=void 0;N.jumpTo(3);break}return _.q(N,p.get("lmqf"),4);case 4:x=N.yieldResult;case 3:switch((F=x)||(F="SD"),F){case "HD":return N.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return N.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return N.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return N.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return N.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
nMk=function(p){var x,F,N;return _.D(function(h){if(h.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]){var c=window.localStorage["yt-player-av1-pref"];c=c==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":c==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else c="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(x=p===c)return h.jumpTo(2);N=F=p;return _.q(h,s8D(),3)}h.nextAddress!=2&&(x=N===h.yieldResult);return h.return(x)})};var bNH;var AlH=_.Eq.IronButtonState,uPD=(0,_.CW)(HTMLElement);
_.qu({_template:function(){if(bNH!==void 0)return bNH;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" aria-hidden="true" class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-iron-icon>\n    </tp-yt-paper-input>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu"></slot>\n</tp-yt-paper-menu-button>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;yle===void 0&&(yle=document.createElement("template"));var N=yle;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return bNH=p},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[AlH,_.SC,_.X5,_.zR],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(p){var x=(0,_.qn)(this);x.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:p});
x.shadowRoot.appendChild(p);return uPD.prototype._attachDom.call(this,p)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var p=this.contentElement;p&&p.selectedItem&&this._setSelectedItem(p.selectedItem)},
get contentElement(){for(var p=_.Ef(this.$.content).getDistributedNodes(),x=0,F=p.length;x<F;x++)if(p[x].nodeType===Node.ELEMENT_NODE)return p[x]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(p){this._setSelectedItem(p.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(p){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(p)===this&&this.open()},
_selectedItemChanged:function(p){var x="";p?x=p.label||p.getAttribute("label")||p.textContent.trim():x="";this.value=x;this._setSelectedItemLabel(x)},
_computeMenuVerticalOffset:function(p,x){return x?x:p?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var p=this.opened?"true":"false",x=this.contentElement;x&&x.setAttribute("aria-expanded",p)}});_.W4=new _.U("navigateAction");var Y4t=new _.U("formRenderer");var wQD=function(){var p=_.hZ.apply(this,arguments)||this;p.showInput=!1;return p};
_.E(wQD,_.hZ);_.l=wQD.prototype;_.l.detached=function(){this.showInput&&window.removeEventListener("click",_.p5(this,this.closeOnOutsideClick_))};
_.l.stopPropagation_=function(p){this.showInput&&p.stopPropagation()};
_.l.closeOnOutsideClick_=function(p){this.closeOnOutsideClickCondition(p)&&(this.showInput=!1,window.removeEventListener("click",_.p5(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.l.closeOnOutsideClickCondition=function(){return!0};
_.l.closeOnOutsideClickHandler=function(){};
_.l.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.p5(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.l.openOnClickHandler=function(){};
_.l.showInputChanged=function(){};
_.l.setShowInput=function(p){this.showInput=p};
var H4=wQD;H4.prototype.setShowInput=H4.prototype.setShowInput;H4.prototype.showInputChanged=H4.prototype.showInputChanged;H4.prototype.openOnClickHandler=H4.prototype.openOnClickHandler;H4.prototype.openOnClick_=H4.prototype.openOnClick_;H4.prototype.closeOnOutsideClickHandler=H4.prototype.closeOnOutsideClickHandler;H4.prototype.closeOnOutsideClickCondition=H4.prototype.closeOnOutsideClickCondition;H4.prototype.closeOnOutsideClick_=H4.prototype.closeOnOutsideClick_;
H4.prototype.stopPropagation_=H4.prototype.stopPropagation_;_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],H4.prototype,"showInput",void 0);_.B([_.V("click"),_.V("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],H4.prototype,"stopPropagation_",null);_.B([_.W("showInput"),_.k("design:type",Function),_.k("design:paramtypes",[Boolean]),_.k("design:returntype")],H4.prototype,"showInputChanged",null);H4=_.B([_.l8()],H4);_.Gct=[H4.prototype];var VBa;var Wfm;var HNH=function(){return _.m.apply(this,arguments)||this};
_.E(HNH,_.m);_.l=HNH.prototype;_.l.computePreselectedOption=function(p,x){return x===this.itemSelected_?p:void 0};
_.l.dataChanged_=function(){var p=this;this.preselectedSubreason=this.itemSelected_=-1;var x;(x=this.data)!=null&&x.key&&_.jB(this,function(){var F,N=Number((F=p.data)==null?void 0:F.key);!Number.isNaN(N)&&(p.itemSelected_=N,F=(F=(p.data.items||[])[N])&&F.optionSelectableItemRenderer&&F.optionSelectableItemRenderer.preselectedIndex)&&(p.preselectedSubreason=F)})};
_.l.isSubReasonHidden_=function(p,x){return p!=x};
_.l.onTopItemSelected_=function(p,x){for(var F=_.n(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),N=0,h=F.length;N<h;N++)F[N].select(0);_.lA(this.hostElement,"yt-report-form-update",[x.item.value]);p.stopPropagation()};
_.l.onItemSelected_=function(p,x){_.lA(this.hostElement,"yt-report-form-update",[x.item.value]);p.stopPropagation()};
_.l.getItem_=function(p){return p.serviceItem?p.serviceItem:p.navigationItem?p.navigationItem:p.optionSelectableItemRenderer?p.optionSelectableItemRenderer:null};
_.l.computeText_=function(p){return(p=this.getItem_(p))?this.ytRendererBehavior.getSimpleString(p.text):null};
_.l.validate=function(){return this.itemSelected_!==-1};
_.l.computeAriaLabel_=function(p){var x=_.Pi(p.text);(p=p.accessibility&&p.accessibility.accessibilityData&&p.accessibility.accessibilityData.label)&&(x+=". "+p);return x};
_.l.computeItemSelected_=function(p){return p};
_.l.preventSelection_=function(p){p.stopPropagation();this.tooltipTapped=!0};
_.l.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.l.updateItemSelectedFromBinding=function(p){this.itemSelected_=p.detail.value};
_.l.save=function(){var p;this.validate()&&(p=this.data)!=null&&p.items&&(p=this.data.items[this.itemSelected_],p!=null&&p.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(p.optionSelectableItemRenderer.submitEndpoint)||_.fc(this.hostElement,[p.optionSelectableItemRenderer.submitEndpoint])))};
var mP=HNH;mP.prototype.onPaperRippleTransitionEnd_=mP.prototype.onPaperRippleTransitionEnd_;mP.prototype.dataChanged_=mP.prototype.dataChanged_;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],mP.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],mP.prototype,"data",void 0);_.B([_.H({value:-1}),_.k("design:type",Number)],mP.prototype,"itemSelected_",void 0);
_.B([_.H({computed:"computeItemSelected_(itemSelected_)"}),_.k("design:type",Number)],mP.prototype,"value",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],mP.prototype,"restoreFocusOnClose",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],mP.prototype,"tooltipTapped",void 0);_.B([_.H({value:-1}),_.k("design:type",Number)],mP.prototype,"preselectedSubreason",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mP.prototype,"dataChanged_",null);_.B([_.V("transitionend"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mP.prototype,"onPaperRippleTransitionEnd_",null);mP=_.B([_.JZ({is:"yt-options-renderer",disableElementRegistration:!0})],mP);
_.P(mP,"yt-options-renderer",function(){if(Wfm===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;VBa===void 0&&(VBa=document.createElement("template"));var N=VBa;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Wfm=p}p=Wfm;return p},{mode:2});var mnc;var oMc;var ONH;var j8_;var Lfm;var PLD;var oP=function(){return _.m.apply(this,arguments)||this};
_.E(oP,_.m);oP.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
oP.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
oP.prototype.onTap=function(p){if(this.hostElement.classList.contains("selected")||_.Dx(this.hostElement,"yt-share-panel-can-select-contact-action"))p&&p.detail&&(p.detail.x||p.detail.y)&&_.n(this.hostElement).querySelector("#target").blur(),(p=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),p={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:p?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.lA(this.hostElement,"yt-share-panel-select-contact-action",[p])};
var OA=oP;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],OA.prototype,"ytRendererBehavior",void 0);_.B([_.H({observer:"onDataChanged"}),_.k("design:type",Object)],OA.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.k("design:type",String)],OA.prototype,"componentTitle",void 0);_.B([_.Ff("#thumbnail"),_.k("design:type",Object)],OA.prototype,"thumbnail",void 0);
OA=_.B([_.JZ({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],OA);
_.P(OA,"yt-enrolled-contact-renderer",function(){if(PLD===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Lfm===void 0&&(Lfm=document.createElement("template"));var N=Lfm;F.call(x,N.content.cloneNode(!0),p.content.firstChild);PLD=p}p=PLD;return p},{mode:2});var Tge;var BgD;var jf=function(){return _.m.apply(this,arguments)||this};
_.E(jf,_.m);jf.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
jf.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
jf.prototype.onTap=function(p){if(this.hostElement.classList.contains("selected")||_.Dx(this.hostElement,"yt-share-panel-can-select-contact-action"))p&&p.detail&&(p.detail.x||p.detail.y)&&_.n(this.hostElement).querySelector("#target").blur(),(p=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),p={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:p?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.lA(this.hostElement,"yt-share-panel-select-contact-action",[p])};
var LK=jf;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],LK.prototype,"ytRendererBehavior",void 0);_.B([_.H({observer:"onDataChanged"}),_.k("design:type",Object)],LK.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.k("design:type",String)],LK.prototype,"componentTitle",void 0);_.B([_.Ff("#thumbnail"),_.k("design:type",Object)],LK.prototype,"thumbnail",void 0);
LK=_.B([_.JZ({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],LK);
_.P(LK,"yt-suggested-contact-renderer",function(){if(BgD===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Tge===void 0&&(Tge=document.createElement("template"));var N=Tge;F.call(x,N.content.cloneNode(!0),p.content.firstChild);BgD=p}p=BgD;return p},{mode:2});var P4=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-share-panel-reset-action":"onReset"};return p};
_.E(P4,_.m);P4.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"}}}}}};
P4.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.lA(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
P4.prototype.onReset=function(){for(var p=_.n(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),x=p.length-1;x>=0;x--)p[x].classList.toggle("selected")};
var TQ=P4;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],TQ.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],TQ.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],TQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H({observer:"onDataChanged"}),_.k("design:type",Object)],TQ.prototype,"data",void 0);
TQ=_.B([_.JZ({is:"yt-contact-section-renderer",disableElementRegistration:!0})],TQ);
_.P(TQ,"yt-contact-section-renderer",function(){if(j8_===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;ONH===void 0&&(ONH=document.createElement("template"));var N=ONH;F.call(x,N.content.cloneNode(!0),p.content.firstChild);j8_=p}p=j8_;return p},{mode:2});var RTc=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return p};
_.E(RTc,_.m);_.l=RTc.prototype;_.l.configureRendererStamper=function(){return{"data.fields":{id:"fields",mapping:{textInputFormFieldRenderer:{component:"yt-text-input-form-field-renderer",params:{required:!0},properties:{hideLabel:"[[data.hideLabels]]"}},toggleFormFieldRenderer:{component:"yt-toggle-form-field-renderer"},optionsRenderer:"yt-options-renderer",contactSectionRenderer:"yt-contact-section-renderer"}}}};
_.l.onYtRefreshFormCommand=function(p){var x;(p=_.r((x=_.r(p,_.M_v))==null?void 0:x.formRenderer,Y4t))&&this.set("data",p)};
_.l.reset=function(){var p=_.n(this.hostElement).querySelector("#fields").children;p=_.a(p);for(var x=p.next();!x.done;x=p.next())x=x.value,x.reset&&x.reset()};
_.l.getForm=function(){var p={},x=_.n(this.hostElement).querySelector("#fields").children;x=_.a(x);for(var F=x.next();!F.done;F=x.next()){F=F.value;if(!F.validate())return null;p[F.data.key]=F.value}return p};
_.l.submitFormFields=function(){if(this.fields)for(var p=_.a(this.fields),x=p.next();!x.done;x=p.next())x=x.value,x.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?x.save():x.nodeName==="YT-OPTIONS-RENDERER"&&x.save()};
var B4=RTc;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],B4.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],B4.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],B4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],B4.prototype,"data",void 0);_.B([_.Nu("#fields > *"),_.k("design:type",Array)],B4.prototype,"fields",void 0);
B4=_.B([_.JZ({is:"yt-form-renderer",disableElementRegistration:!0})],B4);
_.P(B4,"yt-form-renderer",function(){if(oMc===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;mnc===void 0&&(mnc=document.createElement("template"));var N=mnc;F.call(x,N.content.cloneNode(!0),p.content.firstChild);oMc=p}p=oMc;return p},{mode:2});var kcc;var Unc=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return p};
_.E(Unc,_.m);Unc.prototype.onCheckboxChange=function(p){this.data&&(p=(this.checked=_.os(p).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.J().resolve(_.RD).resolveCommand(p,{form:{element:this.hostElement}})};
Unc.prototype.handleUpdateCheckboxCommand=function(p){(p=_.r(p,_.E9m))&&this.data&&this.data.id===p.id&&(this.set("data.disabled",p.disabled),this.set("data.title",p.title))};
var RP=Unc;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],RP.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],RP.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Boolean)],RP.prototype,"checked",void 0);RP=_.B([_.L({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],RP);
_.P(RP,"ytd-settings-checkbox-renderer",function(){if(kcc!==void 0)return kcc;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return kcc=p},{mode:1});var iNm;var kr=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return p};
_.E(kr,_.m);kr.prototype.dataChanged=function(){var p=this,x;return _.D(function(F){if(F.nextAddress==1)return p.radio.removeAttribute("checked"),!p.data||!p.data.id||p.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.zTa()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(x=p.data&&p.data.id)?_.q(F,nMk(p.data.id),4):F.jumpTo(3):(p.set("data.hidden",!0),F.jumpTo(0));F.nextAddress!=3&&(x=F.yieldResult);x&&_.lA(p.hostElement,"yt-select-settings-radio-option",[p.data.id]);_.JB(F)})};
kr.prototype.onButtonChanged=function(p){_.os(p).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.J().resolve(_.RD).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.lA(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
kr.prototype.onSelectOption=function(p){this.data&&this.data.id&&(this.data.id===p?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
var UA=kr;UA.prototype.dataChanged=UA.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],UA.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],UA.prototype,"ytActionHandlerBehavior",void 0);_.B([_.Ff("#radio"),_.k("design:type",Object)],UA.prototype,"radio",void 0);_.B([_.H(),_.k("design:type",Object)],UA.prototype,"data",void 0);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],UA.prototype,"dataChanged",null);UA=_.B([_.L({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],UA);
_.P(UA,"ytd-settings-radio-option-renderer",function(){if(iNm!==void 0)return iNm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return iNm=p},{mode:1});var IW8;var iw=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return p};
_.E(iw,_.m);
iw.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"}}}};
iw.prototype.handleUpdateTextCommand=function(p){(p=_.r(p,_.Xv6))&&this.data&&this.data.id===p.id&&this.set("data",p)};
iw.prototype.handleUpdateConnectedAppRendererCommand=function(p){if(_.r(p,_.zVI)&&this.data){var x,F;if(p=(x=_.r(p,_.zVI))==null?void 0:(F=x.newConnectedAppRenderer)==null?void 0:F.connectedAppRenderer)this.data=p}};
iw.prototype.computeConnectedAppStyle=function(p){return p.style?p.style.toLowerCase().replace(/_/g,"-"):""};
var IP=iw;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],IP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],IP.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],IP.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],IP.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.k("design:type",String)],IP.prototype,"connectedAppStyle",void 0);IP=_.B([_.L({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],IP);
_.P(IP,"ytd-connected-app-renderer",function(){if(IW8!==void 0)return IW8;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return IW8=p},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.QH("iuT5Oc");

_.z4();
}catch(e){_._DumpException(e)}
try{
_.QH("L3n37");
var vQM=_.vt(115994),J8b=_.vt(115993),C0g=function(p,x,F){var N=this;var h=F.dragDownAction;this.layer=0;this.JSC$20285_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return N.dragDownAction()}}}};
this.JSC$20285_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return N.dragDownAction()}}}};
this.fullscreen=!1;var c=_.cl();_.hY(c,vQM,this.layer);_.hY(c,J8b,this.layer);this.dragDownAction=function(){h();_.A0(c,{visualElement:N.fullscreen?vQM:J8b})};
this.gesture=new _.XL(p,x,this.JSC$20285_watchConfig,"pandown");this.attach()};
C0g.prototype.attach=function(){this.gesture.attach()};
C0g.prototype.detach=function(){this.gesture.detach()};
C0g.prototype.update=function(p){this.fullscreen=p;this.gesture.config=p?this.JSC$20285_watchFullScreenConfig:this.JSC$20285_watchConfig};var Sfb={},r86=["PAyouchat"];
Sfb.YtdLearningJourneyWatchBehavior=[_.e.YtRendererBehavior,_.oz.YtPlayerListenerBehavior,_.P6.YtRendererstamperBehavior,_.T2.YtActionHandlerBehavior,_.Gr.YtPageBehavior,_.NY.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},
learningJourneyEngagementPanels:{type:Object,computed:"getLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},nonLearningJourneyEngagementPanels:{type:Object,computed:"getNonLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},hasLearningJourneyPanels:{type:Boolean,reflectToAttribute:!0,computed:"getHasLearningJourneyPanels(learningJourneyEngagementPanels,hasLearningJourneyPanelsValue)"},clarifyBoxValue:{type:Object},conversationBar:{type:Object},
infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},
playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.nt("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.S("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 _.nt("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 _.S("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.S("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},richItemMinWidth:{type:Number,value:function(){return _.Ud("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Ud("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!_.S("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.S("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 _.S("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.S("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("web_watch_rounded_player_large")||_.S("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.S("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.S("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.S("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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 _.S("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.S("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 _.S("web_thumbnail_to_watch_transition")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var p={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:_.bw(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.bw(["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"||_.S("swa_prov_panels_ks")?this.is==="ytd-watch-learning-journey"?(p.learningJourneyEngagementPanels={id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},p.nonLearningJourneyEngagementPanels=
{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):_.S("web_watch_inject_placeholder_panels")?p.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:_.S("kevlar_use_engagement_panel_management_component")||(p["data.engagementPanels"]={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}):(p.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},p.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return p},
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 p=this;this.watchController=void 0;this.pageDisposeJobs=[function(){p.showMetadataPlaceholder_()},
function(){_.S("web_watch_dont_clear_comments")||p.clearComments_()},
function(){p.clearPlayerAds_()},
function(){p.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;_.S("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.S("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.PLe(function(){return _.LQ(p)},this.hostElement);
this.pageDisposeJobs.push(function(){p.youThereManager_.reset()});
_.S("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){p.resetFullerscreenEduButtonForNewPlayback_()}));
_.S("kevlar_watch_js_panel_height")&&(this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.lU;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;_.S("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.S("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));_.S("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.p5(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(p){p&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:p}),p.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(p){_.S("kevlar_watch_flexy_theater_manager")&&(this.theater=p,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.S("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(p){!_.S("kevlar_watch_while_v2")&&!_.S("web_watch_pip")||p||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(p){this.active!==void 0&&(this.fullscreen=p,_.S("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(p){this.active!==void 0&&(_.hG(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.S("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(p>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(p){this.initCsi_();this.updatePageData_(p)},
updatePageData_:function(p){var x=this;if(p)if(this.data===p){this.onPageLoadWithSameData_();var F;(F=this.watchController)==null||_.oQ(F,this.data)}else this.data=p;this.playlist&&_.uA({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.wH("nw");this.loading=!1;_.vZ(_.E0,function(){x.initDclkstatus_();var N,h=((N=x.player)==null?void 0:N.getVideoData().cpn)||"";_.nMU(function(c,M){_.N$k(c,M,h)})})},
onPageLoadWithSameData_:function(){_.S("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 p=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!p);this.set("loadingData.playlistLoading",p&&p!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),p=this.watchNextSkeletonEl_.firstElementChild;p;)p.classList.remove("hidden"),p=p.nextElementSibling;if(_.S("kevlar_watch_frame0_loading_state")){var x,F,N;p=(x=this.loadingData)==null?void 0:(F=x.endpoint)==null?void 0:(N=F.watchEndpoint)==null?void 0:N.videoId;var h;p&&(h="https://i.ytimg.com/vi/"+p+"/frame0.jpg");_.n(this.hostElement).querySelector("#player").style.backgroundImage=h?"url("+h+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var p=_.n(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&p&&(p.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var x,F;(F=(x=this.watchMetadata).updateSentimentBarWidth)==
null||F.call(x);var N,h;(h=(N=this.watchMetadata).resize)==null||h.call(N)}_.S("kevlar_watch_frame0_loading_state")&&(_.n(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(p){var x=_.n(this.hostElement).querySelector(p);x?_.FJ(x,!1):_.no(new _.qE("Overscroll monitor not found for component: ",p))},
removeSplitScrollMouseTrap:function(p){var x=_.n(this.hostElement).querySelector(p);x?_.Nt(x):_.no(new _.qE("Disposal component for  overscroll monitoring not found: ",p))},
onLoadingChanged_:function(p){p?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(p){var x=this;p?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.E0.addLowPriorityJob(function(){x.onWindowResized_(_.tF(!0))})},
updateTheaterModeState_:function(p){if(!_.S("kevlar_watch_flexy_theater_manager")){p=p||this.fullWindowMode_;if(this.theater!==void 0||p)this.theater=p;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();p&&_.n_b()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var p=this.theater;_.S("external_fullscreen")&&this.fullscreen&&(p=!0);p=p?_.n(this.hostElement).querySelector("#player-full-bleed-container"):_.n(this.hostElement).querySelector("#player-container-inner");var x=this.getPlayerContainer(),F=_.S("kevlar_watch_while_v2")||_.S("web_watch_pip");x.parentElement!==p&&(F&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.LQ(this).appendTo(p,x),p.appendChild(_.n(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var p=this;return _.D(function(x){if(x.nextAddress==1)return _.q(x,_.J().resolve(_.H$).deactivate(),2);p.updatePlayerLocation();_.JB(x)})},
updateCinematicsLocation:function(){var p=this.getElement("CINEMATICS");if(p){var x=this.getCinematicsLocationContainer();p.parentElement!==x&&x.appendChild(p);var F;(F=this.watchController)==null||_.gMg(F)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.n(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.n(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(p,x){var F=document.documentElement.hasAttribute("dark"),N=F&&_.S("web_cinematic_theater_mode"),h=F&&_.S("web_cinematic_fullscreen");F=!F&&this.cinematicLightTheme;return p&&N||x&&h||(x||p)&&F},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var p=this,x;(x=this.watchController)==null||_.oQ(x,this.data);_.S("kevlar_watch_flexy_comments_manager")||this.initComments_();_.S("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.J().resolve(_.Yx).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,_.S("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.E0.addLowPriorityJob(function(){_.Mt(p.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.S("web_watch_start_chat_in_theater_mode")){var F,N,h;if((F=this.data)==null?0:(N=F.contents)==null?0:(h=N.twoColumnWatchNextResults)==null?0:h.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var c,M;((c=this.data)==null?0:(M=c.contents)==null?0:M.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(p){var x;(x=this.watchController)==null||_.mS(x,this.playerData);p&&p.playabilityStatus&&(x=this.isVideoPlayable_(p.playabilityStatus,this.getPlayerOverlays_(this.data)),p=this.isLiveStreamOffline_(p.playabilityStatus),x&&!p||_.jB(this,function(){_.wH("pbu")}));
this.setPlayerAds_();_.Mt(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(p){_.Bi().dispatch(_.wze(this.active));p?this.activate_():this.deactivate_()},
attached:function(){var p=this;this.watchController=new _.HM(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.mS(this.watchController,this.playerData);this.data&&_.oQ(this.watchController,this.data);_.S("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var x=_.LQ(this);_.S("kevlar_disable_prepare_player")||x.preparePlayer();
_.S("kevlar_watch_flexy_playlist_manager")||_.J().resolve(_.Yx).setPlayer(x);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();x={"--ytd-watch-flexy-scrollbar-width":_.zQ()+"px"};this.is==="ytd-watch-grid"&&(x["--ytd-watch-flexy-sidebar-width"]=_.OX+"px",x["--ytd-watch-flexy-sidebar-min-width"]=_.Ud("kevlar_watch_grid_sidebar_min_width",300)+"px",x["--ytd-watch-grid-horizontal-page-margins"]=_.ml+"px",x["--ytd-watch-grid-columns-top-margins"]=_.gZe+"px",x["--ytd-watch-grid-min-player-height-medium"]=
"360px");!_.Ud("kv_pl_mx_sz_ks")&&_.Ud("kevlar_watch_max_player_width")&&(x["--ytd-watch-flexy-max-player-width-wide-screen"]=_.bMe+"px");_.Ud("kevlar_watch_flexy_metadata_height")&&(x["--ytd-watch-flexy-space-below-player"]=_.ABl+"px");this.safeUpdateStyles(x);_.S("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new C0g(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return p.onPlayerTouchPanDown_()}}));
_.S("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.n(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var p=_.zQ(),x=_.oH+p,F=x;this.fixedPanels&&(x+=_.OX);var N=657+p;p=1327+p;_.n(this.hostElement).querySelector("#two-column-query").query="(min-width: "+x+"px)";_.n(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(N+"px), (min-height: 630px) and (min-width: ")+(x+"px) and (max-width: ")+(p+"px)");_.n(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(p+"px)");_.n(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+F+"px)"},
calculateCurrentPlayerSize_:function(){var p=_.n(this.hostElement).querySelector("#miniplayer-bar").firstChild;return p&&p.active||this.theater||_.S("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.q1(NaN,NaN):_.GcM(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.GcM(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.RR(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var p=this;this.onWindowResized_(_.tF());_.S("browse_skeleton_removal_on_watch_killswitch")||_.nt("IS_SHELL_LOAD")&&_.sVH();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var x=_.LQ(this);x.addEventListener("yt-player-updated",_.p5(this,this.onPlayerUpdated_));x.getPlayerPromise().then(function(F){p.playerApiReady_(F)});
_.S("kevlar_watch_flexy_playlist_manager")||(x=_.J().resolve(_.Yx),_.S("kevlar_watch_observe_playlist_navigations_killswitch")&&x.addEventListener("yt-navigate",_.p5(this,this.onYtNavigate_)),x.setPlaylistComponent(_.n(this.hostElement).querySelector("#playlist")),x.addEventListener("yt-playlist-data-updated",_.p5(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.E0.addLowPriorityJob(function(){_.hG(p.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.LQ(this).removeEventListener("yt-player-updated",_.p5(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.S("kevlar_watch_flexy_playlist_manager")){var p=_.J().resolve(_.Yx);_.S("kevlar_watch_observe_playlist_navigations_killswitch")&&p.removeEventListener("yt-navigate",_.p5(this,this.onYtNavigate_));
p.cancelVideoSkip();p.removeEventListener("yt-playlist-data-updated",_.p5(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.hG(this.hostElement,"yt-autonav-pause-player",!1);p=_.pc();_.S("kevlar_exit_fullscreen_leaving_watch")&&p&&_.xv(p)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(p){this.player&&this.player.updateVideoData({rvs:p.rvs})},
getPageContents:function(p){return p&&p.contents&&p.contents.twoColumnWatchNextResults&&p.contents.twoColumnWatchNextResults.results&&p.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(p){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",p)},
onRetrieveLocation_:function(p,x){x.hasComments?x.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):x.locationRetrieved("/related_ajax",void 0);p.stopPropagation()},
onSubscriptionChanged_:function(p,x){this.player&&(x?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.WGe("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.n(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.n(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(p){this.player=p;this.setPlayerState(p.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.S("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.S("kevlar_unified_player")||_.S("kevlar_player_new_bootstrap_adoption"))&&_.UW()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(p,x){x=x===void 0?!0:x;_.pc()&&_.S("external_fullscreen")&&_.xv(document.documentElement);this.theaterRequested_=p;x&&_.ME("wide",p?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.S("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.lA(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.hG(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(p){_.yj(p,typeof this.player),this.player&&_.yj(p,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var p;((p=this.player)==null?0:p.isFullscreen())?this.player.toggleFullscreen():_.lA(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(p,x){return this.loading?x:!!Object.keys(p).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(p){if(p){p=_.a(p);for(var x=p.next();!x.done;x=p.next())x=x.value,x.youThereRenderer&&_.RTK(this.youThereManager_,x.youThereRenderer)}},
setPlaylistData_:function(p){return p||{}},
userEngagementConfigDataChanged_:function(p){if(p)if(p.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var x=this.youThereManager_;_.U0()<p.lowEngagementThresholdMs||_.IWn(x,!0)}else p.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.lA(this.hostElement,"yt-autonav-pause-user-engagement",[p])},
isPlayerUnavailable_:function(p,x,F){return!!p&&!this.isVideoPlayable_(p,F)&&!x},
getPlayerOverlays_:function(p){return(p==null?void 0:p.playerOverlays)||null},
isVideoPlayable_:function(p,x){if(!p)return!1;var F=p.status==="OK"||p.status==="LIVE_STREAM_OFFLINE",N=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",p)||this.get("errorScreen.ypcTrailerRenderer",p);p=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",p);var h;x=x==null?void 0:(h=x.playerOverlayRenderer)==null?void 0:h.gatedActionsOverlayRenderer;return!!F||!!N||!!p||!!x},
hasWatchNextResponseErrorRenderer:function(p){var x=this.getPageContents(p),F,N,h,c,M;return!(p==null?0:(F=p.contents)==null?0:(N=F.twoColumnWatchNextResults)==null?0:N.secondaryResults)&&!!((h=x[0])==null?0:(c=h.itemSectionRenderer)==null?0:(M=c.contents[0])==null?0:M.backgroundPromoRenderer)},
isLiveStreamOffline_:function(p){return p?p.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(p,x,F){var N=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",x),h=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];h=_.S("web_no_skip_video_on_verification_checks")?(p==null?void 0:p.status)&&h.includes(p.status):p&&p.status==="AGE_CHECK_REQUIRED";var c=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",p);c==void 0&&(c=!0);!F||this.isVideoPlayable_(p,this.getPlayerOverlays_(x))||
N||h||!c||_.J().resolve(_.Yx).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.WfA()},
onPlayerFeedbackStartRequest_:function(p){_.lA(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:p}])},
onPlayerFeedbackArticleRequest_:function(p){_.lA(this.hostElement,"yt-help-dialog-requested",[p])},
onPlayerYpcContentRequest_:function(){var p,x,F,N,h,c,M,f,K=((p=this.data)==null?NaN:(x=p.contents)==null?NaN:(F=x.twoColumnWatchNextResults)==null?NaN:(N=F.secondaryResults)==null?NaN:(h=N.secondaryResults)==null?NaN:(c=h.offerModule)==null?NaN:(M=c.tvfilmOfferModuleRenderer)==null?NaN:(f=M.actionButtons)==null?NaN:f.length)-1;p=[".offerButton.buttonRenderer.",".actionButtons."+(K>=0?K:0)+".buttonRenderer."];x=_.a(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(F=x.next();!F.done;F=x.next())for(F=F.value,N=_.a(p),h=N.next();!h.done;h=N.next())if(h="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+F+h.value,h=this.get(h+"navigationEndpoint",this.data)||this.get(h+"serviceEndpoint",this.data)||this.get(h+"command",this.data)){_.FY(h,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(p){_.hG(this.hostElement,"yt-autonav-pause-player",p)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(p){p()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(p){switch(p){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(p){switch(p){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.hG(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(p)},
setPlayerState:function(p){_.Bi().dispatch(_.FoB(p))},
onPlayerSubscribe_:function(p){_.lA(this.hostElement,"yt-player-subscribe",[p])},
onPlayerUnsubscribe_:function(p){_.lA(this.hostElement,"yt-player-unsubscribe",[p])},
onPlayerAdYtShowToast_:function(p){_.lA(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:p.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(p){if(p)return p},
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(p){return!_.S("web_watch_move_summary_to_sd")&&!!p},
computeWatchMetadataRefresh:function(){return _.S("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var p,x,F,N;this.watchNextSecondaryResults=(p=this.data)==null?void 0:(x=p.contents)==null?void 0:(F=x.twoColumnWatchNextResults)==null?void 0:(N=F.secondaryResults)==null?void 0:N.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.S("swatcheroo_pbs_load_grid")&&!_.S("swatcheroo_provide_all_data_on_scheduled_job")){_.E0.cancelJob(this.setRichGridJobId_);var p,x,F,N,h,c,M;this.setRichGridRendererData((p=this.data)==null?void 0:(x=p.contents)==null?void 0:(F=x.twoColumnWatchNextResults)==null?void 0:(N=F.secondaryResults)==null?void 0:(h=N.secondaryResults)==null?void 0:(c=h.results)==null?void 0:(M=c[0])==null?
void 0:M.richGridRenderer)}},
setRichGridRendererData:function(p){this.richGridRendererData=p},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var p,x=(p=this.data)==null?void 0:p.engagementPanels;if(x==null?0:x.length){p=null;x=_.a(x);for(var F=x.next();!F.done;F=x.next()){F=F.value;var N=void 0;if(((N=F.engagementPanelSectionListRenderer)==null?void 0:N.targetId)==="engagement-panel-structured-description"){p=F;break}}var h,c,M;p=(h=p)==null?void 0:(c=h.engagementPanelSectionListRenderer)==null?void 0:(M=c.content)==null?void 0:M.structuredDescriptionContentRenderer;if(p==null?0:p.items){h=
[];c=_.a(p.items);for(M=c.next();!M.done;M=c.next()){M=M.value;if(!_.S("sd_horizontal_list_show_nav_killswitch")){var f=N=F=x=p=void 0,K=void 0,t=(p=M.horizontalCardListRenderer)==null?void 0:(x=p.header)==null?void 0:(F=x.richListHeaderRenderer)==null?void 0:(N=F.navigationButton)==null?void 0:(f=N.buttonRenderer)==null?void 0:(K=f.command)==null?void 0:K.commandExecutorCommand;t&&t.commands&&(t.commands=t.commands.filter(function(d){return!_.r(d,_.O6g)}))}M.expandableVideoDescriptionBodyRenderer||
M.videoDescriptionHeaderRenderer||h.push(M)}return{items:h}}}},
constructWarning_:function(p){return{text:_.L1(p),type:"WARNING"}},
isPlaShelfEnabled_:function(p){if((this.get("adPlacements",p)||[]).length)return!0;p=this.get("playerAds",p)||[];return!(!p.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",p[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var p=this;_.hG(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var x=this.getScrollTop()>0;this.gestures_&&(x?this.gestures_.detach():this.gestures_.attach());x!==this.showFullerscreenEdu_&&_.S("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=x,_.LQ(this).getPlayerPromise().then(function(F){F.updateFullerscreenEduButtonVisibility(p.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.hG(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var p=this;this.commentsReady=!1;_.E0.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.vZ(_.E0,function(){p.setComments_()},1E3)},
setComments_:function(){if(!_.S("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.wH("cmi");_.E0.cancelJob(this.setCommentsJobId_);var p=this.getPageContents(this.data);if(p&&p.length){p=_.a(p);for(var x=p.next();!x.done;x=p.next())if(x=x.value,this.get("itemSectionRenderer.sectionIdentifier",x)==="comment-item-section"){this.comments=x.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.hG(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.S("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.S("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.wH("cmc")},
doRemoveComments_:function(){this.comments={};_.S("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.E0.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.E0.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(p,x){var F=_.r(x.endpoint,_.B7);F&&(!(x=this.get("data.currentVideoEndpoint.watchEndpoint"))||F.videoId!==x.videoId||F.playlistId&&F.playlistId!==x.playlistId||_.S("kevlar_watch_timestamp_seek_playlist_index_comparison")&&F.index!==void 0&&F.index!==x.index||typeof F.startTimeSeconds!=="number"||(p.stopPropagation(),this.setScrollTop(0),_.LQ(this).getPlayerPromise().then(function(N){var h=F.startTimeSeconds;N.seekTo(h);N.wakeUpControls();h<N.getDuration()&&N.playVideo()})))},
updatePlayerStartTime_:function(){var p=_.s8e();"t"in p&&(p=_.VBb(p.t),this.player.seekTo(p,!0))},
updateTitleFromWatchNext:function(p){p=this.getPageContents(p);var x,F;(p=_.Pi(p==null?void 0:(x=p[0])==null?void 0:(F=x.videoPrimaryInfoRenderer)==null?void 0:F.title))&&_.hG(this.hostElement,"yt-update-title",p)},
updateTitle_:function(p){p=this.get("videoDetails.title",p)||"";_.hG(this.hostElement,"yt-update-title",p)},
syncWithRemoteVideo_:function(p,x,F){if(this.active&&this.player){var N=this.player.getVideoData();if(N.video_id===F&&(F=N.list,_.S("polymer_enable_mdx_queue")&&F&&F.startsWith("RQ")&&(F=void 0),N.video_id!==p||F!=x)){var h;_.S("kevlar_player_watch_endpoint_navigation")?h=_.G$6(_.ylo(p,x)):h=this.buildWatchEndpoint_(p,x);_.hG(this.hostElement,"yt-navigate",{endpoint:h,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(p,x,F){return _.$v(p,x,F)},
initDclkstatus_:function(){_.uPe()},
attachWatchPageSkeleton_:function(){var p=document.querySelector("#watch-page-skeleton");if(p){var x=p.querySelector("#primary-info"),F=p.querySelector("#secondary-info"),N=p.querySelector("#related");x&&_.n(this.hostElement).querySelector("#info-skeleton").appendChild(x);F&&_.n(this.hostElement).querySelector("#meta-skeleton").appendChild(F);N&&(_.n(this.hostElement).querySelector("#related-skeleton").appendChild(N),this.watchNextSkeletonEl_=N);_.qc(p)}},
handlePlayerUpdated_:function(){_.LQ(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(p,x){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof x!=="undefined"){var F=this.watchNextSkeletonEl_.children,N=p&&p.indexSplices.length?p.indexSplices[0].index:0;p=Math.min(this.watchNextShownItems.length,F.length);x||(N=0,p=F.length);for(x=N;x<p;x++)F[x].classList.add("hidden")}},
onPlayerFullscreenChange_:function(p){_.S("external_fullscreen")||_.lA(this.hostElement,"yt-player-fullscreen",[p.fullscreen])},
onFullscreenChange_:function(p){this.fullscreen=p;this.gestures_&&this.gestures_.update(this.fullscreen);var x=_.LQ(this);x.getPlayerPromise().then(function(F){F.setFauxFullscreen(!!_.pc())});
this.updateFullBleedElementLocations();p&&(x.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(p,x){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!x},
computeIsDonationShelfCollapsed_:function(p){return p},
computeShouldShowMerchShelf:function(p,x){return x&&!!p},
computeResponseHasComments:function(p){var x,F,N,h,c;return!!(p==null?0:(x=p.contents)==null?0:(F=x.twoColumnWatchNextResults)==null?0:(N=F.results)==null?0:(h=N.results)==null?0:(c=h.contents)==null?0:c.some(function(M){var f;return(M==null?void 0:(f=M.itemSectionRenderer)==null?void 0:f.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(p,x,F,N){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&N?!1:!!p&&!!Object.keys(p).length&&!x},
identity:_.Wr,onWindowResized_:function(p){this.windowSize_=p;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.S("kevlar_watch_js_panel_height")&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_()));_.S("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(p){var x=this;p&&p.type!=="dataloaded"&&p.type!=="dataupdated"||_.LQ(this).getPlayerPromise().then(function(F){var N=F.getPlayerState();N!==5&&N!==0&&(F=1/F.getVideoAspectRatio(),x.videoHeightToWidthRatio_!==F&&(x.videoHeightToWidthRatio_=F))})},
schedulePlayerSizeUpdate_:function(p){var x=this,F=_.S("kevlar_watch_while_v2")||_.S("web_watch_pip"),N=function(){if(x.watchMetadata){var h,c;(c=(h=x.watchMetadata).resize)==null||c.call(h)}_.LQ(x).getPlayerPromise().then(function(M){if(_.S("kevlar_set_internal_player_size")){if(!F||!x.isMiniplayerActive()){var f=x.calculateCurrentPlayerSize_();M.setInternalSize(f.width,f.height)}}else M.setSize(NaN,NaN);_.S("kevlar_watch_while")&&x.updateWatchWhileScrollThreshold_()})};
p?N():_.rR(_.E0,N)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(p){this.set("data.survey",p.detail)},
onYtShowSurveyCommand_:function(p){this.set("data.survey",_.r(p,_.Lfg).survey)},
onDownloadedVideoDeleted:function(p){var x=this,F,N;return _.D(function(h){if(h.nextAddress==1){if(!x.active||(F=x.playerData)==null||!F.offlineState||x.videoId!==p)return h.return();(N=x.player)==null||N.stopVideo();_.fb().navigatingAwayFromWatchDeletedVideo=!0;_.FY(_.SDH,x.hostElement);return _.q(h,_.fb().navigationFinishPromise,2)}_.fb().navigatingAwayFromWatchDeletedVideo=!1;_.JB(h)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var p;this.theater?p=_.YV(.5625*this.windowSize_.width,480,this.windowSize_.height-185):p=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==p&&(this.watchWhileScrollThreshold_=p,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var p=_.n(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&p){var x=this.windowSize_.height>=624,F=this.active?this.getScrollTop():0;!p.active&&x&&F>=this.watchWhileScrollThreshold_?(p.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):p.active&&(!x||F<this.watchWhileScrollThreshold_&&!_.pc())&&(p.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var p=_.n(this.hostElement).querySelector("#secondary-inner");if(p){var x=_.n(this.hostElement).querySelector("#below"),F=_.n(this.hostElement).querySelector("#secondary"),N=_.n(this.hostElement).querySelector("#comments");N&&F&&x&&(this.defaultTwoColumnLayout?(p.appendChild(N),F.appendChild(p)):(x.appendChild(N),_.HY(x,p)))}}},
isTwoColumnsChanged_:function(p,x){if(p!==!0||x!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(p=_.n(this.hostElement).querySelector("#secondary-inner"))){x=_.n(this.hostElement).querySelector("#below");var F=_.n(this.hostElement).querySelector("#secondary"),N=_.n(this.hostElement).querySelector("#comments");N&&F&&x&&(this.isTwoColumns_?(p.appendChild(N),F.appendChild(p)):(x.appendChild(N),_.HY(x,p)))}}else{p=!_.S("live_chat_over_engagement_panels");x=_.n(this.hostElement).querySelector("#chat-container");
F=_.n(this.hostElement).querySelector("#plj-sidebar");N=_.n(this.hostElement).querySelector("#panels");var h=_.n(this.hostElement).querySelector("#plj-panels"),c=_.n(this.hostElement).querySelector("#plj-playlist"),M=_.n(this.hostElement).querySelector("#alerts"),f=_.n(this.hostElement).querySelector("#playlist"),K=_.n(this.hostElement).querySelector("#related"),t=_.n(this.hostElement).querySelector("#donation-shelf"),d=_.n(this.hostElement).querySelector("#comments");this.isTwoColumns_?(M=_.n(this.hostElement).querySelector("#secondary-inner"),
M.appendChild(F),F.appendChild(c),c.appendChild(f),F.appendChild(h),p&&M.appendChild(N),_.S("web_watch_theater_chat")||M.appendChild(x),p||M.appendChild(N),M.appendChild(t),M.appendChild(K)):(p&&_.Ga(N,M),_.Ga(f,M),_.S("web_watch_theater_chat")||_.Ga(x,M),p||_.Ga(N,M),_.Ga(t,M),d&&_.Ga(K,d));_.S("kevlar_watch_js_panel_height")&&this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.S("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.S("web_watch_theater_chat")){var p=_.n(this.hostElement).querySelector("#chat-container"),x=this.theater&&!this.fullscreen||_.S("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&x?_.S("web_watch_theater_chat_beside_player")?(x=_.n(this.hostElement).querySelector("#panels-full-bleed-container"),(p==null?void 0:p.parentElement)!==x&&x.append(p),this.panelsBesidePlayer=!0):
_.S("web_watch_theater_fixed_chat")&&(x=_.n(this.hostElement).querySelector("#columns"),(p==null?void 0:p.parentElement)!==x&&x.append(p),this.fixedPanels=!0):(_.S("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.S("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),x=_.n(this.hostElement).querySelector("#playlist"),p&&x?_.VO(p,x):_.no(new _.qE("Missing element when updating chat location",{"chatContainer defined":!!p,"playlist defined":!!x})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(p,x){return _.S("sw_metadata_vis_toggle_ks")?!0:!!p||!!x},
computeForceDarkPanelTheme:function(p){return _.S("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&p:!1},
safeUpdateStyles:function(p){try{_.eV(this.hostElement,p)}catch(x){_.no(x)}},
videoHeightToWidthRatioChanged_:function(p,x){x&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.S("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(p){this.videoHeightToWidthRatio_=1/p},
computeIsVerticalVideo_:function(p){return p>=1},
computeIsFourThreeToSixteenNineVideo_:function(p){return p<=.7501&&p>=.5624},
computeIsExtraWideVideo_:function(p){return p<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.LQ(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.LQ(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.$nl(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(p){var x=_.Mq(p)||0;_.a3(p,x+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var p=_.Mq("yt-fullerscreen-edu-button-click-count")||0,x=_.Mq("yt-fullerscreen-edu-button-shown-count")||0,F=_.Ud("external_fullscreen_button_shown_threshold"),N=p>=_.Ud("external_fullscreen_button_click_threshold")||x>=F;_.LQ(this).getPlayerPromise().then(function(h){h.updateFullerscreenEduButtonSubtleModeState(N)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(p,x){return x},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.J().resolve(_.Yx).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var p=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.E0.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.E0.addLowPriorityJob(function(){p.fullHeightPanelPositionUpdateJobId=0;var x=_.n(p.hostElement).querySelector("#secondary"),F=_.n(p.hostElement).querySelector("#fixed-secondary");x=x.getBoundingClientRect();var N=x.width;p.swatcherooSqueezeback&&
(N+=_.ml);if(p.swatcherooSqueezeback){var h=_.n(p.hostElement).querySelector("#squeezeback-constraining-container");h.style.width=N+"px";h.style.flex="0 0 "+N+"px"}F.style.width=N+"px";F.style.left=x.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var p=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.E0.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.E0.addLowPriorityJob(function(){p.panelMaxHeightUpdateJob_=0;var x;!p.isTwoColumns_||p.theater||p.fullscreen?x=460:x=p.calculateNormalPlayerSize_().height;var F=x+"px";_.S("live_chat_taller_height")&&!p.theater&&(F="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.S("live_chat_medium_height")&&!p.theater&&(F="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.S("live_chat_scaled_height")&&!p.theater&&(F="calc(100vh - var(--ytd-toolbar-height) - 238px)");p.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":x+"px","--ytd-watch-flexy-chat-max-height":F,"--ytd-watch-flexy-structured-description-max-height":x+"px","--ytd-watch-flexy-comments-panel-max-height":x+"px","--ytd-comments-engagement-panel-content-height":x+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var p=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.S("web_watch_flexy_adjust_sidebar_width"))&&!_.S("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.E0.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.E0.addLowPriorityJob(function(){p.panelMaxHeightUpdateJob_=0;if(p.isTwoColumns_){var x=_.wQe(p.windowSize_,p.calculateNormalPlayerSize_().width);x!==p.currentSidebarWidth&&(p.currentSidebarWidth=
x,p.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":x+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(p){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",p)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Kc(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(p){var x=_.n(this.hostElement).querySelector("#engagement-panel-scrim");p?x.addEventListener("tap",_.p5(this,this.onEngagementPanelScrimClick_)):x.removeEventListener("tap",_.p5(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(p){if(this.hostElement.contains(p)&&!this.scrollToAnimation_.isAnimating()){var x=p.offsetTop-24;p=p.offsetTop+p.offsetHeight+24;var F=this.getPageScrollingElement(),N=this.getScrollTop(),h=N+F.clientHeight-56;if(x<N+56)x-=56;else if(p>h)x=p-F.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,x),500)}},
onYtSignalActionScrollToComments:function(){var p=this.hostElement.querySelector("#comments");if(p&&!this.scrollToAnimation_.isAnimating()){p=p.offsetTop-56-24;if(_.S("kevlar_comment_teaser_scroll_to_midpoint")&&(p-=_.t_().height/3,p<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,p),500)}},
onYtEngagementPanelVisibleChanged:function(p,x,F){this.active&&this.trackEngagementPanelVisibility&&!_.CKP.includes(F)&&(x==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(F),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.Mt(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),x!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&x!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(F),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(p){return p?"":"watch-active-metadata"},
computeNewMetadataClass:function(p){return p?"watch-active-metadata":""},
computeFullBleedPlayer:function(p,x){return p||x},
computeDefaultLayout:function(p){return!p},
computeDefaultTwoColumnLayout:function(p,x){return!p&&x},
swatcherooUpdatePanelsLocation:function(p,x,F,N,h,c){if(this.is==="ytd-watch-grid"){x=p&&!x;this.swatcherooSplitScroll&&(x?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));F=_.n(this.hostElement).querySelector("#panels");var M=_.n(this.hostElement).querySelector("#playlist"),f=_.n(this.hostElement).querySelector("#fixed-secondary"),K=_.n(this.hostElement).querySelector("#fixed-below"),
t=_.n(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),d=_.n(this.hostElement).querySelector("#chat-container");c&&(p?f.appendChild(F):K.appendChild(F));h?p?f.appendChild(d):K.appendChild(d):_.VO(d,t);N?p?f.appendChild(M):K.appendChild(M):_.VO(M,t);this.swatcherooSplitScroll&&(p=_.n(this.hostElement).querySelector("#secondary"),N=_.n(this.hostElement).querySelector("#columns"),h=_.n(this.hostElement).querySelector("#fixed-columns-secondary"),x?h.appendChild(p):
N.appendChild(p))}},
computeMetadataSkinnyMode:function(p,x,F){return this.is!=="ytd-watch-grid"?!1:p?F:x},
computeWatchWhilePanelsActive:function(p,x){return p||x},
computeNoBorderOnChat:function(p){return _.S("web_watch_theater_chat_no_border")&&p},
computeLiveChatPresentAndExpanded:function(p,x){return p&&!x},
computePanelExpanded:function(p,x,F){return p||x||F},
computeSwatcherooSqueezeback:function(p,x,F){return this.is!=="ytd-watch-grid"||_.S("ww_squeezeback_killswitch")?!1:p&&x&&F},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(p){_.LQ(this).getPlayerPromise().then(function(x){var F;(F=x.changeMarkerVisibility)==null||F.call(x,_.r(p,_.Lk).isVisible||!1,_.r(p,_.Lk).entityKeys||[],_.r(p,_.Lk).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(p){this.liveChatCollapsed=p.detail;_.Bi().dispatch(_.ONP(p.detail))},
onSetPlaylistCollapsed:function(p){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!p)},
provideRenderingData:function(p,x){switch(p){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=x;break;case "PRIMARY_INFO":_.S("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=x);this.videoPrimaryInfoRendererValue=x==null?void 0:x.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.S("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=x);this.videoSecondaryInfoRendererValue=x==null?void 0:x.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
x;break;case "CLARIFICATION":this.clarifyBoxValue=x;break;case "LIVE_CHAT":this.conversationBar=x;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=x;break;case "PLAYLIST":this.externalPlaylistData_=x!=null?x:{};break;case "MERCH_SHELF":this.merchShelfValue=x==null?void 0:x.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=x;break;case "OFFER_MODULE":this.offerModule=x;break;case "LIMITED_STATE":this.limitedStateValue=x;break;case "DONATION_SHELF":this.donation=x;break;
case "ALERTS":this.alertsValue=x;break;case "COMMENTS":this.comments=x;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=x;break;case "ENGAGEMENT_PANELS":this.engagementPanels=x;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=x;break;case "RICH_GRID_RENDERER":this.richGridRendererData=x;break;case "EXPANDABLE_METADATA":this.expandableMetadata=x;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=x}},
toggleCinematicsActive:function(p){this.cinematicsActive=p},
isMiniplayerActive:function(){return _.J().resolve(_.H$).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(p){return p.filter(function(x){var F;return r86.includes((x==null?void 0:(F=x.engagementPanelSectionListRenderer)==null?void 0:F.targetId)||"")})},
getNonLearningJourneyEngagementPanels:function(p){return p.filter(function(x){var F;return!r86.includes((x==null?void 0:(F=x.engagementPanelSectionListRenderer)==null?void 0:F.targetId)||"")})},
getHasLearningJourneyPanels:function(p){return p.length>0}}];var EQ5;var X7A=function(){var p=_.m.apply(this,arguments)||this;p.flexy=!0;p.learningJourney=!0;p.roundedInfoPanel=!0;p.viewTransitionEnabled=_.S("enable_player_resize_transition");p.smallerChatMinHeight=_.S("live_chat_smaller_min_height");p.cinematicTheaterMode=_.S("web_cinematic_theater_mode");p.transparentTheaterMode=_.S("web_transparent_theater_mode");p.cinematicFullscreen=_.S("web_cinematic_fullscreen");p.useLargerMaxPlayerValue=_.S("kevlar_flexy_use_larger_player_value");p.cinematicFullscreenV2=_.S("web_cinematic_fullscreen_v2");
p.isDarkTheme=document.documentElement.hasAttribute("dark");p.theaterLargerPlayer=_.S("web_watch_theater_larger_player");p.defaultCollapsePlaylist=_.S("web_watch_default_collapse_playlist");return p};
_.E(X7A,_.m);_.l=X7A.prototype;_.l.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.l.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.l.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.l.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.l.ready=function(){var p=this,x=function(){p.onColumnScroll()};
this.primary.addEventListener("scroll",x);this.secondary.addEventListener("scroll",x)};
_.l.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.l.updateIsTwoColumnsFromBinding=function(p){_.S("web_watch_update_narrow_width_killswitch")||_.Bi().dispatch(_.Gl6(!p.detail.value));this.ytdWatchBehavior.isTwoColumns_=p.detail.value};
_.l.updateFlexySmallWindowFromBinding=function(p){this.ytdWatchBehavior.flexySmallWindow_=p.detail.value};
_.l.updateFlexyLargeWindowFromBinding=function(p){this.ytdWatchBehavior.flexyLargeWindow_=p.detail.value};
_.l.updateWatchWhileWindowSizeSufficientFromBinding=function(p){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=p.detail.value};
_.l.updateWatchNextCanShowMoreFromBinding=function(p){this.ytdWatchBehavior.watchNextCanShowMore=p.detail.value};
_.l.updateShownItemsFromBinding=function(p){p.detail.path?this.set(p.detail.path,p.detail.value):this.ytdWatchBehavior.watchNextShownItems=p.detail.value};
_.l.getElement=function(p){switch(p){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20291_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20291_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.R8.Object.defineProperties(X7A.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.pageVisualEffects)return!1;for(var x=0;x<this.data.pageVisualEffects.length;x++)if(p=_.r(this.data.pageVisualEffects[x],_.u5))return x=void 0,(x=p.config)==null?void 0:x.enableInLightTheme;return!1}}});
_.R8.Object.defineProperties(X7A,{template:{configurable:!0,enumerable:!0,get:function(){if(EQ5===void 0){var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);EQ5=p}p=EQ5;return p}}});
var eb=X7A;eb.prototype.updateMiniplayerIsActiveValue=eb.prototype.updateMiniplayerIsActiveValue;eb.prototype.updateScrollTopValue=eb.prototype.updateScrollTopValue;eb.prototype.updateFullscreenValue=eb.prototype.updateFullscreenValue;eb.prototype.updateTheaterValue=eb.prototype.updateTheaterValue;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],eb.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],eb.prototype,"ytComponentBehavior",void 0);
_.B([_.u(Sfb.YtdLearningJourneyWatchBehavior),_.k("design:type",Object)],eb.prototype,"ytdWatchBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],eb.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],eb.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],eb.prototype,"playerData",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],eb.prototype,"flexy",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],eb.prototype,"learningJourney",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],eb.prototype,"roundedInfoPanel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],eb.prototype,"viewTransitionEnabled",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],eb.prototype,"smallerChatMinHeight",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],eb.prototype,"cinematicTheaterMode",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],eb.prototype,"transparentTheaterMode",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],eb.prototype,"cinematicFullscreen",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],eb.prototype,"useLargerMaxPlayerValue",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],eb.prototype,"cinematicFullscreenV2",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],eb.prototype,"isDarkTheme",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],eb.prototype,"theaterLargerPlayer",void 0);_.B([_.H(),_.k("design:type",Object)],eb.prototype,"defaultCollapsePlaylist",void 0);_.B([_.H({selector:_.gQ}),_.k("design:type",Object)],eb.prototype,"theaterValue",void 0);
_.B([_.H({selector:_.w9}),_.k("design:type",Object)],eb.prototype,"fullscreenValue",void 0);_.B([_.H({selector:_.G_}),_.k("design:type",Object)],eb.prototype,"scrollTopValue",void 0);_.B([_.H({selector:_.bP}),_.k("design:type",Object)],eb.prototype,"miniplayerIsActiveValue",void 0);_.B([_.$W("ytd-player"),_.k("design:type",HTMLElement)],eb.prototype,"ytdPlayer",void 0);_.B([_.Ff("#playlist"),_.k("design:type",HTMLElement)],eb.prototype,"JSC$20291_ytdPlaylistPanelRenderer",void 0);
_.B([_.$W("ytd-comments"),_.k("design:type",HTMLElement)],eb.prototype,"ytdComments",void 0);_.B([_.Ff("#primary"),_.k("design:type",HTMLElement)],eb.prototype,"primary",void 0);_.B([_.Ff("#secondary"),_.k("design:type",HTMLElement)],eb.prototype,"secondary",void 0);_.B([_.Ff("#player-container"),_.k("design:type",HTMLElement)],eb.prototype,"playerContainer",void 0);_.B([_.Ff("#cinematics"),_.k("design:type",HTMLElement)],eb.prototype,"JSC$20291_cinematics",void 0);
_.B([_.W("theaterValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eb.prototype,"updateTheaterValue",null);_.B([_.W("fullscreenValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eb.prototype,"updateFullscreenValue",null);_.B([_.W("scrollTopValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eb.prototype,"updateScrollTopValue",null);
_.B([_.W("miniplayerIsActiveValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eb.prototype,"updateMiniplayerIsActiveValue",null);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],eb.prototype,"cinematicLightTheme",null);eb=_.B([_.L({is:"ytd-watch-learning-journey"})],eb);_.Qx.registerService(_.lo6,eb);
_.z4();
}catch(e){_._DumpException(e)}
try{
_.QH("Tm0L3c");
var Dzn;var fI6;var KwU=function(){return _.m.apply(this,arguments)||this};
_.E(KwU,_.m);var qfA=KwU;qfA=_.B([_.L({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],qfA);
_.P(qfA,"ytd-ghost-comments-renderer",function(){if(fI6===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);fI6=p}p=fI6;return p},{mode:1});var Zse;var tq6=function(){return _.m.apply(this,arguments)||this};
_.E(tq6,_.m);var dzo=tq6;dzo=_.B([_.L({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],dzo);
_.P(dzo,"ytd-ghost-watch-metadata-renderer",function(){if(Zse===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);Zse=p}p=Zse;return p},{mode:1});var $D=function(){var p=_.m.apply(this,arguments)||this;p.ghostGridRenderer={rows:6};p.roundedInfoPanel=!0;p.hideOfferModules=!0;p.smallerChatMinHeight=_.S("live_chat_smaller_min_height");p.cinematicTheaterMode=_.S("web_cinematic_theater_mode");p.transparentTheaterMode=_.S("web_transparent_theater_mode");p.darkerPanels=_.S("web_watch_darker_panels");p.cinematicFullscreen=_.S("web_cinematic_fullscreen");p.cinematicFullscreenV2=_.S("web_cinematic_fullscreen_v2");p.isDarkTheme=document.documentElement.hasAttribute("dark");
return p};
_.E($D,_.m);_.l=$D.prototype;_.l.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.l.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.l.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.l.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.l.ready=function(){var p=this,x=function(){p.onColumnScroll()};
this.primary.addEventListener("scroll",x);this.secondary.addEventListener("scroll",x)};
_.l.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.l.updateIsTwoColumnsFromBinding=function(p){this.ytdWatchBehavior.isTwoColumns_=p.detail.value};
_.l.updateFlexySmallWindowFromBinding=function(p){this.ytdWatchBehavior.flexySmallWindow_=p.detail.value};
_.l.updateFlexyLargeWindowFromBinding=function(p){this.ytdWatchBehavior.flexyLargeWindow_=p.detail.value};
_.l.updateWatchWhileWindowSizeSufficientFromBinding=function(p){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=p.detail.value};
_.l.updateWatchNextCanShowMoreFromBinding=function(p){this.ytdWatchBehavior.watchNextCanShowMore=p.detail.value};
_.l.updateShownItemsFromBinding=function(p){_.S("swatcheroo_direct_use_rich_grid")||(p.detail.path?this.set(p.detail.path,p.detail.value):this.ytdWatchBehavior.watchNextShownItems=p.detail.value)};
_.l.getElement=function(p){switch(p){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20282_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20282_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.R8.Object.defineProperties($D.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.pageVisualEffects)return!1;for(var x=0;x<this.data.pageVisualEffects.length;x++)if(p=_.r(this.data.pageVisualEffects[x],_.u5))return x=void 0,(x=p.config)==null?void 0:x.enableInLightTheme;return!1}}});
$D.prototype.updateMiniplayerIsActiveValue=$D.prototype.updateMiniplayerIsActiveValue;$D.prototype.updateScrollTopValue=$D.prototype.updateScrollTopValue;$D.prototype.updateFullscreenValue=$D.prototype.updateFullscreenValue;$D.prototype.updateTheaterValue=$D.prototype.updateTheaterValue;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],$D.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],$D.prototype,"ytComponentBehavior",void 0);
_.B([_.u(_.c8A.YtdWatchBehavior),_.k("design:type",Object)],$D.prototype,"ytdWatchBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],$D.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],$D.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],$D.prototype,"ghostGridRenderer",void 0);_.B([_.H(),_.k("design:type",Object)],$D.prototype,"playerData",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$D.prototype,"roundedInfoPanel",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$D.prototype,"hideOfferModules",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$D.prototype,"smallerChatMinHeight",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$D.prototype,"cinematicTheaterMode",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$D.prototype,"transparentTheaterMode",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$D.prototype,"darkerPanels",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$D.prototype,"cinematicFullscreen",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$D.prototype,"cinematicFullscreenV2",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$D.prototype,"isDarkTheme",void 0);_.B([_.H({selector:_.gQ}),_.k("design:type",Object)],$D.prototype,"theaterValue",void 0);
_.B([_.H({selector:_.w9}),_.k("design:type",Object)],$D.prototype,"fullscreenValue",void 0);_.B([_.H({selector:_.G_}),_.k("design:type",Object)],$D.prototype,"scrollTopValue",void 0);_.B([_.H({selector:_.bP}),_.k("design:type",Object)],$D.prototype,"miniplayerIsActiveValue",void 0);_.B([_.Ff("#ytd-player"),_.k("design:type",HTMLElement)],$D.prototype,"ytdPlayer",void 0);_.B([_.Ff("#playlist"),_.k("design:type",HTMLElement)],$D.prototype,"JSC$20282_ytdPlaylistPanelRenderer",void 0);
_.B([_.Ff("#ytd-comments"),_.k("design:type",HTMLElement)],$D.prototype,"ytdComments",void 0);_.B([_.Ff("#primary"),_.k("design:type",HTMLElement)],$D.prototype,"primary",void 0);_.B([_.Ff("#secondary"),_.k("design:type",HTMLElement)],$D.prototype,"secondary",void 0);_.B([_.Ff("#player-container"),_.k("design:type",HTMLElement)],$D.prototype,"playerContainer",void 0);_.B([_.Ff("#cinematics"),_.k("design:type",HTMLElement)],$D.prototype,"JSC$20282_cinematics",void 0);
_.B([_.W("theaterValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$D.prototype,"updateTheaterValue",null);_.B([_.W("fullscreenValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$D.prototype,"updateFullscreenValue",null);_.B([_.W("scrollTopValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$D.prototype,"updateScrollTopValue",null);
_.B([_.W("miniplayerIsActiveValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$D.prototype,"updateMiniplayerIsActiveValue",null);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],$D.prototype,"cinematicLightTheme",null);
_.P($D,"ytd-watch-grid",function(){if(Dzn===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);Dzn=p}p=Dzn;return p},{mode:2});_.Qx.registerService(_.h7$,$D);
_.z4();
}catch(e){_._DumpException(e)}
try{
_.QH("CF909");
var aIz;var Mq5=function(){var p=_.m.apply(this,arguments)||this;p.flexy=!0;p.roundedInfoPanel=!0;p.viewTransitionEnabled=_.S("enable_player_resize_transition");p.smallerChatMinHeight=_.S("live_chat_smaller_min_height");p.cinematicTheaterMode=_.S("web_cinematic_theater_mode");p.transparentTheaterMode=_.S("web_transparent_theater_mode");p.cinematicFullscreen=_.S("web_cinematic_fullscreen");p.useLargerMaxPlayerValue=_.S("kevlar_flexy_use_larger_player_value");p.cinematicFullscreenV2=_.S("web_cinematic_fullscreen_v2");
p.isDarkTheme=document.documentElement.hasAttribute("dark");p.theaterLargerPlayer=_.S("web_watch_theater_larger_player");p.defaultCollapsePlaylist=_.S("web_watch_default_collapse_playlist");p.retroModeReduxValue=!1;return p};
_.E(Mq5,_.m);_.l=Mq5.prototype;_.l.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.l.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.l.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.l.updateRetroModeReduxValue=function(){_.S("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.l.ready=function(){var p=this,x=function(){p.onColumnScroll()};
this.primary.addEventListener("scroll",x);this.secondary.addEventListener("scroll",x)};
_.l.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.l.updateIsTwoColumnsFromBinding=function(p){_.S("web_watch_update_narrow_width_killswitch")||_.Bi().dispatch(_.Gl6(!p.detail.value));this.ytdWatchBehavior.isTwoColumns_=p.detail.value};
_.l.updateFlexySmallWindowFromBinding=function(p){this.ytdWatchBehavior.flexySmallWindow_=p.detail.value};
_.l.updateFlexyLargeWindowFromBinding=function(p){this.ytdWatchBehavior.flexyLargeWindow_=p.detail.value};
_.l.updateWatchWhileWindowSizeSufficientFromBinding=function(p){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=p.detail.value};
_.l.updateWatchNextCanShowMoreFromBinding=function(p){this.ytdWatchBehavior.watchNextCanShowMore=p.detail.value};
_.l.updateShownItemsFromBinding=function(p){p.detail.path?this.set(p.detail.path,p.detail.value):this.ytdWatchBehavior.watchNextShownItems=p.detail.value};
_.l.getElement=function(p){switch(p){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20277_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20277_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.R8.Object.defineProperties(Mq5.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.pageVisualEffects)return!1;for(var x=0;x<this.data.pageVisualEffects.length;x++)if(p=_.r(this.data.pageVisualEffects[x],_.u5))return x=void 0,(x=p.config)==null?void 0:x.enableInLightTheme;return!1}}});
_.R8.Object.defineProperties(Mq5,{template:{configurable:!0,enumerable:!0,get:function(){if(aIz===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);aIz=p}p=aIz;return p}}});
var IQ=Mq5;IQ.prototype.updateRetroModeReduxValue=IQ.prototype.updateRetroModeReduxValue;IQ.prototype.updateScrollTopValue=IQ.prototype.updateScrollTopValue;IQ.prototype.updateFullscreenValue=IQ.prototype.updateFullscreenValue;IQ.prototype.updateTheaterValue=IQ.prototype.updateTheaterValue;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],IQ.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],IQ.prototype,"ytComponentBehavior",void 0);
_.B([_.u(_.c8A.YtdWatchBehavior),_.k("design:type",Object)],IQ.prototype,"ytdWatchBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],IQ.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],IQ.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],IQ.prototype,"playerData",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],IQ.prototype,"flexy",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],IQ.prototype,"roundedInfoPanel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],IQ.prototype,"viewTransitionEnabled",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],IQ.prototype,"smallerChatMinHeight",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],IQ.prototype,"cinematicTheaterMode",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],IQ.prototype,"transparentTheaterMode",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],IQ.prototype,"cinematicFullscreen",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],IQ.prototype,"useLargerMaxPlayerValue",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],IQ.prototype,"cinematicFullscreenV2",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],IQ.prototype,"isDarkTheme",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],IQ.prototype,"theaterLargerPlayer",void 0);_.B([_.H(),_.k("design:type",Object)],IQ.prototype,"defaultCollapsePlaylist",void 0);_.B([_.H({selector:_.gQ}),_.k("design:type",Object)],IQ.prototype,"theaterValue",void 0);_.B([_.H({selector:_.w9}),_.k("design:type",Object)],IQ.prototype,"fullscreenValue",void 0);
_.B([_.H({selector:_.G_}),_.k("design:type",Object)],IQ.prototype,"scrollTopValue",void 0);_.B([_.H({selector:_.bP}),_.k("design:type",Object)],IQ.prototype,"miniplayerIsActive",void 0);_.B([_.H({selector:function(p){return p.watch.isWatchRetroMode}}),
_.k("design:type",Object)],IQ.prototype,"retroModeReduxValue",void 0);_.B([_.$W("ytd-player"),_.k("design:type",HTMLElement)],IQ.prototype,"ytdPlayer",void 0);_.B([_.Ff("#playlist"),_.k("design:type",HTMLElement)],IQ.prototype,"JSC$20277_ytdPlaylistPanelRenderer",void 0);_.B([_.$W("ytd-comments"),_.k("design:type",HTMLElement)],IQ.prototype,"ytdComments",void 0);_.B([_.Ff("#primary"),_.k("design:type",HTMLElement)],IQ.prototype,"primary",void 0);
_.B([_.Ff("#secondary"),_.k("design:type",HTMLElement)],IQ.prototype,"secondary",void 0);_.B([_.Ff("#player-container"),_.k("design:type",HTMLElement)],IQ.prototype,"playerContainer",void 0);_.B([_.Ff("#cinematics"),_.k("design:type",HTMLElement)],IQ.prototype,"JSC$20277_cinematics",void 0);_.B([_.W("theaterValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IQ.prototype,"updateTheaterValue",null);
_.B([_.W("fullscreenValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IQ.prototype,"updateFullscreenValue",null);_.B([_.W("scrollTopValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IQ.prototype,"updateScrollTopValue",null);_.B([_.W("retroModeReduxValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IQ.prototype,"updateRetroModeReduxValue",null);
_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],IQ.prototype,"cinematicLightTheme",null);IQ=_.B([_.L({is:"ytd-watch-flexy"})],IQ);_.Qx.registerService(_.N9J,IQ);
_.z4();
}catch(e){_._DumpException(e)}
try{
_.QH("nmfa2d");
var zTb;var jb=function(){var p=_.m.apply(this,arguments)||this;p.hidden=!1;p.errorScreen=null;p.playlistData={};return p};
_.E(jb,_.m);_.l=jb.prototype;_.l.getPlayer=function(){return this.ytdPlayer};
_.l.configureRendererStamper=function(){return{singleColumnContents:{id:"single-column",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},clarificationData:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",
attributes:{"class":"watch"}}}},donationShelf:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[hasChat]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},richMetadataRowContainer:{id:"rich-metadata",mapping:{metadataRowContainerRenderer:{component:"ytd-metadata-row-container-renderer",params:{fixie:!0}}}},
ticketShelf:{id:"ticket-shelf",mapping:{ticketShelfRenderer:"ytd-ticket-shelf-renderer"}},"playerData.playerAds":{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.bw(["aa","eocs"])}}};
_.l.onActiveChanged=function(){_.Bi().dispatch(_.wze(this.ytPageBehavior.active))};
_.l.playerDataChanged=function(){var p;(p=this.watchController)==null||_.mS(p,this.playerData)};
_.l.dataChanged=function(){var p;(p=this.watchController)==null||_.oQ(p,this.data)};
_.l.sizeChanged=function(){var p,x;(x=(p=this.metadata).resize)==null||x.call(p)};
_.l.attached=function(){this.watchController=new _.HM(this);this.playerData&&_.mS(this.watchController,this.playerData);this.data&&_.oQ(this.watchController,this.data)};
_.l.detached=function(){_.RR(this.watchController);this.watchController=void 0};
_.l.getPlayerContainer=function(){return this.playerContainer};
_.l.getElement=function(p){switch(p){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20229_playlistPanel}};
_.l.provideRenderingData=function(p,x){switch(p){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=x;break;case "ERROR_SCREEN":this.errorScreen=x!=null?x:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=x;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=x;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=x;break;case "RICH_METADATA":this.richMetadataRowContainer=x;break;case "CLARIFICATION":this.clarificationData=x;break;case "PLAYLIST":this.playlistData=
x!=null?x:{};break;case "MERCH_SHELF":this.merchShelf=x;break;case "TICKET_SHELF":this.ticketShelf=x;break;case "LIMITED_STATE":this.limitedState=x;break;case "DONATION_SHELF":this.donationShelf=x;break;case "ALERTS":this.alerts=x}};
_.R8.Object.defineProperties(jb.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return!this.hidden&&!!((p=this.data)==null?0:(x=p.contents)==null?0:(F=x.twoColumnWatchNextResults)==null?0:F.conversationBar)}}});
jb.prototype.sizeChanged=jb.prototype.sizeChanged;jb.prototype.dataChanged=jb.prototype.dataChanged;jb.prototype.playerDataChanged=jb.prototype.playerDataChanged;jb.prototype.onActiveChanged=jb.prototype.onActiveChanged;_.B([_.u(_.Gr.YtPageBehavior),_.k("design:type",Object)],jb.prototype,"ytPageBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],jb.prototype,"ytComponentBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],jb.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],jb.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],jb.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],jb.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],jb.prototype,"playerData",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],jb.prototype,"hidden",void 0);_.B([_.Ff("#ytd-player"),_.k("design:type",HTMLElement)],jb.prototype,"ytdPlayer",void 0);_.B([_.Ff("#player-container"),_.k("design:type",HTMLElement)],jb.prototype,"playerContainer",void 0);_.B([_.Ff("#metadata"),_.k("design:type",Object)],jb.prototype,"metadata",void 0);_.B([_.Ff("#playlist"),_.k("design:type",HTMLElement)],jb.prototype,"JSC$20229_playlistPanel",void 0);
_.B([_.H({selector:_.GXP,reflectToAttribute:!0}),_.k("design:type",Object)],jb.prototype,"fixie",void 0);_.B([_.H({selector:_.wHM,reflectToAttribute:!0}),_.k("design:type",Object)],jb.prototype,"singleColumn",void 0);_.B([_.H({selector:function(p){return _.gQ(p)&&!_.w9(p)},
reflectToAttribute:!0}),_.k("design:type",Object)],jb.prototype,"theater",void 0);_.B([_.H({selector:_.w9,reflectToAttribute:!0}),_.k("design:type",Object)],jb.prototype,"fullscreen",void 0);_.B([_.H({selector:_.YkA}),_.k("design:type",Object)],jb.prototype,"windowSize",void 0);_.B([_.H(),_.k("design:type",Object)],jb.prototype,"singleColumnContents",void 0);_.B([_.H(),_.k("design:type",Object)],jb.prototype,"errorScreen",void 0);_.B([_.H(),_.k("design:type",Object)],jb.prototype,"playlistData",void 0);
_.B([_.H(),_.k("design:type",Object)],jb.prototype,"videoPrimaryInfoRenderer",void 0);_.B([_.H(),_.k("design:type",Object)],jb.prototype,"videoSecondaryInfoRenderer",void 0);_.B([_.H(),_.k("design:type",Object)],jb.prototype,"richMetadataRowContainer",void 0);_.B([_.H(),_.k("design:type",Object)],jb.prototype,"clarificationData",void 0);_.B([_.H(),_.k("design:type",Object)],jb.prototype,"commentsEntryPointHeaderRenderer",void 0);_.B([_.H(),_.k("design:type",Object)],jb.prototype,"ticketShelf",void 0);
_.B([_.H(),_.k("design:type",Object)],jb.prototype,"merchShelf",void 0);_.B([_.H(),_.k("design:type",Object)],jb.prototype,"donationShelf",void 0);_.B([_.H(),_.k("design:type",Object)],jb.prototype,"limitedState",void 0);_.B([_.H(),_.k("design:type",Object)],jb.prototype,"alerts",void 0);_.B([_.w("playlistData"),_.k("design:type",Object),_.k("design:paramtypes",[])],jb.prototype,"hasPlaylistData",null);
_.B([_.w("data","hidden"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],jb.prototype,"hasChat",null);_.B([_.W("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jb.prototype,"onActiveChanged",null);_.B([_.W("playerData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jb.prototype,"playerDataChanged",null);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jb.prototype,"dataChanged",null);_.B([_.W("windowSize","singleColumn"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jb.prototype,"sizeChanged",null);
_.P(jb,"ytd-watch-fixie",function(){if(zTb===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);zTb=p}p=zTb;return p},{mode:1});_.Qx.registerService(_.Fld,jb);
_.z4();
}catch(e){_._DumpException(e)}
try{
_.QH("xwEKAe");
var dIg=function(p){var x=_.rH();if(x.getFlag(202))x=x.getFlag(201);else{var F;x=(p==null?void 0:(F=p.config)==null?void 0:F.settingOnByDefault)!==void 0?p.config.settingOnByDefault:!_.S("web_shorts_cinematics_disabled_by_default")}return x},vBE=function(p){var x=_.rH();
_.Ez(0,201,p);_.Ez(0,202,!0);x.save()},JCK=function(p){return(p=_.NUp(p))?_.ljw(p):0},CBA=function(p){return p.shorts.isSmallScreenSqueezeback},Svz=function(p){return p.shorts.isPlaybackStarted},XbK=function(p,x,F){for(var N=[],h=0,c=-1;h<p.length;h++)h%3===0&&(c++,N[c]=[]),N[c].push(p[h]);
p=new tP(N);N=new tP([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);N=p.multiply(N);p=new tP([[0,0],[0,0],[0,0],[0,0]]);for(h=0;h<N.getSize().width;h++){c=d9(N,0,h);var M=d9(N,1,h);if(c===null||M===null)throw Error("cm`"+(h+1).toString());rCA(p,h,0,c*x);rCA(p,h,1,M*F)}x=d9(p,0,0);h=d9(p,1,0);F=d9(p,0,1);c=d9(p,1,1);if(x===null||h===null||F===null||c===null)throw Error("am");N=EBM(x,h,F,c);M=d9(p,3,0);p=d9(p,3,1);if(M===null||p===null)throw Error("bm");p=EBM(x,M,F,p);c=(Number((c*-1).toFixed(2))-Number((F*-1).toFixed(2)))/
(Number(h.toFixed(2))-Number(x.toFixed(2)));M=Math.atan(c)*180/Math.PI;h=c===Number.POSITIVE_INFINITY?-90:c===Number.NEGATIVE_INFINITY?90:Object.is(c,-0)?180:c===0?0:c>0?M*-1:x<h?M*-1:Math.abs(M)+180;return{top:F,left:x,width:N,height:p,rotation:h}},EBM=function(p,x,F,N){p=x-p;
F=N-F;return Math.sqrt(p*p+F*F)},gBe=function(p,x){p&&_.J().resolve(_.RD).resolveCommand(p,{forceClickLogging:!0,
form:{element:x}})},z6U=function(p){var x=p.data;
var F=p.parentContainerWidth;var N=p.parentContainerHeight;var h=_.oc(),c;return _.Z("yt-player-overlay-video-interactions",{el:h,class:"yt-player-overlay-video-interactions__video-interactions-wrapper"},x==null?void 0:(c=x.regions)==null?void 0:c.map(function(M){return Qkl(h,x,M,F,N)}))},Qkl=function(p,x,F,N,h){function c(){var C,X,Q,b,A=(X=_.r((C=f)==null?void 0:C.command,_.psl))==null?void 0:(Q=X.item)==null?void 0:(b=Q.notificationTextRenderer)==null?void 0:b.successResponseText;
if(A)_.lA(p.value,"yt-open-popup-action",[_.kO(A),p.value]);else if(K)gBe(K,M.value);else{var Y;gBe((Y=f)==null?void 0:Y.command,M.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var M=_.oc();if(F==null||!F.transformationMatrix)throw Error("dm");x.trackingParams&&_.cl().graftServerVe(x.trackingParams);F=XbK(F==null?void 0:F.transformationMatrix,N,h);F="left:"+F.left+"px; top:"+(F.top+"px; width:")+(F.width+"px; height:")+(F.height+"px; transform:rotate(")+(F.rotation+"deg);");var f=_.r(x==null?void 0:x.popUp,skU),K=x==null?void 0:x.command,t=_.r(K,_.qN)!==void 0;x=x==null?void 0:x.a11yString;N=_.h0(function(){t&&M.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hover");
M.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hide-outline");return!1});
h=_.h0(function(){M.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hover");M.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hide-outline");return!1});
_.jl(M,"focus",function(){t&&M.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hover")});
_.jl(M,"blur",function(){t&&M.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hover")});
var d=_.h0(function(){c();return!1}),v=_.h0(function(C){C.key==="Enter"&&c();
return!1});
return _.Z("svg",{"on:mouseover":N,"on:mouseout":h,"on:keydown":v,el:M,tabindex:0,"aria-label":x,id:"player-overlay-video-interaction-svg",class:"yt-player-overlay-video-interactions__interactions-svg",role:"button",style:F,"on:click":d})},nBM=function(p){p.unsubscribeFromStore=_.qJ(p.storeWithShorts,_.cDk,function(x){p.initOrDisposeActiveModules(x);
!x&&p.storeWithShorts.getState().shorts.isFullscreen&&(_.xv(document.documentElement),p.storeWithShorts.dispatch(_.Ddm(!1)))});
p.initOrDisposeActiveModules(_.cDk(p.storeWithShorts.getState()))},yCK=function(p){var x=_.J().resolve(_.pJ);
x.rootElement=p;nBM(x)},bZU=function(){return _.J().resolve(_.pJ).dismissedIndices},ACP=function(p,x){var F=_.au("/youtube/app/player_caption_language_entity_key","stringEntity",2);
if(x){var N;((N=_.MN(_.pBd,F)())==null?void 0:N.value)!==x.displayName&&p.store.dispatch(_.KV("stringEntity",F,{key:F,value:x.displayName||""}))}else p.store.dispatch(_.KV("stringEntity",F,{key:F,value:"CAPTIONS_UNAVAILABLE"}))},ujg=function(p){var x;
(x=p.currentCinematicEffect)==null||x.clear()},Yv6=function(p){return _.F4({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:p}})},wbA=function(p){return _.F4({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:p}})},Gmb=function(p){return _.F4({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:p}})},tP=function(p,x){if(p instanceof tP)this.array_=p.array_;
else{var F;if(F=_.TB(p))a:{for(var N=F=0;N<p.length;N++){if(!_.TB(p[N])||F>0&&p[N].length!=F){F=!1;break a}for(var h=0;h<p[N].length;h++)if(typeof p[N][h]!=="number"){F=!1;break a}F==0&&(F=p[N].length)}F=F!=0}if(F)this.array_=_.Pr(p);else if(p instanceof _.q1)this.array_=VD5(p.height,p.width);else if(typeof p==="number"&&typeof x==="number"&&p>0&&x>0)this.array_=VD5(p,x);else throw Error("Wl");}this.size_=new _.q1(this.array_[0].length,this.array_.length)},WnU=function(p,x,F){for(var N=0;N<p.getSize().height;N++)for(var h=
0;h<p.getSize().width;h++)x.call(F,p.array_[N][h],N,h,p)},HZK=function(p,x){var F=new tP(p.getSize());
WnU(p,function(N,h,c){F.array_[h][c]=x.call(void 0,N,h,c,p)});
return F},VD5=function(p,x){for(var F=[],N=0;N<p;N++){F[N]=[];
for(var h=0;h<x;h++)F[N][h]=0}return F};
tP.prototype.add=function(p){if(!_.jJz(this.size_,p.getSize()))throw Error("Xl");return HZK(this,function(x,F,N){return x+p.array_[F][N]})};
tP.prototype.equals=function(p,x){if(this.size_.width!=p.size_.width||this.size_.height!=p.size_.height)return!1;x=x||0;for(var F=0;F<this.size_.height;F++)for(var N=0;N<this.size_.width;N++)if(!_.OpM(this.array_[F][N],p.array_[F][N],x))return!1;return!0};
tP.prototype.getSize=function(){return this.size_};
var d9=function(p,x,F){return x>=0&&x<p.size_.height&&F>=0&&F<p.size_.width?p.array_[x][F]:null};
tP.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var rCA=function(p,x,F,N){if(!(x>=0&&x<p.size_.height&&F>=0&&F<p.size_.width))throw Error("Yl`"+x+"`"+F+"`"+p.size_.height+"`"+p.size_.width);p.array_[x][F]=N};
tP.prototype.multiply=function(p){if(p instanceof tP){if(this.size_.width!=p.getSize().height)throw Error("Zl");return mIl(this,p)}if(typeof p==="number")return oBe(this,p);throw Error("$l");};
var mIl=function(p,x){var F=new tP(p.size_.height,x.getSize().width);WnU(F,function(N,h,c){for(var M=N=0;M<this.size_.width;M++)N+=d9(this,h,M)*d9(x,M,c);rCA(F,h,c,N)},p);
return F},oBe=function(p,x){return HZK(p,function(F){return F*x})};var OZb=new _.U("inlineSurveyRenderer");var jkK=new _.U("interstitialViewModel");var LnM=new _.U("reelNavigateCommand");var PBA=new _.U("reelNonVideoContentDismissalCommand");var Tlo=new _.U("showReelsCommentsOverlayCommand");var skU=new _.U("videoInteractionPopUpRenderer");var Bln;var R6g;var kmb;var UIz=function(){var p=_.m.apply(this,arguments)||this;p.ctaVisualElement=null;p.currentCsn=null;return p};
_.E(UIz,_.m);_.l=UIz.prototype;_.l.onDataChanged=function(){this.maybeLogShows()};
_.l.computeButtonShape=function(){var p=this;if(this.data)return{buttonText:_.Pi(this.data.text),state:"active",onTap:function(){p.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.l.maybeCreateCtaVe=function(){var p;if((p=this.data)!=null&&p.badgeInteractionLogging){var x;if(p=(x=this.data.badgeInteractionLogging)==null?void 0:x.trackingParams)this.ctaVisualElement=_.fr(p)}};
_.l.maybeLogClicks=function(){this.currentCsn=_.b0(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.B5(this.currentCsn,this.ctaVisualElement)};
_.l.maybeLogShows=function(){this.currentCsn=_.b0(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.P5(this.currentCsn,[this.ctaVisualElement])};
_.l.onTap=function(){var p;if((p=this.data)!=null&&p.onClickCommand){var x;this.ytComponentBehavior.resolveCommand((x=this.data)==null?void 0:x.onClickCommand);this.maybeLogClicks()}};
var vY=UIz;vY.prototype.onDataChanged=vY.prototype.onDataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],vY.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],vY.prototype,"ytComponentBehavior",void 0);_.B([_.H({}),_.k("design:type",Object)],vY.prototype,"data",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vY.prototype,"onDataChanged",null);
vY=_.B([_.L({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],vY);
_.P(vY,"ytd-shopping-overlay-badge-renderer",function(){if(kmb!==void 0)return kmb;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return kmb=p},{mode:1});_.o7(_.$G8,"reel-sound-metadata-view-model",{props:{data:_.mJ,overlayDensity:_.mJ}});_.o7(_.HgH,"player-disclosure-view-model",{props:{data:_.G2}});_.o7(_.Lbv,"pivot-button-view-model",{props:{data:_.mJ,className:_.mJ}});_.o7(_.PDI,"reel-action-bar-view-model",{props:{data:_.G2,buttonShapeOverrideables:_.G2}});_.iK(z6U);_.kL(z6U,"yt-player-overlay-video-interactions",{propNames:["data","parentContainerWidth","parentContainerHeight"]});_.o7(_.Ldm,"yt-reel-metapanel-view-model",{props:{data:_.G2,overlayDensity:_.G2}});var iZg=function(){var p=_.m.apply(this,arguments)||this;p.showScrubber=!1;p.isWatchWhileMode=!1;p.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");p.anchoredPanelActive=!1;p.enableLivingroomLayout=_.S("reels_enable_livingroom_layout");p.enablePlayerMetadataContainer=_.S("reels_web_enable_metadata_container");p.enableSqueezebackPanels=_.S("web_shorts_enable_squeezeback_panels");p.isSqueezebackActive=!1;p.smallScreenSqueezeback=!1;p.isPlayerStarted=!1;p.overlayDensity=0;p.isOverlay=!1;p.isImmersive=
!1;p.isImmersiveHorizontal=!1;p.isFullscreen=!1;p.onWindowResized=function(){var x;p.set("isImmersive",((x=window.getComputedStyle(p.hostElement))==null?void 0:x.getPropertyValue("--immersive-mode-on"))==="1");p.set("isImmersiveHorizontal",p.isImmersive&&p.enableLivingroomLayout&&!p.isWatchWhileMode);p.setPlayerDimensions()};
return p};
_.E(iZg,_.m);_.l=iZg.prototype;_.l.updateIsOverlay=function(p){this.isOverlay=p.detail.value};
_.l.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.S("web_enable_flexible_overlay")||_.S("web_enable_format_first")||_.S("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.l.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.l.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.l.onDataChanged=function(){this.setPlayerDimensions()};
_.l.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.l.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.l.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.l.ready=function(){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",_.iO("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.iO("reels_action_justified_content")||"flex-start")};
_.l.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.l.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.JG("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.JG("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.JG("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.JG("SHARE_LABEL",
void 0,"Share")}}});_.S("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.JG("REMIX_LABEL",void 0,"Remix")}}});this.set("data.menu",{menuRenderer:{items:[{menuServiceItemRenderer:{}}]}});this.set("data.pivotButton",{pivotButtonViewModel:{backgroundColor:"THEME_ATTRIBUTE_OVERLAY_BACKGROUND_MEDIUM",icon:{iconType:"WAVEFORM"}}});this.setEmptyOverlayMetadata()};
_.l.setEmptyOverlayMetadata=function(){_.S("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}))};
_.l.setPlayerDimensions=function(){var p=document.getElementById("short-video-container"),x,F;p&&((x=this.data)==null?0:(F=x.videoInteractions)==null?0:F.interactions)&&(this.playerContainerHeight=p.getBoundingClientRect().height,this.playerContainerWidth=p.getBoundingClientRect().width)};
_.R8.Object.defineProperties(iZg.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.infoPanel)}}});
var JP=iZg;JP.prototype.onDataChanged=JP.prototype.onDataChanged;JP.prototype.onIsActiveChanged=JP.prototype.onIsActiveChanged;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],JP.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],JP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],JP.prototype,"ytdReduxBehavior",void 0);
_.B([_.u(_.GM.YtdGuideStateAwareBehavior),_.k("design:type",Object)],JP.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],JP.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Boolean)],JP.prototype,"isActive",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],JP.prototype,"hidden",void 0);_.B([_.H({value:!0}),_.k("design:type",Boolean)],JP.prototype,"useShortsIcon",void 0);
_.B([_.H({value:"left"}),_.k("design:type",String)],JP.prototype,"buttonTooltipPosition",void 0);_.B([_.H({value:_.S("reels_enable_livingroom_layout")?"top":"left"}),_.k("design:type",String)],JP.prototype,"likeButtonTooltipPosition",void 0);_.B([_.H({value:"none"}),_.k("design:type",String)],JP.prototype,"textTransform",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],JP.prototype,"showScrubber",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],JP.prototype,"isWatchWhileMode",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("data.infoPanel"),_.k("design:type",Object),_.k("design:paramtypes",[])],JP.prototype,"hasInfoPanel",null);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],JP.prototype,"enableAnchoredPanel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],JP.prototype,"anchoredPanelActive",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],JP.prototype,"enableLivingroomLayout",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],JP.prototype,"enablePlayerMetadataContainer",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],JP.prototype,"enableSqueezebackPanels",void 0);_.B([_.H({selector:_.PeE,reflectToAttribute:!0}),_.k("design:type",Object)],JP.prototype,"isSqueezebackActive",void 0);
_.B([_.H({selector:CBA,reflectToAttribute:!0}),_.k("design:type",Object)],JP.prototype,"smallScreenSqueezeback",void 0);_.B([_.H({selector:Svz}),_.k("design:type",Object)],JP.prototype,"isPlayerStarted",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],JP.prototype,"overlayDensity",void 0);_.B([_.H(),_.k("design:type",Object)],JP.prototype,"isOverlay",void 0);
_.B([_.H({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.k("design:type",Boolean)],JP.prototype,"isShortsOverlay",void 0);_.B([_.H(),_.k("design:type",Object)],JP.prototype,"isImmersive",void 0);_.B([_.H(),_.k("design:type",Object)],JP.prototype,"isImmersiveHorizontal",void 0);_.B([_.H({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.k("design:type",Boolean)],JP.prototype,"isShortsImmersive",void 0);
_.B([_.H({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.k("design:type",Object)],JP.prototype,"buttonOverride",void 0);_.B([_.H(),_.k("design:type",Number)],JP.prototype,"playerContainerHeight",void 0);_.B([_.H(),_.k("design:type",Number)],JP.prototype,"playerContainerWidth",void 0);_.B([_.H({selector:_.JI,reflectToAttribute:!0}),_.k("design:type",Object)],JP.prototype,"isFullscreen",void 0);
_.B([_.W("isActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],JP.prototype,"onIsActiveChanged",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],JP.prototype,"onDataChanged",null);JP=_.B([_.L({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],JP);
_.P(JP,"ytd-reel-player-overlay-renderer",function(){if(R6g!==void 0)return R6g;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" parent-container-height="[[playerContainerHeight]]" parent-container-width="[[playerContainerWidth]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[buttonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return R6g=p},{mode:1});var IKE;var CC=function(){var p=_.m.apply(this,arguments)||this;p.videoDuration=0;p.playedTime=0;p.isActive=!1;p.JSC$19477_playerEvents=new Map;return p};
_.E(CC,_.m);_.l=CC.prototype;_.l.created=function(){this.JSC$19477_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19477_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.l.attached=function(){this.getPlayerAndInitializeListeners()};
_.l.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19477_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.p5(this,this.onPageChanged))};
_.l.getPlayerAndInitializeListeners=function(){var p=this,x;return _.D(function(F){if(F.nextAddress==1)return x=_.Pt(),x?_.q(F,x.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.p5(p,p.onPageChanged)),F.jumpTo(0));p.player=F.yieldResult;p.initializePlayerListeners();_.JB(F)})};
_.l.onPageChanged=function(p){var x=this;return _.D(function(F){if(F.nextAddress==1)return p.detail.newPageType!=="ytd-shorts"?F.return():_.q(F,_.TO().getPlayerPromise(),2);x.player=F.yieldResult;x.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.p5(x,x.onPageChanged));_.JB(F)})};
_.l.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19477_playerEvents)};
_.l.onVideoDataChange=function(p){var x=this;return _.D(function(F){if(!x.player||p.type!=="newdata")return F.return();x.videoDuration=_.S("web_shorts_use_progress_state_for_gapless")?x.player.getProgressState(p.playertype).seekableEnd:x.player.getDuration(p.playertype);x.playedTime=0;_.JB(F)})};
_.l.onVideoProgress=function(p){var x=this,F,N;return _.D(function(h){if(!x.player)return h.return();F=x.player.getPresentingPlayerType();N=x.player.getPlayerState();x.videoDuration=_.S("web_shorts_use_progress_state_for_gapless")?x.player.getProgressState(F).seekableEnd:x.player.getDuration(F);x.playedTime=N===0?x.videoDuration:p;_.JB(h)})};
_.l.getPercentPlayed=function(p,x){return p?_.YV(x/p,0,1):0};
_.R8.Object.defineProperties(CC.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 p="";return p=this.videoDuration&&this.playedTime?p+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):p+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],CC.prototype,"componentBehavior",void 0);_.B([_.u(_.oz.YtPlayerListenerBehavior),_.k("design:type",_.O7)],CC.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],CC.prototype,"player",void 0);_.B([_.H(),_.k("design:type",Object)],CC.prototype,"videoDuration",void 0);_.B([_.H(),_.k("design:type",Object)],CC.prototype,"playedTime",void 0);_.B([_.H(),_.k("design:type",Object)],CC.prototype,"isActive",void 0);
_.B([_.w("videoDuration","playedTime"),_.k("design:type",Number),_.k("design:paramtypes",[])],CC.prototype,"percentPlayed",null);_.B([_.w("videoDuration","playedTime"),_.k("design:type",Object),_.k("design:paramtypes",[])],CC.prototype,"percentPlayedStyle",null);_.B([_.w("videoDuration","isActive"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],CC.prototype,"hideProgressBar",null);
_.P(CC,"ytd-progress-bar-line",function(){if(IKE===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);IKE=p}p=IKE;return p},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var $I5;_.kL(_.P4E,"desktop-shorts-volume-controls",{propNames:["noSlider"]});var SL=function(){var p=_.m.apply(this,arguments)||this;p.playerState=null;p.isMuted=!1;p.shortsPipButtonEnabled=_.S("web_shorts_pip_button");p.JSC$19481_playerEvents=new Map;p.shortsPipButtonData={disabled:!1,iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal"};return p};
_.E(SL,_.m);_.l=SL.prototype;_.l.created=function(){this.JSC$19481_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19481_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.l.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.vt(28662);this.playPauseButtonClientVE=_.vt(36842);this.fullscreenButtonToggleOffClientVE=_.vt(222256);this.fullscreenButtonToggleOnClientVE=_.vt(222257);var p=_.b0(),x=_.yR();p&&x&&(_.S("combine_ve_grafts")?(_.NJ(_.cl(),this.muteButtonClientVE,x),_.NJ(_.cl(),this.playPauseButtonClientVE,x)):_.I5(p,x,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.l.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19481_playerEvents),this.player=null)};
_.l.getPlayerAndInitializeListeners=function(){var p=this,x;return _.D(function(F){if(F.nextAddress==1)return x=_.Pt(),x?_.q(F,x.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.p5(p,p.onPageChanged)),F.jumpTo(0));p.player=F.yieldResult;p.initializePlayerListeners();_.JB(F)})};
_.l.onPageChanged=function(p){var x=this;return _.D(function(F){if(F.nextAddress==1)return p.detail.newPageType!=="ytd-shorts"?F.return():_.q(F,_.TO().getPlayerPromise(),2);x.player=F.yieldResult;x.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.p5(x,x.onPageChanged));_.JB(F)})};
_.l.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19481_playerEvents)};
_.l.onPlayerStateChange=function(p){this.playerState=p};
_.l.onPlayerVolumeChange=function(p){this.isMuted=p.muted};
_.l.onPlayPauseButtonClick=function(){var p=this,x,F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,_.TO().getPlayerPromise(),2);x=N.yieldResult;(F=_.b0())&&p.playPauseButtonClientVE&&_.B5(F,p.playPauseButtonClientVE);x.getPlayerState()!==1?x.playVideo():x.pauseVideo();_.JB(N)})};
_.l.computePlayPauseIcon=function(p){return p===2||p===-1||p===5?"PLAY_ARROW_FILLED":"miniplayer:shorts-pause"};
_.l.computeFullscreenLabel=function(p){return p?_.JG("FULLSCREEN_EXIT_LABEL"):_.JG("FULLSCREEN_ENTER_LABEL")};
_.l.computePlayPauseLabel=function(p){return p===1||p===3?_.JG("PLAYER_LABEL_PAUSE"):_.JG("PLAYER_LABEL_PLAY")};
_.l.onMuteButtonClick=function(){var p=this,x,F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,_.TO().getPlayerPromise(),2);x=N.yieldResult;(F=_.b0())&&p.muteButtonClientVE&&_.B5(F,p.muteButtonClientVE);x.isMuted()?x.unMute(!0):x.mute(!0);_.JB(N)})};
_.l.computeMuteIcon=function(p){return p?"miniplayer:volume-off":"miniplayer:volume-up"};
_.l.computeMuteLabel=function(p){return p?_.JG("PLAYER_LABEL_UNMUTE"):_.JG("PLAYER_LABEL_MUTE")};
_.l.onFullscreenButtonClick=function(){var p=_.b0();p&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.B5(p,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.B5(p,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.f$D()};
_.l.onShortsPipButtonClick=function(){var p=_.J().resolve(_.pJ);if(_.S("web_shorts_pip")){var x=_.J().resolve(_.H$);p.isShortsPipActive()?x.deactivate():x.isMiniplayerActive()||(_.fb().shortsPipActivation=!0,_.R$t(x))}};
_.R8.Object.defineProperties(SL.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var p=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(){p.onPlayPauseButtonClick()}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen)}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?"screen_full_exit":"screen_full"}},
shortsPipIcon:{configurable:!0,enumerable:!0,get:function(){return this.isShortsPipActive?"miniplayer_exit":"picture_in_picture"}}});
_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],SL.prototype,"componentBehavior",void 0);_.B([_.u(_.oz.YtPlayerListenerBehavior),_.k("design:type",_.O7)],SL.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],SL.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],SL.prototype,"player",void 0);_.B([_.H(),_.k("design:type",Object)],SL.prototype,"playerState",void 0);_.B([_.H(),_.k("design:type",Object)],SL.prototype,"isMuted",void 0);
_.B([_.H({computed:"computePlayPauseIcon(playerState)"}),_.k("design:type",String)],SL.prototype,"playPauseIcon",void 0);_.B([_.H({computed:"computeMuteIcon(isMuted)"}),_.k("design:type",String)],SL.prototype,"muteIcon",void 0);_.B([_.H({selector:_.JI}),_.k("design:type",Boolean)],SL.prototype,"isFullscreen",void 0);_.B([_.H({selector:_.CE}),_.k("design:type",Boolean)],SL.prototype,"isShortsPipActive",void 0);_.B([_.H(),_.k("design:type",Object)],SL.prototype,"shortsPipButtonEnabled",void 0);
_.B([_.H(),_.k("design:type",Object)],SL.prototype,"shortsPipButtonData",void 0);_.B([_.w("playerState"),_.k("design:type",Object),_.k("design:paramtypes",[])],SL.prototype,"playPauseButtonData",null);_.B([_.w("isFullscreen"),_.k("design:type",Object),_.k("design:paramtypes",[])],SL.prototype,"fullscreenButtonData",null);_.B([_.w("isFullscreen"),_.k("design:type",String),_.k("design:paramtypes",[])],SL.prototype,"fullscreenIcon",null);
_.B([_.w("isShortsPipActive"),_.k("design:type",String),_.k("design:paramtypes",[])],SL.prototype,"shortsPipIcon",null);
_.P(SL,"ytd-shorts-player-controls",function(){if($I5===void 0){var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n<yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsPipButtonEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="shorts-pip-button-shape" data="[[shortsPipButtonData]]" icon-name="[[shortsPipIcon]]" on-click="onShortsPipButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);$I5=p}p=$I5;return p},{mode:1});var e6M;_.o7(_.jyX,"yt-interstitial-view-model",{props:{data:_.G2}});var pHe=_.mO(function(p){var x=p.data;return _.Z("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.Z("h1",{class:"reelWatchBreakViewModelHostTitle"},_.Z(_.KQ,{text:function(){return x().title}})),_.Z("h2",{class:"reelWatchBreakViewModelHostBody"},_.Z(_.KQ,{text:function(){return x().body},
isOverlay:!0})),_.Z(_.Es,{data:function(){return x().buttons}},{buttonViewModel:function(F,N){return _.Z("div",{class:function(){return N()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.Z(_.nV,{data:F.data}))}}))},"Kh");
pHe.idomCompat=!0;_.o7(pHe,"reel-watch-break-view-model",{props:{data:_.G2}});var xH5=function(){return _.m.apply(this,arguments)||this};
_.E(xH5,_.m);xH5.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}}};
_.R8.Object.defineProperties(xH5.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var p;return!!_.r((p=this.data)==null?void 0:p.renderer,OZb)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var p;return!!_.r((p=this.data)==null?void 0:p.renderer,jkK)}}});
var r9=xH5;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],r9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],r9.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],r9.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],r9.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.w("data.renderer"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],r9.prototype,"isSurvey",null);_.B([_.H({reflectToAttribute:!0}),_.w("data.renderer"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],r9.prototype,"isInterstitialViewModel",null);r9=_.B([_.L({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],r9);
_.P(r9,"ytd-reel-non-video-content-renderer",function(){if(e6M!==void 0)return e6M;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);
return e6M=p},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var FmA;_.o7(_.Wde,"desktop-shorts-player-controls",{});var NDA=function(){var p=_.m.apply(this,arguments)||this;p.isPlayerPaused=!1;p.isPlayerStarted=!1;p.showPlayerControls=!1;p.showScrubber=!1;p.autoHideJobId=0;p.backgroundImageJobId=0;p.modern=_.S("web_button_rework");p.overlayType=_.iO("web_shorts_expanded_overlay_type");p.panelData=void 0;p.isWatchWhileMode=!1;p.hasError=!1;p.panelShowDelayMs=1;p.scrubberComponent={};p.useStamper=_.S("web_shorts_enable_title_deflation");p.isFullscreen=!1;p.shouldHideOverlay=!1;p.enableAnchoredPanel=_.S("desktop_shorts_v2_anchored_panel");
p.enablePersistentAnchoredPanel=_.S("desktop_shorts_v2_persistent_anchored_panel");p.hideWatchWhilePanel=_.S("web_shorts_hide_watch_while_panel");p.isPersistentPanelActive=!1;p.anchoredPanelActive=!1;p.enableNewCarousel=_.S("web_enable_shorts_new_carousel_single_instance");p.isShortsPipActive=!1;p.smallScreenSqueezeback=!1;p.enableFlexibleOverlay=_.S("web_enable_flexible_overlay");p.aspectRatio=.5625;p.overlayDensity=0;p.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand",
"yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};p.onWindowResized=function(){_.sQ(p,"calculateOverlayDensity",function(){p.calculateOverlayDensity()},100)};
return p};
_.E(NDA,_.m);_.l=NDA.prototype;_.l.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.l.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.l.shouldRenderOverlayControl=function(p){return!this.useStamper&&this.isVideoContent(p)};
_.l.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var p=_.J().resolve(_.Xm);this.isWatchWhileMode&&(_.S("web_enable_shorts_new_carousel")?_.E0.addJob(function(){p.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):p.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.l.handleShowReelsCommentsOverlayCommand=function(p){p=_.r(p,Tlo);this.isActive&&(p==null?0:p.engagementPanel)&&this.data&&(this.isWatchWhileMode&&this.isWatchWhileMode&&this.activeWatchWhilePanel==="engagement-panel-comments-section"?this.updateEngagementPanelVisibility("engagement-panel-comments-section",!1):this.updateEngagementPanelVisibility("engagement-panel-comments-section",!0))};
_.l.updateEngagementPanelVisibility=function(p,x){p&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:x?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:p}})};
_.l.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.l.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.J().resolve(_.pJ).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.l.handleWatchWhilePanelScrimClick=function(){var p=_.J().resolve(_.Xm);this.activeWatchWhilePanel&&(p.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.l.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.l.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.S("web_enable_shorts_new_carousel")?0:void 0}}};
_.l.handlePlayerClick=function(p){var x=this,F,N;if((N=(F=window).matchMedia)!=null&&N.call(F,"(any-pointer: coarse)").matches||!p)this.showPlayerControls=!0,_.E0.cancelJob(this.autoHideJobId),this.autoHideJobId=_.vZ(_.E0,function(){x.showPlayerControls=!1},4E3)};
_.l.isFirstReel=function(){return this.index===0};
_.l.handleMouseenter=function(){_.E0.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.l.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.l.handleScrubberEnter=function(){this.showScrubber=!0};
_.l.handleScrubberLeave=function(){this.showScrubber=!1};
_.l.onAspectRatioChange=function(){var p=this,x;return _.D(function(F){if(F.nextAddress==1)return p.hostElement.style.setProperty("--ytd-shorts-player-ratio",""+p.aspectRatio),p.isActive?_.q(F,_.J().resolve(_.pJ).playerApi,3):F.jumpTo(0);(x=F.yieldResult)&&x.setSize(NaN,NaN);_.JB(F)})};
_.l.updateBackgroundImage=function(){var p=this,x;if((x=this.data)!=null&&x.thumbnail){var F=(x=_.j6(this.data.thumbnail.thumbnails))?'background-image:url("'+x+'");':"",N;F.toString()!==((N=this.backgroundImage)==null?void 0:N.toString())&&(this.isActive?this.backgroundImage=F:(_.E0.cancelJob(this.backgroundImageJobId),this.backgroundImageJobId=_.vZ(_.E0,function(){p.isAttached&&(p.backgroundImage=F)},1E3)))}else this.backgroundImage=void 0};
_.l.setAspectRatio=function(){var p;(p=this.data)!=null&&p.thumbnail&&(this.isActive&&.5625!==JCK(this.data.thumbnail)&&_.ZS("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO"),this.enableFormatFirst&&(this.aspectRatio=this.isPersistentPanelActive?.5625:JCK(this.data.thumbnail)))};
_.l.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var p=document.querySelector("#shorts-container");if(p){p=p.offsetWidth-96-this.playerContainer.offsetWidth-72;p=p>=720?1:p>=360?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&p===1&&(p=0);this.isPersistentPanelActive&&(p=0);this.overlayDensity=p;var x;(x=this.onOverlayDensityChanged)==null||x.call(this,this.index,this.overlayDensity)}}};
_.l.onOverlayDensityChange=function(){var p;(p=this.onOverlayDensityChanged)==null||p.call(this,this.index,this.overlayDensity);(p=_.n(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&p.set("overlayDensity",this.overlayDensity);if(p=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))p.overlayDensity=this.overlayDensity};
_.l.isVideoContent=function(p){_.J().resolve(_.pJ);return!!_.r(p,_.dX)};
_.l.isNonVideoContent=function(p){_.J().resolve(_.pJ);return!!_.r(p,_.yf)};
_.l.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.R8.Object.defineProperties(NDA.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var p,x;return _.S("web_enable_format_first")||((p=this.data)==null?void 0:p.adsOverlay)&&_.S("web_enable_format_first_ads_only")||((x=this.data)==null?void 0:x.reelPlayerOverlayRenderer)&&_.S("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 p;return!this.isActive||!this.isPlayerStarted||(p=this.data)!=null&&p.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var p;if(this.useStamper&&((p=this.data)==null?0:p.command)&&this.isVideoContent(this.data.command)){var x,F;if(((x=this.data)==null?0:x.adsOverlay)&&Object.keys((F=this.data)==null?void 0:F.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var N,h;if(((N=this.data)==null?0:N.reelPlayerOverlayRenderer)&&Object.keys((h=this.data)==null?void 0:h.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
var EX=NDA;EX.prototype.onOverlayDensityChange=EX.prototype.onOverlayDensityChange;EX.prototype.calculateOverlayDensity=EX.prototype.calculateOverlayDensity;EX.prototype.setAspectRatio=EX.prototype.setAspectRatio;EX.prototype.updateBackgroundImage=EX.prototype.updateBackgroundImage;EX.prototype.onAspectRatioChange=EX.prototype.onAspectRatioChange;EX.prototype.onEngagementPanelsChanged=EX.prototype.onEngagementPanelsChanged;EX.prototype.onScrubberDataChange=EX.prototype.onScrubberDataChange;
EX.prototype.updateShouldHideOverlay=EX.prototype.updateShouldHideOverlay;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],EX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],EX.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.GM.YtdGuideStateAwareBehavior),_.k("design:type",Object)],EX.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],EX.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Number)],EX.prototype,"index",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],EX.prototype,"isActive",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],EX.prototype,"isHiddenInDom",void 0);_.B([_.H(),_.k("design:type",Object)],EX.prototype,"isPlayerPaused",void 0);_.B([_.H({selector:Svz}),_.k("design:type",Object)],EX.prototype,"isPlayerStarted",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],EX.prototype,"showPlayerControls",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],EX.prototype,"showScrubber",void 0);_.B([_.H(),_.k("design:type",Object)],EX.prototype,"autoHideJobId",void 0);_.B([_.H(),_.k("design:type",Object)],EX.prototype,"backgroundImageJobId",void 0);_.B([_.H(),_.k("design:type",Object)],EX.prototype,"backgroundImage",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],EX.prototype,"modern",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],EX.prototype,"overlayType",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],EX.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],EX.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],EX.prototype,"watchWhileEngagementPanels",void 0);
_.B([_.H(),_.k("design:type",Object)],EX.prototype,"panelData",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],EX.prototype,"isWatchWhileMode",void 0);_.B([_.H(),_.k("design:type",String)],EX.prototype,"activeWatchWhilePanel",void 0);_.B([_.H(),_.k("design:type",Object)],EX.prototype,"hasError",void 0);_.B([_.H(),_.k("design:type",Object)],EX.prototype,"panelShowDelayMs",void 0);_.B([_.H(),_.k("design:type",Object)],EX.prototype,"scrubberComponent",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],EX.prototype,"useStamper",void 0);_.B([_.H({selector:_.JI,reflectToAttribute:!0}),_.k("design:type",Object)],EX.prototype,"isFullscreen",void 0);_.B([_.H(),_.k("design:type",Object)],EX.prototype,"shouldHideOverlay",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],EX.prototype,"enableAnchoredPanel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],EX.prototype,"enablePersistentAnchoredPanel",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],EX.prototype,"hideWatchWhilePanel",void 0);_.B([_.H({selector:_.PeE,reflectToAttribute:!0}),_.k("design:type",Object)],EX.prototype,"isPersistentPanelActive",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],EX.prototype,"anchoredPanelActive",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],EX.prototype,"enableNewCarousel",void 0);
_.B([_.H({selector:_.CE,reflectToAttribute:!0}),_.k("design:type",Object)],EX.prototype,"isShortsPipActive",void 0);_.B([_.H({selector:CBA,reflectToAttribute:!0}),_.k("design:type",Object)],EX.prototype,"smallScreenSqueezeback",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],EX.prototype,"enableFormatFirst",null);_.B([_.H(),_.k("design:type",Object)],EX.prototype,"enableFlexibleOverlay",void 0);
_.B([_.H(),_.k("design:type",Object)],EX.prototype,"aspectRatio",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],EX.prototype,"overlayDensity",void 0);_.B([_.H(),_.k("design:type",Function)],EX.prototype,"onOverlayDensityChanged",void 0);_.B([_.H(),_.w("isActive","hasError"),_.k("design:type",Object),_.k("design:paramtypes",[])],EX.prototype,"shouldRenderPlayerElements",null);
_.B([_.H(),_.w("isActive","isWatchWhileMode"),_.k("design:type",Object),_.k("design:paramtypes",[])],EX.prototype,"watchWhileOrPersistentActive",null);_.B([_.W("isActive","hasError","showingExpandedOverlay"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EX.prototype,"updateShouldHideOverlay",null);
_.B([_.H({reflectToAttribute:!0}),_.w("isActive","isPlayerStarted","data"),_.k("design:type",Object),_.k("design:paramtypes",[])],EX.prototype,"shouldRenderScrubber",null);_.B([_.W("shouldRenderScrubber"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EX.prototype,"onScrubberDataChange",null);_.B([_.w("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],EX.prototype,"overlayComponent",null);
_.B([_.W("watchWhileEngagementPanels"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EX.prototype,"onEngagementPanelsChanged",null);_.B([_.Ff("#player-container"),_.k("design:type",HTMLElement)],EX.prototype,"playerContainer",void 0);_.B([_.Ff("#cinematic-container"),_.k("design:type",HTMLElement)],EX.prototype,"cinematicContainer",void 0);
_.B([_.W("aspectRatio"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],EX.prototype,"onAspectRatioChange",null);_.B([_.W("data.thumbnail"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EX.prototype,"updateBackgroundImage",null);_.B([_.W("isPersistentPanelActive","data.thumbnail"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EX.prototype,"setAspectRatio",null);
_.B([_.W("isPersistentPanelActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EX.prototype,"calculateOverlayDensity",null);_.B([_.W("overlayDensity"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EX.prototype,"onOverlayDensityChange",null);EX=_.B([_.L({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],EX);
_.P(EX,"ytd-reel-video-renderer",function(){if(FmA!==void 0)return FmA;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave" style$="[[backgroundImage]]">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n        <div class="player-controls style-scope ytd-reel-video-renderer">\n          <template is="dom-if" if="[[enableNewCarousel]]" class="style-scope ytd-reel-video-renderer">\n            <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n          </template>\n          <template is="dom-if" if="[[!enableNewCarousel]]" class="style-scope ytd-reel-video-renderer">\n            <ytd-shorts-player-controls class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n          </template>\n        </div>\n      </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[shouldRenderOverlayControl(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <div id="control-overlay" class="overlay style-scope ytd-reel-video-renderer">\n    <template is="dom-if" if="[[data.reelPlayerOverlayRenderer]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-reel-player-overlay-renderer anchored-panel-active="[[anchoredPanelActive]]" data="[[data.reelPlayerOverlayRenderer]]" disable-upgrade="[[shouldHideOverlay]]" hidden="[[shouldHideOverlay]]" is-active="[[isActive]]" is-player-started="[[isPlayerStarted]]" is-watch-while-mode="[[watchWhileOrPersistentActive]]" show-scrubber="[[showScrubber]]" class="style-scope ytd-reel-video-renderer"></ytd-reel-player-overlay-renderer>\n    </template>\n    <template is="dom-if" if="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-ad-slot-renderer data="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer"></ytd-ad-slot-renderer>\n    </template>\n  </div>\n</template>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return FmA=p},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var h85=function(){var p=_.m.apply(this,arguments)||this;p.isPreviousPageShorts=!1;p.index=0;p.delayedActiveIndex=0;p.playablePreviousIndex=null;p.isPlayerPaused=!1;p.isPlayerStarted=!1;p.intersectionObserverThreshold=.6;p.fitToVisibleBounds=!1;p.pageSubtype="shorts";p.panelShowDelayMs=_.Ud("enable_shorts_panel_show_delay_ms");p.enablePreviousContinuation=_.S("shorts_in_playlists_web");p.shortsPipEnabled=_.S("web_shorts_pip");p.isDark=document.documentElement.hasAttribute("dark");p.shortsViewTransitions=
_.S("web_shorts_view_transitions");p.isFullscreen=!1;p.isShortsPipActive=!1;p.buttonOverride={iconPosition:"icon-only",size:"XL"};p.anchoredPanelActive=!1;p.isActive=!1;p.smallScreenPersistentPanel=!1;p.isPersistentPanelActive=!1;p.smallScreenSqueezeBack=!1;p.enableScrollIntoViewCenter=_.S("web_scroll_into_view_center");p.formatFirst=_.S("web_enable_format_first")||_.S("web_enable_format_first_ads_only")||_.S("web_enable_format_first_organic_only");p.enableFlexibleOverlay=_.S("web_enable_flexible_overlay");
p.enableNewCarousel=_.S("web_enable_shorts_new_carousel_single_instance");p.isShortsInitialized=!1;p.hidePreviousButtonImmediately=!1;p.showPreviousButtonImmediately=!1;p.currentPlayerIndex=0;p.nextReelVe=_.vt(56921);p.prevReelVe=_.vt(56922);p.loopToggleOffVe=_.vt(198013);p.loopToggleOnVe=_.vt(198014);p.ambientModeToggleVe=_.vt(227860);p.reelPlayerPausedStateRendererVe=_.vt(141313);p.storedPlaybackSpeed=null;p.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"};p.onOverlayDensityChanged=function(x,F){var N;(N=p.getActiveReelVideo(x))==null||N.setAttribute("overlay-density",String(F))};
return p};
_.E(h85,_.m);_.l=h85.prototype;
_.l.deflateInactivePreviousSlides=function(){var p=_.Ud("web_shorts_deflate_inactive_slides_aggressive_distance");if(p>0&&this.shortsProcessedSequence&&this.activeIndex){p=this.activeIndex-p;for(var x=0;x<=p;x++){var F=void 0;((F=this.shortsProcessedSequence[x].reelPlayerOverlayRenderer)==null?0:F.likeButton)&&this.set("shortsProcessedSequence."+x+".reelPlayerOverlayRenderer",{});F=void 0;((F=this.shortsProcessedSequence[x].adsOverlay)==null?0:F.adSlotMetadata)&&this.set("shortsProcessedSequence."+x+
".adsOverlay",{})}}};
_.l.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.l.onResize=function(){var p=_.Bi(),x=p.dispatch,F=this.calculateIsSmallWidth();x.call(p,_.F4({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:F}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.l.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:_.S("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0},properties:{showDelayMs:"[[panelShowDelayMs]]"}}},renderPriority:0}}};
_.l.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var p=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,x=p,F=0;p<250&&(x=p+this.shortsInnerContainer.clientWidth,F=24);_.eV(this.hostElement,{"--ytd-shorts-header-width":x+"px","--ytd-shorts-top-spacing":F+"px"})}};
_.l.isFirstShorts=function(p){return p?this.index===-p.length:this.index===0};
_.l.isActiveReel=function(p,x,F){F&&(x=this.calculatePrevIndex(x,F));return p===x};
_.l.onFullscreenChange=function(){if(_.S("web_fullscreen_shorts")){var p;(p=this.getActiveReelVideo(this.activeIndex))==null||p.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.J().resolve(_.H$).close(!0)}};
_.l.engagementPanelsChanged=function(){var p;this.watchWhileEngagementPanels=(p=this.data)==null?void 0:p.engagementPanels};
_.l.unregisterPanels=function(){var p=_.J().resolve(_.Xm);if(this.watchWhileEngagementPanels)for(var x=_.a(this.watchWhileEngagementPanels),F=x.next();!F.done;F=x.next()){var N=void 0,h=void 0;F=(N=F.value.engagementPanelSectionListRenderer)==null?void 0:(h=N.identifier)==null?void 0:h.tag;p&&F&&p.panelMap.delete(F)}};
_.l.isVideoContent=function(p){return this.isVideoContentCommand(p==null?void 0:p.command)};
_.l.getActiveReelVideo=function(p){return _.S("web_enable_shorts_new_carousel_single_instance")?_.n(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+p+'"]'):_.n(this.hostElement).querySelector('ytd-reel-video-renderer[id="'+p+'"]')};
_.l.calculatePrevIndex=function(p,x){return x?p-((x==null?void 0:x.length)||0):-1};
_.l.onKeydown=function(p){var x=_.m9(p)||[];if(!_.M6H(x))if(p.code==="ArrowUp")p.preventDefault(),this.handlePrevButtonClick();else if(p.code==="ArrowDown")p.preventDefault(),this.handleNextButtonClick();else if(p.code==="KeyM")this.toggleMuteUnmuteVideo();else if(p.code==="KeyK"||p.code==="Space")this.togglePlayPauseVideo();else if((p.code==="KeyA"||p.code==="ArrowLeft")&&_.S("web_shorts_keyboard_enable_seek_shortcuts")){var F;(F=this.player)==null||F.seekBy(-5)}else if((p.code==="KeyD"||p.code===
"ArrowRight")&&_.S("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var N;(N=this.player)==null||N.seekBy(5)}};
_.l.onServiceRequestCompleted=function(p,x){p=x.data;p.continuationEndpoint&&p.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:p.entries,continuationEndpoint:p.continuationEndpoint}}):p.prevContinuationEndpoint&&p.prevEntries&&this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:p.prevEntries,prevContinuationEndpoint:p.prevContinuationEndpoint}})};
_.l.handleEngagementPanelVisibilityChanged=function(p,x){var F=_.J().resolve(_.Xm);if(p&&F){var N,h=((N=p.identifier)==null?void 0:N.tag)||p.panelIdentifier||p.targetId;if(x==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==h){F.hidePanel(this.activePanel);var c;this.activePanel=((c=p.identifier)==null?void 0:c.tag)||p.panelIdentifier}else this.isPersistentPanelActive=!0,_.Bi().dispatch(Yv6(!0)),this.anchoredPanelActive=!0,this.activePanel=h;else x==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===h&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Bi().dispatch(Yv6(!1)))}};
_.l.handlePanelScrimClick=function(){var p=_.J().resolve(_.Xm);this.activePanel&&(p.hidePanel(this.activePanel),_.Bi().dispatch(Yv6(!1)))};
_.l.getShortsLoopSetting=function(){var p,x,F,N,h;return _.D(function(c){switch(c.nextAddress){case 1:return _.S("kevlar_shorts_auto_advance")?_.q(c,_.Sa.getInstance(),2):c.return(!0);case 2:return(p=c.yieldResult)?_.q(c,p.get("sfvles"),3):c.return(!0);case 3:return F=(x=c.yieldResult)!=null?x:!1,_.q(c,p.get("sfvle"),4);case 4:return h=(N=c.yieldResult)!=null?N:!0,F?c.return(h):c.return(!0)}})};
_.l.handleSignalActionToggleLoopShortsOff=function(){var p=this,x,F,N;return _.D(function(h){switch(h.nextAddress){case 1:if(!p.player)return h.return();p.player.setLoopVideo(!1);x=_.cl();_.lC(x,p.loopToggleOffVe);return _.q(h,_.Sa.getInstance(),2);case 2:return(F=h.yieldResult)?_.q(h,F.set("sfvle",!1),3):h.return();case 3:return _.q(h,F.set("sfvles",!0),4);case 4:N=_.rH(),_.Ez(0,203,!1),_.Ez(0,204,!0),N.save(),_.JB(h)}})};
_.l.handleSignalActionToggleLoopShortsOn=function(){var p=this,x,F,N;return _.D(function(h){switch(h.nextAddress){case 1:if(!p.player)return h.return();p.player.setLoopVideo(!0);x=_.cl();_.lC(x,p.loopToggleOnVe);return _.q(h,_.Sa.getInstance(),2);case 2:return(F=h.yieldResult)?_.q(h,F.set("sfvle",!0),3):h.return();case 3:return _.q(h,F.set("sfvles",!0),4);case 4:N=_.rH(),_.Ez(0,203,!0),_.Ez(0,204,!0),N.save(),_.JB(h)}})};
_.l.handleSignalActionToggleCinematicShortsOn=function(){vBE(!0);var p;(p=this.JSC$19505_cinematicController)==null||_.qvM(p,!0);_.lC(_.cl(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.l.handleSignalActionToggleCinematicShortsOff=function(){vBE(!1);var p;(p=this.JSC$19505_cinematicController)==null||_.qvM(p,!1);_.lC(_.cl(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.l.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.l.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.l.unhideCurrentOverlay=function(){if(_.S("web_enable_shorts_new_carousel_single_instance")&&this.overlayContainer){var p=this.overlayContainer.querySelector("#experiment-overlay");p&&_.E0.addLowPriorityJob(function(){p.style.display="unset"},100)}};
_.l.getCurrentShort=function(){if(this.currentEndpoint){var p=this.currentEndpoint;if(this.isNonVideoContentCommand(p)){var x=_.r(p,_.yf);return{reelNonVideoContentRenderer:_.r(x==null?void 0:x.renderer,_.z26),command:p}}if(this.data){var F;x=(F=_.r(this.currentEndpoint,_.dX))==null?void 0:F.thumbnail;var N;F=(N=this.data.overlay)==null?void 0:N.reelPlayerOverlayRenderer;_.J().resolve(_.pJ);var h,c;N=_.r((h=this.data.overlay)==null?void 0:(c=h.shortsAdsRenderer)==null?void 0:c.overlay,_.DiB);p=Object.assign({},
this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.r(this.currentEndpoint,_.dX),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:F,thumbnail:x,command:p,adsOverlay:N}}}};
_.l.created=function(){var p=this;this.scrollToVideoThrottle=new _.IC(function(x){var F;(F=p.getActiveReelVideo(x))==null||F.scrollIntoView({behavior:"smooth",block:"nearest",inline:p.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.IC(function(x){var F;(F=p.getActiveReelVideo(x))==null||F.scrollIntoView({behavior:"auto",block:"nearest",inline:p.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.l.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.l.attached=function(){var p=this;yCK(this);this.pageScrollElement=_.n(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.p5(this,this.processResetAction));_.S("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.S("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var x=p.getActiveReelVideo(p.activeIndex);
p.maybeCreateIntersectionObserver();x==null||x.scrollIntoView({behavior:"instant",block:"nearest",inline:p.enableScrollIntoViewCenter?"center":"start"});p.shortsContainer.style.overflowY="scroll"}))};
_.l.calculateSqueezebackPanelSize=function(){var p=this,x=window.innerWidth-456-(window.innerHeight-106)*.5625;_.E0.addLowPriorityJob(function(){x<360?_.Bi().dispatch(wbA(!0)):(p.hostElement.style.setProperty("--anchored-panel-width",Math.min(x,480)+"px"),_.Bi().dispatch(wbA(!1)))})};
_.l.detached=function(){var p=_.J().resolve(_.pJ);p.rootElement=void 0;var x;(x=p.unsubscribeFromStore)==null||x.call(p);p.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.p5(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.l.onResizeFinished=function(p,x){var F=this,N=new ResizeObserver(function(){F.shortsContainer.style.overflowY="hidden";_.E0.addLowPriorityJob(function(){x()},100)});
N.observe(p);return N};
_.l.resetDocumentScrollTop=function(){var p,x;if((p=document)==null?0:(x=p.scrollingElement)==null?0:x.scrollTop)document.scrollingElement.scrollTop=0};
_.l.loadPage_=function(p){var x=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),p){var F;if((F=_.r(this.currentEndpoint,_.dX))==null?0:F.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=p;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){x.isPlayerStarted&&
(x.handleOnPlaybackCommand(),x.afterPlayerStarted=function(){})};
this.registerPanel(p)}};
_.l.afterPlayerStarted=function(){};
_.l.handleOnPlaybackCommand=function(){if(_.S("web_shorts_comment_stickers")&&this.isPlayerStarted){var p,x=(p=_.r(this.currentEndpoint,_.dX))==null?void 0:p.onPlaybackCommand;x&&this.ytComponentBehavior.resolveCommand(x)}};
_.l.maybeCreateIntersectionObserver=function(){var p=this,x=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==x){this.intersectionObserverThreshold=x;var F={rootMargin:"0px",threshold:x},N;(N=this.intersectionObserver)==null||N.disconnect();this.intersectionObserver=new IntersectionObserver(function(h){h=_.a(h);for(var c=h.next();!c.done;c=h.next())if(c=c.value,c.intersectionRatio>x){c=Number(c.target.id);if(isNaN(c))break;if(c===p.index)break;
_.R_E();p.loadVideo(c);_.Vp("r_vtc")}},F);
this.observeShorts()}};
_.l.observeShorts=function(){var p=_.S("web_enable_shorts_new_carousel_single_instance")?".reel-video-in-sequence-new":"ytd-reel-video-renderer.reel-video-in-sequence";p=[].concat(_.se(_.n(this.hostElement).querySelectorAll(p)));p=_.a(p);for(var x=p.next();!x.done;x=p.next()){x=x.value;var F=void 0;(F=this.intersectionObserver)==null||F.observe(x)}};
_.l.initCsi=function(){_.WGe("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var p={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"}},x,F;if((x=this.playerData)==null?0:(F=x.cacheMetadata)==null?0:F.isCacheHit)p.isCacheHit=!0;var N;if(x=(N=_.r(this.currentEndpoint,_.dX))==null?void 0:
N.prefetchTaskId)p.prefetchInfo={taskId:x};_.uA(p)};
_.l.isAd=function(){var p,x;return!!((p=_.r(this.currentEndpoint,_.dX))==null?0:(x=p.adClientParams)==null?0:x.isAd)};
_.l.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.l.getPlayerContainer=function(){var p;return(p=_.S("web_enable_shorts_new_carousel_single_instance")?_.n(this.hostElement).querySelector("ytd-reel-video-renderer"):this.getActiveReelVideo(this.index))==null?void 0:p.playerContainer};
_.l.onPlayerStateChange=function(p){var x=this;this.isPlayerPaused=p===2;p!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?p===1&&this.index===0&&(this.isPlayerStarted||_.Bi().dispatch(Gmb(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Bi().dispatch(Gmb(!0)));this.player&&!this.player.getLoopVideo()&&_.E0.addLowPriorityJob(function(){x.getShortsLoopSetting().then(function(N){var h;(h=x.player)==null||h.setLoopVideo(N)})});
if(p===0&&_.S("kevlar_shorts_auto_advance"))if(p=this.getActiveReelVideo(this.index),this.isInBackground()){var F=this.getPlayableNextIndex();if(F==null)return;this.gestureType="INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED";this.loadVideo(F,!0)}else p.isWatchWhileMode&&!_.S("shorts_aa_ignore_ww")?(F=this.player)==null||F.seekToStreamTime(0):this.handleNextButtonClick(void 0,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");this.isPlayerPaused&&_.S("web_shorts_paused_state_logging")&&_.P5(_.b0(),[this.reelPlayerPausedStateRendererVe])};
_.l.isInBackground=function(){var p=window.document.visibilityState;return!(!p||p==="visible")};
_.l.isShortPlayable=function(){if(_.S("kevlar_playable_short_killswitch"))return!0;var p;return(p=this.playerData)!=null&&p.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.l.setNormalPlaybackSpeed=function(){var p=this,x,F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,p.getPlayer().getPlayerPromise(),2);x=N.yieldResult;F=x.getPlaybackRate();F!==1&&(p.storedPlaybackSpeed=F,x.setPlaybackRate(1));_.JB(N)})};
_.l.restorePlaybackSpeed=function(){var p=this,x;return _.D(function(F){if(F.nextAddress==1)return p.storedPlaybackSpeed===null?F.jumpTo(0):_.q(F,p.getPlayer().getPlayerPromise(),3);x=F.yieldResult;x.setPlaybackRate(p.storedPlaybackSpeed);p.storedPlaybackSpeed=null;_.JB(F)})};
_.l.playerDataChanged=function(){var p=this,x,F,N,h,c,M,f,K,t;return _.D(function(d){if(d.nextAddress==1){x=p.getPlayer();_.S("web_shorts_dynamic_intersection_observer_threshold")&&((F=p.intersectionObserver)==null||F.disconnect());if(p.playerData){if(((N=p.playerData.videoDetails)==null?void 0:N.videoId)!==((h=x.getPlayer())==null?void 0:h.getVideoData().video_id)){c={};if(M=_.r(p.currentEndpoint,_.dX))c.watch_endpoint=M,M.endTimeSeconds&&(c.end=M.endTimeSeconds);x.loadVideoWithPlayerResponse(p.playerData,
c)}}else return d.return();return p.player?d.jumpTo(2):_.q(d,x.getPlayerPromise(),3)}d.nextAddress!=2&&(p.player=d.yieldResult,p.JSC$19505_playerStateChangeListener=p.onPlayerStateChange.bind(p),p.player.addEventListener("onStateChange",p.JSC$19505_playerStateChangeListener),_.S("kevlar_client_enable_shorts_player_bootstrap")&&_.UW(),p.scrollToVideoThrottle.fire(p.index),p.movePlayerToVideo(p.index),_.E0.addLowPriorityJob(function(){p.getShortsLoopSetting().then(function(v){var C;(C=p.player)==null||
C.setLoopVideo(v)})}),_.kpI.resolve(p.player),p.player.syncVolume(),p.getPlayer().focusOnPlayer(),_.S("web_shorts_caption_language_entity_killswitch")||_.E0.addLowPriorityJob(function(){var v=_.J().resolve(_.pJ),C,X=(C=p.player)==null?void 0:C.getOption("captions","track");
ACP(v,X)}));
_.E0.addLowPriorityJob(function(){p.observeShorts()},100);
f=p.player.getPlayerState(p.player.getPresentingPlayerType());f!==1||p.isPlayerStarted||_.Bi().dispatch(Gmb(!0));p.updateBackNavContainerWidth();K=_.r(p.currentEndpoint,_.dX);((t=K)==null?0:t.startTimeSeconds)&&p.player.seekTo(K.startTimeSeconds);if(p.JSC$19505_cinematicController||p.cinematicsInitializeJobId)return d.return();p.cinematicsInitializeJobId=_.E0.addLowPriorityJob(function(){p.initCinematicController();p.cinematicsInitializeJobId=void 0});
_.JB(d)})};
_.l.onShortUndoDismiss=function(){var p=this,x=bZU().pop();x!==void 0&&(_.jB(this,function(){p.showCardWithIndex(x)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.l.onShortsDismiss=function(p){if(p=p.detail.reelDismissalActionRenderer)(p=_.r(p.onDismissalCompletionRenderer,_.LHe))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:p}}}),this.scrollAndDismissCard()};
_.l.processReelNonVideoContentDismissalCommand=function(p){var x=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);p=_.r(p,PBA);this.activeDimissalTimeout=setTimeout(function(){x.scrollAndDismissCard()},Number(p==null?void 0:p.delayMs))};
_.l.scrollAndDismissCard=function(){var p=this,x=this.index;bZU().push(x);_.jB(this,function(){var F=p.getPlayableNextIndex();F!==null&&(F=p.getActiveReelVideo(F),p.hideCardWithIndex(x),F==null||F.scrollIntoView({behavior:"smooth",block:"nearest",inline:p.enableScrollIntoViewCenter?"center":"start"}))})};
_.l.hideCardWithIndex=function(p){this.getActiveReelVideo(p).hidden=!0};
_.l.showCardWithIndex=function(p){this.getActiveReelVideo(p).hidden=!1};
_.l.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.l.activeChanged=function(p){_.Bi().dispatch(_.F4({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:p}}));if(p)document.addEventListener("keydown",_.p5(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var x;(x=this.player)==null||x.sendAbandonmentPing()}var F;(F=this.player)==null||F.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.p5(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.l.graftClientVisualElements=function(){if(this.data){var p=_.cl();_.kM6(p,_.qt({response:this.reelWatchSequenceResponse}));_.NJ(p,this.nextReelVe);_.NJ(p,this.prevReelVe);_.S("kevlar_shorts_auto_advance")&&(_.NJ(p,this.loopToggleOffVe),_.NJ(p,this.loopToggleOnVe));_.NJ(p,this.ambientModeToggleVe);_.P5(_.b0(),[this.nextReelVe,this.prevReelVe]);_.S("web_shorts_paused_state_logging")&&_.NJ(p,this.reelPlayerPausedStateRendererVe)}};
_.l.graftNvcRenderer=function(){var p,x,F,N,h=this.index<0?(p=this.shortsProcessedPrevSequence)==null?void 0:(x=p[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:x.command:(F=this.shortsProcessedSequence)==null?void 0:(N=F[this.index])==null?void 0:N.command;if(h&&this.isNonVideoContentCommand(h)){p=_.r(h,_.yf);var c,M;(p=(c=_.r(p==null?void 0:p.renderer,_.z26))==null?void 0:(M=c.loggingDirectives)==null?void 0:M.trackingParams)&&_.cl().graftServerVe(p)}};
_.l.setActiveIndex=function(){_.J().resolve(_.pJ).setActiveIndex(this.index)};
_.l.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.l.lazyUpdateMiniplayerData=function(){var p=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.E0.addLowPriorityJob(function(){p.updateMiniplayerData();p.updateMiniplayerDataJobId=void 0}))};
_.l.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.E0.cancelJob(this.updateMiniplayerDataJobId)};
_.l.updateMiniplayerData=function(){var p,x,F,N=_.J().resolve(_.H$),h={shortsData:this.getCurrentShort(),previousButtonDisabled:!((p=this.prevButtonData)==null||!p.isDisabled),nextButtonDisabled:!((x=this.nextButtonData)==null||!x.isDisabled),playabilityStatus:(F=this.playerData)==null?void 0:F.playabilityStatus};_.rQ(N,h)};
_.l.resetPlayerLocation=function(){var p=this.getPlayer();this.initialPlayerContainer&&(p.appendTo(this.initialPlayerContainer,void 0,!0),_.S("web_enable_shorts_new_carousel_single_instance")&&this.overlayContainer&&(this.initialPlayerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0))};
_.l.movePlayerToVideo=function(p,x){var F=this;x=x===void 0?!0:x;var N=this.getActiveReelVideo(p),h=this.getPlayer();if(N){if(_.S("web_enable_shorts_new_carousel_single_instance")){this.overlayContainer||(this.overlayContainer=_.n(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||h.appendTo(this.overlayContainer.playerContainer,void 0,!0));N.appendChild(this.overlayContainer);var c;(c=this.player)==null||c.setSize(NaN,NaN);_.vZ(_.E0,function(){F.isActive=
!0})}else this.isShortsMiniplayerActive()||h.appendTo(N.playerContainer,void 0,!0);
h.style.visibility="visible";_.S("reels_web_disable_rtr_tick")||_.S("reels_web_use_pbs_first_shorts")&&p===0||_.wH("r_tr");this.currentPlayerIndex=p;_.S("web_enable_shorts_new_carousel_single_instance")?N.appendChild(this.errorScreenContainer):N.playerContainer.appendChild(this.errorScreenContainer);this.maybeMoveCinematicsToVideo()}else x?_.E0.addLowPriorityJob(function(){F.movePlayerToVideo(F.index,!1)}):Math.random()<=_.Ud("web_shorts_error_logging_threshold")&&_.s$(new _.qE("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:x,
index:p}))};
_.l.enableFormatFirst=function(p){return _.S("web_enable_format_first")||p.adsOverlay&&_.S("web_enable_format_first_ads_only")||p.reelPlayerOverlayRenderer&&_.S("web_enable_format_first_organic_only")};
_.l.getAspectRatio=function(p){if(p!=null&&p.thumbnail&&this.enableFormatFirst(p))return"--ytd-shorts-player-ratio: "+JCK(p.thumbnail)};
_.l.getBackgroundImage=function(p){if(p!=null&&p.thumbnail){if(_.S("web_enable_format_first")){var x=JCK(p.thumbnail);this.hostElement.style.setProperty("--ytd-shorts-player-ratio",""+x)}return(p=_.j6(p.thumbnail.thumbnails))?'background-image:url("'+p+'");':"background-color:black;"}};
_.l.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.l.maybeMoveCinematicsToVideo=function(){var p=this;this.cinematicTransitionJobId&&_.E0.cancelJob(this.cinematicTransitionJobId);this.cinematicTransitionJobId=_.E0.addLowPriorityJob(function(){p.moveCinematicsToVideo()},500)};
_.l.moveCinematicsToVideo=function(){var p;(p=this.JSC$19505_cinematicController)!=null&&(p=p.currentCinematicEffect)!=null&&(p=p.storyboardManager,p.paused=!1,_.kBK(p),p.update());p=_.S("web_enable_shorts_new_carousel_single_instance")?_.n(this.hostElement).querySelector("ytd-reel-video-renderer"):this.getActiveReelVideo(this.index);(p==null?0:p.cinematicContainer)&&p.cinematicContainer!==this.shortsCinematicContainer.parentElement&&p.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.l.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.l.updatePrevButtonData=function(){var p=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(p){var x;this.prevButtonData=p=Object.assign({},p,{accessibility:{label:_.JG("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:p.isDisabled||this.index===-(((x=this.shortsProcessedPrevSequence)==null?void 0:x.length)||0),tooltip:this.isUpArrowHidden?"":_.JG("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=p=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.l.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.l.updateNextButtonData=function(){var p=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(p){var x;this.nextButtonData=p=Object.assign({},p,{accessibility:{label:_.JG("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:p.isDisabled||this.index===((x=this.shortsProcessedSequence)==null?void 0:x.length),tooltip:_.JG("NEXT_VIDEO_LABEL")||""})}};
_.l.getPlayablePreviousIndex=function(){for(var p,x=this.index-1;x>=-(((p=this.prevShortsSequence)==null?void 0:p.length)||0);x--)if(!bZU().includes(x))return x;return null};
_.l.getIndexInSequence=function(p,x){return p.findIndex(function(F){var N;return((N=_.r(F.command,_.dX))==null?void 0:N.videoId)===x})};
_.l.handlePrevButtonClick=function(p){var x=this,F,N;return _.D(function(h){F=x.getPlayablePreviousIndex();if(F===null)return h.return();x.gestureType=((N=p)==null?void 0:N.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";F===0&&(x.hidePreviousButtonImmediately=!0);if(x.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){x.transitionToVideoThrottle.fire(F)}),h.return();
x.scrollToVideoThrottle.fire(F);_.JB(h)})};
_.l.getPlayableNextIndex=function(){for(var p,x=this.index+1;x<(((p=this.shortsProcessedSequence)==null?void 0:p.length)||0);x++)if(!bZU().includes(x))return x;return null};
_.l.handleNextButtonClick=function(p,x){var F=this,N,h;return _.D(function(c){N=F.getPlayableNextIndex();if(N===null)return c.return();N===1&&(F.showPreviousButtonImmediately=!0);F.gestureType=((h=p)==null?void 0:h.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";x&&(F.gestureType=x);if(F.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){F.transitionToVideoThrottle.fire(N)}),c.return();
F.scrollToVideoThrottle.fire(N);_.JB(c)})};
_.l.handleReelNavigateCommand=function(p,x,F){(p=_.r(p,LnM))&&x&&p.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(F)};
_.l.loadVideo=function(p,x){var F=this;x=x===void 0?!1:x;if(p!==this.currentPlayerIndex){_.Bi().dispatch(Gmb(!1));if(this.isAd()&&!x){var N;(N=this.player)==null||N.notifyShortsAdSwipeEvent()}this.cinematicTransitionJobId&&_.E0.cancelJob(this.cinematicTransitionJobId);var h;(h=this.JSC$19505_cinematicController)==null||_.tD5(h);var c;(c=this.JSC$19505_cinematicController)==null||ujg(c);N=p>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(N));
this.getPlayer().style.visibility="hidden";_.S("web_enable_shorts_new_carousel_single_instance")&&this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var M,f,K,t;x=p<0?(M=this.shortsProcessedPrevSequence)==null?void 0:(f=M[this.shortsProcessedPrevSequence.length+p])==null?void 0:f.command:(K=this.shortsProcessedSequence)==null?void 0:(t=K[p])==null?void 0:t.command;this.index=p;this.gestureType||(this.gestureType=N?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");x&&this.isVideoContentCommand(x)&&(this.ytComponentBehavior.resolveCommand(x,{form:{createScreenConfig:{clickedVisualElement:N?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(x&&this.isNonVideoContentCommand(x)){this.currentEndpoint=x;this.data=void 0;M=_.cl();f=_.r(x,_.yf);var d,v;(f=(d=_.r(f==null?void 0:f.renderer,_.z26))==null?void 0:(v=d.screenLoggingData)==null?void 0:v.screenVeType)&&_.F8(M,
f);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo()}d=_.Ud("reels_enable_early_continuation_offset")<=0?1:_.Ud("reels_enable_early_continuation_offset");var C,X;if(((C=this.reelWatchSequenceResponse)==null?0:C.continuationEndpoint)&&((X=this.reelWatchSequenceResponse)==null?0:X.entries)&&p===this.reelWatchSequenceResponse.entries.length-d){var Q,b;C={contentPlaybackContext:_.vg({},(b=_.r((Q=this.currentEndpoint)==null?void 0:Q.commandMetadata,_.eq))==null?void 0:
b.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:C})}var A,Y,O;((A=this.reelWatchSequenceResponse)==null?0:A.prevContinuationEndpoint)&&p===-(((Y=this.reelWatchSequenceResponse)==null?void 0:(O=Y.prevEntries)==null?void 0:O.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint);!_.S("web_shorts_caption_language_entity_killswitch")&&this.player&&_.E0.addLowPriorityJob(function(){var Fw=
_.J().resolve(_.pJ),R,ld=(R=F.player)==null?void 0:R.getOption("captions","track");ACP(Fw,ld)})}};
_.l.setMiniplayerPreview=function(p){p=(p===void 0?0:p)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var x,F,N=_.J().resolve(_.H$),h={shortsData:void 0,shortsPreviewThumbnail:p?(x=this.shortsProcessedSequence)==null?void 0:(F=x[p])==null?void 0:F.thumbnail:void 0};_.rQ(N,h)};
_.l.updateTitle=function(p){var x,F;p=(p==null?0:p.adPlacements)?"":(F=p==null?void 0:(x=p.videoDetails)==null?void 0:x.title)!=null?F:"";_.hG(this.hostElement,"yt-update-title",p)};
_.l.registerPanel=function(p){var x=_.J().resolve(_.Xm);if(x){p=_.a(p.engagementPanels||[]);for(var F=p.next();!F.done;F=p.next()){F=F.value;var N=F.engagementPanelSectionListRenderer,h=void 0,c=void 0,M=void 0,f=void 0,K=((h=N)==null?void 0:h.targetId)||((c=N)==null?void 0:c.panelIdentifier)||((M=N)==null?void 0:(f=M.identifier)==null?void 0:f.tag);h=N=void 0;(h=(N=x).registerPanelContent)==null||h.call(N,K,F)}}};
_.l.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.Bi().dispatch(Gmb(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.Bi().dispatch(Yv6(!1));var p=_.J().resolve(_.pJ);p.dismissedIndices=[];p.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.J().resolve(_.H$).close(!0)};
_.l.processAppendReelWatchSequenceContinuationEntriesAction=function(p){var x=this,F;(F=this.intersectionObserver)==null||F.disconnect();p=p.appendReelWatchSequenceContinuationEntriesAction;if(p==null?0:p.entries){var N;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.se(((N=this.reelWatchSequenceResponse)==null?void 0:N.entries)||[]),_.se(p.entries)),continuationEndpoint:p.continuationEndpoint})}else if(p==null?0:p.prevEntries){var h;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.se(((h=this.reelWatchSequenceResponse)==null?void 0:h.prevEntries)||[]),_.se(p.prevEntries)),prevContinuationEndpoint:p.prevContinuationEndpoint});_.E0.addLowPriorityJob(function(){x.movePlayerToVideo(x.index);var c;(c=x.getActiveReelVideo(x.index))==null||c.scrollIntoView({block:"nearest",inline:x.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.E0.addLowPriorityJob(function(){x.observeShorts()},100)};
_.l.processWatchSequence=function(p){var x=this;return p.map(function(F){F=F.command;if(x.isVideoContentCommand(F)){var N=_.r(F,_.dX);return{reelPlayerOverlayRenderer:_.r(N==null?void 0:N.overlay,_.sLm),thumbnail:N.thumbnail,command:F}}return x.isNonVideoContentCommand(F)?(N=_.r(F,_.yf),{reelNonVideoContentRenderer:_.r(N==null?void 0:N.renderer,_.z26),command:F}):{command:F}})};
_.l.calculateIntersectionObserverThreshold=function(){if(!_.S("web_shorts_dynamic_intersection_observer_threshold"))return.6;var p=_.n(this.hostElement).querySelector("ytd-reel-video-renderer"),x=1;(p==null?0:p.offsetHeight)&&(p==null?0:p.offsetWidth)&&(x=Math.min(p.offsetHeight,this.shortsContainer.offsetHeight)/p.offsetHeight*(Math.min(p.offsetWidth,this.shortsContainer.offsetWidth)/p.offsetWidth));return Math.round(x*.6*10)/10};
_.l.isVideoContentCommand=function(p){_.J().resolve(_.pJ);return!!_.r(p,_.dX)};
_.l.isNonVideoContentCommand=function(p){_.J().resolve(_.pJ);return!!_.r(p,_.yf)};
_.l.initCinematicController=function(){var p=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19505_cinematicController=new _.Zo(this.shortsCinematicContainer,this.player);var x,F=_.r((x=this.data)==null?void 0:x.background,_.u5);_.ZZe(this.JSC$19505_cinematicController,F);_.qvM(this.JSC$19505_cinematicController,dIg(F));_.Kn6(this.JSC$19505_cinematicController);_.E0.addLowPriorityJob(function(){p.moveCinematicsToVideo()})}};
_.l.handleMiniplayerNavigateShorts=function(p){p==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():p==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.l.shouldDisplayReelVideoOverlay=function(p,x){return _.S("web_enable_shorts_new_carousel")?Math.abs(p-x)<2:!0};
_.R8.Object.defineProperties(h85.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.reelWatchSequenceResponse)!=null&&p.prevEntries)return this.processWatchSequence([].concat(_.se(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var p=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!p)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var x=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.se(this.prevShortsSequence.slice(0,x)),[p],_.se(this.prevShortsSequence.slice(x+
1)))}x=this.index+this.shortsProcessedPrevSequence.length;p.thumbnail=this.shortsProcessedPrevSequence[x].thumbnail;return[].concat(_.se(this.shortsProcessedPrevSequence.slice(0,x)),[p],_.se(this.shortsProcessedPrevSequence.slice(x+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.reelWatchSequenceResponse)!=null&&p.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var p=this.getCurrentShort();if(!p||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[p];if(p==null||!p.reelNonVideoContentRenderer){var x=this.getIndexInSequence(this.shortsSequence,_.r(this.currentEndpoint,_.dX).videoId);if(this.index===0&&x!==-1)return this.currentPlayerIndex=this.index=x,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.se(this.shortsSequence.slice(0,this.index)),[p],_.se(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){p.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var F,N,h,c;x=((N=_.r((F=this.shortsProcessedSequence[0])==null?void 0:F.command,_.dX))==null?void 0:N.videoId)===((c=_.r((h=this.shortsSequence[0])==null?void 0:h.command,_.dX))==null?void 0:c.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.se(this.shortsProcessedSequence.slice(0,
this.index)),[p],_.se(this.shortsSequence.slice(x)))}return[p].concat(_.se(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var p=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;p&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(p)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.reelWatchSequenceResponse)==null?0:p.entries)}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var p;(p=this.delayedActiveIndexUpdateDebouncer)==null||p.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return this.isShortPlayable()||((x=_.r((p=this.data)==null?void 0:p.watchStatus,_.VdZ))==null?void 0:(F=x.style)==null?void 0:F.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var p=this,x=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),F;if((this.data||x)&&(((F=this.data)==null?0:F.engagementPanels)||this.isAd()||x)){x=!1;this.activePanel="shorts-comments-panel";var N;F=_.a(((N=this.data)==null?void 0:N.engagementPanels)||[]);for(N=F.next();!N.done;N=F.next()){N=N.value.engagementPanelSectionListRenderer;var h=void 0,c=void 0,M=void 0,f=void 0;if((((h=N)==null?void 0:(c=h.identifier)==
null?void 0:c.tag)||((M=N)==null?void 0:M.targetId)||((f=N)==null?void 0:f.panelIdentifier))===this.activePanel){x=!0;break}}if(this.isPersistentPanelActive){var K=_.J().resolve(_.Xm);_.S("web_enable_shorts_new_carousel_single_instance")?_.vZ(_.E0,function(){K.showPanel(p.activePanel,void 0,void 0,void 0,null)},100):_.E0.addJob(function(){K.showPanel(p.activePanel,void 0,void 0,void 0,null)},0)}F=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);
N=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);if(F===void 0&&N===void 0||(F==null?0:F.isDisabled)||(N==null?void 0:N.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!x){var t,d,v=(t=this.data)==null?void 0:(d=t.engagementPanels)==null?void 0:d.findIndex(function(b){var A,Y;return((A=b.engagementPanelSectionListRenderer)==null?void 0:(Y=
A.identifier)==null?void 0:Y.tag)==="shorts-comments-panel"});
if(v!==-1&&v!==void 0){var C,X;(C=this.data)==null||(X=C.engagementPanels)==null||X.splice(v,1)}var Q;return[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.JG("COMMENTS",void 0,"Comments")}]},visibilityButton:_.xl({buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.JG("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:_.JG("COMMENTS_OFF",void 0,"Comments are turned off. ")},{text:" "},{text:_.JG("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(_.se(Object.values(((Q=this.data)==null?void 0:Q.engagementPanels)||{})))}return(v=this.data)==null?void 0:v.engagementPanels}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.shortsProcessedSequence)==null?void 0:p[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var p=this,x,F,N;if((x=this.playerData)==null?0:(F=x.playabilityStatus)==null?0:(N=F.errorScreen)==null?0:N.playerInterstitialRenderer)return _.E0.addLowPriorityJob(function(){p.movePlayerToVideo(p.index)}),this.playerData.playabilityStatus.errorScreen;
var h,c;return((h=this.data)==null?void 0:h.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((c=this.data)==null?0:c.watchStatus)&&_.r(this.data.watchStatus,_.Hqj)?(_.E0.addLowPriorityJob(function(){p.movePlayerToVideo(p.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.R8.Object.defineProperties(h85,{template:{configurable:!0,enumerable:!0,get:function(){if(Bln===void 0){var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <template is="dom-if" if="[[enableNewCarousel]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </div>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <template is="dom-if" if="[[!enableNewCarousel]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <ytd-reel-video-renderer class="reel-video-in-sequence style-scope ytd-shorts" data="[[item]]" disable-upgrade$="[[!shouldDisplayReelVideoOverlay(activeIndex, index)]]" has-error="[[errorScreen]]" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" index="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" is-active="[[isActiveReel(activeIndex,index,shortsProcessedPrevSequence)]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]">\n            </ytd-reel-video-renderer>\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          <ytd-reel-video-renderer class="reel-video-in-sequence style-scope ytd-shorts" data="[[item]]" disable-upgrade$="[[!shouldDisplayReelVideoOverlay(activeIndex, index)]]" has-error="[[hasError]]" id$="[[index]]" index="[[index]]" is-active="[[isActiveReel(activeIndex,index)]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]">\n          </ytd-reel-video-renderer>\n        </template>\n      </dom-repeat>\n    </template>\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enableNewCarousel]]" class="style-scope ytd-shorts">\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    </template>\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);Bln=p}p=Bln;return p}}});
var Xg=h85;Xg.prototype.onNextButtonDataChange=Xg.prototype.onNextButtonDataChange;Xg.prototype.onPrevButtonDataChange=Xg.prototype.onPrevButtonDataChange;Xg.prototype.lazyUpdateMiniplayerData=Xg.prototype.lazyUpdateMiniplayerData;Xg.prototype.onShortsPipActiveChanged=Xg.prototype.onShortsPipActiveChanged;Xg.prototype.setActiveIndex=Xg.prototype.setActiveIndex;Xg.prototype.graftNvcRenderer=Xg.prototype.graftNvcRenderer;Xg.prototype.graftClientVisualElements=Xg.prototype.graftClientVisualElements;
Xg.prototype.onActiveChanged=Xg.prototype.onActiveChanged;Xg.prototype.onShortsDismiss=Xg.prototype.onShortsDismiss;Xg.prototype.onShortUndoDismiss=Xg.prototype.onShortUndoDismiss;Xg.prototype.playerDataChanged=Xg.prototype.playerDataChanged;Xg.prototype.afterPlayerStarted=Xg.prototype.afterPlayerStarted;Xg.prototype.unhideCurrentOverlay=Xg.prototype.unhideCurrentOverlay;Xg.prototype.onServiceRequestCompleted=Xg.prototype.onServiceRequestCompleted;Xg.prototype.engagementPanelsChanged=Xg.prototype.engagementPanelsChanged;
Xg.prototype.onFullscreenChange=Xg.prototype.onFullscreenChange;Xg.prototype.onResize=Xg.prototype.onResize;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Xg.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.Gr.YtPageBehavior),_.k("design:type",Object)],Xg.prototype,"ytPageBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Xg.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.n7),_.k("design:type",Object)],Xg.prototype,"ironResizableBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Xg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],Xg.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.u(_.GM.YtdGuideStateAwareBehavior),_.k("design:type",Object)],Xg.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],Xg.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"playerData",void 0);_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"reelWatchSequenceResponse",void 0);_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"cachedReelWatchSequenceResponse",void 0);_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"currentEndpoint",void 0);_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"nextButtonData",void 0);_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"prevButtonData",void 0);
_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"isPreviousPageShorts",void 0);_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"index",void 0);_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"delayedActiveIndex",void 0);_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"playablePreviousIndex",void 0);_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"player",void 0);_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"isPlayerPaused",void 0);
_.B([_.H({selector:Svz}),_.k("design:type",Object)],Xg.prototype,"isPlayerStarted",void 0);_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"intersectionObserver",void 0);_.B([_.H(),_.k("design:type",Number)],Xg.prototype,"cinematicsInitializeJobId",void 0);_.B([_.H(),_.k("design:type",Number)],Xg.prototype,"cinematicTransitionJobId",void 0);_.B([_.H(),_.k("design:type",Number)],Xg.prototype,"updateMiniplayerDataJobId",void 0);
_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"fitToVisibleBounds",void 0);_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"pageSubtype",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Xg.prototype,"panelShowDelayMs",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],Xg.prototype,"enablePreviousContinuation",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Xg.prototype,"shortsPipEnabled",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Xg.prototype,"isDark",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Xg.prototype,"shortsViewTransitions",void 0);_.B([_.H({selector:_.JI,reflectToAttribute:!0}),_.k("design:type",Object)],Xg.prototype,"isFullscreen",void 0);_.B([_.H({selector:_.CE,reflectToAttribute:!0}),_.k("design:type",Object)],Xg.prototype,"isShortsPipActive",void 0);
_.B([_.Ff("#shorts-inner-container"),_.k("design:type",HTMLElement)],Xg.prototype,"shortsInnerContainer",void 0);_.B([_.Ff("#back-nav-button ytd-button-renderer"),_.k("design:type",_.LX)],Xg.prototype,"backNavButton",void 0);_.B([_.Ff("#shorts-container"),_.k("design:type",HTMLElement)],Xg.prototype,"shortsContainer",void 0);_.B([_.$W("error-screen"),_.k("design:type",HTMLElement)],Xg.prototype,"errorScreenContainer",void 0);
_.B([_.$W("player"),_.k("design:type",Object)],Xg.prototype,"playerElement",void 0);_.B([_.$W("shorts-cinematic-container"),_.k("design:type",HTMLElement)],Xg.prototype,"shortsCinematicContainer",void 0);_.B([_.$W("initial-player-container"),_.k("design:type",HTMLElement)],Xg.prototype,"initialPlayerContainer",void 0);_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"buttonOverride",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Xg.prototype,"anchoredPanelActive",void 0);
_.B([_.H(),_.k("design:type",String)],Xg.prototype,"activePanel",void 0);_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"isActive",void 0);_.B([_.H({selector:CBA,reflectToAttribute:!0}),_.k("design:type",Object)],Xg.prototype,"smallScreenPersistentPanel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Xg.prototype,"isPersistentPanelActive",void 0);_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"smallScreenSqueezeBack",void 0);
_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"enableScrollIntoViewCenter",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Xg.prototype,"formatFirst",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Xg.prototype,"enableFlexibleOverlay",void 0);_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"panelContainer",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Xg.prototype,"enableNewCarousel",void 0);
_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"overlayContainer",void 0);_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"isShortsInitialized",void 0);_.B([_.w("reelWatchSequenceResponse"),_.k("design:type",Object),_.k("design:paramtypes",[])],Xg.prototype,"prevShortsSequence",null);_.B([_.w("data","prevShortsSequence"),_.k("design:type",Object),_.k("design:paramtypes",[])],Xg.prototype,"shortsProcessedPrevSequence",null);
_.B([_.w("reelWatchSequenceResponse"),_.k("design:type",Object),_.k("design:paramtypes",[])],Xg.prototype,"shortsSequence",null);_.B([_.w("data","shortsSequence"),_.k("design:type",Object),_.k("design:paramtypes",[])],Xg.prototype,"shortsProcessedSequence",null);
_.B([_.H({reflectToAttribute:!0}),_.w("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Xg.prototype,"isUpArrowHidden",null);_.B([_.H({reflectToAttribute:!0}),_.w("reelWatchSequenceResponse"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Xg.prototype,"isDownArrowHidden",null);
_.B([_.H(),_.w("index"),_.k("design:type",Number),_.k("design:paramtypes",[])],Xg.prototype,"activeIndex",null);_.B([_.w("isShortPlayable","data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Xg.prototype,"shouldRenderOfflineContent",null);_.B([_.V("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xg.prototype,"onResize",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Xg.prototype,"anchoredEngagementPanels",null);
_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"watchWhileEngagementPanels",void 0);_.B([_.W("isFullscreen"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xg.prototype,"onFullscreenChange",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xg.prototype,"engagementPanelsChanged",null);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Ht]),_.k("design:returntype")],Xg.prototype,"onServiceRequestCompleted",null);_.B([_.w("data","shortsSequence","index"),_.k("design:type",Object),_.k("design:paramtypes",[])],Xg.prototype,"activeReel",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xg.prototype,"unhideCurrentOverlay",null);
_.B([_.W("isPlayerStarted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xg.prototype,"afterPlayerStarted",null);_.B([_.w("playerData","reelWatchSequenceResponse","data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Xg.prototype,"errorScreen",null);_.B([_.w("errorScreen"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Xg.prototype,"hasError",null);
_.B([_.W("playerData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],Xg.prototype,"playerDataChanged",null);_.B([_.V("yt-dismissible-item-undo-feedback"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xg.prototype,"onShortUndoDismiss",null);_.B([_.V("yt-disable-lockup-interaction"),_.k("design:type",Function),_.k("design:paramtypes",[Object]),_.k("design:returntype")],Xg.prototype,"onShortsDismiss",null);
_.B([_.cT("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xg.prototype,"onActiveChanged",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xg.prototype,"graftClientVisualElements",null);_.B([_.W("currentPlayerIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xg.prototype,"graftNvcRenderer",null);
_.B([_.W("index"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xg.prototype,"setActiveIndex",null);_.B([_.W("isShortsPipActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xg.prototype,"onShortsPipActiveChanged",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xg.prototype,"lazyUpdateMiniplayerData",null);
_.B([_.H(),_.k("design:type",Object)],Xg.prototype,"onOverlayDensityChanged",void 0);_.B([_.W("index","data","isUpArrowHidden"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xg.prototype,"onPrevButtonDataChange",null);_.B([_.W("index","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xg.prototype,"onNextButtonDataChange",null);Xg=_.B([_.L({is:"ytd-shorts"})],Xg);_.Qx.registerService(_.xvp,Xg);
_.z4();
}catch(e){_._DumpException(e)}
try{
_.QH("JzFVk");
var Bp8=function(p){return _.Z("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},TpX(p.data.ctaButton,{buttonViewModel:{}}),_.Z(_.KQ,{text:p.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var RBX;var kEe;var U6t=function(){return _.m.apply(this,arguments)||this};
_.E(U6t,_.m);U6t.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
U6t.prototype.computeBlueBottomLink=function(p){return p};
var RV=U6t;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],RV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],RV.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],RV.prototype,"data",void 0);_.B([_.H({computed:"computeIcon_(data.bottomIcon)"}),_.k("design:type",String)],RV.prototype,"bottomIcon",void 0);
_.B([_.H({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.k("design:type",Boolean)],RV.prototype,"enableBlueBottomLink",void 0);RV=_.B([_.L({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],RV);
_.P(RV,"ytd-web-answer-renderer",function(){if(kEe!==void 0)return kEe;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return kEe=p},{mode:_.UQ("kevlar_poly_si_batch_j035")?1:2});var ikH;var IsD=function(){var p=_.m.apply(this,arguments)||this;p.hasChipBar=!1;return p};
_.E(IsD,_.m);IsD.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}}};
IsD.prototype.computeHasChipBar=function(p){return!(p==null||!p.chipBar)};
var kN=IsD;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],kN.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],kN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],kN.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.k("design:type",Object)],kN.prototype,"hasChipBar",void 0);
kN=_.B([_.L({is:"ytd-search-header-renderer",disableElementRegistration:!0})],kN);
_.P(kN,"ytd-search-header-renderer",function(){if(ikH!==void 0)return ikH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return ikH=p},{mode:1});var $6c;var eB8=function(){return _.m.apply(this,arguments)||this};
_.E(eB8,_.m);eB8.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var Uw=eB8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Uw.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Uw.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Uw.prototype,"data",void 0);Uw=_.B([_.L({disableElementRegistration:!0,is:"ytd-page-continuation"})],Uw);
_.P(Uw,"ytd-page-continuation",function(){if($6c!==void 0)return $6c;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return $6c=p},{mode:1});var prP;var xmE;var FHU;var NkA=function(){return _.m.apply(this,arguments)||this};
_.E(NkA,_.m);var hEA=NkA;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],hEA.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],hEA.prototype,"data",void 0);hEA=_.B([_.L({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],hEA);
_.P(hEA,"ytd-watch-card-one-vs-one-event",function(){if(FHU!==void 0)return FHU;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return FHU=p},{mode:1});var lZo=function(){return _.m.apply(this,arguments)||this};
_.E(lZo,_.m);var czg=lZo;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],czg.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],czg.prototype,"data",void 0);czg=_.B([_.L({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],czg);
_.P(czg,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(xmE!==void 0)return xmE;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return xmE=p},{mode:1});var aZg;var MpM=function(){return _.m.apply(this,arguments)||this};
_.E(MpM,_.m);var DmM=MpM;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],DmM.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],DmM.prototype,"data",void 0);DmM=_.B([_.L({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],DmM);
_.P(DmM,"ytd-banner-and-box-hero-image-renderer",function(){if(aZg!==void 0)return aZg;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return aZg=p},{mode:1});var fZl;var KHA=function(){var p=_.m.apply(this,arguments)||this;p.modern=_.S("web_modern_buttons");return p};
_.E(KHA,_.m);KHA.prototype.computeIcon=function(){var p,x,F=(p=this.data)==null?void 0:(x=p.icon)==null?void 0:x.iconType;if(F)return _.eA(F)};
KHA.prototype.computeButtonShape=function(){var p;return{buttonText:_.Pi((p=this.data)==null?void 0:p.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.R8.Object.defineProperties(KHA.prototype,{buttonColor:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style.replace("CALL_TO_ACTION_BUTTON_RENDERER_STYLE_",""):"RED"}}});
var i4=KHA;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],i4.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],i4.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],i4.prototype,"modern",void 0);_.B([_.H({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.w("data.style"),_.k("design:type",Object),_.k("design:paramtypes",[])],i4.prototype,"buttonColor",null);
i4=_.B([_.L({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],i4);
_.P(i4,"ytd-call-to-action-button-renderer",function(){if(fZl!==void 0)return fZl;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return fZl=p},{mode:1});var qM5;var Zp6=function(){return _.m.apply(this,arguments)||this};
_.E(Zp6,_.m);Zp6.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.n(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.Ou(this.data.leftThumbnail.thumbnails,216)+")")};
var IV=Zp6;IV.prototype.onLeftThumbnailChanged=IV.prototype.onLeftThumbnailChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],IV.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],IV.prototype,"data",void 0);_.B([_.W("data.leftThumbnail"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IV.prototype,"onLeftThumbnailChanged",null);IV=_.B([_.L({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],IV);
_.P(IV,"ytd-collage-hero-image-renderer",function(){if(qM5!==void 0)return qM5;var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return qM5=p},{mode:1});var tpl;var dmK=function(){return _.m.apply(this,arguments)||this};
_.E(dmK,_.m);dmK.prototype.computeStyle=function(p){return p};
var $N=dmK;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],$N.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.k("design:type",String)],$N.prototype,"componentStyle",void 0);$N=_.B([_.L({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],$N);
_.P($N,"ytd-single-hero-image-renderer",function(){if(tpl!==void 0)return tpl;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return tpl=p},{mode:1});var v$K;var JzM=function(){return _.m.apply(this,arguments)||this};
_.E(JzM,_.m);_.l=JzM.prototype;
_.l.configureRendererStamper=function(){return{"data.heroImage":{id:"hero-image",mapping:{bannerAndBoxHeroImageRenderer:"ytd-banner-and-box-hero-image-renderer",singleHeroImageRenderer:"ytd-single-hero-image-renderer",collageHeroImageRenderer:"ytd-collage-hero-image-renderer"}},"data.callToActionButton":{id:"call-to-action-button",mapping:{callToActionButtonRenderer:"ytd-call-to-action-button-renderer"}},"data.reminderButton":{id:"reminder-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",
buttonRenderer:"ytd-button-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:"ytd-thumbnail-overlay-side-panel-renderer",thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayToggleButtonRenderer:"ytd-thumbnail-overlay-toggle-button-renderer"},
initialRenderPriority:_.S("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.l.computeSubtitle=function(p){if(this.data){var x;if(this.data.upcomingEventData){p=_.Pi(p.subtitle);var F=Number(this.data.upcomingEventData.startTime);isNaN(F)||(x=_.L1(_.yP(p,F)))}else x=p.subtitle;return x}};
_.l.onHeroTap=function(p){p.preventDefault();var x=this.data&&this.data.navigationEndpoint;!x||!_.mx(_.m9(p),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.mx(_.m9(p),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.S("kevlar_watchcard_hero_video_renderer_killswitch")?_.hG(this.hostElement,"yt-navigate",{navigationEndpoint:x}):this.ytComponentBehavior.resolveCommand(x))};
_.l.computeHeroTabIndex=function(p){return p&&p.simpleText?-1:0};
_.l.computeHeroRole=function(p){return p&&p.simpleText?"":"link"};
_.l.computeIsReminderButtonPresent=function(p){return!(!p||!p.reminderButton)};
_.l.computeHideBottomItems=function(p){return!(this.computeIsReminderButtonPresent(p)||p.subtitle)};
_.l.dataChanged=function(){var p=this.get("data.buttons.buttonRenderer.serviceEndpoint"),x;((x=_.r(p==null?void 0:p.commandMetadata,_.gA))==null?0:x.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(p)};
var e5=JzM;e5.prototype.dataChanged=e5.prototype.dataChanged;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],e5.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],e5.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],e5.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],e5.prototype,"data",void 0);
_.B([_.H({computed:"computeSubtitle(data)"}),_.k("design:type",String)],e5.prototype,"subtitle",void 0);_.B([_.H({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],e5.prototype,"isReminderButtonPresent",void 0);_.B([_.H({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],e5.prototype,"hideBottomItems",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],e5.prototype,"dataChanged",null);e5=_.B([_.L({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],e5);
_.P(e5,"ytd-watch-card-hero-video-renderer",function(){if(v$K!==void 0)return v$K;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return v$K=p},{mode:1});var Cdb;var SMA=function(){return _.m.apply(this,arguments)||this};
_.E(SMA,_.m);_.l=SMA.prototype;_.l.configureRendererStamper=function(){return{"data.callToActionButtons":{id:"call-to-action-buttons",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.l.computeTitleBadges=function(p){return p?[p]:[]};
_.l.computeHeaderStyle=function(p){return p?p.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.l.computeAvatarAriaLabel=function(p){if(p){var x,F,N,h;return(h=(x=p.avatar)==null?void 0:(F=x.accessibility)==null?void 0:(N=F.accessibilityData)==null?void 0:N.label)!=null?h:_.Pi(p==null?void 0:p.title)}};
_.l.computeAvatarHeight=function(p){return p==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.l.computeBadgeRowClass=function(p){return(p==null?0:p[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
var pC=SMA;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],pC.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],pC.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],pC.prototype,"data",void 0);_.B([_.H({computed:"computeTitleBadges(data.titleBadge)"}),_.k("design:type",Array)],pC.prototype,"titleBadges",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.k("design:type",String)],pC.prototype,"headerStyle",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.k("design:type",String)],pC.prototype,"badgeRowClass",void 0);pC=_.B([_.L({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],pC);
_.P(pC,"ytd-watch-card-rich-header-renderer",function(){if(Cdb!==void 0)return Cdb;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Cdb=p},{mode:1});var rzU;var E$5;var XrM=function(){return _.m.apply(this,arguments)||this};
_.E(XrM,_.m);XrM.prototype.onMetadataTap=function(p){var x=this.data&&this.data.navigationEndpoint;x&&!_.mx(_.m9(p),this.hostElement,["A".toString()])&&_.hG(this.hostElement,"yt-navigate",{endpoint:x})};
_.R8.Object.defineProperties(XrM.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 p;if(this.data.upcomingEventData){var x=_.Pi(this.data.subtitle),F=Number(this.data.upcomingEventData.startTime);isNaN(F)||(p=_.L1(_.yP(x,F)))}else p=this.data.subtitle;return p}}}});
var xn=XrM;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],xn.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],xn.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("data.style"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xn.prototype,"isCondensed",null);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],xn.prototype,"subtitle",null);
xn=_.B([_.L({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],xn);
_.P(xn,"ytd-watch-card-compact-video-renderer",function(){if(E$5!==void 0)return E$5;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return E$5=p},{mode:1});var g$A;var QJU=function(){return _.m.apply(this,arguments)||this};
_.E(QJU,_.m);var zEl=QJU;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],zEl.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],zEl.prototype,"data",void 0);zEl=_.B([_.L({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],zEl);
_.P(zEl,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(g$A!==void 0)return g$A;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return g$A=p},{mode:1});var sJK=function(){return _.m.apply(this,arguments)||this};
_.E(sJK,_.m);sJK.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{watchCardCompactVideoRenderer:{component:"ytd-watch-card-compact-video-renderer",noInjection:!0},watchCardOneVsOneEventCompactVideoRenderer:{component:"ytd-watch-card-one-vs-one-event-compact-video-renderer",noInjection:!0}}}}};
var Fg=sJK;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Fg.prototype,"ytRendererStamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Fg.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Fg.prototype,"data",void 0);Fg=_.B([_.L({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],Fg);
_.P(Fg,"ytd-vertical-watch-card-list-renderer",function(){if(rzU!==void 0)return rzU;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return rzU=p},{mode:1});var n$5;var yzl=function(){var p=_.m.apply(this,arguments)||this;p.ariaExpanded="false";return p};
_.E(yzl,_.m);_.l=yzl.prototype;_.l.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.l.dataChanged=function(){var p;this.currentSeasonIndex=((p=this.data)==null?void 0:p.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.l.computeEpisodesInfo=function(p,x,F){if(p!==void 0&&x.length===p.length)return p[F]};
_.l.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.l.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.l.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.l.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.l.getUppercaseSimpleString=function(p){return this.ytRendererBehavior.getSimpleString(p).toUpperCase()};
_.l.updateCurrentSeasonIndexFromBinding=function(p){this.currentSeasonIndex=p.detail.value};
var Nv=yzl;Nv.prototype.onIronOverlayClosed=Nv.prototype.onIronOverlayClosed;Nv.prototype.currentSeasonIndexChanged=Nv.prototype.currentSeasonIndexChanged;Nv.prototype.dataChanged=Nv.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Nv.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Nv.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",String)],Nv.prototype,"label",void 0);_.B([_.H({value:0}),_.k("design:type",Number)],Nv.prototype,"currentSeasonIndex",void 0);_.B([_.H({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.k("design:type",Object)],Nv.prototype,"episodesInfo",void 0);_.B([_.H({value:"false"}),_.k("design:type",Object)],Nv.prototype,"ariaExpanded",void 0);_.B([_.Ff("#lists"),_.k("design:type",Object)],Nv.prototype,"lists",void 0);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Nv.prototype,"dataChanged",null);_.B([_.cT("currentSeasonIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Nv.prototype,"currentSeasonIndexChanged",null);_.B([_.V("iron-overlay-closed"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],Nv.prototype,"onIronOverlayClosed",null);
Nv=_.B([_.L({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Nv);
_.P(Nv,"ytd-watch-card-section-dropdown-renderer",function(){if(n$5!==void 0)return n$5;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return n$5=p},{mode:1});var bp5;var AzA=function(){var p=_.m.apply(this,arguments)||this;p.isSearch=!1;return p};
_.E(AzA,_.m);AzA.prototype.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:{component:"ytd-vertical-watch-card-list-renderer",noInjection:!0},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}}}};
var hP=AzA;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],hP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],hP.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],hP.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],hP.prototype,"isSearch",void 0);hP=_.B([_.L({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],hP);
_.P(hP,"ytd-watch-card-section-sequence-renderer",function(){if(bp5!==void 0)return bp5;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);
return bp5=p},{mode:1});var TpX=_.JR({buttonViewModel:_.nV});_.iK(Bp8);_.kL(Bp8,"ytd-button-banner-view-model",{propNames:["data"]});var uw5=function(){var p=_.m.apply(this,arguments)||this;p.isSearch=!1;return p};
_.E(uw5,_.m);
uw5.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{watchCardRichHeaderRenderer:{component:"ytd-watch-card-rich-header-renderer",noInjection:!0}}},"data.callToAction":{id:"hero",mapping:{watchCardHeroVideoRenderer:{component:"ytd-watch-card-hero-video-renderer",noInjection:!0},watchCardHeroOneVsOneEventRenderer:{component:"ytd-watch-card-hero-one-vs-one-event-renderer",noInjection:!0}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0}}},
"data.sections":{id:"sections",mapping:{watchCardSectionDropdownRenderer:{component:"ytd-watch-card-section-dropdown-renderer",noInjection:!0},watchCardSectionSequenceRenderer:{component:"ytd-watch-card-section-sequence-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}},"data.footer":{id:"footer",mapping:{buttonBannerViewModel:"ytd-button-banner-view-model"}}}};
var l6=uw5;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],l6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],l6.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],l6.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],l6.prototype,"rounded",void 0);_.B([_.H(),_.k("design:type",Object)],l6.prototype,"isSearch",void 0);
l6=_.B([_.L({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],l6);
_.P(l6,"ytd-universal-watch-card-renderer",function(){if(prP!==void 0)return prP;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return prP=p},{mode:1});var YMg;_.o7(_.mO(function(p){var x=p.data;var F;p=!((F=_.J().resolve(_.Bw(_.AD)))==null||!F());F={};return _.Z("overview-message-view-model",{class:_.$L("ytwOverviewMessageViewModelHost",(F.ytwOverviewMessageViewModelDarkBackground=p,F.ytwOverviewMessageViewModelLightBackground=!p,F))},_.Z(_.D9,{cond:function(){return x().primaryImage},
then:function(N){return _.Z(_.VE,{data:N,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.Z(_.D9,{cond:function(){return x().primaryText},
then:function(){return _.Z("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.Z(_.KQ,{text:function(){return x().primaryText}}))}}),_.Z(_.D9,{cond:function(){return x().secondaryText},
then:function(){return _.Z("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.Z(_.KQ,{text:function(){return x().secondaryText}}))}}))},"Jh"),"overview-message-view-model",{props:{data:_.G2}});_.kL(_.g$m,"ytd-overview-answer-view-model",{propNames:["data"]});var wrA=function(){return _.m.apply(this,arguments)||this};
_.E(wrA,_.m);wrA.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"}}}};
wrA.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
var cY=wrA;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],cY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],cY.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.Vw),_.k("design:type",Object)],cY.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],cY.prototype,"data",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],cY.prototype,"isSearch",void 0);
cY=_.B([_.L({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],cY);
_.P(cY,"ytd-secondary-search-container-renderer",function(){if(YMg!==void 0)return YMg;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);
return YMg=p},{mode:1});var GBl;var VpM=function(){var p=_.m.apply(this,arguments)||this;p.renderSecondarySearchContainer=!1;p.isSearch=!1;p.isSearchDova=_.S("dova_on_search");return p};
_.E(VpM,_.m);_.l=VpM.prototype;_.l.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"}}}};
_.l.created=function(){var p=this;this.boundStampSecondarySearchContainerIfFits=function(){p.stampSecondarySearchContainerIfFits()};
_.zn("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.l.computeIsSearchFrictionPage=function(p){var x,F,N,h,c;p=p==null?void 0:(x=p.primaryContents)==null?void 0:(F=x.sectionListRenderer)==null?void 0:(N=F.contents)==null?void 0:(h=N[0])==null?void 0:(c=h.itemSectionRenderer)==null?void 0:c.contents;if(!p)return!1;x=_.a(p);for(F=x.next();!F.done;F=x.next())if(N=void 0,(N=F.value)==null?0:N.searchFrictionViewModel)return!0;return!1};
_.l.computeShowSecondaryColumn=function(p,x){return!!(x&&x.secondaryContents&&p)};
_.l.activeChanged=function(){var p=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.p5(this,this.debounceStampSecondarySearchContainerIfFits)),_.zD(function(){p.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.p5(this,this.debounceStampSecondarySearchContainerIfFits))};
_.l.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.l.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.l.debounceStampSecondarySearchContainerIfFits=function(){_.sQ(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.l.onRetrieveLocation=function(p,x){x.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);p.stopPropagation()};
_.l.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
var aH=VpM;aH.prototype.dataChanged=aH.prototype.dataChanged;aH.prototype.onRetrieveLocation=aH.prototype.onRetrieveLocation;aH.prototype.persistentGuideChanged=aH.prototype.persistentGuideChanged;aH.prototype.activeChanged=aH.prototype.activeChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],aH.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],aH.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.GM.YtdGuideStateAwareBehavior),_.k("design:type",Object)],aH.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.u(_.n7),_.k("design:type",Object)],aH.prototype,"ironResizableBehavior",void 0);_.B([_.H(),_.k("design:type",Boolean)],aH.prototype,"active",void 0);_.B([_.H(),_.k("design:type",Object)],aH.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,value:function(){return _.S("enable_desktop_search_bigger_thumbs")}}),
_.k("design:type",Boolean)],aH.prototype,"useBiggerThumbs",void 0);_.B([_.H({reflectToAttribute:!0,value:function(){return _.iO("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],aH.prototype,"biggerThumbsStyle",void 0);_.B([_.H(),_.k("design:type",Object)],aH.prototype,"renderSecondarySearchContainer",void 0);_.B([_.H({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.k("design:type",Boolean)],aH.prototype,"showSecondaryColumn",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.k("design:type",Boolean)],aH.prototype,"isSearchFrictionPage",void 0);
_.B([_.H(),_.k("design:type",Object)],aH.prototype,"isSearch",void 0);_.B([_.H(),_.k("design:type",Object)],aH.prototype,"isSearchDova",void 0);_.B([_.W("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],aH.prototype,"activeChanged",null);_.B([_.W("guidePersistentAndVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],aH.prototype,"persistentGuideChanged",null);
_.B([_.V("yt-retrieve-location"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],aH.prototype,"onRetrieveLocation",null);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],aH.prototype,"dataChanged",null);aH=_.B([_.L({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],aH);
_.P(aH,"ytd-two-column-search-results-renderer",function(){if(GBl!==void 0)return GBl;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return GBl=p},{mode:1});var WHA=function(){var p=_.m.apply(this,arguments)||this;p.hasSearchHeader=!1;p.hasSecondaryContent=!1;p.hasBiggerThumbs=_.S("enable_desktop_search_bigger_thumbs");p.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return p};
_.E(WHA,_.m);_.l=WHA.prototype;_.l.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{searchHeaderRenderer:{component:"ytd-search-header-renderer"}}},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:_.bw(["aa","eocs"])}}};
_.l.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.l.loadPage_=function(p){this.initCsi();p&&(this.data=p,_.zn("REFINEMENTS_TUPLE",["FromSearchResponse",p.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.on(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.l.initCsi=function(){_.WGe("results",["ol","cpt"])};
_.l.updateTitle=function(){var p=_.YC(window.location.href,"q");p||(p=_.YC(window.location.href,"search_query"));_.hG(this.hostElement,"yt-update-title",p||"")};
_.l.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.l.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.S("web_srp_data_changed_terminate_imp_killswitch")||_.lA(this.hostElement,"yt-terminate-video-preview-action")};
_.l.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.l.computeHasSearchHeader=function(p){var x;p=p==null?void 0:(x=p.header)==null?void 0:x.searchHeaderRenderer;return!!p&&(!!p.searchFilterButton||!!p.chipBar)};
_.l.computeHasSecondaryContent=function(p){var x,F;return!!(p==null?0:(x=p.contents)==null?0:(F=x.twoColumnSearchResultsRenderer)==null?0:F.secondaryContents)};
_.R8.Object.defineProperties(WHA,{template:{configurable:!0,enumerable:!0,get:function(){if(RBX===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);RBX=p}p=RBX;return p}}});
var Mv=WHA;Mv.prototype.onReloadContinuationFinish=Mv.prototype.onReloadContinuationFinish;Mv.prototype.dataChanged=Mv.prototype.dataChanged;_.B([_.u(_.Gr.YtPageBehavior),_.k("design:type",Object)],Mv.prototype,"ytPageBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Mv.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Mv.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Mv.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.Vw),_.k("design:type",Object)],Mv.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Mv.prototype,"data",void 0);_.B([_.H({value:!0}),_.k("design:type",Boolean)],Mv.prototype,"monitorScroll",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Mv.prototype,"hasSearchHeader",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Mv.prototype,"hasSecondaryContent",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Mv.prototype,"hasBiggerThumbs",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mv.prototype,"dataChanged",null);
_.B([_.V("yt-reload-continuation-finish"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mv.prototype,"onReloadContinuationFinish",null);Mv=_.B([_.L({is:"ytd-search"})],Mv);_.Qx.registerService(_.pYr,Mv);
_.z4();
}catch(e){_._DumpException(e)}
try{
_.QH("h8y2qb");
var mVm=function(p){if(p=_.NUp(p)){var x;(x=p.sources)!=null&&x[0]?(x=_.ljw(p),x=x<1?"VERTICAL":x>1?"HORIZONTAL":"SQUARE"):x=void 0;return x}},VQ=function(p){_.rJ.call(this,"upload");
this.opts.query=p},OxX=function(p,x){return _.Z(oNH,{data:p,
onYtNavigate:x})},LG8=function(p,x){return p.map(function(F){if(F.tabRenderer)return jV8(F.tabRenderer);
if(F.expandableTabRenderer&&x){var N=F.expandableTabRenderer;return{customTabRenderable:function(){return x(N)}}}return{}})},jV8=function(p){return{identifier:p.tabIdentifier,
aTagConfig:_.zT({innertubeCommand:p.endpoint,forceNewState:!0}),title:p.title,selected:p.selected,disabled:p.unselectable}},P48=function(p,x){return _.M4(p.entities,"pageHeaderEntity",x)},Rom=function(p){var x=p.data;
var F=p.noPadding===void 0?!1:p.noPadding;var N=p.enableBanner===void 0?!1:p.enableBanner;var h=p.cinematicContainerTopbarOffset;var c=p.allowCinematicContainerOverflow===void 0?!1:p.allowCinematicContainerOverflow;p=p.displayAsSidebar===void 0?!1:p.displayAsSidebar;if(x==null?0:x.tagManagerId)_.tA(x.tagManagerId,_.sd("GL")),TIc(x.tagManagerId);a:{if(x.pageHeaderEntityKey){var M=_.aC(P48,x.pageHeaderEntityKey);if(M==null?0:M.header){M=M==null?void 0:M.header;break a}}M=p&&x.sidebarContent?x.sidebarContent:
x.content}return _.Z("yt-page-header-renderer",{class:"page-header-renderer-wiz"},BIa(M,{pageHeaderViewModel:{noPadding:F,enableBanner:N,cinematicContainerTopbarOffset:h,allowCinematicContainerOverflow:c,displayAsSidebar:p&&x.enableSidebarView}}))},koD=function(p){return _.F4({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:p})},TIc=function(p){if(!_.Bt(document,"gtm-noscript")){var x=document.createElement("noscript");
x.id="gtm-noscript";x.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+p+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(x)}};_.NL(VQ,_.rJ);VQ.prototype.JSC$7931_setLabel=function(p){VQ.superClass_.JSC$7931_setLabel.call(this,p);return this};
VQ.prototype.addUploadMetadata=function(p,x){VQ.superClass_.addUploadMetadata.call(this,p,x);return this};var UVt=function(p){if(p!=="youtubebanner"&&p!=="youtube-channel-banner")throw Error("Sl");VQ.call(this,p)};
_.E(UVt,VQ);UVt.prototype.JSC$7931_setLabel=function(p){VQ.prototype.JSC$7931_setLabel.call(this,p);return this};
UVt.prototype.addUploadMetadata=function(p,x){VQ.prototype.addUploadMetadata.call(this,p,x);return this};var ixD=[_.n7,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(p){_.Ef(p).path[0]!==this&&(this.resetLayout(),p.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var p=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.hc(this._layoutDebouncer,_.Z$,p);_.l3(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var p=this;requestAnimationFrame(function(){p.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(p){this.resizerShouldNotify(p)&&this._notifyDescendant(p)},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 I6H=[_.RxJ,{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(p,x){var F=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[p];if(!F)throw new ReferenceError(this._getUndefinedMsg(p));p=this._boundEffect(F,x||{});p.setUp();return p},
_effectsChanged:function(p,x,F){this._tearDownEffects();p&&F&&(p.split(" ").forEach(function(N){var h;N!==""&&((h=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[N])?this._effects.push(this._boundEffect(h,x[N])):console.warn(this._getUndefinedMsg(N)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(p,x){x=x||{};var F=parseFloat(x.startsAt||0),N=parseFloat(x.endsAt||1),h=N-F,c=function(){};
N=F===0&&N===1?p.run:function(M,f){p.run.call(this,Math.max(0,(M-F)/h),f)};
return{setUp:p.setUp?p.setUp.bind(this,x):c,run:p.run?N.bind(this):c,tearDown:p.tearDown?p.tearDown.bind(this):c}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(p){p.setUp()!==!1&&this._effectsRunFn.push(p.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(p){p.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(p,x){this._effectsRunFn&&this._effectsRunFn.forEach(function(F){F(p,x)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var p=this._clampedScrollTop;this._updateScrollState(p);this.threshold>0&&this._setThresholdTriggered(p>=this.threshold)}},
_getDOMRef:function(p){console.warn("_getDOMRef","`"+p+"` is undefined")},
_getUndefinedMsg:function(p){return"Scroll effect `"+p+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+p+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Tl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(p){var x={};p=parseFloat(p.scalar);x.background=this._getDOMRef("background");x.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");x.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");x.deltaBg=x.backgroundFrontLayer.offsetHeight-x.background.offsetHeight;x.deltaBg===0?(isNaN(p)&&(p=.8),x.deltaBg=(this._dHeight||0)*p):(isNaN(p)&&(p=
1),x.deltaBg*=p);this._fxParallaxBackground=x},
run:function(p){var x=this._fxParallaxBackground;this.transform("translate3d(0px, "+x.deltaBg*Math.min(1,p)+"px, 0px)",x.backgroundFrontLayer);x.backgroundRearLayer&&this.transform("translate3d(0px, "+x.deltaBg*Math.min(1,p)+"px, 0px)",x.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var $V8;var eo8;var pYH=function(){};
_.l=pYH.prototype;_.l._scrollTargetChanged=function(){};
_.l.scroll=function(){};
_.l._isValidScrollTarget=function(){};
_.l._toggleScrollListener=function(){};
_.l.toggleScrollListener=function(){};
_.l.createEffect=function(){};
_.l._effectsChanged=function(){};
_.l._layoutIfDirty=function(){};
_.l._boundEffect=function(){};
_.l._setUpEffect=function(){};
_.l._tearDownEffects=function(){};
_.l._runEffects=function(){};
_.l._scrollHandler=function(){};
_.l._scrollStateChanged=function(){};
_.l._getUndefinedMsg=function(){};
_.l.notifyResize=function(){};
_.l.assignParentResizable=function(){};
_.l.stopResizeNotificationsFor=function(){};
_.l._subscribeIronResize=function(){};
_.l._unsubscribeIronResize=function(){};
_.l.resizerShouldNotify=function(){};
_.l._onDescendantIronResize=function(){};
_.l._fireResize=function(){};
_.l._onIronRequestResizeNotifications=function(){};
_.l._parentResizableChanged=function(){};
_.l._notifyDescendant=function(){};
_.l._requestResizeNotifications=function(){};
_.l._findParent=function(){};
_.l._appResetLayoutHandler=function(){};
_.l.resetLayout=function(){};
_.l._notifyLayoutChanged=function(){};
_.l._notifyDescendantResize=function(){};
_.l._setThresholdTriggered=function(){};
pYH=_.qu({_template:function(){if(eo8!==void 0)return eo8;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;$V8===void 0&&($V8=document.createElement("template"));var N=$V8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return eo8=p},
is:"tp-yt-app-header",behaviors:[I6H,ixD],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 p=_.Ef(this.$.slot).getDistributedNodes(),x=0,F;F=p[x];x++)if(F.nodeType===Node.ELEMENT_NODE)if(F.hasAttribute("sticky")){this._stickyElRef=F;break}else this._stickyElRef||(this._stickyElRef=F);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var p=this._clampedScrollTop,x=this._height===0||p===0,F=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;x||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();x?this._updateScrollState(p,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=F}},
_updateScrollState:function(p,x){if(this._height!==0){var F=0,N=this._top;var h=this._maxHeaderTop;var c=p-this._lastScrollTop,M=Math.abs(c),f=p>this._lastScrollTop,K=performance.now();this._mayMove()&&(F=this._clamp(this.reveals?N+c:p,0,h));p>=this._dHeight&&(F=this.condenses&&!this.fixed?Math.max(this._dHeight,F):F,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&M<100){if(K-this._initTimestamp>300||this._wasScrollingDown!==f)this._initScrollTop=p,this._initTimestamp=K;p>=h&&
(Math.abs(this._initScrollTop-p)>30||M>10?(f&&p>=h?F=h:!f&&p>=this._dHeight&&(F=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((F-N)/(c/(K-this._lastTimestamp)),0,300)+"ms"):F=this._top)}h=this._dHeight===0?p>0?1:0:F/this._dHeight;x||(this._lastScrollTop=p,this._top=F,this._wasScrollingDown=f,this._lastTimestamp=K);if(x||h!==this._progress||N!==F||p===0)this._progress=h,this._runEffects(h,F),this._transformHeader(F)}},
_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(p){this.translate3d(0,-p+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&p>=this._stickyElTop?Math.min(p,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(p,x,F){return Math.min(F,Math.max(x,p))},
_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),_.Ef(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(p){switch(p){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Ef(this).querySelector("[main-title]");case "condensedTitle":return _.Ef(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var xvH;var Flm;_.qu({_template:function(){if(Flm!==void 0)return Flm;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;xvH===void 0&&(xvH=document.createElement("template"));var N=xvH;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return Flm=p},
is:"tp-yt-app-header-layout",behaviors:[ixD],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.Ef(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var p=this.header;if(this.isAttached&&p){this.$.wrapper.classList.remove("initializing");p.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)p.style.left=
"",p.style.right="";else{var x=this.getBoundingClientRect(),F=document.documentElement.clientWidth-x.right;p.style.left=x.left+"px";p.style.right=F+"px"}x=this.$.contentContainer.style;F=p.offsetHeight;p.fixed&&!p.condenses&&this.hasScrollingRegion?(x.marginTop=F+"px",x.paddingTop=""):(x.paddingTop=F+"px",x.marginTop="")}}});var N9t=new _.U("replaceFeedContentAction");var h7_=new _.U("alertCommand");var loa=new _.U("manageLabsStateCommand");var cPX=new _.U("channelBannerEditorRenderer");var aoH=new _.U("inlineFormRenderer");var MLX=new _.U("playlistSidebarPrimaryInfoRenderer");var Dve=new _.U("productDetailsThumbnailRenderer"),foe=new _.U("productDetailsVariantRenderer"),Kle=new _.U("productDetailsVariantOptionRenderer"),qXm=new _.U("productDetailsOffersContainerRenderer"),ZCk=new _.U("productDetailsOfferRenderer");var tLm=new _.U("shoppingFlaggingRenderer");var dvH=new _.U("playlistBylineRenderer");var vn8=new _.U("insertChannelTabCommand");var JP8=function(){return _.hZ.apply(this,arguments)||this};
_.E(JP8,_.hZ);_.l=JP8.prototype;_.l.activeChanged=function(){if(this.active){var p=_.n(this.hostElement).querySelector("#header");p&&_.hG(p,"iron-resize");window.addEventListener("scroll",_.p5(this,this.onScroll))}else window.removeEventListener("scroll",_.p5(this,this.onScroll)),_.hG(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.l.guideVisibleChanged=function(){var p=_.n(this.hostElement).querySelector("#header");p&&_.hG(p,"iron-resize")};
_.l.onScroll=function(){var p=this;_.sQ(this,"onScroll",function(){var x=_.n(p.hostElement).querySelector("#header");x&&x.polymerController&&(x=x.polymerController.getScrollState().progress===1?"standard":"seamed",_.hG(p.hostElement,"yt-request-panel-mode-change",{mode:x}))},10)};
_.l.tabsChanged=function(){if(this.tabs){for(var p=null,x=0,F=this.tabs.length;x<F;++x){var N=this.tabs[x].tabRenderer;if(N&&N.selected){p=x;break}}this.selected=p}};
_.l.onTabsActivate=function(p){_.hG(this.hostElement,"yt-navigate",{endpoint:this.tabs[p.detail.selected].tabRenderer.endpoint})};
var WU=JP8;WU.prototype.tabsChanged=WU.prototype.tabsChanged;WU.prototype.guideVisibleChanged=WU.prototype.guideVisibleChanged;WU.prototype.activeChanged=WU.prototype.activeChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],WU.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.GM.YtdGuideStateAwareBehavior),_.k("design:type",Object)],WU.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.H(),_.k("design:type",Array)],WU.prototype,"tabs",void 0);
_.B([_.H(),_.k("design:type",Object)],WU.prototype,"selected",void 0);_.B([_.H(),_.k("design:type",Boolean)],WU.prototype,"active",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],WU.prototype,"disableHeaderFluidWidth",void 0);_.B([_.W("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],WU.prototype,"activeChanged",null);
_.B([_.W("guidePersistentAndVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],WU.prototype,"guideVisibleChanged",null);_.B([_.W("tabs"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],WU.prototype,"tabsChanged",null);WU=_.B([_.l8()],WU);var C6H=[_.e.YtRendererBehavior,_.GM.YtdGuideStateAwareBehavior,WU.prototype];var SXk=2/3,rPc=_.vt(130749),En_=function(p,x){var F=this;this.element=p;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){F.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:SXk,moveAction:function(N){F.moveAction(N)},
triggerAction:function(){F.element.isReloading=!0;_.A0(_.cl(),{visualElement:rPc});_.xL.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:F.element}})}}}};
_.hY(_.cl(),rPc,this.layer);this.gesture=new _.XL(p,x,this.refreshConfig,"pan-down");this.attach()};
_.l=En_.prototype;_.l.attach=function(){this.gesture.attach()};
_.l.detach=function(){this.gesture.detach()};
_.l.reset=function(){this.element.close()};
_.l.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.l.moveAction=function(p){this.element.rotation=p*360};var XYc=_.vt(130750),HU=function(p,x,F,N,h){var c=this;this.element=p;this.parent=F;this.channelHeader=N;this.ytdReduxDispatch=h;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){c.tabsStartAtInPx=c.channelHeader.clientHeight-48;var M;(M=c.selectedTab)!=null&&M.title&&(M=_.J().resolve(_.Bw(_.j3)))&&(M=M.getCurrentPage(),c.lastVisitedTabScrollPosition=M.getScrollTop(),c.previousTab&&
((c.lastVisitedTabScrollPosition===void 0?0:c.lastVisitedTabScrollPosition<c.channelHeader.clientHeight-48)?c.scrollPositionForTabs.has(c.selectedTab.title)&&c.scrollPositionForTabs.delete(c.selectedTab.title):c.scrollPositionForTabs.set(c.selectedTab.title,M.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:gnH(),triggerAction:function(){c.navigate(c.previousTab)},
moveAction:function(M,f){c.moveAction(M,f)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-gnH(),triggerAction:function(){c.navigate(c.nextTab)},
moveAction:function(M,f){c.moveAction(M,f)}}}};
_.hY(_.cl(),XYc,this.layer);this.gesture=new _.XL(p,x,this.tabConfig);this.attach()};
HU.prototype.attach=function(){this.gesture.attach()};
HU.prototype.detach=function(){this.gesture.detach()};
HU.prototype.tabsChanged=function(p){if(p){var x=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;p=_.a(p);for(var F=p.next();!F.done;F=p.next()){F=F.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=F);var N=void 0;if((N=F)==null?0:N.selected)this.previousTab=x,this.selectedTab=F;x=F}x=this.gesture;p=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}});
x.config=p;this.scrollPositionNeedsUpdate=!0}};
HU.prototype.moveAction=function(p,x){if(!this.tabsElement){var F;this.tabsElement=(F=this.parent.header)==null?void 0:F.tabsElement;x==="right"&&this.previousTab?_.u$l(_.FA.instance,this.previousTab.endpoint,{},""):x==="left"&&this.nextTab&&_.u$l(_.FA.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}F=this.tabsElement._pos;x==="right"&&(p*=-1);this.tabsElement._positionBar(F.width,F.left*1+F.width*p)};
var gnH=function(){var p,x;return(x=(p=_.J().resolve(_.j3).getCurrentPage())==null?void 0:p.clientWidth)!=null?x:0};
HU.prototype.navigate=function(p){this.element.data=void 0;if(p=p==null?void 0:p.endpoint)this.ytdReduxDispatch(koD(!0)),_.A0(_.cl(),{visualElement:XYc}),_.xL.instance.resolveCommand({navigateAction:{endpoint:p}},{form:{element:this.element}})};var QHc;var z7H;var sHc=function(){return _.m.apply(this,arguments)||this};
_.E(sHc,_.m);sHc.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
var mv=sHc;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],mv.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],mv.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],mv.prototype,"data",void 0);mv=_.B([_.L({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],mv);
_.P(mv,"ytd-labs-edit-renderer",function(){if(z7H!==void 0)return z7H;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return z7H=p},{mode:1});var nn8;var oN=function(){var p=_.m.apply(this,arguments)||this;p.dark=!1;p.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";p.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.E(oN,_.m);oN.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
oN.prototype.ready=function(){var p=document.documentElement.hasAttribute("dark");this.setBackgroundImage(p);this.dark=p};
oN.prototype.onDarkModeToggledAction=function(p){this.setBackgroundImage(p);this.dark=p};
oN.prototype.setBackgroundImage=function(p){_.eV(this.hostElement,{"--yt-labs-header-background":"url("+(p?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
var OK=oN;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],OK.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],OK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],OK.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],OK.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],OK.prototype,"dark",void 0);
OK=_.B([_.L({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],OK);
_.P(OK,"ytd-labs-header-renderer",function(){if(nn8!==void 0)return nn8;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return nn8=p},{mode:1});var yPa;var jK=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return p};
_.E(jK,_.m);jK.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"}}}}}};
jK.prototype.onYtToggleButton=function(p){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",p.detail.toggled)};
jK.prototype.onManageLabsState=function(p){if(p=_.r(p,loa))p.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?p.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&p.labsItemId===this.data.labsItemId&&(p.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.lA(this.hostElement,"yt-check-labs-opted-in-state").some(function(x){return x})&&this.data.confirmationDialogCommand?_.Kc(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.S("web_ytd_labs_item_renderer_command_resolver_ks")?_.fc(this.hostElement,[this.data.optInCommand]):_.J().resolve(_.RD).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&p.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.S("web_ytd_labs_item_renderer_command_resolver_ks")?_.fc(this.hostElement,[this.data.optOutCommand]):
_.J().resolve(_.RD).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
jK.prototype.onCheckLabsOptedInState=function(){var p=this.get("data.primaryButton.toggleButtonRenderer");return p?p.isToggled:!1};
_.R8.Object.defineProperties(jK.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
var LO=jK;LO.prototype.onYtToggleButton=LO.prototype.onYtToggleButton;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],LO.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],LO.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],LO.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],LO.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],LO.prototype,"itemStyle",null);_.B([_.V("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],LO.prototype,"onYtToggleButton",null);LO=_.B([_.L({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],LO);
_.P(LO,"ytd-labs-item-renderer",function(){if(yPa!==void 0)return yPa;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return yPa=p},{mode:1});var bCH;var AP_;var ug8=function(){return _.m.apply(this,arguments)||this};
_.E(ug8,_.m);var YX8=ug8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],YX8.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],YX8.prototype,"data",void 0);YX8=_.B([_.L({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],YX8);
_.P(YX8,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(AP_!==void 0)return AP_;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return AP_=p},{mode:1});var wYH;var G_D=function(){return _.m.apply(this,arguments)||this};
_.E(G_D,_.m);G_D.prototype.observeSuperchatChip=function(){if(this.data){var p={"--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)};_.eV(this.hostElement,p)}};
G_D.prototype.colorFromDecimal=function(p){return _.QK(Number(p||0))};
var PU=G_D;PU.prototype.observeSuperchatChip=PU.prototype.observeSuperchatChip;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],PU.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],PU.prototype,"data",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PU.prototype,"observeSuperchatChip",null);PU=_.B([_.L({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],PU);
_.P(PU,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(wYH!==void 0)return wYH;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return wYH=p},{mode:1});var VL8=function(){return _.m.apply(this,arguments)||this};
_.E(VL8,_.m);VL8.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"}}}};
_.R8.Object.defineProperties(VL8.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
var Tr=VL8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Tr.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Tr.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.bh),_.k("design:type",Object)],Tr.prototype,"ytdDismissibleItemBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Tr.prototype,"data",void 0);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Tr.prototype,"hideMessageBlock",null);
Tr=_.B([_.L({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Tr);
_.P(Tr,"ytd-live-chat-history-entry-renderer",function(){if(bCH!==void 0)return bCH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return bCH=p},{mode:1});var Wl8;var HC_=function(){return _.m.apply(this,arguments)||this};
_.E(HC_,_.m);var mva=HC_;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],mva.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],mva.prototype,"data",void 0);mva=_.B([_.L({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],mva);
_.P(mva,"ytd-channel-options-renderer",function(){if(Wl8!==void 0)return Wl8;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Wl8=p},{mode:1});var onD;var OC8=function(){return _.m.apply(this,arguments)||this};
_.E(OC8,_.m);OC8.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
var BU=OC8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],BU.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],BU.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],BU.prototype,"data",void 0);BU=_.B([_.L({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],BU);
_.P(BU,"ytd-settings-email-item-renderer",function(){if(onD!==void 0)return onD;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return onD=p},{mode:1});var jHe;var RN=function(){return _.m.apply(this,arguments)||this};
_.E(RN,_.m);RN.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"}}}};
RN.prototype.getExpansionIcon=function(p){return p?"arrow_drop_up":"arrow_drop_down"};
RN.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.R8.Object.defineProperties(RN.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
var kh=RN;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],kh.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],kh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],kh.prototype,"data",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],kh.prototype,"expanded",void 0);
_.B([_.w("expanded"),_.k("design:type",String),_.k("design:paramtypes",[])],kh.prototype,"emailListExpanded",null);_.B([_.Ff("#options"),_.k("design:type",Object)],kh.prototype,"options",void 0);kh=_.B([_.L({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],kh);
_.P(kh,"ytd-settings-email-list-renderer",function(){if(jHe!==void 0)return jHe;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return jHe=p},{mode:1});var Ll_;var P6m=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return p};
_.E(P6m,_.m);P6m.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"}}}};
P6m.prototype.handleSignalActionSubmitForm=function(){var p,x=(p=this.formRenderer)==null?void 0:p.getForm();x&&this.data.serviceEndpoint&&(_.S("web_ytd_settings_gaia_link_renderer_command_resolver_ks")?_.fc(this.hostElement,[this.data.serviceEndpoint,x]):_.J().resolve(_.RD).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},x,{element:this.hostElement})}))};
var UK=P6m;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],UK.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],UK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],UK.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],UK.prototype,"data",void 0);_.B([_.Ff("yt-form-renderer"),_.k("design:type",Object)],UK.prototype,"formRenderer",void 0);
UK=_.B([_.L({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],UK);
_.P(UK,"ytd-settings-gaia-link-renderer",function(){if(Ll_!==void 0)return Ll_;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Ll_=p},{mode:1});var T9k;var i5=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return p};
_.E(i5,_.m);i5.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.zTa()&&this.set("data.hidden",!1)};
i5.prototype.onSwitchReady=function(){var p=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.S("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.Q8m().then(function(x){x&&(Notification.permission==="default"?p.set("data.hidden",!1):Notification.permission==="granted"&&_.$r("NotificationsDisabled").then(function(F){F||_.lA(p.hostElement,"yt-toggle-settings-switch",[p.data.id,!F]);p.set("data.hidden",!1)}).catch(function(){}))})})};
i5.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}}}}};
i5.prototype.handleUpdateOptionsCommand=function(p){(p=_.r(p,_.g9C))&&this.data&&this.data.id===p.id&&(this.set("data.hidden",p.hidden),p.text!==void 0&&this.set("data.text",p.text),p.clearOptions&&this.set("data.options",[]))};
var IN=i5;IN.prototype.onSwitchReady=IN.prototype.onSwitchReady;IN.prototype.dataChanged=IN.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],IN.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],IN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],IN.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],IN.prototype,"data",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IN.prototype,"dataChanged",null);_.B([_.V("yt-settings-switch-ready"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IN.prototype,"onSwitchReady",null);IN=_.B([_.L({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],IN);
_.P(IN,"ytd-settings-options-renderer",function(){if(T9k!==void 0)return T9k;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return T9k=p},{mode:1});var B9X;var R7H=function(){return _.m.apply(this,arguments)||this};
_.E(R7H,_.m);R7H.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
R7H.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
var $h=R7H;$h.prototype.onYtExpanderMoreTapped=$h.prototype.onYtExpanderMoreTapped;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],$h.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],$h.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],$h.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],$h.prototype,"data",void 0);
_.B([_.V("yt-expander-more-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$h.prototype,"onYtExpanderMoreTapped",null);$h=_.B([_.L({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],$h);
_.P($h,"ytd-product-details-description-renderer",function(){if(B9X!==void 0)return B9X;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return B9X=p},{mode:1});var k_e;var Uv_=function(){var p=_.m.apply(this,arguments)||this;p.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";p.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";p.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";p.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return p};
_.E(Uv_,_.m);Uv_.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R8.Object.defineProperties(Uv_.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.data)==null?void 0:(x=p.offerData)==null?void 0:x.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.data)==null?void 0:p.purchaseButtonRenderers)!==void 0&&((x=this.data)==null?void 0:x.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var p,x;return!((p=this.data)==null||!p.formattedFromMerchantText)&&(!((x=this.data)==null||!x.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
var eK=Uv_;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],eK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],eK.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],eK.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],eK.prototype,"data",void 0);
_.B([_.H({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0}),_.k("design:type",Object)],eK.prototype,"shippingIcon",void 0);_.B([_.H({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0}),_.k("design:type",Object)],eK.prototype,"shippingAddressIcon",void 0);_.B([_.H({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0}),_.k("design:type",Object)],eK.prototype,"googleGuaranteeIcon",void 0);
_.B([_.H({type:_.S("kevlar_property_type_migration_killswitch")?String:void 0}),_.k("design:type",Object)],eK.prototype,"returnPolicyIcon",void 0);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],eK.prototype,"showAdditionalFees",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],eK.prototype,"showMultiPurchaseButtons",null);
_.B([_.w("data","showMultiPurchaseButtons"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],eK.prototype,"showPurchaseData",null);eK=_.B([_.L({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],eK);
_.P(eK,"ytd-product-details-hero-offer-renderer",function(){if(k_e!==void 0)return k_e;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return k_e=p},{mode:1});var iCD;var IoX;var $v8=function(){return _.m.apply(this,arguments)||this};
_.E($v8,_.m);_.l=$v8.prototype;_.l.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.l.onKeyDown=function(p){p=p.keyCode;p!==13&&p!==32||this.handleSelection()};
_.l.onMouseEnterImage=function(){var p;((p=this.data)==null?void 0:p.thumbnailDetails)!==void 0&&_.Mt(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.l.onMouseLeaveImage=function(){_.Mt(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.l.handleSelection=function(){this.data&&_.hG(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.R8.Object.defineProperties($v8.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.isSelected)}}});
var px=$v8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],px.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],px.prototype,"data",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],px.prototype,"isSelected",null);px=_.B([_.L({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],px);
_.P(px,"ytd-product-details-thumbnail-renderer",function(){if(IoX!==void 0)return IoX;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return IoX=p},{mode:1});var e7X=function(){var p=_.m.apply(this,arguments)||this;var x={};p.actionMap=(x["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",x["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",x);p.selectedThumbnailIndex=0;p.selectItem=function(F){F.target.onKeyDown(F)};
return p};
_.E(e7X,_.m);_.l=e7X.prototype;_.l.handlePreviewImageSelect=function(p){this.hoverThumbnail=p};
_.l.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.l.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.l.onThumbnailSelected=function(p,x){this.selectedThumbnailIndex=x};
_.l.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.l.updateOffset=function(){var p=_.n(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-p));this.ytdHorizontalListBehavior.reposition_()};
_.R8.Object.defineProperties(e7X.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null?0:p.imageRenderer){var x,F;return((x=this.data)==null?void 0:(F=x.imageRenderer)==null?void 0:F.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var p;if((p=this.data)==null?0:p.imageRenderer){var x;return(x=_.r(this.data.imageRenderer[this.selectedThumbnailIndex],Dve))==null?void 0:x.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var p=this,x,F,N,h=(N=(x=this.data)==null?void 0:(F=x.imageRenderer)==null?void 0:F.map(function(c,M){return{productDetailsThumbnailRenderer:Object.assign({},_.r(c,Dve),{index:M,isSelected:M===p.selectedThumbnailIndex})}}))!=null?N:[];
return Object.assign({},this.data,{imageRenderer:h})}}});
var xN=e7X;xN.prototype.updateOffset=xN.prototype.updateOffset;xN.prototype.dataChanged=xN.prototype.dataChanged;xN.prototype.onThumbnailSelected=xN.prototype.onThumbnailSelected;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],xN.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u(_.$k.YtdHorizontalListBehavior),_.k("design:type",Object)],xN.prototype,"ytdHorizontalListBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],xN.prototype,"componentBehavior",void 0);_.B([_.u([_.T2.YtActionHandlerBehavior]),_.k("design:type",Object)],xN.prototype,"actionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],xN.prototype,"data",void 0);_.B([_.H({value:"$.items.children"}),_.k("design:type",String)],xN.prototype,"itemsPath",void 0);
_.B([_.H({value:3}),_.k("design:type",Number)],xN.prototype,"initialCount",void 0);_.B([_.Ff("#items"),_.k("design:type",Object)],xN.prototype,"items",void 0);_.B([_.H(),_.k("design:type",Object)],xN.prototype,"selectedThumbnailIndex",void 0);_.B([_.H(),_.k("design:type",Object)],xN.prototype,"hoverThumbnail",void 0);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],xN.prototype,"showThumbnails",null);
_.B([_.V("ytd-product-details-thumbnail-renderer-selected"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Number]),_.k("design:returntype")],xN.prototype,"onThumbnailSelected",null);_.B([_.w("data","selectedThumbnailIndex","hoverThumbnail"),_.k("design:type",Object),_.k("design:paramtypes",[])],xN.prototype,"thumbnailDetails",null);_.B([_.w("data","selectedThumbnailIndex"),_.k("design:type",Object),_.k("design:paramtypes",[])],xN.prototype,"populatedData",null);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xN.prototype,"dataChanged",null);_.B([_.V("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xN.prototype,"updateOffset",null);xN=_.B([_.L({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],xN);
_.P(xN,"ytd-product-details-image-carousel-renderer",function(){if(iCD!==void 0)return iCD;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return iCD=p},{mode:_.UQ("kevlar_poly_si_batch_j079")?1:2});var p0X;var xTD=function(){return _.m.apply(this,arguments)||this};
_.E(xTD,_.m);var F1=xTD;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],F1.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],F1.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],F1.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],F1.prototype,"data",void 0);F1=_.B([_.L({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],F1);
_.P(F1,"ytd-product-details-offer-renderer",function(){if(p0X!==void 0)return p0X;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return p0X=p},{mode:1});var F4X;var NNk=function(){var p=_.m.apply(this,arguments)||this;p.isOffersHidden=!0;return p};
_.E(NNk,_.m);NNk.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var p,x=_.r((p=this.data)==null?void 0:p.viewOffersButton,_.AS);x&&this.ytRendererBehavior.logExplicitClick(x)};
NNk.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.R8.Object.defineProperties(NNk.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var p,x,F,N;return(F=_.r((p=this.data)==null?void 0:(x=p.offers)==null?void 0:x[0],ZCk))==null?void 0:(N=F.offerData)==null?void 0:N.vendorLogoUrl}}});
var NV=NNk;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],NV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],NV.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],NV.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],NV.prototype,"isOffersHidden",void 0);
_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],NV.prototype,"firstOfferVendorLogoUrl",null);NV=_.B([_.L({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],NV);
_.P(NV,"ytd-product-details-offers-container-renderer",function(){if(F4X!==void 0)return F4X;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return F4X=p},{mode:1});var hN8;var llD;var hQ=function(){return _.m.apply(this,arguments)||this};
_.E(hQ,_.m);hQ.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
hQ.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Mt(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
hQ.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Mt(this,"ytd-product-details-variant-image-unselect")};
_.R8.Object.defineProperties(hQ.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 p;return((p=this.data)==null?void 0:p.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return((p=this.data)==null?void 0:p.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((x=this.data)==null?void 0:x.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((F=this.data)==null?void 0:F.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var p;if(((p=this.data)==null?void 0:p.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var p,x;return this.isUnavailable?(p=this.data)==null?void 0:p.variantOptionUnavailableAccessibilityLabel:(x=this.data)==null?void 0:x.variantOptionAccessibilityLabel}}});
var l4=hQ;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],l4.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],l4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],l4.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],l4.prototype,"data",void 0);_.B([_.H(),_.k("design:type",String)],l4.prototype,"displayType",void 0);
_.B([_.w("displayType","data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],l4.prototype,"isImageButton",null);_.B([_.w("displayType","data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],l4.prototype,"isPillButton",null);_.B([_.w("data"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],l4.prototype,"isActive",null);
_.B([_.w("data"),_.H({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],l4.prototype,"isUnavailable",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],l4.prototype,"thumbnailDetails",null);_.B([_.w("isUnavailable","data"),_.k("design:type",Object),_.k("design:paramtypes",[])],l4.prototype,"accessibilityLabel",null);l4=_.B([_.L({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],l4);
_.P(l4,"ytd-product-details-variant-option-renderer",function(){if(llD!==void 0)return llD;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return llD=p},{mode:1});var cUX;var alm=function(){var p=_.m.apply(this,arguments)||this;p.variantsExpanded=!1;p.hideShowMoreLessVariantButton=!0;p.initialized=!1;p.computeVariantsDebouncer=null;p.computeVariants=function(x){x=x===void 0?!1:x;p.variantsExpanded||p.showOptions()||!x||(p.variantsExpanded=!0);if(p.variantsExpanded){x=_.a(p.items.children);for(var F=x.next();!F.done;F=x.next())F.value.hidden=!1}p.initialized=!0};
return p};
_.E(alm,_.m);_.l=alm.prototype;_.l.ready=function(){var p=this;setTimeout(function(){p.computeVariants(!0)})};
_.l.showOptions=function(){for(var p=_.a(this.items.children),x=p.next();!x.done;x=p.next())x.value.hidden=!0;var F=this.container.getBoundingClientRect().width,N=0,h=p=0;x=!1;for(var c=_.a(this.items.children),M=c.next();!M.done;M=c.next()){M=M.value;M.hidden=!1;var f=M.getBoundingClientRect().width;if(N+f<F)N+=f;else if(++h<2)N=f;else break;p+=1;M.hasAttribute("is-active")&&(x=!0)}for(F=p;F<this.items.children.length;F++)this.items.children[F].hidden=!0;this.hideShowMoreLessVariantButton=p===this.items.children.length;
return x};
_.l.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.hc(this.computeVariantsDebouncer,_.Ba.after(100),this.computeVariants)};
_.l.onShowMoreLessVariantsButtonClick=function(){var p;(p=this.data)!=null&&p.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.l.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.R8.Object.defineProperties(alm.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var p,x,F=(p=this.data)==null?void 0:(x=p.variantOptionRenderers)==null?void 0:x.find(function(c){return _.r(c,Kle).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),N,h;
return(h=(N=_.r(F,Kle))==null?void 0:N.name)!=null?h:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.displayType)||"VARIANT_ATTRIBUTE_DISPLAY_TYPE_UNKNOWN"}},
variantItemsClassname:{configurable:!0,enumerable:!0,get:function(){switch(this.displayType){case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL":return"pill";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST":return"dropdown";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE":return"image";default:return"unknown"}}}});
var cO=alm;cO.prototype.debouncedComputeVariants=cO.prototype.debouncedComputeVariants;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],cO.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],cO.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],cO.prototype,"componentBehavior",void 0);_.B([_.u(_.n7),_.k("design:type",Object)],cO.prototype,"ironResizableBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],cO.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],cO.prototype,"variantsExpanded",void 0);_.B([_.H(),_.k("design:type",Object)],cO.prototype,"hideShowMoreLessVariantButton",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],cO.prototype,"initialized",void 0);_.B([_.Ff("#items"),_.k("design:type",HTMLDivElement)],cO.prototype,"items",void 0);_.B([_.Ff("#container"),_.k("design:type",HTMLDivElement)],cO.prototype,"container",void 0);
_.B([_.Ff("#more-variants-button"),_.k("design:type",HTMLElement)],cO.prototype,"moreVariantsButton",void 0);_.B([_.w("data"),_.k("design:type",String),_.k("design:paramtypes",[])],cO.prototype,"selectedOptionName",null);_.B([_.W("data","variantsExpanded"),_.V("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cO.prototype,"debouncedComputeVariants",null);
_.B([_.w("data"),_.k("design:type",String),_.k("design:paramtypes",[])],cO.prototype,"displayType",null);_.B([_.w("displayType"),_.k("design:type",Object),_.k("design:paramtypes",[])],cO.prototype,"variantItemsClassname",null);cO=_.B([_.L({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],cO);
_.P(cO,"ytd-product-details-variant-renderer",function(){if(cUX!==void 0)return cUX;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return cUX=p},{mode:1});var MNH=function(){return _.m.apply(this,arguments)||this};
_.E(MNH,_.m);
MNH.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"}}}};
_.R8.Object.defineProperties(MNH.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var p,x,F=(x=_.r((p=this.data)==null?void 0:p.offersContainerRenderer,qXm))==null?void 0:x.offers;return F!==void 0&&(F==null?void 0:F.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 p,x,F;return((F=(p=this.data)==null?void 0:(x=p.variants)==null?void 0:x.map(function(N){var h,c;N=(c=(h=_.r(N,foe))==null?void 0:h.variantOptionRenderers)==null?void 0:c.find(function(f){var K;return((K=_.r(f,Kle))==null?void 0:K.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var M;return(M=_.r(N,Kle))==null?void 0:M.name}).filter(function(N){return typeof N==="string"}))!=null?F:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var p,x,F,N=(x=_.r((p=this.data)==null?void 0:p.shoppingFlaggingRenderer,tLm))==null?void 0:(F=x.reportButton)==null?void 0:F.buttonRenderer;if(N)return{text:N.text,command:N.command,icon:{iconType:"FLAG"},accessibilityData:N.accessibilityData,trackingParams:N.trackingParams,loggingDirectives:N.loggingDirectives}}}});
var aV=MNH;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],aV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],aV.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],aV.prototype,"data",void 0);
_.B([_.Ff("#image-carousel-renderer"),_.k("design:type",Object)],aV.prototype,"imageCarouselRenderer",void 0);_.B([_.Ff("#hero-offer-renderer"),_.k("design:type",Object)],aV.prototype,"productDetailsHeroOfferRenderer",void 0);_.B([_.Ff("#variants"),_.k("design:type",Object)],aV.prototype,"productDetailsVariantRenderer",void 0);_.B([_.Ff("#offers"),_.k("design:type",Object)],aV.prototype,"productDetailsOffersContainerRenderer",void 0);
_.B([_.Ff("#description-renderer"),_.k("design:type",Object)],aV.prototype,"productDetailsDescriptionRenderer",void 0);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],aV.prototype,"showPurchaseData",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],aV.prototype,"showHeroOfferRenderer",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],aV.prototype,"showBrandText",null);
_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],aV.prototype,"showOffers",null);_.B([_.w("showOffers","showPurchaseData"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],aV.prototype,"showBuySeparator",null);_.B([_.w("showOffers","showPurchaseData"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],aV.prototype,"showBuyCard",null);_.B([_.w("data"),_.k("design:type",String),_.k("design:paramtypes",[])],aV.prototype,"selectedVariantsText",null);
_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],aV.prototype,"shoppingReportingButtonData",null);aV=_.B([_.L({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],aV);
_.P(aV,"ytd-product-details-renderer",function(){if(hN8!==void 0)return hN8;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return hN8=p},{mode:1});var DT_;var fla;var K4e;var qjc=function(){return _.m.apply(this,arguments)||this};
_.E(qjc,_.m);qjc.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.R8.Object.defineProperties(qjc.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
var MV=qjc;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],MV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],MV.prototype,"data",void 0);_.B([_.H(),_.k("design:type",String)],MV.prototype,"formattedAmount",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],MV.prototype,"ariaLabel",void 0);
_.B([_.H({reflectToAttribute:!0}),_.w("data.style"),_.k("design:type",String),_.k("design:paramtypes",[])],MV.prototype,"vcBalanceWidgetStyle",null);MV=_.B([_.JZ({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],MV);
_.P(MV,"yt-vc-balance-renderer",function(){if(K4e===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;fla===void 0&&(fla=document.createElement("template"));var N=fla;F.call(x,N.content.cloneNode(!0),p.content.firstChild);K4e=p}p=K4e;return p},{mode:2});_.Ei("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var Zjc=function(){return _.m.apply(this,arguments)||this};
_.E(Zjc,_.m);_.R8.Object.defineProperties(Zjc.prototype,{formattedAmount:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.formattedAmount?this.vcBalanceEntity.formattedAmount:""}},
vcBalanceAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.accessibilityFormattedAmount?this.vcBalanceEntity.accessibilityFormattedAmount:""}}});
var D6=Zjc;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],D6.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],D6.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],D6.prototype,"data",void 0);_.B([_.H({selectorArgs:["data.vcBalanceEntityKey"],selector:function(p,x){return _.M4(p.entities,"vcBalanceEntity",x)}}),
_.k("design:type",Object)],D6.prototype,"vcBalanceEntity",void 0);_.B([_.w("vcBalanceEntity"),_.k("design:type",String),_.k("design:paramtypes",[])],D6.prototype,"formattedAmount",null);_.B([_.w("vcBalanceEntity"),_.k("design:type",String),_.k("design:paramtypes",[])],D6.prototype,"vcBalanceAriaLabel",null);D6=_.B([_.L({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],D6);
_.P(D6,"ytd-vc-balance-renderer",function(){if(DT_!==void 0)return DT_;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return DT_=p},{mode:1});var tNa;var dTm=function(){var p=_.m.apply(this,arguments)||this;p.rotation=0;p.isReloading=!1;return p};
_.E(dTm,_.m);dTm.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
dTm.prototype.reset=function(){this.hostElement.style.opacity=""};
dTm.prototype.close=function(){var p=this;return _.D(function(x){if(x.nextAddress==1)return _.q(x,p.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);p.hostElement.style.opacity="0";_.JB(x)})};
var fx=dTm;fx.prototype.rotationChanged=fx.prototype.rotationChanged;_.B([_.H(),_.k("design:type",Object)],fx.prototype,"rotation",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],fx.prototype,"isReloading",void 0);_.B([_.Ff("#icon"),_.k("design:type",HTMLElement)],fx.prototype,"icon",void 0);_.B([_.W("rotation"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fx.prototype,"rotationChanged",null);
fx=_.B([_.L({disableElementRegistration:!0,is:"ytd-refresh"})],fx);
_.P(fx,"ytd-refresh",function(){if(tNa!==void 0)return tNa;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return tNa=p},{mode:1});var vXa;var JU8;var Cj_=function(p,x,F,N,h,c,M,f){this.minWidth=p;this.minHeight=x;this.recommendedWidth=F;this.recommendedHeight=N;this.JSC$19209_maxFileSize=h;this.title=c;this.bannerGalleryTitle=M;this.channelId=f;this.picker_=null;p=_.QzZ("yt-banner");x=p.addView;F=(new UVt("youtubebanner")).addUploadMetadata("silo_id","19");F.opts.ytMaxFileSize=this.JSC$19209_maxFileSize;N=this.recommendedHeight;F.opts.ytRecWidth=this.recommendedWidth;F.opts.ytRecHeight=N;x.call(p,F);p.addView(new _.gJ);x=p.addView;F=new _.gJ;
F.opts.type="ytbanner";x.call(p,F.JSC$7931_setLabel(this.bannerGalleryTitle));x=p.setTitle(this.title).setSize(1E3);x.urlParamMap_.set("thumbs","orig");F=this.minWidth;N=this.minHeight;if(isNaN(F)||isNaN(N))throw Error("lb`"+F+"`"+N);x.urlParamMap_.set("minSize",F+"x"+N);x.urlParamMap_.set("cropMode","ytcb");this.builder_=p};
Cj_.prototype.open=function(){var p=this;return new _.cZ(function(x,F){_.ifk(p.builder_,function(N){N.action=="picked"?x(N):N.action=="cancel"&&F(Error("Ul"))});
p.picker_&&p.picker_.dispose();p.picker_=p.builder_.build();p.picker_.setVisible(!0)})};
Cj_.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var SjH=function(p){this.channelId=p},rUm=function(p,x){var F="";
x.viewToken&&(F=x.viewToken[2].type);var N=x.docs[0];x=N.crop;p={channel_id:p.channelId,fife_url:N.thumbnails[0].url,photo_id:N.id,is_gallery_image:F=="ytbanner"};x&&(p.crop_top=x.top,p.crop_right=x.right,p.crop_bottom=x.bottom,p.crop_left=x.left);return _.Iwd("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:p})};var EXc=function(){var p=_.m.apply(this,arguments)||this;p.ariaLabel=null;return p};
_.E(EXc,_.m);_.l=EXc.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.l.detached=function(){this.picker&&this.picker.dispose()};
_.l.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.l.computeAriaLabel=function(p){return p};
_.l.onTap=function(){var p=this,x;if((x=this.data)==null||!x.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new Cj_(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 F;(F=this.picker)==null||F.open().then(function(N){p.handleBannerPicked(N)},function(){})}};
_.l.handleBannerPicked=function(p){var x=this;this.uploader||(this.uploader=new SjH(this.data.channelId||""));this.message=this.data.uploadingText;rUm(this.uploader,p).then(function(F){x.handleBannerUploadSucceeded(F)},function(F){x.handleBannerUploadFailed(F)})};
_.l.handleBannerUploadSucceeded=function(p){p&&p.errors?this.handleBannerUploadFailed(p):(_.hG(this.hostElement,"yt-banner-updated",p),this.message=null)};
_.l.handleBannerUploadFailed=function(p){this.message=p&&p.errors&&p.errors.length?p.errors[0]:null};
var Kx=EXc;Kx.prototype.dataChanged=Kx.prototype.dataChanged;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Kx.prototype,"componentBehavior",void 0);_.B([_.u(_.bU),_.k("design:type",Object)],Kx.prototype,"ironButtonState",void 0);_.B([_.H(),_.k("design:type",Object)],Kx.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.k("design:type",Object)],Kx.prototype,"ariaLabel",void 0);
_.B([_.H(),_.k("design:type",Object)],Kx.prototype,"message",void 0);_.B([_.H(),_.k("design:type",Object)],Kx.prototype,"picker",void 0);_.B([_.H(),_.k("design:type",Object)],Kx.prototype,"uploader",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Kx.prototype,"dataChanged",null);Kx=_.B([_.L({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],Kx);
_.P(Kx,"ytd-channel-banner-editor-renderer",function(){if(JU8!==void 0)return JU8;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return JU8=p},{mode:1});var X08;var gXH=_.B$(["#"]),Qo8=function(){return _.m.apply(this,arguments)||this};
_.E(Qo8,_.m);Qo8.prototype.computeHrefWithDefault=function(p){return this.ytComponentBehavior.computeHref_(p,!0)||_.Gl(gXH)};
Qo8.prototype.dataChanged=function(){var p=this.data;p&&p.targetId&&_.kJI(_.l$(),p.targetId,this.moreIcon)};
var qV=Qo8;qV.prototype.dataChanged=qV.prototype.dataChanged;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],qV.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],qV.prototype,"data",void 0);_.B([_.Ff("#more-icon"),_.k("design:type",Object)],qV.prototype,"moreIcon",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qV.prototype,"dataChanged",null);
qV=_.B([_.L({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],qV);
_.P(qV,"ytd-channel-tagline-renderer",function(){if(X08!==void 0)return X08;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return X08=p},{mode:1});var zNX;var soX=function(){return _.m.apply(this,arguments)||this};
_.E(soX,_.m);_.l=soX.prototype;_.l.ready=function(){var p=this;_.n(this.hostElement).querySelector("#form").addEventListener("submit",function(x){p.onSubmit(x)})};
_.l.onDataChanged=function(){var p;((p=this.data)==null?0:p.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.l.onIconButtonKeydown=function(p){p.keyCode===13&&this.iconButton.click()};
_.l.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.l.openOnClickHandler=function(){this.input.focus()};
_.l.onSubmit=function(p){p.preventDefault();return!1};
_.l.submitOnEnterKeyUp=function(p){var x;if(p.keyCode===13&&((x=this.data)==null?0:x.expandedText)){p=this.data.endpoint;x=_.Q5.unsafeClone(p);var F;((F=_.r(x==null?void 0:x.commandMetadata,_.eq))==null?0:F.url)?(_.r(x.commandMetadata,_.eq).url=_.AT(_.r(x.commandMetadata,_.eq).url,"query",this.data.expandedText),_.r(x,_.Du)&&(_.r(x,_.Du).query=this.data.expandedText),_.hG(this.hostElement,"yt-navigate",{endpoint:x,tempData:{disableCache:!0}})):(F=new _.qE("Error: Trying to navigate to an endpoint without url",
p),_.zj(F))}};
_.l.updateDataExpandedTextFromBinding=function(p){this.set("data.expandedText",p.detail.value)};
var Z6=soX;Z6.prototype.onDataChanged=Z6.prototype.onDataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Z6.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.Gct),_.k("design:type",Object)],Z6.prototype,"ytdExpandableInputBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Z6.prototype,"data",void 0);_.B([_.Ff("#input"),_.k("design:type",Object)],Z6.prototype,"input",void 0);_.B([_.Ff("#icon-button"),_.k("design:type",HTMLElement)],Z6.prototype,"iconButton",void 0);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Z6.prototype,"onDataChanged",null);Z6=_.B([_.L({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],Z6);
var oNH=_.kJ()(Z6,"ytd-expandable-tab-renderer",function(){if(zNX===void 0){var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="yt-icons:search" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);zNX=p}p=zNX;return p},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var nXt;var yUX=_.B$(["#"]),bjD=function(){return _.m.apply(this,arguments)||this};
_.E(bjD,_.m);bjD.prototype.computeHrefWithDefault=function(p){return this.ytComponentBehavior.computeHref_(p,!0)||_.Gl(yUX)};
_.R8.Object.defineProperties(bjD.prototype,{primaryLinkEndpoint:{configurable:!0,enumerable:!0,get:function(){var p;return _.g$((p=this.data)==null?void 0:p.primaryLinkOnTap)}},
moreEndpoint:{configurable:!0,enumerable:!0,get:function(){var p;return _.g$((p=this.data)==null?void 0:p.moreOnTap)}}});
var tQ=bjD;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],tQ.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],tQ.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],tQ.prototype,"usePageHeaderStyle",void 0);_.B([_.w("data.primaryOnTap"),_.k("design:type",Object),_.k("design:paramtypes",[])],tQ.prototype,"primaryLinkEndpoint",null);
_.B([_.w("data.moreOnTap"),_.k("design:type",Object),_.k("design:paramtypes",[])],tQ.prototype,"moreEndpoint",null);tQ=_.B([_.L({disableElementRegistration:!0,is:"ytd-channel-header-links-view-model"})],tQ);
_.P(tQ,"ytd-channel-header-links-view-model",function(){if(nXt!==void 0)return nXt;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-header-links-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-header-links-view-model">\n  <yt-attributed-string id="first-link" data="[[data.firstLink]]" ellipsis-truncate="true" hidden="[[!data.firstLink]]" link-inherit-color="true" user-input="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <yt-attributed-string id="more" data="[[data.more]]" hidden="[[!data.more]]" link-inherit-color="true" no-wrap="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <a id="primary-link" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(primaryLinkEndpoint)]]" data="[[primaryLinkEndpoint]]" dir="ltr" hidden="[[!data.primaryLink]]">\n    [[data.primaryLink]]\n  </a>\n  <a id="suffix" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(moreEndpoint)]]" data="[[moreEndpoint]]" hidden="[[!data.suffix]]">\n    [[data.suffix]]\n  </a>\n</div>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return nXt=p},{mode:1});var AU_;var ukc=function(){var p=_.m.apply(this,arguments)||this;p.avatarSize=80;p.ariaLabel=_.JG("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return p};
_.E(ukc,_.m);ukc.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
ukc.prototype.computeHref=function(p){var x;return((x=_.r(p,_.Gj))==null?0:x.url)?this.componentBehavior.computeHref_(p):null};
ukc.prototype.onTap=function(){var p,x;(p=this.data)==null||!p.editAvatarServiceEndpoint||((x=_.r(this.data.editAvatarServiceEndpoint,_.Gj))==null?0:x.url)||(_.S("web_ytd_channel_avatar_editor_command_resolver_ks")?_.fc(this.hostElement,[this.data.editAvatarServiceEndpoint]):_.J().resolve(_.RD).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}}))};
var dI=ukc;_.B([_.u(_.bU),_.k("design:type",Object)],dI.prototype,"ironButtonState",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],dI.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],dI.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],dI.prototype,"avatarSize",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],dI.prototype,"ariaLabel",void 0);
dI=_.B([_.L({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],dI);
_.P(dI,"ytd-channel-avatar-editor",function(){if(AU_!==void 0)return AU_;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return AU_=p},{mode:1});_.o7(_.GBX,"yt-tab-group-shape",{props:{shape:_.G2}});var YjH=function(){var p=_.m.apply(this,arguments)||this;p.expandableCustomTabRenderable=function(x){return OxX(x,function(){return void p.onSearchNavigate()})};
p.isRichGrid=!1;p.richGridMiniMode=!1;p.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-unsubscribe-action":"handleUnsubscribeAction","yt-window-resized":"onWindowResize"};return p};
_.E(YjH,_.m);_.l=YjH.prototype;_.l.areAllFalse=function(p,x,F){return!p&&!x&&!F};
_.l.updateJoinButtonOverrides=function(){var p;(p=_.n(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||p.set("overrides",this.joinButtonOverrides)};
_.l.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.sponsorButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},
"data.editChannelButtons":{id:"edit-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.otherButtons":{id:"other-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.tagline":{id:"channel-tagline",mapping:{channelTaglineRenderer:"ytd-channel-tagline-renderer"}},"data.headerLinks":{id:"channel-header-links",mapping:{channelHeaderLinksViewModel:{component:"ytd-channel-header-links-view-model",properties:{usePageHeaderStyle:"[[usePageHeaderStyle]]"}}}}}};
_.l.attached=function(){this.data&&this.dataChanged()};
_.l.computeHeaderDisabled=function(p,x){return x||!p};
_.l.handleButtonRefreshAction=function(p){(p=_.r(p,_.FZK))&&this.set("data.sponsorButton",p.membershipButton)};
_.l.handleInsertTabCommand=function(p){var x=_.r(p,vn8);x&&x.externalChannelId===this.data.channelId&&(x.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(F){return F.tabRenderer&&F.tabRenderer.tabIdentifier===x.tabIdentifier})||this.splice("tabs",x.tabIndex||-1,0,x.tab))};
_.l.handleRefreshChannelTabAction=function(p){var x,F=(x=this.tabs)==null?void 0:x.filter(function(c){var M;return(M=c.tabRenderer)==null?void 0:M.selected});
x=(F==null?void 0:F.length)===1?F[0]:void 0;var N;if((x==null?void 0:(N=x.tabRenderer)==null?void 0:N.tabIdentifier)===p){var h;_.hG(this.hostElement,"yt-navigate",{endpoint:(h=x.tabRenderer)==null?void 0:h.endpoint,tempData:{disableCache:!0}})}};
_.l.onWindowResize=function(){_.n(this.hostElement).querySelector("#header").fire("iron-resize")};
_.l.dataChanged=function(){var p=this.hasChannelArt;this.hasChannelArt=!1;if(this.data&&this.data.banner){var x=_.Ou(this.data.banner.thumbnails,this.hostElement.clientWidth);x&&(x.indexOf("//")===0&&(x="https:"+x),this.hasChannelArt=!0,_.eV(this.hostElement,{"--yt-channel-banner":"url("+x+")"}))}this.hasChannelArt!==p&&_.n(this.hostElement).querySelector("#header").fire("iron-resize")};
_.l.onBannerUpdated=function(p,x){p=window.devicePixelRatio>1?x.hq_url:x.url;p.indexOf("//")===0&&(p="https:"+p);this.hasChannelArt=!0;_.eV(this.hostElement,{"--yt-channel-banner":"url("+p+")"})};
_.l.observeLightsourcePalette=function(){var p,x,F=(p=this.data)==null?void 0:(x=p.headerColorPalette)==null?void 0:x.lightsourceColorPaletteData;F&&_.S3(this.hostElement,F)};
_.l.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.eV(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.l.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.l.handleUnsubscribeAction=function(){var p,x;((x=_.r((p=this.data)==null?void 0:p.sponsorButton,_.AS))==null?void 0:x.style)==="STYLE_PRIMARY"&&_.n(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").set("data.style","STYLE_SUGGESTIVE")};
_.l.onFocusedChanged=function(p){(p=_.os(p))&&p.is==="tp-yt-paper-tab"&&p.hasRipple()&&(p.getRipple().holdDown=!p.pointerDown&&p.focused)};
_.l.updateSelectedFromBinding=function(p){this.ytdTabbedHeaderBehavior.selected=p.detail.value};
_.R8.Object.defineProperties(YjH.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:LG8(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasChannelHeaderLinks:{configurable:!0,enumerable:!0,get:function(){var p,x;return!!((p=this.data)==null?0:(x=p.headerLinks)==null?0:x.channelHeaderLinksViewModel)}},
subscribeKey:{configurable:!0,enumerable:!0,get:function(){return this.get("subscribeButton.subscribeButtonRenderer.subscribedEntityKey",this.data)}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.subscriptionStateEntity)==null||!p.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono",buttonType:this.subscribed?"filled":"tonal"}}},
useModernStyle:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.style)==="C4_TABBED_HEADER_RENDERER_STYLE_MODERN"}},
usePageHeaderStyle:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.style)==="C4_TABBED_HEADER_RENDERER_STYLE_PAGE_HEADER"}},
avatarSize:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?160:this.useModernStyle?128:80}},
shouldInlineChannelName:{configurable:!0,enumerable:!0,get:function(){var p=this.channelHandleDisplayStyle;return p==="MODERN"||p==="PAGE_HEADER"}},
hideBannerEndpoint:{configurable:!0,enumerable:!0,get:function(){var p;return this.usePageHeaderStyle||!((p=this.data)==null?0:p.bannerLinkEndpoint)}},
hideBannerVisibleArea:{configurable:!0,enumerable:!0,get:function(){var p;return this.usePageHeaderStyle||!((p=this.data)==null||!p.bannerLinkEndpoint)}},
showBannerEditor:{configurable:!0,enumerable:!0,get:function(){var p;return!!_.r((p=this.data)==null?void 0:p.bannerEditor,cPX)}},
bannerEffects:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:"parallax-background"}},
effectsConfig:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:{"parallax-background":{scalar:.5}}}},
shouldShowPageHeaderBanner:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle&&!!this.hasChannelArt}},
isChannelHandlePresent:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.channelHandleText)}},
channelHandleDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelHandlePresent?this.usePageHeaderStyle?"PAGE_HEADER":this.useModernStyle?"MODERN":"CLASSIC":"NOT_AVAILABLE"}},
shouldShowChannelPronouns:{configurable:!0,enumerable:!0,get:function(){var p;return _.S("enable_view_pronouns_on_main_app")&&!((p=this.data)==null||!p.channelPronouns)}},
shouldShowSubscriberCount:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.subscriberCountText)}},
shouldShowVideosCount:{configurable:!0,enumerable:!0,get:function(){var p;return(this.useModernStyle||this.usePageHeaderStyle)&&!((p=this.data)==null||!p.videosCountText)}}});
var vO=YjH;vO.prototype.observerRichGridItemsPerRow=vO.prototype.observerRichGridItemsPerRow;vO.prototype.observeLightsourcePalette=vO.prototype.observeLightsourcePalette;vO.prototype.onBannerUpdated=vO.prototype.onBannerUpdated;vO.prototype.dataChanged=vO.prototype.dataChanged;vO.prototype.updateJoinButtonOverrides=vO.prototype.updateJoinButtonOverrides;_.B([_.u(_.Yk),_.k("design:type",Object)],vO.prototype,"ytdGridStateAwareBehavior",void 0);
_.B([_.u(C6H),_.k("design:type",Object)],vO.prototype,"ytdTabbedHeaderBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],vO.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],vO.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.GM.YtdGuideStateAwareBehavior),_.k("design:type",Object)],vO.prototype,"ytdGuideStateAwareBehavior",void 0);
_.B([_.u(_.nl),_.k("design:type",Object)],vO.prototype,"ytdReduxBehavior",void 0);_.B([_.Ff("#tabs"),_.k("design:type",Object)],vO.prototype,"tabsElement",void 0);_.B([_.H(),_.k("design:type",Array)],vO.prototype,"tabs",void 0);_.B([_.w("tabs.*"),_.k("design:type",Object),_.k("design:paramtypes",[])],vO.prototype,"tabGroupShape",null);_.B([_.H(),_.k("design:type",Object)],vO.prototype,"expandableCustomTabRenderable",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],vO.prototype,"isRichGrid",void 0);_.B([_.H({reflectToAttribute:!0,selector:_.n1}),_.k("design:type",Object)],vO.prototype,"richGridMiniMode",void 0);_.B([_.H({selector:_.yr}),_.k("design:type",Number)],vO.prototype,"richGridItemsPerRow",void 0);_.B([_.H(),_.k("design:type",Object)],vO.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],vO.prototype,"hasChannelArt",void 0);
_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vO.prototype,"hasChannelHeaderLinks",null);_.B([_.H({selector:_.S4t,reflectToAttribute:!0}),_.k("design:type",Boolean)],vO.prototype,"guideIsVisibleButNotPersistent",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],vO.prototype,"subscribeKey",null);
_.B([_.H({selectorArgs:["subscribeKey"],selector:_.e3}),_.k("design:type",Object)],vO.prototype,"subscriptionStateEntity",void 0);_.B([_.w("subscriptionStateEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],vO.prototype,"subscribed",null);_.B([_.w("subscribed"),_.k("design:type",Object),_.k("design:paramtypes",[])],vO.prototype,"joinButtonOverrides",null);
_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vO.prototype,"useModernStyle",null);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vO.prototype,"usePageHeaderStyle",null);_.B([_.w("useModernStyle","usePageHeaderStyle"),_.k("design:type",Number),_.k("design:paramtypes",[])],vO.prototype,"avatarSize",null);
_.B([_.w("channelHandleDisplayStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vO.prototype,"shouldInlineChannelName",null);_.B([_.w("data","usePageHeaderStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vO.prototype,"hideBannerEndpoint",null);_.B([_.w("data","usePageHeaderStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vO.prototype,"hideBannerVisibleArea",null);
_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vO.prototype,"showBannerEditor",null);_.B([_.w("usePageHeaderStyle"),_.k("design:type",Object),_.k("design:paramtypes",[])],vO.prototype,"bannerEffects",null);_.B([_.w("usePageHeaderStyle"),_.k("design:type",Object),_.k("design:paramtypes",[])],vO.prototype,"effectsConfig",null);_.B([_.w("usePageHeaderStyle","hasChannelArt"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vO.prototype,"shouldShowPageHeaderBanner",null);
_.B([_.w("data.channelHandleText"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vO.prototype,"isChannelHandlePresent",null);_.B([_.w("isChannelHandlePresent","useModernStyle","usePageHeaderStyle"),_.k("design:type",String),_.k("design:paramtypes",[])],vO.prototype,"channelHandleDisplayStyle",null);_.B([_.w("data.channelPronouns"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vO.prototype,"shouldShowChannelPronouns",null);
_.B([_.w("data.subscriberCountText"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vO.prototype,"shouldShowSubscriberCount",null);_.B([_.w("useModernStyle","data.videosCountText"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vO.prototype,"shouldShowVideosCount",null);_.B([_.W("joinButtonOverrides"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vO.prototype,"updateJoinButtonOverrides",null);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vO.prototype,"dataChanged",null);_.B([_.V("yt-banner-updated"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],vO.prototype,"onBannerUpdated",null);_.B([_.W("data.headerColorPalette.lightsourceColorPaletteData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vO.prototype,"observeLightsourcePalette",null);
_.B([_.W("richGridItemsPerRow","isRichGrid"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vO.prototype,"observerRichGridItemsPerRow",null);vO=_.B([_.L({is:"ytd-c4-tabbed-header-renderer",disableElementRegistration:!0})],vO);
_.P(vO,"ytd-c4-tabbed-header-renderer",function(){if(vXa!==void 0)return vXa;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-c4-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-c4-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent)]]" effects="[[bannerEffects]]" effects-config="[[effectsConfig]]" fixed="" class="style-scope ytd-c4-tabbed-header-renderer"><a class="banner-visible-area yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" aria-label$="[[data.banner.accessibility.accessibilityData.label]]" data="[[data.bannerLinkEndpoint]]" hidden="[[hideBannerEndpoint]]" href="[[computeHref_(data.bannerLinkEndpoint)]]"></a><template is="dom-if" if="[[!hideBannerVisibleArea]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="banner-visible-area style-scope ytd-c4-tabbed-header-renderer"><div id="banner-editor" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><template is="dom-if" if="[[shouldShowPageHeaderBanner]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-sizer style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-image style-scope ytd-c4-tabbed-header-renderer"></div><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><div id="channel-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow id="avatar" hidden="[[data.editAvatarServiceEndpoint]]" thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><ytd-channel-avatar-editor id="avatar-editor" avatar-size="[[avatarSize]]" data="[[data]]" disable-upgrade$="[[!data.editAvatarServiceEndpoint]]" hidden="[[!data.editAvatarServiceEndpoint]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-avatar-editor><div id="inner-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="meta" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" has-channel-art="[[hasChannelArt]]" wrap-text="" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-name><p hidden="[[!equals(channelHandleDisplayStyle, \'CLASSIC\')]]" class="style-scope ytd-c4-tabbed-header-renderer"><yt-formatted-string id="channel-handle" class="meta-item style-scope ytd-c4-tabbed-header-renderer" respect-lang-dir="" text="[[data.channelHandleText]]"></yt-formatted-string></p><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldInlineChannelName]]"><yt-formatted-string id="channel-handle" respect-lang-dir="" text="[[data.channelHandleText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowChannelPronouns, shouldShowSubscriberCount, shouldShowVideosCount)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowChannelPronouns]]"><yt-formatted-string id="channel-pronouns" text="[[data.channelPronouns]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowSubscriberCount, shouldShowVideosCount, false)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowSubscriberCount]]"><yt-formatted-string id="subscriber-count" text="[[data.subscriberCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]"><yt-formatted-string id="videos-count" text="[[data.videosCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></span><div id="channel-tagline" class="style-scope ytd-c4-tabbed-header-renderer"></div><div id="channel-header-links" class="style-scope ytd-c4-tabbed-header-renderer"></div></div><div id="buttons" class="style-scope ytd-c4-tabbed-header-renderer"><div id="purchase-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="subscribe-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="sponsor-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="edit-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="other-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div></div></div></div><div id="links-holder" class="style-scope ytd-c4-tabbed-header-renderer"><div id="primary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.primaryLinks]]" as="primaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint container style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(primaryLink.navigationEndpoint)]]" data="[[primaryLink.navigationEndpoint]]" title$="[[getSimpleString(primaryLink.title)]]"><div class="icon-container style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow height="16" thumbnail="[[primaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><yt-formatted-string text="[[primaryLink.title]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></div></a></template></div><div id="secondary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.secondaryLinks]]" as="secondaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(secondaryLink.navigationEndpoint)]]" data="[[secondaryLink.navigationEndpoint]]" title$="[[getSimpleString(secondaryLink.title)]]"><yt-img-shadow height="16" thumbnail="[[secondaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow></a></template></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-divider" class="style-scope ytd-c4-tabbed-header-renderer"></div><tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-c4-tabbed-header-renderer"><yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-tab-group-shape></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return vXa=p},{mode:1});var w0X;var Ge_=function(){return _.m.apply(this,arguments)||this};
_.E(Ge_,_.m);Ge_.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"}}}};
Ge_.prototype.dataChanged=function(){if(this.data){var p=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var x=_.Ou(this.data.banner.thumbnails,this.hostElement.clientWidth);x&&(x.indexOf("//")===0&&(x="https:"+x),this.hasBannerArt=!0,_.eV(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+x+")"}))}this.hasBannerArt!==p&&_.n(this.hostElement).querySelector("#header").fire("iron-resize")}};
Ge_.prototype.updateSelectedFromBinding=function(p){this.selected=p.detail.value};
var JQ=Ge_;JQ.prototype.dataChanged=JQ.prototype.dataChanged;_.B([_.u(C6H),_.k("design:type",Object)],JQ.prototype,"ytdTabbedHeaderBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],JQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.Yk),_.k("design:type",Object)],JQ.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.u(_.GM.YtdGuideStateAwareBehavior),_.k("design:type",Object)],JQ.prototype,"ytdGuideStateAwareBehavior",void 0);
_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],JQ.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],JQ.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Number)],JQ.prototype,"selected",void 0);_.B([_.H(),_.k("design:type",Boolean)],JQ.prototype,"active",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],JQ.prototype,"hasBannerArt",void 0);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],JQ.prototype,"dataChanged",null);JQ=_.B([_.L({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],JQ);
_.P(JQ,"ytd-interactive-tabbed-header-renderer",function(){if(w0X!==void 0)return w0X;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return w0X=p},{mode:1});var VNH;var W4H=function(){return _.m.apply(this,arguments)||this};
_.E(W4H,_.m);W4H.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
W4H.prototype.computeActionsAlignment=function(p){return(p==null?void 0:p.actionsAlignment)||""};
var Cx=W4H;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Cx.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Cx.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Cx.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.k("design:type",String)],Cx.prototype,"actionsAlignment",void 0);
Cx=_.B([_.L({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],Cx);
_.P(Cx,"ytd-page-footer-renderer",function(){if(VNH!==void 0)return VNH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return VNH=p},{mode:1});var Hje;var mTt;var oXc=function(){var p=_.m.apply(this,arguments)||this;p.isEditing=!1;p.useSlot=!1;p.isMultiline=!1;return p};
_.E(oXc,_.m);_.l=oXc.prototype;_.l.onKeydown=function(p){if(p.keyCode===13&&!this.isMultiline)this.onSave();else if(p.keyCode===27)this.onCancel()};
_.l.computeComponentStyle=function(p){return(p==null?0:p.style)?p.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.l.computeisMultiline=function(p){if(this.multilineOverride!==void 0)return this.multilineOverride;var x,F;return!!(p==null?0:(x=p.formField)==null?0:(F=x.textInputFormFieldRenderer)==null?0:F.isMultiline)};
_.l.computeTextDisplayed=function(p,x){if(p)return p;if(x)return x};
_.l.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.l.onSave=function(){if(this.textForm.validate()){this.textForm.save();var p=this.textForm.value;if(p)this.set("data.textDisplayed",_.L1(p));else{var x;((x=this.data)==null?0:x.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.Vx("inline-form-changed",this.data));this.isEditing=!1}};
_.l.onCancel=function(){var p=_.Pi(this.data.textDisplayed);p===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(p);this.isEditing=!1};
var S5=oXc;S5.prototype.onKeydown=S5.prototype.onKeydown;_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],S5.prototype,"ytEventForwardingBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],S5.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],S5.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],S5.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],S5.prototype,"isEditing",void 0);_.B([_.H(),_.k("design:type",Object)],S5.prototype,"useSlot",void 0);_.B([_.H(),_.k("design:type",Boolean)],S5.prototype,"multilineOverride",void 0);_.B([_.H(),_.k("design:type",Boolean)],S5.prototype,"enableOverlayTheme",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.k("design:type",String)],S5.prototype,"componentStyle",void 0);
_.B([_.H({computed:"computeisMultiline(data)"}),_.k("design:type",Object)],S5.prototype,"isMultiline",void 0);_.B([_.Ff("#text-form"),_.k("design:type",Object)],S5.prototype,"textForm",void 0);_.B([_.V("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent]),_.k("design:returntype")],S5.prototype,"onKeydown",null);S5=_.B([_.L({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],S5);
_.P(S5,"ytd-inline-form-renderer",function(){if(mTt!==void 0)return mTt;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return mTt=p},{mode:1});var Oje;var joe=function(){var p=_.m.apply(this,arguments)||this;p.previousSelectValue=void 0;p.selectedItemMessage=void 0;return p};
_.E(joe,_.m);joe.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
joe.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var p,x,F,N,h=(p=this.data)==null?void 0:(x=p.dropdown)==null?void 0:(F=x.dropdownRenderer)==null?void 0:(N=F.entries)==null?void 0:N.map(function(f){return f.privacyDropdownItemRenderer});
p=_.a(h!=null?h:[]);for(x=p.next();!x.done;x=p.next())if((x=x.value)&&x.int32Value===this.selectedValue){this.selectedItemMessage=x.itemMessage;break}}else this.selectedItemMessage=void 0;var c;(c=this.onValueChanged)==null||c.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var M;(M=this.data)!=null&&M.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
joe.prototype.onValueChangedForSelectedValue=function(p){this.selectedValue=p.detail.value};
var rI=joe;rI.prototype.selectedValueChanged=rI.prototype.selectedValueChanged;_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],rI.prototype,"ytEventForwardingBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],rI.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],rI.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],rI.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],rI.prototype,"data",void 0);_.B([_.H(),_.k("design:type",String)],rI.prototype,"theme",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Number)],rI.prototype,"selectedValue",void 0);_.B([_.H(),_.k("design:type",Function)],rI.prototype,"onValueChanged",void 0);
_.B([_.cT("selectedValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rI.prototype,"selectedValueChanged",null);rI=_.B([_.L({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],rI);
_.P(rI,"ytd-dropdown-form-field-renderer",function(){if(Oje!==void 0)return Oje;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Oje=p},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var L4H;var PjH=function(){return _.m.apply(this,arguments)||this};
_.E(PjH,_.m);_.R8.Object.defineProperties(PjH.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var p=[],x=_.a(this.data||[]),F=x.next();!F.done;F=x.next())(F=_.r(F.value,dvH))&&p.push(F);return p}}});
var TNt=PjH;_.B([_.H(),_.k("design:type",Array)],TNt.prototype,"data",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],TNt.prototype,"byline",null);TNt=_.B([_.L({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],TNt);
_.P(TNt,"ytd-playlist-byline-renderer",function(){if(L4H!==void 0)return L4H;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return L4H=p},{mode:1});var BNX;var RNX=function(){var p=_.m.apply(this,arguments)||this;p.rtlBullet=_.S("web_playlist_stats_rtl_bullet_icon_killswitch");p.modern=_.S("web_modern_buttons");p.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return p};
_.E(RNX,_.m);_.l=RNX.prototype;_.l.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more"}}}},"data.playButtons":{id:"play-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"},toggleButtonRenderer:{component:"ytd-toggle-button-renderer"},compactLinkRenderer:{component:"ytd-compact-link-renderer"}}}}};
_.l.attached=function(){};
_.l.computeIsCustomThumbnail=function(p){return p?!!p.playlistCustomThumbnailRenderer:!1};
_.l.onYtNavigate=function(p,x){if(x&&x.actions&&x.actions.indexOf("shuffle")>-1){p=_.J().resolve(_.Yx);var F=x.tempData||{};F.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);x.tempData=F;p.isShuffleNextPlaylist=!0}};
_.l.onUpdatePlaylistAction=function(p){var x;p=(x=_.r(p,_.NJC))==null?void 0:x.updatedRenderer;if(x=_.r(p,MLX))this.data=x};
_.l.computeStyleType=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.l.computeThumbnailWidth=function(p){return p==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.l.computeHideThumbnailAria=function(p){if(p==null?0:p.thumbnailOverlays)for(var x=0;x<p.thumbnailOverlays.length;x++){var F=void 0;if((F=p.thumbnailOverlays[x])==null?0:F.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
var Ew=RNX;Ew.prototype.onYtNavigate=Ew.prototype.onYtNavigate;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Ew.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Ew.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ew.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Ew.prototype,"ytComponentBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],Ew.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ew.prototype,"rtlBullet",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.k("design:type",String)],Ew.prototype,"styleType",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.k("design:type",Number)],Ew.prototype,"thumbnailWidth",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ew.prototype,"modern",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.k("design:type",Boolean)],Ew.prototype,"isCustomThumbnail",void 0);_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[Event,Object]),_.k("design:returntype")],Ew.prototype,"onYtNavigate",null);Ew=_.B([_.L({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],Ew);
_.P(Ew,"ytd-playlist-sidebar-primary-info-renderer",function(){if(BNX!==void 0)return BNX;var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return BNX=p},{mode:1});var kem;var UTk=function(){return _.m.apply(this,arguments)||this};
_.E(UTk,_.m);UTk.prototype.computeOwnerVisibility=function(p){return!(!p.videoOwner&&!p.button)};
UTk.prototype.configureRendererStamper=function(){return{"data.videoOwner":{id:"video-owner",mapping:{videoOwnerRenderer:"ytd-video-owner-renderer"}},"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
var X1=UTk;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],X1.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],X1.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],X1.prototype,"data",void 0);X1=_.B([_.L({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],X1);
_.P(X1,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(kem!==void 0)return kem;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return kem=p},{mode:1});var ijt;var Ila=function(){var p=_.m.apply(this,arguments)||this;p.expanded=!1;p.isCompact=!1;return p};
_.E(Ila,_.m);_.l=Ila.prototype;_.l.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.l.dataChanged=function(){this.data&&_.ig(_.n(this.text),_.yeC(_.uck,_.Pi(this.data.text||null)))};
_.l.computeAutoScrollEnabled=function(p,x){return p&&!x};
_.l.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.l.toggleOnTap=function(){this.expanded=!this.expanded};
var gI=Ila;gI.prototype.expandedChanged=gI.prototype.expandedChanged;gI.prototype.dataChanged=gI.prototype.dataChanged;_.B([_.u(_.RjH),_.k("design:type",Object)],gI.prototype,"ytdAutoScrollBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],gI.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],gI.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],gI.prototype,"expanded",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],gI.prototype,"isCompact",void 0);_.B([_.H({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.k("design:type",Boolean)],gI.prototype,"autoScrollEnabled",void 0);_.B([_.Ff("#text"),_.k("design:type",Object)],gI.prototype,"text",void 0);_.B([_.Ff("#expander-icon"),_.k("design:type",Object)],gI.prototype,"expanderIcon",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gI.prototype,"dataChanged",null);_.B([_.W("expanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gI.prototype,"expandedChanged",null);gI=_.B([_.L({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],gI);
_.P(gI,"ytd-channel-legal-info-renderer",function(){if(ijt!==void 0)return ijt;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return ijt=p},{mode:1});var $TX;var eN8=_.JG("DOWNLOAD",{},"Download"),pMm=_.JG("DOWNLOADING",{},"Downloading"),x6k=_.JG("DOWNLOADED",{},"Downloaded"),FS_=function(){var p=_.m.apply(this,arguments)||this;p.downloadProgress=0;p.isDownloadComplete=!1;p.transferState="TRANSFER_STATE_UNKNOWN";return p};
_.E(FS_,_.m);_.l=FS_.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.dataChanged=function(){var p;(p=this.data)!=null&&p.tooltip||(p=_.YO(_.Bi().getState(),this.playlistId),this.updateButtonState(p))};
_.l.computePlaylistId=function(p){return p};
_.l.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.l.updateButtonState=function(p){if(this.data&&(this.data.tooltip!==pMm||!_.C1(p))){this.isDownloadComplete=!1;switch(p){case "TRANSFER_STATE_UNKNOWN":p=eN8;var x="OFFLINE_DOWNLOAD";var F="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":p=x6k;x="OFFLINE_PIN";F="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":p=pMm;x="OFFLINE_DOWNLOADING_ZERO";F="ACTION_REMOVE_WITH_PROMPT";
break;default:p=eN8,x="OFFLINE_DOWNLOAD",F="ACTION_ADD"}var N=Object.assign({},this.data);N.tooltip=p;N.accessibilityData={accessibilityData:{label:p}};N.icon={iconType:x};N.size="SIZE_DEFAULT";_.r(N.command,_.c2)&&(_.r(N.command,_.c2).action=F);this.set("data",N)}};
_.l.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var p="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?p="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?p="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?p="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?p="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?p="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(p="OFFLINE_PIN",this.isDownloadComplete=!0);var x;p!==((x=this.data.icon)==null?void 0:x.iconType)&&(x=Object.assign({},this.data),x.tooltip=pMm,x.accessibilityData={accessibilityData:{label:pMm}},x.icon={iconType:p},_.r(x.command,_.c2)&&(_.r(x.command,_.c2).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",x))}};
var Qv=FS_;Qv.prototype.updateProgress=Qv.prototype.updateProgress;Qv.prototype.onTransferStateChanged=Qv.prototype.onTransferStateChanged;Qv.prototype.dataChanged=Qv.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Qv.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],Qv.prototype,"ytdReduxBehavior",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Qv.prototype,"forceIconButton",void 0);
_.B([_.H({value:!0}),_.k("design:type",Boolean)],Qv.prototype,"forceIconOnly",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Qv.prototype,"overrides",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Qv.prototype,"buttonTooltipPosition",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Qv.prototype,"styleActionButton",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Qv.prototype,"disableTextTransform",void 0);
_.B([_.H({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.k("design:type",String)],Qv.prototype,"playlistId",void 0);_.B([_.H(),_.k("design:type",Object)],Qv.prototype,"data",void 0);_.B([_.H({selector:_.WeZ,selectorArgs:["playlistId"]}),_.k("design:type",Object)],Qv.prototype,"downloadProgress",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Qv.prototype,"isDownloadComplete",void 0);
_.B([_.H({selector:_.YO,selectorArgs:["playlistId"]}),_.k("design:type",String)],Qv.prototype,"transferState",void 0);_.B([_.H({value:!0}),_.k("design:type",Boolean)],Qv.prototype,"showTooltips",void 0);_.B([_.H({value:!0}),_.k("design:type",Boolean)],Qv.prototype,"sendCommandWhenDisabled",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Qv.prototype,"disabled",void 0);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qv.prototype,"dataChanged",null);_.B([_.cT("transferState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qv.prototype,"onTransferStateChanged",null);_.B([_.cT("downloadProgress"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qv.prototype,"updateProgress",null);
Qv=_.B([_.L({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],Qv);
_.P(Qv,"ytd-download-playlist-button-renderer",function(){if($TX!==void 0)return $TX;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return $TX=p},{mode:1});var Npa;_.o7(_.N5,"thumbnail-overlay-button-view-model",{props:{data:_.G2,lockupExperiments:_.G2}});var hBm=function(){var p=_.m.apply(this,arguments)||this;p.isSquare=!1;p.isVertical=!1;return p};
_.E(hBm,_.m);hBm.prototype.computeIsSquare=function(p){return p!=null&&p.thumbnail?mVm(p.thumbnail)==="SQUARE":!1};
hBm.prototype.computeIsVertical=function(p){return p!=null&&p.thumbnail?mVm(p.thumbnail)==="VERTICAL":!1};
hBm.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
var zo=hBm;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],zo.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],zo.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.k("design:type",Object)],zo.prototype,"isSquare",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.k("design:type",Object)],zo.prototype,"isVertical",void 0);
_.B([_.H(),_.k("design:type",Object)],zo.prototype,"data",void 0);zo=_.B([_.L({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],zo);
_.P(zo,"ytd-hero-playlist-thumbnail-renderer",function(){if(Npa!==void 0)return Npa;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Npa=p},{mode:1});var ls8=function(){var p=_.m.apply(this,arguments)||this;p.isDarkTheme=!1;p.isUltraWide=!1;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return p};
_.E(ls8,_.m);_.l=ls8.prototype;_.l.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.J();var p;(p=_.J().resolve(_.Bw(_.$m)))!=null&&(p.headerElement=this.hostElement)};
_.l.detached=function(){var p;(p=_.J().resolve(_.Bw(_.$m)))!=null&&(p.headerElement=void 0)};
_.l.onUpdateHeader=function(p){(p=p.detail)&&this.set("data",p)};
_.l.computeTextDisplayed=function(p){if(p)return p.textDisplayed?p.textDisplayed:p.placeholder};
_.l.gradientColorToLinearGradientStop=function(p){var x=this.isDarkTheme?p.darkThemeColor:p.lightThemeColor;return x?_.QK(x)+" "+((p==null?void 0:p.startLocation)||0)*100+"%":"transparent"};
_.l.onWindowResize=function(){var p;((p=this.data)==null?0:p.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.l.onIronResize=function(p){this.isUltraWide=!p.detail.value};
_.l.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.l.onUpdatePlaylistName=function(p){var x=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},p.detail.value));_.jB(this,function(){var F;(F=x.editableTitle)==null||F.resize()})};
_.l.onUpdatePlaylistDescription=function(p){var x=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},p.detail.value));_.jB(this,function(){var F;(F=x.editableDescriptionInlineExpander)==null||F.resize()})};
_.l.getCinematicData=function(p){return _.r(p==null?void 0:p.cinematicContainer,_.u5)};
_.R8.Object.defineProperties(ls8.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 p,x=(p=this.getCinematicData(this.data))==null?void 0:p.config;return(p=this.isDarkTheme?x==null?void 0:x.darkThemeBackgroundColor:x==null?void 0:x.lightThemeBackgroundColor)?"background-color:"+_.gX(p)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var p;return _.r((p=this.data)==null?void 0:p.descriptionForm,aoH)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var p=this,x,F,N;return"background:linear-gradient(to bottom, "+(((N=(x=this.getCinematicData(this.data))==null?void 0:(F=x.gradientColorConfig)==null?void 0:F.map(function(h){return p.gradientColorToLinearGradientStop(h)}))==null?void 0:N.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var p;return _.Pi((p=this.data)==null?void 0:p.descriptionTapText)}}});
var sw=ls8;sw.prototype.onUpdateHeader=sw.prototype.onUpdateHeader;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],sw.prototype,"actionHandlerBehavior",void 0);_.B([_.Ff("#description-inline-expander"),_.k("design:type",Object)],sw.prototype,"descriptionInlineExpander",void 0);
_.B([_.Ff("#editable-description-inline-expander"),_.k("design:type",Object)],sw.prototype,"editableDescriptionInlineExpander",void 0);_.B([_.H(),_.k("design:type",Object)],sw.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],sw.prototype,"isUltraWide",void 0);_.B([_.Ff("#editable-title-display"),_.k("design:type",Object)],sw.prototype,"editableTitle",void 0);_.B([_.w("isUltraWide"),_.k("design:type",Object),_.k("design:paramtypes",[])],sw.prototype,"maxDescriptionLines",null);
_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],sw.prototype,"noCinematicData",null);_.B([_.V("yt-new-playlist-header"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],sw.prototype,"onUpdateHeader",null);_.B([_.w("data","isDarkTheme"),_.k("design:type",Object),_.k("design:paramtypes",[])],sw.prototype,"backgroundStyle",null);
_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],sw.prototype,"descriptionFormData",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],sw.prototype,"getDropdownTheme",null);_.B([_.w("data","isDarkTheme"),_.k("design:type",String),_.k("design:paramtypes",[])],sw.prototype,"gradientStyle",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],sw.prototype,"descriptionTapText",null);
sw=_.B([_.L({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],sw);
_.P(sw,"ytd-playlist-header-renderer",function(){if(Hje!==void 0)return Hje;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Hje=p},{mode:_.UQ("kevlar_poly_si_batch_j078")?1:2});var cOk;var asH;var MbH=function(){return _.m.apply(this,arguments)||this};
_.E(MbH,_.m);MbH.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
var nx=MbH;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],nx.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],nx.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],nx.prototype,"data",void 0);nx=_.B([_.L({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],nx);
_.P(nx,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(asH!==void 0)return asH;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return asH=p},{mode:1});var D6m=function(){return _.m.apply(this,arguments)||this};
_.E(D6m,_.m);
D6m.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}}}}};
D6m.prototype.computeUsePremiumShowStyle=function(p){if(!p||!p.items)return!1;for(var x=0;x<p.items.length;x++)if(_.r(p.items[x],MLX)){var F=void 0;return((F=_.r(p.items[x],MLX))==null?void 0:F.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
var yv=D6m;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],yv.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],yv.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],yv.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.k("design:type",Boolean)],yv.prototype,"usePremiumShowStyle",void 0);
yv=_.B([_.L({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],yv);
_.P(yv,"ytd-playlist-sidebar-renderer",function(){if(cOk!==void 0)return cOk;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return cOk=p},{mode:1});var fsk;var BIa=_.JR({pageHeaderViewModel:_.pRp});_.iK(Rom);_.kL(Rom,"yt-page-header-renderer",{propNames:"noPadding data enableBanner cinematicContainerTopbarOffset allowCinematicContainerOverflow displayAsSidebar".split(" ")});_.o7(_.Jzt,"yt-image-banner-view-model",{props:{data:_.G2,isPositionRelative:_.G2}});var KS8=function(){var p=_.m.apply(this,arguments)||this;p.expandableCustomTabRenderable=function(x){return OxX(x,function(){return void p.onSearchNavigate()})};
p.isRichGrid=!1;p.isConstrainedList=!1;p.richGridMiniMode=!1;p.richGridStyle="RICH_GRID_STYLE_UNKNOWN";p.isRichGridShorts=!1;p.responsiveSizing="COMPACT";p.disableGridStateAware=!1;p.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return p};
_.E(KS8,_.m);_.l=KS8.prototype;_.l.computeHeaderDisabled=function(p,x){return x||!p||this.tabsHidden};
_.l.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.l.computeIsRichGridShorts=function(p){return p==="RICH_GRID_STYLE_SHORTS_GRID"||p==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.l.computeImageBannerViewModel=function(){var p,x;return _.r((x=_.r((p=this.data)==null?void 0:p.content,_.u8m))==null?void 0:x.banner,_.epr)};
_.l.computeHasCinematicContainer=function(){var p,x;return!((x=_.r((p=this.data)==null?void 0:p.content,_.u8m))==null||!x.background)};
_.l.handleHeaderResize=function(){var p=_.n(this.hostElement).querySelector("#header");p&&_.hG(p,"iron-resize")};
_.l.handleInsertTabCommand=function(p){var x=_.r(p,vn8);x&&(x.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(F){return F.tabRenderer&&F.tabRenderer.tabIdentifier===x.tabIdentifier})||this.splice("tabs",x.tabIndex||-1,0,x.tab))};
_.l.handleRefreshChannelTabAction=function(p){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===p&&_.hG(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.l.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.eV(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.l.observerRichGridSlimItemsPerRow=function(){_.eV(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.l.updateCssVars=function(){this.richGridItemsPerRow&&_.eV(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Ud("rich_grid_max_item_width",500))+16)-16+"px"})};
_.l.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.eV(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.l.onDataChanged=function(){this.handleHeaderResize()};
_.l.onWindowResize=function(){this.handleHeaderResize()};
_.l.onFocusedChanged=function(p){(p=_.os(p))&&p.is==="tp-yt-paper-tab"&&p.hasRipple()&&(p.getRipple().holdDown=!p.pointerDown&&p.focused)};
_.l.updateSelectedFromBinding=function(p){this.ytdTabbedHeaderBehavior.selected=p.detail.value};
_.l.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.R8.Object.defineProperties(KS8.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:LG8(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.imageBannerViewModel)==null?void 0:p.style)==="IMAGE_BANNER_STYLE_INSET"}}});
var b4=KS8;b4.prototype.onDataChanged=b4.prototype.onDataChanged;b4.prototype.updateCssVarsForResponsiveGrid=b4.prototype.updateCssVarsForResponsiveGrid;b4.prototype.updateCssVars=b4.prototype.updateCssVars;b4.prototype.observerRichGridSlimItemsPerRow=b4.prototype.observerRichGridSlimItemsPerRow;b4.prototype.observerRichGridItemsPerRow=b4.prototype.observerRichGridItemsPerRow;_.B([_.u(_.Yk),_.k("design:type",Object)],b4.prototype,"ytdGridStateAwareBehavior",void 0);
_.B([_.u(C6H),_.k("design:type",Object)],b4.prototype,"ytdTabbedHeaderBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],b4.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],b4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.GM.YtdGuideStateAwareBehavior),_.k("design:type",Object)],b4.prototype,"ytdGuideStateAwareBehavior",void 0);
_.B([_.u(_.nl),_.k("design:type",Object)],b4.prototype,"ytdReduxBehavior",void 0);_.B([_.Ff("#tabs"),_.k("design:type",Object)],b4.prototype,"tabsElement",void 0);_.B([_.H(),_.k("design:type",Array)],b4.prototype,"tabs",void 0);_.B([_.H(),_.k("design:type",Object)],b4.prototype,"expandableCustomTabRenderable",void 0);_.B([_.w("tabs.*"),_.k("design:type",Object),_.k("design:paramtypes",[])],b4.prototype,"tabGroupShape",null);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],b4.prototype,"isRichGrid",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],b4.prototype,"isConstrainedList",void 0);_.B([_.H({reflectToAttribute:!0,selector:_.n1}),_.k("design:type",Object)],b4.prototype,"richGridMiniMode",void 0);_.B([_.H({selector:function(p){return p.ui.richGridStyle}}),
_.k("design:type",Object)],b4.prototype,"richGridStyle",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.k("design:type",Object)],b4.prototype,"isRichGridShorts",void 0);_.B([_.H({selector:_.yr}),_.k("design:type",Number)],b4.prototype,"richGridItemsPerRow",void 0);_.B([_.H({selector:function(p){return p.ui.richGridContainerWidth}}),
_.k("design:type",Number)],b4.prototype,"richGridContainerWidth",void 0);_.B([_.H({selector:_.Xjd}),_.k("design:type",Number)],b4.prototype,"richGridSlimItemsPerRow",void 0);_.B([_.H(),_.k("design:type",Object)],b4.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],b4.prototype,"responsiveSizing",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],b4.prototype,"disableGridStateAware",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeImageBannerViewModel(data)"}),_.k("design:type",Object)],b4.prototype,"imageBannerViewModel",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.k("design:type",Boolean)],b4.prototype,"hasCinematicContainer",void 0);_.B([_.H({selector:_.S4t,reflectToAttribute:!0}),_.k("design:type",Boolean)],b4.prototype,"guideIsVisibleButNotPersistent",void 0);
_.B([_.H({reflectToAttribute:!0}),_.w("imageBannerViewModel"),_.k("design:type",Object),_.k("design:paramtypes",[])],b4.prototype,"hasBanner",null);_.B([_.H({reflectToAttribute:!0}),_.w("imageBannerViewModel"),_.k("design:type",Object),_.k("design:paramtypes",[])],b4.prototype,"hasInsetBanner",null);_.B([_.H({computed:"computeTabsHidden(tabs)",value:!0}),_.k("design:type",Boolean)],b4.prototype,"tabsHidden",void 0);
_.B([_.W("richGridItemsPerRow","isRichGrid"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],b4.prototype,"observerRichGridItemsPerRow",null);_.B([_.W("richGridSlimItemsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],b4.prototype,"observerRichGridSlimItemsPerRow",null);
_.B([_.W("richGridItemsPerRow","richGridMiniMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],b4.prototype,"updateCssVars",null);_.B([_.W("richGridContainerWidth"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],b4.prototype,"updateCssVarsForResponsiveGrid",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],b4.prototype,"onDataChanged",null);
b4=_.B([_.L({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],b4);
_.P(b4,"ytd-tabbed-page-header",function(){if(fsk!==void 0)return fsk;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return fsk=p},{mode:1});var qFH;var ZkX=function(){return _.m.apply(this,arguments)||this};
_.E(ZkX,_.m);ZkX.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.eV(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.R8.Object.defineProperties(ZkX.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var p,x;return this.componentBehavior.computeIcon_(((x=_.r((p=this.data)==null?void 0:p.badge,_.G3k))==null?void 0:x.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var p,x;return(x=_.r((p=this.data)==null?void 0:p.badge,_.G3k))==null?void 0:x.label}}});
var AQ=ZkX;AQ.prototype.observerRichGridItemsPerRow=AQ.prototype.observerRichGridItemsPerRow;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],AQ.prototype,"componentBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],AQ.prototype,"ytdReduxBehavior",void 0);_.B([_.H({reflectToAttribute:!0,selector:_.n1}),_.k("design:type",Boolean)],AQ.prototype,"richGridMiniMode",void 0);
_.B([_.H({selector:_.yr}),_.k("design:type",Number)],AQ.prototype,"richGridItemsPerRow",void 0);_.B([_.H(),_.k("design:type",Object)],AQ.prototype,"data",void 0);_.B([_.W("richGridItemsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],AQ.prototype,"observerRichGridItemsPerRow",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],AQ.prototype,"badgeIconName",null);
_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],AQ.prototype,"badgeLabel",null);AQ=_.B([_.L({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],AQ);
_.P(AQ,"ytd-member-hub-profile-renderer",function(){if(qFH!==void 0)return qFH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return qFH=p},{mode:1});var tbH;var d6D=function(){return _.m.apply(this,arguments)||this};
_.E(d6D,_.m);d6D.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
var u4=d6D;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],u4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],u4.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],u4.prototype,"data",void 0);u4=_.B([_.L({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],u4);
_.P(u4,"ytd-settings-sidebar-renderer",function(){if(tbH!==void 0)return tbH;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return tbH=p},{mode:1});var vD8;var YN=function(){return _.m.apply(this,arguments)||this};
_.E(YN,_.m);YN.prototype.shouldHideHashtagInfo_=function(p){return!(p==null?0:p.hashtagInfoText)};
YN.prototype.onFocusedChanged=function(p){(p=_.os(p))&&p.is==="tp-yt-paper-tab"&&p.hasRipple()&&(p.getRipple().holdDown=!p.pointerDown&&p.focused)};
YN.prototype.updateSelectedFromBinding=function(p){this.selected=p.detail.value};
_.R8.Object.defineProperties(YN.prototype,{tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
var wI=YN;_.B([_.u(C6H),_.k("design:type",Object)],wI.prototype,"ytdTabbedHeaderBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],wI.prototype,"rendererBehaviors",void 0);_.B([_.H(),_.k("design:type",Object)],wI.prototype,"data",void 0);_.B([_.Ff("#tabs"),_.k("design:type",Object)],wI.prototype,"tabsElement",void 0);_.B([_.H(),_.k("design:type",Array)],wI.prototype,"tabs",void 0);_.B([_.H(),_.k("design:type",Object)],wI.prototype,"selected",void 0);
_.B([_.w("tabs"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],wI.prototype,"tabsEnabled",null);wI=_.B([_.L({disableElementRegistration:!0,is:"ytd-hashtag-header-renderer"})],wI);
_.P(wI,"ytd-hashtag-header-renderer",function(){if(vD8!==void 0)return vD8;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-hashtag-header-renderer">\n  <tp-yt-app-header id="header" slot="header" condenses="" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-hashtag-header-renderer">\n    <div id="hashtag-info-container" class="style-scope ytd-hashtag-header-renderer">\n      <yt-formatted-string id="hashtag" dir="auto" text="[[data.hashtag]]" class="style-scope ytd-hashtag-header-renderer">\n      </yt-formatted-string>\n      <div id="hashtag-info" hidden="[[shouldHideHashtagInfo_(data)]]" class="style-scope ytd-hashtag-header-renderer">\n        <yt-formatted-string id="hashtag-info-text" hidden="[[!data.hashtagInfoText]]" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-header-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <tp-yt-app-toolbar hidden="[[!tabsEnabled]]" sticky="" class="style-scope ytd-hashtag-header-renderer">\n      <div id="tabs-container" class="style-scope ytd-hashtag-header-renderer">\n        \n        <div id="tabs-inner-container" class="style-scope ytd-hashtag-header-renderer">\n          <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-hashtag-header-renderer">\n            <template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-hashtag-header-renderer">\n              <tp-yt-paper-tab disable-upgrade$="[[!item.tabRenderer]]" hidden="[[!item.tabRenderer]]" on-focused-changed="onFocusedChanged" class="style-scope ytd-hashtag-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab>\n            </template>\n          </tp-yt-paper-tabs>\n        </div>\n        <div id="tabs-divider" class="style-scope ytd-hashtag-header-renderer"></div>\n      </div>\n    </tp-yt-app-toolbar>\n  </tp-yt-app-header>\n</tp-yt-app-header-layout>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return vD8=p},{mode:_.UQ("kevlar_poly_si_batch_j078")?1:2});var JOk;var Go=function(){var p=_.m.apply(this,arguments)||this;p.expandableCustomTabRenderable=function(x){return OxX(x,function(){return void p.onSearchNavigate()})};
return p};
_.E(Go,_.m);Go.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Go.prototype.onSearchNavigate=function(){this.selected=void 0};
Go.prototype.onTabsChange=function(){var p,x=(p=this.tabs)==null?void 0:p.findIndex(function(F){var N;return F==null?void 0:(N=F.tabRenderer)==null?void 0:N.selected});
x!==void 0&&(this.selected=x)};
Go.prototype.onTabsActive=function(p){if(this.tabs!==void 0){var x,F;(p=(x=this.tabs[p.detail.selected])==null?void 0:(F=x.tabRenderer)==null?void 0:F.endpoint)&&_.hG(this.hostElement,"yt-navigate",{endpoint:p})}};
_.R8.Object.defineProperties(Go.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:LG8(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
var Vv=Go;Vv.prototype.onTabsChange=Vv.prototype.onTabsChange;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Vv.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.Yk),_.k("design:type",Object)],Vv.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.GM.YtdGuideStateAwareBehavior),_.k("design:type",Object)],Vv.prototype,"ytdGuideStateAwareBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],Vv.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Array)],Vv.prototype,"tabs",void 0);_.B([_.H(),_.k("design:type",Number)],Vv.prototype,"selected",void 0);_.B([_.w("tabs.*"),_.k("design:type",Object),_.k("design:paramtypes",[])],Vv.prototype,"tabGroupShape",null);_.B([_.H(),_.k("design:type",Object)],Vv.prototype,"expandableCustomTabRenderable",void 0);
_.B([_.w("tabs"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Vv.prototype,"tabsEnabled",null);_.B([_.cT("tabs"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Vv.prototype,"onTabsChange",null);Vv=_.B([_.L({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],Vv);
_.P(Vv,"ytd-topic-channel-details-renderer",function(){if(JOk!==void 0)return JOk;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return JOk=p},{mode:1});var CFH;var SF8=function(){var p=_.m.apply(this,arguments)||this;p.disableGridStateAware=!1;return p};
_.E(SF8,_.m);SF8.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]]"}}}}}};
SF8.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
SF8.prototype.updateCssVars=function(){_.eV(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Ud("rich_grid_max_item_width",500))+16)-16+"px"})};
var WO=SF8;WO.prototype.updateCssVars=WO.prototype.updateCssVars;WO.prototype.activeChanged=WO.prototype.activeChanged;_.B([_.u(_.GM.YtdGuideStateAwareBehavior),_.k("design:type",Object)],WO.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],WO.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],WO.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],WO.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],WO.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Array)],WO.prototype,"tabs",void 0);_.B([_.H(),_.k("design:type",Boolean)],WO.prototype,"active",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],WO.prototype,"disableGridStateAware",void 0);
_.B([_.H({selector:_.yr}),_.k("design:type",Number)],WO.prototype,"richGridItemsPerRow",void 0);_.B([_.H({selector:_.n1}),_.k("design:type",Boolean)],WO.prototype,"richGridMiniMode",void 0);_.B([_.Ff("ytd-carousel-item-renderer"),_.k("design:type",Object)],WO.prototype,"carousel",void 0);_.B([_.W("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],WO.prototype,"activeChanged",null);
_.B([_.W("richGridItemsPerRow","richGridMiniMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],WO.prototype,"updateCssVars",null);WO=_.B([_.L({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],WO);
_.P(WO,"ytd-carousel-header-renderer",function(){if(CFH!==void 0)return CFH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return CFH=p},{mode:1});var rOc;var EDa=_.B$(["https://www.google-analytics.com/analytics.js"]),XMe=function(){var p=_.m.apply(this,arguments)||this;p.scriptAnalyticsAdded=!1;return p};
_.E(XMe,_.m);XMe.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var p,x=(p=this.data)==null?void 0:p.tagManagerId;x&&(_.tA(x,_.sd("GL")),TIc(x))};
XMe.prototype.sendGoogleAnalyticsPageview=function(p){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var F=_.we.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(F)};
var x=window.ga;x("set","page",window.location.pathname);x.l=+new Date;x("set","forceSSL",!0);x("create",p,"'auto'");x("send","pageview")};
XMe.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var p=_.KH("SCRIPT");p.name="ga-analytics";var x=_.xH(EDa);_.UU(p,x);p.async=!0;_.n(this.hostElement).appendChild(p)};
var HO=XMe;HO.prototype.dataChanged=HO.prototype.dataChanged;_.B([_.H(),_.k("design:type",Object)],HO.prototype,"data",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],HO.prototype,"dataChanged",null);HO=_.B([_.L({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],HO);
_.P(HO,"ytd-channel-metadata-renderer",function(){if(rOc!==void 0)return rOc;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return rOc=p},{mode:1});var gDm;var QQe;var zB8=function(){return _.m.apply(this,arguments)||this};
_.E(zB8,_.m);var sQ8=zB8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],sQ8.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],sQ8.prototype,"data",void 0);sQ8=_.B([_.L({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],sQ8);
_.P(sQ8,"ytd-sub-feed-option-renderer",function(){if(QQe!==void 0)return QQe;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return QQe=p},{mode:1});var nDa;var yOH=function(){return _.m.apply(this,arguments)||this};
_.E(yOH,_.m);yOH.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
var mG=yOH;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],mG.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],mG.prototype,"ytRendererStamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],mG.prototype,"data",void 0);mG=_.B([_.L({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],mG);
_.P(mG,"ytd-sub-feed-selector-renderer",function(){if(nDa!==void 0)return nDa;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return nDa=p},{mode:1});var bke=function(){return _.m.apply(this,arguments)||this};
_.E(bke,_.m);
bke.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0},searchBoxRenderer:{component:"ytd-search-box-renderer",noInjection:!0},subFeedSelectorRenderer:{component:"ytd-sub-feed-selector-renderer",noInjection:!0},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",noInjection:!0},compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0},eomSettingsDisclaimerRenderer:{component:"ytd-eom-settings-disclaimer-renderer",noInjection:!0}}}}};
var oV=bke;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],oV.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],oV.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],oV.prototype,"data",void 0);oV=_.B([_.L({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],oV);
_.P(oV,"ytd-browse-feed-actions-renderer",function(){if(gDm!==void 0)return gDm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return gDm=p},{mode:1});var AO8;var udH;var YFH=function(){return _.m.apply(this,arguments)||this};
_.E(YFH,_.m);YFH.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
var Ow=YFH;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ow.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Ow.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ow.prototype,"data",void 0);Ow=_.B([_.L({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],Ow);
_.P(Ow,"ytd-mini-channel-renderer",function(){if(udH!==void 0)return udH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return udH=p},{mode:1});var wMm;var GE_=function(){return _.m.apply(this,arguments)||this};
_.E(GE_,_.m);GE_.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
var j5=GE_;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],j5.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],j5.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],j5.prototype,"data",void 0);j5=_.B([_.L({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],j5);
_.P(j5,"ytd-vertical-channel-section-renderer",function(){if(wMm!==void 0)return wMm;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return wMm=p},{mode:1});var Vbc=function(){return _.m.apply(this,arguments)||this};
_.E(Vbc,_.m);Vbc.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
var Lx=Vbc;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Lx.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Lx.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Lx.prototype,"data",void 0);Lx=_.B([_.L({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Lx);
_.P(Lx,"ytd-browse-secondary-contents-renderer",function(){if(AO8!==void 0)return AO8;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);
return AO8=p},{mode:1});var WSt;var Hkt=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};p.notActive=!1;p.isConstrainedList=!1;return p};
_.E(Hkt,_.m);_.l=Hkt.prototype;
_.l.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}}}},"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",
noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.l.getPath=function(p,x){var F="data.tabs.#"+x+".";p.tabs[x].tabRenderer?F+="tabRenderer.":p.tabs[x].expandableTabRenderer&&(F+="expandableTabRenderer.");return F+"content.sectionListRenderer"};
_.l.computeDisplayedContent=function(p){this.unlinkPaths("content");if(p&&p.tabs)for(var x=p.tabs.length,F=0;F<x;F++){var N=p.tabs[F].tabRenderer||p.tabs[F].expandableTabRenderer;if(N.selected&&N.content)return this.linkPaths("content",this.getPath(p,F)),N.content}return null};
_.l.computeHasSecondaryColumnData=function(p){return!!p&&!!p.secondaryContents};
_.l.onRetrieveLocation=function(p,x){x.locationRetrieved(x.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);p.stopPropagation()};
_.l.onYtServiceRequestSent=function(p,x){_.S("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(x)};
_.l.onYtServiceRequestCompleted=function(p,x){_.S("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(x)};
_.l.onReplaceFeedContentAction=function(p){if(!_.S("replace_feed_content_action_killswitch")&&!this.notActive){var x;(p=(x=_.r(p,N9t))==null?void 0:x.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(p)}};
_.l.handleServiceRequestActions=function(p){if(p=p.actions){p=_.a(p);for(var x=p.next();!x.done;x=p.next()){x=x.value;var F=void 0;((F=_.r(x,N9t))==null?0:F.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.r(x,N9t).items)}}};
var PO=Hkt;PO.prototype.onYtServiceRequestCompleted=PO.prototype.onYtServiceRequestCompleted;PO.prototype.onYtServiceRequestSent=PO.prototype.onYtServiceRequestSent;PO.prototype.onRetrieveLocation=PO.prototype.onRetrieveLocation;_.B([_.u(_.Yk),_.k("design:type",Object)],PO.prototype,"ytdGridStateAwareBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],PO.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],PO.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],PO.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],PO.prototype,"data",void 0);_.B([_.H({computed:"computeDisplayedContent(data)"}),_.k("design:type",Object)],PO.prototype,"content",void 0);
_.B([_.H({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],PO.prototype,"hasSecondaryColumnData",void 0);_.B([_.H({value:function(){return window.outerHeight>1024?3:2}}),
_.k("design:type",Number)],PO.prototype,"initialCount",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],PO.prototype,"pageSubtype",void 0);_.B([_.Ff("ytd-section-list-renderer"),_.k("design:type",Object)],PO.prototype,"listRenderer",void 0);_.B([_.H(),_.k("design:type",Object)],PO.prototype,"notActive",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],PO.prototype,"isConstrainedList",void 0);
_.B([_.H(),_.k("design:type",String)],PO.prototype,"responsiveSizing",void 0);_.B([_.V("yt-retrieve-location"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],PO.prototype,"onRetrieveLocation",null);_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],PO.prototype,"onYtServiceRequestSent",null);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Ht]),_.k("design:returntype")],PO.prototype,"onYtServiceRequestCompleted",null);PO=_.B([_.L({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],PO);
_.P(PO,"ytd-two-column-browse-results-renderer",function(){if(WSt!==void 0)return WSt;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return WSt=p},{mode:2});var m6k;var oDX;var OkH=function(){var p=_.m.apply(this,arguments)||this;p.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"]);p.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"]);p.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return p};
_.E(OkH,_.m);_.l=OkH.prototype;_.l.attached=function(){this.requestElementsPerRow()};
_.l.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[dismissBoundButtonTap_]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[acceptBoundButtonTap_]]"}}}}}};
_.l.onUpdateElementsPerRowAction=function(p){p&&this.elementsPerRow!==p&&(this.elementsPerRow=p)};
_.l.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.l.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.l.computeAlertStyle_=function(p){return p};
_.l.observerElementsPerRow=function(){this.elementsPerRow&&_.eV(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.l.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.l.requestElementsPerRow=function(){_.hG(this.hostElement,"yt-request-elements-per-row")};
var To=OkH;To.prototype.onIsVisibleChanged_=To.prototype.onIsVisibleChanged_;To.prototype.observerElementsPerRow=To.prototype.observerElementsPerRow;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],To.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],To.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],To.prototype,"actionHandlerBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],To.prototype,"data",void 0);_.B([_.H({value:6,reflectToAttribute:!0}),_.k("design:type",Number)],To.prototype,"elementsPerRow",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],To.prototype,"wrapButtons",void 0);_.B([_.H({value:_.sd("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.k("design:type",Boolean)],To.prototype,"isMusic",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.k("design:type",String)],To.prototype,"alertStyle",void 0);_.B([_.H({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.k("design:type",Function)],To.prototype,"dismissBoundButtonTap_",void 0);_.B([_.H({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.k("design:type",Function)],To.prototype,"acceptBoundButtonTap_",void 0);_.B([_.W("elementsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],To.prototype,"observerElementsPerRow",null);_.B([_.W("data.isVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],To.prototype,"onIsVisibleChanged_",null);To=_.B([_.JZ({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],To);
_.P(To,"yt-alert-with-actions-renderer",function(){if(oDX===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;m6k===void 0&&(m6k=document.createElement("template"));var N=m6k;F.call(x,N.content.cloneNode(!0),p.content.firstChild);oDX=p}p=oDX;return p},{mode:2});_.o7(_.mO(function(p){var x=_.oc(),F=function(){return p.data().canvasPromoData},N=function(){var c;
return(c=p.data().bannerHeight)!=null?c:48};
_.oC(x,function(){var c;return(c=p.data())==null?void 0:c.rendererContext},void 0,void 0,void 0,!0);
var h={};return _.Z("yt-personal-greeting-view-model",{el:x,class:_.$L("ytPersonalGreetingViewModelHost",p.className),style:_.a4({height:(0,_.v3)(function(){return N()})})},_.Z(_.Es,{data:function(){return p.data().avatar}},{decoratedAvatarViewModel:function(c){return _.Z(_.A6,{data:c.data,
className:_.$L("ytPersonalGreetingViewModelAvatar")})}}),_.Z(_.KQ,{text:function(){var c;
return(F==null?void 0:(c=F())==null?void 0:c.headline)||p.data().greeting},
className:_.$L("ytPersonalGreetingViewModelHeadline",(h.ytPersonalGreetingViewModelHeadlineSmall=function(){return N()===48},h))}))},"Ih"),"yt-personal-greeting-view-model",{props:{data:_.G2,
className:_.G2}});var jQX=function(){var p=_.m.apply(this,arguments)||this;p.hidden=!1;p.isConstrainedList=!1;p.darkerDarkTheme=_.S("web_darker_dark_theme");p.responsiveSizing="COMPACT";p.attachedPlayers=_.S("kevlar_channel_trailer_multi_attach")?[]:void 0;p.player=null;p.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return p};
_.E(jQX,_.m);_.l=jQX.prototype;
_.l.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{c4TabbedHeaderRenderer:{component:"ytd-c4-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[fluidWidth]]"},noInjection:!0},pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",
isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",
tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},hashtagHeaderRenderer:{component:"ytd-hashtag-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.l.created=function(){var p=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){p.disposeMastheadAd()}]};
_.l.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new En_(this.refresh,this.contents))};
_.l.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.l.activeChanged=function(){var p=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=p)};
_.l.tabsChanged=function(){var p=this,x,F,N,h;if(this.pageSubtype==="channels"||_.S("kevlar_tab_gestures_for_tabbed_header_data")&&(((x=this.data)==null?0:(F=x.header)==null?0:F.c4TabbedHeaderRenderer)||((N=this.data)==null?0:(h=N.header)==null?0:h.carouselHeaderRenderer)))this.tabGestures=new HU(this.contents,this.contents,this.hostElement,this.header,function(K){p.ytdReduxBehavior.dispatch(K)});
var c,M,f;x=(c=this.data)==null?void 0:(M=c.contents)==null?void 0:(f=M.twoColumnBrowseResultsRenderer)==null?void 0:f.tabs;this.header&&this.header.firstChild&&(this.header.firstChild.tabs=x);this.tabGestures&&this.tabGestures.tabsChanged(x)};
_.l.channelIdChanged=function(){if(this.tabGestures){var p,x,F,N=this.tabGestures,h=(p=this.data)==null?void 0:(x=p.header)==null?void 0:(F=x.c4TabbedHeaderRenderer)==null?void 0:F.channelId;h&&h!==N.currentChannelId&&(N.scrollPositionForTabs.clear(),N.currentChannelId=h,N.lastVisitedTabScrollPosition=void 0,N.tabsStartAtInPx=0)}};
_.l.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.l.engagementPanelsChanged=function(){var p=_.J().resolve(_.Xm);if(p){if(this.engagementPanels)for(var x=_.a(this.engagementPanels),F=x.next();!F.done;F=x.next()){var N=void 0;(F=(N=F.value.identifier)==null?void 0:N.tag)&&p.panelMap.delete(F)}this.engagementPanels=[];var h;x=_.a(((h=this.data)==null?void 0:h.panels)||[]);for(h=x.next();!h.done;h=x.next()){h=_.r(h.value,_.m3k);var c=F=void 0,M=void 0,f=void 0;if(N=((F=h)==null?void 0:F.targetId)||((c=h)==null?void 0:c.panelIdentifier)||((M=h)==null?
void 0:(f=M.identifier)==null?void 0:f.tag))c=F=void 0,(c=(F=p).registerPanelContent)==null||c.call(F,N,{engagementPanelSectionListRenderer:h}),this.engagementPanels.push(h)}}};
_.l.onStampFinished=function(){var p=this;_.jB(this,function(){if(p.tabGestures){var x=p.tabGestures;if(x.scrollPositionNeedsUpdate){var F=_.J().resolve(_.Bw(_.j3)),N;if((N=x.selectedTab)!=null&&N.title&&F&&(N=F.getCurrentPage())){if(x.scrollPositionForTabs.has(x.selectedTab.title)){var h,c;F=(c=(h=F.getCurrentPage())==null?void 0:h.clientHeight)!=null?c:0;h=x.scrollPositionForTabs.get(x.selectedTab.title);N.setScrollTop(h);F>h+100&&(x.scrollPositionNeedsUpdate=!1)}else N.setScrollTop(Math.min(x.lastVisitedTabScrollPosition!==
void 0?x.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,x.tabsStartAtInPx)),x.scrollPositionNeedsUpdate=!1;x.ytdReduxDispatch(koD(!1))}}}})};
_.l.loadPage_=function(p){this.initCsi();p&&(this.data=p);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.l.getTitle=function(p){return this.pageSubtype=="home"?"":this.get("microformat.microformatDataRenderer.title",p)?this.get("microformat.microformatDataRenderer.title",p):this.get("header.c4TabbedHeaderRenderer.title",p)?this.get("header.c4TabbedHeaderRenderer.title",p):this.get("header.feedTabbedHeaderRenderer.title",p)?_.Pi(this.get("header.feedTabbedHeaderRenderer.title",p)):this.get("header.interactiveTabbedHeaderRenderer.title",p)?this.get("header.interactiveTabbedHeaderRenderer.title",p):this.get("header.hashtagHeaderRenderer.hashtag",
p)?_.Pi(this.get("header.hashtagHeaderRenderer.hashtag",p)):this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",p)?_.Pi(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
p)):""};
_.l.updateTitle=function(p){_.hG(this.hostElement,"yt-update-title",this.getTitle(p))};
_.l.initCsi=function(){_.WGe(this.pageSubtype||"browse",["ol","cpt"])};
_.l.getPlayer=function(){if(_.S("kevlar_channel_trailer_multi_attach")){for(var p=_.a(this.attachedPlayers),x=p.next();!x.done;x=p.next())if(x=x.value,x.isConnected||_.uI(this.hostElement,x))return x;return null}return this.player};
_.l.getPlayerContainer=function(){return null};
_.l.onPlayerAttached=function(p,x){_.S("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(x):this.player=x};
_.l.onPlayerDetached=function(p,x){_.S("kevlar_channel_trailer_multi_attach")?(p=this.attachedPlayers.indexOf(x),p<0||this.attachedPlayers.splice(p,1)):this.player=null};
_.l.getServiceTrackingParams=function(){var p,x;return((p=this.data)==null?void 0:(x=p.responseContext)==null?void 0:x.serviceTrackingParams)||[]};
_.l.setMastheadAd=function(p){p&&p.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=p&&p.mastheadAd};
_.l.dataChanged=function(){var p=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.sVH();_.jB(this,function(){_.Mt(p.hostElement,"ytd-update-grid-state-action")})};
_.l.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.l.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var p=this.data.alerts;return p&&p.find(function(x){return!!x.alertWithActionsRenderer})}};
_.l.computeGreetingData=function(){if(this.data&&this.data.alerts){var p=this.data.alerts;return p&&p.find(function(x){return!!x.personalGreetingViewModel})}};
_.l.computeHasC4TabbedHeaderRenderer=function(p){var x;return!!(p==null?0:(x=p.header)==null?0:x.c4TabbedHeaderRenderer)};
_.l.computeHasMemberHubProfileRenderer=function(p){var x;return!!(p==null?0:(x=p.header)==null?0:x.memberHubProfileRenderer)};
_.l.handleAlertCommand=function(p){this.get("alertCommand.alert.alertWithActionsRenderer",p)&&(p=_.r(p,h7_),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",p.alert))};
_.l.handleYtPlaylistDeletionRedirect=function(p){p=this.get("playlistDeletionRedirectCommand.redirectEndpoint",p);_.hG(this.hostElement,"yt-navigate",{endpoint:p})};
_.l.computeFluidWidth=function(p,x,F){if(x==="mini_app"||F)return!0;var N,h,c;p=p==null?void 0:(N=p.contents)==null?void 0:(h=N.twoColumnBrowseResultsRenderer)==null?void 0:(c=h.tabs)==null?void 0:c.find(function(K){var t;return K==null?void 0:(t=K.tabRenderer)==null?void 0:t.selected});
if(!p)return!1;var M,f;return!!((M=p.tabRenderer)==null?0:(f=M.content)==null?0:f.richGridRenderer)&&!["channel","channels","playables"].includes(x)};
_.l.computeHeaderFluidWidth=function(p){return p==="hashtag-landing-page"};
_.l.computeHasSidebar=function(p){var x;return!!(p.sidebar||((x=p.header)==null?0:x.playlistHeaderRenderer))};
_.l.computeHasPageHeaderSidebar=function(p){var x,F;return!!((x=p.header)==null?0:(F=x.pageHeaderRenderer)==null?0:F.enableSidebarView)};
_.l.computeUseUnifiedShowPageLayout=function(p){if(!p||this.pageSubtype!=="show"||!p.sidebar||!p.sidebar.playlistSidebarRenderer)return!1;p=p.sidebar.playlistSidebarRenderer;if(!p.items)return!1;for(var x=0;x<p.items.length;x++)if(_.r(p.items[x],MLX)){var F=void 0;return((F=_.r(p.items[x],MLX))==null?void 0:F.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.l.computeIsConstrainedList=function(p){return _.S("web_enable_constrained_list_subscriptions_channels")&&p==="subscriptions-channels"};
_.l.computeResponsiveSizing=function(p){return p==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.R8.Object.defineProperties(jQX.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var p,x;return((p=this.data)==null?0:(x=p.header)==null?0:x.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var p,x;if(!((p=this.data)==null?0:(x=p.sidebar)==null?0:x.playlistSidebarRenderer))return!1;var F;return(F=this.data)!=null&&F.header?!1:!0}}});
_.R8.Object.defineProperties(jQX,{template:{configurable:!0,enumerable:!0,get:function(){if(QHc===void 0){var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" disable-upgrade$="[[!hasPageHeaderSidebar]]" display-as-sidebar="" hidden="[[!hasPageHeaderSidebar]]">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);QHc=p}p=QHc;return p}}});
var BO=jQX;BO.prototype.dataChanged=BO.prototype.dataChanged;BO.prototype.onPlayerDetached=BO.prototype.onPlayerDetached;BO.prototype.onPlayerAttached=BO.prototype.onPlayerAttached;BO.prototype.onStampFinished=BO.prototype.onStampFinished;BO.prototype.engagementPanelsChanged=BO.prototype.engagementPanelsChanged;BO.prototype.scrollAtTopChanged=BO.prototype.scrollAtTopChanged;BO.prototype.channelIdChanged=BO.prototype.channelIdChanged;BO.prototype.tabsChanged=BO.prototype.tabsChanged;
BO.prototype.activeChanged=BO.prototype.activeChanged;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],BO.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.Oo),_.k("design:type",Object)],BO.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],BO.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],BO.prototype,"ytdReduxBehavior",void 0);
_.B([_.u(_.Gr.YtPageBehavior),_.k("design:type",Object)],BO.prototype,"ytPageBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],BO.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.GM.YtdGuideStateAwareBehavior),_.k("design:type",Object)],BO.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],BO.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],BO.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],BO.prototype,"hidden",void 0);_.B([_.H(),_.k("design:type",Object)],BO.prototype,"mastheadAdData",void 0);_.B([_.H({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.k("design:type",Object)],BO.prototype,"alertBannerData",void 0);_.B([_.H({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.k("design:type",Object)],BO.prototype,"greetingData",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],BO.prototype,"pageSubtype",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasC4TabbedHeaderRenderer(data)"}),_.k("design:type",Boolean)],BO.prototype,"hasC4TabbedHeaderRenderer",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.k("design:type",Boolean)],BO.prototype,"hasMemberHubProfileRenderer",void 0);
_.B([_.H({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],BO.prototype,"hasSidebar",void 0);_.B([_.H({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],BO.prototype,"hasPageHeaderSidebar",void 0);_.B([_.H({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],BO.prototype,"roundedContainer",void 0);
_.B([_.H({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],BO.prototype,"useUnifiedShowPageLayout",void 0);_.B([_.H({computed:"computeIsConstrainedList(pageSubtype)"}),_.k("design:type",Object)],BO.prototype,"isConstrainedList",void 0);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],BO.prototype,"usePlaylistHeaderRenderer",null);
_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],BO.prototype,"useOldPlaylistSidebarRenderer",null);_.B([_.H({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.k("design:type",Boolean)],BO.prototype,"fluidWidth",void 0);_.B([_.H({selector:function(p){return p.ui.scrollAtTop}}),
_.k("design:type",Boolean)],BO.prototype,"scrollAtTop",void 0);_.B([_.H({selector:_.rl_}),_.k("design:type",Boolean)],BO.prototype,"tabGesturesIsActive",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],BO.prototype,"darkerDarkTheme",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.k("design:type",Boolean)],BO.prototype,"disableHeaderFluidWidth",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.k("design:type",String)],BO.prototype,"responsiveSizing",void 0);_.B([_.Ff("ytd-two-column-browse-results-renderer"),_.k("design:type",HTMLElement)],BO.prototype,"contents",void 0);_.B([_.Ff("#header"),_.k("design:type",HTMLElement)],BO.prototype,"header",void 0);_.B([_.Ff("ytd-refresh"),_.k("design:type",Object)],BO.prototype,"refresh",void 0);
_.B([_.W("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BO.prototype,"activeChanged",null);_.B([_.W("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BO.prototype,"tabsChanged",null);_.B([_.W("data.header.c4TabbedHeaderRenderer.channelId"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BO.prototype,"channelIdChanged",null);
_.B([_.W("scrollAtTop"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BO.prototype,"scrollAtTopChanged",null);_.B([_.H(),_.k("design:type",Object)],BO.prototype,"engagementPanels",void 0);_.B([_.W("data.panels"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BO.prototype,"engagementPanelsChanged",null);
_.B([_.V("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BO.prototype,"onStampFinished",null);_.B([_.V("yt-player-attached"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Element]),_.k("design:returntype")],BO.prototype,"onPlayerAttached",null);_.B([_.V("yt-player-detached"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Element]),_.k("design:returntype")],BO.prototype,"onPlayerDetached",null);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BO.prototype,"dataChanged",null);BO=_.B([_.L({is:"ytd-browse"})],BO);_.Qx.registerService(_.eoZ,BO);
_.z4();
}catch(e){_._DumpException(e)}
try{
_.QH("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 t6t=function(p,x){return p<x?-1:p>x?1:0},hr=function(p,x){var F=0;
p=(0,_.hH)(String(p)).split(".");x=(0,_.hH)(String(x)).split(".");for(var N=Math.max(p.length,x.length),h=0;F==0&&h<N;h++){var c=p[h]||"",M=x[h]||"";do{c=/(\d*)(\D*)(.*)/.exec(c)||["","","",""];M=/(\d*)(\D*)(.*)/.exec(M)||["","","",""];if(c[0].length==0&&M[0].length==0)break;F=t6t(c[1].length==0?0:parseInt(c[1],10),M[1].length==0?0:parseInt(M[1],10))||t6t(c[2].length==0,M[2].length==0)||t6t(c[2],M[2]);c=c[3];M=M[3]}while(F==0)}return F},l_=function(p){if(!p)return"browse";
var x=p.page,F=p.url,N,h,c,M=(N=p.response)==null?void 0:(h=N.responseContext)==null?void 0:(c=h.webResponseContextExtensionData)==null?void 0:c.pageTheme;if(M)x=M.toLowerCase().replace(/_/g,"-");else if(x!=="watch"){var f,K;if((x==="browse"||x==="settings")&&((f=p.response)==null?0:(K=f.sidebar)==null?0:K.settingsSidebarRenderer))x="WEB_PAGE_TYPE_SETTINGS";else{var t,d;x==="browse"&&((t=p.response)==null?0:(d=t.metadata)==null?0:d.channelMetadataRenderer)?x="channel":F&&(x=_.q7B(F)||x)}}return x},
ddm=function(){var p=_.A9("yt.aba.att");
return p?p:_.cG.instance!==void 0?_.cG.instance.du8.bind(_.cG.instance):null},vLm=function(p,x){var F;
return _.D(function(N){return(F=ddm())?N.return(F(p,x,6E4)):N.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},JDH=function(p,x,F,N,h){x=x===void 0?[]:x;
h=h?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:h}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.ez(p),dialogMessages:x.map(function(c){return _.ez(c)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ez(F),serviceEndpoint:h}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.ez(N)}}}}}},CzH=function(p){var x=!!_.Hj().queueProxy;
var F,N,h;p=p==null?void 0:(F=p.response)==null?void 0:(N=F.currentVideoEndpoint)==null?void 0:(h=N.watchEndpoint)==null?void 0:h.playlistId;return!(!x&&!p)},Sum=function(p,x){var F=_.fb();
if(CzH(p))return F.playlistWatchPageActivation=!0;switch(l_(x)){case "yts-products":return F.productDetailsPageActivation=!0;case "mini_app":return F.miniAppPageActivation=!0;case "playables":return F.playablesDestPageActivation=!0;default:return!1}},rDH=function(p,x,F){for(var N=typeof p==="string"?p.split(""):p,h=p.length-1;h>=0;--h)h in N&&x.call(F,N[h],h,p)},ELc=function(p,x){x=_.SMH(p,x);
x>=0&&_.XrJ(p,x)},Xlk=function(p){return Array.prototype.concat.apply([],arguments)},gLH=function(p){var x=0;
x=x===void 0?0:x;if(!_.iB(p))throw _.NI("uint64");var F=typeof p;switch(x){case 512:switch(F){case "string":return _.nBJ(p);case "bigint":return String((0,_.K8)(64,p));default:return _.z6M(p)}case 1024:switch(F){case "string":return _.yCw(p);case "bigint":return _.VJ((0,_.K8)(64,p));default:return _.skM(p)}case 0:switch(F){case "string":return _.nBJ(p);case "bigint":return _.VJ((0,_.K8)(64,p));default:return _.QkB(p)}default:return _.Pb(x,"Unknown format requested type for int64")}},Q7_=function(p){if(p==
null)return p;
if(typeof p==="bigint")return p>=0&&(0,_.Ek)(p)?p=Number(p):(p=(0,_.K8)(64,p),p=(0,_.Ek)(p)?Number(p):String(p)),p;if(_.iB(p))return typeof p==="number"?_.QkB(p):_.nBJ(p)},zlD=function(p){p!=null&&(p=p.JSC$6671_value_||"",p=typeof p==="string"?p:new Uint8Array(p));
return p},s7D=function(p){for(var x=_.we.apply(1,arguments),F=p[0],N=0;N<p.length-1;N++)F+=String(x[N]),F+=p[N+1];
x=document.implementation.createHTMLDocument("");N=x.createElement("style");x.head.appendChild(N);x=N.sheet;x.insertRule(F,0);if(x.cssRules.length===1&&(F=x.cssRules[0],F instanceof CSSStyleRule))return new _.pM(F.cssText.replace(/</g,"\\3C "))},nLe=function(p,x){if(/-[a-z]/.test(x))return null;
if(_.QMD&&p.dataset){if(_.fZB()&&!(x in p.dataset))return null;p=p.dataset[x];return p===void 0?null:p}return p.getAttribute("data-"+_.ZI(x))},br8=function(){var p=yD8;
_.A9("yt.ads.biscotti.getId_")||_.ox("yt.ads.biscotti.getId_",p)},ADt=function(p){_.ox("yt.ads.biscotti.lastId_",p)},Yuc=function(){var p={};
for(_.Jq=new uYm(p.handleError===void 0?_.s$:p.handleError,p.logEvent===void 0?_.E$:p.logEvent);_.Cf.length>0;)switch(p=_.Cf.shift(),p.type){case "ERROR":_.Jq.logError(p.payload);break;case "EVENT":_.Jq.logEvent(p.eventType,p.payload)}},wl8=function(p,x,F){return _.y$6(function(N){return F?N.userIdentifier!==void 0&&!p.includes(N.userIdentifier)&&F.includes(N.publicName):N.userIdentifier!==void 0&&!p.includes(N.userIdentifier)},x)},GTm=function(p){var x,F;
return _.D(function(N){if(N.nextAddress==1)return x=_.ff("YtIdbMeta hasAnyMeta other"),_.q(N,_.y$6(function(h){return h.userIdentifier!==void 0&&h.userIdentifier!==x},p),2);
F=N.yieldResult;return N.return(F.length>0)})},WJm=function(p,x){V6D||(V6D=_.E0.addLowPriorityJob(function(){var F,N,h,c,M;
return _.D(function(f){switch(f.nextAddress){case 1:return _.q(f,_.O5(),2);case 2:F=f.yieldResult;if(!F)return f.return();N=!0;_.KM(f,3);return _.q(f,wl8(p,F,x),5);case 5:h=f.yieldResult;if(!h.length){N=!1;f.jumpTo(6);break}c=h[0];return _.q(f,_.Y3(c.actualName),7);case 7:return _.q(f,_.Vz(c.actualName,F),6);case 6:_.ub(f,4);break;case 3:M=_.v9(f),_.SQ(M),N=!1;case 4:_.E0.cancelJob(V6D),V6D=0,N&&WJm(p,x),_.JB(f)}})}))},Hra=function(){var p;
return _.D(function(x){return x.nextAddress==1?_.q(x,_.O5(),2):(p=x.yieldResult)?x.return(GTm(p)):x.return(!1)})},mdk=function(p){var x=100;
x=x===void 0?500:x;var F,N,h,c,M,f;return _.D(function(K){return K.nextAddress==1?(F=_.sd("INNERTUBE_CONTEXT_CLIENT_NAME",0),N=[F,(0,_.Lf)()-2592E6],h=[F,(0,_.Lf)()],c=IDBKeyRange.bound(N,h),_.q(K,_.xdw(p),2)):K.nextAddress!=3?(M=K.yieldResult,f=[],_.q(K,_.GI(M,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(t){f.length=0;return _.P8(t.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:c,direction:"prev"},function(d){if(d.getValue()&&f.length<x)return f.push(d.getValue()),
d.delete().then(function(){return d.continue()})})}),3)):K.return(f)})},oLt=function(){var p;
return _.D(function(x){if(x.nextAddress==1)return _.q(x,_.O5(),2);p=x.yieldResult;if(!p||!_.Kf()&&!_.S("nwl_init_require_datasync_id_killswitch")||!_.rDr())return x.jumpTo(0);_.XlM=!0;_.ELw.isNwlInitialized=_.XlM;return _.q(x,_.WwK().awaitInitialization(),0)})},cV=function(p,x){_.mdM[p]=!0;
var F=_.i1();F&&F.publish.apply(F,arguments);_.mdM[p]=!1},j7a=function(){if(_.vJJ()&&!Orm){var p=function(F){F=F.data;
if(F.op==="serializedGelBatch"){var N=_.opp.get(F.key);N&&(_.j4r(F.serializedBatch,N.client,N.resolve,N.networklessOptions,N.isIsolated,N.useVSSEndpoint,N.dangerousLogToVisitorSession,N.requestsOutstanding),_.opp.delete(F.key))}},x=_.dud();
x&&(x.addEventListener("message",p),x.onerror=function(){_.opp.clear()});
Orm=!0}},ae=function(){this.relativeTimeStart_=_.FV()},LJ8=function(p,x){p!=null&&this.append.apply(this,arguments)},Pzm=function(){return _.w6("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},T$X=function(p,x,F){F=F===void 0?!1:F;
var N,h,c,M,f;return _.D(function(K){switch(K.nextAddress){case 1:_.ME("SOCS",p,34128E3,"youtube.com",!0);if(_.KT)return h=fetch(x,{method:"POST",mode:_.Ls(x),credentials:_.jq(x),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),c=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Ls("/upgrade_visitor_cookie?eom=1"),credentials:_.jq("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.q(K,Promise.all([h,c]).then(function(t){return t[1]}),5);
fetch(x,{method:"POST",mode:_.Ls(x),credentials:_.jq(x),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.q(K,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Ls("/upgrade_visitor_cookie?eom=1"),credentials:_.jq("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:N=K.yieldResult;K.jumpTo(3);break;case 5:N=M=K.yieldResult;case 3:if(!N.ok)throw Error("mf");return _.q(K,N.text(),7);case 7:f=K.yieldResult,
!f.includes('"state_switch":true')&&!F||f.includes("skip_reload_for_test")||window.location.reload(),_.JB(K)}})},B$m=function(p){return _.D(function(x){return x.nextAddress==1?_.q(x,T$X(p.socsCookie,p.savePreferenceUrl,!0),2):x.return()})},Rle=function(p){return _.D(function(x){return x.nextAddress==1?_.q(x,T$X(p.socsCookie,p.savePreferenceUrl),2):x.return()})},Udt=function(p){p=p.xhr.responseText;
if(!_.qm(p,")]}'"))throw new M2;p=JSON.parse(p.substr(4));if((p.type||1)>1)throw new M2;p=p.id;ADt(p);Db=_.oL(p);kTX(18E5,2);return p},I$k=function(p,x){x=new irH(x);
ADt("");Db=_.o6v(x);p>0&&kTX(12E4,p-1);throw x;},kTX=function(p,x){_.er(function(){_.W3r().then(Udt,function(F){return I$k(x,F)}).thenCatch(_.Ja)},p)},yD8=function(){var p=_.RUz();
if(p!==void 0)return _.o9(p);Db||(Db=_.W3r().then(Udt).thenCatch(function(x){return I$k(2,x)}));
return Db},$d_=function(){var p=document;
return _.V6(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(x){return"on"+x.toLowerCase()in p})},ela=function(p){p.addEventListener("click",function(x){var F=x.target;
F&&F.getAttribute("href")&&(F=F.getAttribute("href"),_.L6(window,F,"_blank"),x.preventDefault(),x.stopImmediatePropagation())})},pt_=function(p){var x,F,N,h=(N=(F=((x=p.mainDownloadsListEntity)!=null?x:{})[_.vxd])==null?void 0:F.refresh)!=null?N:"",c;
p=(c=p.refresh)==null?void 0:c[h];h=p!=null?p:{};return(h==null?0:h.refreshTime)?Number(h==null?void 0:h.refreshTime):0},xCm=function(p,x){var F=_.gb(p);
return x.every(function(N){var h;N=N==null?void 0:(h=N.playbackDataEntity)==null?void 0:h.key;if(!N)return!1;h=_.au(_.h$(N).entityId,"mainVideoEntity");return!!F[h]})},Fx8=function(p){p=_.rb(p.entities);
return _.b4p(p).length},N5t=function(p,x){if(x){var F;
p=(F=_.M4(p.entities,"downloadQualityPickerEntity",x))!=null?F:void 0}else p=void 0;return p},c0X=function(){hgm||(_.jT=_.qBz,hgm=new lSe);
return hgm},aS8=function(p){var x=document.getElementsByTagName("ytd-enforcement-message-view-model");
x.length===0||getComputedStyle(x[0]).display==="none"?p(0,"p.h_"):p(1,"p.h_")},fL=function(p){var x,F;
(p=(F=_.r(p==null?void 0:p.commandMetadata,_.eq))==null?void 0:F.url)&&(x=_.q7B(p));return x},M3m=function(){KL=0;
var p=[_.tF(!0)];q2&&_.Mt(q2,"yt-window-resized",p)},DCc=function(){KL||(KL=_.E0.addLowPriorityJob(M3m,200))},KxH=function(){Zb=0;
fS8=_.FAv(document);var p=[fS8];q2&&_.Mt(q2,"yt-window-scrolled",p)},qim=function(){Zb||(Zb=_.E0.addLowPriorityJob(KxH,200))},t3t=function(p){p=p===void 0?null:p;
ZQ8.push(_.Bu(window,"resize",DCc));ZQ8.push(_.Bu(window,"scroll",qim));p&&(q2=p)},dCt=function(p){_.D(function(x){if(x.nextAddress==1)return _.q(x,p.delete("yt-appshell-assets"),2);
_.JB(x)})},vpa=function(p){return _.wq((0,_.lYj)(),p)},CTk=function(){var p;
_.D(function(x){return x.nextAddress==1?_.q(x,tr.getInstance(),2):(p=x.yieldResult)?_.q(x,J0t(p),0):x.jumpTo(0)})},r0_=function(){var p;
_.D(function(x){return x.nextAddress==1?_.q(x,dC.getInstance(),2):(p=x.yieldResult)?_.q(x,Sic(p),0):x.jumpTo(0)})},Ep8=function(p){dCt(p);
CTk();r0_()},XtH=function(p){var x,F;
return _.D(function(N){if(N.nextAddress==1)return _.q(N,_.OlE(p),2);if(x=N.yieldResult){var h;a:{if(x.headers&&(h=x.headers.get("date"))&&(h=Date.parse(h),!isNaN(h))){h=Math.round((0,_.Lf)()-h);break a}h=-1}F=h;if(F>-1)return N.return(F)}return N.return(-1)})},gpk=function(){var p=_.Mm.caches,x=_.nt("IS_SHELL_LOAD"),F,N;
_.D(function(h){if(h.nextAddress==1)return F=-1,x?_.q(h,XtH(p),3):(N=_.sz(),F=Math.round((0,_.Lf)()-N),h.jumpTo(2));h.nextAddress!=2&&(F=h.yieldResult);F>=0&&F<2147483648&&_.uA({appInstallDataAgeMs:F});_.JB(h)})},Q4D=function(p){var x=_.G4(_.Mm.location.href),F={};
"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(N){var h=x.JSC$7886_queryData_.getValues(N);if(h==null?0:h.length)F[N]=h});
return _.Fa(p,new Map(Object.entries(F)))},zg_=function(p){p=p.match(/(.*)::.*::.*/);
if(p!==null)return p[1]},s48=function(p){if(_.lVM()){var x=Object.keys(window.localStorage);
x=_.a(x);for(var F=x.next();!F.done;F=x.next()){F=F.value;var N=zg_(F);N===void 0||p.includes(N)||self.localStorage.removeItem(F)}}},np_=function(){if(!_.lVM())return!1;
var p=_.ff(),x=Object.keys(window.localStorage);x=_.a(x);for(var F=x.next();!F.done;F=x.next())if(F=zg_(F.value),F!==void 0&&F!==p)return!0;return!1},y0c=function(p){return _.kW("NotificationsDisabled",p)},bQH=function(){return Notification.permission!="granted"?Promise.resolve():_.EM8().then(function(p){return p?p.pushManager.getSubscription().then(function(x){if(x)return Promise.resolve();
x={userVisibleOnly:!0,applicationServerKey:_.Fj("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return p.pushManager.subscribe(x).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},A0a=function(p){return _.EM8().then(function(x){if(!x||!x.active)return Promise.reject(new _.qE("serviceworker.postMessage",p,x));
try{return x.active.postMessage(p),Promise.resolve()}catch(F){return Promise.reject(F)}})},ut_=function(){A0a({type:"notifications_register",
data:_.sd("ID_TOKEN")})},wtX=function(){var p={isWide:_.ax.get("wide","0")==="1"},x=_.rH();
if(x=x.getFlag(165)||x.getFlag(174))p.theme=_.AF(!0);if(_.gew()){var F=_.bX()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";p.systemTheme=F}!x&&_.S("parent_tools_enable_app_settings")&&_.VL(window.location.href).theme!==void 0&&(p.theme=_.AF());if((x=vV)?!_.Q5.equals(x,p):p)x={currentValue:p},Yia&&(x.timeSinceLastSnapshotSecs=Math.round(((0,_.Lf)()-Yia)/1E3)),vV&&(x.previousValue=vV),_.E$("appSettingsCaptured",x),vV=p,Yia=(0,_.Lf)()},GOX=function(){if(!_.nt("LOGGED_IN"))return Promise.resolve(!1);
var p=_.iO("service_worker_push_force_notification_prompt_tag");return p?_.$r("PromptTags").then(function(x){if(!x)return!0;var F=[];try{F=JSON.parse(x)}catch(N){return!1}return F&&F.indexOf(p)==-1}):Promise.resolve(!1)},V3a=function(){var p=_.Ud("service_worker_push_prompt_delay_microseconds");
return p?_.$r("PromptTime").then(function(x){return Promise.resolve(Date.now()-p>(x||0))}):Promise.resolve(!0)},Wxc=function(){var p=_.Ud("service_worker_push_logged_out_prompt_watches");
return p==-1?Promise.resolve(!1):_.$r("WatchCount").then(function(x){return x>=p})},HQk=function(){var p=_.Bt(document,"yt-push-prompt-modal-bg");
p&&_.qc(p)},mCH=function(){return _.Ud("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.$r("PromptCount").then(function(p){p||(p=0);
return Promise.resolve(p<_.Ud("service_worker_push_prompt_cap"))})},opH=function(p){return _.nt("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.nt("LOGGED_IN")&&(p===void 0?0:p)?GOX().then(function(x){if(x)return!0;
x=[mCH(),V3a()];_.nt("LOGGED_IN")||x.push(Wxc());return Promise.all(x).then(function(F){return F.every(function(N){return N})})}):Promise.resolve(!1)},OQt=function(){_.$r("PromptCount").then(function(p){return _.kW("PromptCount",p+1)}).then(function(){return _.kW("PromptTime",Date.now())}).then(function(){var p=_.iO("service_worker_push_force_notification_prompt_tag");
if(p)return _.$r("PromptTags").then(function(x){var F=[];if(x)try{F=JSON.parse(x)}catch(N){return!1}F||(F=[]);F.push(p);return _.kW("PromptTags",JSON.stringify(F))})})},LxH=function(){j4H||HQk()},PTm=function(p){p.style.zIndex=2147483648;
p.style.pointerEvents="auto";p.style.backgroundColor="rgba(0, 0, 0, 0.6)";p.style.width="100%";p.style.height="100vh";p.style.position="absolute";p.style.top="0";p.style.left="0";p.style.border="none"},T5a=function(){var p=_.Bt(document,"yt-push-prompt-modal-bg");
j4H=_.S("service_worker_push_prompt_modal_ignore_click");p?PTm(p):(p=_.Aa("div",{id:"yt-push-prompt-modal-bg"}),PTm(p),document.body.appendChild(p),_.GTH(document,"click",LxH))},B5m=function(){var p=arguments;
_.S("service_worker_push_prompt_modal_enable")&&T5a();return Notification.requestPermission().then(function(x){HQk();var F=document.getElementById("ticker");F&&(F.className=F.classList.remove("show"));if(x=="granted")return bQH().then(function(){y0c(!1);ut_();return Promise.resolve(!0)});
x=="denied"&&ut_();return Promise.resolve(!1)}).catch(function(){HQk();
return Promise.reject.apply(Promise,_.se(p))})},RgH=function(p){p=p===void 0?!1:p;
var x=_.y7z().client;if(x&&x.browserVersion){var F=x.browserVersion,N=x.browserName=="CHROME"&&hr(F,"50.0.0")<0;x=x.browserName=="OPERA"&&hr(F,"42.0.0")<0;if(N||x)return Promise.resolve()}return _.Q8m().then(function(h){if(!h)return Promise.resolve();h=bQH().then(function(){return A0a({type:"notifications_check_registration",data:_.sd("ID_TOKEN")})});
return Notification.permission!="default"?h.catch(function(){}):h.then(function(){return opH(p)}).then(function(c){if(c)return OQt(),B5m().then(function(){})}).catch(function(){})})},kOH=function(p){return _.XQm(p)?RgH():Promise.resolve()},UC8=function(p){var x=p.installing||p.waiting;
return p.active||!x?Promise.resolve(p):new Promise(function(F){var N=function(h){h=h.target;if(h.state==="activated"||h.state==="redundant")x.removeEventListener("statechange",N),F(p)};
x.addEventListener("statechange",N)})},iQ_=function(){var p=new _.ClZ("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.ZX(p,{mainAppWeb:_.GF()});var x=_.zdD;_.S("service_worker_forward_exp_params")&&(x=Q4D(x));try{var F=_.ump(x).catch(function(){_.tf(p,"FAILURE");return new Promise(function(){})});
_.S("service_worker_push_enabled")&&F.then(function(N){_.tf(p,"SUCCESS");return N}).then(UC8).then(kOH)}catch(N){if(_.tf(p,"FAILURE"),N.name!=="SecurityError")throw N;
}},IS_=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&iQ_()},$Ce=function(p,x){var F={};
x&&(F.serializedYpcFamilyCreateLoggingParams=x);_.E$(p,F);_.Xx()},eg8=function(p,x){var F={};
F.serializedYpcRefundFlowLoggingParams=x;p&&(F.eventType=p);_.E$("ypcRefundFlowEvent",F);_.Xx()},p2a=function(p){p&&_.wIZ("transactionFlowSucceeded",p)},xN8=function(p){p&&_.nK("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",p,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},FUa=function(p){var x,F,N,h,c,M,f;
_.D(function(K){if(K.nextAddress==1)return _.q(K,_.N0H(),2);if(K.nextAddress!=3){if(!K.yieldResult)return K.return(!1);x=[];return _.q(K,_.Bl.keys(),3)}F=K.yieldResult;N=_.a(F);for(h=N.next();!h.done;h=N.next())c=h.value,M=_.xek(c),f=M.datasyncId,!f||p.includes(f)||x.push(_.Bl.delete(c));return K.return(Promise.all(x).then(function(t){return t.some(function(d){return d})}))})},NR8=function(){var p,x,F,N,h,c,M;
return _.D(function(f){if(f.nextAddress==1)return _.q(f,_.N0H(),2);if(f.nextAddress!=3){if(!f.yieldResult)return f.return(!1);p=_.ff("cache contains other");return _.q(f,_.Bl.keys(),3)}x=f.yieldResult;F=_.a(x);for(N=F.next();!N.done;N=F.next())if(h=N.value,c=_.xek(h),(M=c.datasyncId)&&M!==p)return f.return(!0);return f.return(!1)})},hxk=function(){var p=_.J().resolve(_.Bw(_.VUn));
return p?p.getCurrentTime():0},ltX=function(){var p,x,F,N,h,c,M,f,K,t,d,v,C,X;
return _.D(function(Q){switch(Q.nextAddress){case 1:p={},x=_.eMk(),F=_.a(Object.entries(x)),N=F.next();case 4:if(N.done){Q.jumpTo(3);break}h=N.value;c=_.a(h);M=c.next().value;f=c.next().value;K=M;t=f;if(!t){Q.jumpTo(5);break}return _.q(Q,t(),8);case 8:p[K]=Q.yieldResult;case 5:N=F.next();Q.jumpTo(4);break;case 2:d=_.a(void 0),v=d.next();case 9:if(v.done){Q.jumpTo(3);break}C=v.value;X=x[C];if(!X){Q.jumpTo(10);break}return _.q(Q,X(),13);case 13:p[C]=Q.yieldResult;case 10:v=d.next();Q.jumpTo(9);break;
case 3:return Q.return(p)}})},cRX=function(){var p;
_.D(function(x){if(x.nextAddress==1)return _.q(x,ltX(),2);p=x.yieldResult;return _.q(x,navigator.clipboard.writeText(JSON.stringify(p,null,2)),0)})},at8=function(p,x){return _.M4(p.entities,"superThanksSelectedTierEntity",x)},Mo8=function(p){var x;
return(x=p.sharedUi)==null?void 0:x.currentPageType},DN8=function(p,x){return{popup:{searchSuggestionReportDialog:{searchQuery:p,
title:_.JG("SBOX_INAPPROPRIATE_TITLE"),suggestions:x,categoryLabel:_.JG("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.JG("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.JG("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.JG("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.JG("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.JG("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.JG("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.JG("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.JG("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.JG("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},ftH=function(p){var x,F,N,h,c,M,f,K,t,d,v,C,X,Q,b,A,Y,O,Fw;
return _.D(function(R){switch(R.nextAddress){case 1:return _.q(R,_.K1(),2);case 2:return(x=R.yieldResult)?_.q(R,_.Ov6(x),3):R.return();case 3:F=R.yieldResult;if(!F)return R.return();h=((N=F.offlineVideos)==null?void 0:N.length)||0;M=((c=F.offlinePlaylists)==null?void 0:c.length)||0;if(h===0&&M===0)return R.return();f=0;if(F.offlineVideos)for(K=_.a(F.offlineVideos),t=K.next();!t.done;t=K.next())d=t.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===d.videoState&&(f+=1);p.offline_videos_count=h.toString();_.S("kevlar_log_offline_current_network_type_ks")||
(p.offline_current_network_type=(v=_.FcB())!=null?v:"CONN_INVALID");_.S("kevlar_log_updated_time_for_smart_downloads")&&(C=_.Bi().getState().entities,X=_.sJ(C),Q=pt_(C),p.offline_smart_downloads_last_sync_time_ms=X.toString(),p.offline_smart_downloads_next_sync_time_ms=Q.toString());p.offline_videos_playable=f.toString();p.offline_playlists_count=M.toString();if(!_.S("woffle_used_state_report")){R.jumpTo(4);break}F.offlineVideos&&(b=F.offlineVideos.reduce(function(ld,pp){pp.downloadedBytes&&(ld+=
Number(pp.downloadedBytes));return ld},0).toString())&&(p.offline_used_disk_space_bytes=b);
if(!((A=navigator)==null?0:(Y=A.storage)==null?0:Y.estimate)){R.jumpTo(4);break}return _.q(R,navigator.storage.estimate(),6);case 6:O=R.yieldResult,p.offline_free_disk_space_bytes=(((Fw=O)==null?void 0:Fw.quota)||0).toString();case 4:p.offline_client_state=JSON.stringify(F),_.JB(R)}})},KUt=function(p){p=p.match(/(.*)::.*::.*/);
if(p!==null)return p[1]},qsH=function(p){if(_.GrZ()){var x=Object.keys(window.sessionStorage);
x=_.a(x);for(var F=x.next();!F.done;F=x.next()){F=F.value;var N=KUt(F);N===void 0||p.includes(N)||self.sessionStorage.removeItem(F)}}},ZVe=function(){if(!_.GrZ())return!1;
var p=_.ff(),x=Object.keys(window.sessionStorage);x=_.a(x);for(var F=x.next();!F.done;F=x.next())if(F=KUt(F.value),F!==void 0&&F!==p)return!0;return!1},Jr=function(p,x,F){(_.S("desktop_keyboard_shortcut_usage_log")||F&&_.S("web_shorts_keyboard_shortcut_usage_log"))&&(x?_.xR.get(p):_.pL.get(p))&&(p=x?_.N2.get(p):_.FW.get(p))&&_.B5(_.b0(),p)},toH=function(p,x){x.stack&&(p.stack+="\n"+x.stack);
return p},JR8=function(p){var x=CL(p,"Content-Type");
if(!x)return null;x=x.toLowerCase();if(x.startsWith("application/json"))return x.startsWith("application/json+protobuf")?new dNc:new _.F5;if(x.startsWith("application/x-protobuf")){p=CL(p,"Content-Transfer-Encoding");if(!p)return new S8;if(p.toLowerCase()=="base64")return new vw8}return null},sCc=function(p,x,F,N){var h=new CrX(function(f,K){return SsH.has(K)?f.sentinel==="gal"&&f.event!==void 0:!1},function(f){f.event?(f=rRe(f.event),f=!f||EwX(N,f)?!0:_.JH(p.lastEvent,rC,2,Eh)?!_.JH(f,XW,1,Eh)&&
!_.JH(f,rC,2,Eh):!_.JH(f,XW,1,Eh)&&!_.JH(f,rC,3,Eh)):f=!0;
return f});
F=_.Fa(p.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",X2D(F)]]));if(p.nestedOrigins!==void 0)for(var c=_.a(p.nestedOrigins),M=c.next();!M.done;M=c.next())F=_.Fa(F,new Map([["origin",M.value]]));return gwH(h,F,x).then(function(f){f=QCH(f.event);if(_.JH(f,XW,1,Eh)){var K,t=(K=_.V8(f,XW,1,Eh))==null?void 0:_.Yg(K,2);t&&N.JSC$16933_logErrorEvent(zxm(t));K=_.V8(f,XW,1,Eh);_.Yg(K,2)===4?(f=_.V8(f,XW,1,Eh),f={statusCode:11,statusMessage:_.uq(f,
3)}):(f=_.V8(f,XW,1,Eh),f={statusCode:12,statusMessage:_.uq(f,3)});return f}_.JH(f,rC,3,Eh)?(f=_.V8(f,rC,3,Eh),f={statusCode:1,consentLanguageKeys:_.uq(f,2)}):f={statusCode:1};return f}).catch(function(f){return f.errorCode!==void 0?{statusCode:f.errorCode,
statusMessage:f.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},AR8=function(p){var x={};
if(p===void 0||p===null)return x;p.getToken()!==void 0&&nwD(p.getToken())&&nwD(p.getToken()).length>0&&(x.scopes=new Set(nwD(p.getToken())));p.getToken()!==void 0&&yR8(p.getToken())&&yR8(p.getToken()).length>0&&(x.capabilities=new Set(yR8(p.getToken())));_.uq(p,3)!==void 0&&(x.consistencyKey=_.uq(p,3));p.getName()!==void 0&&p.getName()!==""&&(x.linkName=p.getName());_.vW(p,bVH,4)&&(p=_.B8(p,bVH,4),p=Object.assign({},_.uq(p,1)&&{userId:_.uq(p,1)},_.uq(p,2)&&{displayName:_.uq(p,2)},_.uq(p,3)&&{email:_.uq(p,
3)},_.uq(p,5)&&{username:_.uq(p,5)},_.uq(p,4)&&{profilePicture:_.uq(p,4)}),x.profile=p);return x},u6m=function(p,x){var F=p.flowParams;
return{serviceId:F.serviceId,sessionId:F.sessionId,currentFlow:p.currentFlow,googleScopesString:x,linkingSessionSerialized:p.session.serialize(),consentLanguageKeys:F.consentLanguageKeys,callerState:p.callerState,dynamicUrlParameters:F.dynamicUrlParameters,partnerConfigMinReadTimestamp:F.partnerConfigMinReadTimestamp}},WUH=function(p){var x=p.googleScopes!==void 0?Array.from(p.googleScopes).join(","):"";
Ys8(u6m(p,x));x=w2_(p);return x===null?Promise.resolve(G7H):x.start().then(function(F){var N,h=(N=F.link)==null?void 0:N.consistencyKey;return F.statusCode===1&&p.googleScopes!==void 0&&p.googleScopes.size>0&&h!==void 0?(N=p.flowParams,Vom(N.serviceId,N.sessionId,p.googleScopes,h,N.galService,p.config,F)):F})},HVm=function(p){var x=w2_(p);
return x===null?Promise.resolve(gC({statusCode:7,statusMessage:"Failed to create flow object"},p.callerState)):x.complete().then(function(F){var N,h=(N=F.link)==null?void 0:N.consistencyKey;return F.statusCode===1&&p.googleScopes!==void 0&&p.googleScopes.size>0&&h!==void 0?(N=p.flowParams,Vom(N.serviceId,N.sessionId,p.googleScopes,h,N.galService,p.config,F)):gC(F,p.callerState)},function(F){return gC({statusCode:12,
statusMessage:"Failed to complete the flow: "+F.message},p.callerState)})},Vom=function(p,x,F,N,h,c,M){return mND(h,{serviceId:p,
sessionId:x,googleScopes:F,consistencyKey:N}).then(function(){return M},function(f){return h.deleteLink({serviceId:p,
sessionId:x,accountLinkingEntryPoint:c.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+f.message}},function(K){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+K.message}})})},w2_=function(p){switch(p.currentFlow){case 1:var x=p.flowParams;
p=_.B8(p.session,owa,1);return Q9.createOAuthFlow(x,p);case 2:case 3:return x=p.flowParams,p=_.B8(p.session,OVm,6),zP.createStreamlinedFlow(x,p);default:return null}},jCc=function(p,x){p===2&&(p=3);
var F=0;sh.indexOf(p)!==-1&&(F=sh.indexOf(p)+1);for(p=F;p<sh.length;p++)if(x.has(sh[p]))return sh[p]},TR8=function(p){var x=p.serviceId;
var F=p.sessionId;var N=p.config;var h=p.galService;var c=p.capabilities;var M=p.scopes;var f=p.loginHint;var K=p.callerState;var t=p.consentLanguageKeys;var d=p.linkName;var v=p.dynamicUrlParameters;var C=p.partnerConfigMinReadTimestamp;p=N.dataUsageNoticeConfig?N.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return h.startLinkingSession({serviceId:x,sessionId:F,capabilities:c,scopes:M,loginHint:f,callerState:K,supportedFlows:LUD(N.supportedFlows),completionUrl:N.completionUrl,accountLinkingEntryPoint:N.accountLinkingEntryPoint,
consentLanguageKeys:t,dataUsageNoticeConfig:p,linkName:d,dynamicUrlParameters:v,partnerConfigMinReadTimestamp:C}).then(function(X){return new Pre(x,F,N,h,X,void 0,K,t,v,C)})},iV_=function(p,x,F){a:{var N=new BRH;
if(N.storage!==null)try{var h=N.storage.get("SAVED_SESSION");if(h===void 0){var c=null;break a}if(h.serviceId===p){c=h;break a}}catch(M){}c=null}if(c===null)return Promise.resolve({statusCode:2});Rxa(p);N=k7D(c.linkingSessionSerialized);return UNc(new Pre(p,c.sessionId,x,F,N,c.googleScopesString!==""&&c.googleScopesString!==void 0?new Set(c.googleScopesString.split(",")):void 0,c.callerState,c.consentLanguageKeys,c.dynamicUrlParameters,c.partnerConfigMinReadTimestamp),c.currentFlow,c.consentLanguageKeys)},
Ys8=function(p){var x=new BRH;
x.storage!==null&&x.storage.set("SAVED_SESSION",p)},Rxa=function(p){var x=new BRH;
if(x.storage!==null){var F=x.storage.get("SAVED_SESSION");F!==void 0&&F.serviceId===p&&x.storage.remove("SAVED_SESSION")}},LUD=function(p){var x=new Set;
p=_.a(p);for(var F=p.next();!F.done;F=p.next())F=F.value,F!==1&&ItH.has(F)&&x.add(ItH.get(F));return x},gC=function(p,x){x!==void 0&&(p.callerState=x);
return p},$Na=function(p){switch(p){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},xDH=function(){var p={timeout:5E3};
p=p===void 0?{}:p;return exm!=null?exm:exm=pcD(p)},FDX=function(){return new Promise(function(p,x){window.gapi.load("client",{callback:p,
onerror:x})})},pcD=function(p){p=p===void 0?{}:p;
var x;return _.D(function(F){if(F.nextAddress==1){if((x=window.gapi)&&x.client&&x.client.load)F=F.return(x);else{var N=_.vz("https://apis.google.com/js/api.js");F=_.q(F,_.bE(N,p),2)}return F}if(F.nextAddress!=3){x=window.gapi;if(!x)throw Error("Xj");return x.client&&x.client.load?F.jumpTo(3):_.q(F,FDX(),3)}return F.return(x)})},hcX=function(p,x){x=x===void 0?0:x;
var F=p.auth2.getAuthInstance().currentUser.get(),N=F.getAuthResponse(!0);if(N&&N.expires_at-Date.now()<x){if(NV8.has(p))return NV8.get(p);x=Promise.resolve(F.reloadAuthResponse()).finally(function(){NV8.delete(p)});
NV8.set(p,x);return x}return Promise.resolve()},lDm=function(p,x){var F;
return p.client.init({apiKey:x.apiKey,clientId:x.clientId,scope:x.scope,discoveryDocs:x.discoveryDocs,hostedDomain:x.hostedDomain,fetchBasicProfile:(F=x.fetchBasicProfile)!=null?F:!0})},cIa=function(p){if(p.queryParams!=null){var x={},F;
for(F in p.queryParams)p.queryParams[F]!==void 0&&(x[F]=p.queryParams[F]);p.queryParams=x}},DDH=function(p){return new aDH(p,new Mwc(p))},qWH=function(p,x){x=x===void 0?!1:x;
var F=document.createElement("div");p&&(F.style.transform="scaleX(-1)");F.style.backgroundColor=x?"rgba(138,180,248,.24)":"#e8f0fe";F.style.height="4px";F.style.overflow="hidden";F.style.position="absolute";F.style.top="0";F.style.width="100%";F.style.zIndex="1500";F.setAttribute("aria-label","Loading");F.setAttribute("aria-live","polite");p=document.createElement("style");p.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  }";
F.appendChild(p);p=fDk();p.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";p.style.left="-145.166611%";var N=KD8(x);N.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";p.appendChild(N);F.appendChild(p);p=fDk();p.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";p.style.left="-54.888891%";x=KD8(x);x.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
p.appendChild(x);F.appendChild(p);return F},fDk=function(){var p=document.createElement("div");
p.style.height="100%";p.style.position="absolute";p.style.transformOrigin="top left";p.style.width="100%";return p},KD8=function(p){var x=document.createElement("span");
x.style.borderTop=p?"4px solid #669df6":"4px solid #4285f4";x.style.display="inline-block";x.style.position="absolute";x.style.width="100%";return x},ZE8=function(p){return p==null?void 0:_.Tem(p).valueOf()},JIX=function(p){var x=document.body,F=!1,N=function(){F||(F=!0,tw8(h,c),setTimeout(function(){x.removeChild(c);
x.removeChild(h)},150))},h=dDX(p,getComputedStyle(x).direction==="rtl",N),c=vq8(N);
tw8(h,c);x.appendChild(c);x.appendChild(h);window.requestAnimationFrame(function(){c.style.opacity="1";h.style.opacity="1";h.style.transform="translate(-50%, -50%) scale(1)";h.children[0].focus()})},dDX=function(p,x,F){var N=document.createElement("div");
N.style.position="fixed";N.style.alignItems="center";N.style.backgroundColor=p?"rgb(32, 33, 36)":"white";N.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";N.style.display="flex";N.style.flexDirection="column";N.style.justifyContent="center";N.style.left="50%";N.style.top="50%";N.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";N.style.zIndex="2002";document.body.clientWidth>=660?(N.style.borderRadius="8px",N.style.minHeight="220px",
N.style.maxHeight="90%",N.style.maxWidth="90%",N.style.minWidth="540px"):(N.style.height="100%",N.style.width="100%");N.setAttribute("aria-label","Error");N.setAttribute("aria-modal","true");N.setAttribute("role","alertdialog");N.addEventListener("keydown",function(c){c.key==="Escape"&&F()});
x=CWe(p,x,F);N.appendChild(SWc(x));N.appendChild(x);var h=document.createElement("img");h.src=p?"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";h.style.height="72px";h.style.width="72px";h.style.color="#9aa0a6";h.setAttribute("alt","");N.appendChild(h);h=document.createElement("h1");h.textContent="Something went wrong.  Try again.";
h.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";h.style.lineHeight="24px";h.style.fontSize="16px";h.style.textAlign="center";h.style.letterSpacing="0.1px";h.style.color=p?"rgb(232,234,237)":"#3c4043";N.appendChild(h);N.appendChild(SWc(x));return N},CWe=function(p,x,F){var N=document.createElement("button");
N.style.backgroundColor="transparent";N.style.border="none";N.style.borderRadius="50%";N.style.cursor="pointer";N.style.outline="none";N.style.padding="12px";N.setAttribute("aria-label","Close dialog");N.style.position="absolute";N.style.top="0";x?N.style.right="0":N.style.left="0";N.addEventListener("focus",function(){N.style.backgroundColor=p?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
N.addEventListener("blur",function(){N.style.backgroundColor="transparent"});
N.addEventListener("mouseenter",function(){N.style.backgroundColor=p?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
N.addEventListener("mouseleave",function(){N.style.backgroundColor="transparent"});
N.addEventListener("click",F);N.addEventListener("keydown",function(h){h.key!=="Enter"&&h.key!=="Space"||F()});
x=document.createElement("img");x.src=p?"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";x.style.display="block";x.style.height="24px";x.style.width="24px";x.setAttribute("alt","");N.appendChild(x);return N},SWc=function(p){var x=document.createElement("div");
x.setAttribute("tabindex","0");x.setAttribute("aria-hidden","true");x.addEventListener("focus",function(){return void p.focus()});
return x},vq8=function(p){var x=document.createElement("div");
x.style.backgroundColor="rgba(32,33,36,0.6)";x.style.bottom="0";x.style.left="0";x.style.position="fixed";x.style.right="0";x.style.top="0";x.style.transition=" opacity 150 ms linear";x.style.zIndex="2001";x.addEventListener("click",p);return x},tw8=function(p,x){x.style.opacity="0";
p.style.opacity="0";p.style.transform="translate(-50%, -50%) scale(0.8)"},rI8=function(p,x){p.sandbox&&p.sandbox.add&&(p.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),p.sandbox.add("allow-downloads"));
p.src=x},nL=function(p){Eqc.call(this,p)},y9=function(p,x){x=x===void 0?!1:x;
this.parsedImageUrl_=null;p instanceof Xc8||(gqH==void 0&&(gqH=new QIm),p=gqH.parse(p.toString(),x));p=this.parsedImageUrl_=p;p.JSC$17164_parsedOptions_==void 0&&((x=p.getOptions())||(x=""),p.JSC$17164_parsedOptions_=(new zc8).parse(x));Eqc.call(this,p.JSC$17164_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;p=this.parsedImageUrl_;x=p.uri_.JSC$7886_port_;this.JSC$17166_domain_=p.uri_.JSC$7886_domain_+(x?":"+x:"");this.JSC$17166_query_=this.parsedImageUrl_.uri_.JSC$7886_queryData_.toString()},
sI8=function(p){this.mode=4;
this.data=p;this.parsedData=[];p=0;for(var x=this.data.length;p<x;p++){var F=[],N=this.data.charCodeAt(p);N>65536?(F[0]=240|(N&1835008)>>>18,F[1]=128|(N&258048)>>>12,F[2]=128|(N&4032)>>>6,F[3]=128|N&63):N>2048?(F[0]=224|(N&61440)>>>12,F[1]=128|(N&4032)>>>6,F[2]=128|N&63):N>128?(F[0]=192|(N&1984)>>>6,F[1]=128|N&63):F[0]=N;this.parsedData.push(F)}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))},nq8=function(p){this.typeNumber=0;
this.errorCorrectLevel=p===void 0?2:p;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},b_=function(p,x){if(p.length==void 0)throw Error("rk`"+p.length+"`"+x);
for(var F=0;F<p.length&&p[F]==0;)F++;this.num=Array(p.length-F+x);for(x=0;x<p.length-F;x++)this.num[x]=p[x+F]},yID=function(p,x){this.totalCount=p;
this.dataCount=x},bE8=function(){this.buffer=[];
this.length=0},AI8=function(){var p=!1;
if(_.tpB()){p=_.rk();var x="";_.JzJ()?(x=/Windows (?:NT|Phone) ([0-9.]+)/,x=(p=x.exec(p))?p[1]:"0.0"):_.wk()?(x=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,x=(p=x.exec(p))&&p[1].replace(/_/g,".")):_.v$w()?(x=/Mac OS X ([0-9_.]+)/,x=(p=x.exec(p))?p[1].replace(/_/g,"."):"10"):_.Sp(_.rk(),"KaiOS")?(x=/(?:KaiOS)\/(\S+)/i,x=(p=x.exec(p))&&p[1]):_.tpB()?(x=/Android\s+([^\);]+)(\)|;)/,x=(p=x.exec(p))&&p[1]):_.Cd6()&&(x=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,x=(p=x.exec(p))&&p[1]);p=x||""}return p},WDt=function(p,
x){this.JSC$17189__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(x)for(var F in x)this.JSC$17189__htOption[F]=x[F];this.JSC$17189__htOption.useSVG&&(uoH=YWt);this.JSC$17189__android=AI8();this.JSC$17189__el=p;this._oQRCode=null;this._oDrawing=new uoH(this.JSC$17189__el,this.JSC$17189__htOption);this.JSC$17189__htOption.text&&(p=this.JSC$17189__htOption.text,this._oQRCode=new nq8(this.JSC$17189__htOption.correctLevel),wct(this._oQRCode,p),x=this._oQRCode,GuH(x,!1,Vw8(x)),this.JSC$17189__el.title=
p,this._oDrawing.draw(this._oQRCode),this.makeImage())},HEa=function(p,x,F,N,h){p.save();
var c=new Path2D;c.roundRect(x,F,N*7,N*7,N*2);c.roundRect(x+N,F+N,N*5,N*5,N*1.3);c.roundRect(x+2*N,F+2*N,N*3,N*3,N);p.clip(c,"evenodd");p.fillStyle=h;p.fillRect(0,0,p.canvas.width,p.canvas.height);p.restore()},Ar=function(p,x){if(typeof p!=="function")throw Error("uk");
return _.Mm.setTimeout(function(){p()},x)},u_=function(){},oq8=function(p,x,F,N,h){(new u_).debug("TestLoadImageWithRetries: "+h);
if(N==0)F(!1);else{var c=h||0;N--;mDc(p,x,function(M){M?F(!0):_.Mm.setTimeout(function(){oq8(p,x,F,N,c)},c)})}},mDc=function(p,x,F){var N=new u_;
N.debug("TestLoadImage: loading "+p);var h=new Image;h.onload=function(){try{N.debug("TestLoadImage: loaded"),OED(h),F(!0)}catch(c){}};
h.onerror=function(){try{N.debug("TestLoadImage: error"),OED(h),F(!1)}catch(c){}};
h.onabort=function(){try{N.debug("TestLoadImage: abort"),OED(h),F(!1)}catch(c){}};
h.ontimeout=function(){try{N.debug("TestLoadImage: timeout"),OED(h),F(!1)}catch(c){}};
_.Mm.setTimeout(function(){if(h.ontimeout)h.ontimeout()},x);
h.src=p},OED=function(p){p.onload=null;
p.onerror=null;p.onabort=null;p.ontimeout=null},jIa=function(){this.front_=[];
this.back_=[]},LDH=function(p,x){_.Jm.call(this);
this.delay_=new _.Se(this.JSC$17315_onTick_,0,this);_.aG(this,this.delay_);this.JSC$17313_interval_=5E3;this.nextTickTime_=0;if(typeof p==="function")x&&(p=(0,_.CH)(p,x));else if(p&&typeof p.handleEvent==="function")p=(0,_.CH)(p.handleEvent,p);else throw Error("Ca");this.JSC$17315_listener_=p},YR=function(p,x,F,N,h,c,M,f,K,t,d,v,C,X){F=F===void 0?!1:F;
N=N===void 0?function(){return""}:N;
h=h===void 0?!1:h;c=c===void 0?!1:c;M=M===void 0?!1:M;f=f===void 0?function(){return _.qt({})}:f;
K=K===void 0?!1:K;d=d===void 0?!1:d;v=v===void 0?!1:v;C=C===void 0?!1:C;X=X===void 0?!1:X;this.JSC$17316_pathPrefix_=p;this.defaultQueryParams_=x;this.pubsub_=new _.lb;this.reconnectTimer_=new LDH(this.safeReconnect_,this);this.JSC$17316_channel_=null;this.JSC$17316_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17316_pendingMessages_=[];this.enableAsyncTest_=F;this.JSC$17316_getXsrfToken_=N;this.useAsyncBrowserChannelHandler_=c;this.getAuthorizationHeader_=
f;this.getAuthorizationHeaderSync_=t;this.enableCachedUpdateAuthorizationHeader_=M;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.qt();this.enableLoungeTokenRefresh_=h;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=K;this.disableMdxAuthForNonPlaybackMessages_=d;this.disableMdxAuthForAdMessages_=v;this.enableMdxAuthForConnectionOnly_=C;this.disableMdxAuthForShortsMessages_=X;this.JSC$17316_channelOpenedCounter=new PW8;this.JSC$17316_channelClosedCounter=new TVc;this.channelMessageSentCounter=
new BVH;this.JSC$17316_channelMessageReceivedCounter=new Rce;this.JSC$17316_channelErrorCounter=new kum;this.pendingMapsOnClosedCounter=new UD_;this.undeliveredMapsOnClosedCounter=new iEt},wC=function(p){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;p=p||document.location.href;var x=Number(_.mg(p)[4]||null)||"";x&&(this.port=":"+x);this.domain=_.oD(p)||"";p=_.rk();p.search("MSIE")>=0&&hr(p.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},GP=function(p){p=p||{};
this.name=p.name||"";this.id=p.id||p.screenId||"";this.token=p.token||p.loungeToken||"";this.uuid=p.uuid||p.dialId||"";this.idType=p.screenIdType||"normal"},IDc=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(p){var x=Math.random()*16|0;
return(p=="x"?x:x&3|8).toString(16)})},$D8=function(p){return _.zy(p,function(x){return{key:x.id,
name:x.name}})},eca=function(p,x){return _.V6(p,function(F){return F||x?!F!=!x?!1:F.id==x.id:!0})},WV=function(p,x){return _.V6(p,function(F){return V9(F,x)})},hft=function(){var p=p$H(),x=xgH();
if(FYt()){var F=p,N=_.n$E(F,x);N<0&&_.QJM(F,-(N+1),0,x)}p=NY_(p);if(p.length==0)try{_.$tE("remote_sid")}catch(h){}else try{_.ME("remote_sid",p.join(","),-1)}catch(h){}},p$H=function(){var p=_.Mq("yt-remote-connected-devices")||[];
p.sort(_.sJw);return p},NY_=function(p){if(p.length==0)return[];
var x=p[0].indexOf("#"),F=x==-1?p[0]:p[0].substring(0,x);return _.zy(p,function(N,h){return h==0?N:N.substring(F.length)})},lXD=function(p){_.a3("yt-remote-connected-devices",p,86400)},xgH=function(){if(cft)return cft;
var p=_.Mq("yt-remote-device-id");p||(p=IDc(),_.a3("yt-remote-device-id",p,31536E3));for(var x=p$H(),F=1,N=p;_.oJ(x,N);)F++,N=p+"#"+F;return cft=N},aXt=function(){return _.Mq("yt-remote-session-browser-channel")},FYt=function(){return _.Mq("yt-remote-session-screen-id")},fX_=function(p){p.length>5&&(p=p.slice(p.length-5));
var x=_.zy(MZ8(),function(N){return N.loungeToken}),F=_.zy(p,function(N){return N.loungeToken});
_.F$d(F,function(N){return!_.oJ(x,N)})&&Dgt();
_.a3("yt-remote-local-screens",p,31536E3)},MZ8=function(){return _.Mq("yt-remote-local-screens")||[]},Dgt=function(){_.a3("yt-remote-lounge-token-expiration",!0,86400)},HV=function(p){p||(_.D_("yt-remote-session-screen-id"),_.D_("yt-remote-session-video-id"));
hft();p=p$H();_.Lp(p,xgH());lXD(p)},qgk=function(){KYm();
return mK?!!mK.get("yt-remote-use-staging-server"):!1},KYm=function(){if(!mK){var p=_.a2$();
p&&(mK=new _.Z5(p))}},vV_=function(p,x,F,N,h){F=F===void 0?function(){return""}:F;
var c=function(){return new YR(oe(p,"/bc"),x,!1,F,N)};
return _.S("enable_mdx_web_channel_desktop")?new ZPa(function(){return new tZ8(oe(p,"/wc"),x,F)}):new dgk(c,h)},rfm=function(){var p=JfX;
CaH();Oh.push(p);Sg_()},j8=function(p,x){CaH();
var F=EVX(p,String(x));Oh.length==0?X$_(F):(Sg_(),_.w1(Oh,function(N){N(F)}))},LL=function(p){j8("CP",p)},CaH=function(){Oh||(Oh=_.A9("yt.mdx.remote.debug.handlers_")||[],_.ox("yt.mdx.remote.debug.handlers_",Oh))},X$_=function(p){var x=(PV+1)%50;
PV=x;gVc[x]=p;Qi_||(Qi_=x==49)},Sg_=function(){var p=Oh;
if(gVc[0]){var x=Qi_?PV:-1,F={};do F={record$jscomp$13:void 0},x=(x+1)%50,F.record$jscomp$13=gVc[x],_.w1(p,function(N){return function(h){h(N.record$jscomp$13)}}(F));
while(x!=PV);gVc=Array(50);PV=-1;Qi_=!1}},EVX=function(p,x){var F=(Date.now()-zfe)/1E3;
F.toFixed&&(F=F.toFixed(3));var N=[];N.push("[",F+"s","] ");N.push("[","yt.mdx.remote","] ");N.push(p+": "+x,"\n");return N.join("")},TP=function(p){_.ey.call(this);
this.JSC$17340_logName_=p;this.screens=[]},Re=function(p){TP.call(this,"LocalScreenService");
this.JSC$17347_http_=p;this.loungeTokenRefreshTimer_=NaN;BV(this);this.info("Initializing with "+siD(this.screens))},kR=function(p,x){x=x===void 0?!1:x;
TP.call(this,"ScreenService");this.JSC$17353_http_=p;this.disableAutomaticScreenCache_=x;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};nVD(this)},Uh=function(p,x,F){_.ey.call(this);
this.JSC$17357_logName_=F;this.JSC$17357_screenService_=p;this.receiver_=x;this.screen_=null},LY_=function(p,x,F){F.disableCastApi?i_("Cannot initialize because disabled by Mdx config."):yf8()?bPm(p,F)&&(Afm(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?uNX(x):(window.__onGCastApiAvailable=function(N,h){N?uNX(x):(Ie("Failed to load cast API: "+h),Yga(!1),Afm(!1),_.D_("yt-remote-cast-available"),_.D_("yt-remote-cast-receiver"),w$X(),x(!1))},F.loadCastApiSetupScript?_.VR("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?G1m()>=60&&VZe():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?WYc():G1m()>=89?HPX():(mgc(),oV_(OP_.map(jiH))))):i_("Cannot initialize because not running Chrome")},w$X=function(){i_("dispose");
var p=$R();p&&p.dispose();_.ox("yt.mdx.remote.cloudview.instance_",null);Pam(!1);_.oLJ(TYe);TYe.length=0},BYH=function(){return!!_.Mq("yt-remote-cast-installed")},Rft=function(){var p=_.Mq("yt-remote-cast-receiver");
return p?p.friendlyName:null},k1e=function(){i_("clearCurrentReceiver");
_.D_("yt-remote-cast-receiver")},Ug_=function(){return BYH()?$R()?$R().getCastSession():(Ie("getCastSelector: Cast is not initialized."),null):(Ie("getCastSelector: Cast API is not installed!"),null)},IX8=function(p,x){iPm()?$R().setConnectedScreenStatus(p,x):Ie("setConnectedScreenStatus called before ready.")},yf8=function(){var p=_.rk().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.qL||p},bPm=function(p,x){var F=!1;
$R()||(p=new e8(p,x),p.subscribe("yt-remote-cast2-availability-change",function(N){_.a3("yt-remote-cast-available",N);cV("yt-remote-cast2-availability-change",N)}),p.subscribe("yt-remote-cast2-receiver-selected",function(N){i_("onReceiverSelected: "+N.friendlyName);
_.a3("yt-remote-cast-receiver",N);cV("yt-remote-cast2-receiver-selected",N)}),p.subscribe("yt-remote-cast2-receiver-resumed",function(N){i_("onReceiverResumed: "+N.friendlyName);
_.a3("yt-remote-cast-receiver",N);cV("yt-remote-cast2-receiver-resumed",N)}),p.subscribe("yt-remote-cast2-session-change",function(N){i_("onSessionChange: "+$gt(N));
N||_.D_("yt-remote-cast-receiver");cV("yt-remote-cast2-session-change",N)}),_.ox("yt.mdx.remote.cloudview.instance_",p),F=!0);
i_("cloudview.createSingleton_: "+F);return F},$R=function(){return _.A9("yt.mdx.remote.cloudview.instance_")},uNX=function(p){Yga(!0);
Afm(!1);$R().init(!1,function(x){x?(Pam(!0),_.Ord("yt-remote-cast2-api-ready")):(Ie("Failed to initialize cast API."),Yga(!1),_.D_("yt-remote-cast-available"),_.D_("yt-remote-cast-receiver"),w$X());p(x)})},i_=function(p){j8("cloudview",p)},Ie=function(p){j8("cloudview",p)},Yga=function(p){i_("setCastInstalled_ "+p);
_.a3("yt-remote-cast-installed",p)},iPm=function(){return!!_.A9("yt.mdx.remote.cloudview.apiReady_")},Pam=function(p){i_("setApiReady_ "+p);
_.ox("yt.mdx.remote.cloudview.apiReady_",p)},Afm=function(p){_.ox("yt.mdx.remote.cloudview.initializing_",p)},pz=function(p){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(p)},efe=function(){var p,x;
return _.D(function(F){if(F.nextAddress==1)return(_.gLr()||_.S("use_new_nwl"))&&_.Sud().isNetworkAvailable()?_.q(F,_.O5(),2):F.return();if(F.nextAddress!=3)return(p=F.yieldResult)?_.q(F,mdk(p),3):F.return();x=F.yieldResult;if(!x.length)return F.return();x.forEach(function(N){var h={timestamp:N.timestamp};N=N.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:N.appShellAssetLoadReport,options:h}:N.clientError?{payloadName:"clientError",payload:N.clientError,options:h}:void 0;N&&
_.E$(N.payloadName,N.payload,N.options)});
x.length===100&&_.E0.addLowPriorityJob(efe);_.JB(F)})},pW8=function(p){if(p.playerResponse){if(p=p.playerResponse,p.messages&&p.messages.length>0&&(p=p.messages.find(function(x){return!(!x||!x.mealbarPromoRenderer)}))&&p.mealbarPromoRenderer)return p.mealbarPromoRenderer}else if(p.response&&(p=p.response)&&p.overlay&&p.overlay.mealbarPromoRenderer)return p.overlay.mealbarPromoRenderer},xL8=function(p){if(p.response){var x=p.response;
if(x&&x.overlay&&x.overlay.tooltipRenderer)return x.overlay.tooltipRenderer}if(p.playerResponse&&(p=p.playerResponse,p.messages&&p.messages.length>0&&(p=p.messages.find(function(F){return!(!F||!F.tooltipRenderer)}))&&p.tooltipRenderer))return p.tooltipRenderer},NaX=function(p){if(!FRH&&(p=p||_.sd("ZWIEBACK_PING_URLS"))&&p.length){FRH=!0;
for(var x=0;x<p.length;x++)_.YS(p[x])}},lr_=function(p){if(_.Q5.get(_.sd("PLAYER_VARS",{}),"privembed",!1)!="1"){p&&br8();
try{hiD().then(function(){},function(){}),_.er(lr_,18E5)}catch(x){_.yL(x)}}},cHa=function(){var p=_.rH(),x=p.getFlag(119),F=window.devicePixelRatio>1;
document.body&&_.oX(document.body,"exp-invert-logo")&&(F&&!_.oX(document.body,"inverted-hdpi")?_.Wl(document.body,"inverted-hdpi"):!F&&_.oX(document.body,"inverted-hdpi")&&_.GT(document.body,"inverted-hdpi"));x!=F&&(_.Ez(0,119,F),p.save())},arm=function(p){return p.filter(function(x){return"ypcGetCartEndpoint"in x||"ypcFixInstrumentEndpoint"in x})},MGm=function(p){return p.filter(function(x){return!_.r(x,_.g6D)})},frt=function(p){p=_.a(p);
for(var x=p.next(),F={};!x.done;F={setter$jscomp$7:void 0},x=p.next()){var N=x.value;x=N.params;N=N.service;x&&N&&(F.setter$jscomp$7=DLX[N],F.setter$jscomp$7&&x.forEach(function(h){return function(c){var M=c.key;c=c.value;M&&c&&(0,h.setter$jscomp$7)(M,c)}}(F)))}},q6m=function(p,x){var F,N,h,c,M,f,K;
_.D(function(t){switch(t.nextAddress){case 1:F=_.wX.getInstance();N=_.xL.instance;h=_.uT.instance;if(!h)return KRt(p,N,x),t.return();_.KM(t,2);p.onLoadingCommand&&N.resolveCommand(p.onLoadingCommand);return _.q(t,F.getCurrentPositionFromGeolocation(),4);case 4:c=t.yieldResult;if(!p.resolveLocationCommand){t.jumpTo(5);break}M=F.createLocationInfo(c);return _.q(t,_.w5(h,p.resolveLocationCommand,{locationInfo:M}),6);case 6:f=t.yieldResult;if(!f||"error"in f&&f.error||f.errorMetadata)return KRt(p,N,x),
t.return();var d;if(f==null?0:(d=f.onResponseReceivedActions)==null?0:d.length){d=_.a(f.onResponseReceivedActions);for(var v=d.next();!v.done;v=d.next())N.resolveCommand(v.value)}(_.r(p.onSuccessCommand,_.B7)||_.r(p.onSuccessCommand,_.Du))&&_.hG(x.hostElement,"yt-navigate",{endpoint:p.onSuccessCommand,reload:!0});case 5:_.ub(t,0);break;case 2:K=_.v9(t);if(K instanceof GeolocationPositionError&&K.code===GeolocationPositionError.PERMISSION_DENIED)return p.onDeniedCommand&&N.resolveCommand(p.onDeniedCommand),
t.return();KRt(p,N,x);_.JB(t)}})},KRt=function(p,x,F){p.onFailureCommand&&(x.resolveCommand(p.onFailureCommand),_.lA(F.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},tG8=function(p,x){var F=_.r(p,_.hVk);
if(F&&x){p=F.videoIds||[F.videoId];var N;x=(N=_.hG(x,"yt-lockup-requested",{videoIds:p}).detail)==null?void 0:N.returnValue;var h;F.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?h=x?x:p.map(function(c){return{videoId:c,navigationEndpoint:F.videoCommand}}):x&&(h=x);
h&&(N=h.map(function(c){var M=Object,f=M.assign;var K=c.navigationEndpoint;if(!_.r(K,_.dX)){var t=_.r(K,_.B7);if(t){if(delete t.index,delete t.playlistId,t=_.r(K==null?void 0:K.commandMetadata,_.eq),t==null?0:t.url){var d=t.url;d=_.$Q(d,"list");d=_.$Q(d,"index");t.url=d}}else K=void 0}return f.call(M,{},c,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:K})}),ZTH(N,F))}},dLe=function(p){var x=_.Hj();
if(p=_.r(p,_.l7l))p.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&x.clearQueue(),p.closeMiniplayer&&_.J().resolve(_.H$).close(!0)},JHD=function(p){vgk(_.Hj(),p)},Cqc=function(p){var x;
(p=(x=_.r(p,_.FNB))==null?void 0:x.setVideoIds)&&p.forEach(function(F){_.whD(_.Hj(),F)})},rHe=function(p){S6H(_.Hj(),p)},EgX=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(p){return!1}},XWa=function(p,x,F){return{horizontalAlignment:p.x+F.width/2<x.width/2?"west":"east",
verticalAlignment:p.y+F.height/2<x.height/2?"north":"south"}},zit=function(p,x,F,N,h){h=h===void 0?new _.sT(0,0):h;
return gg8(QEk(p,x,F,N),h)},QEk=function(p,x,F,N){return new _.sT(p==="west"?16:F.width-N.width-16,x==="north"?16:F.height-N.height-16)},sEH=function(p,x){var F=0;
p&&(F+=76);x&&(F+=285);return F},ngc=function(p){var x=["h",
"m","s"],F=_.Pr(x);F.reverse();var N={};p=(p.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(M){var f=(M.match(/[hms]/)||[""])[0];return f?(N[f]=parseInt(M.match(/\d+/)[0],10),!1):!0});
for(p.reverse();p.length&&F.length;){var h=F.shift();h in N||(N[h]=parseInt(p.shift(),10))}if(p.length||N.s>59||N.m>59||N.h>9)return null;var c="";x.forEach(function(M){N[M]&&(c+=""+N[M]+M)});
return c||null},yHD=function(p){p=p.data;
return _.Z("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.Z("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.Z(_.VE,{data:{thumbnails:[{url:p.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.Z("div",{class:"profile-badge-view-model-wiz__content"},_.Z("div",{class:"profile-badge-view-model-wiz__badge-description"},p.badgeDesc),p.badgeSubtitle?_.Z("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},p.badgeSubtitle):null))},bTk=function(p){p=
p.data;
var x=_.oc();_.mU(x,p.rendererContext);return _.Z("yt-comment-interaction-view-model",{el:x,class:"yt-comment-interaction-view-model-wiz"},_.Z("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":p.onTapA11yLabel,"on:keydown":_.ur(),tabindex:0},_.Z("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.Z("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},p.headerPrefix,' "',p.videoTitle),_.Z("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.Z("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.Z("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},p.commentContent),_.Z("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.Z(_.VE,{data:{thumbnails:[{url:p.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},uVD=function(p){p=p.data;
return _.Z("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},AHm(p.avatar),_.Z("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},p.channelName))},wWa=function(p){p=p.data;
var x;return _.Z("div",{class:"yt-profile-info-view-model-wiz__activity"},_.Z("div",{class:"yt-profile-info-view-model-wiz__header"},_.Z("div",{class:"yt-profile-info-view-model-wiz__section-title"},p.commentsInteractionTitle)),(x=p.comments)==null?void 0:x.map(function(F){return _.Z("div",{class:"yt-profile-info-view-model-wiz__activity"},Y6_(F))}))},G5c=function(p){p=p.data;
var x=_.zT({elementsCommand:p.subscriptionsAccessButtonCommand}),F=_.oc();_.NLp(F,_.g$(p.subscriptionsAccessButtonCommand));var N=_.h0(function(c){if(x==null?0:x.onclick)x.onclick(c);return!1}),h;
return _.Z("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.Z("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.Z("a",{el:F,"on:click":N,class:"yt-profile-info-view-model-wiz__another-header"},_.Z("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},p.sharedSubscriptionsTitle),_.Z("div",null,Y6_(p.subscriptionsAccessButton)))),_.Z("div",{class:"yt-profile-info-view-model-wiz__subs"},(h=p.sharedSubscriptions)==null?void 0:h.slice(0,5).map(function(c){return _.Z("div",
{class:"yt-profile-info-view-model-wiz__sub"}," ",Y6_(c))})))},VGc=function(p){p=p.data;
var x;return _.Z("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.Z("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.Z("h2",{class:"yt-profile-info-view-model-wiz__section-title"},p.sharedSubscriptionsTitle)),_.Z("div",{class:"yt-profile-info-view-model-wiz__subs"},(x=p.sharedSubscriptions)==null?void 0:x.slice(0,5).map(function(F){return _.Z("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",Y6_(F))})))},WRm=function(p){p=p.data;
return _.Z("div",{class:"yt-profile-info-view-model-wiz__activity"},[p.profileBadgeInfoYtWide,p.profileBadgeInfoChannelWide].map(function(x){var F,N,h,c,M;return x?_.Z(_.TG,null,_.Z("div",{class:"yt-profile-info-view-model-wiz__header"},_.Z("div",{class:"yt-profile-info-view-model-wiz__section-title"},x==null?void 0:x.profileSectionTitle),_.Z("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.Z("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},x==null?void 0:(F=x.commentBadge)==
null?void 0:F.commentDesc),(x==null?0:(N=x.commentBadge)==null?0:N.blackHeartDesc)?_.Z("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.Z("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.Z(_.VE,{data:{thumbnails:[{url:x==null?void 0:(h=x.commentBadge)==null?void 0:h.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.Z("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},x==null?void 0:(c=
x.commentBadge)==null?void 0:c.blackHeartDesc))),_.Z("div",{class:"yt-profile-info-view-model-wiz__badge"},x==null?void 0:(M=x.badges)==null?void 0:M.map(function(f){return _.Z(yHD,{data:f})}))):null}))},HTH=function(p){p=p.data;
return _.Z("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.Z(WRm,{data:p}),p.comments?_.Z(wWa,{data:p}):null,p.sharedSubscriptionsTitle?p.subscriptionsAccessButtonCommand?_.Z(G5c,{data:p}):_.Z(VGc,{data:p}):null)},og_=function(p){var x=p.data;
p=x?mL_(x.profileIdentityInfo):void 0;x=x?mL_(x.profileInfo):void 0;return _.Z("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},p,x)},OTX=function(p,x){var F=_.HyD(x,{},p,!0);
return new Promise(function(N,h){F.listenOnce("n",function(){h(Error("el`"+F.JSC$25579_getErrorDescription()))});
F.listenOnce("l",function(){var c=F.getResponseCode();if(c!==200)h(Error("fl`"+x+"`"+p.type+"`"+p.size+"`"+c));else try{N(JSON.parse(F.getResponseText()).encryptedBlobId)}catch(M){h(M)}});
F.run()})},jE8=function(p){return p.substring(p.indexOf(":")+1,p.indexOf(";"))},LR_=function(p){return new Promise(function(x,F){var N=new FileReader;
N.onloadend=function(){try{var h=new Uint8Array(N.result);h.length<8&&F(void 0);var c=h.subarray(0,8);h="";for(var M=0;M<c.length;M++)h+=("0"+c[M].toString(16)).substr(-2);h.startsWith("ffd8ff")?x("image/jpeg"):h.startsWith("47494638")?x("image/gif"):h.startsWith("89504e470d0a1a0a")?x("image/png"):h.startsWith("424d")?x("image/bmp"):x(void 0)}catch(f){F(f)}};
N.onerror=F;N.readAsArrayBuffer(p)})},Pqc=function(p){return new Promise(function(x,F){var N=new Image;
N.crossOrigin="anonymous";N.onload=function(){var h=document.createElement("canvas");h.width=N.naturalWidth;h.height=N.naturalHeight;var c=h.getContext("2d");if(!c)throw Error("gl");c.drawImage(N,0,0);c=jE8(p);h.toBlob(function(M){M?x(M):F()},c)};
N.src=p})},BaH=function(p,x){var F;
if(((F=_.r(p,_.dX))==null?void 0:F.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var N;_.hG((N=x.hostElement)!=null?N:x,"yt-shorts-reset");_.ncJ(_.J().resolve(_.pJ),p).then(function(c){Tam(c,x,p)})}else{var h;
_.fc((h=x.hostElement)!=null?h:x,[p]).then(function(c){c&&Tam(c.data,x,p)})}},Tam=function(p,x,F){if(p){var N=_.r(p.replacementEndpoint,_.dX);
if(N){p.sequenceContinuation&&(N.sequenceParams=p.sequenceContinuation);var h;_.hG((h=x.hostElement)!=null?h:x,"yt-navigate",{endpoint:p.replacementEndpoint})}else if((p==null?void 0:p.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(p==null?0:p.watchStatus)&&_.r(p.watchStatus,_.Hqj)){var c;_.hG((c=x.hostElement)!=null?c:x,"yt-navigate",{endpoint:F})}}},RiH=function(){var p=_.J().resolve(_.Q_),x=Mo8(p.getState())||"";
p=_.fAp(p.getState())||"";return{disableCache:x==="ytd-browse"&&p==="home"}},k5H=function(p){if(!p)return!1;
try{if(p.host&&p.host.tagName==="YT-FORMATTED-STRING"&&p.host.id==="contenteditable-textarea"||p.nodeType===Node.ELEMENT_NODE&&p.tagName==="YTD-COMMENT-INPUT")return!0}catch(x){return!1}return k5H(p.parentNode)},xA=function(p){return p?p.tagName==="A"&&p.href&&p.classList.contains("yt-simple-endpoint"):!1},UL_=function(p){return p?p.tagName==="IMG"&&p.classList.contains("emoji"):!1},iTm=function(p,x,F){if(!p)return null;
var N=xA(p);if(N&&F)return x=p.pathname.substring(p.pathname.indexOf("/channel/")+9),document.createTextNode("@"+x);if(N&&!F)return document.createTextNode("");if(UL_(p))return F=p.alt,p=p.dataset.emojiId,!p&&x&&(x=_.pE(x,F))&&x.isCustomEmoji&&(p=x.emojiId),p?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+p+">"):document.createTextNode(F);N=p.cloneNode(!1);for(var h=0;h<p.childNodes.length;++h){var c=iTm(p.childNodes[h],x,F);c&&N.appendChild(c)}return N},Fv=function(p){return p?xA(p)?p:Fv(p.lastChild):
null},IrX=function(p){return p?xA(p)?p:IrX(p.firstChild):null},$Lt=function(p){if(!p)return null;
for(var x=p.previousSibling;x;)if(x.nodeType===Node.ELEMENT_NODE&&x.nodeName==="BR")x=x.previousSibling;else if(x.nodeType===Node.TEXT_NODE&&/\s+/.test(x.textContent))x=x.previousSibling;else break;(x=Fv(x))?p=x:p=(p=p.parentNode)?Fv(p.previousElementSibling):null;return p},ei8=function(p){if(!p)return null;
for(var x=p.nextSibling;x;)if(x.nodeType===Node.ELEMENT_NODE&&x.nodeName==="BR")x=x.nextSibling;else if(x.nodeType===Node.TEXT_NODE&&/\s+/.test(x.textContent))x=x.nextSibling;else break;return(x=IrX(x))?x:ei8(p.parentNode)},pkc=function(p){var x=_.Fo(),F=x.JSC$9092_getStartNode();
if(!k5H(F.parentNode))return null;x=x.JSC$9092_getStartOffset();if(F.nodeType===Node.TEXT_NODE){var N=_.uk(F,xA);if(N){if(p&&x===0||!p&&x===F.length)return N}else{if(p&&x===F.length)return!F||F.nodeName==="BR"||F.nextElementSibling&&_.ND(F.nextElementSibling,"display")==="block"?null:IrX(F.nextElementSibling);if(!p&&x===0)return F?Fv(F.previousElementSibling):null}}if(F.nodeType===Node.ELEMENT_NODE)if(p){if(0<=x&&x<F.childNodes.length)return IrX(F.childNodes[x])}else if(0<x&&x<=F.childNodes.length)return Fv(F.childNodes[x-
1]);return null},x8a=function(p,x,F){if(!p)return null;
if(p.nodeType===Node.TEXT_NODE)if(F){var N=$Lt(p);if(N&&!/^\s+\S/.test(p.wholeText.substr(0,x)))return N}else if((N=ei8(p))&&!/\S\s+/.test(p.wholeText.substr(x,p.wholeText.length)))return N;return p.nodeType===Node.ELEMENT_NODE?F?$Lt(p.childNodes[x]):ei8(p.childNodes[x]):x8a(p.parentNode,x,F)},Fja=function(p){if(p.hasChildNodes())switch(p.tagName){case "DIV":case "A":case "SPAN":var x="";
for(p=p.firstChild;p;p=p.nextSibling)x+=Fja(p);return x;default:return""}else switch(p.nodeType){case 3:return p.textContent;default:return""}},NMH=function(p){p=p.data;
return _.Z("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.Z("div",null,_.Z(_.KQ,{text:p.title})),p.subtitle?_.Z("div",{class:"ytd-menu-title-renderer__subtitle"},_.Z(_.KQ,{text:p.subtitle})):null)},h4a=function(p){switch(p){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"}},lRt=function(p){return p.map(function(x){return{settingsRadioOptionRenderer:{title:_.xO(x.name),
asideText:_.xO(x.approximateSize),id:h4a(x.format)}}})},aRm=function(p){if(p&&p.length!==0)return p.filter(ca8()).map(function(x){return{settingsRadioOptionRenderer:{title:x.name,
asideText:x.approximateSize,id:h4a(x.formatType)}}})},M08=function(p){if(p)return p.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},D8_=function(p){var x=p.indexOf("(");
return x!==-1?p.substring(x+1,p.length-1):p},fR_=function(p){switch(p){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},qRD=function(p,x,F,N,h,c){var M=_.Q5.clone(KjH);
M.locale=_.sd("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;M.report={description:h||"<empty>"};h=_.sd("SBOX_SETTINGS",{});x=x.join(",");var f=Date.now();p={choice_cc:N,choice_id_cc:F,choices_sc:x,gl:h.REQUEST_DOMAIN,hl:h.REQUEST_LANGUAGE,query:p,time:f};c&&(p.choice_additional_comment_cc=c);_.PHJ(M,p)},Zym=function(p){var x=new Map;
x.set("authuser",_.sd("SESSION_INDEX","0"));return _.Fa(p,x)},d8e=function(p){var x;
return _.D(function(F){switch(F.nextAddress){case 1:if(!p||!t0m(p))return F.return(null);x=null;switch(_.sd("INNERTUBE_CLIENT_NAME")){case "WEB":return F.jumpTo(2);case "WEB_REMIX":x=p.getPlayer()}F.jumpTo(3);break;case 2:return _.q(F,p.getPlayerPromise(),4);case 4:x=F.yieldResult;F.jumpTo(3);break;case 3:return F.return(x)}})},t0m=function(p){return["ytd-player",
"ytmusic-player"].includes(String(p.tagName||"").toLowerCase())},v5H=function(p){p=Math.round(p);
return p%2?p-1:p},Jae=function(p){p=Math.round(p);
return p%2===0?p-1:p},CHc=function(p){var x,F,N;
if(p=(x=p.createPlaylistDialogFormSchema)==null?void 0:(F=x.fieldSchemas)==null?void 0:(N=F.title)==null?void 0:N.validationSchema)for(x=[p.syncStep,p.asyncStep].filter(function(h){return h!==void 0}),x=_.a(x),F=x.next();!F.done;F=x.next()){F=F.value.rules;
if(!F)break;F=_.a(F);for(F=F.next();!F.done;F=F.next())return _.r(F.value,_.isH)}},raH=function(p){var x,F,N;
if(p=(x=p.createPlaylistDialogFormSchema)==null?void 0:(F=x.fieldSchemas)==null?void 0:(N=F.visibility)==null?void 0:N.validationSchema)for(x=[p.syncStep,p.asyncStep].filter(function(h){return h!==void 0}),x=_.a(x),F=x.next();!F.done;F=x.next()){F=F.value.rules;
if(!F)break;F=_.a(F);for(N=F.next();!N.done;N=F.next())if(N=_.r(N.value,SR8))return x=void 0,(x=N.translations)==null?void 0:x.visibilityNotValidErrorMessage}},E5H=function(){var p,x;
return(x=(p=_.J().resolve(_.Bw(_.AD)))==null?void 0:p())!=null?x:!1},XkX=function(p,x){a:switch(x){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":x="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";
break a;default:x="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:p,style:x,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},g5c=function(p){_.lA(p,"yt-refit-popups-action")},z4k=function(p){var x=p.data;
var F=p.disablePadding;var N=p.className;var h=_.oc(),c=XkX(x.banner,x.assetContainerPaddingStyle),M=XkX(x.imageBanner,x.assetContainerPaddingStyle),f=x.assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET",K=x.assetContainerMaxHeight;_.J9(function(){var t;(t=h.value)==null||t.addEventListener("image-loaded",function(){g5c(h.value)})});
_.E_(function(){var t;(t=h.value)==null||t.removeEventListener("image-loaded",function(){g5c(h.value)})});
p={};return _.Z("yt-dialog-header-view-model",{el:h,class:_.pQ(N,(p.ytDialogHeaderViewModelHost=!0,p.ytDialogHeaderViewModelHostDisablePadding=!!F,p))},_.je(x.banner,function(){var t={};return _.Z("div",{class:_.pQ(N,(t.ytDialogHeaderViewModelBanner=!0,t.ytDialogHeaderViewModelBannerFullBleed=!!f,t)),style:"max-height: "+(K?K+"px":"")},_.Z(_.DF,{data:c,className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.je(x.imageBanner,function(){var t={};
return _.Z("div",{class:_.pQ(N,(t.ytDialogHeaderViewModelBanner=!0,t.ytDialogHeaderViewModelBannerFullBleed=!!f,t)),style:_.a4({"max-height":function(){return K!==void 0?K+"px":void 0}})},_.Z(_.DF,{data:M,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.je(x.customAssetContainer,function(){return _.Z("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},Qve(x.customAssetContainer))}),_.je(x.customBanner,function(){return _.Z("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},Qve(x.customBanner))}),_.je(x.headline,function(){return _.Z("h2",null,_.Z(_.KQ,{text:x.headline,
className:"ytDialogHeaderViewModelText"}))}))},sv_=function(p){var x=21;
if(!p)return x;x+=p.headerTitle?27:0;x+=p.headerTitle&&p.hasHeaderActionHeader?4:0;return x+=p.headerTitle&&p.headerSubtitle?16:0},n5a=function(p){var x=0;
if(!p)return x;x+=p.hasFooterPrimaryButton||p.hasFooterSecondaryButton?48:0;x+=p.footerTrailingLabel||p.footerLeadingLabel?30:0;return x+=p.hasFooterPrimaryButton||p.hasFooterSecondaryButton||!p.footerTrailingLabel&&!p.footerLeadingLabel?0:12},yaa=function(p){var x=new _.lb,F=p;
return{subscribe:function(N){x.subscribe("changed",N)},
dispatch:function(N,h){var c=F;N==="Touch Start"?F=Object.assign({},c,{isAnimating:!1,initialY:h.event.touches[0].clientY}):N==="Touch Move"?(N=Math.min(h.fullContentWrapperHeight,h.contentHeightMap[h.contentWrapperId]+sv_(h.header)-n5a(h.footer)),F=Object.assign({},c,{currentY:Math.max(h.contentScrollable?-1*(c.initialY-24):0,h.event.touches[0].clientY-c.initialY),maxHeightForContentWrapper:Math.min(N,Math.max(0,(c.isFullScreen?N:h.contentWrapperHeight)-c.currentY))})):F=N==="Snap To Full Screen"?
Object.assign({},c,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:h.maxHeight}):N==="Snap To Neutral Position"?Object.assign({},c,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:h.maxHeight}):N==="Close Sheet"?Object.assign({},c,{isAnimating:!0,currentY:h.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:h.maxHeight}):c;x.publish("changed",F)}}},byH=function(p){return _.h0(function(x){p(x);
return!1})},Aa_=function(){_.J().resolve(_.gc).closeSheet()},unH=function(p){var x,F,N,h,c,M,f,K,t,d,v;
return{headerTitle:(x=p.headerTitle)==null?void 0:x.call(p),headerSubtitle:(F=p.headerSubtitle)==null?void 0:F.call(p),headerActionHeader:p.headerActionHeader,footerPrimaryButton:p.footerPrimaryButton,footerSecondaryButton:p.footerSecondaryButton,footerButtonType:(N=p.footerButtonType)==null?void 0:N.call(p),footerLeadingLabel:(h=p.footerLeadingLabel)==null?void 0:h.call(p),footerTrailingLabel:(c=p.footerTrailingLabel)==null?void 0:c.call(p),shouldShowIcons:(M=p.shouldShowIcons)==null?void 0:M.call(p),
skipContentClick:(f=p.skipContentClick)==null?void 0:f.call(p),additionalClassName:(K=p.additionalClassName)==null?void 0:K.call(p),onClosedCallback:p.onClosedCallback,focusOnClose:(t=p.focusOnClose)==null?void 0:t.call(p),isDisabled:(d=p.isDisabled)==null?void 0:d.call(p),disabledCommand:(v=p.disabledCommand)==null?void 0:v.call(p),headerFn:p.headerFn,contentFn:p.contentFn,footerFn:p.footerFn,hasHeaderFn:p.hasHeaderFn(),hasContentFn:p.hasContentFn(),hasFooterFn:p.hasFooterFn(),hasFooterPrimaryButton:p.hasFooterPrimaryButton(),
hasFooterSecondaryButton:p.hasFooterSecondaryButton(),hasHeaderActionHeader:p.hasHeaderActionHeader()}},YRk=function(p){switch(p){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""}},wk8=function(p){switch(p){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""}},GaH=function(p){switch(p){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""}},V0H=function(p,x,F){x.forEach(function(N){_.cj(_.J().resolve(_.Zy),N)});
_.lA(p,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",F])},o5k=function(p,x,F,N){var h=_.r(F,_.Vf).commandLifeCycleConfig;
h&&h.onStartCommand&&_.Kc(p,[h.onStartCommand],x);_.Tu(x);var c=_.uT.instance;c&&_.Yp(c,F)?_.w5(c,F,N).then(function(M){if(!M||(M==null?0:M.error))return M=_.r(F,_.Vf).serializedTransactionFlowLoggingParams,_.kq(x),_.o9(new NO("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",M));_.kq(x);return{data:M}}).then(function(M){_.kq(x);
WjH(M.data);var f=M.data.command;f&&_.Kc(p,[f],x);f=HyH(F,M.data);if(!f){var K=M.data;M=!1;if(K&&K.command&&_.r(K.command,_.Zx)){var t;K=((t=_.r(K.command,_.Zx))==null?void 0:t.commands)||[];for(t=0;t<K.length;t++)if(_.r(K[t],_.cAD)){M=!0;break}}M||_.dm('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!f&&h&&h.onSuccessCommand?_.Kc(p,[h.onSuccessCommand],x):f&&h&&h.onFailureCommand&&_.Kc(p,[h.onFailureCommand],x)},function(){_.kq(x);
h&&h.onFailureCommand&&_.Kc(p,[h.onFailureCommand],x);m88(F)}):_.zj(Error("xl"),"ERROR")},OyH=function(p,x,F){var N=[x];
F&&N.push(F);return _.fc(p,N).then(function(h){var c=_.r(x,_.Vf).serializedTransactionFlowLoggingParams,M=h.data,f=HyH(x,M);f?h=_.o9(new NO(f,c)):WjH(M);return h},function(){var h=_.r(x,_.Vf).serializedTransactionFlowLoggingParams;
m88(x);return _.o9(new NO("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",h))})},HyH=function(p,x){p=_.r(p,_.Vf).serializedTransactionFlowLoggingParams;
var F=null;switch(x.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":F="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":F="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":F="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}F?_.Wg(F,p):p2a(p);return F},m88=function(p){_.Wg("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.r(p,_.Vf).serializedTransactionFlowLoggingParams)},
WjH=function(p){if(p.trackingParams){var x=_.b0(),F=_.yR();
x&&F&&_.jz(x,F,_.fr(p.trackingParams))}},jv8=function(p,x,F){var N=_.uT.instance,h=_.K0k(_.sd("YPC_MB_URL")),c=(new _.DAZ).init(),M=_.fBp(),f=_.r(F,_.Fpj).languageCode;
f===void 0?_.zj(Error("Ci"),"ERROR"):_.Xq([c,h]).then(function(){var K={ctk:payments.business.integration.ClientTokenFactory.createClientToken(f,M)};N&&_.Yp(N,F)?_.w5(N,F,K).then(function(t){return{data:t}}).then(function(t){_.hG(x,"yt-service-request-completed",t);
t.code!=="ERROR"&&(t=t.data.command)&&_.Kc(p,[t],x)}):_.zj(Error("xl"),"ERROR")})},TMt=function(p,x,F,N){var h=_.uT.instance;
h&&_.Yp(h,F)?_.w5(h,F,N).then(function(c){return{data:c}}).then(function(c){LjH(p,x,F,c)},function(){PHa(F)}):(h=_.J().resolve(_.Bw(_.CR)))&&h.requestDataForServiceEndpoint(F,N).then(function(c){LjH(p,x,F,c)},function(){PHa(F)})},LjH=function(p,x,F,N){_.hG(x,"yt-service-request-completed",N);
if(N.code&&N.code=="ERROR")PHa(F);else{(N=N.data.commands)&&_.Kc(p,N,x);var h;(p=(h=_.r(F,_.Mjb))==null?void 0:h.serializedYpcPauseFlowLoggingParams)&&p&&_.nK("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",p)}},PHa=function(p){var x;
(p=(x=_.r(p,_.Mjb))==null?void 0:x.serializedYpcPauseFlowLoggingParams)&&p&&_.nK("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",p,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},kae=function(p,x,F){var N=_.uT.instance;
N&&_.Yp(N,F)?_.w5(N,F).then(function(h){return{data:h}}).then(function(h){BMH(p,x,F,h)},function(){R4H(F)}):(N=_.J().resolve(_.Bw(_.CR)))&&N.requestDataForServiceEndpoint(F).then(function(h){BMH(p,x,F,h)},function(){R4H(F)})},BMH=function(p,x,F,N){_.hG(x,"yt-service-request-completed",N);
N.code&&N.code=="ERROR"?R4H(F):((N=N.data.commands)&&_.Kc(p,N,x),(p=_.r(F,_.Dqk).serializedYpcResumeFlowLoggingParams)&&p&&_.nK("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",p))},R4H=function(p){(p=_.r(p,_.Dqk).serializedYpcResumeFlowLoggingParams)&&p&&_.nK("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",p,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},U8H=function(p){p=p===void 0?{}:p;
_.J().resolve(_.w9a).showFeedbackDialog(p.customProductData,p.feedbackContent,p.onFeedbackSubmitted,p.bucket)},iyH=function(p){p=p===void 0?{}:p;
_.J().resolve(_.w9a).showHelpDialog(p.helpContext,p.articleId,p.productData)},IR8=function(){iyH()},$8m=function(){U8H()},psD=function(p,x,F){var N,h,c,M,f,K,t;
return _.D(function(d){switch(d.nextAddress){case 1:N=_.r(p,e4k);if((h=N)==null?0:h.productId){K={productId:N.productId,bucket:N.bucket,enableAnonymousFeedback:(f=N.enableAnonymousFeedback)!=null?f:!0,allowNonLoggedInFeedback:!0};t={feedbackChoice:F.feedbackChoice};if(!_.S("web_collect_offline_state")){d.jumpTo(8);break}_.KM(d,9);return _.q(d,ftH(t),11)}M={bucket:(c=N)==null?void 0:c.bucket};if(!_.S("web_collect_offline_state")){d.jumpTo(4);break}M.customProductData={};_.KM(d,5);return _.q(d,ftH(M.customProductData),
7);case 7:_.ub(d,4);break;case 5:_.v9(d);case 4:U8H(M);d.jumpTo(0);break;case 11:_.ub(d,8);break;case 9:_.v9(d);case 8:_.heJ(t),_.NTp("GFEEDBACK",t),N.productId==="5295751"&&(t.client_attestation=Number(_.sd("CATSTAT",0))),N.productId==="5295751"&&(t.client_time=Date.now()/1E3/3600),N.productId==="5295751"&&(t.original_playback_id=_.jBC||""),_.PHJ(K,t),_.JB(d)}})},xi8=function(p){if(p=_.r(p,_.mbE)){var x={bucket:p.bucketIdentifier};
p.additionalDatas&&(x.customProductData={},p.additionalDatas.forEach(function(F){if(F=F.userFeedbackEndpointProductSpecificValueData)x.customProductData[F.key]=F.value}));
U8H(x)}},FZ8=function(p){var x=_.Vj.getInstance(),F=_.JG("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?"),N=_.JG("DELETE",void 0,"Delete"),h=_.JG("CANCEL",void 0,"Cancel");
F={openPopupAction:JDH(F,void 0,N,h,{signal:"DELETE_ALL_DOWNLOADS"})};_.Aw(x,[F],p)},hmm=function(){return _.D(function(p){return p.nextAddress==1?_.q(p,_.J().resolve(_.iZ),2):_.q(p,N8H(),0)})},lq8=function(p){var x,F;
return _.D(function(N){return N.nextAddress==1?(F=(x=_.r(p,_.Yl))==null?void 0:x.targetId)?_.q(N,_.J().resolve(_.iZ),3):N.jumpTo(0):_.q(N,_.J().resolve(_.UC).deleteVideo(F),0)})},aq_=function(p){var x,F;
return _.D(function(N){return N.nextAddress==1?(F=(x=_.r(p,_.Yl))==null?void 0:x.targetId)?_.q(N,_.J().resolve(_.iZ),3):N.jumpTo(0):_.q(N,che(_.J().resolve(_.UC),F),0)})},Dim=function(p){var x,F;
return _.D(function(N){return(F=(x=_.r(p,_.Yl))==null?void 0:x.targetId)?_.q(N,Mct(F),0):N.jumpTo(0)})},KZk=function(){_.S("kevlar_woffle_refresh_dl_load_killswitch")||fqk()},Zim=function(){_.S("kevlar_woffle")&&_.Ys.instance&&q1H()},diH=function(p){var x;
if((x=_.r(p,_.lr))==null||!x.videoId)return!1;tce(_.J().resolve(_.UC),_.r(p,_.lr),p.clickTrackingParams);return!0},JhD=function(p){var x;
if((x=_.r(p,_.c2))==null||!x.playlistId)return!1;vjk(_.J().resolve(_.UC),_.r(p,_.c2),p.clickTrackingParams);return!0},S18=function(p){var x=_.r(p,_.Kek);
(x==null?void 0:x.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(x==null?void 0:x.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||CMm(_.J().resolve(_.UC),_.r(p,_.Kek))},EjH=function(p){p=_.r(p,_.PUC);
var x;(p==null?0:(x=p.actions)==null?0:x.length)&&rh8(p)},QXm=function(p){var x,F;
return _.D(function(N){x=_.r(p,XsH);return(F=x)!=null&&F.localWatchHistoryCommandType?_.q(N,gj8(x),0):N.return()})},zmD=function(p){setTimeout(function(){requestAnimationFrame(p)},80)},sXk=function(p){return Object.entries(p).map(function(x){return x.join(":")}).join(";")},yhe=function(p){var x,F,N;
_.D(function(h){if(h.nextAddress==1)return _.q(h,nj8(),2);x=h.yieldResult;F=_.xL.instance;switch(x){case "granted":N=p.getLocationCommand;break;case "denied":N=p.openDeniedDialogAction;break;case "prompt":N=p.openCollectionDialogAction;break;default:N=p.openCollectionDialogAction}N&&F.resolveCommand(N);_.JB(h)})},nj8=function(){var p,x;
return _.D(function(F){if(F.nextAddress==1)return p="prompt",navigator.permissions?_.q(F,navigator.permissions.query({name:"geolocation"}),3):F.jumpTo(2);F.nextAddress!=2&&(x=F.yieldResult,p=x.state);return F.return(p)})},Aha=function(){_.D(function(p){return _.q(p,_.biH(),0)})},uq8=function(){var p,x,F;
return _.D(function(N){if(N.nextAddress==1)return p=_.J().resolve(_.SV),p?_.q(N,_.w5(p,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.no(Error("Al")),N.return(void 0));if(x=N.yieldResult){if(x.errorMetadata)return _.no(Error("Bl`"+x.errorMetadata.status+"`"+x.error)),N.return(void 0);F=x.datasyncIds;_.VSc=F.length;return N.return(F)}_.no(Error("Cl"));return N.return(void 0)})},Y1H=function(){uq8().then(function(p){p&&(WJm(p),FUa(p),s48(p),qsH(p))})},wse=function(p){_.E0.addLowPriorityJob(function(){var x,
F,N,h,c;
return _.D(function(M){switch(M.nextAddress){case 1:if(_.S("ytidb_clear_optimizations_killswitch")){M.jumpTo(2);break}x=_.ff("clear");if(x.startsWith("V")&&x.endsWith("||")){var f=[x];WJm(f);FUa(f);s48(f);qsH(f);return M.return()}F=np_();N=ZVe();return _.q(M,NR8(),3);case 3:return h=M.yieldResult,_.q(M,Hra(),4);case 4:if(c=M.yieldResult,!(F||N||h||c))return M.return();case 2:p.isNetworkAvailable()?Y1H():p.listenOnce("publicytnetworkstatus-online",Y1H),_.JB(M)}})})},h1=function(p){p={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.L1(p)}}}};_.xL.instance&&_.xL.instance.resolveCommand(p)},GhH=function(p){if(p){var x=_.cl();
_.F8(x,3854,void 0,{layer:0,parentLayer:4});switch(p){case 1:var F=238708;break;case 2:F=238715;break;case 3:F=238710;break;case 6:F=238709}F&&(p=_.lz(x,{veType:F}))&&_.lC(x,p)}},Vc8=function(p){if(p){var x=_.cl();
_.F8(x,3854,void 0,{layer:0,parentLayer:4});switch(p){case 1:var F=238714;break;case 2:F=238711;break;case 8:F=238709;break;case 7:F=238713;break;case 3:case 4:case 5:F=238712}F&&(p=_.lz(x,{veType:F}))&&_.lC(x,p)}},WZ8=function(p){switch(p.latencyType){case 0:_.Yv("consent_primitive_flow");
_.wH("cpit",p.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.wH("cpist",p.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.wH("cprtif",p.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.wH("cprtli",p.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.wH("cprt",p.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.wH("cpdt",p.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.wH("cpjct",p.timestampEpochMillis,"consent_primitive_flow")}},
Rma=function(p,x){var F,N,h,c,M,f,K,t,d,v,C,X,Q,b,A,Y,O,Fw,R,ld;
return _.D(function(pp){switch(pp.nextAddress){case 1:_.KM(pp,2);(N=(F=_.r(p,Hik))==null?void 0:F.serializedConsentRequest)||(N=(h=_.r(p,mi8))==null?void 0:h.serializedConsentRequest);N&&(c=ojk(_.Fj(N)));if(c===void 0)return pp.return();M=Oim(c);M.latencyCallback=WZ8;x&&jXt(M,function(){x.then(function(Kp){Kp.pauseVideo();(new LZX).increment()})});
return((f=_.r(p,Hik))==null?void 0:f.consentAction)==="CONSENT_ACTION_PREWARM"||((K=_.r(p,mi8))==null?void 0:K.consentAction)==="CONSENT_ACTION_PREWARM"?_.q(pp,PMa(M),5):_.q(pp,T8c(M),6);case 6:t=pp.yieldResult;d=_.E6(t,lS);if(d===1){if(((v=_.V8(t,cN,1,lS))==null?void 0:_.Yg(v,1))===1||((C=_.V8(t,cN,1,lS))==null?void 0:_.Yg(C,1))===2||((X=_.V8(t,cN,1,lS))==null?void 0:_.Yg(X,1))===3)_.r(p,mi8)?h1(_.JG("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
h1(_.JG("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));GhH((Q=_.V8(t,cN,1,lS))==null?void 0:_.Yg(Q,1),_.UT(t,B8H,3,_.ik()))}else d===2?(((b=aT(t))==null?void 0:_.Yg(b,1))===5?_.r(p,mi8)?h1(_.JG("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):h1(_.JG("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((A=aT(t))==null?void 0:_.Yg(A,1))===1||((Y=aT(t))==null?void 0:_.Yg(Y,1))===4?h1(_.JG("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((O=aT(t))==null?void 0:_.Yg(O,1))===7&&((Fw=c)==null?void 0:(R=_.B8(Fw,MO,4))==null?void 0:_.Yg(R,4))!==1&&h1(_.JG("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),Vc8((ld=aT(t))==null?void 0:_.Yg(ld,1))):h1(_.JG("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));pp.jumpTo(5);break;case 5:_.ub(pp,0);break;case 2:_.v9(pp),h1(_.JG("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.JB(pp)}})},Uik=
function(){if(!khm.has("Worker")){khm.set("Worker",!0);
var p={api:"BROWSER_API_WEB_WORKER"};p.available="Worker"in window?!0:!1;_.E$("apiTest",p)}},iim=function(p){return typeof p==="undefined"?"-1":String(Math.ceil(p/1048576))},pvH=function(p,x){Iqa(new $im(_.r(x,emm).addToken,_.r(x,emm).commonToken)).then(function(){_.hG(p,"yt-invoke-instrument-manager-action-completed")},function(F){_.hG(p,"yt-invoke-instrument-manager-action-error",F)})},xsc={},FNm=function(p){return _.UEM(xsc,p,function(){return hr(_.w0B,p)>=0})},NJe=function(p){return _.O6(p)},
hVt=function(p){var x=1;
p=p.split(":");for(var F=[];x>0&&p.length;)F.push(p.shift()),x--;p.length&&F.push(p.join(":"));return F},l7D=function(p,x){x=p.aspectRatio()<=x.aspectRatio()?x.width/p.width:x.height/p.height;
p.scale(x)},cka=function(p,x){x=p.aspectRatio()>x.aspectRatio()?x.width/p.width:x.height/p.height;
return p.scale(x)},a78=function(p){var x=new _.aX;
return _.WW(x,11,p)},M_k=function(p){var x={};
p=p.getAllResponseHeaders().split("\r\n");for(var F=0;F<p.length;F++)if(!_.tz(p[F])){var N=hVt(p[F]),h=N[0];N=N[1];if(typeof N==="string"){N=N.trim();var c=x[h]||[];x[h]=c;c.push(N)}}return _.Q5.map(x,function(M){return M.join(", ")})},CL=function(p,x){return p.JSC$7652_xhr_?p.JSC$7652_xhr_.getResponseHeader(x):null},DA=function(p,x,F){Array.isArray(F)||(F=[String(F)]);
_.uGm(p.JSC$7886_queryData_,x,F);return p},q1H=function(){var p=_.Ys.instance;
_.D(function(x){return p.deferredInstallPrompt?_.q(x,p.deferredInstallPrompt.prompt(),0):x.jumpTo(0)})},Dsa=function(p,x,F){if(_.TB(p))_.w1(p,x,F);
else for(p=_.VBJ(p);;){var N=p.next();if(N.done)break;x.call(F,N.value,void 0,p)}},f7m={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}"]},ldX,cwH,ad8,Mt8,Dhm,fdX,K3H,qH8,Zqm,Mct,che,N8H,ttk,dhH,vf8,JwH,Cl8,vjk,tce,SHH,rwt,Efk,fqk,CMm,Xam,rh8,gfH,gj8,Q$_,zUc,s$_,nfm,ywm,bqH,AwH,dL,uQc,YHH,
vgk,ZTH,wam,GkH,VtH,W3H,Hqc,mhk,ofm,Oqm,j$m,L3m,PlX;f7m={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 KN8=function(p,x){var F=[];Dsa(x,function(N){try{var h=_.Fb.prototype.getWrapper.call(this,N,!0)}catch(c){if(c=="Storage: Invalid value was encountered")return;throw c;}h===void 0?F.push(N):_.Gck(h)&&F.push(N)},p);
return F},qPH=function(p,x){KN8(p,x).forEach(function(F){_.Fb.prototype.remove.call(this,F)},p)},ZF8=function(p){var x=_.oS;
x._minimumZ=Math.max(x._minimumZ,p)},t_c=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],dsa=function(p,x){_.RR(p.zW);p.zW=x},v9_=function(p,x,F,N){p.setState(5);
var h=!!p.lVs&&t_c.includes(_.oD(p.lVs)||"");try{var c=new _.uM({program:x,globalName:F,kk:{disable:!_.S("att_web_record_metrics")||!_.S("att_skip_metrics_for_cookieless_domains_ks")&&h,h8:"aGIf"}});c.tL8.then(function(){p.setState(6);N&&N(x)});
dsa(p,c)}catch(M){p.setState(7),M instanceof Error&&_.no(M)}},Jkt=function(p,x,F,N,h,c){var M=M===void 0?"trayride":M;
F?(p.setState(2),_.VR(F,function(){if(window[M])v9_(p,N,M,h);else{p.setState(3);var f=_.YHm(F),K=document.getElementById(f);K&&(_.LJE(f),K.parentNode.removeChild(K));_.no(new _.qE("BL:ULB",F))}},c)):x?(c=_.KH("SCRIPT"),x instanceof _.Tl?_.kE(c,x):c.textContent=x,c.nonce=_.Pz(document),document.head.appendChild(c),document.head.removeChild(c),window[M]?v9_(p,N,M,h):(p.setState(4),_.no(new _.qE("BL:ULBJ")))):_.no(new _.qE("BL:ULV"))},CE8=function(){this.state=1;
this.zW=null;this.lVs=void 0};
_.l=CE8.prototype;_.l.initialize=function(p,x,F,N){this.lVs=N;if(p.program){var h;N=(h=p.interpreterUrl)!=null?h:null;if(p.interpreterSafeScript)h=_.KOr(p.interpreterSafeScript);else{var c;h=(c=p.interpreterScript)!=null?c:null}p.interpreterSafeUrl&&(N=_.XE(p.interpreterSafeUrl).toString());Jkt(this,h,N,p.program,x,F)}else _.no(Error("kf"))};
_.l.isInitialized=function(){return!!this.zW};
_.l.getState=function(){return this.state};
_.l.isLoading=function(){return this.state===2};
_.l.invoke=function(p){p=p===void 0?{}:p;var x;this.zW?x=_.ECB(this.zW,{cz:p}):x=null;return x};
_.l.dispose=function(){dsa(this,null);this.setState(8)};
_.l.setState=function(p){this.state=p};
var SP8=function(p,x){return p.zW.snapshot(x)},rka=function(p,x){var F=_.Ud("botguard_async_snapshot_timeout_ms",3E3);
x=x===void 0?{}:x;F=F===void 0?3E3:F;return p.zW?new Promise(function(N,h){var c=!1,M=_.E0.addJob(function(){c=!0;h(Error("lf"))},1,F);
p.zW?SP8(p,{cz:x}).then(function(f){_.E0.cancelJob(M);c||N(f)}).catch(function(f){_.E0.cancelJob(M);
c||h(f)}):(_.E0.cancelJob(M),N(null))}):Promise.resolve(null)},E9X=["att/log"],Xv8;
Xv8={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var g9e={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},QwH=function(p,x){return _.db(p,{mode:"readwrite",enableRetries:!0},function(F){return _.td6(F,x,"settingEntity")})},zVH=function(p,x,F){return _.db(p,{mode:"readonly",
enableRetries:!0},function(N){return _.umZ(N,x,F)})},swH=function(p){if(!p.storage)return!1;
a:{if(p.storage){try{var x=p.storage.get("TLPQtimestamp")}catch(F){}p=Number(x);if(!isNaN(p))break a}p=void 0}return p?Date.now()-p<864E5:!1},n9k=function(p,x){p.queueProxy&&x.forEach(function(F){if(F.videoId&&F.trackingParams&&p.queueProxy instanceof _.yG){var N=_.b0();
p.queueProxy.attributionData.set(F.videoId,{enqueueingVe:_.fr(F.trackingParams).getAsJson(),enqueueingCsn:N?N:void 0,clientEnqueueingTimeMs:Math.floor((0,_.Lf)()).toString()})}})},ykD=function(p){var x=_.aFm(p);
x!=p.currentSnapState_&&(p.currentSnapState_=x,p.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},fz=function(p){this.JSC$10799_networkManager_=p;
this.partCallbacks_=[]};
fz.prototype.getCacheKeyForEndpoint=function(p){return _.J5B(p,!1)};
fz.prototype.onPartsCallback_=function(p){this.partCallbacks_.forEach(function(x){p&&x(p)})};
var Kz=function(p,x,F){fz.call(this,p);this.player_=x;this.autoplayData_=F};
_.E(Kz,fz);Kz.prototype.getCacheKeyForEndpoint=function(p){return _.J5B(p,!!this.autoplayData_)};
Kz.prototype.getTempData=function(p,x){x=x.timeBeforeNextVideo;p={itct:p.clickTrackingParams,lact:_.U0(),pbis:x,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(p.autonav=1);return p};
Kz.prototype.getXhrParams=function(p){return Object.assign({pbj:"prefetch"},p)};
Kz.prototype.getParams=function(p){p={frags:p.fragmentsRequested.join(",")};_.S("kevlar_droppable_prefetchable_requests")&&(p.prefetch=1);return p};
var bFa=function(p){p.playerEvents_.forEach(function(x){p.player.removeEventListener(x.eventName,x.callback)});
p.playerEvents_.length=0},qO=function(p,x,F){this.player=p;
this.JSC$10809_taskManager=x;this.prefetchDelay=F;this.completionResolver_=null;this.playerEvents_=[]};
qO.prototype.start=function(){var p=this;this.completionResolver_=_.GO();_.g8(this.completionResolver_.promise,function(){bFa(p);p.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var Ak8=function(p,x,F){p.player.addEventListener(x,F);p.playerEvents_.push({eventName:x,callback:F})},up_={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},YP8={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},wvc=function(p,x,F){qO.call(this,p,x,F);this.cueId_="playbackTrigger-"+Math.random()};
_.E(wvc,qO);
wvc.prototype.prepareTrigger=function(p){var x=this,F=this.player.getDuration(),N=this.player.getVideoData(),h=N.isLive&&N.hasProgressBarBoundaries;if(h&&N.progressBarEndPositionUtcTimeMillis){var c=N.progressBarEndPositionUtcTimeMillis/1E3;isNaN(c)||(F=c)}var M=0;this.prefetchDelay>=0?h?N.progressBarStartPositionUtcTimeMillis&&(N=N.progressBarStartPositionUtcTimeMillis/1E3,isNaN(N)||(M=N+this.prefetchDelay)):M=this.prefetchDelay:M=F+this.prefetchDelay;h?this.player.addUtcCueRange(this.cueId_,M,F):
this.player.addCueRange(this.cueId_,M,F);_.g8(p.promise,function(){x.player.removeCueRange(x.cueId_)});
Ak8(this,"onCueRangeEnter",function(f){f==x.cueId_&&p.resolve(F-M)})};
var G3t=function(p,x){p.fragmentConfiguration_[x].requiredKeys.every(function(F){return!!p.prefetchedData_[F]})&&(p.validatedFragments_.push(x),x=p.missingFragments_.indexOf(x),x!==-1&&p.missingFragments_.splice(x,1))},V__=function(p){p.prefetchedFragments_.forEach(function(x){G3t(p,x)})},WNH=function(p,x,F){this.pageFragments_=p;
this.prefetchedFragments_=x;this.fragmentConfiguration_=YP8;this.prefetchedData_=F;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;V__(this)},HFH=function(){},msH=function(p){this.JSC$10823_playlistManager_=p};
_.E(msH,HFH);msH.prototype.getPrefetchEndpoint=function(){return this.JSC$10823_playlistManager_.getAutoplayEndpoint()};
var o9a=function(p){this.autonavEndpoints_=p};
_.E(o9a,HFH);o9a.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var OFt=function(p,x,F,N,h){this.autonavEndpoints=p;this.foregroundTrigger=x;this.backgroundTrigger=F;this.pageType=N;this.isInPlaylist=h},jwa=function(p,x){if(p.webPrefetchData&&p.webPrefetchData.navigationEndpoints&&p.webPrefetchData.navigationEndpoints.length){p=p.webPrefetchData.navigationEndpoints;
var F=_.r(p[0],_.B7);if(F.watchEndpointSupportedPrefetchConfig&&F.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var N=F.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;F=N.playbackRelativeSecondsPrefetchCondition;F=typeof F==="number"&&Math.abs(F)<x.videoDuration?F:void 0;N=N.countdownUiRelativeSecondsPrefetchCondition;N=typeof N!=="number"||_.S("prefetch_job_config_cleanup_ks")&&x.inPlaylist?void 0:N;if(typeof N==="number")return new OFt(p,x.makeUpNextTrigger(N),x.makePlaybackTrigger(N),
"watch",x.inPlaylist);if(typeof F==="number")return new OFt(p,x.makePlaybackTrigger(F),null,"watch",x.inPlaylist)}}},LNt=function(p){return p.prefetchJobConfig_.backgroundTrigger?_.bO(_.VX$)()==0?p.prefetchJobConfig_.backgroundTrigger:p.prefetchJobConfig_.foregroundTrigger:p.prefetchJobConfig_.foregroundTrigger},PE8=function(p){_.Ci(document,"visibilitychange",p.onVisibilityChange_,!1,p)},ZA=function(p){fz.call(this,p)};
_.E(ZA,fz);ZA.prototype.getCacheKeyForEndpoint=function(p){return fz.prototype.getCacheKeyForEndpoint.call(this,p)};
ZA.prototype.getTempData=function(){return{}};
ZA.prototype.getXhrParams=function(p){return p};
ZA.prototype.getParams=function(){return{}};
var TJX=function(p,x,F){var N=p.prefetchDelay*1E3;if(Math.abs(N)>x)F.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var h=N,c=x-N;N<0&&(h=x+N,c=Math.abs(N));var M=p.JSC$10809_taskManager.addJob(function(){F.resolve(c/1E3)},10,h);
F.promise.thenCatch(function(){p.JSC$10809_taskManager.cancelJob(M)})}},BJ8=function(p,x,F){qO.call(this,p,x,F)};
_.E(BJ8,qO);BJ8.prototype.prepareTrigger=function(p){var x=this;Ak8(this,"onAutonavCoundownStarted",function(F){TJX(x,F,p)})};
var RVm=function(p){p.pendingPrefetchJob_&&(p.pendingPrefetchJob_.cancel(),p.pendingPrefetchJob_=null)},k3D=function(p,x,F){if(!p.triggeredTargets.has(x)){var N=_.RbB(p,x);
N.action=F;_.T4B(p,x,N)}},Usm=function(p){_.$r6();
_.iWH("cpt")&&_.no(Error("kh"));_.Mm.requestAnimationFrame(function(){_.Mm.setTimeout(function(){_.wH("cpt");var x=_.W5("vpl"),F=_.W5("cpt");x&&F&&_.wH("ol",Math.max(x,F))})});
try{_.wH("fr_s"),p()}catch(x){_.zj(x)}_.Mm.requestAnimationFrame(function(){_.wH("bcp")})},iFH=function(p,x){p.serviceEndpointHandlers.push(x)},I7_=function(p,x){x=p.pendingPages_.indexOf(x);
x>-1&&p.pendingPages_.splice(x,1)},$st=function(p,x){var F=_.dUl.indexOf(x);
F>-1&&_.dUl.splice(F,1);p.targetPage_==x?(p.abort(),_.JXn(p)):I7_(p,x)},eVH=function(p,x,F,N){x={challenge:x};
F&&(x.webResponse=F);return _.AY(p.innertubeTransportService,x,_.Ru(E9X),N)},pa8=function(p,x,F){if(!x.challenge)throw Error("mi");
if(x.botguardData&&x.botguardData.program){var N=new CE8;N.initialize(x.botguardData,function(){rka(N,{atr_challenge:x.challenge}).then(function(h){if(!h)throw Error("ni");return eVH(p,x.challenge,h,F)}).catch(function(h){_.no(h);
return eVH(p,x.challenge,void 0,F)})},void 0)}else eVH(p,x.challenge,void 0,F)},xhX=function(p,x,F){var N={};
x.ids&&(N.ids=[].concat(_.se(x.ids)));x.engagementType&&(N.engagementType=x.engagementType);return _.AY(p.innertubeTransportService,N,_.Ru(_.UqC),F).then(function(h){if(!h)throw new _.qE("GetAttestationChallenge returned falsy");pa8(p,h,F)}).thenCatch(function(h){_.zj(h)})},F3X=function(p,x,F){return new _.cZ(function(N,h){var c;
return _.D(function(M){if(M.nextAddress==1){var f=x.engagementType,K=x.ids,t={};K=_.a(K!=null?K:[]);for(var d=K.next();!d.done;d=K.next())d=d.value,d.encryptedVideoId?t.encryptedVideoId=d.encryptedVideoId:d.externalChannelId?t.externalChannelId=d.externalChannelId:d.commentId?t.commentId=d.commentId:d.externalOwnerId?t.externalOwnerId=d.externalOwnerId:d.artistId?t.artistId=d.artistId:d.playlistId?t.playlistId=d.playlistId:d.externalPostId?t.externalPostId=d.externalPostId:d.shareId&&(t.shareId=d.shareId);
return _.q(M,vLm(f,t),2)}c=M.yieldResult;if(!c.challenge)return _.no(Error("oi")),xhX(p,x,F).then(N,h),M.return();f=c;t={challenge:f.challenge};t.webResponse=f.webResponse;t.engagementType=x.engagementType;t.ids=x.ids;_.AY(p.innertubeTransportService,t,_.Ru(E9X),F).then(N,h);_.JB(M)})})},S6H=function(p,x){var F,N,h,c;
_.D(function(M){if(M.nextAddress==1){F=_.r(x,_.a7Z);if(!(F&&F.listId&&p.response&&p.response.playingVideoId)||p.listId!==F.listId)return M.return();p.index===void 0&&(p.index=0);return _.q(M,_.qNb(p.JSC$10634_playlistNetworkManager,F.listId,p.index,p.response.playingVideoId),2)}N=M.yieldResult;if(!N)return M.return();h=N.playlistId;c=N.playlistPanelRenderer;p.setPlaylistData(h,c,N.autoplayRenderer);_.JB(M)})},NWc=function(p,x,F){var N=p.getParams(F),h=_.X2k(x,N),c=p.getTempData(x,F);
c.endpoint=JSON.stringify(x);_.S("enable_unknown_lact_fix_on_html5")&&(_.J().resolve(_.CQ),c.lact=_.U0());var M={headers:{"X-YouTube-STS":_.sd("STS"),"x-youtube-csoc":1}};_.I9(h,c);return new _.cZ(function(f,K){var t=p.getXhrParams(N),d;_.S("kevlar_cache_on_ttl_player")&&(d=_.FA.instance);d&&_.gcZ(d,x)?_.u$l(d,x,c,window.location.href).then(function(v){v?f(v):K()},K):_.gbD(p.JSC$10799_networkManager_,x,t,p.onPartsCallback_.bind(p),M).then(function(v){v?f(v):K()},K)})},hUH=function(p,x){p.triggerPromise_=
x.start();
p.triggerPromise_.then(function(F){var N=p.prefetchEndpointProvider_.getPrefetchEndpoint();if(N){var h=up_[p.prefetchJobConfig_.pageType].prefetchedFragments;p.prefetchRequestPromise_=NWc(p.JSC$10835_networkPrefetchRequest_,N,{fragmentsRequested:h,timeBeforeNextVideo:F});p.prefetchResponseCacheKey_=p.JSC$10835_networkPrefetchRequest_.getCacheKeyForEndpoint(N);PE8(p);p.prefetchRequestPromise_.then(function(c){p.storePrefetchedDataCallback_(p.prefetchResponseCacheKey_,c);if(_.S("web_prefetch_preload_video")&&
h.length===1&&h[0]==="pl"&&c&&!c.playerAds&&!c.adPlacements){var M=_.r(N,_.dX),f=M!=null,K={raw_player_response:c,watch_endpoint:M};(c=_.J().resolve(f?_.UQI:_.Ui))&&N&&c.then(function(t){f&&_.S("web_queue_preload_video")?(K.prefer_gapless=!0,t.queueNextVideo(K)):t.preloadVideoByPlayerVars(K)})}})}})},t1=function(p,x,F,N){this.prefetchEndpointProvider_=p;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=x;this.prefetchJobConfig_=F;this.JSC$10835_networkPrefetchRequest_=N;this.prefetchResponseCacheKey_=null};
t1.prototype.enqueue=function(){this.triggerPromise_||(hUH(this,LNt(this)),_.qd(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
t1.prototype.resolve=function(){this.cancel()};
t1.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.");PE8(this)};
t1.prototype.onVisibilityChange_=function(){var p=this;_.bO(_.VX$)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){p.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||hUH(this,LNt(this))};
ldX=function(p,x,F,N,h){x&&(x==null?0:x.videoId)&&F&&F.entries&&_.S("kevlar_enable_shorts_prefetch_in_sequence")&&(RVm(p),x=F.entries.map(function(c){var M;return(M=_.r(c.command,_.dX))==null?void 0:M.videoId}).indexOf(x.videoId),F=F.entries[x+1],F!=null&&F.command&&!_.r(F==null?void 0:F.command,_.yf)&&(N=new OFt([F.command],new wvc(N,_.E0,1),null,"shorts",!1),p.pendingPrefetchJob_=new t1(new o9a(N.autonavEndpoints),function(){return!1},N,new ZA(h)),p.pendingPrefetchJob_.enqueue()))};
cwH=function(p,x,F,N,h,c){var M=_.Bf.getInstance();if(!_.S("block_all_player_prefetch_requests")){RVm(p);var f=!!F.getPlaylistId(),K=F.getVideoData().isLive&&F.getVideoData().hasProgressBarBoundaries;if((M.getState()==2||f||K)&&(!F.getVideoData().isLive||K)){M={inPlaylist:f,videoDuration:F.getDuration(),makeUpNextTrigger:function(d){return new BJ8(F,_.E0,d)},
makePlaybackTrigger:function(d){return new wvc(F,_.E0,d)}};
var t=jwa(x,M);t&&(p.pendingPrefetchJob_=new t1(t.isInPlaylist?new msH(h):new o9a(t.autonavEndpoints),function(d,v){v=new WNH(up_[t.pageType].pageFragments,up_[t.pageType].prefetchedFragments,v);return _.VhD(v)?(p.prefetchCache_.set(d,v),!0):!1},t,new Kz(N,F,c,h)),p.pendingPrefetchJob_.enqueue())}}};
ad8=function(){var p=_.Hj();p.signals.parkOrScheduleJob(function(){var x=p.storage;if(x.storage)if(swH(x)){var F=x.getPlaylistId();x=x.getIndex();F=!!F&&x!==void 0}else x.clear(),F=!1;else F=!1;if(F){F=p.pageManager.isOnWatch();a:{var N=p.storage;if(N.storage&&swH(N)&&(x=N.getPlaylistId(),N=N.getIndex(),x&&N!==void 0)){F={recoverPlaylistCommand:{listId:x,index:N,openMiniplayer:!F,openListPanel:F,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}F=void 0}F&&_.Aw(p.JSC$10634_actionRouter,[F],null)}},
0,"ma")};
Mt8=function(p,x,F,N,h,c){var M=_.vt(7111);_.NJ(p.JSC$15951_screenManager,M,c?_.fr(c):void 0);_.lC(p.JSC$15951_screenManager,M,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:N,offlineId:x,offlineabilityFormatType:F,isDefaultFormatType:h==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:h}})};
Dhm=function(p,x,F,N,h){var c,M,f,K,t;return _.D(function(d){if(d.nextAddress==1)return _.q(d,p.JSC$15951_playerApiPromise,2);c=d.yieldResult;Mt8(p,x,F,"OFFLINE_OBJECT_TYPE_PLAYLIST",N,h);if(f=_.mQn[p.entityTypeMap.listEntityType])t={},M=(t[f]={maximumDownloadQuality:(K=F)!=null?K:void 0},t);return _.q(d,c.queueOfflineAction(x,p.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",M),0)})};
fdX=function(p,x){var F,N,h,c;return _.D(function(M){if(M.nextAddress==1)return _.q(M,p.JSC$15951_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3){F=M.yieldResult;if(!F)return _.no(new _.qE("PES is undefined")),M.return();N=_.au(x,"downloadStatusEntity");return _.q(M,zVH(F,N,"downloadStatusEntity"),3)}h=M.yieldResult;return M.return((c=h)==null?void 0:c.downloadState)})};
K3H=function(p,x,F,N,h){var c,M,f,K,t,d;return _.D(function(v){switch(v.nextAddress){case 1:return _.q(v,p.JSC$15951_playerApiPromise,2);case 2:c=v.yieldResult;Mt8(p,x,F,"OFFLINE_OBJECT_TYPE_VIDEO",N,h);if(f=_.mQn[p.entityTypeMap.singleEntityType])t={},M=(t[f]={maximumDownloadQuality:(K=F)!=null?K:void 0},t);return _.q(v,fdX(p,x),3);case 3:d=v.yieldResult;if(d!=="DOWNLOAD_STATE_USER_DELETED"){v.jumpTo(4);break}return _.q(v,p.deleteVideo(x),4);case 4:return _.q(v,c.queueOfflineAction(x,p.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",M),0)}})};
qH8=function(p,x,F,N,h){return _.D(function(c){return c.nextAddress==1?_.q(c,p.deleteVideo(x,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.q(c,K3H(p,x,F,N,h),0)})};
Zqm=function(p,x,F){var N,h;return _.D(function(c){if(c.nextAddress==1)return _.q(c,p.JSC$15951_playerApiPromise,2);N=c.yieldResult;h=_.au(x,"mainVideoDownloadStateEntity");return _.q(c,N.updateDownloadState(h,F),0)})};
Mct=function(p){var x=_.J().resolve(_.UC);return _.D(function(F){if(F.nextAddress==1)return x.previousDownloadStateForVideo[p]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&x.previousDownloadStateForVideo[p]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?F.jumpTo(2):_.q(F,x.resumeVideoDownload(p),2);if(F.nextAddress!=4)return _.q(F,Zqm(x,p,x.previousDownloadStateForVideo[p]),4);delete x.previousDownloadStateForVideo[p];_.JB(F)})};
che=function(p,x){var F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,p.JSC$15951_playerApiPromise,2);F=N.yieldResult;return _.q(N,F.queueOfflineAction(x,p.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
N8H=function(){var p=_.J().resolve(_.UC),x,F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,p.JSC$15951_playerApiPromise,2);if(N.nextAddress!=3)return x=N.yieldResult,F={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.q(N,x.queueOfflineAction("!*$_ALL_ENTITIES_!*$",p.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",F),3);var h=p.JSC$15951_commandHandler,c=h.resolveCommand,M=_.JG("DELETING_ALL",void 0,"Downloads are being deleted");
c.call(h,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.ez(M)}},popupType:"TOAST"}});_.JB(N)})};
ttk=function(p){var x,F;return _.D(function(N){if(N.nextAddress==1)return _.q(N,p.JSC$15951_prefStorage,2);x=N.yieldResult;return N.return((F=x)==null?void 0:F.get("sdois"))})};
dhH=function(p){var x,F,N,h,c,M;return _.D(function(f){if(f.nextAddress==1)return _.q(f,p.JSC$15951_persistentStorePromiseAccessor(),2);if(f.nextAddress!=3){x=f.yieldResult;if(!x)return _.no(new _.qE("PES is undefined")),f.return();F=_.au("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.q(f,zVH(x,F,"settingEntity"),3)}N=f.yieldResult;return f.return((M=(h=N)==null?void 0:(c=h.settingOptionValue)==null?void 0:c.boolValue)!=null?M:!1)})};
vf8=function(p,x){var F,N,h,c;return _.D(function(M){switch(M.nextAddress){case 1:return((F=x)==null?void 0:F.formatType)===void 0?M.return():_.q(M,p.JSC$15951_prefStorage,2);case 2:N=M.yieldResult;if(N===void 0)return M.return();if(((h=x)==null?void 0:h.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.q(M,N.set("lmqf",x.formatType),8);if(((c=x)==null?void 0:c.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){M.jumpTo(0);break}return _.q(M,N.set("lmqf",x.formatType),
6);case 6:return _.q(M,N.set("lmqflst",Math.floor((0,_.Lf)())),0);case 8:return _.q(M,N.remove("lmqflst"),0)}})};
JwH=function(p){var x,F;return _.D(function(N){switch(N.nextAddress){case 1:return _.q(N,p.JSC$15951_prefStorage,2);case 2:x=N.yieldResult;if(!x){N.jumpTo(3);break}return _.q(N,x.get("lmqflst"),4);case 4:if(F=N.yieldResult,F!==void 0)return N.return(F);case 3:return N.return(0)}})};
Cl8=function(p){var x,F;return _.D(function(N){switch(N.nextAddress){case 1:return _.q(N,p.JSC$15951_prefStorage,2);case 2:x=N.yieldResult;if(x===void 0){N.jumpTo(3);break}return _.q(N,x.get("lmqf"),4);case 4:if(F=N.yieldResult,F!==void 0)return N.return(F);case 3:return N.return("SD")}})};
vjk=function(p,x,F){var N,h,c,M,f,K,t,d;_.D(function(v){switch(v.nextAddress){case 1:return _.q(v,vf8(p,(N=x)==null?void 0:N.actionParams),2);case 2:h=x.playlistId;if(!h)return v.return();if(x.action==="ACTION_ADD")return((M=x.actionParams)==null?0:M.formatType)?_.q(v,Dhm(p,h,x.actionParams.formatType,(d=x.actionParams)==null?void 0:d.settingsAction,F),0):_.q(v,p.offlineWebClientEligibility,14);if(x.action==="ACTION_REMOVE_WITH_PROMPT"){var C=p.JSC$15951_commandHandler,X=C.resolveCommand,Q=_.sd("INNERTUBE_CLIENT_NAME"),
b=Q==="WEB_REMIX"?_.JG("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.JG("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads"),A=Q==="WEB_REMIX"?[_.JG("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];Q=Q==="WEB_REMIX"?_.JG("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.JG("DELETE",void 0,"Delete");var Y=_.JG("CANCEL",void 0,"Cancel");b={openPopupAction:JDH(b,A,Q,Y,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:h})};X.call(C,b);
return v.return()}if(x.action==="ACTION_REMOVE")return _.q(v,che(p,h),0);if(x.action!=="ACTION_SYNC"){v.jumpTo(0);break}return _.q(v,p.JSC$15951_playerApiPromise,9);case 9:return c=v.yieldResult,_.q(v,c.queueOfflineAction(h,p.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return f=v.yieldResult,_.q(v,Cl8(p),15);case 15:return K=v.yieldResult,_.q(v,JwH(p),16);case 16:t=v.yieldResult,x.onAddCommand&&p.JSC$15951_commandHandler.resolveCommand(x.onAddCommand,{form:{preferredFormatType:K,
offlineWebClientEligibility:f,lastOfflineQualitySettingsSavedMs:t.toString()}}),v.jumpTo(0)}})};
tce=function(p,x,F){var N,h,c,M,f,K,t,d,v,C,X,Q,b,A;_.D(function(Y){switch(Y.nextAddress){case 1:return _.q(Y,vf8(p,(N=x)==null?void 0:N.actionParams),2);case 2:h=x.videoId;if(!h)return Y.return();if(x.action==="ACTION_REMOVE_WITH_PROMPT"){var O=p.JSC$15951_commandHandler,Fw=O.resolveCommand,R=_.sd("INNERTUBE_CLIENT_NAME"),ld=R==="WEB_REMIX"?_.JG("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.JG("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads"),pp=R==="WEB_REMIX"?[_.JG("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];R=R==="WEB_REMIX"?_.JG("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.JG("DELETE",void 0,"Delete");var Kp=_.JG("CANCEL",void 0,"Cancel");ld={openPopupAction:JDH(ld,pp,R,Kp,{signal:"DELETE_DOWNLOAD",targetId:h})};Fw.call(O,ld);return Y.return()}if(x.action==="ACTION_ADD")return((C=x.actionParams)==null?0:C.formatType)?_.q(Y,K3H(p,h,x.actionParams.formatType,(A=x.actionParams)==null?void 0:A.settingsAction,F),0):_.q(Y,p.offlineWebClientEligibility,
23);if(x.action==="ACTION_RETRY")return _.q(Y,Cl8(p),19);if(x.action==="ACTION_PAUSE")return _.q(Y,p.pauseVideoDownload(h),0);if(x.action==="ACTION_RESUME")return _.q(Y,p.resumeVideoDownload(h),0);if(x.action!=="ACTION_REMOVE"){Y.jumpTo(0);break}return _.q(Y,fdX(p,h),13);case 13:return c=Y.yieldResult,p.previousDownloadStateForVideo[h]=(M=c)!=null?M:"DOWNLOAD_STATE_UNKNOWN",_.q(Y,Zqm(p,h,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(p.previousDownloadStateForVideo[h]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
p.previousDownloadStateForVideo[h]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){Y.jumpTo(15);break}return _.q(Y,p.pauseVideoDownload(h),15);case 15:O=_.JG("DELETED_VIDEO",void 0,"Video deleted from downloads.");Fw=_.JG("UNDO_ACTION",void 0,"Undo");ld=_.JG("CLOSE",void 0,"Close");f={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.ez(O),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.ez(Fw),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:h}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:O+" "+Fw}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:h}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:ld}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};p.JSC$15951_commandHandler.resolveCommand(f);
Y.jumpTo(0);break;case 19:K=Y.yieldResult;K==="UNKNOWN_FORMAT_TYPE"&&(K="SD");t="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((d=x.actionParams)==null?0:d.formatType)K=x.actionParams.formatType,t=(v=x.actionParams)==null?void 0:v.settingsAction;return _.q(Y,qH8(p,h,K,t,F),20);case 20:return Y.return();case 23:return X=Y.yieldResult,_.q(Y,Cl8(p),24);case 24:return Q=Y.yieldResult,_.q(Y,JwH(p),25);case 25:b=Y.yieldResult,x.onAddCommand&&p.JSC$15951_commandHandler.resolveCommand(x.onAddCommand,
{form:{preferredFormatType:Q,offlineWebClientEligibility:X,lastOfflineQualitySettingsSavedMs:b.toString()}}),Y.jumpTo(0)}})};
SHH=function(p,x){var F,N,h,c,M,f,K;return _.D(function(t){if(t.nextAddress==1)return _.q(t,p.JSC$15951_persistentStorePromiseAccessor(),2);F=t.yieldResult;if(!F)return _.no(new _.qE("PES is undefined")),t.return();if((N=x)==null||!N.settingItemId)return t.return();h=x;c=h.settingItemId;M=h.boolValue;f=_.au(c,"settingEntity");K={key:f,settingOptionValue:{boolValue:M}};return _.q(t,QwH(F,K),0)})};
rwt=function(p,x){var F,N,h,c,M,f,K;return _.D(function(t){switch(t.nextAddress){case 1:return _.q(t,p.JSC$15951_prefStorage,2);case 2:return F=t.yieldResult,N=_.rH(),_.q(t,p.JSC$15951_persistentStorePromiseAccessor(),3);case 3:return h=t.yieldResult,F?h?_.q(t,F.get("sdois"),4):(_.no(new _.qE("PES is undefined")),t.return()):(_.no(new _.qE("prefStorage is undefined")),t.return());case 4:c=t.yieldResult;f=(M=x)==null?void 0:M.boolValue;f===void 0||_.S("kevlar_set_sd_enabled_flag_killswitch")||_.Ez(0,
197,!0);c===void 0&&f===void 0&&(f=!1);if(f===void 0){t.jumpTo(0);break}return _.q(t,F.set("sdois",f),6);case 6:return _.S("kevlar_set_sd_enabled_flag_killswitch")||(_.Ez(0,196,f),N.save()),K={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:f},_.q(t,SHH(p,K),0)}})};
Efk=function(p,x,F){var N,h,c,M,f;return _.D(function(K){switch(K.nextAddress){case 1:return _.q(K,ttk(p),2);case 2:return N=K.yieldResult,_.q(K,rwt(p,F),3);case 3:return _.q(K,ttk(p),4);case 4:return h=K.yieldResult,c=h!==N,_.q(K,dhH(p),5);case 5:M=K.yieldResult&&!_.S("kevlar_modern_downloads_page");if((f=!h&&!M)||c)return _.q(K,x.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);K.jumpTo(0)}})};
fqk=function(){var p=_.J().resolve(_.UC),x;_.D(function(F){switch(F.nextAddress){case 1:return _.q(F,p.JSC$15951_playerApiPromise,2);case 2:x=F.yieldResult;if(!_.S("kevlar_force_refresh_smart_downloads")){F.jumpTo(3);break}return _.q(F,x.refreshAllStaleEntities(0),4);case 4:return F.return();case 3:return _.q(F,x.refreshAllStaleEntities(),5);case 5:return _.q(F,Efk(p,x),0)}})};
CMm=function(p,x){var F,N;_.D(function(h){switch(h.nextAddress){case 1:return _.q(h,p.JSC$15951_playerApiPromise,2);case 2:F=h.yieldResult;switch((N=x)==null?void 0:N.settingItemId){case "SMART_DOWNLOADS_ENABLED":return h.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return h.jumpTo(4)}h.jumpTo(0);break;case 3:return _.q(h,Efk(p,F,x),6);case 6:h.jumpTo(0);break;case 4:return _.q(h,SHH(p,x),7);case 7:h.jumpTo(0)}})};
Xam=function(p,x){var F,N,h;return _.D(function(c){if(c.nextAddress==1)return _.q(c,p.JSC$15951_persistentStorePromiseAccessor(),2);if(c.nextAddress!=3){F=c.yieldResult;if(!F)return _.no(new _.qE("PES is undefined")),c.return(!1);if(!x)return c.return(!1);N=_.au(x,"mainVideoEntity");return _.q(c,zVH(F,N,"mainVideoEntity"),3)}h=c.yieldResult;return c.return(h!==void 0)})};
rh8=function(p){var x=_.J().resolve(_.UC),F,N,h,c,M,f,K,t,d,v,C;_.D(function(X){switch(X.nextAddress){case 1:return _.q(X,x.JSC$15951_playerApiPromise,2);case 2:F=X.yieldResult;h=(N=p)==null?void 0:N.actions;if(!h)return X.return();c=_.a(h);M=c.next();case 3:if(M.done){X.jumpTo(0);break}f=M.value;t=K=void 0;if(!(((K=f)==null?0:K.entityKey)&&((t=f)==null?0:t.actionType))){X.jumpTo(4);break}d=_.h$(f.entityKey);v=d.entityId;C=d.entityType;return _.q(X,F.queueOfflineAction(v,C,f.actionType),4);case 4:M=
c.next(),X.jumpTo(3)}})};
gfH=function(p,x){var F,N,h,c,M;return _.D(function(f){if(f.nextAddress==1)return _.q(f,p.JSC$15951_prefStorage,2);if(f.nextAddress!=3)return(F=f.yieldResult)?_.q(f,F.get("psi"),3):f.return();N=f.yieldResult;M={isPaused:x,lastSyncTimestamp:(c=(h=N)==null?void 0:h.lastSyncTimestamp)!=null?c:"0"};return _.q(f,F.set("psi",M),0)})};
gj8=function(p){var x=_.J().resolve(_.UC),F,N,h,c,M,f,K,t;return _.D(function(d){switch(d.nextAddress){case 1:return _.q(d,x.JSC$15951_playerApiPromise,2);case 2:F=d.yieldResult;h=((N=p)==null?void 0:N.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((f=p)==null?void 0:f.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":c="!*$_ALL_ENTITIES_!*$";M="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return d.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return d.jumpTo(4)}d.jumpTo(5);break;case 3:return _.q(d,gfH(x,h),6);case 6:d.jumpTo(5);break;case 4:return _.q(d,Xam(x,(K=p)==null?void 0:K.videoId),7);case 7:d.yieldResult&&(c=(t=p)==null?void 0:t.videoId,M="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");d.jumpTo(5);break;case 5:if(c&&M)return _.q(d,F.queueOfflineAction(c,"videoPlaybackPositionEntity",M),0);d.jumpTo(0)}})};
Q$_=function(p,x){var F;x!==1||((F=p.currentPersistentToast)==null?0:F.opened)?p.openToast():p.currentPersistentToast=void 0};
zUc=function(){var p,x,F,N;return _.D(function(h){if(h.nextAddress==1)return p=navigator,(x=p.storage)!=null&&x.persisted?_.q(h,(F=p.storage)==null?void 0:F.persisted(),2):h.return("PERSISTED_STATE_NOT_SUPPORTED");N=h.yieldResult;return h.return(N?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
s$_=function(){var p,x,F,N;return _.D(function(h){if(h.nextAddress==1)return p=navigator,(x=p.storage)!=null&&x.persist?_.q(h,(F=p.storage)==null?void 0:F.persist(),2):h.return("PERSISTED_STATE_NOT_SUPPORTED");N=h.yieldResult;return h.return(N?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
nfm=function(){var p,x;return _.D(function(F){switch(F.nextAddress){case 1:return p="PERSISTED_STATE_NOT_SUPPORTED",_.KM(F,2),_.q(F,zUc(),4);case 4:p=F.yieldResult;if(p!=="PERSISTED_STATE_NOT_GRANTED"){F.jumpTo(5);break}return _.q(F,s$_(),6);case 6:p=F.yieldResult;case 5:_.ub(F,3);break;case 2:x=_.v9(F),x instanceof Error&&_.zj(x);case 3:return _.E$("persistentStorageStateChecked",{persistedState:p}),F.return(p)}})};
ywm=function(p,x){var F=[],N=!1;x=_.a(x);for(var h=x.next();!h.done;h=x.next()){h=p.moduleRegistry[h.value];var c=void 0,M=void 0;((c=h)==null?0:c.isFetching)&&((M=h)==null?0:M.resolver)?(F.push(h.resolver.promise),N=!0):(h=new _.FT,h.resolve(void 0),F.push(h.promise))}return N?Promise.all(F):void 0};
bqH=function(p,x,F){F=F===void 0?{}:F;var N=p.defaultViewTransitionOptions,h=x.map(function(M){return M.beforeTransition}),c=x.map(function(M){return M.afterTransition});
return Object.assign({},N,F,{beforeTransition:function(){var M;(M=N.beforeTransition)==null||M.call(N);var f,K;(K=(f=F).beforeTransition)==null||K.call(f);M=_.a(h);for(f=M.next();!f.done;f=M.next())f=f.value,f()},
afterTransition:function(){var M;(M=N.afterTransition)==null||M.call(N);var f,K;(K=(f=F).afterTransition)==null||K.call(f);M=_.a(c);for(f=M.next();!f.done;f=M.next())f=f.value,f()}})};
AwH=function(p,x,F){var N,h,c,M,f,K,t;_.D(function(d){if(p.config.disableAllTransitions)return d.return(x());if((N=F)==null||!N.transitionName)return d.return(_.PK_(x,(h=F)==null?void 0:h.viewTransitionOptions));c=F;M=c.transitionName;f=c.viewTransitionOptions;K=p.config.transitionConfigs.get(M);if(!K)return d.return(x());var v;t=(v=p.transitionTasksMap.get(M))!=null?v:[];return d.return(_.PK_(x,bqH(K,t,f)))})};
dL=function(p,x,F){p.transitionTasksMap.has(x)?p.transitionTasksMap.get(x).push(F):(p=new _.qE("Transition task registered for unknown transition name",x),_.zj(p))};
uQc=function(p,x,F){if(p.isInitialized()){var N=l_(F),h=N==="watch";N=N==="shorts";var c=l_(x)==="watch";if(h)c||(p.backgroundPageData=x),p.watchPipMode&&c||p.deactivate(F.endpoint);else if(N){if(l_(x)!=="shorts"){var M;(M=p.getPlayerElement())==null||M.pause()}}else c&&!p.watchPipMode&&(Sum(x,F)?(p.watchWhileMode&&_.$pm(p,!1),_.Bwt(p,x)):p.isMiniplayerActive()&&p.watchWhileMode&&p.deactivate());c&&_.pZk(p);p.shortsPipMode&&!N&&(window.focus(),p.deactivate());if(N&&p.shortsPipEnabled||h&&p.watchPipEnabled)_.UAw(p.handleMediaSessionPipActivation);
else if(!p.isMiniplayerActive()&&(p.shortsPipEnabled||p.watchPipEnabled)&&_.bd()&&_.Zpp("Chromium")>=120){p=_.kAk().mediaSession;try{p.setActionHandler("enterpictureinpicture",null)}catch(f){}}}};
YHH=function(p,x){var F,N;_.D(function(h){if(h.nextAddress==1){if(!p||!p.navigationEndpoint)return h.return();_.fb().lockupActivation=!0;var c;x?c=_.L1(_.JG("QUEUE",void 0,"Queue")):c=p.longBylineText;N=(F=c)&&p.title?{miniplayerTitle:p.title,miniplayerSubtitle:F,playlistData:null}:void 0;return _.q(h,_.K4C(_.J().resolve(_.H$),p.navigationEndpoint,!0,N),2)}_.fb().userActivation=!0;_.JB(h)})};
vgk=function(p,x){var F,N,h,c,M,f;_.D(function(K){if(K.nextAddress==1){F=_.r(x,_.ckJ);if(!F||!F.listId)return K.return();p.index=F.index||p.index||0;N=p.response&&p.response.playingVideoId||void 0;return _.q(K,_.qNb(p.JSC$10634_playlistNetworkManager,F.listId,p.index,N),2)}h=K.yieldResult;if(!h)return K.return();c=h.playlistId;M=h.playlistPanelRenderer;!p.queueProxy&&c&&M&&c.startsWith("TLPQ")&&(p.queueProxy=new _.yG(p.JSC$10634_playlistNetworkManager,c,p.setPlaylistData.bind(p),p.clearQueue.bind(p),
_.fyp(M),p.storage));if(F.openMiniplayer&&(f=_.K_$(M))&&!p.pageManager.isOnWatch()){var t=f,d=F.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";p.isMiniplayerActive()?p.openToast(t):YHH(t,d)}p.setPlaylistData(c,M,h.autoplayRenderer);_.JB(K)})};
ZTH=function(p,x){var F=_.Hj();F.index===void 0&&(F.index=0);F.temporaryItems.push.apply(F.temporaryItems,_.se(p));if((x.videoId||x.videoIds)&&F.index!==void 0&&x.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!F.queueProxy){var N=[];if(F.response){var h=_.J().resolve(_.H$).isMiniplayerActive();if(F.response.playlistPanelRenderer&&F.response.playlistId&&!F.response.playlistId.startsWith("TLPQ")){if(F.pageManager.isOnWatch()||h)N=_.fyp(F.response.playlistPanelRenderer)}else F.response.playingVideoId&&
!x.openMiniplayer?N.push(F.response.playingVideoId):h&&F.response.playingVideoId&&x.openMiniplayer&&N.push(F.response.playingVideoId)}F.queueProxy=new _.yG(F.JSC$10634_playlistNetworkManager,"",F.setPlaylistData.bind(F),F.clearQueue.bind(F),N,F.storage);F.queueProxy.JSC$10580_setCurrentIndex(F.index)}F.queueProxy.addVideos(x.videoIds||[x.videoId],x)}n9k(F,p);F.response&&_.me(F,_.oO(F,F.response.autoplayRenderer));F.pageManager.isOnWatch()?F.isMiniplayerActive()&&F.openToast(p[0]):(p=p[0],x=x.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",F.isMiniplayerActive()?F.openToast(p):YHH(p,x))};
wam=function(p){var x=_.DIZ(p);if(x=="object"||x=="array"){if(typeof p.clone==="function")return p.clone();if(typeof Map!=="undefined"&&p instanceof Map)return new Map(p);if(typeof Set!=="undefined"&&p instanceof Set)return new Set(p);x=x=="array"?[]:{};for(var F in p)x[F]=wam(p[F]);return x}return p};
GkH=_.It(function(p,x,F){if(p.nextWireType_!==0)return!1;_.$_(x,F,_.oE(p.decoder_,_.cCH));return!0},_.xE,_.LT);
VtH=_.It(function(p,x,F,N){if(p.nextWireType_!==0)return!1;_.ra(x,F,N,_.oE(p.decoder_,_.cCH));return!0},_.xE,_.LT);
W3H=_.It(function(p,x,F){if(p.nextWireType_!==1)return!1;var N=p.decoder_;p=_.jG(N);N=_.jG(N);p=_.ok(p,N);_.$_(x,F,p);return!0},_.dMp,_.wMH);
Hqc=_.It(function(p,x,F){if(p.nextWireType_!==5)return!1;_.$_(x,F,_.jG(p.decoder_));return!0},function(p,x,F){x=_.tDE(x);
x!=null&&(_.eH(p,F,5),_.p6(p.encoder_,x))},_.TX());
mhk=_.It(function(p,x,F){if(p.nextWireType_!==0)return!1;p=_.tbr(p.decoder_);_.$_(x,F,p===!1?void 0:p);return!0},_.vEw,_.AOE);
ofm=_.It(function(p,x,F){if(p.nextWireType_!==2)return!1;p=_.rOw(p);_.$_(x,F,p===""?void 0:p);return!0},_.Cgp,_.udr);
Oqm=_.It(function(p,x,F){if(p.nextWireType_!==2)return!1;p=_.ED6(p);_.$_(x,F,p===_.zm()?void 0:p);return!0},_.rok,_.Vbw);
j$m=_.cor(function(p,x,F){if(p.nextWireType_!==0&&p.nextWireType_!==2)return!1;x=_.v_Z(x,x[_.DK]|0,F);p.nextWireType_==2?_.XMz(p,NJe,x):x.push(_.O6(p.decoder_));return!0},function(p,x,F){x=_.lnp(_.x_,x,!0);
if(x!=null&&x.length){F=_.Aep(p,F);for(var N=0;N<x.length;N++)_.qUd(p.encoder_,x[N]);_.ucJ(p,F)}},_.WSJ);
L3m=_.It(function(p,x,F){if(p.nextWireType_!==0)return!1;p=_.O6(p.decoder_);_.$_(x,F,p===0?void 0:p);return!0},_.EEr,_.WSJ);
PlX=_.It(function(p,x,F,N){if(p.nextWireType_!==0)return!1;_.ra(x,F,N,_.O6(p.decoder_));return!0},_.EEr,_.WSJ);
_.pM=function(p){this.privateDoNotAccessOrElseWrappedStyleSheet=p};
_.pM.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var TW_=function(p,x){var F=[];for(x=x||0;x<p.length;x+=2)_.dHJ(p[x],p[x+1],F);return F.join("&")},BWa=function(p,x){var F=arguments.length==2?TW_(arguments[1],0):TW_(arguments,1);
return _.tHj(p,F)},RUe=function(p){var x=_.qkl(window.location.href),F=x[1],N=[];
F&&F.split("&").forEach(function(h){var c=h.indexOf("=");c=c>=0?h.slice(0,c):h;p.hasOwnProperty(c)||N.push(h)});
x[1]=_.Z8K(N.join("&"),_.hq(p));return x[0]+(x[1]?"?"+x[1]:"")+x[2]},gg8=function(p,x){return new _.sT(p.x+x.x,p.y+x.y)},kkk=function(p){return p.previousElementSibling!==void 0?p.previousElementSibling:_.DMl(p.previousSibling,!1)},Uha=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Uha,_.Uk);Uha.prototype.getValue=function(){var p=_.da(this,2);if(Array.isArray(p)||p instanceof _.Uk)throw Error("aa");return _.SG(this,2)};
var iq8=function(){var p=_.hF();this.JSC$7767_streamzService=p;p.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",_.pH("cookie_enabled"),_.pH("cookie_3p_enabled"),_.F2("browser"))};
iq8.prototype.increment=function(p,x,F){this.JSC$7767_streamzService.JSC$7643_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",p,x,F)};
var PW8=function(){var p=_.hF();this.JSC$7770_streamzService=p;p.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.F2("channel_type"))};
PW8.prototype.increment=function(p){this.JSC$7770_streamzService.JSC$7643_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",p)};
var TVc=function(){var p=_.hF();this.JSC$7773_streamzService=p;p.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.F2("channel_type"))};
TVc.prototype.increment=function(p){this.JSC$7773_streamzService.JSC$7643_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",p)};
var Rce=function(){var p=_.hF();this.JSC$7776_streamzService=p;p.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.F2("channel_type"))};
Rce.prototype.increment=function(p){this.JSC$7776_streamzService.JSC$7643_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",p)};
var BVH=function(){var p=_.hF();this.JSC$7779_streamzService=p;p.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
BVH.prototype.increment=function(){this.JSC$7779_streamzService.JSC$7643_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var kum=function(){var p=_.hF();this.JSC$7782_streamzService=p;p.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.F2("channel_type"),_.F2("error_type"))};
kum.prototype.increment=function(p,x){this.JSC$7782_streamzService.JSC$7643_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",p,x)};
var UD_=function(){var p=_.hF();this.JSC$7785_streamzService=p;p.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
UD_.prototype.increment=function(){this.JSC$7785_streamzService.JSC$7643_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var iEt=function(){var p=_.hF();this.JSC$7788_streamzService=p;p.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
iEt.prototype.increment=function(){this.JSC$7788_streamzService.JSC$7643_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var LZX=function(){var p=_.hF();this.JSC$7794_streamzService=p;p.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
LZX.prototype.increment=function(){this.JSC$7794_streamzService.JSC$7643_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var Id_=function(p){return p.getCount&&typeof p.getCount=="function"?p.getCount():_.TB(p)||typeof p==="string"?p.length:_.Q5.getCount(p)},$hc=function(p,x){if(typeof p.every=="function")return p.every(x,void 0);
if(_.TB(p)||typeof p==="string")return Array.prototype.every.call(p,x,void 0);for(var F=_.EFm(p),N=_.U1(p),h=N.length,c=0;c<h;c++)if(!x.call(void 0,N[c],F&&F[c],p))return!1;return!0},eUH=function(p,x,F,N){var h=new _.R9(null);
p&&_.iM(h,p);x&&_.IX(h,x);F&&_.ec(h,F);N&&_.pF(h,N);return h},pq8=function(){var p=_.zI&&hr(_.WdC,10)>=0,x;
if(x=_.nXJ)x=hr(_.Vsk,10)>=0;var F=_.qL&&hr(_.WdC,85)>=0;return _.Dr||p||x||F},xja=function(p){var x=_.GlZ(p);
return x&&pq8()?-p.scrollLeft:x&&_.Am(p,"overflowX")!="visible"?p.scrollWidth-p.clientWidth-p.scrollLeft:p.scrollLeft},Ftc=function(p,x){x=Math.max(x,0);
_.GlZ(p)?pq8()?p.scrollLeft=-x:p.scrollLeft=p.scrollWidth-x-p.clientWidth:p.scrollLeft=x},V6D=0,Orm=!1;
ae.prototype.set=function(p){this.relativeTimeStart_=p};
ae.prototype.reset=function(){this.set(_.FV())};
ae.prototype.get=function(){return this.relativeTimeStart_};
var N_c=null,h_m=function(){N_c||(N_c=new ae)},lQc=function(){N_c||(N_c=new ae)};
_.NL(lQc,h_m);_.l=LJ8.prototype;_.l.JSC$9101_buffer_="";_.l.set=function(p){this.JSC$9101_buffer_=""+p};
_.l.append=function(p,x,F){this.JSC$9101_buffer_+=String(p);if(x!=null)for(var N=1;N<arguments.length;N++)this.JSC$9101_buffer_+=arguments[N];return this};
_.l.clear=function(){this.JSC$9101_buffer_=""};
_.l.getLength=function(){return this.JSC$9101_buffer_.length};
_.l.toString=function(){return this.JSC$9101_buffer_};
var ccH=function(){var p={type:"unit",style:"narrow"};this.listType_=p&&p.type?p.type:"conjunction";this.listStyle_=p&&p.style?p.style:"long";this.listSymbols_=f7m;p=0;switch(this.listStyle_){case "short":p=1;break;case "narrow":p=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[p];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[p];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[p];this.listEndPattern_=
this.listSymbols_.AND_END[p];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[p];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[p];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[p];this.listEndPattern_=this.listSymbols_.OR_END[p];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[p],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[p],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[p],this.listEndPattern_=this.listSymbols_.UNIT_END[p]}};
ccH.prototype.format=function(p){return aQm(this,p)};
var aQm=function(p,x){var F=x.length;switch(F){case 0:return"";case 1:return String(x[0]);case 2:return p.listTwoPattern_.replace("{0}",String(x[0])).replace("{1}",String(x[1]))}for(var N=p.listStartPattern_.replace("{0}",String(x[0])).replace("{1}",String(x[1])),h=2;h<F-1;++h)N=p.listMiddlePattern_.replace("{0}",N).replace("{1}",String(x[h]));return p.listEndPattern_.replace("{0}",N).replace("{1}",String(x[F-1]))},lSe=function(){var p={style:1};
this.style_=(p==null?void 0:p.style)||0;this.durationSymbols_=_.O_l||_.f$l},MXm=function(p,x){switch(x){default:case "years":return p.durationSymbols_.YEAR;
case "months":return p.durationSymbols_.MONTH;case "weeks":return p.durationSymbols_.WEEK;case "days":return p.durationSymbols_.DAY;case "hours":return p.durationSymbols_.HOUR;case "minutes":return p.durationSymbols_.MINUTE;case "seconds":return p.durationSymbols_.SECOND}},vN=function(p,x,F){a:{F=MXm(p,F);
switch(p.style_){case 1:if(F.LONG!=void 0){p=F.LONG;break a}case 2:if(F.NARROW!=void 0){p=F.NARROW;break a}default:p=F.SHORT;break a}p=void 0}return p?(new _.Yuj("{DURATION_VALUE,plural,"+p+"}")).format({DURATION_VALUE:x}):""};
lSe.prototype.format=function(p){var x=[],F=p.years,N=p.months,h=p.weeks,c=p.days,M=p.hours,f=p.minutes;p=p.seconds;F!=null&&x.push(vN(this,F,"years"));N!=null&&x.push(vN(this,N,"months"));h!=null&&x.push(vN(this,h,"weeks"));c!=null&&x.push(vN(this,c,"days"));M!=null&&x.push(vN(this,M,"hours"));f!=null&&x.push(vN(this,f,"minutes"));p!=null&&x.push(vN(this,p,"seconds"));return(new ccH).format(x)};
var Dj_=!1,irH=function(p){_.x$.call(this,p.message||p.description||p.name);this.isMissing=p instanceof M2;this.isTimeout=p instanceof _.H7&&p.errorCode=="net.timeout";this.isCanceled=p instanceof _.mw};
_.E(irH,_.x$);irH.prototype.name="BiscottiError";var M2=function(){_.x$.call(this,"Biscotti ID is missing from server")};
_.E(M2,_.x$);M2.prototype.name="BiscottiMissingError";var Db=null,hiD=function(){try{var p=_.A9("yt.ads.biscotti.getId_");return p?p():yD8()}catch(x){return _.o9(x)}},hgm,fQc=function(p){return _.F4({type:"SET_GUIDE_IS_EXPANDED",
payload:p})},Ktm=function(p){return _.F4({type:"SET_ONLINE_STATUS",
payload:p})},q8t=function(p,x){return _.F4({type:"SET_TRANSCRIPTION_STATE",
payload:{high:p,low:x}})},ZWm=function(p){return _.F4({type:"SET_OVERLAY_STATE",
payload:p})},tXH=0,djD=function(p,x,F){var N=this;
this.priority=x;this.delay=F;this.jobId=0;this.completionCallback=_.Ja;this.wrappedJob=function(){p();N.completionCallback()};
this.id=++tXH};
djD.prototype.enqueue=function(p){this.completionCallback=p;this.jobId=_.E0.addJob(this.wrappedJob,this.priority,this.delay)};
var J1=function(){_.e_.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.E(J1,_.e_);J1.prototype.addJob=function(p,x,F){p=new djD(p,x,F);this.taskIdToTask.set(p.id,p);this.isActive?vzm(this,p):this.suspendedTasks.add(p);return p.id};
var vzm=function(p,x){p.scheduledTasks.add(x);x.enqueue(function(){p.scheduledTasks.delete(x)})};
J1.prototype.cancelJob=function(p){(p=this.taskIdToTask.get(p))&&(this.scheduledTasks.delete(p)?_.E0.cancelJob(p.jobId):this.suspendedTasks.delete(p))};
J1.prototype.pause=function(){var p=this;this.isActive=!1;this.scheduledTasks.forEach(function(x){_.E0.cancelJob(x.jobId);p.suspendedTasks.add(x)});
this.scheduledTasks.clear()};
J1.prototype.start=function(){var p=this;this.isActive=!0;this.suspendedTasks.forEach(function(x){vzm(p,x)});
this.suspendedTasks.clear()};
J1.prototype.reset=function(){this.scheduledTasks.forEach(function(p){_.E0.cancelJob(p.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var Cz=function(p,x){this.JSC$10758_networkService_=p;this.pageRequestPromise=x};
Cz.prototype.fetchData=function(p){JcX(this,this.JSC$10758_networkService_.fetchData(p))};
Cz.prototype.postData=function(p,x){JcX(this,this.JSC$10758_networkService_.postData(p,x))};
Cz.prototype.requestDataForServiceEndpoint=function(p,x){JcX(this,this.JSC$10758_networkService_.requestDataForServiceEndpoint(p,x))};
var JcX=function(p,x){x.then(p.pageRequestPromise.onSuccess,p.pageRequestPromise.onFailure,p.pageRequestPromise)};
Cz.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var SF=function(p){this.buildNetworkRequest_=p;this.pendingRequests_=new Set};
SF.prototype.reset=function(){this.pendingRequests_.forEach(function(p){p.cancel()});
this.pendingRequests_.clear()};
SF.prototype.fetchData=function(p){var x=C3D(this);x.fetchData(p);return x.pageRequestPromise};
SF.prototype.postData=function(p,x){var F=C3D(this);F.postData(p,x);return F.pageRequestPromise};
SF.prototype.requestDataForServiceEndpoint=function(p,x){var F=C3D(this);F.requestDataForServiceEndpoint(p,x);return F.pageRequestPromise};
var C3D=function(p){var x=p.buildNetworkRequest_();p.pendingRequests_.add(x);var F=function(){p.pendingRequests_.delete(x)};
x.pageRequestPromise.then(F,F);return x},S8H=function(p){var x=new J1;
this.JSC$10765_networkService_=p;this.JSC$10765_taskManager_=x;this.JSC$10765_networkManager_=new SF(this.networkRequestFactory_.bind(this))};
_.l=S8H.prototype;_.l.networkRequestFactory_=function(){return new Cz(this.JSC$10765_networkService_,new _.ea(this.JSC$10765_taskManager_))};
_.l.reset=function(){this.JSC$10765_taskManager_.reset();this.JSC$10765_networkManager_.reset()};
_.l.start=function(){this.JSC$10765_taskManager_.start()};
_.l.pause=function(){this.JSC$10765_taskManager_.pause()};
_.l.getTaskManager=function(){return this.JSC$10765_taskManager_};
_.l.getNetworkManager=function(){return this.JSC$10765_networkManager_};
var fS8=null,ZQ8=[],KL=0,Zb=0,q2=null,rc_=function(){var p=(0,_.xaC)();p&&qPH(p,p.mechanism.__iterator__(!0))},dC=function(p){this.token=p};
dC.getInstance=function(){var p;return _.D(function(x){if(x.nextAddress==1)return _.q(x,_.O5(),2);p=x.yieldResult;if(!p)return x.return();dC.instance||(dC.instance=new dC(p));return x.return(dC.instance)})};
var Sic=function(p){var x;return _.D(function(F){if(F.nextAddress==1)return _.q(F,vpa(p.token),2);x=F.yieldResult;return F.return(x.clear("resource-manifest-assets"))})},tr=function(p){this.token=p};
tr.getInstance=function(){var p;return _.D(function(x){if(x.nextAddress==1)return _.q(x,_.O5(),2);p=x.yieldResult;if(!p)return x.return();tr.instance||(tr.instance=new tr(p));return x.return(tr.instance)})};
var J0t=function(p){var x;return _.D(function(F){if(F.nextAddress==1)return _.q(F,vpa(p.token),2);x=F.yieldResult;return _.q(F,x.clear("auth"),0)})},Eze=!1,vV=null,Yia=void 0,j4H=!1,Xq_=function(p){_.x$.call(this,p)};
_.E(Xq_,_.g0j);var G1m=function(){var p=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return p?parseInt(p[1],10):0},gz8=function(p){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+p)!=-1||document.currentScript.src.indexOf("&"+p)!=-1)},Q_8=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},oV_=function(p){p.length?z_8(p.shift(),function(){oV_(p)}):WYc()},jiH=function(p){return"chrome-extension://"+p+"/cast_sender.js"},z_8=function(p,
x,F){var N=document.createElement("script");
N.onerror=x;F&&(N.onload=F);_.UU(N,_.rv(p));(document.head||document.documentElement).appendChild(N)},s__=function(){var p=G1m(),x=[];
if(p>1){var F=p-1;x.push("//www.gstatic.com/eureka/clank/"+p+"/cast_sender.js");x.push("//www.gstatic.com/eureka/clank/"+F+"/cast_sender.js")}return x},WYc=function(){var p=Q_8();
p&&p(!1,"No cast extension found")},mgc=function(){if(nzX){var p=2,x=Q_8(),F=function(){p--;
p==0&&x&&x(!0)};
window.__onGCastApiAvailable=F;z_8("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",WYc,F)}},VZe=function(){mgc();
var p=s__();p.push("//www.gstatic.com/eureka/clank/cast_sender.js");oV_(p)},HPX=function(){mgc();
var p=s__();p.push.apply(p,_.se(OP_.map(jiH)));p.push("//www.gstatic.com/eureka/clank/cast_sender.js");oV_(p)},nzX=gz8("loadCastFramework")||gz8("loadCastApplicationFramework"),OP_=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var yc_=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(yc_,_.Uk);var bWH=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(bWH,_.Uk);var AcH=function(){var p=new bWH;return _.HW(p,1,3)};var rL=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(rL,_.Uk);var bVH=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(bVH,_.Uk);var u78=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(u78,_.Uk);u78.prototype.getToken=function(){return _.uq(this,1)};
u78.prototype.setToken=function(p){return _.II(this,1,p)};
var nwD=function(p){return _.Va(p,3,_.dD,_.ik())},yR8=function(p){return _.Va(p,6,_.dD,_.ik())};var Ep=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Ep,_.Uk);Ep.prototype.getToken=function(){return _.B8(this,u78,2)};
Ep.prototype.setToken=function(p){return _.f6(this,2,p)};
Ep.prototype.getName=function(){return _.uq(this,6)};
var Y8_=_.cz(Ep);var wqm=function(p,x,F){this.requestMessage=p;this.methodDescriptor=x;this.metadata=F};
wqm.prototype.getMetadata=function(){return this.metadata};var Gi8=function(p,x){x=x===void 0?{}:x;this.responseMessage=p;this.metadata=x;this.status=null};
Gi8.prototype.getMetadata=function(){return this.metadata};
Gi8.prototype.getStatus=function(){return this.status};var Xv=function(p,x,F,N,h){this.name=p;this.methodType="unary";this.requestType=x;this.responseType=F;this.requestSerializeFn=N;this.responseDeserializeFn=h},VX_=function(p,x,F){F=F===void 0?{}:F;
return new wqm(x,p,F)};
Xv.prototype.getName=function(){return this.name};var gL=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(gL,_.Uk);gL.prototype.setHeader=function(p){return _.f6(this,1,p)};
gL.prototype.hasHeader=function(){return _.vW(this,rL,1)};var WtD=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(WtD,_.Uk);var HW8=new Xv("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",gL,WtD,function(p){return p.serialize()},_.cz(WtD));var QF=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(QF,_.Uk);QF.prototype.setHeader=function(p){return _.f6(this,1,p)};
QF.prototype.hasHeader=function(){return _.vW(this,rL,1)};var mj8=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(mj8,_.Uk);var oz8=new Xv("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",QF,mj8,function(p){return p.serialize()},_.cz(mj8));var zw=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(zw,_.Uk);zw.prototype.setHeader=function(p){return _.f6(this,1,p)};
zw.prototype.hasHeader=function(){return _.vW(this,rL,1)};var OW8=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(OW8,_.Uk);OW8.prototype.getLink=function(){return _.B8(this,Ep,1)};var j_H=new Xv("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",zw,OW8,function(p){return p.serialize()},_.cz(OW8));var sp=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(sp,_.Uk);sp.prototype.setHeader=function(p){return _.f6(this,1,p)};
sp.prototype.hasHeader=function(){return _.vW(this,rL,1)};var Ltk=new Xv("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",sp,Ep,function(p){return p.serialize()},Y8_);var P38=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(P38,_.Uk);var T_t=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(T_t,_.Uk);T_t.prototype.getUrl=function(){return _.uq(this,2)};
T_t.prototype.setUrl=function(p){return _.II(this,2,p)};var B_t=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(B_t,_.Uk);var R_8=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(R_8,_.Uk);var kik=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(kik,_.Uk);var OVm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(OVm,_.Uk);var owa=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(owa,_.Uk);var Ujk=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Ujk,_.Uk);var k7D=_.cz(Ujk);var iWm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(iWm,_.Uk);var nz=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(nz,_.Uk);nz.prototype.setHeader=function(p){return _.f6(this,1,p)};
nz.prototype.hasHeader=function(){return _.vW(this,rL,1)};
nz.prototype.getCompletionUrl=function(){return _.uq(this,6)};
nz.prototype.getDeviceId=function(){return _.uq(this,11)};var IQ8=new Xv("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",nz,Ujk,function(p){return p.serialize()},k7D);var $jH=new Set(["SAPISIDHASH","APISIDHASH"]);var e_k=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(e_k,_.Uk);e_k.prototype.getMessage=function(){return _.uq(this,2)};
var pxH=_.cz(e_k);var yF=function(p,x){this.xhrNodeReadableStream_=p.nodeReadableStream;this.grpcResponseDeserializeFn_=x;this.JSC$16860_xhr_=p.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$16860_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&x78(this)},apm=function(p,x){var F=new FEH;
_.qd(p.JSC$16860_xhr_,"complete",function(){if(p.JSC$16860_xhr_.isSuccess()){var N=p.JSC$16860_xhr_.getResponseText();var h;if(h=x)h=p.JSC$16860_xhr_,h.JSC$7652_xhr_&&h.isComplete()?(h=h.JSC$7652_xhr_.getResponseHeader("Content-Type"),h=h===null?void 0:h):h=void 0,h=h==="text/plain";if(h){if(!atob)throw Error("Ij");N=atob(N)}try{var c=p.grpcResponseDeserializeFn_(N)}catch(f){bS(p,toH(new _.zh(13,"Error when deserializing response data; error: "+f+(", response: "+N)),F));return}N=_.Htp(p.JSC$16860_xhr_.getStatus());
NBc(p,hS8(p));N==0?lp_(p,c):bS(p,toH(new _.zh(N,"Xhr succeeded but the status code is not 200"),F))}else{N=p.JSC$16860_xhr_.getResponseText();c=hS8(p);if(N){var M=cn_(p,N);N=M.code;h=M.details;M=M.metadata}else N=2,h="Rpc failed due to xhr error. uri: "+String(p.JSC$16860_xhr_.JSC$7652_lastUri_)+", error code: "+p.JSC$16860_xhr_.JSC$7652_lastErrorCode_+", error: "+p.JSC$16860_xhr_.getLastError(),M=c;NBc(p,c);bS(p,toH(new _.zh(N,h,M),F))}})},x78=function(p){p.xhrNodeReadableStream_.on("data",function(x){if("1"in
x){var F=x["1"];
try{var N=p.grpcResponseDeserializeFn_(F)}catch(h){bS(p,new _.zh(13,"Error when deserializing response data; error: "+h+(", response: "+F)))}N&&lp_(p,N)}if("2"in x)for(x=cn_(p,x["2"]),F=0;F<p.onStatusCallbacks_.length;F++)p.onStatusCallbacks_[F](x)});
p.xhrNodeReadableStream_.on("end",function(){NBc(p,hS8(p));for(var x=0;x<p.onEndCallbacks_.length;x++)p.onEndCallbacks_[x]()});
p.xhrNodeReadableStream_.on("error",function(){if(p.JSC$16860_onErrorCallbacks_.length!=0){var x=p.JSC$16860_xhr_.JSC$7652_lastErrorCode_;x!==0||p.JSC$16860_xhr_.isSuccess()||(x=6);var F=-1;switch(x){case 0:var N=2;break;case 7:N=10;break;case 8:N=4;break;case 6:F=p.JSC$16860_xhr_.getStatus();N=_.Htp(F);break;default:N=14}NBc(p,hS8(p));x=_.FXB(x)+", error: "+p.JSC$16860_xhr_.getLastError();F!=-1&&(x+=", http status code: "+F);bS(p,new _.zh(N,x))}})},hS8=function(p){var x={},F=M_k(p.JSC$16860_xhr_);
Object.keys(F).forEach(function(N){x[N]=F[N]});
return x},cn_=function(p,x){var F=2,N={};
try{var h=pxH(x);F=_.$H(h,1);var c=h.getMessage();_.UT(h,Uha,3,_.ik()).length&&(N["grpc-web-status-details-bin"]=x)}catch(M){p.JSC$16860_xhr_&&p.JSC$16860_xhr_.getStatus()===404?(F=5,c="Not Found: "+String(p.JSC$16860_xhr_.JSC$7652_lastUri_)):(F=14,c="Unable to parse RpcStatus: "+M)}return{code:F,details:c,metadata:N}};
yF.prototype.on=function(p,x){p=="data"?this.onDataCallbacks_.push(x):p=="metadata"?this.onMetadataCallbacks_.push(x):p=="status"?this.onStatusCallbacks_.push(x):p=="end"?this.onEndCallbacks_.push(x):p=="error"&&this.JSC$16860_onErrorCallbacks_.push(x);return this};
var A1=function(p,x){x=p.indexOf(x);x>-1&&p.splice(x,1)};
yF.prototype.removeListener=function(p,x){p=="data"?A1(this.onDataCallbacks_,x):p=="metadata"?A1(this.onMetadataCallbacks_,x):p=="status"?A1(this.onStatusCallbacks_,x):p=="end"?A1(this.onEndCallbacks_,x):p=="error"&&A1(this.JSC$16860_onErrorCallbacks_,x);return this};
yF.prototype.cancel=function(){this.JSC$16860_xhr_.abort()};
var lp_=function(p,x){for(var F=0;F<p.onDataCallbacks_.length;F++)p.onDataCallbacks_[F](x)},NBc=function(p,x){for(var F=0;F<p.onMetadataCallbacks_.length;F++)p.onMetadataCallbacks_[F](x)},bS=function(p,x){for(var F=0;F<p.JSC$16860_onErrorCallbacks_.length;F++)p.JSC$16860_onErrorCallbacks_[F](x)};
yF.prototype.cancel=yF.prototype.cancel;yF.prototype.removeListener=yF.prototype.removeListener;yF.prototype.on=yF.prototype.on;var FEH=function(){var p=Error.call(this);this.message=p.message;"stack"in p&&(this.stack=p.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.E(FEH,Error);var uS=function(p){this.JSC$16869_worker_=p.worker||null;this.JSC$16869_streamBinaryChunks_=p.streamBinaryChunks||!1;this.JSC$16869_credentialsMode_=void 0};
_.NL(uS,_.oFr);uS.prototype.createInstance=function(){var p=new YA(this.JSC$16869_worker_,this.JSC$16869_streamBinaryChunks_);this.JSC$16869_credentialsMode_&&p.setCredentialsMode(this.JSC$16869_credentialsMode_);return p};
uS.prototype.setCredentialsMode=function(p){this.JSC$16869_credentialsMode_=p};
var YA=function(p,x){_.Sc.call(this);this.JSC$16873_worker_=p;this.JSC$16873_streamBinaryChunks_=x;this.JSC$16873_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$16873_responseHeaders_=null;this.JSC$16873_method_="GET";this.JSC$16873_url_="";this.inProgress_=!1;this.JSC$16873_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.NL(YA,_.Sc);YA.prototype.open=function(p,x){if(this.readyState!=0)throw this.abort(),Error("Jj");this.JSC$16873_method_=p;this.JSC$16873_url_=x;this.readyState=1;wL(this)};
YA.prototype.send=function(p){if(this.readyState!=1)throw this.abort(),Error("Kj");this.inProgress_=!0;var x={headers:this.requestHeaders_,method:this.JSC$16873_method_,credentials:this.JSC$16873_credentialsMode_,cache:void 0};p&&(x.body=p);(this.JSC$16873_worker_||_.Mm).fetch(new Request(this.JSC$16873_url_,x)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
YA.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,Gw(this));this.readyState=0};
YA.prototype.handleResponse_=function(p){if(this.inProgress_&&(this.fetchResponse_=p,this.JSC$16873_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$16873_responseHeaders_=p.headers,this.readyState=2,wL(this)),this.inProgress_&&(this.readyState=3,wL(this),this.inProgress_)))if(this.responseType==="arraybuffer")p.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Mm.ReadableStream!==
"undefined"&&"body"in p){this.currentReader_=p.body.getReader();if(this.JSC$16873_streamBinaryChunks_){if(this.responseType)throw Error("Lj");this.response=[]}else this.response=this.responseText="",this.JSC$16873_textDecoder_=new TextDecoder;MCX(this)}else p.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var MCX=function(p){p.currentReader_.read().then(p.handleDataFromStream_.bind(p)).catch(p.handleSendFailure_.bind(p))};
YA.prototype.handleDataFromStream_=function(p){if(this.inProgress_){if(this.JSC$16873_streamBinaryChunks_&&p.value)this.response.push(p.value);else if(!this.JSC$16873_streamBinaryChunks_){var x=p.value?p.value:new Uint8Array(0);if(x=this.JSC$16873_textDecoder_.decode(x,{stream:!p.done}))this.response=this.responseText+=x}p.done?Gw(this):wL(this);this.readyState==3&&MCX(this)}};
YA.prototype.handleResponseText_=function(p){this.inProgress_&&(this.response=this.responseText=p,Gw(this))};
YA.prototype.handleResponseArrayBuffer_=function(p){this.inProgress_&&(this.response=p,Gw(this))};
YA.prototype.handleSendFailure_=function(){this.inProgress_&&Gw(this)};
var Gw=function(p){p.readyState=4;p.fetchResponse_=null;p.currentReader_=null;p.JSC$16873_textDecoder_=null;wL(p)};
YA.prototype.setRequestHeader=function(p,x){this.requestHeaders_.append(p,x)};
YA.prototype.getResponseHeader=function(p){return this.JSC$16873_responseHeaders_?this.JSC$16873_responseHeaders_.get(p.toLowerCase())||"":""};
YA.prototype.getAllResponseHeaders=function(){if(!this.JSC$16873_responseHeaders_)return"";for(var p=[],x=this.JSC$16873_responseHeaders_.entries(),F=x.next();!F.done;)F=F.value,p.push(F[0]+": "+F[1]),F=x.next();return p.join("\r\n")};
YA.prototype.setCredentialsMode=function(p){this.JSC$16873_credentialsMode_=p};
var wL=function(p){p.onreadystatechange&&p.onreadystatechange.call(p)};
Object.defineProperty(YA.prototype,"withCredentials",{get:function(){return this.JSC$16873_credentialsMode_==="include"},
set:function(p){this.setCredentialsMode(p?"include":"same-origin")}});var D7H=function(p){var x="";_.Q5.forEach(p,function(F,N){x+=N;x+=":";x+=F;x+="\r\n"});
return x},fpe=function(p,x,F){if(_.Q5.isEmpty(F))return p;
F=D7H(F);if(typeof p==="string")return _.rM(p,_.YF(x),F);_.WS(p,x,F);return p};var KEc=function(){this.isInputValid_=!0;this.JSC$16879_streamPos_=0;this.leftoverInput_=""};
KEc.prototype.isInputValid=function(){return this.isInputValid_};var S8=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$16882_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
S8.prototype.isInputValid=function(){return this.state_!=3};
var VF=function(p,x,F,N){p.state_=3;p.errorMessage_="The stream is broken @"+p.JSC$16882_streamPos_+"/"+F+". Error: "+N+". With input:\n"+x;throw Error(p.errorMessage_);};
S8.prototype.acceptsBinaryInput=function(){return!0};
S8.prototype.parse=function(p){function x(K){K&128&&VF(c,M,f,"invalid tag");(K&7)!=2&&VF(c,M,f,"invalid wire type");c.tag_=K>>>3;c.tag_!=1&&c.tag_!=2&&c.tag_!=15&&VF(c,M,f,"unexpected tag");c.state_=1;c.length_=0;c.countLengthBytes_=0}
function F(K){c.countLengthBytes_++;c.countLengthBytes_==5&&K&240&&VF(c,M,f,"message length too long");c.length_|=(K&127)<<(c.countLengthBytes_-1)*7;K&128||(c.state_=2,c.countMessageBytes_=0,typeof Uint8Array!=="undefined"?c.messageBuffer_=new Uint8Array(c.length_):c.messageBuffer_=Array(c.length_),c.length_==0&&h())}
function N(K){c.messageBuffer_[c.countMessageBytes_++]=K;c.countMessageBytes_==c.length_&&h()}
function h(){if(c.tag_<15){var K={};K[c.tag_]=c.messageBuffer_;c.result_.push(K)}c.state_=0}
for(var c=this,M=p instanceof Array?p:new Uint8Array(p),f=0;f<M.length;){switch(c.state_){case 3:VF(c,M,f,"stream already broken");break;case 0:x(M[f]);break;case 1:F(M[f]);break;case 2:N(M[f]);break;default:throw Error("Nj`"+c.state_);}c.JSC$16882_streamPos_++;f++}p=c.result_;c.result_=[];return p.length>0?p:null};var vw8=function(){this.errorMessage_=null;this.JSC$16885_streamPos_=0;this.base64Decoder_=new KEc;this.pbParser_=new S8};
vw8.prototype.isInputValid=function(){return this.errorMessage_===null};
var qqH=function(p,x,F){p.errorMessage_="The stream is broken @"+p.JSC$16885_streamPos_+". Error: "+F+". With input:\n"+x;throw Error(p.errorMessage_);};
vw8.prototype.acceptsBinaryInput=function(){return!1};
vw8.prototype.parse=function(p){this.errorMessage_!==null&&qqH(this,p,"stream already broken");var x=null;try{var F=this.base64Decoder_;if(!F.isInputValid_)throw F.isInputValid_=!1,Error("Mj`"+F.JSC$16879_streamPos_+"`stream already broken`"+p);F.leftoverInput_+=p;var N=Math.floor(F.leftoverInput_.length/4);if(N==0)var h=null;else{try{var c=_.CDk(F.leftoverInput_.slice(0,N*4))}catch(K){var M=F.leftoverInput_,f=K.message;F.isInputValid_=!1;throw Error("Mj`"+F.JSC$16879_streamPos_+"`"+f+"`"+M);}F.JSC$16879_streamPos_+=
N*4;F.leftoverInput_=F.leftoverInput_.slice(N*4);h=c}x=h===null?null:this.pbParser_.parse(h)}catch(K){qqH(this,p,K.message)}this.JSC$16885_streamPos_+=p.length;return x};var dNc=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$16888_streamPos_=0;this.result_=[];this.statusParsed_=!1};
dNc.prototype.isInputValid=function(){return this.errorMessage_===null};
dNc.prototype.acceptsBinaryInput=function(){return!1};
dNc.prototype.parse=function(p){function x(K){c.state_=6;c.errorMessage_="The stream is broken @"+c.JSC$16888_streamPos_+"/"+M+". Error: "+K+". With input:\n";throw Error(c.errorMessage_);}
function F(){c.jsonStreamParser_=new _.F5({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function N(K){if(K)for(var t=0;t<K.length;t++){var d={};d[1]=K[t];c.result_.push(d)}}
function h(K){if(K){(c.statusParsed_||K.length>1)&&x("extra status: "+K);c.statusParsed_=!0;var t={};t[2]=K[0];c.result_.push(t)}}
for(var c=this,M=0;M<p.length;){var f;if(f=c.state_!==2){a:{for(;M<p.length;){if(!_.xu(p[M])){f=!0;break a}M++;c.JSC$16888_streamPos_++}f=!1}f=!f}if(f)return null;switch(c.state_){case 6:x("stream already broken");break;case 0:p[M]==="["?(c.state_=1,M++,c.JSC$16888_streamPos_++):x("unexpected input token");break;case 1:p[M]==="["?(c.state_=2,F()):p[M]===","||p.slice(M,M+5)=="null,"?c.state_=3:p[M]==="]"?(c.state_=5,M++,c.JSC$16888_streamPos_++):x("unexpected input token");break;case 2:f=c.jsonStreamParser_.parse(p.substring(M));
N(f);c.jsonStreamParser_.done()?(c.state_=3,f=c.jsonStreamParser_.JSC$9228_buffer_,c.JSC$16888_streamPos_+=p.length-M-f.length,p=f,M=0):(c.JSC$16888_streamPos_+=p.length-M,M=p.length);break;case 3:p[M]===","||p.slice(M,M+5)=="null,"?(c.state_=4,F(),c.jsonStreamParser_.parse("["),M+=p[M]===","?1:5,c.JSC$16888_streamPos_++):p[M]==="]"&&(c.state_=5,M++,c.JSC$16888_streamPos_++);break;case 4:f=c.jsonStreamParser_.parse(p.substring(M));h(f);c.jsonStreamParser_.done()?(c.state_=5,f=c.jsonStreamParser_.JSC$9228_buffer_,
c.JSC$16888_streamPos_+=p.length-M-f.length,p=f,M=0):(c.JSC$16888_streamPos_+=p.length-M,M=p.length);break;case 5:x("extra input after stream end")}}return c.result_.length>0?(p=c.result_,c.result_=[],p):null};var Z7H=function(p){this.JSC$16891_xhr_=p;this.JSC$16891_parser_=null;this.status_=this.JSC$16891_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$16891_textDecoder_=null;this.JSC$16891_eventHandler_=new _.ps(this);this.JSC$16891_eventHandler_.listen(this.JSC$16891_xhr_,"readystatechange",this.JSC$16893_readyStateChangeHandler_)},WN=function(p,x){p.status_!=x&&(p.status_=x,p.statusHandler_&&p.statusHandler_())},HN=function(p){p.JSC$16891_eventHandler_.removeAll();
if(p.JSC$16891_xhr_){var x=p.JSC$16891_xhr_;p.JSC$16891_xhr_=null;x.abort();x.dispose()}};
Z7H.prototype.getStatus=function(){return this.status_};
Z7H.prototype.JSC$16893_readyStateChangeHandler_=function(p){p=p.target;try{if(p==this.JSC$16891_xhr_)a:{var x=_.yo(this.JSC$16891_xhr_),F=this.JSC$16891_xhr_.JSC$7652_lastErrorCode_,N=this.JSC$16891_xhr_.getStatus(),h=this.JSC$16891_xhr_.getResponseText();p=[];if(this.JSC$16891_xhr_.getResponse()instanceof Array){var c=this.JSC$16891_xhr_.getResponse();c.length>0&&c[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,p=c)}if(!(x<3||x==3&&!h&&p.length==0))if(N=N==200||N==206,x==4&&(F==8?WN(this,
7):F==7?WN(this,8):N||WN(this,3)),this.JSC$16891_parser_||(this.JSC$16891_parser_=JR8(this.JSC$16891_xhr_),this.JSC$16891_parser_==null&&WN(this,5)),this.status_>2)HN(this);else{if(p.length>this.JSC$16891_pos_){var M=p.length;F=[];try{if(this.JSC$16891_parser_.acceptsBinaryInput())for(var f=0;f<M;f++){var K=this.JSC$16891_parser_.parse(Array.from(p[f]));K&&(F=F.concat(K))}else{K="";if(!this.JSC$16891_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Oj");this.JSC$16891_textDecoder_=new TextDecoder}for(f=
0;f<M;f++)K+=this.JSC$16891_textDecoder_.decode(p[f],{stream:x==4&&f==M-1});F=this.JSC$16891_parser_.parse(K)}p.splice(0,M);F&&this.dataHandler_(F)}catch(d){WN(this,5);HN(this);break a}}else if(h.length>this.JSC$16891_pos_){f=h.slice(this.JSC$16891_pos_);this.JSC$16891_pos_=h.length;try{var t=this.JSC$16891_parser_.parse(f);t!=null&&this.dataHandler_&&this.dataHandler_(t)}catch(d){WN(this,5);HN(this);break a}}x==4?(h.length!=0||this.hasStreamingResponseData_?WN(this,2):WN(this,4),HN(this)):WN(this,
1)}}}catch(d){WN(this,6),HN(this)}};var tCc=function(p){p=this.xhrReader_=p;var x=(0,_.CH)(this.onData_,this);p.dataHandler_=x;p=this.xhrReader_;x=(0,_.CH)(this.onStatusChange_,this);p.statusHandler_=x;this.JSC$16895_callbackMap_={};this.callbackOnceMap_={}};
_.l=tCc.prototype;_.l.on=function(p,x){var F=this.JSC$16895_callbackMap_[p];F||(F=[],this.JSC$16895_callbackMap_[p]=F);F.push(x);return this};
_.l.addListener=function(p,x){this.on(p,x);return this};
_.l.removeListener=function(p,x){var F=this.JSC$16895_callbackMap_[p];F&&_.Lp(F,x);(p=this.callbackOnceMap_[p])&&_.Lp(p,x);return this};
_.l.once=function(p,x){var F=this.callbackOnceMap_[p];F||(F=[],this.callbackOnceMap_[p]=F);F.push(x);return this};
_.l.onData_=function(p){var x=this.JSC$16895_callbackMap_.data;x&&d7m(p,x);(x=this.callbackOnceMap_.data)&&d7m(p,x);this.callbackOnceMap_.data=[]};
var d7m=function(p,x){for(var F={},N=0;N<p.length;F={message$jscomp$950:void 0},N++)F.message$jscomp$950=p[N],x.forEach(function(h){return function(c){try{c(h.message$jscomp$950)}catch(M){}}}(F))};
tCc.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:vu8(this,"readable");break;case 5:case 6:case 4:case 7:case 3:vu8(this,"error");break;case 8:vu8(this,"close");break;case 2:vu8(this,"end")}};
var vu8=function(p,x){var F=p.JSC$16895_callbackMap_[x];F&&F.forEach(function(N){try{N()}catch(h){}});
(F=p.callbackOnceMap_[x])&&F.forEach(function(N){N()});
p.callbackOnceMap_[x]=[]};var Jnm=function(){var p={format:"jspb"};p=p===void 0?{}:p;this.suppressCorsPreflight_=p.suppressCorsPreflight||_.A9("suppressCorsPreflight",p)||!1;this.JSC$16898_withCredentials_=p.withCredentials||_.A9("withCredentials",p)||!1;this.streamInterceptors_=p.streamInterceptors||[];this.unaryInterceptors_=p.unaryInterceptors||[];this.workerScope_=p.workerScope;this.chunkedServerStreaming_=p.useFetchDownloadStreams||!1},rnk=function(p,x,F,N,h,c){c=c===void 0?{}:c;
var M=x.substring(0,x.length-h.name.length),f,K=(f=c)==null?void 0:f.signal;return CU_(function(t){return new Promise(function(d,v){if(K==null?0:K.aborted){var C=new _.zh(1,"Aborted");C.cause=K.reason;v(C)}else{var X={},Q=Sq8(p,t,M);Q.on("error",function(b){return v(b)});
Q.on("metadata",function(b){X=b});
Q.on("data",function(b){var A=X;A=A===void 0?{}:A;d(new Gi8(b,A))});
K&&K.addEventListener("abort",function(){Q.cancel();var b=new _.zh(1,"Aborted");b.cause=K.reason;v(b)})}})},p.unaryInterceptors_).call(p,VX_(h,F,N)).then(function(t){return t.responseMessage})},m2=function(p,x,F,N,h){var c=c===void 0?{}:c;
return rnk(p,x,F,N,h,c)};
Jnm.prototype.serverStreaming=function(p,x,F,N){var h=this,c=p.substring(0,p.length-N.name.length);return CU_(function(M){var f=M.methodDescriptor,K=M.getMetadata(),t=Eu8(h,!1);K=Xx8(h,K,t,c+f.getName());var d=gut(t,f.responseDeserializeFn,!0);M=f.requestSerializeFn(M.requestMessage);t.send(K,"POST",M);return d},this.streamInterceptors_).call(this,VX_(N,x,F))};
var Sq8=function(p,x,F){var N=x.methodDescriptor,h=x.getMetadata(),c=Eu8(p,!0);p=Xx8(p,h,c,F+N.getName());F=gut(c,N.responseDeserializeFn,!1);apm(F,h["X-Goog-Encode-Response-If-Executable"]=="base64");x=N.requestSerializeFn(x.requestMessage);c.send(p,"POST",x);return F},Eu8=function(p,x){x=p.chunkedServerStreaming_&&!x;
return p.workerScope_||x?new _.ni(new uS({worker:p.workerScope_,streamBinaryChunks:x})):new _.ni},Xx8=function(p,x,F,N){x["Content-Type"]="application/json+protobuf";
x["X-User-Agent"]="grpc-web-javascript/0.1";var h=x.Authorization;if(h&&$jH.has(h.split(" ")[0])||p.JSC$16898_withCredentials_)F.JSC$7652_withCredentials_=!0;if(p.suppressCorsPreflight_)N=fpe(N,"$httpHeaders",x);else for(var c in x)F.headers.set(c,x[c]);return N},gut=function(p,x,F){if(F){F=new Z7H(p);
var N=new tCc(F)}return new yF({xhr:p,nodeReadableStream:N},x)},CU_=function(p,x){return x.reduce(function(F,N){return function(h){return N.intercept(h,F)}},p)};var QSm=function(p){this.client_=new Jnm;this.hostname_=p==void 0?p:p.replace(/\/+$/,"")};
_.l=QSm.prototype;_.l.JSC$16912_depositGoogleCredential=function(p,x){return m2(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",p,x||{},oz8)};
_.l.deleteLink=function(p,x){return m2(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",p,x||{},HW8)};
_.l.JSC$16912_finishOAuth=function(p,x){return m2(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",p,x||{},j_H)};
_.l.getLink=function(p,x){return m2(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",p,x||{},Ltk)};
_.l.startLinkingSession=function(p,x){return m2(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",p,x||{},IQ8)};var zS_=[0,mhk,1,j$m,[0,_.kg,[0,ofm,-1]],[0,Oqm],[0,L3m,-1]];var sSk=function(){this.storage=new Map},ynD=function(p,x,F,N,h){if(!p.storage.has(x))return null;
p=_.a(p.storage.get(x));for(x=p.next();!x.done;x=p.next())if(x=x.value,!h||x.linkName===h)if(F&&x.scopes&&nu8(x.scopes,F)||N&&x.capabilities&&nu8(x.capabilities,N))return x;return null},b7H=function(p,x,F){if(!F)p.storage.delete(x);
else if(p.storage.has(x)){var N=p.storage.get(x).filter(function(h){return h.linkName!==F});
N.length>0?p.storage.set(x,N):p.storage.delete(x)}},nu8=function(p,x){x=_.a(x);
for(var F=x.next();!F.done;F=x.next())if(!p.has(F.value))return!1;return!0};var Ana=function(){var p=_.sd("LINK_GAL_DOMAIN");this.alsDomain1p=_.sd("LINK_GAL_DOMAIN");this.alsDomain3p=p;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},u58=function(p,x){p.apiKey=x;
return p};
Ana.prototype.build=function(){var p={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Pj");p.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Qj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Rj");p.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(p.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)p.apiKey=
this.apiKey,p.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Sj");p.oauthToken=this.oauthToken;p.alsDomain=this.alsDomain3p}p.clientXd3=this.clientXd3;p.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(p.authUser=this.authUser);this.bucket!==void 0&&(p.bucket=this.bucket);this.completionUrl!==void 0&&(p.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(p.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(p.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(p.locale=this.locale);p.loggerType=this.loggerType;p.clientEnvironment=this.clientEnvironment;p.colorScheme=this.colorScheme;p.showCloseOption=this.showCloseOption;return p};var rC=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(rC,_.Uk);var Yqa=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Yqa,_.Uk);var wxH=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(wxH,_.Uk);var XW=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(XW,_.Uk);var GRt=function(p){return _.Yg(p,1)};var VC_=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(VC_,_.Uk);var QCH=_.cz(VC_),Eh=[1,2,3,4,5];var rRe=function(p){try{return QCH(p)}catch(x){return null}},WEH=function(){},EwX=function(p,x){switch(_.E6(x,Eh)){case 4:return(x=_.V8(x,wxH,4,Eh))&&p.logStateTransition(_.Yg(x,1)),!0;
case 5:return(x=_.V8(x,Yqa,5,Eh))&&p.logInternalEvent(_.Yg(x,1)),!0}return!1},zxm=function(p){switch(p){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Pb(p)}};var CrX=function(p,x){var F=this;this.validator=p;this.messageListener=x;this.dismissCallback=function(){H7a(F,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$16941_receiveMessage=function(N){N.type==="message"&&(N=N.event_,N!==null&&(new URL(F.iframe.src)).origin===N.origin&&F.validator(N.data,N.origin)&&!F.messageListener(N.data)&&(F.JSC$16941_resolveCb!==void 0&&F.JSC$16941_resolveCb(N.data),m7t(F)))}},gwH=function(p,x,F){p.uiHandler!==void 0&&H7a(p,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(N,h){p.JSC$16941_resolveCb=N;p.JSC$16941_rejectCb=h;p.iframe=document.createElement("iframe");_.jP(p.iframe,x);p.uiHandler=F.displayContent(p.iframe,p.dismissCallback);_.qd(window,"message",p.JSC$16941_receiveMessage,!1,p)})},H7a=function(p,x){p.JSC$16941_rejectCb!==void 0&&p.JSC$16941_rejectCb(x);
m7t(p)},m7t=function(p){p.uiHandler!==void 0&&p.uiHandler.hideContent();
_.Ci(window,"message",p.JSC$16941_receiveMessage,!1,p);p.JSC$16941_resolveCb=void 0;p.JSC$16941_rejectCb=void 0;p.uiHandler=void 0;p.iframe=void 0};var ou_=function(p){if(p===2){var x;p=((x=window)==null?0:x.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return p},X2D=function(p){p=ou_(p);
switch(p){case 0:return"light";case 1:return"dark";default:_.Pb(p)}};var SsH=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),O78=function(p,x){this.JSC$16953_linkingSession=p;this.noticeConfig=x;this.displayInfoMap=new Map;var F=new Map;if(_.vW(this.JSC$16953_linkingSession,B_t,7))for(p=_.B8(this.JSC$16953_linkingSession,B_t,7),p=_.UT(p,T_t,1,_.ik()),p=_.a(p),x=p.next();!x.done;x=p.next())x=x.value,F.set(_.Yg(x,1),_.MQM(_.B8(x,_.gI$,3)));if(F.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){x=this.noticeConfig.enabledDataUsageNoticeUis;p=x.has(0)?F.get(1):void 0;x=x.has(1)?F.get(2):void 0;F=p!==void 0&&x!==void 0?F.get(3):void 0;var N=this.noticeConfig.nestedOrigins;var h=new VC_;var c=new rC;h=_.K6(h,2,Eh,c);c=new VC_;var M=new rC;c=_.K6(c,3,Eh,M);M=[];p!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:p,lastEvent:h,nestedOrigins:N}]),M.push({trustedUrl:p,lastEvent:h,nestedOrigins:N}));x!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:x,lastEvent:c,nestedOrigins:N}]),M.push({trustedUrl:x,lastEvent:c,nestedOrigins:N}));F!==void 0?this.displayInfoMap.set(3,[{trustedUrl:F,lastEvent:c,nestedOrigins:N}]):this.displayInfoMap.set(3,M)}};var jSH=function(p){var x=new sSk;this.galService=p;this.galCache=x};
jSH.prototype.getLink=function(p){var x=p.serviceId;var F=p.scopes;var N=p.capabilities;var h=p.linkName;var c=this,M;return _.D(function(f){if(N!==void 0&&F!==void 0)throw Error("Tj");M=ynD(c.galCache,x,F,N,h);return M!==null?f.return(M):f.return(c.galService.getLink({serviceId:x,sessionId:Math.floor(Math.random()*2147483648),scopes:F,capabilities:N,linkName:h}).then(function(K){K=AR8(K);var t=c.galCache;t.storage.has(x)?t.storage.get(x).push(K):t.storage.set(x,[K]);return K}))})};
jSH.prototype.deleteLink=function(p,x,F){var N=this;return _.D(function(h){b7H(N.galCache,p,F);return h.return(N.galService.deleteLink({serviceId:p,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:x,linkName:F}).then(function(){return!0}))})};var PUe=function(p,x){var F=this;this.validator=p;this.msgHandler=x;this.closedPopupTimeout=this.JSC$16975_rejectCb=this.JSC$16975_resolveCb=this.popup=null;this.JSC$16975_receiveMessage=function(N){if(N!==null&&(N=N.event_,N.source===F.popup)){var h=N.data;if(F.validator(h,N.origin)){var c;(c=F.msgHandler)!=null&&c.call(F,h)||(F.JSC$16975_resolveCb!==null&&F.JSC$16975_resolveCb(h),LED(F))}}}};
PUe.prototype.open=function(p,x){var F=this;this.popup!==null&&TBm(this);return new Promise(function(N,h){F.JSC$16975_resolveCb=N;F.JSC$16975_rejectCb=h;F.popup=_.L6(window,p,"",x);_.qd(window,"message",F.JSC$16975_receiveMessage,!1,F);BB8(F)})};
var TBm=function(p,x){p.JSC$16975_rejectCb!==null&&p.JSC$16975_rejectCb(x);LED(p)},LED=function(p){p.closedPopupTimeout&&(p.closedPopupTimeout.cancel(),p.closedPopupTimeout=null);
p.popup&&p.popup.close();_.Ci(window,"message",p.JSC$16975_receiveMessage,!1,p);p.popup=null;p.JSC$16975_resolveCb=null;p.JSC$16975_rejectCb=null},BB8=function(p){p.closedPopupTimeout=_.Ihn(100).then(function(){p.popup?p.popup.closed?RSt(p):BB8(p):TBm(p,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},RSt=function(p){p.closedPopupTimeout=_.Ihn(100).then(function(){TBm(p,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var kRm=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),U7m=function(p,x,F,N,h,c,M,f,K,t){var d=this;this.serviceId=p;this.sessionId=x;this.galService=F;this.oauthDetails=N;this.galLogger=h;this.interactionMode=c;this.redirectServiceUrl=M;this.consentLanguageKeys=f;this.dynamicUrlParameters=K;this.partnerConfigMinReadTimestamp=t;this.started=!1;this.JSC$16981_dataValidator=function(v,
C){var X=kRm.has(C);X||d.redirectServiceUrl===void 0||(X=d.redirectServiceUrl===C);return X?v.sentinel==="gdi":!1}};
U7m.prototype.complete=function(){var p=this,x;return _.D(function(F){if(p.interactionMode!==1)return F.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));x=Q9.getRedirectStateFromUri();return x===null?F.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):F.return(i7t(p,x))})};
U7m.prototype.start=function(){var p=this,x;return _.D(function(F){if(p.started)return F.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.uq(p.oauthDetails,1))return F.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(p.interactionMode===1)return Q9.setLocation(_.uq(p.oauthDetails,1)),F.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));p.started=!0;p.galLogger.logStateTransition(5);
x=Q9.getPostMessagePopup(p.JSC$16981_dataValidator);return F.return(x.open(_.uq(p.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(N){p.started=!1;var h=p.galLogger;if((N==null?void 0:N.error)!==void 0)throw h.logInternalEvent(59),Error("Uj");if((N==null?void 0:N.redirect_state)===void 0)throw h.logInternalEvent(131),Error("Vj");return i7t(p,N.redirect_state)}).catch(function(N){p.started=
!1;
return N.errorCode!==void 0?{statusCode:N.errorCode,statusMessage:N.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var i7t=function(p,x){return _.D(function(F){return F.return(Ipt(p.galService,{serviceId:p.serviceId,sessionId:p.sessionId,dynamicUrlParameters:p.dynamicUrlParameters,redirectState:x,consentLanguageKeys:p.consentLanguageKeys,partnerConfigMinReadTimestamp:p.partnerConfigMinReadTimestamp}).then(function(N){var h=N.getLink();h={statusCode:1,link:AR8(h)};zlD(_.SG(N,3))!==void 0&&(h.callerState=zlD(_.SG(N,3)));p.galLogger.logInternalEvent(134);return h}))})},Q9={getPostMessagePopup:function(p){return new PUe(p)},
getRedirectStateFromUri:function(){var p=_.G4(Q9.getLocation()).fragment_;return(new _.hk(p)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(p){_.InJ(window.location,_.ug(p))},
createOAuthFlow:function(p,x){return new U7m(p.serviceId,p.sessionId,p.galService,x,p.galLogger,p.interactionMode,p.redirectServiceUrl,p.consentLanguageKeys,p.dynamicUrlParameters,p.partnerConfigMinReadTimestamp)}};var $7H=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E($7H,_.Uk);var eSa=_.cz($7H);var pft=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),xom=function(p,x,F,N,h,c,M,f,K){var t=this;this.serviceId=p;this.sessionId=x;this.galService=F;this.gsiWebFlowDetails=N;this.colorScheme=h;this.showCloseOption=c;this.galLogger=M;this.interactionMode=f;this.redirectServiceUrl=K;this.started=!1;this.JSC$16993_dataValidator=function(d,v){var C=pft.has(v);C||t.redirectServiceUrl===
void 0||(C=t.redirectServiceUrl===v);return C?d.sentinel==="gal":!1};
this.logEventProcessor=function(d){return d.result?(d=rRe(d.result))?EwX(t.galLogger,d):!1:!1}};
xom.prototype.complete=function(){var p=this,x,F;return _.D(function(N){if(p.interactionMode!==1)return N.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));x=zP.getRedirectStateFromUri();if(x===void 0)return p.galLogger.JSC$16933_logErrorEvent(131),N.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return F=FFH(p,x),N.return(NA_(p,F))}catch(h){return N.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
xom.prototype.start=function(){var p=this,x;return _.D(function(F){if(p.started)return F.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.uq(p.gsiWebFlowDetails,1))return F.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(p.interactionMode===1)return zP.setLocation(h2m(p,_.uq(p.gsiWebFlowDetails,1))),F.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
p.started=!0;x=zP.getPostMessagePopup(p.JSC$16993_dataValidator,p.logEventProcessor);return F.return(x.open(h2m(p,_.uq(p.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(N){p.started=!1;if((N==null?void 0:N.result)===void 0)throw p.galLogger.JSC$16933_logErrorEvent(131),Error("Vj");N=FFH(p,N.result);return NA_(p,N)}).catch(function(N){p.started=!1;
return N.errorCode!==void 0?{statusCode:N.errorCode,statusMessage:N.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var h2m=function(p,x){p=["result_channel",p.interactionMode===1?"2":"1","color_scheme",X2D(p.colorScheme),"show_close_option",p.showCloseOption];return BWa(x,p)},NA_=function(p,x){if(x!==null&&_.vW(x,XW,2)){var F,N=x==null?void 0:(F=_.B8(x,XW,2))==null?void 0:_.Yg(F,2);
N&&p.galLogger.JSC$16933_logErrorEvent(zxm(N));return GRt(_.B8(x,XW,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 p.galService.getLink({serviceId:p.serviceId,sessionId:p.sessionId,consistencyKey:_.uq(x,1)}).then(function(h){h=AR8(h);p.galLogger.logInternalEvent(134);return{statusCode:1,link:h}})},FFH=function(p,x){x=eSa(x);
if(!_.vW(x,XW,2)&&_.uq(x,1)==="")throw p.galLogger.JSC$16933_logErrorEvent(5),Error("Wj");return x},zP={getPostMessagePopup:function(p,x){return new PUe(p,x)},
getRedirectStateFromUri:function(){return _.VH(_.G4(zP.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(p){_.InJ(window.location,_.ug(p))},
createStreamlinedFlow:function(p,x){return new xom(p.serviceId,p.sessionId,p.galService,x,p.colorScheme,p.showCloseOption,p.galLogger,p.interactionMode,p.redirectServiceUrl)}};var BRH=function(){var p=_.MTd("GAL");this.storage=p?new _.Z5(p):null};var oT=function(){};
_.E(oT,WEH);oT.prototype.logStateTransition=function(){};
oT.prototype.logInternalEvent=function(){};
oT.prototype.JSC$16933_logErrorEvent=function(){};var lem=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(lem,_.Uk);lem.prototype.getCompletionUrl=function(){return _.uq(this,15)};var Op=function(p,x,F,N,h,c){this.serviceId=p;this.environment=x;this.sessionId=F;this.colorSchemeSelected=N;this.colorThemeDisplayed=h;this.JSC$17006_transport=c;this.currentState=1};
_.E(Op,WEH);Op.prototype.logStateTransition=function(p){var x=cS_(this);x=_.Rx(x,3,this.currentState);x=_.Rx(x,1,p);this.currentState=p;p=a78(1);this.dispatch(x,p)};
Op.prototype.logInternalEvent=function(p){p=a78(p);this.dispatch(cS_(this),p)};
Op.prototype.JSC$16933_logErrorEvent=function(p){var x=cS_(this);x=_.Rx(x,1,10);p=a78(p);this.dispatch(x,p)};
var cS_=function(p){var x=new lem;x=_.Rx(x,1,p.currentState);x=_.J_(x,7,p.serviceId);var F,N,h;((F=window)==null?0:(N=F.location)==null?0:N.href)?h=_.G4(window.location.href).JSC$7886_domain_:h="NO_PACKAGE_NAME";F=_.J_(x,8,h);F=_.Rx(F,6,p.environment);F=_.J_(F,5,"100");F=_.Rx(F,11,p.colorSchemeSelected);return _.Rx(F,12,p.colorThemeDisplayed)};
Op.prototype.dispatch=function(p,x){x===void 0&&(x=new _.aX);var F=x;p=p.serialize();F=_.J_(F,8,p);_.tT(F,12,this.sessionId);this.JSC$17006_transport.dispatch(x)};var aec=function(p,x){this.loggerType=p;this.sessionIndex=x!=null?x:0},Mda;
aec.prototype.create=function(p,x,F,N,h){switch(this.loggerType){case 0:return new oT;case 1:return Mda||(Mda=(new _.cS(555,this.sessionIndex.toString())).build()),new Op(p,x,F,N,h,Mda);default:_.Pb(this.loggerType,"unknown logger type")}};var sh=[6,2,3,1],ItH=new Map([[4,1],[1,6],[2,2],[3,3]]),G7H={statusCode:7,statusMessage:"Failed to create flow object"},Pre=function(p,x,F,N,h,c,M,f,K,t){this.serviceId=p;this.sessionId=x;this.config=F;this.galService=N;this.JSC$17013_linkingSession=h;this.googleScopes=c;this.callerState=M;this.consentLanguageKeys=f;this.dynamicUrlParameters=K;this.partnerConfigMinReadTimestamp=t;this.currentFlow=0;N=this.JSC$17013_linkingSession;h=new Set;_.vW(N,owa,1)&&h.add(1);_.vW(N,kik,2)&&_.vW(N,OVm,6)&&h.add(2);
_.vW(N,R_8,3)&&_.vW(N,OVm,6)&&h.add(3);_.vW(N,P38,4)&&h.add(6);this.supportedFlows=h;N=F.loggerType;h=F.clientEnvironment;a:{c=F.colorScheme;switch(c){case 0:c=1;break a;case 1:c=2;break a;case 2:c=3;break a;default:_.Pb(c)}c=void 0}a:{M=F.colorScheme;M=ou_(M);switch(M){case 0:M=1;break a;case 1:M=2;break a;default:_.Pb(M)}M=void 0}this.galLogger=(new aec(N,F.authUser)).create(p,h,x,c,M)},feX=function(p){return new Promise(function(x){var F,N,h,c,M,f,K,t,d,v;
return _.D(function(C){switch(C.nextAddress){case 1:F=jCc(p.currentFlow,p.supportedFlows),N=!1,h=new O78(p.JSC$17013_linkingSession,p.config.dataUsageNoticeConfig);case 2:if(F===void 0){C.jumpTo(4);break}_.KM(C,5);var X=h,Q=F,b=void 0;N?Q===1&&(b=X.displayInfoMap.get(2)):Q===2||Q===3?b=X.displayInfoMap.get(1):Q===1&&(b=X.displayInfoMap.get(3));c=b?b:[];M=p.consentLanguageKeys;f=_.a(c);K=f.next();case 7:if(K.done)return p.currentFlow=F,_.q(C,WUH(Do_(p,M)),11);t=K.value;return _.q(C,sCc(t,p.config.dataUsageNoticeConfig.uiAdapter,
p.config.colorScheme,p.galLogger),10);case 10:d=C.yieldResult;if(d.statusCode!==1)return Rxa(p.serviceId),p.currentFlow=0,x(gC({statusCode:d.statusCode,statusMessage:d.statusMessage},p.callerState)),C.return();d.consentLanguageKeys!==void 0&&(M=d.consentLanguageKeys);K=f.next();C.jumpTo(7);break;case 11:v=C.yieldResult;if(v.statusCode!==10)return v.statusCode!==6&&(Rxa(p.serviceId),p.currentFlow=0),v.statusCode!==1&&p.callerState!==void 0&&(v.callerState=p.callerState),x(v),C.return();_.ub(C,6);break;
case 5:_.v9(C);case 6:F=jCc(p.currentFlow,p.supportedFlows);N=!0;C.jumpTo(2);break;case 4:Rxa(p.serviceId),p.currentFlow=0,x(gC({statusCode:12,statusMessage:"Linking failed"},p.callerState)),_.JB(C)}})})},UNc=function(p,x,F){p.currentFlow=x;
return HVm(Do_(p,F)).then(function(N){return N.statusCode===10&&p.config.interactionMode===1&&jCc(p.currentFlow,p.supportedFlows)!==void 0?feX(p):N})},Do_=function(p,x){return{flowParams:{serviceId:p.serviceId,
sessionId:p.sessionId,galService:p.galService,galLogger:p.galLogger,interactionMode:p.config.interactionMode,redirectServiceUrl:p.config.redirectServiceUrl,colorScheme:p.config.colorScheme,consentLanguageKeys:x,dynamicUrlParameters:p.dynamicUrlParameters,showCloseOption:p.config.showCloseOption,partnerConfigMinReadTimestamp:p.partnerConfigMinReadTimestamp},currentFlow:p.currentFlow,config:p.config,session:p.JSC$17013_linkingSession,googleScopes:p.googleScopes,callerState:p.callerState}};var aDH=function(p,x){this.config=p;this.galService=x.getService();this.JSC$17026_galRepository=x.JSC$17063_galRepository};
aDH.prototype.getLink=function(p,x){return KFD(this,p,x)};
var KFD=function(p,x,F){return p.JSC$17026_galRepository.getLink({serviceId:x,scopes:void 0,capabilities:void 0,linkName:F}).then(function(N){return{statusCode:1,link:N}}).catch(function(N){return{statusCode:$Na(N.code),
statusMessage:N.message}})};
aDH.prototype.deleteLink=function(p,x){return this.JSC$17026_galRepository.deleteLink(p,this.config.accountLinkingEntryPoint,x).then(function(){return{statusCode:1}}).catch(function(F){return{statusCode:$Na(F.code),
statusMessage:F.message}})};
aDH.prototype.startLinkingSession=function(p){var x=p.serviceId;var F=p.sessionId;return TR8({serviceId:x,sessionId:F!==void 0?F:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:p.loginHint,callerState:p.callerState,consentLanguageKeys:p.consentLanguageKeys,linkName:p.linkName,dynamicUrlParameters:p.dynamicUrlParameters,partnerConfigMinReadTimestamp:p.partnerConfigMinReadTimestamp})};var exm=null,NV8=new WeakMap;var q98=function(){};
q98.prototype.send=function(p,x){cIa(p);return this.makeRequest(p).then(function(F){if(x){var N=new x;if(F!=null){if(x==null)throw Error("Yj");new x;throw Error("$j");}F=N}return F})};var Z4m=function(p,x,F,N,h){this.gapiUrl=p;this.gapiKey=x;this.gapiConfigUpdates=F||{};this.gapiAuthParams=N||{};this.defaultApiId=h};
_.E(Z4m,q98);var doX=function(p){return xDH().then(function(x){x=x||window.gapi;tda(p,x);return lDm(x,{apiKey:p.gapiKey,clientId:p.gapiAuthParams.clientId,scope:p.gapiAuthParams.scope,hostedDomain:p.gapiAuthParams.hostedDomain,fetchBasicProfile:p.gapiAuthParams.fetchBasicProfile}).then(function(){return x})})};
Z4m.prototype.makeRequest=function(p){var x=this;return doX(this).then(function(F){return _.D(function(N){if(N.nextAddress==1)return x.gapiAuthParams.minAuthTokenTimeRemaining===void 0?N.jumpTo(2):_.q(N,hcX(F,x.gapiAuthParams.minAuthTokenTimeRemaining),2);tda(x,F);return N.return(va_(F.client.request({root:x.gapiUrl,path:p.path,method:p.httpMethod,body:p.body,params:p.queryParams,headers:p.headers,authType:p.authType,apiId:p.apiId||x.defaultApiId})))})})};
var va_=function(p){return new Promise(function(x,F){p.then(function(N){x(N.result===!1&&N.body!=null?{data:N.body}:N.result)},function(N){F(N.result===!1&&N.body!=null?{data:N.body}:N.result)})})},tda=function(p,x){for(var F in p.gapiConfigUpdates)if(p.gapiConfigUpdates.hasOwnProperty(F)){var N=x,h=F,c=p.gapiConfigUpdates[F],M=N.config.get(h);
c!==M&&N.config.update(h,c)}};
Z4m.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var jF=function(p,x,F,N,h,c,M,f){this.apiKey=x;this.authUser=F;this.oauthToken=N;this.bucket=h;this.locale=M;this.galSdkEventHandler=f;if(N===void 0){if(x===void 0)throw Error("ak");this.requestService=new Z4m(p,x,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":c===void 0||c===!1,"client/xd3":c===!0})}this.galServiceClient=new QSm(p)};
jF.prototype.deleteLink=function(p){var x=p.serviceId;var F=p.sessionId;var N=p.accountLinkingEntryPoint;var h=p.linkName;var c=this,M;return _.D(function(f){var K=(new gL).setHeader(Lz(c,F));var t=JSD({serviceId:x,linkName:h});K=_.f6(K,2,t);M=_.HW(K,3,N);return f.return(c.makeRequest(c.galServiceClient.deleteLink,M,[1,3],[2,4]))})};
var Ipt=function(p,x){var F=x.serviceId;var N=x.sessionId;var h=x.dynamicUrlParameters;var c=x.redirectState;var M=x.consentLanguageKeys;var f=x.partnerConfigMinReadTimestamp;var K;return _.D(function(t){var d=(new zw).setHeader(Lz(p,N,h));d=_.II(d,2,F);K=_.II(d,4,c);M!==void 0&&_.II(K,5,M);f!==void 0&&_.f6(K,6,f);return t.return(p.makeRequest(p.galServiceClient.JSC$16912_finishOAuth,K,[1,3],[2,4]))})};
jF.prototype.getLink=function(p){var x=p.serviceId;var F=p.sessionId;var N=p.scopes;var h=p.capabilities;var c=p.consistencyKey;var M=p.linkName;var f=this,K;return _.D(function(t){var d=(new sp).setHeader(Lz(f,F)),v=JSD({serviceId:x,scopes:N,capabilities:h,linkName:M});K=_.f6(d,2,v);c!==void 0&&(d=AcH(),d=_.II(d,2,c),_.f6(K,3,d));return t.return(f.makeRequest(f.galServiceClient.getLink,K,[1,3],[2,4]))})};
var mND=function(p,x){var F=x.serviceId;var N=x.sessionId;var h=x.googleScopes;var c=x.consistencyKey;var M;return _.D(function(f){var K=(new QF).setHeader(Lz(p,N));K=_.II(K,2,F);var t=Array.from(h.values());K=_.mm(K,3,t,_.Z8);t=AcH();t=_.II(t,2,c);M=_.f6(K,4,t);return f.return(p.makeRequest(p.galServiceClient.JSC$16912_depositGoogleCredential,M,[1,3],[2,4]))})};
jF.prototype.startLinkingSession=function(p){var x=p.serviceId;var F=p.sessionId;var N=p.scopes;var h=p.capabilities;var c=p.loginHint;var M=p.supportedFlows;var f=p.completionUrl;var K=p.usePingPong;var t=p.twoWayLinking;var d=p.accountLinkingEntryPoint;var v=p.callerState;var C=p.consentLanguageKeys;var X=p.googleScopes;var Q=p.dataUsageNoticeConfig;var b=p.linkName;var A=p.dynamicUrlParameters;var Y=p.partnerConfigMinReadTimestamp;var O=this,Fw,R;return _.D(function(ld){if(h!==void 0&&N!==void 0)throw Error("Tj");
var pp=(new nz).setHeader(Lz(O,F,A));Fw=_.II(pp,2,x);b!==void 0&&_.II(Fw,14,b);if(h!==void 0){pp=Fw;var Kp=Array.from(h.values());_.mm(pp,5,Kp,_.Z8)}else N!==void 0&&(pp=Fw,Kp=Array.from(N.values()),_.mm(pp,3,Kp,_.Z8));f!==void 0&&_.II(Fw,6,f);K!==void 0&&_.zZ(Fw,15,K);M!==void 0&&(pp=Fw,Kp=Array.from(M.values()),_.mm(pp,4,Kp,_.$B));if(t!==void 0){if(t&&(!X||X.size===0))throw Error("bk");_.zZ(Fw,8,t)}d!==void 0&&_.HW(Fw,9,d);c!==void 0&&_.II(Fw,13,c);v!==void 0&&(pp=Fw,Kp=(new TextEncoder).encode(v),
_.Ok(pp,12,_.yJ(Kp,!1),_.zm()));C!==void 0&&_.II(Fw,16,C);Y!==void 0&&_.f6(Fw,18,Y);if(Q!==void 0&&Q.size>0||X!==void 0&&X.size>0)R=new iWm,X!==void 0&&X.size>0&&(pp=R,Kp=Array.from(X.values()),_.mm(pp,1,Kp,_.Z8)),Q!==void 0&&(Q.has(0)&&_.g_w(R,2,_.$B,1,_.eD),Q.has(1)&&_.g_w(R,2,_.$B,2,_.eD)),_.f6(Fw,17,R);return ld.return(O.makeRequest(O.galServiceClient.startLinkingSession,Fw,[1],[2]))})};
jF.prototype.getMetadata=function(){var p=this,x,F,N;return _.D(function(h){if(h.nextAddress==1)return x={},p.requestService?_.q(h,doX(p.requestService),3):(x.Authorization="Bearer "+p.oauthToken,h.jumpTo(2));h.nextAddress!=2&&(F=h.yieldResult,x["X-Goog-Api-Key"]=p.apiKey,x["X-Goog-AuthUser"]=p.authUser!==void 0?p.authUser.toString():"0",(N=F.auth.getAuthHeaderValueForFirstParty([]))&&(x.Authorization=N));p.locale&&(x["accept-language"]=p.locale);return h.return(x)})};
jF.prototype.makeRequest=function(p,x,F,N){var h=this,c;return _.D(function(M){if(M.nextAddress==1)return _.q(M,h.getMetadata(),2);c=M.yieldResult;Cx8(h,F);return M.return(p.bind(h.galServiceClient)(x,c).finally(function(){Cx8(h,N)}))})};
var Cx8=function(p,x){p.galSdkEventHandler!==void 0&&x.forEach(function(F){p.galSdkEventHandler.onEvent(F)})},Lz=function(p,x,F){var N=new rL;
x=_.Ok(N,2,_.p8(x),0);x=_.HW(x,5,3);F=_.mm(x,8,F,_.Z8);p.bucket!==void 0&&_.II(F,1,p.bucket);return F},JSD=function(p){var x=p.serviceId;
var F=p.scopes;var N=p.capabilities;p=p.linkName;if(N!==void 0&&F!==void 0)throw Error("Tj");var h=new yc_;x=_.II(h,1,x);N!==void 0?(F=Array.from(N.values()),_.mm(x,5,F,_.Z8)):F!==void 0&&(F=Array.from(F.values()),_.mm(x,3,F,_.Z8));p!==void 0&&_.II(x,6,p);return x};var Mwc=function(p){this.galService=new jF(p.alsDomain,p.apiKey,p.authUser,p.oauthToken,p.bucket,p.clientXd3,p.locale,p.galSdkEventHandler);this.JSC$17063_galRepository=new jSH(this.galService)};
Mwc.prototype.getService=function(){return this.galService};var S9X=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(S9X,_.Uk);var rSc=function(p){var x=new S9X;return _.Rx(x,1,p)};
S9X.prototype.setErrorMessage=function(p){return _.J_(this,2,p)};var Ea8=[0,_.iq,_.RE,_.iq];var PN=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(PN,_.Uk);var Xfm=[0,[1,2,3],_.U6,[0,GkH,Hqc,-1],_.U6,[0,W3H,-1],_.kEz];var ga_=[0,_.T5,1,_.iq,_.RE,-1,1,_.Isk,_.PW,_.iq,-1,Xfm];var QLe=[0,_.iq,[0,_.Isk,_.PW,[0,_.RE]],_.BW,[0,_.iq,-1]];var MO=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(MO,_.Uk);var z28=[0,_.RE,_.iq,-2,_.T5,_.iq,_.T5,_.iq,-2,1,_.BW];var sLX=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(sLX,_.Uk);var naa=[0,_.T5];var ySc=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(ySc,_.Uk);var b48=[0,_.iq,QLe,naa,z28,ga_];var ojk=_.NM(ySc,b48);var ASm=[0,zS_];var B8H=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(B8H,_.Uk);var u3m=[0,[1,3],PlX,_.iq,PlX];var cN=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(cN,_.Uk);var Y9m=[0,_.iq];var wf_=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(wf_,_.Uk);var aT=function(p){return _.V8(p,S9X,2,lS)},GvH=function(p){var x=new wf_;
return _.K6(x,2,lS,p)},lS=[1,
2];var Vd8=[0,lS,_.U6,Y9m,_.U6,Ea8,_.kg,u3m,1,_.iq,ASm];var WFm=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(WFm,_.Uk);var mot=function(p){var x=new WFm;return _.K6(x,3,H48,p)},H48=[2,
3];var Tw=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Tw,_.Uk);var oa8=function(p,x){return _.f6(p,2,x)},O4t=function(p,x){return _.f6(p,8,x)},jLa=function(p,x){return _.f6(p,3,x)};var LFH=[0,_.iq,Vd8,b48,_.hDK,[0,[5,6],[0,_.iq,-2],[0,_.T5,_.iq,_.RE],[0,Xfm],[0,_.RE,_.iq,-1,_.NnC],_.U6,[0,[0,_.T5],_.iq,-1],_.U6,[0,[3,4],_.iq,-1,_.U6,[0,[0,_.iq,_.BW]],_.U6,[0]]],_.hDK,-1,[0,H48,_.iq,_.U6,Y9m,_.U6,Ea8,_.kg,u3m,[0,zS_]]];var Pxm=_.NM(Tw,LFH),TA8=_.lg(LFH);var BAH=function(){_.Jm.call(this)};
_.E(BAH,_.Jm);BAH.prototype.init=function(){};
new BAH;var R2k=_.B$(["data-"]),kv8=_.B$(["aria-"]),UoH=_.B$(["aria-"]),BN=function(p,x){this.isLatencyMeasurementExperiment=p===void 0?!1:p;this.enableDialogA11yFix=x===void 0?!1:x;this.JSC$17092_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.f8k(_.Mm.location.href)},jXt=function(p,x){p.onConsentPrimitiveShownCallback=x},i4H=function(p,x){return p.overriddenIframeLoadTimeout?p.overriddenIframeLoadTimeout:x!==void 0?x:5E3},PMa=function(p){if(p.prewarmPromise!==void 0)return p.prewarmPromise;
p.prewarmPromise=new Promise(function(x,F){RT(p,1);Iek(p,$o8(p,!0),e2m(p));p.iframe?p.prewarmChannel||pjH(p,p.iframe,x):F(Error("ck"))});
p.prewarmPromise.finally(function(){p.prewarmPromise=void 0});
return p.prewarmPromise};
BN.prototype.showPrimitive=function(){var p=this;if(this.consentPromise!==void 0)return this.consentPromise;var x=Date.now();xJX(this,x);this.consentPromise=new Promise(function(F,N){RT(p,0,x);var h=p.isDarkTheme();p.isLatencyMeasurementExperiment||p.initialLoadingStrategy===1||p.initialLoadingStrategy===2||(p.loadingBar||(p.loadingBar=qWH(getComputedStyle(document.body).direction==="rtl",h),p.loadingBar.style.position="fixed",p.loadingBar.style.zIndex="15000"),document.body.appendChild(p.loadingBar));
Iek(p,$o8(p),e2m(p));p.iframe?p.channel||Fem(p,p.iframe,F,N):(NS8(p),N(Error("ck")))});
this.consentPromise.finally(function(){p.consentPromise=void 0});
return this.consentPromise};
var Fem=function(p,x,F,N){var h,c;_.D(function(M){switch(M.nextAddress){case 1:RT(p,3);h=!1;setTimeout(function(){if(!h){NS8(p);hvD(p);l1_();var f=rSc(7).setErrorMessage("Timeout connecting to iframe");F(O4t(oa8(new Tw,GvH(f)),mot(f)))}},i4H(p,cYH(p)));
if(!p.prewarmPromise){M.jumpTo(2);break}_.KM(M,3);return _.q(M,p.prewarmPromise,5);case 5:_.ub(M,2);break;case 3:_.v9(M),c=rSc(4).setErrorMessage("Error while prewarming."),F(O4t(oa8(new Tw,GvH(c)),mot(c)));case 2:p.prewarmChannel&&p.prewarmChannel.send(TA8(jLa(new Tw,p.consentPrimitiveRequest))),p.channel=_.eG({destination:p.JSC$17092_win,iframe:x,origin:a1H(p),channelName:"cpw",onEstablished:function(){h=!0;NS8(p);p.isLatencyMeasurementExperiment||(p.JSC$17092_previousBodyOverflow=document.body.style.overflow,
p.JSC$17092_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,p.JSC$17092_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",p.enableDialogA11yFix&&window.addEventListener("blur",p.focusChangeListener));var f=p.iframe;f.style.bottom="0";f.style.position="fixed";f.style.right="0";f.style.border="none";f.style.left="0";f.style.top=
"0";f.style.zIndex="5000";f.style.pointerEvents="";f.style.visibility="";p.initialLoadingStrategy===2||p.initialLoadingStrategy===3?RT(p,4):RT(p,6);var K;(K=p.onConsentPrimitiveShownCallback)==null||K.call(p)},
onMessage:function(f){f=Pxm(f.data);switch(_.Yg(f,1)){case 1:hvD(p);var K=ZE8(_.B8(f,_.oI,7));K&&(p.initialLoadingStrategy!==2&&p.initialLoadingStrategy!==3||RT(p,6,K),RT(p,5,K));if(K=ZE8(_.B8(f,_.oI,6)))RT(p,7,K),RT(p,8);var t,d;((t=_.B8(f,wf_,2))==null?void 0:_.E6(t,lS))!==0&&((d=_.B8(f,WFm,8))==null?void 0:_.E6(d,H48))!==0||N(Error("dk"));F(f);break;case 2:l1_()}}}),_.JB(M)}})},pjH=function(p,x,F){p.prewarmChannel=_.eG({destination:p.JSC$17092_win,
iframe:x,origin:a1H(p),channelName:"pwcp",onEstablished:function(){RT(p,2);F()}})},a1H=function(p){var x=_.SP(p.src).toString();
return x&&x.indexOf("://")<0&&x.indexOf("//")!==0?p.origin:_.f8k(x)},$o8=function(p,x){x=x===void 0?!1:x;
var F,N=new Map([["origin",p.origin],["hl",(F=Mak(p))!=null?F:null]]);x&&N.set("pw","1");x=_.a([["cpr",p.consentPrimitiveRequest.serialize()]]);for(F=x.next();!F.done;F=x.next()){var h=_.a(F.value);F=h.next().value;h=h.next().value;N.set(F,h)}p.isDarkTheme()&&N.set("color_scheme","dark");return _.Fa(p.src,N)},NS8=function(p){p.isLatencyMeasurementExperiment||p.loadingBar&&document.body.removeChild(p.loadingBar)};
BN.prototype.getSrc=function(){var p=_.oD(this.origin),x;var F=(x=_.B8(this.consentPrimitiveRequest,sLX,3))==null?void 0:_.$H(x,1);x="consent.google.com";F=F?"/u/"+encodeURIComponent(F.toString()):"";(p==null?0:p.endsWith("youtube.com"))?x="consent.youtube.com":(p=p==null?void 0:p.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(x="consent.google."+((p[1]?"co.":"")+encodeURIComponent(p[2])));return _.vz("https://"+x+"/signedin"+F+"/landing")};
var Iek=function(p,x,F){p.iframe||(p.iframe=document.createElement("iframe"),p.iframe.style.width="100%",p.iframe.style.height="100%",F!==112496729&&(p.iframe.style.colorScheme="auto"),p.isLatencyMeasurementExperiment&&(p.iframe.style.display="none"),_.jP(p.iframe,x),p.iframe.setAttribute("jsname","C5o1O"),DJk(p.iframe),document.body.appendChild(p.iframe))},DJk=function(p){p.style.bottom="-200vh";
p.style.position="fixed";p.style.right="-200vw";p.style.border="";p.style.left="";p.style.top="";p.style.zIndex="";p.style.pointerEvents="none";p.style.visibility="hidden"},hvD=function(p){p.iframe&&(p.isLatencyMeasurementExperiment||(p.JSC$17092_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=p.JSC$17092_previousHtmlOverscroll),p.JSC$17092_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=p.JSC$17092_previousBodyOverscroll),p.JSC$17092_previousBodyOverflow!==
void 0&&(document.body.style.overflow=p.JSC$17092_previousBodyOverflow),p.enableDialogA11yFix&&f1m(p,!1)),DJk(p.iframe))};
BN.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(f1m(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var f1m=function(p,x){var F,N,h=(F=p.iframe)==null?void 0:(N=F.parentElement)==null?void 0:N.children;if(h)for(F=0;F<h.length;F++)N=h[F],N!==p.iframe&&(x?(N.hasAttribute("aria-hidden")&&_.$E([_.ei(R2k)],N,"data-old-aria-hidden",N.getAttribute("aria-hidden")),_.$E([_.ei(kv8)],N,"aria-hidden","true")):(N.removeAttribute("aria-hidden"),N.hasAttribute("data-old-aria-hidden")&&(_.$E([_.ei(UoH)],N,"aria-hidden",N.getAttribute("data-old-aria-hidden")),N.removeAttribute("data-old-aria-hidden"))))},RT=function(p,
x,F){var N;
(N=p.latencyCallback)==null||N.call(p,{latencyType:x,timestampEpochMillis:F!=null?F:Date.now()})};var Ket=function(p,x,F){BN.call(this,x,F===void 0?!1:F);this.consentPrimitiveRequest=p;p=Mak(this);if(!(0,_.ijJ)(p))throw Error("H``"+String(p));this.src=this.getSrc();var N;this.initialLoadingStrategy=(N=_.B8(this.consentPrimitiveRequest,MO,4))==null?void 0:_.Yg(N,4)},kA;
_.E(Ket,BN);var Oim=function(p){var x=_.S("enable_primitive_dialog_aria_hide_siblings");p={request:p,enableDialogA11yFix:x===void 0?!1:x};kA||(kA=new Ket(p.request,p.isLatencyMeasurementExperiment||_.Yg(p.request,1)===2,p.enableDialogA11yFix));return kA},l1_=function(){kA&&(kA.channel=void 0,kA.prewarmChannel=void 0,kA.iframe&&(document.body.contains(kA.iframe)&&document.body.removeChild(kA.iframe),kA.iframe=void 0),kA=void 0)},Mak=function(p){var x;
return(x=_.B8(p.consentPrimitiveRequest,MO,4))==null?void 0:_.uq(x,1)},xJX=function(p,x){if(!_.vW(p.consentPrimitiveRequest,PN,5)){var F=p.consentPrimitiveRequest,N=new PN;
_.f6(F,5,N)}var h;if((h=_.B8(p.consentPrimitiveRequest,PN,5))==null||_.z5(h,8)==null){var c;(c=_.B8(p.consentPrimitiveRequest,PN,5))!=null&&_.tT(c,8,x)}},e2m=function(p){var x;
return(x=_.B8(p.consentPrimitiveRequest,PN,5))==null?void 0:_.$H(x,1)};
Ket.prototype.isDarkTheme=function(){var p;return((p=_.B8(this.consentPrimitiveRequest,MO,4))==null?void 0:_.Yg(p,2))===2};
var cYH=function(p){var x;return((x=_.B8(p.consentPrimitiveRequest,MO,4))==null?void 0:_.$H(x,5))||void 0},T8c=function(p){return BN.prototype.showPrimitive.call(p).then(function(x){return _.B8(x,wf_,2)})};for(var Up={},qma=(Up[64]="ma",Up[73]="ogb",Up[89]="cr",Up[21]="test",Up[0]="unkn",Up[137]="con",Up[155]="hl",Up[78]="yt",Up[171]="lp",Up[172]="ap",Up[177]="amo",Up[178]="pqe",Up[74]="gg",Up[1]="gm",Up[140]="am",Up),Zbc=_.a(Object.keys(qma)),tat=Zbc.next();!tat.done;tat=Zbc.next());var dJH=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(dJH,_.Uk);var vxm=[0,[2,3,4],_.iq,VtH,PlX,_.kEz];var JYX=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(JYX,_.Uk);var CC8=_.NM(JYX,[0,L3m,_.RE,_.iq,_.RE,_.iq,vxm]);var Sm8=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Sm8,_.Uk);Sm8.prototype.getCommand=function(){return _.Yg(this,1)};
var rYD=function(){var p=new Sm8;return _.HW(p,1,0)};var Exe=_.lg([0,L3m,_.RE,[0,_.iq,_.RE,-1]]);var Xjm=new _.Zq("s"),gx8=new _.Zq("t"),QOm=new _.Zq("u"),zv_=new _.Zq("v"),sO8=function(p,x,F){_.th.call(this,Xjm);this.mediaKey=p;this.photoUrl=x;this.photoSource=F};
_.E(sO8,_.th);var nxH=function(){_.th.call(this,gx8)};
_.E(nxH,_.th);var yY8=function(p){p=p===void 0?!1:p;_.th.call(this,QOm);this.isError=p};
_.E(yY8,_.th);var bbH=function(){_.th.call(this,zv_)};
_.E(bbH,_.th);var AYm=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,GNc=function(p){if(typeof p=="string"){if(p.charAt(0)==".")return u8X(p.substr(1));if(p.charAt(0)=="["){var x=AYm.exec(p);p=p.indexOf("=")==-1?void 0:x[3];return Ymt(x[1],p)}return wj8(p)}return p},u8X=function(p){return function(x){return x.getAttribute&&_.oX(x,p)}},Ymt=function(p,x){return function(F){return x!==void 0?F.getAttribute&&F.getAttribute(p)==x:F.hasAttribute&&F.hasAttribute(p)}},wj8=function(p){p=p.toUpperCase();
return function(x){return(x=x.tagName)&&x.toUpperCase()==p}},Vam=function(){return!0};var iS=function(p,x){this.JSC$17120_key_=p;this.JSC$17120_value_=x},IT=function(p){throw Error("ek`"+p.JSC$17120_key_);
},We8=function(p,x){return new TypeError("fk`"+x+"`"+p.JSC$17120_key_+"`"+p.JSC$17120_value_+"`"+typeof p.JSC$17120_value_)};
iS.prototype.string=function(p){if(arguments.length==0)var x=Hbm(this);else{var F;x=(F=mJX(this))!=null?F:p}return x};
var Hbm=function(p){var x=mJX(p);x===null&&IT(p);return x},mJX=function(p){var x=p.JSC$17120_value_;
if(x==null)return null;if(typeof x==="string")return x;throw We8(p,"string");};
iS.prototype.bool=function(p){if(arguments.length==0){var x=this.optionalBool();x===null&&IT(this)}else{var F;x=(F=this.optionalBool())!=null?F:p}return x};
iS.prototype.optionalBool=function(){var p=this.JSC$17120_value_;if(p==null)return null;if(typeof p==="boolean")return p;if(typeof p==="string"){p=p.toLowerCase();if(p==="true"||p==="1")return!0;if(p==="false"||p==="0")return!1}throw We8(this,"boolean");};
iS.prototype.number=function(p){if(arguments.length==0){var x=oxc(this);x===null&&IT(this)}else{var F;x=(F=oxc(this))!=null?F:p}return x};
var oxc=function(p){var x=p.JSC$17120_value_;if(x==null)return null;if(typeof x==="number")return x;if(typeof x==="string"){var F=Number(x);if(!isNaN(F)&&(F!==0||x.trim().length!==0))return F}throw We8(p,"number");};
iS.prototype.toString=function(){return Hbm(this)};
iS.prototype.array=function(p){if(arguments.length==0){var x=Ob8(this);x===null&&IT(this);return x}x=Ob8(this);return x==null?p:x};
var Ob8=function(p){var x=p.JSC$17120_value_;if(x==null)return null;Array.isArray(x)||(typeof x!=="string"?x=[x]:(x=x.trim(),x=x==""?[]:x.split(",").map(function(F){return F.trim()})));
return jOe(p,x)},jOe=function(p,x){var F=p.JSC$17120_key_+"[";
return Array.from(x,function(N,h){return new iS(F+h+"]",N)})};
iS.prototype.object=function(p){var x=this.JSC$17120_value_;if(x==null)return p===void 0&&IT(this),p;if(typeof x==="object"&&x.constructor===Object){p={};var F=this.JSC$17120_key_+".",N;for(N in x)p[N]=new iS(F+N,x[N]);return p}throw We8(this,"object");};var $A=function(p){this.list_=LeH(p)},LeH=function(p){if(p instanceof $A)p=p.list_;
else if(p[0]instanceof $A){for(var x=new Set,F=0;F<p.length;F++)for(var N=_.a(p[F].list_),h=N.next();!h.done;h=N.next())x.add(h.value);p=x}return[].concat(_.se(p))};
_.l=$A.prototype;_.l.each=function(p,x,F){((F===void 0?0:F)?rDH:_.w1)(this.list_,p,x);return this};
_.l.size=function(){return this.list_.length};
_.l.isEmpty=function(){return this.list_.length===0};
_.l.get=function(p){return this.list_[p]||null};
_.l.el=function(){return this.list_[0]||null};
_.l.map=function(p,x){return _.zy(this.list_,p,x)};
_.l.equals=function(p){return this===p||_.pZ(this.list_,p.list_)};
_.l.first=function(){return this.list_.length==0?null:new eF(this.list_[0])};
_.l.find=function(p){var x=[];this.each(function(F){F=F.querySelectorAll(String(p));for(var N=0;N<F.length;N++)x.push(F[N])});
return new $A(x)};
_.l.parent=function(){var p=[];this.each(function(x){(x=x.parentElement||null)&&!_.oJ(p,x)&&p.push(x)});
return new $A(p)};
_.l.children=function(){var p=[];this.each(function(x){x=_.Wk(x);for(var F=0;F<x.length;F++)p.push(x[F])});
return new $A(p)};
_.l.filter=function(p){p=_.cW(this.list_,GNc(p));return new $A(p)};
_.l.closest=function(p){var x=[],F=GNc(p),N=function(h){return _.O0(h)&&F(h)};
this.each(function(h){(h=_.uk(h,N,!0))&&!_.oJ(x,h)&&x.push(h)});
return new $A(x)};
_.l.next=function(p){return PC_(this,_.fnJ,p)};
_.l.prev=function(p){return PC_(this,kkk,p)};
var PC_=function(p,x,F){var N=[];var h=F?GNc(F):Vam;p.each(function(c){(c=x(c))&&h(c)&&N.push(c)});
return new $A(N)};
$A.prototype.setClass=function(p){return this.each(function(x){_.mZ(x,p)})};
var TSk=function(p,x){return p.each(function(F){_.Wl(F,x)})},BS8=function(p,x){return p.each(function(F){_.GT(F,x)})};
$A.prototype.toggleClass=function(p,x){return x===!0?TSk(this,p):x===!1?BS8(this,p):this.each(function(F){_.oX(F,p)?_.GT(F,p):_.Wl(F,p)})};
$A.prototype.setText=function(p){return this.each(function(x){_.Hk(x,p)})};
var RvH=function(p){p.each(function(x){x.removeAttribute("aria-hidden")})};
$A.prototype.getStyle=function(p){if(this.list_.length>0){var x=this.list_[0],F=x.style[_.t8(p)];return typeof F!=="undefined"?F:x.style[_.sMB(x,p)]||""}};
$A.prototype.getData=function(p){if(this.list_.length===0)return new iS(p,null);var x=nLe(this.list_[0],p);return new iS(p,x)};
$A.prototype.focus=function(p){try{p?this.el().focus(p):this.el().focus()}catch(x){}return this};
$A.prototype.click=function(){var p=_.y5(this.el());if(p.createEvent){var x=p.createEvent("MouseEvents");x.initMouseEvent("click",!0,!0,p.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(x)}else p=p.createEventObject(),p.clientX=0,p.clientY=0,p.screenX=0,p.screenY=0,p.altKey=!1,p.ctrlKey=!1,p.shiftKey=!1,p.button=0,this.el().fireEvent("onclick",p)};
var pA=function(p,x,F,N){function h(f,K,t){var d=K;K&&K.parentNode&&(d=K.cloneNode(!0));f(d,t)}
N=N===void 0?!1:N;if(p.list_.length==1){var c=p.list_[0],M=function(f){return x(f,c)};
F instanceof $A?F.each(M,void 0,N):Array.isArray(F)?(N?rDH:_.w1)(F,M):M(F);return p}return p.each(function(f){F instanceof $A?F.each(function(K){h(x,K,f)}):Array.isArray(F)?_.w1(F,function(K){h(x,K,f)}):h(x,F,f)})};
_.l=$A.prototype;_.l.append=function(p){return pA(this,function(x,F){x&&F.appendChild(x)},p)};
_.l.appendTo=function(p){(new $A([p])).append(this);return this};
_.l.remove=function(){return pA(this,function(p,x){_.qc(x)},null)};
_.l.empty=function(){return pA(this,function(p,x){_.wM(x)},null)};
_.l.after=function(p,x){return pA(this,function(F,N){F&&_.VO(F,N)},p,!(x===void 0||x))};
_.l.before=function(p){return pA(this,function(x,F){x&&_.Ga(x,F)},p)};
_.l.replaceWith=function(p){return pA(this,function(x,F){x&&_.anI(x,F)},p)};
_.l.toggle=function(p){return this.each(function(x){_.HS(x,p)})};
_.l.show=function(){return this.toggle(!0)};
_.l.hide=function(){return this.toggle(!1)};
_.l.trigger=function(p,x,F,N){return kNa(this,p,x,F,N)};
var kNa=function(p,x,F,N,h){return p.each(function(c){_.eZp(_.y5(c)).triggerWizEventInternal(c,x,F,N,h)})},eF=function(p,x){p instanceof $A&&(x=p.list_,p=null);
this.list_=LeH(p!=null?[p]:x)};
_.NL(eF,$A);_.l=eF.prototype;_.l.children=function(){return new $A(Array.prototype.slice.call(_.Wk(this.list_[0])))};
_.l.each=function(p,x){p.call(x,this.list_[0],0);return this};
_.l.size=function(){return 1};
_.l.el=function(){return this.list_[0]};
_.l.first=function(){return this};var xY=function(p,x){x=x===void 0?window:x;this.hostId=p;this.JSC$17131_win=x;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$17131_previousHtmlOverscroll=this.JSC$17131_previousBodyOverscroll=this.JSC$17131_previousBodyOverflow="";this.eventTarget=new _.Sc;this.JSC$17131_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
I1e=function(p){var x=UJH(UJH(UJH(new ibH(78),"po"),"hppp"),"hhc");
x.authUser=Number(_.sd("SESSION_INDEX","0"));x.colorScheme=p;return x};
xY.prototype.getOrigin=function(){return this.origin?this.origin:_.ec(_.IX(_.iM(new _.R9,this.JSC$17131_win.location.protocol),this.JSC$17131_win.location.hostname),this.JSC$17131_win.location.port).toString()};
xY.prototype.getTargetOrigin=function(){return _.ec(_.IX(_.iM(new _.R9,this.scheme),this.domain),this.port)};
xY.prototype.preloadIframe=function(p){var x=this;if(this.iframeLoadPromise===void 0){var F=document.createElement("iframe");this.iframe=F;rI8(F,p);this.iframeLoadPromise=new Promise(function(N,h){var c=!1,M=function(f){f.stopPropagation();F.removeEventListener("error",M);F.removeEventListener("securitypolicyviolation",M);h(Error("gk",{cause:f}))};
F.addEventListener("error",M);F.addEventListener("securitypolicyviolation",M);setTimeout(function(){c||h(Error("hk"))},3E4);
$Je(x,F,function(){c=!0;F.removeEventListener("error",M);F.removeEventListener("securitypolicyviolation",M);N()})});
ev8(this);p=this.getTargetOrigin().toString();F.setAttribute("allow","camera "+p+"; display-capture "+p);this.parentElement.appendChild(F)}return this.iframeLoadPromise};
var Fpc=function(p,x){var F,N;return _.D(function(h){if(h.nextAddress==1)return F=qWH(getComputedStyle(p.parentElement).direction==="rtl"),p.parentElement.appendChild(F),document.activeElement instanceof HTMLElement&&(p.elementToFocusAfterClose=document.activeElement),_.KM(h,2),_.q(h,p.preloadIframe(x),4);if(h.nextAddress!=2){p.parentElement.removeChild(F);p.JSC$17131_previousBodyOverflow=p.parentElement.style.overflow;p.JSC$17131_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
p.JSC$17131_previousBodyOverscroll=p.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";p.parentElement.style.overscrollBehavior="contain";p.parentElement.style.overflow="hidden";var c=p.iframe;c.style.bottom="0";c.style.border="none";c.style.height="100%";c.style.left="0";c.style.position=p.iframePosition;c.style.right="0";c.style.top="0";c.style.width="100%";c.style.zIndex="2202";c.setAttribute("aria-hidden","false");c.setAttribute("aria-modal","true");
p.opened=!0;p68(p);return _.ub(h,0)}N=_.v9(h);p.parentElement.removeChild(F);JIX(p.isDarkTheme());xqe(p,!1);throw Error("ik",{cause:N});})},xqe=function(p,x){x=x===void 0?!0:x;
p.iframe!==void 0&&(Nm8(p),document.documentElement.style.overscrollBehavior=p.JSC$17131_previousHtmlOverscroll,p.parentElement.style.overscrollBehavior=p.JSC$17131_previousBodyOverscroll,p.parentElement.style.overflow=p.JSC$17131_previousBodyOverflow,p.elementToFocusAfterClose!==void 0&&(p.elementToFocusAfterClose.focus(),p.elementToFocusAfterClose=void 0),x?ev8(p):(p.parentElement.removeChild(p.iframe),p.iframe=void 0,p.iframeLoadPromise=void 0,p.mainChannel=void 0),p.opened=!1)},Nm8=function(p){p.backgroundElementsAriaHiddenIsNull&&
(RvH(p.backgroundElementsAriaHiddenIsNull),p.backgroundElementsAriaHiddenIsNull=void 0);
p.backgroundElementsAriaHiddenIsFalse&&(p.backgroundElementsAriaHiddenIsFalse.each(function(x){x.setAttribute("aria-hidden","false")}),p.backgroundElementsAriaHiddenIsFalse=void 0);
p.backgroundElementsWithoutInert&&(p.backgroundElementsWithoutInert.each(function(x){x.removeAttribute("inert")}),p.backgroundElementsWithoutInert=void 0)},p68=function(p){p.backgroundElementsAriaHiddenIsNull=(new eF(p.iframe.parentElement)).children().filter(function(x){return x.getAttribute("aria-hidden")===null&&x!==p.iframe});
p.backgroundElementsAriaHiddenIsNull.each(function(x){x.setAttribute("aria-hidden","true")});
p.backgroundElementsAriaHiddenIsFalse=(new eF(p.iframe.parentElement)).children().filter(function(x){return x.getAttribute("aria-hidden")==="false"&&x!==p.iframe});
p.backgroundElementsAriaHiddenIsFalse.each(function(x){x.setAttribute("aria-hidden","true")});
p.backgroundElementsWithoutInert=(new eF(p.iframe.parentElement)).children().filter(function(x){return!x.hasAttribute("inert")&&x!==p.iframe});
p.backgroundElementsWithoutInert.each(function(x){x.setAttribute("inert","true")})},ev8=function(p){p=p.iframe;
p.style.bottom="-1000px";p.style.position="fixed";p.style.right="-1000px";p.style.border="";p.style.height="";p.style.left="";p.style.top="";p.style.width="";p.style.zIndex="";p.setAttribute("aria-hidden","true");p.setAttribute("aria-modal","false")};
xY.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var ibH=function(p,x){xY.call(this,qma[p],x);this.options=[];this.style=""};
_.E(ibH,xY);var h0H=function(p){p.style="youtube";return p},l_H=function(p,x){p.eventTarget.listen(QOm,x);
return p},cAH=function(p,x){p.eventTarget.listen(Xjm,x);
return p},UJH=function(p,x){p.options.push(x);
return p},a_a=function(p){var x=[p.getOrigin()];
p.ancestorOrigins&&x.push.apply(x,_.se(p.ancestorOrigins));var F=new _.R9(p.JSC$17131_win.location.href),N=p.startUrl?p.startUrl:p.options.includes("po")?"profile-picture/art":"profile-picture";x=DA(_.pF(p.getTargetOrigin(),N),"origin",x);p.startUrl&&_.WS(x,"startPath",p.startUrl);p.authUser>0&&_.WS(x,"authuser",p.authUser);p.pageId!==void 0&&_.WS(x,"pageId",p.pageId);_.WS(x,"hostId",p.hostId);p.jsMode!==void 0&&_.WS(x,"jsmode",p.jsMode);p.options.length>0&&_.WS(x,"opts",p.options.join(","));try{for(var h=
_.a(["utm_source","utm_medium","utm_campaign","utm_content"]),c=h.next();!c.done;c=h.next()){var M=c.value;_.VH(F,M)&&_.WS(x,M,_.VH(F,M))}var f,K=(f=p.hl)!=null?f:_.VH(F,"hl");K!==void 0&&_.WS(x,"hl",K)}catch(t){if(!(t instanceof URIError))throw t;}p.colorScheme&&_.WS(x,"theme",p.colorScheme);p.style&&_.WS(x,"style",p.style);return x},MjH=function(p,x){p.mainChannel=_.eG({destination:p.JSC$17131_win,
iframe:x,origin:p.getTargetOrigin().toString(),channelName:"ow",onMessage:function(F){F=CC8(F.data);if(x===p.iframe)switch(_.Yg(F,1)){case 1:p.eventTarget.dispatchEvent(new yY8);xqe(p);break;case 2:p.eventTarget.dispatchEvent(new sO8(_.wl(_.uq(F,4)),_.wl(_.uq(F,2)),_.wl(_.Yg(F,5)),_.wl(_.B8(F,dJH,6))));break;case 0:var N;p.eventTarget.dispatchEvent(new nxH(_.wl(_.uq(F,2)),(N=_.Yg(F,3))!=null?N:0));break;case 3:p.eventTarget.dispatchEvent(new yY8(!0));xqe(p,!1);break;case 4:p.eventTarget.dispatchEvent(new bbH)}}})},
$Je=function(p,x,F){_.eG({destination:p.JSC$17131_win,
iframe:x,origin:_.ec(_.IX(_.iM(new _.R9,p.scheme),p.domain),p.port).toString(),channelName:"owi",onMessage:function(N){x===p.iframe&&(F!==void 0&&F(),MjH(p,x),p.opened&&p.mainChannel.send(Exe(rYD())),N.reply(),$Je(p,x))}})};
ibH.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?xY.prototype.preloadIframe.call(this,a_a(this).toString()):this.iframeLoadPromise};
ibH.prototype.openPicker=function(p){var x=this;return _.D(function(F){if(F.nextAddress==1)return x.startUrl=p?p:x.options.includes("po")?"profile-picture/art":"profile-picture",_.q(F,Fpc(x,a_a(x).toString()),2);if(x.mainChannel){var N=x.mainChannel,h=N.send;var c=rYD();c=_.J_(c,2,x.startUrl);h.call(N,Exe(c))}_.JB(F)})};var Dqt=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(Dqt,_.Uk);_.l=Dqt.prototype;_.l.getSize=function(){return _.nT(this,1)};
_.l.setSize=function(p){return _.WW(this,1,p)};
_.l.getWidth=function(){return _.nT(this,12)};
_.l.getHeight=function(){return _.nT(this,13)};
_.l.setCenterCrop=function(p){return _.Nc(this,20,p)};
_.l.getHtml=function(){return _.y8(this,4)};
_.l.getToken=function(){return _.fH(this,24)};
_.l.setToken=function(p){return _.J_(this,24,p)};
_.l.getBackgroundColor=function(){return _.nT(this,87)};
_.l.hasBackgroundColor=function(){return _.nT(this,87)!=null};
_.l.getStoryboardLevel=function(){return _.nT(this,109)};var FH=function(p){this.JSC$17139_value_=void 0;this.childNodes_={};if(p){var x=_.EFm(p);p=_.U1(p);for(var F=0;F<x.length;F++)this.set(x[F],p[F])}};
FH.prototype.set=function(p,x){f_m(this,p,x,!1)};
FH.prototype.add=function(p,x){f_m(this,p,x,!0)};
var f_m=function(p,x,F,N){for(var h=0;h<x.length;h++){var c=x.charAt(h);p.childNodes_[c]||(p.childNodes_[c]=new FH);p=p.childNodes_[c]}if(N&&p.JSC$17139_value_!==void 0)throw Error("jk`"+x);p.JSC$17139_value_=F},Kpe=function(p,x){for(var F=0;F<x.length;F++)if(p=p.childNodes_[x.charAt(F)],!p)return;
return p};
FH.prototype.get=function(p){return(p=Kpe(this,p))?p.JSC$17139_value_:void 0};
FH.prototype.getValues=function(){var p=[];qBe(this,p);return p};
var qBe=function(p,x){p.JSC$17139_value_!==void 0&&x.push(p.JSC$17139_value_);for(var F in p.childNodes_)qBe(p.childNodes_[F],x)};
FH.prototype.getKeys=function(p){var x=[];if(p){for(var F=this,N=0;N<p.length;N++){var h=p.charAt(N);if(!F.childNodes_[h])return[];F=F.childNodes_[h]}ZJH(F,p,x)}else ZJH(this,"",x);return x};
var ZJH=function(p,x,F){p.JSC$17139_value_!==void 0&&F.push(x);for(var N in p.childNodes_)ZJH(p.childNodes_[N],x+N,F)};
_.l=FH.prototype;_.l.containsKey=function(p){return this.get(p)!==void 0};
_.l.containsValue=function(p){if(this.JSC$17139_value_===p)return!0;for(var x in this.childNodes_)if(this.childNodes_[x].containsValue(p))return!0;return!1};
_.l.clear=function(){this.childNodes_={};this.JSC$17139_value_=void 0};
_.l.remove=function(p){for(var x=this,F=[],N=0;N<p.length;N++){var h=p.charAt(N);if(!x.childNodes_[h])throw Error("kk`"+p);F.push([x,h]);x=x.childNodes_[h]}p=x.JSC$17139_value_;for(delete x.JSC$17139_value_;F.length>0;)if(N=F.pop(),x=N[0],N=N[1],x.childNodes_[N].isEmpty())delete x.childNodes_[N];else break;return p};
_.l.clone=function(){return new FH(this)};
_.l.getCount=function(){return Id_(this.getValues())};
_.l.isEmpty=function(){return this.JSC$17139_value_===void 0&&_.Q5.isEmpty(this.childNodes_)};var zc8=function(){if(!tjH){var p=tjH=new FH,x;for(x in dq8)p.add(x,dq8[x])}},tjH,Nk=function(p,x){this.types=p;
this.setters=x},dq8={a:new Nk([3,
0],[function(p,x){_.Nc(p,21,x)},
function(p,x){_.WW(p,56,x)}]),
al:new Nk([3],[function(p,x){_.Nc(p,74,x)}]),
b:new Nk([3,0],[function(p,x){_.Nc(p,23,x)},
function(p,x){_.WW(p,38,x)}]),
ba:new Nk([0],[function(p,x){_.WW(p,85,x)}]),
bc:new Nk([0],[function(p,x){_.WW(p,87,x)}]),
br:new Nk([0],[function(p,x){_.WW(p,86,x)}]),
c:new Nk([3,0],[function(p,x){_.Nc(p,2,x)},
function(p,x){_.WW(p,39,x)}]),
cc:new Nk([3],[function(p,x){_.Nc(p,51,x)}]),
ci:new Nk([3],[function(p,x){_.Nc(p,32,x)}]),
ckm:new Nk([3],[function(p,x){_.Nc(p,104,x)}]),
cp:new Nk([0],[function(p,x){_.WW(p,92,x)}]),
cr:new Nk([3],[function(p,x){_.Nc(p,108,x)}]),
cv:new Nk([0],[function(p,x){_.WW(p,94,x)}]),
d:new Nk([3],[function(p,x){_.Nc(p,3,x)}]),
dc:new Nk([5],[function(p,x){_.J_(p,99,x)}]),
df:new Nk([3],[function(p,x){_.Nc(p,80,x)}]),
dv:new Nk([3],[function(p,x){_.Nc(p,90,x)}]),
e:new Nk([0],[function(p,x){_.WW(p,15,x)}]),
em:new Nk([0],[function(p,x){_.WW(p,107,x)}]),
f:new Nk([4],[function(p,x){_.J_(p,16,x)}]),
fg:new Nk([3],[function(p,x){_.Nc(p,34,x)}]),
fh:new Nk([3],[function(p,x){_.Nc(p,30,x)}]),
fm:new Nk([3],[function(p,x){_.Nc(p,84,x)}]),
fo:new Nk([2],[function(p,x){_.k3(p,79,_.Rk(x))}]),
ft:new Nk([3],[function(p,x){_.Nc(p,50,x)}]),
fv:new Nk([3],[function(p,x){_.Nc(p,31,x)}]),
g:new Nk([3],[function(p,x){_.Nc(p,14,x)}]),
gce:new Nk([4],[function(p,x){_.J_(p,112,x)}]),
gd:new Nk([3],[function(p,x){_.Nc(p,83,x)}]),
gm:new Nk([3],[function(p,x){_.Nc(p,105,x)}]),
h:new Nk([3,0],[function(p,x){_.Nc(p,4,x)},
function(p,x){_.WW(p,13,x)}]),
i:new Nk([3],[function(p,x){_.Nc(p,22,x)}]),
ic:new Nk([0],[function(p,x){_.WW(p,71,x)}]),
id:new Nk([3],[function(p,x){_.Nc(p,70,x)}]),
il:new Nk([3],[function(p,x){_.Nc(p,96,x)}]),
ip:new Nk([3],[function(p,x){_.Nc(p,54,x)}]),
iv:new Nk([0],[function(p,x){_.tT(p,75,x)}]),
j:new Nk([1],[function(p,x){x=x==null?x:gLH(x);_.k3(p,29,x)}]),
k:new Nk([3,0],[function(p,x){_.Nc(p,17,x)},
function(p,x){_.WW(p,42,x)}]),
l:new Nk([0],[function(p,x){_.WW(p,44,x)}]),
lf:new Nk([3],[function(p,x){_.Nc(p,65,x)}]),
lo:new Nk([3],[function(p,x){_.Nc(p,97,x)}]),
m:new Nk([0],[function(p,x){_.WW(p,63,x)}]),
md:new Nk([3],[function(p,x){_.Nc(p,91,x)}]),
mm:new Nk([4],[function(p,x){_.J_(p,81,x)}]),
mo:new Nk([3],[function(p,x){_.Nc(p,73,x)}]),
mv:new Nk([3],[function(p,x){_.Nc(p,66,x)}]),
n:new Nk([3],[function(p,x){p.setCenterCrop(x)}]),
nc:new Nk([3],[function(p,x){_.Nc(p,55,x)}]),
nd:new Nk([3],[function(p,x){_.Nc(p,53,x)}]),
ng:new Nk([3],[function(p,x){_.Nc(p,95,x)}]),
ngm:new Nk([3],[function(p,x){_.Nc(p,106,x)}]),
no:new Nk([3],[function(p,x){_.Nc(p,37,x)}]),
ns:new Nk([3],[function(p,x){_.Nc(p,40,x)}]),
nt0:new Nk([4],[function(p,x){_.J_(p,36,x)}]),
ntm:new Nk([3],[function(p,x){_.Nc(p,114,x)}]),
nu:new Nk([3],[function(p,x){_.Nc(p,46,x)}]),
nw:new Nk([3],[function(p,x){_.Nc(p,48,x)}]),
o:new Nk([1,3],[function(p,x){x=x==null?x:gLH(x);_.k3(p,7,x)},
function(p,x){_.Nc(p,27,x)}]),
p:new Nk([3,0],[function(p,x){_.Nc(p,19,x)},
function(p,x){_.WW(p,43,x)}]),
pa:new Nk([3],[function(p,x){_.Nc(p,61,x)}]),
pc:new Nk([0],[function(p,x){_.WW(p,88,x)}]),
pd:new Nk([3],[function(p,x){_.Nc(p,60,x)}]),
pf:new Nk([3],[function(p,x){_.Nc(p,67,x)}]),
pg:new Nk([3],[function(p,x){_.Nc(p,72,x)}]),
pi:new Nk([2],[function(p,x){_.k3(p,76,_.Rk(x))}]),
pp:new Nk([3],[function(p,x){_.Nc(p,52,x)}]),
pt:new Nk([4],[function(p,x){_.J_(p,111,x)}]),
q:new Nk([4],[function(p,x){_.J_(p,28,x)}]),
r:new Nk([3,0],[function(p,x){_.Nc(p,6,x)},
function(p,x){_.WW(p,26,x)}]),
ra:new Nk([3],[function(p,x){_.Nc(p,103,x)}]),
rf:new Nk([3],[function(p,x){_.Nc(p,100,x)}]),
rg:new Nk([3],[function(p,x){_.Nc(p,59,x)}]),
rh:new Nk([3],[function(p,x){_.Nc(p,49,x)}]),
rj:new Nk([3],[function(p,x){_.Nc(p,57,x)}]),
ro:new Nk([2],[function(p,x){_.k3(p,78,_.Rk(x))}]),
rp:new Nk([3],[function(p,x){_.Nc(p,58,x)}]),
rw:new Nk([3],[function(p,x){_.Nc(p,35,x)}]),
rwa:new Nk([3],[function(p,x){_.Nc(p,64,x)}]),
rwu:new Nk([3],[function(p,x){_.Nc(p,41,x)}]),
s:new Nk([3,0],[function(p,x){_.Nc(p,33,x)},
function(p,x){p.setSize(x)}]),
sb:new Nk([0],[function(p,x){_.WW(p,110,x)}]),
sc:new Nk([0],[function(p,x){_.WW(p,89,x)}]),
sg:new Nk([3],[function(p,x){_.Nc(p,82,x)}]),
sl:new Nk([0],[function(p,x){_.WW(p,109,x)}]),
sm:new Nk([3],[function(p,x){_.Nc(p,93,x)}]),
t:new Nk([4],[function(p,x){p.setToken(x)}]),
tm:new Nk([3],[function(p,x){_.Nc(p,113,x)}]),
u:new Nk([3],[function(p,x){_.Nc(p,18,x)}]),
ut:new Nk([3],[function(p,x){_.Nc(p,45,x)}]),
v:new Nk([0],[function(p,x){_.WW(p,62,x)}]),
vb:new Nk([0],[function(p,x){_.tT(p,68,x)}]),
vf:new Nk([4],[function(p,x){_.J_(p,102,x)}]),
vl:new Nk([0],[function(p,x){_.tT(p,69,x)}]),
vm:new Nk([3],[function(p,x){_.Nc(p,98,x)}]),
w:new Nk([0],[function(p,x){_.WW(p,12,x)}]),
x:new Nk([0],[function(p,x){_.WW(p,9,x)}]),
y:new Nk([0],[function(p,x){_.WW(p,10,x)}]),
ya:new Nk([2],[function(p,x){_.k3(p,77,_.Rk(x))}]),
z:new Nk([0],[function(p,x){_.WW(p,11,x)}])};
zc8.prototype.parse=function(p){var x=new Dqt,F=new Dqt;if(p=="")p=!0;else{p=p.split("-");for(var N=!0,h=0;h<p.length;h++){var c=p[h];if(c.length==0)N=!1;else{var M=c,f=!1;var K=M;var t=M.charAt(0);t!=t.toLowerCase()&&(f=!0,K=M.charAt(0).toLowerCase()+M.substring(1));var d=tjH;for(t=1;t<=K.length;++t){var v=d,C=K.substring(0,t);if(C.length==0?v.isEmpty():!Kpe(v,C))break}K=t==1?null:(K=d.get(K.substring(0,t-1)))?{option:M.substring(0,t-1),value:M.substring(t-1),signed:f,attributes:K}:null;if(K){M=
[];f=[];t=!1;for(d=0;d<K.attributes.types.length;d++){v=K.attributes.types[d];var X=K.value;C=h;if(K.signed&&v==1)for(var Q=X.length;Q<12&&C<p.length-1;)X+="-"+p[C+1],Q=X.length,++C;else if(v==2)for(;C<p.length-1&&p[C+1].match(/^[\d\.]/);)X+="-"+p[C+1],++C;Q=K.attributes.setters[d];X=v6m(this,v)(K.option,X,x,F,Q);if(X===null){t=!0;h=C;break}else M.push(v),f.push(X)}if(!t)for(K=0;K<f.length;K++)d=M[K],X=f[K],JAk(this,d)(c,X);N=N&&t}else N=!1}}p=N}return new C$k(x,F,p)};
var h4=function(p,x,F,N,h,c){h(F,x);p=p.charAt(0);c=c(p==p.toUpperCase());h(N,c)};
_.l=zc8.prototype;_.l.parseAndSetIntOption_=function(p,x,F,N,h){if(x=="")return 0;isFinite(x)&&(x=String(x));x=typeof x==="string"?/^\s*-?0x/i.test(x)?parseInt(x,16):parseInt(x,10):NaN;if(isNaN(x))return 1;h4(p,x,F,N,h,Number);return null};
_.l.logIntParseError_=function(){};
_.l.parseAndSetFloatOption_=function(p,x,F,N,h){if(x=="")return 0;var c=Number(x);x=c==0&&_.tz(x)?NaN:c;if(isNaN(x))return 1;h4(p,x,F,N,h,Number);return null};
_.l.logFloatParseError_=function(){};
_.l.parseAndSetBoolOption_=function(p,x,F,N,h){if(x!="")return 2;h4(p,!0,F,N,h,Boolean);return null};
_.l.logBoolParseError_=function(){};
_.l.parseAndSetStringOption_=function(p,x,F,N,h){if(x=="")return 0;h4(p,x,F,N,h,function(c){return c?"1":""});
return null};
_.l.logStringParseError_=function(){};
_.l.parseAndSetUint64Base64Option_=function(p,x,F,N,h){if(x=="")return 0;h4(p,x,F,N,h,function(c){return c?1:0});
return null};
var v6m=function(p,x){switch(x){case 0:return(0,_.CH)(p.parseAndSetIntOption_,p);case 2:return(0,_.CH)(p.parseAndSetFloatOption_,p);case 3:return(0,_.CH)(p.parseAndSetBoolOption_,p);case 4:return(0,_.CH)(p.parseAndSetStringOption_,p);case 1:return(0,_.CH)(p.parseAndSetUint64Base64Option_,p);default:return function(){}}},JAk=function(p,x){switch(x){case 0:return(0,_.CH)(p.logIntParseError_,p);
case 2:return(0,_.CH)(p.logFloatParseError_,p);case 3:return(0,_.CH)(p.logBoolParseError_,p);case 4:case 1:return(0,_.CH)(p.logStringParseError_,p);default:return function(){}}},C$k=function(p,x,F){this.valueProto_=p;
this.signatureFlagProto_=x;this.JSC$17151_valid_=F};
C$k.prototype.isValid=function(){return this.JSC$17151_valid_};var Eqc=function(p){this.JSC$17152_parser_=null;this.JSC$17152_components_=[];this.JSC$17152_parsedOptions_=null;SB_(this,p)},rAX=function(p){p.JSC$17152_parser_==null&&(p.JSC$17152_parser_=new zc8);
return p.JSC$17152_parser_},SB_=function(p,x){p.JSC$17152_parsedOptions_=x?typeof x==="string"?rAX(p).parse(x):x:rAX(p).parse("")},lN=function(p,x){return p==x?!1:!0};
_.l=Eqc.prototype;_.l.JSC$17154_setCrop=function(p){p=p||void 0;var x=this.JSC$17152_parsedOptions_,F=x.valueProto_;lN(p,_.y8(F,2),_.y8(x.signatureFlagProto_,2))&&_.Nc(F,2,p);return this};
_.l.JSC$17154_setCircleCrop=function(p){p=p||void 0;var x=this.JSC$17152_parsedOptions_,F=x.valueProto_;lN(p,_.s6(F,51),_.s6(x.signatureFlagProto_,51))&&_.Nc(F,51,p);return this};
_.l.JSC$17154_setImageCrop=function(p){p=p||void 0;var x=this.JSC$17152_parsedOptions_,F=x.valueProto_;lN(p,_.s6(F,32),_.s6(x.signatureFlagProto_,32))&&_.Nc(F,32,p);return this};
_.l.JSC$17154_setHeight=function(p){var x=this.JSC$17152_parsedOptions_,F=x.valueProto_;lN(p,F.getHeight(),x.signatureFlagProto_.getHeight())&&_.WW(F,13,p);return this};
_.l.setCenterCrop=function(p){p=p||void 0;var x=this.JSC$17152_parsedOptions_,F=x.valueProto_;lN(p,_.y8(F,20),_.y8(x.signatureFlagProto_,20))&&F.setCenterCrop(p);return this};
_.l.JSC$17154_setSmartCrop=function(p){p=p||void 0;var x=this.JSC$17152_parsedOptions_,F=x.valueProto_;lN(p,_.y8(F,19),_.y8(x.signatureFlagProto_,19))&&_.Nc(F,19,p);return this};
_.l.JSC$17154_setPad=function(p){p=p||void 0;var x=this.JSC$17152_parsedOptions_,F=x.valueProto_;lN(p,_.s6(F,60),_.s6(x.signatureFlagProto_,60))&&_.Nc(F,60,p);return this};
_.l.JSC$17154_setSmartCropUseFace=function(p){p=p||void 0;var x=this.JSC$17152_parsedOptions_,F=x.valueProto_;lN(p,_.y8(F,67),_.y8(x.signatureFlagProto_,67))&&_.Nc(F,67,p);return this};
_.l.JSC$17154_setSmartCropNoClip=function(p){p=p||void 0;var x=this.JSC$17152_parsedOptions_,F=x.valueProto_;lN(p,_.y8(F,52),_.y8(x.signatureFlagProto_,52))&&_.Nc(F,52,p);return this};
_.l.setSize=function(p){var x=this.JSC$17152_parsedOptions_,F=x.valueProto_;lN(p,F.getSize(),x.signatureFlagProto_.getSize())&&F.setSize(p);return this};
_.l.setToken=function(p){p=p||void 0;var x=this.JSC$17152_parsedOptions_,F=x.valueProto_;lN(p,F.getToken(),x.signatureFlagProto_.getToken())&&F.setToken(p);return this};
_.l.JSC$17154_setWidth=function(p){var x=this.JSC$17152_parsedOptions_,F=x.valueProto_;lN(p,F.getWidth(),x.signatureFlagProto_.getWidth())&&_.WW(F,12,p);return this};
_.l.clearOptions=function(){SB_(this,"");return this};
_.l.build=function(){this.JSC$17152_components_.length=0;var p=this.JSC$17152_parsedOptions_,x=p.valueProto_;p=p.signatureFlagProto_;cF(this,"s",x.getSize(),p.getSize());cF(this,"w",x.getWidth(),p.getWidth());ar(this,"c",_.y8(x,2),_.y8(p,2));ar(this,"d",_.y8(x,3),_.y8(p,3));cF(this,"h",x.getHeight(),p.getHeight());ar(this,"s",_.s6(x,33),_.s6(p,33));ar(this,"h",x.getHtml(),p.getHtml());ar(this,"p",_.y8(x,19),_.y8(p,19));ar(this,"pp",_.y8(x,52),_.y8(p,52));ar(this,"pf",_.y8(x,67),_.y8(p,67));ar(this,
"n",_.y8(x,20),_.y8(p,20));cF(this,"r",_.nT(x,26),_.nT(p,26));ar(this,"r",_.y8(x,6),_.y8(p,6));ar(this,"o",_.s6(x,27),_.s6(p,27));var F=Q7_(_.da(x,7));Mk(this,"o",F,Q7_(_.da(p,7)));F=Q7_(_.da(x,29));Mk(this,"j",F,Q7_(_.da(p,29)));cF(this,"x",_.nT(x,9),_.nT(p,9));cF(this,"y",_.nT(x,10),_.nT(p,10));cF(this,"z",_.nT(x,11),_.nT(p,11));ar(this,"g",_.y8(x,14),_.y8(p,14));cF(this,"e",_.nT(x,15),_.nT(p,15));Mk(this,"f",_.fH(x,16),_.fH(p,16));ar(this,"k",_.s6(x,17),_.s6(p,17));ar(this,"u",_.s6(x,18),!0);ar(this,
"ut",_.s6(x,45),!0);ar(this,"i",_.s6(x,22),!0);ar(this,"a",_.s6(x,21),_.s6(p,21));ar(this,"b",_.y8(x,23),_.y8(p,23));cF(this,"b",_.nT(x,38),_.nT(p,38));cF(this,"c",_.nT(x,39),_.nT(p,39),16,8);Mk(this,"q",_.fH(x,28),_.fH(p,28));ar(this,"fh",_.s6(x,30),_.s6(p,30));ar(this,"fv",_.s6(x,31),_.s6(p,31));ar(this,"fg",_.y8(x,34),_.y8(p,34));ar(this,"ci",_.s6(x,32),_.s6(p,32));Mk(this,"t",x.getToken(),p.getToken());Mk(this,"nt0",_.fH(x,36),_.fH(p,36));ar(this,"rw",_.y8(x,35),_.y8(p,35));ar(this,"rwu",_.y8(x,
41),_.y8(p,41));ar(this,"rwa",_.y8(x,64),_.y8(p,64));ar(this,"nw",_.y8(x,48),_.y8(p,48));ar(this,"rh",_.y8(x,49),_.y8(p,49));ar(this,"no",_.y8(x,37),_.y8(p,37));ar(this,"ns",_.s6(x,40),_.s6(p,40));cF(this,"k",_.nT(x,42),_.nT(p,42));cF(this,"p",_.nT(x,43),_.nT(p,43));cF(this,"l",_.nT(x,44),_.nT(p,44));cF(this,"v",_.nT(x,62),_.nT(p,62));ar(this,"nu",_.s6(x,46),_.s6(p,46));ar(this,"ft",_.s6(x,50),_.s6(p,50));ar(this,"cc",_.s6(x,51),_.s6(p,51));ar(this,"nd",_.s6(x,53),_.s6(p,53));ar(this,"ip",_.s6(x,
54),_.s6(p,54));ar(this,"nc",_.s6(x,55),_.s6(p,55));cF(this,"a",_.nT(x,56),_.nT(p,56));ar(this,"rj",_.s6(x,57),_.s6(p,57));ar(this,"rp",_.s6(x,58),_.s6(p,58));ar(this,"rg",_.s6(x,59),_.s6(p,59));ar(this,"pd",_.s6(x,60),_.s6(p,60));ar(this,"pa",_.s6(x,61),_.s6(p,61));cF(this,"m",_.nT(x,63),_.nT(p,63));cF(this,"vb",_.z5(x,68),_.z5(p,68));cF(this,"vl",_.z5(x,69),_.z5(p,69));ar(this,"lf",_.s6(x,65),_.s6(p,65));ar(this,"mv",_.s6(x,66),_.s6(p,66));ar(this,"id",_.s6(x,70),_.s6(p,70));cF(this,"ic",_.nT(x,
71),!0);ar(this,"pg",_.y8(x,72),_.y8(p,72));ar(this,"mo",_.s6(x,73),_.s6(p,73));ar(this,"al",_.s6(x,74),_.s6(p,74));cF(this,"iv",_.z5(x,75),_.z5(p,75));cF(this,"pi",_.CT(x,76),_.CT(p,76));cF(this,"ya",_.CT(x,77),_.CT(p,77));cF(this,"ro",_.CT(x,78),_.CT(p,78));cF(this,"fo",_.CT(x,79),_.CT(p,79));ar(this,"df",_.s6(x,80),_.s6(p,80));Mk(this,"mm",_.fH(x,81),_.fH(p,81));ar(this,"sg",_.s6(x,82),_.s6(p,82));ar(this,"gd",_.s6(x,83),_.s6(p,83));ar(this,"fm",_.s6(x,84),_.s6(p,84));cF(this,"ba",_.nT(x,85),_.nT(p,
85));cF(this,"br",_.nT(x,86),_.nT(p,86));cF(this,"bc",x.getBackgroundColor(),p.getBackgroundColor(),16,8);cF(this,"pc",_.nT(x,88),_.nT(p,88),16,8);cF(this,"sc",_.nT(x,89),_.nT(p,89),16,8);ar(this,"dv",_.s6(x,90),_.s6(p,90));ar(this,"md",_.s6(x,91),_.s6(p,91));cF(this,"cp",_.nT(x,92),_.nT(p,92));ar(this,"sm",_.s6(x,93),_.s6(p,93));cF(this,"cv",_.nT(x,94),_.nT(p,94));ar(this,"ng",_.s6(x,95),_.s6(p,95));ar(this,"il",_.s6(x,96),_.s6(p,96));ar(this,"lo",_.s6(x,97),_.s6(p,97));ar(this,"vm",_.s6(x,98),_.s6(p,
98));Mk(this,"dc",_.fH(x,99),_.fH(p,99));ar(this,"rf",_.s6(x,100),_.s6(p,100));Mk(this,"vf",_.fH(x,102),_.fH(p,102));ar(this,"ra",_.y8(x,103),_.y8(p,103));ar(this,"ckm",_.s6(x,104),_.s6(p,104));ar(this,"gm",_.s6(x,105),_.s6(p,105));ar(this,"ngm",_.s6(x,106),_.s6(p,106));cF(this,"em",_.nT(x,107),_.nT(p,107));ar(this,"cr",_.s6(x,108),_.s6(p,108));cF(this,"sl",x.getStoryboardLevel(),p.getStoryboardLevel());cF(this,"sb",_.nT(x,110),_.nT(p,110));Mk(this,"pt",_.fH(x,111),_.fH(p,111));Mk(this,"gce",_.fH(x,
112),_.fH(p,112));ar(this,"tm",_.s6(x,113),_.s6(p,113));ar(this,"ntm",_.s6(x,114),_.s6(p,114));return this.JSC$17152_components_.join("-")};
var cF=function(p,x,F,N,h,c){if(F!=null){var M=h==void 0||h!=10&&h!=16?10:h;F=F.toString(M);h=new LJ8;h.append(M==16?"0x":"");M=h.append;c==void 0?c="":(c-=F.length,c=c<=0?"":(0,_.z6v)("0",c));M.call(h,c);h.append(F);E6e(p,x,h.toString(),!!N)}},ar=function(p,x,F,N){F&&E6e(p,x,"",!!N)},Mk=function(p,x,F,N){F&&E6e(p,x,F,!!N)},E6e=function(p,x,F,N){N&&(x=x.charAt(0).toUpperCase()+x.substring(1));
p.JSC$17152_components_.push(x+F)};_.NL(nL,Eqc);_.l=nL.prototype;_.l.JSC$17154_setCrop=function(p){p&&DU(this);return nL.superClass_.JSC$17154_setCrop.call(this,p)};
_.l.JSC$17154_setHeight=function(p){p=p==null||p<0?void 0:p;p!=null&&this.setSize();return nL.superClass_.JSC$17154_setHeight.call(this,p)};
_.l.JSC$17154_setImageCrop=function(p){p&&DU(this);return nL.superClass_.JSC$17154_setImageCrop.call(this,p)};
_.l.JSC$17154_setCircleCrop=function(p){p&&DU(this);return nL.superClass_.JSC$17154_setCircleCrop.call(this,p)};
_.l.setSize=function(p){_.IJ(p)&&(p=Math.max(p.width,p.height));p=p==null||p<0?void 0:p;p!=null&&(this.JSC$17154_setWidth(),this.JSC$17154_setHeight());return nL.superClass_.setSize.call(this,p)};
_.l.JSC$17154_setSmartCrop=function(p){p&&DU(this);return nL.superClass_.JSC$17154_setSmartCrop.call(this,p)};
_.l.JSC$17154_setSmartCropNoClip=function(p){p&&DU(this);return nL.superClass_.JSC$17154_setSmartCropNoClip.call(this,p)};
_.l.JSC$17154_setSmartCropUseFace=function(p){p&&DU(this);return nL.superClass_.JSC$17154_setSmartCropUseFace.call(this,p)};
_.l.setCenterCrop=function(p){p&&DU(this);return nL.superClass_.setCenterCrop.call(this,p)};
_.l.JSC$17154_setPad=function(p){p&&DU(this);return nL.superClass_.JSC$17154_setPad.call(this,p)};
_.l.JSC$17154_setWidth=function(p){p=p==null||p<0?void 0:p;p!=null&&this.setSize();return nL.superClass_.JSC$17154_setWidth.call(this,p)};
var X68=function(p){p.clearOptions();var x=p.JSC$17152_parsedOptions_,F=x.valueProto_;lN(!0,_.y8(F,3),_.y8(x.signatureFlagProto_,3))&&_.Nc(F,3,!0);return p},DU=function(p){p.setCenterCrop();
p.JSC$17154_setCircleCrop();p.JSC$17154_setCrop();p.JSC$17154_setImageCrop();p.JSC$17154_setPad();p.JSC$17154_setSmartCrop();p.JSC$17154_setSmartCropNoClip();p.JSC$17154_setSmartCropUseFace()};
nL.prototype.build=function(){var p=this.JSC$17152_parsedOptions_.valueProto_;_.s6(p,18)||_.s6(p,45)?p.getSize()||this.setSize(0):(p=this.JSC$17152_parsedOptions_.valueProto_,p.getSize()||p.getWidth()||p.getHeight()||(this.setSize(),this.JSC$17154_setHeight(),this.JSC$17154_setWidth(),DU(this)));return nL.superClass_.build.call(this)};var g6H=/^[^\/]*\/\//,fA=function(p,x){x=x===void 0?!1:x;this.original_=p;this.originalPrefix_="";(p=this.original_.match(g6H))&&p[0]?(this.originalPrefix_=p[0],p=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):p="http://"+this.original_;this.uri_=_.G4(p,!0);this.isFreeformUrl_=x;this.JSC$17158_valid_=!0;this.obfuscated_=!1},Q38=function(p,x){p.JSC$17160_pathPrefix_=p.JSC$17160_pathPrefix_?p.JSC$17160_pathPrefix_+("/"+x):x},KA=function(p){if(p.JSC$17160_components_==
void 0){var x=p.uri_.getPath().substring(1);
p.JSC$17160_pathPrefix_=null;if(p.isFreeformUrl_){p.JSC$17160_components_=[];if((x.match(/=/g)||[]).length>1)return p.JSC$17158_valid_=!1,p.JSC$17160_components_;var F=x.indexOf("=");F!=-1?(p.JSC$17160_components_.push(x.substr(0,F)),p.JSC$17160_components_.push(x.substr(F+1))):p.JSC$17160_components_.push(x);return p.JSC$17160_components_}p.JSC$17160_components_=x.split("/");x=p.JSC$17160_components_.length;x>2&&p.JSC$17160_components_[0]=="u"&&(Q38(p,p.JSC$17160_components_[0]+"/"+p.JSC$17160_components_[1]),
p.JSC$17160_components_.shift(),p.JSC$17160_components_.shift(),x-=2);if(x==0||x==4||x>7)return p.JSC$17158_valid_=!1,p.JSC$17160_components_;if(x==2)Q38(p,p.JSC$17160_components_[0]);else if(p.JSC$17160_components_[0]=="image")Q38(p,p.JSC$17160_components_[0]);else if(x==7||x==3)return p.JSC$17158_valid_=!1,p.JSC$17160_components_;if(x<=3){p.obfuscated_=!0;x==3&&(Q38(p,p.JSC$17160_components_[1]),p.JSC$17160_components_.shift(),--x);--x;F=p.JSC$17160_components_[x];var N=F.indexOf("=");N!=-1&&(p.JSC$17160_components_[x]=
F.substr(0,N),p.JSC$17160_components_.push(F.substr(N+1)))}}return p.JSC$17160_components_};
fA.prototype.isValid=function(){KA(this);return this.JSC$17158_valid_};
fA.prototype.isObfuscated=function(){KA(this);return this.obfuscated_};
var z0H=function(p){KA(p);return p.isFreeformUrl_},qk=function(p){KA(p);
p.JSC$17160_pathPrefix_==void 0&&(p.JSC$17160_pathPrefix_=null);return p.JSC$17160_pathPrefix_},s38=function(p){switch(KA(p).length){case 7:return!0;
case 6:return qk(p)==null;case 5:return!1;case 3:return!0;case 2:return qk(p)==null;case 1:return!1;default:return!1}},ZU=function(p,x){if(z0H(p))a:{switch(x){case 7:x=0;
break;case 4:if(!s38(p)){p=null;break a}x=1;break;default:p=null;break a}p=KA(p)[x]}else if(p.isObfuscated())a:{var F=qk(p)!=null?1:0;switch(x){case 6:x=F;break;case 4:if(!s38(p)){p=null;break a}x=1+F;break;default:p=null;break a}p=KA(p)[x]}else a:{F=qk(p)!=null?1:0;switch(x){case 0:x=F;break;case 1:x=1+F;break;case 2:x=2+F;break;case 3:x=3+F;break;case 4:if(!s38(p)){p=null;break a}x=4+F;break;case 5:x=s38(p)?1:0;x=4+F+x;break;default:p=null;break a}p=KA(p)[x]}return p};
fA.prototype.getOptions=function(){this.options_==void 0&&(this.options_=ZU(this,4));return this.options_};var QIm=function(){};
QIm.prototype.parse=function(p,x){return new Xc8(p,x===void 0?!1:x)};
var Xc8=function(p,x){fA.call(this,p,x===void 0?!1:x)};
_.E(Xc8,fA);_.NL(y9,nL);var gqH;y9.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
y9.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var p=y9.superClass_.build.call(this),x=[];qk(this.parsedImageUrl_)!=null&&x.push(qk(this.parsedImageUrl_));var F=z0H(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var N=this.parsedImageUrl_;N.obfuscatedData_==void 0&&(N.obfuscatedData_=ZU(N,6));x.push(N.obfuscatedData_+(p?"="+p:""))}else if(F){N=x.push;var h=this.parsedImageUrl_;h.freeformUrlPath_===void 0&&(h.freeformUrlPath_=ZU(h,
7));N.call(x,h.freeformUrlPath_);p&&x.push(p)}else N=x.push,h=this.parsedImageUrl_,h.obfuscatedGaiaId_==void 0&&(h.obfuscatedGaiaId_=ZU(h,0)),N.call(x,h.obfuscatedGaiaId_),N=x.push,h=this.parsedImageUrl_,h.photoId_==void 0&&(h.photoId_=ZU(h,1)),N.call(x,h.photoId_),N=x.push,h=this.parsedImageUrl_,h.imageVersion_==void 0&&(h.imageVersion_=ZU(h,2)),N.call(x,h.imageVersion_),N=x.push,h=this.parsedImageUrl_,h.signature_==void 0&&(h.signature_=ZU(h,3)),N.call(x,h.signature_),p&&x.push(p),p=x.push,N=this.parsedImageUrl_,
N.filename_==void 0&&(N.filename_=ZU(N,5)),p.call(x,N.filename_);x=F?x.join("="):x.join("/");x=_.G4(this.protocolPrefix_+this.JSC$17166_domain_+"/"+x+(this.JSC$17166_query_?"?"+this.JSC$17166_query_:"")).toString();x.startsWith("%3a//")&&(x=x.replace("%3a//","://"));return x};var n6c=_.B$(["viewBox"]),yA8=_.B$(["width"]),bJa=_.B$(["height"]),AAm=_.B$(["fill"]),uA8=_.B$(["id"]),YBH=_.B$(["x"]),w68=_.B$(["y"]);sI8.prototype.getLength=function(){return this.parsedData.length};
sI8.prototype.write=function(p){for(var x=0,F=this.parsedData.length;x<F;x++)p.put(this.parsedData[x],8)};
var wct=function(p,x){var F=new sI8(x);p.dataList.push(F);F=p.errorCorrectLevel;var N=1,h=encodeURI(x).toString().replace(/%[0-9a-fA-F]{2}/g,"a");x=h.length+(h.length!=x?3:0);h=0;for(var c=t4.length;h<=c;h++){var M=0;switch(F){case 1:M=t4[h][0];break;case 0:M=t4[h][1];break;case 3:M=t4[h][2];break;case 2:M=t4[h][3]}if(x<=M)break;else N++}if(N>t4.length)throw Error("tk");p.typeNumber=N;p.dataCache=null};
nq8.prototype.isDark=function(p,x){if(p<0||this.moduleCount<=p||x<0||this.moduleCount<=x)throw Error("lk`"+p+"`"+x);return this.modules[p][x]};
for(var GuH=function(p,x,F){p.moduleCount=p.typeNumber*4+17;p.modules=Array(p.moduleCount);for(var N=0;N<p.moduleCount;N++){p.modules[N]=Array(p.moduleCount);for(var h=0;h<p.moduleCount;h++)p.modules[N][h]=null}G28(p,0,0);G28(p,p.moduleCount-7,0);G28(p,0,p.moduleCount-7);N=Vj8[p.typeNumber-1];for(h=0;h<N.length;h++)for(var c=0;c<N.length;c++){var M=N[h],f=N[c];if(p.modules[M][f]==null)for(var K=-2;K<=2;K++)for(var t=-2;t<=2;t++)p.modules[M+K][f+t]=K==-2||K==2||t==-2||t==2||K==0&&t==0?!0:!1}for(N=
8;N<p.moduleCount-8;N++)p.modules[N][6]==null&&(p.modules[N][6]=N%2==0);for(N=8;N<p.moduleCount-8;N++)p.modules[6][N]==null&&(p.modules[6][N]=N%2==0);N=p.errorCorrectLevel<<3|F;for(h=N<<10;dd(h)-dd(1335)>=0;)h^=1335<<dd(h)-dd(1335);N=(N<<10|h)^21522;for(h=0;h<15;h++)c=!x&&(N>>h&1)==1,h<6?p.modules[h][8]=c:h<8?p.modules[h+1][8]=c:p.modules[p.moduleCount-15+h][8]=c;for(h=0;h<15;h++)c=!x&&(N>>h&1)==1,h<8?p.modules[8][p.moduleCount-h-1]=c:h<9?p.modules[8][15-h-1+1]=c:p.modules[8][15-h-1]=c;p.modules[p.moduleCount-
8][8]=!x;if(p.typeNumber>=7){N=p.typeNumber;for(h=N<<12;dd(h)-dd(7973)>=0;)h^=7973<<dd(h)-dd(7973);N=N<<12|h;for(h=0;h<18;h++)c=!x&&(N>>h&1)==1,p.modules[Math.floor(h/3)][h%3+p.moduleCount-8-3]=c;for(h=0;h<18;h++)c=!x&&(N>>h&1)==1,p.modules[h%3+p.moduleCount-8-3][Math.floor(h/3)]=c}if(p.dataCache==null){h=p.typeNumber;c=p.dataList;x=p.errorCorrectLevel;N=Wpm(h,x);if(N==void 0)throw Error("sk`"+h+"`"+x);M=N.length/3;x=[];for(f=0;f<M;f++){K=N[f*3];t=N[f*3+1];for(var d=N[f*3+2],v=0;v<K;v++)x.push(new yID(t,
d))}N=new bE8;for(M=0;M<c.length;M++)f=c[M],N.put(f.mode,4),N.put(f.getLength(),HJH(f.mode,h)),f.write(N);for(M=h=0;M<x.length;M++)h+=x[M].dataCount;if(N.length>h*8)throw Error("mk`"+N.length+"`"+h*8);for(N.length+4<=h*8&&N.put(0,4);N.length%8!=0;)mq_(N,!1);for(;!(N.length>=h*8);){N.put(236,8);if(N.length>=h*8)break;N.put(17,8)}c=h=t=0;M=Array(x.length);f=Array(x.length);for(K=0;K<x.length;K++){v=x[K].dataCount;var C=x[K].totalCount-v;h=Math.max(h,v);c=Math.max(c,C);M[K]=Array(v);for(d=0;d<M[K].length;d++)M[K][d]=
255&N.buffer[d+t];t+=v;d=C;v=new b_([1],0);for(C=0;C<d;C++)v=v.multiply(new b_([1,o6k(C)],0));d=v;v=(new b_(M[K],d.getLength()-1)).mod(d);f[K]=Array(d.getLength()-1);for(d=0;d<f[K].length;d++)C=d+v.getLength()-f[K].length,f[K][d]=C>=0?v.get(C):0}for(d=N=0;d<x.length;d++)N+=x[d].totalCount;N=Array(N);for(d=t=0;d<h;d++)for(K=0;K<x.length;K++)d<M[K].length&&(N[t++]=M[K][d]);for(d=0;d<c;d++)for(K=0;K<x.length;K++)d<f[K].length&&(N[t++]=f[K][d]);p.dataCache=N}x=p.dataCache;N=-1;h=p.moduleCount-1;c=7;M=
0;for(f=p.moduleCount-1;f>0;f-=2)for(f==6&&f--;;){for(K=0;K<2;K++)p.modules[h][f-K]==null&&(t=!1,M<x.length&&(t=(x[M]>>>c&1)==1),OJ_(F,h,f-K)&&(t=!t),p.modules[h][f-K]=t,c--,c==-1&&(M++,c=7));h+=N;if(h<0||p.moduleCount<=h){h-=N;N=-N;break}}},G28=function(p,x,F){for(var N=-1;N<=7;N++)if(!(x+N<=-1||p.moduleCount<=x+N))for(var h=-1;h<=7;h++)F+h<=-1||p.moduleCount<=F+h||(p.modules[x+N][F+h]=0<=N&&N<=6&&(h==0||h==6)||0<=h&&h<=6&&(N==0||N==6)||2<=N&&N<=4&&2<=h&&h<=4?!0:!1)},Vw8=function(p){for(var x=0,
F=0,N=0;N<8;N++){GuH(p,!0,N);
var h=p;for(var c=h.moduleCount,M=0,f=0;f<c;f++)for(var K=0;K<c;K++){for(var t=0,d=h.isDark(f,K),v=-1;v<=1;v++)if(!(f+v<0||c<=f+v))for(var C=-1;C<=1;C++)K+C<0||c<=K+C||(v!=0||C!=0)&&d==h.isDark(f+v,K+C)&&t++;t>5&&(M+=3+t-5)}for(f=0;f<c-1;f++)for(K=0;K<c-1;K++)if(t=0,h.isDark(f,K)&&t++,h.isDark(f+1,K)&&t++,h.isDark(f,K+1)&&t++,h.isDark(f+1,K+1)&&t++,t==0||t==4)M+=3;for(f=0;f<c;f++)for(K=0;K<c-6;K++)h.isDark(f,K)&&!h.isDark(f,K+1)&&h.isDark(f,K+2)&&h.isDark(f,K+3)&&h.isDark(f,K+4)&&!h.isDark(f,K+5)&&
h.isDark(f,K+6)&&(M+=40);for(K=0;K<c;K++)for(f=0;f<c-6;f++)h.isDark(f,K)&&!h.isDark(f+1,K)&&h.isDark(f+2,K)&&h.isDark(f+3,K)&&h.isDark(f+4,K)&&!h.isDark(f+5,K)&&h.isDark(f+6,K)&&(M+=40);for(K=t=0;K<c;K++)for(f=0;f<c;f++)h.isDark(f,K)&&t++;h=M+=Math.abs(100*t/c/c-50)/5*10;if(N==0||x>h)x=h,F=N}return F},Vj8=[[],
[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]],dd=function(p){for(var x=0;p!=0;)x++,p>>>=1;return x},OJ_=function(p,x,F){switch(p){case 0:return(x+F)%2==0;
case 1:return x%2==0;case 2:return F%3==0;case 3:return(x+F)%3==0;case 4:return(Math.floor(x/2)+Math.floor(F/3))%2==0;case 5:return x*F%2+x*F%3==0;case 6:return(x*F%2+x*F%3)%2==0;case 7:return(x*F%3+(x+F)%2)%2==0;default:throw Error("nk`"+p);}},HJH=function(p,x){if(1<=x&&x<10)switch(p){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("ok`"+p);}else if(x<27)switch(p){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("ok`"+p);}else if(x<41)switch(p){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("ok`"+p);}else throw Error("pk`"+x);},vF=function(p){if(p<1)throw Error("qk`"+p);
return j3D[p]},o6k=function(p){for(;p<0;)p+=255;
for(;p>=256;)p-=255;return J4[p]},J4=Array(256),j3D=Array(256),Lpa=0;Lpa<8;Lpa++)J4[Lpa]=1<<Lpa;
for(var CA=8;CA<256;CA++)J4[CA]=J4[CA-4]^J4[CA-5]^J4[CA-6]^J4[CA-8];for(var P$t=0;P$t<255;P$t++)j3D[J4[P$t]]=P$t;b_.prototype.get=function(p){return this.num[p]};
b_.prototype.getLength=function(){return this.num.length};
b_.prototype.multiply=function(p){for(var x=Array(this.getLength()+p.getLength()-1),F=0;F<this.getLength();F++)for(var N=0;N<p.getLength();N++)x[F+N]^=o6k(vF(this.get(F))+vF(p.get(N)));return new b_(x,0)};
b_.prototype.mod=function(p){if(this.getLength()-p.getLength()<0)return this;for(var x=vF(this.get(0))-vF(p.get(0)),F=Array(this.getLength()),N=0;N<this.getLength();N++)F[N]=this.get(N);for(N=0;N<p.getLength();N++)F[N]^=o6k(vF(p.get(N))+x);return(new b_(F,0)).mod(p)};
var TmD=[[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]],Wpm=function(p,x){switch(x){case 1:return TmD[(p-1)*4];case 0:return TmD[(p-1)*4+1];case 3:return TmD[(p-1)*4+2];case 2:return TmD[(p-1)*4+3]}};
bE8.prototype.get=function(p){return(this.buffer[Math.floor(p/8)]>>>7-p%8&1)==1};
bE8.prototype.put=function(p,x){for(var F=0;F<x;F++)mq_(this,(p>>>x-F-1&1)==1)};
var mq_=function(p,x){var F=Math.floor(p.length/8);p.buffer.length<=F&&p.buffer.push(0);x&&(p.buffer[F]|=128>>>p.length%8);p.length++},t4=[[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]],YWt=function(){var p=function(x,F){this.JSC$17186__el=x;this.JSC$17186__htOption=F};
p.prototype.draw=function(x){function F(d,v){d=document.createElementNS("http://www.w3.org/2000/svg",d);for(var C in v)v.hasOwnProperty(C)&&(C==="href"?_.eTc(d,v[C]):_.$E([_.ei(n6c),_.ei(yA8),_.ei(bJa),_.ei(AAm),_.ei(uA8),_.ei(YBH),_.ei(w68)],d,C,v[C]));return d}
var N=this.JSC$17186__htOption,h=this.JSC$17186__el,c=x.moduleCount;this.clear();var M=F("svg",{viewBox:"0 0 "+String(c)+" "+String(c),width:"100%",height:"100%",fill:N.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});h.appendChild(M);M.appendChild(F("rect",{fill:N.colorLight,width:"100%",height:"100%"}));M.appendChild(F("rect",{fill:N.colorDark,width:"1",height:"1",id:"template"}));for(var f=0;f<c;f++)for(var K=0;K<c;K++)if(x.isDark(f,K)){var t=F("use",{x:String(f),y:String(K),href:"#template"});
M.appendChild(t)}};
p.prototype.clear=function(){for(;this.JSC$17186__el.hasChildNodes();)this.JSC$17186__el.removeChild(this.JSC$17186__el.lastChild)};
return p}(),uoH=document.documentElement.tagName.toLowerCase()==="svg"?YWt:typeof CanvasRenderingContext2D!="undefined"?function(){var p=function(x,F){this._bIsPainted=!1;
AI8();this.JSC$17186__htOption=F;this._elCanvas=document.createElement("canvas");this._elCanvas.width=F.width;this._elCanvas.height=F.height;x.appendChild(this._elCanvas);this.JSC$17186__el=x;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$17186__el.appendChild(this._elImage);this._bSupportDataURI=null};
p.prototype._onMakeImage=function(){var x=this._elCanvas.toDataURL("image/png");this._elImage.src=x;this._elImage.style.display="block";this._elCanvas.style.display="none"};
p.prototype._safeSetDataURI=function(x,F){var N=this;N._fFail=F;N._fSuccess=x;N._bSupportDataURI===null?(x=_.KH("IMG"),F=function(){N._bSupportDataURI=!1;N._fFail&&N._fFail.call(N)},x.onabort=F,x.onerror=F,x.onload=function(){N._bSupportDataURI=!0;
N._fSuccess&&N._fSuccess.call(N)},x.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):N._bSupportDataURI===!0&&N._fSuccess?N._fSuccess.call(N):N._bSupportDataURI===!1&&N._fFail&&N._fFail.call(N)};
p.prototype.draw=function(x){var F=this._oContext,N=this.JSC$17186__htOption,h=x.moduleCount,c=N.width/h,M=N.height/h,f=Math.round(c),K=Math.round(M);this._elImage.style.display="none";this.clear();for(var t=0;t<h;t++)for(var d=0;d<h;d++){var v=x.isDark(t,d),C=d*c,X=t*M;F.strokeStyle=v?N.colorDark:N.colorLight;F.lineWidth=1;F.fillStyle=v?N.colorDark:N.colorLight;F.fillRect(C,X,c,M);F.strokeRect(Math.floor(C)+.5,Math.floor(X)+.5,f,K);F.strokeRect(Math.ceil(C)-.5,Math.ceil(X)-.5,f,K)}this._bIsPainted=
!0};
p.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
p.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
p.prototype.round=function(x){return x?Math.floor(x*1E3)/1E3:x};
return p}():function(){var p=function(x,F){this.JSC$17186__el=x;
this.JSC$17186__htOption=F};
p.prototype.draw=function(x){for(var F=this.JSC$17186__htOption,N=this.JSC$17186__el,h=x.moduleCount,c=Math.floor(F.width/h),M=Math.floor(F.height/h),f=['<table style="border:0;border-collapse:collapse;">'],K=0;K<h;K++){f.push("<tr>");for(var t=0;t<h;t++)f.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+c+"px;height:"+M+"px;background-color:"+(x.isDark(K,t)?F.colorDark:F.colorLight)+';"></td>');f.push("</tr>")}f.push("</table>");x=f.join("");x=_.yeC(_.AeZ,x);_.ig(N,x);
x=N.childNodes[0];h=(F.width-x.offsetWidth)/2;c=(F.height-x.offsetHeight)/2;h>0&&c>0&&(x.style.margin=c+"px "+h+"px")};
p.prototype.clear=function(){this.JSC$17186__el.textContent=""};
return p}();
WDt.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17189__android||this.JSC$17189__android>=3)&&this._oDrawing.makeImage()};
WDt.prototype.clear=function(){this._oDrawing.clear()};
_.Mm.QRCode=WDt;var Bma={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var S9=function(){};
S9.prototype.stringify=function(p){return _.Mm.JSON.stringify(p,void 0)};
S9.prototype.parse=function(p){return _.Mm.JSON.parse(p,void 0)};var R0H=function(){_.th.call(this,"z")};
_.NL(R0H,_.th);var k2k=function(){_.th.call(this,"y")};
_.NL(k2k,_.th);var Uqe=null,iJt=function(){return Uqe=Uqe||new _.Sc},I_k=function(p){_.th.call(this,"serverreachability",p)};
_.NL(I_k,_.th);var rd=function(p){var x=iJt();x.dispatchEvent(new I_k(x,p))},$qH=function(p){_.th.call(this,"statevent",p)};
_.NL($qH,_.th);var Ea=function(p){var x=iJt();x.dispatchEvent(new $qH(x,p))},e0t=function(p,x,F,N){_.th.call(this,"timingevent",p);
this.size=x;this.rtt=F;this.retries=N};
_.NL(e0t,_.th);var pnm=function(p,x,F){var N=iJt();N.dispatchEvent(new e0t(N,p,x,F))},XH=function(p,x){if(typeof p!=="function")throw Error("uk");
return _.Mm.setTimeout(function(){p()},x)};var gd=function(){this.redactEnabled_=!0};
gd.prototype.disableRedact=function(){this.redactEnabled_=!1};
var xYX=function(p,x,F,N,h,c){p.info(function(){if(p.redactEnabled_)if(c){var M="";for(var f=c.split("&"),K=0;K<f.length;K++){var t=f[K].split("=");if(t.length>1){var d=t[0];t=t[1];var v=d.split("_");M=v.length>=2&&v[1]=="type"?M+(d+"="+t+"&"):M+(d+"=redacted&")}}}else M=null;else M=c;return"XMLHTTP REQ ("+N+") [attempt "+h+"]: "+x+"\n"+F+"\n"+M})},F_H=function(p,x,F,N,h,c,M){p.info(function(){return"XMLHTTP RESP ("+N+") [ attempt "+h+"]: "+x+"\n"+F+"\n"+c+" "+M})},QC=function(p,x,F,N){p.info(function(){return"XMLHTTP TEXT ("+
x+"): "+NP_(p,F)+(N?" "+N:"")})},hr_=function(p,x){p.info(function(){return"TIMEOUT: "+x})};
gd.prototype.debug=function(){};
gd.prototype.info=function(){};
gd.prototype.warning=function(){};
var NP_=function(p,x){if(!p.redactEnabled_)return x;if(!x)return null;try{var F=JSON.parse(x);if(F)for(var N=0;N<F.length;N++)if(Array.isArray(F[N])){var h=F[N];if(!(h.length<2)){var c=h[1];if(Array.isArray(c)&&!(c.length<1)){var M=c[0];if(M!="noop"&&M!="stop"&&M!="close")for(var f=1;f<c.length;f++)c[f]=""}}}return(0,_.s1)(F)}catch(K){return p.debug("Exception parsing expected JS array - probably was not JS"),x}};var zs=function(p,x,F,N,h){this.JSC$17211_channel_=p;this.JSC$17211_channelDebug_=x;this.sid_=F;this.JSC$17211_rid_=N;this.JSC$17211_retryId_=h||1;this.JSC$17211_eventHandler_=new _.ps(this);this.timeout_=45E3;this.JSC$17211_extraHeaders_=null;this.JSC$17211_successful_=!1;this.JSC$17211_postData_=this.JSC$17211_requestUri_=this.JSC$17211_baseUri_=this.JSC$17211_type_=this.JSC$17211_requestStartTime_=this.JSC$17211_watchDogTimeoutTime_=this.JSC$17211_watchDogTimerId_=null;this.JSC$17211_pendingMessages_=
[];this.JSC$17211_xmlHttp_=null;this.JSC$17211_xmlHttpChunkStart_=0;this.JSC$17211_lastError_=this.JSC$17211_verb_=null;this.JSC$17211_lastStatusCode_=-1;this.JSC$17211_cancelled_=!1;this.JSC$17211_readyStateChangeThrottleMs_=0;this.JSC$17211_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new ly_},ly_=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},cM8=function(p,x){switch(p){case 0:return"Non-200 return code ("+x+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},ayH={},Mg8={};
zs.prototype.setTimeout=function(p){this.timeout_=p};
var fyH=function(p,x,F){p.JSC$17211_type_=1;p.JSC$17211_baseUri_=_.cv(x.clone());p.JSC$17211_postData_=F;p.decodeChunks_=!0;DYD(p,null)},DYD=function(p,x){p.JSC$17211_requestStartTime_=Date.now();
K__(p);p.JSC$17211_requestUri_=p.JSC$17211_baseUri_.clone();DA(p.JSC$17211_requestUri_,"t",p.JSC$17211_retryId_);p.JSC$17211_xmlHttpChunkStart_=0;var F=p.JSC$17211_channel_.JSC$17230_supportsCrossDomainXhrs_;p.fetchResponseState_=new ly_;p.JSC$17211_xmlHttp_=qo_(p.JSC$17211_channel_,F?x:null,!p.JSC$17211_postData_);p.JSC$17211_readyStateChangeThrottleMs_>0&&(p.JSC$17211_readyStateChangeThrottle_=new _.IC((0,_.CH)(p.JSC$17215_xmlHttpHandler_,p,p.JSC$17211_xmlHttp_),p.JSC$17211_readyStateChangeThrottleMs_));
p.JSC$17211_eventHandler_.listen(p.JSC$17211_xmlHttp_,"readystatechange",p.JSC$17215_readyStateChangeHandler_);x=p.JSC$17211_extraHeaders_?_.Q5.clone(p.JSC$17211_extraHeaders_):{};p.JSC$17211_postData_?(p.JSC$17211_verb_||(p.JSC$17211_verb_="POST"),x["Content-Type"]="application/x-www-form-urlencoded",p.JSC$17211_xmlHttp_.send(p.JSC$17211_requestUri_,p.JSC$17211_verb_,p.JSC$17211_postData_,x)):(p.JSC$17211_verb_="GET",p.JSC$17211_xmlHttp_.send(p.JSC$17211_requestUri_,p.JSC$17211_verb_,null,x));rd(1);
xYX(p.JSC$17211_channelDebug_,p.JSC$17211_verb_,p.JSC$17211_requestUri_,p.JSC$17211_rid_,p.JSC$17211_retryId_,p.JSC$17211_postData_)};
zs.prototype.JSC$17215_readyStateChangeHandler_=function(p){p=p.target;var x=this.JSC$17211_readyStateChangeThrottle_;x&&_.yo(p)==3?(this.JSC$17211_channelDebug_.debug("Throttling readystatechange."),x.fire()):this.JSC$17215_xmlHttpHandler_(p)};
zs.prototype.JSC$17215_xmlHttpHandler_=function(p){try{p==this.JSC$17211_xmlHttp_?ZXc(this):this.JSC$17211_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(x){this.JSC$17211_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),tgc(this)}finally{}};
var ZXc=function(p){var x=_.yo(p.JSC$17211_xmlHttp_),F=p.JSC$17211_xmlHttp_.JSC$7652_lastErrorCode_,N=p.JSC$17211_xmlHttp_.getStatus();if(!(x<3||x==3&&!tgc(p))){p.JSC$17211_cancelled_||x!=4||F==7||(F==8||N<=0?rd(3):rd(2));dY8(p);var h=p.JSC$17211_xmlHttp_.getStatus();p.JSC$17211_lastStatusCode_=h;F=v4m(p);tgc(p)||p.JSC$17211_channelDebug_.debug(function(){return"No response text for uri "+p.JSC$17211_requestUri_+" status "+h});
p.JSC$17211_successful_=h==200;F_H(p.JSC$17211_channelDebug_,p.JSC$17211_verb_,p.JSC$17211_requestUri_,p.JSC$17211_rid_,p.JSC$17211_retryId_,x,h);if(p.JSC$17211_successful_){if(p.decodeInitialResponse_&&!p.initialResponseDecoded_)if(N=JM_(p))QC(p.JSC$17211_channelDebug_,p.JSC$17211_rid_,N,"Initial handshake response via X-HTTP-Initial-Response"),p.initialResponseDecoded_=!0,Cuk(p,N);else{p.JSC$17211_successful_=!1;p.JSC$17211_lastError_=3;Ea(12);p.JSC$17211_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
p.JSC$17211_rid_+")");sa(p);nA(p);return}p.decodeChunks_?Som(p,x,F):(QC(p.JSC$17211_channelDebug_,p.JSC$17211_rid_,F,null),Cuk(p,F));x==4&&sa(p);p.JSC$17211_successful_&&!p.JSC$17211_cancelled_&&(x==4?rM8(p.JSC$17211_channel_,p):(p.JSC$17211_successful_=!1,K__(p)))}else M_k(p.JSC$17211_xmlHttp_),h==400&&F.indexOf("Unknown SID")>0?(p.JSC$17211_lastError_=3,Ea(12),p.JSC$17211_channelDebug_.warning("XMLHTTP Unknown SID ("+p.JSC$17211_rid_+")")):(p.JSC$17211_lastError_=0,Ea(13),p.JSC$17211_channelDebug_.warning("XMLHTTP Bad status "+
h+" ("+p.JSC$17211_rid_+")")),sa(p),nA(p)}},JM_=function(p){return p.JSC$17211_xmlHttp_&&(p=CL(p.JSC$17211_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.tz(p)?p:null},v4m=function(p){if(!E4X(p))return p.JSC$17211_xmlHttp_.getResponseText();
var x=p.JSC$17211_xmlHttp_.getResponse();if(x==="")return"";var F="",N=x.length,h=_.yo(p.JSC$17211_xmlHttp_)==4;if(!p.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return sa(p),nA(p),"";p.fetchResponseState_.textDecoder=new _.Mm.TextDecoder}for(var c=0;c<N;c++)p.fetchResponseState_.responseArrivedForFetch=!0,F+=p.fetchResponseState_.textDecoder.decode(x[c],{stream:!(h&&c==N-1)});x.length=0;p.fetchResponseState_.responseBuffer+=F;p.JSC$17211_xmlHttpChunkStart_=0;return p.fetchResponseState_.responseBuffer},
tgc=function(p){return p.JSC$17211_xmlHttp_?p.fetchResponseState_.responseArrivedForFetch?!0:!(!p.JSC$17211_xmlHttp_.getResponseText()&&!p.JSC$17211_xmlHttp_.getResponse()):!1},E4X=function(p){return p.JSC$17211_xmlHttp_?p.JSC$17211_verb_=="GET"&&p.JSC$17211_type_!=2&&p.JSC$17211_channel_.usesFetchStreams_:!1},Som=function(p,x,F){for(var N=!0,h;!p.JSC$17211_cancelled_&&p.JSC$17211_xmlHttpChunkStart_<F.length;)if(h=Xnt(p,F),h==Mg8){x==4&&(p.JSC$17211_lastError_=4,Ea(14),N=!1);
QC(p.JSC$17211_channelDebug_,p.JSC$17211_rid_,null,"[Incomplete Response]");break}else if(h==ayH){p.JSC$17211_lastError_=4;Ea(15);QC(p.JSC$17211_channelDebug_,p.JSC$17211_rid_,F,"[Invalid Chunk]");N=!1;break}else QC(p.JSC$17211_channelDebug_,p.JSC$17211_rid_,h,null),Cuk(p,h);E4X(p)&&p.JSC$17211_xmlHttpChunkStart_!=0&&(p.fetchResponseState_.responseBuffer=p.fetchResponseState_.responseBuffer.slice(p.JSC$17211_xmlHttpChunkStart_),p.JSC$17211_xmlHttpChunkStart_=0);x!=4||F.length!=0||p.fetchResponseState_.responseArrivedForFetch||
(p.JSC$17211_lastError_=1,Ea(16),N=!1);p.JSC$17211_successful_=p.JSC$17211_successful_&&N;N?F.length>0&&!p.firstByteReceived_&&(p.firstByteReceived_=!0,x=p.JSC$17211_channel_,x.JSC$17230_backChannelRequest_==p&&x.detectBufferingProxy_&&!x.bpDetectionDone_&&(x.JSC$17230_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+F.length),g4a(x),x.bpDetectionDone_=!0,Ea(11))):(QC(p.JSC$17211_channelDebug_,p.JSC$17211_rid_,F,"[Invalid Chunked Response]"),sa(p),nA(p))},Xnt=function(p,x){var F=
p.JSC$17211_xmlHttpChunkStart_,N=x.indexOf("\n",F);
if(N==-1)return Mg8;F=Number(x.substring(F,N));if(isNaN(F))return ayH;N+=1;if(N+F>x.length)return Mg8;x=x.slice(N,N+F);p.JSC$17211_xmlHttpChunkStart_=N+F;return x};
zs.prototype.cancel=function(){this.JSC$17211_cancelled_=!0;sa(this)};
var K__=function(p){p.JSC$17211_watchDogTimeoutTime_=Date.now()+p.timeout_;Q0m(p,p.timeout_)},Q0m=function(p,x){if(p.JSC$17211_watchDogTimerId_!=null)throw Error("vk");
p.JSC$17211_watchDogTimerId_=XH((0,_.CH)(p.JSC$17215_onWatchDogTimeout_,p),x)},dY8=function(p){p.JSC$17211_watchDogTimerId_&&(_.Mm.clearTimeout(p.JSC$17211_watchDogTimerId_),p.JSC$17211_watchDogTimerId_=null)};
zs.prototype.JSC$17215_onWatchDogTimeout_=function(){this.JSC$17211_watchDogTimerId_=null;var p=Date.now();p-this.JSC$17211_watchDogTimeoutTime_>=0?(hr_(this.JSC$17211_channelDebug_,this.JSC$17211_requestUri_),this.JSC$17211_type_!=2&&(rd(3),Ea(17)),sa(this),this.JSC$17211_lastError_=2,nA(this)):(this.JSC$17211_channelDebug_.warning("WatchDog timer called too early"),Q0m(this,this.JSC$17211_watchDogTimeoutTime_-p))};
var nA=function(p){p.JSC$17211_channel_.state_==0||p.JSC$17211_cancelled_||rM8(p.JSC$17211_channel_,p)},sa=function(p){dY8(p);
_.RR(p.JSC$17211_readyStateChangeThrottle_);p.JSC$17211_readyStateChangeThrottle_=null;p.JSC$17211_eventHandler_.removeAll();if(p.JSC$17211_xmlHttp_){var x=p.JSC$17211_xmlHttp_;p.JSC$17211_xmlHttp_=null;x.abort();x.dispose()}};
zs.prototype.getLastError=function(){return this.JSC$17211_lastError_};
var Cuk=function(p,x){try{var F=p.JSC$17211_channel_;if(F.state_!=0&&(F.JSC$17230_backChannelRequest_==p||zrc(F.forwardChannelRequestPool_,p)))if(!p.initialResponseDecoded_&&zrc(F.forwardChannelRequestPool_,p)&&F.state_==3){try{var N=F.wireCodec_.JSC$17225_parser_.parse(x)}catch(f){N=null}if(Array.isArray(N)&&N.length==3){x=N;if(x[0]==0)a:if(F.JSC$17230_channelDebug_.debug("Server claims our backchannel is missing."),F.JSC$17230_backChannelTimerId_)F.JSC$17230_channelDebug_.debug("But we are currently starting the request.");
else{if(F.JSC$17230_backChannelRequest_)if(F.JSC$17230_backChannelRequest_.JSC$17211_requestStartTime_+3E3<p.JSC$17211_requestStartTime_)s0D(F),n48(F);else break a;else F.JSC$17230_channelDebug_.warning("We do not have a BackChannel established");yMm(F);Ea(18)}else{F.JSC$17230_lastPostResponseArrayId_=x[1];var h=F.JSC$17230_lastPostResponseArrayId_-F.JSC$17230_lastArrayId_;if(0<h){var c=x[2];F.JSC$17230_channelDebug_.debug(c+" bytes (in "+h+" arrays) are outstanding on the BackChannel");c<37500&&
F.enableStreaming_&&F.JSC$17230_backChannelRetryCount_==0&&!F.JSC$17230_deadBackChannelTimerId_&&(F.JSC$17230_deadBackChannelTimerId_=XH((0,_.CH)(F.JSC$17232_onBackChannelDead_,F),6E3))}}if(bX8(F.forwardChannelRequestPool_)<=1&&F.forwardChannelFlushedCallback_){try{F.forwardChannelFlushedCallback_()}catch(f){}F.forwardChannelFlushedCallback_=void 0}}else F.JSC$17230_channelDebug_.debug("Bad POST response data returned"),yC(F,11)}else if((p.initialResponseDecoded_||F.JSC$17230_backChannelRequest_==
p)&&s0D(F),!_.tz(x)){var M=F.wireCodec_.JSC$17225_parser_.parse(x);F.onInput_(M,p)}rd(4)}catch(f){}};var AMm=function(p,x){this.JSC$17218_mapId=p;this.map=x;this.context=null};var uUH=function(p){this.maxPoolSizeConfigured_=p||10;_.Mm.PerformanceNavigationTiming?(p=_.Mm.performance.getEntriesByType("navigation"),p=p.length>0&&(p[0].nextHopProtocol=="hq"||p[0].nextHopProtocol=="h2")):p=!!(_.Mm.chrome&&_.Mm.chrome.loadTimes&&_.Mm.chrome.loadTimes()&&_.Mm.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17221_maxSize_=p?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17221_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17221_request_=null;this.JSC$17221_pendingMessages_=
[]},Yot=function(p){return p.JSC$17221_request_?!0:p.requestPool_?p.requestPool_.size>=p.JSC$17221_maxSize_:!1},bX8=function(p){return p.JSC$17221_request_?1:p.requestPool_?p.requestPool_.size:0},zrc=function(p,x){return p.JSC$17221_request_?p.JSC$17221_request_==x:p.requestPool_?p.requestPool_.has(x):!1},wn_=function(p,x){p.requestPool_?p.requestPool_.add(x):p.JSC$17221_request_=x},GH8=function(p,x){p.JSC$17221_request_&&p.JSC$17221_request_==x?p.JSC$17221_request_=null:p.requestPool_&&p.requestPool_.has(x)&&
p.requestPool_.delete(x)};
uUH.prototype.cancel=function(){this.JSC$17221_pendingMessages_=VgH(this);if(this.JSC$17221_request_)this.JSC$17221_request_.cancel(),this.JSC$17221_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var p=_.a(this.requestPool_.values()),x=p.next();!x.done;x=p.next())x.value.cancel();this.requestPool_.clear()}};
uUH.prototype.hasPendingRequest=function(){return this.JSC$17221_request_!=null||this.requestPool_!=null&&this.requestPool_.size!==0};
var VgH=function(p){if(p.JSC$17221_request_!=null)return p.JSC$17221_pendingMessages_.concat(p.JSC$17221_request_.JSC$17211_pendingMessages_);if(p.requestPool_!=null&&p.requestPool_.size!==0){var x=p.JSC$17221_pendingMessages_;p=_.a(p.requestPool_.values());for(var F=p.next();!F.done;F=p.next())x=x.concat(F.value.JSC$17211_pendingMessages_);return x}return _.Pr(p.JSC$17221_pendingMessages_)},W_t=function(p,x){p.JSC$17221_pendingMessages_=p.JSC$17221_pendingMessages_.concat(x)};var HX_=function(p,x){var F=new gd;F.debug("TestLoadImage: loading "+p);if(_.Mm.Image){var N=new Image;N.onload=_.Sz(bN,F,"TestLoadImage: loaded",!0,x,N);N.onerror=_.Sz(bN,F,"TestLoadImage: error",!1,x,N);N.onabort=_.Sz(bN,F,"TestLoadImage: abort",!1,x,N);N.ontimeout=_.Sz(bN,F,"TestLoadImage: timeout",!1,x,N);_.Mm.setTimeout(function(){if(N.ontimeout)N.ontimeout()},1E4);
N.src=p}else x(!1)},mYk=function(p,x){var F=new gd,N=new AbortController,h=setTimeout(function(){N.abort();
bN(F,"TestPingServer: timeout",!1,x)},1E4);
fetch(p,{signal:N.signal}).then(function(c){clearTimeout(h);c.ok?bN(F,"TestPingServer: ok",!0,x):bN(F,"TestPingServer: server error",!1,x)}).catch(function(){clearTimeout(h);
bN(F,"TestPingServer: error",!1,x)})},bN=function(p,x,F,N,h){try{p.debug(x),h&&(h.onload=null,h.onerror=null,h.onabort=null,h.ontimeout=null),N(F)}catch(c){}};var o4m=function(){this.JSC$17225_parser_=new S9},OX_=function(p,x,F){var N=F||"";
try{_.XwD(p,function(h,c){var M=h;_.IJ(h)&&(M=(0,_.s1)(h));x.push(N+c+"="+encodeURIComponent(M))})}catch(h){throw x.push(N+"type="+encodeURIComponent("_badmap")),h;
}};var A4=function(p,x,F){return F&&F.internalChannelParams?F.internalChannelParams[p]||x:x},uN=function(p){this.serverVersion_=0;
this.JSC$17230_outgoingMaps_=[];this.JSC$17230_channelDebug_=new gd;this.JSC$17230_hostPrefix_=this.JSC$17230_backChannelUri_=this.JSC$17230_forwardChannelUri_=this.JSC$17230_path_=this.JSC$17230_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17230_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17230_extraHeaders_=null;this.JSC$17230_nextMapId_=this.JSC$17230_nextRid_=0;this.JSC$17230_failFast_=A4("failFast",!1,p);this.enableStreaming_=this.JSC$17230_deadBackChannelTimerId_=
this.JSC$17230_backChannelTimerId_=this.JSC$17230_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17230_lastPostResponseArrayId_=this.JSC$17230_lastArrayId_=-1;this.JSC$17230_backChannelAttemptId_=this.JSC$17230_backChannelRetryCount_=this.JSC$17230_forwardChannelRetryCount_=0;this.JSC$17230_baseRetryDelayMs_=A4("baseRetryDelayMs",5E3,p);this.JSC$17230_retryDelaySeedMs_=A4("retryDelaySeedMs",1E4,p);this.JSC$17230_forwardChannelMaxRetries_=
A4("forwardChannelMaxRetries",2,p);this.JSC$17230_forwardChannelRequestTimeoutMs_=A4("forwardChannelRequestTimeoutMs",2E4,p);this.JSC$17230_xmlHttpFactory_=p&&p.xmlHttpFactory||void 0;this.networkTestUrl_=p&&p.networkTestUrl||void 0;this.usesFetchStreams_=p&&p.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17230_supportsCrossDomainXhrs_=p&&p.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new uUH(p&&p.concurrentRequestLimit);this.wireCodec_=new o4m;this.fastHandshake_=
p&&p.fastHandshake||!1;this.encodeInitMessageHeaders_=p&&p.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17230_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=p&&p.blockingHandshake||!1;p&&p.disableRedact&&this.JSC$17230_channelDebug_.disableRedact();p&&p.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
p&&p.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;p&&p.longPollingTimeout&&p.longPollingTimeout>0&&(this.longPollingTimeout_=p.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
uN.prototype.JSC$17232_channelVersion_=8;uN.prototype.state_=1;
uN.prototype.connect=function(p,x,F,N){this.JSC$17230_channelDebug_.debug("connect()");Ea(0);this.JSC$17230_path_=p;this.JSC$17230_extraParams_=x||{};F&&N!==void 0&&(this.JSC$17230_extraParams_.OSID=F,this.JSC$17230_extraParams_.OAID=N);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17230_channelDebug_.debug("connectChannel_()");p=j0m(this,null,this.JSC$17230_path_);this.JSC$17230_channelDebug_.debug("GetForwardChannelUri: "+p);this.JSC$17230_forwardChannelUri_=p;L_H(this)};
uN.prototype.disconnect=function(){this.JSC$17230_channelDebug_.debug("disconnect()");Put(this);if(this.state_==3){var p=this.JSC$17230_nextRid_++,x=this.JSC$17230_forwardChannelUri_.clone();_.WS(x,"SID",this.sid_);_.WS(x,"RID",p);_.WS(x,"TYPE","terminate");YY(this,x);p=new zs(this,this.JSC$17230_channelDebug_,this.sid_,p);p.JSC$17211_type_=2;p.JSC$17211_baseUri_=_.cv(x.clone());x=!1;if(_.Mm.navigator&&_.Mm.navigator.sendBeacon)try{x=_.Mm.navigator.sendBeacon(p.JSC$17211_baseUri_.toString(),"")}catch(F){}!x&&
_.Mm.Image&&((new Image).src=p.JSC$17211_baseUri_,x=!0);x||(p.JSC$17211_xmlHttp_=qo_(p.JSC$17211_channel_,null),p.JSC$17211_xmlHttp_.send(p.JSC$17211_baseUri_));p.JSC$17211_requestStartTime_=Date.now();K__(p)}TPH(this)};
var n48=function(p){p.JSC$17230_backChannelRequest_&&(g4a(p),p.JSC$17230_backChannelRequest_.cancel(),p.JSC$17230_backChannelRequest_=null)},Put=function(p){n48(p);
p.JSC$17230_backChannelTimerId_&&(_.Mm.clearTimeout(p.JSC$17230_backChannelTimerId_),p.JSC$17230_backChannelTimerId_=null);s0D(p);p.forwardChannelRequestPool_.cancel();p.JSC$17230_forwardChannelTimerId_&&(typeof p.JSC$17230_forwardChannelTimerId_==="number"&&_.Mm.clearTimeout(p.JSC$17230_forwardChannelTimerId_),p.JSC$17230_forwardChannelTimerId_=null)};
uN.prototype.getState=function(){return this.state_};
var L_H=function(p){Yot(p.forwardChannelRequestPool_)||p.JSC$17230_forwardChannelTimerId_||(p.JSC$17230_forwardChannelTimerId_=!0,_.E1(p.JSC$17232_onStartForwardChannelTimer_,p),p.JSC$17230_forwardChannelRetryCount_=0)},Rre=function(p,x){if(bX8(p.forwardChannelRequestPool_)>=p.forwardChannelRequestPool_.JSC$17221_maxSize_-(p.JSC$17230_forwardChannelTimerId_?1:0))return!1;
if(p.JSC$17230_forwardChannelTimerId_)return p.JSC$17230_channelDebug_.debug("Use the retry request that is already scheduled."),p.JSC$17230_outgoingMaps_=x.JSC$17211_pendingMessages_.concat(p.JSC$17230_outgoingMaps_),!0;if(p.state_==1||p.state_==2||p.JSC$17230_forwardChannelRetryCount_>=(p.JSC$17230_failFast_?0:p.JSC$17230_forwardChannelMaxRetries_))return!1;p.JSC$17230_channelDebug_.debug("Going to retry POST");p.JSC$17230_forwardChannelTimerId_=XH((0,_.CH)(p.JSC$17232_onStartForwardChannelTimer_,
p,x),BPm(p,p.JSC$17230_forwardChannelRetryCount_));p.JSC$17230_forwardChannelRetryCount_++;return!0};
uN.prototype.JSC$17232_onStartForwardChannelTimer_=function(p){if(this.JSC$17230_forwardChannelTimerId_)if(this.JSC$17230_forwardChannelTimerId_=null,this.JSC$17230_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!p){this.JSC$17230_channelDebug_.debug("open_()");this.JSC$17230_nextRid_=Math.floor(Math.random()*1E5);p=this.JSC$17230_nextRid_++;var x=new zs(this,this.JSC$17230_channelDebug_,"",p),F=this.JSC$17230_extraHeaders_;this.initHeaders_&&(F?(F=_.Q5.clone(F),_.Q5.extend(F,this.initHeaders_)):
F=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(x.JSC$17211_extraHeaders_=F,F=null);var N;if(this.fastHandshake_)a:{for(var h=N=0;h<this.JSC$17230_outgoingMaps_.length;h++){b:{var c=this.JSC$17230_outgoingMaps_[h];if("__data__"in c.map&&(c=c.map.__data__,typeof c==="string")){c=c.length;break b}c=void 0}if(c===void 0)break;N+=c;if(N>4096){N=h;break a}if(N===4096||h===this.JSC$17230_outgoingMaps_.length-1){N=h+1;break a}}N=1E3}else N=1E3;N=kHD(this,x,N);
h=this.JSC$17230_forwardChannelUri_.clone();_.WS(h,"RID",p);_.WS(h,"CVER",22);this.httpSessionIdParam_&&_.WS(h,"X-HTTP-Session-Id",this.httpSessionIdParam_);YY(this,h);F&&(this.encodeInitMessageHeaders_?N="headers="+_.YF(D7H(F))+"&"+N:this.httpHeadersOverwriteParam_&&fpe(h,this.httpHeadersOverwriteParam_,F));wn_(this.forwardChannelRequestPool_,x);this.blockingHandshake_&&_.WS(h,"TYPE","init");this.fastHandshake_?(_.WS(h,"$req",N),_.WS(h,"SID","null"),x.decodeInitialResponse_=!0,fyH(x,h,null)):fyH(x,
h,N);this.state_=2}}else this.state_==3&&(p?UYc(this,p):this.JSC$17230_outgoingMaps_.length==0?this.JSC$17230_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):Yot(this.forwardChannelRequestPool_)||(UYc(this),this.JSC$17230_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var UYc=function(p,x){var F;x?F=x.JSC$17211_rid_:F=p.JSC$17230_nextRid_++;var N=p.JSC$17230_forwardChannelUri_.clone();_.WS(N,"SID",p.sid_);_.WS(N,"RID",F);_.WS(N,"AID",p.JSC$17230_lastArrayId_);YY(p,N);p.httpHeadersOverwriteParam_&&p.JSC$17230_extraHeaders_&&fpe(N,p.httpHeadersOverwriteParam_,p.JSC$17230_extraHeaders_);F=new zs(p,p.JSC$17230_channelDebug_,p.sid_,F,p.JSC$17230_forwardChannelRetryCount_+1);p.httpHeadersOverwriteParam_===null&&(F.JSC$17211_extraHeaders_=p.JSC$17230_extraHeaders_);x&&
(p.JSC$17230_outgoingMaps_=x.JSC$17211_pendingMessages_.concat(p.JSC$17230_outgoingMaps_));x=kHD(p,F,1E3);F.setTimeout(Math.round(p.JSC$17230_forwardChannelRequestTimeoutMs_*.5)+Math.round(p.JSC$17230_forwardChannelRequestTimeoutMs_*.5*Math.random()));wn_(p.forwardChannelRequestPool_,F);fyH(F,N,x)},YY=function(p,x){p.JSC$17230_extraParams_&&_.Q5.forEach(p.JSC$17230_extraParams_,function(F,N){_.WS(x,N,F)});
p.handler_&&_.XwD({},function(F,N){_.WS(x,N,F)})},kHD=function(p,x,F){F=Math.min(p.JSC$17230_outgoingMaps_.length,F);
var N=p.handler_?(0,_.CH)(p.handler_.JSC$17236_badMapError,p.handler_,p):null;a:{for(var h=p.JSC$17230_outgoingMaps_,c=-1;;){var M=["count="+F];c==-1?F>0?(c=h[0].JSC$17218_mapId,M.push("ofs="+c)):c=0:M.push("ofs="+c);for(var f=!0,K=0;K<F;K++){var t=h[K].JSC$17218_mapId,d=h[K].map;t-=c;if(t<0)c=Math.max(0,h[K].JSC$17218_mapId-100),f=!1;else try{OX_(d,M,"req"+t+"_")}catch(v){N&&N(d)}}if(f){N=M.join("&");break a}}N=void 0}p=p.JSC$17230_outgoingMaps_.splice(0,F);x.JSC$17211_pendingMessages_=p;return N},
iXm=function(p){p.JSC$17230_backChannelRequest_||p.JSC$17230_backChannelTimerId_||(p.JSC$17230_backChannelAttemptId_=1,_.E1(p.JSC$17232_onStartBackChannelTimer_,p),p.JSC$17230_backChannelRetryCount_=0)},yMm=function(p){if(p.JSC$17230_backChannelRequest_||p.JSC$17230_backChannelTimerId_||p.JSC$17230_backChannelRetryCount_>=3)return!1;
p.JSC$17230_channelDebug_.debug("Going to retry GET");p.JSC$17230_backChannelAttemptId_++;p.JSC$17230_backChannelTimerId_=XH((0,_.CH)(p.JSC$17232_onStartBackChannelTimer_,p),BPm(p,p.JSC$17230_backChannelRetryCount_));p.JSC$17230_backChannelRetryCount_++;return!0};
uN.prototype.JSC$17232_onStartBackChannelTimer_=function(){this.JSC$17230_backChannelTimerId_=null;Iyk(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17230_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17230_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17230_backChannelRequest_+" "+this.handshakeRttMs_);else{var p=2*this.handshakeRttMs_;this.JSC$17230_channelDebug_.info("BP detection timer enabled: "+p);this.bpDetectionTimerId_=XH((0,_.CH)(this.onBpDetectionTimer_,
this),p)}};
uN.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17230_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17230_backChannelRequest_.JSC$17211_xmlHttp_!=null){var p=this.JSC$17230_backChannelRequest_.JSC$17211_xmlHttp_.getResponseText();p&&this.JSC$17230_channelDebug_.warning("Timer should have been cancelled : "+p)}this.JSC$17230_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Ea(10);n48(this);Iyk(this)}else this.JSC$17230_channelDebug_.warning("Invalid operation.")};
var g4a=function(p){p.bpDetectionTimerId_!=null&&(p.JSC$17230_channelDebug_.debug("Cancel the BP detection timer."),_.Mm.clearTimeout(p.bpDetectionTimerId_),p.bpDetectionTimerId_=null)},Iyk=function(p){p.JSC$17230_channelDebug_.debug("Creating new HttpRequest");
p.JSC$17230_backChannelRequest_=new zs(p,p.JSC$17230_channelDebug_,p.sid_,"rpc",p.JSC$17230_backChannelAttemptId_);p.httpHeadersOverwriteParam_===null&&(p.JSC$17230_backChannelRequest_.JSC$17211_extraHeaders_=p.JSC$17230_extraHeaders_);p.JSC$17230_backChannelRequest_.JSC$17211_readyStateChangeThrottleMs_=0;var x=p.JSC$17230_backChannelUri_.clone();_.WS(x,"RID","rpc");_.WS(x,"SID",p.sid_);_.WS(x,"AID",p.JSC$17230_lastArrayId_);_.WS(x,"CI",p.enableStreaming_?"0":"1");!p.enableStreaming_&&p.longPollingTimeout_&&
_.WS(x,"TO",p.longPollingTimeout_);_.WS(x,"TYPE","xmlhttp");YY(p,x);p.httpHeadersOverwriteParam_&&p.JSC$17230_extraHeaders_&&fpe(x,p.httpHeadersOverwriteParam_,p.JSC$17230_extraHeaders_);p.backChannelRequestTimeoutMs_&&p.JSC$17230_backChannelRequest_.setTimeout(p.backChannelRequestTimeoutMs_);var F=p.JSC$17230_backChannelRequest_,N=p.JSC$17230_hostPrefix_;F.JSC$17211_type_=1;F.JSC$17211_baseUri_=_.cv(x.clone());F.JSC$17211_postData_=null;F.decodeChunks_=!0;DYD(F,N);p.JSC$17230_channelDebug_.debug("New Request created")};
uN.prototype.JSC$17232_onBackChannelDead_=function(){this.JSC$17230_deadBackChannelTimerId_!=null&&(this.JSC$17230_deadBackChannelTimerId_=null,n48(this),yMm(this),Ea(19))};
var s0D=function(p){p.JSC$17230_deadBackChannelTimerId_!=null&&(_.Mm.clearTimeout(p.JSC$17230_deadBackChannelTimerId_),p.JSC$17230_deadBackChannelTimerId_=null)},rM8=function(p,x){p.JSC$17230_channelDebug_.debug("Request complete");
var F=null;if(p.JSC$17230_backChannelRequest_==x){s0D(p);g4a(p);p.JSC$17230_backChannelRequest_=null;var N=2}else if(zrc(p.forwardChannelRequestPool_,x))F=x.JSC$17211_pendingMessages_,GH8(p.forwardChannelRequestPool_,x),N=1;else return;if(p.state_!=0)if(x.JSC$17211_successful_)N==1?(pnm(x.JSC$17211_postData_?x.JSC$17211_postData_.length:0,Date.now()-x.JSC$17211_requestStartTime_,p.JSC$17230_forwardChannelRetryCount_),L_H(p)):iXm(p);else{var h=x.JSC$17211_lastStatusCode_,c=x.getLastError();if(c==3||
c==0&&h>0)p.JSC$17230_channelDebug_.debug("Not retrying due to error type"),h>200&&(p.errorResponseStatusCode_=x.JSC$17211_lastStatusCode_);else{p.JSC$17230_channelDebug_.debug(function(){return"Maybe retrying, last error: "+cM8(c,p.errorResponseStatusCode_)});
if(N==1&&Rre(p,x)||N==2&&yMm(p))return;p.JSC$17230_channelDebug_.debug("Exceeded max number of retries")}F&&F.length>0&&W_t(p.forwardChannelRequestPool_,F);p.JSC$17230_channelDebug_.debug("Error: HTTP request failed");switch(c){case 1:yC(p,5);break;case 4:yC(p,10);break;case 3:yC(p,6);break;default:yC(p,2)}}},BPm=function(p,x){var F=p.JSC$17230_baseRetryDelayMs_+Math.floor(Math.random()*p.JSC$17230_retryDelaySeedMs_);
p.isActive()||(p.JSC$17230_channelDebug_.debug("Inactive channel"),F*=2);return F*x};
uN.prototype.onInput_=function(p,x){for(var F=0;F<p.length;F++){var N=p[F];this.JSC$17230_lastArrayId_=N[0];N=N[1];if(this.state_==2)if(N[0]=="c"){this.sid_=N[1];this.JSC$17230_hostPrefix_=N[2];var h=N[3];h!=null&&(this.JSC$17232_channelVersion_=h,this.JSC$17230_channelDebug_.info("VER="+this.JSC$17232_channelVersion_));h=N[4];h!=null&&(this.serverVersion_=h,this.JSC$17230_channelDebug_.info("SVER="+this.serverVersion_));N=N[5];N!=null&&typeof N==="number"&&N>0&&(this.backChannelRequestTimeoutMs_=
N*=1.5,this.JSC$17230_channelDebug_.info("backChannelRequestTimeoutMs_="+N));if(N=x.JSC$17211_xmlHttp_){var c=CL(N,"X-Client-Wire-Protocol");c&&(h=this.forwardChannelRequestPool_,!h.requestPool_&&(_.vr(c,"spdy")||_.vr(c,"quic")||_.vr(c,"h2"))&&(h.JSC$17221_maxSize_=h.maxPoolSizeConfigured_,h.requestPool_=new Set,h.JSC$17221_request_&&(wn_(h,h.JSC$17221_request_),h.JSC$17221_request_=null)));this.httpSessionIdParam_&&((N=CL(N,"X-HTTP-Session-Id"))?(this.httpSessionId_=N,_.WS(this.JSC$17230_forwardChannelUri_,
this.httpSessionIdParam_,N)):this.JSC$17230_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17236_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-x.JSC$17211_requestStartTime_,this.JSC$17230_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));N=x;h=j0m(this,this.JSC$17230_supportsCrossDomainXhrs_?this.JSC$17230_hostPrefix_:null,this.JSC$17230_path_);this.JSC$17230_channelDebug_.debug("GetBackChannelUri: "+
h);this.JSC$17230_backChannelUri_=h;N.initialResponseDecoded_?(this.JSC$17230_channelDebug_.debug("Upgrade the handshake request to a backchannel."),GH8(this.forwardChannelRequestPool_,N),h=N,(c=this.backChannelRequestTimeoutMs_)&&h.setTimeout(c),h.JSC$17211_watchDogTimerId_&&(dY8(h),K__(h)),this.JSC$17230_backChannelRequest_=N):iXm(this);this.JSC$17230_outgoingMaps_.length>0&&L_H(this)}else N[0]!="stop"&&N[0]!="close"||yC(this,7);else this.state_==3&&(N[0]=="stop"||N[0]=="close"?N[0]=="stop"?yC(this,
7):this.disconnect():N[0]!="noop"&&this.handler_&&this.handler_.JSC$17236_channelHandleArray(N),this.JSC$17230_backChannelRetryCount_=0)}};
var yC=function(p,x){p.JSC$17230_channelDebug_.info("Error code "+x);if(x==2){var F=(0,_.CH)(p.testNetworkCallback_,p),N=p.networkTestUrl_,h=!N;N=new _.R9(N||"//www.google.com/images/cleardot.gif");_.Mm.location&&_.Mm.location.protocol=="http"||_.iM(N,"https");_.cv(N);h?HX_(N.toString(),F):mYk(N.toString(),F)}else Ea(2);p.onError_(x)};
uN.prototype.testNetworkCallback_=function(p){p?(this.JSC$17230_channelDebug_.info("Successfully pinged google.com"),Ea(2)):(this.JSC$17230_channelDebug_.info("Failed to ping google.com"),Ea(1))};
uN.prototype.onError_=function(p){this.JSC$17230_channelDebug_.debug("HttpChannel: error - "+p);this.state_=0;this.handler_&&this.handler_.JSC$17236_channelError(p);TPH(this);Put(this)};
var TPH=function(p){p.state_=0;p.nonAckedMapsAtChannelClose_=[];if(p.handler_){var x=VgH(p.forwardChannelRequestPool_);if(x.length!=0||p.JSC$17230_outgoingMaps_.length!=0)p.JSC$17230_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+x.length+", outgoing: "+p.JSC$17230_outgoingMaps_.length}),_.UM(p.nonAckedMapsAtChannelClose_,x),_.UM(p.nonAckedMapsAtChannelClose_,p.JSC$17230_outgoingMaps_),p.forwardChannelRequestPool_.JSC$17221_pendingMessages_.length=0,_.Pr(p.JSC$17230_outgoingMaps_),
p.JSC$17230_outgoingMaps_.length=0;
p.handler_.JSC$17236_channelClosed()}},$Ya=function(p){if(p.state_==0)return p.nonAckedMapsAtChannelClose_;
var x=[];_.UM(x,VgH(p.forwardChannelRequestPool_));_.UM(x,p.JSC$17230_outgoingMaps_);return x},j0m=function(p,x,F){var N=_.G4(F);
N.JSC$7886_domain_!=""?(x&&_.IX(N,x+"."+N.JSC$7886_domain_),_.ec(N,N.JSC$7886_port_)):(N=_.Mm.location,N=eUH(N.protocol,x?x+"."+N.hostname:N.hostname,+N.port,F));x=p.httpSessionIdParam_;F=p.httpSessionId_;x&&F&&_.WS(N,x,F);_.WS(N,"VER",p.JSC$17232_channelVersion_);YY(p,N);return N},qo_=function(p,x,F){if(x&&!p.JSC$17230_supportsCrossDomainXhrs_)throw Error("wk");
x=p.usesFetchStreams_&&!p.JSC$17230_xmlHttpFactory_?new _.ni(new uS({streamBinaryChunks:F})):new _.ni(p.JSC$17230_xmlHttpFactory_);x.JSC$7652_withCredentials_=p.JSC$17230_supportsCrossDomainXhrs_;return x};
uN.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var er8=function(){};
_.l=er8.prototype;_.l.JSC$17236_channelOpened=function(){};
_.l.JSC$17236_channelHandleArray=function(){};
_.l.JSC$17236_channelError=function(){};
_.l.JSC$17236_channelClosed=function(){};
_.l.isActive=function(){return!0};
_.l.JSC$17236_badMapError=function(){};var pLa=function(){},Gs=function(p,x){_.Sc.call(this);
this.JSC$17239_channel_=new uN(x);this.JSC$17239_url_=p;this.messageUrlParams_=x&&x.messageUrlParams||null;p=x&&x.messageHeaders||null;x&&x.clientProtocolHeaderRequired&&(p?_.Q5.set(p,"X-Client-Protocol","webchannel"):p=_.Q5.create("X-Client-Protocol","webchannel"));this.JSC$17239_channel_.JSC$17230_extraHeaders_=p;p=x&&x.initMessageHeaders||null;x&&x.messageContentType&&(p?_.Q5.set(p,"X-WebChannel-Content-Type",x.messageContentType):p=_.Q5.create("X-WebChannel-Content-Type",x.messageContentType));
x&&x.clientProfile&&(p?_.Q5.set(p,"X-WebChannel-Client-Profile",x.clientProfile):p=_.Q5.create("X-WebChannel-Client-Profile",x.clientProfile));this.JSC$17239_channel_.initHeaders_=p;(p=x&&x.httpHeadersOverwriteParam)&&!_.tz(p)&&(this.JSC$17239_channel_.httpHeadersOverwriteParam_=p);this.supportsCrossDomainXhr_=x&&x.supportsCrossDomainXhr||!1;this.sendRawJson_=x&&x.sendRawJson||!1;(x=x&&x.httpSessionIdParam)&&!_.tz(x)&&(this.JSC$17239_channel_.httpSessionIdParam_=x,_.Q5.containsKey(this.messageUrlParams_,
x)&&_.Q5.remove(this.messageUrlParams_,x));this.channelHandler_=new wd(this)};
_.NL(Gs,_.Sc);Gs.prototype.open=function(){this.JSC$17239_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17239_channel_.JSC$17230_supportsCrossDomainXhrs_=!0);this.JSC$17239_channel_.connect(this.JSC$17239_url_,this.messageUrlParams_||void 0)};
Gs.prototype.close=function(){this.JSC$17239_channel_.disconnect()};
Gs.prototype.send=function(p){var x=this.JSC$17239_channel_;if(typeof p==="string"){var F={};F.__data__=p;p=F}else this.sendRawJson_&&(F={},F.__data__=(0,_.s1)(p),p=F);x.JSC$17230_outgoingMaps_.push(new AMm(x.JSC$17230_nextMapId_++,p));x.state_==3&&L_H(x)};
Gs.prototype.disposeInternal=function(){this.JSC$17239_channel_.handler_=null;delete this.channelHandler_;this.JSC$17239_channel_.disconnect();delete this.JSC$17239_channel_;Gs.superClass_.disposeInternal.call(this)};
var xWH=function(p){R0H.call(this);p.__headers__&&(this.headers=p.__headers__,this.statusCode=p.__status__,delete p.__headers__,delete p.__status__);var x=p.__sm__;x?this.data=(this.metadataKey=_.Q5.getAnyKey(x))?_.Q5.get(x,this.metadataKey):x:this.data=p};
_.NL(xWH,R0H);var FBH=function(p){k2k.call(this);this.status=1;this.errorCode=p};
_.NL(FBH,k2k);var wd=function(p){this.JSC$17246_channel_=p};
_.NL(wd,er8);wd.prototype.JSC$17236_channelOpened=function(){this.JSC$17246_channel_.dispatchEvent("w")};
wd.prototype.JSC$17236_channelHandleArray=function(p){this.JSC$17246_channel_.dispatchEvent(new xWH(p))};
wd.prototype.JSC$17236_channelError=function(p){this.JSC$17246_channel_.dispatchEvent(new FBH(p))};
wd.prototype.JSC$17236_channelClosed=function(){this.JSC$17246_channel_.dispatchEvent("x")};
var NFH=function(p,x){this.transportChannel_=p;this.JSC$17249_channel_=x},h1m=function(p){return $Ya(p.JSC$17249_channel_).map(function(x){var F=p.transportChannel_;
x=x.map;"__data__"in x?(x=x.__data__,F=F.sendRawJson_?(0,_.xcm)(x):x):F=x;return F})};var VC=function(p){lEX.dispatchEvent(new c5H(lEX,p))},lEX=new _.Sc,c5H=function(p){_.th.call(this,"statevent",p)};
_.E(c5H,_.th);var WF=function(p,x,F,N,h){this.JSC$17254_channel_=p;this.JSC$17254_channelDebug_=x;this.sid_=F;this.JSC$17254_rid_=N;this.JSC$17254_retryId_=h||1;this.timeout_=45E3;this.JSC$17254_eventHandler_=new _.ps(this);this.pollingTimer_=new _.eB;this.pollingTimer_.setInterval(250)};
_.l=WF.prototype;_.l.JSC$17256_extraHeaders_=null;_.l.JSC$17256_successful_=!1;_.l.JSC$17256_watchDogTimerId_=null;_.l.JSC$17256_watchDogTimeoutTime_=null;_.l.JSC$17256_requestStartTime_=null;_.l.JSC$17256_type_=null;_.l.JSC$17256_baseUri_=null;_.l.JSC$17256_requestUri_=null;_.l.JSC$17256_postData_=null;_.l.JSC$17256_xmlHttp_=null;_.l.JSC$17256_xmlHttpChunkStart_=0;_.l.trident_=null;_.l.JSC$17256_verb_=null;_.l.JSC$17256_lastError_=null;_.l.JSC$17256_lastStatusCode_=-1;_.l.sendClose_=!0;
_.l.JSC$17256_cancelled_=!1;_.l.JSC$17256_readyStateChangeThrottleMs_=0;_.l.JSC$17256_readyStateChangeThrottle_=null;var aEk=function(p,x){switch(p){case 0:return"Non-200 return code ("+x+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},M1X={},DWX={};
WF.prototype.setTimeout=function(p){this.timeout_=p};
var KB8=function(p,x,F){p.JSC$17256_type_=1;p.JSC$17256_baseUri_=_.cv(x.clone());p.JSC$17256_postData_=F;p.decodeChunks_=!0;fEm(p,null)},q7X=function(p,x,F,N,h){p.JSC$17256_type_=1;
p.JSC$17256_baseUri_=_.cv(x.clone());p.JSC$17256_postData_=null;p.decodeChunks_=F;h&&(p.sendClose_=!1);fEm(p,N)},fEm=function(p,x){p.JSC$17256_requestStartTime_=Date.now();
Zle(p);p.JSC$17256_requestUri_=p.JSC$17256_baseUri_.clone();DA(p.JSC$17256_requestUri_,"t",p.JSC$17254_retryId_);p.JSC$17256_xmlHttpChunkStart_=0;p.JSC$17256_xmlHttp_=p.JSC$17254_channel_.JSC$17263_createXhrIo(p.JSC$17254_channel_.JSC$17263_shouldUseSecondaryDomains()?x:null);p.JSC$17256_readyStateChangeThrottleMs_>0&&(p.JSC$17256_readyStateChangeThrottle_=new _.IC((0,_.CH)(p.JSC$17256_xmlHttpHandler_,p,p.JSC$17256_xmlHttp_),p.JSC$17256_readyStateChangeThrottleMs_));p.JSC$17254_eventHandler_.listen(p.JSC$17256_xmlHttp_,
"readystatechange",p.JSC$17256_readyStateChangeHandler_);x=p.JSC$17256_extraHeaders_?_.Q5.clone(p.JSC$17256_extraHeaders_):{};p.JSC$17256_postData_?(p.JSC$17256_verb_="POST",x["Content-Type"]="application/x-www-form-urlencoded",p.JSC$17256_xmlHttp_.send(p.JSC$17256_requestUri_,p.JSC$17256_verb_,p.JSC$17256_postData_,x)):(p.JSC$17256_verb_="GET",p.sendClose_&&!_.fT&&(x.Connection="close"),p.JSC$17256_xmlHttp_.send(p.JSC$17256_requestUri_,p.JSC$17256_verb_,null,x));p.JSC$17254_channel_.notifyServerReachabilityEvent(1);
x=p.JSC$17254_channelDebug_;var F=p.JSC$17256_postData_;if(F){var N="";F=F.split("&");for(var h=0;h<F.length;h++){var c=F[h].split("=");if(c.length>1){var M=c[0];c=c[1];var f=M.split("_");N=f.length>=2&&f[1]=="type"?N+(M+"="+c+"&"):N+(M+"=redacted&")}}}else N=null;x.info("XMLHTTP REQ ("+p.JSC$17254_rid_+") [attempt "+p.JSC$17254_retryId_+"]: "+p.JSC$17256_verb_+"\n"+p.JSC$17256_requestUri_+"\n"+N)};
WF.prototype.JSC$17256_readyStateChangeHandler_=function(p){p=p.target;var x=this.JSC$17256_readyStateChangeThrottle_;x&&_.yo(p)==3?(this.JSC$17254_channelDebug_.debug("Throttling readystatechange."),x.fire()):this.JSC$17256_xmlHttpHandler_(p)};
WF.prototype.JSC$17256_xmlHttpHandler_=function(p){try{if(p==this.JSC$17256_xmlHttp_)a:{var x=_.yo(this.JSC$17256_xmlHttp_),F=this.JSC$17256_xmlHttp_.JSC$7652_lastErrorCode_,N=this.JSC$17256_xmlHttp_.getStatus();if(_.fT&&!FNm("420+")){if(x<4)break a}else if(x<3||x==3&&!this.JSC$17256_xmlHttp_.getResponseText())break a;this.JSC$17256_cancelled_||x!=4||F==7||(F==8||N<=0?this.JSC$17254_channel_.notifyServerReachabilityEvent(3):this.JSC$17254_channel_.notifyServerReachabilityEvent(2));t1H(this);var h=
this.JSC$17256_xmlHttp_.getStatus();this.JSC$17256_lastStatusCode_=h;var c=this.JSC$17256_xmlHttp_.getResponseText();c||this.JSC$17254_channelDebug_.debug("No response text for uri "+this.JSC$17256_requestUri_+" status "+h);this.JSC$17256_successful_=h==200;this.JSC$17254_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17254_rid_+") [ attempt "+this.JSC$17254_retryId_+"]: "+this.JSC$17256_verb_+"\n"+this.JSC$17256_requestUri_+"\n"+x+" "+h);if(this.JSC$17256_successful_){x==4&&HF(this);if(this.decodeChunks_){for(p=
!0;!this.JSC$17256_cancelled_&&this.JSC$17256_xmlHttpChunkStart_<c.length;){var M=dW8(this,c);if(M==DWX){x==4&&(this.JSC$17256_lastError_=4,VC(15),p=!1);mu(this.JSC$17254_channelDebug_,this.JSC$17254_rid_,null,"[Incomplete Response]");break}else if(M==M1X){this.JSC$17256_lastError_=4;VC(16);mu(this.JSC$17254_channelDebug_,this.JSC$17254_rid_,c,"[Invalid Chunk]");p=!1;break}else mu(this.JSC$17254_channelDebug_,this.JSC$17254_rid_,M,null),vkk(this,M)}x==4&&c.length==0&&(this.JSC$17256_lastError_=1,
VC(17),p=!1);this.JSC$17256_successful_=this.JSC$17256_successful_&&p;p||(mu(this.JSC$17254_channelDebug_,this.JSC$17254_rid_,c,"[Invalid Chunked Response]"),HF(this),J5X(this))}else mu(this.JSC$17254_channelDebug_,this.JSC$17254_rid_,c,null),vkk(this,c);this.JSC$17256_successful_&&!this.JSC$17256_cancelled_&&(x==4?this.JSC$17254_channel_.JSC$17263_onRequestComplete(this):(this.JSC$17256_successful_=!1,Zle(this)))}else h==400&&c.indexOf("Unknown SID")>0?(this.JSC$17256_lastError_=3,VC(13),this.JSC$17254_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17254_rid_+")")):(this.JSC$17256_lastError_=0,VC(14),this.JSC$17254_channelDebug_.warning("XMLHTTP Bad status "+h+" ("+this.JSC$17254_rid_+")")),HF(this),J5X(this)}else this.JSC$17254_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(f){this.JSC$17254_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var dW8=function(p,x){var F=p.JSC$17256_xmlHttpChunkStart_,N=x.indexOf("\n",F);if(N==-1)return DWX;F=Number(x.substring(F,N));if(isNaN(F))return M1X;N+=1;if(N+F>x.length)return DWX;x=x.slice(N,N+F);p.JSC$17256_xmlHttpChunkStart_=N+F;return x};
WF.prototype.cancel=function(){this.JSC$17256_cancelled_=!0;HF(this)};
var Zle=function(p){p.JSC$17256_watchDogTimeoutTime_=Date.now()+p.timeout_;Ch8(p,p.timeout_)},Ch8=function(p,x){if(p.JSC$17256_watchDogTimerId_!=null)throw Error("vk");
p.JSC$17256_watchDogTimerId_=Ar((0,_.CH)(p.JSC$17256_onWatchDogTimeout_,p),x)},t1H=function(p){p.JSC$17256_watchDogTimerId_&&(_.Mm.clearTimeout(p.JSC$17256_watchDogTimerId_),p.JSC$17256_watchDogTimerId_=null)};
WF.prototype.JSC$17256_onWatchDogTimeout_=function(){this.JSC$17256_watchDogTimerId_=null;var p=Date.now();p-this.JSC$17256_watchDogTimeoutTime_>=0?(this.JSC$17254_channelDebug_.info("TIMEOUT: "+this.JSC$17256_requestUri_),this.JSC$17256_type_!=2&&this.JSC$17254_channel_.notifyServerReachabilityEvent(3),HF(this),this.JSC$17256_lastError_=2,VC(18),J5X(this)):(this.JSC$17254_channelDebug_.warning("WatchDog timer called too early"),Ch8(this,this.JSC$17256_watchDogTimeoutTime_-p))};
var J5X=function(p){p.JSC$17254_channel_.JSC$17263_isClosed()||p.JSC$17256_cancelled_||p.JSC$17254_channel_.JSC$17263_onRequestComplete(p)},HF=function(p){t1H(p);
_.RR(p.JSC$17256_readyStateChangeThrottle_);p.JSC$17256_readyStateChangeThrottle_=null;p.pollingTimer_.stop();p.JSC$17254_eventHandler_.removeAll();if(p.JSC$17256_xmlHttp_){var x=p.JSC$17256_xmlHttp_;p.JSC$17256_xmlHttp_=null;x.abort();x.dispose()}p.trident_&&(p.trident_=null)};
WF.prototype.getLastError=function(){return this.JSC$17256_lastError_};
var vkk=function(p,x){try{p.JSC$17254_channel_.JSC$17263_onRequestData(p,x),p.JSC$17254_channel_.notifyServerReachabilityEvent(4)}catch(F){}};var mu=function(p,x,F,N){var h=p.info;a:if(F&&F!="y2f%"){try{var c=JSON.parse(F);if(c)for(var M=0;M<c.length;M++)if(Array.isArray(c[M])){var f=c[M];if(!(f.length<2)){var K=f[1];if(Array.isArray(K)&&!(K.length<1)){var t=K[0];if(t!="noop"&&t!="stop")for(var d=1;d<K.length;d++)K[d]=""}}}var v=(0,_.s1)(c);break a}catch(C){p.debug("Exception parsing expected JS array - probably was not JS");v=F;break a}v=void 0}else v=F;h.call(p,"XMLHTTP TEXT ("+x+"): "+v+(N?" "+N:""))};
u_.prototype.debug=function(p){this.info(p)};
u_.prototype.info=function(){};
u_.prototype.warning=function(){};var S7a=function(p,x){this.JSC$17261_channel_=p;this.JSC$17261_channelDebug_=x;this.JSC$17261_parser_=new S9};
_.l=S7a.prototype;_.l.JSC$17263_extraHeaders_=null;_.l.JSC$17263_request_=null;_.l.receivedIntermediateResult_=!1;_.l.JSC$17263_path_=null;_.l.state_=null;_.l.JSC$17263_lastStatusCode_=-1;_.l.JSC$17263_hostPrefix_=null;_.l.blockedPrefix_=null;
_.l.connect=function(p){this.JSC$17263_path_=p;p=r5m(this.JSC$17261_channel_,this.JSC$17263_path_);VC(3);Date.now();var x=this.JSC$17261_channel_.firstTestResults_;x!=null?(this.JSC$17263_hostPrefix_=x[0],(this.blockedPrefix_=x[1])?(this.state_=1,Ek8(this)):(this.state_=2,XLm(this))):(DA(p,"MODE","init"),this.JSC$17263_request_=new WF(this,this.JSC$17261_channelDebug_),this.JSC$17263_request_.JSC$17256_extraHeaders_=this.JSC$17263_extraHeaders_,q7X(this.JSC$17263_request_,p,!1,null,!0),this.state_=
0)};
var Ek8=function(p){var x=gk8(p.JSC$17261_channel_,p.blockedPrefix_,"/mail/images/cleardot.gif");_.cv(x);oq8(x.toString(),5E3,(0,_.CH)(p.checkBlockedCallback_,p),3,2E3);p.notifyServerReachabilityEvent(1)};
S7a.prototype.checkBlockedCallback_=function(p){if(p)this.state_=2,XLm(this);else{VC(4);var x=this.JSC$17261_channel_;x.JSC$17264_channelDebug_.debug("Test Connection Blocked");x.JSC$17268_lastStatusCode_=x.connectionTest_.JSC$17263_lastStatusCode_;or(x,9)}p&&this.notifyServerReachabilityEvent(2)};
var XLm=function(p){p.JSC$17261_channelDebug_.debug("TestConnection: starting stage 2");var x=p.JSC$17261_channel_.secondTestResults_;x!=null?(p.JSC$17261_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+x?"Buffered":"Unbuffered"),VC(5),x?(VC(11),Oa(p.JSC$17261_channel_,p,!1)):(VC(12),Oa(p.JSC$17261_channel_,p,!0))):(p.JSC$17263_request_=new WF(p,p.JSC$17261_channelDebug_),p.JSC$17263_request_.JSC$17256_extraHeaders_=p.JSC$17263_extraHeaders_,x=Qz8(p.JSC$17261_channel_,
p.JSC$17263_hostPrefix_,p.JSC$17263_path_),VC(5),DA(x,"TYPE","xmlhttp"),q7X(p.JSC$17263_request_,x,!1,p.JSC$17263_hostPrefix_,!1))};
_.l=S7a.prototype;_.l.JSC$17263_createXhrIo=function(p){return this.JSC$17261_channel_.JSC$17263_createXhrIo(p)};
_.l.abort=function(){this.JSC$17263_request_&&(this.JSC$17263_request_.cancel(),this.JSC$17263_request_=null);this.JSC$17263_lastStatusCode_=-1};
_.l.JSC$17263_isClosed=function(){return!1};
_.l.JSC$17263_onRequestData=function(p,x){this.JSC$17263_lastStatusCode_=p.JSC$17256_lastStatusCode_;if(this.state_==0)if(this.JSC$17261_channelDebug_.debug("TestConnection: Got data for stage 1"),x){try{var F=this.JSC$17261_parser_.parse(x)}catch(N){z18(this.JSC$17261_channel_,this);return}this.JSC$17263_hostPrefix_=F[0];this.blockedPrefix_=F[1]}else this.JSC$17261_channelDebug_.debug("TestConnection: Null responseText"),z18(this.JSC$17261_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(VC(7),Date.now()):x=="11111"?(VC(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17263_lastStatusCode_=200,this.JSC$17263_request_.cancel(),this.JSC$17261_channelDebug_.debug("Test connection succeeded; using streaming connection"),VC(12),Oa(this.JSC$17261_channel_,this,!0)):(VC(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.l.JSC$17263_onRequestComplete=function(){this.JSC$17263_lastStatusCode_=this.JSC$17263_request_.JSC$17256_lastStatusCode_;this.JSC$17263_request_.JSC$17256_successful_?this.state_==0?(this.JSC$17261_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,Ek8(this)):(this.state_=2,XLm(this))):this.state_==2&&(this.JSC$17261_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17261_channelDebug_.debug("Test connection succeeded; using streaming connection"),
VC(12),Oa(this.JSC$17261_channel_,this,!0)):(this.JSC$17261_channelDebug_.debug("Test connection failed; not using streaming"),VC(11),Oa(this.JSC$17261_channel_,this,!1))):(this.JSC$17261_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?VC(9):this.state_==2&&VC(10),z18(this.JSC$17261_channel_,this,this.JSC$17263_request_.getLastError()))};
_.l.JSC$17263_shouldUseSecondaryDomains=function(){return this.JSC$17261_channel_.JSC$17263_shouldUseSecondaryDomains()};
_.l.isActive=function(){return this.JSC$17261_channel_.isActive()};
_.l.notifyServerReachabilityEvent=function(p){this.JSC$17261_channel_.notifyServerReachabilityEvent(p)};var j9=function(p,x,F){this.state_=1;this.JSC$17264_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17264_channelDebug_=new u_;this.JSC$17264_parser_=new S9;this.firstTestResults_=p||null;this.secondTestResults_=x!=null?x:null;this.asyncTest_=F||!1},szm=function(p,x){this.JSC$17266_mapId=p;
this.map=x;this.context=null};
_.l=j9.prototype;_.l.JSC$17268_extraHeaders_=null;_.l.JSC$17268_extraParams_=null;_.l.forwardChannelRequest_=null;_.l.JSC$17268_backChannelRequest_=null;_.l.JSC$17268_path_=null;_.l.JSC$17268_forwardChannelUri_=null;_.l.JSC$17268_backChannelUri_=null;_.l.JSC$17268_hostPrefix_=null;_.l.JSC$17268_nextRid_=0;_.l.JSC$17268_nextMapId_=0;_.l.handler_=null;_.l.JSC$17268_forwardChannelTimerId_=null;_.l.JSC$17268_backChannelTimerId_=null;_.l.JSC$17268_deadBackChannelTimerId_=null;_.l.connectionTest_=null;
_.l.useChunked_=null;_.l.JSC$17268_lastArrayId_=-1;_.l.JSC$17268_lastPostResponseArrayId_=-1;_.l.JSC$17268_lastStatusCode_=-1;_.l.JSC$17268_forwardChannelRetryCount_=0;_.l.JSC$17268_backChannelRetryCount_=0;_.l.JSC$17268_channelVersion_=8;var nkD={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},y58=function(p,x,F,N){_.th.call(this,"timingevent",p);this.size=x;this.rtt=F;this.retries=N};
_.NL(y58,_.th);var blH=function(p){_.th.call(this,"serverreachability",p)};
_.NL(blH,_.th);j9.prototype.connect=function(p,x,F,N,h){this.JSC$17264_channelDebug_.debug("connect()");VC(0);this.JSC$17268_path_=x;this.JSC$17268_extraParams_=F||{};N&&h!==void 0&&(this.JSC$17268_extraParams_.OSID=N,this.JSC$17268_extraParams_.OAID=h);this.asyncTest_?(Ar((0,_.CH)(this.connectTest_,this,p),100),A5m(this)):this.connectTest_(p)};
j9.prototype.disconnect=function(){this.JSC$17264_channelDebug_.debug("disconnect()");uO_(this);if(this.state_==3){var p=this.JSC$17268_nextRid_++,x=this.JSC$17268_forwardChannelUri_.clone();_.WS(x,"SID",this.sid_);_.WS(x,"RID",p);_.WS(x,"TYPE","terminate");LA(this,x);p=new WF(this,this.JSC$17264_channelDebug_,this.sid_,p);p.JSC$17256_type_=2;p.JSC$17256_baseUri_=_.cv(x.clone());(new Image).src=p.JSC$17256_baseUri_.toString();p.JSC$17256_requestStartTime_=Date.now();Zle(p)}Y7H(this)};
j9.prototype.connectTest_=function(p){this.JSC$17264_channelDebug_.debug("connectTest_()");this.connectionTest_=new S7a(this,this.JSC$17264_channelDebug_);this.connectionTest_.JSC$17263_extraHeaders_=this.JSC$17268_extraHeaders_;this.connectionTest_.JSC$17261_parser_=this.JSC$17264_parser_;this.connectionTest_.connect(p)};
var A5m=function(p){p.JSC$17264_channelDebug_.debug("connectChannel_()");p.JSC$17268_ensureInState_(1,0);p.JSC$17268_forwardChannelUri_=r5m(p,p.JSC$17268_path_);wLH(p)},uO_=function(p){p.connectionTest_&&(p.connectionTest_.abort(),p.connectionTest_=null);
p.JSC$17268_backChannelRequest_&&(p.JSC$17268_backChannelRequest_.cancel(),p.JSC$17268_backChannelRequest_=null);p.JSC$17268_backChannelTimerId_&&(_.Mm.clearTimeout(p.JSC$17268_backChannelTimerId_),p.JSC$17268_backChannelTimerId_=null);GM8(p);p.forwardChannelRequest_&&(p.forwardChannelRequest_.cancel(),p.forwardChannelRequest_=null);p.JSC$17268_forwardChannelTimerId_&&(_.Mm.clearTimeout(p.JSC$17268_forwardChannelTimerId_),p.JSC$17268_forwardChannelTimerId_=null)},V1H=function(p,x){if(p.state_==0)throw Error("yk");
p.JSC$17264_outgoingMaps_.length==1E3&&p.JSC$17264_parser_.stringify(x);p.JSC$17264_outgoingMaps_.push(new szm(p.JSC$17268_nextMapId_++,x));p.state_!=2&&p.state_!=3||wLH(p)};
j9.prototype.JSC$17263_isClosed=function(){return this.state_==0};
j9.prototype.getState=function(){return this.state_};
var wLH=function(p){p.forwardChannelRequest_||p.JSC$17268_forwardChannelTimerId_||(p.JSC$17268_forwardChannelTimerId_=Ar((0,_.CH)(p.JSC$17268_onStartForwardChannelTimer_,p),0),p.JSC$17268_forwardChannelRetryCount_=0)};
j9.prototype.JSC$17268_onStartForwardChannelTimer_=function(p){this.JSC$17268_forwardChannelTimerId_=null;WBa(this,p)};
var WBa=function(p,x){p.JSC$17264_channelDebug_.debug("startForwardChannel_");if(p.state_==1){if(!x){p.JSC$17264_channelDebug_.debug("open_()");p.JSC$17268_nextRid_=Math.floor(Math.random()*1E5);x=p.JSC$17268_nextRid_++;var F=new WF(p,p.JSC$17264_channelDebug_,"",x);F.JSC$17256_extraHeaders_=p.JSC$17268_extraHeaders_;var N=Hlt(p),h=p.JSC$17268_forwardChannelUri_.clone();_.WS(h,"RID",x);_.WS(h,"CVER","1");LA(p,h);KB8(F,h,N);p.forwardChannelRequest_=F;p.state_=2}}else p.state_==3&&(x?mWa(p,x):p.JSC$17264_outgoingMaps_.length==
0?p.JSC$17264_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):p.forwardChannelRequest_||(mWa(p),p.JSC$17264_channelDebug_.debug("startForwardChannel_ finished, sent request")))},mWa=function(p,x){if(x)if(p.JSC$17268_channelVersion_>6){p.JSC$17264_outgoingMaps_=p.pendingMaps_.concat(p.JSC$17264_outgoingMaps_);
p.pendingMaps_.length=0;var F=p.JSC$17268_nextRid_-1;x=Hlt(p)}else F=x.JSC$17254_rid_,x=x.JSC$17256_postData_;else F=p.JSC$17268_nextRid_++,x=Hlt(p);var N=p.JSC$17268_forwardChannelUri_.clone();_.WS(N,"SID",p.sid_);_.WS(N,"RID",F);_.WS(N,"AID",p.JSC$17268_lastArrayId_);LA(p,N);F=new WF(p,p.JSC$17264_channelDebug_,p.sid_,F,p.JSC$17268_forwardChannelRetryCount_+1);F.JSC$17256_extraHeaders_=p.JSC$17268_extraHeaders_;F.setTimeout(1E4+Math.round(1E4*Math.random()));p.forwardChannelRequest_=F;KB8(F,N,x)},
LA=function(p,x){p.handler_&&(p=p.handler_.JSC$17275_getAdditionalParams())&&_.Q5.forEach(p,function(F,N){_.WS(x,N,F)})},Hlt=function(p){var x=Math.min(p.JSC$17264_outgoingMaps_.length,1E3),F=["count="+x];
if(p.JSC$17268_channelVersion_>6&&x>0){var N=p.JSC$17264_outgoingMaps_[0].JSC$17266_mapId;F.push("ofs="+N)}else N=0;for(var h={},c=0;c<x;h={mapId$jscomp$3:void 0},c++){h.mapId$jscomp$3=p.JSC$17264_outgoingMaps_[c].JSC$17266_mapId;var M=p.JSC$17264_outgoingMaps_[c].map;h.mapId$jscomp$3=p.JSC$17268_channelVersion_<=6?c:h.mapId$jscomp$3-N;try{_.Q5.forEach(M,function(f){return function(K,t){F.push("req"+f.mapId$jscomp$3+"_"+t+"="+encodeURIComponent(K))}}(h))}catch(f){F.push("req"+h.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}p.pendingMaps_=p.pendingMaps_.concat(p.JSC$17264_outgoingMaps_.splice(0,x));
return F.join("&")},ok_=function(p){p.JSC$17268_backChannelRequest_||p.JSC$17268_backChannelTimerId_||(p.JSC$17268_backChannelAttemptId_=1,p.JSC$17268_backChannelTimerId_=Ar((0,_.CH)(p.JSC$17268_onStartBackChannelTimer_,p),0),p.JSC$17268_backChannelRetryCount_=0)},jzH=function(p){if(p.JSC$17268_backChannelRequest_||p.JSC$17268_backChannelTimerId_||p.JSC$17268_backChannelRetryCount_>=3)return!1;
p.JSC$17264_channelDebug_.debug("Going to retry GET");p.JSC$17268_backChannelAttemptId_++;p.JSC$17268_backChannelTimerId_=Ar((0,_.CH)(p.JSC$17268_onStartBackChannelTimer_,p),Ol8(p,p.JSC$17268_backChannelRetryCount_));p.JSC$17268_backChannelRetryCount_++;return!0};
j9.prototype.JSC$17268_onStartBackChannelTimer_=function(){this.JSC$17268_backChannelTimerId_=null;this.JSC$17264_channelDebug_.debug("Creating new HttpRequest");this.JSC$17268_backChannelRequest_=new WF(this,this.JSC$17264_channelDebug_,this.sid_,"rpc",this.JSC$17268_backChannelAttemptId_);this.JSC$17268_backChannelRequest_.JSC$17256_extraHeaders_=this.JSC$17268_extraHeaders_;this.JSC$17268_backChannelRequest_.JSC$17256_readyStateChangeThrottleMs_=0;var p=this.JSC$17268_backChannelUri_.clone();_.WS(p,
"RID","rpc");_.WS(p,"SID",this.sid_);_.WS(p,"CI",this.useChunked_?"0":"1");_.WS(p,"AID",this.JSC$17268_lastArrayId_);LA(this,p);_.WS(p,"TYPE","xmlhttp");q7X(this.JSC$17268_backChannelRequest_,p,!0,this.JSC$17268_hostPrefix_,!1);this.JSC$17264_channelDebug_.debug("New Request created")};
var Oa=function(p,x,F){p.JSC$17264_channelDebug_.debug("Test Connection Finished");p.useChunked_=p.secondTestResults_==null?F:!p.secondTestResults_;p.JSC$17268_lastStatusCode_=x.JSC$17263_lastStatusCode_;p.asyncTest_||A5m(p)},z18=function(p,x){p.JSC$17264_channelDebug_.debug("Test Connection Failed");
p.JSC$17268_lastStatusCode_=x.JSC$17263_lastStatusCode_;or(p,2)};
j9.prototype.JSC$17263_onRequestData=function(p,x){if(this.state_!=0&&(this.JSC$17268_backChannelRequest_==p||this.forwardChannelRequest_==p))if(this.JSC$17268_lastStatusCode_=p.JSC$17256_lastStatusCode_,this.forwardChannelRequest_==p&&this.state_==3)if(this.JSC$17268_channelVersion_>7){try{var F=this.JSC$17264_parser_.parse(x)}catch(N){F=null}if(Array.isArray(F)&&F.length==3)if(x=F,x[0]==0)a:if(this.JSC$17264_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17268_backChannelTimerId_)this.JSC$17264_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17268_backChannelRequest_)if(this.JSC$17268_backChannelRequest_.JSC$17256_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17256_requestStartTime_)GM8(this),this.JSC$17268_backChannelRequest_.cancel(),this.JSC$17268_backChannelRequest_=null;else break a;else this.JSC$17264_channelDebug_.warning("We do not have a BackChannel established");jzH(this);VC(19)}else this.JSC$17268_lastPostResponseArrayId_=x[1],p=this.JSC$17268_lastPostResponseArrayId_-this.JSC$17268_lastArrayId_,0<
p&&(x=x[2],this.JSC$17264_channelDebug_.debug(x+" bytes (in "+p+" arrays) are outstanding on the BackChannel"),x<37500&&this.useChunked_&&this.JSC$17268_backChannelRetryCount_==0&&!this.JSC$17268_deadBackChannelTimerId_&&(this.JSC$17268_deadBackChannelTimerId_=Ar((0,_.CH)(this.JSC$17268_onBackChannelDead_,this),6E3)));else this.JSC$17264_channelDebug_.debug("Bad POST response data returned"),or(this,11)}else x!="y2f%"&&(this.JSC$17264_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
or(this,11));else this.JSC$17268_backChannelRequest_==p&&GM8(this),_.tz(x)||(p=this.JSC$17264_parser_.parse(x),this.onInput_(p))};
j9.prototype.JSC$17268_onBackChannelDead_=function(){this.JSC$17268_deadBackChannelTimerId_!=null&&(this.JSC$17268_deadBackChannelTimerId_=null,this.JSC$17268_backChannelRequest_.cancel(),this.JSC$17268_backChannelRequest_=null,jzH(this),VC(20))};
var GM8=function(p){p.JSC$17268_deadBackChannelTimerId_!=null&&(_.Mm.clearTimeout(p.JSC$17268_deadBackChannelTimerId_),p.JSC$17268_deadBackChannelTimerId_=null)};
j9.prototype.JSC$17263_onRequestComplete=function(p){this.JSC$17264_channelDebug_.debug("Request complete");if(this.JSC$17268_backChannelRequest_==p){GM8(this);this.JSC$17268_backChannelRequest_=null;var x=2}else if(this.forwardChannelRequest_==p)this.forwardChannelRequest_=null,x=1;else return;this.JSC$17268_lastStatusCode_=p.JSC$17256_lastStatusCode_;if(this.state_!=0)if(p.JSC$17256_successful_)if(x==1){x=p.JSC$17256_postData_?p.JSC$17256_postData_.length:0;p=Date.now()-p.JSC$17256_requestStartTime_;
var F=lEX;F.dispatchEvent(new y58(F,x,p,this.JSC$17268_forwardChannelRetryCount_));wLH(this);this.handler_&&this.handler_.JSC$17275_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else ok_(this);else{F=p.getLastError();if(F==3||F==7||F==0&&this.JSC$17268_lastStatusCode_>0)this.JSC$17264_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17264_channelDebug_.debug("Maybe retrying, last error: "+aEk(F,this.JSC$17268_lastStatusCode_));var N;if(N=x==1)this.forwardChannelRequest_||
this.JSC$17268_forwardChannelTimerId_||this.state_==1||this.JSC$17268_forwardChannelRetryCount_>=2?N=!1:(this.JSC$17264_channelDebug_.debug("Going to retry POST"),this.JSC$17268_forwardChannelTimerId_=Ar((0,_.CH)(this.JSC$17268_onStartForwardChannelTimer_,this,p),Ol8(this,this.JSC$17268_forwardChannelRetryCount_)),this.JSC$17268_forwardChannelRetryCount_++,N=!0);if(N||x==2&&jzH(this))return;this.JSC$17264_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17264_channelDebug_.debug("Error: HTTP request failed");
switch(F){case 1:or(this,5);break;case 4:or(this,10);break;case 3:or(this,6);break;case 7:or(this,12);break;default:or(this,2)}}};
var Ol8=function(p,x){var F=5E3+Math.floor(Math.random()*1E4);p.isActive()||(p.JSC$17264_channelDebug_.debug("Inactive channel"),F*=2);return F*x};
j9.prototype.onInput_=function(p){for(var x=0;x<p.length;x++){var F=p[x];this.JSC$17268_lastArrayId_=F[0];F=F[1];this.state_==2?F[0]=="c"?(this.sid_=F[1],this.JSC$17268_hostPrefix_=F[2],F=F[3],F!=null?this.JSC$17268_channelVersion_=F:this.JSC$17268_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17275_channelOpened(),this.JSC$17268_backChannelUri_=Qz8(this,this.JSC$17268_hostPrefix_,this.JSC$17268_path_),ok_(this)):F[0]=="stop"&&or(this,7):this.state_==3&&(F[0]=="stop"?or(this,7):
F[0]!="noop"&&this.handler_&&this.handler_.JSC$17275_channelHandleArray(F),this.JSC$17268_backChannelRetryCount_=0)}};
j9.prototype.JSC$17268_ensureInState_=function(p){if(!_.oJ(arguments,this.state_))throw Error("zk`"+this.state_);};
var or=function(p,x){p.JSC$17264_channelDebug_.info("Error code "+x);if(x==2||x==9){var F=null;p.handler_&&(F=null);var N=(0,_.CH)(p.testGoogleComCallback_,p);F||(F=new _.R9("//www.google.com/images/cleardot.gif"),_.cv(F));mDc(F.toString(),1E4,N)}else VC(2);p.onError_(x)};
j9.prototype.testGoogleComCallback_=function(p){p?(this.JSC$17264_channelDebug_.info("Successfully pinged google.com"),VC(2)):(this.JSC$17264_channelDebug_.info("Failed to ping google.com"),VC(1),this.onError_(8))};
j9.prototype.onError_=function(p){this.JSC$17264_channelDebug_.debug("HttpChannel: error - "+p);this.state_=0;this.handler_&&this.handler_.JSC$17275_channelError(p);Y7H(this);uO_(this)};
var Y7H=function(p){p.state_=0;p.JSC$17268_lastStatusCode_=-1;if(p.handler_)if(p.pendingMaps_.length==0&&p.JSC$17264_outgoingMaps_.length==0)p.handler_.JSC$17275_channelClosed();else{p.JSC$17264_channelDebug_.debug("Number of undelivered maps, pending: "+p.pendingMaps_.length+", outgoing: "+p.JSC$17264_outgoingMaps_.length);var x=_.Pr(p.pendingMaps_),F=_.Pr(p.JSC$17264_outgoingMaps_);p.pendingMaps_.length=0;p.JSC$17264_outgoingMaps_.length=0;p.handler_.JSC$17275_channelClosed(x,F)}},r5m=function(p,
x){x=gk8(p,null,x);
p.JSC$17264_channelDebug_.debug("GetForwardChannelUri: "+x);return x},Qz8=function(p,x,F){x=gk8(p,p.JSC$17263_shouldUseSecondaryDomains()?x:null,F);
p.JSC$17264_channelDebug_.debug("GetBackChannelUri: "+x);return x},gk8=function(p,x,F){var N=_.G4(F);
if(N.JSC$7886_domain_!="")x&&_.IX(N,x+"."+N.JSC$7886_domain_),_.ec(N,N.JSC$7886_port_);else{var h=window.location;N=eUH(h.protocol,x?x+"."+h.hostname:h.hostname,+h.port,F)}p.JSC$17268_extraParams_&&_.Q5.forEach(p.JSC$17268_extraParams_,function(c,M){_.WS(N,M,c)});
_.WS(N,"VER",p.JSC$17268_channelVersion_);LA(p,N);return N};
j9.prototype.JSC$17263_createXhrIo=function(p){if(p)throw Error("wk");p=new _.ni;p.JSC$7652_withCredentials_=!1;return p};
j9.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
j9.prototype.notifyServerReachabilityEvent=function(p){var x=lEX;x.dispatchEvent(new blH(x,p))};
j9.prototype.JSC$17263_shouldUseSecondaryDomains=function(){return!1};
new lQc;var LBH=function(){};
_.l=LBH.prototype;_.l.JSC$17275_channelOpened=function(){};
_.l.JSC$17275_channelHandleArray=function(){};
_.l.JSC$17275_channelSuccess=function(){};
_.l.JSC$17275_channelError=function(){};
_.l.JSC$17275_channelClosed=function(){};
_.l.JSC$17275_getAdditionalParams=function(){return{}};
_.l.isActive=function(){return!0};var Pha=function(p){p.front_.length===0&&(p.front_=p.back_,p.front_.reverse(),p.back_=[])};
_.l=jIa.prototype;_.l.enqueue=function(p){this.back_.push(p)};
_.l.peek=function(){Pha(this);return _.GB(this.front_)};
_.l.getCount=function(){return this.front_.length+this.back_.length};
_.l.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.l.clear=function(){this.front_=[];this.back_=[]};
_.l.contains=function(p){return _.oJ(this.front_,p)||_.oJ(this.back_,p)};
_.l.remove=function(p){var x=this.front_;var F=Array.prototype.lastIndexOf.call(x,p,x.length-1);F>=0?(_.XrJ(x,F),x=!0):x=!1;return x||_.Lp(this.back_,p)};
_.l.getValues=function(){for(var p=[],x=this.front_.length-1;x>=0;--x)p.push(this.front_[x]);x=this.back_.length;for(var F=0;F<x;++F)p.push(this.back_[F]);return p};var PF=function(p){this.JSC$17279_map_=new _.lU;this.size=0;p&&this.addAll(p)},TFD=function(p){var x=typeof p;
return x=="object"&&p||x=="function"?"o"+_.$$(p):x.charAt(0)+p};
_.l=PF.prototype;_.l.getCount=function(){return this.JSC$17279_map_.size};
_.l.add=function(p){this.JSC$17279_map_.set(TFD(p),p);this.size=this.JSC$17279_map_.size};
_.l.addAll=function(p){p=_.U1(p);for(var x=p.length,F=0;F<x;F++)this.add(p[F]);this.size=this.JSC$17279_map_.size};
_.l.removeAll=function(p){p=_.U1(p);for(var x=p.length,F=0;F<x;F++)this.remove(p[F]);this.size=this.JSC$17279_map_.size};
_.l.delete=function(p){p=this.JSC$17279_map_.remove(TFD(p));this.size=this.JSC$17279_map_.size;return p};
_.l.remove=function(p){return this.delete(p)};
_.l.clear=function(){this.JSC$17279_map_.clear();this.size=0};
_.l.isEmpty=function(){return this.JSC$17279_map_.size===0};
_.l.has=function(p){return this.JSC$17279_map_.containsKey(TFD(p))};
_.l.contains=function(p){return this.JSC$17279_map_.containsKey(TFD(p))};
_.l.getValues=function(){return this.JSC$17279_map_.getValues()};
_.l.values=function(){return this.JSC$17279_map_.values()};
_.l.clone=function(){return new PF(this)};
_.l.equals=function(p){return this.getCount()==Id_(p)&&BF8(this,p)};
var BF8=function(p,x){var F=Id_(x);if(p.getCount()>F)return!1;!(x instanceof PF)&&F>5&&(x=new PF(x));return $hc(p,function(N){var h=x;return h.contains&&typeof h.contains=="function"?h.contains(N):h.containsValue&&typeof h.containsValue=="function"?h.containsValue(N):_.TB(h)||typeof h==="string"?_.oJ(h,N):_.Q5.containsValue(h,N)})};
PF.prototype.__iterator__=function(){return this.JSC$17279_map_.__iterator__(!1)};
PF.prototype[Symbol.iterator]=function(){return this.values()};var R1H={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(p){return(this._clampValue(p)-this.min)/(this.max-this.min)},
_clampValue:function(p){return Math.min(this.max,Math.max(this.min,this._calcStep(p)))},
_calcStep:function(p){p=parseFloat(p);if(!this.step)return p;p=Math.round((p-this.min)/this.step);return this.step<1?p/(1/this.step)+this.min:p*this.step+this.min},
_validateValue:function(){var p=this._clampValue(this.value);this.value=this.oldValue=isNaN(p)?this.oldValue:p;return this.value!==p},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var kM8;var UWc;_.qu({_template:function(){if(UWc!==void 0)return UWc;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;kM8===void 0&&(kM8=document.createElement("template"));var N=kM8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return UWc=p},
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(){_.jB(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(p){p.keyCode===27&&(p.preventDefault(),this.close())},
_track:function(p){if(!this.persistent&&!this.disableSwipe)switch(p.preventDefault(),p.detail.state){case "start":this._trackStart(p);break;case "track":this._trackMove(p);break;case "end":this._trackEnd(p)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var p=this.$.contentContainer.getBoundingClientRect();this._savedWidth=p.width;this._translateOffset=this.position==="left"?p.left:p.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(p){this._trackDetails&&(this._translateDrawer(p.detail.dx+this._translateOffset),this._trackDetails.push({dx:p.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(p){if(this._trackDetails){var x=p.detail.dx+this._translateOffset,F=this.getWidth();x=this.position==="left"?x>=0||x<=-F:x<=0||x>=F;if(!x){var N=this._trackDetails;this._trackDetails=null;this._flingDrawer(p,N);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}F/=2;p.detail.dx<-F?this.opened=this.position==="right":p.detail.dx>F&&(this.opened=this.position==="left");x?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(p,x){for(var F=Date.now(),N=F-100,h,c=0,M=x.length-1;c<=M;){var f=c+M>>1,K=x[f];K.timeStamp>=N?(h=K,M=f-1):c=f+1}return h?(p.detail.dx-h.dx)/(F-h.timeStamp||1):0},
_flingDrawer:function(p,x){x=this._calculateVelocity(p,x);if(!(Math.abs(x)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;p=p.detail.dx+this._translateOffset;var F=this.getWidth(),N=this.position==="left",h=x>0;h?(x=Math.max(x,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(x=Math.min(x,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");x=this._FLING_INITIAL_SLOPE*(!h&&N?-(p+F):h&&!N?F-p:-p)/x;this._styleTransitionDuration(x);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,x)}},
_styleTransitionDuration:function(p){this.style.transitionDuration=p+"ms";this.$.contentContainer.style.transitionDuration=p+"ms";this.$.scrim.style.transitionDuration=p+"ms"},
_styleTransitionTimingFunction:function(p){this.$.contentContainer.style.transitionTimingFunction=p;this.$.scrim.style.transitionTimingFunction=p},
_translateDrawer:function(p){var x=this.getWidth();this.position==="left"?(p=Math.max(-x,Math.min(p,0)),this.$.scrim.style.opacity=1+p/x):(p=Math.max(0,Math.min(p,x)),this.$.scrim.style.opacity=1-p/x);this.translate3d(p+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var p=this._drawerState;p===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;p!==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=""),p!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var p=_.Ef(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"])');p.length>0?(this._firstTabStop=p[0],this._lastTabStop=p[p.length-1]):
this._lastTabStop=this._firstTabStop=null;(p=this.getAttribute("tabindex"))&&parseInt(p,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(p){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||p.keyCode!==9||(p.shiftKey?this._firstTabStop&&_.Ef(p).localTarget===this._firstTabStop&&(p.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Ef(p).localTarget===this._lastTabStop&&(p.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(p,x){this.toggleClass("visible",p&&!x,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 ile;var IE8;_.qu({_template:function(){if(IE8!==void 0)return IE8;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;ile===void 0&&(ile=document.createElement("template"));var N=ile;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return IE8=p},
is:"tp-yt-paper-progress",behaviors:[R1H],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(p){this.toggleClass("indeterminate",p,this.$.primaryProgress)},
_transformProgress:function(p,x){p.style.transform=p.style.webkitTransform="scaleX("+x/100+")"},
_mainRatioChanged:function(p){this._transformProgress(this.$.primaryProgress,p)},
_progressChanged:function(p,x,F,N,h){p=this._clampValue(p);x=this._clampValue(x);var c=this._calcRatio(p)*100,M=this._calcRatio(x)*100;this._setSecondaryRatio(c);this._transformProgress(this.$.secondaryProgress,c);this._transformProgress(this.$.primaryProgress,M);this.secondaryProgress=p;h?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",x);this.setAttribute("aria-valuemin",F);this.setAttribute("aria-valuemax",N)},
_disabledChanged:function(p){this.setAttribute("aria-disabled",p?"true":"false")},
_hideSecondaryProgress:function(p){return p===0}});var $W8;var e1t;var pI_=function(){};
_.l=pI_.prototype;_.l.registered=function(){};
_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l._tapHandler=function(){};
_.l._focusChanged=function(){};
_.l._detectKeyboardFocus=function(){};
_.l._userActivate=function(){};
_.l._upHandler=function(){};
_.l._spaceKeyDownHandler=function(){};
_.l._spaceKeyUpHandler=function(){};
_.l._asyncClick=function(){};
_.l._pressedChanged=function(){};
_.l._ariaActiveAttributeChanged=function(){};
_.l._activeChanged=function(){};
_.l._controlStateChanged=function(){};
_.l._changedButtonState=function(){};
_.l._focusBlurHandler=function(){};
_.l._disabledChanged=function(){};
_.l._changedControlState=function(){};
_.l._buttonStateChanged=function(){};
_.l._downHandler=function(){};
_.l.ensureRipple=function(){};
_.l.getRipple=function(){};
_.l.hasRipple=function(){};
_.l._noinkChanged=function(){};
_.l._calcRatio=function(){};
_.l._clampValue=function(){};
_.l._calcStep=function(){};
_.l._validateValue=function(){};
_.l._update=function(){};
_.l._setImmediateValue=function(){};
_.l._setExpand=function(){};
_.l._setDragging=function(){};
_.l._setTransiting=function(){};
_.l._setMarkers=function(){};
_.l._setPressed=function(){};
_.l._setPointerDown=function(){};
_.l._setReceivedFocusFromKeyboard=function(){};
_.l._setFocused=function(){};
_.l._setRatio=function(){};
pI_=_.qu({_template:function(){if(e1t!==void 0)return e1t;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;$W8===void 0&&($W8=document.createElement("template"));var N=$W8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return e1t=p},
is:"tp-yt-paper-slider",behaviors:[_.C7,_.X5,_.uNm,R1H],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[]}}},
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&&_.s4(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(p,x,F){this.setAttribute("aria-valuemin",x);this.setAttribute("aria-valuemax",F);this.setAttribute("aria-valuenow",p);this._positionKnob(this._calcRatio(p)*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(p){this._setImmediateValue(this._calcStep(this._calcKnobPosition(p)));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(p){return(this.max-this.min)*p/100+this.min},
_onTrack:function(p){p.stopPropagation();switch(p.detail.state){case "start":this._trackStart(p);break;case "track":this._trackX(p);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(p){this.dragging||this._trackStart(p);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,p.detail.dx*(this._isRTL?-1:1)));p=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(p);p=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(p+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var p=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;p.transform=p.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(p){this._expandKnob();p.preventDefault();this.focus()},
_bartrack:function(p){this._allowBarEvent(p)&&this._onTrack(p)},
_barclick:function(p){this._w=this.$.sliderBar.offsetWidth;var x=this.$.sliderBar.getBoundingClientRect();x=(p.detail.x-x.left)/this._w*100;this._isRTL&&(x=100-x);var F=this.ratio;this._setTransiting(!0);this._positionKnob(x);F===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
p.preventDefault();this.focus()},
_bardown:function(p){this._allowBarEvent(p)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(p))},
_knobTransitionEnd:function(p){p.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(p,x,F,N){N||this._setMarkers([]);x=Math.round((F-x)/this.step);x>p&&(x=p);if(x<0||!isFinite(x))x=0;this._setMarkers(Array(x))},
_mergeClasses:function(p){return Object.keys(p).filter(function(x){return p[x]}).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(p){return!this.ignoreBarTouch||p.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(p){this._isRTL?this._incrementKey(p):this._decrementKey(p)},
_rightKey:function(p){this._isRTL?this._decrementKey(p):this._incrementKey(p)},
_incrementKey:function(p){this.disabled||(p.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),p.preventDefault())},
_decrementKey:function(p){this.disabled||(p.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),p.preventDefault())},
_changeValue:function(p){this.value=p.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(p){p.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.Afn._createRipple.call(this)},
_focusedChanged:function(p){p&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=p?"":"none",this._ripple.holdDown=p)}});var xQk;var F$m;var Ts=null,Nc8=function(){};
_.l=Nc8.prototype;_.l.fit=function(){};
_.l._discoverInfo=function(){};
_.l.resetFit=function(){};
_.l.refit=function(){};
_.l.position=function(){};
_.l.constrain=function(){};
_.l._sizeDimension=function(){};
_.l.__sizeDimension=function(){};
_.l.center=function(){};
_.l.__getNormalizedRect=function(){};
_.l.__getOffscreenArea=function(){};
_.l.__getPosition=function(){};
_.l.notifyResize=function(){};
_.l.assignParentResizable=function(){};
_.l.stopResizeNotificationsFor=function(){};
_.l._subscribeIronResize=function(){};
_.l._unsubscribeIronResize=function(){};
_.l.resizerShouldNotify=function(){};
_.l._onDescendantIronResize=function(){};
_.l._fireResize=function(){};
_.l._onIronRequestResizeNotifications=function(){};
_.l._parentResizableChanged=function(){};
_.l._notifyDescendant=function(){};
_.l._requestResizeNotifications=function(){};
_.l._findParent=function(){};
_.l.toggle=function(){};
_.l.open=function(){};
_.l.close=function(){};
_.l.cancel=function(){};
_.l.invalidateTabbables=function(){};
_.l._ensureSetup=function(){};
_.l._canceledChanged=function(){};
_.l._withBackdropChanged=function(){};
_.l._prepareRenderOpened=function(){};
_.l._finishRenderOpened=function(){};
_.l._finishRenderClosed=function(){};
_.l._preparePositioning=function(){};
_.l._finishPositioning=function(){};
_.l._applyFocus=function(){};
_.l._onCaptureClick=function(){};
_.l._onCaptureFocus=function(){};
_.l._onCaptureEsc=function(){};
_.l._onCaptureTab=function(){};
_.l._onIronResize=function(){};
_.l._onNodesChange=function(){};
_.l.__ensureFirstLastFocusables=function(){};
_.l.__openedChanged=function(){};
_.l.__deraf=function(){};
_.l.__updateScrollObservers=function(){};
_.l.__addScrollListeners=function(){};
_.l.__removeScrollListeners=function(){};
_.l.__isValidScrollAction=function(){};
_.l.__onCaptureScroll=function(){};
_.l.__saveScrollPosition=function(){};
_.l.__restoreScrollPosition=function(){};
_.l._setCanceled=function(){};
Nc8=_.qu({_template:function(){if(F$m!==void 0)return F$m;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;xQk===void 0&&(xQk=document.createElement("template"));var N=xQk;F.call(x,N.content.cloneNode(!0),p.content.firstChild);return F$m=p},
is:"tp-yt-paper-toast",behaviors:[_.jC],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(){_.SX._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.Wx.requestAvailability()},
show:function(p){typeof p=="string"&&(p={text:p});for(var x in p)x.indexOf("_")===0?_.SX._warn('The property "'+x+'" is private and was not set.'):x in this?this[x]=p[x]:_.SX._warn('The property "'+x+'" is not valid.');this.open()},
hide:function(){this.close()},
__onTransitionEnd:function(p){p&&p.target===this&&p.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(Ts&&Ts!==this&&Ts.close(),Ts=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):Ts===this&&(Ts=null);_.Oq._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(p){this.positionTarget=p},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var hJ8=new _.U("disablePersonalizationAction");var Hik=new _.U("showDmaConsentFlowCommand");var mi8=new _.U("showMmgNoticeCommand");var lVk=new _.U("saveConsentAction");var c7D=function(p){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.zX(p)};
_.E(c7D,_.Uk);var aV8=_.QMp(c7D);var Mvm=new _.U("updateTopbarAvatarAction");var DQ8=new _.U("channelHandleValidationResultRenderer");var fV8=new _.U("generateHandleFromNameResultRenderer");var K$a=new _.U("channelHandleInputRenderer");var qZ8=new _.U("copyLinkRenderer");var Z_t=new _.U("timedCommand");var tve=new _.U("clearCookieAction");var dQH=new _.U("getMultiPageMenuAction");var veH=new _.U("addToGuideSectionAction"),J7H=new _.U("removeFromGuideSectionAction");var Cp8=new _.U("updateNotificationsUnseenCountAction");var SZk=new _.U("persistSubscriptionsDisplayPreferencesCommand");var r7c=new _.U("resetChannelUnreadCountCommand");var Eee=new _.U("resetSubscriptionsUnreadDotCommand");var XIH=new _.U("selectCountryCommand");var gec=new _.U("selectLanguageCommand");var e4k=new _.U("sendFeedbackAction");var Qam=new _.U("uploadImageToScottyCommand");var zJX=new _.U("webNativeShareCommand");var sae=new _.U("registerPromoCommand");var nem=new _.U("setPushNotificationsEnabledCommand");var y7e=new _.U("desktopTopbarRenderer");var b_t=new _.U("surveyFollowUpRenderer");var A7m=new _.U("handlesClaimingRadioOptionRenderer");var um8=new _.U("hotkeyDialogRenderer");var YZ8=new _.U("modifyReportFormCommand");var wI8=new _.U("accountLinkCommand");var GpX=new _.U("accountUnlinkCommand");var Vv8=new _.U("logAccountLinkingEventCommand");var W$a=new _.U("guideCollapsibleEntryRenderer");var H_H=new _.U("guideDownloadsEntryRenderer");var BF=new _.U("guideEntryRenderer");var mQm=new _.U("getLocationCommand");var oe8=new _.U("locationCollectionCommand");var O_D=new _.U("storiesItemViewModel");var ja8=new _.U("addToRemoteQueueAction");var L$_=new _.U("insertInRemoteQueueAction");var Pp8=new _.U("removeFromRemoteQueueAction");var Tce=new _.U("notificationRenderer");var XsH=new _.U("localWatchHistoryCommand");var Bc8=new _.U("pdgBuyFlowHeaderRenderer");var RJt=new _.U("pdgColorSliderRenderer");var kpH=new _.U("pdgCommentOptionRenderer");var UQH=new _.U("pdgCommentPreviewRenderer");var i_X=new _.U("superVodSelectableItemButtonRenderer");var IVk=new _.U("switchButtonRenderer");var $Qm=new _.U("upsellDialogRenderer");var eJc=new _.U("feedbackQuestionRenderer"),ph8=new _.U("feedbackOptionRenderer");var xxa=new _.U("sponsorshipsTierRenderer"),Fom=new _.U("sponsorshipsPromotionChannelRenderer");var NKm=new _.U("simpleSurveyMessageRenderer");var emm=new _.U("invokeInstrumentManagerAction");var hLH=new _.U("logYpcFlowDismissCommand");var lmH=new _.U("logYpcFlowStartCommand");var c6H=new _.U("unlimitedCreateFamilyEndpoint");var amD=new _.U("iconBadgeRenderer");var SR8=new _.U("collaborativePlaylistVisibilityValidationRule");var Mmt=function(p){_.th.call(this,"channelMessage");this.message=p};
_.E(Mmt,_.th);var Dxm=function(p){_.th.call(this,"channelError");this.error=p};
_.E(Dxm,_.th);var fmm={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",CAST_DIALOG_SIGN_IN:"cds",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"},KoH={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},qNH={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},
ZaD={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},tm8={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var Rr=function(p){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 _.lU;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";p&&(this.id=p.id||p.name,this.name=p.name,this.clientName=p.clientName?p.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=p.app,this.type=p.type||"REMOTE_CONTROL",this.username=p.user||"",this.avatar=p.userAvatarUri||"",this.obfuscatedGaiaId=p.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=p.ownerObfuscatedGaiaId||"",this.theme=p.theme||"u",dxH(this,p.capabilities||""),voa(this,p.compatibleSenderThemes||""),J6D(this,p.experiments||""),
this.remoteControllerUrl=p.remoteControllerUrl||"",this.localChannelEncryptionKey=p.localChannelEncryptionKey||"",this.deviceContext=p.deviceContext,this.brand=p.brand||"",this.model=p.model||"",this.year=p.year||0,this.os=p.os||"",this.osVersion=p.osVersion||"",this.chipset=p.chipset||"",this.mdxDialServerType=p.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=p.pairingType||"unknown",p=p.deviceInfo)&&(p=JSON.parse(p),this.brand=p.brand||"",this.model=p.model||"",this.year=p.year||
0,this.os=p.os||"",this.osVersion=p.osVersion||"",this.chipset=p.chipset||"",this.clientName=p.clientName?p.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=p.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
Rr.prototype.copy=function(){var p={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&&(p.brand=this.brand);
this.model&&(p.model=this.model);this.year&&(p.year=this.year);this.os&&(p.os=this.os);this.osVersion&&(p.osVersion=this.osVersion);this.chipset&&(p.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(p.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(p.mdxDialServerType=this.mdxDialServerType);p=new Rr(p);p.connected=this.connected;p.remoteControllerUrl=this.remoteControllerUrl;p.localChannelEncryptionKey=this.localChannelEncryptionKey;p.deviceContext=
this.deviceContext;return p};
Rr.prototype.equals=function(p){return p?this.id==p.id:!1};
var dxH=function(p,x){p.capabilities.clear();_.cW(x.split(","),_.Sz(_.Q5.contains,fmm)).forEach(function(F){p.capabilities.add(F)})},voa=function(p,x){p.compatibleSenderThemes.clear();
_.cW(x.split(","),_.Sz(_.Q5.contains,KoH)).forEach(function(F){p.compatibleSenderThemes.add(F)})},J6D=function(p,x){p.experiments.clear();
x.split(",").forEach(function(F){p.experiments.add(F)})};var Cta=function(p,x){this.action=p;this.params=x||{}};_.NL(LDH,_.Jm);_.l=LDH.prototype;_.l.JSC$17315_onTick_=function(){this.JSC$17313_interval_=Math.min(3E5,this.JSC$17313_interval_*2);this.JSC$17315_listener_();this.nextTickTime_&&this.start()};
_.l.start=function(){var p=this.JSC$17313_interval_+15E3*Math.random(),x=this.delay_;x.isActive()||x.start(p);this.nextTickTime_=Date.now()+p};
_.l.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.l.isActive=function(){return this.delay_.isActive()};
_.l.reset=function(){this.delay_.stop();this.JSC$17313_interval_=5E3};_.NL(YR,LBH);_.l=YR.prototype;_.l.subscribe=function(p,x,F){return this.pubsub_.subscribe(p,x,F)};
_.l.unsubscribe=function(p,x,F){return this.pubsub_.unsubscribe(p,x,F)};
_.l.unsubscribeByKey=function(p){return this.pubsub_.unsubscribeByKey(p)};
_.l.publish=function(p,x){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.l.dispose=function(){this.JSC$17316_disposed_||(this.JSC$17316_disposed_=!0,_.RR(this.pubsub_),this.disconnect(),_.RR(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17316_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.qt({})})};
_.l.isDisposed=function(){return this.JSC$17316_disposed_};
_.l.connect=function(p,x,F){var N=this,h,c,M,f;return _.D(function(K){if(K.nextAddress==1)return _.tB(K,2),N.useAsyncBrowserChannelHandler_?_.q(K,N.connectPromise_,2):K.jumpTo(2);_.ZC(K);if(N.JSC$17316_disposed_||N.JSC$17316_channel_&&N.JSC$17316_channel_.getState()==2)return K.return();N.sCookie_="";N.reconnectTimer_.stop();N.connectionParams_=p||null;N.connectUi_=x||0;h=N.JSC$17316_pathPrefix_+"/test";c=N.JSC$17316_pathPrefix_+"/bind";M=new j9(F?F.firstTestResults:null,F?F.secondTestResults:null,
N.enableAsyncTest_);if(f=N.JSC$17316_channel_)f.handler_=null;M.handler_=N;N.JSC$17316_channel_=M;if(N.useAsyncBrowserChannelHandler_)return N.connectPromise_=SNm(N).then(function(){return r6k(N,h,c,f,F)}),K.return(N.connectPromise_.then(function(){N.connectPromise_=_.qt()}));
r6k(N,h,c,f,F);return _.dn(K,0)})};
var r6k=function(p,x,F,N,h){EoH(p);if(p.JSC$17316_channel_){var c=_.sd("ID_TOKEN"),M=p.JSC$17316_channel_.JSC$17268_extraHeaders_||{};c?M["x-youtube-identity-token"]=c:delete M["x-youtube-identity-token"];p.JSC$17316_channel_.JSC$17268_extraHeaders_=M}Xhm(p);N?(N.getState(),p.JSC$17316_channel_.connect(x,F,p.defaultQueryParams_,N.sid_,N.JSC$17268_lastArrayId_)):h?p.JSC$17316_channel_.connect(x,F,p.defaultQueryParams_,h.sessionId,h.arrayId):p.JSC$17316_channel_.connect(x,F,p.defaultQueryParams_)};
YR.prototype.disconnect=function(p){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.qt())}finally{this.disconnectUi_=p||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),EoH(this),this.JSC$17316_channel_&&(this.JSC$17316_channel_.getState()==3&&WBa(this.JSC$17316_channel_),this.JSC$17316_channel_.disconnect()),this.disconnectUi_=0}};
YR.prototype.sendMessage=function(p,x){var F=this,N;return _.D(function(h){switch(h.nextAddress){case 1:_.tB(h,2);if(!F.useAsyncBrowserChannelHandler_){h.jumpTo(2);break}return _.q(h,F.connectPromise_,2);case 2:_.ZC(h);if(F.JSC$17316_disposed_)return h.return();N={_sc:p};x&&_.Q5.extend(N,x);if(F.reconnectTimer_.isActive()||(F.JSC$17316_channel_?F.JSC$17316_channel_.getState():0)==2){F.JSC$17316_pendingMessages_.push(N);h.jumpTo(6);break}if(!F.isChannelOpened()){h.jumpTo(6);break}_.tB(h,8);if(!F.useAsyncBrowserChannelHandler_||
goc(F,p)){h.jumpTo(8);break}return _.q(h,SNm(F),8);case 8:_.ZC(h,0,0,1);F.isChannelOpened()&&(goc(F,p)||Xhm(F),EoH(F),V1H(F.JSC$17316_channel_,N));_.dn(h,6,1);break;case 6:_.dn(h,0)}})};
var goc=function(p,x){return p.enableMdxAuthForConnectionOnly_?!0:p.disableMdxAuthForAdMessages_?Object.values(qNH).includes(x):p.disableMdxAuthForNonPlaybackMessages_?!Object.values(ZaD).includes(x):p.disableMdxAuthForShortsMessages_?Object.values(tm8).includes(x):!1};
YR.prototype.JSC$17275_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17316_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)QBD(this);else{var p=this.JSC$17316_pendingMessages_;this.JSC$17316_pendingMessages_=[];var x=p.length;Xhm(this);zLH(this,p,x);sBm(this)}else sBm(this)};
var QBD=function(p){var x,F;_.D(function(N){if(N.nextAddress==1)return _.tB(N,2),_.q(N,SNm(p),2);_.ZC(N);x=p.JSC$17316_pendingMessages_;p.JSC$17316_pendingMessages_=[];F=x.length;zLH(p,x,F);sBm(p);return _.dn(N,0)})},zLH=function(p,x,F){for(var N=0;N<F;++N)V1H(p.JSC$17316_channel_,x[N]);
sBm(p)},sBm=function(p){p.publish("handlerOpened");
p.JSC$17316_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.l=YR.prototype;_.l.JSC$17275_channelError=function(p){var x=p==2&&this.JSC$17316_channel_.JSC$17268_lastStatusCode_==401;p==4||x||this.reconnectTimer_.start();this.publish("handlerError",p,x);x=Object.keys(nkD).find(function(F){return nkD[F]===p});
this.JSC$17316_channelErrorCounter.increment("BROWSER_CHANNEL",x!=null?x:"UNKNOWN")};
_.l.JSC$17275_channelClosed=function(p,x){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(x)for(var F=x.length,N=0;N<F;++N){var h=x[N].map;h&&this.JSC$17316_pendingMessages_.push(h)}this.JSC$17316_channelClosedCounter.increment("BROWSER_CHANNEL");p&&this.pendingMapsOnClosedCounter.JSC$7785_streamzService.JSC$7643_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",p.length);x&&this.undeliveredMapsOnClosedCounter.JSC$7788_streamzService.JSC$7643_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
x.length)};
_.l.JSC$17275_channelSuccess=function(p,x){x!=null&&p!=null&&this.channelMessageSentCounter.increment()};
_.l.JSC$17275_getAdditionalParams=function(){var p={v:2};this.sCookie_&&(p.gsessionid=this.sCookie_);this.connectUi_!=0&&(p.ui=""+this.connectUi_);this.disconnectUi_!=0&&(p.ui=""+this.disconnectUi_);this.connectionParams_&&_.Q5.extend(p,this.connectionParams_);return p};
_.l.JSC$17275_channelHandleArray=function(p){p[0]=="S"?this.sCookie_=p[1]:p[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17316_channel_.disconnect()):this.publish("handlerMessage",new Cta(p[0],p[1]));this.JSC$17316_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.l.isChannelOpened=function(){return!!this.JSC$17316_channel_&&this.JSC$17316_channel_.getState()==3};
var EoH=function(p){if(p.JSC$17316_channel_){var x=p.JSC$17316_getXsrfToken_(),F=p.JSC$17316_channel_.JSC$17268_extraHeaders_||{};x?F["x-youtube-lounge-xsrf-token"]=x:delete F["x-youtube-lounge-xsrf-token"];p.JSC$17316_channel_.JSC$17268_extraHeaders_=F}},SNm=function(p){if(p.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.qt();
if(!p.enableCachedUpdateAuthorizationHeader_)return noD(p);p.updateAuthorizationHeaderPromise_===null&&(p.updateAuthorizationHeaderPromise_=noD(p));return p.updateAuthorizationHeaderPromise_},noD=function(p){return _.g8(p.getAuthorizationHeader_().then(function(x){y6H(p,x)}).thenCatch(function(){}),function(){p.updateAuthorizationHeaderPromise_=null})},y6H=function(p,x){if(p.JSC$17316_channel_){var F=p.JSC$17316_channel_.JSC$17268_extraHeaders_||{};
x&&Object.keys(x).length>0?F=Object.assign({},F,x):delete F.Authorization;p.JSC$17316_channel_.JSC$17268_extraHeaders_=F}},Xhm=function(p){p.getAuthorizationHeaderSync_&&!p.useAsyncBrowserChannelHandler_&&y6H(p,p.getAuthorizationHeaderSync_())};
_.l=YR.prototype;_.l.setLoungeToken=function(p){(this.defaultQueryParams_.loungeIdToken=p)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17316_channel_){var x=this.JSC$17316_channel_.JSC$17268_extraHeaders_||{};p?x["X-YouTube-LoungeId-Token"]=p:delete x["X-YouTube-LoungeId-Token"];this.JSC$17316_channel_.JSC$17268_extraHeaders_=x}};
_.l.getDeviceId=function(){return this.defaultQueryParams_.id};
_.l.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.l.reconnect=function(){var p=this.reconnectTimer_;p.delay_.fire();p.start()};
_.l.safeReconnect_=function(){var p=this.JSC$17316_channel_,x=0;p.JSC$17268_backChannelRequest_&&x++;p.forwardChannelRequest_&&x++;x==0&&this.connect(this.connectionParams_,this.connectUi_)};var oe=function(p,x){var F=p.basePath;p.supportCors&&(F=p.scheme+"://"+p.domain+p.port+p.basePath);return _.Hw(F+x,{})};
wC.prototype.sendRequest=function(p,x,F,N,h,c,M){p={format:c?"RAW":"JSON",method:p,context:this,timeout:5E3,withCredentials:!!M,onSuccess:_.Sz(this.JSC$17321_onSuccess_,N,!c),onError:_.Sz(this.onError_,h),onTimeout:_.Sz(this.JSC$17321_onTimeout_,h)};F&&(p.postParams=F,p.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.NE(x,p)};
wC.prototype.JSC$17321_onSuccess_=function(p,x,F,N){x?p(N):p({text:F.responseText})};
wC.prototype.onError_=function(p,x){p(Error("Ak`"+x.status))};
wC.prototype.JSC$17321_onTimeout_=function(p){p(Error("Bk"))};var V9=function(p,x){return!!x&&(p.id==x||p.uuid==x)},bam=function(p){return{name:p.name,
screenId:p.id,loungeToken:p.token,dialId:p.uuid,screenIdType:p.idType}},A6a=function(p){return new GP(p)},uhc=function(p){return Array.isArray(p)?_.zy(p,A6a):[]},$gt=function(p){if(!p)return"null";
var x=p.token?".."+p.token.slice(-6):"-",F=p.uuid?".."+p.uuid.slice(-6):"-";return'{name:"'+p.name+'",id:'+p.id.substr(0,6)+"..,token:"+(x+",uuid:"+F+",idType:"+p.idType+"}")},siD=function(p){return Array.isArray(p)?"["+_.zy(p,$gt).join(",")+"]":"null"};var cft="",mK=null;var dgk=function(p,x){_.Sc.call(this);var F=this;this.handler=p();this.handler.subscribe("handlerOpened",this.JSC$17328_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(N,h){F.onError(h)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=x};
_.E(dgk,_.Sc);_.l=dgk.prototype;_.l.connect=function(p,x,F){this.handler.connect(p,x,F)};
_.l.disconnect=function(p){this.handler.disconnect(p)};
_.l.reconnect=function(){this.handler.reconnect()};
_.l.getDeviceId=function(){return this.handler.getDeviceId()};
_.l.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.l.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.l.JSC$17328_onOpened=function(){this.dispatchEvent("channelOpened");var p=this.handler,x=this.currentScreenId;_.a3("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!p.JSC$17316_channel_.useChunked_,sessionId:p.JSC$17316_channel_.sid_,arrayId:p.JSC$17316_channel_.JSC$17268_lastArrayId_});_.a3("yt-remote-session-screen-id",x);p=p$H();x=xgH();_.oJ(p,x)||p.push(x);lXD(p);hft()};
_.l.onClosed=function(){this.dispatchEvent("channelClosed")};
_.l.onMessage=function(p){this.dispatchEvent(new Mmt(p))};
_.l.onError=function(p){this.dispatchEvent(new Dxm(p?1:0))};
_.l.sendMessage=function(p,x){this.handler.sendMessage(p,x)};
_.l.setLoungeToken=function(p){this.handler.setLoungeToken(p)};
_.l.dispose=function(){this.handler.dispose()};var tZ8=function(p,x,F){var N=this;F=F===void 0?function(){return""}:F;
var h=h===void 0?new pLa:h;var c=c===void 0?new _.lb:c;this.pathPrefix=p;this.defaultQueryParams=x;this.getXsrfToken=F;this.JSC$17331_pubsub=c;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new LDH(function(){var M;((M=N.channel)==null?void 0:bX8((new NFH(M,M.JSC$17239_channel_)).JSC$17249_channel_.forwardChannelRequestPool_))===0&&N.connect(N.connectionParams,N.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17331_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17331_channelOpenedCounter=new PW8;this.JSC$17331_channelClosedCounter=new TVc;this.JSC$17331_channelMessageReceivedCounter=new Rce;this.JSC$17331_channelErrorCounter=new kum};
tZ8.prototype.connect=function(p,x){p=p===void 0?{}:p;x=x===void 0?0:x;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=p,this.connectUi=x,YNH(this),(p=_.sd("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=p: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 Gs(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,whH(this))};
var whH=function(p){_.qd(p.channel,"w",function(){p.channelState=3;p.reconnectTimer.reset();p.connectionParams=null;p.connectUi=0;for(var x=_.a(p.nonAckedMessagesOnChannelClosed),F=x.next();!F.done;F=x.next())F=F.value,p.channel&&p.channel.send(F);p.nonAckedMessagesOnChannelClosed=[];p.publish("webChannelOpened");p.JSC$17331_channelOpenedCounter.increment("WEB_CHANNEL")});
_.qd(p.channel,"x",function(){p.channelState=0;p.reconnectTimer.isActive()||p.publish("webChannelClosed");var x,F=(x=p.channel)==null?void 0:h1m(new NFH(x,x.JSC$17239_channel_));F&&(p.nonAckedMessagesOnChannelClosed=[].concat(_.se(F)));p.JSC$17331_channelClosedCounter.increment("WEB_CHANNEL")});
_.qd(p.channel,"z",function(x){var F=x.data;F[0]==="gracefulReconnect"?(p.reconnectTimer.start(),p.channel&&p.channel.close()):p.publish("webChannelMessage",new Cta(F[0],F[1]));p.lastStatusCode=x.statusCode;p.JSC$17331_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.qd(p.channel,"y",function(){p.lastStatusCode===401||p.reconnectTimer.start();p.publish("webChannelError");p.JSC$17331_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.l=tZ8.prototype;_.l.disconnect=function(p){this.disconnectUi=p===void 0?0:p;this.reconnectTimer.stop();YNH(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.l.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.l.reconnect=function(){var p=this.reconnectTimer;p.delay_.fire();p.start()};
_.l.sendMessage=function(p,x){this.channel&&(YNH(this),p=Object.assign({},{_sc:p},x),this.channel.send(p))};
_.l.setLoungeToken=function(p){p||this.reconnectTimer.stop();p?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=p:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var YNH=function(p){var x=p.getXsrfToken();x?p.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=x:delete p.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.l=tZ8.prototype;_.l.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.l.publish=function(p){return this.JSC$17331_pubsub.publish.apply(this.JSC$17331_pubsub,[p].concat(_.se(_.we.apply(1,arguments))))};
_.l.subscribe=function(p,x,F){return this.JSC$17331_pubsub.subscribe(p,x,F)};
_.l.unsubscribe=function(p,x,F){return this.JSC$17331_pubsub.unsubscribe(p,x,F)};
_.l.unsubscribeByKey=function(p){return this.JSC$17331_pubsub.unsubscribeByKey(p)};
_.l.dispose=function(){this.JSC$17331_disposed||(this.JSC$17331_disposed=!0,_.RR(this.JSC$17331_pubsub),this.disconnect(),_.RR(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.l.isDisposed=function(){return this.JSC$17331_disposed};var ZPa=function(p){_.Sc.call(this);this.webChannelService=p();this.webChannelService.subscribe("webChannelOpened",this.JSC$17339_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.E(ZPa,_.Sc);_.l=ZPa.prototype;_.l.connect=function(p,x){this.webChannelService.connect(p,x)};
_.l.disconnect=function(p){this.webChannelService.disconnect(p)};
_.l.reconnect=function(){this.webChannelService.reconnect()};
_.l.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.l.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.l.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.l.JSC$17339_onOpened=function(){this.dispatchEvent("channelOpened")};
_.l.onClosed=function(){this.dispatchEvent("channelClosed")};
_.l.onMessage=function(p){this.dispatchEvent(new Mmt(p))};
_.l.onError=function(){this.dispatchEvent(new Dxm(this.webChannelService.lastStatusCode===401?1:0))};
_.l.sendMessage=function(p,x){this.webChannelService.sendMessage(p,x)};
_.l.setLoungeToken=function(p){this.webChannelService.setLoungeToken(p)};
_.l.dispose=function(){this.webChannelService.dispose()};var zfe=Date.now(),Oh=null,gVc=Array(50),PV=-1,Qi_=!1;_.NL(TP,_.ey);TP.prototype.getScreens=function(){return this.screens};
TP.prototype.contains=function(p){return!!eca(this.screens,p)};
TP.prototype.get=function(p){return p?WV(this.screens,p):null};
var GK8=function(p,x){var F=p.get(x.uuid)||p.get(x.id);if(F)return p=F.name,F.id=x.id||F.id,F.name=x.name,F.token=x.token,F.uuid=x.uuid||F.uuid,F.name!=p;p.screens.push(x);return!0},Vm8=function(p,x){var F=p.screens.length!=x.length;
p.screens=_.cW(p.screens,function(c){return!!eca(x,c)});
for(var N=x.length,h=0;h<N;h++)F=GK8(p,x[h])||F;return F},Woc=function(p,x){var F=p.screens.length;
p.screens=_.cW(p.screens,function(N){return!(N||x?!N!=!x?0:N.id==x.id:1)});
return p.screens.length<F};
TP.prototype.info=function(p){j8(this.JSC$17340_logName_,p)};var Ham=function(p,x,F,N,h){_.ey.call(this);this.JSC$17343_http_=p;this.pairingCode_=x;this.deviceId_=F;this.friendlyName_=N;this.enableShortLivedLoungeToken_=h;this.pollIndex_=0;this.JSC$17343_xhr_=null;this.JSC$17343_timer_=NaN};
_.E(Ham,_.ey);_.l=Ham.prototype;_.l.start=function(){!this.JSC$17343_xhr_&&isNaN(this.JSC$17343_timer_)&&this.poll_()};
_.l.stop=function(){this.JSC$17343_xhr_&&(this.JSC$17343_xhr_.abort(),this.JSC$17343_xhr_=null);isNaN(this.JSC$17343_timer_)||(_.x3(this.JSC$17343_timer_),this.JSC$17343_timer_=NaN)};
_.l.disposeInternal=function(){this.stop();_.ey.prototype.disposeInternal.call(this)};
_.l.poll_=function(){this.JSC$17343_timer_=NaN;this.JSC$17343_xhr_=_.NE(oe(this.JSC$17343_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.CH)(this.JSC$17345_onSuccess_,this),onError:(0,_.CH)(this.onError_,this),onTimeout:(0,_.CH)(this.JSC$17345_onTimeout_,this)})};
_.l.JSC$17345_onSuccess_=function(p,x){this.JSC$17343_xhr_=null;p=x.screen||{};p.dialId=this.deviceId_;p.name=this.friendlyName_;x=-1;this.enableShortLivedLoungeToken_&&p.shortLivedLoungeToken&&p.shortLivedLoungeToken.value&&p.shortLivedLoungeToken.refreshIntervalMs&&(p.screenIdType="shortLived",p.loungeToken=p.shortLivedLoungeToken.value,x=p.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new GP(p),x)};
_.l.onError_=function(p){this.JSC$17343_xhr_=null;p.status&&p.status==404?this.pollIndex_>=mxa.length?this.publish("pairingFailed",Error("Ck")):(p=mxa[this.pollIndex_],this.JSC$17343_timer_=_.er((0,_.CH)(this.poll_,this),p),this.pollIndex_++):this.publish("pairingFailed",Error("Dk`"+p.status))};
_.l.JSC$17345_onTimeout_=function(){this.JSC$17343_xhr_=null;this.publish("pairingFailed",Error("Ek"))};
var mxa=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.NL(Re,TP);_.l=Re.prototype;_.l.start=function(){BV(this)&&this.publish("screenChange");!_.Mq("yt-remote-lounge-token-expiration")&&oom(this);_.x3(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.er((0,_.CH)(this.start,this),1E4)};
_.l.add=function(p,x){BV(this);GK8(this,p);Oa8(this,!1);this.publish("screenChange");x(p);p.token||oom(this)};
_.l.remove=function(p,x){var F=BV(this);Woc(this,p)&&(Oa8(this,!1),F=!0);x(p);F&&this.publish("screenChange")};
_.l.updateName=function(p,x,F,N){var h=BV(this),c=this.get(p.id);c?(c.name!=x&&(c.name=x,Oa8(this,!1),h=!0),F(p)):N(Error("Fk"));h&&this.publish("screenChange")};
_.l.disposeInternal=function(){_.x3(this.loungeTokenRefreshTimer_);Re.superClass_.disposeInternal.call(this)};
var oom=function(p){if(p.screens.length){var x=_.zy(p.screens,function(N){return N.id}),F=oe(p.JSC$17347_http_,"/pairing/get_lounge_token_batch");
p.JSC$17347_http_.sendRequest("POST",F,{screen_ids:x.join(",")},(0,_.CH)(p.handleLoungeTokens_,p),(0,_.CH)(p.handleLoungeTokenError_,p))}};
Re.prototype.handleLoungeTokens_=function(p){BV(this);var x=this.screens.length;p=p&&p.screens||[];for(var F=p.length,N=0;N<F;++N){var h=p[N],c=this.get(h.screenId);c&&(c.token=h.loungeToken,--x)}Oa8(this,!x);x&&j8(this.JSC$17340_logName_,"Missed "+x+" lounge tokens.")};
Re.prototype.handleLoungeTokenError_=function(p){j8(this.JSC$17340_logName_,"Requesting lounge tokens failed: "+p)};
var BV=function(p){if(_.S("deprecate_pair_servlet_enabled"))return Vm8(p,[]);var x=uhc(MZ8());x=_.cW(x,function(F){return!F.uuid});
return Vm8(p,x)},Oa8=function(p,x){fX_(_.zy(p.screens,bam));
x&&Dgt()};var kY=function(p,x){_.ey.call(this);this.getScreensToCheck_=x;x=(x=_.Mq("yt-remote-online-screen-ids")||"")?x.split(","):[];for(var F={},N=this.getScreensToCheck_(),h=N.length,c=0;c<h;++c){var M=N[c].id;F[M]=_.oJ(x,M)}this.screenIdSet_=F;this.JSC$17350_http_=p;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;jBe("Initialized with "+(0,_.s1)(this.screenIdSet_))};
_.E(kY,_.ey);kY.prototype.isOnline=function(p){return!!this.screenIdSet_[p]};
kY.prototype.start=function(){var p=parseInt(_.Mq("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.FV()-144E5<p?0:p)?Lom(this):(this.fastCheckEndTime_=_.FV()+3E5,_.a3("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
kY.prototype.isEmpty=function(){return _.Q5.isEmpty(this.screenIdSet_)};
kY.prototype.update=function(){jBe("Updating availability on schedule.");var p=this.getScreensToCheck_(),x=_.Q5.filter(this.screenIdSet_,function(F,N){return F&&!!WV(p,N)},this);
Ptm(this,x)};
var TKk=function(p,x,F){var N=oe(p.JSC$17350_http_,"/pairing/get_screen_availability");p.JSC$17350_http_.sendRequest("POST",N,{lounge_token:x.token},(0,_.CH)(function(h){h=h.screens||[];for(var c=h.length,M=0;M<c;++M)if(h[M].loungeToken==x.token){F(h[M].status=="online");return}F(!1)},p),(0,_.CH)(function(){F(!1)},p))};
kY.prototype.disposeInternal=function(){_.x3(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.ey.prototype.disposeInternal.call(this)};
var Ptm=function(p,x){a:if(_.Q5.getCount(x)!=_.Q5.getCount(p.screenIdSet_))var F=!1;else{F=_.Q5.getKeys(x);for(var N=F.length,h=0;h<N;++h)if(!p.screenIdSet_[F[h]]){F=!1;break a}F=!0}F||(jBe("Updated online screens: "+(0,_.s1)(p.screenIdSet_)),p.screenIdSet_=x,p.publish("screenChange"));BKt(p)},Lom=function(p){isNaN(p.refreshTimer_)||_.x3(p.refreshTimer_);
p.refreshTimer_=_.er((0,_.CH)(p.requestScreenAvailability_,p),p.fastCheckEndTime_>0&&p.fastCheckEndTime_<_.FV()?2E4:1E4)};
kY.prototype.requestScreenAvailability_=function(){_.x3(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var p=RL8(this);if(_.Q5.getCount(p)){var x=oe(this.JSC$17350_http_,"/pairing/get_screen_availability"),F={lounge_token:_.Q5.getKeys(p).join(",")};this.currentRequest_=this.JSC$17350_http_.sendRequest("POST",x,F,(0,_.CH)(this.onScreenAvailability_,this,p),(0,_.CH)(this.onScreenAvailabilityError_,this))}else Ptm(this,{}),Lom(this)};
kY.prototype.onScreenAvailability_=function(p,x){this.currentRequest_=null;var F=_.Q5.getKeys(RL8(this));if(_.pZ(F,_.Q5.getKeys(p))){x=x.screens||[];F={};for(var N=x.length,h=0;h<N;++h)F[p[x[h].loungeToken]]=x[h].status=="online";Ptm(this,F);Lom(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
kY.prototype.onScreenAvailabilityError_=function(p){this.warn_("Screen availability failed: "+p);this.currentRequest_=null;Lom(this)};
var jBe=function(p){j8("OnlineScreenService",p)};
kY.prototype.warn_=function(p){j8("OnlineScreenService",p)};
var RL8=function(p){var x={};_.w1(p.getScreensToCheck_(),function(F){F.token?x[F.token]=F.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return x},BKt=function(p){p=_.Q5.getKeys(_.Q5.filter(p.screenIdSet_,function(x){return x}));
p.sort(_.sJw);p.length?_.a3("yt-remote-online-screen-ids",p.join(","),60):_.D_("yt-remote-online-screen-ids")};_.NL(kR,TP);_.l=kR.prototype;_.l.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.l.add=function(p,x,F){this.localScreenService_.add(p,x,F)};
_.l.remove=function(p,x,F){this.localScreenService_.remove(p,x,F);this.onlineScreenService_.update()};
_.l.updateName=function(p,x,F,N){this.localScreenService_.contains(p)?this.localScreenService_.updateName(p,x,F,N):(p="Updating name of unknown screen: "+p.name,j8(this.JSC$17340_logName_,p),N(Error(p)))};
_.l.getScreens=function(p){return p?this.screens:Xlk(this.screens,_.cW(this.automaticScreens_,function(x){return!this.contains(x)},this))};
_.l.JSC$17355_getOnlineScreens=function(){return _.cW(this.getScreens(!0),function(p){return this.onlineScreenService_.isOnline(p.id)},this)};
var Uxa=function(p,x,F,N,h,c){p.info("getAutomaticScreenByIds "+F+" / "+x);F||(F=p.deviceToScreenId_[x]);var M=p.getScreens(),f=F?WV(M,F):null;F&&(p.disableAutomaticScreenCache_||f)||(f=WV(M,x));if(f){f.uuid=x;var K=Ua(p,f);TKk(p.onlineScreenService_,K,function(t){h(t?K:null)})}else F?kKm(p,F,(0,_.CH)(function(t){var d=Ua(this,new GP({name:N,
screenId:F,loungeToken:t,dialId:x||""}));TKk(this.onlineScreenService_,d,function(v){h(v?d:null)})},p),c):h(null)};
kR.prototype.JSC$17355_getScreenByPollingPairingCode=function(p,x,F,N,h,c){var M=this;this.info("getDialScreenByPairingCode "+p+" / "+x);var f=new Ham(this.JSC$17353_http_,p,x,F,N);f.subscribe("pairingComplete",function(K,t){_.RR(f);h(Ua(M,K),t)});
f.subscribe("pairingFailed",function(K){_.RR(f);c(K)});
f.start();return(0,_.CH)(f.stop,f)};
var iaD=function(p,x){for(var F=p.screens.length,N=0;N<F;++N)if(p.screens[N].name==x)return p.screens[N];return null};
kR.prototype.JSC$17355_getScreenByPairingCode=function(p,x,F,N){_.NE(oe(this.JSC$17353_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:p},timeout:5E3,onSuccess:(0,_.CH)(function(h,c){h=new GP(c.screen||{});if(!h.name||iaD(this,h.name)){a:{c=h.name;for(var M=2,f=x(c,M);iaD(this,f);){M++;if(M>20)break a;f=x(c,M)}c=f}h.name=c}F(Ua(this,h))},this),
onError:(0,_.CH)(function(h){N(Error("Gk`"+h.status))},this),
onTimeout:(0,_.CH)(function(){N(Error("Hk"))},this)})};
var ImH=function(p,x,F){TKk(p.onlineScreenService_,x,F)};
kR.prototype.disposeInternal=function(){_.RR(this.localScreenService_);_.RR(this.onlineScreenService_);kR.superClass_.disposeInternal.call(this)};
var kKm=function(p,x,F,N){p.info("requestLoungeToken_ for "+x);var h={postParams:{screen_ids:x},method:"POST",context:p,onSuccess:function(c,M){c=M&&M.screens||[];c[0]&&c[0].screenId==x?F(c[0].loungeToken):N(Error("Ik"))},
onError:function(){N(Error("Jk"))}};
_.NE(oe(p.JSC$17353_http_,"/pairing/get_lounge_token_batch"),h)},$xc=function(p){p.screens=p.localScreenService_.getScreens();
for(var x=_.Q5.transpose(p.deviceToScreenId_),F=p.screens.length,N=0;N<F;++N){var h=p.screens[N];h.uuid=x[h.id]||""}p.info("Updated manual screens: "+siD(p.screens))};
kR.prototype.handleScreenChange_=function(){$xc(this);this.publish("screenChange");this.onlineScreenService_.update()};
var nVD=function(p){eLc(p);p.localScreenService_=new Re(p.JSC$17353_http_);p.localScreenService_.subscribe("screenChange",(0,_.CH)(p.handleScreenChange_,p));$xc(p);p.disableAutomaticScreenCache_||(p.automaticScreens_=uhc(_.Mq("yt-remote-automatic-screen-cache")||[]));eLc(p);p.info("Initializing automatic screens: "+siD(p.automaticScreens_));p.onlineScreenService_=new kY(p.JSC$17353_http_,(0,_.CH)(p.getScreens,p,!0));p.onlineScreenService_.subscribe("screenChange",(0,_.CH)(function(){this.publish("onlineScreenChange")},
p))},Ua=function(p,x){var F=p.get(x.id);
F?(F.uuid=x.uuid,x=F):((F=WV(p.automaticScreens_,x.uuid))?(F.id=x.id,F.token=x.token,x=F):p.automaticScreens_.push(x),p.disableAutomaticScreenCache_||pJX(p));eLc(p);p.deviceToScreenId_[x.uuid]=x.id;_.a3("yt-remote-device-id-map",p.deviceToScreenId_,31536E3);return x},pJX=function(p){p=_.cW(p.automaticScreens_,function(x){return x.idType!="shortLived"});
_.a3("yt-remote-automatic-screen-cache",_.zy(p,bam))},eLc=function(p){p.deviceToScreenId_=_.Mq("yt-remote-device-id-map")||{}};
kR.prototype.dispose=kR.prototype.dispose;_.NL(Uh,_.ey);var iN=function(p,x){p.screen_=x;p.publish("sessionScreen",p.screen_)},x5D=function(p,x){p.screen_&&(p.screen_.token=x,Ua(p.JSC$17357_screenService_,p.screen_));
p.publish("sessionScreen",p.screen_)};
Uh.prototype.onSessionStopped=function(p){this.isDisposed()||(p&&(Ir(this,""+p),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
Uh.prototype.info=function(p){j8(this.JSC$17357_logName_,p)};
var Ir=function(p,x){j8(p.JSC$17357_logName_,x)};
Uh.prototype.JSC$17359_getCastSession=function(){return null};
Uh.prototype.setDisplayStatus=function(p){var x=this.receiver_;p?(x.displayStatus=new chrome.cast.ReceiverDisplayStatus(p,[]),x.displayStatus.showStop=!0):x.displayStatus=null;chrome.cast.setReceiverDisplayStatus(x,(0,_.CH)(function(){this.info("Updated receiver status for "+x.friendlyName+": "+p)},this),(0,_.CH)(function(){Ir(this,"Failed to update receiver status for: "+x.friendlyName)},this))};
Uh.prototype.disposeInternal=function(){this.setDisplayStatus("");Uh.superClass_.disposeInternal.call(this)};var $Y=function(p,x,F){Uh.call(this,p,x,"CastSession");var N=this;this.config_=F;this.JSC$17362_session_=null;this.JSC$17362_boundSessionUpdate_=(0,_.CH)(this.JSC$17364_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.CH)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.er(function(){FLH(N,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17362_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17362_isInitLoungeToken_=!1;this.JSC$17362_lastLoungeTokenRefreshError_="unknown"};
_.E($Y,Uh);_.l=$Y.prototype;
_.l.setCastSession=function(p){if(this.JSC$17362_session_){if(this.JSC$17362_session_==p)return;Ir(this,"Overriding cast session with new session object");N4c(this);this.JSC$17362_isInitLoungeToken_=!1;this.JSC$17362_lastLoungeTokenRefreshError_="unknown";this.JSC$17362_session_.removeUpdateListener(this.JSC$17362_boundSessionUpdate_);this.JSC$17362_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17362_session_=p;this.JSC$17362_session_.addUpdateListener(this.JSC$17362_boundSessionUpdate_);this.JSC$17362_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);hba(this,"getMdxSessionStatus")};
_.l.launchWithParams=function(p){this.info("launchWithParams no-op for Cast: "+(0,_.s1)(p))};
_.l.stop=function(){if(this.JSC$17362_session_)this.JSC$17362_session_.stop((0,_.CH)(function(){this.onSessionStopped()},this),(0,_.CH)(function(){this.onSessionStopped(Error("Kk"))},this));
else this.onSessionStopped(Error("Lk"))};
_.l.setDisplayStatus=function(){};
_.l.disposeInternal=function(){this.info("disposeInternal");N4c(this);this.JSC$17362_session_&&(this.JSC$17362_session_.removeUpdateListener(this.JSC$17362_boundSessionUpdate_),this.JSC$17362_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17362_session_=null;Uh.prototype.disposeInternal.call(this)};
var cK8=function(p,x){_.x3(p.getLoungeTokenTimeoutKey_);p.getLoungeTokenTimeoutKey_=0;x==0?lFa(p):p.getLoungeTokenTimeoutKey_=_.er(function(){lFa(p)},x)},lFa=function(p){hba(p,"getLoungeToken");
_.x3(p.onLoungeTokenTimeoutKey_);p.onLoungeTokenTimeoutKey_=_.er(function(){aFX(p,null)},3E4)},hba=function(p,x){p.info("sendYoutubeMessage_: "+x+" "+(0,_.s1)(void 0));
var F={};F.type=x;p.JSC$17362_session_?p.JSC$17362_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",F,function(){},(0,_.CH)(function(){Ir(this,"Failed to send message: "+x+".")},p)):Ir(p,"Sending yt message without session: "+(0,_.s1)(F))};
$Y.prototype.onYoutubeMessage_=function(p,x){if(!this.isDisposed())if(x)if(x=(0,_.QR)(x),_.IJ(x))switch(p=""+x.type,x=x.data||{},this.info("onYoutubeMessage_: "+p+" "+(0,_.s1)(x)),p){case "mdxSessionStatus":FLH(this,x);break;case "loungeToken":aFX(this,x);break;default:Ir(this,"Unknown youtube message: "+p)}else Ir(this,"Unable to parse message.");else Ir(this,"No data in message.")};
var Mht=function(p,x){if(x)p.info("onConnectedScreenId_: Received screenId: "+x),p.screen_&&p.screen_.id==x||p.getScreen_(x,function(F){iN(p,F)},function(){return p.onSessionStopped()},5);
else p.onSessionStopped(Error("Mk"))},fFH=function(p,x,F){p.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(x));
var N=new GP(x);D5H(p,N,function(h){h?(p.JSC$17362_isInitLoungeToken_=!0,Ua(p.JSC$17357_screenService_,N),iN(p,N),p.JSC$17362_lastLoungeTokenRefreshError_="unknown",cK8(p,F)):(_.yL(Error("Nk`"+JSON.stringify(x))),p.onSessionStopped())},5)},FLH=function(p,x){_.x3(p.sessionStatusTimeoutKey_);
p.sessionStatusTimeoutKey_=0;if(x)p.config_.enableCastLoungeToken&&x.loungeToken?x.deviceId?p.screen_&&p.screen_.uuid==x.deviceId||(x.loungeTokenRefreshIntervalMs?fFH(p,{name:p.receiver_.friendlyName,screenId:x.screenId,loungeToken:x.loungeToken,dialId:x.deviceId,screenIdType:"shortLived"},x.loungeTokenRefreshIntervalMs):(_.yL(Error("Pk`"+JSON.stringify(x))),Mht(p,x.screenId))):(_.yL(Error("Ok`"+JSON.stringify(x))),Mht(p,x.screenId)):Mht(p,x.screenId);else p.onSessionStopped(Error("Mk"))},aFX=function(p,
x){_.x3(p.onLoungeTokenTimeoutKey_);
p.onLoungeTokenTimeoutKey_=0;var F=null;if(x)if(x.loungeToken){var N;((N=p.screen_)==null?void 0:N.token)==x.loungeToken&&(F="staleLoungeToken")}else F="missingLoungeToken";else F="noLoungeTokenResponse";F?(p.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(x)+", error: "+F)),p.JSC$17362_lastLoungeTokenRefreshError_=F,cK8(p,3E4)):(x5D(p,x.loungeToken),p.JSC$17362_isInitLoungeToken_=!1,p.JSC$17362_lastLoungeTokenRefreshError_="unknown",cK8(p,x.loungeTokenRefreshIntervalMs))};
$Y.prototype.getScreen_=function(p,x,F,N){_.x3(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;Uxa(this.JSC$17357_screenService_,this.receiver_.label,p,this.receiver_.friendlyName,(0,_.CH)(function(h){h?x(h):N>=0?(Ir(this,"Screen "+p+" appears to be offline. "+N+" retries left."),this.getScreenTimeoutKey_=_.er((0,_.CH)(this.getScreen_,this,p,x,F,N-1),300)):F(Error("Qk"))},this),F)};
var D5H=function(p,x,F,N){_.x3(p.JSC$17362_checkScreenAvailabilityTimeoutKey_);p.JSC$17362_checkScreenAvailabilityTimeoutKey_=0;ImH(p.JSC$17357_screenService_,x,function(h){h||N<0?F(h):p.JSC$17362_checkScreenAvailabilityTimeoutKey_=_.er(function(){D5H(p,x,F,N-1)},300)})};
$Y.prototype.JSC$17359_getCastSession=function(){return this.JSC$17362_session_};
$Y.prototype.JSC$17364_onSessionUpdate_=function(p){this.isDisposed()||p||(Ir(this,"Cast session died."),this.onSessionStopped())};
var N4c=function(p){_.x3(p.getScreenTimeoutKey_);p.getScreenTimeoutKey_=0;_.x3(p.JSC$17362_checkScreenAvailabilityTimeoutKey_);p.JSC$17362_checkScreenAvailabilityTimeoutKey_=0;_.x3(p.sessionStatusTimeoutKey_);p.sessionStatusTimeoutKey_=0;_.x3(p.onLoungeTokenTimeoutKey_);p.onLoungeTokenTimeoutKey_=0;_.x3(p.getLoungeTokenTimeoutKey_);p.getLoungeTokenTimeoutKey_=0};var e9=function(p,x,F,N){Uh.call(this,p,x,"DialSession");this.config_=N;this.JSC$17366_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17366_theme_=F;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17366_deferredLaunchDeadlineTimer_=NaN;this.JSC$17366_boundSessionUpdate_=(0,_.CH)(this.JSC$17368_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17366_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17366_isInitLoungeToken_=!1;this.JSC$17366_lastLoungeTokenRefreshError_="unknown"};
_.E(e9,Uh);e9.prototype.setCastSession=function(p){this.JSC$17366_session_=p;this.JSC$17366_session_.addUpdateListener(this.JSC$17366_boundSessionUpdate_)};
e9.prototype.launchWithParams=function(p){this.connectData_=p;this.deferredLaunch_()};
e9.prototype.stop=function(){KLH(this);if(this.JSC$17366_session_)this.JSC$17366_session_.stop((0,_.CH)(this.onSessionStopped,this,null),(0,_.CH)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
e9.prototype.disposeInternal=function(){KLH(this);this.JSC$17366_session_&&this.JSC$17366_session_.removeUpdateListener(this.JSC$17366_boundSessionUpdate_);this.JSC$17366_session_=null;Uh.prototype.disposeInternal.call(this)};
var qtX=function(p){var x;return!!(p.config_.enableDialLoungeToken&&((x=p.JSC$17366_session_)==null?0:x.getDialAppInfo))},ZSX=function(p){p.cancelPolling_=p.JSC$17357_screenService_.JSC$17355_getScreenByPollingPairingCode(p.reversePairingCode_,p.receiver_.label,p.receiver_.friendlyName,qtX(p),function(x,F){p.cancelPolling_=function(){};
p.JSC$17366_isInitLoungeToken_=!0;iN(p,x);x.idType=="shortLived"&&F>0&&pG(p,F)},function(x){p.cancelPolling_=function(){};
p.onSessionStopped(x)})};
e9.prototype.JSC$17368_onSessionUpdate_=function(p){this.isDisposed()||p||(Ir(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var th8=function(p){var x={};x.pairingCode=p.reversePairingCode_;x.theme=p.JSC$17366_theme_;qgk()&&(x.env_useStageMdx=1);return _.hq(x)},d5k=function(p){return new Promise(function(x){p.reversePairingCode_=IDc();
if(p.connectData_){var F=new chrome.cast.DialLaunchResponse(!0,th8(p));x(F);ZSX(p)}else p.deferredLaunch_=function(){_.x3(p.JSC$17366_deferredLaunchDeadlineTimer_);p.deferredLaunch_=function(){};
p.JSC$17366_deferredLaunchDeadlineTimer_=NaN;var N=new chrome.cast.DialLaunchResponse(!0,th8(p));x(N);ZSX(p)},p.JSC$17366_deferredLaunchDeadlineTimer_=_.er(function(){p.deferredLaunch_()},100)})},JKa=function(p,x,F){p.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(x));
var N=new GP(x);return(new Promise(function(h){vcm(p,N,function(c){c?(p.JSC$17366_isInitLoungeToken_=!0,Ua(p.JSC$17357_screenService_,N),iN(p,N),pG(p,F)):_.yL(Error("Sk`"+JSON.stringify(x)));h(c)},5)})).then(function(h){return h?new chrome.cast.DialLaunchResponse(!1):d5k(p)})},CiX=function(p,x){var F=p.launchData_.receiver.label,N=p.receiver_.friendlyName;
return(new Promise(function(h){Uxa(p.JSC$17357_screenService_,F,x,N,function(c){c&&c.token&&iN(p,c);h(c)},function(c){Ir(p,"Failed to get DIAL screen: "+c);
h(null)})})).then(function(h){return h&&h.token?new chrome.cast.DialLaunchResponse(!1):d5k(p)})},vcm=function(p,x,F,N){_.x3(p.JSC$17366_checkScreenAvailabilityTimeoutKey_);
p.JSC$17366_checkScreenAvailabilityTimeoutKey_=0;ImH(p.JSC$17357_screenService_,x,function(h){h||N<0?F(h):p.JSC$17366_checkScreenAvailabilityTimeoutKey_=_.er(function(){vcm(p,x,F,N-1)},300)})},pG=function(p,x){p.info("getDialAppInfoWithTimeout_ "+x);
qtX(p)&&(_.x3(p.getDialAppInfoTimeoutKey_),p.getDialAppInfoTimeoutKey_=0,x==0?St8(p):p.getDialAppInfoTimeoutKey_=_.er(function(){St8(p)},x))},St8=function(p){qtX(p)&&p.JSC$17366_session_.getDialAppInfo(function(x){p.info("getDialAppInfo dialLaunchData: "+JSON.stringify(x));
x=x.extraData||{};var F=null;if(x.loungeToken){var N;((N=p.screen_)==null?void 0:N.token)==x.loungeToken&&(F="staleLoungeToken")}else F="missingLoungeToken";F?(p.JSC$17366_lastLoungeTokenRefreshError_=F,pG(p,3E4)):(p.JSC$17366_isInitLoungeToken_=!1,p.JSC$17366_lastLoungeTokenRefreshError_="unknown",x5D(p,x.loungeToken),pG(p,x.loungeTokenRefreshIntervalMs))},function(x){p.info("getDialAppInfo error: "+x);
p.JSC$17366_lastLoungeTokenRefreshError_="noLoungeTokenResponse";pG(p,3E4)})},KLH=function(p){_.x3(p.JSC$17366_checkScreenAvailabilityTimeoutKey_);
p.JSC$17366_checkScreenAvailabilityTimeoutKey_=0;_.x3(p.getDialAppInfoTimeoutKey_);p.getDialAppInfoTimeoutKey_=0;p.cancelPolling_();p.cancelPolling_=function(){};
_.x3(p.JSC$17366_deferredLaunchDeadlineTimer_)};var x7=function(p,x){Uh.call(this,p,x,"ManualSession");this.JSC$17370_deferredLaunchDeadlineTimer_=_.er((0,_.CH)(this.launchWithParams,this,null),150)};
_.E(x7,Uh);x7.prototype.stop=function(){this.onSessionStopped()};
x7.prototype.setCastSession=function(){};
x7.prototype.launchWithParams=function(){_.x3(this.JSC$17370_deferredLaunchDeadlineTimer_);this.JSC$17370_deferredLaunchDeadlineTimer_=NaN;var p=WV(this.JSC$17357_screenService_.getScreens(),this.receiver_.label);if(p)iN(this,p);else this.onSessionStopped(Error("Tk"))};
x7.prototype.disposeInternal=function(){_.x3(this.JSC$17370_deferredLaunchDeadlineTimer_);this.JSC$17370_deferredLaunchDeadlineTimer_=NaN;Uh.prototype.disposeInternal.call(this)};var e8=function(p,x){_.ey.call(this);this.config_=x;this.JSC$17373_screenService_=p;this.JSC$17373_appId_=x.appId||"233637DE";this.JSC$17373_theme_=x.theme||"cl";this.disableDial_=x.disableCastApi||!1;this.forceMirroring_=x.forceMirroring||!1;this.JSC$17373_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.CH)(this.onReceiverAction_,this)};
_.E(e8,_.ey);
e8.prototype.init=function(p,x){chrome.cast.timeout.requestSession=3E4;var F=new chrome.cast.SessionRequest(this.JSC$17373_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.S("desktop_enable_cast_connect")&&(F.androidReceiverCompatible=!0);this.disableDial_||(F.dialRequest=new chrome.cast.DialRequest("YouTube"));var N=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;p=p||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var h=(0,_.CH)(this.onReceiverUpdated_,
this);F=new chrome.cast.ApiConfig(F,(0,_.CH)(this.onSessionEstablished_,this),h,N,p);F.customDialLaunchCallback=(0,_.CH)(this.onDialLaunchRequested_,this);chrome.cast.initialize(F,(0,_.CH)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),rfm(),this.JSC$17373_screenService_.subscribe("onlineScreenChange",(0,_.CH)(this.JSC$17375_onScreenChange_,this)),this.customReceivers_=rKD(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.CH)(function(c){this.warn_("Failed to set initial custom receivers: "+(0,_.s1)(c))},this)),this.publish("yt-remote-cast2-availability-change",Fr(this)),x(!0))},this),(0,_.CH)(function(c){this.warn_("Failed to initialize API: "+(0,_.s1)(c));
x(!1)},this))};
e8.prototype.setConnectedScreenStatus=function(p,x){Nw("Setting connected screen ID: "+p+" -> "+x);if(this.JSC$17373_session_){var F=this.JSC$17373_session_.screen_;if(!p||F&&F.id!=p)Nw("Unsetting old screen status: "+this.JSC$17373_session_.receiver_.friendlyName),hV(this,null)}if(p&&x){if(!this.JSC$17373_session_){p=WV(this.JSC$17373_screenService_.getScreens(),p);if(!p){Nw("setConnectedScreenStatus: Unknown screen.");return}if(p.idType=="shortLived"){Nw("setConnectedScreenStatus: Screen with id type to be short lived.");
return}F=Ec8(this,p);F||(Nw("setConnectedScreenStatus: Connected receiver not custom..."),F=new chrome.cast.Receiver(p.uuid?p.uuid:p.id,p.name),F.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(F),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.CH)(function(N){this.warn_("Failed to set initial custom receivers: "+(0,_.s1)(N))},this)));
Nw("setConnectedScreenStatus: new active receiver: "+F.friendlyName);hV(this,new x7(this.JSC$17373_screenService_,F),!0)}this.JSC$17373_session_.setDisplayStatus(x)}else Nw("setConnectedScreenStatus: no screen.")};
var Ec8=function(p,x){return x?_.V6(p.customReceivers_,function(F){return V9(x,F.label)},p):null};
e8.prototype.setLaunchParams=function(p){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17373_session_?this.JSC$17373_session_.launchWithParams(p):this.warn_("Setting connection data without a session")};
e8.prototype.JSC$17375_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17373_session_?(this.JSC$17373_session_.stop(),hV(this,null)):Nw("Stopping non-existing session")};
e8.prototype.requestSession=function(){chrome.cast.requestSession((0,_.CH)(this.onSessionEstablished_,this),(0,_.CH)(this.onSessionRequestFailed_,this))};
e8.prototype.disposeInternal=function(){this.JSC$17373_screenService_.unsubscribe("onlineScreenChange",(0,_.CH)(this.JSC$17375_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.Lp(_.A9("yt.mdx.remote.debug.handlers_")||[],JfX);_.RR(this.JSC$17373_session_);_.ey.prototype.disposeInternal.call(this)};
var Nw=function(p){j8("Controller",p)};
e8.prototype.warn_=function(p){j8("Controller",p)};
var JfX=function(p){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(p)},Fr=function(p){return p.hasCastReceiver_||!!p.customReceivers_.length||!!p.JSC$17373_session_},hV=function(p,x,F){x!=p.JSC$17373_session_&&(_.RR(p.JSC$17373_session_),(p.JSC$17373_session_=x)?(F?p.publish("yt-remote-cast2-receiver-resumed",x.receiver_):p.publish("yt-remote-cast2-receiver-selected",x.receiver_),x.subscribe("sessionScreen",(0,_.CH)(p.onSessionScreen_,p,x)),x.subscribe("sessionFailed",
function(){return XJe(p,x)}),x.screen_?p.publish("yt-remote-cast2-session-change",x.screen_):F&&p.JSC$17373_session_.launchWithParams(null)):p.publish("yt-remote-cast2-session-change",null))},XJe=function(p,x){p.JSC$17373_session_==x&&p.publish("yt-remote-cast2-session-failed")};
_.l=e8.prototype;_.l.onSessionScreen_=function(p,x){this.JSC$17373_session_==p&&(x||hV(this,null),this.publish("yt-remote-cast2-session-change",x))};
_.l.onReceiverAction_=function(p,x){if(!this.isDisposed())if(p)switch(p.friendlyName=chrome.cast.unescape(p.friendlyName),Nw("onReceiverAction_ "+p.label+" / "+p.friendlyName+"-- "+x),x){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17373_session_)if(this.JSC$17373_session_.receiver_.label!=p.label)Nw("onReceiverAction_: Stopping active receiver: "+this.JSC$17373_session_.receiver_.friendlyName),this.JSC$17373_session_.stop();else{Nw("onReceiverAction_: Casting to active receiver.");this.JSC$17373_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17373_session_.screen_);break}switch(p.receiverType){case chrome.cast.ReceiverType.CUSTOM:hV(this,new x7(this.JSC$17373_screenService_,p));break;case chrome.cast.ReceiverType.DIAL:hV(this,new e9(this.JSC$17373_screenService_,p,this.JSC$17373_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:hV(this,new $Y(this.JSC$17373_screenService_,p,this.config_));break;default:this.warn_("Unknown receiver type: "+p.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17373_session_&&
this.JSC$17373_session_.receiver_.label==p.label?this.JSC$17373_session_.stop():this.warn_("Stopping receiver w/o session: "+p.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.l.onDialLaunchRequested_=function(p){if(this.isDisposed())return Promise.reject(Error("Uk"));var x=p.receiver;x.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+x.friendlyName),x.receiverType=chrome.cast.ReceiverType.DIAL);var F=this.JSC$17373_session_?this.JSC$17373_session_.receiver_:null;if(!F||F.label!=x.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+x.friendlyName),Promise.reject(Error("Vk"));if(F&&F.label==x.label&&F.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17373_session_.screen_)return Nw("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17373_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+F.receiverType+'" to "dial" for '+x.friendlyName);hV(this,new e9(this.JSC$17373_screenService_,x,this.JSC$17373_theme_,this.config_))}x=this.JSC$17373_session_;x.launchData_=p;x.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(p=x.launchData_.extraData||{},F=p.screenId||null,qtX(x)&&p.loungeToken?p.loungeTokenRefreshIntervalMs?p=JKa(x,{name:x.receiver_.friendlyName,screenId:p.screenId,loungeToken:p.loungeToken,dialId:x.launchData_.receiver.label,screenIdType:"shortLived"},p.loungeTokenRefreshIntervalMs):(_.yL(Error("Rk`"+JSON.stringify(p))),p=CiX(x,F)):p=CiX(x,F)):p=d5k(x);return p};
_.l.onSessionEstablished_=function(p){var x=this;if(!this.isDisposed()&&!this.forceMirroring_){Nw("New cast session ID: "+p.sessionId);var F=p.receiver;if(F.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17373_session_)if(F.receiverType==chrome.cast.ReceiverType.CAST)Nw("Got resumed cast session before resumed mdx connection."),F.friendlyName=chrome.cast.unescape(F.friendlyName),hV(this,new $Y(this.JSC$17373_screenService_,F,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var N=this.JSC$17373_session_.receiver_,h=WV(this.JSC$17373_screenService_.getScreens(),N.label);h&&V9(h,F.label)&&N.receiverType!=chrome.cast.ReceiverType.CAST&&F.receiverType==chrome.cast.ReceiverType.CAST&&(Nw("onSessionEstablished_: manual to cast session change "+F.friendlyName),_.RR(this.JSC$17373_session_),this.JSC$17373_session_=new $Y(this.JSC$17373_screenService_,F,this.config_),this.JSC$17373_session_.subscribe("sessionScreen",(0,_.CH)(this.onSessionScreen_,this,this.JSC$17373_session_)),
this.JSC$17373_session_.subscribe("sessionFailed",function(){return XJe(x,x.JSC$17373_session_)}),this.JSC$17373_session_.launchWithParams(null));
this.JSC$17373_session_.setCastSession(p)}}};
_.l.JSC$17375_getCastSession=function(){return this.JSC$17373_session_?this.JSC$17373_session_.JSC$17359_getCastSession():null};
_.l.onSessionRequestFailed_=function(p){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.s1)(p)),p.code!=chrome.cast.ErrorCode.CANCEL&&hV(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.l.onReceiverUpdated_=function(p){Nw("Receiver availability updated: "+p);if(!this.isDisposed()){var x=Fr(this);this.hasCastReceiver_=p==chrome.cast.ReceiverAvailability.AVAILABLE;Fr(this)!=x&&this.publish("yt-remote-cast2-availability-change",Fr(this))}};
var rKD=function(p){var x=p.JSC$17373_screenService_.JSC$17355_getOnlineScreens(),F=p.JSC$17373_session_&&p.JSC$17373_session_.receiver_;p=_.zy(x,function(N){F&&V9(N,F.label)&&(F=null);var h=N.uuid?N.uuid:N.id,c=Ec8(this,N);c?(c.label=h,c.friendlyName=N.name):(c=new chrome.cast.Receiver(h,N.name),c.receiverType=chrome.cast.ReceiverType.CUSTOM);return c},p);
F&&(F.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(F=new chrome.cast.Receiver(F.label,F.friendlyName),F.receiverType=chrome.cast.ReceiverType.CUSTOM),p.push(F));return p};
e8.prototype.JSC$17375_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=rKD(this),Nw("Updating custom receivers: "+(0,_.s1)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.CH)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",Fr(this)))};
e8.prototype.setLaunchParams=e8.prototype.setLaunchParams;e8.prototype.setConnectedScreenStatus=e8.prototype.setConnectedScreenStatus;e8.prototype.stopSession=e8.prototype.JSC$17375_stopSession;e8.prototype.getCastSession=e8.prototype.JSC$17375_getCastSession;e8.prototype.requestSession=e8.prototype.requestSession;e8.prototype.init=e8.prototype.init;e8.prototype.dispose=e8.prototype.dispose;var TYe=[];var gc8=function(p){p.audioTrackId=null;p.trackData=null;p.playerState=-1;p.hasPrevious=!1;p.hasNext=!1;p.playerTime_=0;p.playerTimeAt_=_.FV();p.seekableStart_=0;p.seekableEnd_=0;p.duration_=0;p.loadedTime=0;p.liveIngestionTime_=NaN;p.isLive_=!1};
_.l=pz.prototype;
_.l.reset=function(p){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;p&&(this.index=p.index,this.listId=p.listId,this.videoId=p.videoId,this.playerState=p.playerState,this.volume=p.volume,this.muted=p.muted,this.audioTrackId=p.audioTrackId,this.trackData=p.trackData,this.hasPrevious=p.hasPrevious,this.hasNext=p.hasNext,this.playerTime_=p.playerTime,this.playerTimeAt_=p.playerTimeAt,this.seekableStart_=p.seekableStart,this.seekableEnd_=p.seekableEnd,this.duration_=p.duration,this.loadedTime=
p.loadedTime,this.liveIngestionTime_=p.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.l.stopPlayer=function(){this.index=-1;this.videoId="";gc8(this)};
_.l.isPlaying=function(){return this.playerState==1};
_.l.isBuffering=function(){return this.playerState==3};
_.l.isAdPlaying=function(){return this.playerState==1081};
var le=function(p,x){p.playerTime_=x;p.playerTimeAt_=_.FV()},QKm=function(p){switch(p.playerState){case 1:case 1081:return(_.FV()-p.playerTimeAt_)/1E3+p.playerTime_;
case -1E3:return 0}return p.playerTime_};
pz.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.FV()-this.playerTimeAt_)/1E3:0):this.duration_};
var zbD=function(p,x,F){var N=p.videoId;p.videoId=x;p.index=F;x!=N&&gc8(p)},sKe=function(p){var x={};
x.index=p.index;x.listId=p.listId;x.videoId=p.videoId;x.playerState=p.playerState;x.volume=p.volume;x.muted=p.muted;x.audioTrackId=p.audioTrackId;x.trackData=_.Q5.unsafeClone(p.trackData);x.hasPrevious=p.hasPrevious;x.hasNext=p.hasNext;x.playerTime=p.playerTime_;x.playerTimeAt=p.playerTimeAt_;x.seekableStart=p.seekableStart_;x.seekableEnd=p.seekableEnd_;x.duration=p.duration_;x.loadedTime=p.loadedTime;x.liveIngestionTime=p.liveIngestionTime_;return x};
pz.prototype.clone=function(){return new pz(sKe(this))};var cA=function(p,x){_.ey.call(this);var F=this;this.state_=0;this.connection_=p;this.contextSubscriptions_=[];this.actionQueue_=new jIa;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.CH)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.CH)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.CH)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.CH)(this.onCloudviewAvailabilityChange_,this);var N=0;p?(N=p.getProxyState(),
N!=3&&(p.subscribe("proxyStateChange",this.setState_,this),nca(this))):N=3;N!=0&&(x?this.setState_(N):_.er(function(){F.setState_(N)},0));
(p=Ug_())&&yKt(this,p);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.E(cA,_.ey);cA.prototype.getState=function(){return this.state_};
cA.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
cA.prototype.reconnect=function(){this.connection_.reconnect()};
var aY=function(p){return new pz(p.connection_.getPlayerContextData())};
_.l=cA.prototype;_.l.play=function(){Mw(this)?(this.castMedia_?this.castMedia_.play(null,_.Ja,bSm(this,"play")):DP(this,"play"),AKD(this,1,QKm(aY(this))),this.publish("remotePlayerChange")):fG(this,this.play)};
_.l.pause=function(){Mw(this)?(this.castMedia_?this.castMedia_.pause(null,_.Ja,bSm(this,"pause")):DP(this,"pause"),AKD(this,2,QKm(aY(this))),this.publish("remotePlayerChange")):fG(this,this.pause)};
_.l.seekTo=function(p){if(Mw(this)){if(this.castMedia_){var x=aY(this),F=new chrome.cast.media.SeekRequest;F.currentTime=p;x.isPlaying()||x.isBuffering()?F.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:F.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(F,_.Ja,bSm(this,"seekTo",{newTime:p}))}else DP(this,"seekTo",{newTime:p});AKD(this,3,p);this.publish("remotePlayerChange")}else fG(this,_.Sz(this.seekTo,p))};
_.l.stop=function(){if(Mw(this)){this.castMedia_?this.castMedia_.stop(null,_.Ja,bSm(this,"stopVideo")):DP(this,"stopVideo");var p=aY(this);p.stopPlayer();KG(this,p);this.publish("remotePlayerChange")}else fG(this,this.stop)};
_.l.setVolume=function(p,x){if(Mw(this)){var F=aY(this);if(this.castSession_){if(F.volume!=p){var N=Math.round(p)/100;this.castSession_.setReceiverVolumeLevel(N,(0,_.CH)(function(){LL("set receiver volume: "+N)},this),(0,_.CH)(function(){this.warn_("failed to set receiver volume.")},this))}F.muted!=x&&this.castSession_.setReceiverMuted(x,(0,_.CH)(function(){LL("set receiver muted: "+x)},this),(0,_.CH)(function(){this.warn_("failed to set receiver muted.")},this))}else{var h={volume:p,
muted:x};F.volume!=-1&&(h.delta=p-F.volume);DP(this,"setVolume",h)}F.muted=x;F.volume=p;KG(this,F)}else fG(this,_.Sz(this.setVolume,p,x))};
_.l.setAudioTrack=function(p,x){Mw(this)?(x=x.getLanguageInfo().getId(),DP(this,"setAudioTrack",{videoId:p,audioTrackId:x}),p=aY(this),p.audioTrackId=x,KG(this,p)):fG(this,_.Sz(this.setAudioTrack,p,x))};
_.l.addVideo=function(p){Mw(this)?DP(this,"addVideo",{videoId:p}):fG(this,_.Sz(this.addVideo,p))};
_.l.addPlaylist=function(p){Mw(this)?DP(this,"addVideos",{listId:p}):fG(this,_.Sz(this.addPlaylist,p))};
_.l.addVideos=function(p){p.length==0?this.warn_("Ignore add videos request due to empty list"):Mw(this)?DP(this,"addVideos",{videoIds:p.join(",")}):fG(this,_.Sz(this.addVideos,p))};
_.l.JSC$17385_removeVideo=function(p){Mw(this)?DP(this,"removeVideo",{videoId:p}):fG(this,_.Sz(this.JSC$17385_removeVideo,p))};
_.l.JSC$17385_insertVideo=function(p){Mw(this)?DP(this,"insertVideo",{videoId:p}):fG(this,_.Sz(this.JSC$17385_insertVideo,p))};
_.l.playVideo=function(p,x,F,N,h,c,M){N=N===void 0?null:N;h=h===void 0?null:h;c=c===void 0?null:c;M=M===void 0?null:M;var f=aY(this),K={videoId:p};F!==void 0&&(K.currentIndex=F);zbD(f,p,F||0);x!==void 0&&(le(f,x),K.currentTime=x);N&&(K.listId=N);h&&(K.playerParams=h);c&&(K.clickTrackingParams=c);M&&(K.locationInfo=(0,_.s1)(M));DP(this,"setPlaylist",K);N||KG(this,f)};
_.l.nextVideo=function(p,x){if(Mw(this)){if(p&&x){var F=aY(this);zbD(F,p,x);KG(this,F)}DP(this,"next")}else fG(this,_.Sz(this.nextVideo,p,x))};
_.l.clearPlaylist=function(){if(Mw(this)){DP(this,"clearPlaylist");var p=aY(this);p.reset();KG(this,p);this.publish("remotePlayerChange")}else fG(this,this.clearPlaylist)};
_.l.dispose=function(){if(this.state_!=3){var p=this.state_;this.state_=3;this.publish("proxyStateChange",p,this.state_)}_.ey.prototype.dispose.call(this)};
_.l.disposeInternal=function(){u$D(this);this.connection_=null;this.actionQueue_.clear();yKt(this,null);_.ey.prototype.disposeInternal.call(this)};
var nca=function(p){_.w1("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(x){this.contextSubscriptions_.push(this.connection_.subscribe(x,_.Sz(this.onProxyEvent_,x),this))},p)},u$D=function(p){_.w1(p.contextSubscriptions_,function(x){this.connection_.unsubscribeByKey(x)},p);
p.contextSubscriptions_.length=0},Mw=function(p){return p.getState()==1},fG=function(p,x){p.actionQueue_.getCount()<50&&p.actionQueue_.enqueue(x)},AKD=function(p,x,F){var N=aY(p);
le(N,F);N.playerState!=-1E3&&(N.playerState=x);KG(p,N)},DP=function(p,x,F){p.connection_.sendMessage(x,F)},KG=function(p,x){u$D(p);
p.connection_.setPlayerContextData(sKe(x));nca(p)};
cA.prototype.setState_=function(p){if((p!=this.state_||p==2)&&this.state_!=3&&p!=0){var x=this.state_;this.state_=p;this.publish("proxyStateChange",x,p);if(p==1)for(;!this.actionQueue_.isEmpty();)p=this.actionQueue_,Pha(p),p.front_.pop().apply(this);else p==3&&this.dispose()}};
cA.prototype.onProxyEvent_=function(p,x){this.publish(p,x)};
var yKt=function(p,x){p.castSession_&&(p.castSession_.removeUpdateListener(p.boundCastStatusListener_),p.castSession_.removeMediaListener(p.boundCastMediaListener_),p.onCastMediaChange_(null));p.castSession_=x;if(p.castSession_&&(LL("Setting cast session: "+p.castSession_.sessionId),p.castSession_.addUpdateListener(p.boundCastStatusListener_),p.castSession_.addMediaListener(p.boundCastMediaListener_),p.castSession_.media.length))p.onCastMediaChange_(p.castSession_.media[0])};
cA.prototype.onCastStatusUpdate_=function(p){if(!p)this.onCastMediaChange_(null),yKt(this,null);else if(this.castSession_.receiver.volume){p=this.castSession_.receiver.volume;var x=aY(this),F=Math.round(100*p.level||0);if(x.volume!=F||x.muted!=p.muted)LL("Cast volume update: "+p.level+(p.muted?" muted":"")),x.volume=F,x.muted=!!p.muted,KG(this,x)}};
cA.prototype.onCastMediaChange_=function(p){LL("Cast media: "+!!p);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=p)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),YtD(this),this.publish("remotePlayerChange")};
var YtD=function(p){var x=p.castMedia_.media,F=p.castMedia_.customData;if(x&&F){var N=aY(p);x.contentId!=N.videoId&&LL("Cast changing video to: "+x.contentId);N.videoId=x.contentId;N.playerState=F.playerState;le(N,p.castMedia_.getEstimatedTime());KG(p,N)}else LL("No cast media video. Ignoring state update.")};
cA.prototype.onCastMediaUpdate_=function(p){if(p)YtD(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
cA.prototype.onCloudviewAvailabilityChange_=function(){var p=Ug_();p&&yKt(this,p)};
cA.prototype.warn_=function(p){j8("CP",p)};
var bSm=function(p,x,F){return(0,_.CH)(function(N){this.warn_("Failed to "+x+" with cast v2 channel. Error code: "+N.code);N.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+x+" using MDx browser channel."),DP(this,x,F))},p)};var ZP=function(p,x,F,N){N=N===void 0?!1:N;_.ey.call(this);var h=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$17392_http_=p;this.enableConnectWithInitialState_=N;this.listeners_.push(_.Bu(window,"beforeunload",function(){h.JSC$17395_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new pz;this.currentScreenId_=x.id;this.currentScreenIdType_=x.idType;this.channelService=vV_(this.JSC$17392_http_,F,this.JSC$17395_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){wJm(h)});
this.channelService.listen("channelClosed",function(){qw("Channel closed");isNaN(h.connectTimerId_)?HV(!0):HV();h.dispose()});
this.channelService.listen("channelError",function(c){HV();isNaN(h.getReconnectTimeout_())?(c==1&&h.currentScreenIdType_=="shortLived"&&h.publish("browserChannelAuthError",c),qw("Channel error: "+c+" without reconnection"),h.dispose()):(h.reconnecting_=!0,qw("Channel error: "+c+" with reconnection in "+h.getReconnectTimeout_()+" ms"),GJH(h,2))});
this.channelService.listen("channelMessage",function(c){VhH(h,c)});
this.channelService.setLoungeToken(x.token);this.subscribe("remoteQueueChange",function(){var c=h.playerContext_.videoId;FYt()&&_.a3("yt-remote-session-video-id",c)})};
_.E(ZP,_.ey);
ZP.prototype.connect=function(p,x){if(x){var F=x.listId,N=x.videoId,h=x.videoIds,c=x.playerParams,M=x.clickTrackingParams,f=x.index,K={videoId:N},t=x.currentTime,d=x.locationInfo;x=x.loopMode;t!==void 0&&(K.currentTime=t<=5?0:t);c&&(K.playerParams=c);d&&(K.locationInfo=d);M&&(K.clickTrackingParams=M);F&&(K.listId=F);h&&h.length>0&&(K.videoIds=h.join(","));f!==void 0&&(K.currentIndex=f);this.enableConnectWithInitialState_&&(K.loopMode=x||"LOOP_MODE_OFF");F&&(this.playerContext_.listId=F);this.playerContext_.videoId=
N;this.playerContext_.index=f||0;this.playerContext_.state=3;le(this.playerContext_,t);this.autoplayMode_="UNSUPPORTED";F=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";qw("Connecting with "+F+" and params: "+(0,_.s1)(K));this.channelService.connect({method:F,params:(0,_.s1)(K)},p,aXt())}else qw("Connecting without params"),this.channelService.connect({},p,aXt());WLD(this)};
ZP.prototype.setLoungeToken=function(p){this.channelService.setLoungeToken(p)};
ZP.prototype.dispose=function(){this.isDisposed()||(_.ox("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),GJH(this,3));_.ey.prototype.dispose.call(this)};
ZP.prototype.disposeInternal=function(){HSt(this);m5a(this);ocH(this);_.x3(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.x3(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.wlE(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.ey.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var OSk=function(p){return _.V6(p.connectedDevices_,function(x){return x.type=="LOUNGE_SCREEN"})},qw=function(p){j8("conn",p)},GJH=function(p,x){p.publish("proxyStateChange",x)},WLD=function(p){p.connectTimerId_=_.er(function(){qw("Connecting timeout");
p.JSC$17395_disconnect_(1)},2E4)},HSt=function(p){_.x3(p.connectTimerId_);
p.connectTimerId_=NaN},ocH=function(p){_.x3(p.reconnectedCheckScreenTimeout_);
p.reconnectedCheckScreenTimeout_=NaN},jK8=function(p){m5a(p);
p.playingSyncTimerId_=_.er(function(){tV(p,"getNowPlaying")},2E4)},m5a=function(p){_.x3(p.playingSyncTimerId_);
p.playingSyncTimerId_=NaN},wJm=function(p){qw("Channel opened");
p.reconnecting_&&(p.reconnecting_=!1,ocH(p),p.reconnectedCheckScreenTimeout_=_.er(function(){qw("Timing out waiting for a screen.");p.JSC$17395_disconnect_(1)},15E3))},Pi8=function(p,x){var F=null;
if(x){var N=OSk(p);N&&(F={clientName:N.clientName,deviceMake:N.brand,deviceModel:N.model,osVersion:N.osVersion})}_.ox("yt.mdx.remote.remoteClient_",F);x&&(HSt(p),ocH(p));F=p.channelService.isChannelOpened()&&isNaN(p.connectTimerId_);x==F?x&&(GJH(p,1),tV(p,"getSubtitlesTrack")):x?(p.getOtherConnectedRemoteId_()&&p.playerContext_.reset(),GJH(p,1),tV(p,"getNowPlaying"),LL_(p)):p.JSC$17395_disconnect_(1)},T4_=function(p,x){var F=x.params.videoId;
delete x.params.videoId;F==p.playerContext_.videoId&&(_.Q5.isEmpty(x.params)?p.playerContext_.trackData=null:p.playerContext_.trackData=x.params,p.publish("remotePlayerChange"))},B4H=function(p,x,F){var N=x.params.videoId||x.params.video_id,h=parseInt(x.params.currentIndex,10);
p.playerContext_.listId=x.params.listId||p.playerContext_.listId;zbD(p.playerContext_,N,h);p.publish("remoteQueueChange",F)},Rbm=function(p,x){x.params=x.params||{};
B4H(p,x,"NOW_PLAYING_MAY_CHANGE");p.onStateChange_(x);p.publish("autoplayDismissed")};
ZP.prototype.onStateChange_=function(p){var x=parseInt(p.params.currentTime||p.params.current_time,10);le(this.playerContext_,isNaN(x)?0:x);x=parseInt(p.params.state,10);x=isNaN(x)?-1:x;x==-1&&this.playerContext_.playerState==-1E3&&(x=-1E3);this.playerContext_.playerState=x;x=Number(p.params.loadedTime);this.playerContext_.loadedTime=isNaN(x)?0:x;x=Number(p.params.duration);this.playerContext_.duration_=isNaN(x)?0:x;x=this.playerContext_;var F=Number(p.params.liveIngestionTime);x.liveIngestionTime_=
F;x.isLive_=isNaN(F)?!1:!0;x=this.playerContext_;F=Number(p.params.seekableStartTime);p=Number(p.params.seekableEndTime);x.seekableStart_=isNaN(F)?0:F;x.seekableEnd_=isNaN(p)?0:p;this.playerContext_.playerState==1?jK8(this):m5a(this);this.publish("remotePlayerChange")};
ZP.prototype.onAdStateChange_=function(p){if(this.playerContext_.playerState!=-1E3){var x=1085;switch(parseInt(p.params.adState,10)){case 1:x=1081;break;case 2:x=1084;break;case 0:x=1083}this.playerContext_.playerState=x;p=parseInt(p.params.currentTime,10);le(this.playerContext_,isNaN(p)?0:p);this.publish("remotePlayerChange")}};
var kJH=function(p,x){var F=x.params.muted=="true";p.playerContext_.volume=parseInt(x.params.volume,10);p.playerContext_.muted=F;p.publish("remotePlayerChange")},U5H=function(p,x){p.autoplayVideoId_=x.params.videoId;
p.publish("nowAutoplaying",parseInt(x.params.timeout,10))},iSe=function(p,x){p.autoplayVideoId_=x.params.videoId||null;
p.publish("autoplayUpNext",p.autoplayVideoId_)},IFk=function(p,x){p.autoplayMode_=x.params.autoplayMode;
p.publish("autoplayModeChange",p.autoplayMode_);p.autoplayMode_=="DISABLED"&&p.publish("autoplayDismissed")},$5D=function(p,x){var F=x.params.hasNext=="true";
p.playerContext_.hasPrevious=x.params.hasPrevious=="true";p.playerContext_.hasNext=F;p.publish("previousNextChange")};
ZP.prototype.isCapabilitySupportedOnConnectedDevices_=function(p){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var x=_.a(this.connectedDevices_),F=x.next();!F.done;F=x.next())if(!F.value.capabilities.has(p))return!1;return!0};
var VhH=function(p,x){x=x.message;x.params?qw("Received: action="+x.action+", params="+(0,_.s1)(x.params)):qw("Received: action="+x.action+" {}");switch(x.action){case "loungeStatus":x=(0,_.QR)(x.params.devices);p.connectedDevices_=_.zy(x,function(N){return new Rr(N)});
x=!!_.V6(p.connectedDevices_,function(N){return N.type=="LOUNGE_SCREEN"});
Pi8(p,x);x=p.isCapabilitySupportedOnConnectedDevices_("mlm");p.publish("multiStateLoopEnabled",x);break;case "loungeScreenDisconnected":ELc(p.connectedDevices_,function(N){return N.type=="LOUNGE_SCREEN"});
Pi8(p,!1);break;case "remoteConnected":var F=new Rr((0,_.QR)(x.params.device));_.V6(p.connectedDevices_,function(N){return N.equals(F)})||_.E$E(p.connectedDevices_,F);
break;case "remoteDisconnected":F=new Rr((0,_.QR)(x.params.device));ELc(p.connectedDevices_,function(N){return N.equals(F)});
break;case "gracefulDisconnect":break;case "playlistModified":B4H(p,x,"QUEUE_MODIFIED");break;case "nowPlaying":Rbm(p,x);break;case "onStateChange":p.onStateChange_(x);break;case "onAdStateChange":p.onAdStateChange_(x);break;case "onVolumeChanged":kJH(p,x);break;case "onSubtitlesTrackChanged":T4_(p,x);break;case "nowAutoplaying":U5H(p,x);break;case "autoplayDismissed":p.publish("autoplayDismissed");break;case "autoplayUpNext":iSe(p,x);break;case "onAutoplayModeChanged":IFk(p,x);break;case "onHasPreviousNextChanged":$5D(p,
x);break;case "requestAssistedSignIn":p.publish("assistedSignInRequested",x.params.authCode);break;case "onLoopModeChanged":p.publish("loopModeChange",x.params.loopMode);break;default:qw("Unrecognized action: "+x.action)}};
_.l=ZP.prototype;_.l.getProxyState_=function(){var p=3;this.isDisposed()||(p=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(p=1):p=2);return p};
_.l.JSC$17395_disconnect_=function(p){qw("Disconnecting with "+p);_.ox("yt.mdx.remote.remoteClient_",null);HSt(this);this.publish("beforeDisconnect",p);p==1&&HV();this.channelService.disconnect(p);this.dispose()};
_.l.getPlayerContextData_=function(){var p=this.playerContext_;this.clientVideoId_&&(p=this.playerContext_.clone(),zbD(p,this.clientVideoId_,p.index));return sKe(p)};
_.l.setPlayerContextData_=function(p){var x=this,F=new pz(p);F.videoId&&F.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=F.videoId,_.x3(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.er(function(){if(x.clientVideoId_){var h=x.clientVideoId_;x.clientVideoId_=null;x.playerContext_.videoId!=h&&tV(x,"getNowPlaying")}},5E3));
var N=[];this.playerContext_.listId==F.listId&&this.playerContext_.videoId==F.videoId&&this.playerContext_.index==F.index||N.push("remoteQueueChange");this.playerContext_.playerState==F.playerState&&this.playerContext_.volume==F.volume&&this.playerContext_.muted==F.muted&&QKm(this.playerContext_)==QKm(F)&&(0,_.s1)(this.playerContext_.trackData)==(0,_.s1)(F.trackData)||N.push("remotePlayerChange");this.playerContext_.reset(p);_.w1(N,function(h){this.publish(h)},this)};
_.l.getOtherConnectedRemoteId_=function(){var p=this.channelService.getDeviceId(),x=_.V6(this.connectedDevices_,function(F){return F.type=="REMOTE_CONTROL"&&F.id!=p});
return x?x.id:""};
_.l.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.l.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.l.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.l.JSC$17395_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var LL_=function(p){_.x3(p.idleDisconnectTimerId_);p.idleDisconnectTimerId_=_.er(function(){p.JSC$17395_disconnect_(1)},864E5)},tV=function(p,x,F){F?qw("Sending: action="+x+", params="+(0,_.s1)(F)):qw("Sending: action="+x);
p.channelService.sendMessage(x,F)};
ZP.prototype.sendMessageWithUserAction_=function(p,x){tV(this,p,x);LL_(this)};
ZP.prototype.JSC$17395_getXsrfToken_=function(){var p=_.ax.get("SAPISID","")||_.ax.get("__Secure-1PAPISID",void 0)||"",x=_.ax.get("__Secure-3PAPISID","")||"";if(!p&&!x)return"";p=_.Xc(_.vS(p),2);x=_.Xc(_.vS(x),2);return _.Xc(_.vS(","+p+","+x),2)};
ZP.prototype.subscribe=ZP.prototype.subscribe;ZP.prototype.unsubscribeByKey=ZP.prototype.unsubscribeByKey;ZP.prototype.getProxyState=ZP.prototype.getProxyState_;ZP.prototype.disconnect=ZP.prototype.JSC$17395_disconnect_;ZP.prototype.getPlayerContextData=ZP.prototype.getPlayerContextData_;ZP.prototype.setPlayerContextData=ZP.prototype.setPlayerContextData_;ZP.prototype.getOtherConnectedRemoteId=ZP.prototype.getOtherConnectedRemoteId_;ZP.prototype.getReconnectTimeout=ZP.prototype.getReconnectTimeout_;
ZP.prototype.getAutoplayMode=ZP.prototype.getAutoplayMode_;ZP.prototype.getAutoplayVideoId=ZP.prototype.getAutoplayVideoId_;ZP.prototype.reconnect=ZP.prototype.JSC$17395_reconnect_;ZP.prototype.sendMessage=ZP.prototype.sendMessageWithUserAction_;ZP.prototype.getXsrfToken=ZP.prototype.JSC$17395_getXsrfToken_;ZP.prototype.isCapabilitySupportedOnConnectedDevices=ZP.prototype.isCapabilitySupportedOnConnectedDevices_;var ebD=function(p){TP.call(this,"ScreenServiceProxy");this.instance_=p;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.CH)(this.JSC$17398_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.CH)(this.onOnlineScreenChange_,this)))};
_.E(ebD,TP);_.l=ebD.prototype;_.l.getScreens=function(p){return this.instance_.$_gs(p)};
_.l.contains=function(p){return!!this.instance_.$_c(p)};
_.l.get=function(p){return this.instance_.$_g(p)};
_.l.start=function(){this.instance_.$_st()};
_.l.add=function(p,x,F){this.instance_.$_a(p,x,F)};
_.l.remove=function(p,x,F){this.instance_.$_r(p,x,F)};
_.l.updateName=function(p,x,F,N){this.instance_.$_un(p,x,F,N)};
_.l.disposeInternal=function(){for(var p=this.subscriptionKeys_.length,x=0;x<p;++x)this.instance_.$_ubk(this.subscriptionKeys_[x]);this.subscriptionKeys_.length=0;this.instance_=null;TP.prototype.disposeInternal.call(this)};
_.l.JSC$17398_onScreenChange_=function(){this.publish("screenChange")};
_.l.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
kR.prototype.$_st=kR.prototype.start;kR.prototype.$_gspc=kR.prototype.JSC$17355_getScreenByPairingCode;kR.prototype.$_gsppc=kR.prototype.JSC$17355_getScreenByPollingPairingCode;kR.prototype.$_c=kR.prototype.contains;kR.prototype.$_g=kR.prototype.get;kR.prototype.$_a=kR.prototype.add;kR.prototype.$_un=kR.prototype.updateName;kR.prototype.$_r=kR.prototype.remove;kR.prototype.$_gs=kR.prototype.getScreens;kR.prototype.$_gos=kR.prototype.JSC$17355_getOnlineScreens;kR.prototype.$_s=kR.prototype.subscribe;
kR.prototype.$_ubk=kR.prototype.unsubscribeByKey;var cLH=function(p){KYm();if(!mK||!mK.get("yt-remote-disable-remote-module-for-dev")){p=_.sd("MDX_CONFIG")||p;rc_();hft();d2||(d2=new wC(p?p.loungeApiHost:void 0),qgk()&&(d2.basePath="/api/loungedev"));vA||(vA=_.A9("yt.mdx.remote.deferredProxies_")||[],_.ox("yt.mdx.remote.deferredProxies_",vA));py8();var x=JV();if(!x){var F=new kR(d2,p?p.disableAutomaticScreenCache||!1:!1);_.ox("yt.mdx.remote.screenService_",F);x=JV();var N={};p&&(N={appId:p.appId,disableDial:p.disableDial,theme:p.theme,loadCastApiSetupScript:p.loadCastApiSetupScript,
disableCastApi:p.disableCastApi,enableDialLoungeToken:p.enableDialLoungeToken,enableCastLoungeToken:p.enableCastLoungeToken,forceMirroring:p.forceMirroring});_.ox("yt.mdx.remote.enableConnectWithInitialState_",p?p.enableConnectWithInitialState||!1:!1);LY_(F,function(c){c?CG()&&IX8(CG(),"YouTube TV"):F.subscribe("onlineScreenChange",function(){cV("yt-remote-receiver-availability-change")})},N)}if(p&&!_.A9("yt.mdx.remote.initialized_")){_.ox("yt.mdx.remote.initialized_",!0);
S2("Initializing: "+(0,_.s1)(p));r2.push(_.es("yt-remote-cast2-api-ready",function(){cV("yt-remote-api-ready")}));
r2.push(_.es("yt-remote-cast2-availability-change",function(){cV("yt-remote-receiver-availability-change")}));
r2.push(_.es("yt-remote-cast2-receiver-selected",function(){xae();cV("yt-remote-auto-connect","cast-selector-receiver")}));
r2.push(_.es("yt-remote-cast2-receiver-resumed",function(){cV("yt-remote-receiver-resumed","cast-selector-receiver")}));
r2.push(_.es("yt-remote-cast2-session-change",Fsc));r2.push(_.es("yt-remote-connection-change",function(c){c?IX8(CG(),"YouTube TV"):NED()||(IX8(null,null),k1e())}));
r2.push(_.es("yt-remote-cast2-session-failed",function(){cV("yt-remote-connection-failed")}));
N=hd8();p.isAuto&&(N.id+="#dial");var h=p.capabilities||[];_.S("desktop_enable_autoplay")&&h.push("atp");h.length>0&&(N.capabilities=h);N.name=p.device;N.app=p.app;(p=p.theme)&&(N.theme=p);S2(" -- with channel params: "+(0,_.s1)(N));N?(_.a3("yt-remote-session-app",N.app),_.a3("yt-remote-session-name",N.name)):(_.D_("yt-remote-session-app"),_.D_("yt-remote-session-name"));_.ox("yt.mdx.remote.channelParams_",N);x.start();CG()||lYc()}}},MR8=function(){var p=JV().instance_.$_gos();
var x=aYm();x&&En()&&(eca(p,x)||p.push(x));return $D8(p)},DaD=function(){var p=MR8(),x=aYm();
x||(x=NED());return _.V6(p,function(F){return x&&V9(x,F.key)?!0:!1})},aYm=function(){var p=CG();
if(!p)return null;var x=JV().getScreens();return WV(x,p)},Fsc=function(p){S2("remote.onCastSessionChange_: "+$gt(p));
if(p){var x=aYm();x&&x.id==p.id?(IX8(x.id,"YouTube TV"),p.idType=="shortLived"&&(p=p.token)&&(x=En())&&x.setLoungeToken(p)):(x&&fYc(),KsX(p,1))}else En()&&fYc()},fYc=function(){iPm()?$R().stopSession():Ie("stopSession called before API ready.");
var p=En();p&&(p.disconnect(1),qYm(null))},ZUD=function(){var p=En();
return p&&p.getProxyState()!=3?new cA(En(),void 0):null},S2=function(p){j8("remote",p)},JV=function(){if(!tRX){var p=_.A9("yt.mdx.remote.screenService_");
tRX=p?new ebD(p):null}return tRX},CG=function(){return _.A9("yt.mdx.remote.currentScreenId_")},da8=function(p){_.ox("yt.mdx.remote.currentScreenId_",p)},xae=function(){_.ox("yt.mdx.remote.connectData_",null)},En=function(){return _.A9("yt.mdx.remote.connection_")},qYm=function(p){var x=En();
xae();p||da8("");_.ox("yt.mdx.remote.connection_",p);vA&&(_.w1(vA,function(F){F(p)}),vA.length=0);
x&&!p?cV("yt-remote-connection-change",!1):!x&&p&&cV("yt-remote-connection-change",!0)},NED=function(){var p=FYt();
if(!p)return null;var x=JV();if(!x)return null;x=x.getScreens();return WV(x,p)},KsX=function(p,x){da8(p.id);
p=new ZP(d2,p,hd8(),_.A9("yt.mdx.remote.enableConnectWithInitialState_")||!1);p.connect(x,_.A9("yt.mdx.remote.connectData_"));p.subscribe("beforeDisconnect",function(F){cV("yt-remote-before-disconnect",F)});
p.subscribe("beforeDispose",function(){En()&&qYm(null)});
p.subscribe("browserChannelAuthError",function(){var F=aYm();F&&F.idType=="shortLived"&&(iPm()?$R().handleBrowserChannelAuthError():Ie("refreshLoungeToken called before API ready."))});
qYm(p)},lYc=function(){var p=NED();
p?(S2("Resume connection to: "+$gt(p)),KsX(p,0)):(HV(),k1e(),S2("Skipping connecting because no session screen found."))},d2=null,vA=null,tRX=null,py8=function(){var p=hd8();
if(_.Q5.isEmpty(p)){p=xgH();var x=_.Mq("yt-remote-session-name")||"",F=_.Mq("yt-remote-session-app")||"";p={device:"REMOTE_CONTROL",id:p,name:x,app:F,mdxVersion:3};p.authuser=String(_.sd("SESSION_INDEX","0"));(x=_.sd("DELEGATED_SESSION_ID"))&&(p.pageId=String(x));_.ox("yt.mdx.remote.channelParams_",p)}},hd8=function(){return _.A9("yt.mdx.remote.channelParams_")||{}},r2=[];var v2t=new _.s0("yt-menu"),JLk=function(){},SYk=function(p,x,F){p=x=="right-click"?F.rightClickMenuPopupHint:F.menuPopupHint;
if(!(Ccc(x)>10))return x=x||"default",v2t.set(x+"-impression",Ccc(x)+1),p},Ccc=function(p){return parseInt(v2t.get((p||"default")+"-impression")||0,10)};
_.xg(JLk);var rLk=function(){this.contexts_=new WeakMap;this.JSC$17404_networkService_=this.activeContext_=null},E2H=function(p,x,F){var N=p.contexts_.get(x);
N||(N=new S8H(p.JSC$17404_networkService_),p.contexts_.set(x,N));p.activeContext_=N;F&&p.activeContext_.reset();p.activeContext_.start();return p.activeContext_};var Xr=function(){};
Xr.prototype.enqueue=function(){var p=this,x;return _.D(function(F){if(p.isCounterfactual())return(x=p.getCounterfactualData())&&p.shouldLogCounterfactualImpression()&&p.sendImpressionEndpoints(x),F.return();p.doEnqueue();_.JB(F)})};
Xr.prototype.sendImpressionEndpoints=function(p){_.Vj.getInstance().triggerOptionalAction("yt-service-request",{},p[0])};var g2=function(p,x){this.renderer=p;this.page=x};
_.E(g2,Xr);g2.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
g2.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
g2.prototype.shouldLogCounterfactualImpression=function(){return!0};
g2.prototype.doEnqueue=function(){var p=_.LQ(this.page);p&&p.pause();this.renderer.impressionCommand&&_.Vj.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Aw(_.Vj.getInstance(),[this.renderer.promoCommand],this.page)};var XyH=function(p,x){this.renderer=p;this.resolver=_.GO();this.JSC$17416_enforcementCounter=new _.EdC;x?this.JSC$17416_playerManager=_.LQ(x):this.JSC$17416_playerManager=null;_.MB(1,!0)};
_.E(XyH,Xr);_.l=XyH.prototype;_.l.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var p=[];this.renderer.impressionEndpoints.forEach(function(x){(x=_.g$(x))&&p.push(x)});
return p}};
_.l.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.l.shouldLogCounterfactualImpression=function(){var p=_.qxw();p?(this.JSC$17416_enforcementCounter.increment("POPUP"),_.MB(3)):_.MB(2);return p};
_.l.cancel=function(){this.resolver.promise.cancel()};
_.l.doEnqueue=function(){var p=this;_.qxw()?(this.JSC$17416_enforcementCounter.increment("POPUP"),_.MB(3),g2a(this)):this.JSC$17416_playerManager?(this.resolver.promise.then(function(){g2a(p)}),QpH(this.resolver,this.JSC$17416_playerManager)):_.MB(2)};
var QpH=function(p,x){var F=_.GO();x.getPlayerPromise().then(function(N){F.resolve(N)});
F.promise.then(function(N){N.addEventListener("onAbnormalityDetected",p.resolve);_.g8(p.promise,function(){N.removeEventListener("onAbnormalityDetected",p.resolve)})});
p.promise.thenCatch(function(){F.promise.cancel()})},g2a=function(p){_.MB(3);
var x={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:p.renderer}};x=_.Vj.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:x},{});Promise.all(x).then(function(){zdH();p.JSC$17416_playerManager&&p.JSC$17416_playerManager.pause()})},zdH=function(){aS8(function(p,x){_.N$k(p,x);
p===0?_.MB(7):_.MB(4)})};var spH=function(p,x){this.renderer=p;this.page=x;this.resolver=_.GO()};
_.E(spH,Xr);_.l=spH.prototype;_.l.cancel=function(){this.resolver.promise.cancel()};
_.l.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.l.isCounterfactual=function(){return!this.renderer.isVisible};
_.l.shouldLogCounterfactualImpression=function(){return!0};
_.l.doEnqueue=function(){var p=this;this.resolver.promise.then(function(){var F={popup:{mealbarPromoRenderer:p.renderer},popupType:"MEALBAR"};_.Vj.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:F},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var x=_.LQ(this.page);x&&n2k(this.resolver,x)}break;default:this.resolver.resolve()}};
var n2k=function(p,x){var F=_.GO();x.getPlayerPromise().then(function(N){F.resolve(N)});
F.promise.then(function(N){N.addEventListener("onAdEnd",p.resolve);_.g8(p.promise,function(){N.removeEventListener("onAdEnd",p.resolve)})});
p.promise.thenCatch(function(){F.promise.cancel()})};var yL8=function(p,x){this.renderer=p;this.page=x};
_.E(yL8,Xr);_.l=yL8.prototype;_.l.cancel=function(){this.JSC$17424_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17424_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17424_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.l.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.l.isCounterfactual=function(){return!this.renderer.isVisible};
_.l.shouldLogCounterfactualImpression=function(){return!0};
_.l.doEnqueue=function(){var p=this,x,F;((x=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(F=x.playbackUpsellDialogTriggerConditionData)==null?void 0:F.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17424_downloadedVideosCountSelectorUnsubscriber=_.qJ(_.Bi(),Fx8,function(N,h){N>h&&(bUH(p),p.cancel())}):bUH(this)};
var bUH=function(p){var x={popup:{upsellDialogRenderer:p.renderer},popupType:"MODAL"};_.Vj.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:x},{});(p=_.LQ(p.page))&&p.pause()};var QA={},ALt=(QA.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",QA.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",QA.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",QA.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",QA.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",QA.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",QA.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",QA),u9H=function(p,x){this.renderer=p;this.targetManager=
x};
_.E(u9H,Xr);_.l=u9H.prototype;_.l.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17431_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17431_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17431_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.l.getCounterfactualData=function(){if(this.isCounterfactual()){var p;return(p=this.renderer.promoConfig)==null?void 0:p.impressionEndpoints}};
_.l.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.l.shouldLogCounterfactualImpression=function(){return!0};
_.l.doEnqueue=function(){var p=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17431_downloadedVideosCountSelectorUnsubscriber=_.qJ(_.Bi(),Fx8,function(x,F){p.renderer.targetId&&x>F&&(k3D(p.targetManager,p.renderer.targetId,YYD(p)),p.cancel())});
break;default:k3D(this.targetManager,this.renderer.targetId,YYD(this))}};
var YYD=function(p){var x;if((x=p.renderer.suggestedPosition)==null?0:x.type)var F=ALt[p.renderer.suggestedPosition.type];F||(F="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:p.renderer},popupType:"HINT",position:F}}};var wyc=function(){this.previousPage=null},G8c;
wyc.prototype.registerPromoCommand=function(p,x){VRa(this,void 0,void 0,_.r(p.roadblock,$Qm),void 0,void 0,x)};
var VRa=function(p,x,F,N,h,c,M){p.previousPage!==M&&p.pendingTooltipPromo&&p.pendingTooltipPromo.cancel();p.previousPage=M;h?(p.pendingEnforcementPromo&&p.pendingEnforcementPromo.cancel(),p.pendingEnforcementPromo=new XyH(h,M),p.pendingEnforcementPromo.enqueue()):c?(p.pendingCommandWrapperPromo=new g2(c,M),p.pendingCommandWrapperPromo.enqueue()):N?(p.pendingRoadblockPromo&&p.pendingRoadblockPromo.cancel(),p.pendingRoadblockPromo=new yL8(N,M),p.pendingRoadblockPromo.enqueue()):x?(p.pendingMealbarPromo&&
p.pendingMealbarPromo.cancel(),p.pendingMealbarPromo=new spH(x,M),p.pendingMealbarPromo.enqueue()):F&&(p.pendingTooltipPromo&&p.pendingTooltipPromo.cancel(),p.pendingTooltipPromo=new u9H(F,_.l$()),p.pendingTooltipPromo.enqueue())},Wsm=function(){G8c||(G8c=new wyc);
return G8c};var FRH=!1;var $im=function(p,x){var F=_.sd("SESSION_INDEX");this.actionToken_=p;this.commonToken_=x;this.sessionIndex_=F},Iqa=function(p){var x=_.GO(),F=_.A9("payments.business.integration.bootstrap"),N=_.A9("payments.business.integration"),h=N.Style.create().withMaterialDesignStyle(),c=N.mashupMode.popup("instrument-manager");
F.asMashupMode(c).usingUserIndex(p.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(h).inStandaloneContext(N.standaloneContextAuthId.forUserId()).instrumentManager(p.actionToken_,p.commonToken_.length>0?p.commonToken_:void 0,function(M){var f=M.instrumentId;f?x.resolve(f):(f=_.A9("payments.business.integration.scenario.InstrumentManager"),x.reject(M.errorCode&&M.errorCode===f.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(M){_.yL(M);
x.reject("instrumentManagerLoadError")});
return x.promise};var NO=function(p,x,F){this.payloadName="transactionFlowFailed";this.payload={errorType:p,serializedTransactionFlowLoggingParams:x,isUserDismiss:F===void 0?!1:F}};
_.ox("yt.ypc.shared.YpcTransactionFlowError",NO);var HUe=function(){return _.hZ.apply(this,arguments)||this};
_.E(HUe,_.hZ);HUe.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
HUe.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
var zb=HUe;zb.prototype.onErrorMessageDismiss=zb.prototype.onErrorMessageDismiss;_.B([_.H({readOnly:!0,observer:"errorRendererChanged"}),_.k("design:type",Object)],zb.prototype,"errorRenderer",void 0);_.B([_.V("yt-live-chat-error-message-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zb.prototype,"onErrorMessageDismiss",null);zb=_.B([_.l8()],zb);var maH=[zb.prototype];var o2a;var OUc;var jpe=new _.s0("yt-live-chat"),Lsc=new Map;Lsc.set("timestamp_toggle","show-timestamps");Lsc.set("reactions_toggle","allow-reactions");var PcD=function(){return _.m.apply(this,arguments)||this};
_.E(PcD,_.m);_.l=PcD.prototype;_.l.menuItemIdentifierChanged=function(){var p;(p=this.data)!=null&&p.menuItemIdentifier&&(p=Lsc.get(this.data.menuItemIdentifier))&&(_.S("enable_lwe_web_mute")?(p=jpe.get(p),this.isToggled=!(p===void 0?!this.data.isToggled:!p)):this.isToggled=jpe.get(p))};
_.l.onFocus=function(){this.toggleButton.focus()};
_.l.onTap=function(){var p=this.data.command;p&&this.componentBehavior.resolveCommand(p)};
_.l.computeText=function(p,x,F){return this.componentBehavior.getSimpleString(p?F:x)};
_.l.computeIcon=function(p,x,F){return(p=p?F:x)&&p.iconType?_.eA(p.iconType):""};
var be=PcD;be.prototype.onTap=be.prototype.onTap;be.prototype.onFocus=be.prototype.onFocus;be.prototype.menuItemIdentifierChanged=be.prototype.menuItemIdentifierChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],be.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],be.prototype,"componentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],be.prototype,"data",void 0);
_.B([_.H({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.k("design:type",String)],be.prototype,"icon",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],be.prototype,"isToggled",void 0);_.B([_.Ff("tp-yt-paper-toggle-button"),_.k("design:type",Object)],be.prototype,"toggleButton",void 0);_.B([_.W("data.menuItemIdentifier"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],be.prototype,"menuItemIdentifierChanged",null);
_.B([_.V("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],be.prototype,"onFocus",null);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],be.prototype,"onTap",null);be=_.B([_.JZ({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],be);
_.P(be,"yt-live-chat-toggle-renderer",function(){if(OUc===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;o2a===void 0&&(o2a=document.createElement("template"));var N=o2a;F.call(x,N.content.cloneNode(!0),p.content.firstChild);OUc=p}p=OUc;return p},{mode:_.S("live_chat_enable_sink_wrapper")?2:0});var TE_=new _.iE("NAVIGATION_PROGRESS_TOKEN");_.zn("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var BEX={},DLX=(BEX.CSI=function(p,x){var F={};F[p]=x;p=_.bO(_.Wtk)(F);Object.keys(p).length>0&&_.uA(p)},BEX.ECATCHER=function(p){return function(x,F){_.sd(p)[x]=F}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),BEX);var RdX={},k8H={},Uac=(k8H[oe8.name]=!0,k8H),AV=function(){var p=_.hZ.apply(this,arguments)||this;p._noAccessors=!0;p.tabGesturesIsActive=!1;p.actionRouterIsRoot=!0;p.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"};p.pageTitle="";p.titleSuffix="YouTube";p.unseenNotificationCount=
0;p.hasNavigated=!1;p.hasSetScrollTopForNavigation=!1;p.pagePreparer=null;p.zwiebackInitJobId=0;p.dataUpdatePromise=null;p.loadDepsPromise=_.qt();p.hasPendingNavigation=!1;p.pendingPlayerOnResponseReceivedActions=[];return p};
_.E(AV,_.hZ);AV.prototype.created=function(){this.pendingPlayerOnResponseReceivedActions=[];_.S("enable_browser_cookie_status_monitoring")&&_.vZ(_.E0,this.reportBrowserCookieSetting)};
AV.prototype.reportBrowserCookieSetting=function(){var p=new iq8,x="other";_.qL?x="chrome":_.KT?x="firefox":_.zI?x="safari":_.H8&&(x="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(F){p.increment(_.D5(),F,x)}).catch(function(){p.increment(_.D5(),!1,x)}):p.increment(_.D5(),!1,x)};
AV.prototype.attached=function(){iU8(this);document.addEventListener("yt-navigate-cache",_.p5(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var p=ue();p.init();p.dispatchElement=this.hostElement};
var iU8=function(p,x){x=x===void 0?0:x;var F=_.J().resolve(_.Bw(_.hA));if(F)IYe(p,F);else{if(x>=5)throw Error("Wk");setTimeout(function(){iU8(p,x+1)},0)}},IYe=function(p,x){x.addEventListener("yt-navigate-start",_.p5(p,p.onYtNavigateStart));
x.addEventListener("yt-navigate-finish",_.p5(p,p.onYtNavigateFinish));x.addEventListener("yt-navigate-error",_.p5(p,p.onYtNavigateError));x.addEventListener("yt-page-data-fetched",_.p5(p,p.onYtPageDataFetched));x.addEventListener("yt-navigate-redirect",_.p5(p,p.onYtNavigateRedirect))};
_.l=AV.prototype;
_.l.detached=function(){var p=_.J().resolve(_.hA);p.removeEventListener("yt-navigate-start",_.p5(this,this.onYtNavigateStart));p.removeEventListener("yt-navigate-finish",_.p5(this,this.onYtNavigateFinish));p.removeEventListener("yt-navigate-error",_.p5(this,this.onYtNavigateError));p.removeEventListener("yt-page-data-fetched",_.p5(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.p5(this,this.onYtNavigateCache));p.removeEventListener("yt-navigate-redirect",_.p5(this,
this.onYtNavigateRedirect));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.l.setPageOffset=function(p,x){p?_.lA(this.hostElement,"yt-set-page-offset",[p,x]):_.zj(Error("Xk"))};
_.l.setPageOffsetForNavigation=function(p,x){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(p,x))};
_.l.onYtNavigateSetPageOffset=function(p,x){this.setPageOffsetForNavigation(x.page,x.offset)};
_.l.getPageOffset=function(){var p=_.n(this.hostElement).querySelector("#page-manager").getCurrentPage(),x=0;p&&(x=_.lA(this.hostElement,"yt-get-page-offset",[p])[0]);return x};
_.l.onYtHistoryPop=function(p,x){if(_.nt("DISABLE_WARM_LOADS"))p.preventDefault(),window.location.reload();else{var F=_.J().resolve(_.hA);F.hasPendingNavigation()&&p.preventDefault();F.cancelPendingNavigation();_.Mt(this.hostElement,"yt-pending-navigation-cancelled");x.errorMsg&&(p=x.errorMsg.split(" - "),x=Error(p[0]),p.length==2&&p[1]&&(_.yj(x,p[1]),_.no(x)),window.location.reload())}};
_.l.onYtHistoryLoad=function(p,x){var F=this;if(_.nt("DISABLE_WARM_LOADS"))window.location.reload();else{this.hasError=!1;(p=x.endpoint)&&Object.keys(p).length||(p=null);var N=x.historyEntry,h=_.J().resolve(_.hA),c=_.J().resolve(_.j3),M=null;N&&N.rootData&&(M=N.rootData);var f=M&&$aD(M);!M||f||M.filler?p?(h.navigate(p,!0),edm(this,p)):(x.legacyBorder||f||(x.JSC$26264_savedComponentState==null&&M==null?_.no(new _.qE("Incomplete history entry",x.forward)):_.s$(new _.qE("Malformed history entry",x.JSC$26264_savedComponentState,
x.forward,M))),window.location.reload()):(_.R_E({isHot:!0}),_.uA({webInfo:{navigationReason:"h"}}),_.MUm(),_.wH("srt"),_.wH("pdc"),this.cancelPendingTasks(),pKD(this,x.forward,M),M.player&&(M.player.loaded=!1),edm(this,p),_.MyB(h,p||{},M,2,{},!1,x).then(function(){F.setPageOffset(c.getCurrentPage(),N.scrollTop||0)}))}};
_.l.initHistoryManager=function(p){if(!this.hasNavigated){this.hasNavigated=!0;var x=_.n(this.hostElement).querySelector("#page-manager").getCurrentData();p=isNaN(p)?this.getPageOffset():p;var F=_.J().resolve(_.hA).currentEndpoint;this.replaceState(F,x,p)}};
_.l.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.l.onYtNavigateStart=function(p,x){this.cancelPendingTasks();x.noProgressBar||(p=_.J().resolve(_.Bw(TE_)))&&p.start();p=this.hasPendingNavigation?null:this.data;this.hasError=!1;var F=_.J().resolve(_.j3),N,h,c;_.S("kevlar_use_vimio_behavior")&&!((N=x.endpoint)==null?0:(h=N.commandMetadata)==null?0:(c=h.webCommandMetadata)==null?0:c.ignoreNavigation)&&(N=F.getCurrentPage())&&N.disconnectVisibilityRoot();F.prepareForNavigation(x.pageType,x.endpoint);_.S("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=
new _.jj(1,"pcl"),_.LJ(this.pagePreparer,F.preparePage.bind(F,x.pageType,x.endpoint)));N=this.getPageOffset();this.initHistoryManager(N);x.reload||this.hasPendingNavigation?this.replaceState(x.endpoint,p,N):(p==null?void 0:p.page)==="watch"&&x.pageType==="watch"&&_.S("kevlar_replace_watch_to_watch_history_state")?this.replaceState(x.endpoint,p,N):(p==null?void 0:p.page)!=="shorts"||x.pageType!=="shorts"||x.endpoint.reelWatchEndpoint.sequenceParams||_.S("short_to_short_back_nav_killswitch")?x.type!=
"navigate-back"&&x.type!="navigate-forward"&&(x.pageType==="shorts"&&_.hG(this.hostElement,"yt-shorts-reset"),this.saveAndPush(x.url,x.endpoint,p,N)):this.replaceState(x.endpoint,p,0);this.hasPendingNavigation=!0};
var x9a=function(p){p.hasPendingNavigation=!1;(p=_.J().resolve(_.Bw(TE_)))&&p.finish()};
AV.prototype.onYtNavigateError=function(p,x){x9a(this);this.hasError=!0;x&&x.errorMessage?this.errorMessage=x.errorMessage:this.errorMessage=void 0;p=this.get("endpoint.commandMetadata.webCommandMetadata.url",x);var F=_.VL(window.location.href);p&&!F.pbjreload&&(x=x.navigationErrorReason||"10",_.S("kevlar_parent_on_pbjreload")&&(F={csn:_.b0()},this.get("data.endpoint.clickTrackingParams")&&(F.itct=this.data.endpoint.clickTrackingParams),_.I9(p,F)),_.yK(_.Ww(p,{pbjreload:x})))};
AV.prototype.onYtNavigateCache=function(p,x){var F=this,N=x.url,h=x.endpoint,c=x.data;p=!!x.miniplayer;x=!!x.skipHistory;if(N&&h&&c){var M=this.getPageOffset(),f=this.data||null;x||this.saveAndPush(N,h,f,M);N=_.MyB(_.J().resolve(_.hA),h,c,p?4:3,{},p);p&&N.then(function(){F.dataUpdatePromise&&F.dataUpdatePromise.then(function(){var K=_.J().resolve(_.j3);F.setPageOffset(K.getCurrentPage(),0)})})}};
AV.prototype.onYtNavigateFinish=function(p,x){var F=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){F8H(F,x.fromHistory)})};
var F8H=function(p,x){x9a(p);if(p.pendingPlayerOnResponseReceivedActions){for(var F=_.a(p.pendingPlayerOnResponseReceivedActions),N=F.next();!N.done;N=F.next())_.FY(N.value,p.hostElement);p.pendingPlayerOnResponseReceivedActions=[]}F=_.J().resolve(_.j3);!x&&p.hasNavigated&&((x=F.getCurrentPage())?x.is==="ytd-shorts"||p.tabGesturesIsActive||p.setPageOffsetForNavigation(x,0):_.no(Error("Yk")));_.zD(function(){_.zD(function(){_.wH("pda")})})};
AV.prototype.onYtNavigateRedirect=function(p){p.detail.url&&this.replaceUrl(p.detail.url)};
AV.prototype.onYtNavigate=function(p){if(!p.detail.endpoint){var x=new _.qE("Error: Missing yt-navigate endpoint from target:",p.target,p.target.nodeName);_.zj(x)}if(x=_.S("cold_missing_history"))x=ue(),x.init(!1),x=!(x.browserHistory.boundHistoryReplaceState&&x.browserHistory.boundHistoryPushState);if(x){_.zn("DISABLE_WARM_LOADS",!0);x=new _.qE("Failed to initialize history manager",this.getDebugString());var F=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
F?_.no(x):_.zj(x)}x=p.detail.endpoint;var N,h;_.S("debug_forward_web_query_parameters")&&((N=x.commandMetadata)==null?0:(h=N.webCommandMetadata)==null?0:h.url)&&(x=JSON.parse(JSON.stringify(x)),x.commandMetadata.webCommandMetadata.url=_.w5H(x.commandMetadata.webCommandMetadata.url,window.location.search));p={type:0,command:x,form:{params:p.detail.params,tempData:p.detail.tempData||{},requestType:p.detail.type,createScreenConfig:p.detail.createScreenConfig,reload:p.detail.reload?p.detail.reload:!1}};
_.S("kevlar_yt_navigate_command_handler")?(N=_.J().resolve(_.RD),p.form.skipDefaultElement=!0,N.resolveCommand(x,{form:p.form})):this.handleNavigate(p)};
AV.prototype.handleNavigate=function(p){this.hasSetScrollTopForNavigation=!1;var x=_.J().resolve(_.hA),F=p.form||{};x.navigate(p.command,F.reload,F.params,F.tempData,F.requestType,F.createScreenConfig)&&edm(this,p.command,F.tempData)};
AV.prototype.onYtPageDataFetched=function(p,x){try{_.$r6().reset();this.data=x.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.J().resolve(_.j3).updatePageData(this.data);var F=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);F&&frt(F);var N=this.get("response.responseContext.serviceTrackingParams",this.data);N&&frt(N);var h=
this.get("playerResponse.onResponseReceivedActions",this.data);h&&(h=Ny8(this,h));h&&_.Kc(this.hostElement,h,this.hostElement);var c=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),M=this.get("response.responseContext.consistencyTokenJar",this.data);if(c||M){var f=_.neH(),K=(0,_.Q5.getValues)(f.tokenJars);c&&f.replace(K,c);M&&f.replace(K,M)}}catch(t){_.zj(t)}};
var edm=function(p,x,F){try{p.onYtEndpointChangeHandler(x,F)}catch(N){_.zj(N)}};
_.l=AV.prototype;_.l.onYtEndpointChangeHandler=function(){};
_.l.setPageTitle=function(p){p=(this.pageTitle=p)?p+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+p};
_.l.onYtUpdateTitle=function(p,x){this.setPageTitle(x)};
_.l.setUnseenNotificationCount=function(p){this.unseenNotificationCount=p;this.setPageTitle(this.pageTitle)};
_.l.handleUpdateNotificationsUnseenCountAction=function(p){_.r(p,Cp8)&&((p=_.r(p,Cp8).unseenCount)?this.setUnseenNotificationCount(p):this.setUnseenNotificationCount(0))};
_.l.handleClearCookieAction=function(p){var x;(p=(x=_.r(p,tve))==null?void 0:x.cookieName)&&_.$tE(p)};
_.l.onYtUpdateUnseenNotificationCount=function(p,x){this.setUnseenNotificationCount(x)};
_.l.loadData=function(p){var x=this;this.loadDepsPromise.then(function(){var F=_.J().resolve(_.Bw(_.hA));F||_.zj(Error("Zk"));if(p&&p.response){if(!p.endpoint){var N=_.Of(window.document.location.href)||"/",h="";if(N==="/"||N.startsWith("/?"))h="WEB_PAGE_TYPE_BROWSE";p.endpoint={commandMetadata:{webCommandMetadata:{url:N,webPageType:h,rootVe:3854}}}}_.MyB(F,p.endpoint,p,5,{})}else p.endpoint?F.navigate(p.endpoint):F.navigate(_.Kb);_.E0.cancelJob(x.zwiebackInitJobId);x.zwiebackInitJobId=_.E0.addLowPriorityJob(NaX)})};
var ue=function(){return _.J().resolve(_.VfC)};
_.l=AV.prototype;_.l.getDebugString=function(){return ue().getDebugString()};
_.l.getThirdPartyManipulationSuspected=function(){return ue().getThirdPartyManipulationSuspected()};
_.l.replaceState=function(p,x,F){ue().saveAndReplace(p,x,F)};
_.l.saveAndPush=function(p,x,F,N){ue().saveAndPush(p,x,F,N)};
_.l.replaceUrl=function(p){ue().replaceUrl(p)};
var $aD=function(p){return _.S("web_honor_cache_for_back")&&(_.r(p.endpoint,_.B7)||_.r(p.endpoint,_.dX))?!0:!p||isNaN(p.expirationTime)?!1:(0,_.Lf)()>p.expirationTime},pKD=function(p,x,F){var N=p.get("response.trackingParams",F),h=_.yR(),c=_.b0();
if(N&&h&&c&&(N=p.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",F),!N&&F.rootVe&&(N=F.rootVe),h=x?"forwardButton":"backButton",x=p.get("playerResponse.topbar.desktopTopbarRenderer."+h+".buttonRenderer.command.clickTrackingParams",p.data),p=p.get("response.topbar.desktopTopbarRenderer."+h+".buttonRenderer.command.clickTrackingParams",p.data),x=(p=x||p)?_.fr(p):void 0,p=_.cl(),h=[_.qt(F)],_.F8(p,N,x,{dataPromises:h,csnToClone:F.csn}),F.graftedVes))for(F=
_.a(F.graftedVes),N=F.next();!N.done;N=F.next())_.NJ(p,N.value)};
AV.prototype.onStoreGraftedVeAction=function(p){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(p)):_.no(Error("$k"))};
var Ny8=function(p,x){return x.filter(function(F){for(var N in F)if(Uac[N])return p.pendingPlayerOnResponseReceivedActions.push(F),!0;return!1})};
_.R8.Object.defineProperties(AV.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
var Y7=AV;Y7.prototype.onStoreGraftedVeAction=Y7.prototype.onStoreGraftedVeAction;Y7.prototype.loadData=Y7.prototype.loadData;Y7.prototype.onYtUpdateUnseenNotificationCount=Y7.prototype.onYtUpdateUnseenNotificationCount;Y7.prototype.handleClearCookieAction=Y7.prototype.handleClearCookieAction;Y7.prototype.handleUpdateNotificationsUnseenCountAction=Y7.prototype.handleUpdateNotificationsUnseenCountAction;Y7.prototype.setUnseenNotificationCount=Y7.prototype.setUnseenNotificationCount;
Y7.prototype.onYtUpdateTitle=Y7.prototype.onYtUpdateTitle;Y7.prototype.setPageTitle=Y7.prototype.setPageTitle;Y7.prototype.onYtEndpointChangeHandler=Y7.prototype.onYtEndpointChangeHandler;Y7.prototype.onYtPageDataFetched=Y7.prototype.onYtPageDataFetched;Y7.prototype.handleNavigate=Y7.prototype.handleNavigate;Y7.prototype.onYtNavigate=Y7.prototype.onYtNavigate;Y7.prototype.onYtNavigateRedirect=Y7.prototype.onYtNavigateRedirect;Y7.prototype.onYtNavigateFinish=Y7.prototype.onYtNavigateFinish;
Y7.prototype.onYtNavigateCache=Y7.prototype.onYtNavigateCache;Y7.prototype.onYtNavigateError=Y7.prototype.onYtNavigateError;Y7.prototype.onYtNavigateStart=Y7.prototype.onYtNavigateStart;Y7.prototype.cancelPendingTasks=Y7.prototype.cancelPendingTasks;Y7.prototype.initHistoryManager=Y7.prototype.initHistoryManager;Y7.prototype.onYtHistoryLoad=Y7.prototype.onYtHistoryLoad;Y7.prototype.onYtHistoryPop=Y7.prototype.onYtHistoryPop;Y7.prototype.onYtNavigateSetPageOffset=Y7.prototype.onYtNavigateSetPageOffset;
Y7.prototype.setPageOffset=Y7.prototype.setPageOffset;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Y7.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Y7.prototype,"data",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Y7.prototype,"hasError",void 0);_.B([_.H(),_.k("design:type",Object)],Y7.prototype,"errorMessage",void 0);
_.B([_.V("yt-navigate-set-page-offset"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],Y7.prototype,"onYtNavigateSetPageOffset",null);_.B([_.V("yt-history-pop"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],Y7.prototype,"onYtHistoryPop",null);
_.B([_.V("yt-history-load"),_.k("design:type",Function),_.k("design:paramtypes",[Event,_.ytj]),_.k("design:returntype")],Y7.prototype,"onYtHistoryLoad",null);_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Y7.prototype,"onYtNavigate",null);_.B([_.V("yt-update-title"),_.k("design:type",Function),_.k("design:paramtypes",[Event,String]),_.k("design:returntype")],Y7.prototype,"onYtUpdateTitle",null);
_.B([_.V("yt-update-unseen-notification-count"),_.k("design:type",Function),_.k("design:paramtypes",[Event,Number]),_.k("design:returntype")],Y7.prototype,"onYtUpdateUnseenNotificationCount",null);Y7=_.B([_.l8()],Y7);RdX.YtdAppBehavior=[_.T2.YtActionHandlerBehavior,Y7.prototype];var w2=function(){var p=_.hZ.apply(this,arguments)||this;p._noAccessors=!0;return p};
_.E(w2,_.hZ);w2.prototype.ready=function(){var p=this;_.n(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){p.onChange_()})};
w2.prototype.dataChanged_=function(){_.n(this.hostElement).querySelector("#checkbox").checked=!1};
w2.prototype.onChange_=function(){var p=_.n(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.hG(this.hostElement,"yt-dismissal-reason-"+p,this.data.feedbackToken)};
var Gb=w2;Gb.prototype.dataChanged_=Gb.prototype.dataChanged_;_.B([_.H(),_.k("design:type",Object)],Gb.prototype,"data",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Gb.prototype,"dataChanged_",null);Gb=_.B([_.l8()],Gb);var hHm=[Gb.prototype];var VA=function(){var p=_.hZ.apply(this,arguments)||this;p.timeoutJobId=0;p.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return p};
_.E(VA,_.hZ);VA.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
VA.prototype.startTimeout=function(){var p=this,x=this.data&&this.data.displayDurationSeconds;x&&!this.timeoutJobId&&(this.timeoutJobId=_.vZ(_.E0,function(){_.lA(p.hostElement,"yt-close-popup-action",[p.is]);p.timeoutJobId=0},x*1E3))};
VA.prototype.cancelTimeout=function(){_.E0.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
var WA=VA;WA.prototype.ytdHatsSurveyBehaviorDataChanged=WA.prototype.ytdHatsSurveyBehaviorDataChanged;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],WA.prototype,"ytActionHandlerBehavior",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],WA.prototype,"ytdHatsSurveyBehaviorDataChanged",null);WA=_.B([_.l8()],WA);var lgX=[_.T2.YtActionHandlerBehavior,WA.prototype];var cjm=function(p,x){return p.SHARED_RENDERERS_.hasOwnProperty(x)?"yt":p.prefix},HA={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}};HA.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.S("kevlar_mealbar_above_player"),modern:_.S("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"}};
HA.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};HA.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};HA.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
HA.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)"}};
HA.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};
HA.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};
HA.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};
HA.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};HA.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"}};
HA.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};HA.TOAST={component:null,properties:{}};var ag_=new function(p,x,F){this.supportedPopups=p;this.navigationEndpointPopupMap=x;this.popupTypeMap=F;this.supportedPopups=p;this.navigationEndpointPopupMap=x;this.popupTypeMap=F}({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:_.S("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"}),MY8=new function(){this.prefix="ytd";this.SHARED_RENDERERS_={aboutThisAdRenderer:!0,
bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,
loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$17483_popupConfig=HA;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 D9k=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.QX.getInstance()},m6=function(p,x){var F=p.pageNameToElement.get(x);
if(!F){switch(x){case "watch":var N=_.S("web_watch_force_learning_journey_for_testing")?_.OB("ytd-watch-learning-journey"):_.S("kevlar_watch_fixie")?_.OB("ytd-watch-fixie"):_.S("kevlar_watch_grid")?_.OB("ytd-watch-grid"):_.OB("ytd-watch-flexy");break;case "learning-journey-watch":N=_.OB("ytd-watch-learning-journey");break;case "shorts":N=_.OB("ytd-shorts");break;case "search":N=_.OB("ytd-search");break;case "channel":N=_.OB("ytd-browse");N.pageSubtype="channels";break;case "trending":N=_.OB("ytd-browse");
N.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":N=
_.OB("ytd-browse");N.pageSubtype=x;break;case "browse":N=_.OB("ytd-browse");break;default:_.no(new _.qE("Error getting page element for type",x))}F=N;p.pageNameToElement.set(x,F)}return F};
D9k.prototype.preparePage=function(p,x,F){F&&(p=fL(F)||p);if(p!=="watch"){var N=this.elementPoolPopulator,h=p;h!=N.targetPage_&&N.pendingPages_.indexOf(h)>-1&&(N.targetPage_&&(N.pendingPages_.unshift(N.targetPage_),N.abort()),I7_(N,h),_.vGD(N,h))}if((N=m6(this,p))||!_.r(F,_.Gj)){N.isAttached||N===x||(N.hidden=!0);if(!(N.data||p==="watch"&&_.S("swatcheroo_page_pool_dont_provide_filler_data"))){var c;if(p=(c=_.sd("FILLER_DATA",{})[p])==null?void 0:c.response)N.data=p}return N}};var fgH=function(p){this.JSC$28188_clientRoot=p;this.playlistHandlerActionMap={"yt-add-to-playlist-command":tG8,"yt-end-playlist-command":dLe,"yt-recover-playlist-command":JHD,"yt-refresh-playlist-command":rHe,"yt-playlist-remove-videos-action":Cqc};_.WZ(_.Vj.getInstance(),this.playlistHandlerActionMap,this.JSC$28188_clientRoot);ad8()},K8k;var oY=function(p,x,F){this.apiKey=p;this.endpoint=x;this.confidenceThreshold=F===void 0?.5:F;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=x==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||x==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
x==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||x==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new pLa};
_.l=oY.prototype;
_.l.start=function(p){if(this.state===0)if(this.isOnline()){p.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=p.supportsHttpHeadersOverwriteParam);p.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=p.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.Yv("voice_assistant");_.G6("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=p.languageCode||"en-US";this.supportsCrossDomainXhr=p.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=p.youtubeAssistantRequest||null;this.listeningHandler=p.listeningHandler||this.listeningHandler;this.audioDetectedHandler=p.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=p.stopHandler||this.stopHandler;this.completeHandler=p.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=p.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=p.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
p.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=p.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=p.accessToken;this.additionalHeaders=p.additionalHeaders||{};var x;this.prefetchResponseTimeoutMs=(x=p.prefetchResponseTimeoutMs)!=null?x:this.prefetchResponseTimeoutMs;q2t(this);this.startAudio();ZBa(this)}else this.errorHandler("OFFLINE")};
_.l.stop=function(p){var x=p===void 0?{}:p;p=x.logCancel===void 0?!0:x.logCancel;var F=x.logMicClosed===void 0?!0:x.logMicClosed;var N=x.handleError===void 0?!0:x.handleError;x=x.handleStop===void 0?!0:x.handleStop;this.state!==0&&(p&&On("voz_cx"),j2(this,{logMicClosed:F,handleStop:x}),N&&this.errorHandler("ABORTED"))};
_.l.getState=function(){return this.state};
_.l.isSupported=function(){return!0};
_.l.stopAudio=function(p){(p===void 0||p)&&On("voz_mf")};
_.l.startAudio=function(){On("voz_vp");return _.qt(null)};
var tYe=function(p,x){p.channelOpen&&(p.state!==2&&(p.state=2,On("voz_ss"),p.listeningHandler()),x=new Uint8Array(x),x='{ "audioIn": "'+_.Xc(x)+'" }',p.channel.send(x))},j2=function(p,x){var F=x===void 0?{}:x;
x=F.logMicClosed===void 0?!0:F.logMicClosed;F=F.handleStop===void 0?!0:F.handleStop;p.vozEndOfDataTimeout>-1&&(clearTimeout(p.vozEndOfDataTimeout),p.vozEndOfDataTimeout=-1);d98(p);p.stopAudio(x);p.channel&&(p.channelOpen=!1,p.manuallyClosedChannel=!0,p.channel.close(),p.channel=void 0);p.transcribedSpeechResults=[];p.state=0;F&&p.stopHandler()},q2t=function(p){var x={httpHeadersOverwriteParam:p.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},p.additionalHeaders,p.accessToken&&p.isUsingVoz?{Authorization:"Bearer "+p.accessToken}:{"x-goog-api-key":p.apiKey}),supportsCrossDomainXhr:p.supportsCrossDomainXhr};p.channel=new Gs(p.endpoint,x);p.channel.open();_.qd(p.channel,"w",function(){var F=p.channel,N=F.send,h=p.isUsingVoz?"PLACEHOLDER":"example";h={config:{dialogStateIn:{languageCode:p.languageCode},deviceConfig:{deviceId:h,deviceModelId:h},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!p.isUsingVoz)h.config.requestType=4;else if(p.isUsingVoz&&p.youtubeAssistantRequest){var c=JSON.stringify(p.youtubeAssistantRequest);h.config.internalIn={youtubeAssistantS3InputJson:c}}N.call(F,h);p.channelOpen=!0;p.manuallyClosedChannel=!1});
_.qd(p.channel,"x",function(){p.manuallyClosedChannel||(p.channelOpen=!1,p.channel=void 0,j2(p))});
_.qd(p.channel,"z",function(F){if(F.data){d98(p);for(var N=0;N<F.data.length;N++){var h=p,c=F.data[N],M=c.speechResults;if(M)a:{var f=[];c=[];var K=!1;M=_.a(M);for(var t=M.next();!t.done;t=M.next()){t=t.value;if(t.noSpeech){j2(h);h.errorHandler("NO_SPEECH");break a}t.transcript!==void 0&&t.stability!==void 0&&(t.stability<h.confidenceThreshold&&(K=!0),K?c.push(t.transcript):f.push(t.transcript))}if(f.length!==0||c.length!==0)f=f.join(" "),c=c.join(" "),h.receivedEndOfUtterance&&!h.isUsingVoz?h.isUsingVoz||
h.completeHandler([f,c]):(K=h,M=f,t=c,On("voz_sf"),K.transcriptionUpdateHandler(M,t),K.transcribedSpeechResults=[M,t]),h.receivedEndOfUtterance&&(On("voz_eou"),h.transcriptionCompleteHandler([f,c]),h.isUsingVoz&&(h.prefetchResponseTimeoutMs===0?j2(h,{logMicClosed:!1,handleStop:!0}):h.prefetchResponseTimeoutMs>0&&v1m(h)))}else h.isUsingVoz&&(c==null?0:c.internalOut)?(c=JSON.parse(c.internalOut.youtubeAssistantS3OutputJson),c.userHasOptedInToVaa||c.vaaConsent?h.vaaConsentUpdateHandler(!!c.userHasOptedInToVaa,
!!c.vaaConsent):(Jj_(h),c&&(f=h.transcribedSpeechResults,On("voz_rqf"),h.completeHandler(f,c)))):c.eventType==="END_OF_UTTERANCE"?h.receivedEndOfUtterance=!0:(On("voz_err"),h.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.no(Error("al")))}}});
_.qd(p.channel,"y",function(F){j2(p);switch(F.status){case 1:F="WEBCHANNEL_NETWORK_ERROR";break;case 2:F="WEBCHANNEL_SERVER_ERROR";break;default:F="WEBCHANNEL_UNKNOWN_ERROR"}p.errorHandler(F);p.logError(Error(F))})};
oY.prototype.logError=function(p){_.zj(p)};
oY.prototype.isOnline=function(){return!0};
var v1m=function(p){Jj_(p);p.prefetchResponseSetTimeoutId=setTimeout(function(){j2(p,{logMicClosed:!1,handleStop:!0})},p.prefetchResponseTimeoutMs)},Jj_=function(p){p.prefetchResponseSetTimeoutId>-1&&(clearTimeout(p.prefetchResponseSetTimeoutId),p.prefetchResponseSetTimeoutId=-1)},ZBa=function(p){d98(p);
p.noResponseReceivedTimeout=window.setTimeout(function(){j2(p);p.errorHandler("NO_SPEECH")},11E3)},d98=function(p){p.noResponseReceivedTimeout>-1&&(window.clearTimeout(p.noResponseReceivedTimeout),p.noResponseReceivedTimeout=-1)},On=function(p){_.wH(p,void 0,"voice_assistant")};var LG=function(){oY.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.E(LG,oY);LG.prototype.isSupported=function(){return EgX()};
LG.prototype.startAudio=function(){var p=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.o9(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(N){Coe(p,N)};
this.processor.connect(this.audioContext.destination);var x=function(N){p.stream=N;if(!p.audioContext)return _.qt(null);N=p.audioContext.createMediaStreamSource(N);p.processor&&N.connect(p.processor);return _.qt(null)},F={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?x(this.stream):navigator.mediaDevices.getUserMedia(F).then(x).catch(function(N){j2(p);N.name&&N.name==="NotAllowedError"?p.errorHandler("NO_MICROPHONE_PERMISSION"):(p.errorHandler("AUDIO_ERROR"),p.logError(N));return _.o9(null)});
return oY.prototype.startAudio.call(this)};
LG.prototype.stopAudio=function(p){p=p===void 0?!0:p;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(x){x.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;oY.prototype.stopAudio.call(this,p)};
LG.prototype.isOnline=function(){return navigator.onLine};
var Coe=function(p,x){if(p.audioContext)if(window.OfflineAudioContext){var F=p.audioContext.sampleRate,N=x.inputBuffer.getChannelData(0);x=new window.OfflineAudioContext(1,N.length,16E3);for(var h=x.createBuffer(1,N.length,F),c=h.getChannelData(0),M=0,f=0;f<N.length;f++)c[f]=N[f],M+=c[f]*c[f];!p.audioDetected&&Math.sqrt(M/N.length)>.01&&(p.audioDetected=!0,p.audioDetectedHandler());N=x.createBufferSource();N.buffer=h;N.connect(x.destination);N.start(0);x.oncomplete=function(K){K=K.renderedBuffer.getChannelData(0);
for(var t=Math.floor(16384E3/F),d=new Int16Array(t),v=0;v<t;++v)d[v]=Math.max(-1,Math.min(1,K[v]))*32767;tYe(p,d.buffer)};
x.startRendering()}else S2X(p,x)},S2X=function(p,x){var F=p.audioContext.sampleRate,N=x.inputBuffer.getChannelData(0),h=Math.floor((F+8E3)/16E3);
F=N.length/h;x=new Float32Array(F);for(var c=0;c<F;++c)x[c]=N[c*h];N=new Int16Array(F);for(h=0;h<F;++h)N[h]=Math.max(-1,Math.min(1,x[h]))*32767;tYe(p,N.buffer)};var rja={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var E1a=function(){this.JSC$17548_audioEnabled=!0;this.audioFeedbackHolder={}};
E1a.prototype.isPlaying=function(p){return p.currentTime>0&&!p.paused&&!p.ended&&p.readyState>2};
var XK_=function(p){for(var x=_.a(Object.values(rja)),F=x.next();!F.done;F=x.next())F=F.value,p.audioFeedbackHolder[F]=new Audio,p.audioFeedbackHolder[F].src="/s/search/audio/"+F+".mp3",p.audioFeedbackHolder[F].load()},PA=function(p,x){if(p.JSC$17548_audioEnabled!==!1&&x in p.audioFeedbackHolder){for(var F=_.a(Object.values(p.audioFeedbackHolder)),N=F.next();!N.done;N=F.next())N=N.value,p.isPlaying(N)&&N.pause();
p.audioFeedbackHolder[x].currentTime=0;p.audioFeedbackHolder[x].play().catch(function(){})}};var g18=function(p,x){var F=this;this.store=p;this.service=x;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){F.setState("offline");F.stop()};
this.audioPlayer=new E1a;var N;(N=this.audioPlayer)==null||XK_(N)};
_.l=g18.prototype;_.l.getService=function(){return this.service};
_.l.isEnabled=function(){return!!this.service};
_.l.isSupported=function(){var p;return(p=this.service)==null?void 0:p.isSupported()};
_.l.start=function(){var p=this,x,F,N,h,c,M,f,K,t,d,v,C,X;return _.D(function(Q){switch(Q.nextAddress){case 1:p.store.dispatch(q8t("",""));if(!navigator.onLine)return p.setState("offline"),Q.return();window.addEventListener("offline",p.handleOfflineEvent);p.stream=null;if(!p.permissionsSupported){Q.jumpTo(2);break}_.KM(Q,3);return _.q(Q,Q1k(p),5);case 5:x=Q.yieldResult;if(!x)return(F=p.audioPlayer)==null||PA(F,"failure"),Q.return();p.service.stream=p.stream;p.setState("listening");_.ub(Q,2);break;
case 3:_.v9(Q),p.permissionsSupported=!1;case 2:N={context:_.luZ(_.TI())},N.youtubeAssistantParams={searchParams:{inlineSearchResponse:p.enableInlineSearchResponse}},h=function(b,A){p.store.dispatch(ZWm("transcribing"));p.store.dispatch(q8t(b,A))},c=function(){var b;
(b=p.audioPlayer)==null||PA(b,"open");p.setState("listening")},M=function(){p.setState("transcribing")},f=function(b){p.setErrorState(b)},K=function(b,A){var Y;
(Y=p.audioPlayer)==null||PA(Y,"success");A&&(_.S("kevlar_voice_search_inline_search")&&(p.responseProcessor=_.J().resolve(_.Klz),p.responseProcessor&&(Y=A.navigationAction,b=A.prefetchedSearchResponse,Y&&b&&(Y=(new _.ymH).JSC$11762_getStoreKey(Y),_.jZ(p.responseProcessor,b,Y)))),p.JSC$17566_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",A))},t=function(){window.removeEventListener("offline",p.handleOfflineEvent)},d=_.tVE(!1),v=d.Authorization!=null,C=p.enableFirstPartyAuth||
p.enableFPAForSignedInUsers&&v?d:{"X-Goog-Visitor-Id":d["X-Goog-Visitor-Id"]},X={completeHandler:K,
errorHandler:f,listeningHandler:c,audioDetectedHandler:M,stopHandler:t,transcriptionUpdateHandler:h,youtubeAssistantRequest:N,languageCode:zHe(),additionalHeaders:C,supportsCrossDomainXhr:p.enableFirstPartyAuth||p.enableFPAForSignedInUsers&&v,supportsHttpHeadersOverwriteParam:!p.disableHttpHeadersOverwrite},p.service.start(X),_.JB(Q)}})};
_.l.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.l.reset=function(){this.store.dispatch(_.F4({type:"RESET_VOICE_SEARCH_STATE"}))};
_.l.setState=function(p){this.store.dispatch(ZWm(p))};
_.l.setErrorState=function(p){switch(p){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var x;(x=this.audioPlayer)==null||PA(x,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)Q1k(this);else{var F;(F=this.audioPlayer)==null||PA(F,"failure");this.setState("permission-denied")}break;case "ABORTED":var N;(N=this.audioPlayer)==null||PA(N,"no_input");break;default:var h;(h=this.audioPlayer)==
null||PA(h,"no_input");this.setState("timeout")}};
var Q1k=function(p){var x,F;return _.D(function(N){switch(N.nextAddress){case 1:return _.q(N,navigator.permissions.query({name:"microphone"}),2);case 2:x=N.yieldResult;if(x.state==="granted")return N.return(!0);if(x.state==="denied")return p.setState("permission-denied"),N.return(!1);p.setState("permission");F={audio:{sampleSize:16,channelCount:1},video:!1};_.KM(N,3);return _.q(N,navigator.mediaDevices.getUserMedia(F),5);case 5:return p.stream=N.yieldResult,N.return(!0);case 3:return _.v9(N),p.setState("permission-denied"),
N.return(!1)}})},zHe=function(){var p=_.sd("INNERTUBE_CONTEXT_HL"),x=_.sd("INNERTUBE_CONTEXT_GL");
return p.indexOf("-")>-1?p:p+"-"+x};var s1D=function(p,x,F){g18.call(this,x,F);this.JSC$17566_actionRouter=p;this.enableInlineSearchResponse=_.S("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.S("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.S("kevlar_voice_search_enable_fpa_signedin_users")},n1H;
_.E(s1D,g18);
var yja=function(){if(!n1H){var p="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.S("kevlar_voice_search_auth_enabled")||_.S("kevlar_voice_search_use_yt_endpoint")?p="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.S("kevlar_voice_search_use_fp_endpoint")&&(p="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");n1H=
new s1D(_.Vj.getInstance(),_.Bi(),new LG(_.sd("VOZ_API_KEY"),p,.5))}return n1H};var bBm=function(p){this.JSC$17570_clientRoot=p;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$17570_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)]]));p=_.a(this.eventListeners);for(var x=p.next();!x.done;x=p.next()){var F=_.a(x.value);x=F.next().value;F=F.next().value;F=_.a(F);for(var N=F.next();!N.done;N=F.next()){var h=
_.a(N.value);N=h.next().value;h=h.next().value;x.addEventListener(N,h)}}_.WZ(_.Vj.getInstance(),this.autonavPauseActionMap,this.JSC$17570_clientRoot)},Aj8,uyH=function(p){return _.S("kevlar_autonav_popup_filtering")?(p=_.os(p))?p.hasAttribute("prevent-autonav"):!0:!0};
_.l=bBm.prototype;_.l.onIronOverlayOpened=function(p){uyH(p)&&(this.autonavPauseReasons.overlayOpen=!0,Tb(this))};
_.l.onIronOverlayClosed=function(p){uyH(p)&&(this.autonavPauseReasons.overlayOpen=!1,Tb(this))};
_.l.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;Tb(this)};
_.l.onYtAutonavPauseBlur=function(){var p=this;_.E0.addJob(function(){p.isInBackground()||(p.autonavPauseReasons.inputBoxFocus=!1,Tb(p))},8,0)};
_.l.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;Tb(this)};
_.l.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;Tb(this)};
_.l.onYtAutonavPauseScroll=function(){var p=_.J().resolve(_.j3);p.isOnWatch()&&(p=p.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=p.getBoundingClientRect().top<-200,Tb(this))};
_.l.onYtAutonavPauseUserEngagement=function(p){var x=this;if(_.S("user_engagement_enable_autoplay_pause_feature")){var F=Number(p.lowEngagementThresholdMs);isNaN(F)||F<=0||p.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.U3("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.J().resolve(_.CQ),_.U0()<F?_.vZ(_.E0,function(){_.U3("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.l$H()?(this.userEngagementCsn=_.b0(),_.vZ(_.E0,function(){_.U3("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
x.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,Tb(this)):_.U3("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.Ssr(Error("bl`"+JSON.stringify(p)))};
_.l.onYtAutonavPausePlayer=function(p){this.autonavPauseReasons.requestedByPlayer=!!p.detail;Tb(this)};
_.l.onYtAutonavVisibilityChanged=function(){var p=this,x,F,N;return _.D(function(h){if(h.nextAddress==1)return(x=_.Pt())?_.q(h,x.getPlayerPromise(),2):h.return();F=h.yieldResult;N=F.isMuted()||F.getVolume()===0;p.autonavPauseReasons.backgroundAndMute=p.isInBackground()&&N;Tb(p);_.JB(h)})};
_.l.onYtAutonavPausePlayerEnded=function(){_.J().resolve(_.CQ);var p=144E5;_.S("user_engagement_enable_autoplay_pause_feature")||_.S("is_part_of_any_user_engagement_experiment")||(p=45E5);this.autonavPauseReasons.longIdle=_.U0()>p;Y2m(this);Tb(this)};
_.l.onYtUserActivity=function(){var p=this;this.autonavPauseReasons.userEngagement&&(_.vZ(_.E0,function(){_.U3("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",p.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,Tb(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.vZ(_.E0,function(){_.U3("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",p.userEngagementCsn);_.Xx()}),this.autonavPauseReasons.youthereLactExperiment=!1,Tb(this));
this.autonavPauseReasons.longIdle&&!_.S("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,Tb(this))};
_.l.isInBackground=function(){var p=window.document.visibilityState;return!(!p||p==="visible")};
var Tb=function(p){for(var x=!1,F=_.a(Object.values(p.autonavPauseReasons)),N=F.next();!N.done;N=F.next())N=N.value,x=x||N;x?_.Bf.getInstance().pause(p.autonavPauseReasons):(p=_.Bf.getInstance(),p.autonavState_==3?(p.setState(2,!1,!1),p.autonavPauseReason_=void 0):p.autonavState_==1&&(p.disabledAutonavPauseReason_=void 0))},Y2m=function(p){var x=!1;
if(_.S("enable_autoplay_pause_by_lact")){_.J().resolve(_.CQ);x=_.Ud("autoplay_pause_by_lact_sec")*1E3;var F=_.Ud("autoplay_pause_by_lact_sampling_fraction");(x=_.U0()>=x&&Math.random()<F)&&!_.l$H()&&(_.vZ(_.E0,function(){_.U3("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),x=!1)}x!==p.autonavPauseReasons.youthereLactExperiment&&(p.autonavPauseReasons.youthereLactExperiment=x)&&(p.userEngagementCsn=_.b0(),_.vZ(_.E0,function(){_.U3("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",p.userEngagementCsn)}));
p.autonavPauseReasons.userEngagement&&_.vZ(_.E0,function(){_.U3("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",p.userEngagementCsn)})};
bBm.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.U3("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.Xx(),this.autonavPauseReasons.youthereLactExperiment=!1,Tb(this));this.autonavPauseReasons.userEngagement&&(_.U3("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,Tb(this))};
bBm.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var wKa=function(){var p=_.m.apply(this,arguments)||this;p.miniGuideVisible=!1;p.guideOpened=_.S("disable_initial_guide_state_fix")?!1:p.canFitPersistentGuide(p.initialBodyClientWidth);p.guideUserStateOpened=p.getInitialGuideUserStateOpened();p.isFullscreenShorts=!1;p.miniGuideWidthThreshold=_.Ud("kevlar_mini_guide_width_threshold",791);p.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");p.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
p.persistentGuideBlockedPagePathRegex=new RegExp(p.persistentGuideBlockedPagesPatterns.join("|"));p.animationTransitionDuration=0;p.lateDataResolver=_.GO();p.serviceEndpoint=g9e;p.initialGuideDataFetchFailed=!1;p.initialLoad=!0;p.guideRenderers=new Set;p.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return p};
_.E(wKa,_.m);_.l=wKa.prototype;_.l.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.l.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.l.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.l.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.l.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.l.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.l.ready=function(){_.J().addProvider({provide:_.wF,useValue:this.hostElement})};
_.l.attached=function(){var p=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.p5(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.p5(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.p5(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.p5(this,this.onYtGuideShow));_.jB(this,function(){p.animationTransitionDuration=200})};
_.l.detached=function(){document.removeEventListener("yt-navigate-finish",_.p5(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.p5(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.p5(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.p5(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.p5(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.p5(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.p5(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.l.getData=function(){return this.data};
_.l.load=function(){var p=this,x,F,N,h;return _.D(function(c){switch(c.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=p.lateDataResolver.resolve.bind(p),c.return(p.lateDataResolver.promise);if(window.ytInitialGuideData)return x=_.GO(),x.resolve(window.ytInitialGuideData),c.return(x.promise);N=!1;_.KM(c,2);return _.q(c,p.fetchGuideData(),4);case 4:F=c.yieldResult;_.ub(c,3);break;case 2:h=_.v9(c),h.message==="Returned error"&&(N=!0);
case 3:if(F)return c.return(F);p.onYtGuideClose();N||(p.initialGuideDataFetchFailed=!0);return c.return(p.lateDataResolver.promise)}})};
_.l.fetchGuideData=function(){var p=this,x,F,N,h,c,M;return _.D(function(f){if(f.nextAddress==1)return p.guidePromise||(p.guidePromise=_.fc(p.hostElement,[p.serviceEndpoint])),_.q(f,p.guidePromise,2);if(f.nextAddress!=3)return x=f.yieldResult,F=_.J(),N=F.resolve(_.OC),_.q(f,N(),3);(h=f.yieldResult)&&((c=x)==null?0:c.data)&&((M=x.data.responseContext)==null?void 0:M.maxAgeSeconds)!==0&&h.put("service:guide:fallback",new _.lp({innertubeResponse:x.data}));return f.return(x.data)})};
_.l.initializeGuideDataIfEmpty=function(){var p=this,x,F;return _.D(function(N){if(N.nextAddress==1){if(!p.initialGuideDataFetchFailed||p.data)return N.return();_.KM(N,2);return _.q(N,p.fetchGuideData(),4)}if(N.nextAddress!=2)return(x=N.yieldResult)&&p.lateDataResolver.resolve(x),_.ub(N,0);F=_.v9(N);_.no(F);_.JB(N)})};
_.l.initializeGuideData=function(){var p=this,x;return _.D(function(F){switch(F.nextAddress){case 1:return _.ZX(Pzm(),{mainAppWeb:_.GF()}),_.KM(F,2),_.q(F,p.load(),4);case 4:p.data=F.yieldResult;_.ub(F,3);break;case 2:_.v9(F),_.tf(Pzm(),"FAILURE");case 3:x=p.data&&p.data.items&&p.data.items.length>0?"SUCCESS":"FAILURE",_.tf(Pzm(),x),_.JB(F)}})};
_.l.setGuideData=function(p){var x=this,F,N;return _.D(function(h){if(h.nextAddress==1)return x.disabled?h.return():x.data?(p.data=x.data,x.guideRenderers.add(p),h.return()):_.q(h,x.initializeGuideData(),2);x.graftGuideToPage();F=_.nt("IS_HOMEPAGE_COLD")?"eop":void 0;_.S("disable_element_pool_populator")?x.setGuideDataAfterInit(p):(N=new _.jj(1,F),_.LJ(N,x.setGuideDataAfterInit.bind(x,p)));_.JB(h)})};
_.l.setGuideDataAfterInit=function(p){p.data=this.data;p.markDirty();this.guideRenderers.add(p);_.zD(function(){_.wH("gle")});
_.jB(this,function(){_.wH("gpe")})};
_.l.graftGuideToPage=function(){if(this.data){var p=this.data&&this.data.trackingParams;p&&(p=_.fr(p),_.hY(_.cl(),p))}};
_.l.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.p5(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.l.onDrawerOpenedChanged=function(p,x){!x.value&&this.guideOpened&&(this.guideOpened=!1)};
_.l.onYtGuideToggle=function(p){var x=this.guideOpened;this.guideOpened=!x;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var F=_.rH();_.Ez(0,109,!this.guideUserStateOpened);F.save()}this.updateGuideDrawerElementState();if(this.guideElement){var N;this.guideOpened&&((N=p.detail)==null?0:N.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.p5(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.p5(this,
this.onAppDrawerTransitioned))}x||this.initializeGuideDataIfEmpty()};
_.l.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.p5(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.on(this.guideElement)};
_.l.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.p5(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(fQc(this.guideOpened))};
_.l.guidePersistentAndVisibleChanged=function(){_.Mt(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.l.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.F4({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.l.miniGuideVisibleChanged=function(){_.Mt(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.l.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(fQc(this.guideOpened)),this.initialLoad=!1);_.Mt(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.l.activeEndpointChanged=function(){_.Mt(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.l.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.l.onYtGuideShow=function(){this.forceMiniGuideClose=!1;this.guidePersistent=this.canFitPersistentGuide(this.cachedClientWidth);this.guideUserStateOpened&&this.guidePersistent?this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.l.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var p=this.canFitPersistentGuide(this.cachedClientWidth);p?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=p}this.updateGuideDrawerElementState()};
_.l.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.l.getGuideOpened=function(){return this.guideOpened};
_.l.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.l.getActiveEndpoint=function(){return this.activeEndpoint};
_.l.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.l.updateGuideDrawerElementState=function(){this.guideElement&&(this.guidePersistent?this.disableGuideAnimation():this.guideElement.persistent?this.disableGuideAnimation():this.enableGuideAnimation(),this.guideElement.opened=this.guideOpened,this.guideElement.persistent=this.guidePersistent,this.guideOpened&&this.guidePersistent&&_.hG(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.l.computeGuidePersistentAndVisible=function(){var p=this;_.sQ(this,"computeGuidePersistentAndVisible",function(){p.guidePersistentAndVisible=p.guideOpened&&p.guidePersistent;p.guideIsVisibleButNotPersistent=!(!p.guideOpened||p.guidePersistent)})};
_.l.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.l.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.l.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.l.startLoadingWatch=function(){this.closeGuide()};
_.l.startLoadingShorts=function(){_.S("web_hide_guide_on_shorts")&&this.closeGuide()};
_.l.onYtNavigateFinish=function(p,x){if(!_.ML||x){this.activeEndpoint=x.endpoint;this.pageType=x.pageType;this.pageUrl=x.response.url;var F,N;p=(N=_.r((F=x.endpoint)==null?void 0:F.commandMetadata,_.eq))==null?void 0:N.url;!this.pageUrl&&p&&(this.pageUrl=p);_.S("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.l.getVisibleGuideRenderer=function(){for(var p=_.a(this.guideRenderers),x=p.next();!x.done;x=p.next())if(x=x.value,this.miniGuideVisible&&x.is==="ytd-mini-guide-renderer"||this.guideOpened&&x.is==="ytd-guide-renderer")return x;return null};
_.l.markGuideRendererDirty=function(p){if(p){typeof p.markDirty==="function"&&p.markDirty();p=_.a([].concat(_.se(_.n(p).children)));for(var x=p.next();!x.done;x=p.next())this.markGuideRendererDirty(x.value)}};
_.l.persistentGuideEnabled=function(p,x){if(!x||p==="watch"||p==="settings"||p==="shorts"&&this.isFullscreenShorts||_.S("reels_web_disable_persistent_guide_shorts")&&p==="shorts")return!1;var F=_.F_(x)||"";return _.S("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(N){return F===N}):!this.persistentGuideBlockedPagePathRegex.test(F)};
_.l.canFitPersistentGuide=function(p){var x=_.Ud("kevlar_persistent_guide_width_threshold",1312);return x===-1||_.S("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:p>x};
_.l.canFitMiniGuide=function(p){return this.miniGuideWidthThreshold===-1?!1:p>this.miniGuideWidthThreshold};
_.l.onResize=function(){var p=this;_.sQ(this,"calculateGuideState",function(){p.onResizeDebounced()})};
_.l.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.l.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.l.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.l.getInitialGuideUserStateOpened=function(){return!_.rH().getFlag(109)};
_.R8.Object.defineProperties(wKa.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.sd("initialBodyClientWidth")||window.innerWidth}}});
var BA=wKa;BA.prototype.onResize=BA.prototype.onResize;BA.prototype.observeForMiniGuideVisible=BA.prototype.observeForMiniGuideVisible;BA.prototype.computeGuidePersistentAndVisible=BA.prototype.computeGuidePersistentAndVisible;BA.prototype.cachedClientWidthChanged=BA.prototype.cachedClientWidthChanged;BA.prototype.resetGuide=BA.prototype.resetGuide;BA.prototype.activeEndpointChanged=BA.prototype.activeEndpointChanged;BA.prototype.guideOpenedChanged=BA.prototype.guideOpenedChanged;
BA.prototype.miniGuideVisibleChanged=BA.prototype.miniGuideVisibleChanged;BA.prototype.guideIsVisibleButNotPersistentChanged=BA.prototype.guideIsVisibleButNotPersistentChanged;BA.prototype.guidePersistentAndVisibleChanged=BA.prototype.guidePersistentAndVisibleChanged;BA.prototype.onGuideElementChanged=BA.prototype.onGuideElementChanged;BA.prototype.onGuidePersistentChanged=BA.prototype.onGuidePersistentChanged;BA.prototype.onRenderGuideChanged=BA.prototype.onRenderGuideChanged;
BA.prototype.onActiveEndpointChanged=BA.prototype.onActiveEndpointChanged;BA.prototype.onMiniGuideVisibleChanged=BA.prototype.onMiniGuideVisibleChanged;BA.prototype.onGuideIsVisibleButNotPersistentChanged=BA.prototype.onGuideIsVisibleButNotPersistentChanged;BA.prototype.onGuidePersistendAndVisibleChanged=BA.prototype.onGuidePersistendAndVisibleChanged;_.B([_.u(_.n7),_.k("design:type",Object)],BA.prototype,"ironResizableBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],BA.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],BA.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],BA.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],BA.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Boolean)],BA.prototype,"disabled",void 0);
_.B([_.H(),_.k("design:type",Boolean)],BA.prototype,"guidePersistentAndVisible",void 0);_.B([_.W("guidePersistentAndVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BA.prototype,"onGuidePersistendAndVisibleChanged",null);_.B([_.H(),_.k("design:type",Boolean)],BA.prototype,"guideIsVisibleButNotPersistent",void 0);
_.B([_.W("guideIsVisibleButNotPersistent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BA.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.B([_.H(),_.k("design:type",Object)],BA.prototype,"miniGuideVisible",void 0);_.B([_.W("miniGuideVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BA.prototype,"onMiniGuideVisibleChanged",null);_.B([_.H(),_.k("design:type",Boolean)],BA.prototype,"forceMiniGuideClose",void 0);
_.B([_.H(),_.k("design:type",Object)],BA.prototype,"activeEndpoint",void 0);_.B([_.W("activeEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BA.prototype,"onActiveEndpointChanged",null);_.B([_.H(),_.k("design:type",Boolean)],BA.prototype,"renderGuide",void 0);_.B([_.W("renderGuide"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BA.prototype,"onRenderGuideChanged",null);
_.B([_.H(),_.k("design:type",Object)],BA.prototype,"guideOpened",void 0);_.B([_.H(),_.k("design:type",Boolean)],BA.prototype,"guidePersistent",void 0);_.B([_.W("guidePersistent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BA.prototype,"onGuidePersistentChanged",null);_.B([_.H(),_.k("design:type",Object)],BA.prototype,"guideUserStateOpened",void 0);_.B([_.H(),_.k("design:type",String)],BA.prototype,"pageUrl",void 0);
_.B([_.H(),_.k("design:type",String)],BA.prototype,"pageType",void 0);_.B([_.H(),_.k("design:type",Number)],BA.prototype,"cachedClientWidth",void 0);_.B([_.H(),_.k("design:type",Object)],BA.prototype,"guideElement",void 0);_.B([_.H({selector:_.JI}),_.k("design:type",Object)],BA.prototype,"isFullscreenShorts",void 0);_.B([_.W("guideElement"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BA.prototype,"onGuideElementChanged",null);
_.B([_.W("guidePersistentAndVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BA.prototype,"guidePersistentAndVisibleChanged",null);_.B([_.cT("guideIsVisibleButNotPersistent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BA.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.B([_.W("miniGuideVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BA.prototype,"miniGuideVisibleChanged",null);_.B([_.cT("guideOpened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BA.prototype,"guideOpenedChanged",null);_.B([_.W("activeEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BA.prototype,"activeEndpointChanged",null);
_.B([_.cT("pageUrl"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BA.prototype,"resetGuide",null);_.B([_.cT("cachedClientWidth"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BA.prototype,"cachedClientWidthChanged",null);_.B([_.W("guideOpened","guidePersistent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BA.prototype,"computeGuidePersistentAndVisible",null);
_.B([_.cT("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BA.prototype,"observeForMiniGuideVisible",null);_.B([_.V("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BA.prototype,"onResize",null);BA=_.B([_.L({disableElementRegistration:!0,is:"yt-guide-manager"})],BA);var GL8=_.P(BA,"yt-guide-manager",void 0,{mode:_.UQ("kevlar_poly_si_batch_j081")?1:2});var VYm=function(){var p=_.m.apply(this,arguments)||this;p.JSC$17580_keyboardInUse=!1;p.boundHandleCapturedKeydownEvent=function(x){p.handleCapturedKeydownEvent(x)};
return p};
_.E(VYm,_.m);_.l=VYm.prototype;_.l.attached=function(){this.listenToDocument(document)};
_.l.listenToDocument=function(p){p.addEventListener("keydown",_.p5(this,this.onKeyDownEvent));p.addEventListener("keyup",_.p5(this,this.onKeyUpEvent));p.addEventListener("mousedown",_.p5(this,this.onMouseDownEvent));_.S("desktop_keyboard_capture_keydown_killswitch")||p.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);p.addEventListener("yt-page-data-updated",_.p5(this,this.onPageUpdate))};
_.l.detached=function(){this.unlistenFromDocument(document)};
_.l.unlistenFromDocument=function(p){p.removeEventListener("keydown",_.p5(this,this.onKeyDownEvent));p.removeEventListener("keyup",_.p5(this,this.onKeyUpEvent));p.removeEventListener("mousedown",_.p5(this,this.onMouseDownEvent));_.S("desktop_keyboard_capture_keydown_killswitch")||p.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);p.removeEventListener("yt-page-data-updated",_.p5(this,this.onPageUpdate))};
_.l.ready=function(){_.J().addProvider({provide:_.dR,useValue:this})};
_.l.isKeyBoardInUse=function(){return this.JSC$17580_keyboardInUse};
_.l.handleCapturedKeydownEvent=function(p){if(p.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(p)};
_.l.onMouseDownEvent=function(){this.JSC$17580_keyboardInUse=!1};
_.l.onPageUpdate=function(){if(_.S("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.S("web_shorts_keyboard_shortcut_usage_log")){_.FW.clear();for(var p=_.a(_.pL),x=p.next();!x.done;x=p.next()){var F=_.a(x.value);x=F.next().value;F=F.next().value;F=_.vt(F);_.FW.set(x,F);_.jz(_.b0(),_.yR(),F)}_.N2.clear();p=_.a(_.xR);for(x=p.next();!x.done;x=p.next())F=_.a(x.value),x=F.next().value,F=F.next().value,F=_.vt(F),_.N2.set(x,F),_.jz(_.b0(),_.yR(),F);_.I5(_.b0(),_.yR(),[].concat(_.se(_.N2.values()),
_.se(_.FW.values())));_.P5(_.b0(),[].concat(_.se(_.N2.values()),_.se(_.FW.values())))}};
_.l.onMiniplayerActiveChange=function(){var p;(p=_.J().resolve(_.H$).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(p.document):this.unlistenFromDocument(p.document))};
_.l.ignoreKeyEvent=function(p){if(p.ctrlKey||p.altKey)if(_.S("kevlar_macro_markers_keyboard_shortcut")){if(p.keyCode!==37&&p.keyCode!==39)return!0}else return!0;var x=_.m9(p)||[];return _.M6H(x)?!0:p.defaultPrevented?(Jr(p.keyCode,p.shiftKey,this.isShortsPage),!0):p.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(p):!1};
_.l.isSpacebarClick=function(p){var x=p||window.event;var F;x.composedPath&&typeof x.composedPath==="function"?F=x.composedPath():F=x.path;F&&F.length?x=F[0]:(x=x||window.event,x=x.target||x.srcElement,x.nodeType==3&&(x=x.parentNode));return x&&p.keyCode===32&&(p=x.tagName==="BUTTON"||x.tagName==="A"||x.tagName==="INPUT",x=(x=x.getAttribute("role"))&&(x==="option"||x==="button"||x.indexOf("menuitem")===0),p||x)?!0:!1};
_.l.onKeyDownEvent=function(p){if(!this.ignoreKeyEvent(p)&&(p.keyCode===191&&(p.shiftKey||p.metaKey?p.repeat!=null&&p.repeat||(this.openHotkeyDialog(),Jr(p.keyCode,p.shiftKey,this.isShortsPage)):(this.focusSearchBox(),p.preventDefault())),!p.metaKey)){var x=_.J().resolve(_.H$);switch(p.keyCode){case 9:this.JSC$17580_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(p);break;case 84:x.pipController.getWindow()&&window.focus();this.toggleTheaterMode(p.keyCode,p.shiftKey);break;case 73:x.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(p.keyCode,p.shiftKey);break;case 70:if(this.isShortsPage&&_.S("web_fullscreen_shorts")){_.f$D();break}this.isMiniplayerActive()?x.pipController.getWindow()&&(x.close(!0),window.focus()):this.passEventToPlayer(p);break;case 27:this.closeMiniplayer(p.keyCode,p.shiftKey)||this.passEventToPlayer(p);break;case 13:p.shiftKey&&_.S("web_ephemeral_actions")&&_.J().resolve(_.M_).activate(p);break;default:this.passEventToPlayer(p)}}};
_.l.onKeyUpEvent=function(p){if(!this.ignoreKeyEvent(p))if(_.S("web_speedmaster_spacebar_control")&&p.keyCode===32)this.handlePlayerSpaceKey(p,!0);else{var x=this.getPlayerManager();x&&(x=x.getPlayer())&&x.handleGlobalKeyUp(p.keyCode,p.shiftKey,p.ctrlKey,p.altKey,p.metaKey,p.key,p.code)}};
_.l.getPlayerManager=function(){var p=_.Pt(),x=_.J().resolve(_.Bw(_.j3));return p&&x&&x.isOnWatch()?p:null};
_.l.passEventToPlayer=function(p,x){var F=this,N,h,c;return _.D(function(M){if(M.nextAddress==1)return!_.S("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&F.isMiniplayerActive()?N=_.J().resolve(_.H$).getPlayerElement():F.inlinePreviewIsActive?(h=_.Mt(F.hostElement,"yt-get-inline-preview-player-action"))&&h[0]&&(N=h[0]):N=_.Pt(),N?_.q(M,N.getPlayerPromise(),3):M.jumpTo(0);c=M.yieldResult;x?c.handleGlobalKeyUp(p.keyCode,p.shiftKey,p.ctrlKey,p.altKey,p.metaKey,p.key,p.code,p.repeat):c.handleGlobalKeyDown(p.keyCode,
p.shiftKey,p.ctrlKey,p.altKey,p.metaKey,p.key,p.code,p.repeat);p.keyCode!==38&&p.keyCode!==40&&Jr(p.keyCode,p.shiftKey,F.isShortsPage);_.JB(M)})};
_.l.focusSearchBox=function(){_.hG(this.hostElement,"yt-focus-searchbox")};
_.l.openHotkeyDialog=function(){_.hG(this.hostElement,"yt-open-hotkey-dialog")};
_.l.isMiniplayerActive=function(){return _.J().resolve(_.H$).isMiniplayerActive()};
_.l.closeMiniplayer=function(p,x){return this.isMiniplayerActive()?(_.J().resolve(_.H$).close(),Jr(p,x,this.isShortsPage),!0):!1};
_.l.toggleTheaterMode=function(p,x){var F=_.gQ(_.Bi().getState()),N=this.getPlayerManager(),h=_.S("disable_theater_mode_keyboard")||_.nt("START_IN_FULL_WINDOW_MODE");N&&!h&&(F=!F,_.pc()&&_.S("external_fullscreen")&&(F=!0),_.lA(this.hostElement,"yt-toggle-theater-mode",[F]),Jr(p,x,this.isShortsPage))};
_.l.toggleMiniplayer=function(p,x){var F=this.getPlayerManager();if(this.isMiniplayerActive()){var N;((N=_.J().resolve(_.Bw(_.j3)))==null?0:N.isOnWatch())?_.J().resolve(_.H$).close(!0):_.v4(_.J().resolve(_.H$));Jr(p,x,this.isShortsPage)}else F&&(_.lA(this.hostElement,"yt-activate-miniplayer-from-watch-action"),Jr(p,x,this.isShortsPage))};
_.l.handlePlayerSpaceKey=function(p,x){var F=!!_.Pt()||this.isMiniplayerActive();F=_.S("disable_space_scroll_fix")||F;_.S("global_spacebar_pause")&&!this.isKeyBoardInUse()&&F&&(p.preventDefault(),this.passEventToPlayer(p,x))};
var RY=VYm;RY.prototype.onMiniplayerActiveChange=RY.prototype.onMiniplayerActiveChange;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],RY.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],RY.prototype,"ytdReduxBehavior",void 0);_.B([_.H({selector:_.sOE}),_.k("design:type",Boolean)],RY.prototype,"inlinePreviewIsActive",void 0);_.B([_.H({selector:_.cDk}),_.k("design:type",Boolean)],RY.prototype,"isShortsPage",void 0);
_.B([_.H({selector:_.bP}),_.k("design:type",Boolean)],RY.prototype,"miniplayerIsActive",void 0);_.B([_.W("miniplayerIsActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],RY.prototype,"onMiniplayerActiveChange",null);RY=_.B([_.L({disableElementRegistration:!0,is:"yt-hotkey-manager"})],RY);_.P(RY,"yt-hotkey-manager",void 0,{mode:_.UQ("kevlar_poly_si_batch_j081")?1:2});var W8D=function(){var p=_.m.apply(this,arguments)||this;p.loopStateEntityKey_=null;p.playlistLoopStateEntity_=null;p.isShuffleNextPlaylist=!1;p.JSC$17583_PLAYER_EVENTS_=new Map;p.playerListenersSetup_=!1;p.videoSkipJob_=0;p.canAutoAdvance_=!1;p.playerManager_=null;p.TEST_ONLY={};return p};
_.E(W8D,_.m);_.l=W8D.prototype;_.l.ready=function(){_.J().addProvider({provide:_.Yx,useValue:this.hostElement})};
_.l.created=function(){this.JSC$17583_PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.JSC$17583_PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.JSC$17583_PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.JSC$17583_PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.JSC$17583_PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.JSC$17583_PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.l.attached=function(){document.addEventListener("yt-navigate-start",_.p5(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.p5(this,this.onYtNavigateFinish_))};
_.l.detached=function(){document.removeEventListener("yt-navigate-start",_.p5(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.p5(this,this.onYtNavigateFinish_))};
_.l.updatePlaylistEventListeners=function(p,x){x&&!this.playerListenersSetup_?(this.playerManager_=p,this.registerPlaylistEventListeners_(p)):!x&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(p))};
_.l.setPlayer=function(p){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=p};
_.l.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.l.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.l.registerPlaylistEventListeners_=function(p){var x=this;p.getPlayerPromise().then(function(F){x.playerListenersSetup_||(x.ytPlayerListenerBehavior.listenToPlayerEvents(F,x.JSC$17583_PLAYER_EVENTS_),x.playerListenersSetup_=!0)})};
_.l.removePlaylistEventListeners_=function(p){var x=this;p.getPlayerPromise().then(function(F){x.playerListenersSetup_&&(x.ytPlayerListenerBehavior.unlistenFromPlayerEvents(F,x.JSC$17583_PLAYER_EVENTS_),x.playerListenersSetup_=!1)})};
_.l.setPlaylistComponent=function(p){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.p5(this,this.onPlaylistYtNavigate_)),p&&(p.data&&this.playlistComponent.data&&p.data.playlistId==this.playlistComponent.data.playlistId?(p.loopOn=this.playlistComponent.loopOn,p.shuffleOn=this.playlistComponent.shuffleOn):(p.loopOn=!1,p.shuffleOn=!1),this.isShuffleNextPlaylist&&(p.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=p;this.playlistComponent.addEventListener("yt-navigate",
_.p5(this,this.onPlaylistYtNavigate_))};
_.l.setAutoplayRenderer=function(p){this.autoplayData=p};
_.l.setPlaylistData=function(p){this.currentPlaylistData_=p;_.hG(this.hostElement,"yt-playlist-data-updated");_.Q5.isEmpty(p)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(p)};
_.l.setPlayerPlaybackControlData=function(p){this.playerManager_&&this.playerManager_.updatePlayerComponents(p.playlistPanelRenderer)};
_.l.getPlaylistData=function(){return this.currentPlaylistData_};
_.l.getTempData_=function(p,x){if(this.playlistComponent==null)return null;p={};this.playlistComponent.shuffleOn&&(p.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(p.loop_on=this.playlistComponent.loopOn);x&&(p.autonav="1",_.J().resolve(_.CQ),x=_.U0(),x>0&&(p.lact=x),this.playerManager_&&(x=this.playerManager_.getPlayer())&&x.shouldSendVisibilityState()&&(x=x.getVisibilityState(),x!=0&&(p.vis=x)));_.S("enable_unknown_lact_fix_on_html5")&&(_.J().resolve(_.CQ),p.lact=_.U0());
return p};
_.l.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.l.setLoopStateEntityKey_=function(p){var x;this.loopStateEntityKey_=((x=this.getPlaylistLoopData_(p))==null?void 0:x.playlistLoopStateEntityKey)||null};
_.l.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.l.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.l.skipVideo=function(){var p=this,x=_.S("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||x)x=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.tR(_.E0,function(){p.onPlaylistNext();p.videoSkipJob_=0},x)};
_.l.cancelVideoSkip=function(){this.videoSkipJob_&&(_.E0.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.l.isInBackground_=function(){var p=window.document.visibilityState;return!(!p||p=="visible")};
_.l.onPlaylistIndex_=function(p){this.playlistComponent&&(p=this.playlistComponent.data.contents[p].playlistPanelVideoRenderer.navigationEndpoint,_.hG(this.hostElement,"yt-navigate",{endpoint:p,tempData:this.getTempData_(p)}))};
_.l.onPlayerStateChange_=function(p){if(p=p==0&&this.playlistComponent&&this.canAutoAdvance_)p=_.Bf.getInstance(),p=!(p.autonavState_===3?p.autonavPauseReason_&&p.autonavPauseReason_.inputBoxFocus===!0:p.autonavState_===1&&p.disabledAutonavPauseReason_&&p.disabledAutonavPauseReason_.inputBoxFocus===!0);p&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.l.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.l.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.l.navigateToAutoplayWatchEndpoint_=function(p,x,F){var N=this.playlistComponent.data.currentIndex,h=this.getNumPlayableVideos_();p=="NORMAL"&&x=="autoplayVideo"&&N+1>=h&&F||!(p=this.getVideoEndpoint_(p,x))||(F=this.getTempData_(p,F),_.hG(this.hostElement,"yt-navigate",{endpoint:p,tempData:F}))};
_.l.getNumPlayableVideos_=function(){for(var p=0,x=_.a(this.playlistComponent.data.contents||[]),F=x.next();!F.done;F=x.next())F.value.playlistPanelVideoRenderer&&(p+=1);return p};
_.l.getVideoEndpoint_=function(p,x){if(this.autoplayData&&this.autoplayData.sets)for(var F=0,N=this.autoplayData.sets.length;F<N;F++){var h=this.autoplayData.sets[F];if(h.mode==p){if(h[x])return h[x];break}}else p=new _.qE("AutoplayData is undefined in playlist manager","Mode: "+p+" endpoint: "+x),_.no(p)};
_.l.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.l.onPlaylistYtNavigate_=function(p){if(p.detail.endpoint){p.stopPropagation();var x=p.detail;x.tempData=this.getTempData_(p.detail.endpoint);_.hG(this.hostElement,"yt-navigate",x)}};
_.l.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.l.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.l.playlistLoopStateEntityChanged_=function(p){var x=this,F,N,h;return _.D(function(c){if(c.nextAddress==1){if(!p)return c.return();F=p.state==="PLAYLIST_LOOP_STATE_ONE";return x.playerManager_?_.q(c,x.playerManager_.getPlayerPromise(),3):c.jumpTo(2)}c.nextAddress!=2&&(N=c.yieldResult,N.setLoopVideo(F));h=p.state==="PLAYLIST_LOOP_STATE_ALL";x.playlistComponent&&(x.playlistComponent.loopOn=h);_.JB(c)})};
_.l.getPlaylistLoopData_=function(p){var x,F;if(p=p==null?void 0:(x=p.playlistButtons)==null?void 0:(F=x.menuRenderer)==null?void 0:F.topLevelButtons)for(x=_.a(p),F=x.next();!F.done;F=x.next())if(F=F.value,F.playlistLoopButtonRenderer)return F.playlistLoopButtonRenderer};
_.l.getLoopStateCommand_=function(p){var x=this.getPlaylistData(),F;x=((F=this.getPlaylistLoopData_(x))==null?void 0:F.states)||[];var N;p=(N=_.r(x[p?1:2],_.WND))==null?void 0:N.button;var h;return(h=_.r(p,_.AS))==null?void 0:h.command};
_.l.onPlayerLoopChange_=function(p){this.playlistLoopStateEntity_&&(p?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(p=this.getLoopStateCommand_(p))&&this.ytComponentBehavior.resolveCommand(p)};
_.l.onSleepTimerSettingsChanged_=function(p){this.canAutoAdvance_=p!=="End of video"};
var k7=W8D;k7.prototype.onPlaylistLoopStateEntityChanged=k7.prototype.onPlaylistLoopStateEntityChanged;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],k7.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.oz.YtPlayerListenerBehavior),_.k("design:type",_.O7)],k7.prototype,"ytPlayerListenerBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],k7.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],k7.prototype,"loopStateEntityKey_",void 0);
_.B([_.H({selectorArgs:["loopStateEntityKey_"],selector:_.zwE}),_.k("design:type",Object)],k7.prototype,"playlistLoopStateEntity_",void 0);_.B([_.W("playlistLoopStateEntity_"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],k7.prototype,"onPlaylistLoopStateEntityChanged",null);k7=_.B([_.L({disableElementRegistration:!0,is:"yt-playlist-manager"})],k7);_.P(k7,"yt-playlist-manager",void 0,{mode:_.UQ("kevlar_poly_si_batch_j081")?1:2});var HBk,m9m=function(){if(HBk!==void 0)return HBk;var p=document.createElement("template");_.g(p,"\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");p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return HBk=p};var o1a=function(){var p=_.m.apply(this,arguments)||this;p.lastCallback=null;p.getAccountLinkPromises={};p.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);p.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return p};
_.E(o1a,_.m);_.l=o1a.prototype;_.l.getLocation=function(){return window.location.href};
_.l.getCompletionUrl=function(){return _.i0(this.getLocation())};
_.l.containsRedirectState=function(p){return(p=_.sg(_.lMp(p)))?(new URLSearchParams(p)).get("redirect_state")!==null:!1};
_.l.createGalConfig=function(p,x){var F=new Ana;p=F=x?this.getPopupOrRedirectSetting(F,_.sd("LINK_API_KEY"),_.sd("LINK_API_KEY_REDIRECT"),p):u58(F,_.sd("LINK_API_KEY"));p.authUser=_.sd("SESSION_INDEX")||0;p.supportedFlows=new Set([4]);return p.build()};
_.l.getPopupOrRedirectSetting=function(p,x,F,N){this.isGalInteractionPopupMode(N)?(p.interactionMode=0,p=u58(p,x)):(p.interactionMode=1,x=this.getCompletionUrl(),p.completionUrl=x,p=u58(p,F));return p};
_.l.isGalInteractionPopupMode=function(p){if(this.redirectModeProviderAllowlist.has(p))switch(p){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.S("main_web_redirect_integration_riot");default:return!1}return!0};
_.l.getStatusEntityKeyForProviderId=function(p){return _.au(p+":all","accountLinkStatusEntity")};
_.l.findNestedPropValue=function(p,x){var F=!1,N=null;JSON.stringify(p,function(h,c){F||h!==x||(F=!0,N=c);return F?null:c});
return N};
_.l.findAccountLinkButtonViewModel=function(p,x){var F=null,N=!1;JSON.stringify(p,function(h,c){N||c.accountLinkStatusEntityKey!==x||c.accountLinkStatusSecondaryEntityKey||(N=!0,F=c);return N?null:c});
return F};
_.l.executeLinkingSuccessOrFailureCommands=function(p,x,F){var N=null,h;(x==null?0:(h=x.url)==null?0:h.includes("account_sharing"))?N=x==null?void 0:x.response:N=x==null?void 0:x.response;(x=this.findAccountLinkButtonViewModel(N,p))?(p=F?this.findNestedPropValue(x,"onSuccessCommand"):this.findNestedPropValue(x,"onFailureCommand"))?_.tG([p],this.hostElement):_.uO(Error("cl")):_.uO(Error("dl`"+p))};
_.l.handleInitializeRequest=function(p,x){var F=this,N=DDH(this.createGalConfig(p,!0));this.containsRedirectState(this.getLocation())?iV_(p,N.config,N.galService).then(function(h){var c=F.getStatusEntityKeyForProviderId(p);if(h.statusCode===1)x&&F.executeLinkingSuccessOrFailureCommands(c,x,!0),h=F.getLocation().indexOf("#"),h!==-1&&window.history.pushState(null,"",F.getLocation().substring(0,h));else return x&&F.executeLinkingSuccessOrFailureCommands(c,x,!1),Promise.reject(Error(h.statusMessage))}).catch(function(h){_.no(h);
_.E$("gamingAccountLinkStatusChanged",{serviceId:p,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(h)}):this.getAccountLinkPromises[p]=N.startLinkingSession({serviceId:p})};
_.l.handleAccountLinkCommand=function(p){_.r(p,wI8)&&this.handleLinkRequest(_.r(p,wI8))};
_.l.handleLinkRequest=function(p){var x=this,F=p.thirdPartyId;if(F)if(this.isGalInteractionPopupMode(F)){var N=function(){x.closeAndFire("ytd-gaming-account-link-setting-renderer",p.onFailureCommand)},h=function(){x.closeAndFire("ytd-gaming-account-link-setting-renderer",p.onSuccessCommand)};
this.lastCallback=h;this.getAccountLinkPromises[F].then(function(c){feX(c).then(function(M){M.statusCode===1?h():N()})}).catch(function(){N()})}else this.getAccountLinkPromises[F].then(function(c){feX(c).then(function(M){if(M.statusCode!==1)return Promise.reject(Error(M.statusMessage))})}).catch(function(c){_.no(c);
_.E$("gamingAccountLinkStatusChanged",{serviceId:F,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(c)})};
_.l.closeAndFire=function(p,x){_.lA(this.hostElement,"yt-close-popup-action",[p]);x&&_.tG([x],this.hostElement)};
_.l.handleAccountUnlinkCommand=function(p){_.r(p,GpX)&&this.handleUnlinkRequest(_.r(p,GpX))};
_.l.handleUnlinkRequest=function(p){var x=this,F=p.thirdPartyId;if(F){var N=function(){x.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",p.onFailureCommand)},h=function(){x.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",p.onSuccessCommand)};
this.lastCallback=h;var c=DDH(this.createGalConfig(F,!1));this.unlinkUserGal(c,F).then(function(M){M.statusCode===1?h():N()}).catch(function(){N()})}};
_.l.unlinkUserGal=function(p,x){return p.deleteLink(x)};
_.l.handleLogAccountLinkingEventCommand=function(p){_.S("enable_gel_log_commands")&&_.r(p,Vv8)&&(p=_.r(p,Vv8).event)&&_.E$("gamingAccountLinkStatusChanged",p)};
_.R8.Object.defineProperties(o1a,{template:{configurable:!0,enumerable:!0,get:function(){return m9m()}}});
var Un=o1a;_.B([_.u(_.FU.YtOpenPopupBehavior),_.k("design:type",Object)],Un.prototype,"ytOpenPopupBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Un.prototype,"ytActionHandlerBehavior",void 0);Un=_.B([_.L({disableElementRegistration:!0,is:"ytd-third-party-manager"})],Un);_.P(Un,"ytd-third-party-manager",function(){return m9m()},{mode:_.UQ("kevlar_poly_si_batch_j081")?1:2});var OB8,j1e=function(){return OB8!==void 0?OB8:OB8=document.createElement("template")};
document.head.appendChild(j1e().content);var L8_,Poc=function(){if(L8_!==void 0)return L8_;var p=document.createElement("template");_.g(p,"\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");p.content.insertBefore(j1e().content.cloneNode(!0),p.content.firstChild);p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return L8_=p};var Tyk=_.B$(["\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      "]),Bye=function(){var p=_.m.apply(this,arguments)||this;p.currentPage=void 0;p.renderLoadingStateJobId=0;p.updatePageDataJobId=0;p.pageDisposeJobsets=new WeakMap;p.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-get-page-offset":"getPageOffset",
"yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose","yt-stop-old-player":"onYtStopOldPlayer"};p.applyZoomTransition=_.iO("web_page_transition_type")==="zoom";p.applySlideTransition=_.iO("web_page_transition_type")==="slide";p.TEST_ONLY=void 0;return p};
_.E(Bye,_.m);_.l=Bye.prototype;_.l.ready=function(){var p=_.J();p.addProvider({provide:_.j3,useValue:this});p.addProvider({provide:_.UMk,useValue:this})};
_.l.created=function(){this.pagePool=new D9k;this.contextSwitcher=new rLk};
_.l.attached=function(){_.hG(this.hostElement,"attached");var p=_.J().resolve(_.Bw(_.CR));p&&(this.contextSwitcher.JSC$17404_networkService_=p);this.viewTransitionManager=_.J().resolve(_.Bw(_.kI8));this.setupPageTransitionAnimation()};
_.l.getPageOffset=function(p){return p.getScrollTop()};
_.l.setPageOffset=function(p,x){try{p.setScrollTop(x)}catch(F){}};
_.l.setPageOffsetForNavigation=function(p,x){_.hG(this.hostElement,"yt-navigate-set-page-offset",{page:p,offset:x===void 0?0:x})};
_.l.pauseActiveContext=function(){var p=this.contextSwitcher;p.activeContext_&&p.activeContext_.pause()};
_.l.getModuleNameForType=function(p){return p==="watch"?_.S("kevlar_watch_fixie")?"watchFixie":_.S("kevlar_watch_grid")?"watchGrid":"watchFlexy":p==="shorts"||p==="search"?p:"browse"};
_.l.attachPage=function(p){var x,F=!_.S("pc_is_attached_ks")&&(p==null?void 0:(x=p.polymerController)==null?void 0:x.isAttached);if(!p.isAttached&&!F)try{_.n(this.hostElement).appendChild(p)}catch(h){var N;_.no(new _.qE("Error attaching page element for component",{origin:(N=this.currentPage)==null?void 0:N.is,component:p.is}))}};
_.l.setActivePage=function(p){var x=this,F=!1,N=function(){var h=x.isOnWatch(),c=x.currentPage;if(p)if(p!==x.currentPage){c&&(c.hidden=!0,c.active=!1,c.removeAttribute("role"));x.currentPage=p;var M,f=fL((M=x.data)==null?void 0:M.endpoint);c&&_.hG(x.hostElement,"yt-page-type-changed",{oldPageType:c.is,newPageType:p.is,newPageSubtype:f});_.u8().dispatch(_.F4({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:p.is}));_.u8().dispatch(_.F4({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:f||""}));p.hidden=
!1;x.attachPage(p);p.active=!0;p.setAttribute("role","main");c&&x.setPageOffsetForNavigation(p,0);_.S("kevlar_remove_page_dom_on_switch")&&!h&&c&&_.n(x.hostElement).removeChild(c)}else F=!0;else h=new _.qE("Unable to set active page",c?c.is:"unknown origin",(f=x.data)==null?void 0:f.endpoint),_.zj(h)};
this.viewTransitionManager?AwH(this.viewTransitionManager,N,this.viewTransitionConfigForSetActivePage(this.currentPage,p)):N();return F};
_.l.viewTransitionConfigForSetActivePage=function(p,x){return _.S("web_thumbnail_to_watch_transition")&&(p==null?void 0:p.is)==="ytd-browse"&&this.isWatchPage(x)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(p==null?void 0:p.is)==="ytd-browse"&&(x==null?void 0:x.is)==="ytd-browse"&&p!==x?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.l.updatePageData=function(p){var x=this,F=this.data;this.updatePageDataJobId&&_.E0.cancelJob(this.updatePageDataJobId);this.data=p;return new _.cZ(function(N){var h=function(){p.filler?x.performDataUpdate(p,F):Usm(function(){x.performDataUpdate(p,F)});
var K=_.GN();_.VG(K,"cr")||K.processSignal("cr");N()},c=function(){p&&p.page==="watch"?x.updatePageDataJobId=_.tR(_.E0,h):h()};
if(_.S("kevlar_enable_mss_page_modules_client")&&p){var M=_.J().resolve(_.oi),f=x.getModuleNameForType(p.page);(M=ywm(M,[f]))?M.then(c):c()}else c()})};
_.l.isDownloadsPage=function(p){var x,F;return(p==null?void 0:(x=p.endpoint)==null?void 0:(F=x.browseEndpoint)==null?void 0:F.browseId)==="FEdownloads"};
_.l.setPlayerSyncInterval=function(p){var x;return _.D(function(F){if(F.nextAddress==1)return _.q(F,_.J().resolve(_.Ui),2);x=F.yieldResult;x.setUpPositionSyncInterval(p);_.JB(F)})};
_.l.performDataUpdate=function(p,x){_.S("kevlar_early_popup_close")||_.lA(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var F=!p.filler;F&&(_.wH("lps"),_.S("config_age_report_killswitch")||gpk());var N=l_(p),h,c=!1;if(_.S("kevlar_remove_page_dom_on_switch")){var M=x&&l_(x);N===M&&(h=this.getCurrentPage())}h||(h=m6(this.pagePool,N));F&&$st(this.pagePool.elementPoolPopulator,N);F&&!this.renderLoadingStateJobId&&(c=this.setActivePage(h));if(h){M=N==="watch";var f=
N==="shorts";_.S("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(h);if(M||f)h.playerData=p.playerResponse;if(f){p.reelWatchSequenceResponse?h.reelWatchSequenceResponse=p.reelWatchSequenceResponse:p.cachedReelWatchSequenceResponse&&(h.reelWatchSequenceResponse=p.cachedReelWatchSequenceResponse);h.currentEndpoint=p.endpoint;var K;h.isPreviousPageShorts=!!(x==null?0:(K=x.endpoint)==null?0:K.reelWatchEndpoint);p.cachedReelWatchSequenceResponse=p.reelWatchSequenceResponse||
p.cachedReelWatchSequenceResponse||(x==null?void 0:x.cachedReelWatchSequenceResponse);h.cachedReelWatchSequenceResponse=p.cachedReelWatchSequenceResponse}K=this.isDownloadsPage(p);var t=this.isDownloadsPage(x);K&&!t?this.setPlayerSyncInterval(6E5):!K&&t&&this.setPlayerSyncInterval();_.S("block_all_player_prefetch_requests")||this.preparePrefetchRequest(p,h,F,M,f);uQc(_.J().resolve(_.H$),x,p);_.D_v(_.J().resolve(_.CQ));_.S("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(h);
F?(F=typeof h.loadPage,F==="function"?(h.pageContext=E2H(this.contextSwitcher,h,h.data!==p.response),x=function(){h.loadPage(p.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&h.is==="ytd-browse"&&c?this.applySlideTransition?AwH(this.viewTransitionManager,x,{transitionName:"slide"}):AwH(this.viewTransitionManager,x,{transitionName:"zoom"}):x()):_.s$(new _.qE("b/38014653 ",[N,
h.is,h.nodeName,F,h.isAttached,x&&l_(x),this.hostElement.children.length])),_.wH("pdl")):(h.hidden=!0,p.response.filler=!0,h.data=p.response,this.attachPage(h));_.hG(this.hostElement,"yt-page-data-updated",{pageType:N})}_.vZ(_.E0,function(){_.S("logging_avoid_blocking_during_navigation")&&_.PTd().transition("none");var d=Wsm(),v=h;if(p){var C=pW8(p),X=xL8(p),Q;a:{if(p.playerResponse){var b=p.playerResponse,A;if((Q=b.auxiliaryUi)==null?0:(A=Q.messageRenderers)==null?0:A.upsellDialogRenderer){Q=b.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(p.response&&(Q=p.response,(b=Q.overlay)==null?0:b.upsellDialogRenderer)){Q=Q.overlay.upsellDialogRenderer;break a}Q=void 0}var Y;var O;A=(Y=p.playerResponse)==null?void 0:(O=Y.auxiliaryUi)==null?void 0:O.messageRenderers;Y=(A==null?void 0:A.enforcementMessageViewModel)||(A==null?void 0:A.bkaEnforcementMessageViewModel);Y=(Y==null?void 0:Y.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?Y:void 0;var Fw;a:{if(p.response&&(O=p.response,(Fw=O.overlay)==null?0:Fw.commandWrapperPromoRenderer)){Fw=
O.overlay.commandWrapperPromoRenderer;break a}Fw=void 0}VRa(d,C,X,Q,Y,Fw,v)}})};
_.l.preparePrefetchRequest=function(p,x,F,N,h){var c,M,f,K,t,d,v,C,X,Q,b,A,Y,O,Fw;return _.D(function(R){if(R.nextAddress==1)return!F||!N&&!h||_.S("kevlar_disable_background_prefetch")&&_.bO(_.VX$)()===0?R.return():(c=_.LQ(x))?_.q(R,c.getPlayerPromise(),2):R.return();M=R.yieldResult;f=_.J().resolve(_.Bw(_.CR));if(!f)return R.return();if(h)return K=_.la(_.Nq),ldX(K,(t=p.endpoint)==null?void 0:t.reelWatchEndpoint,x.reelWatchSequenceResponse,M,f),R.return();C=(d=p.response)==null?void 0:(v=d.responseContext)==
null?void 0:v.webResponseContextExtensionData;if(!C)return R.return();Y=(X=p.response)==null?void 0:(Q=X.contents)==null?void 0:(b=Q.twoColumnWatchNextResults)==null?void 0:(A=b.autoplay)==null?void 0:A.autoplay;O=_.J().resolve(_.Yx);Fw=_.la(_.Nq);cwH(Fw,C,M,f,O,Y);_.JB(R)})};
_.l.movePlayerToWatch=function(p){var x=this,F,N;return _.D(function(h){F=m6(x.pagePool,"watch");N=F.getPlayerContainer();p.appendTo(N);_.JB(h)})};
_.l.movePlayerToShorts=function(p){var x=this,F,N,h;return _.D(function(c){F=m6(x.pagePool,"shorts");N=F.getPlayerContainer();(h=p)==null||h.appendTo(N,void 0,!0);_.JB(c)})};
_.l.getPlayerFromWatch=function(){var p=m6(this.pagePool,"watch");return _.LQ(p)};
_.l.getPlayerFromShorts=function(){var p=m6(this.pagePool,"shorts");return _.LQ(p)};
_.l.startLoadingWatch=function(){var p=m6(this.pagePool,"watch");this.renderLoadingStateJobId?(_.E0.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(p)};
_.l.startLoadingShorts=function(){var p=m6(this.pagePool,"shorts");this.setActivePage(p)};
_.l.getCurrentPage=function(){return this.currentPage};
_.l.getDestinationPageType=function(){return this.destinationPageType};
_.l.getCurrentData=function(){return this.data};
_.l.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.l.isOnShorts=function(){var p;return((p=this.currentPage)==null?void 0:p.is)==="ytd-shorts"};
_.l.isWatchPage=function(p){return!!p&&(p.is==="ytd-watch-flexy"||p.is==="ytd-watch-fixie"||p.is==="ytd-watch-grid")};
_.l.preparePage=function(p,x){var F=this,N=function(){var M=F.pagePool.preparePage(p,F.currentPage,x);M&&F.attachPage(M)},h=function(M){_.yj(M,x);
_.no(M)};
if(_.S("kevlar_enable_mss_page_modules_client")){var c=this.getModuleNameForType(p);if(c=ywm(_.J().resolve(_.oi),[c])){c.then(N.bind(this)).catch(h.bind(this));return}}try{N()}catch(M){h(M)}};
_.l.lazyPrepareCriticalPages=function(p,x){p=fL(x)||p;_.S("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(p).then(this.maybePrepareWatchPage.bind(this,p)):this.maybePrepareWatchPage(p)};
_.l.maybePrepareWatchPage=function(p){p!=="watch"&&_.vZ(_.E0,this.preparePage.bind(this,"watch"))};
_.l.downloadPageModules=function(p){p=this.getModuleNameForType(p);var x=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);x.delete(p);var F=_.J().resolve(_.oi);F.JSC$16146_loadModules(p);return F.JSC$16146_loadModules.apply(F,_.se(x))};
_.l.renderPageLoadingState=function(p,x){this.preparePage(p,x);var F=m6(this.pagePool,p);F.loadingData&&(F.loadingData.endpoint=x);F.loading=!0;this.setActivePage(F);p==="watch"&&_.hG(this.hostElement,"yt-guide-close")};
_.l.prepareForNavigation=function(p,x){var F=this;if(this.currentPage&&this.data){var N=fL(x)||p;this.destinationPageType=N;l_(this.data)==N&&_.hG(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(p==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.E0.cancelJob(this.renderLoadingStateJobId);_.J().resolve(_.H$).deactivate(x);var h=this.data;this.renderLoadingStateJobId=_.rR(_.E0,function(){if(F.data!=h){var c=m6(F.pagePool,p);F.setActivePage(c)}else F.renderPageLoadingState(p,
x);F.renderLoadingStateJobId=0},150)}};
_.l.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var p=new _.jj(1);this.currentPage.pageDisposeJobs.forEach(function(x){_.LJ(p,x)});
this.pageDisposeJobsets.set(this.currentPage,p)}};
_.l.flushPageDisposeJobset=function(p){var x=this.pageDisposeJobsets.get(p);x&&(x.flushJobs(),this.pageDisposeJobsets.delete(p))};
_.l.onYtStopOldPlayer=function(p,x){x=x===void 0?!1:x;var F,N=_.ID("kevlar_new_stop_old_player_logic_pages");if(_.S("kevlar_check_current_page_on_stop_old_player")&&(N.length===0||this.currentPage&&N.includes(this.currentPage.is)))if(this.data&&(F=l_(this.data)),l_(p)===F&&this.currentPage&&l_(this.currentPage.data)!==F)var h=_.LQ(this.currentPage);else F=l_(this.data),h=m6(this.pagePool,F),h=_.LQ(h);else this.data&&(F=l_(this.data),h=m6(this.pagePool,F),h=_.LQ(h));if(h)if(p=l_(p),N=m6(this.pagePool,
p),N=_.LQ(N),h==N)x&&!_.S("kevlar_disable_preemptive_player_reset")&&h.resetForNewPlayback();else if(x=F==="watch"&&p!=="watch",!x||p==="shorts"||_.c7l()&&!CzH(this.data)&&p!=="yts-products"&&p!="mini_app"&&p!="playables")F=_.J().resolve(_.H$),x&&F.isMiniplayerActive()&&F.pipController.getWindow()||h.stop()};
_.l.setupPageTransitionAnimation=function(){var p=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){dL(this.viewTransitionManager,"slide",{beforeTransition:function(){p.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){p.hostElement.style.viewTransitionName=""}});
dL(this.viewTransitionManager,"zoom",{beforeTransition:function(){p.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){p.hostElement.style.viewTransitionName=""}});
var x=_.Ud("web_page_transition_exit_ms"),F=_.Ud("web_page_transition_wait_ms"),N=_.Ud("web_page_transition_enter_ms");if(!isNaN(x)||!isNaN(F)||!isNaN(N))if(x=s7D(Tyk,x,F,N))F=document.createElement("style"),F.textContent=_.i6w(x),document.head.appendChild(F)}};
_.R8.Object.defineProperties(Bye,{template:{configurable:!0,enumerable:!0,get:function(){return Poc()}}});
var RHe=Bye;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],RHe.prototype,"ytActionHandlerBehavior",void 0);RHe=_.B([_.L({disableElementRegistration:!0,is:"ytd-page-manager"})],RHe);_.P(RHe,"ytd-page-manager",function(){return Poc()},{mode:_.UQ("kevlar_poly_si_batch_j081")?1:2});var ie=function(p,x,F){F=F===void 0?!1:F;_.Jm.call(this);this.draggableElement=p;this.callbacks=x;this.allowClicks=F;this.dragOccurred=!1;this.internalDragger=new _.G3(this.draggableElement);this.dragDelay=new _.iL(this.delayedDrag.bind(this));kLt(this);this.allowClicks&&(_.TwI(this.internalDragger,5),p.addEventListener("click",_.p5(this,this.validateClick),{capture:!0}))};
_.E(ie,_.Jm);var kLt=function(p){_.qd(p.internalDragger,"earlycancel",function(){p.allowClicks&&(p.dragOccurred=!1)});
_.qd(p.internalDragger,"start",function(x){var F,N;(N=(F=p.callbacks).onStartDrag)==null||N.call(F,x);!x.defaultPrevented&&p.allowClicks&&(p.dragOccurred=!0)});
_.qd(p.internalDragger,"beforedrag",function(x){x.preventDefault();p.lastOffset=new _.sT(x.clientX-p.internalDragger.startX,x.clientY-p.internalDragger.startY);p.dragDelay.start()});
_.qd(p.internalDragger,"end",function(){p.dragDelay.stop();var x,F;(F=(x=p.callbacks).onEndDrag)==null||F.call(x);p.lastOffset=void 0})};
ie.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
ie.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.p5(this,this.validateClick),{capture:!0})};
ie.prototype.validateClick=function(p){this.dragOccurred&&(this.dragOccurred=!1,p.stopPropagation(),p.preventDefault())};var IY=function(p,x){_.Jm.call(this);this.JSC$17605_resizeContainer=p;this.callbacks=x;this.aspectRatio=16/9;this.JSC$17605_resizers=[];p=_.a(this.JSC$17605_resizeContainer.children);for(x=p.next();!x.done;x=p.next())U9m(this,x.value)};
_.E(IY,_.Jm);IY.prototype.disposeInternal=function(){for(var p=_.a(this.JSC$17605_resizers),x=p.next();!x.done;x=p.next())x.value.dispose();p=_.a(this.JSC$17605_resizeContainer.children);for(x=p.next();!x.done;x=p.next())x.value.setAttribute("disabled","");this.JSC$17605_resizers.length=0};
IY.prototype.setSize=function(p){this.currentMiniplayerSize=p};
IY.prototype.setAspectRatio=function(p){this.aspectRatio=p};
IY.prototype.update=function(p,x){for(var F=_.a(this.JSC$17605_resizeContainer.children),N=F.next();!N.done;N=F.next()){N=N.value;var h=N.getAttribute("alignment");_.Is(N,"disabled",h===p||h===x)}};
var U9m=function(p,x){var F=x.getAttribute("alignment"),N=new ie(x,{onStartDrag:function(h){if(x.hasAttribute("disabled"))h.preventDefault();else{p.dragStartSize=p.currentMiniplayerSize;var c,M;(M=(c=p.callbacks).onStartResize)==null||M.call(c)}},
onDrag:function(h){if(p.dragStartSize){F!=="north"&&F!=="west"||h.scale(-1);var c=F==="north"||F==="south";h=c?h.y:h.x;c&&p.aspectRatio>=1?h*=p.aspectRatio:!c&&p.aspectRatio<1&&(h/=p.aspectRatio);p.callbacks.onResize(p.dragStartSize+h)}}});
p.JSC$17605_resizers.push(N)};var iBm,Ig8=function(){return iBm!==void 0?iBm:iBm=document.createElement("template")};
document.head.appendChild(Ig8().content);var $9a;var eHc=_.mO(function(p){var x=_.oc(),F=p.onDrag,N=p.onDragStart,h=p.onDragEnd,c=_.Vg(p,{allowClicks:!1,dragThreshold:5}),M=c.dragThreshold,f=c.allowClicks;p=c.children;c=c.className;var K=void 0,t=void 0,d=new _.sT(0,0),v=!1;_.J9(function(){K=new _.G3(x.value);t=new _.iL(X);C(K,t);if(f()){_.TwI(K,M());var b;(b=x.value)==null||b.addEventListener("click",Q,{capture:!0})}_.E_(function(){var A;(A=K)==null||A.dispose();if(f()){var Y;(Y=x.value)==null||Y.removeEventListener("click",Q,{capture:!0})}})});
var C=function(b,A){_.qd(b,"earlycancel",function(){f()&&(v=!1)});
_.qd(b,"start",function(Y){N==null||N(Y);Y.defaultPrevented||f()&&(v=!0)});
_.qd(b,"beforedrag",function(Y){K&&t&&(Y.preventDefault(),d=new _.sT(Y.clientX-K.startX,Y.clientY-K.startY),t.start())});
_.qd(b,"end",function(){A.stop();h==null||h();d=new _.sT(0,0)})},X=function(){d&&F(d)},Q=function(b){v&&(v=!1,b.stopPropagation(),b.preventDefault())};
return _.Z("yt-draggable",{el:x,class:_.$L("ytDraggableComponentHost",c)},p)},"Mf");var pdk=_.mO(function(p){var x=_.a(_.hu(0,void 0,"Pf10wb")),F=x.next().value,N=x.next().value;x=function(h){var c={},M={};return _.Z(eHc,{className:_.$L("ytdMiniplayerComponentResizer",(c.ytdMiniplayerComponentResizerDisabled=function(){return h===p.horizontalAlignment()||h===p.verticalAlignment()},c.ytdMiniplayerComponentResizerNorth=h==="north",c.ytdMiniplayerComponentResizerEast=h==="east",c.ytdMiniplayerComponentResizerSouth=h==="south",c.ytdMiniplayerComponentResizerWest=h==="west",c)),
onDragStart:function(){N(p.currentMiniplayerSize())},
onDrag:function(f){h!=="north"&&h!=="west"||f.scale(-1);var K;f=(K=h==="north"||h==="south")?f.y:f.x;var t=p.currentAspectRatio();K&&t>=1?f*=t:!K&&t<1&&(f/=t);K=f;p.onResize(F()+K)}},_.Z("div",{class:_.$L("ytdMiniplayerComponentResizerCorner",(M.ytdMiniplayerComponentResizerNorthCorner=h==="north",M.ytdMiniplayerComponentResizerEastCorner=h==="east",M.ytdMiniplayerComponentResizerSouthCorner=h==="south",M.ytdMiniplayerComponentResizerWestCorner=h==="west",M))}))};
return _.Z("div",{class:"ytdMiniplayerComponentResizers"},x("north"),x("east"),x("south"),x("west"))},"Nf");var xr8=16/9,Fq8=_.mO(function(){var p=_.oc(),x=_.a(_.hu(new _.q1(NaN,NaN),void 0,"yxHohf")),F=x.next().value,N=x.next().value;x=_.a(_.hu(!1,void 0,"ku1l7c"));var h=x.next().value,c=x.next().value;x=_.a(_.hu(!1,void 0,"pbOm3b"));var M=x.next().value,f=x.next().value;x=_.a(_.hu(!1,void 0,"LqfsYc"));var K=x.next().value,t=x.next().value;x=_.a(_.hu(!1,void 0,"wYZnZe"));var d=x.next().value,v=x.next().value;x=_.a(_.hu(!1,void 0,"KVndGb"));var C=x.next().value,X=x.next().value;x=_.a(_.hu(!1,void 0,"ofTiZe"));
var Q=x.next().value,b=x.next().value;x=_.a(_.hu(xr8,void 0,"bpheWd"));var A=x.next().value,Y=x.next().value,O=_.a(_.hu(!1,void 0,"MIV0Jb"));x=O.next().value;var Fw=O.next().value;O=_.a(_.hu(!1,void 0,"Y2idSc"));var R=O.next().value,ld=O.next().value;O=_.a(_.hu(void 0,void 0,"IuZWBb"));var pp=O.next().value,Kp=O.next().value;O=_.a(_.hu(_.sd("HTML_DIR")==="rtl"?"west":"east",void 0,"nLgCTd"));var sM=O.next().value,np=O.next().value;O=_.a(_.hu("south",void 0,"mV91if"));var Jz=O.next().value,Y$=O.next().value;
O=_.a(_.hu(400,void 0,"OwmImd"));var xB=O.next().value,qI=O.next().value,RJ=_.J().resolve(_.H$).miniplayerPropSignalMap[0],Ik=RJ.data,vb=RJ.externalPlaylistData;O=RJ.toastData;var CZ=RJ.playabilityStatus,sk=RJ.isDisabled,Ov=RJ.watchWhile;RJ=_.a(_.ct(RJ.isReadyToResume));var Xj=RJ.next().value,AC=RJ.next().value,Jo;_.J9(function(){N(_.tF());p.value.addEventListener("animationend",function(ep){ep.target===p.value&&(X(!1),b(!1))})});
_.mi("yt-window-resized",function(ep){ep&&N(ep)});
var Bz=function(){Jo&&Y(Jo.getVideoAspectRatio())},aJ=function(){if(Jo){var ep=Jo.getPlayerState()===1;
Xj()&&ep&&AC(!1)}};
_.mi("yt-activate-miniplayer",function(ep){var jp;return _.D(function(fZ){if(fZ.nextAddress==1)return h()?fZ.return():_.q(fZ,(jp=_.J().resolve(_.H$).getPlayerElement())==null?void 0:jp.getPlayerPromise(),2);Jo=fZ.yieldResult;if(!Jo)return fZ.return();!R()&&_.S("kevlar_watch_while_v2")&&(Y$(ep&&!_.S("kevlar_watch_while_bottom_align")?"north":"south"),np(_.sd("HTML_DIR")==="rtl"?"west":"east"));var Uv=Jo;Uv.addEventListener("onVideoDataChange",Bz);Uv.addEventListener("onStateChange",aJ);Y(Jo.getVideoAspectRatio());
c(!0);X(!0);_.JB(fZ)})});
_.mi("yt-deactivate-miniplayer",function(ep){return _.D(function(jp){c(!1);AC(!1);b(ep);X(!0);if(Jo){var fZ=Jo;fZ.removeEventListener("onVideoDataChange",Bz);fZ.removeEventListener("onStateChange",aJ)}_.JB(jp)})});
var he=function(){var ep=!!Ik(),jp=C(),fZ=Ov();return(fZ===void 0?0:fZ)&&_.S("kevlar_watch_while_modern")?!1:ep||jp},Bb=function(){var ep;
return!((ep=vb())==null||!ep.contents)},PH=function(){var ep=xB();
var jp=F();jp=Math.min(Math.min(jp.width,jp.height)-32,720);var fZ=A(),Uv=he(),FK=Bb()&&M(),uB=Math.min(ep,jp);ep=new _.q1(192,Uv?116:192);fZ=cka(new _.q1(FK?xr8:fZ,1),new _.q1(uB,Uv?uB-76:uB));ep.width<=fZ.width&&ep.height<=fZ.height||(l7D(fZ,ep),fZ.width=Math.min(fZ.width,jp),fZ.height=Math.min(fZ.height,jp));return new _.q1(fZ.width,_.YV(192,fZ.height+sEH(Uv,FK),720))},dl=function(){var ep=PH(),jp=he(),fZ=Bb()&&M();
return new _.q1(ep.width,ep.height-sEH(jp,fZ))},nZ=function(){var ep=function(jp){jp.target===p.value&&d()&&(v(!1),p.value.removeEventListener("transitionend",ep))};
p.value.addEventListener("transitionend",ep);v(!0);f(!M())};
RJ={};return _.Z("ytd-miniplayer",{el:p,class:_.$L("ytdMiniplayerComponentHost",(RJ.ytdMiniplayerComponentVisible=function(){return h()||C()},RJ.ytdMiniplayerComponentAnimatingSnap=K,RJ.ytdMiniplayerComponentAnimatingPlaylistExpand=d,RJ.ytdMiniplayerComponentAnimatingFade=C,RJ),function(){if(C()){var ep=Jz();
var jp=h(),fZ=Q();ep=jp?ep==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":fZ?ep==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":ep==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else ep="";return ep}),
style:_.a4({top:function(){return Jz()==="north"?"16px":""},
right:function(){return sM()==="east"?"16px":""},
bottom:function(){return Jz()==="south"?"16px":""},
left:function(){return sM()==="west"?"16px":""},
width:function(){return PH().width+"px"},
height:function(){return PH().height+"px"},
transform:function(){var ep=pp();return ep?"translate("+ep.x+"px, "+ep.y+"px)":""}})},_.Z("div",{class:"ytdMiniplayerComponentContent"},_.Z(eHc,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(ep){var jp=zit(sM(),Jz(),F(),PH(),pp()),fZ=dl();Math.abs(ep.clientY-(jp.y+fZ.height))>15?Fw(!0):ep.preventDefault()},
onDrag:function(ep){Kp(ep)},
onDragEnd:function(){var ep=XWa(zit(sM(),Jz(),F(),PH(),pp()),F(),PH()),jp=QEk(sM(),Jz(),F(),PH()),fZ=QEk(ep.horizontalAlignment,ep.verticalAlignment,F(),PH());fZ=new _.sT(fZ.x-jp.x,fZ.y-jp.y);var Uv;jp=jp.y+(((Uv=pp())==null?void 0:Uv.y)||0)+PH().height/2;var FK=function(){sM()===ep.horizontalAlignment&&Jz()===ep.verticalAlignment||ld(!0);np(ep.horizontalAlignment);Y$(ep.verticalAlignment);Kp(void 0)},uB=function(ot){ot.target===p.value&&K()&&(t(!1),FK(),p.value.removeEventListener("transitionend",
uB))};
Fw(!1);Jz()==="south"&&jp>F().height?(FK(),_.J().resolve(_.H$).close()):(p.value.addEventListener("transitionend",uB),t(!0),Kp(fZ))}},_.Z(_.D9,{cond:h,
then:function(){return _.Z(_.eZ8,{isDisabled:sk,playabilityStatus:CZ,size:dl})}}),_.Z(_.D9,{cond:he,
then:function(){return _.Z(_.I5_,{isReadyToResume:Xj,data:Ik,expanded:M,onExpandClick:nZ,playlistData:vb})}}),_.Z(_.D9,{cond:x,
then:function(){return _.Z("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.Z(_.D9,{cond:function(){return Bb()&&M()||d()},
then:function(){return _.Z(_.rBD,{className:"ytdMiniplayerComponentPlaylistPanel",data:vb,hideHeaderText:!0,withinMiniplayer:!0})}}),_.Z("div",{class:"ytdMiniplayerComponentToast"},_.Z(_.pua,{toastData:O}))),_.Z(pdk,{onResize:function(ep){qI(_.YV(192,ep,720))},
currentAspectRatio:A,currentMiniplayerSize:xB,horizontalAlignment:sM,verticalAlignment:Jz}))},"Of");_.S("ytd_miniplayer_to_wiz")&&_.o7(Fq8,"ytd-miniplayer",{});_.o7(_.pua,"ytd-miniplayer-toast",{props:{toastData:_.G2}});var Nim=16/9,hsk=new _.q1(400,400/Nim),$7=function(){var p=_.m.apply(this,arguments)||this;p.active=!1;p.hasNoData=!1;p.enabled=!1;p.expanded=!1;p.readyToResume=!1;p.isDisabled=!1;p.externalPlaylistData={};p.premiumBadges=[];p.watchWhile=!1;p.playerState=null;p.verticalAttachment="south";p.horizontalAttachment=_.sd("HTML_DIR")==="rtl"?"west":"east";p.isAnimatingFade=!1;p.isAnimatingSnap=!1;p.isAnimatingExpand=!1;p.isDragging=!1;p.playerHidden=!1;p.hasPlaylistData=!1;p.closed=!1;p.expandedClosed=!1;
p.isForReadyToResume=!1;p.watchResponse=null;p.player=null;p.playerVe=null;p.expandVe=null;p.closeVe=null;p.readyToResumeCloseVe=null;p.disabledInitialStateIsPlaying=!1;p.PLAYER_EVENTS=new Map;p.aspectRatio=Nim;p.currentMiniplayerSize=400;p.userSetSize=!1;p.userSetPosition=!1;p.userHasDragged=!1;p.maxMiniplayerSize=720;p.transform=new _.sT(0,0);p.windowDimensions=new _.q1(NaN,NaN);p.dimensions=hsk;p.screenLayer=3;p.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return p};
_.E($7,_.m);_.l=$7.prototype;_.l.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()};
_.l.ready=function(){this.setUpDragging();this.setUpResizing()};
_.l.attached=function(){this.onWindowResized(_.tF());this.hostElement.addEventListener("animationend",_.p5(this,this.resetFadingAnimation))};
_.l.detached=function(){this.hostElement.removeEventListener("animationend",_.p5(this,this.resetFadingAnimation))};
_.l.resetFadingAnimation=function(p){p.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.l.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.l.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.l.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var p=_.b0(this.screenLayer);this.readyToResumeCloseVe&&p&&_.P5(p,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.l.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var p=_.b0(0),x=_.yR(0);p&&x&&(_.jz(p,x,this.readyToResumeVe),_.P5(p,[this.readyToResumeVe]))}};
_.l.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var p=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=p===-1||p===1||p===3)&&this.player.pauseVideo()}};
_.l.activate=function(p,x){x=x===void 0?!1:x;var F=this,N;return _.D(function(h){if(h.nextAddress==1)return F.setInitialActivatePositioning(x),F.enabled=!0,F.active=!0,F.expanded=!1,F.closed=!1,F.expandedClosed=!1,F.watchWhileHidden||(F.isAnimatingFade=!0),_.J().resolve(_.Yx).setPlaylistComponent(F.JSC$17616_playlistPanel),p.appendTo(F.playerContainer),_.q(h,p.getPlayerPromise(),2);N=h.yieldResult;N.setSizeStyle(!1,!0);F.ytPlayerListenerBehavior.listenToPlayerEvents(N,F.PLAYER_EVENTS);F.player=N;
F.watchWhile&&_.S("kevlar_watch_while_minimum_size")&&F.setMiniplayerSize(192);F.setAspectRatio(F.player.getVideoAspectRatio());F.onIsDisabledChanged();_.JB(h)})};
_.l.setInitialActivatePositioning=function(p){if(!this.userSetPosition&&_.S("kevlar_watch_while_v2")){this.verticalAttachment=p&&!_.S("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.sd("HTML_DIR")==="rtl"?"west":"east";var x;(x=this.JSC$17616_resizers)==null||x.update(this.horizontalAttachment,this.verticalAttachment)}};
_.l.deactivate=function(p,x){var F=this;return _.D(function(N){if(!F.active)return N.return();p||(F.expanded?F.expandedClosed=!0:F.closed=!0);F.active=!1;F.isForReadyToResume=!1;x&&_.S("kevlar_watch_while_counterfactual")||(F.isAnimatingFade=!0);F.player&&F.ytPlayerListenerBehavior.unlistenFromPlayerEvents(F.player,F.PLAYER_EVENTS);F.player=null;_.JB(N)})};
_.l.onMetadataTap=function(p){this.expandVe&&(p===void 0||p)&&(p=_.b0(this.screenLayer))&&_.B5(p,this.expandVe);_.v4(_.J().resolve(_.H$))};
_.l.onDisabledTap=function(p){p.target===_.n(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.l.onPlaylistExpandTap=function(p){if(this.hasPlaylistData){p=_.m9(p)||[];p=_.a(p);for(var x=p.next();!x.done;x=p.next()){x=x.value;if(x===this.hostElement)break;if(x.classList&&x.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.l.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.p5(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.l.animatedResizePlaylist=function(p){p.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.p5(this,this.animatedResizePlaylist)))};
_.l.getExpandIcon=function(p){return p?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.l.onPlayerVideoDataChange=function(){var p,x=(p=this.player)==null?void 0:p.getVideoAspectRatio();x&&x!==this.aspectRatio&&this.setAspectRatio(x)};
_.l.setAspectRatio=function(p){if(this.active){this.aspectRatio=p;this.updateDimensionsAndResize();var x;(x=this.JSC$17616_resizers)==null||x.setAspectRatio(p)}};
_.l.updateDimensionsAndResize=function(){var p=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),x=this.expanded?Nim:this.aspectRatio,F=new _.q1(192,this.showInfoBar?116:192);p=cka(new _.q1(x,1),new _.q1(p,this.showInfoBar?p-76:p));F.width<=p.width&&F.height<=p.height||(l7D(p,F),p.width=Math.min(p.width,this.maxMiniplayerSize),p.height=Math.min(p.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&x<=1?Math.max(p.width,p.height)+76:Math.max(p.width,p.height)));this.dimensions=
new _.q1(p.width,this.clamp(p.height+this.getNonPlayerHeight()));this.resize()};
_.l.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var p=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=p.height+"px";var x;(x=this.player)==null||x.setInternalSize(p.width,p.height)};
_.l.getPlayerSize=function(p){var x=Math.max(0,p.height-this.getNonPlayerHeight());return new _.q1(p.width,x)};
_.l.getNonPlayerHeight=function(){var p=0;this.showInfoBar&&(p+=76);this.expanded&&(p+=285);return p};
_.l.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.J().resolve(_.H$).close()};
_.l.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.l.logClosingClick=function(){this.closeVe&&_.B5(_.b0(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.B5(_.b0(this.screenLayer),this.readyToResumeCloseVe)};
_.l.onPlayerExpandMiniplayer=function(){if(this.expandVe){var p=_.b0(this.screenLayer);p&&_.B5(p,this.expandVe)}};
_.l.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var p=this.playerState===1;this.continueWatching&&p&&(this.continueWatching=!1);this.premiumBadges.length&&p&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.l.getScreenLayer=function(){return this.screenLayer};
_.l.logMiniplayer=function(){var p=_.b0(this.screenLayer),x=_.yR(this.screenLayer);p&&x&&this.playerVe&&(_.jz(p,x,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.I5(p,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.P5(p,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.I5(p,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.l.computePlaylistData=function(p,x){return x};
_.l.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.l.computeExpandButtonHidden=function(p,x,F){return!p||!x||F};
_.l.computePlaylistIndexHidden=function(p,x){return!p||x};
_.l.computePlaylistPanelHidden=function(p,x){return!x&&!p};
_.l.computeExpandButtonLabel=function(p){return p?_.JG("MINIPLAYER_COLLAPSE_LABEL"):_.JG("MINIPLAYER_EXPAND_LABEL")};
_.l.computeDisabledStateCloseButtonLabel=function(){return _.JG("MINIPLAYER_CLOSE",void 0,"Close")};
_.l.onWindowResized=function(p){p&&(p=this.windowDimensions=p,this.maxMiniplayerSize=Math.min(Math.min(p.width,p.height)-32,720),this.updateDimensionsAndResize())};
_.l.setUpResizing=function(){var p=this;this.JSC$17616_resizers||(this.JSC$17616_resizers=new IY(this.JSC$17616_resizeContainer,{onStartResize:function(){p.handleResizeStart()},
onResize:function(x){p.handleResize(x)}}),this.JSC$17616_resizers.setSize(this.currentMiniplayerSize),this.JSC$17616_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.l.handleResizeStart=function(){var p=_.b0(this.screenLayer);this.userSetSize||(this.userSetSize=!0,p&&this.resizeVe&&_.P5(p,[this.resizeVe]));p&&this.resizeVe&&_.B5(p,this.resizeVe)};
_.l.handleResize=function(p){this.setMiniplayerSize(p);this.updateDimensionsAndResize()};
_.l.setUpDragging=function(){var p=this;this.JSC$17616_dragger||(this.JSC$17616_dragger=new ie(this.draggableContainer,{onStartDrag:function(x){!p.isSafeToDrag(x)||p.isAnimatingSnap?x.preventDefault():p.handleDragStart()},
onDrag:function(x){p.transform=x;p.setTransform(p.transform)},
onEndDrag:function(){p.handleDragEnd()}},!0))};
_.l.handleDragStart=function(){this.isDragging=!0;var p=_.b0(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,p&&this.repositionVe&&_.P5(p,[this.repositionVe]));p&&this.repositionVe&&_.B5(p,this.repositionVe)};
_.l.handleDragEnd=function(){this.isDragging=!1;var p=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&p>this.windowDimensions.height&&_.J().resolve(_.H$).close();this.animateSnapToCorner()};
_.l.animateSnapToCorner=function(){var p=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),x=this.getNearestAttachments();x=this.getGlobalPositionFromAttachments(x.horizontalAttachment,x.verticalAttachment);p=new _.sT(x.x-p.x,x.y-p.y);this.isAnimatingSnap=!0;this.setTransform(p);this.hostElement.addEventListener("transitionend",_.p5(this,this.endSnapAnimation))};
_.l.endSnapAnimation=function(p){p.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.p5(this,this.endSnapAnimation)),this.endDrag())};
_.l.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.l.setTransform=function(p){this.hostElement.style.transform=p?"translate("+p.x+"px, "+p.y+"px)":""};
_.l.getGlobalPositionFromAttachments=function(p,x){return new _.sT(p==="west"?16:this.windowDimensions.width-this.dimensions.width-16,x==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.l.updateAttachments=function(){var p=this.getNearestAttachments();if(this.horizontalAttachment!==p.horizontalAttachment||this.verticalAttachment!==p.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=p.horizontalAttachment;this.verticalAttachment=p.verticalAttachment;var x;(x=this.JSC$17616_resizers)==null||x.update(this.horizontalAttachment,this.verticalAttachment)};
_.l.getNearestAttachments=function(){var p=this.getCurrentGlobalPosition();return{horizontalAttachment:p.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:p.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.l.getCurrentGlobalPosition=function(){var p=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return gg8(p,this.transform)};
_.l.isSafeToDrag=function(p){var x=this.playerContainer.getBoundingClientRect();return Math.abs(p.clientY-(x.y+x.height))>15};
_.l.setMiniplayerSize=function(p){this.currentMiniplayerSize=this.clamp(p);var x;(x=this.JSC$17616_resizers)==null||x.setSize(this.currentMiniplayerSize)};
_.l.clamp=function(p){return _.YV(192,p,720)};
_.l.registerViewTransitionTasks=function(){var p=this,x=_.J().resolve(_.Bw(_.kI8));if(x){var F={beforeTransition:function(){p.hostElement&&(p.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){p.hostElement&&(p.hostElement.style.viewTransitionName="")}};
dL(x,"slide",F);dL(x,"zoom",F)}};
_.R8.Object.defineProperties($7.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.S("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:_.JG("CONTINUE_WATCHING",void 0,"Continue watching")};var p;if((p=this.externalPlaylistData)==null?0:p.contents)return this.externalPlaylistData.titleText;var x;return(x=this.data)==null?void 0:x.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.externalPlaylistData)==null?0:p.contents){var x;return(x=_.K_$(this.externalPlaylistData))==null?void 0:x.title}var F;return(F=this.data)==null?void 0:F.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var p,x,F,N;return((p=this.externalPlaylistData)==null?void 0:p.currentIndex)!==void 0&&((x=this.externalPlaylistData)==null?0:x.totalVideos)&&!((F=this.data)==null?0:(N=F.playlistData)==null?0:N.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.ZOZ(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.S("kevlar_watch_while_counterfactual")}}});
$7.prototype.onIsDisabledChanged=$7.prototype.onIsDisabledChanged;$7.prototype.readyToResumeVeChanged=$7.prototype.readyToResumeVeChanged;$7.prototype.premiumBrandingChanged=$7.prototype.premiumBrandingChanged;$7.prototype.onPlayerVeChange=$7.prototype.onPlayerVeChange;$7.prototype.hasPlaylistDataChanged=$7.prototype.hasPlaylistDataChanged;_.B([_.u(_.oz.YtPlayerListenerBehavior),_.k("design:type",_.O7)],$7.prototype,"ytPlayerListenerBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],$7.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],$7.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],$7.prototype,"ytdReduxBehavior",void 0);_.B([_.Ff("#draggable"),_.k("design:type",HTMLDivElement)],$7.prototype,"draggableContainer",void 0);
_.B([_.Ff("#resize-container"),_.k("design:type",HTMLDivElement)],$7.prototype,"JSC$17616_resizeContainer",void 0);_.B([_.Ff("#video-container"),_.k("design:type",HTMLDivElement)],$7.prototype,"videoContainer",void 0);_.B([_.Ff("#player-container"),_.k("design:type",HTMLDivElement)],$7.prototype,"playerContainer",void 0);_.B([_.Ff("#playlist"),_.k("design:type",HTMLDivElement)],$7.prototype,"JSC$17616_playlistPanel",void 0);_.B([_.H(),_.k("design:type",Object)],$7.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$7.prototype,"active",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$7.prototype,"hasNoData",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$7.prototype,"enabled",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$7.prototype,"expanded",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$7.prototype,"readyToResume",void 0);
_.B([_.H(),_.k("design:type",Object)],$7.prototype,"isDisabled",void 0);_.B([_.H(),_.k("design:type",Object)],$7.prototype,"externalPlaylistData",void 0);_.B([_.H(),_.k("design:type",Array)],$7.prototype,"premiumBadges",void 0);_.B([_.H(),_.k("design:type",Object)],$7.prototype,"toastData",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$7.prototype,"watchWhile",void 0);_.B([_.H(),_.k("design:type",Boolean)],$7.prototype,"premiumBranding",void 0);
_.B([_.H(),_.k("design:type",Object)],$7.prototype,"playerState",void 0);_.B([_.H(),_.k("design:type",Boolean)],$7.prototype,"continueWatching",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],$7.prototype,"verticalAttachment",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],$7.prototype,"horizontalAttachment",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$7.prototype,"isAnimatingFade",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$7.prototype,"isAnimatingSnap",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$7.prototype,"isAnimatingExpand",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$7.prototype,"isDragging",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$7.prototype,"playerHidden",void 0);
_.B([_.H({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.k("design:type",Object)],$7.prototype,"playlistData",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.k("design:type",Object)],$7.prototype,"hasPlaylistData",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$7.prototype,"closed",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],$7.prototype,"expandedClosed",void 0);
_.B([_.H({selector:_.QOd}),_.k("design:type",Boolean)],$7.prototype,"isSingleOptionSurveyActive",void 0);_.B([_.H({reflectToAttribute:!0,selector:_.A$}),_.k("design:type",Boolean)],$7.prototype,"isWatchPage",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("watchWhile"),_.k("design:type",Object),_.k("design:paramtypes",[])],$7.prototype,"showInfoBar",null);_.B([_.w("premiumBadges","showInfoBar"),_.k("design:type",Object),_.k("design:paramtypes",[])],$7.prototype,"showOverlayPremiumBadges",null);
_.B([_.H(),_.k("design:type",Object)],$7.prototype,"watchResponse",void 0);_.B([_.H(),_.k("design:type",Object)],$7.prototype,"miniplayerRenderer",void 0);_.B([_.H(),_.k("design:type",Object)],$7.prototype,"playabilityStatus",void 0);_.B([_.H(),_.k("design:type",Object)],$7.prototype,"playerVe",void 0);_.B([_.H(),_.k("design:type",Object)],$7.prototype,"expandVe",void 0);_.B([_.H(),_.k("design:type",Object)],$7.prototype,"closeVe",void 0);
_.B([_.H(),_.k("design:type",Object)],$7.prototype,"readyToResumeCloseVe",void 0);_.B([_.H(),_.k("design:type",_.ns)],$7.prototype,"readyToResumeVe",void 0);_.B([_.H(),_.k("design:type",_.ns)],$7.prototype,"resizeVe",void 0);_.B([_.H(),_.k("design:type",_.ns)],$7.prototype,"repositionVe",void 0);_.B([_.W("hasPlaylistData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$7.prototype,"hasPlaylistDataChanged",null);
_.B([_.W("playerVe"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$7.prototype,"onPlayerVeChange",null);_.B([_.W("premiumBranding"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$7.prototype,"premiumBrandingChanged",null);_.B([_.W("readyToResumeVe"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$7.prototype,"readyToResumeVeChanged",null);
_.B([_.W("isDisabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$7.prototype,"onIsDisabledChanged",null);_.B([_.w("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.k("design:type",Object),_.k("design:paramtypes",[])],$7.prototype,"miniplayerSubtitle",null);_.B([_.w("data.miniplayerTitle","externalPlaylistData"),_.k("design:type",Object),_.k("design:paramtypes",[])],$7.prototype,"miniplayerTitle",null);
_.B([_.w("externalPlaylistData","continueWatching"),_.k("design:type",Object),_.k("design:paramtypes",[])],$7.prototype,"playlistIndexMessage",null);_.B([_.H({reflectToAttribute:!0}),_.w("playabilityStatus"),_.k("design:type",Object),_.k("design:paramtypes",[])],$7.prototype,"showErrorScreen",null);_.B([_.H({reflectToAttribute:!0}),_.w("watchWhile"),_.k("design:type",Object),_.k("design:paramtypes",[])],$7.prototype,"watchWhileHidden",null);
_.S("ytd_miniplayer_to_wiz")||_.P($7,"ytd-miniplayer",function(){if($9a===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(Ig8().content.cloneNode(!0),p.content.firstChild);p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);$9a=p}p=$9a;return p},{mode:2});var lTa;var e2=function(){var p=_.m.apply(this,arguments)||this;p.useListItemStyles=_.S("web_list_item_style_for_menu_items");p.systemIcons=_.S("kevlar_system_icons");return p};
_.E(e2,_.m);_.l=e2.prototype;_.l.ready=function(){this.hostElement.addEventListener("tap",_.p5(this,this.onEndpointTapExtra))};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.l.onFocus=function(){var p;(p=_.n(this.hostElement).querySelector("tp-yt-paper-item"))==null||p.focus()};
_.l.onEndpointTapExtra=function(p){_.hG(this.hostElement,"iron-activate");var x=this.data.navigationEndpoint;x&&_.r(x,_.mbE)&&(p.stopPropagation(),_.Kc(this.hostElement,[x],this.hostElement))};
_.l.computeIcon=function(p){return p&&p.iconType?_.eA(p.iconType):""};
_.l.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.l.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.l.forceUpdateStylesOnLegacyBrowsers=function(){_.S("kevlar_legacy_browsers")&&_.eV(this.hostElement)};
e2.prototype.forceUpdateStylesOnLegacyBrowsers=e2.prototype.forceUpdateStylesOnLegacyBrowsers;e2.prototype.onFocus=e2.prototype.onFocus;_.B([_.u(_.Oo),_.k("design:type",Object)],e2.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.u(_.gZD.YtConditionalRendererBehavior),_.k("design:type",Object)],e2.prototype,"ytConditionalRendererBehavior",void 0);_.B([_.u(_.NY.YtEndpointBehavior),_.k("design:type",Object)],e2.prototype,"ytEndpointBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],e2.prototype,"data",void 0);_.B([_.H({computed:"computeIcon(data.icon)",value:""}),_.k("design:type",String)],e2.prototype,"icon",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],e2.prototype,"useIcons",void 0);_.B([_.H({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.k("design:type",Boolean)],e2.prototype,"hasSeparator",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],e2.prototype,"useListItemStyles",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],e2.prototype,"systemIcons",void 0);_.B([_.V("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],e2.prototype,"onFocus",null);_.B([_.W("useIcons","hasSeparator"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],e2.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.P(e2,"ytd-menu-navigation-item-renderer",function(){if(lTa===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);lTa=p}p=lTa;return p},{mode:1});var c2H;var aT_=_.L1(_.JG("DOWNLOAD",{},"Download")),Mut=_.L1(_.JG("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),DrH=_.L1(_.JG("RETRY",{},"Retry")),fT8=_.L1(_.JG("PAUSE_DOWNLOADING",{},"Pause downloading")),KqD=_.L1(_.JG("RESUME_DOWNLOAD",{},"Resume download")),pe=function(){var p=_.m.apply(this,arguments)||this;p.primaryText=aT_;p.primaryIconType="OFFLINE_DOWNLOAD";p.hasSecondaryContent=!1;p.hasSeparator=!1;p.transferState="TRANSFER_STATE_UNKNOWN";p.isVideoDeletedByUser=!1;p.isHidden=!1;p.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return p};
_.E(pe,_.m);_.l=pe.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.l.onFocus=function(){this.primaryEntry.focus()};
_.l.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.l.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.l.getRemoveAction=function(){return"ACTION_REMOVE"};
_.l.sendOfflineAction=function(p){var x=this.data.serviceEndpoint;if(x){var F=_.r(x,_.lr);F&&p&&(F.action=p);this.ytComponentBehavior.resolveCommand(x)}};
_.l.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=aT_,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=aT_;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=DrH;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=Mut;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=KqD;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=Mut;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
fT8;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=Mut;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=Mut;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=aT_,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.l.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.l.isSecondaryEntryHidden=function(p,x){return p?!0:!x};
_.l.computeHasSeparator=function(){var p;return!((p=this.data)==null||!p.hasSeparator)};
pe.prototype.showHideButton=pe.prototype.showHideButton;pe.prototype.onTransferStateChange=pe.prototype.onTransferStateChange;pe.prototype.onFocus=pe.prototype.onFocus;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],pe.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],pe.prototype,"ytComponentBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],pe.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],pe.prototype,"primaryText",void 0);_.B([_.H(),_.k("design:type",String)],pe.prototype,"primaryIconType",void 0);_.B([_.H(),_.k("design:type",String)],pe.prototype,"primaryAction",void 0);_.B([_.H(),_.k("design:type",Object)],pe.prototype,"secondaryText",void 0);_.B([_.H(),_.k("design:type",String)],pe.prototype,"secondaryIconType",void 0);
_.B([_.H(),_.k("design:type",String)],pe.prototype,"secondaryAction",void 0);_.B([_.H(),_.k("design:type",Object)],pe.prototype,"hasSecondaryContent",void 0);_.B([_.H({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.k("design:type",Object)],pe.prototype,"hasSeparator",void 0);_.B([_.H({selector:_.uP,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.k("design:type",String)],pe.prototype,"transferState",void 0);
_.B([_.H({selector:_.TSM,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.k("design:type",Object)],pe.prototype,"isVideoDeletedByUser",void 0);_.B([_.H(),_.k("design:type",Object)],pe.prototype,"isHidden",void 0);_.B([_.H({selector:_.mJB,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.k("design:type",Object)],pe.prototype,"offlineabilityState",void 0);_.B([_.Ff("#primary-entry"),_.k("design:type",Object)],pe.prototype,"primaryEntry",void 0);
_.B([_.V("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pe.prototype,"onFocus",null);_.B([_.cT("transferState","isVideoDeletedByUser"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pe.prototype,"onTransferStateChange",null);_.B([_.cT("offlineabilityState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pe.prototype,"showHideButton",null);
_.P(pe,"ytd-menu-service-item-download-renderer",function(){if(c2H===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);c2H=p}p=c2H;return p},{mode:1});var qOH;var x8=function(){var p=_.m.apply(this,arguments)||this;p.useIcons=!1;p.systemIcons=_.S("kevlar_system_icons");p.useListItemStyles=_.S("web_list_item_style_for_menu_items");return p};
_.E(x8,_.m);_.l=x8.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.l.onFocus=function(){var p;(p=_.n(this.hostElement).querySelector("tp-yt-paper-item"))==null||p.focus()};
_.l.onTap=function(){_.Mt(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var p=this.data.serviceEndpoint,x=this.data.command;if(p){var F,N=(F=this.data)==null?void 0:F.trackingParams;F=!!_.r(p,_.m7k);N&&F&&_.Bi().dispatch(_.F4({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:N}}));this.ytComponentBehavior.resolveCommand(p)||(_.S("web_ytd_menu_service_item_renderer_command_resolver_ks")?_.fc(this.hostElement,[p]):_.J().resolve(_.RD).resolveCommand(p,
{form:{element:this.hostElement}}))}x&&(this.ytComponentBehavior.resolveCommand(x)||_.Kc(this.hostElement,[x],this.hostElement))};
_.l.computeIcon=function(p){return p&&p.iconType?_.eA(p.iconType):""};
_.l.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.l.computeHasSeparator=function(){var p;return!((p=this.data)==null||!p.hasSeparator)};
_.l.forceUpdateStylesOnLegacyBrowsers=function(){_.S("kevlar_legacy_browsers")&&_.eV(this.hostElement)};
_.l.computeIsSelected=function(){var p;return!((p=this.data)==null||!p.isSelected)};
x8.prototype.forceUpdateStylesOnLegacyBrowsers=x8.prototype.forceUpdateStylesOnLegacyBrowsers;x8.prototype.onTap=x8.prototype.onTap;x8.prototype.onFocus=x8.prototype.onFocus;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],x8.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.Oo),_.k("design:type",Object)],x8.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],x8.prototype,"ytComponentBehavior",void 0);
_.B([_.u(_.gZD.YtConditionalRendererBehavior),_.k("design:type",Object)],x8.prototype,"ytConditionalRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],x8.prototype,"data",void 0);_.B([_.H({computed:"computeIcon(data.icon)",value:""}),_.k("design:type",String)],x8.prototype,"icon",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],x8.prototype,"useIcons",void 0);
_.B([_.H({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.k("design:type",Boolean)],x8.prototype,"hasSeparator",void 0);_.B([_.H({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.k("design:type",Boolean)],x8.prototype,"isSelected",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],x8.prototype,"systemIcons",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],x8.prototype,"useListItemStyles",void 0);
_.B([_.V("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],x8.prototype,"onFocus",null);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],x8.prototype,"onTap",null);_.B([_.W("useIcons","hasSeparator"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],x8.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.P(x8,"ytd-menu-service-item-renderer",function(){if(qOH===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);qOH=p}p=qOH;return p},{mode:2});var Z$e;var tu8=function(){return _.m.apply(this,arguments)||this};
_.E(tu8,_.m);_.l=tu8.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.onDataChanged=function(){var p=this;_.jB(this,function(){p.postbox.openDialog();p.focus();_.hG(p.hostElement,"yt-refit")})};
_.l.focus=function(){this.postbox.focus()};
_.l.closePopup=function(){_.lA(this.hostElement,"yt-close-popup-action")};
_.l.onYtCommentboxDismiss=function(){this.closePopup()};
var FM=tu8;FM.prototype.onYtCommentboxDismiss=FM.prototype.onYtCommentboxDismiss;FM.prototype.onDataChanged=FM.prototype.onDataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],FM.prototype,"data",void 0);_.B([_.H({value:function(){return _.JG("SBOX_INAPPROPRIATE_CANCEL")}}),
_.k("design:type",String)],FM.prototype,"closeButtonAriaLabel",void 0);_.B([_.Ff("#postbox"),_.k("design:type",Object)],FM.prototype,"postbox",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],FM.prototype,"onDataChanged",null);_.B([_.V("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],FM.prototype,"onYtCommentboxDismiss",null);
FM=_.B([_.L({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],FM);
_.P(FM,"ytd-backstage-post-dialog-popup-renderer",function(){if(Z$e!==void 0)return Z$e;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Z$e=p},{mode:1});var dr8;var viD=function(){return _.m.apply(this,arguments)||this};
_.E(viD,_.m);var NR=viD;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],NR.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],NR.prototype,"data",void 0);NR=_.B([_.L({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],NR);
_.P(NR,"ytd-sender-id-section-renderer",function(){if(dr8!==void 0)return dr8;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);
return dr8=p},{mode:1});var J2k;var CVH;var SO_;var r2m=function(){return _.m.apply(this,arguments)||this};
_.E(r2m,_.m);r2m.prototype.closePopup=function(){_.lA(this.hostElement,"yt-close-popup-action")};
var hg=r2m;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],hg.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],hg.prototype,"data",void 0);hg=_.B([_.JZ({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],hg);
_.P(hg,"yt-community-post-section-renderer",function(){if(SO_===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;CVH===void 0&&(CVH=document.createElement("template"));var N=CVH;F.call(x,N.content.cloneNode(!0),p.content.firstChild);SO_=p}p=SO_;return p},{mode:2});var EiH;var Xd_;var gi8;var Qq8;var zs8;var sqH;var ni8=function(){return _.m.apply(this,arguments)||this};
_.E(ni8,_.m);var l9=ni8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],l9.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],l9.prototype,"data",void 0);l9=_.B([_.JZ({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],l9);
_.P(l9,"yt-share-start-time-with-context-renderer",function(){if(sqH===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;zs8===void 0&&(zs8=document.createElement("template"));var N=zs8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);sqH=p}p=sqH;return p},{mode:2});var y2X=function(){return _.m.apply(this,arguments)||this};
_.E(y2X,_.m);y2X.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
var cX=y2X;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],cX.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],cX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],cX.prototype,"data",void 0);cX=_.B([_.JZ({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],cX);
_.P(cX,"yt-share-panel-title-v15-renderer",function(){if(Qq8===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;gi8===void 0&&(gi8=document.createElement("template"));var N=gi8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Qq8=p}p=Qq8;return p},{mode:2});var b$t=function(){return _.m.apply(this,arguments)||this};
_.E(b$t,_.m);b$t.prototype.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{sharePanelTitleV15Renderer:"yt-share-panel-title-v15-renderer"}},"data.communityPost":{id:"community-post",mapping:{communityPostSectionRenderer:"yt-community-post-section-renderer"}}}};
var aW=b$t;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],aW.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],aW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],aW.prototype,"data",void 0);aW=_.B([_.JZ({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],aW);
_.P(aW,"yt-share-panel-header-renderer",function(){if(Xd_===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;EiH===void 0&&(EiH=document.createElement("template"));var N=EiH;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Xd_=p}p=Xd_;return p},{mode:2});var A2D;var uet;var YOm=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-open-popup-action":"onOpen"};return p};
_.E(YOm,_.m);_.l=YOm.prototype;_.l.attached=function(){this.onOpen()};
_.l.updateTimeSecs=function(p){this.currentTimeSecs=p};
_.l.computeTimeString=function(p){p=p.toString();var x=Math.floor(Number(p)/3600),F=Math.floor(Number(p)%3600%60);return(x>0?x+":":"")+_.Fn(Math.floor(Number(p)%3600/60),x>0?2:1)+":"+_.Fn(F,2)};
_.l.computeTimeStringA11y=function(p){p=_.Rvr({seconds:p});var x=p.hours===void 0?0:p.hours,F=p.minutes===void 0?0:p.minutes,N=p.seconds===void 0?0:p.seconds;p=[];if(x>0){var h=c0X().format({hours:x});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.Vr)||x>9999)h=h.replace(x.toString(),_.kN6(x)),_.Vr==="km"&&(h=h.replace(".",","));p.push(h)}F>0&&p.push(c0X().format({minutes:F}));N>0&&p.push(c0X().format({seconds:N}));x="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");F=_.Vr==
"am"?"{0}\u1363 ":_.Vr=="fa"?"{0}\u060c\u200f ":_.Vr=="my"?"{0} - ":_.Vr=="ne"?"{0},":_.Vr=="th"?"{0} ":_.Vr=="ur"?"{0}\u060c ":_.Vr=="ar"||_.Vr=="ar-XB"?"{0} \u0648":_.Vr=="ja"||_.Vr=="zh-CN"||_.Vr=="zh-HK"||_.Vr=="zh-TW"?"{0}\u3001":"{0}, ";N=_.Vr=="am"?"\u1363 ":_.Vr=="fa"?"\u060c\u200f ":_.Vr=="my"?" - ":_.Vr=="th"?" ":_.Vr=="ur"?"\u060c ":_.Vr=="ar"||_.Vr=="ar-XB"?" \u0648":_.Vr=="ja"||_.Vr=="zh-CN"||_.Vr=="zh-HK"||_.Vr=="zh-TW"?"\u3001":", ";h=_.Vr=="am"?" \u12a5\u1293 {0}":_.Vr=="as"?" \u0986\u09f0\u09c1 {0}":
_.Vr=="az"?" v\u0259 {0}":_.Vr=="bn"?" \u098f\u09ac\u0982 {0}":_.Vr=="cs"?" a\u00a0{0}":_.Vr=="de"?" und {0}":_.Vr=="el"?" \u03ba\u03b1\u03b9 {0}":_.Vr=="eu"?" eta {0}":_.Vr=="fa"?"\u060c \u0648 {0}":_.Vr=="fil"?", at {0}":_.Vr=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.Vr=="hi"?", \u0914\u0930 {0}":_.Vr=="hu"?" \u00e9s {0}":_.Vr=="hy"?" \u0587 {0}":_.Vr=="id"?", dan {0}":_.Vr=="iw"?" \u05d5-{0}":_.Vr=="ja"?"\u3001{0}":_.Vr=="ka"?" \u10d3\u10d0 {0}":_.Vr=="km"?" \u1793\u17b7\u1784 {0}":_.Vr=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.Vr=="ko"?" \ubc0f {0}":_.Vr=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.Vr=="lt"?" ir {0}":_.Vr=="lv"?" un {0}":_.Vr=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.Vr=="mr"?" \u0906\u0923\u093f {0}":_.Vr=="ms"?" dan {0}":_.Vr=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.Vr=="ne"?" \u0930 {0}":_.Vr=="or"?", \u0b13 {0}":_.Vr=="pa"?" \u0a05\u0a24\u0a47 {0}":_.Vr=="ro"?" \u0219i {0}":_.Vr=="si"?", \u0dc3\u0dc4 {0}":_.Vr=="sk"?" a {0}":_.Vr=="sl"?" in {0}":_.Vr=="sq"?" dhe {0}":_.Vr=="sv"?" och {0}":
_.Vr=="sw"?" na {0}":_.Vr=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.Vr=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.Vr=="th"?" \u0e41\u0e25\u0e30{0}":_.Vr=="tr"?" ve {0}":_.Vr=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.Vr=="uz"?" va {0}":_.Vr=="vi"?" v\u00e0 {0}":_.Vr=="zh-HK"?"\u53ca{0}":_.Vr=="zu"?", ne-{0}":_.Vr=="af"||_.Vr=="nl"?" en {0}":_.Vr=="ar"||_.Vr=="ar-XB"?" \u0648{0}":_.Vr=="be"||_.Vr=="uk"?" \u0456 {0}":_.Vr=="en-GB"||_.Vr=="en-IN"?" and {0}":_.Vr=="en"||_.Vr=="en-XA"?
", and {0}":_.Vr=="et"||_.Vr=="fi"?" ja {0}":_.Vr=="fr"||_.Vr=="fr-CA"?" et {0}":_.Vr=="zh-CN"||_.Vr=="zh-TW"?"\u548c{0}":_.Vr=="da"||_.Vr=="is"||_.Vr=="no"?" og {0}":_.Vr=="es"||_.Vr=="es-419"||_.Vr=="es-US"?" y {0}":_.Vr=="kk"||_.Vr=="lo"||_.Vr=="mn"?", {0}":_.Vr=="bg"||_.Vr=="mk"||_.Vr=="ru"||_.Vr=="sr"?" \u0438 {0}":_.Vr=="gl"||_.Vr=="it"||_.Vr=="pt-BR"||_.Vr=="pt-PT"?" e {0}":" i {0}";var c=_.Vr=="am"?"{0} \u12a5\u1293 {1}":_.Vr=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.Vr=="az"?"{0} v\u0259 {1}":
_.Vr=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.Vr=="de"?"{0} und {1}":_.Vr=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.Vr=="eu"?"{0} eta {1}":_.Vr=="fa"?"{0} \u0648 {1}":_.Vr=="fil"?"{0} at {1}":_.Vr=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.Vr=="hi"?"{0} \u0914\u0930 {1}":_.Vr=="hu"?"{0} \u00e9s {1}":_.Vr=="hy"?"{0} \u0587 {1}":_.Vr=="iw"?"{0} \u05d5-{1}":_.Vr=="ja"?"{0}\u3001{1}":_.Vr=="ka"?"{0} \u10d3\u10d0 {1}":_.Vr=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.Vr=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.Vr=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.Vr=="ko"?"{0} \ubc0f {1}":_.Vr=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.Vr=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.Vr=="lt"?"{0} ir {1}":_.Vr=="lv"?"{0} un {1}":_.Vr=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.Vr=="mn"?"{0}, {1}":_.Vr=="mr"?"{0} \u0906\u0923\u093f {1}":_.Vr=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.Vr=="ne"?"{0} \u0930 {1}":_.Vr=="or"?"{0} \u0b13 {1}":_.Vr=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.Vr=="ro"?"{0} \u0219i {1}":_.Vr==
"si"?"{0} \u0dc3\u0dc4 {1}":_.Vr=="sl"?"{0} in {1}":_.Vr=="sq"?"{0} dhe {1}":_.Vr=="sv"?"{0} och {1}":_.Vr=="sw"?"{0} na {1}":_.Vr=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.Vr=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.Vr=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.Vr=="tr"?"{0} ve {1}":_.Vr=="ur"?"{0} \u0627\u0648\u0631 {1}":_.Vr=="uz"?"{0} va {1}":_.Vr=="vi"?"{0} v\u00e0 {1}":_.Vr=="zh-HK"?"{0}\u53ca{1}":_.Vr=="zu"?"{0} ne-{1}":_.Vr=="af"||_.Vr=="nl"?"{0} en {1}":_.Vr=="ar"||_.Vr==
"ar-XB"?"{0} \u0648{1}":_.Vr=="be"||_.Vr=="uk"?"{0} \u0456 {1}":_.Vr=="cs"||_.Vr=="sk"?"{0} a\u00a0{1}":_.Vr=="et"||_.Vr=="fi"?"{0} ja {1}":_.Vr=="fr"||_.Vr=="fr-CA"?"{0} et {1}":_.Vr=="id"||_.Vr=="ms"?"{0} dan {1}":_.Vr=="zh-CN"||_.Vr=="zh-TW"?"{0}\u548c{1}":_.Vr=="da"||_.Vr=="is"||_.Vr=="no"?"{0} og {1}":_.Vr=="es"||_.Vr=="es-419"||_.Vr=="es-US"?"{0} y {1}":_.Vr=="bg"||_.Vr=="mk"||_.Vr=="ru"||_.Vr=="sr"?"{0} \u0438 {1}":_.Vr=="en"||_.Vr=="en-GB"||_.Vr=="en-IN"||_.Vr=="en-XA"?"{0} and {1}":_.Vr==
"gl"||_.Vr=="it"||_.Vr=="pt-BR"||_.Vr=="pt-PT"?"{0} e {1}":"{0} i {1}";_.Vr==="sq"?(h=h.replace("dhe","e"),c=c.replace("dhe","e")):_.Vr==="th"?(N=N.replace("{0}"," {0}"),c=c.replace("{0}","{0} "),c=c.replace("{1}"," {1}")):_.Vr==="ne"?N=",":_.Vr==="zh-CN"?N="":x.includes(_.Vr)&&(N=" ");return p.length<2?p.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(_.Vr)?p.length===2?
c.replace("{0}",p[0]).replace("{1}",p[1]):F.replace("{0}",p[0])+p.slice(1,-1).join(N)+h.replace("{0}",p[p.length-1]):p.join(N)};
_.l.getTimeParam=function(){return ngc(this.timeString)};
_.l.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var p={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},x;_.cj(_.cl(),(x=this.data)==null?void 0:x.trackingParams,p,7)};
_.l.onChangeStartAtTimestamp=function(){for(var p=this.startAtTimestamp.value.split(":"),x=0,F=1,N=p.length-1;N>=0;N--)x+=Number(p[N])*F,F*=60;this.updateTimeSecs(x);this.setTimestamp()};
_.l.onOpen=function(){var p=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var x=_.Pt();x?x.getPlayerPromise().then(function(F){F=F.getCurrentTime();p.updateTimeSecs(F)}):hxk()&&this.updateTimeSecs(hxk())};
_.l.setTimestamp=function(){var p=Math.floor(this.currentTimeSecs);_.lA(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!p,timestamp:p||""}])};
var MR=YOm;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],MR.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],MR.prototype,"data",void 0);_.B([_.H({value:!1,notify:!0}),_.k("design:type",Boolean)],MR.prototype,"isStartAtChecked",void 0);_.B([_.H(),_.k("design:type",Number)],MR.prototype,"currentTimeSecs",void 0);
_.B([_.H({computed:"computeTimeString(currentTimeSecs)"}),_.k("design:type",String)],MR.prototype,"timeString",void 0);_.B([_.H({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.k("design:type",String)],MR.prototype,"timeStringA11y",void 0);_.B([_.Ff("#start-at-timestamp"),_.k("design:type",Object)],MR.prototype,"startAtTimestamp",void 0);MR=_.B([_.JZ({is:"yt-start-at-renderer",disableElementRegistration:!0})],MR);
_.P(MR,"yt-start-at-renderer",function(){if(uet===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;A2D===void 0&&(A2D=document.createElement("template"));var N=A2D;F.call(x,N.content.cloneNode(!0),p.content.firstChild);uet=p}p=uet;return p},{mode:2});var wd8;var GVH;var VuX=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"]]),Wqm=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"]]),H$c=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var mra={};mra.YtBindingExpressionsBehavior={identity:_.Wr,msg:function(p,x){x=x===void 0?{}:x;return _.JG(p,x,p)},
msgPlural:function(p,x){return _.Cc(p,x)},
getMusicIconFromType:function(p){if(_.S("music_web_enable_icon_wil"))p=_.eA(p);else if(Wqm.has(p))p="yt-sys-icons:"+Wqm.get(p);else{var x=VuX.get(p)||_.eA(p).split(":")[1];x=_.rx$(x);var F;p=((F=H$c.get(p))!=null?F:"yt-sys-icons:")+x}return p}};var oim;var O$H;var jqH;var Lqt=document.head,PVk=Lqt.appendChild,Ti_;if(jqH===void 0){var BiD=document.createElement("template");_.g(BiD,'\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>');jqH=BiD}Ti_=jqH;PVk.call(Lqt,Ti_.content);var DN=function(){var p=_.m.apply(this,arguments)||this;p.screenLayer=7;return p};
_.E(DN,_.m);DN.prototype.getScreenLayer=function(){return this.screenLayer};
DN.prototype.onTap=function(p){p&&p.detail&&(p.detail.x||p.detail.y)&&_.n(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.fc(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(p=this.getScreenLayer(),_.hG(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:p}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.R8.Object.defineProperties(DN.prototype,{title:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.title)}},
icon:{configurable:!0,enumerable:!0,get:function(){return"socialNetworksRound:"+this.data.serviceName.toLowerCase()}}});
var fe=DN;fe.prototype.onTap=fe.prototype.onTap;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],fe.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],fe.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],fe.prototype,"data",void 0);_.B([_.w("data.title"),_.k("design:type",Object),_.k("design:paramtypes",[])],fe.prototype,"title",null);
_.B([_.w("data.serviceName"),_.k("design:type",String),_.k("design:paramtypes",[])],fe.prototype,"icon",null);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],fe.prototype,"onTap",null);fe=_.B([_.JZ({is:"yt-share-target-renderer",disableElementRegistration:!0})],fe);
_.P(fe,"yt-share-target-renderer",function(){if(O$H===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;oim===void 0&&(oim=document.createElement("template"));var N=oim;F.call(x,N.content.cloneNode(!0),p.content.firstChild);O$H=p}p=O$H;return p},{mode:2});var Rsm;var kVc;var Urk=function(){var p=_.m.apply(this,arguments)||this;p.SHARE_TARGET_WIDTH=70;p.SHARE_TARGET_MARGIN_RIGHT=8;p.PAGE_SCROLL_SPEED=9;p.actionMap={"yt-share-panel-reset-action":"onReset_"};return p};
_.E(Urk,_.m);_.l=Urk.prototype;_.l.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.l.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.n(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.n(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.l.onReset_=function(){if(_.n(this.hostElement).querySelector("#list")){var p=_.n(this.hostElement).querySelector("#list");var x=_.n(this.hostElement).querySelector("#list");var F=x.offsetLeft,N=x.offsetParent;N||_.yoZ(x)!="fixed"||(N=_.y5(x).documentElement);if(N){if(_.Dr&&!FNm(58)){var h=_.WAm(N);F+=h.left}else Number(_.W4p)>=8&&!(Number(_.W4p)>=9)&&(h=_.WAm(N),F-=h.left);x=_.GlZ(N)?N.clientWidth-(F+x.offsetWidth):F}else x=F;Ftc(p,x);this.updateScrollButtons_()}};
_.l.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.l.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.l.onScrollWheel_=function(p){p.stopPropagation();p.preventDefault();var x=xja(_.n(this.hostElement).querySelector("#list"));p=Math.abs(p.deltaX)>Math.abs(p.deltaY)?p.deltaX:p.deltaY;Ftc(_.n(this.hostElement).querySelector("#list"),x+p);this.updateScrollButtons_()};
_.l.smoothScrollByOnePage_=function(p){var x=_.n(this.hostElement).querySelector("#list"),F=(Math.floor(x.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,N=xja(x),h=F*(p?1:-1),c=this.PAGE_SCROLL_SPEED,M=this.updateScrollButtons_.bind(this),f=0,K;(function d(){f+=c;K=f/F*2;Ftc(x,N+h*(K<1?K*K:-K*K+4*K-2));f<F?window.requestAnimationFrame(d):M()})()};
_.l.updateScrollButtons_=function(){var p=xja(_.n(this.hostElement).querySelector("#list")),x=_.n(this.hostElement).querySelector("#list").scrollWidth-_.n(this.hostElement).querySelector("#list").clientWidth;_.n(this.hostElement).querySelector("#scroll-button-back").hidden=p<=0;_.n(this.hostElement).querySelector("#scroll-button-forward").hidden=p>=x};
var Ke=Urk;Ke.prototype.onScrollWheel_=Ke.prototype.onScrollWheel_;Ke.prototype.onDataChanged_=Ke.prototype.onDataChanged_;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Ke.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Ke.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(mra.YtBindingExpressionsBehavior),_.k("design:type",Object)],Ke.prototype,"ytBindingExpressionsBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ke.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ke.prototype,"data",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ke.prototype,"onDataChanged_",null);_.B([_.V("wheel"),_.k("design:type",Function),_.k("design:paramtypes",[WheelEvent]),_.k("design:returntype")],Ke.prototype,"onScrollWheel_",null);
Ke=_.B([_.JZ({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],Ke);
_.P(Ke,"yt-third-party-share-target-section-renderer",function(){if(kVc===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Rsm===void 0&&(Rsm=document.createElement("template"));var N=Rsm;F.call(x,N.content.cloneNode(!0),p.content.firstChild);kVc=p}p=kVc;return p},{mode:2});var i$m=function(){return _.m.apply(this,arguments)||this};
_.E(i$m,_.m);i$m.prototype.configureRendererStamper=function(){return{"data.shareTargetContainer":{id:"share-targets",mapping:{thirdPartyShareTargetSectionRenderer:"yt-third-party-share-target-section-renderer"}},"data.copyLinkContainer":{id:"copy-link",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}},"data.startAtContainer":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
var qR=i$m;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],qR.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],qR.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],qR.prototype,"data",void 0);qR=_.B([_.JZ({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],qR);
_.P(qR,"yt-third-party-network-section-renderer",function(){if(GVH===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;wd8===void 0&&(wd8=document.createElement("template"));var N=wd8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);GVH=p}p=GVH;return p},{mode:2});_.o7(_.mO(function(p){return _.Z("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.Z("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.Z(_.Es,{data:function(){return p.data().firstPartyItems}},{listItemViewModel:_.Js})))},"Pf"),"first-party-network-section-view-model",{props:{data:_.G2}});var IT8=_.B$(["data:image/svg+xml;charset=UTF-8;base64,",""]),$r8=function(){var p=_.m.apply(this,arguments)||this;p.screenLayer=7;p.qrCodeEnabled=_.S("web_enable_sharing_qr_code");p.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return p};
_.E($r8,_.m);_.l=$r8.prototype;_.l.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.l.attached=function(){this.JSC$17668_scroller&&(this.JSC$17668_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17668_scroller.attached&&typeof this.JSC$17668_scroller.attached==="function"&&this.JSC$17668_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.l.onDataChanged=function(){var p=this,x;(x=this.data)!=null&&x.contents&&(this.hostElement.setAttribute("links-only","true"),_.Is(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.jB(this,function(){_.hG(p.hostElement,"yt-refit");p.focusSharePanelHeader()}))};
_.l.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.l.handleSetTimestamp=function(p){var x=this.shortUrl();p.isSet&&(x=_.rM(x,"t",p.timestamp));this.maybeRenderQrCode(x)};
_.l.shortUrl=function(){var p,x=(p=this.data)==null?void 0:p.contents;if(x)for(p=0;p<x.length;p++){var F=void 0,N=void 0;if((F=x[p])==null?0:(N=F.thirdPartyNetworkSection)==null?0:N.copyLinkContainer){var h=N=F=void 0;return(h=_.r((F=x[p])==null?void 0:(N=F.thirdPartyNetworkSection)==null?void 0:N.copyLinkContainer,qZ8))==null?void 0:h.shortUrl}}};
_.l.maybeRenderQrCode=function(p){var x=this,F,N,h,c,M,f,K,t,d;return _.D(function(v){if(v.nextAddress==1){F=_.n(x.hostElement).querySelector("#qr-code");if(!x.qrCodeEnabled||!p)return F&&(F.style.display="none"),v.return();N=_.HDw(_.J().resolve(_.pr),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});h=document.createElement("div");return typeof N==="function"?(N(h),v.jumpTo(2)):_.q(v,N,3)}v.nextAddress!=2&&(c=v.yieldResult,c(h));K=(M=h)==null?void 0:(f=M.firstChild)==null?void 0:f.firstChild;
t=document.createElement("img");d=_.Gl(IT8,btoa(K.outerHTML));t.onload=function(){var C={canvas:F,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:t},X=new nq8;wct(X,p);GuH(X,!1,Vw8(X));var Q=X.modules,b=Object.assign({},Bma,C);Q=structuredClone(Q);C=Q.length;var A,Y=(A=b.canvas)!=null?A:document.createElement("canvas");A=b.cellSize;X=b.logo;var O,Fw=(O=b.logoSize)!=null?O:Math.floor(C/4);C%2!==Fw%2&&Fw++;var R=b.logoPadding,ld=b.backgroundColor;O=C*A;var pp=
b.width,Kp=0;pp&&(Kp=b.padding,Kp=Math.ceil(Kp*O/(pp-Kp*2)),Y.style.width=pp+"px",Y.style.height=pp+"px");Y.width!==O+Kp*2&&(Y.width=O+Kp*2);Y.height!==O+Kp*2&&(Y.height=O+Kp*2);O=Y.getContext("2d");b.autoClear&&O.clearRect(0,0,Y.width,Y.height);O.fillStyle=ld;O.beginPath();O.roundRect(0,0,Y.width,Y.height,b.borderRadius);O.fill();O.save();O.translate(Kp,Kp);if(X)for(Y=Math.floor(C-Fw)/2-R,R=Math.floor(C+Fw)/2+R,ld=Y;ld<R;ld++)for(pp=Y;pp<R;pp++)Q[ld][pp]=!1;for(Y=0;Y<C;Y++)for(R=0;R<C;R++)(Y<7&&
R<7||Y<7&&R>=C-7||Y>=C-7&&R<7)&&(Q[Y][R]=!1);var sM;Y=(sM=b.markerColor)!=null?sM:b.color;HEa(O,0,0,A,Y);HEa(O,A*(C-7),0,A,Y);HEa(O,0,A*(C-7),A,Y);switch(b.cellStyle){case 0:sM=Q;Q=sM.length;Y=b.cellSize;O.beginPath();for(R=0;R<Q;R++)for(ld=0;ld<Q;ld++)sM[R][ld]&&O.rect(R*Y,ld*Y,Y,Y);O.fillStyle=b.color;O.fill();break;case 1:sM=Q;Q=sM.length;Y=b.cellSize;R=Y*b.relativeCircleSize;O.fillStyle=b.color;O.beginPath();for(b=0;b<Q;b++)for(ld=0;ld<Q;ld++)sM[b][ld]&&(O.beginPath(),O.ellipse((b+.5)*Y,(ld+.5)*
Y,R/2,R/2,0,0,2*Math.PI),O.fill());O.fill();break;case 2:sM=Q;Q=sM.length;Y=b.cellSize;O.fillStyle=b.color;b=[[1,1],[-1,1],[-1,-1],[1,-1]];O.beginPath();for(R=0;R<Q;R++)for(ld=0;ld<Q;ld++)if(sM[R][ld])O.roundRect(R*Y,ld*Y,Y,Y,Y/2),R+1<Q&&sM[R+1][ld]&&O.rect(R*Y+Y/2,ld*Y,Y,Y),ld+1<Q&&sM[R][ld+1]&&O.rect(R*Y,ld*Y+Y/2,Y,Y);else{pp=R*Y+Y/2;Kp=ld*Y+Y/2;for(var np=0;np<4;np++){var Jz=_.a(b[np]),Y$=Jz.next().value;Jz=Jz.next().value;R+Y$>=0&&R+Y$<Q&&ld+Jz>=0&&ld+Jz<Q&&sM[R+Y$][ld]&&sM[R][ld+Jz]&&sM[R+Y$][ld+
Jz]&&(Y$=np*Math.PI/2,Jz=Y/2,O.moveTo(pp+Jz*Math.cos(Y$),Kp+Jz*Math.sin(Y$)),O.arc(pp,Kp,Y/2,Y$,Y$+Math.PI/2,!1),O.lineTo(pp+Jz*(Math.cos(Y$)-Math.sin(Y$)),Kp+Jz*(Math.cos(Y$)+Math.sin(Y$))),O.lineTo(pp+Jz*Math.cos(Y$),Kp+Jz*Math.sin(Y$)))}}O.fill()}X&&O.drawImage(X,(C-Fw)*A/2,(C-Fw)*A/2,Fw*A,Fw*A);O.restore();F.style.removeProperty("display")};
t.src=_.n6(d);_.JB(v)})};
_.l.hasCommunityPostRenderer=function(){var p,x,F,N;return!!((p=this.data)==null?0:(x=p.header)==null?0:(F=x.sharePanelHeaderRenderer)==null?0:(N=F.communityPost)==null?0:N.communityPostSectionRenderer)};
_.l.onTapClose=function(){_.lA(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.l.getScreenLayer=function(){return this.screenLayer};
_.l.logSharePanelPage=function(){if(!_.S("enable_share_panel_navigation_logging_fix_on_web")){var p;if((p=this.data)!=null&&p.trackingParams){p=this.data.trackingParams;var x=this.parentClickTrackingParams;x=x?_.fr(x):void 0;var F=_.cl();_.F8(F,21760,x,{layer:7,parentLayer:0});F.graftServerVe(p,void 0,7);_.Bi().dispatch(_.F4({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
var ZN=$r8;ZN.prototype.onDataChanged=ZN.prototype.onDataChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ZN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ZN.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],ZN.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],ZN.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],ZN.prototype,"data",void 0);_.B([_.H({value:_.JG("SBOX_INAPPROPRIATE_CANCEL")}),_.k("design:type",String)],ZN.prototype,"closeButtonAriaLabel",void 0);_.B([_.Ff("yt-share-panel-header-renderer"),_.k("design:type",HTMLElement)],ZN.prototype,"header",void 0);_.B([_.H({selector:function(p){return p.share.parentClickTrackingParams}}),
_.k("design:type",String)],ZN.prototype,"parentClickTrackingParams",void 0);_.B([_.H(),_.k("design:type",Object)],ZN.prototype,"qrCodeEnabled",void 0);_.B([_.Ff("#scroller"),_.k("design:type",Object)],ZN.prototype,"JSC$17668_scroller",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ZN.prototype,"onDataChanged",null);ZN=_.B([_.L({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],ZN);
_.P(ZN,"ytd-unified-share-panel-renderer",function(){if(J2k!==void 0)return J2k;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return J2k=p},{mode:1});var LzH;var tg=function(){var p=_.m.apply(this,arguments)||this;p.modernModal=_.S("kevlar_sign_in_modal_modernization");return p};
_.E(tg,_.m);tg.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
tg.prototype.computeShouldHideOldButtons=function(){var p;return!((p=this.data)==null?0:p.button)};
_.R8.Object.defineProperties(tg.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var p,x;if(this.modernModal&&((p=this.data)==null?0:(x=p.button)==null?0:x.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var F,N;return(F=this.data)==null?void 0:(N=F.button)==null?void 0:N.buttonRenderer}}});
var du=tg;_.B([_.H(),_.k("design:type",Object)],du.prototype,"data",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],du.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],du.prototype,"ytEventForwardingBehavior",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],du.prototype,"modernModal",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],du.prototype,"buttonRendererData",null);
du=_.B([_.L({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],du);
_.P(du,"ytd-modal-with-title-and-button-renderer",function(){if(LzH!==void 0)return LzH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return LzH=p},{mode:1});var P7k;var TUH=function(){return _.m.apply(this,arguments)||this};
_.E(TUH,_.m);TUH.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Vx("page-changed",this.page))};
var vX=TUH;vX.prototype.pageChangedForBinding=vX.prototype.pageChangedForBinding;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],vX.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],vX.prototype,"data",void 0);_.B([_.H(),_.k("design:type",String)],vX.prototype,"page",void 0);_.B([_.W("page"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vX.prototype,"pageChangedForBinding",null);
vX=_.B([_.L({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],vX);
_.P(vX,"ytd-account-item-section-header-renderer",function(){if(P7k!==void 0)return P7k;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return P7k=p},{mode:1});var BUD;var RYk=function(){return _.m.apply(this,arguments)||this};
_.E(RYk,_.m);RYk.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"}}}};
RYk.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
var Jg=RYk;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Jg.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Jg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.Vw),_.k("design:type",Object)],Jg.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Jg.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!1}),_.k("design:type",Function)],Jg.prototype,"onAccountItemTap",void 0);
Jg=_.B([_.L({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],Jg);
_.P(Jg,"ytd-account-item-section-renderer",function(){if(BUD!==void 0)return BUD;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return BUD=p},{mode:1});var kxc;var USc;var i0X=function(){return _.m.apply(this,arguments)||this};
_.E(i0X,_.m);var Ce=i0X;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ce.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ce.prototype,"data",void 0);Ce=_.B([_.L({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],Ce);
_.P(Ce,"ytd-accounts-dialog-header-renderer",function(){if(USc!==void 0)return USc;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return USc=p},{mode:1});var Ije;var $St=function(){return _.m.apply(this,arguments)||this};
_.E($St,_.m);$St.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
var S4=$St;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],S4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],S4.prototype,"data",void 0);S4=_.B([_.L({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],S4);
_.P(S4,"ytd-google-account-header-renderer",function(){if(Ije!==void 0)return Ije;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Ije=p},{mode:1});var eYH=function(){return _.m.apply(this,arguments)||this};
_.E(eYH,_.m);eYH.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"}}}};
eYH.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Vx("page-changed",this.page))};
var ru=eYH;ru.prototype.pageChangedForBinding=ru.prototype.pageChangedForBinding;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ru.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ru.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ru.prototype,"data",void 0);_.B([_.H(),_.k("design:type",String)],ru.prototype,"page",void 0);
_.B([_.W("page"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ru.prototype,"pageChangedForBinding",null);ru=_.B([_.L({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],ru);
_.kJ()(ru,"ytd-account-section-list-renderer",function(){if(kxc===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);kxc=p}p=kxc;return p},{allowedProps:["data"],
mode:1});var pG8;var xeD=function(){var p=_.m.apply(this,arguments)||this;p.enableHandlesAccountMenuSwitcher=_.S("enable_handles_account_menu_switcher");return p};
_.E(xeD,_.m);xeD.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
var ED=xeD;ED.prototype.dataChanged=ED.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ED.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],ED.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.B([_.Ff("#avatar"),_.k("design:type",Object)],ED.prototype,"avatar",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ED.prototype,"dataChanged",null);ED=_.B([_.L({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],ED);
_.kJ()(ED,"ytd-active-account-header-renderer",function(){if(pG8===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);pG8=p}p=pG8;return p},{allowedProps:["data"],
mode:1});var F7H;var N0m;var hO8=function(){return _.m.apply(this,arguments)||this};
_.E(hO8,_.m);hO8.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
hO8.prototype.onBackTap=function(){_.hG(this.hostElement,"yt-menu-back-tapped")};
var XM=hO8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],XM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],XM.prototype,"data",void 0);XM=_.B([_.L({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],XM);
_.kJ()(XM,"ytd-simple-menu-header-renderer",function(){if(N0m===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);N0m=p}p=N0m;return p},{allowedProps:["data"],
mode:2});var lk_;var cp8=function(){return _.m.apply(this,arguments)||this};
_.E(cp8,_.m);var gu=cp8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],gu.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],gu.prototype,"data",void 0);gu=_.B([_.L({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],gu);
_.P(gu,"ytd-comment-video-thumbnail-header-renderer",function(){if(lk_!==void 0)return lk_;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return lk_=p},{mode:1});var akD;var MEk=function(){return _.m.apply(this,arguments)||this};
_.E(MEk,_.m);var Qi=MEk;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Qi.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Qi.prototype,"data",void 0);Qi=_.B([_.L({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],Qi);
_.P(Qi,"ytd-abuse-type-selector-renderer",function(){if(akD!==void 0)return akD;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return akD=p},{mode:1});var DeX;var zz=function(){return _.m.apply(this,arguments)||this};
_.E(zz,_.m);zz.prototype.attached=function(){var p=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){p.additionalContextInput.focusTextInput()})};
zz.prototype.handleAdditionalContextChanged=function(){var p=this;_.sQ(this,"ytd-report-channel-additional-context-update",function(){p.ytdReduxBehavior.dispatch(_.F4({type:"ADDITIONAL_CONTEXT_UPDATED",payload:p.additionalContext}))},300)};
zz.prototype.updateAdditionalContextFromBinding=function(p){this.additionalContext=p.detail.value};
var sD=zz;sD.prototype.handleAdditionalContextChanged=sD.prototype.handleAdditionalContextChanged;_.B([_.u(_.nl),_.k("design:type",Object)],sD.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",String)],sD.prototype,"additionalContext",void 0);_.B([_.H({selector:function(p){return p.reportChannelAbuse.additionalContext}}),
_.k("design:type",String)],sD.prototype,"additionalContextRedux",void 0);_.B([_.H(),_.k("design:type",Object)],sD.prototype,"data",void 0);_.B([_.Ff("yt-text-input-form-field-renderer"),_.k("design:type",Object)],sD.prototype,"additionalContextInput",void 0);_.B([_.W("additionalContext"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sD.prototype,"handleAdditionalContextChanged",null);
sD=_.B([_.L({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],sD);
_.P(sD,"ytd-report-channel-modal-additional-context-renderer",function(){if(DeX!==void 0)return DeX;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return DeX=p},{mode:1});var fkk;var K7H=function(){var p=_.m.apply(this,arguments)||this;p.nextButtonDisabled=null;p.submitEndpoint=null;p.navigationEndpoint=null;p.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return p};
_.E(K7H,_.m);_.l=K7H.prototype;_.l.computeNextButtonData=function(p,x,F){var N={};x&&(N.navigationEndpoint=x);F&&(N.serviceEndpoint=F);p&&p.buttonRenderer&&_.Q5.extend(N,p.buttonRenderer);return N};
_.l.handleReportChannelModalDisableNextButtonAction=function(p){this.setNextButtonIsDisabled(p)};
_.l.handleReportFormEndpointUpdateAction=function(p){this.setNextButtonIsDisabled(!!p.disableSubmitButton);this.resetEndpointData();p.submitEndpoint?this.submitEndpoint=p.submitEndpoint:p.submitNavigationEndpoint&&(this.navigationEndpoint=p.submitNavigationEndpoint)};
_.l.handleSignalActionSubmitForm=function(){var p,x=Object.keys(((p=this.reportChannelAbuseForm)==null?void 0:p.selectedVideoIds)||{}),F;p=((F=this.reportChannelAbuseForm)==null?void 0:F.additionalContext)||"";var N;F=((N=this.reportChannelAbuseForm)==null?void 0:N.impersonatedChannelUrl)||"";var h;if((h=this.data)==null?0:h.submitEndpoint)if(x={impersonated_channel_url:F,text:p,video_ids:x},_.S("web_ytd_report_channel_modal_footer_renderer_command_resolver_ks")){var c;_.fc(this.hostElement,[(c=this.data)==
null?void 0:c.submitEndpoint,x])}else{var M;_.J().resolve(_.RD).resolveCommand((M=this.data)==null?void 0:M.submitEndpoint,{form:Object.assign({},x,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.l.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.l.onYtServiceRequestError=function(p){this.setNextButtonIsDisabled(!1);_.yy(this.hostElement,p.detail.error.message)};
_.l.setNextButtonIsDisabled=function(p){this.set("data.nextButton.buttonRenderer.isDisabled",p)};
_.l.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
var ne=K7H;ne.prototype.onYtServiceRequestError=ne.prototype.onYtServiceRequestError;ne.prototype.onYtServiceRequestCompleted=ne.prototype.onYtServiceRequestCompleted;_.B([_.H(),_.k("design:type",Object)],ne.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],ne.prototype,"nextButtonDisabled",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],ne.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],ne.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ne.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ne.prototype,"submitEndpoint",void 0);_.B([_.H(),_.k("design:type",Object)],ne.prototype,"navigationEndpoint",void 0);_.B([_.H({selector:function(p){return p.reportChannelAbuse}}),
_.k("design:type",Object)],ne.prototype,"reportChannelAbuseForm",void 0);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ne.prototype,"onYtServiceRequestCompleted",null);_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ne.prototype,"onYtServiceRequestError",null);
ne=_.B([_.L({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],ne);
_.P(ne,"ytd-report-channel-modal-footer-renderer",function(){if(fkk!==void 0)return fkk;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return fkk=p},{mode:1});var qVH;var yi=function(){var p=_.m.apply(this,arguments)||this;p.boundOnTapDismissButton=function(){p.closePopup()};
return p};
_.E(yi,_.m);yi.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
yi.prototype.handleDataChanged=function(){_.Hu(this.hostElement)};
yi.prototype.closePopup=function(){_.lA(this.hostElement,"yt-close-popup-action")};
var b9=yi;b9.prototype.handleDataChanged=b9.prototype.handleDataChanged;_.B([_.H(),_.k("design:type",Object)],b9.prototype,"boundOnTapDismissButton",void 0);_.B([_.H(),_.k("design:type",Object)],b9.prototype,"data",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],b9.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],b9.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],b9.prototype,"handleDataChanged",null);b9=_.B([_.L({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],b9);
_.P(b9,"ytd-report-channel-modal-header-renderer",function(){if(qVH!==void 0)return qVH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return qVH=p},{mode:1});var ZD8;var tEm=function(){var p=_.m.apply(this,arguments)||this;p.autoValidate=!1;p.invalid=!1;p.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return p};
_.E(tEm,_.m);_.l=tEm.prototype;_.l.attached=function(){var p=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){p.channelUrlInput.focusTextInput()})};
_.l.disableNextButton=function(p){_.lA(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[p])};
_.l.handleImpersonatedChannelUrlChanged=function(){var p=this;this.disableNextButton(!0);this.invalid=!1;_.sQ(this,"ytd-report-channel-impersonated-channel-update",function(){var x=p.impersonatedChannelUrl.trim();p.ytdReduxBehavior.dispatch(_.F4({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:x}));var F;((F=p.data)==null?0:F.submitEndpoint)&&x&&_.fc(p.hostElement,[p.data.submitEndpoint,{impersonated_channel_url:x}])},500)};
_.l.handleModifyReportFormCommand=function(p){this.invalid=this.get("modifyReportFormCommand.action",p)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.l.updateInvalidFromBinding=function(p){this.invalid=p.detail.value};
_.l.updateImpersonatedChannelUrlFromBinding=function(p){this.impersonatedChannelUrl=p.detail.value};
var Ag=tEm;Ag.prototype.handleImpersonatedChannelUrlChanged=Ag.prototype.handleImpersonatedChannelUrlChanged;_.B([_.u(_.nl),_.k("design:type",Object)],Ag.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Ag.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ag.prototype,"autoValidate",void 0);_.B([_.H(),_.k("design:type",Object)],Ag.prototype,"invalid",void 0);
_.B([_.H(),_.k("design:type",String)],Ag.prototype,"impersonatedChannelUrl",void 0);_.B([_.H({selector:function(p){return p.reportChannelAbuse.impersonatedChannelUrl}}),
_.k("design:type",String)],Ag.prototype,"impersonatedChannelUrlRedux",void 0);_.B([_.H(),_.k("design:type",Object)],Ag.prototype,"data",void 0);_.B([_.Ff("#text-input"),_.k("design:type",Object)],Ag.prototype,"channelUrlInput",void 0);_.B([_.W("impersonatedChannelUrl"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ag.prototype,"handleImpersonatedChannelUrlChanged",null);
Ag=_.B([_.L({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Ag);
_.P(Ag,"ytd-report-channel-modal-impersonation-renderer",function(){if(ZD8!==void 0)return ZD8;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return ZD8=p},{mode:1});var dem;var vme;var u9=function(){return _.m.apply(this,arguments)||this};
_.E(u9,_.m);u9.prototype.onCheckboxToggled=function(p){var x,F,N=(F=_.r((x=this.data)==null?void 0:x.video,_.LFI))==null?void 0:F.videoId;N&&this.ytdReduxBehavior.dispatch(p.target.checked?_.F4({type:"VIDEO_SELECTED",payload:N}):_.F4({type:"VIDEO_UNSELECTED",payload:N}))};
u9.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.R8.Object.defineProperties(u9.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var p,x=(p=this.data)==null?void 0:p.video;if(!x)return{};var F;p=(F=_.r(x,_.LFI))==null?void 0:F.navigationEndpoint;if(!p)return x;_.r(p==null?void 0:p.commandMetadata,_.eq)&&(_.r(p.commandMetadata,_.eq).ignoreNavigation=!0);return x}}});
var Y8=u9;_.B([_.H({reflectToAttribute:!0,selector:function(p,x){return x in p.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.k("design:type",Boolean)],Y8.prototype,"checked",void 0);_.B([_.H(),_.k("design:type",Object)],Y8.prototype,"data",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Y8.prototype,"video",null);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Y8.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Y8.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u(_.nl),_.k("design:type",Object)],Y8.prototype,"ytdReduxBehavior",void 0);Y8=_.B([_.L({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],Y8);
_.P(Y8,"ytd-selectable-video-renderer",function(){if(vme!==void 0)return vme;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return vme=p},{mode:1});var JpH=function(){var p=_.m.apply(this,arguments)||this;p.monitorScroll=!0;return p};
_.E(JpH,_.m);JpH.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
var wu=JpH;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],wu.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],wu.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],wu.prototype,"data",void 0);wu=_.B([_.L({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],wu);
_.P(wu,"ytd-selectable-video-list-renderer",function(){if(dem!==void 0)return dem;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return dem=p},{mode:1});var CnH;_.Ei("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Gz=function(){return _.m.apply(this,arguments)||this};
_.E(Gz,_.m);Gz.prototype.onChange=function(p){if(p=_.os(p).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.S("kevlar_command_handler_migration_killswitch"))_.Kc(this.hostElement,p,this.hostElement);else{p=_.a(p);for(var x=p.next();!x.done;x=p.next())this.ytComponentBehavior.resolveCommand(x.value)}};
Gz.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Gz.prototype.updateDataToggledFromBinding=function(p){this.set("data.toggled",p.detail.value)};
var Vi=Gz;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Vi.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Vi.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Vi.prototype,"data",void 0);_.B([_.H({computed:"isEnabled(data)"}),_.k("design:type",Boolean)],Vi.prototype,"enabled",void 0);Vi=_.B([_.L({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Vi);
_.P(Vi,"ytd-toggle-item-renderer",function(){if(CnH!==void 0)return CnH;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return CnH=p},{mode:1});var SV8;var rp8;var Emm;var WX=function(){var p=_.m.apply(this,arguments)||this;p.setVisible=!1;p.boundOnSubmitButtonClick=function(){p.onSubmitButtonClick()};
p.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return p};
_.E(WX,_.m);WX.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}}}}}};
WX.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
WX.prototype.onSubmitButtonClick=function(){var p;((p=this.data)==null?0:p.submitEndpoint)&&!_.S("enable_ytc_refunds_submit_form_signal_action")&&_.fc(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
WX.prototype.handleSignalActionSubmitForm=function(){var p;((p=this.data)==null?0:p.submitEndpoint)&&_.fc(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.R8.Object.defineProperties(WX.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.hiddenByDefault)&&!this.setVisible}}});
var HX=WX;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],HX.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],HX.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],HX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],HX.prototype,"setVisible",void 0);_.B([_.H(),_.k("design:type",Object)],HX.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],HX.prototype,"surveyFeedbackData",void 0);_.B([_.H(),_.k("design:type",Object)],HX.prototype,"boundOnSubmitButtonClick",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("data","setVisible"),_.k("design:type",Object),_.k("design:paramtypes",[])],HX.prototype,"visibilityHidden",null);HX=_.B([_.JZ({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],HX);
_.P(HX,"yt-flow-footer-renderer",function(){if(Emm===void 0){var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;rp8===void 0&&(rp8=document.createElement("template"));var N=rp8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Emm=p}p=Emm;return p},{mode:2});var XGH=function(){return _.m.apply(this,arguments)||this};
_.E(XGH,_.m);var m5=XGH;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],m5.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],m5.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],m5.prototype,"data",void 0);_.B([_.H({selector:function(p){return p.ypc.surveyFeedbackData}}),
_.k("design:type",Object)],m5.prototype,"surveyFeedbackData",void 0);m5=_.B([_.L({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],m5);
_.P(m5,"ytd-flow-footer-renderer",function(){if(SV8!==void 0)return SV8;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return SV8=p},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var gm_;var QgH;var zOk=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return p};
_.E(zOk,_.m);_.l=zOk.prototype;_.l.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.Xt("multiPageMenuSectionItems")}}};
_.l.handleHideEnclosingAction_=function(p){if(this.data&&this.data.items)for(var x=0;x<this.data.items.length;x++){var F=this.data.items[x].notificationRenderer;if(F&&F.notificationId==p.hideEnclosingAction.notificationId){this.splice("data.items",x,1);_.lA(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.l.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.Is(this.hostElement,"hidden",!0)};
_.l.updateMenu_=function(p){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&p&&!p.doNotRefreshInbox){p=this.data.continuations;for(var x=0;x<p.length;x++)if(p[x].invalidationContinuationData){var F=void 0;var N=(F=p[x].invalidationContinuationData)==null?void 0:F.continuation;break}p=_.Q5.clone(this.data.continuationUpdateEndpoint||null);p.continuation=N;p.click_tracking_params=this.data.trackingParams;_.fc(this.hostElement,[p])}};
_.l.onServiceRequestCompleted_=function(p,x){if(this.data&&(p=x.actions)){x=0;for(var F=p.length;x<F;x++){var N=_.r(p[x],_.$iB);if(!N)break;if((N.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||N.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&N.continuationItems&&this.data.items){var h=this.data.items.length-1;this.data.items[h].continuationItemRenderer&&this.splice.apply(this,["data.items",h,1].concat(N.continuationItems))}}}};
var oW=zOk;oW.prototype.onServiceRequestCompleted_=oW.prototype.onServiceRequestCompleted_;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],oW.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],oW.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],oW.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],oW.prototype,"data",void 0);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Ht]),_.k("design:returntype")],oW.prototype,"onServiceRequestCompleted_",null);oW=_.B([_.JZ({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],oW);
_.kJ()(oW,"yt-multi-page-menu-section-renderer",function(){if(QgH===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;gm_===void 0&&(gm_=document.createElement("template"));var N=gm_;F.call(x,N.content.cloneNode(!0),p.content.firstChild);QgH=p}p=QgH;return p},{allowedProps:["data"],
mode:2});var sgk;var nmc;var ypX=function(){return _.m.apply(this,arguments)||this};
_.E(ypX,_.m);ypX.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.R8.Object.defineProperties(ypX.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.progress)==null?0:this.data.progress*100}}});
var OD=ypX;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],OD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],OD.prototype,"data",void 0);_.B([_.w("data.progress"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],OD.prototype,"showProgressBar",null);
_.B([_.w("data.progress"),_.k("design:type",Number),_.k("design:paramtypes",[])],OD.prototype,"progress",null);OD=_.B([_.JZ({is:"yt-flow-header-renderer",disableElementRegistration:!0})],OD);
_.P(OD,"yt-flow-header-renderer",function(){if(nmc===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;sgk===void 0&&(sgk=document.createElement("template"));var N=sgk;F.call(x,N.content.cloneNode(!0),p.content.firstChild);nmc=p}p=nmc;return p},{mode:2});var bDt;var Apa;var ult=function(){return _.m.apply(this,arguments)||this};
_.E(ult,_.m);ult.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
var j4=ult;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],j4.prototype,"data",void 0);j4=_.B([_.JZ({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],j4);
_.P(j4,"yt-post-confirmation-flow-step-renderer",function(){if(Apa===void 0){var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;bDt===void 0&&(bDt=document.createElement("template"));var N=bDt;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Apa=p}p=Apa;return p},{mode:2});var YVm;var wG8;var GdH=function(){return _.m.apply(this,arguments)||this};
_.E(GdH,_.m);
GdH.prototype.configureRendererStamper=function(){return{"data.userInfo":{id:"user-info",mapping:{cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}},"data.confirmationText":{id:"confirmation-text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.confirmationDetailsHeader":{id:"confirmation-details",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.productDetails":{id:"product-details",mapping:{activityItemRenderer:{component:"yt-activity-item-renderer"}}},
"data.billingDetails":{id:"billing-details",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
var Le=GdH;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Le.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Le.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Le.prototype,"data",void 0);Le=_.B([_.JZ({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Le);
_.P(Le,"yt-refund-confirmation-flow-step-renderer",function(){if(wG8===void 0){var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;YVm===void 0&&(YVm=document.createElement("template"));var N=YVm;F.call(x,N.content.cloneNode(!0),p.content.firstChild);wG8=p}p=wG8;return p},{mode:2});_.iK(yHD);_.iK(bTk);var AHm=_.JR({avatarViewModel:_.zu});_.iK(uVD);var Y6_=_.JR({commentInteractionViewModel:bTk,sharedSubscriptionViewModel:uVD,buttonViewModel:_.nV});_.iK(wWa);_.iK(G5c);_.iK(VGc);_.iK(WRm);_.iK(HTH);var mL_=_.JR({profileIdentityInfoViewModel:_.ZsD,profileInfoViewModel:HTH});_.iK(og_);_.kL(og_,"yt-profile-card-view-model",{propNames:["data"]});var VE_=function(){var p=_.m.apply(this,arguments)||this;p.enableFocusFix=_.S("music_web_enable_focus_on_setting_menu_fix")&&_.nt("IS_MOBILE_WEB",!1);p.covered=!1;p.hideMenu=!1;p.isCommentNotificationOnProfileCard=!1;p.scrolledByTouch=!1;p.disableBackdropFilter=_.S("web_disable_backdrop_filter");p.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return p};
_.E(VE_,_.m);_.l=VE_.prototype;
_.l.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{activeAccountHeaderRenderer:"ytd-active-account-header-renderer",flowHeaderRenderer:"yt-flow-header-renderer",simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer",reportChannelModalHeaderRenderer:"ytd-report-channel-modal-header-renderer"}},"data.sections":{id:"sections",mapping:{additionalContextRenderer:"ytd-report-channel-modal-additional-context-renderer",abuseTypeSelectorRenderer:"ytd-abuse-type-selector-renderer",accountSectionListRenderer:"ytd-account-section-list-renderer",
backgroundPromoRenderer:"ytd-background-promo-renderer",commentVideoThumbnailHeaderRenderer:"ytd-comment-video-thumbnail-header-renderer",impersonationScreenRenderer:"ytd-report-channel-modal-impersonation-renderer",itemSectionRenderer:"ytd-comments",messageRenderer:"ytd-message-renderer",multiPageMenuNotificationSectionRenderer:"yt-multi-page-menu-section-renderer",multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",postConfirmationFlowStepRenderer:"yt-post-confirmation-flow-step-renderer",
refundConfirmationFlowStepRenderer:"yt-refund-confirmation-flow-step-renderer",selectableVideoListRenderer:"ytd-selectable-video-list-renderer",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",toggleItemRenderer:"ytd-toggle-item-renderer",profileCardViewModel:"yt-profile-card-view-model",continuationItemRenderer:"ytd-continuation-item-renderer"},events:!0},"data.footer":{id:"footer",mapping:{multiPageMenuSectionRenderer:"yt-multi-page-menu-section-renderer",reportChannelModalFooterRenderer:"ytd-report-channel-modal-footer-renderer",
flowFooterRenderer:"ytd-flow-footer-renderer"}}}};
_.l.ready=function(){var p=this;this.JSC$17777_containerElement.addEventListener("scroll",function(){p.ytRendererBehavior.markDirty()})};
_.l.attributeChanged=function(p,x){p==="menu-style"&&_.lA(this.hostElement,"yt-multi-page-menu-closed-action",[x])};
_.l.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.p5(this,this.focusOnStampFinished))};
_.l.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.p5(this,this.focusOnStampFinished))};
_.l.reset=function(){this.closeJobId&&(_.E0.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.l.focusOnStampFinished=function(p){p.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.p5(this,this.focusOnStampFinished)),this.doFocus())};
_.l.doFocus=function(){var p=_.KYB(this.sectionsElement);p.length&&p[0].focus()};
_.l.computeMenuStyle=function(p){return p?p.toLowerCase().replace(/_/g,"-"):""};
_.l.computeIsCommentNotificationOnProfileCard=function(p){return _.S("enable_profile_cards_on_comments")&&p.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.l.computeHideMenu=function(p,x){return p||!(!x||!x.showLoadingSpinner)};
_.l.onPopupClosed=function(){this.isPopUpOpen=!1;_.lA(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.l.onPopupOpened=function(p,x){this.isPopUpOpen=!0;x.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.hG(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.F4({type:"CHANNEL_REPORT_RESET"})))};
_.l.onYtNavigate=function(p,x){this.shouldCloseOnNavigateEvent(x.endpoint)&&_.lA(this.hostElement,"yt-close-all-popups-action")};
_.l.handleEndpoint=function(p){p=_.r(p,_.s9);!this.isCommentNotificationOnProfileCard&&p&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17777_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.l.handleActions=function(p){for(var x=0,F=p.length;x<F;x++){var N=_.r(p[x],dQH);N&&this.handleGetMultiPageMenuAction(N);(N=_.r(p[x],_.$iB))&&this.handleAppendContinuationItemsAction(N)}};
_.l.onServiceRequestSentOrCompleted=function(p,x){p.detail&&p.detail.endpoint&&this.handleEndpoint(p.detail.endpoint);x.actions&&this.handleActions(x.actions)};
_.l.handleGetMultiPageMenuAction=function(p){var x=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.n(this.submenuElement).appendChild(x);(p=p.menu.multiPageMenuRenderer)&&this.logSubmenu(p);x.data=p;x.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.l.handleAppendContinuationItemsAction=function(p){if(this.data&&p.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&p.continuationItems&&this.data.sections){var x=this.data.sections.length-1;this.data.sections[x].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),x--);if(this.data.sections[x].multiPageMenuNotificationSectionRenderer&&p.continuationItems){p=_.a(p==null?void 0:p.continuationItems);for(var F=p.next();!F.done;F=p.next())if(F=F.value,_.r(F,Tce)){var N=
void 0,h=void 0,c=void 0,M=void 0,f=void 0;((N=this)==null?0:(h=N.data)==null?0:(c=h.sections)==null?0:(M=c[x])==null?0:(f=M.multiPageMenuNotificationSectionRenderer)==null?0:f.items)&&this.push("data.sections."+x+".multiPageMenuNotificationSectionRenderer.items",F)}else if(_.r(F,_.V_B)||_.r(F,_.hf))this.push("data.sections",F),x++}}};
_.l.logSubmenu=function(p){if(!_.S("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var x=this.ytRendererBehavior.getScreenLayer(),F=_.b0(x),N=_.yR(x);if((p=p.trackingParams)&&F&&N){var h=_.fr(p);_.S("combine_ve_grafts")?_.cl().graftServerVe(p,N,x):_.jz(F,N,h)}}};
_.l.emptySubmenuContainer=function(){for(var p=_.n(this.submenuElement);p.firstChild;)p.removeChild(p.firstChild)};
_.l.onMenuBackTap=function(p){_.hG(this.hostElement,"yt-submenu-closed");p.stopPropagation()};
_.l.onSubmenuClosed=function(p){_.os(p)!==this.hostElement&&(this.covered=!1,_.hG(this.hostElement,"yt-refit"),p.stopPropagation())};
_.l.onRetrieveLocation=function(p,x){x.hasComments&&(x.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),p.stopPropagation())};
_.l.shouldCloseOnNavigateEvent=function(p){if(!p)return!0;if(_.r(p,_.u5Z)||_.r(p,_.YqJ)||_.r(p,_.AnJ)||_.r(p,_.Gj))return!1;var x;return((x=_.r(p==null?void 0:p.commandMetadata,_.eq))==null?0:x.ignoreNavigation)?!1:!0};
_.l.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.l.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.l.refitAfterRender=function(){var p=this;_.jB(this,function(){_.hG(p.hostElement,"yt-refit")})};
var PX=VE_;PX.prototype.refitAfterRender=PX.prototype.refitAfterRender;PX.prototype.onRetrieveLocation=PX.prototype.onRetrieveLocation;PX.prototype.onSubmenuClosed=PX.prototype.onSubmenuClosed;PX.prototype.onMenuBackTap=PX.prototype.onMenuBackTap;PX.prototype.onServiceRequestSentOrCompleted=PX.prototype.onServiceRequestSentOrCompleted;PX.prototype.onYtNavigate=PX.prototype.onYtNavigate;PX.prototype.onPopupOpened=PX.prototype.onPopupOpened;PX.prototype.onPopupClosed=PX.prototype.onPopupClosed;
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],PX.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],PX.prototype,"ytEventForwardingBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],PX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],PX.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],PX.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],PX.prototype,"enableFocusFix",void 0);_.B([_.H(),_.k("design:type",Object)],PX.prototype,"covered",void 0);_.B([_.H({computed:"computeHideMenu(covered, data)"}),_.k("design:type",Object)],PX.prototype,"hideMenu",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.k("design:type",String)],PX.prototype,"menuStyle",void 0);
_.B([_.H({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.k("design:type",Object)],PX.prototype,"isCommentNotificationOnProfileCard",void 0);_.B([_.H(),_.k("design:type",Boolean)],PX.prototype,"isPopUpOpen",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],PX.prototype,"scrolledByTouch",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],PX.prototype,"disableBackdropFilter",void 0);
_.B([_.Ff("#sections"),_.k("design:type",HTMLElement)],PX.prototype,"sectionsElement",void 0);_.B([_.Ff("#spinner"),_.k("design:type",HTMLElement)],PX.prototype,"spinnerElement",void 0);_.B([_.Ff("#header"),_.k("design:type",HTMLElement)],PX.prototype,"headerElement",void 0);_.B([_.Ff("#container"),_.k("design:type",HTMLElement)],PX.prototype,"JSC$17777_containerElement",void 0);_.B([_.Ff("#submenu"),_.k("design:type",HTMLElement)],PX.prototype,"submenuElement",void 0);
_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PX.prototype,"onPopupClosed",null);_.B([_.V("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],PX.prototype,"onPopupOpened",null);_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],PX.prototype,"onYtNavigate",null);
_.B([_.V("yt-service-request-completed"),_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Ht]),_.k("design:returntype")],PX.prototype,"onServiceRequestSentOrCompleted",null);_.B([_.V("yt-menu-back-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],PX.prototype,"onMenuBackTap",null);
_.B([_.V("yt-submenu-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],PX.prototype,"onSubmenuClosed",null);_.B([_.V("yt-retrieve-location"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],PX.prototype,"onRetrieveLocation",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PX.prototype,"refitAfterRender",null);
PX=_.B([_.L({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],PX);
_.P(PX,"ytd-multi-page-menu-renderer",function(){if(F7H!==void 0)return F7H;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return F7H=p},{mode:1});var W7H;var HDc=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return p};
_.E(HDc,_.m);_.l=HDc.prototype;_.l.created=function(){this.showTooltips=!0};
_.l.computeAccessibility_=function(p){return this.get("accessibility.accessibilityData",p)||null};
_.l.onTap=function(){var p=_.Mt(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(p&&p.length===1&&p[0])_.lA(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var x;if((x=this.data)==null?0:x.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var F;((F=this.data)==null?0:F.menuRequest)&&_.fc(this.hostElement,[this.data.menuRequest])}}};
_.l.handleTopbarMenuClosedAction=function(p){var x,F;(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(p)===((x=this.data)==null?void 0:(F=x.icon)==null?void 0:F.iconType)&&this.toggleIconState(!1)};
_.l.toggleIconState=function(p){_.S("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=p)};
_.l.handleUpdateTopbarAvatarAction=function(p){var x;p=(x=_.r(p,Mvm))==null?void 0:x.avatarUrl;var F,N;x=(F=this.data)==null?void 0:(N=F.avatar)==null?void 0:N.thumbnails;p&&x&&(F={thumbnails:[Object.assign({},x[0],{url:p})]},this.set("data.avatar",F))};
_.R8.Object.defineProperties(HDc.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.n(this.hostElement).querySelector("#button")}}});
var Tz=HDc;Tz.prototype.onTap=Tz.prototype.onTap;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Tz.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Tz.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.Oo),_.k("design:type",Object)],Tz.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.u(_.xZJ.YtButtonBehavior),_.k("design:type",Object)],Tz.prototype,"ytButtonBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],Tz.prototype,"data",void 0);_.B([_.Ff("yt-icon-button#button"),_.k("design:type",Object)],Tz.prototype,"iconButton",void 0);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Tz.prototype,"onTap",null);Tz=_.B([_.L({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],Tz);
_.P(Tz,"ytd-topbar-menu-button-renderer",function(){if(W7H!==void 0)return W7H;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return W7H=p},{mode:1});var meH;var om8=function(){return _.m.apply(this,arguments)||this};
_.E(om8,_.m);om8.prototype.getSelected=function(){return this.reasons.selected};
var BX=om8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],BX.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],BX.prototype,"data",void 0);_.B([_.Ff("#reasons"),_.k("design:type",Object)],BX.prototype,"reasons",void 0);BX=_.B([_.L({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],BX);
_.P(BX,"ytd-ad-feedback-content",function(){if(meH!==void 0)return meH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return meH=p},{mode:1});var ODm;var jgc=function(){return _.m.apply(this,arguments)||this};
_.E(jgc,_.m);_.l=jgc.prototype;_.l.onPopupOpened=function(){_.lA(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.l.computeConfirmButton=function(p){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:p.confirmLabel}};
_.l.computeCancelButton=function(p){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:p.cancelLabel}};
_.l.onConfirmTap=function(){var p=this.content.getSelected();p!==void 0&&(p=this.data.reasons[p].endpoint)&&(_.S("web_ytd_ad_feedback_renderer_command_resolver_ks")?_.fc(this.hostElement,[p]):_.J().resolve(_.RD).resolveCommand(p,{form:{element:this.hostElement}}),_.lA(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.l.sendFeedbackSubmitToastAction=function(){var p;(p=this.data)!=null&&p.completionMessage&&_.lA(this.hostElement,"yt-open-popup-action",[_.kO(this.data.completionMessage),this])};
_.l.onCancelTap=function(){_.lA(this.hostElement,"yt-close-popup-action")};
var RW=jgc;RW.prototype.onPopupOpened=RW.prototype.onPopupOpened;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],RW.prototype,"data",void 0);_.B([_.Ff("#content"),_.k("design:type",Object)],RW.prototype,"content",void 0);_.B([_.V("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],RW.prototype,"onPopupOpened",null);
RW=_.B([_.L({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],RW);
_.P(RW,"ytd-ad-feedback-renderer",function(){if(ODm!==void 0)return ODm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return ODm=p},{mode:1});var L7e;var Pn8=function(){return _.m.apply(this,arguments)||this};
_.E(Pn8,_.m);var k8=Pn8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],k8.prototype,"data",void 0);k8=_.B([_.L({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],k8);
_.P(k8,"ytd-ad-info-dialog-content",function(){if(L7e!==void 0)return L7e;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return L7e=p},{mode:1});var T0H;var UD=function(){return _.m.apply(this,arguments)||this};
_.E(UD,_.m);UD.prototype.computeConfirmButton=function(p){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:p.confirmLabel}};
UD.prototype.onConfirmTap=function(){_.lA(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
UD.prototype.computeShouldShowTitle=function(){var p;return!((p=this.data)==null||!p.title)};
UD.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.J().resolve(_.RD).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
var i9=UD;i9.prototype.onPopupClosed=i9.prototype.onPopupClosed;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],i9.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],i9.prototype,"data",void 0);_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],i9.prototype,"onPopupClosed",null);i9=_.B([_.L({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],i9);
_.P(i9,"ytd-ad-info-dialog-renderer",function(){if(T0H!==void 0)return T0H;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return T0H=p},{mode:1});var B0a;var RO8=function(){var p=_.m.apply(this,arguments)||this;p.actionButtonClass="action-button";p.dismissButtonId="dismiss-button";p.dialogDismiss=!0;return p};
_.E(RO8,_.m);_.l=RO8.prototype;_.l.computeInPlayer=function(p){return(p==null?void 0:p.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.l.computedLogo=function(){var p,x;return this.isDarkTheme()?(p=this.data)==null?void 0:p.logoDark:(x=this.data)==null?void 0:x.logo};
_.l.computedHeaderImage=function(){var p,x;return this.isDarkTheme()?(p=this.data)==null?void 0:p.headerImageDark:(x=this.data)==null?void 0:x.headerImage};
_.l.computeLogoIconId=function(){var p,x,F,N=(p=this.computedLogo())==null?void 0:(x=p.sources)==null?void 0:(F=x[0])==null?void 0:F.height;return N&&N%31===0?"logo-icon-with-padding":"logo-icon"};
_.l.computeLogoIconHeight=function(){var p,x,F,N=(p=this.computedLogo())==null?void 0:(x=p.sources)==null?void 0:(F=x[0])==null?void 0:F.height;return N&&N%31===0?"31":"24"};
_.l.onPopupClosed=function(){_.J().resolve(_.fD).dispose()};
_.l.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.l.onShow=function(){this.inPlayer&&_.MB(6)};
_.l.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var p=0;p<this.data.impressionEndpoints.length;p++){var x=_.r(this.data.impressionEndpoints[p],_.XY);x&&this.ytComponentBehavior.resolveCommand(x)}};
_.l.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.lA(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.R8.Object.defineProperties(RO8.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var p,x;return!((p=this.data)==null||!p.headerImageDark)&&!((x=this.data)==null||!x.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.secondaryButton)}}});
var IW=RO8;IW.prototype.onPopupClosed=IW.prototype.onPopupClosed;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],IW.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],IW.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.AA.YtVisibilityBehavior),_.k("design:type",Object)],IW.prototype,"ytVisibilityBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],IW.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],IW.prototype,"actionButtonClass",void 0);_.B([_.H(),_.k("design:type",Object)],IW.prototype,"dismissButtonId",void 0);_.B([_.H(),_.k("design:type",Object)],IW.prototype,"dialogDismiss",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],IW.prototype,"hasHeaderImage",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],IW.prototype,"hasPremiumButton",null);
_.B([_.H({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.k("design:type",Boolean)],IW.prototype,"inPlayer",void 0);_.B([_.Ff("#dismiss-button"),_.k("design:type",HTMLElement)],IW.prototype,"dismissButton",void 0);_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],IW.prototype,"onPopupClosed",null);IW=_.B([_.L({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],IW);
_.P(IW,"ytd-enforcement-message-view-model",function(){if(B0a!==void 0)return B0a;var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return B0a=p},{mode:1});var kdH;var Uea;var iDm=function(){var p=_.m.apply(this,arguments)||this;p.TEST_ONLY={immediateValidation:function(){p.immediateValidation()},
onValidationResponse:function(x){p.onValidationResponse(x)},
onGenerateHandleFromNameResponse:function(x){p.onGenerateHandleFromNameResponse(x)}};
return p};
_.E(iDm,_.m);_.l=iDm.prototype;_.l.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.l.validate=function(){this.immediateValidation()};
_.l.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.l.setHandleInputValue=function(p){this.handleDir=this.getHandleDir(p);this.handleInput.value=p;this.validationState={status:"PENDING"};this.immediateValidation()};
_.l.getHandleDir=function(p){var x=p===""&&!1;return(x=_.hTn.test.call(_.hTn,p))?"rtl":"ltr"};
_.l.onDataChanged=function(){var p,x;this.handleDir=this.getHandleDir((x=(p=this.data)==null?void 0:p.handle)!=null?x:"");var F;this.validationState=((F=this.data)==null?0:F.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var N;((N=this.data)==null?0:N.validateOnInit)&&this.immediateValidation()};
_.l.stopPropagation=function(p){p.stopPropagation()};
_.l.onInput=function(){var p;this.handleDir=this.getHandleDir((p=this.handleInput.value)!=null?p:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.l.onFocusout=function(p){this.handleInput.contains(p.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.l.delayedValidation=function(){var p,x;this.debouncedValidation((x=(p=this.data)==null?void 0:p.validationDelayMs)!=null?x:1E3)};
_.l.immediateValidation=function(){this.debouncedValidation(0)};
_.l.debouncedValidation=function(p){var x=this;_.sQ(this,"debouncedValidation",function(){var F,N=x.staticValidation((F=x.handleInput.value)!=null?F:"");if(N!==void 0)x.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:N};else{var h;if((h=x.data)!=null&&h.validateChannelHandleCommand){x.validationState={status:"LOADING"};var c;x.ytComponentBehavior.resolveCommand(x.data.validateChannelHandleCommand,{form:{handle:(c=x.handleInput.value)!=null?c:""},commandController:{onSuccess:function(M,
f){x.onValidationResponse(f)},
onServerError:function(M,f){x.onValidationServerError(f)}}})}else x.handleUnexpectedValidationError(new _.qE("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",x.data))}},p)};
_.l.staticValidation=function(p){var x;if(((x=this.data)==null?void 0:x.channelHandleStaticValidationParams)!==void 0){x=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(p)&&x.validValueRegexpErrorMessage!==void 0)return x.validValueRegexpErrorMessage;if(x.minLength!==void 0&&p.length<x.minLength&&x.minLengthErrorMessage!==void 0)return x.minLengthErrorMessage;if(x.maxLength!==void 0&&p.length>x.maxLength&&x.maxLengthErrorMessage!==void 0)return x.maxLengthErrorMessage}};
_.l.onValidationResponse=function(p){var x=_.r(p.result,DQ8);x===void 0?this.handleUnexpectedValidationError(new _.qE("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",p)):this.handleValidationResultRenderer(x)};
_.l.onValidationServerError=function(p){this.handleUnexpectedValidationError(new _.qE("ValidateChannelHandle request failed.",p))};
_.l.handleValidationResultRenderer=function(p){if(p.handle===void 0)this.handleUnexpectedValidationError(new _.qE("ChannelHandleValidationResultRenderer does not contain handle.",p));else if(p.handle===this.handleInput.value)switch(p.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:p.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:p.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.qE("Unrecognized ChannelHandleValidationResult",p));break;default:_.Pb(p.result)}};
_.l.handleUnexpectedValidationError=function(p){var x;this.validationState={status:"UNKNOWN",handle:(x=this.handleInput.value)!=null?x:""};_.no(p)};
_.l.stopEventPropagation=function(p){p.stopPropagation()};
_.l.updateHandleOnChannelNameInputChange=function(p){if(!this.wasEdited){var x,F;this.debouncedGenerateHandleFromName(p,(F=(x=this.data)==null?void 0:x.validationDelayMs)!=null?F:1E3)}};
_.l.debouncedGenerateHandleFromName=function(p,x){var F=this;_.sQ(this,"debouncedGenerateHandleFromName",function(){var N;(N=F.data)!=null&&N.validateChannelHandleCommand?F.ytComponentBehavior.resolveCommand(F.data.validateChannelHandleCommand,{form:{name:p},commandController:{onSuccess:function(h,c){F.onGenerateHandleFromNameResponse(c)},
onServerError:function(h,c){_.no(new _.qE("Error calling GenerateHandleFromName",c))}}}):_.no(new _.qE("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",F.data))},x)};
_.l.onGenerateHandleFromNameResponse=function(p){this.wasEdited||((p=_.r(p.result,fV8))?this.setHandleInputValue(p.handle):_.no(new _.qE("Invalid results when generate handle from name")))};
_.R8.Object.defineProperties(iDm.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var p;if(p=this.validationState)p=this.validationState,p=p.status==="OK"||p.status==="UNKNOWN";if(p)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var p;if(((p=this.validationState)==null?void 0:p.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 p,x=(p=this.channelHandleEntity)==null?void 0:p.handleEdit;this.handleDir=this.getHandleDir(x!=null?x:"");return x}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var p,x;if(((p=this.data)==null?void 0:(x=p.channelHandleStaticValidationParams)==null?void 0:x.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
var $8=iDm;$8.prototype.stopEventPropagation=$8.prototype.stopEventPropagation;$8.prototype.onDataChanged=$8.prototype.onDataChanged;$8.prototype.applyHandleEdit=$8.prototype.applyHandleEdit;$8.prototype.onValueChanged=$8.prototype.onValueChanged;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],$8.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],$8.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],$8.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Boolean)],$8.prototype,"wasEdited",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],$8.prototype,"handleDir",void 0);_.B([_.Ff("#handle-input"),_.k("design:type",Object)],$8.prototype,"handleInput",void 0);_.B([_.H(),_.w("validationState"),_.k("design:type",Object),_.k("design:paramtypes",[])],$8.prototype,"value",null);
_.B([_.W("value"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$8.prototype,"onValueChanged",null);_.B([_.w("validationState"),_.k("design:type",Object),_.k("design:paramtypes",[])],$8.prototype,"errorIndicator",null);_.B([_.H({reflectToAttribute:!0}),_.w("errorIndicator"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],$8.prototype,"borderErrorIndicator",null);
_.B([_.H({selectorArgs:["data.channelHandleEntityKey"],selector:function(p,x){return _.M4(p.entities,"channelHandle",x)}}),
_.k("design:type",Object)],$8.prototype,"channelHandleEntity",void 0);_.B([_.w("channelHandleEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],$8.prototype,"handleEdit",null);_.B([_.W("handleEdit"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$8.prototype,"applyHandleEdit",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$8.prototype,"onDataChanged",null);
_.B([_.w("data.channelHandleStaticValidationParams.validValueRegexp"),_.k("design:type",Object),_.k("design:paramtypes",[])],$8.prototype,"validValueRegexp",null);_.B([_.V("yt-service-request-sent"),_.V("yt-service-request-completed"),_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],$8.prototype,"stopEventPropagation",null);$8=_.B([_.L({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],$8);
_.P($8,"ytd-channel-handle-input-renderer",function(){if(Uea!==void 0)return Uea;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Uea=p},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var Ik_=function(){var p=_.m.apply(this,arguments)||this;p.data=null;p.errorMessage=null;p.isLoading=!0;p.hideContainer=!1;p.enableNewChannelCreationOnIdForAll=_.S("enable_new_channel_creation_for_id4all");p.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"};p.testOnly={setErrorMessage:function(x){p.resetErrorState();
p.setErrorState(x)}};
return p};
_.E(Ik_,_.m);_.l=Ik_.prototype;_.l.created=function(){this.logScreenVe()};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.toggleCreateChannelButton();this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.hostElement.parentElement.style.overflowY="auto")};
_.l.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var p;((p=this.zeroStepErrorMessageEntity)==null?0:p.value)&&this.set("errorMessage",_.L1(this.zeroStepErrorMessageEntity.value))};
_.l.onCreateTap=function(){var p=this;if(this.data&&this.data.channelCreationEndpoint){var x,F;if(!((x=this.data.createChannelButton)==null?0:(F=x.buttonRenderer)==null?0:F.isDisabled)){var N;if((N=this.nameInput)!=null&&N.value){this.setLoadingState();var h,c;x=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(h=this.handleInput)==null?void 0:h.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((c=this.handleInput)==null?void 0:c.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:x,commandController:{onSuccess:function(M,f){p.onChannelCreationEndpointSuccess(f);p.obakeImageSource&&_.E$("channelCreatedWithObakeImage",{imageSourceType:p.obakeImageSource})},
onServerError:function(){p.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.l.endpointRequiresServiceRequestAction=function(p){return!!_.r(p,_.Af)||!!_.r(p,Mvm)};
_.l.isNavigateAction=function(p){var x;return!!_.r(p,_.W4)||!!_.r((x=_.r(p,Z_t))==null?void 0:x.command,_.W4)};
_.l.isPlaylistAction=function(p){return!!_.r(p,_.n4)||!!_.r(p,_.wA)};
_.l.onChannelCreationEndpointSuccess=function(p){if(p.createChannelError){var x;this.setErrorState((x=p.createChannelError)==null?void 0:x.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.S("enable_secondary_channel_creation_form")&&p.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(p.navigationEndpoint);if(p.actions){x=_.a(p.actions);for(var F=x.next();!F.done;F=x.next())if(F=F.value,this.endpointRequiresServiceRequestAction(F)&&this.ytComponentBehavior.resolveCommand(F),
this.isNavigateAction(F)){var N=void 0;F=_.r((N=_.r(F,Z_t))==null?void 0:N.command,_.W4);N=void 0;this.isPlaylistAction((N=F)==null?void 0:N.endpoint)&&(_.lA(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),N=void 0,this.ytComponentBehavior.resolveCommand((N=F)==null?void 0:N.endpoint))}}p.actions&&p.actions.some(function(h){var c;return _.r(h,_.W4)||_.r((c=_.r(h,Z_t))==null?void 0:c.command,_.W4)})||_.lA(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.l.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.l.onCancelTap=function(){var p,x,F;if(!((p=this.data)==null?0:(x=p.cancelButton)==null?0:(F=x.buttonRenderer)==null?0:F.isDisabled)){var N,h,c;p=(N=this.data)==null?void 0:(h=N.cancelButton)==null?void 0:(c=h.buttonRenderer)==null?void 0:c.command;if(!p||!_.r(p,_.vUZ)){var M;this.nameInput&&((M=this.data)==null?0:M.name)&&(this.nameInput.value=this.data.name);var f;this.handleInput&&((f=this.data)==null?0:f.channelHandleInput)&&(this.handleInput.data=_.r(this.data.channelHandleInput,K$a));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.l.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.l.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.l.onClearProfilePhotoTap=function(){var p,x,F;((p=this.data)==null?0:(x=p.clearProfilePhotoButton)==null?0:(F=x.buttonRenderer)==null?0:F.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.l.onEditAvatarTap=function(){var p,x,F;((p=this.data)==null?0:(x=p.editAvatarButton)==null?0:(F=x.buttonRenderer)==null?0:F.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.l.setLoadingState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("errorMessage",null)};
_.l.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var p;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((p=this.data)==null?0:p.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.l.setErrorState=function(p){this.resetErrorState();if(p)this.set("errorMessage",p);else{var x;if((x=this.zeroStepErrorMessageEntity)==null?0:x.value)this.set("errorMessage",_.L1(this.zeroStepErrorMessageEntity.value));else{var F;((F=this.data)==null?0:F.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.l.fetchImageBlobWithAlr=function(p,x){x=x===void 0?5:x;var F=this,N,h,c,M,f;return _.D(function(K){switch(K.nextAddress){case 1:return _.q(K,fetch(p,{method:"GET",mode:"cors"}),2);case 2:N=K.yieldResult;if(N.ok){K.jumpTo(3);break}if(x===0)throw Error();h=F.addJitter(Math.pow(2,5-x));return _.q(K,new Promise(function(t){setTimeout(t,h*1E3)}),4);
case 4:return K.return(F.fetchImageBlobWithAlr(p,x-1));case 3:if(!_.wl(N.headers.get("content-type")).split(";").some(function(t){return t.trim()==="text/plain"})){K.jumpTo(5);
break}c=F;M=c.fetchImageBlobWithAlr;return _.q(K,N.text(),6);case 6:return K.return(M.call(c,K.yieldResult,x-1));case 5:return _.q(K,N.blob(),7);case 7:return f=K.yieldResult,K.return(f)}})};
_.l.addJitter=function(p){var x=p*.3*Math.random();Math.random()>.5&&(x*=-1);return p+x};
_.l.openProfilePicturePicker=function(){var p=this,x,F,N,h,c;return _.D(function(M){if(M.nextAddress==1){x=p.data.scottyUploadUrl;if(!x)return M.return();F=document.documentElement.hasAttribute("dark");N=document.body.style.colorScheme;F&&(document.body.style.colorScheme="dark");h=l_H(cAH(h0H(I1e(F?"dark":"light")),function(f){var K,t,d,v,C;return _.D(function(X){if(X.nextAddress==1)return K=_.rM(X68(new y9(f.photoUrl,!1)).build(),"alr","yes"),p.obakeImageSource=p.pictureChangeSourceToObakeImageSourceType(f.photoSource),
_.KM(X,2),p.setLoadingState(),_.q(X,p.fetchImageBlobWithAlr(K),4);if(X.nextAddress!=2)return t=X.yieldResult,d=new FileReader,d.addEventListener("load",function(){var Q,b,A,Y,O,Fw;return _.D(function(R){if(R.nextAddress==1){if(t.size>15728640)return p.setErrorState((Q=p.data)==null?void 0:Q.imageSizeErrorMessage),_.no(Error("hl")),R.return();if(!d.result)return p.setErrorState((b=p.data)==null?void 0:b.genericImageLoadErrorMessage),_.no(Error("il")),R.return();A=d.result;_.KM(R,2);return _.q(R,OTX(t,
x),4)}if(R.nextAddress!=2)return Y=R.yieldResult,p.handleImageUpdatedAction(A,Y),p.resetErrorState(),_.ub(R,0);O=_.v9(R);p.setErrorState((Fw=p.data)==null?void 0:Fw.uploadErrorMessage);if(O instanceof Error)_.zj(O);else{var ld=new _.qE(JSON.stringify(O));_.zj(ld)}_.JB(R)})}),d.readAsDataURL(t),_.ub(X,0);
v=_.v9(X);p.setErrorState((C=p.data)==null?void 0:C.genericImageLoadErrorMessage);v instanceof Error?_.zj(v):_.s$(new _.qE(JSON.stringify(v)));_.JB(X)})}),function(){p.hideContainer=!1;
document.body.style.colorScheme=N});
_.KM(M,2);return _.q(M,h.openPicker(),4)}if(M.nextAddress!=2)return _.ub(M,0);_.v9(M);p.setErrorState((c=p.data)==null?void 0:c.selectImageErrorMessage);_.JB(M)})};
_.l.pictureChangeSourceToObakeImageSourceType=function(p){switch(p){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.l.logScreenVe=function(){_.F8(_.cl(),124448)};
_.l.graftServerVe=function(){var p=_.yR(),x,F,N=(x=this.data)==null?void 0:(F=x.loggingDirectives)==null?void 0:F.trackingParams;N&&p&&(this.channelCreationFormVe=_.cl().graftServerVe(N,p),p={visualElement:this.channelCreationFormVe},_.hD().reportShown(p))};
_.l.isNameChanged=function(p){var x;return((x=this.data)==null?void 0:x.name)!==p};
_.l.isHandleChanged=function(p){var x,F=_.r((x=this.data)==null?void 0:x.channelHandleInput,K$a);return F&&p?F.handle!==p:!1};
_.l.handleImageUpdatedAction=function(p,x){this.hideContainer=!1;this.previewDataUrl=p;this.encryptedBlobId=x};
_.l.handleImageSelectionErrorAction=function(p){this.hideContainer=!1;this.setErrorState(p)};
_.l.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.l.showContainer=function(){this.hideContainer=!1};
_.l.maybeWipeZeroStepErrorMessage=function(){var p,x=(p=this.data)==null?void 0:p.zeroStepErrorMessageEntityKey,F;x&&((F=this.zeroStepErrorMessageEntity)==null?0:F.value)&&this.ytdReduxBehavior.dispatch(_.KV("stringEntity",x,{key:x,value:""}))};
_.R8.Object.defineProperties(Ik_.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 p;return((p=this.photoThumbnail)==null?0:p.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 p;return!((p=this.data)==null||!p.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.descriptionInfo}}});
var e4=Ik_;e4.prototype.dataChanged=e4.prototype.dataChanged;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],e4.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],e4.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],e4.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],e4.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],e4.prototype,"errorMessage",void 0);
_.B([_.H(),_.k("design:type",Object)],e4.prototype,"isLoading",void 0);_.B([_.H(),_.k("design:type",String)],e4.prototype,"previewDataUrl",void 0);_.B([_.H(),_.k("design:type",Number)],e4.prototype,"obakeImageSource",void 0);_.B([_.H(),_.k("design:type",Object)],e4.prototype,"hideContainer",void 0);_.B([_.Ff("#title-input"),_.k("design:type",Object)],e4.prototype,"nameInput",void 0);_.B([_.Ff("#handle-input"),_.k("design:type",Object)],e4.prototype,"handleInput",void 0);
_.B([_.H(),_.k("design:type",Boolean)],e4.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.B([_.H({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.pBd}),_.k("design:type",Object)],e4.prototype,"zeroStepErrorMessageEntity",void 0);_.B([_.w("data","data.isDefaultProfilePhoto","previewDataUrl"),_.k("design:type",Object),_.k("design:paramtypes",[])],e4.prototype,"photoThumbnail",null);
_.B([_.w("data","data.isDefaultProfilePhoto","photoThumbnail"),_.k("design:type",Object),_.k("design:paramtypes",[])],e4.prototype,"userSetPhotoThumbnailUrl",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],e4.prototype,"hideProfilePhotoButtonLayer",null);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],e4.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.B([_.cT("data","zeroStepErrorMessageEntity"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],e4.prototype,"dataChanged",null);_.B([_.H({reflectToAttribute:!0}),_.w("data.descriptionInfo","zeroStepErrorMessageEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],e4.prototype,"description",null);e4=_.B([_.L({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],e4);
_.P(e4,"ytd-channel-creation-dialog-renderer",function(){if(kdH!==void 0)return kdH;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return kdH=p},{mode:1});var $eH;var pm=function(){var p=_.m.apply(this,arguments)||this;p.isLoading=!1;p.isDisabled=!1;return p};
_.E(pm,_.m);pm.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
pm.prototype.updateDisabled=function(){var p;this.isDisabled=this.isLoading||((p=this.handleInput)==null?void 0:p.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
pm.prototype.onSaveClick=function(){var p=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var x;((x=this.data)==null?void 0:x.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 F;if((F=p.data)==null?0:F.nextEndpoint){var N;p.ytComponentBehavior.resolveCommand((N=p.data)==null?void 0:N.nextEndpoint)}else p.isLoading=
!1,p.closeDialog()},
onServerError:function(){p.isLoading=!1;p.handleInput.validate();var F;p.errorMessage=(F=p.data)==null?void 0:F.errorMessage}}}))}};
pm.prototype.closeDialog=function(){_.lA(this.hostElement,"yt-close-popup-action",[this.is])};
var xy=pm;xy.prototype.updateDisabled=xy.prototype.updateDisabled;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],xy.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],xy.prototype,"data",void 0);_.B([_.Ff("#handle-input"),_.k("design:type",Object)],xy.prototype,"handleInput",void 0);_.B([_.W("isLoading"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xy.prototype,"updateDisabled",null);
xy=_.B([_.L({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],xy);
_.P(xy,"ytd-channel-handle-edit-dialog-renderer",function(){if($eH!==void 0)return $eH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return $eH=p},{mode:1});var eOD;var pPa=function(){return _.m.apply(this,arguments)||this};
_.E(pPa,_.m);pPa.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var FI=pPa;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],FI.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],FI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],FI.prototype,"data",void 0);FI=_.B([_.L({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],FI);
_.P(FI,"ytd-channel-switcher-footer-renderer",function(){if(eOD!==void 0)return eOD;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return eOD=p},{mode:1});var xba;var Fka;var NzD=function(){return _.m.apply(this,arguments)||this};
_.E(NzD,_.m);NzD.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
var Nl=NzD;Nl.prototype.onIronChange=Nl.prototype.onIronChange;_.B([_.H(),_.k("design:type",Object)],Nl.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!1}),_.k("design:type",Function)],Nl.prototype,"onDontAskAgainChanged",void 0);_.B([_.Ff("#checkbox"),_.k("design:type",Object)],Nl.prototype,"checkbox",void 0);_.B([_.V("iron-change"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Nl.prototype,"onIronChange",null);
Nl=_.B([_.L({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],Nl);
_.P(Nl,"ytd-identity-prompt-footer-renderer",function(){if(Fka!==void 0)return Fka;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Fka=p},{mode:1});var hqc=function(){var p=_.m.apply(this,arguments)||this;p.dontAskAgain=!1;p.showPopup=!1;p.boundDontAskAgainChanged=function(x){p.dontAskAgainChanged(x)};
p.boundOnAccountItemTap=function(x){p.onAccountItemTap(x)};
return p};
_.E(hqc,_.m);_.l=hqc.prototype;
_.l.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{accountItemSectionRenderer:{component:"ytd-account-item-section-renderer",properties:{onAccountItemTap:"[[boundOnAccountItemTap]]"}}}},"data.header":{id:"header",mapping:{simpleMenuHeaderRenderer:"ytd-simple-menu-header-renderer"}},"data.footer":{id:"footer",mapping:{channelSwitcherFooterRenderer:"ytd-channel-switcher-footer-renderer",identityPromptFooterRenderer:{component:"ytd-identity-prompt-footer-renderer",properties:{onDontAskAgainChanged:"[[boundDontAskAgainChanged]]"}}}}}};
_.l.ready=function(){var p=this;_.n(this.hostElement).querySelector("#container").addEventListener("scroll",function(){p.ytRendererBehavior.markDirty()})};
_.l.dontAskAgainChanged=function(p){this.dontAskAgain=p};
_.l.onAccountItemTap=function(p){if(p){var x={};this.dontAskAgain&&(x={dont_ask_again:this.dontAskAgain});_.yK(p,x)}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.l.redirectOnlyAccount=function(p){p.sections&&p.sections.length>0&&(p=_.r(p.sections[0],_.U8b),(p==null?0:p.contents)&&(p==null?void 0:p.contents.length)<=1?(p=_.VL(window.location.href),(p==null?0:p.next)&&_.Zck(p.next)?_.yK(p.next):_.yK("/")):this.showPopup=!0)};
var hN=hqc;hN.prototype.dataChanged=hN.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],hN.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],hN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],hN.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!1}),_.k("design:type",Object)],hN.prototype,"dontAskAgain",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],hN.prototype,"showPopup",void 0);_.B([_.H({reflectToAttribute:!1}),_.k("design:type",Object)],hN.prototype,"boundDontAskAgainChanged",void 0);_.B([_.H({reflectToAttribute:!1}),_.k("design:type",Object)],hN.prototype,"boundOnAccountItemTap",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hN.prototype,"dataChanged",null);
hN=_.B([_.L({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],hN);
_.P(hN,"ytd-channel-switcher-renderer",function(){if(xba!==void 0)return xba;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return xba=p},{mode:1});var lHc;var cED=function(){return _.m.apply(this,arguments)||this};
_.E(cED,_.m);_.R8.Object.defineProperties(cED.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
var lQ=cED;_.B([_.H(),_.k("design:type",Object)],lQ.prototype,"data",void 0);_.B([_.w("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],lQ.prototype,"steps",null);lQ=_.B([_.L({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],lQ);
_.P(lQ,"ytd-channel-transfer-stepper-renderer",function(){if(lHc!==void 0)return lHc;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return lHc=p},{mode:1});var aHH;var MWk=function(){var p=_.m.apply(this,arguments)||this;p.data=null;p.isError=!1;p.isLoading=!1;return p};
_.E(MWk,_.m);_.l=MWk.prototype;_.l.configureRendererStamper=function(){return{"data.personalAccountTile.selectButton":{id:"personal-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.brandAccountTile.selectButton":{id:"brand-account-tile-select-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.l.computeProfileName=function(p){return p?p.givenNameValue+" "+p.familyNameValue:""};
_.l.onYtServiceRequestSent=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.set("isLoading",!0);this.set("isError",!1)};
_.l.onYtServiceRequestError=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.set("isLoading",!1);this.set("isError",!0)};
var c_=MWk;c_.prototype.onYtServiceRequestError=c_.prototype.onYtServiceRequestError;c_.prototype.onYtServiceRequestSent=c_.prototype.onYtServiceRequestSent;c_.prototype.dataChanged=c_.prototype.dataChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],c_.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],c_.prototype,"data",void 0);
_.B([_.H({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.k("design:type",String)],c_.prototype,"profileName",void 0);_.B([_.H(),_.k("design:type",Object)],c_.prototype,"isError",void 0);_.B([_.H(),_.k("design:type",Object)],c_.prototype,"isLoading",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],c_.prototype,"dataChanged",null);
_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],c_.prototype,"onYtServiceRequestSent",null);_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],c_.prototype,"onYtServiceRequestError",null);c_=_.B([_.L({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],c_);
_.P(c_,"ytd-channel-warm-welcome-cont-renderer",function(){if(aHH!==void 0)return aHH;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return aHH=p},{mode:1});var Dba;var fHX=function(){var p=_.m.apply(this,arguments)||this;p.data=null;return p};
_.E(fHX,_.m);fHX.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
fHX.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
var a2=fHX;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],a2.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],a2.prototype,"data",void 0);a2=_.B([_.L({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],a2);
_.P(a2,"ytd-channel-warm-welcome-renderer",function(){if(Dba!==void 0)return Dba;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Dba=p},{mode:1});var Kke;var qIk=function(){return _.m.apply(this,arguments)||this};
_.E(qIk,_.m);_.R8.Object.defineProperties(qIk.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.authorThumbnail)||{}}}});
var Ml=qIk;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ml.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ml.prototype,"data",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ml.prototype,"thumbnailDetails",null);Ml=_.B([_.L({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Ml);
_.P(Ml,"ytd-comment-preview-renderer",function(){if(Kke!==void 0)return Kke;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Kke=p},{mode:1});var ZIH;var tWk=function(){return _.m.apply(this,arguments)||this};
_.E(tWk,_.m);tWk.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.R8.Object.defineProperties(tWk.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.submitButton}}});
var D4=tWk;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],D4.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],D4.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],D4.prototype,"data",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],D4.prototype,"submitButton",null);D4=_.B([_.L({is:"ytd-notice-renderer",disableElementRegistration:!0})],D4);
_.P(D4,"ytd-notice-renderer",function(){if(ZIH!==void 0)return ZIH;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return ZIH=p},{mode:1});var dbm;var vKX=function(){return _.m.apply(this,arguments)||this};
_.E(vKX,_.m);vKX.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
var fm=vKX;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],fm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],fm.prototype,"data",void 0);fm=_.B([_.L({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],fm);
_.P(fm,"ytd-preview-comment-dialog-content",function(){if(dbm!==void 0)return dbm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return dbm=p},{mode:1});var JEX;var CJe=function(){return _.m.apply(this,arguments)||this};
_.E(CJe,_.m);CJe.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
CJe.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
var Km=CJe;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Km.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Km.prototype,"data",void 0);Km=_.B([_.L({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],Km);
_.P(Km,"ytd-preview-comment-dialog-renderer",function(){if(JEX!==void 0)return JEX;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return JEX=p},{mode:1});var SIH;var rEm=_.S("web_button_rework")&&_.nt("BUTTON_REWORK")||_.S("web_button_rework_with_live"),EKt=function(){var p=_.m.apply(this,arguments)||this;p.selectedAmountIndex=1;p.privacyCheckboxValue=!1;p.useAmsterdamStyle=rEm;p.amountPlaceholderIndex=-1;return p};
_.E(EKt,_.m);_.l=EKt.prototype;_.l.onAmountClick=function(p){this.selectedAmountIndex=_.n(this.hostElement).querySelector("#amounts").indexForElement(p.currentTarget)};
_.l.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.lA(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.l.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.lA(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.lA(this.hostElement,"yt-close-popup-action",[this.is]);var p;(p=_.Pt())==null||p.getPlayerPromise().then(function(x){x.pauseVideo()})}};
_.l.donationCallback=function(p){p.success?(this.hostElement.hasAttribute("live-chat")&&p.response&&p.response.data&&p.response.data.actions&&_.lA(this.hostElement,"yt-live-chat-open-popup",[p.response.data.actions[0]]),_.lA(this.hostElement,"yt-close-popup-action",[this.is]),_.lA(this.hostElement,"yt-live-chat-close-buy-flow")):p.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(p.errorMessageRenderer)};
_.l.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.n(this.hostElement).querySelector("#custom-amount-input").focus()};
_.l.updateConfirmationDialogTextWithAmount=function(p){var x=this.getConfirmDialogRuns();x&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(x),"text"],this.getFormattedAmount(p))};
_.l.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.l.getAmountPlaceholderIndex=function(p){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=p.findIndex(function(x){return x.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.l.getFormattedAmount=function(p){var x;return(new _.Wi(4,((x=this.data)==null?void 0:x.currencyCode)||"")).format(p)};
_.l.isAmountValid=function(p){if(p==="")return!1;p=Number(p)*1E6;var x=this.get("minAmountMicros",this.data),F=this.get("maxAmountMicros",this.data);return x&&p<x||F&&p>F?!1:!0};
_.l.setInputError=function(){this.shouldShowValidationError?_.n(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.n(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.l.setInitialCheckboxValue=function(){var p;this.privacyCheckboxValue=!((p=this.data)==null||!p.privacyCheckboxInitialState)};
_.l.updateCustomAmountInputFromBinding=function(p){this.customAmountInput=p.detail.value};
_.l.updatePrivacyCheckboxValueFromBinding=function(p){this.privacyCheckboxValue=p.detail.value};
_.R8.Object.defineProperties(EKt.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var p=this,x,F;return((x=this.data)==null?void 0:(F=x.suggestedAmounts)==null?void 0:F.map(function(N,h){return{buttonRenderer:{style:p.selectedAmountIndex===h?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:N.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 p;return!((p=this.data)==null||!p.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 p=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(p&&this.amountMicros!==null)return Object.assign({},p,{ypcGetCartEndpoint:Object.assign({},p.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 p=this.get("confirmLargeAmount",this.data);if(p&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),p}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var p=this.get("donateButton.buttonRenderer",this.data);if(p)return Object.assign({},p,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
var ql=EKt;ql.prototype.setInitialCheckboxValue=ql.prototype.setInitialCheckboxValue;ql.prototype.setInputError=ql.prototype.setInputError;ql.prototype.setFocusOnCustomAmountInput=ql.prototype.setFocusOnCustomAmountInput;_.B([_.u(maH),_.k("design:type",Object)],ql.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ql.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ql.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ql.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],ql.prototype,"selectedAmountIndex",void 0);_.B([_.H(),_.k("design:type",String)],ql.prototype,"customAmountInput",void 0);_.B([_.H(),_.k("design:type",Object)],ql.prototype,"privacyCheckboxValue",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],ql.prototype,"useAmsterdamStyle",void 0);_.B([_.W("customAmount"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ql.prototype,"setFocusOnCustomAmountInput",null);_.B([_.w("data","selectedAmountIndex"),_.k("design:type",Array),_.k("design:paramtypes",[])],ql.prototype,"suggestedAmountButtons",null);
_.B([_.w("data","selectedAmountIndex"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ql.prototype,"isCustomAmountSelected",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ql.prototype,"showPrivacyCheckbox",null);_.B([_.w("data","selectedAmountIndex","customAmount"),_.k("design:type",Object),_.k("design:paramtypes",[])],ql.prototype,"amountMicros",null);
_.B([_.w("isCustomAmountSelected","customAmountInput"),_.k("design:type",Object),_.k("design:paramtypes",[])],ql.prototype,"customAmount",null);_.B([_.w("customAmount"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ql.prototype,"shouldShowValidationError",null);_.B([_.w("customAmount"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ql.prototype,"isDonateButtonEnabled",null);
_.B([_.w("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.k("design:type",Object),_.k("design:paramtypes",[])],ql.prototype,"donateCommand",null);_.B([_.w("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.k("design:type",Object),_.k("design:paramtypes",[])],ql.prototype,"donateCommandWithConfirmation",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],ql.prototype,"largeDonationThreshold",null);
_.B([_.w("customAmount","donateCommand","amountMicros"),_.k("design:type",Object),_.k("design:paramtypes",[])],ql.prototype,"confirmLargeAmountCommand",null);_.B([_.w("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.k("design:type",Object),_.k("design:paramtypes",[])],ql.prototype,"donateButtonRenderer",null);_.B([_.W("shouldShowValidationError"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ql.prototype,"setInputError",null);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ql.prototype,"setInitialCheckboxValue",null);ql=_.B([_.L({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],ql);
_.P(ql,"ytd-donation-amount-picker-renderer",function(){if(SIH!==void 0)return SIH;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer">\n      </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.campaignTitle)]]\n        </div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.campaignSubtitle)]]\n        </div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">\n            [[getSimpleString(data.campaignDescription)]]\n          </div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">\n        [[getSimpleString(data.campaignDescription)]]\n      </div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer">\n      </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return SIH=p},{mode:1});var XPe;var gK8=function(){return _.m.apply(this,arguments)||this};
_.E(gK8,_.m);var Z4=gK8;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Z4.prototype,"ytComponentBehavior",void 0);_.B([_.H({}),_.k("design:type",Object)],Z4.prototype,"data",void 0);Z4=_.B([_.L({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],Z4);
_.P(Z4,"ytd-donation-post-transaction-content",function(){if(XPe!==void 0)return XPe;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return XPe=p},{mode:1});var Qm8;var zqk=function(){return _.m.apply(this,arguments)||this};
_.E(zqk,_.m);zqk.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var tN=zqk;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],tN.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],tN.prototype,"ytRendererBehavior",void 0);_.B([_.H({}),_.k("design:type",Object)],tN.prototype,"data",void 0);tN=_.B([_.L({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],tN);
_.P(tN,"ytd-donation-post-transaction-renderer",function(){if(Qm8!==void 0)return Qm8;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Qm8=p},{mode:1});var smm;var nKH;var yE_=function(){return _.m.apply(this,arguments)||this};
_.E(yE_,_.m);yE_.prototype.computeIsStreamingProvider=function(p){return!!p.isStreamingShelf};
yE_.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
var d7=yE_;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],d7.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],d7.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],d7.prototype,"data",void 0);_.B([_.H({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],d7.prototype,"isStreamingProvider",void 0);
d7=_.B([_.L({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],d7);
_.P(d7,"ytd-media-provider-renderer",function(){if(nKH!==void 0)return nKH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return nKH=p},{mode:1});var bIH;var AEH=function(){return _.m.apply(this,arguments)||this};
_.E(AEH,_.m);AEH.prototype.observeLightsourcePalette=function(){var p,x=(p=this.data)==null?void 0:p.vibrantsourceColorPaletteData;x&&_.S3(this.hostElement,x)};
var v_=AEH;v_.prototype.observeLightsourcePalette=v_.prototype.observeLightsourcePalette;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],v_.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],v_.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],v_.prototype,"data",void 0);
_.B([_.W("data.vibrantsourceColorPaletteData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],v_.prototype,"observeLightsourcePalette",null);v_=_.B([_.L({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],v_);
_.P(v_,"ytd-streaming-pop-up-dialog",function(){if(bIH!==void 0)return bIH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return bIH=p},{mode:1});var JN=function(){return _.m.apply(this,arguments)||this};
_.E(JN,_.m);JN.prototype.onPopupOpened_=function(){var p;if((p=this.data)==null?0:p.serviceEndpoint)_.S("web_ytd_brandconnect_popup_renderer_command_resolver_ks")?_.fc(this.hostElement,[this.data.serviceEndpoint]):_.J().resolve(_.RD).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
JN.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
JN.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.content":{id:"content",mapping:{streamingPopUpDialog:{component:"ytd-streaming-pop-up-dialog"}}}}};
var Cm=JN;Cm.prototype.onPopupOpened_=Cm.prototype.onPopupOpened_;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Cm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.Vw),_.k("design:type",Object)],Cm.prototype,"ytContinuationHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Cm.prototype,"data",void 0);
_.B([_.V("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Cm.prototype,"onPopupOpened_",null);Cm=_.B([_.L({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],Cm);
_.P(Cm,"ytd-brandconnect-popup-renderer",function(){if(smm!==void 0)return smm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return smm=p},{mode:1});var uia;var YI8=function(){return _.m.apply(this,arguments)||this};
_.E(YI8,_.m);_.l=YI8.prototype;_.l.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){for(var p=0;p<this.getOptionRenderers().length;p++)this.notifyPath("data.options."+p+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+p+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.l.updateSubmitButton=function(p){this.set("data.submitButton.buttonRenderer.isDisabled",!p)};
_.l.computeAlt=function(p){return _.Pi(p)};
_.l.onDismissTap=function(){_.lA(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.J().resolve(_.RD).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.l.getOptionRenderers=function(p){return(p=p||this.data)&&p.options?p.options.reduce(function(x,F){F.checkboxSurveyOptionRenderer&&x.push(F.checkboxSurveyOptionRenderer);return x},[]):[]};
_.l.onOptionChange=function(p){var x=this,F=!1;if(p.detail.checked)for(var N=this.getOptionRenderers().find(function(f){return f.value===p.detail.value}),h=this.getOptionRenderers(),c=0;c<h.length;c++){var M=h[c];
this.notifyPath("data.options."+c+".checkboxSurveyOptionRenderer.checked");M.checked&&((N==null?0:N.isExclusiveOption)?!M.isExclusiveOption:M.isExclusiveOption)?this.set("data.options."+c+".checkboxSurveyOptionRenderer.checked",!1):M.checked&&(F=!0)}else F=this.getOptionRenderers().some(function(f,K){x.notifyPath("data.options."+K+".checkboxSurveyOptionRenderer.checked");return f.checked});
this.updateSubmitButton(F)};
_.l.onSubmitTap=function(){var p=this.getOptionRenderers().filter(function(c){return c.checked});
if(p.length!==0){var x=p.map(function(c){return c.responseEndpoint});
p=[];for(var F=1;F<x.length;F++){var N=void 0,h=(N=_.r(x[F],_.ua))==null?void 0:N.feedbackToken;h&&p.push(h)}x=[x[0]];p.length&&x.push({extra_feedback_tokens:p});_.fc(this.hostElement,x);_.lA(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);p=this.data&&this.data.submitActions||[];if(_.S("kevlar_command_handler_migration_killswitch"))_.Kc(this.hostElement,p,this.hostElement);else for(p=_.a(p),x=p.next();!x.done;x=p.next())this.ytComponentBehavior.resolveCommand(x.value)}};
var Sk=YI8;Sk.prototype.onOptionChange=Sk.prototype.onOptionChange;Sk.prototype.dataChanged=Sk.prototype.dataChanged;_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],Sk.prototype,"ytEventForwardingBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Sk.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Sk.prototype,"ytComponentBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Sk.prototype,"ytRendererBehavior",void 0);_.B([_.u(lgX),_.k("design:type",Object)],Sk.prototype,"ytdHatsSurveyBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Sk.prototype,"data",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sk.prototype,"dataChanged",null);
_.B([_.V("ytd-checkbox-survey-option-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Sk.prototype,"onOptionChange",null);Sk=_.B([_.L({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Sk);
_.P(Sk,"ytd-checkbox-survey-renderer",function(){if(uia!==void 0)return uia;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return uia=p},{mode:1});var wP8;var GC_;var VWm=function(){return _.m.apply(this,arguments)||this};
_.E(VWm,_.m);var r7=VWm;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);_.B([_.u(hHm),_.k("design:type",Object)],r7.prototype,"ytdDismissalReasonBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],r7.prototype,"data",void 0);r7=_.B([_.L({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],r7);
_.P(r7,"ytd-dismissal-reason-text-renderer",function(){if(GC_!==void 0)return GC_;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return GC_=p},{mode:1});var Wk8;var HIm=function(){return _.m.apply(this,arguments)||this};
_.E(HIm,_.m);var ES=HIm;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.B([_.u(hHm),_.k("design:type",Object)],ES.prototype,"ytdDismissalReasonBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ES.prototype,"data",void 0);ES=_.B([_.L({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],ES);
_.P(ES,"ytd-dismissal-reason-video-renderer",function(){if(Wk8!==void 0)return Wk8;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Wk8=p},{mode:1});var mb8=function(){var p=_.m.apply(this,arguments)||this;p.darkerDarkTheme=_.S("web_darker_dark_theme");return p};
_.E(mb8,_.m);_.l=mb8.prototype;_.l.created=function(){this.selectedFeedbackTokens=new PF};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.l.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.l.onDismissalReasonSelected=function(p,x){_.hG(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(x);this.hasReasonsSelected=!0};
_.l.onDismissalReasonDeselected=function(p,x){_.hG(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(x);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.l.onCancelTap=function(){_.lA(this.hostElement,"yt-close-popup-action")};
_.l.onSubmitTap=function(){var p={feedback_tokens:Array.from(this.selectedFeedbackTokens.values())};_.fc(this.hostElement,[this.data.submitFeedbackEndpoint,p]);_.lA(this.hostElement,"yt-close-popup-action")};
var XI=mb8;XI.prototype.onDismissalReasonDeselected=XI.prototype.onDismissalReasonDeselected;XI.prototype.onDismissalReasonSelected=XI.prototype.onDismissalReasonSelected;XI.prototype.dataChanged=XI.prototype.dataChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],XI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],XI.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],XI.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Boolean)],XI.prototype,"hasReasonsSelected",void 0);_.B([_.H(),_.k("design:type",PF)],XI.prototype,"selectedFeedbackTokens",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],XI.prototype,"darkerDarkTheme",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XI.prototype,"dataChanged",null);
_.B([_.V("yt-dismissal-reason-selected"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,String]),_.k("design:returntype")],XI.prototype,"onDismissalReasonSelected",null);_.B([_.V("yt-dismissal-reason-deselected"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,String]),_.k("design:returntype")],XI.prototype,"onDismissalReasonDeselected",null);XI=_.B([_.L({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],XI);
_.P(XI,"ytd-dismissal-follow-up-renderer",function(){if(wP8!==void 0)return wP8;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return wP8=p},{mode:1});var oKH;var OIa=function(){return _.m.apply(this,arguments)||this};
_.E(OIa,_.m);_.l=OIa.prototype;_.l.onCheckedChange=function(){this.multiselect||_.hG(this.hostElement,"yt-feedback-single-select-changed");_.n(this.hostElement).querySelector("#freeform").focus();_.hG(this.hostElement,"yt-refit")};
_.l.showTextBox=function(p,x){return p&&x};
_.l.dataChanged=function(){this.data&&(this.data.resultText===void 0&&this.set("data.resultText",""),this.data.checked===void 0&&this.set("data.checked",!1),this.data.allowFreeTextInput===void 0&&this.set("data.allowFreeTextInput",!1))};
_.l.updateDataCheckedFromBinding=function(p){this.set("data.checked",p.detail.value)};
_.l.updateDataResultTextFromBinding=function(p){this.set("data.resultText",p.detail.value)};
var g7=OIa;g7.prototype.dataChanged=g7.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],g7.prototype,"data",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],g7.prototype,"multiselect",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],g7.prototype,"dataChanged",null);
g7=_.B([_.L({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],g7);
_.P(g7,"ytd-feedback-option-renderer",function(){if(oKH!==void 0)return oKH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return oKH=p},{mode:1});var jmc;var Lkt=function(){return _.m.apply(this,arguments)||this};
_.E(Lkt,_.m);Lkt.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
Lkt.prototype.onSingleSelectCheckedChanged=function(p){p=_.os(p);for(var x=0;x<this.data.options.length;x++)if(p.data!==_.r(this.data.options[x],ph8)){var F="data.options."+x+".feedbackOptionRenderer.checked";this.notifyPath(F);this.set(F,!1)}};
var QM=Lkt;QM.prototype.onSingleSelectCheckedChanged=QM.prototype.onSingleSelectCheckedChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],QM.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],QM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],QM.prototype,"data",void 0);
_.B([_.V("yt-feedback-single-select-changed"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],QM.prototype,"onSingleSelectCheckedChanged",null);QM=_.B([_.L({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],QM);
_.P(QM,"ytd-feedback-question-renderer",function(){if(jmc!==void 0)return jmc;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return jmc=p},{mode:1});var PJ8;var z9=function(){return _.m.apply(this,arguments)||this};
_.E(z9,_.m);z9.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
z9.prototype.getSelectedFeedbackResults=function(){for(var p={},x=0;x<this.data.questions.length;x++)for(var F=_.r(this.data.questions[x],eJc),N=0;N<F.options.length;N++){var h=_.r(F.options[N],ph8);h&&h.checked&&(p[h.optionKey]=h.resultText)}return p};
z9.prototype.onKeyUp=function(){var p=this;_.TT(_.E0,function(){_.hG(p.hostElement,"yt-refit")});
_.E0.start()};
z9.prototype.submitSurvey=function(){var p=this.getSelectedFeedbackResults();Object.keys(p).length>0&&_.fc(this.hostElement,[this.data.submitFeedbackEndpoint,{survey_results:p,is_feedback_token_unencrypted:!0}])};
var sS=z9;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],sS.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],sS.prototype,"data",void 0);sS=_.B([_.L({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],sS);
_.P(sS,"ytd-feedback-survey-renderer",function(){if(PJ8!==void 0)return PJ8;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return PJ8=p},{mode:1});var TzD;var Bze;var nm=function(){return _.m.apply(this,arguments)||this};
_.E(nm,_.m);nm.prototype.computeAlt=function(p){return _.Pi(p)};
nm.prototype.submitResponse=function(){var p,x;(p=this.data)!=null&&p.feedbackToken&&((x=this.data)==null?void 0:x.nextStageIndex)!==void 0&&(_.Mt(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Mt(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
nm.prototype.onClick=function(){this.submitResponse()};
var yM=nm;yM.prototype.onClick=yM.prototype.onClick;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],yM.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],yM.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],yM.prototype,"vertical",void 0);_.B([_.V("click"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yM.prototype,"onClick",null);
yM=_.B([_.L({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],yM);
_.P(yM,"ytd-single-select-answer-option-renderer",function(){if(Bze!==void 0)return Bze;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Bze=p},{mode:1});var Rq_;var bQ=function(){var p=_.m.apply(this,arguments)||this;p.darkerDarkTheme=_.S("web_darker_dark_theme");p.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return p};
_.E(bQ,_.m);bQ.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
bQ.prototype.dataChanged=function(){var p,x;this.vertical=((x=(p=this.data)==null?void 0:p.answerOrientation)!=null?x:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
bQ.prototype.submitFeedback=function(p){var x;((x=this.data)==null?0:x.responseEndpoint)&&p&&_.fc(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[p]}])};
var AN=bQ;AN.prototype.dataChanged=AN.prototype.dataChanged;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],AN.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],AN.prototype,"eventForwardingBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],AN.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],AN.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],AN.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],AN.prototype,"vertical",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],AN.prototype,"darkerDarkTheme",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],AN.prototype,"dataChanged",null);AN=_.B([_.L({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],AN);
_.P(AN,"ytd-single-select-question-renderer",function(){if(Rq_!==void 0)return Rq_;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Rq_=p},{mode:1});var kCm=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return p};
_.E(kCm,_.m);_.l=kCm.prototype;_.l.configureRendererStamper=function(){return{currentStage:{id:"current-stage",mapping:{singleSelectQuestionRenderer:"ytd-single-select-question-renderer",simpleMessageRenderer:"ytd-simple-message-renderer",surveyFollowUpRenderer:"ytd-survey-follow-up-renderer"}}}};
_.l.dataChanged=function(){this.jumpToStage(0)};
_.l.jumpToStage=function(p){var x,F;if((x=this.data)==null?0:(F=x.stages)==null?0:F[p])this.currentStage=this.data.stages[p],this.refitAfterRender()};
_.l.computeAlt=function(p){return _.Pi(p)};
_.l.computeSimpleMessage=function(p){var x;return(x=_.r(p,NKm))==null?void 0:x.messageText};
_.l.computeHideDismiss=function(p){var x;return(x=_.r(p,b_t))==null?void 0:x.hideParentDismissButton};
_.l.onDismissTap=function(){_.lA(this.hostElement,"yt-close-popup-action");_.r(this.currentStage,NKm)||this.data.dismissalEndpoint&&(_.S("web_ytd_multi_stage_survey_renderer_command_resolver_ks")?_.fc(this.hostElement,[this.data.dismissalEndpoint]):_.J().resolve(_.RD).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}}))};
_.l.refitAfterRender=function(){var p=this;_.jB(this,function(){_.hG(p.hostElement,"yt-refit")})};
var uQ=kCm;uQ.prototype.dataChanged=uQ.prototype.dataChanged;_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],uQ.prototype,"eventForwardingBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],uQ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],uQ.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.u(lgX),_.k("design:type",Object)],uQ.prototype,"ytdHatsSurveyBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],uQ.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],uQ.prototype,"currentStage",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uQ.prototype,"dataChanged",null);uQ=_.B([_.L({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],uQ);
_.P(uQ,"ytd-multi-stage-survey-renderer",function(){if(TzD!==void 0)return TzD;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return TzD=p},{mode:1});var Ubm;var Yy=function(){return _.m.apply(this,arguments)||this};
_.E(Yy,_.m);Yy.prototype.computeAlt=function(p){return _.Pi(p)};
Yy.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.J().resolve(_.RD).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.lA(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.$nX(!1)))};
Yy.prototype.onTap=function(){this.vertical&&this.submitResponse()};
var w7=Yy;w7.prototype.onTap=w7.prototype.onTap;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],w7.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],w7.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],w7.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],w7.prototype,"vertical",void 0);
_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],w7.prototype,"onTap",null);w7=_.B([_.L({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],w7);
_.P(w7,"ytd-single-option-survey-option-renderer",function(){if(Ubm!==void 0)return Ubm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Ubm=p},{mode:1});var iI8;var IHe=function(){return _.m.apply(this,arguments)||this};
_.E(IHe,_.m);_.l=IHe.prototype;_.l.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){var p,x;this.vertical=(((p=this.data)==null?void 0:(x=p.surveyOrientation)==null?void 0:x.type)||"HORIZONTAL")==="VERTICAL"};
_.l.computeAlt=function(p){return _.Pi(p)};
_.l.onDismissTap=function(){_.lA(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.J().resolve(_.RD).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.$nX(!1))};
var G9=IHe;G9.prototype.dataChanged=G9.prototype.dataChanged;_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],G9.prototype,"eventForwardingBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],G9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(lgX),_.k("design:type",Object)],G9.prototype,"ytdHatsSurveyBehavior",void 0);
_.B([_.u(_.nl),_.k("design:type",Object)],G9.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],G9.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],G9.prototype,"vertical",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],G9.prototype,"dataChanged",null);G9=_.B([_.L({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],G9);
_.P(G9,"ytd-single-option-survey-renderer",function(){if(iI8!==void 0)return iI8;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return iI8=p},{mode:1});var $bH;var VM=function(){var p=_.m.apply(this,arguments)||this;p.darkerDarkTheme=_.S("web_darker_dark_theme");return p};
_.E(VM,_.m);VM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
VM.prototype.onDismissTap=function(){_.lA(this.hostElement,"yt-close-popup-action")};
VM.prototype.onNavigate=function(){_.lA(this.hostElement,"yt-close-popup-action")};
var W_=VM;W_.prototype.onNavigate=W_.prototype.onNavigate;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],W_.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],W_.prototype,"ytEventForwardingBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],W_.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],W_.prototype,"darkerDarkTheme",void 0);
_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],W_.prototype,"onNavigate",null);W_=_.B([_.L({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],W_);
_.P(W_,"ytd-survey-follow-up-renderer",function(){if($bH!==void 0)return $bH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return $bH=p},{mode:1});var eq8;var pBm;var xP_;var Fyc=function(){var p=_.m.apply(this,arguments)||this;p.polymer2="Element"in Polymer;return p};
_.E(Fyc,_.m);_.l=Fyc.prototype;_.l.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.l.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.l.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.l.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Vx("minutes-changed",this.minutes))};
_.l.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Vx("seconds-changed",this.seconds))};
_.l.updateMinutesFromBinding=function(p){this.minutes=p.detail.value};
_.l.updateSecondsFromBinding=function(p){this.seconds=p.detail.value};
var H_=Fyc;H_.prototype.secondsChangedForBinding=H_.prototype.secondsChangedForBinding;H_.prototype.minutesChangedForBinding=H_.prototype.minutesChangedForBinding;H_.prototype.secondsChanged=H_.prototype.secondsChanged;_.B([_.H(),_.k("design:type",String)],H_.prototype,"minutes",void 0);_.B([_.H(),_.k("design:type",String)],H_.prototype,"seconds",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],H_.prototype,"polymer2",void 0);
_.B([_.Ff("#seconds"),_.k("design:type",Object)],H_.prototype,"secondsEl",void 0);_.B([_.W("seconds"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H_.prototype,"secondsChanged",null);_.B([_.W("minutes"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H_.prototype,"minutesChangedForBinding",null);
_.B([_.W("seconds"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H_.prototype,"secondsChangedForBinding",null);H_=_.B([_.JZ({is:"yt-timestamp-input",disableElementRegistration:!0})],H_);
_.P(H_,"yt-timestamp-input",function(){if(xP_===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;pBm===void 0&&(pBm=document.createElement("template"));var N=pBm;F.call(x,N.content.cloneNode(!0),p.content.firstChild);xP_=p}p=xP_;return p},{mode:2});var Nfe=function(){return _.m.apply(this,arguments)||this};
_.E(Nfe,_.m);_.l=Nfe.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$17950_scroller.dialogElement=this.hostElement.parentNode};
_.l.dataChanged=function(){var p=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.TO().getPlayerPromise().then(function(x){x=x.getCurrentTime();p.minutes=Math.floor(x/60).toString();p.seconds=(Math.floor(x)%60).toString()})};
_.l.onTapSubmit=function(p){p.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(p={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(p.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(p.minutes=this.minutes,p.seconds=this.seconds),_.S("web_ytd_legal_report_details_form_renderer_command_resolver_ks")?_.fc(this.hostElement,[this.serviceEndpoint,p]):_.J().resolve(_.RD).resolveCommand(this.serviceEndpoint,
{form:Object.assign({},p,{element:this.hostElement})}))};
_.l.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.l.onYtServiceRequestCompleted=function(p,x){x=x.actions;if(Array.isArray(x))for(var F=0,N=x.length;F<N;F++)_.r(x[F],_.X3)&&(p.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(x[F]))};
_.l.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.l.toggleSubmitButton=function(p){this.set("submitButton.isDisabled",!p)};
_.l.handleInput=function(){var p=this.issueType,x=this.affiliation,F=this.minutes,N=this.seconds;F=!this.showTimestamp||!!F&&!!N;this.toggleSubmitButton(!!this.descriptionText&&!!p&&!!x&&F)};
_.l.computeServiceEndpoint=function(p){return this.get("submitButton.buttonRenderer.serviceEndpoint",p)};
_.l.computeSubmitButton=function(p){(p=this.get("submitButton.buttonRenderer",p))&&(p=Object.assign({},p,{serviceEndpoint:void 0}));return p};
_.l.computeShowTimestamp=function(p){return!!p};
_.l.onValueChangedForIssueType=function(p){this.issueType=p.detail.value};
_.l.onValueChangedForAffiliation=function(p){this.affiliation=p.detail.value};
_.l.updateDescriptionTextFromBinding=function(p){this.descriptionText=p.detail.value};
_.l.updateFullNameTextFromBinding=function(p){this.fullNameText=p.detail.value};
_.l.updateMinutesFromBinding=function(p){this.minutes=p.detail.value};
_.l.updateSecondsFromBinding=function(p){this.seconds=p.detail.value};
var mQ=Nfe;mQ.prototype.handleInput=mQ.prototype.handleInput;mQ.prototype.onYtServiceRequestError=mQ.prototype.onYtServiceRequestError;mQ.prototype.onYtServiceRequestCompleted=mQ.prototype.onYtServiceRequestCompleted;mQ.prototype.onYtServiceRequestSent=mQ.prototype.onYtServiceRequestSent;mQ.prototype.dataChanged=mQ.prototype.dataChanged;_.B([_.u(_.FU.YtOpenPopupBehavior),_.k("design:type",Object)],mQ.prototype,"ytOpenPopupBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);_.B([_.Ff("#scroller"),_.k("design:type",Object)],mQ.prototype,"JSC$17950_scroller",void 0);_.B([_.Ff("#description"),_.k("design:type",HTMLInputElement)],mQ.prototype,"description",void 0);_.B([_.Ff("#full-name"),_.k("design:type",Object)],mQ.prototype,"fullName",void 0);_.B([_.H(),_.k("design:type",Object)],mQ.prototype,"data",void 0);
_.B([_.H({computed:"computeShowTimestamp(data.timestampLabel)"}),_.k("design:type",Boolean)],mQ.prototype,"showTimestamp",void 0);_.B([_.H({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.k("design:type",Object)],mQ.prototype,"serviceEndpoint",void 0);_.B([_.H({computed:"computeSubmitButton(data)"}),_.k("design:type",Object)],mQ.prototype,"submitButton",void 0);_.B([_.H(),_.k("design:type",String)],mQ.prototype,"descriptionText",void 0);
_.B([_.H(),_.k("design:type",Number)],mQ.prototype,"issueType",void 0);_.B([_.H(),_.k("design:type",Number)],mQ.prototype,"affiliation",void 0);_.B([_.H(),_.k("design:type",String)],mQ.prototype,"fullNameText",void 0);_.B([_.H(),_.k("design:type",String)],mQ.prototype,"minutes",void 0);_.B([_.H(),_.k("design:type",String)],mQ.prototype,"seconds",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mQ.prototype,"dataChanged",null);
_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],mQ.prototype,"onYtServiceRequestSent",null);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Ht]),_.k("design:returntype")],mQ.prototype,"onYtServiceRequestCompleted",null);
_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],mQ.prototype,"onYtServiceRequestError",null);_.B([_.W("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mQ.prototype,"handleInput",null);mQ=_.B([_.L({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],mQ);
_.P(mQ,"ytd-legal-report-details-form-renderer",function(){if(eq8!==void 0)return eq8;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return eq8=p},{mode:1});var hMH;var o2=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return p};
_.E(o2,_.m);o2.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
o2.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var p=this.formRenderer.getForm();p&&this.data.submitEndpoint&&(_.S("web_ytd_form_popup_content_command_resolver_ks")?_.fc(this.hostElement,[this.data.submitEndpoint,p]):_.J().resolve(_.RD).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},p,{element:this.hostElement})}),_.lA(this.hostElement,"yt-close-popup-action"))}};
o2.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.lA(this.hostElement,"yt-close-popup-action"))};
o2.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
var OS=o2;OS.prototype.onPopupClosed=OS.prototype.onPopupClosed;_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],OS.prototype,"ytEventForwardingBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],OS.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],OS.prototype,"ytActionHandlerBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.B([_.Ff("yt-form-renderer"),_.k("design:type",Object)],OS.prototype,"formRenderer",void 0);_.B([_.H(),_.k("design:type",Object)],OS.prototype,"data",void 0);_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],OS.prototype,"onPopupClosed",null);OS=_.B([_.L({is:"ytd-form-popup-content",disableElementRegistration:!0})],OS);
_.P(OS,"ytd-form-popup-content",function(){if(hMH!==void 0)return hMH;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return hMH=p},{mode:1});var lcD;var jk=function(){return _.m.apply(this,arguments)||this};
_.E(jk,_.m);jk.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
jk.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
jk.prototype.onPopupOpened=function(){_.hG(this.hostElement,"yt-invalidate-popup-tabbables")};
jk.prototype.onYtServiceRequestCompleted=function(p,x){x.data&&x.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.hG(this.hostElement,"yt-invalidate-popup-tabbables"))};
var Lm=jk;Lm.prototype.onYtServiceRequestCompleted=Lm.prototype.onYtServiceRequestCompleted;Lm.prototype.onPopupOpened=Lm.prototype.onPopupOpened;_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],Lm.prototype,"ytEventForwardingBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Lm.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Lm.prototype,"ytRendererBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],Lm.prototype,"data",void 0);_.B([_.V("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Lm.prototype,"onPopupOpened",null);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Ht]),_.k("design:returntype")],Lm.prototype,"onYtServiceRequestCompleted",null);Lm=_.B([_.L({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],Lm);
_.P(Lm,"ytd-form-popup-renderer",function(){if(lcD!==void 0)return lcD;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return lcD=p},{mode:1});var cJH;var act=function(){var p=_.m.apply(this,arguments)||this;p.isLoading=!1;return p};
_.E(act,_.m);_.l=act.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");ela(this.hostElement)};
_.l.onYtServiceRequestSent=function(){this.isLoading=!0};
_.l.onYtServiceRequestCompleted=function(){_.lA(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.l.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.Kc(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.l.closePopupHandler=function(){this.fireOnCloseActions()};
_.l.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var p=this.get("data.headerImage.thumbnails");p&&(p=_.Ou(p,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+p+")")}};
_.l.onYtNavigate=function(p){(p=_.os(p))&&p.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
var P_=act;P_.prototype.onYtNavigate=P_.prototype.onYtNavigate;P_.prototype.onHeaderImageChanged=P_.prototype.onHeaderImageChanged;P_.prototype.closePopupHandler=P_.prototype.closePopupHandler;P_.prototype.onYtServiceRequestCompleted=P_.prototype.onYtServiceRequestCompleted;P_.prototype.onYtServiceRequestSent=P_.prototype.onYtServiceRequestSent;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],P_.prototype,"ytEventForwardingBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],P_.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],P_.prototype,"isLoading",void 0);_.B([_.Ff("#header"),_.k("design:type",HTMLDivElement)],P_.prototype,"header",void 0);_.B([_.Ff("#confirm-button"),_.k("design:type",_.Dy)],P_.prototype,"confirmButton",void 0);
_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],P_.prototype,"onYtServiceRequestSent",null);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],P_.prototype,"onYtServiceRequestCompleted",null);
_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],P_.prototype,"closePopupHandler",null);_.B([_.W("data.headerImage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],P_.prototype,"onHeaderImageChanged",null);_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],P_.prototype,"onYtNavigate",null);
P_=_.B([_.L({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],P_);
_.P(P_,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(cJH!==void 0)return cJH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return cJH=p},{mode:1});var MIm;var DP8=function(){var p=_.m.apply(this,arguments)||this;p.isLoading=!1;return p};
_.E(DP8,_.m);_.l=DP8.prototype;_.l.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.linkButton":{id:"link-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);ela(this.hostElement)};
_.l.onYtServiceRequestCompleted=function(){_.lA(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.l.onYtServiceRequestError=function(p){_.yy(this.hostElement,p.detail.error.message)};
_.l.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.l.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.lA(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.l.onDataChanged=function(){this.isLoading=!1;var p=this.get("data.headerImage.thumbnails");p&&(p=_.Ou(p,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+p+")");p=_.b0();var x=_.yR(),F=this.get("data.trackingParams");F&&x&&p&&_.jz(p,x,_.fr(F))};
_.R8.Object.defineProperties(DP8.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
var T9=DP8;T9.prototype.onDataChanged=T9.prototype.onDataChanged;T9.prototype.onDomChange=T9.prototype.onDomChange;T9.prototype.onYtServiceRequestError=T9.prototype.onYtServiceRequestError;T9.prototype.onYtServiceRequestCompleted=T9.prototype.onYtServiceRequestCompleted;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],T9.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],T9.prototype,"ytRendererBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],T9.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],T9.prototype,"isLoading",void 0);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],T9.prototype,"hasDescription",null);_.B([_.Ff("tp-yt-paper-dialog-scrollable"),_.k("design:type",Object)],T9.prototype,"scrollable",void 0);_.B([_.Ff("#header"),_.k("design:type",HTMLElement)],T9.prototype,"header",void 0);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],T9.prototype,"onYtServiceRequestCompleted",null);_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],T9.prototype,"onYtServiceRequestError",null);
_.B([_.V("dom-change"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],T9.prototype,"onDomChange",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T9.prototype,"onDataChanged",null);T9=_.B([_.L({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],T9);
_.P(T9,"ytd-gaming-account-link-setting-renderer",function(){if(MIm!==void 0)return MIm;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return MIm=p},{mode:1});var fc8;var KyD;var qrk=function(){var p=_.m.apply(this,arguments)||this;p.isHeader=!1;p.getEndpointForm=RiH;return p};
_.E(qrk,_.m);_.l=qrk.prototype;_.l.triggerHintActions=function(){var p=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var x=_.Mt(p.hostElement,"yt-get-opened-popups-action");!(x&&x.length===1?x[0]:[]).some(function(F){F=F.openPopupAction.popupType;return F==="SURVEY"||F==="MEALBAR"||F==="HINT"})&&p.data.hintActions&&p.guideOpened&&(_.Kc(p.hostElement,p.data.hintActions,p.hostElement),p.data.hintActions=void 0)})};
_.l.getBadgeIconType=function(p){return p&&p.liveBroadcasting?"live":null};
_.l.onDown=function(){this.interaction.triggerDown()};
_.l.onUp=function(){this.interaction.triggerUp()};
_.l.onTap=function(p){if(this.data.serviceEndpoint){var x;_.S("shorts_controller_retrieve_seedless_sequence_v2")&&((x=_.r(this.data.serviceEndpoint,_.dX))==null?void 0:x.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):BaH(this.data.serviceEndpoint,this);p.preventDefault()}else this.data.navigationEndpoint&&!_.mx(_.m9(p),this.hostElement,["A".toString()])&&_.hG(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.l.computeActive=function(p,x){if(!p)return!1;var F=p.navigationEndpoint;p=p.serviceEndpoint;if(!F&&!p||!x)return!1;if(F){p=(p=fL(x))&&["subscriptions","filteredsubscriptions"].includes(p);if(_.r(F,_.Du)&&_.r(x,_.Du)&&!p){var N=_.r(F,_.Du).browseId;x=_.r(x,_.Du).browseId;return N!==void 0&&x!==void 0&&(N===x||N==="VLWL"&&x==="FEwatch_later"||N==="FEwatch_later"&&x==="VLWL")}var h;F=(h=_.r(F.commandMetadata,_.eq))==null?void 0:h.url;x=(N=_.r(x.commandMetadata,_.eq))==null?void 0:N.url;return!(!F||
!x||F!==x&&F!==_.F_(x))}return this.isActiveShortsTab(p,x)};
_.l.isActiveShortsTab=function(p,x){x=!!_.r(x,_.dX)||!!_.r(x,_.yf);return(!!_.r(p,_.dX)||!!_.r(p,_.yf))&&x};
_.l.computeIsPrimary=function(p){return!!p};
_.R8.Object.defineProperties(qrk.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 p=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&p)return p}}});
var B_=qrk;B_.prototype.onTap=B_.prototype.onTap;B_.prototype.onUp=B_.prototype.onUp;B_.prototype.onDown=B_.prototype.onDown;B_.prototype.triggerHintActions=B_.prototype.triggerHintActions;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],B_.prototype,"componentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],B_.prototype,"rendererBehavior",void 0);_.B([_.u(_.o3.YtTaskEmitterBehavior),_.k("design:type",Object)],B_.prototype,"taskEmitterBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],B_.prototype,"activeEndpoint",void 0);_.B([_.H(),_.k("design:type",Object)],B_.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Boolean)],B_.prototype,"guideOpened",void 0);_.B([_.H(),_.k("design:type",String)],B_.prototype,"type",void 0);_.B([_.Ff("yt-interaction"),_.k("design:type",Object)],B_.prototype,"interaction",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],B_.prototype,"isHeader",void 0);
_.B([_.H({reflectToAttribute:!0}),_.w("data","activeEndpoint"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],B_.prototype,"active",null);_.B([_.H({reflectToAttribute:!0}),_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],B_.prototype,"isPrimary",null);_.B([_.H({reflectToAttribute:!0}),_.w("data.count","data.presentationStyle","data.badges.*"),_.k("design:type",String),_.k("design:paramtypes",[])],B_.prototype,"lineEndStyle",null);
_.B([_.w("lineEndStyle"),_.k("design:type",Object),_.k("design:paramtypes",[])],B_.prototype,"ariaLabel",null);_.B([_.W("data.hintActions","guideOpened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],B_.prototype,"triggerHintActions",null);_.B([_.V("down"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],B_.prototype,"onDown",null);
_.B([_.V("up"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],B_.prototype,"onUp",null);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],B_.prototype,"onTap",null);B_=_.B([_.L({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],B_);
_.P(B_,"ytd-guide-entry-renderer",function(){if(KyD!==void 0)return KyD;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return KyD=p},{mode:1});var ZwX=function(){var p=_.m.apply(this,arguments)||this;p.userToggled=!1;return p};
_.E(ZwX,_.m);_.l=ZwX.prototype;_.l.getItemsPath=function(){return"data.expandableItems"};
_.l.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.l.onExpanderItemTapped=function(p){var x=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.S("kevlar_guide_expandable_items_killswitch")&&_.jB(this,function(){_.on(x.expandableItems)});
p.preventDefault()};
_.l.onCollapserItemTapped=function(p){var x=this;this._setExpanded(!1);this.userToggled=!0;p.preventDefault();this.expandableItems&&!_.S("kevlar_guide_collapsible_items_killswitch")&&_.jB(this,function(){_.Hu(x.hostElement)})};
_.l.observeActiveEndpoint=function(){for(var p=this.activeEndpoint,x=this.data,F=this.expandableItems.children,N=0,h=F.length;N<h;N++)F[N].activeEndpoint=p;x&&x.autoExpandCommand&&p&&!this.userToggled&&(F=this.data.autoExpandCommand,x=!(!_.r(F,_.Du)||!_.r(p,_.Du)||_.r(F,_.Du).browseId!==_.r(p,_.Du).browseId),p=this.get("commandMetadata.webCommandMetadata.url",p),F=this.get("commandMetadata.webCommandMetadata.url",F),x=x||!!(p&&F&&p.includes(F)),this._setExpanded(x),x&&this.ytLazyListBehavior.fillRemainingListItems())};
var R2=ZwX;R2.prototype.observeActiveEndpoint=R2.prototype.observeActiveEndpoint;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],R2.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],R2.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.Iz.YtLazyListBehavior),_.k("design:type",Object)],R2.prototype,"ytLazyListBehavior",void 0);_.B([_.Ff("#expandable-items"),_.k("design:type",HTMLElement)],R2.prototype,"expandableItems",void 0);
_.B([_.H(),_.k("design:type",Object)],R2.prototype,"data",void 0);_.B([_.H({readOnly:!0,reflectToAttribute:!0}),_.k("design:type",Boolean)],R2.prototype,"expanded",void 0);_.B([_.H({value:0}),_.k("design:type",Number)],R2.prototype,"initialCount",void 0);_.B([_.H(),_.k("design:type",Object)],R2.prototype,"activeEndpoint",void 0);_.B([_.W("data","activeEndpoint","canShowMore"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],R2.prototype,"observeActiveEndpoint",null);
R2=_.B([_.L({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],R2);
_.P(R2,"ytd-guide-collapsible-entry-renderer",function(){if(fc8!==void 0)return fc8;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return fc8=p},{mode:_.UQ("kevlar_poly_si_batch_j079")?1:2});var tI8;var dPm;var vU8=function(){var p=_.m.apply(this,arguments)||this;p.allVideosCount=0;p.renderGuideEntry=!1;return p};
_.E(vU8,_.m);vU8.prototype.observeRenderEntry=function(){var p;this.renderGuideEntry=!((p=this.data)==null||!p.alwaysShow)||!!this.allVideosCount};
var ky=vU8;ky.prototype.observeRenderEntry=ky.prototype.observeRenderEntry;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ky.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],ky.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ky.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],ky.prototype,"activeEndpoint",void 0);_.B([_.H({selector:_.wjE}),_.k("design:type",Object)],ky.prototype,"allVideosCount",void 0);
_.B([_.H(),_.k("design:type",Object)],ky.prototype,"renderGuideEntry",void 0);_.B([_.cT("allVideosCount","data.alwaysShow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ky.prototype,"observeRenderEntry",null);ky=_.B([_.L({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],ky);
_.P(ky,"ytd-guide-downloads-entry-renderer",function(){if(dPm===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);dPm=p}p=dPm;return p},{mode:1});var JJ8=function(){var p=_.m.apply(this,arguments)||this;p.youtab=_.S("web_enable_youtab");p.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return p};
_.E(JJ8,_.m);_.l=JJ8.prototype;_.l.configureRendererStamper=function(){return{"data.sectionItems":{id:"section-items",mapping:{guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideEntryRenderer:{component:"ytd-guide-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}},guideDownloadsEntryRenderer:{component:"ytd-guide-downloads-entry-renderer",noInjection:!0,properties:{activeEndpoint:"[[activeEndpoint]]"}}}}}};
_.l.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var p=this.sectionItems.children,x=0,F=p.length;x<F;x++)p[x].activeEndpoint=this.activeEndpoint}};
_.l.handleAddToGuideSectionAction=function(p){var x=_.r(p,veH);if(x&&this.data&&(p=x.items,x=x.handlerData,p&&x&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(x)>-1)){x=0;for(var F=p.length;x<F;x++)p[x].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,p[x])}};
_.l.handleRemoveFromGuideSectionAction=function(p){var x=_.r(p,J7H);x&&this.data&&(p=x.guideEntryId,x=x.handlerData,p&&x&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(x)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(p,this.data.sectionItems),this.removeFromCollapsedSection(p,this.data.sectionItems)))};
_.l.removeFromExpandedSection=function(p,x){p=this.getEntryIndexMatchingId(p,x);p!==-1&&this.splice("data.sectionItems",p,1)};
_.l.removeFromCollapsedSection=function(p,x){var F=x.findIndex(function(N){return!!_.r(N,W$a)});
F&&F!==-1&&x[F]&&_.r(x[F],W$a)&&(x=_.r(x[F],W$a).expandableItems)&&(p=this.getEntryIndexMatchingId(p,x),p!==-1&&this.splice("data.sectionItems."+F+".guideCollapsibleEntryRenderer.expandableItems",p,1))};
_.l.getEntryIndexMatchingId=function(p,x){var F=this;return x.findIndex(function(N){return F.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",N)===p})};
var US=JJ8;US.prototype.activeEndpointChanged=US.prototype.activeEndpointChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],US.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],US.prototype,"actionHandlerBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],US.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.Ff("#section-items"),_.k("design:type",HTMLDivElement)],US.prototype,"sectionItems",void 0);_.B([_.Ff("#header-entry"),_.k("design:type",Object)],US.prototype,"headerEntry",void 0);_.B([_.H(),_.k("design:type",Object)],US.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],US.prototype,"activeEndpoint",void 0);_.B([_.H(),_.k("design:type",Object)],US.prototype,"youtab",void 0);
_.B([_.W("activeEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],US.prototype,"activeEndpointChanged",null);US=_.B([_.L({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],US);
_.P(US,"ytd-guide-collapsible-section-entry-renderer",function(){if(tI8===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);tI8=p}p=tI8;return p},{mode:1});var Cvm;var Srm;var rJX=function(){var p=_.m.apply(this,arguments)||this;p.modernTypography=_.S("web_modern_typography");p.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 p};
_.E(rJX,_.m);_.l=rJX.prototype;
_.l.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",guideOpened:"[[guideOpened]]",type:"[[type]]"},noInjection:!0},guideCollapsibleEntryRenderer:{component:"ytd-guide-collapsible-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0},guideCollapsibleSectionEntryRenderer:{component:"ytd-guide-collapsible-section-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},
noInjection:!0}}}}};
_.l.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var p=_.Mt(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);p&&p.length===1&&p[0]&&_.Mt(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.l.handleResetChannelUnreadCountCommand=function(p){var x;(p=(x=_.r(p,r7c))==null?void 0:x.channelId)&&this.data&&this.data.items&&(x=this.getPathToEntryMatchingId(p))&&(this.set(x+".guideEntryRenderer.count",0),this.set(x+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.l.handleResetSubscriptionsUnreadDotCommand=function(p){var x,F=(x=_.r(p,Eee))==null?void 0:x.targetId,N;F&&(N=this.data)!=null&&N.items&&(p=this.data.items.findIndex(function(h){var c;return((c=h.guideEntryRenderer)==null?void 0:c.targetId)===F}),p<0||this.set("data.items."+p+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.l.getPathToEntryMatchingId=function(p){if(this.data&&this.data.items){var x=this.getEntryIndexMatchingId(p,this.data.items);if(x>-1)return"data.items."+x;for(var F=0;F<this.data.items.length;F++)if(x=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[F]))if(x=this.getEntryIndexMatchingId(p,x),x>-1)return"data.items."+F+".guideCollapsibleEntryRenderer.expandableItems."+x}};
_.l.handleAddToGuideSectionAction=function(p){var x=this;if(_.r(p,veH)){var F=_.r(p,veH).items;p=_.r(p,veH).handlerData;var N,h;F&&p&&((N=this.data)==null?void 0:(h=N.handlerDatas)==null?void 0:h.indexOf(p))>-1&&(F=F.filter(function(c){return(c=x.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",c))&&!x.isGuideItemPresent(c)}),this.unshift.apply(this,["data.items"].concat(_.se(F))))}};
_.l.isGuideItemPresent=function(p){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(p,this.data.items)!==-1)return!0;var x=this.data.items.find(function(F){return!!F.guideCollapsibleEntryRenderer});
if((x==null?0:x.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(p,x.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.l.getEntryIndexMatchingId=function(p,x){var F=this;return x.findIndex(function(N){return F.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",N)===p})};
_.l.handleRemoveFromGuideSectionAction=function(p){if(_.r(p,J7H)){var x=_.r(p,J7H).guideEntryId;p=_.r(p,J7H).handlerData;var F,N;x&&p&&((F=this.data)==null?void 0:(N=F.handlerDatas)==null?void 0:N.indexOf(p))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(x,this.data.items),this.removeFromCollapsedSection(x,this.data.items))}};
_.l.removeFromExpandedSection=function(p,x){p=this.getEntryIndexMatchingId(p,x);p!==-1&&this.splice("data.items",p,1)};
_.l.removeFromCollapsedSection=function(p,x){var F=x.findIndex(function(N){return!!N.guideCollapsibleEntryRenderer});
F!==-1&&(x=x[F].guideCollapsibleEntryRenderer.expandableItems)&&(p=this.getEntryIndexMatchingId(p,x),p!==-1&&this.splice("data.items."+F+".guideCollapsibleEntryRenderer.expandableItems",p,1))};
_.l.activeEndpointChanged=function(){for(var p=_.n(this.hostElement).querySelector("#items").children,x=0,F=p.length;x<F;x++)p[x].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.l.guideOpenedChanged=function(){for(var p=_.n(this.hostElement).querySelector("#items").children,x=0,F=p.length;x<F;x++)p[x].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
var iQ=rJX;iQ.prototype.guideOpenedChanged=iQ.prototype.guideOpenedChanged;iQ.prototype.activeEndpointChanged=iQ.prototype.activeEndpointChanged;iQ.prototype.persistentGuideChanged=iQ.prototype.persistentGuideChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],iQ.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],iQ.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],iQ.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.Iz.YtLazyListBehavior),_.k("design:type",Object)],iQ.prototype,"ytLazyListBehavior",void 0);_.B([_.u(_.GM.YtdGuideStateAwareBehavior),_.k("design:type",Object)],iQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],iQ.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],iQ.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],iQ.prototype,"modernTypography",void 0);_.B([_.H(),_.k("design:type",String)],iQ.prototype,"type",void 0);_.B([_.H({value:20}),_.k("design:type",Number)],iQ.prototype,"initialCount",void 0);_.B([_.H({value:10}),_.k("design:type",Number)],iQ.prototype,"targetFramerate",void 0);_.B([_.H({value:!0}),_.k("design:type",Boolean)],iQ.prototype,"autoFill",void 0);_.B([_.H({value:50}),_.k("design:type",Number)],iQ.prototype,"renderDelay",void 0);
_.B([_.W("guidePersistentAndVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iQ.prototype,"persistentGuideChanged",null);_.B([_.cT("activeEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iQ.prototype,"activeEndpointChanged",null);_.B([_.cT("guideOpened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iQ.prototype,"guideOpenedChanged",null);
iQ=_.B([_.L({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],iQ);
_.P(iQ,"ytd-guide-section-renderer",function(){if(Srm!==void 0)return Srm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Srm=p},{mode:_.UQ("kevlar_poly_si_batch_j073")?1:2});var EUm;var XBk=function(){return _.m.apply(this,arguments)||this};
_.E(XBk,_.m);_.R8.Object.defineProperties(XBk.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
var I2=XBk;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],I2.prototype,"rendererBehaviors",void 0);_.B([_.H(),_.k("design:type",Object)],I2.prototype,"data",void 0);_.B([_.H(),_.w("data.signInButton.buttonRenderer.style"),_.k("design:type",Object),_.k("design:paramtypes",[])],I2.prototype,"alignByText",null);I2=_.B([_.L({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],I2);
_.P(I2,"ytd-guide-signin-promo-renderer",function(){if(EUm===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);EUm=p}p=EUm;return p},{mode:1});var $y=function(){var p=_.m.apply(this,arguments)||this;p.showFooter=!1;return p};
_.E($y,_.m);$y.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}}}}};
$y.prototype.attached=function(){var p=this,x;return _.D(function(F){if(F.nextAddress==1){x=_.J().resolve(_.Bw(_.wF));if(!x)return F.jumpTo(0);x.setGuideData(p.hostElement);return _.q(F,0,3)}p.ytLazyListBehavior.initialCount=2;return F.return()})};
$y.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
var ek=$y;ek.prototype.dataChanged=ek.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ek.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],ek.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.Iz.YtLazyListBehavior),_.k("design:type",Object)],ek.prototype,"ytLazyListBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ek.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],ek.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],ek.prototype,"showFooter",void 0);_.B([_.H({value:!0}),_.k("design:type",Boolean)],ek.prototype,"autoFill",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ek.prototype,"dataChanged",null);ek=_.B([_.L({is:"ytd-guide-renderer",disableElementRegistration:!0})],ek);
_.P(ek,"ytd-guide-renderer",function(){if(Cvm!==void 0)return Cvm;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Cvm=p},{mode:_.UQ("kevlar_poly_si_batch_j073")?1:2});var gUD;var QAH=function(){var p=_.m.apply(this,arguments)||this;p.systemIcons=_.S("kevlar_system_icons");p.frostedGlass=_.S("web_frosted_glass");p.getEndpointForm=RiH;return p};
_.E(QAH,_.m);_.l=QAH.prototype;_.l.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.l.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.Pi(this.data.formattedTitle))};
_.l.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.l.onDown=function(){this.interaction.triggerDown()};
_.l.onUp=function(){this.interaction.triggerUp()};
_.l.onTap=function(p){if(this.data.serviceEndpoint){var x;_.S("shorts_controller_retrieve_seedless_sequence_v2")&&((x=_.r(this.data.serviceEndpoint,_.dX))==null?void 0:x.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):BaH(this.data.serviceEndpoint,this);p.preventDefault()}else{var F;((F=this.data)==null?0:F.navigationEndpoint)&&!_.mx(_.m9(p),this.hostElement,["A".toString()])&&_.hG(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.l.computeActive=function(p,x){if(!p)return!1;var F=p.navigationEndpoint;p=p.serviceEndpoint;if(!F&&!p||!x)return!1;if(F){p=_.r(F,_.Du);var N=_.r(x,_.Du);if(p&&N)return p.browseId===N.browseId&&p.params===N.params;var h;F=(h=_.r(F.commandMetadata,_.eq))==null?void 0:h.url;var c;x=(c=_.r(x.commandMetadata,_.eq))==null?void 0:c.url;return!(!F||!x||F!==x&&F!==_.F_(x))}return this.isActiveShortsTab(p,x)};
_.l.isActiveShortsTab=function(p,x){x=!!_.r(x,_.dX)||!!_.r(x,_.yf);return(!!_.r(p,_.dX)||!!_.r(p,_.yf))&&x};
_.l.computeTitle=function(p,x){return x?"":_.Pi(p)};
_.R8.Object.defineProperties(QAH.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
var p3=QAH;p3.prototype.onTap=p3.prototype.onTap;p3.prototype.onUp=p3.prototype.onUp;p3.prototype.onDown=p3.prototype.onDown;p3.prototype.onActiveStateChange=p3.prototype.onActiveStateChange;p3.prototype.dataChanged=p3.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],p3.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],p3.prototype,"ytComponentBehavior",void 0);
_.B([_.u(_.bU),_.k("design:type",Object)],p3.prototype,"ironButtonState",void 0);_.B([_.H(),_.k("design:type",Object)],p3.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],p3.prototype,"activeEndpoint",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],p3.prototype,"noLabels",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.k("design:type",Boolean)],p3.prototype,"isActive",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],p3.prototype,"systemIcons",void 0);_.B([_.Ff("yt-interaction"),_.k("design:type",Object)],p3.prototype,"interaction",void 0);_.B([_.w("isActive"),_.k("design:type",Object),_.k("design:paramtypes",[])],p3.prototype,"ariaSelected",null);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],p3.prototype,"frostedGlass",void 0);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],p3.prototype,"dataChanged",null);_.B([_.W("isActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],p3.prototype,"onActiveStateChange",null);_.B([_.V("down"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],p3.prototype,"onDown",null);
_.B([_.V("up"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],p3.prototype,"onUp",null);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],p3.prototype,"onTap",null);p3=_.B([_.L({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],p3);
_.P(p3,"ytd-mini-guide-entry-renderer",function(){if(gUD!==void 0)return gUD;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return gUD=p},{mode:_.UQ("kevlar_poly_si_batch_j063")?1:2});var zM_;var sA8=function(){var p=_.m.apply(this,arguments)||this;p.allVideosCount=0;p.noLabels=_.S("kevlar_mini_guide_no_labels");p.frostedGlass=_.S("web_frosted_glass");return p};
_.E(sA8,_.m);_.l=sA8.prototype;_.l.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.l.visibleChanged=function(){if(this.visible&&!this.data){var p=_.J().resolve(_.Bw(_.wF));p&&p.setGuideData(this.hostElement)}};
_.l.dataChanged=function(){var p=[],x;if((x=this.data)!=null&&x.items){x=_.a(this.data.items);for(var F=x.next();!F.done;F=x.next()){F=F.value;var N=void 0;if((N=F.guideSectionRenderer)==null?0:N.items)for(N=void 0,F=_.a((N=F.guideSectionRenderer)==null?void 0:N.items),N=F.next();!N.done;N=F.next())if(N=N.value,N.guideEntryRenderer)N=N.guideEntryRenderer,N.isPrimary&&p.push({guideEntryRenderer:N});else if(N.guideCollapsibleSectionEntryRenderer){var h=void 0;((h=_.r(N.guideCollapsibleSectionEntryRenderer.headerEntry,
BF))==null?0:h.isPrimary)&&p.push({guideEntryRenderer:_.r(N.guideCollapsibleSectionEntryRenderer.headerEntry,BF)});if(N=N.guideCollapsibleSectionEntryRenderer.sectionItems)for(N=_.a(N),h=N.next();!h.done;h=N.next()){var c=h.value;h=_.r(c,H_H);var M=void 0;((M=_.r(c,BF))==null?0:M.isPrimary)?p.push({guideEntryRenderer:_.r(c,BF)}):h&&(c=void 0,_.r((c=h)==null?void 0:c.entryRenderer,BF)&&(h.alwaysShow||this.allVideosCount)&&p.push({guideEntryRenderer:_.r(h.entryRenderer,BF)}))}}}}this.miniGuideItems=
p};
_.l.activeEndpointChanged=function(){for(var p=this.items.children,x=0;x<p.length;x++)p[x].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
var x0=sA8;x0.prototype.activeEndpointChanged=x0.prototype.activeEndpointChanged;x0.prototype.dataChanged=x0.prototype.dataChanged;x0.prototype.visibleChanged=x0.prototype.visibleChanged;_.B([_.u(_.nl),_.k("design:type",Object)],x0.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],x0.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],x0.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.u(_.GM.YtdGuideStateAwareBehavior),_.k("design:type",Object)],x0.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],x0.prototype,"ytComponentBehavior",void 0);_.B([_.Ff("#items"),_.k("design:type",Object)],x0.prototype,"items",void 0);_.B([_.H(),_.k("design:type",Object)],x0.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Boolean)],x0.prototype,"visible",void 0);
_.B([_.H(),_.k("design:type",Object)],x0.prototype,"miniGuideItems",void 0);_.B([_.H({selector:_.wjE}),_.k("design:type",Object)],x0.prototype,"allVideosCount",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],x0.prototype,"noLabels",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],x0.prototype,"frostedGlass",void 0);_.B([_.cT("visible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],x0.prototype,"visibleChanged",null);
_.B([_.cT("data","allVideosCount"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],x0.prototype,"dataChanged",null);_.B([_.cT("activeEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],x0.prototype,"activeEndpointChanged",null);x0=_.B([_.L({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],x0);
_.P(x0,"ytd-mini-guide-renderer",function(){if(zM_===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);zM_=p}p=zM_;return p},{mode:1});var nUk;var yJm=/^[\x00-\x7F]+$/,bwt=function(){var p=_.m.apply(this,arguments)||this;p.darkerDarkTheme=_.S("web_darker_dark_theme");return p};
_.E(bwt,_.m);_.R8.Object.defineProperties(bwt.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var p,x=_.Pi((p=this.data)==null?void 0:p.handle);if(x)return _.L1("@"+x)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var p=_.Pi(this.displayHandle),x,F=_.Pi((x=this.data)==null?void 0:x.handleUrl);if(p&&F)return _.L1(F+p)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var p=_.Pi(this.displayHandle);if(p&&!yJm.test(p)){var x;return(x=this.data)==null?void 0:x.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var p=_.Pi(this.displayHandleUrl),x,F=_.Pi((x=this.data)==null?void 0:x.urlInfoText);if(p&&F)return _.L1(F+" "+p)}}});
var Fu=bwt;_.B([_.H(),_.k("design:type",Object)],Fu.prototype,"data",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Fu.prototype,"displayHandle",null);_.B([_.w("displayHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],Fu.prototype,"displayHandleUrl",null);_.B([_.w("displayHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],Fu.prototype,"warningText",null);
_.B([_.w("displayHandleUrl"),_.k("design:type",Object),_.k("design:paramtypes",[])],Fu.prototype,"urlInfoTextWithUrl",null);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Fu.prototype,"darkerDarkTheme",void 0);Fu=_.B([_.L({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Fu);
_.P(Fu,"ytd-handles-claiming-confirm-dialog-content",function(){if(nUk!==void 0)return nUk;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return nUk=p},{mode:1});var AJe;var uS8=function(){var p=_.m.apply(this,arguments)||this;p.okButtonOverride={style:"mono",type:"outline",size:"M"};return p};
_.E(uS8,_.m);uS8.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
uS8.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
var NX=uS8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],NX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],NX.prototype,"okButtonOverride",void 0);_.B([_.H(),_.k("design:type",Object)],NX.prototype,"data",void 0);NX=_.B([_.L({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],NX);
_.P(NX,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(AJe!==void 0)return AJe;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return AJe=p},{mode:1});var YrD;var wBm=/^[\x00-\x7F]+$/,G$a=function(){var p=_.m.apply(this,arguments)||this;p.isLoading=!1;p.darkerDarkTheme=_.S("web_darker_dark_theme");return p};
_.E(G$a,_.m);G$a.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var p;this.selectedHandle=(p=this.handleInput)==null?void 0:p.value;this.onSelectedHandleChanged(this.selectedHandle);_.Mt(this.hostElement,"yt-refit-popups-action")}};
_.R8.Object.defineProperties(G$a.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var p;return(p=this.data)==null?void 0:p.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.L1("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.L1(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!wBm.test(this.selectedHandle)){var p;return(p=this.data)==null?void 0:p.warningText}}}});
var hi=G$a;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],hi.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],hi.prototype,"data",void 0);_.B([_.H(),_.k("design:type",String)],hi.prototype,"selectedHandle",void 0);_.B([_.H(),_.k("design:type",Object)],hi.prototype,"isLoading",void 0);_.B([_.H(),_.k("design:type",Function)],hi.prototype,"onSelectedHandleChanged",void 0);
_.B([_.Ff("#channel-handle-input"),_.k("design:type",Object)],hi.prototype,"handleInput",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],hi.prototype,"handleUrlPrefix",null);_.B([_.w("selectedHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],hi.prototype,"displayHandle",null);_.B([_.w("selectedHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],hi.prototype,"displayHandleUrl",null);
_.B([_.w("selectedHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],hi.prototype,"warningText",null);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],hi.prototype,"darkerDarkTheme",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],hi.prototype,"ytRendererBehavior",void 0);hi=_.B([_.L({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],hi);
_.P(hi,"ytd-handles-claiming-edit-dialog-content",function(){if(YrD!==void 0)return YrD;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return YrD=p},{mode:1});var VIa;var Wya=function(){var p=_.m.apply(this,arguments)||this;p.actionButtonOverride={style:"mono",type:"filled",size:"M"};p.cancelButtonOverride={style:"mono",type:"text",size:"M"};p.selectButtonDisabled=!1;p.isLoading=!1;p.hasSelectedHandleEventListener=!1;p.selectedHandleChanged=function(x){p.selectedHandle=x};
return p};
_.E(Wya,_.m);_.l=Wya.prototype;_.l.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.l.onDataChanged=function(){var p,x;this.selectedHandle=(x=_.r((p=this.data)==null?void 0:p.inputField,K$a))==null?void 0:x.handle};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.onCancel=function(){this.selectedHandle="";_.lA(this.hostElement,"yt-close-popup-action",[this.is])};
_.l.onSelectHandle=function(){var p=this;if(this.selectedHandle!==void 0){var x;((x=this.data)==null?void 0:x.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(F,N){if(N.newHandleUpdateStatus!==void 0&&N.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&N.newHandleUpdateStatus.errorMessage)_.yy(p.hostElement,_.Pi(N.newHandleUpdateStatus.errorMessage)),
p.isLoading=!1;else{var h;if((h=p.data)==null?0:h.onChannelUpdateSuccess){F=p.data.onChannelUpdateSuccess;var c,M;if(N=(c=_.r(F,_.X3))==null?void 0:(M=c.popup)==null?void 0:M.handlesClaimingConfirmDialogRenderer)N.handle=_.L1(p.selectedHandle);p.ytComponentBehavior.resolveCommand(F);_.lA(p.hostElement,"yt-close-popup-action",[p.is])}else p.isLoading=!1}},
onServerError:function(){var F;p.content&&((F=p.content)==null?0:F.handleInput)&&p.content.handleInput.validate();p.isLoading=!1;_.yy(p.hostElement,_.JG("TRY_AGAIN_LATER"))}}}))}};
_.l.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
var ls=Wya;ls.prototype.onDataChanged=ls.prototype.onDataChanged;ls.prototype.onSelectedHandleChanged=ls.prototype.onSelectedHandleChanged;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],ls.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ls.prototype,"actionButtonOverride",void 0);_.B([_.H(),_.k("design:type",Object)],ls.prototype,"cancelButtonOverride",void 0);_.B([_.H(),_.k("design:type",Object)],ls.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",String)],ls.prototype,"selectedHandle",void 0);_.B([_.H(),_.k("design:type",Object)],ls.prototype,"selectButtonDisabled",void 0);_.B([_.H(),_.k("design:type",Object)],ls.prototype,"isLoading",void 0);_.B([_.H(),_.k("design:type",Object)],ls.prototype,"hasSelectedHandleEventListener",void 0);_.B([_.H(),_.k("design:type",Object)],ls.prototype,"handleInput",void 0);
_.B([_.W("selectedHandle"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ls.prototype,"onSelectedHandleChanged",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ls.prototype,"onDataChanged",null);_.B([_.Ff("ytd-handles-claiming-edit-dialog-content"),_.k("design:type",Object)],ls.prototype,"content",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ls.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ls.prototype,"ytRendererstamperBehavior",void 0);ls=_.B([_.L({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],ls);
_.P(ls,"ytd-handles-claiming-edit-dialog-renderer",function(){if(VIa!==void 0)return VIa;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return VIa=p},{mode:1});var HwX;var mP_=function(){return _.m.apply(this,arguments)||this};
_.E(mP_,_.m);_.R8.Object.defineProperties(mP_.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null?0:p.handle){var x;return _.L1("@"+_.Pi((x=this.data)==null?void 0:x.handle))}}}});
var cR=mP_;_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],cR.prototype,"formattedHandle",null);_.B([_.H(),_.k("design:type",Object)],cR.prototype,"data",void 0);cR=_.B([_.L({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],cR);
_.P(cR,"ytd-handles-claiming-radio-option-renderer",function(){if(HwX!==void 0)return HwX;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return HwX=p},{mode:1});var oUa;var OwD=/^[\x00-\x7F]+$/,a6=function(){var p=_.m.apply(this,arguments)||this;p.initialRadioIndex="-1";p.isLoading=!1;p.darkerDarkTheme=_.S("web_darker_dark_theme");p.maybeSubmitFeedback=function(){p.feedbackSurveyRenderer.submitSurvey()};
return p};
_.E(a6,_.m);a6.prototype.updateSelectedHandleIndexFromBinding=function(p){this.selectedRadioIndex=+p.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(p)};
a6.prototype.selectedHandleChanged=function(p){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var x;this.selectedHandle=(x=this.handleInput)==null?void 0:x.value;this.onSelectedHandleChanged(p)}};
_.R8.Object.defineProperties(a6.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var p;return(((p=this.data)==null?void 0:p.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var p;return this.ytRendererBehavior.getSimpleString((p=this.data)==null?void 0:p.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.L1("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.L1(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!OwD.test(this.selectedHandle)){var p;return(p=this.data)==null?void 0:p.warningText}}}});
var MX=a6;_.B([_.H(),_.k("design:type",Object)],MX.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],MX.prototype,"initialRadioIndex",void 0);_.B([_.H(),_.k("design:type",Number)],MX.prototype,"selectedRadioIndex",void 0);_.B([_.H(),_.k("design:type",String)],MX.prototype,"selectedHandle",void 0);_.B([_.H(),_.k("design:type",Object)],MX.prototype,"isLoading",void 0);_.B([_.H(),_.k("design:type",Function)],MX.prototype,"onSelectedHandleChanged",void 0);
_.B([_.H(),_.k("design:type",Function)],MX.prototype,"onSelectedRadioIndexChanged",void 0);_.B([_.Ff("#channel-handle-input"),_.k("design:type",Object)],MX.prototype,"handleInput",void 0);_.B([_.Ff("ytd-feedback-survey-renderer"),_.k("design:type",Object)],MX.prototype,"feedbackSurveyRenderer",void 0);_.B([_.w("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],MX.prototype,"radioButtonLength",null);
_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],MX.prototype,"handleUrlPrefix",null);_.B([_.w("selectedHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],MX.prototype,"displayHandle",null);_.B([_.w("selectedHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],MX.prototype,"displayHandleUrl",null);_.B([_.w("selectedHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],MX.prototype,"warningText",null);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],MX.prototype,"darkerDarkTheme",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);MX=_.B([_.L({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],MX);
_.P(MX,"ytd-handles-claiming-select-dialog-content",function(){if(oUa!==void 0)return oUa;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return oUa=p},{mode:1});var jAm;var Lye=function(){var p=_.m.apply(this,arguments)||this;p.actionButtonOverride={style:"mono",type:"filled",size:"M"};p.cancelButtonOverride={style:"mono",type:"text",size:"M"};p.initialRadioIndex="-1";p.selectButtonDisabled=!1;p.isLoading=!1;p.selectedRadioIndexChanged=function(x){p.selectedRadioIndex=Number(x.detail.value)};
p.selectedHandleChanged=function(x){p.selectedHandle=x.detail.value};
p.darkerDarkTheme=_.S("web_darker_dark_theme");return p};
_.E(Lye,_.m);_.l=Lye.prototype;_.l.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.l.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.l.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Mt(this.hostElement,"yt-refit-popups-action")};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.lA(this.hostElement,"yt-close-popup-action",[this.is])};
_.l.onSelectHandle=function(){var p=this;if(this.selectedHandle!==void 0){var x;((x=this.data)==null?void 0:x.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(F,N){if(N.newHandleUpdateStatus!==void 0&&N.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&N.newHandleUpdateStatus.errorMessage)_.yy(p.hostElement,_.Pi(N.newHandleUpdateStatus.errorMessage)),
p.isLoading=!1;else{var h;if((h=p.data)==null?0:h.onChannelUpdateSuccess){F=p.data.onChannelUpdateSuccess;N=_.r(F,_.X3);var c;if(N==null?0:(c=N.popup)==null?0:c.handlesClaimingConfirmDialogRenderer)N.popup.handlesClaimingConfirmDialogRenderer.handle=_.L1(p.selectedHandle);p.ytComponentBehavior.resolveCommand(F);_.lA(p.hostElement,"yt-close-popup-action",[p.is])}else p.isLoading=!1}},
onServerError:function(){if(p.selectedRadioIndex===p.radioButtonLength){var F;p.content&&((F=p.content)==null?0:F.handleInput)&&p.content.handleInput.validate()}p.isLoading=!1;_.yy(p.hostElement,_.JG("TRY_AGAIN_LATER"))}}}))}};
_.l.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var p,x;this.selectedHandle=(p=this.content)==null?void 0:(x=p.handleInput)==null?void 0:x.value}else this.selectedRadioIndex>=0&&((p=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(p==null?void 0:p.handle):this.selectedHandle=void 0)};
_.l.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.l.getRadioItem=function(p){if(this.radioButtonLength>p&&p>=0)return _.r(this.data.radioButton[p],A7m)};
_.R8.Object.defineProperties(Lye.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var p;return(((p=this.data)==null?void 0:p.radioButton)||[]).length}}});
var Dw=Lye;Dw.prototype.onSelectedHandleChanged=Dw.prototype.onSelectedHandleChanged;Dw.prototype.onSelectedHandleIndexChanged=Dw.prototype.onSelectedHandleIndexChanged;Dw.prototype.onDataChanged=Dw.prototype.onDataChanged;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Dw.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Dw.prototype,"actionButtonOverride",void 0);_.B([_.H(),_.k("design:type",Object)],Dw.prototype,"cancelButtonOverride",void 0);
_.B([_.H(),_.k("design:type",Object)],Dw.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Dw.prototype,"initialRadioIndex",void 0);_.B([_.H(),_.k("design:type",Number)],Dw.prototype,"selectedRadioIndex",void 0);_.B([_.H(),_.k("design:type",String)],Dw.prototype,"selectedHandle",void 0);_.B([_.H(),_.k("design:type",Object)],Dw.prototype,"selectButtonDisabled",void 0);_.B([_.H(),_.k("design:type",Object)],Dw.prototype,"isLoading",void 0);
_.B([_.w("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],Dw.prototype,"radioButtonLength",null);_.B([_.Ff("ytd-handles-claiming-select-dialog-content"),_.k("design:type",Object)],Dw.prototype,"content",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Dw.prototype,"onDataChanged",null);
_.B([_.W("selectedRadioIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Dw.prototype,"onSelectedHandleIndexChanged",null);_.B([_.W("selectedHandle"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Dw.prototype,"onSelectedHandleChanged",null);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Dw.prototype,"darkerDarkTheme",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Dw.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Dw.prototype,"ytRendererstamperBehavior",void 0);Dw=_.B([_.L({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Dw);
_.P(Dw,"ytd-handles-claiming-select-dialog-renderer",function(){if(jAm!==void 0)return jAm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return jAm=p},{mode:1});var Pv8;var Tft;var Bf_=function(){return _.m.apply(this,arguments)||this};
_.E(Bf_,_.m);Bf_.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
var f3=Bf_;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],f3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],f3.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],f3.prototype,"data",void 0);f3=_.B([_.L({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],f3);
_.P(f3,"ytd-hotkey-dialog-section-option-renderer",function(){if(Tft!==void 0)return Tft;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Tft=p},{mode:1});var RMX;var k$X=function(){return _.m.apply(this,arguments)||this};
_.E(k$X,_.m);k$X.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
var K3=k$X;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],K3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],K3.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],K3.prototype,"data",void 0);K3=_.B([_.L({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],K3);
_.P(K3,"ytd-hotkey-dialog-section-renderer",function(){if(RMX!==void 0)return RMX;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return RMX=p},{mode:1});var UPH=function(){var p=_.m.apply(this,arguments)||this;p.darkerDarkTheme=_.S("web_darker_dark_theme");return p};
_.E(UPH,_.m);UPH.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
var qX=UPH;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],qX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],qX.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],qX.prototype,"darkerDarkTheme",void 0);qX=_.B([_.L({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],qX);
_.P(qX,"ytd-hotkey-dialog-content",function(){if(Pv8!==void 0)return Pv8;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return Pv8=p},{mode:1});var iwm;var Ice=function(){return _.m.apply(this,arguments)||this};
_.E(Ice,_.m);Ice.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var p=document.querySelector("ytd-hotkey-dialog-content #scrollable");p&&(p.dialogElement=this.hostElement.parentElement)};
Ice.prototype.onCloseTap=function(){_.lA(this.hostElement,"yt-close-popup-action")};
var Zw=Ice;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Zw.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Zw.prototype,"data",void 0);Zw=_.B([_.L({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Zw);
_.P(Zw,"ytd-hotkey-dialog-renderer",function(){if(iwm!==void 0)return iwm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return iwm=p},{mode:1});var $PD;var ti=function(){return _.m.apply(this,arguments)||this};
_.E(ti,_.m);ti.prototype.onYtServiceRequestError=function(){if(this.blocked){var p;var x=(p=this.data)==null?void 0:p.defaultServiceEndpoint}else{var F;x=(F=this.data)==null?void 0:F.toggledServiceEndpoint}var N;(x=(N=_.r(x,_.ofn))==null?void 0:N.onFailureAction)&&this.ytComponentBehavior.resolveCommand(x);this.updateBlockState(!this.blocked)};
ti.prototype.onYtToggleButton=function(p){this.updateBlockState(p.detail.toggled)};
ti.prototype.updateBlockState=function(p){if(p!==this.blocked){var x=this.blockedEntityKey;x&&this.ytdReduxBehavior.dispatch(_.KV("blockStateEntity",x,{key:x,blocked:p}));this.set("data.isToggled",p)}};
_.R8.Object.defineProperties(ti.prototype,{blocked:{configurable:!0,enumerable:!0,get:function(){return this.blockStateEntity?(this.set("data.isToggled",this.blocked),!!this.blockStateEntity.blocked):!(!this.data||!this.data.isToggled)}}});
var dZ=ti;dZ.prototype.onYtToggleButton=dZ.prototype.onYtToggleButton;dZ.prototype.onYtServiceRequestError=dZ.prototype.onYtServiceRequestError;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],dZ.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],dZ.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],dZ.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],dZ.prototype,"blockedEntityKey",void 0);
_.B([_.H({selectorArgs:["blockedEntityKey"],selector:function(p,x){return _.M4(p.entities,"blockStateEntity",x)}}),
_.k("design:type",Object)],dZ.prototype,"blockStateEntity",void 0);_.B([_.w("data","blockStateEntity"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],dZ.prototype,"blocked",null);_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],dZ.prototype,"onYtServiceRequestError",null);
_.B([_.V("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],dZ.prototype,"onYtToggleButton",null);dZ=_.B([_.L({is:"ytd-block-button",disableElementRegistration:!0})],dZ);
_.P(dZ,"ytd-block-button",function(){if($PD!==void 0)return $PD;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return $PD=p},
{mode:1});var eMD;var pCX;var xUa=function(){return _.m.apply(this,arguments)||this};
_.E(xUa,_.m);var vR=xUa;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],vR.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],vR.prototype,"data",void 0);vR=_.B([_.L({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],vR);
_.P(vR,"ytd-kids-blocklist-picker-item-renderer",function(){if(pCX!==void 0)return pCX;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return pCX=p},{mode:1});var FCH=function(){return _.m.apply(this,arguments)||this};
_.E(FCH,_.m);FCH.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
var Ji=FCH;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Ji.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ji.prototype,"data",void 0);Ji=_.B([_.L({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],Ji);
_.P(Ji,"ytd-kids-blocklist-picker-content",function(){if(eMD!==void 0)return eMD;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return eMD=
p},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var NO_;var hwk=function(){var p=_.m.apply(this,arguments)||this;p.hasAnyRequestSucceeded=!1;p.hasAnyRequestFailed=!1;p.numPendingRequests=0;return p};
_.E(hwk,_.m);_.l=hwk.prototype;_.l.attached=function(){this.hostElement.setAttribute("dialog","")};
_.l.onDoneButtonTap=function(){_.lA(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.l.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.l.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.l.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.l.onPopupClosed=function(p){var x,F;if(((x=p.detail)==null?void 0:(F=x.popup)==null?void 0:F.is)==="tp-yt-paper-dialog"){var N;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((N=this.data)==null?0:N.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.kO(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
var C3=hwk;C3.prototype.onPopupClosed=C3.prototype.onPopupClosed;C3.prototype.onYtServiceRequestError=C3.prototype.onYtServiceRequestError;C3.prototype.onYtServiceRequestCompleted=C3.prototype.onYtServiceRequestCompleted;C3.prototype.onYtServiceRequestSent=C3.prototype.onYtServiceRequestSent;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],C3.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],C3.prototype,"ytRendererBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],C3.prototype,"data",void 0);_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],C3.prototype,"onYtServiceRequestSent",null);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],C3.prototype,"onYtServiceRequestCompleted",null);
_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],C3.prototype,"onYtServiceRequestError",null);_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],C3.prototype,"onPopupClosed",null);C3=_.B([_.L({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],C3);
_.P(C3,"ytd-kids-blocklist-picker-renderer",function(){if(NO_!==void 0)return NO_;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return NO_=p},{mode:1});var lMH;var cXt;var Sx=function(){return _.m.apply(this,arguments)||this};
_.E(Sx,_.m);Sx.prototype.setTip=function(p){var x=this;this.data&&(this.tip=SYk(JLk.getInstance(),p,this.data),_.jB(this,function(){_.hG(x.hostElement,"yt-refit")}))};
Sx.prototype.clearTip=function(){this.tip=void 0};
Sx.prototype.computeHidden=function(p){return!p};
var rZ=Sx;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],rZ.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.k("design:type",Boolean)],rZ.prototype,"hidden",void 0);_.B([_.H(),_.k("design:type",Object)],rZ.prototype,"tip",void 0);rZ=_.B([_.L({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],rZ);
_.P(rZ,"ytd-menu-popup-tip-renderer",function(){if(cXt!==void 0)return cXt;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);
return cXt=p},{mode:1});var aMH;var MUH=function(){var p=_.m.apply(this,arguments)||this;p.useIcons=!1;p.systemIcons=_.S("kevlar_system_icons");p.useListItemStyles=_.S("web_list_item_style_for_menu_items");return p};
_.E(MUH,_.m);_.l=MUH.prototype;_.l.onFocus=function(){var p;(p=_.n(this.hostElement).querySelector("tp-yt-paper-item"))==null||p.focus()};
_.l.onTap=function(){var p=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(p&&_.r(p,_.Zx))this.componentBehavior.resolveCommand(p),this.updateToggledStateInEntity();else if(p){this.componentBehavior.resolveCommand(p)||(_.S("web_ytd_toggle_menu_service_item_renderer_command_resolver_ks")?_.fc(this.hostElement,[p]):_.J().resolve(_.RD).resolveCommand(p,{form:{element:this.hostElement}}));var x;((x=_.r(p,_.dH))==null?void 0:x.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.l.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.l.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.l.updateToggledStateInEntity=function(){var p=this.data.toggleMenuServiceItemEntityKey,x=!this.data.isToggled;p&&this.ytdReduxBehavior.dispatch(_.KV("toggleMenuServiceItemEntity",p,{key:p,isToggled:x}))};
_.l.computeIcon=function(p,x,F){return(p=p?F:x)&&p.iconType?_.eA(p.iconType):""};
_.l.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.l.isIconActive=function(p){return!_.S("toggle_menu_active_icon_killswitch")&&p};
_.R8.Object.defineProperties(MUH.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return((p=this.data)==null?0:p.isToggled)?(x=this.data)==null?void 0:x.toggledText:(F=this.data)==null?void 0:F.defaultText}}});
var El=MUH;El.prototype.toggledStateEntityChanged=El.prototype.toggledStateEntityChanged;El.prototype.onYtServiceRequestCompleted=El.prototype.onYtServiceRequestCompleted;El.prototype.onTap=El.prototype.onTap;El.prototype.onFocus=El.prototype.onFocus;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],El.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],El.prototype,"componentBehavior",void 0);
_.B([_.u(_.nl),_.k("design:type",Object)],El.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],El.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],El.prototype,"useIcons",void 0);_.B([_.H({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.k("design:type",String)],El.prototype,"icon",void 0);
_.B([_.H({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(p,x){return _.M4(p.entities,"toggleMenuServiceItemEntity",x)}}),
_.k("design:type",Object)],El.prototype,"toggleMenuServiceItemEntity",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],El.prototype,"systemIcons",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],El.prototype,"useListItemStyles",void 0);_.B([_.V("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],El.prototype,"onFocus",null);
_.B([_.w("data.isToggled"),_.k("design:type",Object),_.k("design:paramtypes",[])],El.prototype,"toggleButtonText",null);_.B([_.V("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],El.prototype,"onTap",null);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],El.prototype,"onYtServiceRequestCompleted",null);
_.B([_.W("toggleMenuServiceItemEntity.isToggled","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],El.prototype,"toggledStateEntityChanged",null);El=_.B([_.L({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],El);
_.P(El,"ytd-toggle-menu-service-item-renderer",function(){if(aMH!==void 0)return aMH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return aMH=p},{mode:1});var DUe;var fM8=function(){return _.m.apply(this,arguments)||this};
_.E(fM8,_.m);fM8.prototype.onFocus=function(){var p;(p=_.n(this.hostElement).querySelector("tp-yt-paper-item"))==null||p.focus()};
_.R8.Object.defineProperties(fM8.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.ug(this.data.iconUrl)}}});
var Xu=fM8;Xu.prototype.onFocus=Xu.prototype.onFocus;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Xu.prototype,"rendererBehavior",void 0);_.B([_.u(_.NY.YtEndpointBehavior),_.k("design:type",Object)],Xu.prototype,"ytEndpointBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Xu.prototype,"data",void 0);_.B([_.V("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xu.prototype,"onFocus",null);
_.B([_.w("data.iconUrl"),_.k("design:type",Object),_.k("design:paramtypes",[])],Xu.prototype,"imageSource",null);Xu=_.B([_.L({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Xu);
_.P(Xu,"ytd-menu-custom-icon-item-renderer",function(){if(DUe!==void 0)return DUe;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return DUe=p},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});_.o7(_.Js,"yt-list-item-view-model",{props:{data:_.G2,isMenuItem:_.G2,isCompact:_.G2,onTap:_.mJ,trailingAccessory:_.G2,hideSelectionTextChevron:_.G2,disabled:_.G2,inPopup:_.G2,disableHorizontalPadding:_.G2,isOverlay:_.G2}});var KC8=function(){var p=_.m.apply(this,arguments)||this;p.disableBackdropFilter=_.S("web_disable_backdrop_filter");return p};
_.E(KC8,_.m);_.l=KC8.prototype;
_.l.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{menuNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalNavigationItemRenderer:{component:"ytd-menu-navigation-item-renderer",properties:{useIcons:"[[useIcons]]"}},menuConditionalServiceItemRenderer:{component:"ytd-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},
toggleMenuServiceItemRenderer:{component:"ytd-toggle-menu-service-item-renderer",properties:{useIcons:"[[useIcons]]"}},listItemViewModel:{component:"yt-list-item-view-model",params:{isCompact:!0}},menuCustomIconItemRenderer:{component:"ytd-menu-custom-icon-item-renderer"},menuServiceItemDownloadRenderer:{component:"ytd-menu-service-item-download-renderer"},clientSideToggleMenuItemRenderer:{component:"yt-live-chat-toggle-renderer"}}},"data.footer":{id:"footer",mapping:{menuPopupTipRenderer:"ytd-menu-popup-tip-renderer"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.l.computeAriaLabel=function(p){return p};
_.l.onPopupOpened=function(){this.items.selected=0;for(var p=_.a(_.n(this.items).children),x=p.next();!x.done;x=p.next())x.value.popupPositionTarget=this.positionTarget;if(p=this.popupTip||void 0)p.setTip(this.source||""),this.source=void 0;this.veData&&(p=_.b0())&&_.P5(p,[this.veData])};
_.l.onPopupClosed=function(){var p=this.popupTip||void 0;p&&p.clearTip()};
_.l.onIronActivate=function(p){this.shouldPersist(p)||_.lA(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(p=_.b0())&&_.B5(p,this.veData)};
_.l.shouldPersist=function(p){var x,F;if(((x=p.detail)==null?void 0:x.selected)===void 0||(F=this.data)==null||!F.items)return!1;var N,h;return!((h=(N=this.data.items[p.detail.selected])==null?void 0:N.toggleMenuServiceItemRenderer)==null||!h.persistentOnMenuPopup)};
_.l.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(p){return p.menuNavigationItemRenderer?!!p.menuNavigationItemRenderer.icon:p.menuServiceItemRenderer?!!p.menuServiceItemRenderer.icon:p.menuConditionalServiceItemRenderer?!!p.menuConditionalServiceItemRenderer.icon:p.menuConditionalNavigationItemRenderer?!!p.menuConditionalNavigationItemRenderer.icon:p.toggleMenuServiceItemRenderer?!!p.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
var gZ=KC8;gZ.prototype.onPopupClosed=gZ.prototype.onPopupClosed;gZ.prototype.onPopupOpened=gZ.prototype.onPopupOpened;_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],gZ.prototype,"ytEventForwardingBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],gZ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],gZ.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],gZ.prototype,"veData",void 0);_.B([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.k("design:type",String)],gZ.prototype,"ariaLabel",void 0);_.B([_.H({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],gZ.prototype,"useIcons",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],gZ.prototype,"disableBackdropFilter",void 0);_.B([_.Ff("#items"),_.k("design:type",Object)],gZ.prototype,"items",void 0);_.B([_.Ff("ytd-menu-popup-tip-renderer"),_.k("design:type",Object)],gZ.prototype,"popupTip",void 0);_.B([_.V("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gZ.prototype,"onPopupOpened",null);
_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gZ.prototype,"onPopupClosed",null);gZ=_.B([_.L({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],gZ);
_.P(gZ,"ytd-menu-popup-renderer",function(){if(lMH!==void 0)return lMH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return lMH=p},{mode:1});var qCD;var ZdD=_.mO(function(p){p=_.Vg(p,{icon:void 0});var x=p.data;p=p.icon;var F=function(){return x().iconBadgeText},N={},h=_.$L("yt-spec-icon-badge-shape",function(){a:switch(x().iconBadgeType){case "notification":var c="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":c="yt-spec-icon-badge-shape--type-cart";break a;default:c=""}return c},function(){a:switch(x().iconBadgeStyle){case "overlay":var c="yt-spec-icon-badge-shape--style-overlay";
break a;default:c=""}return c},(N["yt-spec-icon-badge-shape--text-size-small"]=function(){var c=F();
return!!((c==null?0:c.length)&&c.length>2)},N));
return _.Z("yt-icon-badge-shape",null,_.Z(_.D9,{cond:p,then:function(c){return _.Z("div",{class:h},_.Z("div",{class:"yt-spec-icon-badge-shape__icon"},_.Z(_.DS,{icon:c})),_.Z(_.D9,{cond:F,then:function(M){return _.Z("div",{class:"yt-spec-icon-badge-shape__badge"},M)}}))}}))},"Qf");
ZdD.idomCompat=!0;_.o7(ZdD,"yt-icon-badge-shape",{props:{data:_.G2,icon:_.G2}});var tUc=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};p.unseenCount=0;p.isOverlay=!1;return p};
_.E(tUc,_.m);_.l=tUc.prototype;_.l.attached=function(){var p=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(x){p.onServiceWorkerMessage(x)})};
_.l.onDataChanged=function(){this.isAttached&&!this.JSC$18080_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18080_lastData=this.data};
_.l.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.l.computeIcon=function(){var p,x;return(p=this.data)==null?void 0:(x=p.icon)==null?void 0:x.iconType};
_.l.onServiceWorkerMessage=function(p){p.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.l.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.r(this.data.updateUnseenCountEndpoint,_.dH)&&_.r(this.data.updateUnseenCountEndpoint,_.dH).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.l.handleUpdateNotificationsUnseenCountAction=function(p){var x=this;p=_.r(p,Cp8);p!=null&&p.unseenCount&&p.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(p.unseenCount),_.E0.addLowPriorityJob(function(){x.data.updateUnseenCountEndpoint&&x.ytComponentBehavior.resolveCommand(x.data.updateUnseenCountEndpoint)},p.timeoutMs))};
_.l.onClick=function(){_.hG(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var p=_.Mt(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),x=this.data.menuRequest;p&&p.length===1&&p[0]?_.lA(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):x&&this.ytComponentBehavior.resolveCommand(x)};
_.l.handleTopbarMenuClosedAction=function(p){p==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.l.toggleIconState=function(p){this.iconButton&&(this.iconButton.pressed=p)};
_.l.sendUnseenCountRequest=function(p){var x=this;_.vZ(_.E0,function(){x.ytComponentBehavior.resolveCommand(p)})};
_.l.updateCountUI=function(p){this.set("unseenCount",p<9?p:"9+")};
_.R8.Object.defineProperties(tUc.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
var QS=tUc;QS.prototype.handleUpdateNotificationsUnseenCountAction=QS.prototype.handleUpdateNotificationsUnseenCountAction;QS.prototype.onDataChanged=QS.prototype.onDataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],QS.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],QS.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.Oo),_.k("design:type",Object)],QS.prototype,"ytdOpenPopupBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],QS.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],QS.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],QS.prototype,"unseenCount",void 0);_.B([_.H(),_.k("design:type",Object)],QS.prototype,"isOverlay",void 0);_.B([_.H({value:!0}),_.k("design:type",Boolean)],QS.prototype,"showTooltips",void 0);_.B([_.Ff("yt-icon-button"),_.k("design:type",Object)],QS.prototype,"iconButton",void 0);
_.B([_.w("unseenCount"),_.k("design:type",Object),_.k("design:paramtypes",[])],QS.prototype,"showNotificationCount",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],QS.prototype,"onDataChanged",null);_.B([_.V("yt-update-notifications-unseen-count-action"),_.k("design:type",Function),_.k("design:paramtypes",[Object]),_.k("design:returntype")],QS.prototype,"handleUpdateNotificationsUnseenCountAction",null);
QS=_.B([_.L({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],QS);
_.P(QS,"ytd-notification-topbar-button-renderer",function(){if(qCD!==void 0)return qCD;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return qCD=p},{mode:_.UQ("kevlar_poly_si_batch_j025")?1:2});var dUD;var zq=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return p};
_.E(zq,_.m);zq.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}}}}}};
zq.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
zq.prototype.onDarkModeToggled=function(p){this.dark=p};
var sl=zq;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],sl.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],sl.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],sl.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],sl.prototype,"data",void 0);_.B([_.H({value:!0,reflectToAttribute:!0}),_.k("design:type",Boolean)],sl.prototype,"dark",void 0);
sl=_.B([_.L({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],sl);
_.P(sl,"yt-pdg-buy-flow-header-renderer",function(){if(dUD!==void 0)return dUD;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return dUD=p},{mode:1});var vGH;var JXm;var CZc=function(){var p=_.m.apply(this,arguments)||this;p.immediateValue=0;p.isDarkTheme=!1;p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.E(CZc,_.m);_.l=CZc.prototype;_.l.created=function(){_.Wx.requestAvailability()};
_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.dataChanged=function(){var p=_.n(this.hostElement).querySelector("#color-slider");p.immediateValue&&this.updateSliderKnobAndGradientStyles(p.immediateValue);this.data.notches[0].knobColorArgb&&_.eV(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.QK(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.sd("HTML_DIR")==="rtl"&&_.n(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.l.onSliderImmediateChange=function(){var p=_.n(this.hostElement).querySelector("#color-slider");p.dragging&&(p.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(p.immediateValue),this.updateSliderKnobAndGradientStyles(p.immediateValue)),this.updateSliderAria())};
_.l.onSliderChange=function(){var p=_.n(this.hostElement).querySelector("#color-slider");p.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(p.immediateValue),this.updateSliderKnobAndGradientStyles(p.immediateValue));this.updateSliderAria()};
_.l.updateSliderAria=function(){var p=_.n(this.hostElement).querySelector("#color-slider"),x=_.n(this.hostElement).querySelector("#color-slider");x=_.Pi(this.data.notches[x.immediateValue].tierValue);_.DmJ()&&_.hG(this.hostElement,"iron-announce",{text:x});p.setAttribute("aria-valuetext",x)};
_.l.updateSuperThanksSelectedTierEntity=function(p){if(p!==this.immediateValue){var x,F,N=this==null?void 0:(x=this.data)==null?void 0:(F=x.superThanksSelectedTierEntity)==null?void 0:F.key;N&&N.length>0&&this.ytdReduxBehavior.dispatch(_.KV("superThanksSelectedTierEntity",N,{key:N,index:p}))}};
_.l.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.l.updateSliderKnobAndGradientStyles=function(p){this.immediateValue=p;p=this.data.notches[p];if(p==null?0:p.knobColorArgb)var x={"--ytd-pdg-color-slider-knob-color":_.QK(p.knobColorArgb)};(p==null?0:p.linearGradientCssStyle)&&x!==null&&(x=Object.assign({},x,{"--ytd-pdg-color-slider-active-color":p==null?void 0:p.linearGradientCssStyle}));x!==null&&_.eV(this.hostElement,x)};
var n3=CZc;n3.prototype.onSliderChange=n3.prototype.onSliderChange;n3.prototype.onSliderImmediateChange=n3.prototype.onSliderImmediateChange;n3.prototype.dataChanged=n3.prototype.dataChanged;_.B([_.H(),_.k("design:type",Object)],n3.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],n3.prototype,"immediateValue",void 0);_.B([_.H(),_.k("design:type",Number)],n3.prototype,"maxMarkers",void 0);
_.B([_.H({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:at8}),_.k("design:type",Object)],n3.prototype,"superThanksSelectedTierEntity",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],n3.prototype,"isDarkTheme",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],n3.prototype,"ytdReduxBehavior",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],n3.prototype,"dataChanged",null);
_.B([_.V("immediate-value-change"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],n3.prototype,"onSliderImmediateChange",null);_.B([_.V("change"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],n3.prototype,"onSliderChange",null);n3=_.B([_.L({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],n3);
_.P(n3,"ytd-pdg-color-slider-renderer",function(){if(JXm!==void 0)return JXm;var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return JXm=p},{mode:1});var SCH;var rXt;var yS=null;
_.qu({is:"ytd-comment-input",_template:function(){if(rXt!==void 0)return rXt;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return rXt=p},
behaviors:[_.CiB.YtHostElementBehavior,_.C7,_.nJ.YtComponentBehavior,_.P6.YtRendererstamperBehavior,_.YCv.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 _.uu}},
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",_.p5(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;_.DQ();this.focus()},
detached:function(){document.removeEventListener("tap",_.p5(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(p){p=p.detail;p=p.isCustomEmoji?p.shortcuts[0]:p.emojiId;var x=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(x,p);this.maybeUpdateTextDirection_();_.hG(this.hostElement,"input")},
getInputRange_:function(){var p=_.Fo();if(p){p=p.getBrowserRangeObject();for(var x=p.commonAncestorContainer;x;){if(x===this.getEditableTextArea_())return p;x=x.parentNode}}p=this.getEditableTextArea_();p=_.Yz(p,p.childNodes.length);p.select();return p.getBrowserRangeObject()},
insertTextWithEmojis_:function(p,x,F){(x=this.emojiManager.createDocumentFragment(x,!0,!1,F===void 0?!0:F))&&x.childNodes.length!==0&&(p.collapsed||p.deleteContents(),F=x.lastChild,p.insertNode(x),_.KOb(F).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var p=_.Fo();if(p){var x=p.JSC$9092_getStartNode(),F=p.JSC$9092_getEndNode();if(k5H(x)&&k5H(F)){var N=p.JSC$9092_getStartOffset(),h;if(_.KT&&x.nodeType===Node.ELEMENT_NODE&&(h=_.e8v(x)))_.Yz(h,0).select();else{h=xA(x)?x:_.uk(x,xA);var c=xA(F)?F:_.uk(F,xA);if(h||c)if(p.isCollapsed()){if(x.nodeType===Node.TEXT_NODE){p=!0;N===x.length&&(p=!1);if(yS==="end"||yS==="right")p=!1;x=x.parentNode;p=[].concat(_.se(x.parentNode.childNodes)).indexOf(x)+(p?0:1);_.Yz(x.parentNode,p).select()}}else h?
h.previousSibling&&h.previousSibling.length>0?_.w_(F,p.JSC$9092_getEndOffset(),h.previousSibling,h.previousSibling.length-1).select():(x=document.createTextNode("\u200b"),h.parentNode.insertBefore(x,h),_.w_(F,p.JSC$9092_getEndOffset(),x,0).select()):c&&(c.nextSibling&&c.nextSibling.length>0?_.w_(x,p.JSC$9092_getStartOffset(),c.nextSibling,1).select():(F=document.createTextNode("\u200b"),c.parentNode.insertBefore(F,c.nextSibling),_.w_(x,p.JSC$9092_getStartOffset(),F,F.length).select()));yS=null}}else yS=
null}else yS=null},
leftKeyPressed_:function(){yS="left"},
rightKeyPressed_:function(){yS="right"},
endKeyPressed_:function(){yS="end"},
maybeDeleteChip_:function(){var p=pkc(!0);if(p){var x=_.Fo(),F=x.JSC$9092_getStartNode();x=x.JSC$9092_getStartOffset();_.nW(F,x,p,p.childNodes.length).select()}},
maybeBackspaceChip_:function(){var p=pkc(!1);if(p){var x=_.Fo(),F=x.JSC$9092_getStartNode();x=x.JSC$9092_getStartOffset();_.nW(F,x,p,0).select()}},
maybeBackspaceChipWordMode_:function(p){var x=_.Fo();if(x.isCollapsed()){var F=x.JSC$9092_getStartNode();x=x.JSC$9092_getStartOffset();var N=x8a(F,x,!0);N&&(_.nW(F,x,N,0).select(),document.execCommand("delete"),p.preventDefault(),p.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(p){var x=_.Fo();if(x.isCollapsed()){var F=x.JSC$9092_getStartNode();x=x.JSC$9092_getStartOffset();var N=x8a(F,x,!1);N&&(_.nW(F,x,N,N.childNodes.length).select(),document.execCommand("delete"),p.preventDefault(),p.stopImmediatePropagation())}},
onContentClick:function(p){p.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(p){p.defaultPrevented||p.currentTarget.tagName==="YTD-COMMENT-INPUT"&&xA(p.target)&&p.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.n(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.n(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(p,x){p=iTm(p,this.emojiManager,x).cloneNode(!0);for(x=p.firstChild;x;)if(x.nodeType!==1)x=x.nextSibling;else switch(x.tagName){case "BR":var F=_.uH();_.anI(F,x);x=F.nextSibling;break;case "DIV":(F=x.lastChild)&&x.nextSibling&&_.VO(_.uH(),F);x.previousSibling&&(x.previousSibling.nodeType===1||x.previousSibling.nodeType===3&&!x.previousSibling.textContent.endsWith("\n"))&&_.Ga(_.uH(),x);F&&F.nodeName==="BR"&&_.qc(F);F=x;x.hasChildNodes()?(x=x.firstChild,
_.MPv(F)):(x=x.nextSibling,_.qc(F));break;default:x=x.nextSibling}return Fja(p)},
setTextAreaValue:function(p){p||(p="");var x=this.getEditableFormattedString_();x.text="";this.getEditableTextArea_().innerText="";typeof p==="string"&&(p={runs:[{text:p}]});x.text=p},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();yS=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var p=this.getEditableTextArea_();p&&(_.Yz(p,p.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.sd("HTML_DIR")==="rtl"){var p=this.getEditableTextArea_(),x=this.getTextAreaValue()!==""?"auto":"rtl";p.setAttribute("dir",x)}},
handleInputEvent_:function(){var p=null;if(this.isEmojiButtonDisplayed){var x=this.getInputRange_();x&&(p=this.emojiInput.retrieveTextBeforeRange(x))}this.insertText_(p,!0);this.updateCharCount_();p=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=p.scrollHeight>p.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var p=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:p})},
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(p){this.isEmojiButtonDisplayed&&(p.preventDefault(),p.stopImmediatePropagation(),p=p.clipboardData.getData("text/plain"),this.insertText_(p,!1,!1),_.hG(this.hostElement,"input"))},
insertText_:function(p,x,F){x=x===void 0?!1:x;F=F===void 0?!0:F;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&p){var N=this.getInputRange_().cloneRange();this.emojiManager&&N&&(x&&this.emojiInput.offsetStartOfRangeBy(N,p.length),this.insertTextWithEmojis_(N,p,F),UL_(this.getEditableTextArea_().lastChild)||(N=this.getInputRange_().cloneRange()),N&&(this.emojiInput.updateSuggestions(N,p),this.updateSuggestionOffset_(N)))}},
getSimpleString:_.Pi,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(p){return p?"focused":"not-focused"},
computePlaceholderText_:function(p){return this.getSimpleString(p)},
computeEditableText_:function(p){return this.getSimpleString(p)},
onPrefilledContentDismissed_:function(p){p.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(p,x){p?this.fire("yt-autonav-pause-focus"):x!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(p){var x=this.getEditableTextArea_();[].concat(_.se(p.dataTransfer.items)).forEach(function(F){F.kind==="string"&&F.type.match("^text/plain")&&F.getAsString(function(N){x.appendChild(document.createTextNode(N))})});
p.preventDefault()},
preventDefault_:function(p){p.preventDefault()},
onSuggestionInsert_:function(p){this.insertTextWithEmojis_(p.detail.range,p.detail.text)},
onEmojiSuggestionClick_:function(p){this.emojiInput.insertSuggestion(p.detail)},
updateSuggestionOffset_:function(p){if(this.emojiInput&&_.n(this.emojiInput).querySelector("#dropdown")){var x=this.getEditableTextArea_().getBoundingClientRect().bottom,F=p.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(x-F)+5;x=this.getEditableTextArea_().getBoundingClientRect().left;p=p.getBoundingClientRect().left-x;_.n(this.emojiInput).querySelector("#dropdown").style.marginLeft=p+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.s0("yt-post"));return this.localStorage}});var EGt=function(){var p=_.m.apply(this,arguments)||this;p.currentCommentOptionIndex=0;p.isEmojiPickerDisplayed=!1;p.emojiManager=_.uu;p.isUgcEmpty=!1;p.userGeneratedCommentChangedHandler=function(){_.hG(p.hostElement,"ytd-pdg-user-generated-comment-changed");p.isEmojiYtdCommentInputEnabled&&(p.isUgcEmpty=!p.ytdCommentInputEl.getTextAreaValue())};
p.pasteHandler=function(x){x.preventDefault();x.stopImmediatePropagation();var F;if(x=(F=x.clipboardData)==null?void 0:F.getData("text/plain"))F=document.getSelection().getRangeAt(0),F.collapsed||F.deleteContents(),x=document.createTextNode(x),F.insertNode(x),F.selectNodeContents(x),F.collapse(!1),x=window.getSelection(),x.removeAllRanges(),x.addRange(F)};
p.onDocumentClick=function(x){if(p.isEmojiPickerDisplayed){var F,N,h;!(x.target instanceof Node)||(F=x.composedPath())!=null&&F.includes(p.editableTextEl)||(N=x.composedPath())!=null&&N.includes(p.emojiButtonEl)||(h=x.composedPath())!=null&&h.includes(p.emojiPickerEl)||(p.isEmojiPickerDisplayed=!1)}};
return p};
_.E(EGt,_.m);_.l=EGt.prototype;_.l.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.l.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.l.detached=function(){var p;(p=this.contentEl)==null||p.removeEventListener("input",this.userGeneratedCommentChangedHandler);var x;(x=this.contentEl)==null||x.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.l.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.l.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var p;this.contentEl.textContent=this.rendererBehavior.getSimpleString((p=this.data)==null?void 0:p.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.l.reloadEmojis=function(){this.emojiPickerEl&&_.r(this.emojiPicker,_.IdB)&&this.emojiPickerEl.updateEmojiCategories()};
_.l.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.eV(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.l.handleBackgroundColorStyling=function(){var p;if((p=this.currentCommentOption)==null?0:p.commentBackgroundColorArgb){var x;_.eV(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.QK((x=this.currentCommentOption)==null?void 0:x.commentBackgroundColorArgb)})}else _.eV(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.l.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var p;(p=this.contentEl)==null||p.focus()}};
_.l.onEditButtonClick=function(p){var x=document.getSelection();x&&this.contentEl&&(p.stopPropagation(),p.preventDefault(),x.selectAllChildren(this.contentEl),x.collapseToEnd())};
_.l.onContentDrop=function(p){var x=this;if(p.dataTransfer){p=_.a(p.dataTransfer.items);for(var F=p.next();!F.done;F=p.next())F=F.value,F.kind==="string"&&F.type.match("^text/plain")&&F.getAsString(function(N){var h;(h=x.contentEl)==null||h.appendChild(document.createTextNode(N))})}};
_.l.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.l.getUserGeneratedCommentText=function(){var p,x=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(p=this.contentEl)==null?void 0:p.textContent;return x?x.trim():""};
_.l.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.l.onEmojiSelect=function(p){this.ytdCommentInputEl.onEmojiSelect(p)};
_.R8.Object.defineProperties(EGt.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.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 p;return!((p=this.currentCommentOption)==null||!p.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var p;if(_.r((p=this.currentCommentOption)==null?void 0:p.chipRenderer,_.aej)){var x;return _.r((x=this.currentCommentOption)==null?void 0:x.chipRenderer,_.aej)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var p,x;return((p=this.data)==null?0:p.commentOptionRenderers)?_.r((x=this.data)==null?void 0:x.commentOptionRenderers[this.superThanksSelectedTierEntity.index],kpH):void 0}var F,N;return((F=this.data)==null?0:F.commentOptionRenderers)?_.r((N=this.data)==null?void 0:N.commentOptionRenderers[this.currentCommentOptionIndex],kpH):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var p;return this.rendererBehavior.getSimpleString((p=this.data)==null?void 0:p.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var p;return this.rendererBehavior.getSimpleString((p=this.data)==null?void 0:p.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var p,x;return(x=_.r((p=this.data)==null?void 0:p.commentDialog,_.B8I))==null?void 0:x.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var p,x;return(x=_.r((p=this.data)==null?void 0:p.commentDialog,_.B8I))==null?void 0:x.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var p,x;return(x=_.r((p=this.data)==null?void 0:p.commentDialog,_.B8I))==null?void 0:x.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var p,x,F=(x=_.r((p=this.data)==null?void 0:p.commentDialog,_.B8I))==null?void 0:x.emojiPicker;if(!_.r(F,_.IdB)||!_.r(F,_.IdB).categories)return!1;p=function(c){return c.emojiPickerCategoryRenderer?c.emojiPickerCategoryRenderer.emojiIds&&c.emojiPickerCategoryRenderer.emojiIds.length>0:c.emojiPickerUpsellCategoryRenderer?c.emojiPickerUpsellCategoryRenderer.emojis&&c.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var N,h;return((N=_.r(F,_.IdB))==null?0:(h=N.categories)==null?0:h.find(p))?!0:!1}}});
var bs=EGt;bs.prototype.onEmojiSelect=bs.prototype.onEmojiSelect;bs.prototype.dataChanged=bs.prototype.dataChanged;bs.prototype.currentCommentOptionChanged=bs.prototype.currentCommentOptionChanged;_.B([_.u(_.nl),_.k("design:type",Object)],bs.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],bs.prototype,"rendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],bs.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.Ff("#content-dom-if"),_.k("design:type",_.tZ)],bs.prototype,"contentDomIfEl",void 0);_.B([_.Ff("#content-no-emojis"),_.k("design:type",HTMLElement)],bs.prototype,"contentEl",void 0);_.B([_.Ff("#container"),_.k("design:type",HTMLElement)],bs.prototype,"containerEl",void 0);_.B([_.Ff("#comment-chip-container"),_.k("design:type",HTMLElement)],bs.prototype,"paidCommentChipContainerEl",void 0);_.B([_.Ff("#text-input"),_.k("design:type",HTMLElement)],bs.prototype,"editableTextEl",void 0);
_.B([_.Ff("#emoji-button"),_.k("design:type",HTMLElement)],bs.prototype,"emojiButtonEl",void 0);_.B([_.Ff("#emoji-picker > yt-emoji-picker-renderer"),_.k("design:type",Object)],bs.prototype,"emojiPickerEl",void 0);_.B([_.Ff("#text-input > ytd-comment-input"),_.k("design:type",Object)],bs.prototype,"ytdCommentInputEl",void 0);_.B([_.H(),_.k("design:type",Object)],bs.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],bs.prototype,"currentCommentOptionIndex",void 0);
_.B([_.H({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:at8}),_.k("design:type",Object)],bs.prototype,"superThanksSelectedTierEntity",void 0);_.B([_.H(),_.k("design:type",Object)],bs.prototype,"isEmojiPickerDisplayed",void 0);_.B([_.H(),_.k("design:type",Object)],bs.prototype,"emojiManager",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],bs.prototype,"isUgcEmpty",void 0);
_.B([_.W("currentCommentOption"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bs.prototype,"currentCommentOptionChanged",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bs.prototype,"dataChanged",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bs.prototype,"isEmojiYtdCommentInputEnabled",null);
_.B([_.w("data.title"),_.k("design:type",Object),_.k("design:paramtypes",[])],bs.prototype,"title",null);_.B([_.w("data.authorText"),_.k("design:type",Object),_.k("design:paramtypes",[])],bs.prototype,"channelName",null);_.B([_.w("data.commentOptionRenderers","currentCommentOption"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bs.prototype,"shouldShowPaidCommentChipRenderer",null);
_.B([_.w("data.commentOptionRenderers","currentCommentOption"),_.k("design:type",Object),_.k("design:paramtypes",[])],bs.prototype,"paidCommentChipRenderer",null);_.B([_.w("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],bs.prototype,"currentCommentOption",null);
_.B([_.w("data.defaultCommentText","superThanksSelectedTierEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],bs.prototype,"commentText",null);_.B([_.w("data.placeholderText"),_.k("design:type",Object),_.k("design:paramtypes",[])],bs.prototype,"placeholderText",null);_.B([_.w("data.commentDialog.commentDialogRenderer.editableText"),_.k("design:type",Object),_.k("design:paramtypes",[])],bs.prototype,"editableText",null);
_.B([_.w("data.commentDialog.commentDialogRenderer.emojiButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],bs.prototype,"emojiButton",null);_.B([_.w("data.commentDialog.commentDialogRenderer.emojiPicker"),_.k("design:type",Object),_.k("design:paramtypes",[])],bs.prototype,"emojiPicker",null);
_.B([_.w("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bs.prototype,"isEmojiButtonDisplayed",null);_.B([_.V("yt-emoji-select"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],bs.prototype,"onEmojiSelect",null);bs=_.B([_.L({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],bs);
_.P(bs,"ytd-pdg-comment-preview-renderer",function(){if(SCH!==void 0)return SCH;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return SCH=p},{mode:2});var XCm;var gGD=function(){var p=_.m.apply(this,arguments)||this;p.selected=!1;return p};
_.E(gGD,_.m);_.l=gGD.prototype;_.l.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.l.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.l.dataChanged=function(){this.data&&(_.Ub(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.eV(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.QK(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.QK(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.l.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.l.onClick=function(){this.logClick()};
_.l.onKeyboardSelect=function(){_.hG(this.hostElement,"tap");this.onClick()};
_.l.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
var Ai=gGD;Ai.prototype.onClick=Ai.prototype.onClick;Ai.prototype.selectedChanged=Ai.prototype.selectedChanged;Ai.prototype.dataChanged=Ai.prototype.dataChanged;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Ai.prototype,"componentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ai.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.C7),_.k("design:type",Object)],Ai.prototype,"ironA11yKeysBehavior",void 0);
_.B([_.u(_.yg),_.k("design:type",Object)],Ai.prototype,"ironSelectableBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ai.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Ai.prototype,"shownThumbnail",void 0);_.B([_.H(),_.k("design:type",Object)],Ai.prototype,"basePriceText",void 0);_.B([_.H(),_.k("design:type",Object)],Ai.prototype,"purchaseCommand",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ai.prototype,"selected",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ai.prototype,"dataChanged",null);_.B([_.W("selected"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ai.prototype,"selectedChanged",null);_.B([_.V("click"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ai.prototype,"onClick",null);
Ai=_.B([_.L({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],Ai);
_.P(Ai,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(XCm!==void 0)return XCm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return XCm=p},{mode:1});var QjH=function(){var p=_.m.apply(this,arguments)||this;p.selectedItemIndex=0;p.buyButtonDisabled=!1;return p};
_.E(QjH,_.m);_.l=QjH.prototype;
_.l.configureRendererStamper=function(){return{"data.commentPreview":{id:"comment-preview",mapping:{pdgCommentPreviewRenderer:{component:"ytd-pdg-comment-preview-renderer",properties:{currentCommentOptionIndex:"[[selectedItemIndex]]"}}}},"data.selectableItemButtons":{id:"selectable-items",mapping:{buttonRenderer:{component:"ytd-button-renderer"},superVodSelectableItemButtonRenderer:{component:"ytd-pdg-super-vod-selectable-item-button-renderer"}}},"data.colorSlider":{id:"slider",mapping:{pdgColorSliderRenderer:{component:"ytd-pdg-color-slider-renderer",
properties:{immediateValue:"[[selectedItemIndex]]"}}}}}};
_.l.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var p;var x=(p=_.r(this.data.colorSlider,RJt))==null?void 0:p.notches[this.selectedItemIndex].purchaseCommand}else{var F;x=(F=_.r(this.data.selectableItemButtons[this.selectedItemIndex],i_X))==null?void 0:F.purchaseCommand}if(x){p=_.r(x,_.g6D);p.productData||(p.productData={});var N;p.productData={pdgData:{commentMessageText:(N=this.commentPreviewRenderer)==null?void 0:N.getUserGeneratedCommentText()}};
_.hG(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(x)}}};
_.l.dataChanged=function(){if(this.data){_.uu.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.dSZ(_.uu,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.uu.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var p;this.buyButtonDisabled=!((p=_.r(this.data.commentPreview,UQH))==null||!p.placeholderText);this.updatePriceSelectorStatus();var x;if((x=this.data)==null?0:x.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;p=[];this.data.preloadImages&&(p=this.data.preloadImages);
p=p.map(function(F){return _.Ou(F.thumbnails,1920)});
p=_.a(p);for(x=p.next();!x.done;x=p.next())(x=x.value)&&_.nUM(x).thenCatch(function(){_.no(Error("jl"))})}};
_.l.superThanksSelectedTierEntityChanged=function(){var p;(this==null?void 0:(p=this.superThanksSelectedTierEntity)==null?void 0:p.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.l.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.l.updatePriceSelectorStatus=function(){this.isColorSlider?(_.n(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.n(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.n(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.n(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.l.closeBuyFlow=function(){_.lA(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.l.onUserGeneratedContentChanged=function(){var p;this.buyButtonDisabled=!((p=this.commentPreviewRenderer)==null?0:p.getUserGeneratedCommentText())};
_.l.updateSelectedItemIndexFromBinding=function(p){this.selectedItemIndex=p.detail.value};
_.R8.Object.defineProperties(QjH.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var p;return!((p=this.data)==null||!p.disclaimerText)}}});
var Tq=QjH;Tq.prototype.onUserGeneratedContentChanged=Tq.prototype.onUserGeneratedContentChanged;Tq.prototype.closeBuyFlow=Tq.prototype.closeBuyFlow;Tq.prototype.selectedItemIndexChanged=Tq.prototype.selectedItemIndexChanged;Tq.prototype.superThanksSelectedTierEntityChanged=Tq.prototype.superThanksSelectedTierEntityChanged;Tq.prototype.dataChanged=Tq.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Tq.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Tq.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Tq.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Tq.prototype,"selectedItemIndex",void 0);_.B([_.H(),_.k("design:type",Boolean)],Tq.prototype,"isColorSlider",void 0);
_.B([_.H(),_.k("design:type",Object)],Tq.prototype,"buyButtonDisabled",void 0);_.B([_.H({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:at8}),_.k("design:type",Object)],Tq.prototype,"superThanksSelectedTierEntity",void 0);_.B([_.Ff("ytd-pdg-comment-preview-renderer"),_.k("design:type",Object)],Tq.prototype,"commentPreviewRenderer",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],Tq.prototype,"ytdReduxBehavior",void 0);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Tq.prototype,"dataChanged",null);_.B([_.W("superThanksSelectedTierEntity"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Tq.prototype,"superThanksSelectedTierEntityChanged",null);_.B([_.W("selectedItemIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Tq.prototype,"selectedItemIndexChanged",null);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Tq.prototype,"closeBuyFlow",null);_.B([_.V("ytd-pdg-user-generated-comment-changed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Tq.prototype,"onUserGeneratedContentChanged",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Tq.prototype,"isDisclaimerTextShown",null);
Tq=_.B([_.L({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],Tq);
_.P(Tq,"yt-super-vod-buy-flow-content-renderer",function(){if(vGH!==void 0)return vGH;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return vGH=p},{mode:1});var zw8;var sjm=function(){var p=_.m.apply(this,arguments)||this;p.lottieAnimationRef={};return p};
_.E(sjm,_.m);_.l=sjm.prototype;_.l.created=function(){_.Wx.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.p5(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.l.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.hG(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.l.detached=function(){this.autoCloseJobId&&_.E0.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.p5(this,this.onPopupIronOverlayOpened))};
_.l.dataChanged=function(){var p=this;this.data&&this.data.autoCloseDelay&&(_.lA(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.TT(_.E0,function(){p.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.eV(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.l.onDOMLoadedLottie=function(){var p=this,x,F,N=Number((x=this.data)==null?void 0:(F=x.autoCloseDelay)==null?void 0:F.seconds)||0;this.fadeOutJobId=_.TT(_.E0,function(){p.lottiePlayerEl.classList.add("fadeout")},(N-.25)*1E3);
this.autoCloseJobId=_.TT(_.E0,function(){p.closePopup()},N*1E3)};
_.l.openPopup=function(){this.ironOverlayBehavior.open()};
_.l.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.lA(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.Kc(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&(_.S("web_ytd_desktop_image_overlay_renderer_command_resolver_ks")?_.fc(this.hostElement,[this.data.onCloseSurveyCommand]):_.J().resolve(_.RD).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}})),
this.autoCloseJobId&&_.E0.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.E0.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&this.lottiePlayerEl.classList.remove("fadeout"))};
_.l.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var p,x;(p=this.lottieAnimationRef)==null||(x=p.lottieEl)==null||x.destroy();p=this.data.lottie;var F,N;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:p.url+"_"+Math.random(),path:p.url,autoplay:!0,loop:(N=(F=p.settings)==null?void 0:F.loop)!=null?N:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.R8.Object.defineProperties(sjm.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var p,x;return!!((p=this.data)==null?0:(x=p.lottie)==null?0:x.url)}}});
var BR=sjm;BR.prototype.maybeInitializeLottie=BR.prototype.maybeInitializeLottie;BR.prototype.dataChanged=BR.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],BR.prototype,"rendererBehavior",void 0);_.B([_.u(_.jC),_.k("design:type",Object)],BR.prototype,"ironOverlayBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],BR.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],BR.prototype,"lottiePlayerProps",void 0);
_.B([_.H(),_.k("design:type",Object)],BR.prototype,"lottieAnimationRef",void 0);_.B([_.Ff("ytd-lottie-player"),_.k("design:type",HTMLElement)],BR.prototype,"lottiePlayerEl",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BR.prototype,"dataChanged",null);_.B([_.w("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],BR.prototype,"hasLottieAnimation",null);
_.B([_.W("data.lottie.url"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BR.prototype,"maybeInitializeLottie",null);BR=_.B([_.L({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],BR);
_.P(BR,"ytd-desktop-image-overlay-renderer",function(){if(zw8!==void 0)return zw8;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return zw8=p},{mode:1});var nGm;var yX8=function(){return _.m.apply(this,arguments)||this};
_.E(yX8,_.m);_.l=yX8.prototype;_.l.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{pdgBuyFlowHeaderRenderer:{component:"yt-pdg-buy-flow-header-renderer"}}},"data.content":{id:"content",mapping:{superVodBuyFlowContentRenderer:{component:"yt-super-vod-buy-flow-content-renderer"}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("tabIndex")||this.hostElement.setAttribute("tabIndex","0");this.hostElement.addEventListener("yt-popup-closed",_.p5(this,this.closePopup))};
_.l.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.p5(this,this.closePopup))};
_.l.dataChanged=function(){_.Mt(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.r(this.data.header,Bc8)&&(this.hasBackgroundBanner=!!_.r(this.data.header,Bc8).backgroundBanner)};
_.l.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.p5(this,this.closePopup))};
_.l.closePopup=function(){this.data&&this.data.onCloseCommand&&_.fc(this.hostElement,[this.data.onCloseCommand])};
var R6=yX8;R6.prototype.handleBuyflowSelectionSubmitted=R6.prototype.handleBuyflowSelectionSubmitted;R6.prototype.dataChanged=R6.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],R6.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],R6.prototype,"data",void 0);
_.B([_.H({value:!0,reflectToAttribute:!0}),_.k("design:type",Boolean)],R6.prototype,"hasBackgroundBanner",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],R6.prototype,"dataChanged",null);_.B([_.V("yt-pdg-buy-flow-selection-submitted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],R6.prototype,"handleBuyflowSelectionSubmitted",null);
R6=_.B([_.L({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],R6);
_.P(R6,"ytd-pdg-buy-flow-renderer",function(){if(nGm!==void 0)return nGm;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return nGm=p},{mode:1});var bda;var AXm=function(){var p=_.m.apply(this,arguments)||this;p.isOpen=!1;p.isPlaylistCreated=!1;return p};
_.E(AXm,_.m);_.l=AXm.prototype;_.l.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.l.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.hG(this.hostElement,"yt-refit")};
_.l.onCreateTap=function(){var p=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.fc(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(x,F){if(!_.S("killswitch_ep_in_create_playlist_response")&&(F==null?0:F.actions))for(x=_.a(F.actions),F=x.next();!F.done;F=x.next())F=F.value,_.r(F,_.Af)&&p.ytComponentBehavior.resolveCommand(F)}}]),this.isPlaylistCreated=!0)};
_.l.onKeydown=function(p){if(p.keyCode===13)this.onCreateTap()};
_.l.onServiceRequestCompleted=function(p){p.stopPropagation();_.lA(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.l.computePrivacyBadge=function(p){return p?[{metadataBadgeRenderer:p}]:[]};
var k0=AXm;k0.prototype.onServiceRequestCompleted=k0.prototype.onServiceRequestCompleted;k0.prototype.onKeydown=k0.prototype.onKeydown;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],k0.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],k0.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],k0.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],k0.prototype,"isOpen",void 0);
_.B([_.H(),_.k("design:type",Object)],k0.prototype,"isPlaylistCreated",void 0);_.B([_.H({value:{REQUIRED_LABEL:_.JG("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.JG("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.k("design:type",Object)],k0.prototype,"addToStrings",void 0);_.B([_.H({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.k("design:type",Array)],k0.prototype,"privacyBadge",void 0);
_.B([_.Ff("#privacy-input"),_.k("design:type",Object)],k0.prototype,"privacyInput",void 0);_.B([_.Ff("#name-input"),_.k("design:type",Object)],k0.prototype,"nameInput",void 0);_.B([_.V("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent]),_.k("design:returntype")],k0.prototype,"onKeydown",null);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],k0.prototype,"onServiceRequestCompleted",null);
k0=_.B([_.L({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],k0);
_.P(k0,"ytd-add-to-playlist-create-renderer",function(){if(bda!==void 0)return bda;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return bda=p},{mode:1});var usm;var YCk;var Ul=function(){var p=_.m.apply(this,arguments)||this;p.transferState="TRANSFER_STATE_UNKNOWN";return p};
_.E(Ul,_.m);Ul.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
Ul.prototype.onCheckboxChange=function(p){var x=this;this.data&&_.sQ(this,"yt-playlist-checkbox-changed",function(){var F=_.os(p).checked?x.data.addToPlaylistServiceEndpoint:x.data.removeFromPlaylistServiceEndpoint;F&&(_.S("web_ytd_playlist_add_to_option_renderer_command_resolver_ks")?_.fc(x.hostElement,[F]):_.J().resolve(_.RD).resolveCommand(F,{form:{element:x.hostElement}}));_.S("dl_playlist_killswitch")||x.transferState!=="TRANSFER_STATE_UNKNOWN"&&x.transferState!=="TRANSFER_STATE_FAILED"&&x.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:x.data.playlistId,
action:"ACTION_SYNC"}})},100)};
Ul.prototype.computeIconType=function(p){return p?"yt-icons:"+p.toLowerCase():null};
var is=Ul;is.prototype.dataChanged=is.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],is.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],is.prototype,"data",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],is.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],is.prototype,"ytComponentBehavior",void 0);_.B([_.Ff("#checkbox"),_.k("design:type",HTMLInputElement)],is.prototype,"checkbox",void 0);
_.B([_.H({selector:_.YO,selectorArgs:["data.playlistId"]}),_.k("design:type",String)],is.prototype,"transferState",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],is.prototype,"dataChanged",null);is=_.B([_.L({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],is);
_.P(is,"ytd-playlist-add-to-option-renderer",function(){if(YCk!==void 0)return YCk;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return YCk=p},{mode:1});_.iK(NMH);_.kL(NMH,"ytd-menu-title-renderer",{propNames:["data"]});var wCe=function(){var p=_.m.apply(this,arguments)||this;p.addToStrings={ADD_TO_DROPDOWN_LABEL:_.JG("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};p.closeButtonAriaLabel=_.JG("SBOX_INAPPROPRIATE_CANCEL");p.dialog=_.S("desktop_add_to_playlist_renderer_dialog_popup");return p};
_.E(wCe,_.m);_.l=wCe.prototype;_.l.configureRendererStamper=function(){return{"data.playlists":{id:"playlists",mapping:{playlistAddToOptionRenderer:"ytd-playlist-add-to-option-renderer"}},"data.actions":{id:"actions",mapping:{addToPlaylistCreateRenderer:"ytd-add-to-playlist-create-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.l.onPopupOpened=function(){_.iX(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.l.onPopupClosed=function(){_.iX(this.playlists,"scrollable",!1)};
_.l.computeAriaLabel=function(){var p;if(this==null?0:(p=this.data)==null?0:p.actions){p=_.a(this.data.actions);for(var x=p.next();!x.done;x=p.next())if(x=x.value,x.menuTitleRenderer)return _.Pi(x.menuTitleRenderer.title)}};
_.l.onTapClose=function(){_.lA(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.R8.Object.defineProperties(wCe.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var p;if(this==null?0:(p=this.data)==null?0:p.actions){p=_.a(this.data.actions);for(var x=p.next();!x.done;x=p.next())if(x=x.value,x.menuTitleRenderer)return x.menuTitleRenderer}return!1}}});
var I6=wCe;I6.prototype.onPopupClosed=I6.prototype.onPopupClosed;I6.prototype.onPopupOpened=I6.prototype.onPopupOpened;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],I6.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],I6.prototype,"ytEventForwardingBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],I6.prototype,"ytRendererStamperBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],I6.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],I6.prototype,"addToStrings",void 0);_.B([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.k("design:type",String)],I6.prototype,"ariaLabel",void 0);_.B([_.H(),_.k("design:type",String)],I6.prototype,"closeButtonAriaLabel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],I6.prototype,"dialog",void 0);
_.B([_.Ff("#playlists"),_.k("design:type",HTMLElement)],I6.prototype,"playlists",void 0);_.B([_.Ff("ytd-add-to-playlist-create-renderer"),_.k("design:type",Object)],I6.prototype,"createRenderer",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],I6.prototype,"menuTitleRenderer",null);_.B([_.V("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],I6.prototype,"onPopupOpened",null);
_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],I6.prototype,"onPopupClosed",null);I6=_.B([_.L({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],I6);
_.P(I6,"ytd-add-to-playlist-renderer",function(){if(usm!==void 0)return usm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return usm=p},{mode:1});var G0a;var VUm=function(){var p=_.m.apply(this,arguments)||this;p.isPlaylistEditComplete=!1;p.isCollabEngagementDisabled=!1;p.closeButtonAriaLabel=_.JG("SBOX_INAPPROPRIATE_CANCEL");p.saveButton={title:_.JG("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"};p.onValueChanged=function(){p.updateSaveButtonState();p.computeCollabEngagementDisabled()};
return p};
_.E(VUm,_.m);_.l=VUm.prototype;_.l.attached=function(){this.JSC$18136_scroller&&(this.JSC$18136_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18136_scroller.attached&&typeof this.JSC$18136_scroller.attached==="function"&&this.JSC$18136_scroller.attached())};
_.l.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.l.onPopupClosed=function(){this.reset()};
_.l.close=function(){_.lA(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.l.onClickSave=function(){var p=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var x=[];this.nameInput.value!==null&&x.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&x.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var F=Number(this.privacyInput.value);isNaN(F)||x.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:F})}this.votingInput.value!==null&&(F=this.votingInput.value)&&x.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:F});if(x.length>0){var N;_.r((N=this.data)==null?void 0:N.updateSettingsEndpoint,_.n4).actions=x;var h;if((h=this.data)==null?0:h.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){p.close()}}}),this.isPlaylistEditComplete=!0}}};
_.l.computePrivacyBadge=function(p){return p?[{metadataBadgeRenderer:p}]:[]};
_.l.computeEditorData=function(p){var x,F;return p==null?void 0:(x=p.sections)==null?void 0:(F=x[0])==null?void 0:F.playlistSettingsEditorCasualSectionRenderer};
_.l.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.l.configureRendererStamper=function(){return{"editorData.thumbnail":{id:"thumbnail",mapping:{playlistVideoThumbnailRenderer:{component:"ytd-playlist-video-thumbnail-renderer",params:{width:9999}},playlistCustomThumbnailRenderer:{component:"ytd-playlist-custom-thumbnail-renderer",params:{size:312}}}}}};
_.l.updateSaveButtonState=function(){this.isFormChanged()&&this.isFormValid()?this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_ACTIVE"})):this.set("saveButton",Object.assign({},this.saveButton,{state:"BUTTON_VIEW_MODEL_STATE_DISABLED"}))};
_.l.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.l.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.l.isNameChanged=function(){var p,x,F;return(((p=this.editorData)==null?void 0:(x=p.name)==null?void 0:(F=x.textInputFormFieldRenderer)==null?void 0:F.value)||"")!==(this.nameInput.value||"")};
_.l.isDescriptionChanged=function(){var p,x,F;return(((p=this.editorData)==null?void 0:(x=p.description)==null?void 0:(F=x.textInputFormFieldRenderer)==null?void 0:F.value)||"")!==(this.descriptionInput.value||"")};
_.l.isPrivacyChanged=function(){var p,x,F,N,h,c,M,f;return((M=(p=this.editorData)==null?void 0:(x=p.privacy)==null?void 0:(F=x.dropdownFormFieldRenderer)==null?void 0:(N=F.dropdown)==null?void 0:(h=N.dropdownRenderer)==null?void 0:(c=h.entries)==null?void 0:c.find(function(K){var t;return K==null?void 0:(t=K.privacyDropdownItemRenderer)==null?void 0:t.isSelected}))==null?void 0:(f=M.privacyDropdownItemRenderer)==null?void 0:f.int32Value)!==this.privacyInput.value};
_.l.isVotingChanged=function(){var p,x,F,N,h,c,M,f;return((M=(p=this.editorData)==null?void 0:(x=p.voting)==null?void 0:(F=x.dropdownFormFieldRenderer)==null?void 0:(N=F.dropdown)==null?void 0:(h=N.dropdownRenderer)==null?void 0:(c=h.entries)==null?void 0:c.find(function(K){var t;return K==null?void 0:(t=K.privacyDropdownItemRenderer)==null?void 0:t.isSelected}))==null?void 0:(f=M.privacyDropdownItemRenderer)==null?void 0:f.int32Value)!==this.votingInput.value};
var $0=VUm;$0.prototype.onPopupClosed=$0.prototype.onPopupClosed;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],$0.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],$0.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],$0.prototype,"ytEventForwardingBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],$0.prototype,"ytRendererStamperBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],$0.prototype,"data",void 0);_.B([_.H({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.k("design:type",Array)],$0.prototype,"privacyBadge",void 0);_.B([_.H({computed:"computeEditorData(data)"}),_.k("design:type",Object)],$0.prototype,"editorData",void 0);_.B([_.H(),_.k("design:type",Object)],$0.prototype,"isPlaylistEditComplete",void 0);_.B([_.H(),_.k("design:type",Object)],$0.prototype,"isCollabEngagementDisabled",void 0);
_.B([_.H({value:{REQUIRED_LABEL:_.JG("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.JG("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.k("design:type",Object)],$0.prototype,"addToStrings",void 0);_.B([_.H(),_.k("design:type",String)],$0.prototype,"closeButtonAriaLabel",void 0);_.B([_.H(),_.k("design:type",Object)],$0.prototype,"saveButton",void 0);_.B([_.Ff("#name-input"),_.k("design:type",Object)],$0.prototype,"nameInput",void 0);
_.B([_.Ff("#description-input"),_.k("design:type",Object)],$0.prototype,"descriptionInput",void 0);_.B([_.Ff("#privacy-input"),_.k("design:type",Object)],$0.prototype,"privacyInput",void 0);_.B([_.Ff("#voting-input"),_.k("design:type",Object)],$0.prototype,"votingInput",void 0);_.B([_.Ff("#scroller"),_.k("design:type",Object)],$0.prototype,"JSC$18136_scroller",void 0);
_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$0.prototype,"onPopupClosed",null);_.B([_.H(),_.k("design:type",Object)],$0.prototype,"onValueChanged",void 0);$0=_.B([_.L({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],$0);
_.P($0,"ytd-playlist-settings-editor-renderer",function(){if(G0a===void 0){var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);G0a=p}p=G0a;return p},{mode:1});var WC8;_.Ei("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var Hdm=function(){return _.m.apply(this,arguments)||this};
_.E(Hdm,_.m);_.l=Hdm.prototype;_.l.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-confirm":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",classListBinding:"[[buttonClass_]]",attributes:{"dialog-dismiss":!0}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){switch(this.get("data.singleOptions.preselectMode")){case "SINGLE_OPTION_PRESELECT_MODE_LAST":this.selectedResponseIndex=this.get("data.singleOptions.styles").length-1;break;default:this.selectedResponseIndex=void 0}var p=this.get("data.nextButton.buttonRenderer.navigationEndpoint");p&&(this.nextNavigationEndpoint=p,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.l.onSelectedResponseIndexChange=function(){if(this.get("data.nextButton.buttonRenderer")!=null){switch(this.get("data.submissionMode")){case "SURVEY_SUBMISSION_MODE_ONE_SELECTED_OPTION":this.set("data.nextButton.buttonRenderer.isDisabled",this.selectedResponseIndex===void 0);break;default:this.set("data.nextButton.buttonRenderer.isDisabled",!1)}if(this.selectedResponseIndex!=null){var p={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",p)}}};
_.l.onPopupOpened=function(p){p.detail!==this&&p.detail!==this.hostElement||!_.S("enable_premium_voluntary_pause")||_.lA(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.l.onNextButtonTap=function(){var p=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);p&&this.ytdOpenPopupBehavior.openPopup(p)};
_.l.updateSelectedResponseIndexFromBinding=function(p){this.selectedResponseIndex=p.detail.value};
var ex=Hdm;ex.prototype.onPopupOpened=ex.prototype.onPopupOpened;ex.prototype.onSelectedResponseIndexChange=ex.prototype.onSelectedResponseIndexChange;ex.prototype.dataChanged=ex.prototype.dataChanged;_.B([_.u(_.Oo),_.k("design:type",Object)],ex.prototype,"ytdOpenPopupBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ex.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ex.prototype,"ytRendererstamperBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],ex.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Number)],ex.prototype,"selectedResponseIndex",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ex.prototype,"dataChanged",null);_.B([_.W("selectedResponseIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ex.prototype,"onSelectedResponseIndexChange",null);
_.B([_.V("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],ex.prototype,"onPopupOpened",null);ex=_.B([_.L({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],ex);
_.P(ex,"ytd-red-cancel-survey-renderer",function(){if(WC8!==void 0)return WC8;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return WC8=p},{mode:1});var mUk;var oGk=function(){var p=_.m.apply(this,arguments)||this;p.closeButtonAriaLabel=_.JG("SBOX_INAPPROPRIATE_CANCEL");return p};
_.E(oGk,_.m);oGk.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
oGk.prototype.onClickClose=function(){_.lA(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
var ph=oGk;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ph.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ph.prototype,"rendererStamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ph.prototype,"data",void 0);_.B([_.H(),_.k("design:type",String)],ph.prototype,"closeButtonAriaLabel",void 0);ph=_.B([_.L({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],ph);
_.P(ph,"ytd-search-filter-options-dialog-renderer",function(){if(mUk!==void 0)return mUk;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return mUk=p},{mode:1});var Od8;var ca8=function(){return function(p){p=p.availabilityType;return p===void 0||p==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||p==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var jjm=function(){var p=_.m.apply(this,arguments)||this;p.qualityOptions=[];p.upsellOptions=[];p.showUpsellSection=!1;p.darkerDarkTheme=_.S("web_darker_dark_theme");p.rememberSettingsChecked=!1;return p};
_.E(jjm,_.m);_.l=jjm.prototype;_.l.configureRendererStamper=function(){return{qualityOptions:{id:"quality-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}},upsellOptions:{id:"upsell-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.l.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.l.updateQualityOptions=function(){if(this.formats===void 0)_.lA(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var p=[],x=[];this.showUpsellSection=!1;for(var F=_.a(this.formats),N=F.next();!N.done;N=F.next())(N=N.value)&&(N.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?x.push(N):p.push(N));p.length&&(this.qualityOptions=lRt(p));x.length&&(this.showUpsellSection=!0,this.upsellOptions=lRt(x))}};
_.l.updateRememberString=function(){if(this.downloadQualityPickerEntity)var p=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var x;p=(x=this.data)==null?void 0:x.premiumRememberSettingString}else{var F;p=(F=this.data)==null?void 0:F.rememberSettingString}p=p===void 0?_.JG("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):p;this.rememberSettingsCheckboxRenderer={title:_.ez(p),disabled:!1}};
_.l.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.R8.Object.defineProperties(jjm.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var p;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(p=this.data)==null?void 0:p.qualityFormats}}});
var xI=jjm;xI.prototype.updateRememberString=xI.prototype.updateRememberString;xI.prototype.updateQualityOptions=xI.prototype.updateQualityOptions;xI.prototype.dataChanged=xI.prototype.dataChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],xI.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],xI.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],xI.prototype,"data",void 0);
_.B([_.u(_.nl),_.k("design:type",Object)],xI.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Boolean)],xI.prototype,"selectedUpsellQuality",void 0);_.B([_.H({computed:"computeIcon_(data.premiumIcon)",value:""}),_.k("design:type",String)],xI.prototype,"premiumIcon",void 0);_.B([_.H({selector:N5t,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.k("design:type",Object)],xI.prototype,"downloadQualityPickerEntity",void 0);
_.B([_.H(),_.k("design:type",Array)],xI.prototype,"qualityOptions",void 0);_.B([_.H(),_.k("design:type",Array)],xI.prototype,"upsellOptions",void 0);_.B([_.H(),_.k("design:type",Object)],xI.prototype,"showUpsellSection",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],xI.prototype,"darkerDarkTheme",void 0);_.B([_.H(),_.k("design:type",Object)],xI.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.B([_.Ff("#remember-settings"),_.k("design:type",HTMLInputElement)],xI.prototype,"rememberSettingsCheckbox",void 0);_.B([_.H(),_.k("design:type",Object)],xI.prototype,"rememberSettingsChecked",void 0);_.B([_.H(),_.k("design:type",Function)],xI.prototype,"onRememberSettingsCheckedChanged",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xI.prototype,"dataChanged",null);
_.B([_.W("downloadQualityPickerEntity"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xI.prototype,"updateQualityOptions",null);_.B([_.W("selectedUpsellQuality"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xI.prototype,"updateRememberString",null);xI=_.B([_.L({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],xI);
_.P(xI,"ytd-download-quality-selector-content",function(){if(Od8!==void 0)return Od8;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Od8=p},{mode:1});var LCk;var PZc=function(){var p=_.m.apply(this,arguments)||this;p.selectedUpsellQuality=!1;p.qualityOptions=[];p.darkerDarkTheme=_.S("web_darker_dark_theme");p.useUpsellDismissAlternate=_.S("use_not_now_dl_upsell_dismiss_cta");p.shouldShowAlternateUpsellDimiss=!1;p.rememberSettings=!1;p.rememberSettingsChecked=!1;p.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};p.rememberSettingsCheckedChanged=function(x){p.rememberSettingsChecked=x};
return p};
_.E(PZc,_.m);_.l=PZc.prototype;
_.l.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ez(_.JG("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.ez(_.JG("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.ez(_.JG("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.ez(_.JG("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.l.updateQualityOptions=function(){this.formats===void 0?_.lA(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=lRt(this.formats)};
_.l.onQualityOptionsSelect=function(p){if(this.qualityOptions&&p){p!==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 x=_.a(this.qualityOptions.entries()),F=x.next();!F.done;F=
x.next()){F=_.a(F.value);var N=F.next().value;F=F.next().value;var h=void 0,c=void 0;if(((h=F)==null?void 0:(c=h.settingsRadioOptionRenderer)==null?void 0:c.id)===p){this.selectedQualityIndex=N;p=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((p=this.formats[N])==null?void 0:p.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.l.onClickSubmit=function(){var p;if((p=this.downloadButtonRenderer)==null||!p.isDisabled){var x,F;p=(F=(x=this.data)==null?void 0:x.onSubmitEndpoint)!=null?F:{};var N,h;if(this.formats&&(((N=_.r(p,_.lr))==null?0:N.videoId)||((h=_.r(p,_.c2))==null?0:h.playlistId))){var c,M,f,K,t,d;x={formatType:(K=(c=this.formats)==null?void 0:(M=c[(f=this.selectedQualityIndex)!=null?f:0])==null?void 0:M.format)!=null?K:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(t=this.getOfflineEndpoint(p))==null?void 0:(d=t.actionParams)==null?void 0:d.settingsAction)};this.getOfflineEndpoint(p).actionParams=x;this.ytComponentBehavior.resolveCommand(p)}_.lA(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.l.onClickUpsell=function(){var p;if((p=this.upsellButtonRenderer)==null||!p.isDisabled){var x,F;p=(F=(x=this.data)==null?void 0:x.upsellEndpoint)!=null?F:{};this.ytComponentBehavior.resolveCommand(p);_.lA(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);x="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var N,h,c,M;x=(M=(N=this.formats)==null?void 0:(h=N[(c=this.selectedQualityIndex)!=null?c:0])==null?void 0:h.format)!=null?M:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:x}})}};
_.l.onClickClose=function(){_.lA(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.l.getOfflineSettingsAction=function(p,x){return p?x===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":x:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.l.getOfflineEndpoint=function(p){return _.r(p,_.lr)?_.r(p,_.lr):_.r(p,_.c2)};
_.R8.Object.defineProperties(PZc.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.ez(_.JG("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var p;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(p=this.data)==null?void 0:p.qualityFormats}}});
var FZ=PZc;FZ.prototype.updateQualityOptions=FZ.prototype.updateQualityOptions;FZ.prototype.dataChanged=FZ.prototype.dataChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],FZ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],FZ.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],FZ.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],FZ.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],FZ.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Number)],FZ.prototype,"selectedQualityIndex",void 0);_.B([_.H(),_.k("design:type",Object)],FZ.prototype,"selectedUpsellQuality",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],FZ.prototype,"ytdReduxBehavior",void 0);
_.B([_.H({selector:N5t,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.k("design:type",Object)],FZ.prototype,"downloadQualityPickerEntity",void 0);_.B([_.H(),_.k("design:type",Array)],FZ.prototype,"qualityOptions",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],FZ.prototype,"darkerDarkTheme",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],FZ.prototype,"useUpsellDismissAlternate",void 0);
_.B([_.H(),_.k("design:type",Object)],FZ.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.B([_.H(),_.k("design:type",Object)],FZ.prototype,"downloadButtonRenderer",void 0);_.B([_.H(),_.k("design:type",Object)],FZ.prototype,"upsellButtonRenderer",void 0);_.B([_.H(),_.k("design:type",Object)],FZ.prototype,"cancelButtonRenderer",void 0);_.B([_.H(),_.k("design:type",Object)],FZ.prototype,"upsellCancelButtonRenderer",void 0);_.B([_.H(),_.k("design:type",Object)],FZ.prototype,"rememberSettings",void 0);
_.B([_.H(),_.k("design:type",Object)],FZ.prototype,"rememberSettingsChecked",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],FZ.prototype,"dataChanged",null);_.B([_.W("downloadQualityPickerEntity"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],FZ.prototype,"updateQualityOptions",null);FZ=_.B([_.L({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],FZ);
_.P(FZ,"ytd-download-quality-selector-renderer",function(){if(LCk!==void 0)return LCk;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return LCk=p},{mode:1});var TOk;var BOD=function(){var p=_.m.apply(this,arguments)||this;p.darkerDarkTheme=_.S("web_darker_dark_theme");return p};
_.E(BOD,_.m);BOD.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
BOD.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
var NK=BOD;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],NK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],NK.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],NK.prototype,"darkerDarkTheme",void 0);_.B([_.H({computed:"computeIcon_(data.infoIcon)"}),_.k("design:type",Object)],NK.prototype,"infoIcon",void 0);
_.B([_.H({computed:"computeIcon_(data.warningIcon)"}),_.k("design:type",Object)],NK.prototype,"warningIcon",void 0);NK=_.B([_.L({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],NK);
_.P(NK,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(TOk!==void 0)return TOk;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return TOk=p},{mode:1});var RwH;var k0a=function(){var p=_.m.apply(this,arguments)||this;p.darkerDarkTheme=_.S("web_darker_dark_theme");return p};
_.E(k0a,_.m);k0a.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
k0a.prototype.configureRendererStamper=function(){return{"data.stepper":{id:"stepper",mapping:{channelTransferStepperRenderer:"ytd-channel-transfer-stepper-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.signinButton":{id:"signin-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
var hv=k0a;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],hv.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],hv.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],hv.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],hv.prototype,"darkerDarkTheme",void 0);hv=_.B([_.L({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],hv);
_.P(hv,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(RwH!==void 0)return RwH;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return RwH=p},{mode:1});var UUX;var lD=function(){var p=_.m.apply(this,arguments)||this;p.darkerDarkTheme=_.S("web_darker_dark_theme");return p};
_.E(lD,_.m);lD.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
lD.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"}}}}};
lD.prototype.onServiceRequestSentOrCompleted=function(p,x){x&&x.actions&&x.actions.length>0&&_.lA(this.hostElement,"yt-close-popup-action",[this.is])};
var cD=lD;cD.prototype.onServiceRequestSentOrCompleted=cD.prototype.onServiceRequestSentOrCompleted;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],cD.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],cD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],cD.prototype,"darkerDarkTheme",void 0);_.B([_.H(),_.k("design:type",Object)],cD.prototype,"data",void 0);
_.B([_.V("yt-service-request-completed"),_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Ht]),_.k("design:returntype")],cD.prototype,"onServiceRequestSentOrCompleted",null);cD=_.B([_.L({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],cD);
_.P(cD,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(UUX!==void 0)return UUX;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return UUX=p},{mode:1});var id8;var IM_=function(){var p=_.m.apply(this,arguments)||this;p.darkerDarkTheme=_.S("web_darker_dark_theme");p.submitButtonDisabled=!0;return p};
_.E(IM_,_.m);_.l=IM_.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.l.onDataChanged=function(){var p,x,F;if(((p=this.data)==null?void 0:(x=p.confirmButton)==null?void 0:(F=x.buttonRenderer)==null?void 0:F.isDisabled)!==void 0){var N,h,c;this.submitButtonDisabled=(N=this.data)==null?void 0:(h=N.confirmButton)==null?void 0:(c=h.buttonRenderer)==null?void 0:c.isDisabled}};
_.l.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.l.updateSubmitButtonDisabledFromBinding=function(p){this.submitButtonDisabled=p.detail.value};
_.l.updateSubmitButtonDisabledFromConfirmCheckbox=function(p){this.submitButtonDisabled=!p.detail.value};
var aZ=IM_;aZ.prototype.onDataChanged=aZ.prototype.onDataChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],aZ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],aZ.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],aZ.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],aZ.prototype,"darkerDarkTheme",void 0);
_.B([_.H(),_.k("design:type",Object)],aZ.prototype,"submitButtonDisabled",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],aZ.prototype,"onDataChanged",null);aZ=_.B([_.L({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],aZ);
_.P(aZ,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(id8!==void 0)return id8;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return id8=p},{mode:1});var $U8;var ew8=function(){return _.m.apply(this,arguments)||this};
_.E(ew8,_.m);_.R8.Object.defineProperties(ew8.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var p,x,F;return((p=this.data)==null?void 0:p.title)+" "+((x=this.data)==null?void 0:x.metadataPrimary)+" "+((F=this.data)==null?void 0:F.metadataSecondary)}}});
var MK=ew8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],MK.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],MK.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],MK.prototype,"data",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],MK.prototype,"ariaLabel",null);MK=_.B([_.L({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],MK);
_.P(MK,"ytd-compact-product-list-item-renderer",function(){if($U8!==void 0)return $U8;var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return $U8=p},{mode:1});var p4e;var x_t=function(){return _.m.apply(this,arguments)||this};
_.E(x_t,_.m);x_t.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]]"}}}}}};
_.R8.Object.defineProperties(x_t.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
var DG=x_t;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],DG.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],DG.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],DG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],DG.prototype,"data",void 0);DG=_.B([_.L({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],DG);
_.P(DG,"ytd-compact-product-list-renderer",function(){if(p4e!==void 0)return p4e;var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return p4e=p},{mode:1});var FPH;var NQe=function(){var p=_.m.apply(this,arguments)||this;p.darkerDarkTheme=_.S("web_darker_dark_theme");return p};
_.E(NQe,_.m);_.l=NQe.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.l.getBackgroundUrl=function(){var p=this.get("data.headerImage.thumbnails");return p?"url("+_.Ou(p,this.hostElement.clientWidth)+")":""};
_.l.onDataChanged=function(){var p=this.getBackgroundUrl();p&&(this.header.style.backgroundImage=p);p=_.b0();var x=_.yR(),F=this.get("data.trackingParams");F&&x&&p&&_.jz(p,x,_.fr(F));p=_.a(this.hostElement.querySelectorAll("yt-img-shadow"));for(x=p.next();!x.done;x=p.next())x.value.onShow()};
_.l.onPopupClosed=function(p){_.os(p).localName==="ytd-membership-post-cancel-renderer"&&_.lA(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
var fh=NQe;fh.prototype.onPopupClosed=fh.prototype.onPopupClosed;fh.prototype.onDataChanged=fh.prototype.onDataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],fh.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],fh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],fh.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],fh.prototype,"darkerDarkTheme",void 0);
_.B([_.Ff("#header"),_.k("design:type",HTMLDivElement)],fh.prototype,"header",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fh.prototype,"onDataChanged",null);_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],fh.prototype,"onPopupClosed",null);fh=_.B([_.L({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],fh);
_.P(fh,"ytd-membership-post-cancel-renderer",function(){if(FPH!==void 0)return FPH;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return FPH=p},{mode:1});var hAH;var lLc=function(){var p=_.m.apply(this,arguments)||this;p.darkerDarkTheme=_.S("web_darker_dark_theme");return p};
_.E(lLc,_.m);lLc.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
lLc.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
var Kh=lLc;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Kh.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Kh.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Kh.prototype,"darkerDarkTheme",void 0);_.B([_.Ff("ytd-feedback-survey-renderer"),_.k("design:type",Object)],Kh.prototype,"feedbackSurveyRenderer",void 0);Kh=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],Kh);
_.P(Kh,"ytd-sponsorship-confirm-cancel-content",function(){if(hAH!==void 0)return hAH;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return hAH=p},{mode:1});var ctH;var aLm=function(){var p=_.m.apply(this,arguments)||this;p.darkerDarkTheme=_.S("web_darker_dark_theme");p.maybeSubmitFeedback=function(){p.content&&p.content.maybeSubmitFeedback()};
return p};
_.E(aLm,_.m);_.l=aLm.prototype;_.l.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.l.onYtPopupOpened=function(p,x){x===this&&this.data&&this.data.onOpenCommands&&_.Kc(this.hostElement,this.data.onOpenCommands,this.hostElement);_.lA(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.l.onYtPopupClosed=function(p,x){(x&&x.canceled===!0||x&&x.canceled===!1&&x.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.Kc(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.l.onYtServiceRequestCompleted=function(){_.lA(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.l.onYtServiceRequestError=function(p){_.yy(this.hostElement,p.detail.error.message)};
_.l.onDataChanged=function(){if(this.isAttached){var p=this.backgroundUrl;p&&(_.n(this.hostElement).querySelector("#header").style.backgroundImage=p)}};
_.R8.Object.defineProperties(aLm.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var p=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return p?"url("+_.Ou(p,this.hostElement.clientWidth)+")":""}}});
var qK=aLm;qK.prototype.onDataChanged=qK.prototype.onDataChanged;qK.prototype.onYtServiceRequestError=qK.prototype.onYtServiceRequestError;qK.prototype.onYtServiceRequestCompleted=qK.prototype.onYtServiceRequestCompleted;qK.prototype.onYtPopupClosed=qK.prototype.onYtPopupClosed;qK.prototype.onYtPopupOpened=qK.prototype.onYtPopupOpened;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],qK.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],qK.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],qK.prototype,"data",void 0);_.B([_.H({value:function(){return _.JG("SBOX_INAPPROPRIATE_CANCEL")}}),
_.k("design:type",String)],qK.prototype,"closeButtonAriaLabel",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],qK.prototype,"darkerDarkTheme",void 0);_.B([_.Ff("#scrollable"),_.k("design:type",Object)],qK.prototype,"scrollable",void 0);_.B([_.Ff("ytd-sponsorship-confirm-cancel-content"),_.k("design:type",Object)],qK.prototype,"content",void 0);
_.B([_.V("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],qK.prototype,"onYtPopupOpened",null);_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],qK.prototype,"onYtPopupClosed",null);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],qK.prototype,"onYtServiceRequestCompleted",null);_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],qK.prototype,"onYtServiceRequestError",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qK.prototype,"onDataChanged",null);
qK=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],qK);
_.P(qK,"ytd-sponsorship-confirm-cancel-renderer",function(){if(ctH!==void 0)return ctH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return ctH=p},{mode:_.UQ("kevlar_poly_si_batch_j081")?1:2});var MfH;var D_k=function(){var p=_.m.apply(this,arguments)||this;p.darkerDarkTheme=_.S("web_darker_dark_theme");return p};
_.E(D_k,_.m);D_k.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
var ZG=D_k;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ZG.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ZG.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],ZG.prototype,"darkerDarkTheme",void 0);ZG=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],ZG);
_.P(ZG,"ytd-sponsorships-celebration-content",function(){if(MfH!==void 0)return MfH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return MfH=
p},{mode:1});var fL8;var KPk=_.B$(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),qA8=function(){var p=_.m.apply(this,arguments)||this;p.scriptsAppended=!1;p.buttonOverrides={type:"tonal",style:"overlay-dark"};return p};
_.E(qA8,_.m);_.l=qA8.prototype;
_.l.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:_.S("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}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.onDataChanged=function(){var p;(p=this.header)==null||p.style.setProperty("background-color",this.backgroundColor);if(p=this.headerImageUrl){var x;(x=this.header)==null||x.style.setProperty("background-image",p)}x=_.b0(4);p=_.yR(4);var F=this.get("data.trackingParams");if(F&&p&&x){var N=_.fr(F);_.jz(x,p,N);_.S("combine_ve_grafts")?_.cl().graftServerVe(F,p,4):_.jz(x,p,N)}x=_.a(this.hostElement.querySelectorAll("yt-img-shadow"));for(p=x.next();!p.done;p=x.next())p.value.onShow();if(x=this.get("data.gtmId"))_.tA(x,
_.sd("GL","")),this.setupConversionTracking()};
_.l.setupConversionTracking=function(){if(!this.scriptsAppended){var p=document.createElement("script");var x=_.RM(KPk.join(""));_.kE(p,x);document.head.appendChild(p);p=document.createElement("noscript");p.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(p);this.scriptsAppended=!0}};
_.l.onPopupClosed=function(p){if(_.os(p).localName==="ytd-sponsorships-celebration-renderer"){_.lA(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var x;this.data&&((x=this.data)==null?0:x.dismissCommand)&&_.xL.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.R8.Object.defineProperties(qA8.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var p=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.QK(p)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var p=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return p?"url("+_.Ou(p,this.hostElement.getBoundingClientRect().width)+")":""}}});
var tv=qA8;tv.prototype.onPopupClosed=tv.prototype.onPopupClosed;tv.prototype.onDataChanged=tv.prototype.onDataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],tv.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],tv.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],tv.prototype,"data",void 0);_.B([_.Ff("#header"),_.k("design:type",HTMLElement)],tv.prototype,"header",void 0);
_.B([_.H(),_.k("design:type",Object)],tv.prototype,"scriptsAppended",void 0);_.B([_.H(),_.k("design:type",Object)],tv.prototype,"buttonOverrides",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tv.prototype,"onDataChanged",null);_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],tv.prototype,"onPopupClosed",null);
tv=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],tv);
_.P(tv,"ytd-sponsorships-celebration-renderer",function(){if(fL8!==void 0)return fL8;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return fL8=p},{mode:1});var ZKH;var dT=function(){var p=_.m.apply(this,arguments)||this;p.isToggleChecked=!1;return p};
_.E(dT,_.m);dT.prototype.onDataChanged=function(){var p;this.isToggleChecked=((p=this.data)==null?void 0:p.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
dT.prototype.close=function(){var p;((p=this.data)==null?0:p.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
dT.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var p,x=_.r((p=this.data)==null?void 0:p.switchButton,IVk);x&&(this.isToggleChecked&&x.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(x.switchOnInnertubeCommand),!this.isToggleChecked&&x.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(x.switchOffInnertubeCommand))};
dT.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var vD=dT;vD.prototype.onDataChanged=vD.prototype.onDataChanged;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],vD.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],vD.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],vD.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],vD.prototype,"isToggleChecked",void 0);
_.B([_.H({value:_.JG("CLOSE")}),_.k("design:type",String)],vD.prototype,"closeButtonAriaLabel",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vD.prototype,"onDataChanged",null);vD=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],vD);
_.P(vD,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(ZKH!==void 0)return ZKH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return ZKH=p},{mode:1});var tfH;var d_8=function(){return _.m.apply(this,arguments)||this};
_.E(d_8,_.m);_.l=d_8.prototype;_.l.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.header.sponsorshipsHeaderRenderer.menuButton":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.detached=function(){this.playerElement.stop()};
_.l.onYtServiceRequestCompleted=function(){_.lA(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.l.onYtServiceRequestError=function(p){_.yy(this.hostElement,p.detail.error.message)};
_.l.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.l.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.l.getTier=function(p,x){return!p||!p.tiers||x<0?null:_.r(p.tiers[x],xxa)};
_.l.moreThanOne=function(p){return!!(p&&p.length>1)};
_.l.tierOverviewTap=function(p){var x=this;this.selectedTier=p.model.index;_.jB(this,function(){_.hG(x.hostElement,"yt-refit")})};
_.l.computeSelectedClass=function(p,x){return this.isSelected(p,x)?"selected":""};
_.l.computeButtonAriaPressed=function(p,x){return this.isSelected(p,x)?"true":"false"};
_.l.isSelected=function(p,x){return p===x};
_.l.onDataChanged=function(){_.n(this.hostElement).querySelector("#header-overlay").style.visibility="";_.n(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 p=_.a(this.hostElement.querySelectorAll("yt-img-shadow")),
x=p.next();!x.done;x=p.next())x.value.onShow();var F;this.set("selectedTier",(F=this.get("data.targetTierIndex"))!=null?F:0);var N;(p=(N=this.data)==null?void 0:N.onVisible)&&this.ytComponentBehavior.resolveCommand(p)};
_.l.initializeVe=function(p){var x=_.b0(),F=_.yR(),N=this.get("data.trackingParams");F&&x&&(this.screenLayer=4,x=_.bO(_.apd)(void 0,69877,{clientScreenNonce:x,visualElement:F},void 0,void 0,void 0),_.fdB(x,69877,4),F=_.yR(4),N&&F&&(N=_.fr(N),_.jz(x,F,N),p&&(this.offerVideoVe=_.vt(74659),_.jz(x,N,this.offerVideoVe))))};
_.l.setHeaderBackground=function(){var p=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.n(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.QK(p);if(p=this.getHeaderImage())p=_.Ou(p,screen.width),_.n(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+p+")"};
_.l.getHeaderImage=function(){var p=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&p?p:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.l.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.l.setupVideoPlayer=function(p){var x=this,F,N,h,c;return _.D(function(M){if(M.nextAddress==1)return F=x.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),N=x.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.S("kevlar_player_update_killswitch")?x.playerElement.update({args:{autoplay:F,video_id:p,player_params:N}}):x.playerElement.loadVideoWithPlayerVars({autoplay:F,video_id:p,player_params:N}),
_.q(M,x.playerElement.getPlayerPromise(),2);h=M.yieldResult;h.addEventListener("onStateChange",function(f){x.onPlayerStateChange(f)});
h.setScreenLayer(x.screenLayer);(c=_.b0(4))&&x.offerVideoVe&&_.Lc(c,x.offerVideoVe);F&&(x.pauseOtherPlayers(),x.playerElement.focusOnPlayer(),x.playerElement.getPlayer().hideControls(),_.vZ(_.E0,function(){x.fadeOutHeaderOverlay()},4E3));
_.JB(M)})};
_.l.onPlayerStateChange=function(p){p===1?this.backgroundPlayerElement&&(p=this.backgroundPlayerElement.player_.getPlayerState(),p!==1&&p!==3||this.backgroundPlayerElement.pause()):p===0&&(_.n(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.n(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.l.fadeOutHeaderOverlay=function(){_.n(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.l.onHeaderTap=function(){if(this.offerVideo){_.n(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var p;((p=this.playerElement.player_)==null?void 0:p.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(p=_.b0(4))&&this.offerVideoVe&&_.B5(p,this.offerVideoVe)}};
_.l.getBackgroundImageLayerClass=function(p){return p?"background-image-layer-with-video":""};
_.l.getHeaderClass=function(p){return p?"header-with-video":""};
_.l.getHeaderOverlayClass=function(p){return p?"header-overlay-with-video":""};
_.l.getTitleContainerClass=function(p,x){return p?"title-container-with-video":x?"title-container-without-video-flexible":"title-container-without-video"};
_.l.tierTitleDisplayStatus=function(p){return this.moreThanOne(p)?"hide":"show"};
_.l.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.J().resolve(_.H$).getPlayerElement():this.backgroundPlayerElement=_.Pt();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var p=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=p===1||p===3;this.backgroundPlayerElement.pause()}};
_.l.isMiniplayerActive=function(){return _.J().resolve(_.H$).isMiniplayerActive()};
_.l.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Vx("selected-tier-changed",this.selectedTier))};
var Jv=d_8;Jv.prototype.selectedTierChangedForBinding=Jv.prototype.selectedTierChangedForBinding;Jv.prototype.onDataChanged=Jv.prototype.onDataChanged;Jv.prototype.onYtPopupClosed=Jv.prototype.onYtPopupClosed;Jv.prototype.onYtPopupOpened=Jv.prototype.onYtPopupOpened;Jv.prototype.onYtServiceRequestError=Jv.prototype.onYtServiceRequestError;Jv.prototype.onYtServiceRequestCompleted=Jv.prototype.onYtServiceRequestCompleted;
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Jv.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Jv.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Jv.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Jv.prototype,"data",void 0);_.B([_.H({value:0}),_.k("design:type",Number)],Jv.prototype,"selectedTier",void 0);
_.B([_.H({value:""}),_.k("design:type",String)],Jv.prototype,"offerVideo",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Jv.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.B([_.H({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.$$(this)}}),
_.k("design:type",String)],Jv.prototype,"playerId",void 0);_.B([_.Ff("tp-yt-paper-dialog-scrollable"),_.k("design:type",Object)],Jv.prototype,"scrollable",void 0);_.B([_.Ff("ytd-sponsorships-tier-renderer"),_.k("design:type",Object)],Jv.prototype,"tierRenderer",void 0);_.B([_.Ff("#player"),_.k("design:type",Object)],Jv.prototype,"playerElement",void 0);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Jv.prototype,"onYtServiceRequestCompleted",null);_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Jv.prototype,"onYtServiceRequestError",null);_.B([_.V("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Jv.prototype,"onYtPopupOpened",null);
_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Jv.prototype,"onYtPopupClosed",null);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Jv.prototype,"onDataChanged",null);_.B([_.W("selectedTier"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Jv.prototype,"selectedTierChangedForBinding",null);
Jv=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],Jv);
_.P(Jv,"ytd-sponsorships-offer-renderer",function(){if(tfH!==void 0)return tfH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return tfH=p},{mode:_.UQ("kevlar_poly_si_batch_j077")?1:2});var vrm;var Ch=function(){var p=_.m.apply(this,arguments)||this;p.buttonOverrides={type:"filled",style:"mono"};return p};
_.E(Ch,_.m);Ch.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}}}}}};
Ch.prototype.backgroundColorChanged=function(){var p,x,F,N=(x=_.r((p=this.data)==null?void 0:p.content,Fom))==null?void 0:(F=x.backgroundColor)==null?void 0:F.backgroundColor;N&&(p=_.gX(N),_.n(this.hostElement).querySelector("#banner").style.backgroundColor=p,_.n(this.hostElement).querySelector("#abstract-art").style.backgroundColor=p)};
Ch.prototype.attached=function(){this.JSC$18222_scroller&&(this.JSC$18222_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18222_scroller.attached&&typeof this.JSC$18222_scroller.attached==="function"&&this.JSC$18222_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var SM=Ch;SM.prototype.backgroundColorChanged=SM.prototype.backgroundColorChanged;_.B([_.H(),_.k("design:type",Object)],SM.prototype,"data",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],SM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.Ff("#scroller"),_.k("design:type",Object)],SM.prototype,"JSC$18222_scroller",void 0);_.B([_.H(),_.k("design:type",Object)],SM.prototype,"buttonOverrides",void 0);
_.B([_.W("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],SM.prototype,"backgroundColorChanged",null);SM=_.B([_.L({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],SM);
_.P(SM,"ytd-sponsorships-promotion-celebration-renderer",function(){if(vrm!==void 0)return vrm;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return vrm=p},{mode:_.UQ("kevlar_poly_si_batch_j077")?1:2});var Jta;var CwH;var SA8=function(){return _.m.apply(this,arguments)||this};
_.E(SA8,_.m);SA8.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
SA8.prototype.computeIsInitiallyChecked=function(p){return p===1};
var rT=SA8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],rT.prototype,"data",void 0);_.B([_.Ff("#checkbox"),_.k("design:type",Object)],rT.prototype,"checkbox",void 0);rT=_.B([_.L({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],rT);
_.P(rT,"ytd-subscription-toggle-option-renderer",function(){if(CwH!==void 0)return CwH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return CwH=p},{mode:1});var Ex=function(){var p=_.m.apply(this,arguments)||this;p.darkerDarkTheme=_.S("web_darker_dark_theme");p.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return p};
_.E(Ex,_.m);Ex.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"}}}};
Ex.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ex.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var p=_.n(this.hostElement).querySelector("#options").selected;p=this.data.options[p].subscriptionRadioOptionRenderer.serviceEndpoint;var x=_.n(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");x&&p&&p.modifyChannelNotificationPreferenceEndpoint&&(x=x.getValue())&&(p.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[x]);_.J().resolve(_.RD).resolveCommand(p,{form:{element:this.hostElement}});
_.lA(this.hostElement,"yt-close-popup-action")};
_.R8.Object.defineProperties(Ex.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var p=this.data.options,x=0;x<p.length;x++){var F=p[x].subscriptionRadioOptionRenderer;if(F&&F.selected)return x}return null}}});
var XZ=Ex;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],XZ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],XZ.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],XZ.prototype,"eventForwardingBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],XZ.prototype,"ytRendererBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],XZ.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],XZ.prototype,"darkerDarkTheme",void 0);_.B([_.w("data.options"),_.k("design:type",Object),_.k("design:paramtypes",[])],XZ.prototype,"initialIndex",null);XZ=_.B([_.L({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],XZ);
_.P(XZ,"ytd-subscription-notification-options-renderer",function(){if(Jta!==void 0)return Jta;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Jta=p},{mode:1});var rtH;var Ere=function(){return _.m.apply(this,arguments)||this};
_.E(Ere,_.m);var X4H=Ere;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],X4H.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],X4H.prototype,"data",void 0);X4H=_.B([_.L({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],X4H);
_.P(X4H,"ytd-tvfilm-offer-groups-renderer",function(){if(rtH!==void 0)return rtH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return rtH=p},{mode:1});var grt;var QPm=function(){var p=_.m.apply(this,arguments)||this;p.darkerDarkTheme=_.S("web_darker_dark_theme");return p};
_.E(QPm,_.m);_.l=QPm.prototype;_.l.configureRendererStamper=function(){return{"data.offers":{id:"offers",mapping:{tvfilmOffersRenderer:{component:"ytd-tvfilm-offer-groups-renderer"}}},"data.coupon":{id:"coupon",mapping:{ypcCouponRenderer:"ytd-ypc-coupon-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.l.computeThumbnailClass=function(p){return p.thumbnailOverlays?p.isShow?"thumbnail-show":"thumbnail-movie":p.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.l.computeCommerceSectionClass=function(p){return p.offers&&p.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.l.computeTitleClass=function(p){return p.offers&&p.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.l.onDataChanged=function(){[].concat(_.se(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(p){p.onShow()})};
var gT=QPm;gT.prototype.onDataChanged=gT.prototype.onDataChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],gT.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],gT.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],gT.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],gT.prototype,"darkerDarkTheme",void 0);
_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gT.prototype,"onDataChanged",null);gT=_.B([_.L({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],gT);
_.P(gT,"ytd-ypc-offers-overlay-renderer",function(){if(grt!==void 0)return grt;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return grt=p},{mode:_.UQ("kevlar_poly_si_batch_j028")?1:2});var zA_;var sP_=function(){this.usedMethods=new Set};
sP_.prototype.add=function(p){this.usedMethods.add(p)};
sP_.prototype.reset=function(){this.usedMethods.clear()};var bKH=function(p,x){this.query=p;this.previousSearchQuery=x;this.id=nrt++;if(!ytc){x=_.sd("SBOX_SETTINGS");p="https://"+((x==null?void 0:x.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var F=x==null?void 0:x.REQUEST_LANGUAGE;F&&(p+="&hl="+F);(F=x==null?void 0:x.REQUEST_DOMAIN)&&(p+="&gl="+F);p+="&client=youtube&gs_ri=youtube";(F=x==null?void 0:x.SUGG_EXP_ID)&&(p+="&sugexp="+encodeURIComponent(F));(F=x==null?void 0:x.PSUGGEST_TOKEN)&&(p+="&tok="+F);(x=
x==null?void 0:x.SESSION_INDEX)&&(p+="&authuser="+x);_.S("desktop_enable_visual_suggest")&&(p+="&h=180&w=320&ytvs=1");ytc=p}},At8=function(p){var x="q="+encodeURIComponent(p.query);
p.previousSearchQuery&&(x+="&pq="+encodeURIComponent(p.previousSearchQuery));return x},uzm=function(){var p=_.sd("SBOX_SETTINGS"),x={};
if(p==null?0:p.SEND_VISITOR_DATA)x["X-Goog-Visitor-Id"]=p==null?void 0:p.VISITOR_DATA;return x},YA8=function(p){var x=ytc;
x+="&gs_id="+p.id.toString(36);x+="&q="+encodeURIComponent(p.query);x+="&cp="+p.query.length;p.previousSearchQuery&&(x+="&pq="+encodeURIComponent(p.previousSearchQuery));(p=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(x+="&video_id="+p);return x},nrt=0,ytc="";var w4D=function(p,x){this.text=p;this.bold=x},GQX=function(p,x,F){this.input=x;
this.index=F;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=p[0];this.type=p[1];this.subtypes=p[2];var N;this.displayText=M08((N=p[3])==null?void 0:N.b);var h;this.ignoredPrefix=M08((h=p[3])==null?void 0:h.a);var c,M;this.hasNewVideo=((c=p[3])==null?void 0:(M=c.zam)==null?void 0:M.toString())==="true"?!0:!1;var f;this.visualSuggestUrl=(f=p[3])==null?void 0:f.zai},Vfe=function(p){var x=[],F,N=(F=p.displayText)!=null?F:p.text;
if(p.type===33)return x.push(new w4D(N,!1)),x;if(N.length>=p.input.length&&N.substring(0,p.input.length)===p.input)x.push(new w4D(p.input,!1)),x.push(new w4D(N.substring(p.input.length),!0));else{var h=new Set(p.input.split(/\s/)),c=N.split(/\s/);x=c.map(function(M,f){return new w4D(M.trim()+(f===c.length-1?"":" "),!h.has(M))})}return x};var WPt=function(p){this.rawResponse=["",[],{}];this.suggestions=[];try{var x=JSON.parse(D8_(p));if(typeof x==="object"&&x!==null)this.rawResponse=x;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(N){console.log("Suggest: Failed to parse SuggestResponse!");return}var F=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(N,h){return new GQX(N,F,h)})};var HKe=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new sP_;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18258_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},m_e,orD=function(){m_e||(m_e=new HKe);
return m_e};
HKe.prototype.updateSuggestions=function(p){var x=this;this.availableSuggestions.forEach(function(F){x.previousSuggestions[F]=!0});
this.availableSuggestions=p.map(function(F){var N=F.type.toString();F.subtypes.length>0&&(N+="i"+F.subtypes.join("i"),N+="k"+F.suggestionSources.COMPLETE_SERVER.toString());return N})};
var OK8=function(p,x){var F=Date.now();p.firstEditTime<0&&(p.firstEditTime=F);x&&(p.lastQueryBuildTime=F);p.lastEditTime=F};
HKe.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18258_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var jPt=function(p){var x="";p.availableSuggestions.forEach(function(h){delete p.previousSuggestions[h]});
for(var F=_.a(Object.keys(p.previousSuggestions)),N=F.next();!N.done;N=F.next())N=N.value,p.previousSuggestions[N]&&(x+=(x?"j":"")+N);return x},LPH=function(p,x){var F=[];
x&&(F[1]=x.toString());F[0]="youtube";F[7]=Date.now()-p.startTime;F[6]=p.sessionNumber;p.zeroPrefixSuggestionCount>=0&&(F[33]=p.zeroPrefixSuggestionCount);F[13]=p.outOfSyncResponseCount;if(p.availableSuggestions.length>0){for(var N=x="",h=0,c=_.a(p.availableSuggestions),M=c.next();!M.done;M=c.next())M=M.value,M!==N&&(h>1&&(x+="l"+h),x+=(N?"j":"")+M,h=0,N=M),h+=1;h>1&&(x+="l"+h);F[3]=x}F[35]=jPt(p);p.selectedSuggestionIndex>=0&&(F[2]=p.selectedSuggestionIndex);var f;if(x=(f=_.sd("SBOX_SETTINGS"))==
null?void 0:f.SUGG_EXP_ID)F[19]=p.normalize(x),f=0,p.experimentTriggeredBeforeFinal&&(f|=1),p.experimentTriggeredFinal&&(f|=2),F[20]=f;F[26]=Array.from(p.inputMethodsTracker.usedMethods).join("j");if(p.JSC$18258_totalRoundTripTime>0){F[15]=p.JSC$18258_totalRoundTripTime;F[14]=p.maxRoundTripTime;f=[];for(h=x=0;h<10;h++)N=p.roundTripTimeHistogram[h],N===0?x++:(x>1?f.push(h+"-"+N):x===1?f.push("0j"+N):f.push(N.toString()),x=0);f=f.join("j");F[16]=f}p.zeroPrefixRoundTripTime>0&&(F[36]=p.zeroPrefixRoundTripTime);
p.lastQueryBuildTime>0&&(F[18]=p.lastQueryBuildTime-p.startTime);p.firstEditTime>0&&(F[4]=p.firstEditTime-p.startTime);p.lastEditTime>0&&(F[5]=p.lastEditTime-p.startTime);return F.join(".")};
HKe.prototype.normalize=function(p){return p.replaceAll(".","-")};
var Pwm=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var TQ8=function(){var p=_.m.apply(this,arguments)||this;p.microphoneSpinnerActive=!1;p.noAnimations=!1;p.boundExitClick=function(){p.onExitButtonClick()};
p.speechOverlayClassName="";p.isLevelAnimating=!1;p.playCloseDialogAudioFeedback=!0;p.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return p};
_.E(TQ8,_.m);_.l=TQ8.prototype;_.l.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.l.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=yja()};
_.l.dataChanged=function(){this.logDialog()};
_.l.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var p;(p=this.manager.audioPlayer)!=null&&(p.JSC$17548_audioEnabled=!1)}this.manager.stop();(p=this.manager.audioPlayer)!=null&&(p.JSC$17548_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.l.handleSpeechQueryCompleteAction=function(p){var x=p.navigationAction;x&&(p.trackingParams&&_.cl().graftServerVe(p.trackingParams,this.dialogVe,5),_.hG(this.hostElement,"yt-navigate",{endpoint:x,tempData:this.getNavigationParams(x),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.l.onExitButtonClick=function(){this.closeDialog()};
_.l.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var p;if((p=this.manager)!=null){var x;(x=p.audioPlayer)==null||PA(x,"failure");p.setState("microphone-off");p.stop()}}else(p=this.manager)==null||p.start()};
_.l.transcriptionChanged=function(){var p,x;(((p=this.transcription)==null?0:p.low)||((x=this.transcription)==null?0:x.high))&&this.setState("transcribing",this.transcription)};
_.l.stateChanged=function(){this.setState(this.state,this.transcription)};
_.l.logDialog=function(){var p;(p=this.data)!=null&&p.trackingParams&&(p=_.cl(),_.F8(p,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=p.graftServerVe(this.data.trackingParams,void 0,5))};
_.l.getNavigationParams=function(p){var x={};if(_.S("web_yt_searchbox")){var F=orD();F.inputMethodsTracker.add(6);F=LPH(F,15);x.gs_l=F;var N;x.oq=((N=_.r(p,_.fR))==null?void 0:N.query)||""}else if(p=window.ytvoicesearchloggingparams){if(p=p())x.oq=p.oq,x.gs_l=p.gs_l}else _.uO(Error("kl"));return x};
_.l.closeDialog=function(){_.lA(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.l.setState=function(p,x){if(this.data){var F=this.data,N={};switch(p){case "listening":N={headerText:F.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:F.microphoneButtonAriaLabel};break;case "timeout":N={headerText:F.promptHeader,microphoneState:"try-again",microphoneLabel:F.promptMicrophoneLabel,microphoneAriaLabel:F.promptMicrophoneLabel};break;case "microphone-off":N={headerText:F.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:F.promptMicrophoneLabel,
microphoneAriaLabel:F.promptMicrophoneLabel};break;case "transcribing":(x==null?0:x.low)||(x==null?0:x.high)?N={transcriptionLow:x==null?void 0:x.low,transcriptionHigh:x==null?void 0:x.high,microphoneState:"speaking",microphoneAriaLabel:F.microphoneButtonAriaLabel}:N={headerText:F.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:F.microphoneButtonAriaLabel};break;case "processing":N={headerText:F.loadingHeader,microphoneState:"processing",microphoneAriaLabel:F.microphoneButtonAriaLabel};
break;case "offline":N={headerText:F.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:F.connectionErrorMicrophoneLabel,microphoneAriaLabel:F.connectionErrorMicrophoneLabel};break;case "permission":N={headerText:F.permissionsHeader,bodyLine1:F.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:F.permissionsSubtext};break;case "permission-denied":N={headerText:F.disabledHeader,bodyLine1:F.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:F.disabledSubtext}}N.className=
p;this.speechOverlayState=N;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.l.setMicrophoneState=function(p){var x=this.isLevelAnimating;this.isLevelAnimating=p==="speaking";!x&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=p==="processing"&&!this.noAnimations};
_.l.setClass=function(p){this.speechOverlayClassName&&_.iX(this.hostElement,this.speechOverlayClassName,!1);p&&(this.speechOverlayClassName=p,_.iX(this.hostElement,p,!0))};
_.l.runLevelAnimation=function(){var p=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var x=1+Math.random()*.75,F=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+F/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+x+")");_.E0.addJob(function(){p.runLevelAnimation()},3,F)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
var Q3=TQ8;Q3.prototype.stateChanged=Q3.prototype.stateChanged;Q3.prototype.transcriptionChanged=Q3.prototype.transcriptionChanged;Q3.prototype.onPopupClosed=Q3.prototype.onPopupClosed;Q3.prototype.dataChanged=Q3.prototype.dataChanged;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Q3.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Q3.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Q3.prototype,"rendererStamperBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],Q3.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],Q3.prototype,"eventForwardingBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Q3.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Q3.prototype,"speechOverlayState",void 0);
_.B([_.H(),_.k("design:type",Object)],Q3.prototype,"microphoneSpinnerActive",void 0);_.B([_.H({type:_.S("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.k("design:type",Object)],Q3.prototype,"noAnimations",void 0);_.B([_.H({selector:function(p){var x;return(x=p.voiceSearch)==null?void 0:x.transcription}}),
_.k("design:type",Object)],Q3.prototype,"transcription",void 0);_.B([_.H({selector:function(p){var x;return(x=p.voiceSearch)==null?void 0:x.overlay}}),
_.k("design:type",String)],Q3.prototype,"state",void 0);_.B([_.H(),_.k("design:type",Object)],Q3.prototype,"boundExitClick",void 0);_.B([_.Ff("#microphone-levels"),_.k("design:type",HTMLElement)],Q3.prototype,"level",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Q3.prototype,"dataChanged",null);_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Q3.prototype,"onPopupClosed",null);
_.B([_.cT("transcription"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Q3.prototype,"transcriptionChanged",null);_.B([_.cT("state"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Q3.prototype,"stateChanged",null);Q3=_.B([_.L({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],Q3);
_.P(Q3,"ytd-voice-search-dialog-renderer",function(){if(zA_!==void 0)return zA_;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return zA_=p},{mode:1});var BQk;var RAm=function(){var p=_.m.apply(this,arguments)||this;p.isOverlay=!1;p.hidden=!1;return p};
_.E(RAm,_.m);_.l=RAm.prototype;_.l.onPopupClosed=function(){this.toggleIconState(!1)};
_.l.computeIcon=function(){var p,x,F;return(x=_.r((p=this.data)==null?void 0:p.icon,amD))==null?void 0:(F=x.icon)==null?void 0:F.iconType};
_.l.computeIconBadgeShape=function(){var p;return{iconBadgeType:"cart",iconBadgeText:(p=this.iconBadgeEntity)==null?void 0:p.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.l.onClick=function(){var p;(p=this.data)!=null&&p.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.l.computeHidden=function(p){return!p};
_.l.toggleIconState=function(p){this.iconButton&&(this.iconButton.pressed=p)};
var zg=RAm;zg.prototype.onPopupClosed=zg.prototype.onPopupClosed;_.B([_.u(_.nl),_.k("design:type",Object)],zg.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],zg.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],zg.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],zg.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],zg.prototype,"isOverlay",void 0);
_.B([_.H({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.k("design:type",Object)],zg.prototype,"hidden",void 0);_.B([_.H({selectorArgs:["data.iconBadgeEntityKey"],selector:function(p,x){return _.M4(p.entities,"iconBadgeEntity",x)}}),
_.k("design:type",Object)],zg.prototype,"iconBadgeEntity",void 0);_.B([_.Ff("yt-icon-button"),_.k("design:type",HTMLButtonElement)],zg.prototype,"iconButton",void 0);_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zg.prototype,"onPopupClosed",null);zg=_.B([_.L({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],zg);
_.P(zg,"ytd-icon-badge-topbar-button-renderer",function(){if(BQk!==void 0)return BQk;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return BQk=p},{mode:1});var kQk;var U_m=function(){var p=_.m.apply(this,arguments)||this;p.premiumOptions=[];p.darkerDarkTheme=_.S("web_darker_dark_theme");return p};
_.E(U_m,_.m);U_m.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.R8.Object.defineProperties(U_m.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
var sx=U_m;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],sx.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],sx.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Array)],sx.prototype,"premiumOptions",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],sx.prototype,"darkerDarkTheme",void 0);_.B([_.w("premiumOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],sx.prototype,"hasPremiumOptions",null);
sx=_.B([_.L({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],sx);
_.P(sx,"ytd-offline-promo-content",function(){if(kQk!==void 0)return kQk;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return kQk=p},{mode:1});var iKH;var nh=function(){var p=_.m.apply(this,arguments)||this;p.premiumOptions=[];return p};
_.E(nh,_.m);nh.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var p;this.premiumOptions=aRm((p=this.data)==null?void 0:p.formats)};
nh.prototype.onClickSubmit=function(){_.lA(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var p;(p=_.Pt())==null||p.pause()};
nh.prototype.attached=function(){this.JSC$18278_scroller&&(this.JSC$18278_scroller.dialogElement=this.hostElement.parentNode)};
_.R8.Object.defineProperties(nh.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
var y3=nh;y3.prototype.dataChanged=y3.prototype.dataChanged;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],y3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],y3.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],y3.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],y3.prototype,"data",void 0);
_.B([_.H({computed:"computeIcon_(data.headersIcon)",value:""}),_.k("design:type",String)],y3.prototype,"headersIcon",void 0);_.B([_.H(),_.k("design:type",Array)],y3.prototype,"premiumOptions",void 0);_.B([_.Ff("#scroller"),_.k("design:type",Object)],y3.prototype,"JSC$18278_scroller",void 0);_.B([_.w("headersIcon"),_.k("design:type",Object),_.k("design:paramtypes",[])],y3.prototype,"showIcon",null);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],y3.prototype,"dataChanged",null);y3=_.B([_.L({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],y3);
_.P(y3,"ytd-offline-promo-renderer",function(){if(iKH!==void 0)return iKH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return iKH=p},{mode:1});var ILH;var $_8=function(){var p=_.m.apply(this,arguments)||this;p.playbackPauseInterval=NaN;p.isLoading=!1;p.hasError=!1;p.dialogClass="";p.youtubeLabel=_.JG("LOGO_ALT_LABEL",{},"YouTube Home");p.logoName="yt-logos-ext:yt-logo-updated";p.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return p};
_.E($_8,_.m);_.l=$_8.prototype;_.l.onDataChange=function(){var p;if(this.showEOMV1Text=!((p=this.data)==null||!p.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.l.attached=function(){this.pausePlayer()};
_.l.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.l.handleLangSelect=function(p){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[p.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.l.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.l.handleSaveConsent=function(p){var x=this;this.showLoadingSpinner();this.showLoadingSpinner();B$m(_.r(p,lVk)).catch(function(F){_.no(new _.qE("Something went wrong when save consent "+(F.message?F.message:F)+"."));x.hideLoadingSpinner();x.showErrorMessage()})};
_.l.handleDisablePersonalization=function(p){var x=this;this.showLoadingSpinner();Rle(_.r(p,hJ8)).then(function(){x.dialog.close();x.resumePlayer()}).catch(function(F){_.no(new _.qE("Something went wrong when disable personalization "+(F.message?F.message:F)+"."));
x.hideLoadingSpinner();x.showErrorMessage()})};
_.l.showLoadingSpinner=function(){var p=this;this.showSpinnerJobId=_.E0.addLowPriorityJob(function(){p.isLoading=!0},500)};
_.l.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.E0.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.l.showErrorMessage=function(){var p=this;this.hasError=!0;_.E0.addLowPriorityJob(function(){p.hasError=!1},2E3)};
_.l.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.pf(function(){try{var p=_.Pt();p&&p.pause()}catch(x){}},100))};
_.l.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var p=_.Pt();p&&p.play()}catch(x){}};
_.R8.Object.defineProperties($_8.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.eomV1Text)return[];p=[];for(var x=["SHIELD","WARNING","BAR_CHART"],F=this.data.eomV1Text.essentialCookieMsg.items,N=0;N<x.length&&N<F.length;N++)p.push({icon:x[N],text:F[N]});return p}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var p;if((p=this.data)==null||!p.eomV1Text)return[];p=[];for(var x=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],F=this.data.eomV1Text.nonEssentialCookieMsg.items,N=0;N<x.length&&N<F.length;N++)p.push({icon:x[N],text:F[N]});return p}}});
var bD=$_8;bD.prototype.onDataChange=bD.prototype.onDataChange;_.B([_.H(),_.k("design:type",Object)],bD.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Boolean)],bD.prototype,"showEOMV1Text",void 0);_.B([_.H(),_.k("design:type",Object)],bD.prototype,"isLoading",void 0);_.B([_.H(),_.k("design:type",Object)],bD.prototype,"hasError",void 0);_.B([_.H(),_.k("design:type",Number)],bD.prototype,"showSpinnerJobId",void 0);_.B([_.H(),_.k("design:type",Object)],bD.prototype,"dialogClass",void 0);
_.B([_.Ff("#dialog"),_.k("design:type",Object)],bD.prototype,"dialog",void 0);_.B([_.Ff("#cb-header"),_.k("design:type",HTMLElement)],bD.prototype,"header",void 0);_.B([_.Ff("#lang-select"),_.k("design:type",HTMLElement)],bD.prototype,"langSelect",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],bD.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],bD.prototype,"ytComponentBehavior",void 0);
_.B([_.H(),_.k("design:type",String)],bD.prototype,"youtubeLabel",void 0);_.B([_.H(),_.k("design:type",Object)],bD.prototype,"logoName",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bD.prototype,"onDataChange",null);_.B([_.w("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],bD.prototype,"eomEssentialCookieMsgItems",null);
_.B([_.w("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],bD.prototype,"eomNonEssentialCookieMsgItems",null);bD=_.B([_.L({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],bD);
_.P(bD,"ytd-consent-bump-v2-lightbox",function(){if(ILH!==void 0)return ILH;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return ILH=p},{mode:1});var eAH;var p1H=function(){return _.m.apply(this,arguments)||this};
_.E(p1H,_.m);p1H.prototype.ready=function(){if(!_.D5()||Dj_)var p=!0;else Dj_=!0,p=!1;p||(p=document.querySelector("ytd-app"),p||(p=document.body),this.internalLightBox=_.n(p).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
var x0t=p1H;_.B([_.H(),_.k("design:type",Object)],x0t.prototype,"data",void 0);_.B([_.Ff("#lightbox"),_.k("design:type",Object)],x0t.prototype,"lightBox",void 0);x0t=_.B([_.L({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],x0t);
_.P(x0t,"ytd-consent-bump-v2-renderer",function(){if(eAH!==void 0)return eAH;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return eAH=p},{mode:1});var F1k;var Nh8;var hPa;var lam=function(){var p=_.m.apply(this,arguments)||this;p.ephemeralActionsEnabled=_.S("web_ephemeral_actions");return p};
_.E(lam,_.m);_.l=lam.prototype;_.l.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&Q$_(this.toastManager,this.toastType)};
_.l.open=function(p){this.toast&&(this.ephemeralAction&&_.J().resolve(_.M_).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=p!=null?p:0,this.toastManager.enqueue(this.toast,p)):this.toast.open())};
_.l.close=function(p){var x;(x=this.toast)==null||x.close();this.toastManager&&p===1&&Q$_(this.toastManager,p)};
_.l.refit=function(){var p;(p=this.toast)==null||p.refit()};
_.l.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var p;(p=this.toast)==null||p.close()}};
_.l.setVerticalOffset=function(p){this.toast&&(this.toast.verticalOffset=p,this.toast.fit())};
_.l.computeButtonClass_=function(p){return p?"toast-button":""};
_.l.computeText_=function(p){return _.Pi(p)};
_.l.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Vx("toast-opened-changed",this.toastOpened))};
_.l.updateToastOpenedFromBinding=function(p){this.toastOpened=p.detail.value};
_.R8.Object.defineProperties(lam.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var p,x,F=(p=this.data)==null?void 0:(x=p.actionButton)==null?void 0:x.buttonRenderer;return(F==null?void 0:F.command)||(F==null?void 0:F.serviceEndpoint)||(F==null?void 0:F.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 p=[],x;((x=this.data)==null?0:x.responseText)&&p.push(_.Pi(this.data.responseText));var F;((F=this.data)==null?0:F.subText)&&p.push(_.Pi(this.data.subText));var N,h;if((N=this.data)==null?0:(h=N.actionButton)==null?0:h.buttonRenderer){var c,M;p.push(((c=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(M=c.accessibilityData)==null?void 0:M.label)||_.Pi(this.data.actionButton.buttonRenderer.text))}return p.filter(function(f){return f}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var p,x;return(x=(p=this.toast)==null?void 0:p.opened)!=null?x:!1}}});
var Av=lam;Av.prototype.toastOpenedChangedForBinding=Av.prototype.toastOpenedChangedForBinding;Av.prototype.toastOpenedChanged=Av.prototype.toastOpenedChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Av.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],Av.prototype,"ytEventForwardingBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Av.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],Av.prototype,"duration",void 0);_.B([_.H(),_.k("design:type",Number)],Av.prototype,"toastType",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Av.prototype,"useCloseButton",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Av.prototype,"closeToastOnActionButtonClick",void 0);_.B([_.H({value:function(){return _.JG("SBOX_INAPPROPRIATE_CANCEL")}}),
_.k("design:type",String)],Av.prototype,"closeButtonAriaLabel",void 0);_.B([_.H(),_.k("design:type",Boolean)],Av.prototype,"toastOpened",void 0);_.B([_.H(),_.k("design:type",Boolean)],Av.prototype,"hasOpened",void 0);_.B([_.H(),_.k("design:type",Object)],Av.prototype,"ephemeralActionsEnabled",void 0);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Av.prototype,"command",null);
_.B([_.w("ephemeralActionsEnabled","labelText","command","duration"),_.k("design:type",Object),_.k("design:paramtypes",[])],Av.prototype,"ephemeralAction",null);_.B([_.w("ephemeralAction"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Av.prototype,"hasEphemeralAction",null);_.B([_.Ff("#toast"),_.k("design:type",Object)],Av.prototype,"toast",void 0);_.B([_.H({value:function(){return{style:"call-to-action-inverse"}}}),
_.k("design:type",Object)],Av.prototype,"buttonOverrides",void 0);_.B([_.H({value:{style:"mono-inverse"}}),_.k("design:type",Object)],Av.prototype,"closeButtonOverrides",void 0);_.B([_.H({value:function(){return _.J().resolve(_.Bw(_.PGm))}}),
_.k("design:type",Object)],Av.prototype,"toastManager",void 0);_.B([_.w("data.responseText","data.subText","data.actionButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],Av.prototype,"labelText",null);_.B([_.W("toastOpened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Av.prototype,"toastOpenedChanged",null);
_.B([_.W("toastOpened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Av.prototype,"toastOpenedChangedForBinding",null);Av=_.B([_.JZ({is:"yt-notification-action-renderer",disableElementRegistration:!0})],Av);
_.P(Av,"yt-notification-action-renderer",function(){if(hPa===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Nh8===void 0&&(Nh8=document.createElement("template"));var N=Nh8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);hPa=p}p=hPa;return p},{mode:2});var c3c=function(){var p=_.m.apply(this,arguments)||this;p.duration=4E3;p.downloadingCount=0;p.downloadedCount=0;p.downloadingOnlySmartDownloads=!1;p.sessionTotalDownloads=0;p.sessionDownloaded=0;p.previousSessionsDownloaded=0;p.totalDownloadPercentage=0;p.currentDownloadProgress=0;p.currentDownloadPercentage=0;p.isLeaderTab=!0;p.isFullScreen=!1;p.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};p.boundBeforeUnload=function(x){p.isLeaderTab&&p.downloadingCount>0&&(x.preventDefault(),
x.returnValue=!0)};
return p};
_.E(c3c,_.m);_.l=c3c.prototype;
_.l.open=function(){this.updateDownloadState();if(this.data){var p=this.sessionDownloaded+1,x=this.sessionTotalDownloads>1?_.JG("VIDEOS_DOWNLOADING_RATIO",{downloaded:p.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+p+"/"+this.sessionTotalDownloads):_.JG("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(x=this.sessionTotalDownloads>1?_.JG("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:p.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
p+"/"+this.sessionTotalDownloads):_.JG("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));p=this.isLeaderTab?_.JG("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.Pi(this.data.responseText)!==x||_.Pi(this.data.subText)!==p)this.set("data.responseText",_.L1(x)),this.set("data.subText",_.L1(p)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.l.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.l.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.l.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.l.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var p=this.downloadedCount-this.previousSessionsDownloaded;p<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-p);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.l.handleFullscreenChange=function(p){(this.isFullScreen=p)||this.updatePopup()};
var uD=c3c;uD.prototype.updateCurrentDownloadProgress=uD.prototype.updateCurrentDownloadProgress;uD.prototype.updatePopup=uD.prototype.updatePopup;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],uD.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],uD.prototype,"ytEventForwardingBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],uD.prototype,"actionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],uD.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],uD.prototype,"duration",void 0);_.B([_.H({selector:function(p){return _.wf$(p.entities).length}}),
_.k("design:type",Object)],uD.prototype,"downloadingCount",void 0);_.B([_.H({selector:Fx8}),_.k("design:type",Object)],uD.prototype,"downloadedCount",void 0);_.B([_.H({selector:function(p){var x=_.wf$(p.entities);return xCm(p.entities,x)}}),
_.k("design:type",Object)],uD.prototype,"downloadingOnlySmartDownloads",void 0);_.B([_.H(),_.k("design:type",Object)],uD.prototype,"sessionTotalDownloads",void 0);_.B([_.H(),_.k("design:type",Object)],uD.prototype,"sessionDownloaded",void 0);_.B([_.H(),_.k("design:type",Object)],uD.prototype,"previousSessionsDownloaded",void 0);_.B([_.H(),_.k("design:type",Object)],uD.prototype,"totalDownloadPercentage",void 0);
_.B([_.H({selector:function(p){var x;p=(x=_.wf$(p.entities))!=null?x:[];return p.length>0?_.XfH(p.slice(-1)):0}}),
_.k("design:type",Object)],uD.prototype,"currentDownloadProgress",void 0);_.B([_.H(),_.k("design:type",Object)],uD.prototype,"currentDownloadPercentage",void 0);_.B([_.H({selector:_.HbH}),_.k("design:type",Object)],uD.prototype,"isLeaderTab",void 0);_.B([_.Ff("yt-notification-action-renderer"),_.k("design:type",Object)],uD.prototype,"notificationActionRenderer",void 0);
_.B([_.cT("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uD.prototype,"updatePopup",null);_.B([_.cT("currentDownloadProgress"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uD.prototype,"updateCurrentDownloadProgress",null);uD=_.B([_.L({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],uD);
_.P(uD,"ytd-video-download-toast-renderer",function(){if(F1k!==void 0)return F1k;var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return F1k=p},{mode:1});var aam;var Mym;var D0D=function(){return _.m.apply(this,arguments)||this};
_.E(D0D,_.m);D0D.prototype.computeIsRedLogo=function(p,x){!p&&x&&(p=x);return p==="YOUTUBE_RED_LOGO"||p==="YOUTUBE_PREMIUM_LOGO"};
D0D.prototype.computeLogoName=function(p){p=this.componentBehavior.computeIcon_(p);return p===""?"yt-logos-ext:yt-logo-updated":p};
var YI=D0D;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],YI.prototype,"componentBehavior",void 0);_.B([_.H({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.k("design:type",Boolean)],YI.prototype,"isRedLogo",void 0);_.B([_.H({computed:"computeLogoName(data)"}),_.k("design:type",String)],YI.prototype,"logoName",void 0);_.B([_.H({value:{}}),_.k("design:type",Object)],YI.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],YI.prototype,"logoType",void 0);YI=_.B([_.L({disableElementRegistration:!0,is:"ytd-logo"})],YI);
_.P(YI,"ytd-logo",function(){if(Mym!==void 0)return Mym;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return Mym=p},{mode:_.UQ("kevlar_poly_si_batch_j074")?1:2});var fae=function(){var p=_.m.apply(this,arguments)||this;p.animationRef={};return p};
_.E(fae,_.m);_.l=fae.prototype;_.l.attached=function(){document.addEventListener("yt-navigate-finish",_.p5(this,this.logYoodle))};
_.l.detached=function(){document.removeEventListener("yt-navigate-finish",_.p5(this,this.logYoodle))};
_.l.logYoodle=function(){var p,x;if((p=this.data)==null?0:(x=p.loggingDirectives)==null?0:x.trackingParams)this.ytRendererBehavior.markDirty(),_.cl().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.l.computeHideImg=function(p,x){return!!p||!!x};
_.l.computeHideYtdLogo=function(p,x){return!p||!!x};
_.l.computeHideLottie=function(p){return!p};
_.l.computeIsRedLogo=function(p){return p==="YOUTUBE_RED_LOGO"||p==="YOUTUBE_PREMIUM_LOGO"};
_.l.renderLogoEntity=function(){var p=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),x=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),F=this.getLogoTitleText(this.data),N=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==p&&(this.url=p);this.animatedUrl!==x&&(this.animatedUrl=x);this.logoTitleText!==F&&(this.logoTitleText=F);this.lottieUrl!==N&&(this.lottieUrl=N,this.lottiePlayerProps=this.computeLottiePlayerProps(N))};
_.l.getSanitizedThumbnail=function(p){return p&&p.thumbnails?_.BUk(p.thumbnails,122)||"":""};
_.l.getThumbnailUrl=function(p,x){if(!x)return"";var F,N;p=p?(F=x.darkThemeLogo)==null?void 0:F.thumbnail:(N=x.lightThemeLogo)==null?void 0:N.thumbnail;return this.getSanitizedThumbnail(p)};
_.l.getAnimatedThumbnailUrl=function(p,x){return x?this.getSanitizedThumbnail(p?x.darkThemeAnimatedLogo:x.lightThemeAnimatedLogo):""};
_.l.getLogoTitleText=function(p){if(p)return _.Pi(p.tooltipText)};
_.l.computeLogoIcon=function(p,x){if(x){var F,N;return p?(F=x.darkThemeLogo)==null?void 0:F.icon:(N=x.lightThemeLogo)==null?void 0:N.icon}};
_.l.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.l.getLottieUrl=function(p,x){var F,N,h,c;return p?x==null?void 0:(F=x.darkThemeLogo)==null?void 0:(N=F.lottieAnimation)==null?void 0:N.url:x==null?void 0:(h=x.lightThemeLogo)==null?void 0:(c=h.lottieAnimation)==null?void 0:c.url};
_.l.computeLottiePlayerProps=function(p){if(p){var x;if((x=this.animationRef)==null?0:x.lottieEl){var F;(F=this.animationRef)==null||F.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:p,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.l.onLottieError=function(){this.data&&this.lottieUrl&&_.hG(this.hostElement,"yoodle-error")};
_.l.onImgError=function(){this.data&&!this.lottieUrl&&_.hG(this.hostElement,"yoodle-error")};
var wT=fae;wT.prototype.playAnimation=wT.prototype.playAnimation;wT.prototype.renderLogoEntity=wT.prototype.renderLogoEntity;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],wT.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],wT.prototype,"data",void 0);_.B([_.H({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.k("design:type",Boolean)],wT.prototype,"hideImg",void 0);
_.B([_.H({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.k("design:type",Boolean)],wT.prototype,"hideYtdLogo",void 0);_.B([_.H({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.k("design:type",Boolean)],wT.prototype,"hideLottie",void 0);_.B([_.H({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.k("design:type",Boolean)],wT.prototype,"isRedLogo",void 0);
_.B([_.H(),_.k("design:type",Boolean)],wT.prototype,"useDarkThemeYoodle",void 0);_.B([_.H(),_.k("design:type",String)],wT.prototype,"url",void 0);_.B([_.H(),_.k("design:type",String)],wT.prototype,"animatedUrl",void 0);_.B([_.H(),_.k("design:type",String)],wT.prototype,"logoTitleText",void 0);_.B([_.H({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.k("design:type",Object)],wT.prototype,"logoIcon",void 0);_.B([_.H(),_.k("design:type",Object)],wT.prototype,"logoType",void 0);
_.B([_.H(),_.k("design:type",String)],wT.prototype,"lottieUrl",void 0);_.B([_.H(),_.k("design:type",Object)],wT.prototype,"lottiePlayerProps",void 0);_.B([_.H(),_.k("design:type",Object)],wT.prototype,"animationRef",void 0);_.B([_.W("data"),_.W("useDarkThemeYoodle"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wT.prototype,"renderLogoEntity",null);
_.B([_.V("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],wT.prototype,"playAnimation",null);wT=_.B([_.L({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],wT);
_.P(wT,"ytd-yoodle-renderer",function(){if(aam!==void 0)return aam;var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return aam=p},{mode:_.UQ("kevlar_poly_si_batch_j074")?1:2});var K1H;var q3H;var Zu8=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return p};
_.E(Zu8,_.m);_.l=Zu8.prototype;_.l.onYoodleError=function(){_.S("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.l.computeLogoName=function(p){p=this.componentBehavior.computeIcon_(p);return p===""?"yt-logos-ext:yt-logo-updated":p};
_.l.computeTitle=function(p,x,F){return F&&(x==null?0:x.tooltipText)?_.Pi(x.tooltipText):_.Pi(p)};
_.l.computeAriaLabel=function(p,x,F){return F&&(x==null?0:x.tooltipText)?_.Pi(p):""};
_.l.computeShowYoodle=function(p,x,F){return!p||!x&&!!F&&!_.Q5.isEmpty(F)};
_.l.onNavigateHomeAction=function(){if(_.S("kevlar_miniplayer_navigate_home_from_app_killswitch")){var p;(p=_.n(this.hostElement).querySelector(".yt-simple-endpoint"))==null||p.click()}};
_.l.computeLogoHref=function(p,x,F){var N;(F==null?0:F.onTapCommand)?N=this.componentBehavior.computeHref_(F.onTapCommand):p&&(N=this.componentBehavior.computeHref_(p));return N?N:x};
_.l.computeCommand=function(p,x){return(x==null?void 0:x.onTapCommand)||p};
_.l.getEndpointForm=function(){if(_.S("kevlar_topbar_disable_cache_only_home")){var p=_.J().resolve(_.Q_),x=Mo8(p.getState())||"";p=_.fAp(p.getState())||"";return{disableCache:x==="ytd-browse"&&p==="home"}}return{disableCache:!0}};
var Gg=Zu8;Gg.prototype.onYoodleError=Gg.prototype.onYoodleError;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Gg.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Gg.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Gg.prototype,"componentBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],Gg.prototype,"ytdReduxBehavior",void 0);
_.B([_.H(),_.k("design:type",Object)],Gg.prototype,"data",void 0);_.B([_.H(),_.k("design:type",String)],Gg.prototype,"countryCode",void 0);_.B([_.H({selectorArgs:["data.overrideEntityKey"],selector:function(p,x){return _.M4(p.entities,"logoEntity",x)}}),
_.k("design:type",Object)],Gg.prototype,"logoEntity",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.k("design:type",Boolean)],Gg.prototype,"showYoodle",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],Gg.prototype,"yoodleError",void 0);_.B([_.H({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.k("design:type",String)],Gg.prototype,"titleText",void 0);
_.B([_.H({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.k("design:type",String)],Gg.prototype,"ariaLabelText",void 0);_.B([_.H({value:"/"}),_.k("design:type",String)],Gg.prototype,"defaultEndpointUrl",void 0);_.B([_.H({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.k("design:type",String)],Gg.prototype,"endpointUrl",void 0);
_.B([_.H({computed:"computeCommand(data.endpoint, logoEntity)"}),_.k("design:type",String)],Gg.prototype,"command",void 0);_.B([_.H(),_.k("design:type",Object)],Gg.prototype,"logoType",void 0);_.B([_.H({}),_.k("design:type",Boolean)],Gg.prototype,"useDarkThemeYoodle",void 0);_.B([_.V("yoodle-error"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Gg.prototype,"onYoodleError",null);Gg=_.B([_.L({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],Gg);
_.P(Gg,"ytd-topbar-logo-renderer",function(){if(q3H!==void 0)return q3H;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return q3H=p},{mode:_.UQ("kevlar_poly_si_batch_j027")?1:2});var ty_=0;var d0X=_.Tf.SEARCH_APPEND_LABEL,vW8=_.Tf.SUGGESTION_NEW_VIDEOS_TEXT,J3e=_.Tf.SUGGESTION_THUMBNAIL_LABEL,Cf8=_.mO(function(p){function x(nZ){var ep,jp;return _.D(function(fZ){if(fZ.nextAddress==1)return ep=new Request(nZ),_.KM(fZ,2),_.q(fZ,fetch(ep,{credentials:"include"}),4);if(fZ.nextAddress!=2)return sk(!0),_.ub(fZ,0);jp=_.v9(fZ);_.no(jp);_.JB(fZ)})}
var F=p.isHighlighted;var N=p.suggestion;var h=p.onClickCallback;var c=p.onHoverUpdateCallback;var M=p.labels;var f=p.queryBuilderFunction;var K=p.onRemoveCallback;var t=p.suggestionIndex;var d=p.generateUniqueId;var v=p.highlightedId;var C=p.useScrollMargin;var X=p.isKeyboardMode;var Q=null,b=null,A=_.oc(),Y=_.oc(),O=_.O$(function(nZ){nZ&&_.wY(237477,nZ,b,function(ep){b=ep})}),Fw=_.O$(function(nZ){nZ&&_.wY(237477,nZ,b,function(ep){b=ep})}),R=_.h0(function(nZ){if((nZ==null?void 0:nZ.button)===2)return nZ.preventDefault(),
!1;
var ep=_.b0();ep&&Q&&_.Rf(ep,Q,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var jp;h(nZ,N().text,N().index,nZ==null?void 0:(jp=nZ.detail)==null?void 0:jp.wasSelectedByKeyboard);return!1}),ld=function(){return N().type===35},pp=function(){return _.S("desktop_enable_single_suggestion_highlight")},Kp=function(){return _.Ud("desktop_suggestions_panel_row_height")||0},sM=function(){var nZ;
return _.S("desktop_enable_new_video_metadata")&&((nZ=N())==null?void 0:nZ.hasNewVideo)===!0},np=function(){return _.S("desktop_enable_visual_suggest")},Jz=function(){return pp()?(F==null?void 0:F())||AC()&&!(X==null?0:X()):(F==null?void 0:F())||AC()},Y$=function(){var nZ=_.sd("SBOX_SETTINGS");
return ld()&&!(nZ==null?0:nZ.HIDE_REMOVE_LINK)},xB=function(){return Vfe(N())},qI,RJ=!((qI=_.J().resolve(_.Bw(_.AD)))==null||!qI()),Ik=function(){return ld()?"ARROW_TIME":"SEARCH"},vb=function(){return M==null?void 0:M().SUGGESTION_DISMISS_LABEL},CZ=function(){return M==null?void 0:M().SUGGESTION_DISMISSED_LABEL};
qI=_.a(_.hu(!1,void 0,"l3epFd"));p=qI.next().value;var sk=qI.next().value;qI=_.a(_.hu(!1,void 0,"IdYnHc"));var Ov=qI.next().value,Xj=qI.next().value,AC=Ov,Jo=_.h0(function(){f(Y.value.innerText);return!1}),Bz=_.h0(function(nZ){nZ.preventDefault();
return!1}),aJ=_.h0(function(nZ){var ep=N().text,jp=_.sd("SBOX_SETTINGS"),fZ="https://"+(jp.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
fZ+="&delq="+encodeURIComponent(ep);(ep=jp==null?void 0:jp.PSUGGEST_TOKEN)&&(fZ+="&tok="+ep);(jp=jp==null?void 0:jp.SESSION_INDEX)&&(fZ+="&authuser="+jp);x(fZ);nZ.preventDefault();(nZ=_.b0())&&b&&_.Rf(nZ,b,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");K(t==null?void 0:t());return!1}),he=_.h0(function(){if(pp()&&(X==null?0:X()))return!1;
Xj(!0);c(!0);return!1}),Bb=_.h0(function(){Xj(!1);
c(!1);return!1});
qI=_.a(_.hu("",void 0,"bHTG2e"));var PH=qI.next().value,dl=qI.next().value;_.d1(function(){Y$()&&dl(d==null?void 0:d(t==null?void 0:t()));A.value&&_.wY(12453,A.value,Q,function(nZ){Q=nZ})});
return _.Z(_.D9,{cond:p,then:function(){var nZ={};return _.Z("div",{class:_.$L("ytSuggestionComponentRemovedText",(nZ.ytSuggestionComponentLargerRemovedText=function(){return np()},nZ)),
style:function(){return Kp()>0?"height: "+Kp()+"px;":""},
role:"button"},CZ)},
else:function(){var nZ={},ep={};return _.Z("div",{class:_.$L("ytSuggestionComponentSuggestion",(nZ.ytSuggestionComponentSuggestionHover=function(){return!pp()},nZ.ytSuggestionComponentHighlighted=Jz,nZ.ytSuggestionComponentPersonalizedSuggestion=ld,nZ.ytSuggestionComponentMweb=!1,nZ.ytSuggestionComponentLargerSuggestion=function(){return sM()||np()},nZ.ytSuggestionComponentThumbnailSuggestion=function(){return np()},nZ.ytSuggestionComponentRoundedSuggestion=function(){return _.S("desktop_enable_scrollable_suggestions_panel")&&
_.S("desktop_enable_suggestions_panel_padding")},nZ)),
style:function(){return Kp()>0?"height: "+Kp()+"px;":""},
role:"presentation","on:mousedown":R,"on:mouseover":he,"on:mouseout":Bb,el:A},_.Z("div",{class:_.$L("ytSuggestionComponentText",(ep.ytSuggestionComponentScrollMargin=C,ep)),"aria-label":function(){return sM()?N().text+" "+vW8:N().text},
id:function(){return d==null?void 0:d(t==null?void 0:t())},
"on:mousedown":R,role:"option"},_.Z(_.D9,{cond:function(){return N().type!==33},
then:function(){return _.Z(_.DS,{icon:Ik,className:"ytSuggestionComponentIcon"})}}),_.Z("div",{class:"ytSuggestionComponentLeftContainer"},_.Z("span",{el:Y,
role:"button",tabindex:0},_.Z(_.ft,{each:xB},function(jp){return jp.bold?_.Z("span",{class:"ytSuggestionComponentBold"},jp.text):_.Z("span",null,jp.text)})),_.Z(_.D9,{cond:function(){return sM()},
then:function(){return _.Z("div",{class:"ytSuggestionComponentNewVideoContainer"},_.Z("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.Z("div",{class:"ytSuggestionComponentNewVideoText"},vW8))}}))),_.Z("div",{class:"ytSuggestionComponentRightContainer"},_.Z(_.D9,{cond:function(){return np()&&N().visualSuggestUrl!==void 0},
then:function(){return _.Z("img",{"aria-label":J3e,class:"ytSuggestionComponentvisualSuggestThumbnail",src:function(){return N().visualSuggestUrl}})}}),_.Z(_.q$,null,_.Z(_.Kt,{when:function(){return np()&&Y$()}},function(){var jp={};
return _.Z("button",{class:_.$L("ytSuggestionComponentRemoveLinkClearButton",(jp.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return PH()&&PH()===(v==null?void 0:v())},jp.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Jz()},jp)),
el:Fw,"on:mousedown":aJ,"aria-label":vb,id:function(){return PH()}},_.Z(_.DS,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.Z(_.Kt,{when:function(){return!(np()&&N().visualSuggestUrl!==void 0)&&Y$()}},function(){var jp={};
return _.Z("a",{class:_.$L("ytSuggestionComponentRemoveLink",(jp.ytSuggestionComponentRemoveLinkDark=RJ,jp.ytSuggestionComponentRemoveLinkSelected=function(){return PH()&&PH()===(v==null?void 0:v())},jp)),
el:O,"on:mousedown":aJ,"aria-label":vb,tabindex:0,role:"button",id:function(){return PH()}},vb)}),_.Z(_.Kt,{when:function(){return!1}},function(){return _.Z("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Jo,"on:mousedown":Bz,role:"button","aria-label":d0X},_.Z(_.DS,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Rf");var S38=_.mO(function(){var p=_.h0(function(){orD().inputMethodsTracker.add(3);var x,F=(x=_.sd("SBOX_SETTINGS"))==null?void 0:x.REQUEST_LANGUAGE;if(F)return _.VR("//www.google.com/textinputassistant/14/"+F+"_tia.js"),!1});
return _.Z("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.Z("button",{class:"ytdTextInputAssistantButton","on:click":p},_.Z("img",{class:"ytdTextInputAssistantIcon",tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Sf");var r3H=function(){this.cache=new Map},EWH=function(p){for(var x=_.a(p.cache.entries()),F=x.next();!F.done;F=x.next()){var N=_.a(F.value);
F=N.next().value;N=N.next().value;N.suggestions.some(function(h){return h.type===35})&&p.cache.delete(F)}};var X1H=_.Tf.SEARCH,gW8=_.Tf.SEARCH_CLEAR_LABEL,Q5D=new _.iE("FAKE_SUGGEST_RESPONSE");_.o7(_.mO(function(p){function x(){jp||(jp=setTimeout(function(){Uv()},1E3))}
function F(hC,ak){if(hC.trim()){ep=hC;_.zn("REFINEMENTS_TUPLE",void 0);dl=!0;var Tm;ak=LPH(Bz,ak);var rl=(Tm=p.searchEndpoint)==null?void 0:Tm.call(p);Tm=Ov.value.value;rl||(rl=Xv8);var re;(re=_.r(rl.commandMetadata,_.eq))!=null&&re.url||(re=Error("ll`"+JSON.stringify(rl)),_.zj(re),rl=Xv8);re=_.Q5.unsafeClone(rl);rl=_.AT(_.r(re.commandMetadata,_.eq).url,"search_query",hC);_.YC(location.href,"sv")==="1"&&(_.r(re,_.fR).params="EgOAAgE%3D",rl=_.AT(rl,"sv","1"));_.r(re,_.fR)&&(_.r(re,_.fR).query=hC);
rl=rl.replace(/%20/g,"+");_.r(re.commandMetadata,_.eq).url=rl;_.J().resolve(_.RD).resolveCommand(re,{form:{tempData:{gs_l:ak,oq:Tm!=null?Tm:hC}}});Uv();Ov.value.value=hC;Ov.value.blur();Bz.reset()}}
function N(hC){return _.D(function(ak){return ak.return(new Promise(function(Tm){var rl=new XMLHttpRequest;rl.open("GET",YA8(hC),!0);rl.withCredentials=!0;var re=_.sd("SBOX_SETTINGS");(re==null?0:re.SEND_VISITOR_DATA)&&rl.setRequestHeader("X-Goog-Visitor-Id",re==null?void 0:re.VISITOR_DATA);rl.onload=function(){Tm(rl.responseText)};
rl.onerror=function(){_.no(Error("ml"));Tm(null)};
setTimeout(function(){rl.abort()},1E4);
rl.send(null)}))})}
function h(hC){var ak,Tm,rl,re;return _.D(function(IR){switch(IR.nextAddress){case 1:return ak={credentials:"include",headers:uzm()},window.AbortController&&(Tm=new AbortController,setTimeout(function(){Tm.abort("ytsbox-suggest-timeout")},1E4),ak.signal=Tm.signal),_.KM(IR,2),_.q(IR,fetch(YA8(hC),ak),4);
case 4:rl=IR.yieldResult.text();_.ub(IR,3);break;case 2:return re=_.v9(IR),re!=="ytsbox-abort-last"&&re!=="ytsbox-suggest-timeout"&&_.no(re),IR.return(null);case 3:return IR.return(rl)}})}
function c(hC){var ak,Tm,rl;return _.D(function(re){switch(re.nextAddress){case 1:if(ak=_.J().resolve(_.Bw(Q5D)))return re.return(ak);Tm=Date.now();x();return _.S("yt_searchbox_xhr")?_.q(re,N(hC),5):_.q(re,h(hC),4);case 4:rl=re.yieldResult;re.jumpTo(3);break;case 5:rl=re.yieldResult;case 3:if(rl){jp&&(clearTimeout(jp),jp=null);var IR=Bz,sv=Tm,hl=hC.query.length===0;sv=Date.now()-sv;hl?IR.zeroPrefixRoundTripTime=sv:(IR.JSC$18258_totalRoundTripTime+=sv,IR.maxRoundTripTime=Math.max(IR.maxRoundTripTime,
sv),hl=Math.floor(sv/100),hl>=Pwm.length?++IR.roundTripTimeHistogram[9]:++IR.roundTripTimeHistogram[Pwm[hl]])}return re.return(rl)}})}
function M(hC){var ak,Tm,rl;return _.D(function(re){if(re.nextAddress==1)return(ak=Jo.cache.get(At8(hC)))?re.return(ak):_.q(re,c(hC),2);Tm=re.yieldResult;if(Tm===null)return re.return(null);rl=new WPt(Tm);hC.query.length===0&&rl.suggestions.length===0||Jo.cache.set(At8(hC),rl);return re.return(rl)})}
function f(hC){var ak,Tm;return _.D(function(rl){if(rl.nextAddress==1){nZ=!1;var re=ep;re=_.v7p()==="search"?(_.YC(location.href,"search_query")||_.YC(location.href,"q"))===re:!1;ak=new bKH(hC,re?ep:null);return _.q(rl,M(ak),2)}Tm=rl.yieldResult;if(Tm===null)return rl.return();ak.query.length===0&&(Bz.zeroPrefixSuggestionCount=Tm.suggestions.length);if(ak.id<=fZ)return Bz.outOfSyncResponseCount++,rl.return();if(document.activeElement!==Ov.value)return rl.return();fZ=ak.id;var IR=Bz,sv=Tm.rawResponse[2]||
{};IR.experimentTriggeredBeforeFinal||(IR.experimentTriggeredBeforeFinal=IR.experimentTriggeredFinal);IR.experimentTriggeredFinal=!!sv.e;Bz.updateSuggestions(Tm.suggestions);A(-1);Ik([]);Tm.suggestions!==X()&&Kg(Tm.suggestions.length);Q(Tm.suggestions);sM(Tm.suggestions.length>0&&Tm.suggestions[0].type===33);AC&&(AC.hidden=Tm.suggestions.length===0,Kp()?(AC.style.minWidth="",IR=AC.style,sv=(re=X()[0])==null?void 0:re.ignoredPrefix,IR.marginLeft=(sv?Math.min(sv.length*6,Xj.value.offsetWidth):0).toString()+
"px"):(AC.style.minWidth=Xj.value.offsetWidth+"px",AC.style.marginLeft="0"),md());_.JB(rl)})}
function K(){if(!dl)return!1;var hC=_.sd("REFINEMENTS_TUPLE");return hC?(hC=hC[1].map(function(ak,Tm){return new GQX([ak,0,[71]],Ov.value.value,Tm)}),X()!==hC&&Kg(hC.length),Ik([]),Q(hC),Bz.updateSuggestions(hC),dl=!1,AC.hidden=hC.length===0,nZ=hC.length>0,!0):!1}
function t(){var hC=Ov.value.value;(typeof hC==="string"||hC instanceof String)&&hC!==""?R(!0):R(!1)}
function d(){if(_.v7p()==="search"){var hC=window.location.href;try{var ak=_.YC(hC,"search_query")||_.YC(hC,"q")||""}catch(Tm){ak=""}ak&&(Ov.value.value=ak,R(!0))}}
var v=_.a(_.hu([],void 0,"nfrtkb")),C=v.next().value;v=v.next().value;var X=C,Q=v;C=_.a(_.hu(-1,void 0,"cRyFvd"));var b=C.next().value,A=C.next().value;C=_.a(_.hu(-1,void 0,"EriPWe"));var Y=C.next().value,O=C.next().value;C=_.a(_.hu(!1,void 0,"UK7opd"));var Fw=C.next().value,R=C.next().value;C=_.a(_.hu(!1,void 0,"ego0bc"));var ld=C.next().value,pp=C.next().value;v=_.a(_.hu(!1,void 0,"lRwSBb"));C=v.next().value;v=v.next().value;var Kp=C,sM=v;v=_.a(_.hu(!1,void 0,"gLkpXb"));C=v.next().value;var np=
v.next().value;v=_.a(_.hu(!1,void 0,"In4Zlb"));var Jz=v.next().value,Y$=v.next().value;v=_.a(_.hu(1,void 0,"pQNR0c"));var xB=v.next().value,qI=v.next().value;v=_.a(_.hu([],void 0,"EFteUe"));var RJ=v.next().value,Ik=v.next().value;v=_.a(_.hu(!1,void 0,"fnEGyd"));var vb=v.next().value,CZ=v.next().value;v=_.S("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var sk=_.oc(),Ov=_.oc(),Xj=_.oc(),AC,Jo=new r3H,Bz=
orD(),aJ=_.J().resolve(_.Bw(_.AD)),he=function(){var hC;return((hC=p.forceDarkMode)==null?void 0:hC.call(p))||!(aJ==null||!aJ())},Bb=function(){return _.S("desktop_enable_scrollable_suggestions_panel")},PH="i"+ty_++,dl=!1,nZ=!1,ep="",jp=null,fZ=-1,Uv=function(){Ik([]);
Q([]);sM(!1);AC&&(AC.hidden=!0);jp&&(clearTimeout(jp),jp=null);A(-1)},FK=function(hC,ak){hC.preventDefault();
CZ(!0);AC&&(AC.hidden=!1);var Tm=b();hC=X();var rl=RJ();ak=fR_(ak);Tm+=ak;for(Tm>=hC.length?Tm=-1:Tm<-1&&(Tm=hC.length-1);Tm!==-1&&(rl.includes(Tm)||Tm>=hC.length||Tm<0);)Tm+=ak,Tm>=hC.length&&(Tm=-1);A(Tm);b()>=0&&(Ov.value.value=X()[b()].text,O(0),t(),hC=b(),rl=Y(),(rl=document.getElementById(sU[hC][rl]))&&Bb()&&(hC===X().length-1?AC.scrollTop=AC.scrollHeight:rl.scrollIntoView({block:"nearest",inline:"start"})))};
_.jl(Ov,"focus",function(hC){if(!(hC.relatedTarget instanceof Element&&hC.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){pp(!0);var ak;(ak=p.focusCallback)==null||ak.call(p,!0);K()||(nZ?AC.hidden=!1:(_.hG(sk.value,"yt-autonav-pause-focus",{}),f(hC.target.value)))}});
_.jl(Ov,"blur",function(hC){if(!(hC.relatedTarget instanceof Element&&hC.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){pp(!1);var ak;(ak=p.focusCallback)==null||ak.call(p,!1);AC.scrollTop=0;AC.hidden=!0;_.hG(sk.value,"yt-autonav-pause-blur",{})}});
var uB=function(hC){hC=fR_(hC);var ak;((ak=sU[b()])==null?0:ak[Y()+hC])&&O(Y()+hC)},ot=_.h0(function(hC){var ak=hC.target;
switch(hC.keyCode){case 13:hC.preventDefault();var Tm;if((Tm=sU[b()])==null?0:Tm[Y()]){var rl;(rl=document.getElementById(sU[b()][Y()]))==null||rl.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}hC=hC.shiftKey?4:3;Tm=Bz;rl=b();Tm.selectedSuggestionIndex=rl;F(ak.value,hC);break;case 27:AC&&(AC.hidden=!0);break;case 40:FK(hC,40);break;case 38:FK(hC,38);break;case 39:uB(39);break;case 37:uB(37);break;case 229:Bz.inputMethodsTracker.add(4);break;default:Bz.inputMethodsTracker.add(1),
OK8(Bz)}return!1}),zl=_.h0(function(hC){f(hC.target.value);
t();Bb()&&AC&&(AC.scrollTop=0);return!1}),LN=_.h0(function(){Bz.inputMethodsTracker.add(2);
OK8(Bz);return!1});
_.d1(function(){if(AC){Bz.reset();if(window.ResizeObserver){var hC=new ResizeObserver(function(){Kp()||(AC.style.minWidth=Xj.value.offsetWidth+"px")});
hC.observe(Xj.value);(new ResizeObserver(function(){md()})).observe(AC);
_.E_(function(){hC.disconnect()})}d();
window.addEventListener("yt-navigate-finish",d);window.addEventListener("yt-focus-searchbox",function(){Ov.value.focus()});
var ak;np((ak=_.sd("SBOX_SETTINGS"))==null?void 0:ak.HAS_ON_SCREEN_KEYBOARD)}else _.zj(new _.qE("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var aM=_.h0(function(hC){hC.preventDefault();F(Ov.value.value,12);return!1}),bk=_.h0(function(hC){hC.preventDefault();
var ak,Tm;(ak=Ov)==null||(Tm=ak.value)==null||Tm.focus();var rl,re;((rl=Ov)==null?void 0:(re=rl.value)==null?void 0:re.value)!==""&&(Ov.value.value="",Ov.value.dispatchEvent(new Event("input")));return!1}),kQ=_.h0(function(){var hC=DN8(Ov.value.value,X().filter(function(ak){return ak.type!==35}).map(function(ak){return{label:ak.text}}));
_.lA(sk.value,"yt-open-popup-action",[{openPopupAction:hC},document.body]);return!1}),gs=_.h0(function(){Ov.value.focus();
return!1}),Lt=function(hC,ak,Tm,rl){Bz.selectedSuggestionIndex=Tm;
F(ak,rl?3:1)},r1=function(hC){Ov.value.value=hC;
Ov.value.dispatchEvent(new Event("input"));Bz.inputMethodsTracker.add(5);OK8(Bz,!0)},sU=[[]],PQ=function(hC){var ak="searchbox-suggestion"+_.bW(_.AI);
sU[hC].push(ak);return ak},Kg=function(hC){if(X()){sU=[[]];
for(var ak=0;ak<hC;ak++)sU.push([])}},md=function(){if(Bb()){var hC=AC,ak=hC.scrollTop;
hC=hC.scrollHeight-hC.clientHeight;Y$(ak>=hC);ak=Math.abs(hC-ak);ak<=40?qI(1-(40-ak)/40):qI(1)}},Pw=function(){return"opacity: "+xB()*100+"%"},Zh=_.h0(function(){md();
return!1}),Tc=_.h0(function(){CZ(!1);
return!1}),Cp,ud={},Hr={},ZK={},lm={};
return _.Z("yt-searchbox",{class:_.$L("ytSearchboxComponentHost",(ud.ytSearchboxComponentMweb=!1,ud.ytSearchboxComponentDesktop=!0,ud["yt-searchbox-filled-query"]=function(){return Fw()},ud["ytd-masthead"]=function(){return!ld()},ud.ytSearchboxComponentHostDark=he,ud)),
role:"search",el:sk,"client-ve-type":10349},_.Z("div",{el:Xj,"on:click":gs,class:_.$L("ytSearchboxComponentInputBox",(Hr.ytSearchboxComponentInputBoxDark=he,Hr.ytSearchboxComponentInputBoxHasFocus=ld,Hr))},_.Z("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":aM},_.Z(_.D9,{cond:ld,then:function(){return _.Z("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.Z(_.DS,{icon:"SEARCH"}))}}),_.Z("input",{el:Ov,
class:_.$L("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":PH,"aria-expanded":!((Cp=AC)==null?0:Cp.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:input":zl,"on:keydown":ot,"on:paste":LN,placeholder:p.placeholderText,"aria-activedescendant":function(){var hC;return(hC=sU[b()])==null?void 0:hC[Y()]},
"aria-autocomplete":"list",role:"combobox"})),_.Z(_.D9,{cond:C,then:function(){return _.Z("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.Z(S38,null))}}),_.Z(_.D9,{cond:Fw,
then:function(){return _.Z("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.Z("button",{class:"ytSearchboxComponentClearButton","on:click":bk,"aria-label":p.clearButtonAriaLabel||gW8},_.Z(_.DS,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.Z(_.qC,{model:{}})))}})),_.Z("button",{class:_.$L("ytSearchboxComponentSearchButton",(ZK.ytSearchboxComponentSearchButtonDark=he,ZK)),
"on:click":aM,"aria-label":X1H,title:p.placeholderText},_.Z(_.DS,{icon:"SEARCH"})),_.Z(_.D9,{cond:function(){if(EgX()&&_.S("mweb_voice_search")&&p.voiceSearchButton)return p.voiceSearchButton()},
then:function(hC){var ak={};return _.Z("div",{class:_.$L("ytSearchboxComponentVoiceSearchWrapper",(ak.ytSearchboxComponentHideVoiceSearchButton=function(){return Fw()},ak))},_.Z(_.Es,{data:hC},{buttonRenderer:function(Tm){return _.Z(_.UN,{data:Tm.data,
onButtonClickCallback:function(){}})}}))}}),_.Z("div",{el:_.zYz(function(hC){return void(AC=hC)}),
id:PH,class:_.$L("ytSearchboxComponentSuggestionsContainer",(lm.ytSearchboxComponentSuggestionsContainerDark=he,lm["yt-searchbox-suggestions-container"]=!1,lm.ytSearchboxComponentSuggestionsContainerScrollable=Bb(),lm.ytSearchboxComponentSuggestionsContainerAnimated=v,lm)),"on:scroll":Zh,"on:mousemove":Tc,role:"listbox",hidden:!0},_.Z(_.ft,{each:X},function(hC,ak){return _.Z(Cf8,{suggestion:hC,isHighlighted:function(){return ak()===b()},
onClickCallback:Lt,onHoverUpdateCallback:function(Tm){if(_.S("desktop_enable_single_suggestion_highlight")){var rl=ak();Tm&&(O(0),A(rl))}},
onRemoveCallback:function(Tm){EWH(Jo);Tm===void 0||Tm<0||RJ().includes(Tm)||Ik([].concat(_.se(RJ()),[Tm]))},
labels:p.labels,queryBuilderFunction:r1,suggestionIndex:ak,generateUniqueId:PQ,highlightedId:function(){var Tm;return(Tm=sU[b()])==null?void 0:Tm[Y()]},
useScrollMargin:Bb(),isKeyboardMode:vb})}),_.Z(_.D9,{cond:function(){return!Kp()&&X().find(function(hC){return hC.type!==35})&&_.S("searchbox_reporting")},
then:function(){return _.Z("button",{class:"ytSearchboxComponentReportButton","on:mousedown":kQ},_.JG("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.Z(_.D9,{cond:function(){return!Jz()&&Bb()},
then:function(){return _.Z("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.Z("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:Pw}))}})))},"Tf"),"yt-searchbox",{props:{searchEndpoint:_.G2,
placeholderText:_.G2,labels:_.G2,voiceSearchButton:_.G2,focusCallback:_.mJ,clearButtonAriaLabel:_.G2,forceDarkMode:_.G2}});var zPH=function(){var p=_.m.apply(this,arguments)||this;p.menuButtonTargetId="topbar-guide-menu";p.narrow=!1;p.menuStrings={BACK_ALT_LABEL:_.JG("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.JG("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.JG("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.JG("SBOX_PLACEHOLDER",void 0,"Search")};p.pageDarkTheme=document.documentElement.hasAttribute("dark");p.watchPageScrollTop=0;p.theater=!1;p.fullscreen=!1;p.desktopUnifiedSearchPanelMode=_.S("desktop_enable_unified_search_panel");
p.cinematicTheaterMode=_.S("web_cinematic_theater_mode");p.ytSearchboxFocused=!1;p.searchboxLabels=_.sd("SBOX_LABELS");p.topbarIsAboveChipbar=!1;p.isDarkThemeForced=!1;p.areGhostCardsHidden=!1;p.guideKeyboardToggle=!1;p.voiceSearchManager=yja();p.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};p.setYtSearchboxFocused=function(x){p.ytSearchboxFocused=x};
return p};
_.E(zPH,_.m);_.l=zPH.prototype;_.l.computeSimpleText=function(p){return _.Pi(p)};
_.l.onDarkChanged=function(){for(var p=_.a(this.buttons||[]),x=p.next();!x.done;x=p.next())x.value.isOverlay=!!this.dark;p=_.a(this.buttonRenderers||[]);for(x=p.next();!x.done;x=p.next())x.value.overrides=this.computeButtonOverride()};
_.l.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.l.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var p=_.VG(_.GN(),"aa");_.iX(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||p||(this.isDarkThemeForced=this.dark=!0);this.logoType?(p=this.hostElement.querySelector("#masthead-logo"))&&(_.S("polymer_on_demand_shady_dom")?p.setAttribute("slot","masthead-logo-old"):_.qc(p)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.p5(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.p5(this,this.onSetTheaterModeEnabled))};
_.l.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.p5(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.p5(this,this.onSetTheaterModeEnabled))};
_.l.dataChanged=function(){var p=this.data;p&&(this.voiceEnabled=p.voiceSearchButton?yja().isSupported():!1,_.kJI(_.l$(),this.menuButtonTargetId,this.guideButton),p.onReceivedActions&&p.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.Kc(this.hostElement,p.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&p&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.iX(this.hostElement,"dark",!1),_.iX(this.hostElement,"theater",!1),
(p=this.hostElement.querySelector("#masthead-logo"))&&(_.S("polymer_on_demand_shady_dom")?p.setAttribute("slot","masthead-logo-old"):_.qc(p))))};
_.l.computeCenterHidden=function(){var p;return this.data&&!((p=this.data.searchbox)==null?0:p.fusionSearchboxRenderer)};
_.l.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.iX(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.l.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.l.onWatchScroll=function(p){this.watchPageScrollTop=p.detail||0;this.updateMastheadBackgroundOpacity()};
_.l.onFullscreenChangeAction=function(p){p||(this.watchPageScrollTop=0);this.fullscreen=p;this.updateMastheadBackgroundOpacity()};
_.l.onSetTheaterModeEnabled=function(p){this.theater=p.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.l.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.l.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.l.setBackgroundOpacity=function(p){p=this.calculateBackgroundOpacity(p);this.background.style.opacity=""+p};
_.l.calculateBackgroundOpacity=function(p){var x=this.theater&&this.cinematicTheaterMode?.6:0,F=this.hostElement.clientHeight/2;return Math.min(Math.max(p,0),F)/F*(1-x)+x};
_.l.shouldShowCinematicMastHead=function(){var p=_.S("kevlar_watch_grid")&&!_.S("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(p||this.pageDarkTheme)};
_.l.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.l.focusGuide=function(){this.guideButton.focus()};
_.l.onIronResize=function(){(this.get("data.interstitial")||this.get("data.ticker"))&&_.hG(this.hostElement,"yt-masthead-height-changed",{height:this.hostElement.clientHeight})};
_.l.onGuideToggleTap=function(){_.hG(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.l.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.l.onGuideToggleHover=function(){_.hG(this.hostElement,"yt-guide-hover")};
_.l.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.l.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.l.closeOnOutsideClickCondition=function(p){for(p=_.m9(p);p[0];){var x=p.shift();if(x instanceof Element&&x.id==="kbd")return!1}return!0};
_.l.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.l.pausePlayer=function(){var p;(p=_.Pt())==null||p.pause();this.pauseMiniplayer()};
_.l.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var p;(p=_.J().resolve(_.H$).getPlayerElement())==null||p.pause()}};
_.l.isMiniplayerActive=function(){return _.J().resolve(_.H$).isMiniplayerActive()};
_.l.updateNarrowFromBinding=function(p){this.narrow=p.detail.value};
_.l.onYtSendFeedbackAction=function(){_.lA(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.R8.Object.defineProperties(zPH.prototype,{shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var p;return(p=this.data)==null?void 0:p.voiceSearchButton}}}});
var V3=zPH;V3.prototype.narrowChanged=V3.prototype.narrowChanged;V3.prototype.onIronResize=V3.prototype.onIronResize;V3.prototype.onWatchPageChange=V3.prototype.onWatchPageChange;V3.prototype.onRendererStamperFinished=V3.prototype.onRendererStamperFinished;V3.prototype.dataChanged=V3.prototype.dataChanged;V3.prototype.onDarkChanged=V3.prototype.onDarkChanged;_.B([_.u(_.n7),_.k("design:type",Object)],V3.prototype,"ironResizableBehavior",void 0);
_.B([_.u(_.Gct),_.k("design:type",Object)],V3.prototype,"ytdExpandableInputBehavior",void 0);_.B([_.u(_.GM.YtdGuideStateAwareBehavior),_.k("design:type",Object)],V3.prototype,"ytdGuideStateAwareBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],V3.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],V3.prototype,"ytComponentBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],V3.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],V3.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.nl),_.k("design:type",Object)],V3.prototype,"ytdReduxBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],V3.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],V3.prototype,"narrow",void 0);_.B([_.H(),_.k("design:type",Object)],V3.prototype,"logoType",void 0);
_.B([_.H(),_.k("design:type",Boolean)],V3.prototype,"voiceEnabled",void 0);_.B([_.H(),_.k("design:type",Object)],V3.prototype,"menuStrings",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],V3.prototype,"dark",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],V3.prototype,"pageDarkTheme",void 0);_.B([_.H(),_.k("design:type",Object)],V3.prototype,"watchPageScrollTop",void 0);
_.B([_.H({reflectToAttribute:!0,selector:_.A$}),_.k("design:type",Boolean)],V3.prototype,"isWatchPage",void 0);_.B([_.H({reflectToAttribute:!0,selector:_.zv$}),_.k("design:type",Boolean)],V3.prototype,"isShortsPage",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],V3.prototype,"theater",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],V3.prototype,"fullscreen",void 0);
_.B([_.H({reflectToAttribute:!0,selector:_.AYd}),_.k("design:type",String)],V3.prototype,"frostedGlassMode",void 0);_.B([_.H(),_.k("design:type",Object)],V3.prototype,"ytSearchboxFocused",void 0);_.B([_.Nu("#buttons > *"),_.k("design:type",Array)],V3.prototype,"buttons",void 0);_.B([_.Nu("ytd-button-renderer"),_.k("design:type",Array)],V3.prototype,"buttonRenderers",void 0);_.B([_.Ff("#background"),_.k("design:type",HTMLDivElement)],V3.prototype,"background",void 0);
_.B([_.Ff("#guide-button"),_.k("design:type",Object)],V3.prototype,"guideButton",void 0);_.B([_.Ff("#logo"),_.k("design:type",Object)],V3.prototype,"logo",void 0);_.B([_.H({computed:"computeButtonOverride(dark)"}),_.k("design:type",Object)],V3.prototype,"buttonOverrides",void 0);_.B([_.cT("dark"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],V3.prototype,"onDarkChanged",null);_.B([_.H({value:function(){return this.onVoiceTap.bind(this)}}),
_.k("design:type",Function)],V3.prototype,"boundOnTapVoiceButton",void 0);_.B([_.H(),_.k("design:type",Object)],V3.prototype,"topbarIsAboveChipbar",void 0);_.B([_.w("voiceEnabled"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],V3.prototype,"shouldShowVoiceSearchButton",null);_.B([_.w("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],V3.prototype,"voiceSearchButton",null);
_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],V3.prototype,"dataChanged",null);_.B([_.V("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],V3.prototype,"onRendererStamperFinished",null);_.B([_.cT("isWatchPage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],V3.prototype,"onWatchPageChange",null);
_.B([_.V("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],V3.prototype,"onIronResize",null);_.B([_.cT("narrow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],V3.prototype,"narrowChanged",null);V3=_.B([_.L({disableElementRegistration:!0,is:"ytd-masthead"})],V3);
_.P(V3,"ytd-masthead",function(){if(K1H!==void 0)return K1H;var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return K1H=p},{mode:_.UQ("kevlar_poly_si_batch_j036")?1:2});var s5H;var nW_={},y3D={},bua={},A3a={},uRD=(A3a.OFFLINE=(nW_["publicytnetworkstatus-online"]="BACK_ONLINE",nW_),A3a.ONLINE=(y3D["publicytnetworkstatus-offline"]="OFFLINE",y3D),A3a.BACK_ONLINE=(bua["publicytnetworkstatus-offline"]="OFFLINE",bua.TIMER_TRIGGER="ONLINE",bua),A3a),Y3t=function(){var p=_.m.apply(this,arguments)||this;p.currentState="ONLINE";p.scheduledJobId=0;p.bannerString="";p.bannerVe=null;p.networkStatusManagerInstance=new _.GW;return p};
_.E(Y3t,_.m);_.l=Y3t.prototype;_.l.attached=function(){var p=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){p.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){p.stateChangeHandler("publicytnetworkstatus-offline")})};
_.l.detached=function(){var p=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){p.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){p.stateChangeHandler("publicytnetworkstatus-offline")})};
_.l.enterState=function(p){var x=this;this.scheduledJobId&&_.E0.cancelJob(this.scheduledJobId);p==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):p==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.JG("NO_INTERNET_CONNECTION",void 0,"No internet connection")):p==="BACK_ONLINE"&&(this.bannerString=_.JG("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.vZ(_.E0,function(){x.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=p};
_.l.stateChangeHandler=function(p){(p=uRD[this.currentState][p])&&this.enterState(p)};
_.l.logVisibility=function(p){var x=_.b0();this.createBannerVe(p);x&&this.bannerVe&&(p?_.P5(x,[this.bannerVe]):_.T6(x,[this.bannerVe]))};
_.l.createBannerVe=function(p){!this.bannerVe&&p&&(this.bannerVe=_.vt(37929),_.hY(_.cl(),this.bannerVe))};
var WD=Y3t;_.B([_.H({reflectToAttribute:!0}),_.k("design:type",String)],WD.prototype,"currentState",void 0);_.B([_.H(),_.k("design:type",Object)],WD.prototype,"scheduledJobId",void 0);_.B([_.H(),_.k("design:type",Object)],WD.prototype,"bannerString",void 0);WD=_.B([_.L({disableElementRegistration:!0,is:"ytd-network-status-banner"})],WD);
_.P(WD,"ytd-network-status-banner",function(){if(s5H!==void 0)return s5H;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return s5H=
p},{mode:1});var w1m;var GfH=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};p.hidden=!0;p.frostedGlass=_.S("web_frosted_glass");return p};
_.E(GfH,_.m);GfH.prototype.computeHidden=function(p){return p&&p.status?!1:!0};
GfH.prototype.handleUpdatePermissionRoleCommand=function(p){if(p=_.r(p,_.DoB))if(p=_.r(p.renderer,_.MdJ))this.data=p};
var HD=GfH;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],HD.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],HD.prototype,"componentBehavior",void 0);_.B([_.H({value:!0,computed:"computeHidden(data)"}),_.k("design:type",Object)],HD.prototype,"hidden",void 0);_.B([_.H(),_.k("design:type",Object)],HD.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],HD.prototype,"frostedGlass",void 0);
HD=_.B([_.L({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],HD);
_.P(HD,"ytd-permission-role-bottom-bar-renderer",function(){if(w1m!==void 0)return w1m;var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);return w1m=p},{mode:1});var VyH;var W1e;var KjH={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var HuX=function(){return _.m.apply(this,arguments)||this};
_.E(HuX,_.m);_.l=HuX.prototype;_.l.attached=function(){this.JSC$18360_scroller&&(this.JSC$18360_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18360_scroller.attached&&typeof this.JSC$18360_scroller.attached==="function"&&this.JSC$18360_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(F){F.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var p=_.n(this.hostElement);p.querySelector("tp-yt-paper-radio-group").selected="";var x=p.querySelector("#reason-text");x&&(x.value="");p.querySelector("#description-text").value=""}};
_.l.canSubmit=function(p,x){_.hG(this.hostElement,"yt-invalidate-popup-tabbables");return!(p&&x)};
_.l.onCancel=function(){_.lA(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.l.onSubmit=function(){var p=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(c){return c.active}).map(function(c){return c.innerText.trim()}),x=this.hostElement.querySelector("tp-yt-paper-radio-group"),F=x.selectedItem,N=F.name;
F=F.innerText.trim();var h=x.querySelector("#reason-text");x=void 0;h&&(x=h.value);(h=this.descriptionText.value)&&(h=h.trim());qRD(this.data.searchQuery,p,N,F,h,x);_.lA(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.l.sendFormSubmitToast=function(){var p=_.UJ(_.JG("SBOX_INAPPROPRIATE_TOAST"));_.lA(this.hostElement,"yt-open-popup-action",[p,this])};
_.l.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(p){return p.active})};
_.l.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
var mb=HuX;mb.prototype.onIronSelect=mb.prototype.onIronSelect;mb.prototype.onIronChange=mb.prototype.onIronChange;mb.prototype.dataChanged=mb.prototype.dataChanged;_.B([_.H(),_.k("design:type",Object)],mb.prototype,"data",void 0);_.B([_.H({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.k("design:type",Boolean)],mb.prototype,"submitDisabled",void 0);_.B([_.H(),_.k("design:type",Boolean)],mb.prototype,"suggestionSelected",void 0);
_.B([_.H(),_.k("design:type",Boolean)],mb.prototype,"catagorySelected",void 0);_.B([_.Ff("#scroller"),_.k("design:type",Object)],mb.prototype,"JSC$18360_scroller",void 0);_.B([_.Ff("#description-text"),_.k("design:type",Object)],mb.prototype,"descriptionText",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mb.prototype,"dataChanged",null);
_.B([_.V("iron-change"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mb.prototype,"onIronChange",null);_.B([_.V("iron-select"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mb.prototype,"onIronSelect",null);mb=_.B([_.L({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],mb);
_.P(mb,"ytd-search-suggestion-report-dialog",function(){if(W1e!==void 0)return W1e;var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return W1e=p},{mode:1});var oZ=function(p){var x=p.openPopupAction;var F=p.target;var N=p.container;var h=p.popupContainerConfig;var c=p.getElement;p=p.removeWhenClosed===void 0?!1:p.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=x;this.target=F;this.container=N;this.popupContainerConfig=h;this.getElement=c;this.JSC$18366_popupConfig=this.popupContainerConfig.JSC$17483_popupConfig[this.openPopupAction.popupType];this.rendererName=(x=this.getName())?_.zxH(x,cjm(this.popupContainerConfig,
x)):"";_.S("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=p);this.createPopup()};
oZ.prototype.updatePopup=function(p){this.openPopupAction=p;this.JSC$18366_popupConfig=this.popupContainerConfig.JSC$17483_popupConfig[this.openPopupAction.popupType];m08(this);_.S("reorder_popup_updates_killswitch")&&oW_(this);_.S("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var L1X=function(p,x,F){p.target=F;var N;F=((N=p.target.polymerController)!=null?N:p.target).popupPositionTarget||p.target;p.JSC$18366_popupConfig.targetContainer&&(F=p.container);p.popup.positionTarget=F;p.popupContent.positionTarget=F;_.S("reorder_popup_updates_killswitch")||oW_(p);p.JSC$18366_popupConfig.forceFocus&&(p.popupContent.style.outline="none");p.popupContent.tabIndex=-1;p.JSC$18366_popupConfig.narrowProperties&&(p.popup.style.position="static");p.JSC$18366_popupConfig.preventAutonav&&
p.popup.setAttribute("prevent-autonav",!0);p.JSC$18366_popupConfig.forceCloseOnOutsideClick&&p.popup.setAttribute("force-close-on-outside-click",!0);OuD(p,x);j5H(p,p.JSC$18366_popupConfig.styles);p.isRtl()&&j5H(p,p.JSC$18366_popupConfig.rtlStyles);if(!p.openPopupAction.shouldStopParentSignal){var h;x=(h=p.target.polymerController)!=null?h:p.target;(p.popupContent.startForwardingEvents||p.popupContainerConfig.forwardingEnabledPopups.has(p.rendererName))&&x.parentComponent!==p.popupContent&&p.popupContent!==
p.target&&p.target!==document.body&&(p.popupContent.startForwardingEvents?p.popupContent.startForwardingEvents(p.popupContainerConfig.forwardedEvents,p.target):(p.JSC$18366_eventForwarder||(p.JSC$18366_eventForwarder=new _.qg(p.popupContent)),p.JSC$18366_eventForwarder.start(p.popupContainerConfig.forwardedEvents,p.target)))}};
oZ.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var OuD=function(p,x){Pf_(p,x&&p.JSC$18366_popupConfig.narrowProperties?p.JSC$18366_popupConfig.narrowProperties:p.JSC$18366_popupConfig.properties);p.isRtl()&&Pf_(p,p.JSC$18366_popupConfig.rtlProperties);oW_(p)};
oZ.prototype.createPopup=function(){var p=this.JSC$18366_popupConfig.component;if(this.popupContent=The(this,this.rendererName)){if(p){this.popup=The(this,p);var x=this.popupContent;_.S("web_enable_wrapper_for_cow_component_in_popup")&&(x=document.createElement("div"),x.appendChild(this.popupContent));_.S("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18366_popupConfig.slotName&&x.setAttribute("slot",this.JSC$18366_popupConfig.slotName);p=this.popup;var F=this.container.tagName.toLowerCase(),
N=_.Ob(x);_.Zak(_.LR(p),_.Bg(x,F,N));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.S("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.n(this.container).appendChild(this.popup)}};
var m08=function(p){var x,F,N=(x=p.openPopupAction.accessibilityData)==null?void 0:(F=x.accessibilityData)==null?void 0:F.label;N&&(p.popup.ariaLabel=N);var h;((h=p.popupContent.polymerController)!=null?h:p.popupContent).data=(0,_.Q5.unsafeClone)(p.openPopupAction.popup[p.getName()]);p.popupContent.duration=Bhc(p);p.popupContent.positionType=p.openPopupAction.position;var c=p.openPopupAction.properties;c&&Object.keys(c).forEach(function(M){p.popupContent[M]=c[M]})},Pf_=function(p,x){if(x)for(var F=
_.a(Object.keys(x)),N=F.next();!N.done;N=F.next())N=N.value,p.popup[N]=x[N]},oW_=function(p){if(p.openPopupAction.position){var x=p.JSC$18366_popupConfig.positionalProperties&&p.JSC$18366_popupConfig.positionalProperties[p.openPopupAction.position],F=p.JSC$18366_popupConfig.rtlPositionalProperties&&p.JSC$18366_popupConfig.rtlPositionalProperties[p.openPopupAction.position];
x=p.isRtl()&&F?F:x;x.shiftedHorizontalOffset&&(F=p.popup.style.display,p.popup.style.display="block",p.popupContent&&p.popup.positionTarget&&p.popupContent.clientWidth>p.popup.positionTarget.clientWidth&&(x.horizontalOffset=p.popup.positionTarget.clientWidth/2-x.shiftedHorizontalOffset),p.popup.style.display=F);Pf_(p,x)}},j5H=function(p,x){if(x)for(var F=_.a(Object.keys(x)),N=F.next();!N.done;N=F.next())N=N.value,p.popup.style[N]=x[N]};
oZ.prototype.getName=function(){return _.XG(this.openPopupAction.popup,"renderer")||_.XG(this.openPopupAction.popup,"dialog")||_.XG(this.openPopupAction.popup,"model")||void 0};
var Bhc=function(p){p=p.openPopupAction.durationHintMs;return p===0?p:Math.max(4E3,p||4E3)};
oZ.prototype.isRtl=function(){return _.sd("HTML_DIR")==="rtl"};
var The=function(p,x){p=p.getElement(x,p.target);p==null&&_.no(new _.qE("popup getElement returned null",x));return p};var RPe={};
RPe.YtPopupContainerBehavior=[_.nJ.YtComponentBehavior,_.T2.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.FJ(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.Nt(this.hostElement)},
closePopup:function(p){var x=this.createCacheKey(void 0,p);this.popups_[x]&&this.handleClosePopupAction_(void 0,p)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.E0.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.E0.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(p){p.opened&&p.keepBelowPlayer&&this.ensurePopupBelowPlayer(p)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var p in this.popups_){var x=this.popups_[p];if(x.popup.scrollAction==="refit"){var F=x.popup.positionTarget.getBoundingClientRect(),N=x.popup;F=F.top;var h=x;if(!h.naturalHeight){h.popup.hidden=!1;h.popup.style.position="fixed";h.popup.style.top="0px";h.popup.style.left="0px";var c=h.popup.getBoundingClientRect();h.naturalHeight=c.bottom-c.top;h.popup.refit()}N.hidden=!(F>=h.naturalHeight+60);x.popupContent.clientHeight===0&&x.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(p){this.popupContainerConfig=p},
handleOpenPopupAction:function(p,x){var F=p.openPopupAction,N=_.J().resolve(_.Bw(_.PGm))&&F.popupType==="TOAST";N&&!F.uniqueId&&(F.uniqueId=_.Qy());if(!_.S("popup_container_parent_target_killswitch")){var h;x=(h=this.getParentTarget(x))!=null?h:x}var c=this.ensurePopup_(F,x);return new _.cZ(function(M){c.then(function(f){if(!f)return M();this.maybeCreateNarrowMediaQuery_();var K=this.createCacheKey(f.rendererName,f.openPopupAction.uniqueId);if(F.showOncePerUniqueId){if(this.shownPopupKeys_.has(K))return M();
this.shownPopupKeys_.add(K)}K=this.popups_[K];var t=!(!K||!K.openPopupAction.beReused);t=!!F.reusePopup||t;if(f.popup.opened&&!t){N&&!f.openPopupAction.replacePopup||this.handleClosePopupAction_(f.rendererName,f.openPopupAction.uniqueId);t=F.popupType==="DIALOG"&&!_.S("popup_container_dialog_reopen_killswitch");if(!N&&!t&&K&&K.target==x&&!f.openPopupAction.replacePopup)return M();_.jB(f.popup,function(){this.completeOpenPopupAction_(F,x,f);M()}.bind(this))}else f.popup.opened?f.updatePopup(F):this.completeOpenPopupAction_(F,
x,f),M()}.bind(this))}.bind(this))},
getParentTarget:function(p){if(p&&p instanceof HTMLElement)for(var x=_.a(Object.entries(this.popups_)),F=x.next();!F.done;F=x.next())if(F=_.a(F.value),F.next(),F=F.next().value,F.popup.tagName==="TP-YT-IRON-DROPDOWN"&&F.popup.opened&&p.closest(F.rendererName))return F.target},
completeOpenPopupAction_:function(p,x,F){_.S("reorder_popup_updates_killswitch")?(L1X(F,this.narrowMediaQuery_.queryMatches,x),F.updatePopup(p)):(F.updatePopup(p),L1X(F,this.narrowMediaQuery_.queryMatches,x));p=F.popup;p.addEventListener("iron-overlay-opened",_.p5(this,this.onPopupIronOverlayOpened_));p.addEventListener("iron-overlay-closed",_.p5(this,this.onPopupIronOverlayClosed_));p.addEventListener("iron-overlay-canceled",_.p5(this,this.onPopupIronOverlayCanceled_));p.addEventListener("yt-refit",
_.p5(this,this.refitPopup_));p.addEventListener("yt-invalidate-popup-tabbables",_.p5(this,this.handleInvalidatePopupTabbables_));p.open()},
getPopupDurationMs_:function(p){return p.durationHintMs===0?p.durationHintMs:Math.max(4E3,p.durationHintMs||4E3)},
handleClosePopupAction_:function(p,x){var F=_.S("web_popup_cache_key_killswitch")||!!x;if(p||F){var N=this.createCacheKey(p,x);p=(p=this.popups_[N])&&p.popup}else p=_.tZ6(_.oS);if(p&&p.close){if(x=_.J().resolve(_.Bw(_.dR)))p.restoreFocusOnClose=x.isKeyBoardInUse();p.close();this.removePopup_(p,N)}},
handleClosePopupCommand_:function(p){p.closePopupCommand&&p.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,p.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(p){var x={},F;for(F in this.popups_)if(x={key$jscomp$1157:x.key$jscomp$1157},x.key$jscomp$1157=F,!p||!p.some(function(c){return function(M){return M==c.key$jscomp$1157}}(x))){var N=this.popups_[x.key$jscomp$1157],h=N.popup;
_.J().resolve(_.Bw(_.PGm))&&N.openPopupAction.popupType==="TOAST"||(h&&h.close&&h.close(),this.removePopup_(h,x.key$jscomp$1157))}},
handleClosePopupsAction_:function(p){p.forEach(function(x){var F=this.popups_[x];F&&((F=F.popup)&&F.close&&F.close(),this.removePopup_(F,x))}.bind(this))},
handleGetPopupOpenedAction_:function(p,x){return(x=this.createCacheKey(p,x))&&this.popups_[x]?this.popups_[p].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var p=[],x;for(x in this.popups_){var F=this.popups_[x];F.popup.opened&&p.push(F)}return p},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(p,x){_.S("ytpopup_disable_default_html_caching")&&p&&p.removeWhenClosed&&(_.n(this.hostElement).removeChild(p),x&&this.popups_[x]&&delete this.popups_[x])},
shouldReusePopup_:function(p){return!(!p||!p.reusePopup)||!(!p||!p.beReused)},
ensurePopup_:function(p,x){this.maybeCreateNarrowMediaQuery_();var F=_.XG(p.popup,"renderer")||_.XG(p.popup,"dialog")||_.XG(p.popup,"model");if(!F)return _.qt();F=_.zxH(F,cjm(this.popupContainerConfig,F));return _.qt(this.getAndMaybeCreatePopup_(p,F,x))},
getAndMaybeCreatePopup_:function(p,x,F){var N=this.createCacheKey(x,p.uniqueId);if(this.popups_[N])return this.popups_[N];p=new oZ({openPopupAction:p,target:F,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(x)});return this.popups_[N]=p},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(p){return _.S("ytpopup_disable_default_html_caching")?p&&p.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",_.p5(this,this.openPopupQueryMatchesChanged_)),_.n(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(p){p=p.detail.value;for(var x in this.popups_)OuD(this.popups_[x],p)},
onPopupIronOverlayClosed_:function(p){var x=p.currentTarget,F=_.whp(x);F=F.length>0?F[0]:x;if(F.is!=="ytd-reel-watch-while-dialog-renderer"||p.target.is!=="tp-yt-iron-dropdown"){p.detail.popup=x;p.detail.popupRenderer=F;var N,h={context:{openingElement:((N=this.popups_[(F==null?void 0:F.is)||""])==null?void 0:N.target)||void 0}};Object.assign(h,p.detail);var c;_.hG((c=F.hostElement)!=null?c:F,"yt-popup-closed",h);x.removeEventListener("yt-refit",_.p5(this,this.refitPopup_));x.removeEventListener("yt-invalidate-popup-tabbables",
_.p5(this,this.handleInvalidatePopupTabbables_));x.removeEventListener("iron-overlay-canceled",_.p5(this,this.onPopupIronOverlayCanceled_));x.removeEventListener("iron-overlay-closed",_.p5(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(x)}},
onPopupIronOverlayCanceled_:function(p,x){var F=p.currentTarget,N=_.whp(F);N=N.length>0?N[0]:F;if(N.is!=="ytd-reel-watch-while-dialog-renderer"||p.target.is!=="tp-yt-iron-dropdown"){var h;_.hG((h=N.hostElement)!=null?h:N,"yt-popup-canceled",p.detail);h=x?_.m9(x):null;(!x||["click","tap"].includes(x.type))&&!F.hasAttribute("force-close-on-outside-click")&&F.positionTarget&&h&&h.includes(F.positionTarget)&&p.preventDefault();F.restoreFocusOnClose=_.C7.keyboardEventMatchesKeys(x,"esc")}},
onPopupIronOverlayOpened_:function(p){p=p.currentTarget;var x=_.whp(p);x=x.length>0?x[0]:p;var F,N;_.hG((F=x.hostElement)!=null?F:x,"yt-popup-opened",(N=x.hostElement)!=null?N:x);p.keepBelowPlayer&&(this.ensurePopupBelowPlayer(p,!0),this.dynamicallyPositionedElements_.add(p));F=_.J().resolve(_.Bw(_.dR));N=!!x.querySelector("#toast");F&&F.isKeyBoardInUse()&&!N&&(typeof x.focusFirstItem==="function"?x.focusFirstItem():(x=_.KYB(p),x.length&&x[0].focus()));p.removeEventListener("iron-overlay-opened",
_.p5(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(p){p=p.currentTarget;p.refit&&p.refit()},
refitPopups_:function(){for(var p in this.popups_)this.popups_[p].refit()},
handleInvalidatePopupTabbables_:function(p){p=p.currentTarget;p.invalidateTabbables&&p.invalidateTabbables()},
createCacheKey:function(p,x){return _.S("web_popup_cache_key_killswitch")?x?p+"#"+x:p:x?"#"+x:p},
openSheet:function(p,x){var F=p==null?void 0:p.openPopupActionCommand;!F&&(p==null?0:p.viewModel)&&(F={openPopupAction:{popup:{sheetViewModel:p.viewModel},popupType:"CONTEXTUAL_SHEET"}});F&&this.handleOpenPopupAction(F,x)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var p=this;return _.D(function(x){return x.return(p.handleGetOpenedPopupsAction_().filter(function(F){var N;return((N=F.openPopupAction)==null?void 0:N.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(p,x,F){if(_.S("web_dialog_utils_killswitch")){var N=p==null?void 0:p.openPopupActionCommand,h=(F==null?0:F.ariaLabel)?{accessibilityData:{accessibilityData:{label:F.ariaLabel}}}:void 0;!N&&(p==null?0:p.viewModel)&&(N={openPopupAction:Object.assign({},{popup:{dialogViewModel:p.viewModel},popupType:(F==null?0:F.isModal)?"MODAL":"DIALOG"},h&&h)});N&&this.handleOpenPopupAction(N,x)}else{if(h=p==null?void 0:p.viewModel){var c=F=F===void 0?{}:F;F=c.ariaLabel;h={popup:{dialogViewModel:h},
popupType:c.isModal?"MODAL":"DIALOG"};c={accessibilityData:{label:F}};F&&(h.accessibilityData=c);h={openPopupAction:h}}else h=void 0;(h=(N=h)!=null?N:p==null?void 0:p.openPopupActionCommand)&&this.handleOpenPopupAction(h,x)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var p=this;return _.D(function(x){return x.return(p.handleGetOpenedPopupsAction_().filter(function(F){var N;return((N=F.openPopupAction)==null?void 0:N.popupType)==="DIALOG"}).length>0)})}}];var kfk;var U0H;var iuX=_.B$(["about:blank"]),Ia_=function(){var p=_.m.apply(this,arguments)||this;p.isMuted=!1;p.pageLoadTimeoutId=void 0;return p};
_.E(Ia_,_.m);_.l=Ia_.prototype;_.l.dataChanged=function(){var p=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var x=this.data.url,F=_.XE(x);_.S("enable_yt_ata_iframe_authuser")?(F=_.XE(x),_.jP(this.iframe,Zym(F))):_.jP(this.iframe,F);this.pageLoadTimeoutId=_.vZ(_.nP(),function(){return void p.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.eG({destination:window,iframe:this.iframe,origin:_.f8k(F.toString()),channelName:"ataiframe",onMessage:_.WHn(c7D,function(N){aV8(N.data)?(N=_.Va(N.data,1,_.eD,_.ik()),N.length!==1?_.no(Error("nl")):(N=N[0],N===3?(p.isMuted=!0,p.logStateChanged({adMuteRequested:!0})):N===1&&p.close())):_.no(Error("ol"))}),
onEstablished:function(){p.cancelPageLoadTimeout();p.logStateChanged({pageLoadSucceeded:!0})}})}};
_.l.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.nP().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.l.logStateChanged=function(p){var x;if((x=this.data)==null?0:x.trackingParams)p={adsClientData:{aboutThisAdData:p}},_.cl().stateChanged(this.data.trackingParams,p)};
_.l.close=function(){_.lA(this.hostElement,"yt-close-popup-action",[this.is])};
_.l.handlesPopupClosed=function(p,x){var F=this,N,h;return _.D(function(c){if(c.nextAddress==1)return _.sd("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.lA(F.hostElement,"on-about-this-ad-popup-closed",[F.isMuted,x]),c.jumpTo(0)):p&&t0m(p)?_.q(c,d8e(p),4):(F.isMuted&&_.lA(F.hostElement,"yt-mute-ad-action",[F.is,F]),c.jumpTo(0));if(N=c.yieldResult){var M=h=new _.JL(N),f=F.isMuted;M.getOptions().includes("onAboutThisAdPopupClosed")?_.ciD(M,"onAboutThisAdPopupClosed",{isMuted:f,layoutId:x}):_.hI("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.JB(c)})};
_.l.onPopupClosed=function(p){var x=this,F,N;return _.D(function(h){F=_.xH(iuX);_.jP(x.iframe,F);x.cancelPageLoadTimeout();if(!x.data)return h.jumpTo(0);x.ytRendererBehavior.markDirty();N=p.detail.context.openingElement;return _.q(h,x.handlesPopupClosed(N,x.data.layoutId),0)})};
_.l.detached=function(){this.cancelPageLoadTimeout()};
_.l.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var Ox=Ia_;Ox.prototype.onPopupClosed=Ox.prototype.onPopupClosed;Ox.prototype.dataChanged=Ox.prototype.dataChanged;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ox.prototype,"ytRendererBehavior",void 0);_.B([_.Ff("#iframe"),_.k("design:type",HTMLIFrameElement)],Ox.prototype,"iframe",void 0);_.B([_.H(),_.k("design:type",Object)],Ox.prototype,"data",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ox.prototype,"dataChanged",null);
_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype",Promise)],Ox.prototype,"onPopupClosed",null);Ox=_.B([_.JZ({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Ox);
_.P(Ox,"yt-about-this-ad-renderer",function(){if(U0H===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;kfk===void 0&&(kfk=document.createElement("template"));var N=kfk;F.call(x,N.content.cloneNode(!0),p.content.firstChild);U0H=p}p=U0H;return p},{mode:2});var $0X;var ePH;var pV8=function(p){var x=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=x.message;"stack"in x&&(this.stack=x.stack);this.maxFileSizeMB=p;Object.setPrototypeOf(this,pV8.prototype)};
_.E(pV8,Error);var x2k=function(p,x){var F=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=F.message;"stack"in F&&(this.stack=F.stack);this.minWidth=p;this.minHeight=x;Object.setPrototypeOf(this,x2k.prototype)};
_.E(x2k,Error);var FKt=function(p){this.requirements=p;this.JSC$18394_maxFileSize=p.maxFileSizeMB*1024*1024},NC8=function(p,x){if(x.size>p.JSC$18394_maxFileSize)throw new pV8(p.requirements.maxFileSizeMB);
};var hQm=function(p,x){this.canvas=p;this.imageEditorBuilder=x};
hQm.prototype.addEventListeners=function(p){var x=function(h){lbm(p,h)};
this.JSC$18400_mouseDownEvent=x;var F=function(h){crc(p,h)};
this.JSC$18400_mouseMoveEvent=F;var N=function(){abm(p)};
this.JSC$18400_mouseUpEvent=N;this.canvas.addEventListener("mousedown",x);this.canvas.addEventListener("mousemove",F);document.addEventListener("mouseup",N)};
hQm.prototype.removeEventListeners=function(){this.JSC$18400_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18400_mouseDownEvent);this.JSC$18400_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18400_mouseMoveEvent);this.JSC$18400_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18400_mouseUpEvent)};
var M8k=function(p,x){p.removeEventListeners();return new Promise(function(F){var N=new Image;N.crossOrigin="anonymous";N.onload=function(){var h=p.imageEditorBuilder(p.canvas,N);p.addEventListeners(h);F(h)};
N.src=x})},jM=function(p,x,F,N,h,c,M,f){this.canvas=p;
this.image=x;this.requiredRatio=F;this.minImageCropDimension=N;this.minOutputImageResolution=h;this.component=c;this.styleFocusedCorner=f===void 0?!0:f;this.action=2;this.focusedCorner=this.resizeCorner=0;p=this.canvas.getContext("2d");if(!p)throw Error("pl");this.ctx=p;this.canvasMargin=M!=null?M:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;M=this.image;p=this.canvasInnerWidth/M.width;M.height*p>912&&(p=M.width/M.height*912/M.width);M=p;this.scaledImageWidth=this.canvas.width%2?
Jae(this.image.width*M):v5H(this.image.width*M);this.scaledImageHeight=Math.round(this.image.height*M);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18403_overlayMarginBottom=this.JSC$18403_overlayMarginTop=this.canvasMargin;this.JSC$18403_overlayMarginRight=this.JSC$18403_overlayMarginLeft=this.horizontalMargin;this.JSC$18403_overlayWidth=this.scaledImageWidth;this.JSC$18403_overlayHeight=this.scaledImageHeight;
p=this.image.width/this.image.height;p>this.requiredRatio?(this.JSC$18403_overlayWidth=this.canvas.width%2?Jae(this.scaledImageHeight*this.requiredRatio):v5H(this.scaledImageHeight*this.requiredRatio),this.JSC$18403_overlayMarginRight=this.JSC$18403_overlayMarginLeft=(this.canvas.width-this.JSC$18403_overlayWidth)/2):p<this.requiredRatio&&(this.JSC$18403_overlayHeight=this.canvas.height%2?Jae(this.scaledImageWidth/this.requiredRatio):v5H(this.scaledImageWidth/this.requiredRatio),this.JSC$18403_overlayMarginBottom=
this.JSC$18403_overlayMarginTop=(this.canvas.height-this.JSC$18403_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*M,this.scaledImageWidth);D2H(this)};
jM.prototype.getContext=function(){return this.ctx};
var lbm=function(p,x){x={x:Math.round(x.pageX-p.canvas.getBoundingClientRect().left),y:Math.round(x.pageY-p.canvas.getBoundingClientRect().top)};p.dragStart=x;fbk(p,x)!==0?(p.action=1,KK8(p,x),p.resizeCorner=fbk(p,x)):x.x>p.JSC$18403_overlayMarginLeft&&x.x<p.JSC$18403_overlayMarginLeft+p.JSC$18403_overlayWidth&&x.y>p.JSC$18403_overlayMarginTop&&x.y<p.JSC$18403_overlayMarginTop+p.JSC$18403_overlayHeight&&(p.action=0)},qhm=function(p,x){switch(x){case 1:return{x:p.JSC$18403_overlayMarginLeft,
y:p.JSC$18403_overlayMarginTop};case 2:return{x:p.JSC$18403_overlayMarginLeft,y:p.JSC$18403_overlayMarginTop+p.JSC$18403_overlayHeight};case 3:return{x:p.JSC$18403_overlayMarginLeft+p.JSC$18403_overlayWidth,y:p.JSC$18403_overlayMarginTop};case 4:return{x:p.JSC$18403_overlayMarginLeft+p.JSC$18403_overlayWidth,y:p.JSC$18403_overlayMarginTop+p.JSC$18403_overlayHeight};default:throw Error("ql");}},t8c=function(p,x){if(p.focusedCorner!==0){p.dragStart=qhm(p,p.focusedCorner);
p.action=1;p.resizeCorner=p.focusedCorner;var F=p.dragStart.x,N=p.dragStart.y;switch(x){case 0:p.focusedCorner===1||p.focusedCorner===4?(F-=10,N-=10):(F-=10,N+=10);break;case 1:p.focusedCorner===1||p.focusedCorner===4?(F+=10,N+=10):(F+=10,N-=10);break;case 2:F=p.focusedCorner===1||p.focusedCorner===4?F-10:F+10;N-=10;break;case 3:F=p.focusedCorner===1||p.focusedCorner===4?F+10:F-10;N+=10;break;default:throw Error("rl");}ZLD(p,{x:F,y:N});D2H(p);p.action=2;p.dragStart=void 0}},crc=function(p,x){x={x:Math.round(x.pageX-
p.canvas.getBoundingClientRect().left),
y:Math.round(x.pageY-p.canvas.getBoundingClientRect().top)};KK8(p,x);switch(p.action){case 1:ZLD(p,x);break;case 0:p.dragStart&&(p.JSC$18403_overlayMarginLeft=Math.max(p.horizontalMargin,Math.min(p.JSC$18403_overlayMarginLeft-(p.dragStart.x-x.x),p.horizontalMargin+p.scaledImageWidth-p.JSC$18403_overlayWidth)),p.JSC$18403_overlayMarginRight=p.canvas.width-p.JSC$18403_overlayMarginLeft-p.JSC$18403_overlayWidth,p.JSC$18403_overlayMarginTop=Math.max(p.canvasMargin,Math.min(p.JSC$18403_overlayMarginTop-
(p.dragStart.y-x.y),p.scaledImageHeight-p.JSC$18403_overlayHeight+p.canvasMargin)),p.JSC$18403_overlayMarginBottom=p.canvas.height-(p.JSC$18403_overlayMarginTop+p.JSC$18403_overlayHeight));break;default:return}D2H(p);p.dragStart=x},abm=function(p){p.action=2;
p.dragStart=void 0;document.body.style.cursor="auto"},KK8=function(p,x){switch(fbk(p,x)){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:p.action!==1&&(document.body.style.cursor="auto")}},fbk=function(p,x){var F=p.JSC$18403_overlayMarginLeft-5,N=p.JSC$18403_overlayMarginTop-5,h=p.JSC$18403_overlayMarginLeft+p.JSC$18403_overlayWidth-5;
p=p.JSC$18403_overlayMarginTop+p.JSC$18403_overlayHeight-5;return d2c(x,{x:F,y:N})?1:d2c(x,{x:h,y:N})?3:d2c(x,{x:F,y:p})?2:d2c(x,{x:h,y:p})?4:0},d2c=function(p,x){return p.x>=x.x&&p.x<=x.x+10&&p.y>=x.y&&p.y<=x.y+10},ZLD=function(p,x){if(p.dragStart)switch(p.resizeCorner){case 2:Math.abs((p.JSC$18403_overlayMarginLeft+p.JSC$18403_overlayWidth-x.x)/(x.y-p.JSC$18403_overlayMarginTop))>=p.requiredRatio?vRk(p,x.x):Jrk(p,x.y);
break;case 1:Math.abs((p.JSC$18403_overlayMarginLeft+p.JSC$18403_overlayWidth-x.x)/(p.JSC$18403_overlayMarginTop+p.JSC$18403_overlayHeight-x.y))>=p.requiredRatio?C_8(p,x.x):Jrk(p,x.y);break;case 4:Math.abs((x.x-p.JSC$18403_overlayMarginLeft)/(x.y-p.JSC$18403_overlayMarginTop))>=p.requiredRatio?vRk(p,x.x):ShH(p,x.y);break;case 3:Math.abs((x.x-p.JSC$18403_overlayMarginLeft)/(p.JSC$18403_overlayMarginTop+p.JSC$18403_overlayHeight-x.y))>=p.requiredRatio?C_8(p,x.x):ShH(p,x.y);break;default:throw Error("sl");
}},vRk=function(p,x){var F=p.JSC$18403_overlayMarginTop;
p.JSC$18403_overlayMarginBottom=rrH(p,x);p.JSC$18403_overlayHeight=p.canvas.height-p.JSC$18403_overlayMarginBottom-F;p.JSC$18403_overlayWidth=Math.round(p.JSC$18403_overlayHeight*p.requiredRatio);ERm(p)},C_8=function(p,x){var F=p.JSC$18403_overlayMarginTop+p.JSC$18403_overlayHeight;
p.JSC$18403_overlayMarginTop=rrH(p,x);p.JSC$18403_overlayHeight=F-p.JSC$18403_overlayMarginTop;p.JSC$18403_overlayWidth=Math.round(p.JSC$18403_overlayHeight*p.requiredRatio);ERm(p)},ERm=function(p){switch(p.resizeCorner){case 2:case 1:p.JSC$18403_overlayMarginLeft=p.canvas.width-p.JSC$18403_overlayMarginRight-p.JSC$18403_overlayWidth;
break;case 4:case 3:p.JSC$18403_overlayMarginRight=p.canvas.width-p.JSC$18403_overlayMarginLeft-p.JSC$18403_overlayWidth;break;default:throw Error("sl");}},Jrk=function(p,x){var F=p.JSC$18403_overlayMarginLeft+p.JSC$18403_overlayWidth;
p.JSC$18403_overlayMarginLeft=XV8(p,x);p.JSC$18403_overlayWidth=F-p.JSC$18403_overlayMarginLeft;p.JSC$18403_overlayHeight=Math.round(p.JSC$18403_overlayWidth/p.requiredRatio);gRX(p)},ShH=function(p,x){var F=p.JSC$18403_overlayMarginLeft;
p.JSC$18403_overlayMarginRight=XV8(p,x);p.JSC$18403_overlayWidth=p.canvas.width-p.JSC$18403_overlayMarginRight-F;p.JSC$18403_overlayHeight=Math.round(p.JSC$18403_overlayWidth/p.requiredRatio);gRX(p)},gRX=function(p){switch(p.resizeCorner){case 2:case 4:p.JSC$18403_overlayMarginBottom=p.canvas.height-p.JSC$18403_overlayMarginTop-p.JSC$18403_overlayHeight;
break;case 1:case 3:p.JSC$18403_overlayMarginTop=p.canvas.height-p.JSC$18403_overlayMarginBottom-p.JSC$18403_overlayHeight;break;default:throw Error("sl");}},rrH=function(p,x){switch(p.resizeCorner){case 2:x=p.canvas.height-(p.JSC$18403_overlayMarginTop+QeH(p,x));
break;case 4:x=p.canvas.height-(p.JSC$18403_overlayMarginTop+zQm(p,x));break;case 1:x=p.JSC$18403_overlayMarginTop+p.JSC$18403_overlayHeight-QeH(p,x);break;case 3:x=p.JSC$18403_overlayMarginTop+p.JSC$18403_overlayHeight-zQm(p,x);break;default:throw Error("sl");}return Math.max(x,p.canvasMargin)},QeH=function(p,x){x=p.JSC$18403_overlayMarginLeft+p.JSC$18403_overlayWidth-Math.max(x,p.horizontalMargin);
x=x<0?p.JSC$18403_overlayWidth:Math.max(x,p.minOverlayWidth);return Math.round(x/p.requiredRatio)},zQm=function(p,x){x=p.canvas.width-Math.max(p.canvas.width-x,p.horizontalMargin)-p.JSC$18403_overlayMarginLeft;
x=x<0?p.JSC$18403_overlayWidth:Math.max(x,p.minOverlayWidth);return Math.round(x/p.requiredRatio)},XV8=function(p,x){switch(p.resizeCorner){case 2:x=p.canvas.width-p.JSC$18403_overlayMarginRight-se8(p,x);
break;case 4:x=p.canvas.width-p.JSC$18403_overlayMarginLeft-se8(p,x);break;case 1:x=p.canvas.width-p.JSC$18403_overlayMarginRight-nR8(p,x);break;case 3:x=p.canvas.width-p.JSC$18403_overlayMarginLeft-nR8(p,x);break;default:throw Error("sl");}return Math.max(x,p.horizontalMargin)},se8=function(p,x){x=p.canvas.height-Math.max(p.canvas.height-x,p.canvasMargin)-p.JSC$18403_overlayMarginTop;
return x<0?p.JSC$18403_overlayWidth:Math.max(Math.round(x*p.requiredRatio),p.minOverlayWidth)},nR8=function(p,x){x=p.JSC$18403_overlayMarginTop+p.JSC$18403_overlayHeight-Math.max(x,p.canvasMargin);
return x<0?p.JSC$18403_overlayWidth:Math.max(Math.round(x*p.requiredRatio),p.minOverlayWidth)},D2H=function(p){p.ctx.clearRect(0,0,p.canvas.width,p.canvas.height);
p.ctx.drawImage(p.image,0,0,p.image.width,p.image.height,p.horizontalMargin,p.canvasMargin,p.canvas.width-2*p.horizontalMargin,p.scaledImageHeight);p.ctx.fillStyle="rgba(0, 0, 0, 0.7)";p.ctx.fillRect(p.horizontalMargin,p.JSC$18403_overlayMarginTop,p.JSC$18403_overlayMarginLeft-p.horizontalMargin,p.JSC$18403_overlayHeight);p.ctx.fillRect(p.JSC$18403_overlayMarginLeft+p.JSC$18403_overlayWidth,p.JSC$18403_overlayMarginTop,p.JSC$18403_overlayMarginRight-p.horizontalMargin,p.JSC$18403_overlayHeight);p.ctx.fillRect(p.horizontalMargin,
p.canvasMargin,p.scaledImageWidth,p.JSC$18403_overlayMarginTop-p.canvasMargin);p.ctx.fillRect(p.horizontalMargin,p.JSC$18403_overlayMarginTop+p.JSC$18403_overlayHeight,p.scaledImageWidth,p.JSC$18403_overlayMarginBottom-p.canvasMargin);p.drawOverlay();p.component&&_.hG(p.component,"image-updated")};
jM.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18403_overlayMarginLeft,this.JSC$18403_overlayMarginTop,this.JSC$18403_overlayWidth,this.JSC$18403_overlayHeight);yrc(this)};
var yrc=function(p){var x=p.JSC$18403_overlayMarginLeft-5,F=p.JSC$18403_overlayMarginTop-5,N=p.JSC$18403_overlayMarginLeft+p.JSC$18403_overlayWidth-5,h=p.JSC$18403_overlayMarginTop+p.JSC$18403_overlayHeight-5;p.ctx.fillStyle="#FFF";p.ctx.fillRect(x,F,10,10);p.ctx.strokeRect(x,F,10,10);p.ctx.fillRect(N,F,10,10);p.ctx.strokeRect(N,F,10,10);p.ctx.fillRect(x,h,10,10);p.ctx.strokeRect(x,h,10,10);p.ctx.fillRect(N,h,10,10);p.ctx.strokeRect(N,h,10,10);if(p.focusedCorner!==0&&p.styleFocusedCorner){p.ctx.lineWidth=
4;p.ctx.strokeStyle="#3EA6FF";switch(p.focusedCorner){case 1:--x;--F;break;case 2:--x;F=h-1;break;case 3:x=N-1;--F;break;case 4:x=N-1;F=h-1;break;default:return}p.ctx.strokeRect(x,F,12,12)}};
jM.prototype.crop=function(p,x){x=x===void 0?!0:x;var F=this.image.width/this.scaledImageWidth,N=document.createElement("canvas"),h=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],c=this.JSC$18403_overlayWidth*F,M=this.JSC$18403_overlayHeight*F;N.width=Math.max(c,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);N.height=Math.max(M,h);p&&(N.width=Math.min(N.width,N.height),N.height=Math.min(N.width,N.height));
p=N.getContext("2d");if(!p)throw Error("gl");h=(this.JSC$18403_overlayMarginLeft-this.horizontalMargin)*F;F*=this.JSC$18403_overlayMarginTop-this.canvasMargin;x||(p.fillStyle="white",p.fillRect(0,0,N.width,N.height));p.drawImage(this.image,h,F,c,M,0,0,N.width,N.height);return N};var bLm=function(p,x,F,N,h){jM.call(this,p,x,F,N,void 0,h,8,!1)};
_.E(bLm,jM);bLm.prototype.drawOverlay=function(){var p=this.getContext(),x=this.JSC$18403_overlayWidth,F=this.JSC$18403_overlayHeight,N=this.JSC$18403_overlayMarginTop,h=this.JSC$18403_overlayMarginLeft;p.lineWidth=2;p.strokeStyle="#3EA6FF";p.beginPath();p.arc(h+x/2,N+F/2,x/2,0,2*Math.PI);p.stroke();p.strokeRect(h,N,x,F);yrc(this)};
var ArX={maxFileSizeMB:15,minWidth:98,minHeight:98},uWD=["image/png","image/jpeg","image/gif"],YhH=function(){var p=_.m.apply(this,arguments)||this;p.fileSelectorFocusListener=null;p.errorMessage=null;p.isLoading=!0;p.hideContainer=!0;p.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return p};
_.E(YhH,_.m);_.l=YhH.prototype;_.l.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.l.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.l.computePlaylistThumbnail=function(p){return p==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.l.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.lA(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.l.setErrorState=function(p){this.resetErrorState();p&&(this.errorMessage=p)};
_.l.showPopup=function(){var p=this;this.hideContainer=!1;_.vZ(_.E0,function(){_.hG(p.hostElement,"yt-refit")});
this.isLoading=!1};
_.l.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.l.closePopup=function(){this.resetFileSelector();_.lA(this.hostElement,"yt-close-popup-action",[this.is])};
_.l.onCancelTap=function(){this.isPlaylistThumbnail||_.lA(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.l.openFileSelector=function(){var p=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.vZ(_.E0,function(){setTimeout(function(){if(!p.fileSelector.files||p.fileSelector.files.length===0)p.onCancelTap();p.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(x){x instanceof Error?_.zj(x):_.s$(new _.qE(JSON.stringify(x)))}};
_.l.handleFileSelection=function(){var p=this,x,F,N,h,c,M;return _.D(function(f){switch(f.nextAddress){case 1:_.KM(f,2);if(!p.fileSelector.files||!p.imageEditorCanvas)return p.onCancelTap(),f.return();x=p.fileSelector.files[0];NC8(p.imageChecker,x);_.KM(f,4);return _.q(f,LR_(x),6);case 6:p.mimeType=f.yieldResult;_.ub(f,5,2);break;case 4:_.v9(f,2),_.lA(p.hostElement,"yt-image-selection-error-action",[(F=p.data)==null?void 0:F.genericImageLoadErrorMessage]),p.onCancelTap();case 5:N=new FileReader;N.addEventListener("load",
function(){var K,t;return _.D(function(d){if(d.nextAddress==1){if(!N.result)return _.no(Error("il")),d.return();K=N.result;t=new Image;t.src=K;t.onload=function(){try{var v=p.imageChecker;if(t.width<v.requirements.minWidth||t.height<v.requirements.minHeight)throw new x2k(v.requirements.minWidth,v.requirements.minHeight);}catch(X){if(X instanceof x2k){var C;_.lA(p.hostElement,"yt-image-selection-error-action",[(C=p.data)==null?void 0:C.imageDimensionErrorMessage]);p.logImageDimensionErrorVe()}else X instanceof
Error?_.zj(X):(v=new _.qE(JSON.stringify(X)),_.zj(v));p.onCancelTap()}p.showPopup()};
t.onerror=function(){var v;_.lA(p.hostElement,"yt-image-selection-error-action",[(v=p.data)==null?void 0:v.genericImageLoadErrorMessage]);p.onCancelTap()};
return _.q(d,M8k(p.imageEditorCanvas,K),2)}p.imageEditor=d.yieldResult;p.updatePositionOfAllCorners();p.addEventListeners(p.imageEditor);_.JB(d)})},!1);
N.readAsDataURL(x);_.ub(f,0);break;case 2:h=_.v9(f),h instanceof pV8?_.lA(p.hostElement,"yt-image-selection-error-action",[(c=p.data)==null?void 0:c.imageSizeErrorMessage]):(h instanceof Error?_.zj(h):_.s$(new _.qE(JSON.stringify(h))),_.lA(p.hostElement,"yt-image-selection-error-action",[(M=p.data)==null?void 0:M.genericImageLoadErrorMessage])),p.onCancelTap(),_.JB(f)}})};
_.l.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var p=_.lz(_.cl(),{veType:232707,visualElement:_.vt(232707)});p&&(p={visualElement:p},_.hD().reportShown(p))}};
_.l.handleImageSelectionErrorAction=function(p){this.isPlaylistThumbnail&&_.Dwp(this.hostElement,p)};
_.l.convertToImageFormatBundle=function(p){var x=this,F,N,h;return _.D(function(c){switch(c.nextAddress){case 1:return F=p.toDataURL(x.outputMimeType,1),_.q(c,Pqc(F),2);case 2:N=c.yieldResult;_.KM(c,3);NC8(x.imageChecker,N);_.ub(c,4);break;case 3:h=_.v9(c);if(!(h instanceof pV8))throw h;_.no(new _.qE("Output size is bigger than input size for image",x.mimeType,x.outputMimeType,N.size));F=p.toDataURL("image/jpeg",.95);return _.q(c,Pqc(F),6);case 6:N=c.yieldResult;case 4:return c.return({dataUrl:F,
imageFile:N})}})};
_.l.handleUploadImageToScottyCommand=function(p){var x=this,F,N,h,c,M,f,K,t,d,v;return _.D(function(C){switch(C.nextAddress){case 1:if(!x.imageEditor||!_.r(p,Qam))return C.return();F=_.r(p,Qam).scottyUploadUrl;if(!F){var X=new _.qE("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.zj(X);return C.return()}_.KM(C,2);x.setLoadingState();N=x.imageEditor.crop(!1,!1);return _.q(C,x.convertToImageFormatBundle(N),4);case 4:return h=C.yieldResult,_.q(C,OTX(h.imageFile,F),5);case 5:c=
C.yieldResult;((M=x.data)==null?0:M.onUploadEndpoint)?(f=x.buildUploadServiceEndpoint(c),x.ytComponentBehavior.resolveCommand(f),K=_.r(f,_.n4),((t=K)==null?0:t.params)?x.closePopup():x.resetFileSelector()):(_.lA(x.hostElement,"yt-image-updated-action",[h.dataUrl,c]),x.closePopup());_.ub(C,0);break;case 2:d=_.v9(C),x.setErrorState((v=x.data)==null?void 0:v.uploadErrorMessage),d instanceof Error?_.zj(d):(X=new _.qE(JSON.stringify(d)),_.zj(X)),_.JB(C)}})};
_.l.buildUploadServiceEndpoint=function(p){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",p),this.data.onUploadEndpoint):null};
_.l.dataChanged=function(){var p=this,x;return _.D(function(F){if(F.nextAddress==1){if(!p.data||!p.canvasElement)return F.return();p.data.imageRatio&&p.data.minImageCropWidth||_.s$(new _.qE("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));x=function(N,h){return p.data.imageType==="IMAGE_TYPE_AVATAR"?new bLm(N,h,p.data.imageRatio,[p.data.minImageCropWidth,p.data.minImageCropWidth/p.data.imageRatio],p.hostElement):new jM(N,h,p.data.imageRatio,[p.data.minImageCropWidth,
p.data.minImageCropWidth/p.data.imageRatio],void 0,p.hostElement,8,!1)};
p.imageEditorCanvas=new hQm(p.canvasElement,x);return p.data.url?_.q(F,M8k(p.imageEditorCanvas,p.data.url),3):(p.hideContainer=!0,p.openFileSelector(),F.jumpTo(0))}p.imageEditor=F.yieldResult;p.showPopup();p.addEventListeners(p.imageEditor);_.JB(F)})};
_.l.addEventListeners=function(p){this.removeEventListeners();var x=function(h){lbm(p,h)};
this.JSC$18411_mouseDownEvent=x;var F=function(h){crc(p,h)};
this.JSC$18411_mouseMoveEvent=F;var N=function(){abm(p)};
this.JSC$18411_mouseUpEvent=N;this.topLeftCorner.addEventListener("mousedown",x);this.topLeftCorner.addEventListener("mousemove",F);this.topLeftCorner.addEventListener("mouseup",N);this.topRightCorner.addEventListener("mousedown",x);this.topRightCorner.addEventListener("mousemove",F);this.topRightCorner.addEventListener("mouseup",N);this.bottomLeftCorner.addEventListener("mousedown",x);this.bottomLeftCorner.addEventListener("mousemove",F);this.bottomLeftCorner.addEventListener("mouseup",N);this.bottomRightCorner.addEventListener("mousedown",
x);this.bottomRightCorner.addEventListener("mousemove",F);this.bottomRightCorner.addEventListener("mouseup",N)};
_.l.removeEventListeners=function(){this.JSC$18411_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18411_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18411_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18411_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18411_mouseDownEvent));this.JSC$18411_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18411_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18411_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18411_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18411_mouseMoveEvent));this.JSC$18411_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18411_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18411_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18411_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18411_mouseUpEvent))};
_.l.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var p=document.activeElement;p&&p.shadowRoot&&p.shadowRoot.activeElement;)p=p.shadowRoot.activeElement;switch(p){case this.topLeftCorner:this.imageEditor.focusedCorner=1;break;case this.topRightCorner:this.imageEditor.focusedCorner=3;break;case this.bottomLeftCorner:this.imageEditor.focusedCorner=2;break;case this.bottomRightCorner:this.imageEditor.focusedCorner=4;break;default:return this.imageEditor.focusedCorner=0,!1}return!0};
_.l.updatePositionOfCorner=function(p,x){var F=p.y-x.offsetHeight/2+4;x.style.left=p.x-x.offsetWidth/2+16+"px";x.style.top=F+"px"};
_.l.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var p=_.a([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),x=p.next();!x.done;x=p.next()){x=x.value;var F=qhm(this.imageEditor,x.corner);this.updatePositionOfCorner(F,x.div)}};
_.l.onLeft=function(p){this.imageEditor&&this.setFocusInImageEditor()&&(t8c(this.imageEditor,0),this.updatePositionOfAllCorners(),p.preventDefault())};
_.l.onRight=function(p){this.imageEditor&&this.setFocusInImageEditor()&&(t8c(this.imageEditor,1),this.updatePositionOfAllCorners(),p.preventDefault())};
_.l.onUp=function(p){this.imageEditor&&this.setFocusInImageEditor()&&(t8c(this.imageEditor,2),this.updatePositionOfAllCorners(),p.preventDefault())};
_.l.onDown=function(p){this.imageEditor&&this.setFocusInImageEditor()&&(t8c(this.imageEditor,3),this.updatePositionOfAllCorners(),p.preventDefault())};
_.l.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.R8.Object.defineProperties(YhH.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&uWD.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var p,x,F;((x=this.data)==null?0:x.imageRatio)&&((F=this.data)==null?0:F.minImageCropWidth)?p={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:p=ArX;return new FKt(p)}}});
var Lh=YhH;Lh.prototype.updatePositionOfAllCorners=Lh.prototype.updatePositionOfAllCorners;Lh.prototype.dataChanged=Lh.prototype.dataChanged;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],Lh.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Lh.prototype,"ytComponentBehavior",void 0);_.B([_.u(_.C7),_.k("design:type",Object)],Lh.prototype,"ironA11yKeysBehavior",void 0);
_.B([_.Ff("#canvas"),_.k("design:type",HTMLCanvasElement)],Lh.prototype,"canvasElement",void 0);_.B([_.Ff("#file-selector"),_.k("design:type",HTMLInputElement)],Lh.prototype,"fileSelector",void 0);_.B([_.Ff("#top-left-corner"),_.k("design:type",HTMLDivElement)],Lh.prototype,"topLeftCorner",void 0);_.B([_.Ff("#top-right-corner"),_.k("design:type",HTMLDivElement)],Lh.prototype,"topRightCorner",void 0);
_.B([_.Ff("#bottom-left-corner"),_.k("design:type",HTMLDivElement)],Lh.prototype,"bottomLeftCorner",void 0);_.B([_.Ff("#bottom-right-corner"),_.k("design:type",HTMLDivElement)],Lh.prototype,"bottomRightCorner",void 0);_.B([_.H(),_.k("design:type",Object)],Lh.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],Lh.prototype,"errorMessage",void 0);_.B([_.H(),_.k("design:type",Object)],Lh.prototype,"isLoading",void 0);_.B([_.H(),_.k("design:type",Object)],Lh.prototype,"hideContainer",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.k("design:type",Boolean)],Lh.prototype,"isPlaylistThumbnail",void 0);_.B([_.cT("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],Lh.prototype,"dataChanged",null);_.B([_.V("image-updated"),_.V("yt-refit"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Lh.prototype,"updatePositionOfAllCorners",null);
Lh=_.B([_.JZ({is:"yt-image-editor-renderer",disableElementRegistration:!0})],Lh);
_.P(Lh,"yt-image-editor-renderer",function(){if(ePH===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;$0X===void 0&&($0X=document.createElement("template"));var N=$0X;F.call(x,N.content.cloneNode(!0),p.content.firstChild);ePH=p}p=ePH;return p},{mode:2});var wVH;var GP8;var V8m=function(){return _.m.apply(this,arguments)||this};
_.E(V8m,_.m);V8m.prototype.updateMinutesFromBinding=function(p){this.handleMinutesChanged&&this.handleMinutesChanged(p)};
V8m.prototype.updateSecondsFromBinding=function(p){this.handleSecondsChanged&&this.handleSecondsChanged(p)};
V8m.prototype.updateDescriptionFromBinding=function(p){this.handleDescriptionChanged&&this.handleDescriptionChanged(p)};
var PD=V8m;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],PD.prototype,"ytComponentBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],PD.prototype,"data",void 0);_.B([_.H(),_.k("design:type",String)],PD.prototype,"minutes",void 0);_.B([_.H(),_.k("design:type",String)],PD.prototype,"seconds",void 0);_.B([_.H(),_.k("design:type",String)],PD.prototype,"description",void 0);_.B([_.H(),_.k("design:type",Function)],PD.prototype,"handleMinutesChanged",void 0);
_.B([_.H(),_.k("design:type",Function)],PD.prototype,"handleSecondsChanged",void 0);_.B([_.H(),_.k("design:type",Function)],PD.prototype,"handleDescriptionChanged",void 0);_.B([_.H(),_.k("design:type",Number)],PD.prototype,"characterLimit",void 0);_.B([_.H(),_.k("design:type",Number)],PD.prototype,"textNumRows",void 0);PD=_.B([_.JZ({is:"yt-report-details-form-content",disableElementRegistration:!0})],PD);
_.P(PD,"yt-report-details-form-content",function(){if(GP8===void 0){var p=document.createElement("template");_.g(p,'\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>');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;wVH===void 0&&(wVH=document.createElement("template"));var N=wVH;F.call(x,N.content.cloneNode(!0),p.content.firstChild);GP8=p}p=GP8;return p},{mode:2});var WKk;var HLk;var m2H=function(){var p=_.m.apply(this,arguments)||this;p.updateMinutesFromBinding=function(x){p.minutes=x.detail.value};
p.updateSecondsFromBinding=function(x){p.seconds=x.detail.value};
p.updateDescriptionFromBinding=function(x){p.description=x.detail.value};
return p};
_.E(m2H,_.m);_.l=m2H.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.l.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.submitButton":{id:"submit-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.l.ready=function(){_.n(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.l.onSubmitYtAction=function(p){var x=p.detail;x.actionName==="yt-service-request"&&(x=x.args[1],x.flagEndpoint&&(p.stopPropagation(),this.refireAction(x)))};
_.l.refireAction=function(p){var x={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(x.vss_id=this.vssId);_.fc(this.hostElement,[p,x]);this.submitDisabled=!0};
_.l.dataChanged=function(){var p=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var x=_.Pt();x&&x.getPlayerPromise().then(function(F){var N=F.getOption("cc","track")||F.getOption("captions","track");N&&(p.vssId=N.vss_id);F=F.getCurrentTime();p.minutes=Math.floor(F/60).toString();p.seconds=(Math.floor(F)%60).toString()})};
_.l.updateSubmitButtonState=function(){var p;((p=this.data)==null?0:p.isFreeformReason)?this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds===""||!this.description||this.description.length<3):this.set("data.submitButton.buttonRenderer.isDisabled",this.submitDisabled||this.minutes===""||this.seconds==="")};
_.l.onYtServiceRequestCompleted=function(){_.lA(this.hostElement,"yt-close-popup-action")};
_.l.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.R8.Object.defineProperties(m2H.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var p;return((p=this.data)==null?void 0:p.textNumRows)||4}}});
var Tg=m2H;Tg.prototype.onYtServiceRequestError=Tg.prototype.onYtServiceRequestError;Tg.prototype.onYtServiceRequestCompleted=Tg.prototype.onYtServiceRequestCompleted;Tg.prototype.updateSubmitButtonState=Tg.prototype.updateSubmitButtonState;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Tg.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);
_.B([_.H({observer:"dataChanged"}),_.k("design:type",Object)],Tg.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Boolean)],Tg.prototype,"submitDisabled",void 0);_.B([_.H(),_.k("design:type",String)],Tg.prototype,"minutes",void 0);_.B([_.H(),_.k("design:type",String)],Tg.prototype,"seconds",void 0);_.B([_.H(),_.k("design:type",String)],Tg.prototype,"description",void 0);_.B([_.H(),_.k("design:type",String)],Tg.prototype,"vssId",void 0);
_.B([_.H({value:_.sd("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.k("design:type",Boolean)],Tg.prototype,"isMusic",void 0);_.B([_.w("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],Tg.prototype,"characterLimit",null);_.B([_.w("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],Tg.prototype,"textNumRows",null);
_.B([_.cT("minutes","seconds","description","submitDisabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Tg.prototype,"updateSubmitButtonState",null);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Tg.prototype,"onYtServiceRequestCompleted",null);
_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Tg.prototype,"onYtServiceRequestError",null);Tg=_.B([_.JZ({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Tg);
_.P(Tg,"yt-report-details-form-renderer",function(){if(HLk===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;WKk===void 0&&(WKk=document.createElement("template"));var N=WKk;F.call(x,N.content.cloneNode(!0),p.content.firstChild);HLk=p}p=HLk;return p});var oR8;var OL8;var jem;var LKH;var P_e=function(){return _.m.apply(this,arguments)||this};
_.E(P_e,_.m);
P_e.prototype.onCheckedChanged_=function(){if(this.data){var p=_.n(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.lA(this.hostElement,"yt-additional-detail-checkbox-update",[p]):this.data.identifier==="yt-hide-user-checkbox"?_.lA(this.hostElement,"yt-hide-user-checkbox-update",[p]):p&&this.data.enableCommand?_.lA(this.hostElement,"yt-modify-report-form-command",[_.r(this.data.enableCommand,YZ8)]):!p&&this.data.disableCommand&&_.lA(this.hostElement,
"yt-modify-report-form-command",[_.r(this.data.enableCommand,YZ8)])}};
P_e.prototype.onLabelTap_=function(p){p.target.tagName!="A"&&(_.n(this.hostElement).querySelector("#checkbox").checked=!_.n(this.hostElement).querySelector("#checkbox").checked)};
var TCD=P_e;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],TCD.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],TCD.prototype,"data",void 0);TCD=_.B([_.JZ({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],TCD);
_.P(TCD,"yt-boolean-form-field-v2-renderer",function(){if(LKH===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;jem===void 0&&(jem=document.createElement("template"));var N=jem;F.call(x,N.content.cloneNode(!0),p.content.firstChild);LKH=p}p=LKH;return p});var BC8=function(){var p=_.m.apply(this,arguments)||this;p.canShowAdditionalDetailCheckbox=!1;p.canShowCheckbox=!1;p.keepDropdownFocusedAfterSelection=!0;return p};
_.E(BC8,_.m);BC8.prototype.configureRendererStamper=function(){return{"data.legalReportCheckbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}},"data.additionalDetailCheckbox":{id:"additional-detail-checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
var BD=BC8;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],BD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],BD.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],BD.prototype,"canShowAdditionalDetailCheckbox",void 0);_.B([_.H(),_.k("design:type",Object)],BD.prototype,"canShowCheckbox",void 0);_.B([_.H(),_.k("design:type",Object)],BD.prototype,"keepDropdownFocusedAfterSelection",void 0);
BD=_.B([_.JZ({is:"yt-report-form-modal-content",disableElementRegistration:!0})],BD);
_.P(BD,"yt-report-form-modal-content",function(){if(OL8===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;oR8===void 0&&(oR8=document.createElement("template"));var N=oR8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);OL8=p}p=OL8;return p},{mode:2});var RQH;var kPD;var U2H=function(){var p=_.m.apply(this,arguments)||this;p.submitting=!1;p.submitButtonDisabled=!0;p.command=null;p.canShowCheckbox=!1;p.canShowAdditionalDetailCheckbox=!1;p.canShowNextButton=!1;p.additionalDetailCheckboxChecked=!1;p.refitJob=0;p.keepDropdownFocusedAfterSelection=!0;p.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 p};
_.E(U2H,_.m);_.l=U2H.prototype;_.l.created=function(){this.refitJob=0};
_.l.attached=function(){this.JSC$18434_scroller&&(this.JSC$18434_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18434_scroller.attached&&typeof this.JSC$18434_scroller.attached==="function"&&this.JSC$18434_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(p){p&&(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,p.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),p.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.l.onYtPopupOpened=function(){var p=_.Pt();p&&p.getPlayerPromise().then(function(x){x.pauseVideo()})};
_.l.onYtNavigate=function(p){_.r(p.detail.endpoint,_.njK)&&(p.stopPropagation(),this.hideReportForm=!0)};
_.l.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.l.onYtServiceRequestCompleted=function(p,x){var F=x.actions;if(F){if(F.length===1&&_.r(F[0],_.Zx)){var N;F=((N=_.r(F[0],_.Zx))==null?void 0:N.commands)||[]}N=0;for(var h=F.length;N<h;N++)_.r(F[N],_.X3)&&(p.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(F[N]))}if(x.data&&(p=this.get("feedbackResponses",x.data)))for(x=0;x<p.length;x++)if(p[x].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.l.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.l._onDescendantIronResize=function(p){p.stopPropagation();return!1};
_.l.handleReportFormEndpointUpdateAction=function(p){if(p.submitEndpoint){var x=this.command=p.submitEndpoint;x=_.r(x,_.K3D);if(x==null?0:x.additionalDetailCheckboxChecked)x.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else p.submitNavigationEndpoint?(this.command=p.submitNavigationEndpoint,this.toggleSubmitButton(!1)):p.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:p.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;p.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",p));this.refit()};
_.l.handleConfirmDialogCloseAction=function(p){p.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.l.submitButtonDisabledChanged=function(){var p=this.hostElement.parentElement;p&&p.invalidateTabbables&&p.invalidateTabbables()};
_.l.handleModifyReportFormCommand=function(p){p=this.get("action",p);p==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:p==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:p==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:p==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:p==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:p==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.l.updateDialogStyling=function(){var p,x,F,N,h,c=((h=(p=this.data)==null?void 0:(x=p.optionsSupportedRenderers)==null?void 0:(F=x.optionsRenderer)==null?void 0:(N=F.items)==null?void 0:N.length)!=null?h:0)<=2?0:240;_.eV(this.hostElement,{"--yt-report-form-modal-renderer-min-width":c+"px"})};
_.l.toggleSubmitButton=function(p){this.submitButtonDisabled=!p;this.submitButtonDisabled=p};
_.l.computeSubmitButtonData=function(p,x){var F={};_.r(x,_.njK)?F.navigationEndpoint=x:F.command=x||void 0;p&&p.buttonRenderer&&_.Q5.extend(F,p.buttonRenderer);return F};
_.l.computeNextButtonData=function(p,x){var F={};if(!p||!p.buttonRenderer)return F;_.Q5.extend(F,p.buttonRenderer);if(!x)return F;if(_.r(x,_.njK))F.navigationEndpoint=wam(x);else if(F.command=wam(x),p=_.r(F.command,_.K3D))p.legalCheckboxChecked=!0;return F};
_.l.computeShowNextButton=function(p,x,F){return!!p&&x&&F};
_.l.refit=function(){var p=this;this.refitJob||(this.refitJob=_.E0.addLowPriorityJob(function(){_.hG(p.hostElement,"yt-refit");p.refitJob=0}))};
_.l.handleAdditionalDetailCheckboxUpdateAction=function(p){this.additionalDetailCheckboxChecked=p;_.r(this.command,_.K3D).additionalDetailCheckboxChecked=p};
_.R8.Object.defineProperties(U2H,{template:{configurable:!0,enumerable:!0,get:function(){if(kPD===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;RQH===void 0&&(RQH=document.createElement("template"));var N=RQH;F.call(x,N.content.cloneNode(!0),p.content.firstChild);kPD=p}p=kPD;return p}}});
var RZ=U2H;RZ.prototype.onYtServiceRequestError=RZ.prototype.onYtServiceRequestError;RZ.prototype.onYtServiceRequestCompleted=RZ.prototype.onYtServiceRequestCompleted;RZ.prototype.onYtServiceRequestSent=RZ.prototype.onYtServiceRequestSent;RZ.prototype.onYtNavigate=RZ.prototype.onYtNavigate;RZ.prototype.onYtPopupOpened=RZ.prototype.onYtPopupOpened;_.B([_.u(_.FU.YtOpenPopupBehavior),_.k("design:type",Object)],RZ.prototype,"openPopupBehavior",void 0);
_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],RZ.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],RZ.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],RZ.prototype,"eventForwardingBehavior",void 0);_.B([_.u(_.n7),_.k("design:type",Object)],RZ.prototype,"ironResizableBehavior",void 0);_.B([_.H({observer:"dataChanged"}),_.k("design:type",Object)],RZ.prototype,"data",void 0);
_.B([_.H(),_.k("design:type",Object)],RZ.prototype,"submitting",void 0);_.B([_.H({observer:"submitButtonDisabledChanged"}),_.k("design:type",Object)],RZ.prototype,"submitButtonDisabled",void 0);_.B([_.H(),_.k("design:type",Object)],RZ.prototype,"command",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],RZ.prototype,"hideReportForm",void 0);_.B([_.H(),_.k("design:type",Object)],RZ.prototype,"canShowCheckbox",void 0);
_.B([_.H(),_.k("design:type",Object)],RZ.prototype,"canShowAdditionalDetailCheckbox",void 0);_.B([_.H(),_.k("design:type",Object)],RZ.prototype,"canShowNextButton",void 0);_.B([_.H(),_.k("design:type",Object)],RZ.prototype,"additionalDetailCheckboxChecked",void 0);_.B([_.H(),_.k("design:type",Object)],RZ.prototype,"refitJob",void 0);_.B([_.H(),_.k("design:type",Object)],RZ.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.B([_.Ff("#scroller"),_.k("design:type",Object)],RZ.prototype,"JSC$18434_scroller",void 0);_.B([_.V("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],RZ.prototype,"onYtPopupOpened",null);_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],RZ.prototype,"onYtNavigate",null);
_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],RZ.prototype,"onYtServiceRequestSent",null);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Ht]),_.k("design:returntype")],RZ.prototype,"onYtServiceRequestCompleted",null);
_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],RZ.prototype,"onYtServiceRequestError",null);RZ=_.B([_.JZ({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],RZ);var iLm;var Ib8;var $2e=function(){return _.m.apply(this,arguments)||this};
_.E($2e,_.m);_.l=$2e.prototype;_.l.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.l.onVisible=function(){if(_.S("web_ephemeral_actions_focus")){var p,x;(x=_.J().resolve(_.Bw(_.M_)))==null||x.enqueue({label:_.Pi((p=this.data)==null?void 0:p.messageTitle),elementToFocus:this.hostElement})}};
_.l.onThumbnailLoaded=function(){_.hG(this.hostElement,"yt-refit")};
_.l.onDismissTap=function(){_.lA(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.l.computeAlternateIcon=function(p){return p?p==="BACKSTAGE_ARTWORK"?"backstage:artwork":p:null};
_.l.computeFontFamily=function(p){return p==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.l.computeBackgroundStyle=function(p,x){if(p=this.computeBackgroundImage(p,x))if(p=_.j6(p.thumbnails))return'background-image: url("'+p+'");'};
_.l.computeHasFullHeightImage=function(p){return!(!(p&&p.thumbnails&&p.thumbnails.length>0)||this.modern)};
_.l.isModernStyle=function(p){return p.style==="STYLE_MODERN"};
_.l.computeIcon=function(p,x){if(p&&p.icon)return x?p.iconDark:p.icon};
_.l.computeBackgroundImage=function(p,x){if(p&&p.backgroundImage)return x?p.backgroundImageDark:p.backgroundImage};
_.l.computeLogo=function(p,x){if(p&&p.logo)return x?p.logoDark:p.logo};
_.l.computeShouldShowModernIcon=function(p,x){return p&&!!x};
_.l.getLogoContainerClassName=function(p){return this.logoWithPadding(p)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.l.getLogoImageId=function(p){return this.logoWithPadding(p)?"mealbar-logo-with-padding":"mealbar-logo"};
_.l.logoWithPadding=function(p){var x,F,N;return(p=(x=this.computeLogo(p,this.isDarkTheme))==null?void 0:(F=x.thumbnails)==null?void 0:(N=F[0])==null?void 0:N.height)&&p%31===0?!0:!1};
var kI=$2e;kI.prototype.onThumbnailLoaded=kI.prototype.onThumbnailLoaded;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],kI.prototype,"ytRendererBehavior",void 0);_.B([_.H({}),_.k("design:type",Object)],kI.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.k("design:type",Boolean)],kI.prototype,"modern",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],kI.prototype,"isDarkTheme",void 0);
_.B([_.H({computed:"computeIcon(data, isDarkTheme)"}),_.k("design:type",Object)],kI.prototype,"icon",void 0);_.B([_.H({computed:"computeLogo(data, isDarkTheme)"}),_.k("design:type",Object)],kI.prototype,"logo",void 0);_.B([_.H({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.k("design:type",Object)],kI.prototype,"backgroundStyle",void 0);_.B([_.H({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.k("design:type",Object)],kI.prototype,"alternateIcon",void 0);
_.B([_.H({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.k("design:type",Boolean)],kI.prototype,"hasFullHeightImage",void 0);_.B([_.H({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.k("design:type",Boolean)],kI.prototype,"useYoutubeSans",void 0);_.B([_.H({computed:"computeShouldShowModernIcon(modern, icon)"}),_.k("design:type",Boolean)],kI.prototype,"shouldShowModernIcon",void 0);
_.B([_.V("yt-img-shadow-loaded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kI.prototype,"onThumbnailLoaded",null);kI=_.B([_.JZ({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],kI);
_.P(kI,"yt-mealbar-promo-renderer",function(){if(Ib8===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;iLm===void 0&&(iLm=document.createElement("template"));var N=iLm;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Ib8=p}p=Ib8;return p},{mode:2});var eQa;var pN8;var xOe=function(){return _.m.apply(this,arguments)||this};
_.E(xOe,_.m);_.l=xOe.prototype;_.l.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}},"data.acceptButton":{id:"accept-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[boundOnTap_]]",overrides:"[[buttonOverride]]"}}}}}};
_.l.computeHasButtons_=function(p){return!(!p.dismissButton&&!p.acceptButton)};
_.l.computeStyle_=function(p){return p||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.l.observeImpressionEndpoints_=function(){var p=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(x){x.clickTrackingParams&&delete x.clickTrackingParams;_.fc(p.hostElement,[x])})};
_.l.onTap_=function(){_.lA(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
var Ux=xOe;Ux.prototype.observeImpressionEndpoints_=Ux.prototype.observeImpressionEndpoints_;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Ux.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],Ux.prototype,"ytEventForwardingBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Ux.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],Ux.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],Ux.prototype,"positionType",void 0);_.B([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.k("design:type",Boolean)],Ux.prototype,"hasButtons_",void 0);_.B([_.H({value:function(){return this.onTap_.bind(this)}}),
_.k("design:type",Function)],Ux.prototype,"boundOnTap_",void 0);_.B([_.H({value:{style:"mono-inverse"}}),_.k("design:type",Object)],Ux.prototype,"buttonOverride",void 0);_.B([_.W("data.promoConfig.impressionEndpoints"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ux.prototype,"observeImpressionEndpoints_",null);Ux=_.B([_.JZ({is:"yt-tooltip-renderer",disableElementRegistration:!0})],Ux);
_.P(Ux,"yt-tooltip-renderer",function(){if(pN8===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;eQa===void 0&&(eQa=document.createElement("template"));var N=eQa;F.call(x,N.content.cloneNode(!0),p.content.firstChild);pN8=p}p=pN8;return p},{mode:2});var F2H;var NL8;var hXk={},lA8=(hXk.WEB_REMIX="music.youtube.com",hXk),c1t=function(){var p=_.m.apply(this,arguments)||this;p.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return p};
_.E(c1t,_.m);_.l=c1t.prototype;_.l.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.created=function(){this.embedHost_=lA8[_.sd("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.l.ready=function(){_.n(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.l.computeEmbedCode_=function(p,x,F,N,h){if(!p)return"";var c=p.videoId,M=p.fullListId,f=[];p.attributionId&&f.push("si="+p.attributionId);N||f.push("controls=0");F&&Number(x)>0&&f.push("start="+x);M&&(c="videoseries",f.push("list="+M));F="https://"+(h?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+c;p.clipId&&(f.push("clip="+p.clipId),f.push("clipt="+p.clipTiming));x=f.length>0?F+"?"+f.join("&amp;"):F;p.encryptedEmbedConfig&&f.push("embed_config="+JSON.stringify({enc:p.encryptedEmbedConfig}));
f=f.length>0?F+"?"+f.join("&amp;"):F;_.S("web_sharing_embed_preview_killswitch")?_.n(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(f,p.previewWidth||854,p.previewHeight||480):(_.wM(this.videoPreviewContainer),_.n(this.videoPreviewContainer).appendChild(this.buildIframeElement(f)));return this.getEmbedCode_(x,p.width||560,p.height||315)};
_.l.buildIframeElement=function(p){var x=document.createElement("iframe"),F,N;x.width=""+((N=(F=this.data)==null?void 0:F.previewWidth)!=null?N:854);var h,c;x.height=""+((c=(h=this.data)==null?void 0:h.previewHeight)!=null?c:480);_.Pgd(x,2,p);x.title="YouTube video player";x.frameBorder="0";x.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";x.referrerPolicy="strict-origin-when-cross-origin";x.allowFullscreen=!0;return x};
_.l.computeIsSquareAspectRatio_=function(p){return p.previewHeight&&p.previewWidth?p.previewHeight==p.previewWidth:!1};
_.l.computeShowEmbedOptions_=function(p){return!!p.enablePrivacyModeOptionLabel||!!p.showPlayerControlsOptionLabel};
_.l.getEmbedCode_=function(p,x,F){return'<iframe width="'+x+'" height="'+F+'" src="'+p+'" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>'};
_.l.handleSignalActionCopyShareEmbedUrl_=function(){_.n(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.l.handleSetTimestamp_=function(p){this.startAtTimeStamp_=(this.startAtChecked_=p.isSet)?p.timestamp:0};
_.l.closePanel_=function(){_.lA(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.l.onEmbedCode_=function(){_.n(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.l.onYtPopupClosed_=function(){_.wM(_.n(this.hostElement).querySelector("#video-preview"))};
_.l.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.r(this.data.actionButtons[0],_.AS)&&this.ytRendererBehavior.logExplicitClick(_.r(this.data.actionButtons[0],_.AS))};
var iD=c1t;iD.prototype.onYtPopupClosed_=iD.prototype.onYtPopupClosed_;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],iD.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],iD.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],iD.prototype,"data",void 0);
_.B([_.H({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.k("design:type",String)],iD.prototype,"embedCode_",void 0);_.B([_.H({value:!0}),_.k("design:type",Boolean)],iD.prototype,"isPlayerControlsOptionChecked_",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],iD.prototype,"isPrivacyModeOptionChecked_",void 0);_.B([_.H({value:!1,notify:!0}),_.k("design:type",Boolean)],iD.prototype,"startAtChecked_",void 0);
_.B([_.H({value:0}),_.k("design:type",Number)],iD.prototype,"startAtTimeStamp_",void 0);_.B([_.H({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],iD.prototype,"isSquareAspectRatio_",void 0);_.B([_.Ff("#video-preview"),_.k("design:type",HTMLElement)],iD.prototype,"videoPreviewContainer",void 0);_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iD.prototype,"onYtPopupClosed_",null);
iD=_.B([_.JZ({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],iD);
_.P(iD,"yt-sharing-embed-renderer",function(){if(NL8===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;F2H===void 0&&(F2H=document.createElement("template"));var N=F2H;F.call(x,N.content.cloneNode(!0),p.content.firstChild);NL8=p}p=NL8;return p},{mode:2});var aAk={};
aAk.YtUnlimitedFamilyInterstitialBehavior=[_.FU.YtOpenPopupBehavior,_.T2.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(p){p=_.Xzj(_.os(p),"yt-button-renderer");return p?p.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(p){this.dialogHistory_.push(p)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var p=this.popFromHistory();if(p){var x={openPopupAction:{popupType:"DIALOG",popup:{}}};x.openPopupAction.popup[p.renderer]=p.data;this.showingPreviousDialog_=!0;this.openPopup(x)}},
handleOpenPopupAction_:function(p){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var x=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(N){return!!p.openPopupAction.popup[N]}),F=this.getElementName_();
x&&this.data&&(this.pushToHistory({renderer:F,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(p){if(p=_.r(p,c6H))this.loading=!0,_.lA(this.hostElement,"yt-open-create-family-dialog",[p,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var p=this.hostElement.nodeName.split("-").slice(1).map(function(x){return""+x[0].toUpperCase()+x.slice(1).toLowerCase()}).join("");
return p[0].toLowerCase()+p.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var MFm;var DOH;var fA8=function(){return _.m.apply(this,arguments)||this};
_.E(fA8,_.m);_.l=fA8.prototype;_.l.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"footer-button":!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0,"footer-button":!0}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.lA(this.hostElement,"yt-register-create-family-dialog");_.n(this.hostElement).querySelector("#thumbnail").onShow()};
_.l.fireOnCloseCommand_=function(){var p;((p=this.data)==null?0:p.onCloseCommand)&&_.Kc(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.l.onYtServiceRequestSent_=function(p,x){x&&x.endpoint&&_.r(x.endpoint,_.dH)||(this.loading=!0)};
_.l.onYtServiceRequestCompleted_=function(){var p=this.hostElement.parentElement;p.close&&p.close();this.loading=!1};
_.l.openPopupHandler_=function(p){if(p.detail==this){var x;((x=this.data)==null?0:x.onOpenCommands)&&_.Kc(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.l.closePopupHandler_=function(p,x){this.fireOnCloseCommand_();if(x&&x.canceled===!0||x&&x.canceled===!1&&x.confirmed===!1){var F;((F=this.data)==null?0:F.onDismissCommands)&&_.Kc(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.l.dataChanged_=function(){this.loading=!1};
var IZ=fA8;IZ.prototype.dataChanged_=IZ.prototype.dataChanged_;IZ.prototype.closePopupHandler_=IZ.prototype.closePopupHandler_;IZ.prototype.openPopupHandler_=IZ.prototype.openPopupHandler_;IZ.prototype.onYtServiceRequestCompleted_=IZ.prototype.onYtServiceRequestCompleted_;IZ.prototype.onYtServiceRequestSent_=IZ.prototype.onYtServiceRequestSent_;_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],IZ.prototype,"ytEventForwardingBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],IZ.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(aAk.YtUnlimitedFamilyInterstitialBehavior),_.k("design:type",Object)],IZ.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],IZ.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],IZ.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],IZ.prototype,"loading",void 0);_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],IZ.prototype,"onYtServiceRequestSent_",null);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Ht]),_.k("design:returntype")],IZ.prototype,"onYtServiceRequestCompleted_",null);
_.B([_.V("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],IZ.prototype,"openPopupHandler_",null);_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],IZ.prototype,"closePopupHandler_",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IZ.prototype,"dataChanged_",null);
IZ=_.B([_.JZ({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],IZ);
_.P(IZ,"yt-unlimited-family-message-interstitial-renderer",function(){if(DOH===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;MFm===void 0&&(MFm=document.createElement("template"));var N=MFm;F.call(x,N.content.cloneNode(!0),p.content.firstChild);DOH=p}p=DOH;return p},{mode:2});var K2H;var qpt;var $I=function(){return _.m.apply(this,arguments)||this};
_.E($I,_.m);$I.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"}}}};
$I.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.n(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(p){p.onShow()});
_.n(this.hostElement).querySelector("#main-thumbnail").onShow()};
$I.prototype.onButtonTap_=function(p){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(p)};
$I.prototype.computeMainThumbnailWidth_=function(p){return p&&p.length!==0?72:96};
var eM=$I;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],eM.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],eM.prototype,"ytRendererBehavior",void 0);_.B([_.u(aAk.YtUnlimitedFamilyInterstitialBehavior),_.k("design:type",Object)],eM.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],eM.prototype,"data",void 0);
_.B([_.H({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.k("design:type",Number)],eM.prototype,"mainThumbnailWidth_",void 0);_.B([_.H({value:function(){return this.onButtonTap_.bind(this)}}),
_.k("design:type",Function)],eM.prototype,"boundButtonTap_",void 0);eM=_.B([_.JZ({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],eM);
_.P(eM,"yt-unlimited-family-profile-interstitial-renderer",function(){if(qpt===void 0){var p=document.createElement("template");_.g(p,'\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>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;K2H===void 0&&(K2H=document.createElement("template"));var N=K2H;F.call(x,N.content.cloneNode(!0),p.content.firstChild);qpt=p}p=qpt;return p},{mode:2});var ZzH;var tFm;var dOa=function(){var p=_.m.apply(this,arguments)||this;p.sliderAriaValueText_=null;p.selectedIndex_=0;p.messages={PAUSE_SLIDER:_.JG("PAUSE_SLIDER",void 0,"Pause Duration")};return p};
_.E(dOa,_.m);_.l=dOa.prototype;_.l.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[onButtonTap_]]"}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},properties:{"on-tap":"[[onSecondaryTap_]]"}}}}}};
_.l.onPopupOpened_=function(p){p.detail==this&&_.S("enable_premium_voluntary_pause")&&(_.lA(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.setDialogData=function(p){this.data=p;this.resetSlider_()};
_.l.dataChanged_=function(){this.data&&this.resetSlider_()};
_.l.onSubmitTap_=function(){if(this.data.confirmCommand){var p=this.data.confirmCommand;_.r(p,_.Mjb)&&_.fc(this.hostElement,[p,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.l.onExitButtonTap_=function(){_.lA(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.l.closePopupHandler_=function(p,x){(x&&x.canceled===!0||x.canceled===!1&&x.confirmed===!1)&&this.handleOnDismissCommands_()};
_.l.onSliderChange_=function(){this.selectedIndex_=_.n(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.l.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.l.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.l.resetSlider_=function(){if(this.data){var p=this.data.defaultEndOptionIndex||0,x=_.n(this.hostElement).querySelector("#id-pause-slider");if(x.immediateValue<p)for(;x.immediateValue!=p;)x.increment();else if(p<x.immediateValue)for(;x.immediateValue!=p;)x.decrement();this.selectedIndex_=p;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.l.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.Kc(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.l.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.Kc(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.l.onYtServiceRequestSent=function(){this.loading=!0};
_.l.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
var pv=dOa;pv.prototype.onYtServiceRequestCompleted=pv.prototype.onYtServiceRequestCompleted;pv.prototype.onYtServiceRequestSent=pv.prototype.onYtServiceRequestSent;pv.prototype.closePopupHandler_=pv.prototype.closePopupHandler_;pv.prototype.dataChanged_=pv.prototype.dataChanged_;pv.prototype.onPopupOpened_=pv.prototype.onPopupOpened_;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],pv.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],pv.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],pv.prototype,"data",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],pv.prototype,"loading",void 0);_.B([_.H(),_.k("design:type",Number)],pv.prototype,"selectIndexMax_",void 0);_.B([_.H(),_.k("design:type",Object)],pv.prototype,"selectedData_",void 0);
_.B([_.H(),_.k("design:type",Object)],pv.prototype,"sliderAriaValueText_",void 0);_.B([_.H({value:function(){return this.onSubmitTap_.bind(this)}}),
_.k("design:type",Function)],pv.prototype,"onButtonTap_",void 0);_.B([_.H({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.k("design:type",Function)],pv.prototype,"onSecondaryTap_",void 0);_.B([_.H(),_.k("design:type",Object)],pv.prototype,"messages",void 0);_.B([_.V("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],pv.prototype,"onPopupOpened_",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pv.prototype,"dataChanged_",null);
_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],pv.prototype,"closePopupHandler_",null);_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],pv.prototype,"onYtServiceRequestSent",null);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Ht]),_.k("design:returntype")],pv.prototype,"onYtServiceRequestCompleted",null);pv=_.B([_.JZ({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],pv);
_.P(pv,"yt-unplugged-pause-membership-dialog-renderer",function(){if(tFm===void 0){var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[messages.PAUSE_SLIDER]]" aria-valuetext$="[[sliderAriaValueText_]]" max="[[selectIndexMax_]]" min="0" step="1" on-immediate-value-change="onSliderChange_" on-value-change="onSliderChange_"></tp-yt-paper-slider><template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><yt-formatted-string class="body-message style-scope yt-unplugged-pause-membership-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string></template><div id="dialog-actions" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><div id="secondary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div><div id="primary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div></div>');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;ZzH===void 0&&(ZzH=document.createElement("template"));var N=ZzH;F.call(x,N.content.cloneNode(!0),p.content.firstChild);tFm=p}p=tFm;return p},{mode:2});var vAa;var J1H;var CSa=function(){return _.m.apply(this,arguments)||this};
_.E(CSa,_.m);CSa.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.Xt("vcBalanceRenderer")}}};
var xP=CSa;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],xP.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],xP.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],xP.prototype,"data",void 0);xP=_.B([_.JZ({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],xP);
_.P(xP,"yt-vc-offer-layout-header-renderer",function(){if(J1H===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;vAa===void 0&&(vAa=document.createElement("template"));var N=vAa;F.call(x,N.content.cloneNode(!0),p.content.firstChild);J1H=p}p=J1H;return p},{mode:2});var Spa;var r1D;var EAt;var XNe;var gAH=function(){return _.m.apply(this,arguments)||this};
_.E(gAH,_.m);gAH.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.R8.Object.defineProperties(gAH.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityText?this.data.accessibilityText:""}},
vcOfferStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_OFFER_STYLE_STANDARD"}},
showTitleText:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||this.data.style!=="VC_OFFER_STYLE_HERO"||!this.data.titleText)}}});
var FX=gAH;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],FX.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],FX.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.a8_.YtTappableItemBehavior),_.k("design:type",Object)],FX.prototype,"ytTappableItemBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],FX.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.w("data.accessibilityText"),_.k("design:type",String),_.k("design:paramtypes",[])],FX.prototype,"ariaLabel",null);_.B([_.H({reflectToAttribute:!0}),_.w("data.style"),_.k("design:type",String),_.k("design:paramtypes",[])],FX.prototype,"vcOfferStyle",null);_.B([_.w("data.style","data.titleText"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],FX.prototype,"showTitleText",null);FX=_.B([_.JZ({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],FX);
_.P(FX,"yt-vc-offer-renderer",function(){if(XNe===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;EAt===void 0&&(EAt=document.createElement("template"));var N=EAt;F.call(x,N.content.cloneNode(!0),p.content.firstChild);XNe=p}p=XNe;return p},{mode:2});var QTc=function(){return _.m.apply(this,arguments)||this};
_.E(QTc,_.m);QTc.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{vcOfferLayoutHeaderRenderer:{component:"yt-vc-offer-layout-header-renderer"}}},"data.offers":{id:"offers",mapping:{vcOfferRenderer:{component:"yt-vc-offer-renderer",attributes:{"dialog-dismiss":!0}}}}}};
var NA=QTc;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],NA.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],NA.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],NA.prototype,"data",void 0);NA=_.B([_.JZ({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],NA);
_.P(NA,"yt-vc-offer-layout-renderer",function(){if(r1D===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;Spa===void 0&&(Spa=document.createElement("template"));var N=Spa;F.call(x,N.content.cloneNode(!0),p.content.firstChild);r1D=p}p=r1D;return p},{mode:2});var zXc;var sTX;var nAm;var y1c;var bz8=function(){return _.m.apply(this,arguments)||this};
_.E(bz8,_.m);bz8.prototype.configureRendererStamper=function(){return{"data.dismiss":{id:"dismiss",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}},"data.helpLink":{id:"help-link",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{noink:!0}}}}}};
var hy=bz8;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],hy.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],hy.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],hy.prototype,"data",void 0);hy=_.B([_.JZ({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],hy);
_.P(hy,"yt-ypc-offers-modal-top-bar-renderer",function(){if(y1c===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;nAm===void 0&&(nAm=document.createElement("template"));var N=nAm;F.call(x,N.content.cloneNode(!0),p.content.firstChild);y1c=p}p=y1c;return p},{mode:2});var A18=function(){return _.m.apply(this,arguments)||this};
_.E(A18,_.m);A18.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"}}}}};
A18.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
A18.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var p=this.scrollable;p.attached&&typeof p.attached==="function"&&p.attached()};
var lY=A18;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],lY.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],lY.prototype,"ytRendererstamperBehavior",void 0);_.B([_.Ff("#scrollable"),_.k("design:type",Object)],lY.prototype,"scrollable",void 0);_.B([_.H(),_.k("design:type",Object)],lY.prototype,"data",void 0);lY=_.B([_.JZ({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],lY);
_.P(lY,"yt-ypc-offers-modal-renderer",function(){if(sTX===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;zXc===void 0&&(zXc=document.createElement("template"));var N=zXc;F.call(x,N.content.cloneNode(!0),p.content.firstChild);sTX=p}p=sTX;return p},{mode:2});var uv8;var Ypk;var wN_=function(){return _.m.apply(this,arguments)||this};
_.E(wN_,_.m);_.l=wN_.prototype;_.l.configureRendererStamper=function(){return{"data.continueButton":{id:"continue-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{"on-tap":"[[bindOnContinueTapped_]]"}}}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.n(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.l.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.lA(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.l.onYtPopupOpened_=function(p,x){(x==null?void 0:x.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.Kc(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.l.onYtPopupClosed_=function(p,x){this.continueButtonTapped||x&&(x.canceled===!0||x.canceled===!1&&x.confirmed===!1)&&this.data.onDismissCommands&&_.Kc(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.l.onYtServiceRequestError_=function(p){this.set("showSpinner",!1);_.yy(this.hostElement,p.detail.error.message)};
_.l.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.S("enable_ypc_spinners")?_.lA(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
var co=wN_;co.prototype.onYtServiceRequestError_=co.prototype.onYtServiceRequestError_;co.prototype.onYtPopupClosed_=co.prototype.onYtPopupClosed_;co.prototype.onYtPopupOpened_=co.prototype.onYtPopupOpened_;co.prototype.onYtServiceRequestCompleted_=co.prototype.onYtServiceRequestCompleted_;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],co.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],co.prototype,"data",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],co.prototype,"showSpinner",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],co.prototype,"continueButtonTapped",void 0);_.B([_.H({value:function(){return this.onContinueTapped_.bind(this)}}),
_.k("design:type",Function)],co.prototype,"bindOnContinueTapped_",void 0);_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],co.prototype,"onYtServiceRequestCompleted_",null);_.B([_.V("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],co.prototype,"onYtPopupOpened_",null);
_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],co.prototype,"onYtPopupClosed_",null);_.B([_.V("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],co.prototype,"onYtServiceRequestError_",null);co=_.B([_.JZ({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],co);
_.P(co,"yt-ypc-upgrade-dialog-renderer",function(){if(Ypk===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;uv8===void 0&&(uv8=document.createElement("template"));var N=uv8;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Ypk=p}p=Ypk;return p},{mode:2});var GwH;var VFm;var W2k=function(){return _.m.apply(this,arguments)||this};
_.E(W2k,_.m);W2k.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
W2k.prototype.computeHasButtons_=function(p){return!(!p.dismissButton&&!p.confirmButton)};
W2k.prototype.computeStyle_=function(p){return p||"BUBBLE_HINT_STYLE_UNKNOWN"};
var ab=W2k;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],ab.prototype,"ytEventForwardingBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],ab.prototype,"ytRendererstamperBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ab.prototype,"data",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],ab.prototype,"positionType",void 0);_.B([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.k("design:type",Boolean)],ab.prototype,"hasButtons_",void 0);_.B([_.H({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.k("design:type",Boolean)],ab.prototype,"style_",void 0);ab=_.B([_.JZ({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],ab);
_.P(ab,"yt-bubble-hint-renderer",function(){if(VFm===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;GwH===void 0&&(GwH=document.createElement("template"));var N=GwH;F.call(x,N.content.cloneNode(!0),p.content.firstChild);VFm=p}p=VFm;return p},{mode:2});var Hze;var mO8;var oA8=function(){var p=_.kM.apply(this,arguments)||this;p.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return p};
_.E(oA8,_.kM);_.l=oA8.prototype;_.l.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.l.attached=function(){var p=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){p.$.thumbnail.onShow();p.$["header-image"].onShow()})};
_.l.handleCheckBoxUpdateAction_=function(p){this.canShowCheckboxEnabledConfirmButton=p};
_.l.computeUseOverlayForSpinner_=function(p,x){return!!p&&x};
_.l.computeShowSpinner_=function(p,x){return p||!!x};
_.l.fireOnCloseActions_=function(){var p,x=_.a(((p=this.data)==null?void 0:p.onClosedActions)||[]);for(p=x.next();!p.done;p=x.next())this.ytRendererBehavior.resolveCommand(p.value)};
_.l.fireOnOpenCommands_=function(p){var x,F=(x=this.data)==null?void 0:x.onOpenCommands;if(F)for(p.stopImmediatePropagation(),p=_.a(F),x=p.next();!x.done;x=p.next())this.ytRendererBehavior.resolveCommand(x.value)};
_.l.fireOnDismissCommands_=function(p){var x,F=(x=this.data)==null?void 0:x.onDismissCommands;if(F)for(p.stopImmediatePropagation(),p=_.a(F),x=p.next();!x.done;x=p.next())this.ytRendererBehavior.resolveCommand(x.value)};
_.l.openPopupHandler_=function(p){p.detail==this&&this.fireOnOpenCommands_(p)};
_.l.closePopupHandler_=function(p,x){_.Mt(this,"yt-confirm-dialog-close-action",[x]);this.fireOnCloseActions_();(x&&x.canceled===!0||x&&x.canceled===!1&&x.confirmed===!1)&&this.fireOnDismissCommands_(p)};
_.l.onHeaderImageChanged_=function(){var p;((p=this.data)==null?0:p.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.l.computeHasHeaderImageWidth_=function(p){return p!=void 0};
_.l.computeHasLoadingMessage=function(p){return!!p};
_.l.onHeaderImageWidthChanged_=function(){var p,x=(p=this.data)==null?void 0:p.headerImageWidth;if(x){if(p=1.25*x*2+x,this.$.main.style.width=p+"px",x=this.$.scroller.firstElementChild)x.style.minWidth=p+"px"}else this.$.main.style.width="100%"};
_.l.onThumbnailChanged_=function(){var p;((p=this.data)==null?0:p.thumbnail)?(this.setAttribute("dialog-with-thumbnail",""),this.$.scroller.scrollTarget.style.maxHeight="139px",this.$.thumbnail.onShow()):(this.removeAttribute("dialog-with-thumbnail"),this.$.scroller.scrollTarget.style.maxHeight="none")};
_.l.onYtNavigate_=function(p){p=_.os(p);p instanceof Node&&_.Ub(this.$["confirm-button"]).contains(p)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.l.computePrimaryIsCancel_=function(p){return p};
_.l.computeIsCancelButtonHidden_=function(p){return p.skipCancelButton||!p.cancelButton};
_.l.computeIsCheckboxHidden_=function(p){return!p.checkbox};
_.l.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.l.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.l.onYtServiceRequestCompleted_=function(){var p;((p=this.data)==null?0:p.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.R8.Object.defineProperties(oA8,{template:{configurable:!0,enumerable:!0,get:function(){if(mO8===void 0){var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="body-text style-scope yt-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope yt-confirm-dialog-renderer" respect-html-dir="" split-lines="" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="checkbox-container" hidden="[[isCheckboxHidden]]" class="style-scope yt-confirm-dialog-renderer"></div>\n  <div class="buttons style-scope yt-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="checkbox-enabled-confirm-button" data="[[data.checkboxEnabledConfirmButton.buttonRenderer]]" dialog-confirm="" hidden="[[!canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm$="[[!data.showLoadingSpinnerOnAction]]" hidden="[[canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;Hze===void 0&&(Hze=document.createElement("template"));var N=Hze;F.call(x,N.content.cloneNode(!0),p.content.firstChild);mO8=p}p=mO8;return p}}});
var MA=oA8;MA.prototype.onYtServiceRequestCompleted_=MA.prototype.onYtServiceRequestCompleted_;MA.prototype.onYtServiceRequestSent_=MA.prototype.onYtServiceRequestSent_;MA.prototype.onThumbnailLoaded_=MA.prototype.onThumbnailLoaded_;MA.prototype.onYtNavigate_=MA.prototype.onYtNavigate_;MA.prototype.onThumbnailChanged_=MA.prototype.onThumbnailChanged_;MA.prototype.onHeaderImageWidthChanged_=MA.prototype.onHeaderImageWidthChanged_;MA.prototype.onHeaderImageChanged_=MA.prototype.onHeaderImageChanged_;
MA.prototype.closePopupHandler_=MA.prototype.closePopupHandler_;MA.prototype.openPopupHandler_=MA.prototype.openPopupHandler_;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],MA.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],MA.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],MA.prototype,"ytRendererBehavior",void 0);
_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],MA.prototype,"ytEventForwardingBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],MA.prototype,"data",void 0);_.B([_.H({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.k("design:type",Boolean)],MA.prototype,"primaryIsCancel",void 0);_.B([_.H({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.k("design:type",Boolean)],MA.prototype,"isCancelButtonHidden",void 0);
_.B([_.H({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.k("design:type",Boolean)],MA.prototype,"isCheckboxHidden",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],MA.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.B([_.H({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.k("design:type",Boolean)],MA.prototype,"useOverlayForSpinner_",void 0);
_.B([_.H({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.k("design:type",Boolean)],MA.prototype,"showSpinner_",void 0);_.B([_.H({value:!1}),_.k("design:type",Boolean)],MA.prototype,"isActionInProgress_",void 0);_.B([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.k("design:type",Boolean)],MA.prototype,"hasHeaderImageWidth_",void 0);
_.B([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.k("design:type",Boolean)],MA.prototype,"hasLoadingMessage",void 0);_.B([_.V("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],MA.prototype,"openPopupHandler_",null);_.B([_.V("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],MA.prototype,"closePopupHandler_",null);
_.B([_.W("data.headerImage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],MA.prototype,"onHeaderImageChanged_",null);_.B([_.W("data.headerImageWidth"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],MA.prototype,"onHeaderImageWidthChanged_",null);_.B([_.W("data.thumbnail"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],MA.prototype,"onThumbnailChanged_",null);
_.B([_.V("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],MA.prototype,"onYtNavigate_",null);_.B([_.V("yt-img-shadow-loaded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],MA.prototype,"onThumbnailLoaded_",null);_.B([_.V("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.bT]),_.k("design:returntype")],MA.prototype,"onYtServiceRequestSent_",null);
_.B([_.V("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Ht]),_.k("design:returntype")],MA.prototype,"onYtServiceRequestCompleted_",null);MA=_.B([_.JZ({is:"yt-confirm-dialog-renderer",noInjection:!0})],MA);var Oze;var jTm;var L28=function(){return _.m.apply(this,arguments)||this};
_.E(L28,_.m);L28.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.n(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
L28.prototype.computeConfirmButton_=function(p){var x={text:p.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};p.confirmNavigationEndpoint?x.navigationEndpoint=p.confirmNavigationEndpoint:p.confirmServiceEndpoint&&(x.serviceEndpoint=p.confirmServiceEndpoint);return x};
L28.prototype.computeShowTitle_=function(p){return!(p==null||!p.title)};
var DB=L28;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],DB.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],DB.prototype,"data",void 0);_.B([_.H({computed:"computeShowTitle_(data)"}),_.k("design:type",Boolean)],DB.prototype,"showTitle",void 0);DB=_.B([_.JZ({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],DB);
_.P(DB,"yt-fancy-dismissible-dialog-renderer",function(){if(jTm===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;Oze===void 0&&(Oze=document.createElement("template"));var N=Oze;F.call(x,N.content.cloneNode(!0),p.content.firstChild);jTm=p}p=jTm;return p});var PS_;var TLk;var BLH=function(){var p=_.m.apply(this,arguments)||this;p.spinnerActive=!1;return p};
_.E(BLH,_.m);BLH.prototype.created=function(){ZF8(2201)};
BLH.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
BLH.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
var fv=BLH;fv.prototype.onIronOverlayClosed=fv.prototype.onIronOverlayClosed;fv.prototype.onIronOverlayOpened=fv.prototype.onIronOverlayOpened;_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],fv.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.jC),_.k("design:type",Object)],fv.prototype,"tpYtIronOverlayBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],fv.prototype,"data",void 0);_.B([_.H(),_.k("design:type",Object)],fv.prototype,"spinnerActive",void 0);
_.B([_.V("iron-overlay-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fv.prototype,"onIronOverlayOpened",null);_.B([_.V("iron-overlay-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fv.prototype,"onIronOverlayClosed",null);fv=_.B([_.JZ({is:"yt-loading-renderer",disableElementRegistration:!0})],fv);
_.P(fv,"yt-loading-renderer",function(){if(TLk===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;PS_===void 0&&(PS_=document.createElement("template"));var N=PS_;F.call(x,N.content.cloneNode(!0),p.content.firstChild);TLk=p}p=TLk;return p},{mode:2});var RXD;var kwk;var UOe=function(){var p=_.m.apply(this,arguments)||this;p.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);p.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);p.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";p.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return p};
_.E(UOe,_.m);_.l=UOe.prototype;_.l.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.l.onDarkModeToggledAction=function(p){this.isDarkTheme=p};
_.l.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.l.openPopupHandler_=function(p){p.detail===this.hostElement&&this.hostElement.hidden&&_.lA(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.l.onDismissButtonTap_=function(){var p;this.closeOnDismissButton_.has(((p=this.data)==null?void 0:p.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.lA(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.l.onAcceptButtonTap_=function(){var p;this.closeOnAcceptButton_.has(((p=this.data)==null?void 0:p.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.lA(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.l.computeHasHeader_=function(p){return!!p.headerBackgroundImage};
_.l.computeLayoutStyle_=function(p){return p};
_.l.computePopupSize_=function(p){return p};
_.l.computeIconType_=function(p){return p.dialogIcon&&p.dialogIcon.iconType?p.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":p.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":p.dialogIcon.iconType:""};
_.l.computeIsLogo_=function(p){return!!p.dialogIcon&&!!p.dialogIcon.iconType&&(p.dialogIcon.iconType==="YOUTUBE_LOGO"||p.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||p.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.l.computeHasCustomLogo=function(p){return!(p==null||!p.headerForegroundImage)};
_.l.computeCustomLogo=function(p,x){if(p!=null&&p.headerForegroundImage)return p.headerForegroundImageDark?x?p.headerForegroundImageDark:p.headerForegroundImage:p.headerForegroundImage};
_.l.computeHeaderBackgroundImage=function(p,x){if(p!=null&&p.headerBackgroundImage)return x&&(p==null?0:p.headerBackgroundImageDark)?p.headerBackgroundImageDark:p.headerBackgroundImage};
_.l.shouldShowIconContainer=function(p,x){return p&&!x};
_.l.shouldShowNonYouTubeIcon=function(p,x){return!p&&!x};
_.l.getLogoImageId=function(p){var x,F,N;return(p=(x=this.computeCustomLogo(p,this.isDarkTheme))==null?void 0:(F=x.thumbnails)==null?void 0:(N=F[0])==null?void 0:N.height)&&p%31===0?"custom-logo-with-padding":"custom-logo"};
var Kv=UOe;Kv.prototype.openPopupHandler_=Kv.prototype.openPopupHandler_;Kv.prototype.dataChanged_=Kv.prototype.dataChanged_;_.B([_.u(_.P6.YtRendererstamperBehavior),_.k("design:type",Object)],Kv.prototype,"ytRendererstamperBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],Kv.prototype,"ytRendererBehavior",void 0);_.B([_.H(),_.k("design:type",Boolean)],Kv.prototype,"isDarkTheme",void 0);
_.B([_.H({computed:"computeCustomLogo(data, isDarkTheme)"}),_.k("design:type",Object)],Kv.prototype,"customLogo",void 0);_.B([_.H({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.k("design:type",Object)],Kv.prototype,"headerBackgroundImage",void 0);_.B([_.H(),_.k("design:type",Object)],Kv.prototype,"data",void 0);_.B([_.H({computed:"computeHasHeader_(data)"}),_.k("design:type",Boolean)],Kv.prototype,"hasHeader",void 0);
_.B([_.H({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.k("design:type",Object)],Kv.prototype,"layoutStyle",void 0);_.B([_.H({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.k("design:type",Object)],Kv.prototype,"popupSize",void 0);_.B([_.H({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Kv.prototype,"hasLogo",void 0);
_.B([_.H({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Kv.prototype,"hasCustomLogo",void 0);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Kv.prototype,"dataChanged_",null);_.B([_.V("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Kv.prototype,"openPopupHandler_",null);
Kv=_.B([_.JZ({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],Kv);
_.P(Kv,"yt-upsell-dialog-renderer",function(){if(kwk===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;RXD===void 0&&(RXD=document.createElement("template"));var N=RXD;F.call(x,N.content.cloneNode(!0),p.content.firstChild);kwk=p}p=kwk;return p},{mode:2});var izm=_.mO(function(p){return _.Z("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.Z(_.D9,{cond:p.title,then:function(x){return _.Z("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},x)}}))},"Uf"),IAc=_.mO(function(p){return _.Z("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.Z(_.Es,{data:p.closeButton},{buttonViewModel:function(x){return _.Z("div",null,_.Z(_.nV,{data:x.data}))}}))},"Vf"),$OH=_.mO(function(p){var x=
p.data;
return _.Z(_.TG,null,_.Z("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.Z("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.Z(_.D9,{cond:function(){return!!x().image&&!!x().title},
then:function(){return _.Z(_.VE,{data:function(){return x().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.Z("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.Z(_.D9,{cond:function(){return x().title},
then:function(F){return _.Z("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},F)}}),_.Z(_.D9,{cond:function(){return x().primaryGenre},
then:function(F){return _.Z("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},F)}}))),_.Z(_.D9,{cond:function(){var F=x().description;
return F&&F.length<=150},
then:function(){return _.Z("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.Z("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return x().description}))}}))},"Wf"),eXH=_.mO(function(p){p=p.infoRows;
var x=_.J().resolve(_.mz),F=_.S("enable_displaying_ppn");return _.Z("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.Z(_.ft,{each:p},function(N){return _.Z("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.Z(_.D9,{cond:function(){return N.label},
then:function(h){return _.Z("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},h)}}),_.Z(_.D9,{cond:function(){return N.attributedLabel},
then:function(h){return _.Z("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.Z(_.KQ,{text:h,noPreWrap:!0}))}}),_.Z(_.D9,{cond:function(){return N.value},
then:function(h){return _.Z("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},h)}}),_.Z(_.D9,{cond:function(){return N.attributedValue},
then:function(h){return _.Z("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.Z(_.KQ,{text:h,noPreWrap:!0}))}}))}),_.Z(_.D9,{cond:function(){return F&&x.clientData.has("post_play_nonce")},
then:function(){return _.Z("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.Z("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.Z("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},x.getData("post_play_nonce")))}}))},"Xf"),pFe=_.mO(function(p){var x=p.data;
return _.Z("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.Z(izm,{title:function(){return x().dialogTitle}}),_.Z($OH,{data:x}),_.Z(_.D9,{cond:function(){return x().infoRow},
then:function(F){return _.Z(eXH,{infoRows:F})}}),_.Z(IAc,{closeButton:function(){return x().closeButton}}))},"Yf");
pFe.idomCompat=!0;_.o7(pFe,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.G2}});_.o7(_.mO(function(p){var x=p.data;return _.Z("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.Z(_.VE,{data:function(){return x().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.Z("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.Z("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.Z(_.D9,{cond:function(){var F=x().ytLogo;return F?F.iconType:null},
then:function(F){return _.Z(_.DS,{icon:F,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.Z("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.Z("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.Z(_.KQ,{text:function(){return x().title}})),_.Z("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.Z(_.KQ,{text:function(){return x().body}})),_.Z("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.Z(_.KQ,{text:function(){return x().verifyStateText}}))),
_.Z("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.Z("div",null,_.Z(_.Es,{data:function(){return x().dismissButton}},{buttonViewModel:_.nV})),_.Z("div",null,_.Z(_.Es,{data:function(){return x().linkParentButton}},{buttonViewModel:_.nV})))))},"Zf"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.G2}});var xk8=_.mO(function(p){var x=p.data;return _.Z("installment-agreements-view-model",{class:_.$L("ytInstallmentAgreementsViewModelHost")},_.Z(_.ft,{each:_.GD(function(){return x().agreements},[])},function(F){return _.Z("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.Z("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.Z(_.KQ,{text:F.label})),_.Z("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.Z(_.Es,{data:function(){return F.openButton}},{buttonViewModel:_.nV})))}))},
"$f");
xk8.idomCompat=!0;var Fu8=_.mO(function(p){return _.Z("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.Z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.Z(_.KQ,{text:function(){return p.data().inviteMessage}})),_.Z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.Z(_.KQ,{text:function(){return p.data().attributedAccountSectionHeaderText}})),_.Z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.Z(_.Es,{data:function(){return p.data().accountAvatar}},{avatarViewModel:_.bt}),_.Z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.Z(_.KQ,{text:function(){return p.data().accountName}}),_.Z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.Z(_.KQ,{text:function(){return p.data().handle}}))),_.Z(_.Es,{data:function(){return p.data().trailingButton}},{buttonViewModel:_.nV})),_.Z("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.Z(_.KQ,{text:function(){return p.data().termsOfService}})))},"ag");var Ndm=_.mO(function(p){var x=_.a(_.ct(function(){var pp,Kp;return((pp=p.data().createPlaylistDialogFormSchema)==null?0:(Kp=pp.initialValues)==null?0:Kp.title)?p.data().createPlaylistDialogFormSchema.initialValues.title:""})),F=x.next().value,N=x.next().value;
x=_.a(_.ct(function(){p.data();return!1}));
var h=x.next().value,c=x.next().value;x=_.a(_.ct(function(){p.data();return!1}));
var M=x.next().value,f=x.next().value;x=_.a(_.ct(function(){var pp,Kp;return(pp=p.data().createPlaylistDialogFormSchema)==null?void 0:(Kp=pp.initialValues)==null?void 0:Kp.visibility}));
var K=x.next().value,t=x.next().value;x=_.a(_.ct(function(){p.data();return!1}));
var d=x.next().value,v=x.next().value;x=_.a(_.ct(function(){var pp,Kp;return(pp=p.data().createPlaylistDialogFormSchema)==null?void 0:(Kp=pp.initialValues)==null?void 0:Kp.isCollaborative}));
var C=x.next().value,X=x.next().value,Q=_.oc();_.rx(function(){var pp=Q.value.querySelector("textarea");pp&&(pp.value=F())});
_.J9(function(){var pp;_.T68((pp=p.data().createPlaylistDialogFormSchema)==null?void 0:pp.id,{onSubmit:function(){var Kp=F();var sM=K(),np=C(),Jz=p.data();Kp={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:Kp,privacyStatus:sM,videoIds:Jz.videoIds,sourcePlaylistId:Jz.sourcePlaylistId,params:np?Jz.createPlaylistParamsCollaborationEnabled:Jz.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.J().resolve(_.RD).resolveCommand(Kp)},
isValid:function(){return h()&&!M()&&!d()}})});
var b=function(pp){if(pp!==void 0&&(N(pp),!h()&&pp.length>0&&c(!0),h())){var Kp=CHc(p.data());if(Kp){var sM=Kp.minLength;Kp=Kp.maxLength;sM&&pp.length<sM?f(!0):Kp&&pp.length>Kp?f(!0):f(!1)}}},A=function(){var pp=!(!C()||K()!=="PRIVATE");
v(pp)},Y=function(pp){pp!==void 0&&(t(pp),A())},O=function(){if(d())return raH(p.data())},Fw=function(){X(!C());
A()},R=function(){return{validate:function(pp){if(h()){var Kp=CHc(p.data());
if(Kp){var sM=Kp.minLength;Kp=Kp.translations;if(sM&&pp.length<sM)return Kp==null?void 0:Kp.minLengthErrorMessage}}}}},ld=function(){var pp=CHc(p.data()),Kp=pp==null?void 0:pp.maxLength,sM;
pp=pp==null?void 0:(sM=pp.translations)==null?void 0:sM.maxLengthErrorMessage;if(Kp&&pp)return{maxChars:Kp,errorMessage:pp}};
return _.Z("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.Z("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:Q},_.Z(_.Es,{data:function(){return p.data().playlistTitle}},{textFormFieldViewModel:function(pp){return _.Z(_.MA8,{data:pp.data,
text:F,onInput:b,validation:R,characterLimit:ld})},
textFieldViewModel:function(pp){return _.Z(_.avH,{data:pp.data,text:F,onInput:b,validation:R,characterLimit:ld})}})),_.Z("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.Z(_.Es,{data:function(){return p.data().playlistVisibility}},{dropdownViewModel:function(pp){return _.Z(_.rZc,{data:pp.data,
onSelected:Y,error:O})}})),_.Z(_.D9,{cond:function(){return!!p.data().playlistCollaborate},
then:function(){return _.Z("div",null,_.Z(_.Es,{data:function(){return p.data().playlistCollaborate}},{switchListItemViewModel:function(pp){return _.Z(_.OkD,{data:pp.data,
onTap:Fw})}}))}}))},"bg");var hIm=_.mO(function(p){var x=_.GD(p.noPadding,!1),F=function(){var h,c;return(c=(h=p.data().logo.accessibilityData)==null?void 0:h.label)!=null?c:""},N={};
return _.Z("upsell-view-model",{class:_.$L("ytUpsellViewModelHost",(N.ytUpsellViewModelHostNoPadding=function(){return x()},N))},_.Z("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.Z(_.D9,{cond:function(){return _.Us(p.data().logo)},
then:function(h){return _.Z(_.VE,{data:h,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:F})}})),_.Z("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.Z(_.KQ,{text:function(){return p.data().title}})),_.Z("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.Z(_.ft,{each:function(){var h;
return(h=p.data().subtitles)!=null?h:[]},
keyBy:"INDEX"},function(h){return _.Z("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.Z(_.KQ,{text:h}))})),_.Z("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.Z(_.ft,{each:function(){var h;
return(h=p.data().benefitInfos)!=null?h:[]},
keyBy:"INDEX"},function(h){return _.Z(_.D9,{cond:function(){return h().info},
then:function(c){return _.Z("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.Z(_.DS,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.Z(_.KQ,{text:c}))}})})),_.Z("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.Z(_.ft,{each:function(){var h;
return(h=p.data().legalInfos)!=null?h:[]},
keyBy:"INDEX"},function(h){return _.Z("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.Z(_.KQ,{text:h}))})))},"cg");var lUD=_.mO(function(p){var x=p.data;p={};p=(p.ytMiniAppScoreChallengeViewModelScoreRadial=!0,p.ytMiniAppScoreChallengeViewModelDarkScoreRadial=E5H(),p);return _.Z("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.Z("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return x().title}),_.Z("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return x().subtitle}),_.Z("div",{class:_.pQ(p)},_.Z("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return x().score})),_.Z("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return x().prompt}))},"dg");var c4H=function(){this.store=_.u8();this.formId=""};var aU8=_.mO(function(p){function x(f){if(f&&(f=_.r(f,_.Zt)))return Object.assign({},f,{isSelected:c()})}
var F=_.a(_.ct(function(){var f,K;return(K=(f=_.r(p.data().option,_.Zt))==null?void 0:f.isSelected)!=null?K:!1})),N=F.next().value,h=F.next().value,c=N;
_.J9(function(){var f;_.T68((f=p.data().formSchema)==null?void 0:f.id,{onSubmit:function(){var K=_.J().resolve(_.RD),t=!!p.data().selectedCommand,d=!!p.data().unselectedCommand;if(c()){if(t)var v=p.data().selectedCommand}else d&&(v=p.data().unselectedCommand);v=_.g$(v);x(p.data().option)&&!v?(K="",!t&&d?K="selected ":t&&!d&&(K="unselected "),t=new _.qE("No "+K+"command found for SelectionListItemFormViewModel"),_.zj(t)):v&&K.resolveCommand(v)},
isValid:function(){return!0}})});
var M=function(){h(!c())};
_.E_(function(){var f,K,t=(f=p.data())==null?void 0:(K=f.formSchema)==null?void 0:K.id;t&&_.LwH()().delete(t)});
return _.Z("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.Z("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.Z(_.KQ,{text:function(){return p.data().paragraph}})),_.Z(_.D9,{cond:function(){return x(p.data().option)},
then:function(f){return _.Z(_.Js,{data:f,isCompact:!0,hideSelectionTextChevron:!0,onTap:M,disableHorizontalPadding:!0})}}))},"eg");var Qve=_.JR({avatarStackViewModel:_.pFC}),M9X=_.xp(z4k);_.iK(z4k);var DkH=_.mO(function(p){var x=_.B6c(function(){return p.data().formId}),F=x.onSubmit,N=x.isValid;
return _.Z("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.Z(_.Es,{data:function(){return p.data().panelFooter}},{panelFooterViewModel:function(h){return _.Z(_.O3,{data:h.data,
disablePadding:!0,disablePrimaryButton:function(){return!N()},
onClickPrimaryButton:function(){F()}})}}))},"fg");var qaH=_.mO(function(p){var x=_.Vg(p,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),F=x.elRefCallback;p=x.iconWiz;var N=x.assetWiz,h=x.assetType,c=x.titleWiz,M=x.leadingActionHeaderWiz,f=x.trailingActionHeaderWiz,K=x.headerPosition,t=x.contentWiz,d=x.buttonLayout,v=x.buttonStyle,C=x.primaryButtonWiz,X=x.secondaryButtonWiz,Q=x.contentAlignment,b=x.isFullscreen,A=x.width,Y=x.maxHeight,O=x.isHeaderWizDefined,
Fw=x.headerWiz,R=x.isFooterWizDefined,ld=x.footerWiz;x=_.oc(function(RJ){F==null||F(RJ)});
var pp=N?function(){return N({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,Kp=C?function(){var RJ={};
return C({buttonOverrides:function(){return{style:(v==null?void 0:v())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.$L((RJ["yt-spec-dialog-layout__dialog-layout-button"]=!0,RJ["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(d==null?void 0:d())===0||(d==null?void 0:d())===2},RJ))})}:void 0,sM=X?function(){var RJ={};
return X({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.$L((RJ["yt-spec-dialog-layout__dialog-layout-button"]=!0,RJ["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(d==null?void 0:d())===0||(d==null?void 0:d())===2},RJ))})}:void 0,np=function(){return(!!c||!!M||!!f)&&K()===0},Jz={},Y$={},xB={},qI={};
return _.Z("dialog-layout",{el:x,class:_.$L((Jz["yt-spec-dialog-layout"]=!0,Jz["yt-spec-dialog-layout--dialog-layout-fullscreen"]=b,Jz["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!b()},Jz["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return Y()===1},Jz["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(h==null?void 0:h())===1},Jz)),
style:function(){return(A==null?void 0:A())!==void 0?"width: "+A+"px;":""}},p?_.Z("div",{class:_.$L((Y$["yt-spec-dialog-layout__dialog-layout-icon"]=!0,Y$["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!N&&K()===1},Y$["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return Q()===1},Y$))},_.Z(p,null)):null,_.Z(_.D9,{cond:O,
then:function(){return Fw?_.Z("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.Z(Fw,null)):null},
else:function(){return _.Z(_.TG,null,_.Z(_.D9,{cond:np,then:function(){return _.Z(fUX,{contentAlignment:Q,LeadingActionHeader:M,TrailingActionHeader:f,Title:c,isAboveAsset:!!pp})}}),pp?_.Z("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.Z(pp,null)):null)}}),_.Z("div",{class:_.$L((xB["yt-spec-dialog-layout__dialog-layout-container"]=!0,xB["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(Q==null?void 0:Q())===1},xB["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!c&&!Fw||!!pp&&(K==null?void 0:K())===0},xB))},_.Z(_.D9,{cond:function(){return c&&!Fw&&(K==null?void 0:K())===1},
then:function(){return _.Z(fUX,{contentAlignment:Q,LeadingActionHeader:M,TrailingActionHeader:f,Title:c,isAboveAsset:!1})}}),t?_.Z("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.Z("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.Z(t,null))):null,_.Z(_.D9,{cond:R,
then:function(){return ld?_.Z("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.Z(ld,null)):null}}),Kp||sM?_.Z(Kua,{footerClasses:_.$L((qI["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,qI["yt-spec-dialog-layout__dialog-layout-footer"]=!0,qI["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(d==null?void 0:d())===2},qI["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(d==null?void 0:d())===1},qI)),
PrimaryButton:Kp,SecondaryButton:sM}):null))},"gg"),fUX=_.mO(function(p){var x=_.Vg(p,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),F=x.contentAlignment,N=x.LeadingActionHeader;p=x.Title;var h=x.TrailingActionHeader,c=x.isAboveAsset,M=x.enableLeadingActionHeader;x={};return _.Z("div",{class:_.$L((x["yt-spec-dialog-layout__dialog-header-container"]=!0,x["yt-spec-dialog-layout__dialog-header"]=!0,x["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=c,x["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(F==null?void 0:F())===1&&M()},x))},_.Z(_.D9,{cond:function(){return M()},
then:function(){return N?_.Z("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.Z(N,null)):null}}),p?_.Z("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.Z(p,null)):null,h?_.Z("div",null,_.Z(h,null)):null)},"hg"),Kua=_.mO(function(p){var x=p.footerClasses;
var F=p.PrimaryButton;p=p.SecondaryButton;return _.Z("div",{class:x},p?_.Z(p,null):null,F?_.Z(F,null):null)},"ig");var ZAc=_.mO(function(p){var x=p.data;return _.Z("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.Z("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.Z(_.Es,{data:function(){return x().avatar}},{avatarViewModel:_.bt})),_.Z("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.Z(_.KQ,{text:function(){return x().title}})),_.Z(_.KQ,{text:function(){return x().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"jg");var t9c=_.mO(function(p){var x=p.data;return _.Z("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.Z("div",{class:"ytAccessConfirmationViewModelContent"},_.Z(_.Es,{data:function(){return x().dualAvatar}},{dualAvatarViewModel:function(F){return _.Z("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.Z(_.cBH,{data:F.data}))}}),_.Z("h2",{class:"ytAccessConfirmationViewModelTitle"},_.Z(_.KQ,{text:function(){return x().title}})),_.Z(_.KQ,{text:function(){return x().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"kg");var dk8=_.mO(function(p){var x=p.data;var F=void 0;p=_.a(_.hu("",void 0,"O14qgc"));var N=p.next().value,h=p.next().value,c,M=function(){h("");var t;(t=F)!=null&&t.store.dispatch(_.F4({type:"RESET_COMMAND_MAP"}))};
_.J9(function(){F=new c4H;window.addEventListener("yt-popup-closed",M)});
_.rx(function(){if(F&&c!==x().formId){var t=F,d=x();d.formId&&(t.formId=d.formId,t.store.dispatch(_.F4({type:"SET_CURRENT_FORM_ID",payload:{formId:t.formId}})));c=x().formId}});
_.E_(function(){window.removeEventListener("yt-popup-closed",M)});
var f=function(t,d,v){d.key&&v&&d.key!==N()&&(h(d.key),F&&d.command&&F.store.dispatch(_.F4({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:v,command:d.command}})))},K=function(){if(_.r(x().content,_.l2a))return!(N==null?0:N())};
return _.Z("yt-dialog-view-model",{class:_.$L("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.Z(qaH,{headerWiz:function(){return _.Z("span",{skip:!0},_.Z(_.Es,{data:function(){return x().header}},{dialogHeaderViewModel:function(t){return _.Z(M9X,{data:t.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!x().header},
contentWiz:function(){return _.Z("span",{skip:!0},_.Z(_.Es,{data:function(){return x().customContent?x().customContent:x().content}},{basicContentViewModel:_.BxH,
createPlaylistDialogFormViewModel:Ndm,collaborativePlaylistInviteMessageViewModel:Fu8,miniAppScoreChallengeViewModel:lUD,radioButtonGroupViewModel:function(t){return _.Z(_.JZD,{data:t.data,selectedKey:N,onSelected:f})},
selectionListItemFormViewModel:aU8,upsellViewModel:function(t){return _.Z(hIm,{data:t.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:ZAc,installmentAgreementsViewModel:xk8,accessConfirmationViewModel:t9c,listViewModel:_.kEC}))},
footerWiz:function(){return _.Z("span",{skip:!0},_.Z(_.Es,{data:function(){return x().footer}},{panelFooterViewModel:function(t){return _.Z(_.O3,{data:t.data,
disablePadding:!0,disablePrimaryButton:K})},
formPanelFooterViewModel:DkH,formFooterViewModel:function(t){return _.Z(_.hnH,{data:t.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!x().footer}}))},"lg");
dk8.idomCompat=!0;_.o7(dk8,"yt-dialog-view-model",{props:{data:_.G2},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var vYa=_.mO(function(p){var x=p.data;p={};return _.Z("yt-panel-header-view-model",{class:_.$L("yt-panel-header-view-model-wiz",(p["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!x().shouldHideDivider},p["yt-panel-header-view-model-wiz--compact"]=function(){return!!x().subtitle},p))},_.Z("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.Z(_.D9,{cond:function(){return x().title},
then:function(F){return _.Z(_.KQ,{text:F,className:"yt-panel-header-view-model-wiz__title"})}}),_.Z(_.D9,{cond:function(){return x().subtitle},
then:function(F){return _.Z(_.KQ,{text:F,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.Z("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.Z(_.Es,{data:function(){return x().trailingButtons}},{buttonViewModel:function(F){return _.Z(_.nV,{data:F.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"mg");
vYa.idomCompat=!0;var J4D=_.mO(function(p){var x=_.h0(function(c){var M;if((M=p.skipContentClick)==null?0:M.call(p))return!1;p.onContentWrapperClick(c);return!0}),F,N,h;
return _.Z("div",{class:_.$L("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return p.isAnimating()?"transform: translateY("+p.currentY()+"px);transition: 0.2s":""}},(F=p.header)==null?void 0:F.call(p),_.Z("div",{id:p.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.a4({"max-height":(0,_.v3)(p.maxHeightForContentWrapper)}),"on:scroll":byH(p.onScroll),"on:touchmove":byH(function(c){return void c.stopPropagation()})},_.Z("div",{el:{onRender:p.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":x},(N=p.body)==null?void 0:N.call(p))),(h=p.footer)==null?void 0:h.call(p))},"ng");
J4D.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var CNm=_.mO(function(p){var x=_.GD(p.leadingLabel),F=_.GD(p.trailingLabel),N=_.GD(p.footerButtonType),h=function(){return x()||F()||p.hasPrimaryButton()||p.hasSecondaryButton()},c={},M=_.$L("yt-spec-bottom-sheet-layout__primary-button",(c["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return N()===0&&p.hasPrimaryButton()},c["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return N()===1&&p.hasPrimaryButton()},c["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return N()===2&&p.hasPrimaryButton()},c["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return N()===3&&p.hasPrimaryButton()},c));
c={};var f=_.$L("yt-spec-bottom-sheet-layout__secondary-button",(c["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return N()===1&&p.hasSecondaryButton()},c["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return N()===2&&p.hasSecondaryButton()},c["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return N()===3&&p.hasPrimaryButton()},c));
return _.Z(_.D9,{cond:p.hasFooterOverride,then:function(){var K;return _.Z(_.TG,null,(K=p.footerOverride)==null?void 0:K.call(p))},
else:function(){return _.Z(_.D9,{cond:h,then:function(){return _.Z("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.Z(_.D9,{cond:function(){return x()||F()},
then:function(){var K={};return _.Z("div",{class:_.$L("yt-spec-bottom-sheet-layout__footer-label-wrapper",(K["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!p.hasPrimaryButton()},K))},_.Z(_.D9,{cond:x,
then:function(){return _.Z("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},x)}}),_.Z(_.D9,{cond:F,
then:function(){return _.Z("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},F)}}))}}),_.Z(_.D9,{cond:function(){return p.hasPrimaryButton()||p.hasSecondaryButton()},
then:function(){var K={};return _.Z("div",{class:_.$L("yt-spec-bottom-sheet-layout__footer-button-wrapper",(K["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.H$j,K))},_.Z(_.D9,{cond:function(){return p.hasSecondaryButton()&&N()!==0},
then:function(){var t;return _.Z("div",{class:f},(t=p.secondaryButton)==null?void 0:t.call(p))}}),_.Z(_.D9,{cond:p.hasPrimaryButton,
then:function(){var t;return _.Z("div",{class:M},(t=p.primaryButton)==null?void 0:t.call(p))}}))}}))}})}})},"og");
CNm.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var Sa8=_.mO(function(p){var x=_.GD(p.title),F=_.GD(p.subtitle),N=_.h0(function(M){var f;(f=p.touchstart)==null||f.call(p,M);return!1}),h=_.h0(function(M){var f;
(f=p.touchmove)==null||f.call(p,M);return!1}),c=_.h0(function(M){var f;
(f=p.touchend)==null||f.call(p,M);return!1});
return _.Z("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:p.headerId,"on:touchstart":N,"on:touchmove":h,"on:touchend":c},_.Z("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.Z(_.D9,{cond:p.hasHeaderOverride,then:function(){var M;return _.Z(_.TG,null,(M=p.headerOverride)==null?void 0:M.call(p))},
else:function(){var M={};return _.Z("div",{class:_.$L((M["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,M["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=x,M))},_.Z("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.Z(_.D9,{cond:x,then:function(){return _.Z(_.TG,null,_.Z("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},x),_.Z(_.D9,{cond:F,then:function(){return _.Z("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
F)}}))}})),_.Z(_.D9,{cond:function(){return x()&&p.hasActionHeader()},
then:function(){var f;return _.Z("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(f=p.actionHeader)==null?void 0:f.call(p))}}))}}))},"pg");
Sa8.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.mO(function(p){var x={stack:[],error:void 0,hasError:!1};try{var F=function(){xB().dispatch("Close Sheet",{clientHeight:C(),maxHeight:0});setTimeout(function(){Aa_()},250)},N=function(){document.body.style.overscrollBehavior="";
Y$.isFullScreen[0]()?Y$.currentY[0]()>=60?xB().dispatch("Snap To Neutral Position",{maxHeight:pp()}):xB().dispatch("Snap To Full Screen",{maxHeight:sM()}):Y$.currentY[0]()>=60?F():Y$.currentY[0]()<=-60&&Y()>pp()?xB().dispatch("Snap To Full Screen",{maxHeight:sM()}):xB().dispatch("Snap To Neutral Position",{maxHeight:pp()})},h=function(RJ){RJ.preventDefault();
xB().dispatch("Touch Move",{event:RJ,contentScrollable:Y()>pp(),fullContentWrapperHeight:sM(),contentWrapperHeight:pp(),contentHeightMap:Jz,contentWrapperId:"content-wrapper",header:unH(p),footer:unH(p)})},c=function(RJ){document.body.style.overscrollBehavior="none";
RJ.preventDefault();xB().dispatch("Touch Start",{event:RJ})},M=function(){X(window.innerHeight);
Y()>pp()||Kp(Y());Y$.isFullScreen[0]()&&Y()>pp()?xB().dispatch("Snap To Full Screen",{maxHeight:sM()}):xB().dispatch("Snap To Neutral Position",{maxHeight:pp()})},f=function(RJ){typeof np!=="undefined"&&(Jz["content-wrapper"]===void 0&&(Jz["content-wrapper"]=RJ.children[0].clientHeight),O(Jz["content-wrapper"]),Y()>pp()||Kp(Y()))},K=function(RJ){if(!np&&typeof MutationObserver!=="undefined"){var Ik={childList:!0};
"MutationObserver"in window&&(np=new MutationObserver(f.bind(void 0,RJ)),np.observe(RJ,Ik))}};
_.WT(x,_.RG(_.LH));var t=_.a(_.hu(window.innerHeight,void 0,"Knpls")),d=t.next().value,v=t.next().value,C=d,X=v,Q=_.a(_.hu(0,void 0,"N0qFo")),b=Q.next().value,A=Q.next().value,Y=b,O=A,Fw=_.a(_.ct(function(){var RJ=unH(p);return.6*C()-sv_(RJ)-n5a(RJ)})),R=Fw.next().value,ld=Fw.next().value,pp=R,Kp=ld,sM=function(){var RJ=unH(p);
return C()-sv_(RJ)-n5a(RJ)-24-24},np=null,Jz={},Y$={initialY:_.hu(0,void 0,"r4ch9"),
currentY:_.hu(0,void 0,"CvvHV"),isAnimating:_.hu(!1,void 0,"FxET1b"),isFullScreen:_.hu(!1,void 0,"vBIcVe"),maxHeightForContentWrapper:_.ct(pp)},xB=function(){var RJ=null;return function(){if(!RJ){var Ik={initialY:Y$.initialY[0](),currentY:Y$.currentY[0](),isAnimating:Y$.isAnimating[0](),isFullScreen:Y$.isFullScreen[0](),maxHeightForContentWrapper:Y$.maxHeightForContentWrapper[0]()};RJ=yaa(Ik)}return RJ}}();
_.J9(function(){window.addEventListener("resize",M);xB().subscribe(function(RJ){Y$.initialY[1](RJ.initialY);Y$.currentY[1](RJ.currentY);Y$.isAnimating[1](RJ.isAnimating);Y$.isFullScreen[1](RJ.isFullScreen);Y$.maxHeightForContentWrapper[1](RJ.maxHeightForContentWrapper)})});
_.E_(function(){window.removeEventListener("resize",M);np&&(np.disconnect(),np=null)});
var qI=_.$L({"bottom-sheet-content-without-icon":function(){var RJ;return!((RJ=p.shouldShowIcons)==null?0:RJ.call(p))}});
return _.Z("bottom-sheet-layout",null,_.Z(J4D,{contentWrapperId:"content-wrapper",isAnimating:function(){return Y$.isAnimating[0]()},
currentY:function(){return Y$.currentY[0]()},
maxHeightForContentWrapper:function(){return Y$.maxHeightForContentWrapper[0]()},
shouldShowIcons:p.shouldShowIcons,skipContentClick:p.skipContentClick,onScroll:function(){var RJ=document.getElementById("header-wrapper"),Ik=document.getElementById("content-wrapper");if(RJ&&Ik){var vb={};vb=(vb["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,vb["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,vb);RJ.className=Ik.scrollTop>1?_.pQ(vb):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:Aa_,contentWrapperEl:function(RJ){K(RJ);requestAnimationFrame(function(){f(RJ)})},
header:function(){return _.Z(Sa8,{touchstart:c,touchmove:h,touchend:N,title:p.headerTitle,subtitle:p.headerSubtitle,headerId:"header-wrapper",headerOverride:p.headerFn,hasHeaderOverride:p.hasHeaderFn,actionHeader:p.headerActionHeader,hasActionHeader:p.hasHeaderActionHeader})},
footer:function(){return _.Z(CNm,{footerButtonType:p.footerButtonType,leadingLabel:p.footerLeadingLabel,trailingLabel:p.footerTrailingLabel,primaryButton:p.footerPrimaryButton,hasPrimaryButton:p.hasFooterPrimaryButton,secondaryButton:p.footerSecondaryButton,hasSecondaryButton:p.hasFooterSecondaryButton,footerOverride:p.footerFn,hasFooterOverride:p.hasFooterFn})},
body:function(){return _.Z(_.D9,{cond:p.hasContentFn,then:function(){var RJ;return _.Z("div",{class:qI},(RJ=p.contentFn)==null?void 0:RJ.call(p))}})}}))}catch(RJ){x.error=RJ,x.hasError=!0}finally{_.HT(x)}},"qg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var r4_=_.mO(function(p){var x=_.J().resolve(_.gc),F=_.h0(function(){return void x.closeSheet()});
return _.Z("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":F},_.Z(_.D9,{cond:function(){return!!p.header},
then:function(){return _.Z("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},p.header())}}),_.Z(_.D9,{cond:function(){return!!p.content},
then:function(){return _.Z("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},p.content())}}),_.Z(_.D9,{cond:function(){return!!p.footer},
then:function(){return _.Z("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},p.footer())}}))},"rg");
r4_.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var EY8=_.mO(function(p){p=p.data;var x={};return _.Z("yt-sheet-view-model",{class:_.$L("yt-sheet-view-model-wiz",(x["yt-sheet-view-model-wiz--contextual"]=!0,x["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.S("web_disable_backdrop_filter"),x))},_.Z(_.D9,{cond:p,then:function(F){return _.Z(r4_,{header:function(){return _.Z(_.Es,{data:function(){return F().header}},{panelHeaderViewModel:vYa})},
content:function(){return _.Z(_.Es,{data:function(){return F().content}},{listViewModel:function(N){return _.Z(_.kEC,{data:N.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:hIm,miniAppScoreChallengeViewModel:lUD})},
footer:function(){return _.Z(_.Es,{data:function(){return F().footer}},{panelFooterViewModel:_.O3})}})}}))},"sg");
EY8.idomCompat=!0;_.o7(EY8,"yt-sheet-view-model",{props:{data:_.G2}});var gYH=_.mO(function(p){var x=function(){var F;return(F=p.data().enableDebuggingFeatures)!=null?F:!1};
return _.Z("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.Z(_.ft,{each:function(){var F;return(F=p.data().stickers)!=null?F:[]}},function(F){return _.Z(XF8,{data:function(){return F},
debugMode:x})}))},"tg"),XF8=_.mO(function(p){var x=_.Vg(p,{debugMode:!1}).debugMode,F=_.GD(function(){var K;
return(K=p.data().region)==null?void 0:K.w},0),N=_.GD(function(){var K;
return(K=p.data().region)==null?void 0:K.h},0),h=_.GD(function(){var K;
return(K=p.data().region)==null?void 0:K.x},0),c=_.GD(function(){var K;
return(K=p.data().region)==null?void 0:K.y},0),M=_.h0(function(){var K=p.data().onTap;
K&&_.su(K)}),f={};
return _.Z("div",{class:_.$L("ytStoriesStickerLayerViewModelSticker",(f.ytStoriesStickerLayerViewModelDebugMode=x,f)),style:_.a4({width:function(){return 100*F()+"%"},
height:function(){return 100*N()+"%"},
left:function(){return 100*h()+"%"},
top:function(){return 100*c()+"%"},
"flex-direction":function(){return YRk(p.data().flexDirection)},
"justify-content":function(){return wk8(p.data().justifyContent)},
"align-items":function(){return GaH(p.data().alignItems)}}),
"on:click":M},_.Z(_.Es,{data:function(){return p.data().button||p.data().toggleButton}},{buttonViewModel:function(K){return _.Z(_.nV,{data:K.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(K){return _.Z(_.QP,{data:K.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"ug");var zIH=_.mO(function(p){var x=function(){return p.data()},F=_.GD(function(){return x().backgroundColor},0),N=_.GD(function(){return x().actionButtons},[]),h=_.GD(function(){return x().stickerLayer},{}),c={},M=function(){var K,t;
return{animationRef:c,animationConfig:{autoplay:!1,loop:!1,path:(t=(K=x().foregroundAnimation)==null?void 0:K.url)!=null?t:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){p.navigateToNextItemOnLottieComplete()}}}},f=function(){var K,t,d,v,C,X,Q,b;
return{animationConfig:{autoplay:(X=(K=x().backgroundAnimation)==null?void 0:(t=K.settings)==null?void 0:t.autoplay)!=null?X:!1,loop:(Q=(d=x().backgroundAnimation)==null?void 0:(v=d.settings)==null?void 0:v.loop)!=null?Q:!1,path:(b=(C=x().backgroundAnimation)==null?void 0:C.url)!=null?b:"",name:"stories_item_background_animation"}}};
_.rx(function(){if(p.isVisible()){var K;(K=c.lottieEl)==null||K.play()}else{var t;(t=c.lottieEl)==null||t.stop()}});
return _.Z("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.a4({"background-color":function(){return _.QK(F())+";"}})},_.Z("div",{class:"ytStoriesItemViewModelAssetContent"},_.Z(_.D9,{cond:function(){return!!x().backgroundAnimation},
then:function(){return _.Z(_.e6,{data:f,animationName:function(){return f().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.Z(_.D9,{cond:function(){return!!x().backgroundImage},
then:function(){return _.Z(_.VE,{data:function(){return x().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.Z(_.D9,{cond:function(){return!!x().foregroundAnimation},
then:function(){return _.Z(_.e6,{data:M,animationName:function(){return M().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.Z(_.D9,{cond:function(){return!!x().foregroundImage},
then:function(){return _.Z(_.VE,{data:function(){return x().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.Z("div",{class:"ytStoriesItemViewModelTopShadow"}),_.Z(_.Es,{data:function(){return h()}},{storiesStickerLayerViewModel:gYH})),_.Z("div",{class:"ytStoriesItemViewModelBottomShadow"},_.Z("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.h0(p.pauseAutoNavigation)},_.Z(_.ft,{each:N},function(K){return _.Z(Qrc,{data:function(){return K}})}))))},"vg"),Qrc=_.mO(function(p){var x={};
return _.Z("div",{class:_.$L("ytStoriesItemViewModelActionButton",(x.ytStoriesItemViewModelStretchedActionButton=function(){return p.data().size==="STORIES_BUTTON_SIZE_STRETCH"},x))},_.Z(_.Es,{data:function(){return p.data().button}},{buttonViewModel:function(F){return _.Z(_.nV,{data:F.data,
className:"ytStoriesItemViewModelButton"})}}))},"wg");_.o7(_.mO(function(p){var x=_.a(_.ct(function(){var O;return(O=p.data().startIndex)!=null?O:0})),F=x.next().value,N=x.next().value;
x=_.a(_.hu(!1,void 0,"klmjc"));var h=x.next().value,c=x.next().value,M=function(){var O;return(O=p.data().storyItems)!=null?O:[]},f=function(){return p.data().dismissButton},K=function(){var O;
return _.r((O=_.r(f(),_.X6))==null?void 0:O.onTap,_.XY)},t=_.oc(),d,v=function(){var O;
(O=d)==null||O.cancel();d=C(F()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});d.onfinish=function(){C(F()).style.width="100%";var Fw=_.r(M()[F()],O_D),R,ld;Fw!=null&&Fw.foregroundAnimation&&((Fw==null?0:(R=Fw.foregroundAnimation)==null?0:R.url)||(Fw==null?0:(ld=Fw.foregroundAnimation)==null?0:ld.payload))||(F()!==M().length-1?(N(F()+1),v()):K()&&_.QE(K()))}},C=function(O){return t.value.children[O].children[0]},X=function(){for(var O=0;O<F();O++)C(O).style.width="100%"};
x=_.h0(function(){h()?c(!1):(F()===M().length-1&&K()&&_.QE(K()),C(F()).style.width="100%",F()!==M().length-1&&(N(F()+1),v()))});
var Q=_.h0(function(){h()?c(!1):(C(F()).style.width="0%",F()!==0?N(F()-1):N(F()),v())}),b=function(){c(!0)},A=function(){C(F()).style.width="100%";
F()!==M().length-1?(N(F()+1),v()):K()&&_.QE(K())},Y=_.h0(function(){var O;
(O=d)==null||O.pause()});
_.rx(function(){if(h()){var O;(O=d)==null||O.pause()}else{var Fw;(Fw=d)==null||Fw.play()}});
_.rx(function(){X();F()===p.data().startIndex&&v()});
_.J9(function(){X();v()});
return _.Z("yt-stories-viewer-view-model",{class:_.$L("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.Z("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.Z("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":Q,"on:mousedown":Y}),_.Z("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":x,"on:mousedown":Y})),_.Z(_.Es,{data:M},{storiesItemViewModel:function(O,Fw){var R=O.data;return _.Z(_.D9,{cond:function(){return Math.abs(Fw()-
F())<=1},
then:function(){var ld={};return _.Z("div",{class:_.$L("ytStoriesViewerViewModelStoryItem",(ld.ytStoriesViewerViewModelHiddenStoryItem=function(){return Fw()!==F()},ld))},_.Z(zIH,{data:R,
pauseAutoNavigation:b,navigateToNextItemOnLottieComplete:A,isVisible:function(){return Fw()===F()}}))}})}}),_.Z("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:t},_.Z(_.ft,{each:M},function(){return _.Z("div",{class:"ytStoriesViewerViewModelProgressBar"},_.Z("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.Z("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.Z(_.Es,{data:f},{buttonViewModel:_.nV})))},"xg"),"yt-stories-viewer-view-model",{props:{data:_.G2}});_.o7(_.mO(function(p){var x=p.data;var F=_.oc(),N=[];return _.Z("yt-gen-ai-feedback-form-view-model",{el:F,class:"ytGenAiFeedbackFormViewModelHost"},_.Z(_.KQ,{text:function(){return x().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.Z("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.Z(_.Es,{data:function(){return x().feedbackChips}},{toggleButtonViewModel:function(h){var c=h.data;
return _.Z(_.QP,{data:c,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(M){var f=c();f=_.r(f,_.gR);f=_.r(f==null?void 0:f.defaultButtonViewModel,_.X6).trackingParams;M?N.push(f):(M=N.indexOf(f),M>-1&&N.splice(M,1))}})}})),_.Z(_.KQ,{text:function(){return x().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.Z("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.Z(_.Es,{data:function(){return x().submitButton}},{buttonViewModel:function(h){return _.Z(_.nV,{data:h.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){V0H(F.value,N,x().uniqueId)}})}}),_.Z(_.Es,{data:function(){return x().moreFeedbackButton}},{buttonViewModel:function(h){return _.Z(_.nV,{data:h.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"yg"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.G2},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var qA=function(){return _.m.apply(this,arguments)||this};
_.E(qA,_.m);qA.prototype.created=function(){ZF8(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(MY8);var p=_.J().resolve(_.zKX);p&&(p.container=this.ytPopupContainerBehavior);if(p=_.J().resolve(_.gc))p.container=this.ytPopupContainerBehavior;if(p=_.J().resolve(_.Qc)){var x=this.ytPopupContainerBehavior;p.containerWasInjected?_.no(Error("bj")):p.container=x}};
qA.prototype.ensurePopupBelowPlayer=function(p,x){var F=_.J().resolve(_.Bw(_.j3));if(!F||!F.isOnWatch()||!_.Pt())return!1;F=F.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.tF().height>F+this.getPopupHeight(p,x)?(p.style.top="auto",p.style.bottom="0px"):(p.style.top=F+"px",p.style.bottom="auto");return!0};
qA.prototype.getPopupHeight=function(p,x){x&&(p.cachedPopupHeight=0);if(!p.cachedPopupHeight){x=0;var F=p.clientHeight,N=window.getComputedStyle(p);x+=parseInt(N.marginTop,10);x+=parseInt(N.marginBottom,10);p.cachedPopupHeight=F+x}return p.cachedPopupHeight};
qA.prototype.getElement=function(p){return document.createElement(p)};
var sr_=qA;_.B([_.u(RPe.YtPopupContainerBehavior),_.k("design:type",Object)],sr_.prototype,"ytPopupContainerBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],sr_.prototype,"ytComponentBehavior",void 0);sr_=_.B([_.L({disableElementRegistration:!0,is:"ytd-popup-container"})],sr_);
_.P(sr_,"ytd-popup-container",function(){if(VyH!==void 0)return VyH;var p=document.createElement("template");_.g(p,"\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");p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);return VyH=p},{mode:1});var nYt;var y4_={};y4_.YtLogYpcFlowCommandsBehavior=[_.T2.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(p){_.r(p,lmH)&&(p=_.r(p,lmH))&&(p.serializedTransactionFlowLoggingParams?_.GpB(p.serializedTransactionFlowLoggingParams):p.serializedYpcCancelFlowLoggingParams?(p=p.serializedYpcCancelFlowLoggingParams)&&_.nK("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",p):p.serializedYpcResumeFlowLoggingParams?(p=p.serializedYpcResumeFlowLoggingParams)&&_.nK("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",p):p.serializedYpcPauseFlowLoggingParams?(p=p.serializedYpcPauseFlowLoggingParams)&&
_.nK("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",p):p.serializedYpcRefundFlowLoggingParams?(p=p.serializedYpcRefundFlowLoggingParams)&&eg8("YPC_EVENT_TYPE_START",p):p.serializedYpcDeactivateFlowLoggingParams?(p=p.serializedYpcDeactivateFlowLoggingParams)&&_.nK("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",p):p.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(p=p.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.nK("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",p))},
handleLogYpcFlowDismiss_:function(p){_.r(p,hLH)&&(p=_.r(p,hLH),p.serializedTransactionFlowLoggingParams?_.Vvp(p.serializedTransactionFlowLoggingParams):p.serializedYpcCancelFlowLoggingParams?(p=p.serializedYpcCancelFlowLoggingParams)&&_.nK("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",p):p.serializedYpcResumeFlowLoggingParams?(p=p.serializedYpcResumeFlowLoggingParams)&&_.nK("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",p):p.serializedYpcPauseFlowLoggingParams?(p=
p.serializedYpcPauseFlowLoggingParams)&&_.nK("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",p):p.serializedYpcRefundFlowLoggingParams&&(p=p.serializedYpcRefundFlowLoggingParams)&&eg8("YPC_EVENT_TYPE_CANCEL",p))}}];var bAt={};bAt.YtCancelRecurrenceBehavior=[_.nJ.YtComponentBehavior,_.P7v,{attached:function(){var p=this;iFH(this,function(x,F){return p.ypcCancelRecurrenceHandler(x,F)})},
ypcCancelRecurrenceHandler:function(p,x){var F=this;if(!x||!x.ypcCancelRecurrenceEndpoint)return!1;if(!x.ypcCancelRecurrenceEndpoint.params)return _.yL(Error("tl")),!0;_.Tu(this.hostElement);var N=_.uT.instance,h=_.J().resolve(_.Bw(_.CR));N&&_.Yp(N,x)?_.w5(N,x).then(function(c){F.ypcCancelRecurrenceSuccess_(p,x,{data:c})},function(c){F.ypcCancelRecurrenceFailure_(p,x,c)}).thenCatch(function(){_.yL(Error("ul"))}):h?h.requestDataForServiceEndpoint(x).then(function(c){F.ypcCancelRecurrenceSuccess_(p,
x,c)},function(c){F.ypcCancelRecurrenceFailure_(p,x,c)}).thenCatch(function(){_.yL(Error("ul"))}):_.yL(Error("vl"));
return!0},
ypcCancelRecurrenceSuccess_:function(p,x,F){_.kq(this.hostElement);F.data||(F={data:F});F.data&&F.data.actions&&_.Kc(this.hostElement,F.data.actions,this.hostElement);F.data.messageRenderer?xN8(x.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(x=x.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.nK("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",x);_.hG(p,"yt-service-request-completed",F)},
ypcCancelRecurrenceFailure_:function(p,x,F){_.kq(this.hostElement);xN8(x.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.hG(p,"yt-service-request-error",{error:F,params:[p,x]})}}];var A4m=function(p,x){_.x$.call(this,x)};
_.E(A4m,Xq_);var uH8={};uH8.YtCompleteTransactionBehavior=[_.nJ.YtComponentBehavior,_.P7v,{attached:function(){var p=this;iFH(this,function(x,F){return p.ypcCompleteTransactionHandler(x,F)})},
completeTransaction:function(p,x){var F=this;x={payments_payload:window.btoa(x.integratorData),buybucket_params:p.data.buybucketParams,offer_params:p.data.offerParams};var N=_.J().resolve(_.CR),h=p.data.completeTransactionEndpoint,c=this.get("ypcCompleteTransactionEndpoint.actions",h);c&&_.Kc(this.hostElement,c,this.hostElement);return(c=_.uT.instance)&&_.Yp(c,h)?_.w5(c,h,x).then(function(M){return!M||(M==null?0:M.error)?(M=F.get("data.serializedTransactionFlowLoggingParams",p),_.o9(new NO("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
M))):{data:M}}).then(function(M){return F.handleCompleteTransactionSuccess_(M,p)},function(){return F.handleCompleteTransactionFailure_(p)}):N.requestDataForServiceEndpoint(h,x).then(function(M){return F.handleCompleteTransactionSuccess_(M,p)},function(){return F.handleCompleteTransactionFailure_(p)})},
handleCompleteTransactionSuccess_:function(p,x){p.data||(p={data:p});if(p.data.messageRenderer)return _.o9(new A4m(p.data.messageRenderer));if(p.data.trackingParams){var F=_.b0(),N=_.yR();F&&N&&_.jz(F,N,_.fr(p.data.trackingParams))}x=this.get("data.serializedTransactionFlowLoggingParams",x);p2a(x);return _.qt(p)},
handleCompleteTransactionFailure_:function(p){p=this.get("data.serializedTransactionFlowLoggingParams",p);_.Wg("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",p);return _.o9(new NO("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",p))},
ypcCompleteTransactionHandler:function(p,x){var F=this;if(!x.ypcCompleteTransactionEndpoint)return!1;if(!x.ypcCompleteTransactionEndpoint.transactionParams)return _.yL(Error("wl")),!0;x.ypcCompleteTransactionEndpoint&&x.ypcCompleteTransactionEndpoint.gtmData&&_.dm(x.ypcCompleteTransactionEndpoint.gtmData);var N=_.J().resolve(_.Bw(_.CR));if(N){_.Tu(this.hostElement);var h=_.uT.instance;h&&_.Yp(h,x)?_.w5(h,x).then(function(c){return!c||(c==null?0:c.error)?(c=F.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
x),_.o9(new NO("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",c))):{data:c}}).then(function(c){_.hG(p,"yt-service-request-completed");
F.ypcCompleteTransactionSuccess_(x,c)},function(){return F.ypcCompleteTransactionFailure_(x)}):N.requestDataForServiceEndpoint(x).then(function(c){_.hG(p,"yt-service-request-completed");
F.ypcCompleteTransactionSuccess_(x,c)},function(){return F.ypcCompleteTransactionFailure_(x)})}return!0},
ypcCompleteTransactionSuccess_:function(p,x){_.kq(this.hostElement);x.data||(x={data:x});_.lA(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);x.data.messageRenderer||x.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(p):(_.dm('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",p));x.data.actions&&(p=arm(x.data.actions),x=MGm(x.data.actions),p.length&&_.fc(this.hostElement,
p),x.length&&_.Kc(this.hostElement,x,this.hostElement))},
ypcCompleteTransactionFailure_:function(p){_.kq(this.hostElement);_.lA(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",p,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(p,x,F){if(x=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",x))x={serializedTransactionFlowLoggingParams:x},F&&(x.errorType=F),_.E$(p,x),_.Xx()}}];var YaH={};YaH.YtEndpointHandlerWithYpcBehavior=[_.P7v,_.T2.YtActionHandlerBehavior,[{openWalletDialog:function(p,x,F,N,h,c,M){var f=this,K=_.GO();x=x.replace(/-/g,"+").replace(/_/g,"/");var t=_.rH().get("hl");_.tnk(_.la(_.Hg),x,K.resolve,h,function(d){c&&c();K.reject(d)},t,function(d){return f.onServerBackendAnalyticEvent_(p,F,d)},this.onDialogClose_.bind(this),N,M);
return K.promise},
openFixFlowDialog:function(p,x,F,N){p=p.replace(/-/g,"+").replace(/_/g,"/");_.la(_.Hg).openFixFlowDialog(p,x,F,N)},
onDialogClose_:function(){_.lA(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(p,x,F){p.fire("yt-commerce-action-init-done");x&&_.fc(this.hostElement,[x,{backend_analytics:F}])}}],
_.FU.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(p,x){p=this.get("data.nativeFlowEndpoint",x);x=this.get("data.fallbackEndpoint",x);p?_.fc(this.hostElement,[p]):x&&_.hG(this.hostElement,"yt-navigate",{endpoint:x})}}],
bAt.YtCancelRecurrenceBehavior,uH8.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 p=this;iFH(this,function(x,F,N){return p.handleYPCEndpoint(x,F,N)});
this.ypcRegisterActionMapJobId_=_.vZ(_.E0,function(){p.registerActionMap(p.buyFlowActionMap_)})},
detached:function(){var p=this;_.E0.cancelJob(this.ypcRegisterActionMapJobId_);_.vZ(_.E0,function(){p.unregisterActionMap(p.buyFlowActionMap_)})},
handleYPCEndpoint:function(p,x,F){var N=x.ypcGetCartEndpoint;if(N){_.Yv("commerce_transaction");var h=N.gtmId;h&&_.tA(h);(N=N.gtmData)&&_.dm(N)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",x)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(p,x),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",x)!=null?(this.handleYPCFixInstrumentEndpoint_(p,x),!0):x.ypcPauseSubscriptionCommand?(TMt(this.hostElement,p,x,F),
!0):x.ypcResumeSubscriptionCommand?(kae(this.hostElement,p,x),!0):x.getPaymentInstrumentsParamsCommand?(jv8(this.hostElement,p,x),!0):x.ypcHandleTransactionEndpoint?(o5k(this.hostElement,p,x,F),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(p,x){var F=this;_.wH("ttcr",void 0,"commerce_transaction");x=x.ypcGetCartEndpoint;var N=x.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,h=N.encryptedPurchaseParams,c=N.serializedTransactionFlowLoggingParams,M=N.serializedPaymentsClientParams,f=this.createGetCartResponseFromParams_(N,x.offerParams,c);this.changeButtonState(p,!0);_.g8(this.openWalletDialog(p,h,N.ypcLogWalletAnalyticDataEndpoint,c,function(){F.changeButtonState(p,!1)},function(){F.changeButtonState(p,
!1)},M).then(function(K){return F.handleBuyFlowCompleteCallback_(p,f,K)},function(){return F.handleOnLoadError(f)}).then(function(K){return void F.handlePostPurchaseSuccess_(p,f,K)},function(K){return void F.handlePostPurchaseError_(K)}),function(){F.changeButtonState(p,!1);
p instanceof Element&&_.hG(p,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(p,x,F){var N=p.completeTransactionEndpoint,h=p.handleTransactionEndpoint;x={data:{offerParams:window.btoa(x),serializedTransactionFlowLoggingParams:F}};h?x.data.handleTransactionEndpoint=h:x.data.completeTransactionEndpoint=N;p.onCartDismissCommand&&(x.data.onCartDismissCommand=p.onCartDismissCommand);return x},
onGetCartServiceRequestCompleted_:function(p,x){var F=this,N=p.target;if(x&&x.data&&x.data.messageRenderer)_.kq(this.hostElement),this.handleMessageRenderer_(x.data.messageRenderer),this.changeButtonState(N,!1);else{var h=this.get("data.encryptedPurchaseParams",x),c=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",x),M=this.get("data.ypcLogWalletAnalyticDataEndpoint",x),f=this.get("data.serializedPaymentsClientParams",x),K=this.getLoggingParams_(x);if(K||h||c)p.stopPropagation(),_.wH("ttcr",
void 0,"commerce_transaction"),h||_.kq(this.hostElement),this.changeButtonState(N,!1),c?_.lA(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.sd("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:c}}},this]):h&&(this.changeButtonState(N,!0),p=null,p=this.openWalletDialog(N,h,M,K,function(){_.kq(F.hostElement);F.changeButtonState(N,!1)},function(){_.kq(F.hostElement);
F.changeButtonState(N,!1)},f),_.g8(p.then(function(t){return F.handleBuyFlowCompleteCallback_(N,x,t)},function(){return F.handleOnLoadError(x)}).then(function(t){return F.handlePostPurchaseSuccess_(N,x,t)},function(t){return F.handlePostPurchaseError_(t)}),function(){F.changeButtonState(N,!1);
_.hG(N,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(p,x){x&&x.endpoint&&x.endpoint.ypcGetCartEndpoint&&!x.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",x.endpoint.ypcGetCartEndpoint)&&_.Kc(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",x.endpoint.ypcGetCartEndpoint)],p.target),_.Tu(this.hostElement),this.changeButtonState(p.target,!0))},
onServiceRequestError_:function(p,x){if(x&&x.params&&x.params.length){x=_.a(x.params);for(var F=x.next();!F.done;F=x.next())if((F=F.value)&&F.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",F.ypcGetCartEndpoint)&&_.Kc(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",F.ypcGetCartEndpoint)],p.target);_.kq(this.hostElement);this.changeButtonState(p.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(p,x,F){var N=F.integratorData;return N==null||N===""||F.error!=null?(N=this.getLoggingParams_(x),String(F.error)==="-1"?(x.data.onCartDismissCommand&&_.Kc(this.hostElement,[x.data.onCartDismissCommand],p),_.o9(new NO("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",N,!0))):_.o9(new NO("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",N))):x.data.handleTransactionEndpoint?OyH(this.hostElement,x.data.handleTransactionEndpoint,{payments_payload:N,funds_guarantee_callback_client_data:F.integratorClientCallbackData}):
this.completeTransaction(x,F)},
handlePostPurchaseSuccess_:function(p,x,F){x=F.data;var N=!1,h,c;if(x&&((h=x.command)==null?0:(c=h.commandExecutorCommand)==null?0:c.commands)){var M,f;h=(M=x.command)==null?void 0:(f=M.commandExecutorCommand)==null?void 0:f.commands;for(M=0;M<h.length;M++)if(_.r(h[M],_.cAD)){N=!0;break}}N||(x&&x.gtmDatas&&x.gtmDatas.length?_.dm(x.gtmDatas[0]):_.dm('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));F.data&&F.data.actions&&(x=arm(F.data.actions),F=MGm(F.data.actions),x.length&&
_.fc(this.hostElement,x),F.length&&_.Kc(this.hostElement,F,p))},
handlePostPurchaseError_:function(p){p&&p.payload&&p.payload.isUserDismiss||_.zj(Error("yl"))},
handleOnLoadError:function(p){p=this.getLoggingParams_(p);return _.o9(new NO("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",p))},
getLoggingParams_:function(p){return this.get("data.serializedTransactionFlowLoggingParams",p)},
handleMessageRenderer_:function(p){var x=_.XG(p,"renderer"),F=_.sd("openPopupConfig");x==="confirmDialogRenderer"&&F&&_.lA(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:F.popupTypeMap[x],popup:p}},this])},
handleYPCFixInstrumentEndpoint_:function(p,x){var F=this,N=x.ypcFixInstrumentEndpoint;x=N.encryptedFixInstrumentParameters;this.logFixFopEvent_(N,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(p,!0);this.openFixFlowDialog(x,function(h,c){F.onFixFlowCompleteCallback_(N,h,c)},function(){return F.changeButtonState(p,!1)},function(){F.changeButtonState(p,!1);
F.logFixFopEvent_(N,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(p,x,F){var N=_.A9("payments.business.integration.scenario.FixInstrument");if(x==N.IntegratorCallbackType.ON_COMPLETE){x="FIX_FOP_EVENT_TYPE_CANCEL";var h=null;F.error!=null?F.error!=N.OnCompleteCallbackError.USER_CANCELLED&&(_.Kc(this.hostElement,[p.errorAction],this.hostElement),x="FIX_FOP_EVENT_TYPE_FAILURE",h="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.Kc(this.hostElement,[p.successAction],this.hostElement),x="FIX_FOP_EVENT_TYPE_SUCCESS");_.Kc(this.hostElement,[p.onFinishAction],
this.hostElement);this.logFixFopEvent_(p,x,h)}},
logFixFopEvent_:function(p,x,F){(p=p.serializedFixFopLoggingParams)?(x={eventType:x,serializedFixFopLoggingParams:p},F!=null&&(x.errorType=F),_.E$("fixFopFlow",x),_.Xx()):_.zj(Error("zl"))},
changeButtonState:function(p,x){_.S("enable_ypc_spinners")&&p&&(p.is==="yt-button-renderer"||p.is==="ytd-button-renderer")&&(p.disabled=x)}}];var wFH=function(p){this.JSC$28488_clientRoot=p;this.feedbackCollectorActionMap={"yt-help-dialog-requested":iyH,"yt-feedback-dialog-requested":U8H,"yt-signal-action-help":IR8,"yt-signal-action-send-feedback":$8m,"yt-send-feedback-action":psD,"yt-user-feedback-endpoint":xi8};_.WZ(_.Vj.getInstance(),this.feedbackCollectorActionMap,this.JSC$28488_clientRoot)},GsH;var V9e=function(p){this.JSC$28493_clientRoot=p;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":FZ8.bind(null,this.JSC$28493_clientRoot),"yt-signal-action-delete-all-downloads":hmm,"yt-signal-action-delete-download":lq8,"yt-signal-action-delete-playlist-download":aq_,"yt-signal-action-install-pwa":Zim,"yt-signal-action-refresh-downloads":KZk,"yt-offline-video-endpoint":diH,"yt-offline-playlist-endpoint":JhD,"yt-update-local-app-setting-command":S18,"yt-offline-orchestration-action-command":EjH,
"yt-signal-action-undo-delete-download":Dim,"yt-local-watch-history-command":QXm};_.WZ(_.Vj.getInstance(),this.downloadManagerActionMap,this.JSC$28493_clientRoot);_.Ys.instance=new _.Ys},WuH;var HA8=function(){var p=_.m.apply(this,arguments)||this;p.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_"};p.remoteApi_=null;return p};
_.E(HA8,_.m);_.l=HA8.prototype;
_.l.ready=function(){_.S("polymer_enable_mdx")&&(cLH({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.S("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.S("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.S("enable_cast_short_lived_lounge_token")}),_.es("yt-remote-connection-change",this.handleConnectionChange_,this),_.es("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=ZUD())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.l.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.l.handleConnectionChange_=function(p){(this.mdxConnected=p)?(p=DaD(),!p&&BYH()&&Rft()&&(p={key:"cast-selector-receiver",name:Rft()}),p=p.name):p=null;this.receiverName=p;_.RR(this.remoteApi_);(this.remoteApi_=ZUD())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.l.handleReceiverAvailabilityChange_=function(){var p=MR8();BYH()&&_.Mq("yt-remote-cast-available")&&p.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=p.length>0};
_.l.handleRemoteQueueChange_=function(){var p=this.currentVideoId_,x=this.currentListId_,F=aY(this.remoteApi_);this.currentVideoId_=F.videoId;this.currentListId_=F.listId;this.currentVideoId_&&_.lA(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.S("polymer_enable_mdx_queue")?this.currentListId_:null,p,x])};
_.l.handleAddToQueueAction_=function(p){p=_.r(p,ja8);this.remoteApi_&&(p.videoId?this.remoteApi_.addVideo(p.videoId):p.playlistId&&this.remoteApi_.addPlaylist(p.playlistId))};
_.l.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.l.handleInsertInQueueAction_=function(p){p=_.r(p,L$_);this.remoteApi_&&p.videoId&&this.remoteApi_.JSC$17385_insertVideo(p.videoId)};
_.l.handleRemoveFromQueueAction_=function(p){p=_.r(p,Pp8);this.remoteApi_&&p.videoId&&this.remoteApi_.JSC$17385_removeVideo(p.videoId)};
var ZB=HA8;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],ZB.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H(),_.k("design:type",Object)],ZB.prototype,"appId",void 0);_.B([_.H(),_.k("design:type",Boolean)],ZB.prototype,"mdxConnected",void 0);_.B([_.H(),_.k("design:type",Boolean)],ZB.prototype,"receiverAvailable",void 0);_.B([_.H(),_.k("design:type",Object)],ZB.prototype,"receiverName",void 0);_.B([_.H(),_.k("design:type",Object)],ZB.prototype,"currentVideoId_",void 0);
_.B([_.H(),_.k("design:type",Object)],ZB.prototype,"currentListId_",void 0);ZB=_.B([_.JZ({is:"yt-mdx-manager",disableElementRegistration:!0})],ZB);_.P(ZB,"yt-mdx-manager",void 0,{mode:2});var mkc;var oY8;var OAa=function(){var p=_.m.apply(this,arguments)||this;p.APP_IDS={ytr:3,ytm:5};p.JSC$18623_timeoutId_=0;p.actionMap={"yt-open-create-family-dialog":"open"};return p};
_.E(OAa,_.m);_.l=OAa.prototype;_.l.created=function(){ZF8(2200)};
_.l.detached=function(){this.observer_&&this.observer_.disconnect()};
_.l.open=function(p,x){var F=this,N=p.serializedYpcFamilyCreateLoggingParams;this.JSC$18623_timeoutId_=setTimeout(this.abort_.bind(this,p.postFlowErrorEndpoint,N),3E4);x&&(this.onReadyCallback_=x);var h=_.n(this.hostElement).querySelector("#unicorn-iframe");N&&N&&$Ce("ypcFamilyCreateFlowStarted",N);_.lQw("family_creation",function(){var c=_.A9("gapi.family_creation.render");_.A9("gapi.config.update")("iframes/family_creation/url",F.getFamilyCreationUrlWithUnicornParams_());var M=3;p.appId&&p.appId in
F.APP_IDS&&(M=F.APP_IDS[p.appId]);M={authUser:_.sd("SESSION_INDEX")||0,clientId:M,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.sd("HL"),initialflow:[4,5,6,7],m:F.isMobile?1:0,onFlowComplete:F.onUnicornFlowComplete_.bind(F,p.postFlowSuccessEndpoint,N),onError:F.onUnicornFlowError_.bind(F,p.postFlowErrorEndpoint,N),onReady:F.onUnicornFlowReady_.bind(F,p.referencePcidParams)};c(h,M)})};
_.l.close=function(){_.n(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.l.onUnicornFlowComplete_=function(p,x){this.close();x&&x&&$Ce("ypcFamilyCreateFlowSucceeded",x);_.hG(this.hostElement,"yt-navigate",{endpoint:p})};
_.l.onUnicornFlowError_=function(p,x){this.close();x&&$Ce("ypcFamilyCreateFlowCancelled",x);_.hG(this.hostElement,"yt-navigate",{endpoint:p})};
_.l.onUnicornFlowReady_=function(p){var x=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();p&&_.A9("gapi.family_creation.setConfig")(0,p);this.observer_=new MutationObserver(function(){_.n(x.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.n(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.n(this.hostElement).querySelector("#dialog").open()};
_.l.getFamilyCreationUrlWithUnicornParams_=function(){return _.sd("YTR_FAMILY_CREATION_URL")};
_.l.getCurrentUrl_=function(){return document.location.href};
_.l.abort_=function(p,x){this.clearTimeout_();this.onUnicornFlowError_(p,x)};
_.l.clearTimeout_=function(){clearTimeout(this.JSC$18623_timeoutId_)};
var ty=OAa;_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],ty.prototype,"ytActionHandlerBehavior",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],ty.prototype,"isMobile",void 0);_.B([_.H(),_.k("design:type",Object)],ty.prototype,"onReadyCallback_",void 0);_.B([_.H(),_.k("design:type",Object)],ty.prototype,"observer_",void 0);ty=_.B([_.JZ({is:"yt-create-family-dialog",disableElementRegistration:!0})],ty);
_.P(ty,"yt-create-family-dialog",function(){if(oY8===void 0){var p=document.createElement("template");_.g(p,'\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');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);var x=p.content,F=x.insertBefore;mkc===void 0&&(mkc=document.createElement("template"));var N=mkc;F.call(x,N.content.cloneNode(!0),p.content.firstChild);oY8=p}p=oY8;return p},{mode:2});var jr_;var Lu8;var PNH=function(){var p=_.m.apply(this,arguments)||this;p.STEP=1;p.BLOCK_ON=80;p.MIN_PROGESS=0;p.MAX_PROGESS=100;return p};
_.E(PNH,_.m);_.l=PNH.prototype;_.l.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.l.ready=function(){this.progress_=this.MIN_PROGESS;this.hostElement.hidden=!0;this.hostElement.setAttribute("aria-valuemin",String(this.MIN_PROGESS));this.hostElement.setAttribute("aria-valuemax",String(this.MAX_PROGESS));_.J().addProvider({provide:TE_,useValue:this})};
_.l.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.l.finish=function(){var p=this;this.progress=this.MAX_PROGESS;zmD(function(){p.progress==p.MAX_PROGESS&&(p.hostElement.hidden=!0)})};
_.l.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.R8.Object.defineProperties(PNH.prototype,{progress:{configurable:!0,enumerable:!0,set:function(p){this.progress_=p;var x="scaleX("+p/this.MAX_PROGESS+")",F=_.n(this.hostElement).querySelector("#progress").style;F.transform=x;F.webkitTransform=x;this.hostElement.setAttribute("aria-valuenow",String(p))},
get:function(){return this.progress_}}});
var Tda=PNH;_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],Tda.prototype,"ytComponentBehavior",void 0);Tda=_.B([_.JZ({is:"yt-page-navigation-progress",disableElementRegistration:!0})],Tda);
_.P(Tda,"yt-page-navigation-progress",function(){if(Lu8===void 0){var p=document.createElement("template");_.g(p,'\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');p.content.insertBefore(_.I().content.cloneNode(!0),
p.content.firstChild);var x=p.content,F=x.insertBefore;jr_===void 0&&(jr_=document.createElement("template"));var N=jr_;F.call(x,N.content.cloneNode(!0),p.content.firstChild);Lu8=p}p=Lu8;return p},{mode:2});var Bd8={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"},RI8={"font-size":"12px","font-style":"italic"},ksH={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.biH=function(){return _.D(function(p){_.JB(p)})};_.o7(_.mO(function(){var p=_.g5(_.oP6);return _.Z("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var x;return(x=p())==null?void 0:x.announcement})},"zg"),"yt-ephemeral-actions");var khm=new Map;var uYm=function(p,x){var F=this;this.handleError=p;this.logEventInternal=x;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){F.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
uYm.prototype.logError=function(p){this.handleError(p)};
uYm.prototype.logEvent=function(p,x){switch(p){case "IDB_DATA_CORRUPTED":_.S("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",x);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",x);break;case "IS_SUPPORTED_COMPLETED":_.S("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",x);break;case "QUOTA_EXCEEDED":UkD(this,x);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",x);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":p=Object.assign({},x,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",p)}};
var UkD=function(p,x){_.fK.getInstance().estimate().then(function(F){F=Object.assign({},x,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:iim(F==null?void 0:F.usage),deviceStorageQuotaMbytes:iim(F==null?void 0:F.quota)});p.logEventInternal("idbQuotaExceeded",F)})};var iAk=function(){var p=_.m.apply(this,arguments)||this;p.tabGesturesIsActive=!1;p.deprecateFullerscreenUi=_.S("web_watch_fullerscreen_deprecation_ui");p.hasDelegation=!1;p.darkerDarkTheme=_.S("web_darker_dark_theme");p.isFrostedGlassInitialized=!1;p.frostedGlassExp=_.S("web_frosted_glass");p.mastheadHiddenFocusWithinKillswitch=_.S("web_masthead_hidden_focus_within_killswitch");p.ephemeralActionsEnabled=_.S("web_ephemeral_actions");p.scrollAtTop=!0;p.guideScrollTop=0;p.isTheaterModeSession=_.nt("START_IN_THEATER_MODE");
p.isFullWindowSession=_.nt("START_IN_FULL_WINDOW_MODE");p.hasCreateFamilyDialog=!1;p.mastheadHeight=56;p.networkStatusManager=new _.GW;p.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction","yt-navigate-action":"onYtNavigateAction","yt-navigate-home-action":"onYtNavigateHomeAction","yt-player-fullscreen":"onPlayerFullscreen",
"yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleSelectCountryCommand","yt-select-language-command":"handleSelectLanguageCommand","yt-clear-url-param-command":"handleClearUrlParamCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications","yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction",
"yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation","yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage",
"yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-persist-subscriptions-display-preferences-command":"handlePersistSubscriptionsDisplayPreferencesCommand","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleWebNativeShareCommand","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints","yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand",
"yt-log-flow-logging-event-command":"logFlowLoggingEventCommand","yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};p.dynamicActionMap={"yt-run-attestation-command":function(x){var F=_.lhD.instance,N=_.r(x,_.TMk);return N?_.S("use_rta_manager_for_async")&&
ddm()?F3X(F,N,x.clickTrackingParams):xhX(F,N,x.clickTrackingParams):_.o9(Error("li"))}};
p.isFrostedGlassDisabled=!1;p.isChannelOrPlaylistPage=!1;return p};
_.E(iAk,_.m);_.l=iAk.prototype;_.l.created=function(){var p=_.J();_.S("kevlar_clear_duplicate_pref_cookie")&&_.vZ(_.E0,function(){var x=_.ax.get("PREF");x&&!/f\d=/.test(x)&&(x=_.iO("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=x?"PREF=null;domain="+x+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.S("gzip_gel_with_worker")&&_.rZw();_.S("jspb_serialize_with_worker")&&j7a();_.S("web_worker_availability_check")&&Uik();_.S("nwl_init_killswitch")||oLt().then(function(){_.E0.addLowPriorityJob(efe)});
this.pageManagerAttachedPromise=_.GO();this.ytdAppBehavior.loadDepsPromise=_.Xq([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.IC(this.onThrottledScroll,200,this);_.S("external_fullscreen")&&(this.fullscreen=!1);this.ephemeralResponseStore=p.resolve(_.h7);this.boundOnTouchStart=this.onTouchStart.bind(this);Yuc();Eze=!!_.A9("ytappsettings.initialized");vV=_.A9("ytappsettings.previousValue");Yia=_.A9("ytappsettings.previousSnapshotTime");Eze||
(Eze=!0,wtX());lr_();cHa();_.zn("DEFERRED_DETACH",_.S("kevlar_tuner_should_defer_detach"));_.zn("REUSE_COMPONENTS",!0);_.zn("STAMPER_STABLE_LIST",!0);_.zn("SCHEDULED_LAZY_LIST",!0);_.zn("openPopupConfig",ag_);_.zn("useClickHandler",!0);_.S("kevlar_shell_cleanup")&&_.E0.addLowPriorityJob(Ep8.bind(this,_.Mm.caches));_.nt("IS_SHELL_LOAD")&&_.uA({shellStartupDurationMs:Math.round((0,_.Lf)()-_.sz())});wse(this.networkStatusManager);_.S("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",sXk(Bd8)),
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!",sXk(RI8)),console.log("%cVisit http://go/join-youtube-web to apply today.",sXk(ksH)));_.Ut8(p.resolve(_.c4),1E3)};
_.l.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var p=$d_();p&&!_.S("external_fullscreen_killswitch")&&document.addEventListener(p,this.setFullscreen.bind(this));(p=window.matchMedia("(prefers-color-scheme: dark)"))&&p.addEventListener&&p.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.l.attached=function(){var p=this;_.GN().processSignal("ci");_.S("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.Azn?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.tf(_.SHm(),"SUCCESS");this.updateIconSet();_.FJ(this.guideInnerContent,!1);_.l$().initVisibilityObserver();this.guideService.guideElement=this.guide;var x=document.createElement("ytd-miniplayer"),F=_.n(this.hostElement).querySelector("#content");
_.n(this.hostElement).insertBefore(x,F);_.GN().processSignal("ma");_.J().resolve(_.H$).init(x);_.nt("IS_SHELL_LOAD")&&(F=document.createElement("ytd-network-status-banner"),_.n(this.hostElement).insertBefore(F,x));_.S("kevlar_right_click_on_lockups")&&_.oS._onCaptureClick&&document.addEventListener("contextmenu",_.oS._onCaptureClick.bind(_.oS),!0);var N=function(){var h=_.OB("yt-page-navigation-progress");_.n(p.hostElement).appendChild(h)};
setTimeout(function(){_.GN().parkOrScheduleJob(N,0,"eocs",16)},0);
_.S("service_worker_push_enabled")&&_.vZ(_.E0,IS_);_.WZ(_.Vj.getInstance(),this.dynamicActionMap,this.hostElement);_.hG(this.hostElement,"ytd-app-attached");_.GN().processSignal("aa");t3t(this.hostElement);_.ox("gapi.load",_.lQw);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.vZ(_.E0,
function(){var h=document.createElement("ytd-video-preview");_.n(_.n(p.hostElement).querySelector("#video-preview")).appendChild(h)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.vZ(_.E0,function(){Aha();p.registerViewTransitionTasks()});
if(_.uX()&&this.isAppDarkTheme()!==_.bX())this.onDarkModeToggledAction();else x=_.AF()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==x&&(_.S("enable_dark_theme_only_on_shorts")?_.yK(_.S("enable_dark_theme_only_on_shorts_control")?window.location.href:_.Ww(window.location.href,{theme:"dark"})):_.no(new _.qE("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(K8k=new fgH(this.hostElement)),WuH=new V9e(this.hostElement),GsH=new wFH(this.hostElement),Aj8=new bBm(this.hostElement)};
_.l.getThemeSettingsToLog=function(){var p=_.AF()==="USER_INTERFACE_THEME_DARK";p=_.uX()?_.bX()?"os-dark":"os-light":p?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:p,cookiesEnabled:_.D5()}};
_.l.detached=function(){_.Nt(this.guideInnerContent);_.E0.cancelJob(KL);KL=0;_.E0.cancelJob(Zb);Zb=0;_.wlE(ZQ8);ZQ8.length=0;fS8=_.dWE=null;_.l$().dispose();_.S("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.HZ(_.Vj.getInstance(),K8k.playlistHandlerActionMap,K8k.JSC$28188_clientRoot);_.HZ(_.Vj.getInstance(),WuH.downloadManagerActionMap,WuH.JSC$28493_clientRoot);_.HZ(_.Vj.getInstance(),GsH.feedbackCollectorActionMap,GsH.JSC$28488_clientRoot);
for(var p=_.a(Aj8.eventListeners),x=p.next();!x.done;x=p.next()){var F=_.a(x.value);x=F.next().value;F=F.next().value;F=_.a(F);for(var N=F.next();!N.done;N=F.next()){var h=_.a(N.value);N=h.next().value;h=h.next().value;x.removeEventListener(N,h)}}_.HZ(_.Vj.getInstance(),Aj8.autonavPauseActionMap,Aj8.JSC$17570_clientRoot)};
_.l.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.rH().getFlag(186)};
_.l.computeIsInlinePreviewEnabled=function(p,x,F){return!F&&_.TH8({miniplayerIsActive:p,miniplayerPlaybackState:x})};
_.l.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.F4({type:"SET_FROSTED_GLASS_MODE",payload:!_.S("web_frosted_glass")||this.isFrostedGlassDisabled?"none":!this.isFrostedGlassInitialized&&this.applyFrostedGlassToChipBar?"loading-with-chipbar":this.isFrostedGlassInitialized||this.applyFrostedGlassToChipBar?this.applyFrostedGlassToChipBar?"with-chipbar":"without-chipbar":"loading-without-chipbar"}))};
_.l.computeIsFrostedGlassDisabled=function(p,x,F,N){return p||x||F||N&&_.S("web_frosted_glass_disable_watch")};
_.l.computeIsHomePage=function(p,x){if(!p||x==null||!x.endpoint)return!1;var F;return((F=_.r(x.endpoint,_.Du))==null?void 0:F.browseId)==="FEwhat_to_watch"};
_.l.updateIsChannelOrPlaylistPage=function(){if(_.S("web_frosted_glass")){var p,x,F=(x=(p=_.J().resolve(_.Bw(_.j3)))==null?void 0:p.getCurrentPage())==null?void 0:x.pageSubtype;this.isChannelOrPlaylistPage=F?["channel","channels","playlist"].includes(F):!1}};
_.l.scheduleFrostedGlassInitialization=function(){var p=this;_.S("web_frosted_glass")&&_.GN().parkOrScheduleJob(function(){p.isFrostedGlassInitialized=!0},0,_.bw(["eocs",
"cr"]),300)};
_.l.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.xxJ(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.F4({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.F4({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.l.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(Ktm(!0))};
_.l.onYtSignalActionRequestPersistentStorage=function(){if(!_.S("request_persistent_storage_killswitch")){var p=_.J().resolve(_.On8);p.cachedPersistStatePromise||(p.cachedPersistStatePromise=nfm())}};
_.l.handleYtChannelCreationFormEndpoints=function(p){p&&this.ytComponentBehavior.resolveCommand(p)};
_.l.handleShowEngagementPanelEndpoint=function(p){p&&this.ytComponentBehavior.resolveCommand(p)};
_.l.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(Ktm(!1))};
_.l.initIconDefs=function(p,x,F){var N=document.createElement("iron-iconset-svg");N.name=p;p=document.createElementNS("http://www.w3.org/2000/svg","svg");N.appendChild(p);p.appendChild(x);if(F)for(var h in F)N[h]=F[h];document.body.appendChild(N);return N};
_.l.onWindowResized=function(){_.lA(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var p=_.Mhk.getInstance();p.documentWidth_=document.body.clientWidth;ykD(p)};
_.l.onWindowScrolled=function(){var p=_.J().resolve(_.j3).getCurrentPage();if(p!=null&&p.getScrollTop){var x=this.ytdReduxBehavior,F=x.dispatch;p=p.getScrollTop()<=0;F.call(x,_.F4({type:"SET_SCROLL_AT_TOP",payload:p}))}};
_.l.guideIsVisibleButNotPersistentSelectorChanged=function(){var p=_.J().resolve(_.j3).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=p.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"),
p.setScrollTop(this.guideScrollTop));_.Mt(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.l.getCurrentPageScrollableElementType=function(){var p=_.J().resolve(_.j3).getCurrentPage();if(p&&p.getPageScrollingElement())return p.getPageScrollingElement().nodeName};
_.l.observeGuideVisibility=function(){var p=_.Mhk.getInstance(),x=this.miniGuideVisible;p.guidePersistentAndVisible_=this.guidePersistentAndVisible;p.miniGuideVisible_=x;ykD(p)};
_.l.handleEduDismissAction=function(p){p&&p.eduDismissAction&&(_.lA(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.N4j.getInstance(),_.kx.set(p.eduDismissAction.key+"-dismissed",!0))};
_.l.handleEduImpressionAction=function(p){if(p&&p.eduImpressionAction){var x=_.N4j.getInstance();p=p.eduImpressionAction.key;x.JSC$10729_eduDisplayedThisLoad_[_.FLD[p].setKey||p]=!0;_.kx.set(p+"-impression",parseInt(_.kx.get(p+"-impression")||0,10)+1)}};
_.l.onYtSignalActionConfirmMentionsEdu=function(){_.lA(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.IO.getInstance();_.iC.set("edu-dismissed",!0)};
_.l.onYtSignalActionRecordMentionsEduImpression=function(){_.IO.getInstance();var p=_.iC.set,x=parseInt(_.iC.get("edu-impressions"),10);p.call(_.iC,"edu-impressions",(isFinite(x)?x:0)+1)};
_.l.onYtPageManagerAttached=function(p){var x;((x=_.os(p))==null?void 0:x.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.l.onInvokeInstrumentManagerAction=function(p,x){pvH(x,p)};
_.l.updateIconSet=function(){var p=this.hostElement.querySelector("#masthead");if(p){var x=_.Ub(p),F=x.querySelector("g#yt-logo-updated");F&&(p=document.createElementNS("http://www.w3.org/2000/svg","defs"),p.appendChild(F.cloneNode(!0)),(x=x.querySelector("g#yt-logo-red-updated"))&&p.appendChild(x.cloneNode(!0)),this.initIconDefs("yt-logos-ext",p))}};
_.l.updateMastheadData=function(){var p=this,x,F,N,h;return _.D(function(c){if(c.nextAddress==1){x=p.data;F=p.hostElement.querySelector("#masthead");if(!F)return c.return();_.jB(p,function(){F.data=p.topbarData});
return p.get("response.topbar",x)&&p.get("response.topbar.responseContext.maxAgeSeconds",x)!==0?(N=_.J().resolve(_.OC))?_.q(c,N(),7):p.ephemeralResponseStore?_.q(c,p.ephemeralResponseStore.put("service:topbar:fallback",new _.lp({innertubeResponse:p.get("response.topbar",x)})),0):c.jumpTo(0):c.jumpTo(0)}return(h=c.yieldResult)?_.q(c,h.put("service:topbar:fallback",new _.lp({innertubeResponse:p.get("response.topbar",x)})),0):c.jumpTo(0)})};
_.l.computeTopbarData=function(p){if(!p)return null;var x;return this.isShortsPage&&this.topbarData&&!_.r((x=p.response)==null?void 0:x.topbar,y7e)?this.topbarData:p.response&&"topbar"in p.response?_.r(p.response.topbar,y7e)||null:null};
_.l.onSetTheaterModeEnabled=function(p,x){this.isTheaterModeSession=x.enabled;this.setTheaterModeStyles(x.enabled)};
_.l.setTheaterModeStyles=function(){this.setMastheadTheme()};
_.l.onDarkModeToggledAction=function(){var p=_.F_(window.location.href);if(!_.Qad(p)){(p=!!_.VL(window.location.href).themeRefresh)&&_.no(new _.qE("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!p){wtX();p={themeRefresh:1};var x=_.J().resolve(_.j3);if(x.isOnWatch()){var F,N;x=((F=x.getPlayerFromWatch())==null?void 0:(N=F.getPlayer())==null?void 0:N.getCurrentTime())||0;x>=1&&(p.time_continue=Math.floor(x))}_.D5()||_.AF()!=="USER_INTERFACE_THEME_DARK"||(p.theme="dark");_.yK(_.Ww(window.location.href,
p))}_.S("web_appshell_refresh_trigger")&&_.Mm.caches&&this.refreshAppShellResponse();F=_.Of(window.location.href);_.J().resolve(_.VfC).replaceUrl(_.$Q(F,"theme"))}};
_.l.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.l.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.l.onPlayerFullscreen=function(p){_.pc();this.playerFullscreen=p};
_.l.setRestrictedMode=function(p){var x=_.rH();_.Ez(0,58,p);x.save();_.J().resolve(_.hA).reload()};
_.l.onPageChanged=function(p){p.detail.newPageType==="ytd-watch-flexy"||p.detail.newPageType==="ytd-watch-fixie"||p.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.y$("WEB_PAGE_TYPE_WATCH")):p.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.y$("WEB_PAGE_TYPE_SHORTS")):p.detail.newPageType==="ytd-browse"&&p.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.y$("WEB_PAGE_TYPE_MINI_APP")):_.S("web_frosted_glass")&&p.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.y$("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.y$("WEB_PAGE_TYPE_UNKNOWN"));p.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.l.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.l.onGuideToggleTap=function(){_.hG(this.hostElement,"yt-guide-toggle")};
_.l.onGuideToggleHover=function(){_.hG(this.hostElement,"yt-guide-hover")};
_.l.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.l.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.l.setMastheadTheme=function(){var p=_.Ub(this.hostElement).querySelector("#masthead");p&&(p.dark=p.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),p.isDarkThemeForced=!1)};
_.l.onRequestPanelModeChange=function(p,x){this.hideHeaderShadow=x.mode!=="seamed"};
_.l.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.l.onDrawerIronSelect=function(p){_.os(p).id==="guide"&&this.processDrawerIronSelect()};
_.l.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var p="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(p="opened"));_.hG(this.hostElement,"yt-autonav-pause-guide-"+p)};
_.l.onAddElementToApp=function(p){_.n(this.hostElement).appendChild(p.detail)};
_.l.onThrottledScroll=function(){var p=_.J().resolve(_.j3).getCurrentPage();p&&(this.scrollAtTop=p.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.l.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.l.setFullscreen=function(){if(_.S("external_fullscreen")||!this.isWatchPage){var p=_.S("kevlar_fullerscreen_root_only_killswitch")?!!_.pc():!!_.pc()&&_.pc()===document.documentElement;p=(this.isWatchPage||_.S("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(p||this.isFullWindowSession);this.fullscreen!==p&&((this.fullscreen=p)&&_.Mt(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Bi().dispatch(_.Ddm(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.toggleFullscreenStyles(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen),_.lA(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.l.setFullscreenLoggingForShorts=function(p){var x,F,N;return _.D(function(h){if(h.nextAddress==1)return _.q(h,(x=_.Pt())==null?void 0:x.getPlayerPromise(),2);F=h.yieldResult;(N=F)==null||N.setAppFullscreen(p);_.JB(h)})};
_.l.updateMastheadCssHeight=function(){var p=this.mastheadHeight;this.fullscreen&&(p=0);_.eV(this.hostElement,{"--ytd-masthead-height":p+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.l.updateNetworkStatusBannerDisplayStatus=function(){var p="unset";this.fullscreen&&(p="none");_.eV(this.hostElement,{"--ytd-network-status-banner-display":p})};
_.l.updateNetworkStatusBannerCssHeight=function(){var p="unset";this.fullscreen&&(p="0px");_.eV(this.hostElement,{"--ytd-network-status-banner-max-height":p})};
_.l.toggleFullscreenStyles=function(p,x,F){var N=_.J().resolve(_.j3).getCurrentPage();p||x?(document.body.classList.add("no-scroll"),N.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.p5(this,this.onScroll)),N.setScrollTop(0),_.eV(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.zQ()+"px"})):F?_.hG(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.hG(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),N.pageScrollElement=
null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.p5(this,this.onScroll)));this.mastheadHidden=p||x||F;this.updateMastheadCssHeight();_.S("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.l.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.l.onYtMastheadHeightChanged=function(p,x){this.mastheadHeight=x.height;this.updateMastheadCssHeight()};
_.l.onYtNavigateAction=function(p){p=this.get("navigateAction.endpoint",p);_.hG(this.hostElement,"yt-navigate",{endpoint:p})};
_.l.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var p=document.createElement("yt-create-family-dialog");_.n(this.hostElement).appendChild(p);this.hasCreateFamilyDialog=!0}};
_.l.onSetPushNotificationsEnabledCommand=function(p){var x=this,F=_.r(p,nem);F&&typeof F.enabled==="boolean"&&(Notification.permission!=="granted"?B5m().then(function(){Notification.permission==="granted"?(y0c(!F.enabled).then(ut_),F.successAction&&_.fc(x.hostElement,[F.successAction])):F.failureAction&&_.fc(x.hostElement,[F.failureAction])}):(y0c(!F.enabled).then(ut_),F.successAction&&_.fc(this.hostElement,[F.successAction])))};
_.l.onYtSignalActionEnableChromeNotifications=function(){RgH(!0)};
_.l.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.r(this.topbarData.hotkeyDialog,um8)}}})};
_.l.onYtSignalActionShowKeyboardShortcutDialog=function(){_.lA(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.l.onYtEndpointChangeHandler=function(p,x){var F=_.la(_.Nq);F.pendingPrefetchJob_&&(x=!(!x||x.autonav!="1"),F.pendingPrefetchJob_.resolve(p&&_.vkM(p)?_.J5B(p,x):""),F.pendingPrefetchJob_=null);_.lA(this.hostElement,"yt-pause-active-page-context");_.lA(this.hostElement,"ytd-log-youthere-nav");_.lA(this.hostElement,"yt-prepare-page-dispose")};
_.l.handleClearUrlParamCommand=function(p){if(p.clearUrlParamCommand&&p.clearUrlParamCommand.paramKeys){var x=p.clearUrlParamCommand.paramKeys;p=_.G4(window.location.href);x=_.a(x);for(var F=x.next();!F.done;F=x.next())p.JSC$7886_queryData_.remove(F.value);window.history.replaceState(window.history.state,document.title,p.toString())}};
_.l.handleCommandWithCommandHandler=function(p,x){_.xL.instance.resolveCommand(p,{form:{element:x}})};
_.l.onYtTimedCommand=function(p){var x=this;p=_.r(p,Z_t);var F=p.command;F&&_.rR(_.E0,function(){var N=_.r(F,_.BAD);N?(_.xL.instance.resolveCommand(F),x.maybeLogGetAnswerRequestTick(N)):_.Kc(x.hostElement,[F],x.hostElement)},p.timeoutMs||0)};
_.l.maybeLogGetAnswerRequestTick=function(p){p&&p.isFirstRequest&&(_.Yv("search_overview_answer"),_.wH("so_rq",void 0,"search_overview_answer"))};
_.l.onYtSignalActionSkipNavigation=function(){var p=_.J().resolve(_.j3).getCurrentPage();_.on(p)};
_.l.onYtSignalActionCopyDebugData=function(){cRX()};
_.l.handleEntityUpdateCommand=function(p){_.t$(_.r(p,_.I7B).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.l.logFlowLoggingEventCommand=function(p){if(p=_.r(p,_.oT6))if(p.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var x=p.flowEventNamespace,F=p.flowEventType,N=p.flowType;N&&x&&F&&_.M1B(_.lX(x,F,p.flowEventMetadata),N)}else{x=_.as();F=p.flowEventNamespace;N=p.flowEventType;var h=p.flowType;h&&F&&N&&_.cg(x,_.lX(F,N,p.flowEventMetadata),h,p.flowNonce)}};
_.l.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.l.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.l.onTouchStart=function(){var p=_.c6();_.b0()&&_.A0(p.JSC$10882_screenManager,{visualElement:p.ve})};
_.l.handleWebNativeShareCommand=function(p){navigator.share({url:_.r(p,zJX).url}).catch(function(){})};
_.l.handleSelectCountryCommand=function(p){if(p=_.r(p,XIH).gl){var x={persist_gl:1,gl:p},F=_.rH();F.set("gl",p);F.save();p=RUe(x);_.yK(p)}};
_.l.handlePersistSubscriptionsDisplayPreferencesCommand=function(p){if(p=_.r(p,SZk)){var x=_.rH();_.Ez(0,155,p.useListView);x.save()}};
_.l.handleSelectLanguageCommand=function(p){if(p=_.r(p,gec).hl){var x=_.rH();x.set("hl",p);x.save();_.J().resolve(_.hA).reload()}};
_.l.handleConfirmDialogEndpoint=function(p){(p=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(p))&&this.ytOpenPopupBehavior.openPopup(p)};
_.l.handleOpenPopupNavigationEndpoints=function(p,x){_.S("web_button_rework")&&(p=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(p))&&this.ytOpenPopupBehavior.openPopup(p,x)};
_.l.handleSaveCommandToSessionStorage=function(p){if(p=_.r(p,_.IRK)){var x=p.key;x&&p.command&&window.sessionStorage.setItem(x,JSON.stringify(p.command))}};
_.l.hardReloadWithShellPurge=function(p){p=p===void 0?{}:p;p=Object.assign({},p,{purge_shell:1});p=RUe(p);_.yK(p)};
_.l.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(p){p&&p.active&&p.active.postMessage({type:"refresh_shell"})}).catch(function(p){p.name!=="SecurityError"&&_.zj(p)})};
_.l.onDeviceThemeChanged=function(){var p=_.bX();_.Ez(_.rH(),185,p);_.rH().save()};
_.l.handleYtRegisterPromoCommand=function(p){if(_.r(p,sae)){var x=_.J().resolve(_.j3).getCurrentPage()||this.hostElement;Wsm().registerPromoCommand(_.r(p,sae),x)}};
_.l.onYtNavigateHomeAction=function(){if(!_.S("kevlar_miniplayer_navigate_home_from_app_killswitch")){var p,x,F,N,h=(N=(p=this.topbarData)==null?void 0:(x=p.logo)==null?void 0:(F=x.topbarLogoRenderer)==null?void 0:F.endpoint)!=null?N:_.Kb;this.ytComponentBehavior.resolveCommand(h)}};
_.l.onYtLocationCollectionCommand=function(p){yhe(_.r(p,oe8))};
_.l.onYtGetLocationCommand=function(p){q6m(_.r(p,mQm),this)};
_.l.updateRenderGuideFromBinding=function(p){this.renderGuide=p.detail.value};
_.l.updateGuidePersistentAndVisibleFromBinding=function(p){this.guidePersistentAndVisible=p.detail.value};
_.l.updateMiniGuideVisibleFromBinding=function(p){this.miniGuideVisible=p.detail.value};
_.l.onThemeSelected=function(p,x){var F=_.rH(),N=p||x?p:_.bX(),h=(N&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!N&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.Qad(_.F_(window.location.href));_.Ez(0,165,p);_.Ez(0,174,x);F.save();h&&_.lA(this.hostElement,"yt-dark-mode-toggled-action",[N]);_.lA(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.l.getCurrentTheme=function(){return _.uX()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.AF()};
_.l.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.l.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.l.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.l.handleShowConsentPrimitive=function(p){var x=this,F,N;return _.D(function(h){if(h.nextAddress==1){try{F=(N=_.Pt())==null?void 0:N.getPlayerPromise()}catch(c){}return _.q(h,Rma(p,F),2)}_.lA(x.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.JB(h)})};
_.l.handleSelectActiveIdentityEndpointInternal=function(p){_.sb();p=_.r(p,_.cYI);if(p!=null&&p.supportedTokens){p=_.a(p.supportedTokens);for(var x=p.next();!x.done;x=p.next())x=x.value,x.accountSigninToken&&_.yK(x.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.l.handleUpdatePermissionRoleCommand=function(p){if(p=_.r(p,_.DoB)){var x;this.hasDelegation=!((x=_.r(p.renderer,_.MdJ))==null||!x.status)}};
_.l.registerViewTransitionTasks=function(){var p=this,x=_.J().resolve(_.Bw(_.kI8));if(x){var F,N=(F=this.guide)==null?void 0:F.querySelector("#scrim"),h,c=(h=this.guide)==null?void 0:h.querySelector("#contentContainer");N&&c&&(F={beforeTransition:function(){var M;(M=p.guide)!=null&&M.persistent||(N.style.viewTransitionName="app-drawer-scrim",c.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var M;(M=p.guide)!=null&&M.persistent||(N.style.viewTransitionName="",c.style.viewTransitionName="")}},dL(x,"slide",F),dL(x,"zoom",F))}};
_.R8.Object.defineProperties(iAk.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.S("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.R8.Object.defineProperties(iAk,{template:{configurable:!0,enumerable:!0,get:function(){if(nYt===void 0){var p=document.createElement("template");_.g(p,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
p.content.insertBefore(_.I().content.cloneNode(!0),p.content.firstChild);nYt=p}p=nYt;return p}}});
var dG=iAk;dG.prototype.onOpenHotkeyDialog=dG.prototype.onOpenHotkeyDialog;dG.prototype.onYtMastheadHeightChanged=dG.prototype.onYtMastheadHeightChanged;dG.prototype.setFullscreen=dG.prototype.setFullscreen;dG.prototype.onAddElementToApp=dG.prototype.onAddElementToApp;dG.prototype.onDrawerIronSelect=dG.prototype.onDrawerIronSelect;dG.prototype.onGuideOpenButtonHover=dG.prototype.onGuideOpenButtonHover;dG.prototype.onRequestPanelModeChange=dG.prototype.onRequestPanelModeChange;
dG.prototype.onPageDataUpdated=dG.prototype.onPageDataUpdated;dG.prototype.onPageChanged=dG.prototype.onPageChanged;dG.prototype.onSetTheaterModeEnabled=dG.prototype.onSetTheaterModeEnabled;dG.prototype.updateMastheadData=dG.prototype.updateMastheadData;dG.prototype.onYtPageManagerAttached=dG.prototype.onYtPageManagerAttached;dG.prototype.observeGuideVisibility=dG.prototype.observeGuideVisibility;dG.prototype.guideIsVisibleButNotPersistentSelectorChanged=dG.prototype.guideIsVisibleButNotPersistentSelectorChanged;
dG.prototype.isInlinePreviewEnabledChanged=dG.prototype.isInlinePreviewEnabledChanged;dG.prototype.dispatchFrostedGlassMode=dG.prototype.dispatchFrostedGlassMode;_.B([_.u(_.nl),_.k("design:type",Object)],dG.prototype,"ytdReduxBehavior",void 0);_.B([_.u(_.rK.YtEventForwardingBehavior),_.k("design:type",Object)],dG.prototype,"ytEventForwardingBehavior",void 0);_.B([_.u(_.FU.YtOpenPopupBehavior),_.k("design:type",Object)],dG.prototype,"ytOpenPopupBehavior",void 0);
_.B([_.u(_.T2.YtActionHandlerBehavior),_.k("design:type",Object)],dG.prototype,"ytActionHandlerBehavior",void 0);_.B([_.u({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.Vj.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.S("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var p;((p=this.actionRouterNode.hostElement)!=null?p:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var p;((p=this.actionRouterNode.hostElement)!=null?p:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(p){this.actionRouter_.handleAction(p.detail)}}),
_.k("design:type",Object)],dG.prototype,"ytActionRouterBehavior",void 0);_.B([_.u(RdX.YtdAppBehavior),_.k("design:type",Object)],dG.prototype,"ytdAppBehavior",void 0);_.B([_.u(_.NY.YtEndpointBehavior),_.k("design:type",Object)],dG.prototype,"ytEndpointBehavior",void 0);_.B([_.u(YaH.YtEndpointHandlerWithYpcBehavior),_.k("design:type",Object)],dG.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.B([_.u(y4_.YtLogYpcFlowCommandsBehavior),_.k("design:type",Object)],dG.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.B([_.u(_.e.YtRendererBehavior),_.k("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);_.B([_.u(_.nJ.YtComponentBehavior),_.k("design:type",Object)],dG.prototype,"ytComponentBehavior",void 0);_.B([_.H({selector:_.rl_}),_.k("design:type",Object)],dG.prototype,"tabGesturesIsActive",void 0);_.B([_.H(),_.k("design:type",Boolean)],dG.prototype,"renderGuide",void 0);
_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],dG.prototype,"guidePersistentAndVisible",void 0);_.B([_.H({selector:_.S4t}),_.k("design:type",Boolean)],dG.prototype,"guideIsVisibleButNotPersistent",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],dG.prototype,"standalone",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],dG.prototype,"miniGuideVisible",void 0);
_.B([_.H({selector:_.yYZ}),_.k("design:type",Number)],dG.prototype,"miniplayerPlaybackState",void 0);_.B([_.H({selector:_.bP,reflectToAttribute:!0}),_.k("design:type",Boolean)],dG.prototype,"miniplayerIsActive",void 0);_.B([_.H({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.k("design:type",Boolean)],dG.prototype,"isInlinePreviewEnabled",void 0);_.B([_.H(),_.k("design:type",Boolean)],dG.prototype,"isInlinePreviewDisabled",void 0);
_.B([_.H({reflectToAttribute:!0,value:function(){return _.nt("START_IN_FULL_WINDOW_MODE")}}),
_.k("design:type",Boolean)],dG.prototype,"mastheadHidden",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],dG.prototype,"playerFullscreen",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],dG.prototype,"deprecateFullerscreenUi",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],dG.prototype,"fullscreen",void 0);_.B([_.H({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],dG.prototype,"hideHeaderShadow",void 0);
_.B([_.H({value:{GUIDE_ALT_LABEL:_.JG("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.k("design:type",Object)],dG.prototype,"menuStrings",void 0);_.B([_.H({computed:"computeTopbarData(data)"}),_.k("design:type",Object)],dG.prototype,"topbarData",void 0);_.B([_.H({selector:_.A$}),_.k("design:type",Boolean)],dG.prototype,"isWatchPage",void 0);_.B([_.H({selector:_.zv$,reflectToAttribute:!0}),_.k("design:type",Boolean)],dG.prototype,"isShortsPage",void 0);
_.B([_.H({selector:function(p){return p.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.k("design:type",Boolean)],dG.prototype,"isMiniAppPage",void 0);_.B([_.H({selector:function(p){return p.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.k("design:type",Boolean)],dG.prototype,"isBrowsePage",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Boolean)],dG.prototype,"scrolling",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],dG.prototype,"hasDelegation",void 0);_.B([_.H({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],dG.prototype,"guideScrolledByTouch",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],dG.prototype,"darkerDarkTheme",void 0);
_.B([_.H(),_.k("design:type",Object)],dG.prototype,"isFrostedGlassInitialized",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],dG.prototype,"frostedGlassExp",void 0);_.B([_.H({selector:function(p){return p.ui.chipBarIsSticky}}),
_.k("design:type",Boolean)],dG.prototype,"chipBarIsSticky",void 0);_.B([_.H({computed:"computeIsHomePage(isBrowsePage, data)"}),_.k("design:type",Boolean)],dG.prototype,"isHomePage",void 0);_.B([_.H({reflectToAttribute:!0}),_.k("design:type",Object)],dG.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.B([_.H(),_.k("design:type",Object)],dG.prototype,"ephemeralActionsEnabled",void 0);_.B([_.$W("guide"),_.k("design:type",Object)],dG.prototype,"guide",void 0);
_.B([_.$W("guide-service"),_.k("design:type",GL8)],dG.prototype,"guideService",void 0);_.B([_.$W("guide-inner-content"),_.k("design:type",HTMLDivElement)],dG.prototype,"guideInnerContent",void 0);_.B([_.H({selector:_.AYd}),_.k("design:type",String)],dG.prototype,"frostedGlassMode",void 0);
_.B([_.W("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dG.prototype,"dispatchFrostedGlassMode",null);_.B([_.H({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.k("design:type",Object)],dG.prototype,"isFrostedGlassDisabled",void 0);
_.B([_.w("isHomePage","chipBarIsSticky"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],dG.prototype,"applyFrostedGlassToChipBar",null);_.B([_.H(),_.k("design:type",Object)],dG.prototype,"isChannelOrPlaylistPage",void 0);_.B([_.cT("isInlinePreviewEnabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dG.prototype,"isInlinePreviewEnabledChanged",null);
_.B([_.W("guideIsVisibleButNotPersistent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dG.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);_.B([_.W("guidePersistentAndVisible","miniGuideVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dG.prototype,"observeGuideVisibility",null);
_.B([_.V("attached"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],dG.prototype,"onYtPageManagerAttached",null);_.B([_.W("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],dG.prototype,"updateMastheadData",null);_.B([_.V("yt-set-theater-mode-enabled"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],dG.prototype,"onSetTheaterModeEnabled",null);
_.B([_.V("yt-page-type-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],dG.prototype,"onPageChanged",null);_.B([_.V("yt-page-data-updated"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dG.prototype,"onPageDataUpdated",null);_.B([_.V("yt-request-panel-mode-change"),_.k("design:type",Function),_.k("design:paramtypes",[Event,Object]),_.k("design:returntype")],dG.prototype,"onRequestPanelModeChange",null);
_.B([_.V("yt-guide-hover"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dG.prototype,"onGuideOpenButtonHover",null);_.B([_.V("app-drawer-transitioned"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],dG.prototype,"onDrawerIronSelect",null);_.B([_.V("yt-add-element-to-app"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],dG.prototype,"onAddElementToApp",null);
_.B([_.V("yt-set-fullerscreen-styles"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dG.prototype,"setFullscreen",null);_.B([_.V("yt-masthead-height-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],dG.prototype,"onYtMastheadHeightChanged",null);_.B([_.V("yt-open-hotkey-dialog"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dG.prototype,"onOpenHotkeyDialog",null);
dG=_.B([_.L({is:"ytd-app"})],dG);_.GN().processSignal("eor");
_.z4();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
